@nepwork/dashboards
Version:
Dashboards for emergencies and monitoring
41 lines • 1.63 kB
JavaScript
/**
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
import { __decorate } from "tslib";
import { NgModule } from '@angular/core';
import { NbOverlayModule } from '../cdk/overlay/overlay.module';
import { NbSharedModule } from '../shared/shared.module';
import { NbIconModule } from '../icon/icon.module';
import { NbToastrContainerRegistry, NbToastrService } from './toastr.service';
import { NbToastComponent } from './toast.component';
import { NbToastrContainerComponent } from './toastr-container.component';
import { NB_TOASTR_CONFIG } from './toastr-config';
var NbToastrModule = /** @class */ (function () {
function NbToastrModule() {
}
NbToastrModule_1 = NbToastrModule;
NbToastrModule.forRoot = function (toastrConfig) {
if (toastrConfig === void 0) { toastrConfig = {}; }
return {
ngModule: NbToastrModule_1,
providers: [
NbToastrService,
NbToastrContainerRegistry,
{ provide: NB_TOASTR_CONFIG, useValue: toastrConfig },
],
};
};
var NbToastrModule_1;
NbToastrModule = NbToastrModule_1 = __decorate([
NgModule({
imports: [NbSharedModule, NbOverlayModule, NbIconModule],
declarations: [NbToastrContainerComponent, NbToastComponent],
entryComponents: [NbToastrContainerComponent, NbToastComponent],
})
], NbToastrModule);
return NbToastrModule;
}());
export { NbToastrModule };
//# sourceMappingURL=toastr.module.js.map