ngx-smz-ui 3.6.4 → 3.6.8
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 +934 -86
- package/bundles/ngx-smz-ui.umd.js.map +1 -1
- package/esm2015/lib/builders/smz-charts/base-chart-builder.js +49 -0
- package/esm2015/lib/builders/smz-charts/linear-chart-builder.js +73 -0
- package/esm2015/lib/builders/smz-charts/models/axis-overflow-direction.js +7 -0
- package/esm2015/lib/builders/smz-charts/models/axis-overflow-type.js +6 -0
- package/esm2015/lib/builders/smz-charts/models/axis-position.js +9 -0
- package/esm2015/lib/builders/smz-charts/models/chart-type.js +15 -0
- package/esm2015/lib/builders/smz-charts/models/color-pallete.js +67 -0
- package/esm2015/lib/builders/smz-charts/models/color-selector.js +79 -0
- package/esm2015/lib/builders/smz-charts/models/dataset-type.js +6 -0
- package/esm2015/lib/builders/smz-charts/models/grouping-type.js +10 -0
- package/esm2015/lib/builders/smz-charts/public-api.js +14 -0
- package/esm2015/lib/builders/smz-charts/radial-chart-builder.js +28 -0
- package/esm2015/lib/builders/smz-charts/secondary/cartesian-scale-builder.js +31 -0
- package/esm2015/lib/builders/smz-charts/secondary/cartesian-title-builder.js +15 -0
- package/esm2015/lib/builders/smz-charts/secondary/dataset-builder.js +9 -0
- package/esm2015/lib/builders/smz-charts/secondary/histogram-data-builder.js +19 -0
- package/esm2015/lib/builders/smz-charts/secondary/legend-builder.js +21 -0
- package/esm2015/lib/builders/smz-charts/secondary/linear-category-data-builder.js +27 -0
- package/esm2015/lib/builders/smz-charts/secondary/linear-dataset-builder.js +41 -0
- package/esm2015/lib/builders/smz-charts/secondary/linear-date-data-builder.js +44 -0
- package/esm2015/lib/builders/smz-charts/secondary/radial-data-builder.js +28 -0
- package/esm2015/lib/builders/smz-charts/secondary/title-builder.js +25 -0
- package/esm2015/lib/builders/smz-charts/secondary/tooltip-builder.js +27 -0
- package/esm2015/lib/common/utils/pretty-json.js +33 -0
- 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-menu/components/menu.js +144 -154
- package/esm2015/lib/modules/smz-tables/pipes/clone-table-items.pipe.js +2 -2
- package/esm2015/public-api.js +3 -1
- package/fesm2015/ngx-smz-ui.js +873 -206
- package/fesm2015/ngx-smz-ui.js.map +1 -1
- package/lib/builders/smz-charts/base-chart-builder.d.ts +21 -0
- package/lib/builders/smz-charts/linear-chart-builder.d.ts +27 -0
- package/lib/builders/smz-charts/models/axis-overflow-direction.d.ts +5 -0
- package/lib/builders/smz-charts/models/axis-overflow-type.d.ts +4 -0
- package/lib/builders/smz-charts/models/axis-position.d.ts +7 -0
- package/lib/builders/smz-charts/models/chart-type.d.ts +13 -0
- package/lib/builders/smz-charts/models/color-pallete.d.ts +65 -0
- package/lib/builders/smz-charts/models/color-selector.d.ts +67 -0
- package/lib/builders/smz-charts/models/dataset-type.d.ts +4 -0
- package/lib/builders/smz-charts/models/grouping-type.d.ts +8 -0
- package/lib/builders/smz-charts/public-api.d.ts +9 -0
- package/lib/builders/smz-charts/radial-chart-builder.d.ts +15 -0
- package/lib/builders/smz-charts/secondary/cartesian-scale-builder.d.ts +18 -0
- package/lib/builders/smz-charts/secondary/cartesian-title-builder.d.ts +11 -0
- package/lib/builders/smz-charts/secondary/dataset-builder.d.ts +6 -0
- package/lib/builders/smz-charts/secondary/histogram-data-builder.d.ts +10 -0
- package/lib/builders/smz-charts/secondary/legend-builder.d.ts +11 -0
- package/lib/builders/smz-charts/secondary/linear-category-data-builder.d.ts +12 -0
- package/lib/builders/smz-charts/secondary/linear-dataset-builder.d.ts +19 -0
- package/lib/builders/smz-charts/secondary/linear-date-data-builder.d.ts +19 -0
- package/lib/builders/smz-charts/secondary/radial-data-builder.d.ts +14 -0
- package/lib/builders/smz-charts/secondary/title-builder.d.ts +13 -0
- package/lib/builders/smz-charts/secondary/tooltip-builder.d.ts +13 -0
- package/lib/common/utils/pretty-json.d.ts +12 -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-menu/components/menu.d.ts +16 -8
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/resources/assets/scss/contents/primeone-light.css +7 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/flex-layout'), require('primeng/dialog'), require('primeng/toast'), require('primeng/table'), require('primeng/button'), require('primeng/message'), require('primeng/progressspinner'), require('primeng/toolbar'), require('primeng/listbox'), require('rxjs/operators'), require('lodash-es'), require('rxjs'), require('primeng/password'), require('primeng/tooltip'), require('@angular/flex-layout/flex'), require('primeng/inputmask'), require('primeng/inputtext'), require('@ngxs/store'), require('primeng/api'), require('primeng/inputnumber'), require('primeng/inputtextarea'), require('@angular/flex-layout/extended'), require('primeng/overlaypanel'), require('primeng/dropdown'), require('primeng/radiobutton'), require('primeng/inputswitch'), require('primeng/checkbox'), require('primeng/calendar'), require('primeng/messages'), require('@angular/platform-browser'), require('primeng/multiselect'), require('primeng/colorpicker'), require('primeng/fileupload'), require('@angular/common/http'), require('moment'), require('primeng/utils'), require('primeng/dynamicdialog'), require('@angular/animations'), require('primeng/dom'), require('@ngneat/until-destroy'), require('primeng/progressbar'), require('angular2-uuid'), require('@auth0/angular-jwt'), require('primeng/skeleton'), require('@angular/router'), require('primeng/ripple'), require('jspdf'), require('chart.js/auto'), require('chart.js/helpers'), require('primeng/badge'), require('primeng/selectbutton'), require('ngx-pipes'), require('lodash-es/cloneDeep'), require('primeng/accordion'), require('@ngxs/router-plugin'), require('lodash-es/forIn'), require('lodash-es/startsWith'), require('@angular/platform-browser/animations'), require('@angular/common/locales/pt'), require('primeng/menubar'), require('primeng/sidebar'), require('primeng/contextmenu'), require('primeng/tree'), require('ngx-device-detector')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('ngx-smz-ui', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/flex-layout', 'primeng/dialog', 'primeng/toast', 'primeng/table', 'primeng/button', 'primeng/message', 'primeng/progressspinner', 'primeng/toolbar', 'primeng/listbox', 'rxjs/operators', 'lodash-es', 'rxjs', 'primeng/password', 'primeng/tooltip', '@angular/flex-layout/flex', 'primeng/inputmask', 'primeng/inputtext', '@ngxs/store', 'primeng/api', 'primeng/inputnumber', 'primeng/inputtextarea', '@angular/flex-layout/extended', 'primeng/overlaypanel', 'primeng/dropdown', 'primeng/radiobutton', 'primeng/inputswitch', 'primeng/checkbox', 'primeng/calendar', 'primeng/messages', '@angular/platform-browser', 'primeng/multiselect', 'primeng/colorpicker', 'primeng/fileupload', '@angular/common/http', 'moment', 'primeng/utils', 'primeng/dynamicdialog', '@angular/animations', 'primeng/dom', '@ngneat/until-destroy', 'primeng/progressbar', 'angular2-uuid', '@auth0/angular-jwt', 'primeng/skeleton', '@angular/router', 'primeng/ripple', 'jspdf', 'chart.js/auto', 'chart.js/helpers', 'primeng/badge', 'primeng/selectbutton', 'ngx-pipes', 'lodash-es/cloneDeep', 'primeng/accordion', '@ngxs/router-plugin', 'lodash-es/forIn', 'lodash-es/startsWith', '@angular/platform-browser/animations', '@angular/common/locales/pt', 'primeng/menubar', 'primeng/sidebar', 'primeng/contextmenu', 'primeng/tree', 'ngx-device-detector'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["ngx-smz-ui"] = {}, global.ng.core, global.ng.common, global.ng.forms, global.ng.flexLayout, global.dialog, global.toast, global.table, global.button, global.message, global.progressspinner, global.toolbar, global.listbox, global.rxjs.operators, global["lodash-es"], global.rxjs, global.password, global.tooltip, global.ng.flexLayout.flex, global.inputmask, global.inputtext, global.store, global.api, global.inputnumber, global.inputtextarea, global.ng.flexLayout.extended, global.overlaypanel, global.dropdown, global.radiobutton, global.inputswitch, global.checkbox, global.calendar, global.messages, global.ng.platformBrowser, global.multiselect, global.colorpicker, global.fileupload, global.ng.common.http, global.moment, global.utils, global.dynamicdialog, global.ng.animations, global.dom, global["until-destroy"], global.progressbar, global.angularuuid, global.angularJwt, global.skeleton, global.ng.router, global.ripple, global.jspdf, global.chartjaauto, global.chartjshelpers, global.badge, global.selectbutton, global.ngxpipes, global.cloneDeep, global.accordion, global["router-plugin"], global.forin, global.startswith, global.ng.platformBrowser.animations, global.ng.common.locales.pt, global.menubar, global.sidebar, global.contextmenu, global.tree, global.ngxDeviceDetector));
|
|
5
|
-
})(this, (function (exports, i0, i1$1, i1, flexLayout, dialog, i7, i5, i6, message, progressspinner, i8, i3$1, operators, lodashEs, rxjs, i1$3, i1$2, i3, i1$4, i4, i1$5, i1$6, i2, i3$2, i4$1, i2$1, i4$2, i1$7, i1$8, i3$3, i1$9, i1$b, i1$a, i1$c, i1$d, fileupload, i1$e, moment_, utils, i2$2, animations, dom, untilDestroy, progressbar, angular2Uuid, angularJwt, i9, i1$f, i3$4, jspdf, Chart, helpers, i6$1, i4$3, i3$5, cloneDeep, i3$6, routerPlugin, forIn, startsWith, animations$1, localePt, menubar, i3$7, i1$g, i2$3, ngxDeviceDetector) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/flex-layout'), require('primeng/dialog'), require('primeng/toast'), require('primeng/table'), require('primeng/button'), require('primeng/message'), require('primeng/progressspinner'), require('primeng/toolbar'), require('primeng/listbox'), require('rxjs/operators'), require('lodash-es'), require('rxjs'), require('primeng/password'), require('primeng/tooltip'), require('@angular/flex-layout/flex'), require('primeng/inputmask'), require('primeng/inputtext'), require('@ngxs/store'), require('primeng/api'), require('primeng/inputnumber'), require('primeng/inputtextarea'), require('@angular/flex-layout/extended'), require('primeng/overlaypanel'), require('primeng/dropdown'), require('primeng/radiobutton'), require('primeng/inputswitch'), require('primeng/checkbox'), require('primeng/calendar'), require('primeng/messages'), require('@angular/platform-browser'), require('primeng/multiselect'), require('primeng/colorpicker'), require('primeng/fileupload'), require('@angular/common/http'), require('moment'), require('primeng/utils'), require('primeng/dynamicdialog'), require('@angular/animations'), require('primeng/dom'), require('@ngneat/until-destroy'), require('primeng/progressbar'), require('angular2-uuid'), require('@auth0/angular-jwt'), require('primeng/skeleton'), require('@angular/router'), require('primeng/ripple'), require('jspdf'), require('chart.js/auto'), require('chart.js/helpers'), require('primeng/badge'), require('primeng/selectbutton'), require('ngx-pipes'), require('lodash-es/cloneDeep'), require('primeng/accordion'), require('@ngxs/router-plugin'), require('lodash-es/forIn'), require('lodash-es/startsWith'), require('@angular/platform-browser/animations'), require('@angular/common/locales/pt'), require('primeng/menubar'), require('primeng/sidebar'), require('primeng/contextmenu'), require('primeng/tree'), require('ngx-device-detector'), require('chart.js')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('ngx-smz-ui', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/flex-layout', 'primeng/dialog', 'primeng/toast', 'primeng/table', 'primeng/button', 'primeng/message', 'primeng/progressspinner', 'primeng/toolbar', 'primeng/listbox', 'rxjs/operators', 'lodash-es', 'rxjs', 'primeng/password', 'primeng/tooltip', '@angular/flex-layout/flex', 'primeng/inputmask', 'primeng/inputtext', '@ngxs/store', 'primeng/api', 'primeng/inputnumber', 'primeng/inputtextarea', '@angular/flex-layout/extended', 'primeng/overlaypanel', 'primeng/dropdown', 'primeng/radiobutton', 'primeng/inputswitch', 'primeng/checkbox', 'primeng/calendar', 'primeng/messages', '@angular/platform-browser', 'primeng/multiselect', 'primeng/colorpicker', 'primeng/fileupload', '@angular/common/http', 'moment', 'primeng/utils', 'primeng/dynamicdialog', '@angular/animations', 'primeng/dom', '@ngneat/until-destroy', 'primeng/progressbar', 'angular2-uuid', '@auth0/angular-jwt', 'primeng/skeleton', '@angular/router', 'primeng/ripple', 'jspdf', 'chart.js/auto', 'chart.js/helpers', 'primeng/badge', 'primeng/selectbutton', 'ngx-pipes', 'lodash-es/cloneDeep', 'primeng/accordion', '@ngxs/router-plugin', 'lodash-es/forIn', 'lodash-es/startsWith', '@angular/platform-browser/animations', '@angular/common/locales/pt', 'primeng/menubar', 'primeng/sidebar', 'primeng/contextmenu', 'primeng/tree', 'ngx-device-detector', 'chart.js'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["ngx-smz-ui"] = {}, global.ng.core, global.ng.common, global.ng.forms, global.ng.flexLayout, global.dialog, global.toast, global.table, global.button, global.message, global.progressspinner, global.toolbar, global.listbox, global.rxjs.operators, global["lodash-es"], global.rxjs, global.password, global.tooltip, global.ng.flexLayout.flex, global.inputmask, global.inputtext, global.store, global.api, global.inputnumber, global.inputtextarea, global.ng.flexLayout.extended, global.overlaypanel, global.dropdown, global.radiobutton, global.inputswitch, global.checkbox, global.calendar, global.messages, global.ng.platformBrowser, global.multiselect, global.colorpicker, global.fileupload, global.ng.common.http, global.moment, global.utils, global.dynamicdialog, global.ng.animations, global.dom, global["until-destroy"], global.progressbar, global.angularuuid, global.angularJwt, global.skeleton, global.ng.router, global.ripple, global.jspdf, global.chartjaauto, global.chartjshelpers, global.badge, global.selectbutton, global.ngxpipes, global.cloneDeep, global.accordion, global["router-plugin"], global.forin, global.startswith, global.ng.platformBrowser.animations, global.ng.common.locales.pt, global.menubar, global.sidebar, global.contextmenu, global.tree, global.ngxDeviceDetector, global.chartjs));
|
|
5
|
+
})(this, (function (exports, i0, i1$1, i1, flexLayout, dialog, i7, i5, i6, message, progressspinner, i8, i3$1, operators, lodashEs, rxjs, i1$3, i1$2, i3, i1$4, i4, i1$5, i1$6, i2, i3$2, i4$1, i2$1, i4$2, i1$7, i1$8, i3$3, i1$9, i1$b, i1$a, i1$c, i1$d, fileupload, i1$e, moment_, utils, i2$2, animations, dom, untilDestroy, progressbar, angular2Uuid, angularJwt, i9, i1$f, i3$4, jspdf, Chart, helpers, i6$1, i4$3, i3$5, cloneDeep, i3$6, routerPlugin, forIn, startsWith, animations$1, localePt, menubar, i3$7, i1$g, i2$3, ngxDeviceDetector, chart_js) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -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
|
|
|
@@ -8038,7 +8150,7 @@
|
|
|
8038
8150
|
else if (x != null && isSimpleNamedEntity(x)) {
|
|
8039
8151
|
return x.name.trim();
|
|
8040
8152
|
}
|
|
8041
|
-
return x == null ? x : x === null || x === void 0 ? void 0 : x.trim();
|
|
8153
|
+
return x == null ? x : x === null || x === void 0 ? void 0 : x.toString().trim();
|
|
8042
8154
|
})
|
|
8043
8155
|
.map(function (x) {
|
|
8044
8156
|
var _a, _b;
|
|
@@ -10043,12 +10155,13 @@
|
|
|
10043
10155
|
}
|
|
10044
10156
|
};
|
|
10045
10157
|
var SmzDialogsService = /** @class */ (function () {
|
|
10046
|
-
function SmzDialogsService(moduleConfig, dialogService, refService, visibilityService, featuresService) {
|
|
10158
|
+
function SmzDialogsService(moduleConfig, dialogService, refService, visibilityService, featuresService, rbkConfig) {
|
|
10047
10159
|
this.moduleConfig = moduleConfig;
|
|
10048
10160
|
this.dialogService = dialogService;
|
|
10049
10161
|
this.refService = refService;
|
|
10050
10162
|
this.visibilityService = visibilityService;
|
|
10051
10163
|
this.featuresService = featuresService;
|
|
10164
|
+
this.rbkConfig = rbkConfig;
|
|
10052
10165
|
this.dialogRefs = [];
|
|
10053
10166
|
BASE_DIALOG.behaviors = moduleConfig.dialogs.behaviors;
|
|
10054
10167
|
BASE_DIALOG.dialogTemplate = moduleConfig.dialogs.dialogTemplate;
|
|
@@ -10101,7 +10214,15 @@
|
|
|
10101
10214
|
});
|
|
10102
10215
|
ref.id = dialogId;
|
|
10103
10216
|
this.dialogRefs.push(ref);
|
|
10104
|
-
|
|
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
|
+
}
|
|
10105
10226
|
return ref;
|
|
10106
10227
|
};
|
|
10107
10228
|
SmzDialogsService.prototype.closeAll = function () {
|
|
@@ -10343,14 +10464,14 @@
|
|
|
10343
10464
|
};
|
|
10344
10465
|
return SmzDialogsService;
|
|
10345
10466
|
}());
|
|
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 });
|
|
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 });
|
|
10347
10468
|
SmzDialogsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzDialogsService, providedIn: 'root' });
|
|
10348
10469
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzDialogsService, decorators: [{
|
|
10349
10470
|
type: i0.Injectable,
|
|
10350
10471
|
args: [{
|
|
10351
10472
|
providedIn: 'root'
|
|
10352
10473
|
}]
|
|
10353
|
-
}], 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 }]; } });
|
|
10354
10475
|
|
|
10355
10476
|
var getInitialState$7 = function () { return ({}); };
|
|
10356
10477
|
// @dynamic
|
|
@@ -22553,6 +22674,42 @@
|
|
|
22553
22674
|
return result;
|
|
22554
22675
|
}
|
|
22555
22676
|
|
|
22677
|
+
var PrettyJsonPipe = /** @class */ (function () {
|
|
22678
|
+
function PrettyJsonPipe() {
|
|
22679
|
+
}
|
|
22680
|
+
PrettyJsonPipe.prototype.transform = function (val) {
|
|
22681
|
+
return JSON.stringify(val, null, 2)
|
|
22682
|
+
.replace(' ', ' ')
|
|
22683
|
+
.replace('\n', '<br/>');
|
|
22684
|
+
};
|
|
22685
|
+
return PrettyJsonPipe;
|
|
22686
|
+
}());
|
|
22687
|
+
PrettyJsonPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PrettyJsonPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
22688
|
+
PrettyJsonPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PrettyJsonPipe, name: "prettyJson" });
|
|
22689
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PrettyJsonPipe, decorators: [{
|
|
22690
|
+
type: i0.Pipe,
|
|
22691
|
+
args: [{
|
|
22692
|
+
name: 'prettyJson'
|
|
22693
|
+
}]
|
|
22694
|
+
}] });
|
|
22695
|
+
var PrettyJsonPipeModule = /** @class */ (function () {
|
|
22696
|
+
function PrettyJsonPipeModule() {
|
|
22697
|
+
}
|
|
22698
|
+
return PrettyJsonPipeModule;
|
|
22699
|
+
}());
|
|
22700
|
+
PrettyJsonPipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PrettyJsonPipeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
22701
|
+
PrettyJsonPipeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PrettyJsonPipeModule, declarations: [PrettyJsonPipe] });
|
|
22702
|
+
PrettyJsonPipeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PrettyJsonPipeModule, providers: [], imports: [[]] });
|
|
22703
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PrettyJsonPipeModule, decorators: [{
|
|
22704
|
+
type: i0.NgModule,
|
|
22705
|
+
args: [{
|
|
22706
|
+
imports: [],
|
|
22707
|
+
exports: [],
|
|
22708
|
+
declarations: [PrettyJsonPipe],
|
|
22709
|
+
providers: [],
|
|
22710
|
+
}]
|
|
22711
|
+
}] });
|
|
22712
|
+
|
|
22556
22713
|
var BreadcrumbService = /** @class */ (function () {
|
|
22557
22714
|
function BreadcrumbService() {
|
|
22558
22715
|
this.itemsSource = new rxjs.Subject();
|
|
@@ -24854,6 +25011,691 @@
|
|
|
24854
25011
|
return SmzMenuItemBuilder;
|
|
24855
25012
|
}());
|
|
24856
25013
|
|
|
25014
|
+
var LegendBuilder = /** @class */ (function () {
|
|
25015
|
+
function LegendBuilder(_builder) {
|
|
25016
|
+
this._builder = _builder;
|
|
25017
|
+
}
|
|
25018
|
+
LegendBuilder.prototype.align = function (align) {
|
|
25019
|
+
return this;
|
|
25020
|
+
};
|
|
25021
|
+
LegendBuilder.prototype.at = function (position) {
|
|
25022
|
+
return this;
|
|
25023
|
+
};
|
|
25024
|
+
LegendBuilder.prototype.title = function (title) {
|
|
25025
|
+
return this;
|
|
25026
|
+
};
|
|
25027
|
+
LegendBuilder.prototype.usePointStyles = function () {
|
|
25028
|
+
return this;
|
|
25029
|
+
};
|
|
25030
|
+
Object.defineProperty(LegendBuilder.prototype, "chart", {
|
|
25031
|
+
get: function () {
|
|
25032
|
+
return this._builder;
|
|
25033
|
+
},
|
|
25034
|
+
enumerable: false,
|
|
25035
|
+
configurable: true
|
|
25036
|
+
});
|
|
25037
|
+
return LegendBuilder;
|
|
25038
|
+
}());
|
|
25039
|
+
|
|
25040
|
+
var TitleBuilder = /** @class */ (function () {
|
|
25041
|
+
function TitleBuilder(_builder, title) {
|
|
25042
|
+
this._builder = _builder;
|
|
25043
|
+
this.title = title;
|
|
25044
|
+
}
|
|
25045
|
+
TitleBuilder.prototype.padding = function (top, bottom) {
|
|
25046
|
+
return this;
|
|
25047
|
+
};
|
|
25048
|
+
TitleBuilder.prototype.font = function (size, lineheight, family) {
|
|
25049
|
+
if (lineheight === void 0) { lineheight = null; }
|
|
25050
|
+
if (family === void 0) { family = null; }
|
|
25051
|
+
return this;
|
|
25052
|
+
};
|
|
25053
|
+
TitleBuilder.prototype.alignment = function (align) {
|
|
25054
|
+
return this;
|
|
25055
|
+
};
|
|
25056
|
+
TitleBuilder.prototype.at = function (position) {
|
|
25057
|
+
return this;
|
|
25058
|
+
};
|
|
25059
|
+
TitleBuilder.prototype.color = function (color) {
|
|
25060
|
+
return this;
|
|
25061
|
+
};
|
|
25062
|
+
Object.defineProperty(TitleBuilder.prototype, "chart", {
|
|
25063
|
+
get: function () {
|
|
25064
|
+
return this._builder;
|
|
25065
|
+
},
|
|
25066
|
+
enumerable: false,
|
|
25067
|
+
configurable: true
|
|
25068
|
+
});
|
|
25069
|
+
return TitleBuilder;
|
|
25070
|
+
}());
|
|
25071
|
+
|
|
25072
|
+
var TooltipBuilder = /** @class */ (function () {
|
|
25073
|
+
function TooltipBuilder(_builder) {
|
|
25074
|
+
this._builder = _builder;
|
|
25075
|
+
}
|
|
25076
|
+
TooltipBuilder.prototype.backgroundColor = function (color) {
|
|
25077
|
+
return this;
|
|
25078
|
+
};
|
|
25079
|
+
TooltipBuilder.prototype.useSeriesPointStyles = function () {
|
|
25080
|
+
return this;
|
|
25081
|
+
};
|
|
25082
|
+
TooltipBuilder.prototype.cornerRadius = function (radius) {
|
|
25083
|
+
return this;
|
|
25084
|
+
};
|
|
25085
|
+
TooltipBuilder.prototype.atPointLocation = function () {
|
|
25086
|
+
return this;
|
|
25087
|
+
};
|
|
25088
|
+
TooltipBuilder.prototype.atVerticalAxis = function () {
|
|
25089
|
+
return this;
|
|
25090
|
+
};
|
|
25091
|
+
TooltipBuilder.prototype.border = function (color, width) {
|
|
25092
|
+
return this;
|
|
25093
|
+
};
|
|
25094
|
+
Object.defineProperty(TooltipBuilder.prototype, "chart", {
|
|
25095
|
+
get: function () {
|
|
25096
|
+
return this._builder;
|
|
25097
|
+
},
|
|
25098
|
+
enumerable: false,
|
|
25099
|
+
configurable: true
|
|
25100
|
+
});
|
|
25101
|
+
return TooltipBuilder;
|
|
25102
|
+
}());
|
|
25103
|
+
|
|
25104
|
+
function NewChart() {
|
|
25105
|
+
return new chart_js.Chart(null, { type: null, data: { datasets: [] }, options: {} });
|
|
25106
|
+
}
|
|
25107
|
+
var BaseChartBuilder = /** @class */ (function () {
|
|
25108
|
+
// public _seriesSelector: (x: TData) => string;
|
|
25109
|
+
// public _dateSelector: (x: TData) => Date;
|
|
25110
|
+
// public _valueSelector: (x: TData[]) => number;
|
|
25111
|
+
function BaseChartBuilder(_originalData) {
|
|
25112
|
+
this._originalData = _originalData;
|
|
25113
|
+
this._chart = NewChart();
|
|
25114
|
+
}
|
|
25115
|
+
BaseChartBuilder.prototype.ofType = function (type) {
|
|
25116
|
+
return this.that;
|
|
25117
|
+
};
|
|
25118
|
+
BaseChartBuilder.prototype.withTitle = function (title) {
|
|
25119
|
+
return new TitleBuilder(this.that, title);
|
|
25120
|
+
};
|
|
25121
|
+
BaseChartBuilder.prototype.withTooltips = function () {
|
|
25122
|
+
return new TooltipBuilder(this.that);
|
|
25123
|
+
};
|
|
25124
|
+
BaseChartBuilder.prototype.withLegend = function () {
|
|
25125
|
+
return new LegendBuilder(this.that);
|
|
25126
|
+
};
|
|
25127
|
+
BaseChartBuilder.prototype.padding = function (left, right, top, bottom) {
|
|
25128
|
+
return this.that;
|
|
25129
|
+
};
|
|
25130
|
+
BaseChartBuilder.prototype.aspectRatio = function (ratio) {
|
|
25131
|
+
return this.that;
|
|
25132
|
+
};
|
|
25133
|
+
BaseChartBuilder.prototype.allowEmpty = function () {
|
|
25134
|
+
return this.that;
|
|
25135
|
+
};
|
|
25136
|
+
BaseChartBuilder.prototype.responsive = function () {
|
|
25137
|
+
return this.that;
|
|
25138
|
+
};
|
|
25139
|
+
BaseChartBuilder.prototype.build = function (debug) {
|
|
25140
|
+
if (debug === void 0) { debug = false; }
|
|
25141
|
+
var results = {
|
|
25142
|
+
type: null,
|
|
25143
|
+
config: null,
|
|
25144
|
+
data: null
|
|
25145
|
+
};
|
|
25146
|
+
return results;
|
|
25147
|
+
};
|
|
25148
|
+
return BaseChartBuilder;
|
|
25149
|
+
}());
|
|
25150
|
+
|
|
25151
|
+
var ChartColorSelector = /** @class */ (function () {
|
|
25152
|
+
function ChartColorSelector() {
|
|
25153
|
+
}
|
|
25154
|
+
ChartColorSelector.GetColors = function (palletes) {
|
|
25155
|
+
if (palletes.length == 0)
|
|
25156
|
+
throw new Error('You need to specify ate least one color pallete');
|
|
25157
|
+
var colors = [];
|
|
25158
|
+
palletes.forEach(function (pallete) {
|
|
25159
|
+
// var type = typeof(ChartColorSelector);
|
|
25160
|
+
// TODO: traduzir lógica
|
|
25161
|
+
// var info = type.GetField(pallete.ToString(), BindingFlags.NonPublic | BindingFlags.Static);
|
|
25162
|
+
// var value = (string[])info.GetValue(null);
|
|
25163
|
+
// colors.push(value);
|
|
25164
|
+
});
|
|
25165
|
+
return colors;
|
|
25166
|
+
};
|
|
25167
|
+
return ChartColorSelector;
|
|
25168
|
+
}());
|
|
25169
|
+
ChartColorSelector.Bright1 = ['#01A5E4', '#8DD7BF', '#FF96C5', '#FF5768', '#FFBF65'];
|
|
25170
|
+
ChartColorSelector.Bright2 = ['#FC6328', '#FFD872', '#F2D4CC', '#E77577', '#6C88C4'];
|
|
25171
|
+
ChartColorSelector.Bright3 = ['#C05780', '#FF828B', '#E7C582', '#00B0BA', '#0065A2'];
|
|
25172
|
+
ChartColorSelector.Bright4 = ['#00CDAC', '#FF6F68', '#FFDACC', '#FF60A8', '#CFF800'];
|
|
25173
|
+
ChartColorSelector.Bright5 = ['#FF5C77', '#4DD091', '#FFEC59', '#FFA23A', '#74737A'];
|
|
25174
|
+
ChartColorSelector.Spring1 = ['#AFDDD5', '#FFA700', '#FFCCDD', '#F56093', '#64864A'];
|
|
25175
|
+
ChartColorSelector.Spring2 = ['#DFE6E6', '#EFDEC0', '#FF7E5A', '#FFBD00', '#7DB954'];
|
|
25176
|
+
ChartColorSelector.Spring3 = ['#FEDDCB', '#FFC700', '#CEE8E5', '#C6C598', '#FEE100'];
|
|
25177
|
+
ChartColorSelector.Spring4 = ['#FAC4C4', '#E9E7AD', '#FDBB9F', '#FFFFFF', '#EADCC3'];
|
|
25178
|
+
ChartColorSelector.Spring5 = ['#EEF3B4', '#FFB27B', '#FF284B', '#7ABAA1', '#CFEAE4'];
|
|
25179
|
+
ChartColorSelector.Summer1 = ['#53CFDA', '#EFF2E6', '#FF7994', '#FFC900', '#FFED00'];
|
|
25180
|
+
ChartColorSelector.Summer2 = ['#FF8860', '#F7D635', '#D6E8D9', '#F1C9C2', '#1F3D51'];
|
|
25181
|
+
ChartColorSelector.Summer3 = ['#FF3747', '#FF8B0F', '#FFD600', '#EAE45F', '#DDF5C2'];
|
|
25182
|
+
ChartColorSelector.Summer4 = ['#FF458F', '#FF8352', '#DEE500', '#00E1DF', '#00C3AF'];
|
|
25183
|
+
ChartColorSelector.Summer5 = ['#EDF7DD', '#4FCBBB', '#2494CC', '#EF39A7', '#FFAE90'];
|
|
25184
|
+
ChartColorSelector.Pastel1 = ['#ABDEE6', '#CBAACB', '#FFFFB5', '#FFCCB6', '#F3B0C3'];
|
|
25185
|
+
ChartColorSelector.Pastel2 = ['#FF968A', '#FFAEA5', '#FFC5BF', '#F6EAC2', '#ECD5E3'];
|
|
25186
|
+
ChartColorSelector.Pastel3 = ['#FF968A', '#FFAEA5', '#FFC5BF', '#FFD8BE', '#FFC8A2'];
|
|
25187
|
+
ChartColorSelector.Pastel4 = ['#D4F0F0', '#8FCACA', '#CCE2CB', '#B6CFB6', '#97C1A9'];
|
|
25188
|
+
ChartColorSelector.Pastel5 = ['#FCB9AA', '#FFDBCC', '#ECEAE4', '#A2E1DB', '#55CBCD'];
|
|
25189
|
+
ChartColorSelector.Winter1 = ['#445A67', '#57838D', '#B4C9C7', '#F3BFB3', '#CCADB2'];
|
|
25190
|
+
ChartColorSelector.Winter2 = ['#FFEFFF', '#F6F7FB', '#E0F8F5', '#BEEDE5', '#A7D9C9'];
|
|
25191
|
+
ChartColorSelector.Winter3 = ['#50B4D8', '#9EDDEF', '#F7E5D7', '#D7E2EA', '#96B3C2'];
|
|
25192
|
+
ChartColorSelector.Winter4 = ['#FFDAD1', '#FFEDDA', '#CAB3C1', '#6E7B8F', '#2E3332'];
|
|
25193
|
+
ChartColorSelector.Winter5 = ['#C29BA3', '#E3BFB7', '#FFE4C9', '#B7EAF7', '#8A9BA7'];
|
|
25194
|
+
ChartColorSelector.Gemstone1 = ['#53051D', '#9E1C5C', '#EF70AA', '#FF8C94', '#F12761'];
|
|
25195
|
+
ChartColorSelector.Gemstone2 = ['#00C6C7', '#96D5E2', '#00ACA5', '#006F60', '#005245'];
|
|
25196
|
+
ChartColorSelector.Gemstone3 = ['#EEAC4D', '#FFF2C3', '#EE84B3', '#740E4C', '#E2035D'];
|
|
25197
|
+
ChartColorSelector.Gemstone4 = ['#B57E79', '#FF6F68', '#00E9E7', '#006072', '#5C2A2E'];
|
|
25198
|
+
ChartColorSelector.Gemstone5 = ['#20503E', '#187B30', '#75E0B0', '#2D8498', '#4CB0A6'];
|
|
25199
|
+
ChartColorSelector.Autumn1 = ['#57291F', '#C0413B', '#D77B5F', '#FF9200', '#FFCD73'];
|
|
25200
|
+
ChartColorSelector.Autumn2 = ['#F7E5BF', '#C87505', '#F18E3F', '#E59579', '#C14C32'];
|
|
25201
|
+
ChartColorSelector.Autumn3 = ['#80003A', '#8CB5B5', '#6C3400', '#FFA400', '#EC410B'];
|
|
25202
|
+
ChartColorSelector.Autumn4 = ['#E63400', '#8CB5B5', '#6C3400', '#FFA400', '#41222A'];
|
|
25203
|
+
ChartColorSelector.Autumn5 = ['#FFF7C2', '#FFB27B', '#FF7B80', '#BC7576', '#696B7E'];
|
|
25204
|
+
ChartColorSelector.Vivid1 = ['#FF3784', '#36A2EB', '#4BC0C0', '#F77825', '#9966FF'];
|
|
25205
|
+
ChartColorSelector.Vivid2 = ['#0074D9', '#FF4136', '#2ECC40', '#FF851B', '#7FDBFF'];
|
|
25206
|
+
ChartColorSelector.Vivid3 = ['#2D95EC', '#F6BA2A', '#F64D2A', '#8ABB21', '#E2711D'];
|
|
25207
|
+
ChartColorSelector.Vivid4 = ['#EC1F24', '#69BC45', '#3651A2', '#F3EC1F', '#6CCCDE'];
|
|
25208
|
+
ChartColorSelector.Vivid5 = ['#EC0F7B', '#F6831B', '#97C93B', '#6CC175', '#6950A1'];
|
|
25209
|
+
ChartColorSelector.Vivid6 = ['#CD1724', '#07B8FF', '#34A300', '#8D4D00', '#FFE700'];
|
|
25210
|
+
ChartColorSelector.General1 = ['#4573A7', '#AA4644', '#89A54E', '#71588F', '#4298AF'];
|
|
25211
|
+
ChartColorSelector.General2 = ['#DB843D', '#93A9D0', '#D09392', '#BACD96', '#A99BBE'];
|
|
25212
|
+
ChartColorSelector.General3 = ['#68D4CD', '#CFF67B', '#94DAFB', '#FD8080', '#6C838D'];
|
|
25213
|
+
ChartColorSelector.General4 = ['#26A0FC', '#26E7A6', '#FEBC3B', '#FAB1B2', '#8B75D7'];
|
|
25214
|
+
ChartColorSelector.General5 = ['#E64345', '#E48F1B', '#F7D027', '#6BA547', '#619ED6'];
|
|
25215
|
+
ChartColorSelector.General6 = ['#60CEED', '#9CF168', '#F7EA4A', '#FBC543', '#FFC9ED'];
|
|
25216
|
+
ChartColorSelector.General7 = ['#64D0DA', '#34B2E4', '#065381', '#8B103E', '#E34856'];
|
|
25217
|
+
ChartColorSelector.General8 = ['#FE912A', '#E6696E', '#B64D8B', '#554D89', '#003E59'];
|
|
25218
|
+
ChartColorSelector.Red1 = ['#4F2623', '#632724', '#923734', '#A93F3B', '#BA5754'];
|
|
25219
|
+
ChartColorSelector.Red2 = ['#D13A2C', '#E14A3B', '#F0594B', '#F76959', '#F7C6B5'];
|
|
25220
|
+
ChartColorSelector.Blue1 = ['#2244A1', '#345DB3', '#537BD2', '#6A94DD', '#9DC2F7'];
|
|
25221
|
+
ChartColorSelector.Blue2 = ['#2082CA', '#3797D8', '#44ABE8', '#58C5EF', '#78D8F5'];
|
|
25222
|
+
ChartColorSelector.Green1 = ['#39590A', '#51761C', '#689E2C', '#91C637', '#A2D970'];
|
|
25223
|
+
ChartColorSelector.Green2 = ['#005F03', '#0F8D00', '#2EC500', '#48DE48', '#9FF3A1'];
|
|
25224
|
+
ChartColorSelector.Green3 = ['#CEC358', '#D7C819', '#E9DA1E', '#F0E785', '#F5F1B7'];
|
|
25225
|
+
ChartColorSelector.Green4 = ['#0D754E', '#10A86F', '#46B98C', '#76CBA8', '#BBE4D4'];
|
|
25226
|
+
ChartColorSelector.Yellow1 = ['#A07900', '#C69A12', '#E5B72B', '#F1C04C', '#F1D185'];
|
|
25227
|
+
ChartColorSelector.Pink1 = ['#C75B73', '#DA7B8E', '#E79099', '#E4A2A7', '#ECBCBC'];
|
|
25228
|
+
ChartColorSelector.Pink2 = ['#F73E3E', '#F75D5D', '#F77C7C', '#F79B9B', '#F7BABA'];
|
|
25229
|
+
ChartColorSelector.Soft1 = ['#FFCDD2', '#F8BBD0', '#E1BEE7', '#D1C4E9', '#C5CAE9'];
|
|
25230
|
+
ChartColorSelector.Soft2 = ['#BBDEFB', '#B3E5FC', '#B2EBF2', '#B2DFDB', '#C8E6C9'];
|
|
25231
|
+
ChartColorSelector.Soft3 = ['#DCEDC8', '#F0F4C3', '#FFECB3', '#FFE0B2', '#FFCCBC'];
|
|
25232
|
+
|
|
25233
|
+
var CartesianTitleBuilder = /** @class */ (function () {
|
|
25234
|
+
function CartesianTitleBuilder(builder, scale) {
|
|
25235
|
+
this.scale = scale;
|
|
25236
|
+
}
|
|
25237
|
+
CartesianTitleBuilder.prototype.at = function (position) {
|
|
25238
|
+
return this;
|
|
25239
|
+
};
|
|
25240
|
+
CartesianTitleBuilder.prototype.font = function (size, lineHeight, font) {
|
|
25241
|
+
return this;
|
|
25242
|
+
};
|
|
25243
|
+
CartesianTitleBuilder.prototype.padding = function (left, top, right, bottom) {
|
|
25244
|
+
return this;
|
|
25245
|
+
};
|
|
25246
|
+
return CartesianTitleBuilder;
|
|
25247
|
+
}());
|
|
25248
|
+
|
|
25249
|
+
var CartesianScaleBuilder = /** @class */ (function () {
|
|
25250
|
+
function CartesianScaleBuilder(builder, scale) {
|
|
25251
|
+
this.scale = scale;
|
|
25252
|
+
}
|
|
25253
|
+
CartesianScaleBuilder.prototype.stacked = function () {
|
|
25254
|
+
return this;
|
|
25255
|
+
};
|
|
25256
|
+
CartesianScaleBuilder.prototype.hideGridlines = function () {
|
|
25257
|
+
return this;
|
|
25258
|
+
};
|
|
25259
|
+
CartesianScaleBuilder.prototype.at = function (position) {
|
|
25260
|
+
return this;
|
|
25261
|
+
};
|
|
25262
|
+
CartesianScaleBuilder.prototype.title = function (label) {
|
|
25263
|
+
return new CartesianTitleBuilder(this, this.scale);
|
|
25264
|
+
};
|
|
25265
|
+
CartesianScaleBuilder.prototype.range = function (min, max) {
|
|
25266
|
+
return this;
|
|
25267
|
+
};
|
|
25268
|
+
CartesianScaleBuilder.prototype.stepSize = function (size) {
|
|
25269
|
+
return this;
|
|
25270
|
+
};
|
|
25271
|
+
CartesianScaleBuilder.prototype.setYAxisOverflow = function (type, direction, value) {
|
|
25272
|
+
return this;
|
|
25273
|
+
};
|
|
25274
|
+
CartesianScaleBuilder.prototype.autoSkip = function (padding) {
|
|
25275
|
+
return this;
|
|
25276
|
+
};
|
|
25277
|
+
return CartesianScaleBuilder;
|
|
25278
|
+
}());
|
|
25279
|
+
|
|
25280
|
+
var HistogramDataBuilder = /** @class */ (function () {
|
|
25281
|
+
function HistogramDataBuilder(_builder, intervalCount) {
|
|
25282
|
+
this._builder = _builder;
|
|
25283
|
+
this.intervalCount = intervalCount;
|
|
25284
|
+
}
|
|
25285
|
+
HistogramDataBuilder.prototype.appendExtraData = function (converter) {
|
|
25286
|
+
return this;
|
|
25287
|
+
};
|
|
25288
|
+
HistogramDataBuilder.prototype.setDesiredIntervalFraction = function (value) {
|
|
25289
|
+
return this;
|
|
25290
|
+
};
|
|
25291
|
+
HistogramDataBuilder.prototype.valuesFrom = function (valueSelector) {
|
|
25292
|
+
return this;
|
|
25293
|
+
};
|
|
25294
|
+
Object.defineProperty(HistogramDataBuilder.prototype, "chart", {
|
|
25295
|
+
get: function () {
|
|
25296
|
+
return this._builder;
|
|
25297
|
+
},
|
|
25298
|
+
enumerable: false,
|
|
25299
|
+
configurable: true
|
|
25300
|
+
});
|
|
25301
|
+
return HistogramDataBuilder;
|
|
25302
|
+
}());
|
|
25303
|
+
|
|
25304
|
+
var LinearCategoryDataBuilder = /** @class */ (function () {
|
|
25305
|
+
function LinearCategoryDataBuilder(_builder) {
|
|
25306
|
+
this._builder = _builder;
|
|
25307
|
+
}
|
|
25308
|
+
LinearCategoryDataBuilder.prototype.appendExtraData = function (converter) {
|
|
25309
|
+
return this;
|
|
25310
|
+
};
|
|
25311
|
+
LinearCategoryDataBuilder.prototype.categoryFrom = function (categorySelector) {
|
|
25312
|
+
return this;
|
|
25313
|
+
};
|
|
25314
|
+
LinearCategoryDataBuilder.prototype.seriesFrom = function (seriesSelector) {
|
|
25315
|
+
return this;
|
|
25316
|
+
};
|
|
25317
|
+
LinearCategoryDataBuilder.prototype.valueFrom = function (valueSelector) {
|
|
25318
|
+
return this;
|
|
25319
|
+
};
|
|
25320
|
+
LinearCategoryDataBuilder.prototype.singleSerie = function () {
|
|
25321
|
+
return this;
|
|
25322
|
+
};
|
|
25323
|
+
LinearCategoryDataBuilder.prototype.roundValues = function (decimalPlaces) {
|
|
25324
|
+
return this;
|
|
25325
|
+
};
|
|
25326
|
+
Object.defineProperty(LinearCategoryDataBuilder.prototype, "chart", {
|
|
25327
|
+
get: function () {
|
|
25328
|
+
return this._builder;
|
|
25329
|
+
},
|
|
25330
|
+
enumerable: false,
|
|
25331
|
+
configurable: true
|
|
25332
|
+
});
|
|
25333
|
+
return LinearCategoryDataBuilder;
|
|
25334
|
+
}());
|
|
25335
|
+
|
|
25336
|
+
var DatasetBuilder = /** @class */ (function () {
|
|
25337
|
+
function DatasetBuilder(_builder) {
|
|
25338
|
+
this._builder = _builder;
|
|
25339
|
+
}
|
|
25340
|
+
Object.defineProperty(DatasetBuilder.prototype, "chart", {
|
|
25341
|
+
get: function () {
|
|
25342
|
+
return this._builder;
|
|
25343
|
+
},
|
|
25344
|
+
enumerable: false,
|
|
25345
|
+
configurable: true
|
|
25346
|
+
});
|
|
25347
|
+
return DatasetBuilder;
|
|
25348
|
+
}());
|
|
25349
|
+
|
|
25350
|
+
var LinearDatasetBuilder = /** @class */ (function (_super) {
|
|
25351
|
+
__extends(LinearDatasetBuilder, _super);
|
|
25352
|
+
function LinearDatasetBuilder(builder, datasets) {
|
|
25353
|
+
var _this = _super.call(this, builder) || this;
|
|
25354
|
+
_this.datasets = datasets;
|
|
25355
|
+
return _this;
|
|
25356
|
+
}
|
|
25357
|
+
LinearDatasetBuilder.prototype.ofType = function (type) {
|
|
25358
|
+
return this;
|
|
25359
|
+
};
|
|
25360
|
+
LinearDatasetBuilder.prototype.valuesRounding = function (decimals) {
|
|
25361
|
+
return this;
|
|
25362
|
+
};
|
|
25363
|
+
LinearDatasetBuilder.prototype.label = function (label) {
|
|
25364
|
+
return this;
|
|
25365
|
+
};
|
|
25366
|
+
LinearDatasetBuilder.prototype.thickness = function (thickness) {
|
|
25367
|
+
return this;
|
|
25368
|
+
};
|
|
25369
|
+
LinearDatasetBuilder.prototype.customAxis = function (axisId) {
|
|
25370
|
+
return this;
|
|
25371
|
+
};
|
|
25372
|
+
LinearDatasetBuilder.prototype.color = function (color, transparency) {
|
|
25373
|
+
if (transparency === void 0) { transparency = 'ff'; }
|
|
25374
|
+
return this;
|
|
25375
|
+
};
|
|
25376
|
+
LinearDatasetBuilder.prototype.barPercentage = function (value) {
|
|
25377
|
+
return this;
|
|
25378
|
+
};
|
|
25379
|
+
LinearDatasetBuilder.prototype.pointStyle = function (style) {
|
|
25380
|
+
return this;
|
|
25381
|
+
};
|
|
25382
|
+
LinearDatasetBuilder.prototype.pointRadius = function (radius, hitRadius) {
|
|
25383
|
+
if (hitRadius === void 0) { hitRadius = null; }
|
|
25384
|
+
return this;
|
|
25385
|
+
};
|
|
25386
|
+
LinearDatasetBuilder.prototype.roundedBorders = function (radius) {
|
|
25387
|
+
return this;
|
|
25388
|
+
};
|
|
25389
|
+
LinearDatasetBuilder.prototype.roundToNearestStorageUnit = function (showUnitsInChartTitle) {
|
|
25390
|
+
if (showUnitsInChartTitle === void 0) { showUnitsInChartTitle = false; }
|
|
25391
|
+
return this;
|
|
25392
|
+
};
|
|
25393
|
+
return LinearDatasetBuilder;
|
|
25394
|
+
}(DatasetBuilder));
|
|
25395
|
+
|
|
25396
|
+
var LinearDateDataBuilder = /** @class */ (function () {
|
|
25397
|
+
function LinearDateDataBuilder(_builder, type) {
|
|
25398
|
+
this._builder = _builder;
|
|
25399
|
+
this.type = type;
|
|
25400
|
+
}
|
|
25401
|
+
LinearDateDataBuilder.prototype.enforceStartDate = function (data) {
|
|
25402
|
+
return this;
|
|
25403
|
+
};
|
|
25404
|
+
LinearDateDataBuilder.prototype.enforceEndDate = function (data) {
|
|
25405
|
+
return this;
|
|
25406
|
+
};
|
|
25407
|
+
LinearDateDataBuilder.prototype.take = function (value) {
|
|
25408
|
+
return this;
|
|
25409
|
+
};
|
|
25410
|
+
LinearDateDataBuilder.prototype.appendExtraData = function (converter) {
|
|
25411
|
+
return this;
|
|
25412
|
+
};
|
|
25413
|
+
LinearDateDataBuilder.prototype.seriesFrom = function (seriesSelector) {
|
|
25414
|
+
return this;
|
|
25415
|
+
};
|
|
25416
|
+
LinearDateDataBuilder.prototype.singleSerie = function () {
|
|
25417
|
+
return this;
|
|
25418
|
+
};
|
|
25419
|
+
LinearDateDataBuilder.prototype.dateFrom = function (dateSelector) {
|
|
25420
|
+
return this;
|
|
25421
|
+
};
|
|
25422
|
+
LinearDateDataBuilder.prototype.valueFrom = function (valueSelector) {
|
|
25423
|
+
return this;
|
|
25424
|
+
};
|
|
25425
|
+
LinearDateDataBuilder.prototype.addSerie = function (name, addSerieSelector) {
|
|
25426
|
+
return this;
|
|
25427
|
+
};
|
|
25428
|
+
LinearDateDataBuilder.prototype.roundValues = function (decimalPlaces) {
|
|
25429
|
+
return this;
|
|
25430
|
+
};
|
|
25431
|
+
LinearDateDataBuilder.prototype.buildLineChartAxis = function () {
|
|
25432
|
+
// TODO: any é uma Point
|
|
25433
|
+
return [];
|
|
25434
|
+
};
|
|
25435
|
+
Object.defineProperty(LinearDateDataBuilder.prototype, "chart", {
|
|
25436
|
+
get: function () {
|
|
25437
|
+
return this._builder;
|
|
25438
|
+
},
|
|
25439
|
+
enumerable: false,
|
|
25440
|
+
configurable: true
|
|
25441
|
+
});
|
|
25442
|
+
return LinearDateDataBuilder;
|
|
25443
|
+
}());
|
|
25444
|
+
|
|
25445
|
+
function CreateLinearChart(data) {
|
|
25446
|
+
return new LinearChartBuilder(data);
|
|
25447
|
+
}
|
|
25448
|
+
var LinearChartBuilder = /** @class */ (function (_super) {
|
|
25449
|
+
__extends(LinearChartBuilder, _super);
|
|
25450
|
+
function LinearChartBuilder(originalData) {
|
|
25451
|
+
var _this = _super.call(this, originalData) || this;
|
|
25452
|
+
_this.that = _this;
|
|
25453
|
+
return _this;
|
|
25454
|
+
}
|
|
25455
|
+
LinearChartBuilder.prototype.prepareLinearDateData = function (type) {
|
|
25456
|
+
return new LinearDateDataBuilder(this, type);
|
|
25457
|
+
};
|
|
25458
|
+
LinearChartBuilder.prototype.prepareLinearCategoryData = function () {
|
|
25459
|
+
return new LinearCategoryDataBuilder(this);
|
|
25460
|
+
};
|
|
25461
|
+
LinearChartBuilder.prototype.prepareHistogramData = function (intervalCount) {
|
|
25462
|
+
return new HistogramDataBuilder(this, intervalCount);
|
|
25463
|
+
};
|
|
25464
|
+
LinearChartBuilder.prototype.setupDataset = function (datasetId) {
|
|
25465
|
+
var dataset = this._chart.data.datasets.find(function (x) { return x['id'] == datasetId; });
|
|
25466
|
+
if (dataset == null && this._chart.data.datasets.length > 0)
|
|
25467
|
+
throw new Error("Unknown dataset: " + datasetId);
|
|
25468
|
+
var orderedDatasets = this._chart.data.datasets.filter(function (x) { return x.order != null; });
|
|
25469
|
+
if (orderedDatasets != null && orderedDatasets.length > 0) {
|
|
25470
|
+
if (dataset != null) {
|
|
25471
|
+
dataset.order = Math.max.apply(Math, __spreadArray([], __read(orderedDatasets.map(function (x) { return x.order; })))) + 1;
|
|
25472
|
+
}
|
|
25473
|
+
}
|
|
25474
|
+
else {
|
|
25475
|
+
if (dataset != null) {
|
|
25476
|
+
dataset.order = 0;
|
|
25477
|
+
}
|
|
25478
|
+
}
|
|
25479
|
+
return new LinearDatasetBuilder(this.that, [dataset]);
|
|
25480
|
+
};
|
|
25481
|
+
LinearChartBuilder.prototype.setupDatasets = function () {
|
|
25482
|
+
return new LinearDatasetBuilder(this.that, this._chart.data.datasets);
|
|
25483
|
+
};
|
|
25484
|
+
LinearChartBuilder.prototype.theme = function (palletes, backgroundTransparency) {
|
|
25485
|
+
return this.colors(ChartColorSelector.GetColors(palletes), backgroundTransparency !== null && backgroundTransparency !== void 0 ? backgroundTransparency : 'ff');
|
|
25486
|
+
};
|
|
25487
|
+
LinearChartBuilder.prototype.colors = function (colors, backgroundTransparency) {
|
|
25488
|
+
if (backgroundTransparency === void 0) { backgroundTransparency = 'ff'; }
|
|
25489
|
+
return this;
|
|
25490
|
+
};
|
|
25491
|
+
LinearChartBuilder.prototype.withXAxis = function (axisId) {
|
|
25492
|
+
return this.withAxis(axisId);
|
|
25493
|
+
};
|
|
25494
|
+
LinearChartBuilder.prototype.withYAxis = function (axisId) {
|
|
25495
|
+
return this.withAxis(axisId);
|
|
25496
|
+
};
|
|
25497
|
+
LinearChartBuilder.prototype.withAxis = function (axisId) {
|
|
25498
|
+
var axis = null;
|
|
25499
|
+
return new CartesianScaleBuilder(this.that, axis);
|
|
25500
|
+
};
|
|
25501
|
+
// TODO: any é um Point
|
|
25502
|
+
// o nome desse método tem WithExpression pq o typescript não suporte overloads de métodos
|
|
25503
|
+
LinearChartBuilder.prototype.reorderCategoriesWithExpression = function (expression) {
|
|
25504
|
+
return this;
|
|
25505
|
+
};
|
|
25506
|
+
LinearChartBuilder.prototype.reorderCategories = function (orderedCategories) {
|
|
25507
|
+
return this;
|
|
25508
|
+
};
|
|
25509
|
+
LinearChartBuilder.prototype.setColors = function (pallete, indices) {
|
|
25510
|
+
return this;
|
|
25511
|
+
};
|
|
25512
|
+
return LinearChartBuilder;
|
|
25513
|
+
}(BaseChartBuilder));
|
|
25514
|
+
|
|
25515
|
+
var RadialDataBuilder = /** @class */ (function () {
|
|
25516
|
+
function RadialDataBuilder(_builder, type) {
|
|
25517
|
+
this._builder = _builder;
|
|
25518
|
+
this.type = type;
|
|
25519
|
+
}
|
|
25520
|
+
RadialDataBuilder.prototype.appendExtraData = function (converter) {
|
|
25521
|
+
return this;
|
|
25522
|
+
};
|
|
25523
|
+
RadialDataBuilder.prototype.seriesFrom = function (seriesSelector) {
|
|
25524
|
+
return this;
|
|
25525
|
+
};
|
|
25526
|
+
RadialDataBuilder.prototype.maximumSeries = function (value, label) {
|
|
25527
|
+
return this;
|
|
25528
|
+
};
|
|
25529
|
+
RadialDataBuilder.prototype.take = function (value) {
|
|
25530
|
+
return this;
|
|
25531
|
+
};
|
|
25532
|
+
RadialDataBuilder.prototype.valueFrom = function (valueSelector) {
|
|
25533
|
+
return this;
|
|
25534
|
+
};
|
|
25535
|
+
RadialDataBuilder.prototype.roundValues = function (decimalPlaces) {
|
|
25536
|
+
return this;
|
|
25537
|
+
};
|
|
25538
|
+
Object.defineProperty(RadialDataBuilder.prototype, "chart", {
|
|
25539
|
+
get: function () {
|
|
25540
|
+
return this._builder;
|
|
25541
|
+
},
|
|
25542
|
+
enumerable: false,
|
|
25543
|
+
configurable: true
|
|
25544
|
+
});
|
|
25545
|
+
return RadialDataBuilder;
|
|
25546
|
+
}());
|
|
25547
|
+
|
|
25548
|
+
function CreateRadialChart(data) {
|
|
25549
|
+
return new RadialChartBuilder(data);
|
|
25550
|
+
}
|
|
25551
|
+
var RadialChartBuilder = /** @class */ (function (_super) {
|
|
25552
|
+
__extends(RadialChartBuilder, _super);
|
|
25553
|
+
function RadialChartBuilder(originalData) {
|
|
25554
|
+
var _this = _super.call(this, originalData) || this;
|
|
25555
|
+
_this.that = _this;
|
|
25556
|
+
return _this;
|
|
25557
|
+
}
|
|
25558
|
+
RadialChartBuilder.prototype.setValuesRounding = function (decimals) {
|
|
25559
|
+
return this;
|
|
25560
|
+
};
|
|
25561
|
+
RadialChartBuilder.prototype.theme = function (palletes, backgroundTransparency) {
|
|
25562
|
+
return this.colors(ChartColorSelector.GetColors(palletes), backgroundTransparency !== null && backgroundTransparency !== void 0 ? backgroundTransparency : 'ff');
|
|
25563
|
+
};
|
|
25564
|
+
RadialChartBuilder.prototype.colors = function (colors, backgroundTransparency) {
|
|
25565
|
+
if (backgroundTransparency === void 0) { backgroundTransparency = 'ff'; }
|
|
25566
|
+
return this;
|
|
25567
|
+
};
|
|
25568
|
+
RadialChartBuilder.prototype.roundToNearestStorageUnit = function () {
|
|
25569
|
+
return this;
|
|
25570
|
+
};
|
|
25571
|
+
RadialChartBuilder.prototype.prepareData = function (type) {
|
|
25572
|
+
return new RadialDataBuilder(this, type);
|
|
25573
|
+
};
|
|
25574
|
+
return RadialChartBuilder;
|
|
25575
|
+
}(BaseChartBuilder));
|
|
25576
|
+
|
|
25577
|
+
exports.GroupingType = void 0;
|
|
25578
|
+
(function (GroupingType) {
|
|
25579
|
+
GroupingType[GroupingType["None"] = 0] = "None";
|
|
25580
|
+
GroupingType[GroupingType["Daily"] = 1] = "Daily";
|
|
25581
|
+
GroupingType[GroupingType["Hourly"] = 2] = "Hourly";
|
|
25582
|
+
GroupingType[GroupingType["Weekly"] = 3] = "Weekly";
|
|
25583
|
+
GroupingType[GroupingType["Monthly"] = 4] = "Monthly";
|
|
25584
|
+
GroupingType[GroupingType["Yearly"] = 5] = "Yearly";
|
|
25585
|
+
})(exports.GroupingType || (exports.GroupingType = {}));
|
|
25586
|
+
|
|
25587
|
+
exports.ChartType = void 0;
|
|
25588
|
+
(function (ChartType) {
|
|
25589
|
+
ChartType[ChartType["Empty"] = 0] = "Empty";
|
|
25590
|
+
ChartType[ChartType["Line"] = 1] = "Line";
|
|
25591
|
+
ChartType[ChartType["Bar"] = 2] = "Bar";
|
|
25592
|
+
ChartType[ChartType["Radar"] = 3] = "Radar";
|
|
25593
|
+
ChartType[ChartType["Doughnut"] = 4] = "Doughnut";
|
|
25594
|
+
ChartType[ChartType["PolarArea"] = 5] = "PolarArea";
|
|
25595
|
+
ChartType[ChartType["Bubble"] = 6] = "Bubble";
|
|
25596
|
+
ChartType[ChartType["Pie"] = 7] = "Pie";
|
|
25597
|
+
ChartType[ChartType["StackedBar"] = 8] = "StackedBar";
|
|
25598
|
+
ChartType[ChartType["Mixed"] = 9] = "Mixed";
|
|
25599
|
+
ChartType[ChartType["HorizontalBar"] = 10] = "HorizontalBar";
|
|
25600
|
+
})(exports.ChartType || (exports.ChartType = {}));
|
|
25601
|
+
|
|
25602
|
+
exports.DatasetType = void 0;
|
|
25603
|
+
(function (DatasetType) {
|
|
25604
|
+
DatasetType[DatasetType["Line"] = 0] = "Line";
|
|
25605
|
+
DatasetType[DatasetType["Bar"] = 1] = "Bar";
|
|
25606
|
+
})(exports.DatasetType || (exports.DatasetType = {}));
|
|
25607
|
+
|
|
25608
|
+
exports.ColorPallete = void 0;
|
|
25609
|
+
(function (ColorPallete) {
|
|
25610
|
+
ColorPallete[ColorPallete["Bright1"] = 0] = "Bright1";
|
|
25611
|
+
ColorPallete[ColorPallete["Bright2"] = 1] = "Bright2";
|
|
25612
|
+
ColorPallete[ColorPallete["Bright3"] = 2] = "Bright3";
|
|
25613
|
+
ColorPallete[ColorPallete["Bright4"] = 3] = "Bright4";
|
|
25614
|
+
ColorPallete[ColorPallete["Bright5"] = 4] = "Bright5";
|
|
25615
|
+
ColorPallete[ColorPallete["Spring1"] = 5] = "Spring1";
|
|
25616
|
+
ColorPallete[ColorPallete["Spring2"] = 6] = "Spring2";
|
|
25617
|
+
ColorPallete[ColorPallete["Spring3"] = 7] = "Spring3";
|
|
25618
|
+
ColorPallete[ColorPallete["Spring4"] = 8] = "Spring4";
|
|
25619
|
+
ColorPallete[ColorPallete["Spring5"] = 9] = "Spring5";
|
|
25620
|
+
ColorPallete[ColorPallete["Summer1"] = 10] = "Summer1";
|
|
25621
|
+
ColorPallete[ColorPallete["Summer2"] = 11] = "Summer2";
|
|
25622
|
+
ColorPallete[ColorPallete["Summer3"] = 12] = "Summer3";
|
|
25623
|
+
ColorPallete[ColorPallete["Summer4"] = 13] = "Summer4";
|
|
25624
|
+
ColorPallete[ColorPallete["Summer5"] = 14] = "Summer5";
|
|
25625
|
+
ColorPallete[ColorPallete["Pastel1"] = 15] = "Pastel1";
|
|
25626
|
+
ColorPallete[ColorPallete["Pastel2"] = 16] = "Pastel2";
|
|
25627
|
+
ColorPallete[ColorPallete["Pastel3"] = 17] = "Pastel3";
|
|
25628
|
+
ColorPallete[ColorPallete["Pastel4"] = 18] = "Pastel4";
|
|
25629
|
+
ColorPallete[ColorPallete["Pastel5"] = 19] = "Pastel5";
|
|
25630
|
+
ColorPallete[ColorPallete["Winter1"] = 20] = "Winter1";
|
|
25631
|
+
ColorPallete[ColorPallete["Winter2"] = 21] = "Winter2";
|
|
25632
|
+
ColorPallete[ColorPallete["Winter3"] = 22] = "Winter3";
|
|
25633
|
+
ColorPallete[ColorPallete["Winter4"] = 23] = "Winter4";
|
|
25634
|
+
ColorPallete[ColorPallete["Winter5"] = 24] = "Winter5";
|
|
25635
|
+
ColorPallete[ColorPallete["Gemstone1"] = 25] = "Gemstone1";
|
|
25636
|
+
ColorPallete[ColorPallete["Gemstone2"] = 26] = "Gemstone2";
|
|
25637
|
+
ColorPallete[ColorPallete["Gemstone3"] = 27] = "Gemstone3";
|
|
25638
|
+
ColorPallete[ColorPallete["Gemstone4"] = 28] = "Gemstone4";
|
|
25639
|
+
ColorPallete[ColorPallete["Gemstone5"] = 29] = "Gemstone5";
|
|
25640
|
+
ColorPallete[ColorPallete["Autumn1"] = 30] = "Autumn1";
|
|
25641
|
+
ColorPallete[ColorPallete["Autumn2"] = 31] = "Autumn2";
|
|
25642
|
+
ColorPallete[ColorPallete["Autumn3"] = 32] = "Autumn3";
|
|
25643
|
+
ColorPallete[ColorPallete["Autumn4"] = 33] = "Autumn4";
|
|
25644
|
+
ColorPallete[ColorPallete["Autumn5"] = 34] = "Autumn5";
|
|
25645
|
+
ColorPallete[ColorPallete["Vivid1"] = 35] = "Vivid1";
|
|
25646
|
+
ColorPallete[ColorPallete["Vivid2"] = 36] = "Vivid2";
|
|
25647
|
+
ColorPallete[ColorPallete["Vivid3"] = 37] = "Vivid3";
|
|
25648
|
+
ColorPallete[ColorPallete["Vivid4"] = 38] = "Vivid4";
|
|
25649
|
+
ColorPallete[ColorPallete["Vivid5"] = 39] = "Vivid5";
|
|
25650
|
+
ColorPallete[ColorPallete["Vivid6"] = 40] = "Vivid6";
|
|
25651
|
+
ColorPallete[ColorPallete["General1"] = 41] = "General1";
|
|
25652
|
+
ColorPallete[ColorPallete["General2"] = 42] = "General2";
|
|
25653
|
+
ColorPallete[ColorPallete["General3"] = 43] = "General3";
|
|
25654
|
+
ColorPallete[ColorPallete["General4"] = 44] = "General4";
|
|
25655
|
+
ColorPallete[ColorPallete["General5"] = 45] = "General5";
|
|
25656
|
+
ColorPallete[ColorPallete["General6"] = 46] = "General6";
|
|
25657
|
+
ColorPallete[ColorPallete["General7"] = 47] = "General7";
|
|
25658
|
+
ColorPallete[ColorPallete["General8"] = 48] = "General8";
|
|
25659
|
+
ColorPallete[ColorPallete["Red1"] = 49] = "Red1";
|
|
25660
|
+
ColorPallete[ColorPallete["Red2"] = 50] = "Red2";
|
|
25661
|
+
ColorPallete[ColorPallete["Blue1"] = 51] = "Blue1";
|
|
25662
|
+
ColorPallete[ColorPallete["Blue2"] = 52] = "Blue2";
|
|
25663
|
+
ColorPallete[ColorPallete["Green1"] = 53] = "Green1";
|
|
25664
|
+
ColorPallete[ColorPallete["Green2"] = 54] = "Green2";
|
|
25665
|
+
ColorPallete[ColorPallete["Green3"] = 55] = "Green3";
|
|
25666
|
+
ColorPallete[ColorPallete["Green4"] = 56] = "Green4";
|
|
25667
|
+
ColorPallete[ColorPallete["Yellow1"] = 57] = "Yellow1";
|
|
25668
|
+
ColorPallete[ColorPallete["Pink1"] = 58] = "Pink1";
|
|
25669
|
+
ColorPallete[ColorPallete["Pink2"] = 59] = "Pink2";
|
|
25670
|
+
ColorPallete[ColorPallete["Soft1"] = 60] = "Soft1";
|
|
25671
|
+
ColorPallete[ColorPallete["Soft2"] = 61] = "Soft2";
|
|
25672
|
+
ColorPallete[ColorPallete["Soft3"] = 62] = "Soft3";
|
|
25673
|
+
})(exports.ColorPallete || (exports.ColorPallete = {}));
|
|
25674
|
+
|
|
25675
|
+
exports.AxisPosition = void 0;
|
|
25676
|
+
(function (AxisPosition) {
|
|
25677
|
+
AxisPosition[AxisPosition["Left"] = 0] = "Left";
|
|
25678
|
+
AxisPosition[AxisPosition["Right"] = 1] = "Right";
|
|
25679
|
+
AxisPosition[AxisPosition["Bottom"] = 2] = "Bottom";
|
|
25680
|
+
AxisPosition[AxisPosition["Top"] = 3] = "Top";
|
|
25681
|
+
AxisPosition[AxisPosition["Center"] = 4] = "Center";
|
|
25682
|
+
})(exports.AxisPosition || (exports.AxisPosition = {}));
|
|
25683
|
+
|
|
25684
|
+
exports.AxisOverflowType = void 0;
|
|
25685
|
+
(function (AxisOverflowType) {
|
|
25686
|
+
AxisOverflowType[AxisOverflowType["Relative"] = 0] = "Relative";
|
|
25687
|
+
AxisOverflowType[AxisOverflowType["Absolute"] = 1] = "Absolute";
|
|
25688
|
+
})(exports.AxisOverflowType || (exports.AxisOverflowType = {}));
|
|
25689
|
+
|
|
25690
|
+
exports.AxisOverflowDirection = void 0;
|
|
25691
|
+
(function (AxisOverflowDirection) {
|
|
25692
|
+
AxisOverflowDirection[AxisOverflowDirection["Bottom"] = 0] = "Bottom";
|
|
25693
|
+
AxisOverflowDirection[AxisOverflowDirection["Top"] = 1] = "Top";
|
|
25694
|
+
AxisOverflowDirection[AxisOverflowDirection["Both"] = 2] = "Both";
|
|
25695
|
+
})(exports.AxisOverflowDirection || (exports.AxisOverflowDirection = {}));
|
|
25696
|
+
|
|
25697
|
+
// --------------------
|
|
25698
|
+
|
|
24857
25699
|
/*
|
|
24858
25700
|
* Public API Surface of ngx-smz-ui
|
|
24859
25701
|
*/
|
|
@@ -24886,6 +25728,8 @@
|
|
|
24886
25728
|
exports.ClonePipe = ClonePipe;
|
|
24887
25729
|
exports.ColorPickerComponent = ColorPickerComponent;
|
|
24888
25730
|
exports.Confirmable = Confirmable;
|
|
25731
|
+
exports.CreateLinearChart = CreateLinearChart;
|
|
25732
|
+
exports.CreateRadialChart = CreateRadialChart;
|
|
24889
25733
|
exports.CustomError = CustomError;
|
|
24890
25734
|
exports.DATABASE_REQUIRED_ACTIONS = DATABASE_REQUIRED_ACTIONS;
|
|
24891
25735
|
exports.DATABASE_STATES = DATABASE_STATES;
|
|
@@ -24935,6 +25779,7 @@
|
|
|
24935
25779
|
exports.IsVisiblePipeModule = IsVisiblePipeModule;
|
|
24936
25780
|
exports.LOADING_BEHAVIOR_HEADER = LOADING_BEHAVIOR_HEADER;
|
|
24937
25781
|
exports.LOCAL_LOADING_TAG_HEADER = LOCAL_LOADING_TAG_HEADER;
|
|
25782
|
+
exports.LinearChartBuilder = LinearChartBuilder;
|
|
24938
25783
|
exports.LinkedDropdownComponent = LinkedDropdownComponent;
|
|
24939
25784
|
exports.LinkedMultiSelectComponent = LinkedMultiSelectComponent;
|
|
24940
25785
|
exports.MenuHelperService = MenuHelperService;
|
|
@@ -24962,9 +25807,12 @@
|
|
|
24962
25807
|
exports.NgxSmzUiComponent = NgxSmzUiComponent;
|
|
24963
25808
|
exports.NgxSmzUiModule = NgxSmzUiModule;
|
|
24964
25809
|
exports.NgxSmzViewportModule = NgxSmzViewportModule;
|
|
25810
|
+
exports.PrettyJsonPipe = PrettyJsonPipe;
|
|
25811
|
+
exports.PrettyJsonPipeModule = PrettyJsonPipeModule;
|
|
24965
25812
|
exports.PrimeConfigService = PrimeConfigService;
|
|
24966
25813
|
exports.REFRESH_TOKEN_BEHAVIOR_HEADER = REFRESH_TOKEN_BEHAVIOR_HEADER;
|
|
24967
25814
|
exports.RESTORE_STATE_ON_ERROR_HEADER = RESTORE_STATE_ON_ERROR_HEADER;
|
|
25815
|
+
exports.RadialChartBuilder = RadialChartBuilder;
|
|
24968
25816
|
exports.RadioButtonComponent = RadioButtonComponent;
|
|
24969
25817
|
exports.RbkAccessControlModule = RbkAccessControlModule;
|
|
24970
25818
|
exports.RbkAuthGuard = RbkAuthGuard;
|