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