ngx-smz-ui 3.6.7 → 3.7.1

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 (57) hide show
  1. package/bundles/ngx-smz-ui.umd.js +740 -14
  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-dialogs/smz-dialogs.module.js +4 -3
  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 +664 -12
  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/package.json +1 -1
  57. 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
 
@@ -8089,18 +8089,17 @@
8089
8089
  context.columns.forEach(function (col) {
8090
8090
  var _a, _b, _c;
8091
8091
  var columnItems = samples.map(function (x) { return x[col.field]; }).filter(function (x) { return x != null; });
8092
- 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);
8093
- // if (col.field === 'service') {
8094
- // console.log(`${col.field} => ${estimativeWidth}`);
8095
- // }
8096
- 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
+ }
8097
8096
  var visibleColumnsIndex = (_b = context.visibleColumns) === null || _b === void 0 ? void 0 : _b.findIndex(function (x) { return x.field === col.field; });
8098
8097
  if (visibleColumnsIndex >= 0) {
8099
- context.visibleColumns[visibleColumnsIndex].width = estimativeWidth;
8098
+ context.visibleColumns[visibleColumnsIndex].width = width;
8100
8099
  }
8101
8100
  var frozenColumnsIndex = (_c = context.frozenColumns) === null || _c === void 0 ? void 0 : _c.findIndex(function (x) { return x.field === col.field; });
8102
8101
  if (frozenColumnsIndex >= 0) {
8103
- context.frozenColumns[frozenColumnsIndex].width = estimativeWidth;
8102
+ context.frozenColumns[frozenColumnsIndex].width = width;
8104
8103
  }
8105
8104
  });
8106
8105
  // console.log('estimated', context.columns.map(x => `${x.field} => ${x.width}`));
@@ -8150,7 +8149,7 @@
8150
8149
  else if (x != null && isSimpleNamedEntity(x)) {
8151
8150
  return x.name.trim();
8152
8151
  }
8153
- 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();
8154
8153
  })
8155
8154
  .map(function (x) {
8156
8155
  var _a, _b;
@@ -10839,7 +10838,7 @@
10839
10838
  SafeContentPipeModule,
10840
10839
  NgxSmzTablesModule,
10841
10840
  NgxSmzDocumentsModule] });
10842
- NgxSmzDialogsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: NgxSmzDialogsModule, providers: [SmzDynamicDialogConfig, DynamicDialogConfig, DynamicDialogRef], imports: [[
10841
+ NgxSmzDialogsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.5", ngImport: i0__namespace, type: NgxSmzDialogsModule, providers: [SmzDynamicDialogConfig, DynamicDialogConfig, DynamicDialogRef, i1$6.ContextMenuService], imports: [[
10843
10842
  i1$1.CommonModule,
10844
10843
  i1.ReactiveFormsModule,
10845
10844
  dialog.DialogModule,
@@ -10902,7 +10901,7 @@
10902
10901
  NgxSmzDocumentsModule
10903
10902
  ],
10904
10903
  entryComponents: [DialogContentManagerComponent, MessageContentComponent, HtmlContentComponent, DialogFooterComponent, TableContentComponent, DocumentContentComponent],
10905
- providers: [SmzDynamicDialogConfig, DynamicDialogConfig, DynamicDialogRef],
10904
+ providers: [SmzDynamicDialogConfig, DynamicDialogConfig, DynamicDialogRef, i1$6.ContextMenuService],
10906
10905
  }]
10907
10906
  }], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; } });
10908
10907
 
@@ -22674,6 +22673,42 @@
22674
22673
  return result;
22675
22674
  }
22676
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(' ', ' ')
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
+
22677
22712
  var BreadcrumbService = /** @class */ (function () {
22678
22713
  function BreadcrumbService() {
22679
22714
  this.itemsSource = new rxjs.Subject();
@@ -24975,6 +25010,691 @@
24975
25010
  return SmzMenuItemBuilder;
24976
25011
  }());
24977
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
+
24978
25698
  /*
24979
25699
  * Public API Surface of ngx-smz-ui
24980
25700
  */
@@ -25007,6 +25727,8 @@
25007
25727
  exports.ClonePipe = ClonePipe;
25008
25728
  exports.ColorPickerComponent = ColorPickerComponent;
25009
25729
  exports.Confirmable = Confirmable;
25730
+ exports.CreateLinearChart = CreateLinearChart;
25731
+ exports.CreateRadialChart = CreateRadialChart;
25010
25732
  exports.CustomError = CustomError;
25011
25733
  exports.DATABASE_REQUIRED_ACTIONS = DATABASE_REQUIRED_ACTIONS;
25012
25734
  exports.DATABASE_STATES = DATABASE_STATES;
@@ -25056,6 +25778,7 @@
25056
25778
  exports.IsVisiblePipeModule = IsVisiblePipeModule;
25057
25779
  exports.LOADING_BEHAVIOR_HEADER = LOADING_BEHAVIOR_HEADER;
25058
25780
  exports.LOCAL_LOADING_TAG_HEADER = LOCAL_LOADING_TAG_HEADER;
25781
+ exports.LinearChartBuilder = LinearChartBuilder;
25059
25782
  exports.LinkedDropdownComponent = LinkedDropdownComponent;
25060
25783
  exports.LinkedMultiSelectComponent = LinkedMultiSelectComponent;
25061
25784
  exports.MenuHelperService = MenuHelperService;
@@ -25083,9 +25806,12 @@
25083
25806
  exports.NgxSmzUiComponent = NgxSmzUiComponent;
25084
25807
  exports.NgxSmzUiModule = NgxSmzUiModule;
25085
25808
  exports.NgxSmzViewportModule = NgxSmzViewportModule;
25809
+ exports.PrettyJsonPipe = PrettyJsonPipe;
25810
+ exports.PrettyJsonPipeModule = PrettyJsonPipeModule;
25086
25811
  exports.PrimeConfigService = PrimeConfigService;
25087
25812
  exports.REFRESH_TOKEN_BEHAVIOR_HEADER = REFRESH_TOKEN_BEHAVIOR_HEADER;
25088
25813
  exports.RESTORE_STATE_ON_ERROR_HEADER = RESTORE_STATE_ON_ERROR_HEADER;
25814
+ exports.RadialChartBuilder = RadialChartBuilder;
25089
25815
  exports.RadioButtonComponent = RadioButtonComponent;
25090
25816
  exports.RbkAccessControlModule = RbkAccessControlModule;
25091
25817
  exports.RbkAuthGuard = RbkAuthGuard;