ngx-smz-ui 3.6.6 → 3.7.0

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 (59) hide show
  1. package/bundles/ngx-smz-ui.umd.js +754 -22
  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 +7 -6
  28. package/esm2015/lib/modules/smz-tables/pipes/clone-table-items.pipe.js +8 -9
  29. package/esm2015/lib/modules/smz-trees/ngx-smz-trees.module.js +8 -3
  30. package/esm2015/public-api.js +3 -1
  31. package/fesm2015/ngx-smz-ui.js +674 -16
  32. package/fesm2015/ngx-smz-ui.js.map +1 -1
  33. package/lib/builders/smz-charts/base-chart-builder.d.ts +21 -0
  34. package/lib/builders/smz-charts/linear-chart-builder.d.ts +27 -0
  35. package/lib/builders/smz-charts/models/axis-overflow-direction.d.ts +5 -0
  36. package/lib/builders/smz-charts/models/axis-overflow-type.d.ts +4 -0
  37. package/lib/builders/smz-charts/models/axis-position.d.ts +7 -0
  38. package/lib/builders/smz-charts/models/chart-type.d.ts +13 -0
  39. package/lib/builders/smz-charts/models/color-pallete.d.ts +65 -0
  40. package/lib/builders/smz-charts/models/color-selector.d.ts +67 -0
  41. package/lib/builders/smz-charts/models/dataset-type.d.ts +4 -0
  42. package/lib/builders/smz-charts/models/grouping-type.d.ts +8 -0
  43. package/lib/builders/smz-charts/public-api.d.ts +9 -0
  44. package/lib/builders/smz-charts/radial-chart-builder.d.ts +15 -0
  45. package/lib/builders/smz-charts/secondary/cartesian-scale-builder.d.ts +18 -0
  46. package/lib/builders/smz-charts/secondary/cartesian-title-builder.d.ts +11 -0
  47. package/lib/builders/smz-charts/secondary/dataset-builder.d.ts +6 -0
  48. package/lib/builders/smz-charts/secondary/histogram-data-builder.d.ts +10 -0
  49. package/lib/builders/smz-charts/secondary/legend-builder.d.ts +11 -0
  50. package/lib/builders/smz-charts/secondary/linear-category-data-builder.d.ts +12 -0
  51. package/lib/builders/smz-charts/secondary/linear-dataset-builder.d.ts +19 -0
  52. package/lib/builders/smz-charts/secondary/linear-date-data-builder.d.ts +19 -0
  53. package/lib/builders/smz-charts/secondary/radial-data-builder.d.ts +14 -0
  54. package/lib/builders/smz-charts/secondary/title-builder.d.ts +13 -0
  55. package/lib/builders/smz-charts/secondary/tooltip-builder.d.ts +13 -0
  56. package/lib/common/utils/pretty-json.d.ts +12 -0
  57. package/lib/modules/smz-menu/components/menu.d.ts +1 -1
  58. package/package.json +1 -1
  59. 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
 
@@ -7487,11 +7487,11 @@
7487
7487
  return MenuItemContent;
7488
7488
  }());
7489
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 });
7490
- MenuItemContent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.5", type: MenuItemContent, selector: "[pMenuItemContent]", inputs: { item: ["pMenuItemContent", "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 });
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 });
7491
7491
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: MenuItemContent, decorators: [{
7492
7492
  type: i0.Component,
7493
7493
  args: [{
7494
- selector: "[pMenuItemContent]",
7494
+ selector: "[smzMenuItemContent]",
7495
7495
  encapsulation: i0.ViewEncapsulation.None,
7496
7496
  templateUrl: "./menu-item-content.html",
7497
7497
  host: {
@@ -7505,7 +7505,7 @@
7505
7505
  }] }];
7506
7506
  }, propDecorators: { item: [{
7507
7507
  type: i0.Input,
7508
- args: ["pMenuItemContent"]
7508
+ args: ["smzMenuItemContent"]
7509
7509
  }] } });
7510
7510
  var Menu = /** @class */ (function () {
7511
7511
  function Menu(el, renderer, cd, config, overlayService) {
@@ -7690,12 +7690,13 @@
7690
7690
  }
7691
7691
  };
7692
7692
  Menu.prototype.hasSubMenu = function () {
7693
- var e_1, _a;
7693
+ var e_1, _b;
7694
+ var _a;
7694
7695
  if (this.model) {
7695
7696
  try {
7696
- for (var _b = __values(this.model), _c = _b.next(); !_c.done; _c = _b.next()) {
7697
- var item = _c.value;
7698
- if (item.items) {
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) {
7699
7700
  return true;
7700
7701
  }
7701
7702
  }
@@ -7703,7 +7704,7 @@
7703
7704
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
7704
7705
  finally {
7705
7706
  try {
7706
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7707
+ if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
7707
7708
  }
7708
7709
  finally { if (e_1) throw e_1.error; }
7709
7710
  }
@@ -7713,7 +7714,7 @@
7713
7714
  return Menu;
7714
7715
  }());
7715
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 });
7716
- 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 [pMenuItemContent]=\"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 [pMenuItemContent]=\"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: "[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"] }, { type: i1__namespace$1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "pTooltip", "tooltipDisabled", "tooltipOptions"] }], animations: [
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: [
7717
7718
  animations.trigger("overlayAnimation", [
7718
7719
  animations.transition(":enter", [
7719
7720
  animations.style({ opacity: 0, transform: "scaleY(0.8)" }),
@@ -8088,18 +8089,17 @@
8088
8089
  context.columns.forEach(function (col) {
8089
8090
  var _a, _b, _c;
8090
8091
  var columnItems = samples.map(function (x) { return x[col.field]; }).filter(function (x) { return x != null; });
8091
- 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);
8092
- // if (col.field === 'service') {
8093
- // console.log(`${col.field} => ${estimativeWidth}`);
8094
- // }
8095
- 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
+ }
8096
8096
  var visibleColumnsIndex = (_b = context.visibleColumns) === null || _b === void 0 ? void 0 : _b.findIndex(function (x) { return x.field === col.field; });
8097
8097
  if (visibleColumnsIndex >= 0) {
8098
- context.visibleColumns[visibleColumnsIndex].width = estimativeWidth;
8098
+ context.visibleColumns[visibleColumnsIndex].width = width;
8099
8099
  }
8100
8100
  var frozenColumnsIndex = (_c = context.frozenColumns) === null || _c === void 0 ? void 0 : _c.findIndex(function (x) { return x.field === col.field; });
8101
8101
  if (frozenColumnsIndex >= 0) {
8102
- context.frozenColumns[frozenColumnsIndex].width = estimativeWidth;
8102
+ context.frozenColumns[frozenColumnsIndex].width = width;
8103
8103
  }
8104
8104
  });
8105
8105
  // console.log('estimated', context.columns.map(x => `${x.field} => ${x.width}`));
@@ -8149,7 +8149,7 @@
8149
8149
  else if (x != null && isSimpleNamedEntity(x)) {
8150
8150
  return x.name.trim();
8151
8151
  }
8152
- 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();
8153
8153
  })
8154
8154
  .map(function (x) {
8155
8155
  var _a, _b;
@@ -21103,7 +21103,9 @@
21103
21103
  i4.InputTextModule,
21104
21104
  i9.SkeletonModule], exports: [SmzTreeComponent,
21105
21105
  i1$6.SharedModule] });
21106
- NgxSmzTreesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: NgxSmzTreesModule, imports: [[
21106
+ NgxSmzTreesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: NgxSmzTreesModule, providers: [
21107
+ i1$6.ContextMenuService
21108
+ ], imports: [[
21107
21109
  i1$1.CommonModule,
21108
21110
  i1$6.SharedModule,
21109
21111
  i5.TableModule,
@@ -21143,6 +21145,9 @@
21143
21145
  SmzTreeComponent,
21144
21146
  i1$6.SharedModule
21145
21147
  ],
21148
+ providers: [
21149
+ i1$6.ContextMenuService
21150
+ ]
21146
21151
  }]
21147
21152
  }] });
21148
21153
 
@@ -22673,6 +22678,42 @@
22673
22678
  return result;
22674
22679
  }
22675
22680
 
22681
+ var PrettyJsonPipe = /** @class */ (function () {
22682
+ function PrettyJsonPipe() {
22683
+ }
22684
+ PrettyJsonPipe.prototype.transform = function (val) {
22685
+ return JSON.stringify(val, null, 2)
22686
+ .replace(' ', '&nbsp;')
22687
+ .replace('\n', '<br/>');
22688
+ };
22689
+ return PrettyJsonPipe;
22690
+ }());
22691
+ PrettyJsonPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PrettyJsonPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
22692
+ PrettyJsonPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PrettyJsonPipe, name: "prettyJson" });
22693
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PrettyJsonPipe, decorators: [{
22694
+ type: i0.Pipe,
22695
+ args: [{
22696
+ name: 'prettyJson'
22697
+ }]
22698
+ }] });
22699
+ var PrettyJsonPipeModule = /** @class */ (function () {
22700
+ function PrettyJsonPipeModule() {
22701
+ }
22702
+ return PrettyJsonPipeModule;
22703
+ }());
22704
+ PrettyJsonPipeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PrettyJsonPipeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
22705
+ PrettyJsonPipeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PrettyJsonPipeModule, declarations: [PrettyJsonPipe] });
22706
+ PrettyJsonPipeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PrettyJsonPipeModule, providers: [], imports: [[]] });
22707
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: PrettyJsonPipeModule, decorators: [{
22708
+ type: i0.NgModule,
22709
+ args: [{
22710
+ imports: [],
22711
+ exports: [],
22712
+ declarations: [PrettyJsonPipe],
22713
+ providers: [],
22714
+ }]
22715
+ }] });
22716
+
22676
22717
  var BreadcrumbService = /** @class */ (function () {
22677
22718
  function BreadcrumbService() {
22678
22719
  this.itemsSource = new rxjs.Subject();
@@ -24974,6 +25015,691 @@
24974
25015
  return SmzMenuItemBuilder;
24975
25016
  }());
24976
25017
 
25018
+ var LegendBuilder = /** @class */ (function () {
25019
+ function LegendBuilder(_builder) {
25020
+ this._builder = _builder;
25021
+ }
25022
+ LegendBuilder.prototype.align = function (align) {
25023
+ return this;
25024
+ };
25025
+ LegendBuilder.prototype.at = function (position) {
25026
+ return this;
25027
+ };
25028
+ LegendBuilder.prototype.title = function (title) {
25029
+ return this;
25030
+ };
25031
+ LegendBuilder.prototype.usePointStyles = function () {
25032
+ return this;
25033
+ };
25034
+ Object.defineProperty(LegendBuilder.prototype, "chart", {
25035
+ get: function () {
25036
+ return this._builder;
25037
+ },
25038
+ enumerable: false,
25039
+ configurable: true
25040
+ });
25041
+ return LegendBuilder;
25042
+ }());
25043
+
25044
+ var TitleBuilder = /** @class */ (function () {
25045
+ function TitleBuilder(_builder, title) {
25046
+ this._builder = _builder;
25047
+ this.title = title;
25048
+ }
25049
+ TitleBuilder.prototype.padding = function (top, bottom) {
25050
+ return this;
25051
+ };
25052
+ TitleBuilder.prototype.font = function (size, lineheight, family) {
25053
+ if (lineheight === void 0) { lineheight = null; }
25054
+ if (family === void 0) { family = null; }
25055
+ return this;
25056
+ };
25057
+ TitleBuilder.prototype.alignment = function (align) {
25058
+ return this;
25059
+ };
25060
+ TitleBuilder.prototype.at = function (position) {
25061
+ return this;
25062
+ };
25063
+ TitleBuilder.prototype.color = function (color) {
25064
+ return this;
25065
+ };
25066
+ Object.defineProperty(TitleBuilder.prototype, "chart", {
25067
+ get: function () {
25068
+ return this._builder;
25069
+ },
25070
+ enumerable: false,
25071
+ configurable: true
25072
+ });
25073
+ return TitleBuilder;
25074
+ }());
25075
+
25076
+ var TooltipBuilder = /** @class */ (function () {
25077
+ function TooltipBuilder(_builder) {
25078
+ this._builder = _builder;
25079
+ }
25080
+ TooltipBuilder.prototype.backgroundColor = function (color) {
25081
+ return this;
25082
+ };
25083
+ TooltipBuilder.prototype.useSeriesPointStyles = function () {
25084
+ return this;
25085
+ };
25086
+ TooltipBuilder.prototype.cornerRadius = function (radius) {
25087
+ return this;
25088
+ };
25089
+ TooltipBuilder.prototype.atPointLocation = function () {
25090
+ return this;
25091
+ };
25092
+ TooltipBuilder.prototype.atVerticalAxis = function () {
25093
+ return this;
25094
+ };
25095
+ TooltipBuilder.prototype.border = function (color, width) {
25096
+ return this;
25097
+ };
25098
+ Object.defineProperty(TooltipBuilder.prototype, "chart", {
25099
+ get: function () {
25100
+ return this._builder;
25101
+ },
25102
+ enumerable: false,
25103
+ configurable: true
25104
+ });
25105
+ return TooltipBuilder;
25106
+ }());
25107
+
25108
+ function NewChart() {
25109
+ return new chart_js.Chart(null, { type: null, data: { datasets: [] }, options: {} });
25110
+ }
25111
+ var BaseChartBuilder = /** @class */ (function () {
25112
+ // public _seriesSelector: (x: TData) => string;
25113
+ // public _dateSelector: (x: TData) => Date;
25114
+ // public _valueSelector: (x: TData[]) => number;
25115
+ function BaseChartBuilder(_originalData) {
25116
+ this._originalData = _originalData;
25117
+ this._chart = NewChart();
25118
+ }
25119
+ BaseChartBuilder.prototype.ofType = function (type) {
25120
+ return this.that;
25121
+ };
25122
+ BaseChartBuilder.prototype.withTitle = function (title) {
25123
+ return new TitleBuilder(this.that, title);
25124
+ };
25125
+ BaseChartBuilder.prototype.withTooltips = function () {
25126
+ return new TooltipBuilder(this.that);
25127
+ };
25128
+ BaseChartBuilder.prototype.withLegend = function () {
25129
+ return new LegendBuilder(this.that);
25130
+ };
25131
+ BaseChartBuilder.prototype.padding = function (left, right, top, bottom) {
25132
+ return this.that;
25133
+ };
25134
+ BaseChartBuilder.prototype.aspectRatio = function (ratio) {
25135
+ return this.that;
25136
+ };
25137
+ BaseChartBuilder.prototype.allowEmpty = function () {
25138
+ return this.that;
25139
+ };
25140
+ BaseChartBuilder.prototype.responsive = function () {
25141
+ return this.that;
25142
+ };
25143
+ BaseChartBuilder.prototype.build = function (debug) {
25144
+ if (debug === void 0) { debug = false; }
25145
+ var results = {
25146
+ type: null,
25147
+ config: null,
25148
+ data: null
25149
+ };
25150
+ return results;
25151
+ };
25152
+ return BaseChartBuilder;
25153
+ }());
25154
+
25155
+ var ChartColorSelector = /** @class */ (function () {
25156
+ function ChartColorSelector() {
25157
+ }
25158
+ ChartColorSelector.GetColors = function (palletes) {
25159
+ if (palletes.length == 0)
25160
+ throw new Error('You need to specify ate least one color pallete');
25161
+ var colors = [];
25162
+ palletes.forEach(function (pallete) {
25163
+ // var type = typeof(ChartColorSelector);
25164
+ // TODO: traduzir lógica
25165
+ // var info = type.GetField(pallete.ToString(), BindingFlags.NonPublic | BindingFlags.Static);
25166
+ // var value = (string[])info.GetValue(null);
25167
+ // colors.push(value);
25168
+ });
25169
+ return colors;
25170
+ };
25171
+ return ChartColorSelector;
25172
+ }());
25173
+ ChartColorSelector.Bright1 = ['#01A5E4', '#8DD7BF', '#FF96C5', '#FF5768', '#FFBF65'];
25174
+ ChartColorSelector.Bright2 = ['#FC6328', '#FFD872', '#F2D4CC', '#E77577', '#6C88C4'];
25175
+ ChartColorSelector.Bright3 = ['#C05780', '#FF828B', '#E7C582', '#00B0BA', '#0065A2'];
25176
+ ChartColorSelector.Bright4 = ['#00CDAC', '#FF6F68', '#FFDACC', '#FF60A8', '#CFF800'];
25177
+ ChartColorSelector.Bright5 = ['#FF5C77', '#4DD091', '#FFEC59', '#FFA23A', '#74737A'];
25178
+ ChartColorSelector.Spring1 = ['#AFDDD5', '#FFA700', '#FFCCDD', '#F56093', '#64864A'];
25179
+ ChartColorSelector.Spring2 = ['#DFE6E6', '#EFDEC0', '#FF7E5A', '#FFBD00', '#7DB954'];
25180
+ ChartColorSelector.Spring3 = ['#FEDDCB', '#FFC700', '#CEE8E5', '#C6C598', '#FEE100'];
25181
+ ChartColorSelector.Spring4 = ['#FAC4C4', '#E9E7AD', '#FDBB9F', '#FFFFFF', '#EADCC3'];
25182
+ ChartColorSelector.Spring5 = ['#EEF3B4', '#FFB27B', '#FF284B', '#7ABAA1', '#CFEAE4'];
25183
+ ChartColorSelector.Summer1 = ['#53CFDA', '#EFF2E6', '#FF7994', '#FFC900', '#FFED00'];
25184
+ ChartColorSelector.Summer2 = ['#FF8860', '#F7D635', '#D6E8D9', '#F1C9C2', '#1F3D51'];
25185
+ ChartColorSelector.Summer3 = ['#FF3747', '#FF8B0F', '#FFD600', '#EAE45F', '#DDF5C2'];
25186
+ ChartColorSelector.Summer4 = ['#FF458F', '#FF8352', '#DEE500', '#00E1DF', '#00C3AF'];
25187
+ ChartColorSelector.Summer5 = ['#EDF7DD', '#4FCBBB', '#2494CC', '#EF39A7', '#FFAE90'];
25188
+ ChartColorSelector.Pastel1 = ['#ABDEE6', '#CBAACB', '#FFFFB5', '#FFCCB6', '#F3B0C3'];
25189
+ ChartColorSelector.Pastel2 = ['#FF968A', '#FFAEA5', '#FFC5BF', '#F6EAC2', '#ECD5E3'];
25190
+ ChartColorSelector.Pastel3 = ['#FF968A', '#FFAEA5', '#FFC5BF', '#FFD8BE', '#FFC8A2'];
25191
+ ChartColorSelector.Pastel4 = ['#D4F0F0', '#8FCACA', '#CCE2CB', '#B6CFB6', '#97C1A9'];
25192
+ ChartColorSelector.Pastel5 = ['#FCB9AA', '#FFDBCC', '#ECEAE4', '#A2E1DB', '#55CBCD'];
25193
+ ChartColorSelector.Winter1 = ['#445A67', '#57838D', '#B4C9C7', '#F3BFB3', '#CCADB2'];
25194
+ ChartColorSelector.Winter2 = ['#FFEFFF', '#F6F7FB', '#E0F8F5', '#BEEDE5', '#A7D9C9'];
25195
+ ChartColorSelector.Winter3 = ['#50B4D8', '#9EDDEF', '#F7E5D7', '#D7E2EA', '#96B3C2'];
25196
+ ChartColorSelector.Winter4 = ['#FFDAD1', '#FFEDDA', '#CAB3C1', '#6E7B8F', '#2E3332'];
25197
+ ChartColorSelector.Winter5 = ['#C29BA3', '#E3BFB7', '#FFE4C9', '#B7EAF7', '#8A9BA7'];
25198
+ ChartColorSelector.Gemstone1 = ['#53051D', '#9E1C5C', '#EF70AA', '#FF8C94', '#F12761'];
25199
+ ChartColorSelector.Gemstone2 = ['#00C6C7', '#96D5E2', '#00ACA5', '#006F60', '#005245'];
25200
+ ChartColorSelector.Gemstone3 = ['#EEAC4D', '#FFF2C3', '#EE84B3', '#740E4C', '#E2035D'];
25201
+ ChartColorSelector.Gemstone4 = ['#B57E79', '#FF6F68', '#00E9E7', '#006072', '#5C2A2E'];
25202
+ ChartColorSelector.Gemstone5 = ['#20503E', '#187B30', '#75E0B0', '#2D8498', '#4CB0A6'];
25203
+ ChartColorSelector.Autumn1 = ['#57291F', '#C0413B', '#D77B5F', '#FF9200', '#FFCD73'];
25204
+ ChartColorSelector.Autumn2 = ['#F7E5BF', '#C87505', '#F18E3F', '#E59579', '#C14C32'];
25205
+ ChartColorSelector.Autumn3 = ['#80003A', '#8CB5B5', '#6C3400', '#FFA400', '#EC410B'];
25206
+ ChartColorSelector.Autumn4 = ['#E63400', '#8CB5B5', '#6C3400', '#FFA400', '#41222A'];
25207
+ ChartColorSelector.Autumn5 = ['#FFF7C2', '#FFB27B', '#FF7B80', '#BC7576', '#696B7E'];
25208
+ ChartColorSelector.Vivid1 = ['#FF3784', '#36A2EB', '#4BC0C0', '#F77825', '#9966FF'];
25209
+ ChartColorSelector.Vivid2 = ['#0074D9', '#FF4136', '#2ECC40', '#FF851B', '#7FDBFF'];
25210
+ ChartColorSelector.Vivid3 = ['#2D95EC', '#F6BA2A', '#F64D2A', '#8ABB21', '#E2711D'];
25211
+ ChartColorSelector.Vivid4 = ['#EC1F24', '#69BC45', '#3651A2', '#F3EC1F', '#6CCCDE'];
25212
+ ChartColorSelector.Vivid5 = ['#EC0F7B', '#F6831B', '#97C93B', '#6CC175', '#6950A1'];
25213
+ ChartColorSelector.Vivid6 = ['#CD1724', '#07B8FF', '#34A300', '#8D4D00', '#FFE700'];
25214
+ ChartColorSelector.General1 = ['#4573A7', '#AA4644', '#89A54E', '#71588F', '#4298AF'];
25215
+ ChartColorSelector.General2 = ['#DB843D', '#93A9D0', '#D09392', '#BACD96', '#A99BBE'];
25216
+ ChartColorSelector.General3 = ['#68D4CD', '#CFF67B', '#94DAFB', '#FD8080', '#6C838D'];
25217
+ ChartColorSelector.General4 = ['#26A0FC', '#26E7A6', '#FEBC3B', '#FAB1B2', '#8B75D7'];
25218
+ ChartColorSelector.General5 = ['#E64345', '#E48F1B', '#F7D027', '#6BA547', '#619ED6'];
25219
+ ChartColorSelector.General6 = ['#60CEED', '#9CF168', '#F7EA4A', '#FBC543', '#FFC9ED'];
25220
+ ChartColorSelector.General7 = ['#64D0DA', '#34B2E4', '#065381', '#8B103E', '#E34856'];
25221
+ ChartColorSelector.General8 = ['#FE912A', '#E6696E', '#B64D8B', '#554D89', '#003E59'];
25222
+ ChartColorSelector.Red1 = ['#4F2623', '#632724', '#923734', '#A93F3B', '#BA5754'];
25223
+ ChartColorSelector.Red2 = ['#D13A2C', '#E14A3B', '#F0594B', '#F76959', '#F7C6B5'];
25224
+ ChartColorSelector.Blue1 = ['#2244A1', '#345DB3', '#537BD2', '#6A94DD', '#9DC2F7'];
25225
+ ChartColorSelector.Blue2 = ['#2082CA', '#3797D8', '#44ABE8', '#58C5EF', '#78D8F5'];
25226
+ ChartColorSelector.Green1 = ['#39590A', '#51761C', '#689E2C', '#91C637', '#A2D970'];
25227
+ ChartColorSelector.Green2 = ['#005F03', '#0F8D00', '#2EC500', '#48DE48', '#9FF3A1'];
25228
+ ChartColorSelector.Green3 = ['#CEC358', '#D7C819', '#E9DA1E', '#F0E785', '#F5F1B7'];
25229
+ ChartColorSelector.Green4 = ['#0D754E', '#10A86F', '#46B98C', '#76CBA8', '#BBE4D4'];
25230
+ ChartColorSelector.Yellow1 = ['#A07900', '#C69A12', '#E5B72B', '#F1C04C', '#F1D185'];
25231
+ ChartColorSelector.Pink1 = ['#C75B73', '#DA7B8E', '#E79099', '#E4A2A7', '#ECBCBC'];
25232
+ ChartColorSelector.Pink2 = ['#F73E3E', '#F75D5D', '#F77C7C', '#F79B9B', '#F7BABA'];
25233
+ ChartColorSelector.Soft1 = ['#FFCDD2', '#F8BBD0', '#E1BEE7', '#D1C4E9', '#C5CAE9'];
25234
+ ChartColorSelector.Soft2 = ['#BBDEFB', '#B3E5FC', '#B2EBF2', '#B2DFDB', '#C8E6C9'];
25235
+ ChartColorSelector.Soft3 = ['#DCEDC8', '#F0F4C3', '#FFECB3', '#FFE0B2', '#FFCCBC'];
25236
+
25237
+ var CartesianTitleBuilder = /** @class */ (function () {
25238
+ function CartesianTitleBuilder(builder, scale) {
25239
+ this.scale = scale;
25240
+ }
25241
+ CartesianTitleBuilder.prototype.at = function (position) {
25242
+ return this;
25243
+ };
25244
+ CartesianTitleBuilder.prototype.font = function (size, lineHeight, font) {
25245
+ return this;
25246
+ };
25247
+ CartesianTitleBuilder.prototype.padding = function (left, top, right, bottom) {
25248
+ return this;
25249
+ };
25250
+ return CartesianTitleBuilder;
25251
+ }());
25252
+
25253
+ var CartesianScaleBuilder = /** @class */ (function () {
25254
+ function CartesianScaleBuilder(builder, scale) {
25255
+ this.scale = scale;
25256
+ }
25257
+ CartesianScaleBuilder.prototype.stacked = function () {
25258
+ return this;
25259
+ };
25260
+ CartesianScaleBuilder.prototype.hideGridlines = function () {
25261
+ return this;
25262
+ };
25263
+ CartesianScaleBuilder.prototype.at = function (position) {
25264
+ return this;
25265
+ };
25266
+ CartesianScaleBuilder.prototype.title = function (label) {
25267
+ return new CartesianTitleBuilder(this, this.scale);
25268
+ };
25269
+ CartesianScaleBuilder.prototype.range = function (min, max) {
25270
+ return this;
25271
+ };
25272
+ CartesianScaleBuilder.prototype.stepSize = function (size) {
25273
+ return this;
25274
+ };
25275
+ CartesianScaleBuilder.prototype.setYAxisOverflow = function (type, direction, value) {
25276
+ return this;
25277
+ };
25278
+ CartesianScaleBuilder.prototype.autoSkip = function (padding) {
25279
+ return this;
25280
+ };
25281
+ return CartesianScaleBuilder;
25282
+ }());
25283
+
25284
+ var HistogramDataBuilder = /** @class */ (function () {
25285
+ function HistogramDataBuilder(_builder, intervalCount) {
25286
+ this._builder = _builder;
25287
+ this.intervalCount = intervalCount;
25288
+ }
25289
+ HistogramDataBuilder.prototype.appendExtraData = function (converter) {
25290
+ return this;
25291
+ };
25292
+ HistogramDataBuilder.prototype.setDesiredIntervalFraction = function (value) {
25293
+ return this;
25294
+ };
25295
+ HistogramDataBuilder.prototype.valuesFrom = function (valueSelector) {
25296
+ return this;
25297
+ };
25298
+ Object.defineProperty(HistogramDataBuilder.prototype, "chart", {
25299
+ get: function () {
25300
+ return this._builder;
25301
+ },
25302
+ enumerable: false,
25303
+ configurable: true
25304
+ });
25305
+ return HistogramDataBuilder;
25306
+ }());
25307
+
25308
+ var LinearCategoryDataBuilder = /** @class */ (function () {
25309
+ function LinearCategoryDataBuilder(_builder) {
25310
+ this._builder = _builder;
25311
+ }
25312
+ LinearCategoryDataBuilder.prototype.appendExtraData = function (converter) {
25313
+ return this;
25314
+ };
25315
+ LinearCategoryDataBuilder.prototype.categoryFrom = function (categorySelector) {
25316
+ return this;
25317
+ };
25318
+ LinearCategoryDataBuilder.prototype.seriesFrom = function (seriesSelector) {
25319
+ return this;
25320
+ };
25321
+ LinearCategoryDataBuilder.prototype.valueFrom = function (valueSelector) {
25322
+ return this;
25323
+ };
25324
+ LinearCategoryDataBuilder.prototype.singleSerie = function () {
25325
+ return this;
25326
+ };
25327
+ LinearCategoryDataBuilder.prototype.roundValues = function (decimalPlaces) {
25328
+ return this;
25329
+ };
25330
+ Object.defineProperty(LinearCategoryDataBuilder.prototype, "chart", {
25331
+ get: function () {
25332
+ return this._builder;
25333
+ },
25334
+ enumerable: false,
25335
+ configurable: true
25336
+ });
25337
+ return LinearCategoryDataBuilder;
25338
+ }());
25339
+
25340
+ var DatasetBuilder = /** @class */ (function () {
25341
+ function DatasetBuilder(_builder) {
25342
+ this._builder = _builder;
25343
+ }
25344
+ Object.defineProperty(DatasetBuilder.prototype, "chart", {
25345
+ get: function () {
25346
+ return this._builder;
25347
+ },
25348
+ enumerable: false,
25349
+ configurable: true
25350
+ });
25351
+ return DatasetBuilder;
25352
+ }());
25353
+
25354
+ var LinearDatasetBuilder = /** @class */ (function (_super) {
25355
+ __extends(LinearDatasetBuilder, _super);
25356
+ function LinearDatasetBuilder(builder, datasets) {
25357
+ var _this = _super.call(this, builder) || this;
25358
+ _this.datasets = datasets;
25359
+ return _this;
25360
+ }
25361
+ LinearDatasetBuilder.prototype.ofType = function (type) {
25362
+ return this;
25363
+ };
25364
+ LinearDatasetBuilder.prototype.valuesRounding = function (decimals) {
25365
+ return this;
25366
+ };
25367
+ LinearDatasetBuilder.prototype.label = function (label) {
25368
+ return this;
25369
+ };
25370
+ LinearDatasetBuilder.prototype.thickness = function (thickness) {
25371
+ return this;
25372
+ };
25373
+ LinearDatasetBuilder.prototype.customAxis = function (axisId) {
25374
+ return this;
25375
+ };
25376
+ LinearDatasetBuilder.prototype.color = function (color, transparency) {
25377
+ if (transparency === void 0) { transparency = 'ff'; }
25378
+ return this;
25379
+ };
25380
+ LinearDatasetBuilder.prototype.barPercentage = function (value) {
25381
+ return this;
25382
+ };
25383
+ LinearDatasetBuilder.prototype.pointStyle = function (style) {
25384
+ return this;
25385
+ };
25386
+ LinearDatasetBuilder.prototype.pointRadius = function (radius, hitRadius) {
25387
+ if (hitRadius === void 0) { hitRadius = null; }
25388
+ return this;
25389
+ };
25390
+ LinearDatasetBuilder.prototype.roundedBorders = function (radius) {
25391
+ return this;
25392
+ };
25393
+ LinearDatasetBuilder.prototype.roundToNearestStorageUnit = function (showUnitsInChartTitle) {
25394
+ if (showUnitsInChartTitle === void 0) { showUnitsInChartTitle = false; }
25395
+ return this;
25396
+ };
25397
+ return LinearDatasetBuilder;
25398
+ }(DatasetBuilder));
25399
+
25400
+ var LinearDateDataBuilder = /** @class */ (function () {
25401
+ function LinearDateDataBuilder(_builder, type) {
25402
+ this._builder = _builder;
25403
+ this.type = type;
25404
+ }
25405
+ LinearDateDataBuilder.prototype.enforceStartDate = function (data) {
25406
+ return this;
25407
+ };
25408
+ LinearDateDataBuilder.prototype.enforceEndDate = function (data) {
25409
+ return this;
25410
+ };
25411
+ LinearDateDataBuilder.prototype.take = function (value) {
25412
+ return this;
25413
+ };
25414
+ LinearDateDataBuilder.prototype.appendExtraData = function (converter) {
25415
+ return this;
25416
+ };
25417
+ LinearDateDataBuilder.prototype.seriesFrom = function (seriesSelector) {
25418
+ return this;
25419
+ };
25420
+ LinearDateDataBuilder.prototype.singleSerie = function () {
25421
+ return this;
25422
+ };
25423
+ LinearDateDataBuilder.prototype.dateFrom = function (dateSelector) {
25424
+ return this;
25425
+ };
25426
+ LinearDateDataBuilder.prototype.valueFrom = function (valueSelector) {
25427
+ return this;
25428
+ };
25429
+ LinearDateDataBuilder.prototype.addSerie = function (name, addSerieSelector) {
25430
+ return this;
25431
+ };
25432
+ LinearDateDataBuilder.prototype.roundValues = function (decimalPlaces) {
25433
+ return this;
25434
+ };
25435
+ LinearDateDataBuilder.prototype.buildLineChartAxis = function () {
25436
+ // TODO: any é uma Point
25437
+ return [];
25438
+ };
25439
+ Object.defineProperty(LinearDateDataBuilder.prototype, "chart", {
25440
+ get: function () {
25441
+ return this._builder;
25442
+ },
25443
+ enumerable: false,
25444
+ configurable: true
25445
+ });
25446
+ return LinearDateDataBuilder;
25447
+ }());
25448
+
25449
+ function CreateLinearChart(data) {
25450
+ return new LinearChartBuilder(data);
25451
+ }
25452
+ var LinearChartBuilder = /** @class */ (function (_super) {
25453
+ __extends(LinearChartBuilder, _super);
25454
+ function LinearChartBuilder(originalData) {
25455
+ var _this = _super.call(this, originalData) || this;
25456
+ _this.that = _this;
25457
+ return _this;
25458
+ }
25459
+ LinearChartBuilder.prototype.prepareLinearDateData = function (type) {
25460
+ return new LinearDateDataBuilder(this, type);
25461
+ };
25462
+ LinearChartBuilder.prototype.prepareLinearCategoryData = function () {
25463
+ return new LinearCategoryDataBuilder(this);
25464
+ };
25465
+ LinearChartBuilder.prototype.prepareHistogramData = function (intervalCount) {
25466
+ return new HistogramDataBuilder(this, intervalCount);
25467
+ };
25468
+ LinearChartBuilder.prototype.setupDataset = function (datasetId) {
25469
+ var dataset = this._chart.data.datasets.find(function (x) { return x['id'] == datasetId; });
25470
+ if (dataset == null && this._chart.data.datasets.length > 0)
25471
+ throw new Error("Unknown dataset: " + datasetId);
25472
+ var orderedDatasets = this._chart.data.datasets.filter(function (x) { return x.order != null; });
25473
+ if (orderedDatasets != null && orderedDatasets.length > 0) {
25474
+ if (dataset != null) {
25475
+ dataset.order = Math.max.apply(Math, __spreadArray([], __read(orderedDatasets.map(function (x) { return x.order; })))) + 1;
25476
+ }
25477
+ }
25478
+ else {
25479
+ if (dataset != null) {
25480
+ dataset.order = 0;
25481
+ }
25482
+ }
25483
+ return new LinearDatasetBuilder(this.that, [dataset]);
25484
+ };
25485
+ LinearChartBuilder.prototype.setupDatasets = function () {
25486
+ return new LinearDatasetBuilder(this.that, this._chart.data.datasets);
25487
+ };
25488
+ LinearChartBuilder.prototype.theme = function (palletes, backgroundTransparency) {
25489
+ return this.colors(ChartColorSelector.GetColors(palletes), backgroundTransparency !== null && backgroundTransparency !== void 0 ? backgroundTransparency : 'ff');
25490
+ };
25491
+ LinearChartBuilder.prototype.colors = function (colors, backgroundTransparency) {
25492
+ if (backgroundTransparency === void 0) { backgroundTransparency = 'ff'; }
25493
+ return this;
25494
+ };
25495
+ LinearChartBuilder.prototype.withXAxis = function (axisId) {
25496
+ return this.withAxis(axisId);
25497
+ };
25498
+ LinearChartBuilder.prototype.withYAxis = function (axisId) {
25499
+ return this.withAxis(axisId);
25500
+ };
25501
+ LinearChartBuilder.prototype.withAxis = function (axisId) {
25502
+ var axis = null;
25503
+ return new CartesianScaleBuilder(this.that, axis);
25504
+ };
25505
+ // TODO: any é um Point
25506
+ // o nome desse método tem WithExpression pq o typescript não suporte overloads de métodos
25507
+ LinearChartBuilder.prototype.reorderCategoriesWithExpression = function (expression) {
25508
+ return this;
25509
+ };
25510
+ LinearChartBuilder.prototype.reorderCategories = function (orderedCategories) {
25511
+ return this;
25512
+ };
25513
+ LinearChartBuilder.prototype.setColors = function (pallete, indices) {
25514
+ return this;
25515
+ };
25516
+ return LinearChartBuilder;
25517
+ }(BaseChartBuilder));
25518
+
25519
+ var RadialDataBuilder = /** @class */ (function () {
25520
+ function RadialDataBuilder(_builder, type) {
25521
+ this._builder = _builder;
25522
+ this.type = type;
25523
+ }
25524
+ RadialDataBuilder.prototype.appendExtraData = function (converter) {
25525
+ return this;
25526
+ };
25527
+ RadialDataBuilder.prototype.seriesFrom = function (seriesSelector) {
25528
+ return this;
25529
+ };
25530
+ RadialDataBuilder.prototype.maximumSeries = function (value, label) {
25531
+ return this;
25532
+ };
25533
+ RadialDataBuilder.prototype.take = function (value) {
25534
+ return this;
25535
+ };
25536
+ RadialDataBuilder.prototype.valueFrom = function (valueSelector) {
25537
+ return this;
25538
+ };
25539
+ RadialDataBuilder.prototype.roundValues = function (decimalPlaces) {
25540
+ return this;
25541
+ };
25542
+ Object.defineProperty(RadialDataBuilder.prototype, "chart", {
25543
+ get: function () {
25544
+ return this._builder;
25545
+ },
25546
+ enumerable: false,
25547
+ configurable: true
25548
+ });
25549
+ return RadialDataBuilder;
25550
+ }());
25551
+
25552
+ function CreateRadialChart(data) {
25553
+ return new RadialChartBuilder(data);
25554
+ }
25555
+ var RadialChartBuilder = /** @class */ (function (_super) {
25556
+ __extends(RadialChartBuilder, _super);
25557
+ function RadialChartBuilder(originalData) {
25558
+ var _this = _super.call(this, originalData) || this;
25559
+ _this.that = _this;
25560
+ return _this;
25561
+ }
25562
+ RadialChartBuilder.prototype.setValuesRounding = function (decimals) {
25563
+ return this;
25564
+ };
25565
+ RadialChartBuilder.prototype.theme = function (palletes, backgroundTransparency) {
25566
+ return this.colors(ChartColorSelector.GetColors(palletes), backgroundTransparency !== null && backgroundTransparency !== void 0 ? backgroundTransparency : 'ff');
25567
+ };
25568
+ RadialChartBuilder.prototype.colors = function (colors, backgroundTransparency) {
25569
+ if (backgroundTransparency === void 0) { backgroundTransparency = 'ff'; }
25570
+ return this;
25571
+ };
25572
+ RadialChartBuilder.prototype.roundToNearestStorageUnit = function () {
25573
+ return this;
25574
+ };
25575
+ RadialChartBuilder.prototype.prepareData = function (type) {
25576
+ return new RadialDataBuilder(this, type);
25577
+ };
25578
+ return RadialChartBuilder;
25579
+ }(BaseChartBuilder));
25580
+
25581
+ exports.GroupingType = void 0;
25582
+ (function (GroupingType) {
25583
+ GroupingType[GroupingType["None"] = 0] = "None";
25584
+ GroupingType[GroupingType["Daily"] = 1] = "Daily";
25585
+ GroupingType[GroupingType["Hourly"] = 2] = "Hourly";
25586
+ GroupingType[GroupingType["Weekly"] = 3] = "Weekly";
25587
+ GroupingType[GroupingType["Monthly"] = 4] = "Monthly";
25588
+ GroupingType[GroupingType["Yearly"] = 5] = "Yearly";
25589
+ })(exports.GroupingType || (exports.GroupingType = {}));
25590
+
25591
+ exports.ChartType = void 0;
25592
+ (function (ChartType) {
25593
+ ChartType[ChartType["Empty"] = 0] = "Empty";
25594
+ ChartType[ChartType["Line"] = 1] = "Line";
25595
+ ChartType[ChartType["Bar"] = 2] = "Bar";
25596
+ ChartType[ChartType["Radar"] = 3] = "Radar";
25597
+ ChartType[ChartType["Doughnut"] = 4] = "Doughnut";
25598
+ ChartType[ChartType["PolarArea"] = 5] = "PolarArea";
25599
+ ChartType[ChartType["Bubble"] = 6] = "Bubble";
25600
+ ChartType[ChartType["Pie"] = 7] = "Pie";
25601
+ ChartType[ChartType["StackedBar"] = 8] = "StackedBar";
25602
+ ChartType[ChartType["Mixed"] = 9] = "Mixed";
25603
+ ChartType[ChartType["HorizontalBar"] = 10] = "HorizontalBar";
25604
+ })(exports.ChartType || (exports.ChartType = {}));
25605
+
25606
+ exports.DatasetType = void 0;
25607
+ (function (DatasetType) {
25608
+ DatasetType[DatasetType["Line"] = 0] = "Line";
25609
+ DatasetType[DatasetType["Bar"] = 1] = "Bar";
25610
+ })(exports.DatasetType || (exports.DatasetType = {}));
25611
+
25612
+ exports.ColorPallete = void 0;
25613
+ (function (ColorPallete) {
25614
+ ColorPallete[ColorPallete["Bright1"] = 0] = "Bright1";
25615
+ ColorPallete[ColorPallete["Bright2"] = 1] = "Bright2";
25616
+ ColorPallete[ColorPallete["Bright3"] = 2] = "Bright3";
25617
+ ColorPallete[ColorPallete["Bright4"] = 3] = "Bright4";
25618
+ ColorPallete[ColorPallete["Bright5"] = 4] = "Bright5";
25619
+ ColorPallete[ColorPallete["Spring1"] = 5] = "Spring1";
25620
+ ColorPallete[ColorPallete["Spring2"] = 6] = "Spring2";
25621
+ ColorPallete[ColorPallete["Spring3"] = 7] = "Spring3";
25622
+ ColorPallete[ColorPallete["Spring4"] = 8] = "Spring4";
25623
+ ColorPallete[ColorPallete["Spring5"] = 9] = "Spring5";
25624
+ ColorPallete[ColorPallete["Summer1"] = 10] = "Summer1";
25625
+ ColorPallete[ColorPallete["Summer2"] = 11] = "Summer2";
25626
+ ColorPallete[ColorPallete["Summer3"] = 12] = "Summer3";
25627
+ ColorPallete[ColorPallete["Summer4"] = 13] = "Summer4";
25628
+ ColorPallete[ColorPallete["Summer5"] = 14] = "Summer5";
25629
+ ColorPallete[ColorPallete["Pastel1"] = 15] = "Pastel1";
25630
+ ColorPallete[ColorPallete["Pastel2"] = 16] = "Pastel2";
25631
+ ColorPallete[ColorPallete["Pastel3"] = 17] = "Pastel3";
25632
+ ColorPallete[ColorPallete["Pastel4"] = 18] = "Pastel4";
25633
+ ColorPallete[ColorPallete["Pastel5"] = 19] = "Pastel5";
25634
+ ColorPallete[ColorPallete["Winter1"] = 20] = "Winter1";
25635
+ ColorPallete[ColorPallete["Winter2"] = 21] = "Winter2";
25636
+ ColorPallete[ColorPallete["Winter3"] = 22] = "Winter3";
25637
+ ColorPallete[ColorPallete["Winter4"] = 23] = "Winter4";
25638
+ ColorPallete[ColorPallete["Winter5"] = 24] = "Winter5";
25639
+ ColorPallete[ColorPallete["Gemstone1"] = 25] = "Gemstone1";
25640
+ ColorPallete[ColorPallete["Gemstone2"] = 26] = "Gemstone2";
25641
+ ColorPallete[ColorPallete["Gemstone3"] = 27] = "Gemstone3";
25642
+ ColorPallete[ColorPallete["Gemstone4"] = 28] = "Gemstone4";
25643
+ ColorPallete[ColorPallete["Gemstone5"] = 29] = "Gemstone5";
25644
+ ColorPallete[ColorPallete["Autumn1"] = 30] = "Autumn1";
25645
+ ColorPallete[ColorPallete["Autumn2"] = 31] = "Autumn2";
25646
+ ColorPallete[ColorPallete["Autumn3"] = 32] = "Autumn3";
25647
+ ColorPallete[ColorPallete["Autumn4"] = 33] = "Autumn4";
25648
+ ColorPallete[ColorPallete["Autumn5"] = 34] = "Autumn5";
25649
+ ColorPallete[ColorPallete["Vivid1"] = 35] = "Vivid1";
25650
+ ColorPallete[ColorPallete["Vivid2"] = 36] = "Vivid2";
25651
+ ColorPallete[ColorPallete["Vivid3"] = 37] = "Vivid3";
25652
+ ColorPallete[ColorPallete["Vivid4"] = 38] = "Vivid4";
25653
+ ColorPallete[ColorPallete["Vivid5"] = 39] = "Vivid5";
25654
+ ColorPallete[ColorPallete["Vivid6"] = 40] = "Vivid6";
25655
+ ColorPallete[ColorPallete["General1"] = 41] = "General1";
25656
+ ColorPallete[ColorPallete["General2"] = 42] = "General2";
25657
+ ColorPallete[ColorPallete["General3"] = 43] = "General3";
25658
+ ColorPallete[ColorPallete["General4"] = 44] = "General4";
25659
+ ColorPallete[ColorPallete["General5"] = 45] = "General5";
25660
+ ColorPallete[ColorPallete["General6"] = 46] = "General6";
25661
+ ColorPallete[ColorPallete["General7"] = 47] = "General7";
25662
+ ColorPallete[ColorPallete["General8"] = 48] = "General8";
25663
+ ColorPallete[ColorPallete["Red1"] = 49] = "Red1";
25664
+ ColorPallete[ColorPallete["Red2"] = 50] = "Red2";
25665
+ ColorPallete[ColorPallete["Blue1"] = 51] = "Blue1";
25666
+ ColorPallete[ColorPallete["Blue2"] = 52] = "Blue2";
25667
+ ColorPallete[ColorPallete["Green1"] = 53] = "Green1";
25668
+ ColorPallete[ColorPallete["Green2"] = 54] = "Green2";
25669
+ ColorPallete[ColorPallete["Green3"] = 55] = "Green3";
25670
+ ColorPallete[ColorPallete["Green4"] = 56] = "Green4";
25671
+ ColorPallete[ColorPallete["Yellow1"] = 57] = "Yellow1";
25672
+ ColorPallete[ColorPallete["Pink1"] = 58] = "Pink1";
25673
+ ColorPallete[ColorPallete["Pink2"] = 59] = "Pink2";
25674
+ ColorPallete[ColorPallete["Soft1"] = 60] = "Soft1";
25675
+ ColorPallete[ColorPallete["Soft2"] = 61] = "Soft2";
25676
+ ColorPallete[ColorPallete["Soft3"] = 62] = "Soft3";
25677
+ })(exports.ColorPallete || (exports.ColorPallete = {}));
25678
+
25679
+ exports.AxisPosition = void 0;
25680
+ (function (AxisPosition) {
25681
+ AxisPosition[AxisPosition["Left"] = 0] = "Left";
25682
+ AxisPosition[AxisPosition["Right"] = 1] = "Right";
25683
+ AxisPosition[AxisPosition["Bottom"] = 2] = "Bottom";
25684
+ AxisPosition[AxisPosition["Top"] = 3] = "Top";
25685
+ AxisPosition[AxisPosition["Center"] = 4] = "Center";
25686
+ })(exports.AxisPosition || (exports.AxisPosition = {}));
25687
+
25688
+ exports.AxisOverflowType = void 0;
25689
+ (function (AxisOverflowType) {
25690
+ AxisOverflowType[AxisOverflowType["Relative"] = 0] = "Relative";
25691
+ AxisOverflowType[AxisOverflowType["Absolute"] = 1] = "Absolute";
25692
+ })(exports.AxisOverflowType || (exports.AxisOverflowType = {}));
25693
+
25694
+ exports.AxisOverflowDirection = void 0;
25695
+ (function (AxisOverflowDirection) {
25696
+ AxisOverflowDirection[AxisOverflowDirection["Bottom"] = 0] = "Bottom";
25697
+ AxisOverflowDirection[AxisOverflowDirection["Top"] = 1] = "Top";
25698
+ AxisOverflowDirection[AxisOverflowDirection["Both"] = 2] = "Both";
25699
+ })(exports.AxisOverflowDirection || (exports.AxisOverflowDirection = {}));
25700
+
25701
+ // --------------------
25702
+
24977
25703
  /*
24978
25704
  * Public API Surface of ngx-smz-ui
24979
25705
  */
@@ -25006,6 +25732,8 @@
25006
25732
  exports.ClonePipe = ClonePipe;
25007
25733
  exports.ColorPickerComponent = ColorPickerComponent;
25008
25734
  exports.Confirmable = Confirmable;
25735
+ exports.CreateLinearChart = CreateLinearChart;
25736
+ exports.CreateRadialChart = CreateRadialChart;
25009
25737
  exports.CustomError = CustomError;
25010
25738
  exports.DATABASE_REQUIRED_ACTIONS = DATABASE_REQUIRED_ACTIONS;
25011
25739
  exports.DATABASE_STATES = DATABASE_STATES;
@@ -25055,6 +25783,7 @@
25055
25783
  exports.IsVisiblePipeModule = IsVisiblePipeModule;
25056
25784
  exports.LOADING_BEHAVIOR_HEADER = LOADING_BEHAVIOR_HEADER;
25057
25785
  exports.LOCAL_LOADING_TAG_HEADER = LOCAL_LOADING_TAG_HEADER;
25786
+ exports.LinearChartBuilder = LinearChartBuilder;
25058
25787
  exports.LinkedDropdownComponent = LinkedDropdownComponent;
25059
25788
  exports.LinkedMultiSelectComponent = LinkedMultiSelectComponent;
25060
25789
  exports.MenuHelperService = MenuHelperService;
@@ -25082,9 +25811,12 @@
25082
25811
  exports.NgxSmzUiComponent = NgxSmzUiComponent;
25083
25812
  exports.NgxSmzUiModule = NgxSmzUiModule;
25084
25813
  exports.NgxSmzViewportModule = NgxSmzViewportModule;
25814
+ exports.PrettyJsonPipe = PrettyJsonPipe;
25815
+ exports.PrettyJsonPipeModule = PrettyJsonPipeModule;
25085
25816
  exports.PrimeConfigService = PrimeConfigService;
25086
25817
  exports.REFRESH_TOKEN_BEHAVIOR_HEADER = REFRESH_TOKEN_BEHAVIOR_HEADER;
25087
25818
  exports.RESTORE_STATE_ON_ERROR_HEADER = RESTORE_STATE_ON_ERROR_HEADER;
25819
+ exports.RadialChartBuilder = RadialChartBuilder;
25088
25820
  exports.RadioButtonComponent = RadioButtonComponent;
25089
25821
  exports.RbkAccessControlModule = RbkAccessControlModule;
25090
25822
  exports.RbkAuthGuard = RbkAuthGuard;