ngx-smz-ui 3.6.3 → 3.6.7
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 +212 -86
- package/bundles/ngx-smz-ui.umd.js.map +1 -1
- package/esm2015/lib/builders/smz-documents/document-cells.js +6 -2
- package/esm2015/lib/builders/smz-documents/document-content.js +2 -2
- 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/esm2015/lib/modules/smz-documents/components/chart/chart.component.js +4 -3
- package/esm2015/lib/modules/smz-documents/components/content/content.component.js +2 -2
- package/esm2015/lib/modules/smz-documents/models/smz-document-features.js +1 -1
- package/esm2015/lib/modules/smz-documents/services/smz-documents.service.js +1 -1
- package/esm2015/lib/modules/smz-menu/components/menu.js +144 -154
- package/fesm2015/ngx-smz-ui.js +228 -209
- package/fesm2015/ngx-smz-ui.js.map +1 -1
- package/lib/builders/smz-documents/document-cells.d.ts +1 -0
- 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/lib/modules/smz-documents/models/smz-document-features.d.ts +1 -0
- package/lib/modules/smz-menu/components/menu.d.ts +16 -8
- 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: [{
|
|
@@ -7417,17 +7436,67 @@
|
|
|
7417
7436
|
function MenuItemContent(menu) {
|
|
7418
7437
|
this.menu = menu;
|
|
7419
7438
|
}
|
|
7439
|
+
MenuItemContent.prototype.onItemKeyDown = function (event) {
|
|
7440
|
+
var listItem = event.currentTarget.parentElement;
|
|
7441
|
+
switch (event.code) {
|
|
7442
|
+
case "ArrowDown":
|
|
7443
|
+
var nextItem = this.findNextItem(listItem);
|
|
7444
|
+
if (nextItem) {
|
|
7445
|
+
nextItem.children[0].focus();
|
|
7446
|
+
}
|
|
7447
|
+
event.preventDefault();
|
|
7448
|
+
break;
|
|
7449
|
+
case "ArrowUp":
|
|
7450
|
+
var prevItem = this.findPrevItem(listItem);
|
|
7451
|
+
if (prevItem) {
|
|
7452
|
+
prevItem.children[0].focus();
|
|
7453
|
+
}
|
|
7454
|
+
event.preventDefault();
|
|
7455
|
+
break;
|
|
7456
|
+
case "Space":
|
|
7457
|
+
case "Enter":
|
|
7458
|
+
if (listItem && !dom.DomHandler.hasClass(listItem, "p-disabled")) {
|
|
7459
|
+
listItem.children[0].click();
|
|
7460
|
+
}
|
|
7461
|
+
event.preventDefault();
|
|
7462
|
+
break;
|
|
7463
|
+
default:
|
|
7464
|
+
break;
|
|
7465
|
+
}
|
|
7466
|
+
};
|
|
7467
|
+
MenuItemContent.prototype.findNextItem = function (item) {
|
|
7468
|
+
var nextItem = item.nextElementSibling;
|
|
7469
|
+
if (nextItem)
|
|
7470
|
+
return dom.DomHandler.hasClass(nextItem, "p-disabled") ||
|
|
7471
|
+
!dom.DomHandler.hasClass(nextItem, "p-menuitem")
|
|
7472
|
+
? this.findNextItem(nextItem)
|
|
7473
|
+
: nextItem;
|
|
7474
|
+
else
|
|
7475
|
+
return null;
|
|
7476
|
+
};
|
|
7477
|
+
MenuItemContent.prototype.findPrevItem = function (item) {
|
|
7478
|
+
var prevItem = item.previousElementSibling;
|
|
7479
|
+
if (prevItem)
|
|
7480
|
+
return dom.DomHandler.hasClass(prevItem, "p-disabled") ||
|
|
7481
|
+
!dom.DomHandler.hasClass(prevItem, "p-menuitem")
|
|
7482
|
+
? this.findPrevItem(prevItem)
|
|
7483
|
+
: prevItem;
|
|
7484
|
+
else
|
|
7485
|
+
return null;
|
|
7486
|
+
};
|
|
7420
7487
|
return MenuItemContent;
|
|
7421
7488
|
}());
|
|
7422
7489
|
MenuItemContent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: MenuItemContent, deps: [{ token: i0.forwardRef(function () { return Menu; }) }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
7423
|
-
MenuItemContent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: MenuItemContent, selector: "[
|
|
7490
|
+
MenuItemContent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: MenuItemContent, selector: "[smzMenuItemContent]", inputs: { item: ["smzMenuItemContent", "item"] }, host: { classAttribute: "p-element" }, ngImport: i0__namespace, template: "<a\n *ngIf=\"!item.routerLink\"\n (keydown)=\"onItemKeyDown($event)\"\n [attr.href]=\"item.url || null\"\n class=\"p-menuitem-link\"\n [attr.tabindex]=\"item.disabled ? null : '0'\"\n [attr.data-automationid]=\"item.automationId\"\n [attr.target]=\"item.target\"\n [attr.title]=\"item.title\"\n [attr.id]=\"item.id\"\n [ngClass]=\"{ 'p-disabled': item.disabled }\"\n (click)=\"menu.itemClick($event, item)\"\n role=\"menuitem\"\n>\n <span class=\"p-menuitem-icon\" *ngIf=\"item.icon\" [ngClass]=\"item.icon\"></span>\n <span class=\"p-menuitem-text\" *ngIf=\"item.escape !== false; else htmlLabel\"\n >{{ item.label }}</span\n >\n <ng-template #htmlLabel\n ><span class=\"p-menuitem-text\" [innerHTML]=\"item.label\"></span\n ></ng-template>\n</a>\n<a\n *ngIf=\"item.routerLink\"\n (keydown)=\"onItemKeyDown($event)\"\n [routerLink]=\"item.routerLink\"\n [attr.data-automationid]=\"item.automationId\"\n [queryParams]=\"item.queryParams\"\n [routerLinkActive]=\"'p-menuitem-link-active'\"\n [routerLinkActiveOptions]=\"item.routerLinkActiveOptions || { exact: false }\"\n class=\"p-menuitem-link\"\n [attr.target]=\"item.target\"\n [attr.id]=\"item.id\"\n [attr.tabindex]=\"item.disabled ? null : '0'\"\n [attr.title]=\"item.title\"\n [ngClass]=\"{ 'p-disabled': item.disabled }\"\n (click)=\"menu.itemClick($event, item)\"\n role=\"menuitem\"\n pRipple\n [fragment]=\"item.fragment\"\n [queryParamsHandling]=\"item.queryParamsHandling\"\n [preserveFragment]=\"item.preserveFragment\"\n [skipLocationChange]=\"item.skipLocationChange\"\n [replaceUrl]=\"item.replaceUrl\"\n [state]=\"item.state\"\n>\n <span class=\"p-menuitem-icon\" *ngIf=\"item.icon\" [ngClass]=\"item.icon\"></span>\n <span\n class=\"p-menuitem-text\"\n *ngIf=\"item.escape !== false; else htmlRouteLabel\"\n >{{ item.label }}</span\n >\n <ng-template #htmlRouteLabel\n ><span class=\"p-menuitem-text\" [innerHTML]=\"item.label\"></span\n ></ng-template>\n</a>\n", directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace$f.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i3__namespace$4.Ripple, selector: "[pRipple]" }, { type: i1__namespace$f.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], exportAs: ["routerLinkActive"] }], encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
7424
7491
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: MenuItemContent, decorators: [{
|
|
7425
7492
|
type: i0.Component,
|
|
7426
7493
|
args: [{
|
|
7427
|
-
selector:
|
|
7428
|
-
template: "\n <a *ngIf=\"!item.routerLink\" [attr.href]=\"item.url||null\" class=\"p-menuitem-link\" [attr.tabindex]=\"item.disabled ? null : '0'\" [attr.data-automationid]=\"item.automationId\" [attr.target]=\"item.target\" [attr.title]=\"item.title\" [attr.id]=\"item.id\"\n [ngClass]=\"{'p-disabled':item.disabled}\" (click)=\"menu.itemClick($event, item)\" role=\"menuitem\">\n <span class=\"p-menuitem-icon\" *ngIf=\"item.icon\" [ngClass]=\"item.icon\"></span>\n <span class=\"p-menuitem-text\" *ngIf=\"item.escape !== false; else htmlLabel\">{{item.label}}</span>\n <ng-template #htmlLabel><span class=\"p-menuitem-text\" [innerHTML]=\"item.label\"></span></ng-template>\n </a>\n <a *ngIf=\"item.routerLink\" [routerLink]=\"item.routerLink\" [attr.data-automationid]=\"item.automationId\" [queryParams]=\"item.queryParams\" [routerLinkActive]=\"'p-menuitem-link-active'\"\n [routerLinkActiveOptions]=\"item.routerLinkActiveOptions||{exact:false}\" class=\"p-menuitem-link\" [attr.target]=\"item.target\" [attr.id]=\"item.id\" [attr.tabindex]=\"item.disabled ? null : '0'\"\n [attr.title]=\"item.title\" [ngClass]=\"{'p-disabled':item.disabled}\" (click)=\"menu.itemClick($event, item)\" role=\"menuitem\" pRipple\n [fragment]=\"item.fragment\" [queryParamsHandling]=\"item.queryParamsHandling\" [preserveFragment]=\"item.preserveFragment\" [skipLocationChange]=\"item.skipLocationChange\" [replaceUrl]=\"item.replaceUrl\" [state]=\"item.state\">\n <span class=\"p-menuitem-icon\" *ngIf=\"item.icon\" [ngClass]=\"item.icon\"></span>\n <span class=\"p-menuitem-text\" *ngIf=\"item.escape !== false; else htmlRouteLabel\">{{item.label}}</span>\n <ng-template #htmlRouteLabel><span class=\"p-menuitem-text\" [innerHTML]=\"item.label\"></span></ng-template>\n </a>\n ",
|
|
7494
|
+
selector: "[smzMenuItemContent]",
|
|
7429
7495
|
encapsulation: i0.ViewEncapsulation.None,
|
|
7430
|
-
|
|
7496
|
+
templateUrl: "./menu-item-content.html",
|
|
7497
|
+
host: {
|
|
7498
|
+
class: "p-element",
|
|
7499
|
+
},
|
|
7431
7500
|
}]
|
|
7432
7501
|
}], ctorParameters: function () {
|
|
7433
7502
|
return [{ type: undefined, decorators: [{
|
|
@@ -7436,17 +7505,19 @@
|
|
|
7436
7505
|
}] }];
|
|
7437
7506
|
}, propDecorators: { item: [{
|
|
7438
7507
|
type: i0.Input,
|
|
7439
|
-
args: ["
|
|
7508
|
+
args: ["smzMenuItemContent"]
|
|
7440
7509
|
}] } });
|
|
7441
7510
|
var Menu = /** @class */ (function () {
|
|
7442
|
-
function Menu(el, renderer, cd) {
|
|
7511
|
+
function Menu(el, renderer, cd, config, overlayService) {
|
|
7443
7512
|
this.el = el;
|
|
7444
7513
|
this.renderer = renderer;
|
|
7445
7514
|
this.cd = cd;
|
|
7515
|
+
this.config = config;
|
|
7516
|
+
this.overlayService = overlayService;
|
|
7446
7517
|
this.autoZIndex = true;
|
|
7447
7518
|
this.baseZIndex = 0;
|
|
7448
|
-
this.showTransitionOptions =
|
|
7449
|
-
this.hideTransitionOptions =
|
|
7519
|
+
this.showTransitionOptions = ".12s cubic-bezier(0, 0, 0.2, 1)";
|
|
7520
|
+
this.hideTransitionOptions = ".1s linear";
|
|
7450
7521
|
this.onShow = new i0.EventEmitter();
|
|
7451
7522
|
this.onHide = new i0.EventEmitter();
|
|
7452
7523
|
}
|
|
@@ -7467,7 +7538,7 @@
|
|
|
7467
7538
|
};
|
|
7468
7539
|
Menu.prototype.onOverlayAnimationStart = function (event) {
|
|
7469
7540
|
switch (event.toState) {
|
|
7470
|
-
case
|
|
7541
|
+
case "visible":
|
|
7471
7542
|
if (this.popup) {
|
|
7472
7543
|
this.container = event.element;
|
|
7473
7544
|
this.moveOnTop();
|
|
@@ -7479,12 +7550,21 @@
|
|
|
7479
7550
|
this.bindScrollListener();
|
|
7480
7551
|
}
|
|
7481
7552
|
break;
|
|
7482
|
-
case
|
|
7553
|
+
case "void":
|
|
7483
7554
|
this.onOverlayHide();
|
|
7484
7555
|
this.onHide.emit({});
|
|
7485
7556
|
break;
|
|
7486
7557
|
}
|
|
7487
7558
|
};
|
|
7559
|
+
Menu.prototype.onOverlayAnimationEnd = function (event) {
|
|
7560
|
+
switch (event.toState) {
|
|
7561
|
+
case "void":
|
|
7562
|
+
if (this.autoZIndex) {
|
|
7563
|
+
utils.ZIndexUtils.clear(event.element);
|
|
7564
|
+
}
|
|
7565
|
+
break;
|
|
7566
|
+
}
|
|
7567
|
+
};
|
|
7488
7568
|
Menu.prototype.alignOverlay = function () {
|
|
7489
7569
|
if (this.relativeAlign)
|
|
7490
7570
|
dom.DomHandler.relativePosition(this.container, this.target);
|
|
@@ -7493,7 +7573,7 @@
|
|
|
7493
7573
|
};
|
|
7494
7574
|
Menu.prototype.appendOverlay = function () {
|
|
7495
7575
|
if (this.appendTo) {
|
|
7496
|
-
if (this.appendTo ===
|
|
7576
|
+
if (this.appendTo === "body")
|
|
7497
7577
|
document.body.appendChild(this.container);
|
|
7498
7578
|
else
|
|
7499
7579
|
dom.DomHandler.appendChild(this.container, this.appendTo);
|
|
@@ -7506,7 +7586,7 @@
|
|
|
7506
7586
|
};
|
|
7507
7587
|
Menu.prototype.moveOnTop = function () {
|
|
7508
7588
|
if (this.autoZIndex) {
|
|
7509
|
-
this.container
|
|
7589
|
+
utils.ZIndexUtils.set("menu", this.container, this.baseZIndex + this.config.zIndex.menu);
|
|
7510
7590
|
}
|
|
7511
7591
|
};
|
|
7512
7592
|
Menu.prototype.hide = function () {
|
|
@@ -7522,7 +7602,7 @@
|
|
|
7522
7602
|
event.preventDefault();
|
|
7523
7603
|
return;
|
|
7524
7604
|
}
|
|
7525
|
-
if (!item.url) {
|
|
7605
|
+
if (!item.url && !item.routerLink) {
|
|
7526
7606
|
event.preventDefault();
|
|
7527
7607
|
}
|
|
7528
7608
|
if (item.command) {
|
|
@@ -7532,11 +7612,22 @@
|
|
|
7532
7612
|
this.hide();
|
|
7533
7613
|
}
|
|
7534
7614
|
};
|
|
7615
|
+
Menu.prototype.onOverlayClick = function (event) {
|
|
7616
|
+
if (this.popup) {
|
|
7617
|
+
this.overlayService.add({
|
|
7618
|
+
originalEvent: event,
|
|
7619
|
+
target: this.el.nativeElement,
|
|
7620
|
+
});
|
|
7621
|
+
}
|
|
7622
|
+
this.preventDocumentDefault = true;
|
|
7623
|
+
};
|
|
7535
7624
|
Menu.prototype.bindDocumentClickListener = function () {
|
|
7536
7625
|
var _this = this;
|
|
7537
7626
|
if (!this.documentClickListener) {
|
|
7538
|
-
var documentTarget = this.el
|
|
7539
|
-
|
|
7627
|
+
var documentTarget = this.el
|
|
7628
|
+
? this.el.nativeElement.ownerDocument
|
|
7629
|
+
: "document";
|
|
7630
|
+
this.documentClickListener = this.renderer.listen(documentTarget, "click", function () {
|
|
7540
7631
|
if (!_this.preventDocumentDefault) {
|
|
7541
7632
|
_this.hide();
|
|
7542
7633
|
}
|
|
@@ -7552,11 +7643,11 @@
|
|
|
7552
7643
|
};
|
|
7553
7644
|
Menu.prototype.bindDocumentResizeListener = function () {
|
|
7554
7645
|
this.documentResizeListener = this.onWindowResize.bind(this);
|
|
7555
|
-
window.addEventListener(
|
|
7646
|
+
window.addEventListener("resize", this.documentResizeListener);
|
|
7556
7647
|
};
|
|
7557
7648
|
Menu.prototype.unbindDocumentResizeListener = function () {
|
|
7558
7649
|
if (this.documentResizeListener) {
|
|
7559
|
-
window.removeEventListener(
|
|
7650
|
+
window.removeEventListener("resize", this.documentResizeListener);
|
|
7560
7651
|
this.documentResizeListener = null;
|
|
7561
7652
|
}
|
|
7562
7653
|
};
|
|
@@ -7581,7 +7672,9 @@
|
|
|
7581
7672
|
this.unbindDocumentResizeListener();
|
|
7582
7673
|
this.unbindScrollListener();
|
|
7583
7674
|
this.preventDocumentDefault = false;
|
|
7584
|
-
this.
|
|
7675
|
+
if (!this.cd.destroyed) {
|
|
7676
|
+
this.target = null;
|
|
7677
|
+
}
|
|
7585
7678
|
};
|
|
7586
7679
|
Menu.prototype.ngOnDestroy = function () {
|
|
7587
7680
|
if (this.popup) {
|
|
@@ -7589,54 +7682,73 @@
|
|
|
7589
7682
|
this.scrollHandler.destroy();
|
|
7590
7683
|
this.scrollHandler = null;
|
|
7591
7684
|
}
|
|
7685
|
+
if (this.container && this.autoZIndex) {
|
|
7686
|
+
utils.ZIndexUtils.clear(this.container);
|
|
7687
|
+
}
|
|
7592
7688
|
this.restoreOverlayAppend();
|
|
7593
7689
|
this.onOverlayHide();
|
|
7594
7690
|
}
|
|
7595
7691
|
};
|
|
7596
|
-
Menu.prototype.hasSubMenu = function (
|
|
7692
|
+
Menu.prototype.hasSubMenu = function () {
|
|
7693
|
+
var e_1, _b;
|
|
7597
7694
|
var _a;
|
|
7598
|
-
if (
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
|
|
7602
|
-
|
|
7695
|
+
if (this.model) {
|
|
7696
|
+
try {
|
|
7697
|
+
for (var _c = __values(this.model), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
7698
|
+
var item = _d.value;
|
|
7699
|
+
if (((_a = item.items) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
7700
|
+
return true;
|
|
7701
|
+
}
|
|
7702
|
+
}
|
|
7703
|
+
}
|
|
7704
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
7705
|
+
finally {
|
|
7706
|
+
try {
|
|
7707
|
+
if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
|
|
7708
|
+
}
|
|
7709
|
+
finally { if (e_1) throw e_1.error; }
|
|
7710
|
+
}
|
|
7603
7711
|
}
|
|
7712
|
+
return false;
|
|
7604
7713
|
};
|
|
7605
7714
|
return Menu;
|
|
7606
7715
|
}());
|
|
7607
|
-
Menu.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: Menu, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.Renderer2 }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
7608
|
-
Menu.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: Menu, selector: "smz-menu-items", inputs: { model: "model", popup: "popup", style: "style", styleClass: "styleClass", appendTo: "appendTo", autoZIndex: "autoZIndex", baseZIndex: "baseZIndex", showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions" }, outputs: { onShow: "onShow", onHide: "onHide" }, viewQueries: [{ propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true }], ngImport: i0__namespace, template: "\n
|
|
7609
|
-
animations.trigger(
|
|
7610
|
-
animations.transition(
|
|
7611
|
-
animations.style({ opacity: 0, transform:
|
|
7612
|
-
animations.animate(
|
|
7716
|
+
Menu.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: Menu, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.Renderer2 }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$6.PrimeNGConfig }, { token: i1__namespace$6.OverlayService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
7717
|
+
Menu.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: Menu, selector: "smz-menu-items", inputs: { model: "model", popup: "popup", style: "style", styleClass: "styleClass", appendTo: "appendTo", autoZIndex: "autoZIndex", baseZIndex: "baseZIndex", showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions" }, outputs: { onShow: "onShow", onHide: "onHide" }, host: { classAttribute: "p-element" }, viewQueries: [{ propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true }], ngImport: i0__namespace, template: "<div\n #container\n [ngClass]=\"{'p-menu p-component': true, 'p-menu-overlay': popup}\"\n [class]=\"styleClass\"\n [ngStyle]=\"style\"\n *ngIf=\"!popup || visible\"\n (click)=\"onOverlayClick($event)\"\n [@overlayAnimation]=\"{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}\"\n [@.disabled]=\"popup !== true\"\n (@overlayAnimation.start)=\"onOverlayAnimationStart($event)\"\n (@overlayAnimation.done)=\"onOverlayAnimationEnd($event)\"\n>\n <ul class=\"p-menu-list p-reset\" role=\"menu\">\n <ng-template ngFor let-submenu [ngForOf]=\"model\" *ngIf=\"hasSubMenu()\">\n <li\n class=\"p-menu-separator\"\n *ngIf=\"submenu.separator\"\n [ngClass]=\"{'p-hidden': submenu.visible === false}\"\n role=\"separator\"\n ></li>\n <li\n class=\"p-submenu-header\"\n [attr.data-automationid]=\"submenu.automationId\"\n *ngIf=\"!submenu.separator\"\n [ngClass]=\"{'p-hidden': submenu.visible === false}\"\n pTooltip\n [tooltipOptions]=\"submenu.tooltipOptions\"\n role=\"none\"\n >\n <span *ngIf=\"submenu.escape !== false; else htmlSubmenuLabel\"\n >{{submenu.label}}</span\n >\n <ng-template #htmlSubmenuLabel\n ><span [innerHTML]=\"submenu.label\"></span\n ></ng-template>\n </li>\n <ng-template ngFor let-item [ngForOf]=\"submenu.items\">\n <li\n class=\"p-menu-separator\"\n *ngIf=\"item.separator\"\n [ngClass]=\"{'p-hidden': (item.visible === false || submenu.visible === false)}\"\n role=\"separator\"\n ></li>\n <li\n class=\"p-menuitem\"\n *ngIf=\"!item.separator\"\n [smzMenuItemContent]=\"item\"\n [ngClass]=\"{'p-hidden': (item.visible === false || submenu.visible === false)}\"\n [ngStyle]=\"item.style\"\n [class]=\"item.styleClass\"\n pTooltip\n [tooltipOptions]=\"item.tooltipOptions\"\n role=\"none\"\n ></li>\n </ng-template>\n </ng-template>\n <ng-template ngFor let-item [ngForOf]=\"model\" *ngIf=\"!hasSubMenu()\">\n <li\n class=\"p-menu-separator\"\n *ngIf=\"item.separator\"\n [ngClass]=\"{'p-hidden': item.visible === false}\"\n role=\"separator\"\n ></li>\n <li\n class=\"p-menuitem\"\n *ngIf=\"!item.separator\"\n [smzMenuItemContent]=\"item\"\n [ngClass]=\"{'p-hidden': item.visible === false}\"\n [ngStyle]=\"item.style\"\n [class]=\"item.styleClass\"\n pTooltip\n [tooltipOptions]=\"item.tooltipOptions\"\n role=\"none\"\n ></li>\n </ng-template>\n </ul>\n</div>\n", styles: [".p-menu-overlay{position:absolute;top:0;left:0}.p-menu ul{margin:0;padding:0;list-style:none}.p-menu .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-menuitem-child .p-menuitem-link{padding-left:24px}.p-menu .p-menuitem-text{line-height:1}\n"], components: [{ type: MenuItemContent, selector: "[smzMenuItemContent]", inputs: ["smzMenuItemContent"] }], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }], animations: [
|
|
7718
|
+
animations.trigger("overlayAnimation", [
|
|
7719
|
+
animations.transition(":enter", [
|
|
7720
|
+
animations.style({ opacity: 0, transform: "scaleY(0.8)" }),
|
|
7721
|
+
animations.animate("{{showTransitionParams}}"),
|
|
7613
7722
|
]),
|
|
7614
|
-
animations.transition(
|
|
7615
|
-
animations.animate(
|
|
7616
|
-
])
|
|
7617
|
-
])
|
|
7723
|
+
animations.transition(":leave", [
|
|
7724
|
+
animations.animate("{{hideTransitionParams}}", animations.style({ opacity: 0 })),
|
|
7725
|
+
]),
|
|
7726
|
+
]),
|
|
7618
7727
|
], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
7619
7728
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: Menu, decorators: [{
|
|
7620
7729
|
type: i0.Component,
|
|
7621
7730
|
args: [{
|
|
7622
|
-
selector:
|
|
7623
|
-
|
|
7731
|
+
selector: "smz-menu-items",
|
|
7732
|
+
templateUrl: "./menu.html",
|
|
7624
7733
|
animations: [
|
|
7625
|
-
animations.trigger(
|
|
7626
|
-
animations.transition(
|
|
7627
|
-
animations.style({ opacity: 0, transform:
|
|
7628
|
-
animations.animate(
|
|
7734
|
+
animations.trigger("overlayAnimation", [
|
|
7735
|
+
animations.transition(":enter", [
|
|
7736
|
+
animations.style({ opacity: 0, transform: "scaleY(0.8)" }),
|
|
7737
|
+
animations.animate("{{showTransitionParams}}"),
|
|
7629
7738
|
]),
|
|
7630
|
-
animations.transition(
|
|
7631
|
-
animations.animate(
|
|
7632
|
-
])
|
|
7633
|
-
])
|
|
7739
|
+
animations.transition(":leave", [
|
|
7740
|
+
animations.animate("{{hideTransitionParams}}", animations.style({ opacity: 0 })),
|
|
7741
|
+
]),
|
|
7742
|
+
]),
|
|
7634
7743
|
],
|
|
7635
7744
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7636
7745
|
encapsulation: i0.ViewEncapsulation.None,
|
|
7637
|
-
styleUrls: [
|
|
7746
|
+
styleUrls: ["./menu.css"],
|
|
7747
|
+
host: {
|
|
7748
|
+
class: "p-element",
|
|
7749
|
+
},
|
|
7638
7750
|
}]
|
|
7639
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.Renderer2 }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { model: [{
|
|
7751
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.Renderer2 }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$6.PrimeNGConfig }, { type: i1__namespace$6.OverlayService }]; }, propDecorators: { model: [{
|
|
7640
7752
|
type: i0.Input
|
|
7641
7753
|
}], popup: [{
|
|
7642
7754
|
type: i0.Input
|
|
@@ -7656,7 +7768,7 @@
|
|
|
7656
7768
|
type: i0.Input
|
|
7657
7769
|
}], containerViewChild: [{
|
|
7658
7770
|
type: i0.ViewChild,
|
|
7659
|
-
args: [
|
|
7771
|
+
args: ["container"]
|
|
7660
7772
|
}], onShow: [{
|
|
7661
7773
|
type: i0.Output
|
|
7662
7774
|
}], onHide: [{
|
|
@@ -7668,14 +7780,14 @@
|
|
|
7668
7780
|
return SmzMenuModule;
|
|
7669
7781
|
}());
|
|
7670
7782
|
SmzMenuModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzMenuModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
7671
|
-
SmzMenuModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzMenuModule, declarations: [Menu, MenuItemContent], imports: [i1$1.CommonModule, i1$f.RouterModule, i3$4.RippleModule], exports: [Menu, i1$f.RouterModule] });
|
|
7672
|
-
SmzMenuModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzMenuModule, imports: [[i1$1.CommonModule, i1$f.RouterModule, i3$4.RippleModule], i1$f.RouterModule] });
|
|
7783
|
+
SmzMenuModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzMenuModule, declarations: [Menu, MenuItemContent], imports: [i1$1.CommonModule, i1$f.RouterModule, i3$4.RippleModule, i1$2.TooltipModule], exports: [Menu, i1$f.RouterModule] });
|
|
7784
|
+
SmzMenuModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzMenuModule, imports: [[i1$1.CommonModule, i1$f.RouterModule, i3$4.RippleModule, i1$2.TooltipModule], i1$f.RouterModule] });
|
|
7673
7785
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzMenuModule, decorators: [{
|
|
7674
7786
|
type: i0.NgModule,
|
|
7675
7787
|
args: [{
|
|
7676
|
-
imports: [i1$1.CommonModule, i1$f.RouterModule, i3$4.RippleModule],
|
|
7788
|
+
imports: [i1$1.CommonModule, i1$f.RouterModule, i3$4.RippleModule, i1$2.TooltipModule],
|
|
7677
7789
|
exports: [Menu, i1$f.RouterModule],
|
|
7678
|
-
declarations: [Menu, MenuItemContent]
|
|
7790
|
+
declarations: [Menu, MenuItemContent],
|
|
7679
7791
|
}]
|
|
7680
7792
|
}] });
|
|
7681
7793
|
|
|
@@ -9797,11 +9909,12 @@
|
|
|
9797
9909
|
var SmzDocumentChartComponent = /** @class */ (function () {
|
|
9798
9910
|
function SmzDocumentChartComponent() {
|
|
9799
9911
|
}
|
|
9800
|
-
SmzDocumentChartComponent.prototype.ngOnInit = function () {
|
|
9912
|
+
SmzDocumentChartComponent.prototype.ngOnInit = function () {
|
|
9913
|
+
};
|
|
9801
9914
|
return SmzDocumentChartComponent;
|
|
9802
9915
|
}());
|
|
9803
9916
|
SmzDocumentChartComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzDocumentChartComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
9804
|
-
SmzDocumentChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: SmzDocumentChartComponent, selector: "smz-document-chart", inputs: { data: "data", config: "config" }, ngImport: i0__namespace, template: "<div\n [ngStyle]=\"{ background: data.container.background }\"\n class=\"p-grid p-nogutter p-align-stretch p-justify-start h-full w-full relative\"\n [ngClass]=\"data.container.styles\">\n\n <smz-ui-chart\n class=\"w-full h-full\"\n [type]=\"data.content.chartData.type\"\n [data]=\"data.content.chartData.data\"\n [options]=\"data.content.chartData.config\">\n </smz-ui-chart>\n\n</div>", components: [{ type: SmzChartComponent, selector: "smz-ui-chart", inputs: ["type", "plugins", "width", "height", "responsive", "data", "options"], outputs: ["chartClick", "chartHover"] }], directives: [{ type: i1__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
9917
|
+
SmzDocumentChartComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: SmzDocumentChartComponent, selector: "smz-document-chart", inputs: { data: "data", config: "config" }, ngImport: i0__namespace, template: "<div\n [ngStyle]=\"{ background: data.container.background }\"\n class=\"p-grid p-nogutter p-align-stretch p-justify-start h-full w-full relative\"\n [ngClass]=\"data.container.styles\">\n\n <smz-ui-chart\n class=\"w-full h-full\"\n [ngClass]=\"data.flexWidth\"\n [type]=\"data.content.chartData.type\"\n [data]=\"data.content.chartData.data\"\n [options]=\"data.content.chartData.config\">\n </smz-ui-chart>\n\n</div>", components: [{ type: SmzChartComponent, selector: "smz-ui-chart", inputs: ["type", "plugins", "width", "height", "responsive", "data", "options"], outputs: ["chartClick", "chartHover"] }], directives: [{ type: i1__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
9805
9918
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzDocumentChartComponent, decorators: [{
|
|
9806
9919
|
type: i0.Component,
|
|
9807
9920
|
args: [{
|
|
@@ -9822,7 +9935,7 @@
|
|
|
9822
9935
|
return SmzDocumentContentComponent;
|
|
9823
9936
|
}());
|
|
9824
9937
|
SmzDocumentContentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzDocumentContentComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
9825
|
-
SmzDocumentContentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: SmzDocumentContentComponent, selector: "smz-document-content", inputs: { data: "data", config: "config", isDebug: "isDebug" }, ngImport: i0__namespace, template: "<table class=\"w-full h-full border-collapse\" cellspacing=\"0\" cellpadding=\"0\">\n\n <ng-container *ngFor=\"let row of data?.rows\">\n\n <tr>\n\n <ng-container *ngFor=\"let cell of row.cells\">\n\n <td class=\"relative\" [colSpan]=\"cell.colspan\" [rowSpan]=\"cell.rowspan\" [ngStyle]=\"{ height: cell.height, width: cell.width }\" [ngClass]=\"data.cellStyles\">\n\n <ng-container [ngSwitch]=\"cell.data?.type\">\n\n <ng-container *ngSwitchCase=\"'content'\">\n <smz-document-content [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-content>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.TITLE\">\n <smz-document-title [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-title>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.DIVIDER\">\n <smz-document-divider [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-divider>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.FIELD\">\n <smz-document-field [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-field>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.IMAGE\">\n <smz-document-image [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-image>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.SPACER\">\n <smz-document-spacer [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-spacer>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.SUB_TITLE\">\n <smz-document-sub-title [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-sub-title>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.FIELDS_GROUP\">\n <smz-document-fields-group [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-fields-group>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.TABLE\">\n <smz-document-table [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-table>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.CHART\">\n <smz-document-chart [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-chart>\n </ng-container>\n\n <ng-container *ngSwitchDefault>unknown cell data type</ng-container>\n\n </ng-container>\n\n <div *ngIf=\"isDebug\"\n class=\"absolute inset-0 w-full h-full border-dotted border border-red-500 cursor-pointer hover:bg-red-700 hover:opacity-10 transition-all\"\n [pTooltip]=\"'colspan: ' + cell.colspan + ' - rowspan: ' + cell.rowspan\" appendTo=\"body\" [hideDelay]=\"200\" [showDelay]=\"50\">\n </div>\n\n </td>\n\n </ng-container>\n\n </tr>\n\n </ng-container>\n\n</table>", components: [{ type: SmzDocumentContentComponent, selector: "smz-document-content", inputs: ["data", "config", "isDebug"] }, { type: SmzDocumentTitleComponent, selector: "smz-document-title", inputs: ["data", "config"] }, { type: SmzDocumentDividerComponent, selector: "smz-document-divider", inputs: ["data", "config"] }, { type: SmzDocumentFieldComponent, selector: "smz-document-field", inputs: ["data", "config"] }, { type: SmzDocumentImageComponent, selector: "smz-document-image", inputs: ["data", "config"] }, { type: SmzDocumentSpacerComponent, selector: "smz-document-spacer", inputs: ["data", "config"] }, { type: SmzDocumentSubTitleComponent, selector: "smz-document-sub-title", inputs: ["data", "config"] }, { type: SmzDocumentFieldsGroupComponent, selector: "smz-document-fields-group", inputs: ["data", "config"] }, { type: SmzDocumentTableComponent, selector: "smz-document-table", inputs: ["data", "config"] }, { type: SmzDocumentChartComponent, selector: "smz-document-chart", inputs: ["data", "config"] }], directives: [{ type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }] });
|
|
9938
|
+
SmzDocumentContentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: SmzDocumentContentComponent, selector: "smz-document-content", inputs: { data: "data", config: "config", isDebug: "isDebug" }, ngImport: i0__namespace, template: "<table class=\"w-full h-full border-collapse bg-white\" cellspacing=\"0\" cellpadding=\"0\">\n\n <ng-container *ngFor=\"let row of data?.rows\">\n\n <tr>\n\n <ng-container *ngFor=\"let cell of row.cells\">\n\n <td class=\"relative\" [colSpan]=\"cell.colspan\" [rowSpan]=\"cell.rowspan\" [ngStyle]=\"{ height: cell.height, width: cell.width }\" [ngClass]=\"data.cellStyles\">\n\n <ng-container [ngSwitch]=\"cell.data?.type\">\n\n <ng-container *ngSwitchCase=\"'content'\">\n <smz-document-content [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-content>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.TITLE\">\n <smz-document-title [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-title>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.DIVIDER\">\n <smz-document-divider [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-divider>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.FIELD\">\n <smz-document-field [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-field>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.IMAGE\">\n <smz-document-image [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-image>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.SPACER\">\n <smz-document-spacer [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-spacer>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.SUB_TITLE\">\n <smz-document-sub-title [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-sub-title>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.FIELDS_GROUP\">\n <smz-document-fields-group [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-fields-group>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.TABLE\">\n <smz-document-table [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-table>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"featureDefinitions.CHART\">\n <smz-document-chart [data]=\"$any(cell.data)\" [config]=\"config\"></smz-document-chart>\n </ng-container>\n\n <ng-container *ngSwitchDefault>unknown cell data type</ng-container>\n\n </ng-container>\n\n <div *ngIf=\"isDebug\"\n class=\"absolute inset-0 w-full h-full border-dotted border border-red-500 cursor-pointer hover:bg-red-700 hover:opacity-10 transition-all\"\n [pTooltip]=\"'colspan: ' + cell.colspan + ' - rowspan: ' + cell.rowspan\" appendTo=\"body\" [hideDelay]=\"200\" [showDelay]=\"50\">\n </div>\n\n </td>\n\n </ng-container>\n\n </tr>\n\n </ng-container>\n\n</table>", components: [{ type: SmzDocumentContentComponent, selector: "smz-document-content", inputs: ["data", "config", "isDebug"] }, { type: SmzDocumentTitleComponent, selector: "smz-document-title", inputs: ["data", "config"] }, { type: SmzDocumentDividerComponent, selector: "smz-document-divider", inputs: ["data", "config"] }, { type: SmzDocumentFieldComponent, selector: "smz-document-field", inputs: ["data", "config"] }, { type: SmzDocumentImageComponent, selector: "smz-document-image", inputs: ["data", "config"] }, { type: SmzDocumentSpacerComponent, selector: "smz-document-spacer", inputs: ["data", "config"] }, { type: SmzDocumentSubTitleComponent, selector: "smz-document-sub-title", inputs: ["data", "config"] }, { type: SmzDocumentFieldsGroupComponent, selector: "smz-document-fields-group", inputs: ["data", "config"] }, { type: SmzDocumentTableComponent, selector: "smz-document-table", inputs: ["data", "config"] }, { type: SmzDocumentChartComponent, selector: "smz-document-chart", inputs: ["data", "config"] }], directives: [{ type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }] });
|
|
9826
9939
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzDocumentContentComponent, decorators: [{
|
|
9827
9940
|
type: i0.Component,
|
|
9828
9941
|
args: [{
|
|
@@ -10042,12 +10155,13 @@
|
|
|
10042
10155
|
}
|
|
10043
10156
|
};
|
|
10044
10157
|
var SmzDialogsService = /** @class */ (function () {
|
|
10045
|
-
function SmzDialogsService(moduleConfig, dialogService, refService, visibilityService, featuresService) {
|
|
10158
|
+
function SmzDialogsService(moduleConfig, dialogService, refService, visibilityService, featuresService, rbkConfig) {
|
|
10046
10159
|
this.moduleConfig = moduleConfig;
|
|
10047
10160
|
this.dialogService = dialogService;
|
|
10048
10161
|
this.refService = refService;
|
|
10049
10162
|
this.visibilityService = visibilityService;
|
|
10050
10163
|
this.featuresService = featuresService;
|
|
10164
|
+
this.rbkConfig = rbkConfig;
|
|
10051
10165
|
this.dialogRefs = [];
|
|
10052
10166
|
BASE_DIALOG.behaviors = moduleConfig.dialogs.behaviors;
|
|
10053
10167
|
BASE_DIALOG.dialogTemplate = moduleConfig.dialogs.dialogTemplate;
|
|
@@ -10100,7 +10214,15 @@
|
|
|
10100
10214
|
});
|
|
10101
10215
|
ref.id = dialogId;
|
|
10102
10216
|
this.dialogRefs.push(ref);
|
|
10103
|
-
|
|
10217
|
+
if (this.rbkConfig.debugMode) {
|
|
10218
|
+
console.groupCollapsed('SmzDialogsService => open()');
|
|
10219
|
+
console.log('SmzDialogsConfig', this.moduleConfig);
|
|
10220
|
+
console.log('dialog', dialog);
|
|
10221
|
+
console.log('config', config);
|
|
10222
|
+
console.log('behaviors', behaviors);
|
|
10223
|
+
console.log('data', data);
|
|
10224
|
+
console.groupEnd();
|
|
10225
|
+
}
|
|
10104
10226
|
return ref;
|
|
10105
10227
|
};
|
|
10106
10228
|
SmzDialogsService.prototype.closeAll = function () {
|
|
@@ -10342,14 +10464,14 @@
|
|
|
10342
10464
|
};
|
|
10343
10465
|
return SmzDialogsService;
|
|
10344
10466
|
}());
|
|
10345
|
-
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 });
|
|
10467
|
+
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 });
|
|
10346
10468
|
SmzDialogsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzDialogsService, providedIn: 'root' });
|
|
10347
10469
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzDialogsService, decorators: [{
|
|
10348
10470
|
type: i0.Injectable,
|
|
10349
10471
|
args: [{
|
|
10350
10472
|
providedIn: 'root'
|
|
10351
10473
|
}]
|
|
10352
|
-
}], ctorParameters: function () { return [{ type: SmzDialogsConfig }, { type: DialogService }, { type: DynamicDialogRef }, { type: SmzDialogsVisibilityService }, { type: SmzFeaturesService }]; } });
|
|
10474
|
+
}], ctorParameters: function () { return [{ type: SmzDialogsConfig }, { type: DialogService }, { type: DynamicDialogRef }, { type: SmzDialogsVisibilityService }, { type: SmzFeaturesService }, { type: NgxRbkUtilsConfig }]; } });
|
|
10353
10475
|
|
|
10354
10476
|
var getInitialState$7 = function () { return ({}); };
|
|
10355
10477
|
// @dynamic
|
|
@@ -24361,7 +24483,6 @@
|
|
|
24361
24483
|
_this.that = _this;
|
|
24362
24484
|
var defaultConfig = cloneDeep__default["default"](_this._documentBuilder._state.config);
|
|
24363
24485
|
_data.container = { styles: defaultConfig.tables.container };
|
|
24364
|
-
_data.content = {};
|
|
24365
24486
|
return _this;
|
|
24366
24487
|
}
|
|
24367
24488
|
SmzCellChartBuilder.prototype.overrideContainerStyles = function (styleClass) {
|
|
@@ -24372,6 +24493,11 @@
|
|
|
24372
24493
|
this._data.container.background = color;
|
|
24373
24494
|
return this.that;
|
|
24374
24495
|
};
|
|
24496
|
+
SmzCellChartBuilder.prototype.setWidth = function (width) {
|
|
24497
|
+
var newStyle = width === 'auto' ? 'p-col' : "p-" + width;
|
|
24498
|
+
this._data.flexWidth = newStyle;
|
|
24499
|
+
return this;
|
|
24500
|
+
};
|
|
24375
24501
|
return SmzCellChartBuilder;
|
|
24376
24502
|
}(SmzDocumentBaseCellBuilder));
|
|
24377
24503
|
|
|
@@ -24464,7 +24590,7 @@
|
|
|
24464
24590
|
SmzDocumentRowBuilder.prototype.chart = function (chartData) {
|
|
24465
24591
|
var cell = { colspan: 1, rowspan: 1, height: '100%', width: 'auto', data: null };
|
|
24466
24592
|
this._row.cells.push(cell);
|
|
24467
|
-
var item = { type: SmzDocumentFeatureDefinitions.CHART, content: { chartData: chartData } };
|
|
24593
|
+
var item = { type: SmzDocumentFeatureDefinitions.CHART, content: { chartData: chartData }, flexWidth: 'p-col' };
|
|
24468
24594
|
cell.data = item;
|
|
24469
24595
|
return new SmzCellChartBuilder(this, cell, item, this._documentBuilder);
|
|
24470
24596
|
};
|