ngx-smz-ui 3.6.5 → 3.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/bundles/ngx-smz-ui.umd.js +882 -63
  2. package/bundles/ngx-smz-ui.umd.js.map +1 -1
  3. package/esm2015/lib/builders/smz-charts/base-chart-builder.js +49 -0
  4. package/esm2015/lib/builders/smz-charts/linear-chart-builder.js +73 -0
  5. package/esm2015/lib/builders/smz-charts/models/axis-overflow-direction.js +7 -0
  6. package/esm2015/lib/builders/smz-charts/models/axis-overflow-type.js +6 -0
  7. package/esm2015/lib/builders/smz-charts/models/axis-position.js +9 -0
  8. package/esm2015/lib/builders/smz-charts/models/chart-type.js +15 -0
  9. package/esm2015/lib/builders/smz-charts/models/color-pallete.js +67 -0
  10. package/esm2015/lib/builders/smz-charts/models/color-selector.js +79 -0
  11. package/esm2015/lib/builders/smz-charts/models/dataset-type.js +6 -0
  12. package/esm2015/lib/builders/smz-charts/models/grouping-type.js +10 -0
  13. package/esm2015/lib/builders/smz-charts/public-api.js +14 -0
  14. package/esm2015/lib/builders/smz-charts/radial-chart-builder.js +28 -0
  15. package/esm2015/lib/builders/smz-charts/secondary/cartesian-scale-builder.js +31 -0
  16. package/esm2015/lib/builders/smz-charts/secondary/cartesian-title-builder.js +15 -0
  17. package/esm2015/lib/builders/smz-charts/secondary/dataset-builder.js +9 -0
  18. package/esm2015/lib/builders/smz-charts/secondary/histogram-data-builder.js +19 -0
  19. package/esm2015/lib/builders/smz-charts/secondary/legend-builder.js +21 -0
  20. package/esm2015/lib/builders/smz-charts/secondary/linear-category-data-builder.js +27 -0
  21. package/esm2015/lib/builders/smz-charts/secondary/linear-dataset-builder.js +41 -0
  22. package/esm2015/lib/builders/smz-charts/secondary/linear-date-data-builder.js +44 -0
  23. package/esm2015/lib/builders/smz-charts/secondary/radial-data-builder.js +28 -0
  24. package/esm2015/lib/builders/smz-charts/secondary/title-builder.js +25 -0
  25. package/esm2015/lib/builders/smz-charts/secondary/tooltip-builder.js +27 -0
  26. package/esm2015/lib/common/utils/pretty-json.js +33 -0
  27. package/esm2015/lib/modules/smz-menu/components/menu.js +144 -154
  28. package/esm2015/lib/modules/smz-tables/pipes/clone-table-items.pipe.js +8 -9
  29. package/esm2015/public-api.js +3 -1
  30. package/fesm2015/ngx-smz-ui.js +794 -156
  31. package/fesm2015/ngx-smz-ui.js.map +1 -1
  32. package/lib/builders/smz-charts/base-chart-builder.d.ts +21 -0
  33. package/lib/builders/smz-charts/linear-chart-builder.d.ts +27 -0
  34. package/lib/builders/smz-charts/models/axis-overflow-direction.d.ts +5 -0
  35. package/lib/builders/smz-charts/models/axis-overflow-type.d.ts +4 -0
  36. package/lib/builders/smz-charts/models/axis-position.d.ts +7 -0
  37. package/lib/builders/smz-charts/models/chart-type.d.ts +13 -0
  38. package/lib/builders/smz-charts/models/color-pallete.d.ts +65 -0
  39. package/lib/builders/smz-charts/models/color-selector.d.ts +67 -0
  40. package/lib/builders/smz-charts/models/dataset-type.d.ts +4 -0
  41. package/lib/builders/smz-charts/models/grouping-type.d.ts +8 -0
  42. package/lib/builders/smz-charts/public-api.d.ts +9 -0
  43. package/lib/builders/smz-charts/radial-chart-builder.d.ts +15 -0
  44. package/lib/builders/smz-charts/secondary/cartesian-scale-builder.d.ts +18 -0
  45. package/lib/builders/smz-charts/secondary/cartesian-title-builder.d.ts +11 -0
  46. package/lib/builders/smz-charts/secondary/dataset-builder.d.ts +6 -0
  47. package/lib/builders/smz-charts/secondary/histogram-data-builder.d.ts +10 -0
  48. package/lib/builders/smz-charts/secondary/legend-builder.d.ts +11 -0
  49. package/lib/builders/smz-charts/secondary/linear-category-data-builder.d.ts +12 -0
  50. package/lib/builders/smz-charts/secondary/linear-dataset-builder.d.ts +19 -0
  51. package/lib/builders/smz-charts/secondary/linear-date-data-builder.d.ts +19 -0
  52. package/lib/builders/smz-charts/secondary/radial-data-builder.d.ts +14 -0
  53. package/lib/builders/smz-charts/secondary/title-builder.d.ts +13 -0
  54. package/lib/builders/smz-charts/secondary/tooltip-builder.d.ts +13 -0
  55. package/lib/common/utils/pretty-json.d.ts +12 -0
  56. package/lib/modules/smz-menu/components/menu.d.ts +16 -8
  57. package/package.json +1 -1
  58. package/public-api.d.ts +2 -0
@@ -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
 
@@ -7436,17 +7436,67 @@
7436
7436
  function MenuItemContent(menu) {
7437
7437
  this.menu = menu;
7438
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
+ };
7439
7487
  return MenuItemContent;
7440
7488
  }());
7441
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 });
7442
- MenuItemContent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: MenuItemContent, selector: "[pMenuItemContent]", inputs: { item: ["pMenuItemContent", "item"] }, ngImport: i0__namespace, 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 ", isInline: true, 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"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
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 });
7443
7491
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: MenuItemContent, decorators: [{
7444
7492
  type: i0.Component,
7445
7493
  args: [{
7446
- selector: '[pMenuItemContent]',
7447
- 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]",
7448
7495
  encapsulation: i0.ViewEncapsulation.None,
7449
- changeDetection: i0.ChangeDetectionStrategy.OnPush
7496
+ templateUrl: "./menu-item-content.html",
7497
+ host: {
7498
+ class: "p-element",
7499
+ },
7450
7500
  }]
7451
7501
  }], ctorParameters: function () {
7452
7502
  return [{ type: undefined, decorators: [{
@@ -7455,17 +7505,19 @@
7455
7505
  }] }];
7456
7506
  }, propDecorators: { item: [{
7457
7507
  type: i0.Input,
7458
- args: ["pMenuItemContent"]
7508
+ args: ["smzMenuItemContent"]
7459
7509
  }] } });
7460
7510
  var Menu = /** @class */ (function () {
7461
- function Menu(el, renderer, cd) {
7511
+ function Menu(el, renderer, cd, config, overlayService) {
7462
7512
  this.el = el;
7463
7513
  this.renderer = renderer;
7464
7514
  this.cd = cd;
7515
+ this.config = config;
7516
+ this.overlayService = overlayService;
7465
7517
  this.autoZIndex = true;
7466
7518
  this.baseZIndex = 0;
7467
- this.showTransitionOptions = '.12s cubic-bezier(0, 0, 0.2, 1)';
7468
- this.hideTransitionOptions = '.1s linear';
7519
+ this.showTransitionOptions = ".12s cubic-bezier(0, 0, 0.2, 1)";
7520
+ this.hideTransitionOptions = ".1s linear";
7469
7521
  this.onShow = new i0.EventEmitter();
7470
7522
  this.onHide = new i0.EventEmitter();
7471
7523
  }
@@ -7486,7 +7538,7 @@
7486
7538
  };
7487
7539
  Menu.prototype.onOverlayAnimationStart = function (event) {
7488
7540
  switch (event.toState) {
7489
- case 'visible':
7541
+ case "visible":
7490
7542
  if (this.popup) {
7491
7543
  this.container = event.element;
7492
7544
  this.moveOnTop();
@@ -7498,12 +7550,21 @@
7498
7550
  this.bindScrollListener();
7499
7551
  }
7500
7552
  break;
7501
- case 'void':
7553
+ case "void":
7502
7554
  this.onOverlayHide();
7503
7555
  this.onHide.emit({});
7504
7556
  break;
7505
7557
  }
7506
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
+ };
7507
7568
  Menu.prototype.alignOverlay = function () {
7508
7569
  if (this.relativeAlign)
7509
7570
  dom.DomHandler.relativePosition(this.container, this.target);
@@ -7512,7 +7573,7 @@
7512
7573
  };
7513
7574
  Menu.prototype.appendOverlay = function () {
7514
7575
  if (this.appendTo) {
7515
- if (this.appendTo === 'body')
7576
+ if (this.appendTo === "body")
7516
7577
  document.body.appendChild(this.container);
7517
7578
  else
7518
7579
  dom.DomHandler.appendChild(this.container, this.appendTo);
@@ -7525,7 +7586,7 @@
7525
7586
  };
7526
7587
  Menu.prototype.moveOnTop = function () {
7527
7588
  if (this.autoZIndex) {
7528
- this.container.style.zIndex = String(this.baseZIndex + (++dom.DomHandler.zindex));
7589
+ utils.ZIndexUtils.set("menu", this.container, this.baseZIndex + this.config.zIndex.menu);
7529
7590
  }
7530
7591
  };
7531
7592
  Menu.prototype.hide = function () {
@@ -7541,7 +7602,7 @@
7541
7602
  event.preventDefault();
7542
7603
  return;
7543
7604
  }
7544
- if (!item.url) {
7605
+ if (!item.url && !item.routerLink) {
7545
7606
  event.preventDefault();
7546
7607
  }
7547
7608
  if (item.command) {
@@ -7551,11 +7612,22 @@
7551
7612
  this.hide();
7552
7613
  }
7553
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
+ };
7554
7624
  Menu.prototype.bindDocumentClickListener = function () {
7555
7625
  var _this = this;
7556
7626
  if (!this.documentClickListener) {
7557
- var documentTarget = this.el ? this.el.nativeElement.ownerDocument : 'document';
7558
- this.documentClickListener = this.renderer.listen(documentTarget, 'click', function () {
7627
+ var documentTarget = this.el
7628
+ ? this.el.nativeElement.ownerDocument
7629
+ : "document";
7630
+ this.documentClickListener = this.renderer.listen(documentTarget, "click", function () {
7559
7631
  if (!_this.preventDocumentDefault) {
7560
7632
  _this.hide();
7561
7633
  }
@@ -7571,11 +7643,11 @@
7571
7643
  };
7572
7644
  Menu.prototype.bindDocumentResizeListener = function () {
7573
7645
  this.documentResizeListener = this.onWindowResize.bind(this);
7574
- window.addEventListener('resize', this.documentResizeListener);
7646
+ window.addEventListener("resize", this.documentResizeListener);
7575
7647
  };
7576
7648
  Menu.prototype.unbindDocumentResizeListener = function () {
7577
7649
  if (this.documentResizeListener) {
7578
- window.removeEventListener('resize', this.documentResizeListener);
7650
+ window.removeEventListener("resize", this.documentResizeListener);
7579
7651
  this.documentResizeListener = null;
7580
7652
  }
7581
7653
  };
@@ -7600,7 +7672,9 @@
7600
7672
  this.unbindDocumentResizeListener();
7601
7673
  this.unbindScrollListener();
7602
7674
  this.preventDocumentDefault = false;
7603
- this.target = null;
7675
+ if (!this.cd.destroyed) {
7676
+ this.target = null;
7677
+ }
7604
7678
  };
7605
7679
  Menu.prototype.ngOnDestroy = function () {
7606
7680
  if (this.popup) {
@@ -7608,54 +7682,73 @@
7608
7682
  this.scrollHandler.destroy();
7609
7683
  this.scrollHandler = null;
7610
7684
  }
7685
+ if (this.container && this.autoZIndex) {
7686
+ utils.ZIndexUtils.clear(this.container);
7687
+ }
7611
7688
  this.restoreOverlayAppend();
7612
7689
  this.onOverlayHide();
7613
7690
  }
7614
7691
  };
7615
- Menu.prototype.hasSubMenu = function (menu) {
7692
+ Menu.prototype.hasSubMenu = function () {
7693
+ var e_1, _b;
7616
7694
  var _a;
7617
- if (((_a = menu.items) === null || _a === void 0 ? void 0 : _a.length) > 0) {
7618
- return true;
7619
- }
7620
- else {
7621
- return false;
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
+ }
7622
7711
  }
7712
+ return false;
7623
7713
  };
7624
7714
  return Menu;
7625
7715
  }());
7626
- 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 });
7627
- 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 <div #container [ngClass]=\"{'p-menu p-component': true, 'p-menu-overlay': popup}\"\n [class]=\"styleClass\" [ngStyle]=\"style\" (click)=\"preventDocumentDefault=true\" *ngIf=\"!popup || visible\"\n [@overlayAnimation]=\"{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}\" [@.disabled]=\"popup !== true\" (@overlayAnimation.start)=\"onOverlayAnimationStart($event)\">\n <ul class=\"p-menu-list p-reset\">\n <ng-template ngFor let-submenu [ngForOf]=\"model\">\n\n <!-- \u00C9 UM HEADER -->\n <ng-container *ngIf=\"hasSubMenu(submenu); else elseChildTemplate\">\n\n <!-- LABEL DO HEADER -->\n <li class=\"p-menu-separator\" *ngIf=\"submenu.separator\" [ngClass]=\"{'p-hidden': submenu.visible === false}\"></li>\n <li class=\"p-submenu-header\" [attr.data-automationid]=\"submenu.automationId\" *ngIf=\"!submenu.separator\" [ngClass]=\"{'p-hidden': submenu.visible === false}\">\n <span *ngIf=\"submenu.escape !== false; else htmlSubmenuLabel\">{{submenu.label}}</span>\n <ng-template #htmlSubmenuLabel><span [innerHTML]=\"submenu.label\"></span></ng-template>\n </li>\n\n <!-- CHILDREN -->\n <ng-template ngFor let-item [ngForOf]=\"submenu.items\">\n <li class=\"p-menu-separator\" *ngIf=\"item.separator\" [ngClass]=\"{'p-hidden': (item.visible === false || submenu.visible === false)}\"></li>\n <li class=\"p-menuitem p-menuitem-child\" *ngIf=\"!item.separator\" [pMenuItemContent]=\"item\" [ngClass]=\"{'p-hidden': (item.visible === false || submenu.visible === false)}\" [ngStyle]=\"item.style\" [class]=\"item.styleClass\"></li>\n </ng-template>\n </ng-container>\n\n <!-- \u00C9 UM CHILD -->\n <ng-template #elseChildTemplate>\n <li class=\"p-menu-separator\" *ngIf=\"submenu.separator\" [ngClass]=\"{'p-hidden': submenu.visible === false}\"></li>\n <li class=\"p-menuitem\" *ngIf=\"!submenu.separator\" [pMenuItemContent]=\"submenu\" [ngClass]=\"{'p-hidden': submenu.visible === false}\" [ngStyle]=\"submenu.style\" [class]=\"submenu.styleClass\"></li>\n </ng-template>\n\n </ng-template>\n </ul>\n </div>\n ", isInline: true, styles: [".p-menu-overlay{position:absolute}.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: "[pMenuItemContent]", inputs: ["pMenuItemContent"] }], 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"] }], animations: [
7628
- animations.trigger('overlayAnimation', [
7629
- animations.transition(':enter', [
7630
- animations.style({ opacity: 0, transform: 'scaleY(0.8)' }),
7631
- animations.animate('{{showTransitionParams}}')
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}}"),
7632
7722
  ]),
7633
- animations.transition(':leave', [
7634
- animations.animate('{{hideTransitionParams}}', animations.style({ opacity: 0 }))
7635
- ])
7636
- ])
7723
+ animations.transition(":leave", [
7724
+ animations.animate("{{hideTransitionParams}}", animations.style({ opacity: 0 })),
7725
+ ]),
7726
+ ]),
7637
7727
  ], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
7638
7728
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: Menu, decorators: [{
7639
7729
  type: i0.Component,
7640
7730
  args: [{
7641
- selector: 'smz-menu-items',
7642
- template: "\n <div #container [ngClass]=\"{'p-menu p-component': true, 'p-menu-overlay': popup}\"\n [class]=\"styleClass\" [ngStyle]=\"style\" (click)=\"preventDocumentDefault=true\" *ngIf=\"!popup || visible\"\n [@overlayAnimation]=\"{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}\" [@.disabled]=\"popup !== true\" (@overlayAnimation.start)=\"onOverlayAnimationStart($event)\">\n <ul class=\"p-menu-list p-reset\">\n <ng-template ngFor let-submenu [ngForOf]=\"model\">\n\n <!-- \u00C9 UM HEADER -->\n <ng-container *ngIf=\"hasSubMenu(submenu); else elseChildTemplate\">\n\n <!-- LABEL DO HEADER -->\n <li class=\"p-menu-separator\" *ngIf=\"submenu.separator\" [ngClass]=\"{'p-hidden': submenu.visible === false}\"></li>\n <li class=\"p-submenu-header\" [attr.data-automationid]=\"submenu.automationId\" *ngIf=\"!submenu.separator\" [ngClass]=\"{'p-hidden': submenu.visible === false}\">\n <span *ngIf=\"submenu.escape !== false; else htmlSubmenuLabel\">{{submenu.label}}</span>\n <ng-template #htmlSubmenuLabel><span [innerHTML]=\"submenu.label\"></span></ng-template>\n </li>\n\n <!-- CHILDREN -->\n <ng-template ngFor let-item [ngForOf]=\"submenu.items\">\n <li class=\"p-menu-separator\" *ngIf=\"item.separator\" [ngClass]=\"{'p-hidden': (item.visible === false || submenu.visible === false)}\"></li>\n <li class=\"p-menuitem p-menuitem-child\" *ngIf=\"!item.separator\" [pMenuItemContent]=\"item\" [ngClass]=\"{'p-hidden': (item.visible === false || submenu.visible === false)}\" [ngStyle]=\"item.style\" [class]=\"item.styleClass\"></li>\n </ng-template>\n </ng-container>\n\n <!-- \u00C9 UM CHILD -->\n <ng-template #elseChildTemplate>\n <li class=\"p-menu-separator\" *ngIf=\"submenu.separator\" [ngClass]=\"{'p-hidden': submenu.visible === false}\"></li>\n <li class=\"p-menuitem\" *ngIf=\"!submenu.separator\" [pMenuItemContent]=\"submenu\" [ngClass]=\"{'p-hidden': submenu.visible === false}\" [ngStyle]=\"submenu.style\" [class]=\"submenu.styleClass\"></li>\n </ng-template>\n\n </ng-template>\n </ul>\n </div>\n ",
7731
+ selector: "smz-menu-items",
7732
+ templateUrl: "./menu.html",
7643
7733
  animations: [
7644
- animations.trigger('overlayAnimation', [
7645
- animations.transition(':enter', [
7646
- animations.style({ opacity: 0, transform: 'scaleY(0.8)' }),
7647
- animations.animate('{{showTransitionParams}}')
7734
+ animations.trigger("overlayAnimation", [
7735
+ animations.transition(":enter", [
7736
+ animations.style({ opacity: 0, transform: "scaleY(0.8)" }),
7737
+ animations.animate("{{showTransitionParams}}"),
7648
7738
  ]),
7649
- animations.transition(':leave', [
7650
- animations.animate('{{hideTransitionParams}}', animations.style({ opacity: 0 }))
7651
- ])
7652
- ])
7739
+ animations.transition(":leave", [
7740
+ animations.animate("{{hideTransitionParams}}", animations.style({ opacity: 0 })),
7741
+ ]),
7742
+ ]),
7653
7743
  ],
7654
7744
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
7655
7745
  encapsulation: i0.ViewEncapsulation.None,
7656
- styleUrls: ['menu.css']
7746
+ styleUrls: ["./menu.css"],
7747
+ host: {
7748
+ class: "p-element",
7749
+ },
7657
7750
  }]
7658
- }], 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: [{
7659
7752
  type: i0.Input
7660
7753
  }], popup: [{
7661
7754
  type: i0.Input
@@ -7675,7 +7768,7 @@
7675
7768
  type: i0.Input
7676
7769
  }], containerViewChild: [{
7677
7770
  type: i0.ViewChild,
7678
- args: ['container']
7771
+ args: ["container"]
7679
7772
  }], onShow: [{
7680
7773
  type: i0.Output
7681
7774
  }], onHide: [{
@@ -7687,14 +7780,14 @@
7687
7780
  return SmzMenuModule;
7688
7781
  }());
7689
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 });
7690
- 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] });
7691
- 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] });
7692
7785
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: SmzMenuModule, decorators: [{
7693
7786
  type: i0.NgModule,
7694
7787
  args: [{
7695
- imports: [i1$1.CommonModule, i1$f.RouterModule, i3$4.RippleModule],
7788
+ imports: [i1$1.CommonModule, i1$f.RouterModule, i3$4.RippleModule, i1$2.TooltipModule],
7696
7789
  exports: [Menu, i1$f.RouterModule],
7697
- declarations: [Menu, MenuItemContent]
7790
+ declarations: [Menu, MenuItemContent],
7698
7791
  }]
7699
7792
  }] });
7700
7793
 
@@ -7996,18 +8089,17 @@
7996
8089
  context.columns.forEach(function (col) {
7997
8090
  var _a, _b, _c;
7998
8091
  var columnItems = samples.map(function (x) { return x[col.field]; }).filter(function (x) { return x != null; });
7999
- var estimativeWidth = _this.estimate(columnItems, col.field, context.state.caption.columnVisibility.showDropdownSelector, context.state.caption.columnVisibility.showColumnHideButton, col.isOrderable, ((_a = col.filter) === null || _a === void 0 ? void 0 : _a.type) !== exports.SmzFilterType.NONE);
8000
- // if (col.field === 'service') {
8001
- // console.log(`${col.field} => ${estimativeWidth}`);
8002
- // }
8003
- col.width = estimativeWidth;
8092
+ var width = col.width;
8093
+ if (col.width == 'auto') {
8094
+ width = _this.estimate(columnItems, col.field, context.state.caption.columnVisibility.showDropdownSelector, context.state.caption.columnVisibility.showColumnHideButton, col.isOrderable, ((_a = col.filter) === null || _a === void 0 ? void 0 : _a.type) !== exports.SmzFilterType.NONE);
8095
+ }
8004
8096
  var visibleColumnsIndex = (_b = context.visibleColumns) === null || _b === void 0 ? void 0 : _b.findIndex(function (x) { return x.field === col.field; });
8005
8097
  if (visibleColumnsIndex >= 0) {
8006
- context.visibleColumns[visibleColumnsIndex].width = estimativeWidth;
8098
+ context.visibleColumns[visibleColumnsIndex].width = width;
8007
8099
  }
8008
8100
  var frozenColumnsIndex = (_c = context.frozenColumns) === null || _c === void 0 ? void 0 : _c.findIndex(function (x) { return x.field === col.field; });
8009
8101
  if (frozenColumnsIndex >= 0) {
8010
- context.frozenColumns[frozenColumnsIndex].width = estimativeWidth;
8102
+ context.frozenColumns[frozenColumnsIndex].width = width;
8011
8103
  }
8012
8104
  });
8013
8105
  // console.log('estimated', context.columns.map(x => `${x.field} => ${x.width}`));
@@ -8057,7 +8149,7 @@
8057
8149
  else if (x != null && isSimpleNamedEntity(x)) {
8058
8150
  return x.name.trim();
8059
8151
  }
8060
- return x == null ? x : x === null || x === void 0 ? void 0 : x.trim();
8152
+ return x == null ? x : x === null || x === void 0 ? void 0 : x.toString().trim();
8061
8153
  })
8062
8154
  .map(function (x) {
8063
8155
  var _a, _b;
@@ -22581,6 +22673,42 @@
22581
22673
  return result;
22582
22674
  }
22583
22675
 
22676
+ var PrettyJsonPipe = /** @class */ (function () {
22677
+ function PrettyJsonPipe() {
22678
+ }
22679
+ PrettyJsonPipe.prototype.transform = function (val) {
22680
+ return JSON.stringify(val, null, 2)
22681
+ .replace(' ', '&nbsp;')
22682
+ .replace('\n', '<br/>');
22683
+ };
22684
+ return PrettyJsonPipe;
22685
+ }());
22686
+ PrettyJsonPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PrettyJsonPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
22687
+ PrettyJsonPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PrettyJsonPipe, name: "prettyJson" });
22688
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PrettyJsonPipe, decorators: [{
22689
+ type: i0.Pipe,
22690
+ args: [{
22691
+ name: 'prettyJson'
22692
+ }]
22693
+ }] });
22694
+ var PrettyJsonPipeModule = /** @class */ (function () {
22695
+ function PrettyJsonPipeModule() {
22696
+ }
22697
+ return PrettyJsonPipeModule;
22698
+ }());
22699
+ PrettyJsonPipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PrettyJsonPipeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
22700
+ PrettyJsonPipeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PrettyJsonPipeModule, declarations: [PrettyJsonPipe] });
22701
+ PrettyJsonPipeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PrettyJsonPipeModule, providers: [], imports: [[]] });
22702
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PrettyJsonPipeModule, decorators: [{
22703
+ type: i0.NgModule,
22704
+ args: [{
22705
+ imports: [],
22706
+ exports: [],
22707
+ declarations: [PrettyJsonPipe],
22708
+ providers: [],
22709
+ }]
22710
+ }] });
22711
+
22584
22712
  var BreadcrumbService = /** @class */ (function () {
22585
22713
  function BreadcrumbService() {
22586
22714
  this.itemsSource = new rxjs.Subject();
@@ -24882,6 +25010,691 @@
24882
25010
  return SmzMenuItemBuilder;
24883
25011
  }());
24884
25012
 
25013
+ var LegendBuilder = /** @class */ (function () {
25014
+ function LegendBuilder(_builder) {
25015
+ this._builder = _builder;
25016
+ }
25017
+ LegendBuilder.prototype.align = function (align) {
25018
+ return this;
25019
+ };
25020
+ LegendBuilder.prototype.at = function (position) {
25021
+ return this;
25022
+ };
25023
+ LegendBuilder.prototype.title = function (title) {
25024
+ return this;
25025
+ };
25026
+ LegendBuilder.prototype.usePointStyles = function () {
25027
+ return this;
25028
+ };
25029
+ Object.defineProperty(LegendBuilder.prototype, "chart", {
25030
+ get: function () {
25031
+ return this._builder;
25032
+ },
25033
+ enumerable: false,
25034
+ configurable: true
25035
+ });
25036
+ return LegendBuilder;
25037
+ }());
25038
+
25039
+ var TitleBuilder = /** @class */ (function () {
25040
+ function TitleBuilder(_builder, title) {
25041
+ this._builder = _builder;
25042
+ this.title = title;
25043
+ }
25044
+ TitleBuilder.prototype.padding = function (top, bottom) {
25045
+ return this;
25046
+ };
25047
+ TitleBuilder.prototype.font = function (size, lineheight, family) {
25048
+ if (lineheight === void 0) { lineheight = null; }
25049
+ if (family === void 0) { family = null; }
25050
+ return this;
25051
+ };
25052
+ TitleBuilder.prototype.alignment = function (align) {
25053
+ return this;
25054
+ };
25055
+ TitleBuilder.prototype.at = function (position) {
25056
+ return this;
25057
+ };
25058
+ TitleBuilder.prototype.color = function (color) {
25059
+ return this;
25060
+ };
25061
+ Object.defineProperty(TitleBuilder.prototype, "chart", {
25062
+ get: function () {
25063
+ return this._builder;
25064
+ },
25065
+ enumerable: false,
25066
+ configurable: true
25067
+ });
25068
+ return TitleBuilder;
25069
+ }());
25070
+
25071
+ var TooltipBuilder = /** @class */ (function () {
25072
+ function TooltipBuilder(_builder) {
25073
+ this._builder = _builder;
25074
+ }
25075
+ TooltipBuilder.prototype.backgroundColor = function (color) {
25076
+ return this;
25077
+ };
25078
+ TooltipBuilder.prototype.useSeriesPointStyles = function () {
25079
+ return this;
25080
+ };
25081
+ TooltipBuilder.prototype.cornerRadius = function (radius) {
25082
+ return this;
25083
+ };
25084
+ TooltipBuilder.prototype.atPointLocation = function () {
25085
+ return this;
25086
+ };
25087
+ TooltipBuilder.prototype.atVerticalAxis = function () {
25088
+ return this;
25089
+ };
25090
+ TooltipBuilder.prototype.border = function (color, width) {
25091
+ return this;
25092
+ };
25093
+ Object.defineProperty(TooltipBuilder.prototype, "chart", {
25094
+ get: function () {
25095
+ return this._builder;
25096
+ },
25097
+ enumerable: false,
25098
+ configurable: true
25099
+ });
25100
+ return TooltipBuilder;
25101
+ }());
25102
+
25103
+ function NewChart() {
25104
+ return new chart_js.Chart(null, { type: null, data: { datasets: [] }, options: {} });
25105
+ }
25106
+ var BaseChartBuilder = /** @class */ (function () {
25107
+ // public _seriesSelector: (x: TData) => string;
25108
+ // public _dateSelector: (x: TData) => Date;
25109
+ // public _valueSelector: (x: TData[]) => number;
25110
+ function BaseChartBuilder(_originalData) {
25111
+ this._originalData = _originalData;
25112
+ this._chart = NewChart();
25113
+ }
25114
+ BaseChartBuilder.prototype.ofType = function (type) {
25115
+ return this.that;
25116
+ };
25117
+ BaseChartBuilder.prototype.withTitle = function (title) {
25118
+ return new TitleBuilder(this.that, title);
25119
+ };
25120
+ BaseChartBuilder.prototype.withTooltips = function () {
25121
+ return new TooltipBuilder(this.that);
25122
+ };
25123
+ BaseChartBuilder.prototype.withLegend = function () {
25124
+ return new LegendBuilder(this.that);
25125
+ };
25126
+ BaseChartBuilder.prototype.padding = function (left, right, top, bottom) {
25127
+ return this.that;
25128
+ };
25129
+ BaseChartBuilder.prototype.aspectRatio = function (ratio) {
25130
+ return this.that;
25131
+ };
25132
+ BaseChartBuilder.prototype.allowEmpty = function () {
25133
+ return this.that;
25134
+ };
25135
+ BaseChartBuilder.prototype.responsive = function () {
25136
+ return this.that;
25137
+ };
25138
+ BaseChartBuilder.prototype.build = function (debug) {
25139
+ if (debug === void 0) { debug = false; }
25140
+ var results = {
25141
+ type: null,
25142
+ config: null,
25143
+ data: null
25144
+ };
25145
+ return results;
25146
+ };
25147
+ return BaseChartBuilder;
25148
+ }());
25149
+
25150
+ var ChartColorSelector = /** @class */ (function () {
25151
+ function ChartColorSelector() {
25152
+ }
25153
+ ChartColorSelector.GetColors = function (palletes) {
25154
+ if (palletes.length == 0)
25155
+ throw new Error('You need to specify ate least one color pallete');
25156
+ var colors = [];
25157
+ palletes.forEach(function (pallete) {
25158
+ // var type = typeof(ChartColorSelector);
25159
+ // TODO: traduzir lógica
25160
+ // var info = type.GetField(pallete.ToString(), BindingFlags.NonPublic | BindingFlags.Static);
25161
+ // var value = (string[])info.GetValue(null);
25162
+ // colors.push(value);
25163
+ });
25164
+ return colors;
25165
+ };
25166
+ return ChartColorSelector;
25167
+ }());
25168
+ ChartColorSelector.Bright1 = ['#01A5E4', '#8DD7BF', '#FF96C5', '#FF5768', '#FFBF65'];
25169
+ ChartColorSelector.Bright2 = ['#FC6328', '#FFD872', '#F2D4CC', '#E77577', '#6C88C4'];
25170
+ ChartColorSelector.Bright3 = ['#C05780', '#FF828B', '#E7C582', '#00B0BA', '#0065A2'];
25171
+ ChartColorSelector.Bright4 = ['#00CDAC', '#FF6F68', '#FFDACC', '#FF60A8', '#CFF800'];
25172
+ ChartColorSelector.Bright5 = ['#FF5C77', '#4DD091', '#FFEC59', '#FFA23A', '#74737A'];
25173
+ ChartColorSelector.Spring1 = ['#AFDDD5', '#FFA700', '#FFCCDD', '#F56093', '#64864A'];
25174
+ ChartColorSelector.Spring2 = ['#DFE6E6', '#EFDEC0', '#FF7E5A', '#FFBD00', '#7DB954'];
25175
+ ChartColorSelector.Spring3 = ['#FEDDCB', '#FFC700', '#CEE8E5', '#C6C598', '#FEE100'];
25176
+ ChartColorSelector.Spring4 = ['#FAC4C4', '#E9E7AD', '#FDBB9F', '#FFFFFF', '#EADCC3'];
25177
+ ChartColorSelector.Spring5 = ['#EEF3B4', '#FFB27B', '#FF284B', '#7ABAA1', '#CFEAE4'];
25178
+ ChartColorSelector.Summer1 = ['#53CFDA', '#EFF2E6', '#FF7994', '#FFC900', '#FFED00'];
25179
+ ChartColorSelector.Summer2 = ['#FF8860', '#F7D635', '#D6E8D9', '#F1C9C2', '#1F3D51'];
25180
+ ChartColorSelector.Summer3 = ['#FF3747', '#FF8B0F', '#FFD600', '#EAE45F', '#DDF5C2'];
25181
+ ChartColorSelector.Summer4 = ['#FF458F', '#FF8352', '#DEE500', '#00E1DF', '#00C3AF'];
25182
+ ChartColorSelector.Summer5 = ['#EDF7DD', '#4FCBBB', '#2494CC', '#EF39A7', '#FFAE90'];
25183
+ ChartColorSelector.Pastel1 = ['#ABDEE6', '#CBAACB', '#FFFFB5', '#FFCCB6', '#F3B0C3'];
25184
+ ChartColorSelector.Pastel2 = ['#FF968A', '#FFAEA5', '#FFC5BF', '#F6EAC2', '#ECD5E3'];
25185
+ ChartColorSelector.Pastel3 = ['#FF968A', '#FFAEA5', '#FFC5BF', '#FFD8BE', '#FFC8A2'];
25186
+ ChartColorSelector.Pastel4 = ['#D4F0F0', '#8FCACA', '#CCE2CB', '#B6CFB6', '#97C1A9'];
25187
+ ChartColorSelector.Pastel5 = ['#FCB9AA', '#FFDBCC', '#ECEAE4', '#A2E1DB', '#55CBCD'];
25188
+ ChartColorSelector.Winter1 = ['#445A67', '#57838D', '#B4C9C7', '#F3BFB3', '#CCADB2'];
25189
+ ChartColorSelector.Winter2 = ['#FFEFFF', '#F6F7FB', '#E0F8F5', '#BEEDE5', '#A7D9C9'];
25190
+ ChartColorSelector.Winter3 = ['#50B4D8', '#9EDDEF', '#F7E5D7', '#D7E2EA', '#96B3C2'];
25191
+ ChartColorSelector.Winter4 = ['#FFDAD1', '#FFEDDA', '#CAB3C1', '#6E7B8F', '#2E3332'];
25192
+ ChartColorSelector.Winter5 = ['#C29BA3', '#E3BFB7', '#FFE4C9', '#B7EAF7', '#8A9BA7'];
25193
+ ChartColorSelector.Gemstone1 = ['#53051D', '#9E1C5C', '#EF70AA', '#FF8C94', '#F12761'];
25194
+ ChartColorSelector.Gemstone2 = ['#00C6C7', '#96D5E2', '#00ACA5', '#006F60', '#005245'];
25195
+ ChartColorSelector.Gemstone3 = ['#EEAC4D', '#FFF2C3', '#EE84B3', '#740E4C', '#E2035D'];
25196
+ ChartColorSelector.Gemstone4 = ['#B57E79', '#FF6F68', '#00E9E7', '#006072', '#5C2A2E'];
25197
+ ChartColorSelector.Gemstone5 = ['#20503E', '#187B30', '#75E0B0', '#2D8498', '#4CB0A6'];
25198
+ ChartColorSelector.Autumn1 = ['#57291F', '#C0413B', '#D77B5F', '#FF9200', '#FFCD73'];
25199
+ ChartColorSelector.Autumn2 = ['#F7E5BF', '#C87505', '#F18E3F', '#E59579', '#C14C32'];
25200
+ ChartColorSelector.Autumn3 = ['#80003A', '#8CB5B5', '#6C3400', '#FFA400', '#EC410B'];
25201
+ ChartColorSelector.Autumn4 = ['#E63400', '#8CB5B5', '#6C3400', '#FFA400', '#41222A'];
25202
+ ChartColorSelector.Autumn5 = ['#FFF7C2', '#FFB27B', '#FF7B80', '#BC7576', '#696B7E'];
25203
+ ChartColorSelector.Vivid1 = ['#FF3784', '#36A2EB', '#4BC0C0', '#F77825', '#9966FF'];
25204
+ ChartColorSelector.Vivid2 = ['#0074D9', '#FF4136', '#2ECC40', '#FF851B', '#7FDBFF'];
25205
+ ChartColorSelector.Vivid3 = ['#2D95EC', '#F6BA2A', '#F64D2A', '#8ABB21', '#E2711D'];
25206
+ ChartColorSelector.Vivid4 = ['#EC1F24', '#69BC45', '#3651A2', '#F3EC1F', '#6CCCDE'];
25207
+ ChartColorSelector.Vivid5 = ['#EC0F7B', '#F6831B', '#97C93B', '#6CC175', '#6950A1'];
25208
+ ChartColorSelector.Vivid6 = ['#CD1724', '#07B8FF', '#34A300', '#8D4D00', '#FFE700'];
25209
+ ChartColorSelector.General1 = ['#4573A7', '#AA4644', '#89A54E', '#71588F', '#4298AF'];
25210
+ ChartColorSelector.General2 = ['#DB843D', '#93A9D0', '#D09392', '#BACD96', '#A99BBE'];
25211
+ ChartColorSelector.General3 = ['#68D4CD', '#CFF67B', '#94DAFB', '#FD8080', '#6C838D'];
25212
+ ChartColorSelector.General4 = ['#26A0FC', '#26E7A6', '#FEBC3B', '#FAB1B2', '#8B75D7'];
25213
+ ChartColorSelector.General5 = ['#E64345', '#E48F1B', '#F7D027', '#6BA547', '#619ED6'];
25214
+ ChartColorSelector.General6 = ['#60CEED', '#9CF168', '#F7EA4A', '#FBC543', '#FFC9ED'];
25215
+ ChartColorSelector.General7 = ['#64D0DA', '#34B2E4', '#065381', '#8B103E', '#E34856'];
25216
+ ChartColorSelector.General8 = ['#FE912A', '#E6696E', '#B64D8B', '#554D89', '#003E59'];
25217
+ ChartColorSelector.Red1 = ['#4F2623', '#632724', '#923734', '#A93F3B', '#BA5754'];
25218
+ ChartColorSelector.Red2 = ['#D13A2C', '#E14A3B', '#F0594B', '#F76959', '#F7C6B5'];
25219
+ ChartColorSelector.Blue1 = ['#2244A1', '#345DB3', '#537BD2', '#6A94DD', '#9DC2F7'];
25220
+ ChartColorSelector.Blue2 = ['#2082CA', '#3797D8', '#44ABE8', '#58C5EF', '#78D8F5'];
25221
+ ChartColorSelector.Green1 = ['#39590A', '#51761C', '#689E2C', '#91C637', '#A2D970'];
25222
+ ChartColorSelector.Green2 = ['#005F03', '#0F8D00', '#2EC500', '#48DE48', '#9FF3A1'];
25223
+ ChartColorSelector.Green3 = ['#CEC358', '#D7C819', '#E9DA1E', '#F0E785', '#F5F1B7'];
25224
+ ChartColorSelector.Green4 = ['#0D754E', '#10A86F', '#46B98C', '#76CBA8', '#BBE4D4'];
25225
+ ChartColorSelector.Yellow1 = ['#A07900', '#C69A12', '#E5B72B', '#F1C04C', '#F1D185'];
25226
+ ChartColorSelector.Pink1 = ['#C75B73', '#DA7B8E', '#E79099', '#E4A2A7', '#ECBCBC'];
25227
+ ChartColorSelector.Pink2 = ['#F73E3E', '#F75D5D', '#F77C7C', '#F79B9B', '#F7BABA'];
25228
+ ChartColorSelector.Soft1 = ['#FFCDD2', '#F8BBD0', '#E1BEE7', '#D1C4E9', '#C5CAE9'];
25229
+ ChartColorSelector.Soft2 = ['#BBDEFB', '#B3E5FC', '#B2EBF2', '#B2DFDB', '#C8E6C9'];
25230
+ ChartColorSelector.Soft3 = ['#DCEDC8', '#F0F4C3', '#FFECB3', '#FFE0B2', '#FFCCBC'];
25231
+
25232
+ var CartesianTitleBuilder = /** @class */ (function () {
25233
+ function CartesianTitleBuilder(builder, scale) {
25234
+ this.scale = scale;
25235
+ }
25236
+ CartesianTitleBuilder.prototype.at = function (position) {
25237
+ return this;
25238
+ };
25239
+ CartesianTitleBuilder.prototype.font = function (size, lineHeight, font) {
25240
+ return this;
25241
+ };
25242
+ CartesianTitleBuilder.prototype.padding = function (left, top, right, bottom) {
25243
+ return this;
25244
+ };
25245
+ return CartesianTitleBuilder;
25246
+ }());
25247
+
25248
+ var CartesianScaleBuilder = /** @class */ (function () {
25249
+ function CartesianScaleBuilder(builder, scale) {
25250
+ this.scale = scale;
25251
+ }
25252
+ CartesianScaleBuilder.prototype.stacked = function () {
25253
+ return this;
25254
+ };
25255
+ CartesianScaleBuilder.prototype.hideGridlines = function () {
25256
+ return this;
25257
+ };
25258
+ CartesianScaleBuilder.prototype.at = function (position) {
25259
+ return this;
25260
+ };
25261
+ CartesianScaleBuilder.prototype.title = function (label) {
25262
+ return new CartesianTitleBuilder(this, this.scale);
25263
+ };
25264
+ CartesianScaleBuilder.prototype.range = function (min, max) {
25265
+ return this;
25266
+ };
25267
+ CartesianScaleBuilder.prototype.stepSize = function (size) {
25268
+ return this;
25269
+ };
25270
+ CartesianScaleBuilder.prototype.setYAxisOverflow = function (type, direction, value) {
25271
+ return this;
25272
+ };
25273
+ CartesianScaleBuilder.prototype.autoSkip = function (padding) {
25274
+ return this;
25275
+ };
25276
+ return CartesianScaleBuilder;
25277
+ }());
25278
+
25279
+ var HistogramDataBuilder = /** @class */ (function () {
25280
+ function HistogramDataBuilder(_builder, intervalCount) {
25281
+ this._builder = _builder;
25282
+ this.intervalCount = intervalCount;
25283
+ }
25284
+ HistogramDataBuilder.prototype.appendExtraData = function (converter) {
25285
+ return this;
25286
+ };
25287
+ HistogramDataBuilder.prototype.setDesiredIntervalFraction = function (value) {
25288
+ return this;
25289
+ };
25290
+ HistogramDataBuilder.prototype.valuesFrom = function (valueSelector) {
25291
+ return this;
25292
+ };
25293
+ Object.defineProperty(HistogramDataBuilder.prototype, "chart", {
25294
+ get: function () {
25295
+ return this._builder;
25296
+ },
25297
+ enumerable: false,
25298
+ configurable: true
25299
+ });
25300
+ return HistogramDataBuilder;
25301
+ }());
25302
+
25303
+ var LinearCategoryDataBuilder = /** @class */ (function () {
25304
+ function LinearCategoryDataBuilder(_builder) {
25305
+ this._builder = _builder;
25306
+ }
25307
+ LinearCategoryDataBuilder.prototype.appendExtraData = function (converter) {
25308
+ return this;
25309
+ };
25310
+ LinearCategoryDataBuilder.prototype.categoryFrom = function (categorySelector) {
25311
+ return this;
25312
+ };
25313
+ LinearCategoryDataBuilder.prototype.seriesFrom = function (seriesSelector) {
25314
+ return this;
25315
+ };
25316
+ LinearCategoryDataBuilder.prototype.valueFrom = function (valueSelector) {
25317
+ return this;
25318
+ };
25319
+ LinearCategoryDataBuilder.prototype.singleSerie = function () {
25320
+ return this;
25321
+ };
25322
+ LinearCategoryDataBuilder.prototype.roundValues = function (decimalPlaces) {
25323
+ return this;
25324
+ };
25325
+ Object.defineProperty(LinearCategoryDataBuilder.prototype, "chart", {
25326
+ get: function () {
25327
+ return this._builder;
25328
+ },
25329
+ enumerable: false,
25330
+ configurable: true
25331
+ });
25332
+ return LinearCategoryDataBuilder;
25333
+ }());
25334
+
25335
+ var DatasetBuilder = /** @class */ (function () {
25336
+ function DatasetBuilder(_builder) {
25337
+ this._builder = _builder;
25338
+ }
25339
+ Object.defineProperty(DatasetBuilder.prototype, "chart", {
25340
+ get: function () {
25341
+ return this._builder;
25342
+ },
25343
+ enumerable: false,
25344
+ configurable: true
25345
+ });
25346
+ return DatasetBuilder;
25347
+ }());
25348
+
25349
+ var LinearDatasetBuilder = /** @class */ (function (_super) {
25350
+ __extends(LinearDatasetBuilder, _super);
25351
+ function LinearDatasetBuilder(builder, datasets) {
25352
+ var _this = _super.call(this, builder) || this;
25353
+ _this.datasets = datasets;
25354
+ return _this;
25355
+ }
25356
+ LinearDatasetBuilder.prototype.ofType = function (type) {
25357
+ return this;
25358
+ };
25359
+ LinearDatasetBuilder.prototype.valuesRounding = function (decimals) {
25360
+ return this;
25361
+ };
25362
+ LinearDatasetBuilder.prototype.label = function (label) {
25363
+ return this;
25364
+ };
25365
+ LinearDatasetBuilder.prototype.thickness = function (thickness) {
25366
+ return this;
25367
+ };
25368
+ LinearDatasetBuilder.prototype.customAxis = function (axisId) {
25369
+ return this;
25370
+ };
25371
+ LinearDatasetBuilder.prototype.color = function (color, transparency) {
25372
+ if (transparency === void 0) { transparency = 'ff'; }
25373
+ return this;
25374
+ };
25375
+ LinearDatasetBuilder.prototype.barPercentage = function (value) {
25376
+ return this;
25377
+ };
25378
+ LinearDatasetBuilder.prototype.pointStyle = function (style) {
25379
+ return this;
25380
+ };
25381
+ LinearDatasetBuilder.prototype.pointRadius = function (radius, hitRadius) {
25382
+ if (hitRadius === void 0) { hitRadius = null; }
25383
+ return this;
25384
+ };
25385
+ LinearDatasetBuilder.prototype.roundedBorders = function (radius) {
25386
+ return this;
25387
+ };
25388
+ LinearDatasetBuilder.prototype.roundToNearestStorageUnit = function (showUnitsInChartTitle) {
25389
+ if (showUnitsInChartTitle === void 0) { showUnitsInChartTitle = false; }
25390
+ return this;
25391
+ };
25392
+ return LinearDatasetBuilder;
25393
+ }(DatasetBuilder));
25394
+
25395
+ var LinearDateDataBuilder = /** @class */ (function () {
25396
+ function LinearDateDataBuilder(_builder, type) {
25397
+ this._builder = _builder;
25398
+ this.type = type;
25399
+ }
25400
+ LinearDateDataBuilder.prototype.enforceStartDate = function (data) {
25401
+ return this;
25402
+ };
25403
+ LinearDateDataBuilder.prototype.enforceEndDate = function (data) {
25404
+ return this;
25405
+ };
25406
+ LinearDateDataBuilder.prototype.take = function (value) {
25407
+ return this;
25408
+ };
25409
+ LinearDateDataBuilder.prototype.appendExtraData = function (converter) {
25410
+ return this;
25411
+ };
25412
+ LinearDateDataBuilder.prototype.seriesFrom = function (seriesSelector) {
25413
+ return this;
25414
+ };
25415
+ LinearDateDataBuilder.prototype.singleSerie = function () {
25416
+ return this;
25417
+ };
25418
+ LinearDateDataBuilder.prototype.dateFrom = function (dateSelector) {
25419
+ return this;
25420
+ };
25421
+ LinearDateDataBuilder.prototype.valueFrom = function (valueSelector) {
25422
+ return this;
25423
+ };
25424
+ LinearDateDataBuilder.prototype.addSerie = function (name, addSerieSelector) {
25425
+ return this;
25426
+ };
25427
+ LinearDateDataBuilder.prototype.roundValues = function (decimalPlaces) {
25428
+ return this;
25429
+ };
25430
+ LinearDateDataBuilder.prototype.buildLineChartAxis = function () {
25431
+ // TODO: any é uma Point
25432
+ return [];
25433
+ };
25434
+ Object.defineProperty(LinearDateDataBuilder.prototype, "chart", {
25435
+ get: function () {
25436
+ return this._builder;
25437
+ },
25438
+ enumerable: false,
25439
+ configurable: true
25440
+ });
25441
+ return LinearDateDataBuilder;
25442
+ }());
25443
+
25444
+ function CreateLinearChart(data) {
25445
+ return new LinearChartBuilder(data);
25446
+ }
25447
+ var LinearChartBuilder = /** @class */ (function (_super) {
25448
+ __extends(LinearChartBuilder, _super);
25449
+ function LinearChartBuilder(originalData) {
25450
+ var _this = _super.call(this, originalData) || this;
25451
+ _this.that = _this;
25452
+ return _this;
25453
+ }
25454
+ LinearChartBuilder.prototype.prepareLinearDateData = function (type) {
25455
+ return new LinearDateDataBuilder(this, type);
25456
+ };
25457
+ LinearChartBuilder.prototype.prepareLinearCategoryData = function () {
25458
+ return new LinearCategoryDataBuilder(this);
25459
+ };
25460
+ LinearChartBuilder.prototype.prepareHistogramData = function (intervalCount) {
25461
+ return new HistogramDataBuilder(this, intervalCount);
25462
+ };
25463
+ LinearChartBuilder.prototype.setupDataset = function (datasetId) {
25464
+ var dataset = this._chart.data.datasets.find(function (x) { return x['id'] == datasetId; });
25465
+ if (dataset == null && this._chart.data.datasets.length > 0)
25466
+ throw new Error("Unknown dataset: " + datasetId);
25467
+ var orderedDatasets = this._chart.data.datasets.filter(function (x) { return x.order != null; });
25468
+ if (orderedDatasets != null && orderedDatasets.length > 0) {
25469
+ if (dataset != null) {
25470
+ dataset.order = Math.max.apply(Math, __spreadArray([], __read(orderedDatasets.map(function (x) { return x.order; })))) + 1;
25471
+ }
25472
+ }
25473
+ else {
25474
+ if (dataset != null) {
25475
+ dataset.order = 0;
25476
+ }
25477
+ }
25478
+ return new LinearDatasetBuilder(this.that, [dataset]);
25479
+ };
25480
+ LinearChartBuilder.prototype.setupDatasets = function () {
25481
+ return new LinearDatasetBuilder(this.that, this._chart.data.datasets);
25482
+ };
25483
+ LinearChartBuilder.prototype.theme = function (palletes, backgroundTransparency) {
25484
+ return this.colors(ChartColorSelector.GetColors(palletes), backgroundTransparency !== null && backgroundTransparency !== void 0 ? backgroundTransparency : 'ff');
25485
+ };
25486
+ LinearChartBuilder.prototype.colors = function (colors, backgroundTransparency) {
25487
+ if (backgroundTransparency === void 0) { backgroundTransparency = 'ff'; }
25488
+ return this;
25489
+ };
25490
+ LinearChartBuilder.prototype.withXAxis = function (axisId) {
25491
+ return this.withAxis(axisId);
25492
+ };
25493
+ LinearChartBuilder.prototype.withYAxis = function (axisId) {
25494
+ return this.withAxis(axisId);
25495
+ };
25496
+ LinearChartBuilder.prototype.withAxis = function (axisId) {
25497
+ var axis = null;
25498
+ return new CartesianScaleBuilder(this.that, axis);
25499
+ };
25500
+ // TODO: any é um Point
25501
+ // o nome desse método tem WithExpression pq o typescript não suporte overloads de métodos
25502
+ LinearChartBuilder.prototype.reorderCategoriesWithExpression = function (expression) {
25503
+ return this;
25504
+ };
25505
+ LinearChartBuilder.prototype.reorderCategories = function (orderedCategories) {
25506
+ return this;
25507
+ };
25508
+ LinearChartBuilder.prototype.setColors = function (pallete, indices) {
25509
+ return this;
25510
+ };
25511
+ return LinearChartBuilder;
25512
+ }(BaseChartBuilder));
25513
+
25514
+ var RadialDataBuilder = /** @class */ (function () {
25515
+ function RadialDataBuilder(_builder, type) {
25516
+ this._builder = _builder;
25517
+ this.type = type;
25518
+ }
25519
+ RadialDataBuilder.prototype.appendExtraData = function (converter) {
25520
+ return this;
25521
+ };
25522
+ RadialDataBuilder.prototype.seriesFrom = function (seriesSelector) {
25523
+ return this;
25524
+ };
25525
+ RadialDataBuilder.prototype.maximumSeries = function (value, label) {
25526
+ return this;
25527
+ };
25528
+ RadialDataBuilder.prototype.take = function (value) {
25529
+ return this;
25530
+ };
25531
+ RadialDataBuilder.prototype.valueFrom = function (valueSelector) {
25532
+ return this;
25533
+ };
25534
+ RadialDataBuilder.prototype.roundValues = function (decimalPlaces) {
25535
+ return this;
25536
+ };
25537
+ Object.defineProperty(RadialDataBuilder.prototype, "chart", {
25538
+ get: function () {
25539
+ return this._builder;
25540
+ },
25541
+ enumerable: false,
25542
+ configurable: true
25543
+ });
25544
+ return RadialDataBuilder;
25545
+ }());
25546
+
25547
+ function CreateRadialChart(data) {
25548
+ return new RadialChartBuilder(data);
25549
+ }
25550
+ var RadialChartBuilder = /** @class */ (function (_super) {
25551
+ __extends(RadialChartBuilder, _super);
25552
+ function RadialChartBuilder(originalData) {
25553
+ var _this = _super.call(this, originalData) || this;
25554
+ _this.that = _this;
25555
+ return _this;
25556
+ }
25557
+ RadialChartBuilder.prototype.setValuesRounding = function (decimals) {
25558
+ return this;
25559
+ };
25560
+ RadialChartBuilder.prototype.theme = function (palletes, backgroundTransparency) {
25561
+ return this.colors(ChartColorSelector.GetColors(palletes), backgroundTransparency !== null && backgroundTransparency !== void 0 ? backgroundTransparency : 'ff');
25562
+ };
25563
+ RadialChartBuilder.prototype.colors = function (colors, backgroundTransparency) {
25564
+ if (backgroundTransparency === void 0) { backgroundTransparency = 'ff'; }
25565
+ return this;
25566
+ };
25567
+ RadialChartBuilder.prototype.roundToNearestStorageUnit = function () {
25568
+ return this;
25569
+ };
25570
+ RadialChartBuilder.prototype.prepareData = function (type) {
25571
+ return new RadialDataBuilder(this, type);
25572
+ };
25573
+ return RadialChartBuilder;
25574
+ }(BaseChartBuilder));
25575
+
25576
+ exports.GroupingType = void 0;
25577
+ (function (GroupingType) {
25578
+ GroupingType[GroupingType["None"] = 0] = "None";
25579
+ GroupingType[GroupingType["Daily"] = 1] = "Daily";
25580
+ GroupingType[GroupingType["Hourly"] = 2] = "Hourly";
25581
+ GroupingType[GroupingType["Weekly"] = 3] = "Weekly";
25582
+ GroupingType[GroupingType["Monthly"] = 4] = "Monthly";
25583
+ GroupingType[GroupingType["Yearly"] = 5] = "Yearly";
25584
+ })(exports.GroupingType || (exports.GroupingType = {}));
25585
+
25586
+ exports.ChartType = void 0;
25587
+ (function (ChartType) {
25588
+ ChartType[ChartType["Empty"] = 0] = "Empty";
25589
+ ChartType[ChartType["Line"] = 1] = "Line";
25590
+ ChartType[ChartType["Bar"] = 2] = "Bar";
25591
+ ChartType[ChartType["Radar"] = 3] = "Radar";
25592
+ ChartType[ChartType["Doughnut"] = 4] = "Doughnut";
25593
+ ChartType[ChartType["PolarArea"] = 5] = "PolarArea";
25594
+ ChartType[ChartType["Bubble"] = 6] = "Bubble";
25595
+ ChartType[ChartType["Pie"] = 7] = "Pie";
25596
+ ChartType[ChartType["StackedBar"] = 8] = "StackedBar";
25597
+ ChartType[ChartType["Mixed"] = 9] = "Mixed";
25598
+ ChartType[ChartType["HorizontalBar"] = 10] = "HorizontalBar";
25599
+ })(exports.ChartType || (exports.ChartType = {}));
25600
+
25601
+ exports.DatasetType = void 0;
25602
+ (function (DatasetType) {
25603
+ DatasetType[DatasetType["Line"] = 0] = "Line";
25604
+ DatasetType[DatasetType["Bar"] = 1] = "Bar";
25605
+ })(exports.DatasetType || (exports.DatasetType = {}));
25606
+
25607
+ exports.ColorPallete = void 0;
25608
+ (function (ColorPallete) {
25609
+ ColorPallete[ColorPallete["Bright1"] = 0] = "Bright1";
25610
+ ColorPallete[ColorPallete["Bright2"] = 1] = "Bright2";
25611
+ ColorPallete[ColorPallete["Bright3"] = 2] = "Bright3";
25612
+ ColorPallete[ColorPallete["Bright4"] = 3] = "Bright4";
25613
+ ColorPallete[ColorPallete["Bright5"] = 4] = "Bright5";
25614
+ ColorPallete[ColorPallete["Spring1"] = 5] = "Spring1";
25615
+ ColorPallete[ColorPallete["Spring2"] = 6] = "Spring2";
25616
+ ColorPallete[ColorPallete["Spring3"] = 7] = "Spring3";
25617
+ ColorPallete[ColorPallete["Spring4"] = 8] = "Spring4";
25618
+ ColorPallete[ColorPallete["Spring5"] = 9] = "Spring5";
25619
+ ColorPallete[ColorPallete["Summer1"] = 10] = "Summer1";
25620
+ ColorPallete[ColorPallete["Summer2"] = 11] = "Summer2";
25621
+ ColorPallete[ColorPallete["Summer3"] = 12] = "Summer3";
25622
+ ColorPallete[ColorPallete["Summer4"] = 13] = "Summer4";
25623
+ ColorPallete[ColorPallete["Summer5"] = 14] = "Summer5";
25624
+ ColorPallete[ColorPallete["Pastel1"] = 15] = "Pastel1";
25625
+ ColorPallete[ColorPallete["Pastel2"] = 16] = "Pastel2";
25626
+ ColorPallete[ColorPallete["Pastel3"] = 17] = "Pastel3";
25627
+ ColorPallete[ColorPallete["Pastel4"] = 18] = "Pastel4";
25628
+ ColorPallete[ColorPallete["Pastel5"] = 19] = "Pastel5";
25629
+ ColorPallete[ColorPallete["Winter1"] = 20] = "Winter1";
25630
+ ColorPallete[ColorPallete["Winter2"] = 21] = "Winter2";
25631
+ ColorPallete[ColorPallete["Winter3"] = 22] = "Winter3";
25632
+ ColorPallete[ColorPallete["Winter4"] = 23] = "Winter4";
25633
+ ColorPallete[ColorPallete["Winter5"] = 24] = "Winter5";
25634
+ ColorPallete[ColorPallete["Gemstone1"] = 25] = "Gemstone1";
25635
+ ColorPallete[ColorPallete["Gemstone2"] = 26] = "Gemstone2";
25636
+ ColorPallete[ColorPallete["Gemstone3"] = 27] = "Gemstone3";
25637
+ ColorPallete[ColorPallete["Gemstone4"] = 28] = "Gemstone4";
25638
+ ColorPallete[ColorPallete["Gemstone5"] = 29] = "Gemstone5";
25639
+ ColorPallete[ColorPallete["Autumn1"] = 30] = "Autumn1";
25640
+ ColorPallete[ColorPallete["Autumn2"] = 31] = "Autumn2";
25641
+ ColorPallete[ColorPallete["Autumn3"] = 32] = "Autumn3";
25642
+ ColorPallete[ColorPallete["Autumn4"] = 33] = "Autumn4";
25643
+ ColorPallete[ColorPallete["Autumn5"] = 34] = "Autumn5";
25644
+ ColorPallete[ColorPallete["Vivid1"] = 35] = "Vivid1";
25645
+ ColorPallete[ColorPallete["Vivid2"] = 36] = "Vivid2";
25646
+ ColorPallete[ColorPallete["Vivid3"] = 37] = "Vivid3";
25647
+ ColorPallete[ColorPallete["Vivid4"] = 38] = "Vivid4";
25648
+ ColorPallete[ColorPallete["Vivid5"] = 39] = "Vivid5";
25649
+ ColorPallete[ColorPallete["Vivid6"] = 40] = "Vivid6";
25650
+ ColorPallete[ColorPallete["General1"] = 41] = "General1";
25651
+ ColorPallete[ColorPallete["General2"] = 42] = "General2";
25652
+ ColorPallete[ColorPallete["General3"] = 43] = "General3";
25653
+ ColorPallete[ColorPallete["General4"] = 44] = "General4";
25654
+ ColorPallete[ColorPallete["General5"] = 45] = "General5";
25655
+ ColorPallete[ColorPallete["General6"] = 46] = "General6";
25656
+ ColorPallete[ColorPallete["General7"] = 47] = "General7";
25657
+ ColorPallete[ColorPallete["General8"] = 48] = "General8";
25658
+ ColorPallete[ColorPallete["Red1"] = 49] = "Red1";
25659
+ ColorPallete[ColorPallete["Red2"] = 50] = "Red2";
25660
+ ColorPallete[ColorPallete["Blue1"] = 51] = "Blue1";
25661
+ ColorPallete[ColorPallete["Blue2"] = 52] = "Blue2";
25662
+ ColorPallete[ColorPallete["Green1"] = 53] = "Green1";
25663
+ ColorPallete[ColorPallete["Green2"] = 54] = "Green2";
25664
+ ColorPallete[ColorPallete["Green3"] = 55] = "Green3";
25665
+ ColorPallete[ColorPallete["Green4"] = 56] = "Green4";
25666
+ ColorPallete[ColorPallete["Yellow1"] = 57] = "Yellow1";
25667
+ ColorPallete[ColorPallete["Pink1"] = 58] = "Pink1";
25668
+ ColorPallete[ColorPallete["Pink2"] = 59] = "Pink2";
25669
+ ColorPallete[ColorPallete["Soft1"] = 60] = "Soft1";
25670
+ ColorPallete[ColorPallete["Soft2"] = 61] = "Soft2";
25671
+ ColorPallete[ColorPallete["Soft3"] = 62] = "Soft3";
25672
+ })(exports.ColorPallete || (exports.ColorPallete = {}));
25673
+
25674
+ exports.AxisPosition = void 0;
25675
+ (function (AxisPosition) {
25676
+ AxisPosition[AxisPosition["Left"] = 0] = "Left";
25677
+ AxisPosition[AxisPosition["Right"] = 1] = "Right";
25678
+ AxisPosition[AxisPosition["Bottom"] = 2] = "Bottom";
25679
+ AxisPosition[AxisPosition["Top"] = 3] = "Top";
25680
+ AxisPosition[AxisPosition["Center"] = 4] = "Center";
25681
+ })(exports.AxisPosition || (exports.AxisPosition = {}));
25682
+
25683
+ exports.AxisOverflowType = void 0;
25684
+ (function (AxisOverflowType) {
25685
+ AxisOverflowType[AxisOverflowType["Relative"] = 0] = "Relative";
25686
+ AxisOverflowType[AxisOverflowType["Absolute"] = 1] = "Absolute";
25687
+ })(exports.AxisOverflowType || (exports.AxisOverflowType = {}));
25688
+
25689
+ exports.AxisOverflowDirection = void 0;
25690
+ (function (AxisOverflowDirection) {
25691
+ AxisOverflowDirection[AxisOverflowDirection["Bottom"] = 0] = "Bottom";
25692
+ AxisOverflowDirection[AxisOverflowDirection["Top"] = 1] = "Top";
25693
+ AxisOverflowDirection[AxisOverflowDirection["Both"] = 2] = "Both";
25694
+ })(exports.AxisOverflowDirection || (exports.AxisOverflowDirection = {}));
25695
+
25696
+ // --------------------
25697
+
24885
25698
  /*
24886
25699
  * Public API Surface of ngx-smz-ui
24887
25700
  */
@@ -24914,6 +25727,8 @@
24914
25727
  exports.ClonePipe = ClonePipe;
24915
25728
  exports.ColorPickerComponent = ColorPickerComponent;
24916
25729
  exports.Confirmable = Confirmable;
25730
+ exports.CreateLinearChart = CreateLinearChart;
25731
+ exports.CreateRadialChart = CreateRadialChart;
24917
25732
  exports.CustomError = CustomError;
24918
25733
  exports.DATABASE_REQUIRED_ACTIONS = DATABASE_REQUIRED_ACTIONS;
24919
25734
  exports.DATABASE_STATES = DATABASE_STATES;
@@ -24963,6 +25778,7 @@
24963
25778
  exports.IsVisiblePipeModule = IsVisiblePipeModule;
24964
25779
  exports.LOADING_BEHAVIOR_HEADER = LOADING_BEHAVIOR_HEADER;
24965
25780
  exports.LOCAL_LOADING_TAG_HEADER = LOCAL_LOADING_TAG_HEADER;
25781
+ exports.LinearChartBuilder = LinearChartBuilder;
24966
25782
  exports.LinkedDropdownComponent = LinkedDropdownComponent;
24967
25783
  exports.LinkedMultiSelectComponent = LinkedMultiSelectComponent;
24968
25784
  exports.MenuHelperService = MenuHelperService;
@@ -24990,9 +25806,12 @@
24990
25806
  exports.NgxSmzUiComponent = NgxSmzUiComponent;
24991
25807
  exports.NgxSmzUiModule = NgxSmzUiModule;
24992
25808
  exports.NgxSmzViewportModule = NgxSmzViewportModule;
25809
+ exports.PrettyJsonPipe = PrettyJsonPipe;
25810
+ exports.PrettyJsonPipeModule = PrettyJsonPipeModule;
24993
25811
  exports.PrimeConfigService = PrimeConfigService;
24994
25812
  exports.REFRESH_TOKEN_BEHAVIOR_HEADER = REFRESH_TOKEN_BEHAVIOR_HEADER;
24995
25813
  exports.RESTORE_STATE_ON_ERROR_HEADER = RESTORE_STATE_ON_ERROR_HEADER;
25814
+ exports.RadialChartBuilder = RadialChartBuilder;
24996
25815
  exports.RadioButtonComponent = RadioButtonComponent;
24997
25816
  exports.RbkAccessControlModule = RbkAccessControlModule;
24998
25817
  exports.RbkAuthGuard = RbkAuthGuard;