@wizishop/angular-components 0.0.39 → 0.0.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/angular-components.scss +3605 -3382
  2. package/bundles/wizishop-angular-components.umd.js +128 -13
  3. package/bundles/wizishop-angular-components.umd.js.map +1 -1
  4. package/bundles/wizishop-angular-components.umd.min.js +2 -2
  5. package/bundles/wizishop-angular-components.umd.min.js.map +1 -1
  6. package/esm2015/lib/components/alert-popup/alert-popup-module.js +16 -0
  7. package/esm2015/lib/components/alert-popup/alert-popup.component.js +41 -0
  8. package/esm2015/lib/components/alert-popup/alert-popup.service.js +30 -0
  9. package/esm2015/lib/components/button/button.component.js +4 -2
  10. package/esm2015/lib/components/inputs/input/input.component.js +4 -2
  11. package/esm2015/lib/components/shared-components.module.js +3 -1
  12. package/esm2015/lib/services/dom.service.js +28 -4
  13. package/esm2015/public-api.js +3 -1
  14. package/esm2015/wizishop-angular-components.js +3 -2
  15. package/fesm2015/wizishop-angular-components.js +112 -6
  16. package/fesm2015/wizishop-angular-components.js.map +1 -1
  17. package/lib/components/alert-popup/alert-popup-module.d.ts +2 -0
  18. package/lib/components/alert-popup/alert-popup.component.d.ts +16 -0
  19. package/lib/components/alert-popup/alert-popup.service.d.ts +20 -0
  20. package/lib/components/button/button.component.d.ts +1 -0
  21. package/lib/components/inputs/input/input.component.d.ts +1 -0
  22. package/lib/services/dom.service.d.ts +11 -0
  23. package/package.json +1 -1
  24. package/public-api.d.ts +2 -0
  25. package/wizishop-angular-components-0.0.43.tgz +0 -0
  26. package/wizishop-angular-components.d.ts +2 -1
  27. package/wizishop-angular-components.metadata.json +1 -1
  28. package/wizishop-angular-components-0.0.39.tgz +0 -0
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@wizishop/ng-wizi-bulma'), require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ngx-perfect-scrollbar'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/table'), require('@angular/animations'), require('ngx-chips'), require('uuid'), require('@ngx-translate/core'), require('@angular/router')) :
3
- typeof define === 'function' && define.amd ? define('@wizishop/angular-components', ['exports', '@wizishop/ng-wizi-bulma', '@angular/core', '@angular/common', '@angular/forms', 'ngx-perfect-scrollbar', 'rxjs', 'rxjs/operators', '@angular/cdk/table', '@angular/animations', 'ngx-chips', 'uuid', '@ngx-translate/core', '@angular/router'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wizishop = global.wizishop || {}, global.wizishop['angular-components'] = {}), global['ng-wizi-bulma'], global.ng.core, global.ng.common, global.ng.forms, global['ngx-perfect-scrollbar'], global.rxjs, global.rxjs.operators, global.ng.cdk.table, global.ng.animations, global['ngx-chips'], global.uuid, global['@ngx-translate/core'], global.ng.router));
5
- }(this, (function (exports, i1, i0, common, forms, ngxPerfectScrollbar, rxjs, operators, table, animations, ngxChips, uuid, core, router) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@wizishop/ng-wizi-bulma'), require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ngx-perfect-scrollbar'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/overlay'), require('@angular/cdk/table'), require('@angular/animations'), require('ngx-chips'), require('uuid'), require('@ngx-translate/core'), require('@angular/router')) :
3
+ typeof define === 'function' && define.amd ? define('@wizishop/angular-components', ['exports', '@wizishop/ng-wizi-bulma', '@angular/core', '@angular/common', '@angular/forms', 'ngx-perfect-scrollbar', 'rxjs', 'rxjs/operators', '@angular/cdk/overlay', '@angular/cdk/table', '@angular/animations', 'ngx-chips', 'uuid', '@ngx-translate/core', '@angular/router'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wizishop = global.wizishop || {}, global.wizishop['angular-components'] = {}), global['ng-wizi-bulma'], global.ng.core, global.ng.common, global.ng.forms, global['ngx-perfect-scrollbar'], global.rxjs, global.rxjs.operators, global.ng.cdk.overlay, global.ng.cdk.table, global.ng.animations, global['ngx-chips'], global.uuid, global['@ngx-translate/core'], global.ng.router));
5
+ }(this, (function (exports, i1$1, i0, common, forms, ngxPerfectScrollbar, rxjs, operators, i1, table, animations, ngxChips, uuid, core, router) { 'use strict';
6
6
 
7
7
  /*! *****************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
@@ -448,7 +448,11 @@
448
448
  };
449
449
 
450
450
  var DomService = /** @class */ (function () {
451
- function DomService() {
451
+ function DomService(componentFactoryResolver, appRef, injector, overlayContainer) {
452
+ this.componentFactoryResolver = componentFactoryResolver;
453
+ this.appRef = appRef;
454
+ this.injector = injector;
455
+ this.overlayContainer = overlayContainer;
452
456
  this.documentEventSource = new rxjs.Subject();
453
457
  this.documentEventDone = this.documentEventSource.asObservable();
454
458
  this.eventInitialisation = true;
@@ -478,14 +482,32 @@
478
482
  _this.documentScrollSource.next(window);
479
483
  };
480
484
  };
485
+ DomService.prototype.attachComponentPortal = function (component, injector) {
486
+ var componentRef = this.componentFactoryResolver
487
+ .resolveComponentFactory(component)
488
+ .create(injector ? injector : this.injector);
489
+ this.appRef.attachView(componentRef.hostView);
490
+ this.overlayContainer.getContainerElement().appendChild(this._getComponentRootNode(componentRef));
491
+ return componentRef;
492
+ };
493
+ /** Gets the root HTMLElement for an instantiated component. */
494
+ DomService.prototype._getComponentRootNode = function (componentRef) {
495
+ return componentRef.hostView.rootNodes[0];
496
+ };
481
497
  return DomService;
482
498
  }());
483
- DomService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DomService_Factory() { return new DomService(); }, token: DomService, providedIn: "root" });
499
+ DomService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DomService_Factory() { return new DomService(i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i1.OverlayContainer)); }, token: DomService, providedIn: "root" });
484
500
  DomService.decorators = [
485
501
  { type: i0.Injectable, args: [{
486
502
  providedIn: 'root'
487
503
  },] }
488
504
  ];
505
+ DomService.ctorParameters = function () { return [
506
+ { type: i0.ComponentFactoryResolver },
507
+ { type: i0.ApplicationRef },
508
+ { type: i0.Injector },
509
+ { type: i1.OverlayContainer }
510
+ ]; };
489
511
 
490
512
  var AutoHideDirective = /** @class */ (function () {
491
513
  function AutoHideDirective(_elementRef, domService) {
@@ -713,14 +735,14 @@
713
735
  };
714
736
  return FiltersTableService;
715
737
  }());
716
- FiltersTableService.ɵprov = i0.ɵɵdefineInjectable({ factory: function FiltersTableService_Factory() { return new FiltersTableService(i0.ɵɵinject(i1.NwbFilterRoutingBuilder)); }, token: FiltersTableService, providedIn: "root" });
738
+ FiltersTableService.ɵprov = i0.ɵɵdefineInjectable({ factory: function FiltersTableService_Factory() { return new FiltersTableService(i0.ɵɵinject(i1$1.NwbFilterRoutingBuilder)); }, token: FiltersTableService, providedIn: "root" });
717
739
  FiltersTableService.decorators = [
718
740
  { type: i0.Injectable, args: [{
719
741
  providedIn: 'root'
720
742
  },] }
721
743
  ];
722
744
  FiltersTableService.ctorParameters = function () { return [
723
- { type: i1.NwbFilterRoutingBuilder }
745
+ { type: i1$1.NwbFilterRoutingBuilder }
724
746
  ]; };
725
747
 
726
748
  var TableComponent = /** @class */ (function () {
@@ -891,6 +913,7 @@
891
913
  this.iconFontSize = 12;
892
914
  this.hasLoader = false;
893
915
  this.disabled = false;
916
+ this.whiteSpaceNowrap = false;
894
917
  this.click = new i0.EventEmitter();
895
918
  this.isLoading = false;
896
919
  this.interval = null;
@@ -930,7 +953,7 @@
930
953
  ButtonComponent.decorators = [
931
954
  { type: i0.Component, args: [{
932
955
  selector: 'wac-button',
933
- template: "<a\n [class]=\"'wac-button ' + extraClasses\"\n (click)=\"onButtonClick($event)\"\n [ngClass]=\"[label === '' ? 'alone' : '', isLoading ? 'is-loading' : '', disabled ? 'disabled' : '', widthAuto ? 'width-auto' : '']\"\n>\n <span class=\"wac-button__wrapper\">\n <i *ngIf=\"icon !== ''\" [ngClass]=\"icon\" [style.font-size.px]=\"iconFontSize\"></i>\n {{ label }}\n <i *ngIf=\"iconNext !== ''\" [ngClass]=\"iconNext\" [style.font-size.px]=\"iconFontSize\"></i>\n </span>\n <span\n class=\"wac-button__loader\"\n [ngClass]=\"extraClasses.includes('is-outlined') ? 'outlined' : ''\"\n *ngIf=\"isLoading || interval !== null\"\n [style.width]=\"currentLoading + '%'\"\n >\n <span *ngIf=\"extraClasses.includes('is-outlined')\">\n <i *ngIf=\"icon !== ''\" [ngClass]=\"icon\" [style.font-size.px]=\"iconFontSize\"></i>\n {{ label }}\n <i *ngIf=\"iconNext !== ''\" [ngClass]=\"iconNext\" [style.font-size.px]=\"iconFontSize\"></i>\n </span>\n </span>\n</a>\n"
956
+ template: "<a\n [class]=\"'wac-button ' + extraClasses\"\n (click)=\"onButtonClick($event)\"\n [ngClass]=\"[label === '' ? 'alone' : '', isLoading ? 'is-loading' : '', disabled ? 'disabled' : '', widthAuto ? 'width-auto' : '', whiteSpaceNowrap ? 'white-space-no-wrap' : '']\"\n>\n <span class=\"wac-button__wrapper\">\n <i *ngIf=\"icon !== ''\" [ngClass]=\"icon\" [style.font-size.px]=\"iconFontSize\"></i>\n {{ label }}\n <i *ngIf=\"iconNext !== ''\" [ngClass]=\"iconNext\" [style.font-size.px]=\"iconFontSize\"></i>\n </span>\n <span\n class=\"wac-button__loader\"\n [ngClass]=\"extraClasses.includes('is-outlined') ? 'outlined' : ''\"\n *ngIf=\"isLoading || interval !== null\"\n [style.width]=\"currentLoading + '%'\"\n >\n <span *ngIf=\"extraClasses.includes('is-outlined')\">\n <i *ngIf=\"icon !== ''\" [ngClass]=\"icon\" [style.font-size.px]=\"iconFontSize\"></i>\n {{ label }}\n <i *ngIf=\"iconNext !== ''\" [ngClass]=\"iconNext\" [style.font-size.px]=\"iconFontSize\"></i>\n </span>\n </span>\n</a>\n"
934
957
  },] }
935
958
  ];
936
959
  ButtonComponent.ctorParameters = function () { return []; };
@@ -943,6 +966,7 @@
943
966
  iconFontSize: [{ type: i0.Input }],
944
967
  hasLoader: [{ type: i0.Input }],
945
968
  disabled: [{ type: i0.Input }],
969
+ whiteSpaceNowrap: [{ type: i0.Input }],
946
970
  click: [{ type: i0.Output }]
947
971
  };
948
972
 
@@ -1704,6 +1728,7 @@
1704
1728
  this.withoutBlock = false;
1705
1729
  this.icon = '';
1706
1730
  this.big = false;
1731
+ this.medium = false;
1707
1732
  this.boldLabel = 'false';
1708
1733
  this.min = null;
1709
1734
  this.max = null;
@@ -1772,7 +1797,7 @@
1772
1797
  InputComponent.decorators = [
1773
1798
  { type: i0.Component, args: [{
1774
1799
  selector: 'wac-input',
1775
- template: "<div\n class=\"field wac-input\"\n [ngClass]=\"{ 'has-no-block': withoutBlock, 'is-big': big, 'with-padding': padding, 'with-progress-bar': progressBar }\"\n>\n <div class=\"field-label is-normal has-text-left\" *ngIf=\"!withoutBlock\">\n <label\n [ngClass]=\"[boldLabel == 'true' ? 'label has-text-weight-bold' : 'label has-text-weight-normal', showTooltip ? 'label-inline' : '']\"\n [innerHTML]=\"label\"\n [for]=\"id\"\n ></label>\n <wac-tooltip\n *ngIf=\"showTooltip\"\n [tooltipIcon]=\"iconTooltip\"\n [tooltipText]=\"textTooltip\"\n [tooltipLink]=\"linkTooltip\"\n [tooltipUrl]=\"urlTooltip\"\n ></wac-tooltip>\n <!-- Size -->\n <span *ngIf=\"value && size && !progressBar\" class=\"is-size-7 wac-input__size\">\n <strong>{{ value.toString().length }}</strong> / {{ size }}\n </span>\n </div>\n <div class=\"field-body\">\n <div class=\"field\">\n <p\n class=\"control\"\n [ngClass]=\"{ 'has-icons-right': textError || success, 'has-icons-left': icon !== '', 'has-input-group': textAppend || textPrepend }\"\n >\n <!-- Text Prepend -->\n <span *ngIf=\"textPrepend\" class=\"has-input-group\">\n <span class=\"has-input-group-text prepend\">{{ textPrepend }}</span>\n <span *ngIf=\"icon !== ''\" class=\"icon is-small is-left\">\n <i [class]=\"icon\"></i>\n </span>\n </span>\n\n <!-- Input -->\n <input\n [class]=\"'input ' + extraClasses\"\n [id]=\"id\"\n [ngClass]=\"{\n 'is-danger': textError,\n 'is-large': big,\n 'is-number': isNumber,\n 'remove-margin': disableMargin,\n 'text-append': textAppend\n }\"\n [type]=\"type\"\n [placeholder]=\"placeholder\"\n [attr.size]=\"size\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n (blur)=\"onBlur()\"\n [disabled]=\"disabled\"\n (focusout)=\"onFocusOut()\"\n [min]=\"min\"\n [max]=\"max\"\n (keypress)=\"keyPress($event)\"\n />\n\n <!-- Indication at the end of the input -->\n <span class=\"indication\" *ngIf=\"indication\">\n <span [innerHTML]=\"indication\"></span>\n </span>\n\n <!-- Text Append -->\n <span *ngIf=\"textAppend\" class=\"has-input-group\">\n <span class=\"has-input-group-text append\">{{ textAppend }}</span>\n <!-- error if text append not empty -->\n <span *ngIf=\"textError\" class=\"icon is-small is-right\">\n <i class=\"fal fa-times has-text-danger\"></i>\n </span>\n </span>\n\n <!-- Icon Left -->\n <span *ngIf=\"icon !== '' && !textPrepend\" class=\"icon is-small is-left\">\n <i [class]=\"icon\"></i>\n </span>\n\n <!-- Icon error if textAppend empty -->\n <span *ngIf=\"textError && !textAppend\" class=\"icon is-small is-right\">\n <i class=\"fal fa-times has-text-danger\"></i>\n </span>\n\n <!-- Icon success -->\n <span *ngIf=\"success\" class=\"icon is-small is-right\">\n <i class=\"fas fa-check has-text-success\"></i>\n </span>\n\n <!-- Text Info -->\n <span\n *ngIf=\"textInfo && (textError === null || textError === '') && !progressBar\"\n class=\"is-size-7 wac-input__info text-info\"\n [innerHtml]=\"textInfo\"\n ></span>\n\n <!-- Text Error -->\n <span *ngIf=\"textError && !progressBar\" class=\"is-size-7 wac-input__error has-text-danger\" [innerHtml]=\"textError\"></span>\n </p>\n\n <!-- Progress Bar -->\n <wac-progress-bar *ngIf=\"progressBar\" [min]=\"min\" [max]=\"max\" [valueLength]=\"value.length\"></wac-progress-bar>\n </div>\n </div>\n</div>\n",
1800
+ template: "<div\n class=\"field wac-input\"\n [ngClass]=\"{ 'has-no-block': withoutBlock, 'is-big': big, 'is-medium': medium, 'with-padding': padding, 'with-progress-bar': progressBar }\"\n>\n <div class=\"field-label is-normal has-text-left\" *ngIf=\"!withoutBlock\">\n <label\n [ngClass]=\"[boldLabel == 'true' ? 'label has-text-weight-bold' : 'label has-text-weight-normal', showTooltip ? 'label-inline' : '']\"\n [innerHTML]=\"label\"\n [for]=\"id\"\n ></label>\n <wac-tooltip\n *ngIf=\"showTooltip\"\n [tooltipIcon]=\"iconTooltip\"\n [tooltipText]=\"textTooltip\"\n [tooltipLink]=\"linkTooltip\"\n [tooltipUrl]=\"urlTooltip\"\n ></wac-tooltip>\n <!-- Size -->\n <span *ngIf=\"value && size && !progressBar\" class=\"is-size-7 wac-input__size\">\n <strong>{{ value.toString().length }}</strong> / {{ size }}\n </span>\n </div>\n <div class=\"field-body\">\n <div class=\"field\">\n <p\n class=\"control\"\n [ngClass]=\"{ 'has-icons-right': textError || success, 'has-icons-left': icon !== '', 'has-input-group': textAppend || textPrepend }\"\n >\n <!-- Text Prepend -->\n <span *ngIf=\"textPrepend\" class=\"has-input-group\">\n <span class=\"has-input-group-text prepend\">{{ textPrepend }}</span>\n <span *ngIf=\"icon !== ''\" class=\"icon is-small is-left\">\n <i [class]=\"icon\"></i>\n </span>\n </span>\n\n <!-- Input -->\n <input\n [class]=\"'input ' + extraClasses\"\n [id]=\"id\"\n [ngClass]=\"{\n 'is-danger': textError,\n 'is-large': big,\n 'is-number': isNumber,\n 'remove-margin': disableMargin,\n 'text-append': textAppend\n }\"\n [type]=\"type\"\n [placeholder]=\"placeholder\"\n [attr.size]=\"size\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n (blur)=\"onBlur()\"\n [disabled]=\"disabled\"\n (focusout)=\"onFocusOut()\"\n [min]=\"min\"\n [max]=\"max\"\n (keypress)=\"keyPress($event)\"\n />\n\n <!-- Indication at the end of the input -->\n <span class=\"indication\" *ngIf=\"indication\">\n <span [innerHTML]=\"indication\"></span>\n </span>\n\n <!-- Text Append -->\n <span *ngIf=\"textAppend\" class=\"has-input-group\">\n <span class=\"has-input-group-text append\">{{ textAppend }}</span>\n <!-- error if text append not empty -->\n <span *ngIf=\"textError\" class=\"icon is-small is-right\">\n <i class=\"fal fa-times has-text-danger\"></i>\n </span>\n </span>\n\n <!-- Icon Left -->\n <span *ngIf=\"icon !== '' && !textPrepend\" class=\"icon is-small is-left\">\n <i [class]=\"icon\"></i>\n </span>\n\n <!-- Icon error if textAppend empty -->\n <span *ngIf=\"textError && !textAppend\" class=\"icon is-small is-right\">\n <i class=\"fal fa-times has-text-danger\"></i>\n </span>\n\n <!-- Icon success -->\n <span *ngIf=\"success\" class=\"icon is-small is-right\">\n <i class=\"fas fa-check has-text-success\"></i>\n </span>\n\n <!-- Text Info -->\n <span\n *ngIf=\"textInfo && (textError === null || textError === '') && !progressBar\"\n class=\"is-size-7 wac-input__info text-info\"\n [innerHtml]=\"textInfo\"\n ></span>\n\n <!-- Text Error -->\n <span *ngIf=\"textError && !progressBar\" class=\"is-size-7 wac-input__error has-text-danger\" [innerHtml]=\"textError\"></span>\n </p>\n\n <!-- Progress Bar -->\n <wac-progress-bar *ngIf=\"progressBar\" [min]=\"min\" [max]=\"max\" [valueLength]=\"value.length\"></wac-progress-bar>\n </div>\n </div>\n</div>\n",
1776
1801
  providers: [{ provide: forms.NG_VALUE_ACCESSOR, useExisting: InputComponent, multi: true }]
1777
1802
  },] }
1778
1803
  ];
@@ -1788,6 +1813,7 @@
1788
1813
  withoutBlock: [{ type: i0.Input }],
1789
1814
  icon: [{ type: i0.Input }],
1790
1815
  big: [{ type: i0.Input }],
1816
+ medium: [{ type: i0.Input }],
1791
1817
  boldLabel: [{ type: i0.Input }],
1792
1818
  min: [{ type: i0.Input }],
1793
1819
  max: [{ type: i0.Input }],
@@ -3438,6 +3464,91 @@
3438
3464
  response: [{ type: i0.Output }]
3439
3465
  };
3440
3466
 
3467
+ var AlertPopupComponent = /** @class */ (function () {
3468
+ function AlertPopupComponent() {
3469
+ /** Subject for notifying the user that the dialog has finished closing. */
3470
+ this.afterClosedPopup = new rxjs.Subject();
3471
+ this.open = false;
3472
+ }
3473
+ AlertPopupComponent.prototype.ngOnInit = function () {
3474
+ var _this = this;
3475
+ setTimeout(function () {
3476
+ _this.open = true;
3477
+ }, 50);
3478
+ if (this.config.duration > 0) {
3479
+ this.timer = setTimeout(function () { return _this.dismiss(); }, this.config.duration);
3480
+ }
3481
+ };
3482
+ AlertPopupComponent.prototype.dismiss = function () {
3483
+ var _this = this;
3484
+ this.open = false;
3485
+ setTimeout(function () {
3486
+ _this.afterClosedPopup.next(true);
3487
+ _this.afterClosedPopup.complete();
3488
+ }, 200);
3489
+ };
3490
+ /**
3491
+ * Gets an observable that is notified when the dialog is finished closing.
3492
+ */
3493
+ AlertPopupComponent.prototype.afterClosed = function () {
3494
+ return this.afterClosedPopup.asObservable();
3495
+ };
3496
+ return AlertPopupComponent;
3497
+ }());
3498
+ AlertPopupComponent.decorators = [
3499
+ { type: i0.Component, args: [{
3500
+ selector: 'wac-alert-popup',
3501
+ template: "<div\n [class]=\"'alert ' + ((config.color) ? config.color : ' is-primary') + ((config.extraClasses) ? ' ' + config.extraClasses : '') + ((config.position) ? ' ' + config.position : '') + ((config.fullsize) ? ' fullsize' : '') + ((config.opacity) ? ' opacity-active' : '') + ((config.small) ? ' small' : '')\"\n [ngClass]=\"{'is-active': open}\"\n>\n <div class=\"alert--message\">\n <span class=\"icon\" *ngIf=\"config.icon\">\n <i [class]=\"config.icon\"></i>\n </span>\n <span (click)=\"dismiss()\" class=\"wac-alert-popup__close\"><i class=\"fas fa-times\"></i></span>\n <p *ngIf=\"config.title\" class=\"wac-alert-popup__title\" [innerHTML]=\"config.title\"></p>\n <p *ngIf=\"config.message\" class=\"wac-alert-popup__text\" [innerHTML]=\"config.message\"></p>\n </div>\n</div>\n",
3502
+ host: {
3503
+ class: 'wac-alert-popup'
3504
+ },
3505
+ encapsulation: i0.ViewEncapsulation.None
3506
+ },] }
3507
+ ];
3508
+
3509
+ var AlertPopupService = /** @class */ (function () {
3510
+ function AlertPopupService(domService) {
3511
+ this.domService = domService;
3512
+ }
3513
+ AlertPopupService.prototype.open = function (config) {
3514
+ var componentRef = this.getComponentRef(config);
3515
+ return componentRef.instance;
3516
+ };
3517
+ AlertPopupService.prototype.getComponentRef = function (config) {
3518
+ var componentRef = this.domService.attachComponentPortal(AlertPopupComponent);
3519
+ config = Object.assign({
3520
+ position: 'is-top'
3521
+ }, config);
3522
+ componentRef.instance.config = config;
3523
+ componentRef.instance.afterClosed().subscribe(function () {
3524
+ componentRef.destroy();
3525
+ });
3526
+ return componentRef;
3527
+ };
3528
+ return AlertPopupService;
3529
+ }());
3530
+ AlertPopupService.decorators = [
3531
+ { type: i0.Injectable }
3532
+ ];
3533
+ AlertPopupService.ctorParameters = function () { return [
3534
+ { type: DomService }
3535
+ ]; };
3536
+
3537
+ var AlertPopupModule = /** @class */ (function () {
3538
+ function AlertPopupModule() {
3539
+ }
3540
+ return AlertPopupModule;
3541
+ }());
3542
+ AlertPopupModule.decorators = [
3543
+ { type: i0.NgModule, args: [{
3544
+ imports: [common.CommonModule],
3545
+ providers: [AlertPopupService],
3546
+ entryComponents: [AlertPopupComponent],
3547
+ declarations: [AlertPopupComponent],
3548
+ exports: [AlertPopupComponent]
3549
+ },] }
3550
+ ];
3551
+
3441
3552
  var components = [
3442
3553
  TagComponent,
3443
3554
  TabComponent,
@@ -3503,7 +3614,7 @@
3503
3614
  imports: [
3504
3615
  common.CommonModule,
3505
3616
  forms.FormsModule,
3506
- i1.NwbAllModule,
3617
+ i1$1.NwbAllModule,
3507
3618
  core.TranslateModule.forChild(),
3508
3619
  forms.ReactiveFormsModule,
3509
3620
  SharedDirectives,
@@ -3518,6 +3629,7 @@
3518
3629
  LoaderModule,
3519
3630
  ProgressBarModule,
3520
3631
  ngxPerfectScrollbar.PerfectScrollbarModule,
3632
+ AlertPopupModule,
3521
3633
  router.RouterModule
3522
3634
  ],
3523
3635
  declarations: components,
@@ -3536,7 +3648,7 @@
3536
3648
  common.CommonModule,
3537
3649
  SharedComponentsModule,
3538
3650
  SharedDirectives,
3539
- i1.NwbAllModule
3651
+ i1$1.NwbAllModule
3540
3652
  ],
3541
3653
  exports: [SharedComponentsModule, SharedDirectives]
3542
3654
  },] }
@@ -3552,6 +3664,8 @@
3552
3664
 
3553
3665
  exports.AbstractDebounceDirective = AbstractDebounceDirective;
3554
3666
  exports.AlertComponent = AlertComponent;
3667
+ exports.AlertPopupComponent = AlertPopupComponent;
3668
+ exports.AlertPopupService = AlertPopupService;
3555
3669
  exports.AutoHideDirective = AutoHideDirective;
3556
3670
  exports.BackComponent = BackComponent;
3557
3671
  exports.BlockComponent = BlockComponent;
@@ -3623,7 +3737,8 @@
3623
3737
  exports.ɵk = LoaderModule;
3624
3738
  exports.ɵl = CheckboxModule;
3625
3739
  exports.ɵm = inOutY;
3626
- exports.ɵn = inOutX;
3740
+ exports.ɵn = AlertPopupModule;
3741
+ exports.ɵo = inOutX;
3627
3742
 
3628
3743
  Object.defineProperty(exports, '__esModule', { value: true });
3629
3744