ngx-smz-ui 3.6.4 → 3.6.5
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.
- package/bundles/ngx-smz-ui.umd.js +58 -30
- package/bundles/ngx-smz-ui.umd.js.map +1 -1
- package/esm2015/lib/modules/smz-dialogs/dynamicdialog/dynamicdialog.js +77 -55
- package/esm2015/lib/modules/smz-dialogs/services/smz-dialogs.service.js +15 -5
- package/fesm2015/ngx-smz-ui.js +85 -57
- package/fesm2015/ngx-smz-ui.js.map +1 -1
- package/lib/modules/smz-dialogs/dynamicdialog/dynamicdialog.d.ts +6 -1
- package/lib/modules/smz-dialogs/services/smz-dialogs.service.d.ts +3 -1
- package/package.json +1 -1
- package/resources/assets/scss/contents/primeone-light.css +7 -3
|
@@ -5305,7 +5305,7 @@
|
|
|
5305
5305
|
animations.animate('{{transition}}', animations.style({ transform: '{{transform}}', opacity: 0 }))
|
|
5306
5306
|
]);
|
|
5307
5307
|
var DynamicDialogComponent = /** @class */ (function () {
|
|
5308
|
-
function DynamicDialogComponent(componentFactoryResolver, cd, renderer, config, dialogRef, zone, dialogConfig) {
|
|
5308
|
+
function DynamicDialogComponent(componentFactoryResolver, cd, renderer, config, dialogRef, zone, dialogConfig, rbkConfig, primeNGConfig) {
|
|
5309
5309
|
this.componentFactoryResolver = componentFactoryResolver;
|
|
5310
5310
|
this.cd = cd;
|
|
5311
5311
|
this.renderer = renderer;
|
|
@@ -5313,6 +5313,8 @@
|
|
|
5313
5313
|
this.dialogRef = dialogRef;
|
|
5314
5314
|
this.zone = zone;
|
|
5315
5315
|
this.dialogConfig = dialogConfig;
|
|
5316
|
+
this.rbkConfig = rbkConfig;
|
|
5317
|
+
this.primeNGConfig = primeNGConfig;
|
|
5316
5318
|
this.visible = true;
|
|
5317
5319
|
this.transformOptions = "scale(0.7)";
|
|
5318
5320
|
this.domId = 'smz-dialog';
|
|
@@ -5361,9 +5363,16 @@
|
|
|
5361
5363
|
};
|
|
5362
5364
|
DynamicDialogComponent.prototype.moveOnTop = function () {
|
|
5363
5365
|
if (this.config.autoZIndex !== false) {
|
|
5364
|
-
|
|
5365
|
-
this.
|
|
5366
|
-
this.
|
|
5366
|
+
utils.ZIndexUtils.set('modal', this.container, (this.config.baseZIndex || 0) + this.primeNGConfig.zIndex.modal);
|
|
5367
|
+
this.wrapper.style.zIndex = String(parseInt(this.container.style.zIndex, 10) - 1);
|
|
5368
|
+
if (this.rbkConfig.debugMode) {
|
|
5369
|
+
console.groupCollapsed('DynamicDialogComponent => moveOnTop()');
|
|
5370
|
+
console.log('config.baseZIndex', this.config.baseZIndex);
|
|
5371
|
+
console.log('DomHandler.zindex', dom.DomHandler.zindex);
|
|
5372
|
+
console.log('primeNGConfig', this.primeNGConfig);
|
|
5373
|
+
console.log('wrapper.style.zIndex', this.wrapper.style.zIndex);
|
|
5374
|
+
console.groupEnd();
|
|
5375
|
+
}
|
|
5367
5376
|
}
|
|
5368
5377
|
};
|
|
5369
5378
|
DynamicDialogComponent.prototype.onAnimationStart = function (event) {
|
|
@@ -5379,20 +5388,22 @@
|
|
|
5379
5388
|
this.focus();
|
|
5380
5389
|
break;
|
|
5381
5390
|
case 'void':
|
|
5382
|
-
this.
|
|
5391
|
+
if (this.wrapper && this.config.modal !== false) {
|
|
5392
|
+
dom.DomHandler.addClass(this.wrapper, 'p-component-overlay-leave');
|
|
5393
|
+
}
|
|
5383
5394
|
break;
|
|
5384
5395
|
}
|
|
5385
5396
|
};
|
|
5386
5397
|
DynamicDialogComponent.prototype.onAnimationEnd = function (event) {
|
|
5387
5398
|
if (event.toState === 'void') {
|
|
5399
|
+
this.onContainerDestroy();
|
|
5388
5400
|
this.dialogRef.destroy();
|
|
5389
5401
|
}
|
|
5390
5402
|
};
|
|
5391
5403
|
DynamicDialogComponent.prototype.onContainerDestroy = function () {
|
|
5392
5404
|
this.unbindGlobalListeners();
|
|
5393
|
-
if (this.
|
|
5394
|
-
|
|
5395
|
-
this.maximized = false;
|
|
5405
|
+
if (this.container && this.config.autoZIndex !== false) {
|
|
5406
|
+
utils.ZIndexUtils.clear(this.container);
|
|
5396
5407
|
}
|
|
5397
5408
|
if (this.config.modal !== false) {
|
|
5398
5409
|
this.disableModality();
|
|
@@ -5401,6 +5412,12 @@
|
|
|
5401
5412
|
};
|
|
5402
5413
|
DynamicDialogComponent.prototype.close = function () {
|
|
5403
5414
|
this.visible = false;
|
|
5415
|
+
this.cd.markForCheck();
|
|
5416
|
+
};
|
|
5417
|
+
DynamicDialogComponent.prototype.hide = function () {
|
|
5418
|
+
if (this.dialogRef) {
|
|
5419
|
+
this.dialogRef.close();
|
|
5420
|
+
}
|
|
5404
5421
|
};
|
|
5405
5422
|
DynamicDialogComponent.prototype.maximize = function () {
|
|
5406
5423
|
this.maximized = !this.maximized;
|
|
@@ -5415,14 +5432,13 @@
|
|
|
5415
5432
|
DynamicDialogComponent.prototype.enableModality = function () {
|
|
5416
5433
|
var _this = this;
|
|
5417
5434
|
if (this.config.closable !== false && this.config.dismissableMask) {
|
|
5418
|
-
this.maskClickListener = this.renderer.listen(this.wrapper, '
|
|
5435
|
+
this.maskClickListener = this.renderer.listen(this.wrapper, 'mousedown', function (event) {
|
|
5419
5436
|
if (_this.wrapper && _this.wrapper.isSameNode(event.target)) {
|
|
5420
|
-
_this.
|
|
5437
|
+
_this.hide();
|
|
5421
5438
|
}
|
|
5422
5439
|
});
|
|
5423
5440
|
}
|
|
5424
5441
|
if (this.config.modal !== false) {
|
|
5425
|
-
dom.DomHandler.addClass(document.body, 'ui-overflow-hidden');
|
|
5426
5442
|
dom.DomHandler.addClass(document.body, 'p-overflow-hidden');
|
|
5427
5443
|
}
|
|
5428
5444
|
};
|
|
@@ -5432,7 +5448,6 @@
|
|
|
5432
5448
|
this.unbindMaskClickListener();
|
|
5433
5449
|
}
|
|
5434
5450
|
if (this.config.modal !== false) {
|
|
5435
|
-
dom.DomHandler.removeClass(document.body, 'ui-overflow-hidden');
|
|
5436
5451
|
dom.DomHandler.removeClass(document.body, 'p-overflow-hidden');
|
|
5437
5452
|
}
|
|
5438
5453
|
if (!this.cd.destroyed) {
|
|
@@ -5445,11 +5460,11 @@
|
|
|
5445
5460
|
event.preventDefault();
|
|
5446
5461
|
var focusableElements = dom.DomHandler.getFocusableElements(this.container);
|
|
5447
5462
|
if (focusableElements && focusableElements.length > 0) {
|
|
5448
|
-
if (!
|
|
5463
|
+
if (!focusableElements[0].ownerDocument.activeElement) {
|
|
5449
5464
|
focusableElements[0].focus();
|
|
5450
5465
|
}
|
|
5451
5466
|
else {
|
|
5452
|
-
var focusedIndex = focusableElements.indexOf(
|
|
5467
|
+
var focusedIndex = focusableElements.indexOf(focusableElements[0].ownerDocument.activeElement);
|
|
5453
5468
|
if (event.shiftKey) {
|
|
5454
5469
|
if (focusedIndex == -1 || focusedIndex === 0)
|
|
5455
5470
|
focusableElements[focusableElements.length - 1].focus();
|
|
@@ -5467,7 +5482,7 @@
|
|
|
5467
5482
|
}
|
|
5468
5483
|
};
|
|
5469
5484
|
DynamicDialogComponent.prototype.focus = function () {
|
|
5470
|
-
var focusable = dom.DomHandler.findSingle(this.container, '
|
|
5485
|
+
var focusable = dom.DomHandler.findSingle(this.container, '[autofocus]');
|
|
5471
5486
|
if (focusable) {
|
|
5472
5487
|
this.zone.runOutsideAngular(function () {
|
|
5473
5488
|
setTimeout(function () { return focusable.focus(); }, 5);
|
|
@@ -5499,12 +5514,11 @@
|
|
|
5499
5514
|
};
|
|
5500
5515
|
DynamicDialogComponent.prototype.bindDocumentEscapeListener = function () {
|
|
5501
5516
|
var _this = this;
|
|
5502
|
-
this.
|
|
5517
|
+
var documentTarget = this.maskViewChild ? this.maskViewChild.nativeElement.ownerDocument : 'document';
|
|
5518
|
+
this.documentEscapeListener = this.renderer.listen(documentTarget, 'keydown', function (event) {
|
|
5503
5519
|
if (event.which == 27) {
|
|
5504
|
-
if (parseInt(_this.container.style.zIndex) ==
|
|
5505
|
-
|
|
5506
|
-
_this.close();
|
|
5507
|
-
}
|
|
5520
|
+
if (parseInt(_this.container.style.zIndex) == utils.ZIndexUtils.getCurrent()) {
|
|
5521
|
+
_this.hide();
|
|
5508
5522
|
}
|
|
5509
5523
|
}
|
|
5510
5524
|
});
|
|
@@ -5529,8 +5543,8 @@
|
|
|
5529
5543
|
};
|
|
5530
5544
|
return DynamicDialogComponent;
|
|
5531
5545
|
}());
|
|
5532
|
-
DynamicDialogComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: DynamicDialogComponent, deps: [{ token: i0__namespace.ComponentFactoryResolver }, { token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.Renderer2 }, { token: DynamicDialogConfig }, { token: DynamicDialogRef }, { token: i0__namespace.NgZone }, { token: SmzDynamicDialogConfig }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5533
|
-
DynamicDialogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: DynamicDialogComponent, selector: "smz-dynamicDialog", outputs: { onMaximize: "onMaximize" }, host: { listeners: { "document:keydown.escape": "onEscapeHandler($event)" }, properties: { "attr.id": "this.domId" } }, viewQueries: [{ propertyName: "insertionPoint", first: true, predicate: DynamicDialogContent, descendants: true }, { propertyName: "insertionFooter", first: true, predicate: DynamicDialogFooter, descendants: true }, { propertyName: "maskViewChild", first: true, predicate: ["mask"], descendants: true }], ngImport: i0__namespace, template: "\n <div #mask [ngClass]=\"{'
|
|
5546
|
+
DynamicDialogComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: DynamicDialogComponent, deps: [{ token: i0__namespace.ComponentFactoryResolver }, { token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.Renderer2 }, { token: DynamicDialogConfig }, { token: DynamicDialogRef }, { token: i0__namespace.NgZone }, { token: SmzDynamicDialogConfig }, { token: NgxRbkUtilsConfig }, { token: i1__namespace$6.PrimeNGConfig }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5547
|
+
DynamicDialogComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: DynamicDialogComponent, selector: "smz-dynamicDialog", outputs: { onMaximize: "onMaximize" }, host: { listeners: { "document:keydown.escape": "onEscapeHandler($event)" }, properties: { "attr.id": "this.domId" }, classAttribute: "p-element" }, viewQueries: [{ propertyName: "insertionPoint", first: true, predicate: DynamicDialogContent, descendants: true }, { propertyName: "insertionFooter", first: true, predicate: DynamicDialogFooter, descendants: true }, { propertyName: "maskViewChild", first: true, predicate: ["mask"], descendants: true }], ngImport: i0__namespace, template: "\n <div #mask [ngClass]=\"{'p-dialog-mask':true, 'p-component-overlay p-component-overlay-enter p-dialog-mask-scrollblocker': config.modal !== false}\" class=\"smz_form_grid_container\">\n <div [ngClass]=\"{'p-dialog p-dynamic-dialog p-component':true, 'p-dialog-rtl': config.rtl, 'p-dialog-maximized': maximized}\" [ngStyle]=\"config.style\" [class]=\"config.styleClass\"\n [@animation]=\"{value: 'visible', params: {transform: transformOptions, transition: config.transitionOptions || '150ms cubic-bezier(0, 0, 0.2, 1)'}}\"\n (@animation.start)=\"onAnimationStart($event)\" (@animation.done)=\"onAnimationEnd($event)\" role=\"dialog\" *ngIf=\"visible\"\n [style.width]=\"config.width\" [style.height]=\"config.height\">\n <div class=\"p-dialog-header\" [ngStyle]=\"config.headerStyle\" *ngIf=\"config.showHeader === false ? false: true\">\n <span class=\"p-dialog-title\">{{config.header}}</span>\n <div class=\"p-dialog-header-icons\" [ngClass]=\"{ 'disable-a': dialogConfig.data._context.isGlobalDisabled }\">\n <button [ngClass]=\"'p-dialog-header-icon p-dialog-header-maximize p-link'\" type=\"button\" (click)=\"maximize()\" (keydown.enter)=\"maximize()\" *ngIf=\"config.maximizable !== false\">\n <span class=\"p-dialog-header-close-icon\" [ngClass]=\"maximized ? minimizeIcon : maximizeIcon\"></span>\n </button>\n <button [ngClass]=\"'p-dialog-header-icon p-dialog-header-maximize p-link'\" type=\"button\" (click)=\"hide()\" (keydown.enter)=\"hide()\" *ngIf=\"config.closable !== false\">\n <span class=\"p-dialog-header-close-icon pi pi-times\"></span>\n </button>\n </div>\n </div>\n <div class=\"p-dialog-content\" [ngStyle]=\"config.contentStyle\" [ngClass]=\"{ 'disable-ui-dialog-content': dialogConfig.data._context.isGlobalDisabled }\">\n <ng-template pDynamicDialogContent></ng-template>\n </div>\n <div class=\"p-dialog-footer\" *ngIf=\"config.footer\" [ngStyle]=\"config.footerStyle\" [ngClass]=\"{ 'disable-container': dialogConfig.data._context.isGlobalDisabled }\">\n <ng-template pDynamicDialogFooter></ng-template>\n </div>\n </div>\n </div>\n\t", isInline: true, styles: [".p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative;padding:unset}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translate(0)}.p-dialog-maximized{transition:none;transform:none;width:100vw!important;height:100vh!important;top:0px!important;left:0px!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}\n"], directives: [{ type: i0__namespace.forwardRef(function () { return i1__namespace.NgClass; }), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i0__namespace.forwardRef(function () { return i1__namespace.NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i0__namespace.forwardRef(function () { return i1__namespace.NgStyle; }), selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i0__namespace.forwardRef(function () { return DynamicDialogContent; }), selector: "[pDynamicDialogContent]" }, { type: i0__namespace.forwardRef(function () { return DynamicDialogFooter; }), selector: "[pDynamicDialogFooter]" }], animations: [
|
|
5534
5548
|
animations.trigger('animation', [
|
|
5535
5549
|
animations.transition('void => visible', [
|
|
5536
5550
|
animations.useAnimation(showAnimation)
|
|
@@ -5539,12 +5553,12 @@
|
|
|
5539
5553
|
animations.useAnimation(hideAnimation)
|
|
5540
5554
|
])
|
|
5541
5555
|
])
|
|
5542
|
-
], changeDetection: i0__namespace.ChangeDetectionStrategy.Default });
|
|
5556
|
+
], changeDetection: i0__namespace.ChangeDetectionStrategy.Default, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
5543
5557
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: DynamicDialogComponent, decorators: [{
|
|
5544
5558
|
type: i0.Component,
|
|
5545
5559
|
args: [{
|
|
5546
5560
|
selector: 'smz-dynamicDialog',
|
|
5547
|
-
template: "\n <div #mask [ngClass]=\"{'
|
|
5561
|
+
template: "\n <div #mask [ngClass]=\"{'p-dialog-mask':true, 'p-component-overlay p-component-overlay-enter p-dialog-mask-scrollblocker': config.modal !== false}\" class=\"smz_form_grid_container\">\n <div [ngClass]=\"{'p-dialog p-dynamic-dialog p-component':true, 'p-dialog-rtl': config.rtl, 'p-dialog-maximized': maximized}\" [ngStyle]=\"config.style\" [class]=\"config.styleClass\"\n [@animation]=\"{value: 'visible', params: {transform: transformOptions, transition: config.transitionOptions || '150ms cubic-bezier(0, 0, 0.2, 1)'}}\"\n (@animation.start)=\"onAnimationStart($event)\" (@animation.done)=\"onAnimationEnd($event)\" role=\"dialog\" *ngIf=\"visible\"\n [style.width]=\"config.width\" [style.height]=\"config.height\">\n <div class=\"p-dialog-header\" [ngStyle]=\"config.headerStyle\" *ngIf=\"config.showHeader === false ? false: true\">\n <span class=\"p-dialog-title\">{{config.header}}</span>\n <div class=\"p-dialog-header-icons\" [ngClass]=\"{ 'disable-a': dialogConfig.data._context.isGlobalDisabled }\">\n <button [ngClass]=\"'p-dialog-header-icon p-dialog-header-maximize p-link'\" type=\"button\" (click)=\"maximize()\" (keydown.enter)=\"maximize()\" *ngIf=\"config.maximizable !== false\">\n <span class=\"p-dialog-header-close-icon\" [ngClass]=\"maximized ? minimizeIcon : maximizeIcon\"></span>\n </button>\n <button [ngClass]=\"'p-dialog-header-icon p-dialog-header-maximize p-link'\" type=\"button\" (click)=\"hide()\" (keydown.enter)=\"hide()\" *ngIf=\"config.closable !== false\">\n <span class=\"p-dialog-header-close-icon pi pi-times\"></span>\n </button>\n </div>\n </div>\n <div class=\"p-dialog-content\" [ngStyle]=\"config.contentStyle\" [ngClass]=\"{ 'disable-ui-dialog-content': dialogConfig.data._context.isGlobalDisabled }\">\n <ng-template pDynamicDialogContent></ng-template>\n </div>\n <div class=\"p-dialog-footer\" *ngIf=\"config.footer\" [ngStyle]=\"config.footerStyle\" [ngClass]=\"{ 'disable-container': dialogConfig.data._context.isGlobalDisabled }\">\n <ng-template pDynamicDialogFooter></ng-template>\n </div>\n </div>\n </div>\n\t",
|
|
5548
5562
|
animations: [
|
|
5549
5563
|
animations.trigger('animation', [
|
|
5550
5564
|
animations.transition('void => visible', [
|
|
@@ -5555,9 +5569,14 @@
|
|
|
5555
5569
|
])
|
|
5556
5570
|
])
|
|
5557
5571
|
],
|
|
5558
|
-
changeDetection: i0.ChangeDetectionStrategy.Default
|
|
5572
|
+
changeDetection: i0.ChangeDetectionStrategy.Default,
|
|
5573
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
5574
|
+
styleUrls: ['./dialog.css'],
|
|
5575
|
+
host: {
|
|
5576
|
+
'class': 'p-element'
|
|
5577
|
+
}
|
|
5559
5578
|
}]
|
|
5560
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.Renderer2 }, { type: DynamicDialogConfig }, { type: DynamicDialogRef }, { type: i0__namespace.NgZone }, { type: SmzDynamicDialogConfig }]; }, propDecorators: { insertionPoint: [{
|
|
5579
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.Renderer2 }, { type: DynamicDialogConfig }, { type: DynamicDialogRef }, { type: i0__namespace.NgZone }, { type: SmzDynamicDialogConfig }, { type: NgxRbkUtilsConfig }, { type: i1__namespace$6.PrimeNGConfig }]; }, propDecorators: { insertionPoint: [{
|
|
5561
5580
|
type: i0.ViewChild,
|
|
5562
5581
|
args: [DynamicDialogContent]
|
|
5563
5582
|
}], insertionFooter: [{
|
|
@@ -10043,12 +10062,13 @@
|
|
|
10043
10062
|
}
|
|
10044
10063
|
};
|
|
10045
10064
|
var SmzDialogsService = /** @class */ (function () {
|
|
10046
|
-
function SmzDialogsService(moduleConfig, dialogService, refService, visibilityService, featuresService) {
|
|
10065
|
+
function SmzDialogsService(moduleConfig, dialogService, refService, visibilityService, featuresService, rbkConfig) {
|
|
10047
10066
|
this.moduleConfig = moduleConfig;
|
|
10048
10067
|
this.dialogService = dialogService;
|
|
10049
10068
|
this.refService = refService;
|
|
10050
10069
|
this.visibilityService = visibilityService;
|
|
10051
10070
|
this.featuresService = featuresService;
|
|
10071
|
+
this.rbkConfig = rbkConfig;
|
|
10052
10072
|
this.dialogRefs = [];
|
|
10053
10073
|
BASE_DIALOG.behaviors = moduleConfig.dialogs.behaviors;
|
|
10054
10074
|
BASE_DIALOG.dialogTemplate = moduleConfig.dialogs.dialogTemplate;
|
|
@@ -10101,7 +10121,15 @@
|
|
|
10101
10121
|
});
|
|
10102
10122
|
ref.id = dialogId;
|
|
10103
10123
|
this.dialogRefs.push(ref);
|
|
10104
|
-
|
|
10124
|
+
if (this.rbkConfig.debugMode) {
|
|
10125
|
+
console.groupCollapsed('SmzDialogsService => open()');
|
|
10126
|
+
console.log('SmzDialogsConfig', this.moduleConfig);
|
|
10127
|
+
console.log('dialog', dialog);
|
|
10128
|
+
console.log('config', config);
|
|
10129
|
+
console.log('behaviors', behaviors);
|
|
10130
|
+
console.log('data', data);
|
|
10131
|
+
console.groupEnd();
|
|
10132
|
+
}
|
|
10105
10133
|
return ref;
|
|
10106
10134
|
};
|
|
10107
10135
|
SmzDialogsService.prototype.closeAll = function () {
|
|
@@ -10343,14 +10371,14 @@
|
|
|
10343
10371
|
};
|
|
10344
10372
|
return SmzDialogsService;
|
|
10345
10373
|
}());
|
|
10346
|
-
SmzDialogsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzDialogsService, deps: [{ token: SmzDialogsConfig }, { token: DialogService }, { token: DynamicDialogRef }, { token: SmzDialogsVisibilityService }, { token: SmzFeaturesService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
10374
|
+
SmzDialogsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzDialogsService, deps: [{ token: SmzDialogsConfig }, { token: DialogService }, { token: DynamicDialogRef }, { token: SmzDialogsVisibilityService }, { token: SmzFeaturesService }, { token: NgxRbkUtilsConfig }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
10347
10375
|
SmzDialogsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzDialogsService, providedIn: 'root' });
|
|
10348
10376
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzDialogsService, decorators: [{
|
|
10349
10377
|
type: i0.Injectable,
|
|
10350
10378
|
args: [{
|
|
10351
10379
|
providedIn: 'root'
|
|
10352
10380
|
}]
|
|
10353
|
-
}], ctorParameters: function () { return [{ type: SmzDialogsConfig }, { type: DialogService }, { type: DynamicDialogRef }, { type: SmzDialogsVisibilityService }, { type: SmzFeaturesService }]; } });
|
|
10381
|
+
}], ctorParameters: function () { return [{ type: SmzDialogsConfig }, { type: DialogService }, { type: DynamicDialogRef }, { type: SmzDialogsVisibilityService }, { type: SmzFeaturesService }, { type: NgxRbkUtilsConfig }]; } });
|
|
10354
10382
|
|
|
10355
10383
|
var getInitialState$7 = function () { return ({}); };
|
|
10356
10384
|
// @dynamic
|