@sme.up/ketchup 5.0.0 → 5.1.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.
- package/README.md +1 -1
- package/dist/cjs/{cell-utils-720be0c8.js → cell-utils-5b16c180.js} +4 -4
- package/dist/cjs/{f-button-dbf3cd3a.js → f-button-3b9f32af.js} +2 -2
- package/dist/cjs/{f-cell-93d984ad.js → f-cell-c6ad973a.js} +6 -6
- package/dist/cjs/{f-chip-438213eb.js → f-chip-bed86c4a.js} +3 -3
- package/dist/cjs/{f-image-21865ab7.js → f-image-08a3d340.js} +2 -2
- package/dist/cjs/{index-ab119fad.js → index-8d7bb3be.js} +4 -1
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +412 -353
- package/dist/cjs/kup-calendar.cjs.entry.js +8 -8
- package/dist/cjs/kup-cell.cjs.entry.js +8 -8
- package/dist/cjs/kup-dash-list.cjs.entry.js +5 -5
- package/dist/cjs/kup-dash_2.cjs.entry.js +5 -5
- package/dist/cjs/kup-drawer.cjs.entry.js +8 -5
- package/dist/cjs/kup-echart.cjs.entry.js +210 -60
- package/dist/cjs/kup-field.cjs.entry.js +3 -3
- package/dist/cjs/kup-iframe.cjs.entry.js +4 -4
- package/dist/cjs/kup-lazy.cjs.entry.js +4 -4
- package/dist/cjs/kup-magic-box.cjs.entry.js +7 -7
- package/dist/cjs/{kup-manager-09c0c1fc.js → kup-manager-4227f0a2.js} +2804 -2598
- package/dist/cjs/kup-nav-bar.cjs.entry.js +6 -6
- package/dist/cjs/kup-photo-frame.cjs.entry.js +179 -0
- package/dist/cjs/kup-probe.cjs.entry.js +3 -3
- package/dist/cjs/kup-qlik.cjs.entry.js +3 -3
- package/dist/cjs/kup-snackbar.cjs.entry.js +7 -7
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{utils-a60ab5fa.js → utils-b9df398c.js} +4 -38
- package/dist/collection/assets/card.js +30 -30
- package/dist/collection/assets/data-table.js +24 -30
- package/dist/collection/assets/echart.js +481 -0
- package/dist/collection/assets/index.js +79 -79
- package/dist/collection/assets/kupdata.js +29 -41
- package/dist/collection/assets/list.js +6 -6
- package/dist/collection/assets/nav-bar.js +4 -4
- package/dist/collection/assets/probe.js +18 -18
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +5 -5
- package/dist/collection/components/kup-box/kup-box.js +9 -9
- package/dist/collection/components/kup-button-list/kup-button-list.js +4 -4
- package/dist/collection/components/kup-card/built-in/kup-card-clock.js +1 -1
- package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +21 -22
- package/dist/collection/components/kup-card/kup-card.js +1 -2
- package/dist/collection/components/kup-chip/kup-chip.js +4 -4
- package/dist/collection/components/kup-combobox/kup-combobox.js +6 -6
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +0 -2
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +31 -32
- package/dist/collection/components/kup-data-table/kup-data-table.js +124 -164
- package/dist/collection/components/kup-drawer/kup-drawer.js +4 -1
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +3 -3
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +14 -14
- package/dist/collection/components/kup-echart/kup-echart-declarations.js +3 -0
- package/dist/collection/components/kup-echart/kup-echart.js +246 -58
- package/dist/collection/components/kup-image/assets/svg/instagram.svg +1 -0
- package/dist/collection/components/kup-image/assets/svg/pinterest.svg +1 -0
- package/dist/collection/components/kup-image/assets/svg/reddit.svg +1 -0
- package/dist/collection/components/kup-list/kup-list-helper.js +26 -26
- package/dist/collection/components/kup-list/kup-list.css +35 -3
- package/dist/collection/components/kup-list/kup-list.js +52 -44
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +2 -2
- package/dist/collection/components/kup-photo-frame/kup-photo-frame-declarations.js +10 -0
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +70 -0
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +382 -0
- package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -0
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +1 -1
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +10 -10
- package/dist/collection/components/kup-tree/kup-tree.js +100 -51
- package/dist/collection/f-components/f-paginator/f-paginator.js +6 -6
- package/dist/collection/managers/kup-data/kup-data-cell-helper.js +2 -2
- package/dist/collection/managers/kup-data/kup-data-column-helper.js +27 -3
- package/dist/collection/managers/kup-data/kup-data-declarations.js +2 -1
- package/dist/collection/managers/kup-data/kup-data-node-helper.js +1 -1
- package/dist/collection/managers/kup-data/kup-data-row-helper.js +2 -2
- package/dist/collection/managers/kup-data/kup-data.js +337 -155
- package/dist/collection/managers/kup-dates/kup-dates.js +2 -2
- package/dist/collection/managers/kup-debug/kup-debug.js +6 -6
- package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +1 -1
- package/dist/collection/managers/kup-language/kup-language.js +2 -2
- package/dist/collection/managers/kup-manager/kup-manager.js +13 -0
- package/dist/collection/managers/kup-math/kup-math-declarations.js +13 -0
- package/dist/collection/managers/kup-math/kup-math-helper.js +39 -0
- package/dist/collection/managers/kup-math/kup-math.js +151 -0
- package/dist/collection/managers/kup-objects/kup-objects.js +48 -1
- package/dist/collection/managers/kup-theme/kup-theme.js +2 -2
- package/dist/collection/utils/cell-utils.js +2 -3
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +1 -1
- package/dist/collection/utils/utils.js +3 -74
- package/dist/esm/{cell-utils-b80ccb8c.js → cell-utils-69f75e2e.js} +4 -4
- package/dist/esm/{f-button-9e835467.js → f-button-7e7607d8.js} +2 -2
- package/dist/esm/{f-cell-f8bb2e04.js → f-cell-e4d83c27.js} +6 -6
- package/dist/esm/{f-chip-953c6915.js → f-chip-51dfefaf.js} +3 -3
- package/dist/esm/{f-image-78c5265e.js → f-image-de331954.js} +2 -2
- package/dist/esm/{index-78f3699d.js → index-aeec9835.js} +4 -1
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +5 -5
- package/dist/esm/kup-autocomplete_27.entry.js +412 -353
- package/dist/esm/kup-calendar.entry.js +8 -8
- package/dist/esm/kup-cell.entry.js +8 -8
- package/dist/esm/kup-dash-list.entry.js +5 -5
- package/dist/esm/kup-dash_2.entry.js +5 -5
- package/dist/esm/kup-drawer.entry.js +8 -5
- package/dist/esm/kup-echart.entry.js +210 -60
- package/dist/esm/kup-field.entry.js +3 -3
- package/dist/esm/kup-iframe.entry.js +4 -4
- package/dist/esm/kup-lazy.entry.js +4 -4
- package/dist/esm/kup-magic-box.entry.js +7 -7
- package/dist/esm/{kup-manager-bba62291.js → kup-manager-0ab94726.js} +2805 -2598
- package/dist/esm/kup-nav-bar.entry.js +6 -6
- package/dist/esm/kup-photo-frame.entry.js +175 -0
- package/dist/esm/kup-probe.entry.js +3 -3
- package/dist/esm/kup-qlik.entry.js +3 -3
- package/dist/esm/kup-snackbar.entry.js +7 -7
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-d1569956.js → utils-35c7a90d.js} +5 -37
- package/dist/ketchup/assets/svg/instagram.svg +1 -0
- package/dist/ketchup/assets/svg/pinterest.svg +1 -0
- package/dist/ketchup/assets/svg/reddit.svg +1 -0
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-0751aaf6.entry.js +1 -0
- package/dist/ketchup/p-10c8d755.js +1 -0
- package/dist/ketchup/{p-aa27f9f7.entry.js → p-24df4f29.entry.js} +2 -2
- package/dist/ketchup/{p-29800a2e.js → p-2d4f19f4.js} +1 -1
- package/dist/ketchup/p-33073f4a.js +1 -0
- package/dist/ketchup/p-3445be1e.entry.js +1 -0
- package/dist/ketchup/p-3813281b.entry.js +1 -0
- package/dist/ketchup/p-4081f5f7.entry.js +1 -0
- package/dist/ketchup/p-47b57d97.js +1 -0
- package/dist/ketchup/p-5186885c.entry.js +1 -0
- package/dist/ketchup/{p-f993f813.js → p-5d190cf5.js} +1 -1
- package/dist/ketchup/p-67c64257.entry.js +1 -0
- package/dist/ketchup/p-68fc1428.entry.js +1 -0
- package/dist/ketchup/p-8be1337b.js +1 -0
- package/dist/ketchup/p-8f735633.entry.js +1 -0
- package/dist/ketchup/p-96101f09.entry.js +39 -0
- package/dist/ketchup/p-9bcda66f.entry.js +1 -0
- package/dist/ketchup/p-b5e1dbfa.entry.js +1 -0
- package/dist/ketchup/{p-ebf4cf56.js → p-c314b1e6.js} +1 -1
- package/dist/ketchup/p-d7af8156.entry.js +1 -0
- package/dist/ketchup/p-dbe87a3f.entry.js +143 -0
- package/dist/ketchup/p-ee33cbe9.js +9 -0
- package/dist/ketchup/p-f250d42b.entry.js +1 -0
- package/dist/ketchup/p-f9c41e20.entry.js +1 -0
- package/dist/ketchup/p-fea316ab.entry.js +1 -0
- package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +2 -1
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +0 -2
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +8 -15
- package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +1 -1
- package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +3 -0
- package/dist/types/components/kup-echart/kup-echart.d.ts +12 -1
- package/dist/types/components/kup-list/kup-list-declarations.d.ts +3 -7
- package/dist/types/components/kup-list/kup-list-helper.d.ts +6 -6
- package/dist/types/components/kup-list/kup-list.d.ts +2 -2
- package/dist/types/components/kup-photo-frame/kup-photo-frame-declarations.d.ts +9 -0
- package/dist/types/components/kup-photo-frame/kup-photo-frame.d.ts +61 -0
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +1 -1
- package/dist/types/components/kup-tree/kup-tree.d.ts +1 -1
- package/dist/types/components.d.ts +110 -28
- package/dist/types/managers/kup-data/kup-data-column-helper.d.ts +9 -1
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +4 -25
- package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +1 -1
- package/dist/types/managers/kup-data/kup-data.d.ts +63 -27
- package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +11 -0
- package/dist/types/managers/kup-manager/kup-manager.d.ts +2 -0
- package/dist/types/managers/kup-math/kup-math-declarations.d.ts +21 -0
- package/dist/types/managers/kup-math/kup-math-helper.d.ts +17 -0
- package/dist/types/managers/kup-math/kup-math.d.ts +60 -0
- package/dist/types/managers/kup-objects/kup-objects.d.ts +22 -0
- package/dist/types/utils/utils.d.ts +0 -18
- package/package.json +2 -2
- package/dist/collection/managers/kup-data/kup-data-dataset-helper.js +0 -262
- package/dist/collection/managers/kup-data/kup-data-helper.js +0 -61
- package/dist/collection/utils/state-utils.js +0 -9
- package/dist/ketchup/p-0032a782.entry.js +0 -1
- package/dist/ketchup/p-18c4d083.entry.js +0 -1
- package/dist/ketchup/p-199c972e.entry.js +0 -1
- package/dist/ketchup/p-34aa8d8a.entry.js +0 -1
- package/dist/ketchup/p-542279e9.entry.js +0 -1
- package/dist/ketchup/p-5b26a7a8.entry.js +0 -39
- package/dist/ketchup/p-5c97e7ab.js +0 -1
- package/dist/ketchup/p-6817ca85.entry.js +0 -1
- package/dist/ketchup/p-76e674ca.entry.js +0 -1
- package/dist/ketchup/p-78aa6f1b.js +0 -1
- package/dist/ketchup/p-842b66aa.entry.js +0 -1
- package/dist/ketchup/p-894981c0.entry.js +0 -143
- package/dist/ketchup/p-8ac2fa75.entry.js +0 -1
- package/dist/ketchup/p-907c9e11.entry.js +0 -1
- package/dist/ketchup/p-9ae9149b.entry.js +0 -1
- package/dist/ketchup/p-b0d1bdd8.js +0 -9
- package/dist/ketchup/p-e1e4c951.entry.js +0 -1
- package/dist/ketchup/p-eba369d9.entry.js +0 -1
- package/dist/ketchup/p-ed0b8666.js +0 -1
- package/dist/ketchup/p-fa540f82.js +0 -1
- package/dist/types/managers/kup-data/kup-data-dataset-helper.d.ts +0 -42
- package/dist/types/managers/kup-data/kup-data-helper.d.ts +0 -11
- package/dist/types/utils/state-utils.d.ts +0 -1
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
7
|
-
const utils = require('./utils-
|
|
5
|
+
const index = require('./index-8d7bb3be.js');
|
|
6
|
+
const kupManager = require('./kup-manager-4227f0a2.js');
|
|
7
|
+
const utils = require('./utils-b9df398c.js');
|
|
8
8
|
const GenericVariables = require('./GenericVariables-a9ed17ee.js');
|
|
9
|
-
const cellUtils = require('./cell-utils-
|
|
9
|
+
const cellUtils = require('./cell-utils-5b16c180.js');
|
|
10
10
|
|
|
11
11
|
/*! *****************************************************************************
|
|
12
12
|
Copyright (c) Microsoft Corporation.
|
|
@@ -92241,6 +92241,8 @@ var KupEchartProps;
|
|
|
92241
92241
|
(function (KupEchartProps) {
|
|
92242
92242
|
KupEchartProps["axis"] = "Sets the axis of the chart.";
|
|
92243
92243
|
KupEchartProps["chartTitle"] = "Title of the graph.";
|
|
92244
|
+
KupEchartProps["colors"] = "Overrides theme's colors.";
|
|
92245
|
+
KupEchartProps["consistencyCheck"] = "When true, performs checks in order to properly initialize props which could be missing (i.e.: axis). For performances purposes, this prop will run only once when the component is initially created.";
|
|
92244
92246
|
KupEchartProps["customStyle"] = "Custom style of the component.";
|
|
92245
92247
|
KupEchartProps["data"] = "The actual data of the chart.";
|
|
92246
92248
|
KupEchartProps["legend"] = "Sets the position of the legend. Supported values: bottom, left, right, top. Keep in mind that legend types are tied to chart types, some combinations might not work.";
|
|
@@ -92256,6 +92258,7 @@ var KupEchartLegendPlacement;
|
|
|
92256
92258
|
(function (KupEchartLegendPlacement) {
|
|
92257
92259
|
KupEchartLegendPlacement["BOTTOM"] = "bottom";
|
|
92258
92260
|
KupEchartLegendPlacement["LEFT"] = "left";
|
|
92261
|
+
KupEchartLegendPlacement["HIDDEN"] = "hidden";
|
|
92259
92262
|
KupEchartLegendPlacement["RIGHT"] = "right";
|
|
92260
92263
|
KupEchartLegendPlacement["TOP"] = "top";
|
|
92261
92264
|
})(KupEchartLegendPlacement || (KupEchartLegendPlacement = {}));
|
|
@@ -92297,8 +92300,8 @@ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) ||
|
|
|
92297
92300
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
92298
92301
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
92299
92302
|
};
|
|
92300
|
-
var _KupEchart_instances,
|
|
92301
|
-
|
|
92303
|
+
var _KupEchart_instances, _KupEchart_chartContainer, _KupEchart_chartEl, _KupEchart_gaussianDatasets, _KupEchart_kupManager, _KupEchart_mapObj, _KupEchart_resizeTimeout, _KupEchart_sortedDataset, _KupEchart_themeBorder, _KupEchart_themeBackground, _KupEchart_computedColors, _KupEchart_minColorHeatMap, _KupEchart_maxColorHeatMap, _KupEchart_themeFont, _KupEchart_themeText, _KupEchart_initChart, _KupEchart_createChart, _KupEchart_createX, _KupEchart_createY, _KupEchart_setAxisColors, _KupEchart_setLegend, _KupEchart_setTitle, _KupEchart_setTooltip, _KupEchart_setVisualMap, _KupEchart_setMapOptions, _KupEchart_setPieOptions, _KupEchart_setGaussianOptions, _KupEchart_addSeries, _KupEchart_setOptions, _KupEchart_fetchcomputedColors, _KupEchart_checks;
|
|
92304
|
+
const KupEchart = class {
|
|
92302
92305
|
constructor(hostRef) {
|
|
92303
92306
|
index.registerInstance(this, hostRef);
|
|
92304
92307
|
this.kupEchartClick = index.createEvent(this, "kup-echart-click", 6);
|
|
@@ -92311,6 +92314,17 @@ let KupEchart = class {
|
|
|
92311
92314
|
* @default ""
|
|
92312
92315
|
*/
|
|
92313
92316
|
this.axis = '';
|
|
92317
|
+
/**
|
|
92318
|
+
* Overrides theme's colors.
|
|
92319
|
+
* @default []
|
|
92320
|
+
*/
|
|
92321
|
+
this.colors = [];
|
|
92322
|
+
/**
|
|
92323
|
+
* When true, performs checks in order to properly initialize props which could be missing (i.e.: axis).
|
|
92324
|
+
* For performances purposes, this prop will run only once when the component is initially created.
|
|
92325
|
+
* @default false
|
|
92326
|
+
*/
|
|
92327
|
+
this.consistencyCheck = false;
|
|
92314
92328
|
/**
|
|
92315
92329
|
* Title of the graph.
|
|
92316
92330
|
* @default null
|
|
@@ -92328,7 +92342,7 @@ let KupEchart = class {
|
|
|
92328
92342
|
*/
|
|
92329
92343
|
this.data = null;
|
|
92330
92344
|
/**
|
|
92331
|
-
* Sets the position of the legend. Supported values: bottom, left, right, top. Keep in mind that legend types are tied to chart types, some combinations might not work.
|
|
92345
|
+
* Sets the position of the legend. Supported values: bottom, left, right, top, hidden. Keep in mind that legend types are tied to chart types, some combinations might not work.
|
|
92332
92346
|
* @default KupEchartLegendPlacement.RIGHT
|
|
92333
92347
|
*/
|
|
92334
92348
|
this.legend = KupEchartLegendPlacement.RIGHT;
|
|
@@ -92370,20 +92384,20 @@ let KupEchart = class {
|
|
|
92370
92384
|
/*-------------------------------------------------*/
|
|
92371
92385
|
/* I n t e r n a l V a r i a b l e s */
|
|
92372
92386
|
/*-------------------------------------------------*/
|
|
92373
|
-
_KupEchart_kupManager.set(this, kupManager.kupManagerInstance());
|
|
92374
|
-
_KupEchart_resizeTimeout.set(this, void 0);
|
|
92375
92387
|
_KupEchart_chartContainer.set(this, void 0);
|
|
92376
92388
|
_KupEchart_chartEl.set(this, void 0);
|
|
92377
92389
|
_KupEchart_gaussianDatasets.set(this, void 0);
|
|
92390
|
+
_KupEchart_kupManager.set(this, kupManager.kupManagerInstance());
|
|
92391
|
+
_KupEchart_mapObj.set(this, {});
|
|
92392
|
+
_KupEchart_resizeTimeout.set(this, void 0);
|
|
92378
92393
|
_KupEchart_sortedDataset.set(this, null);
|
|
92379
92394
|
_KupEchart_themeBorder.set(this, null);
|
|
92380
92395
|
_KupEchart_themeBackground.set(this, null);
|
|
92381
|
-
|
|
92382
|
-
|
|
92383
|
-
|
|
92396
|
+
_KupEchart_computedColors.set(this, null);
|
|
92397
|
+
_KupEchart_minColorHeatMap.set(this, null);
|
|
92398
|
+
_KupEchart_maxColorHeatMap.set(this, null);
|
|
92384
92399
|
_KupEchart_themeFont.set(this, null);
|
|
92385
92400
|
_KupEchart_themeText.set(this, null);
|
|
92386
|
-
_KupEchart_mapObj.set(this, {});
|
|
92387
92401
|
}
|
|
92388
92402
|
/*-------------------------------------------------*/
|
|
92389
92403
|
/* P u b l i c M e t h o d s */
|
|
@@ -92407,7 +92421,19 @@ let KupEchart = class {
|
|
|
92407
92421
|
*/
|
|
92408
92422
|
async resizeCallback() {
|
|
92409
92423
|
window.clearTimeout(__classPrivateFieldGet(this, _KupEchart_resizeTimeout, "f"));
|
|
92410
|
-
__classPrivateFieldSet(this, _KupEchart_resizeTimeout, window.setTimeout(() =>
|
|
92424
|
+
__classPrivateFieldSet(this, _KupEchart_resizeTimeout, window.setTimeout(() => {
|
|
92425
|
+
if (__classPrivateFieldGet(this, _KupEchart_chartEl, "f")) {
|
|
92426
|
+
const xMin = this.rootElement.clientWidth - 5;
|
|
92427
|
+
const xMax = this.rootElement.clientWidth + 5;
|
|
92428
|
+
const yMin = this.rootElement.clientHeight - 5;
|
|
92429
|
+
const yMax = this.rootElement.clientHeight + 5;
|
|
92430
|
+
const x = __classPrivateFieldGet(this, _KupEchart_chartEl, "f").getWidth();
|
|
92431
|
+
const y = __classPrivateFieldGet(this, _KupEchart_chartEl, "f").getHeight();
|
|
92432
|
+
if (x < xMin || x > xMax || y < yMin || y > yMax) {
|
|
92433
|
+
__classPrivateFieldGet(this, _KupEchart_chartEl, "f").resize();
|
|
92434
|
+
}
|
|
92435
|
+
}
|
|
92436
|
+
}, 300), "f");
|
|
92411
92437
|
}
|
|
92412
92438
|
/**
|
|
92413
92439
|
* Sets the props to the component.
|
|
@@ -92422,6 +92448,9 @@ let KupEchart = class {
|
|
|
92422
92448
|
componentWillLoad() {
|
|
92423
92449
|
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logLoad(this, false);
|
|
92424
92450
|
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.register(this);
|
|
92451
|
+
if (this.consistencyCheck) {
|
|
92452
|
+
__classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_checks).call(this);
|
|
92453
|
+
}
|
|
92425
92454
|
}
|
|
92426
92455
|
componentDidLoad() {
|
|
92427
92456
|
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").resize.observe(this.rootElement);
|
|
@@ -92429,7 +92458,7 @@ let KupEchart = class {
|
|
|
92429
92458
|
}
|
|
92430
92459
|
componentWillRender() {
|
|
92431
92460
|
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logRender(this, false);
|
|
92432
|
-
__classPrivateFieldGet(this, _KupEchart_instances, "m",
|
|
92461
|
+
__classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_fetchcomputedColors).call(this);
|
|
92433
92462
|
}
|
|
92434
92463
|
componentDidRender() {
|
|
92435
92464
|
if (this.data && this.data.columns && this.data.rows) {
|
|
@@ -92454,7 +92483,7 @@ let KupEchart = class {
|
|
|
92454
92483
|
static get assetsDirs() { return ["assets/maps"]; }
|
|
92455
92484
|
get rootElement() { return index.getElement(this); }
|
|
92456
92485
|
};
|
|
92457
|
-
|
|
92486
|
+
_KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _KupEchart_gaussianDatasets = new WeakMap(), _KupEchart_kupManager = new WeakMap(), _KupEchart_mapObj = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(), _KupEchart_sortedDataset = new WeakMap(), _KupEchart_themeBorder = new WeakMap(), _KupEchart_themeBackground = new WeakMap(), _KupEchart_computedColors = new WeakMap(), _KupEchart_minColorHeatMap = new WeakMap(), _KupEchart_maxColorHeatMap = new WeakMap(), _KupEchart_themeFont = new WeakMap(), _KupEchart_themeText = new WeakMap(), _KupEchart_instances = new WeakSet(), _KupEchart_initChart = function _KupEchart_initChart() {
|
|
92458
92487
|
if (__classPrivateFieldGet(this, _KupEchart_chartEl, "f")) {
|
|
92459
92488
|
dispose(__classPrivateFieldGet(this, _KupEchart_chartContainer, "f"));
|
|
92460
92489
|
}
|
|
@@ -92467,18 +92496,6 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92467
92496
|
}
|
|
92468
92497
|
}, _KupEchart_createChart = async function _KupEchart_createChart() {
|
|
92469
92498
|
__classPrivateFieldSet(this, _KupEchart_sortedDataset, null, "f");
|
|
92470
|
-
if (!this.types.includes(KupEchartTypes.GAUSSIAN) &&
|
|
92471
|
-
(!this.axis ||
|
|
92472
|
-
!__classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.datasetOperations.column.find(this.data, { name: this.axis }).length)) {
|
|
92473
|
-
for (let index = 0; index < this.data.columns.length; index++) {
|
|
92474
|
-
const column = this.data.columns[index];
|
|
92475
|
-
if (!__classPrivateFieldGet(this, _KupEchart_kupManager, "f").objects.isNumber(column.obj)) {
|
|
92476
|
-
this.axis = column.name;
|
|
92477
|
-
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logMessage(this, 'Axis overridden. (' + this.axis + ')', kupManager.KupDebugCategory.WARNING);
|
|
92478
|
-
break;
|
|
92479
|
-
}
|
|
92480
|
-
}
|
|
92481
|
-
}
|
|
92482
92499
|
let options = null;
|
|
92483
92500
|
const firstType = this.types[0];
|
|
92484
92501
|
switch (firstType) {
|
|
@@ -92514,12 +92531,14 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92514
92531
|
}
|
|
92515
92532
|
__classPrivateFieldGet(this, _KupEchart_chartEl, "f").setOption(options, true);
|
|
92516
92533
|
__classPrivateFieldGet(this, _KupEchart_chartEl, "f").on('click', (e) => {
|
|
92517
|
-
const column = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.
|
|
92534
|
+
const column = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
92518
92535
|
title: e.seriesName,
|
|
92519
92536
|
})[0];
|
|
92520
92537
|
let row = null;
|
|
92521
92538
|
if (e.seriesType === 'map') {
|
|
92522
|
-
row = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.
|
|
92539
|
+
row = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.row.find(this.data, {
|
|
92540
|
+
value: __classPrivateFieldGet(this, _KupEchart_mapObj, "f")[e.name],
|
|
92541
|
+
})[0];
|
|
92523
92542
|
}
|
|
92524
92543
|
else if (__classPrivateFieldGet(this, _KupEchart_sortedDataset, "f") && e.seriesType === 'bar') {
|
|
92525
92544
|
row = __classPrivateFieldGet(this, _KupEchart_sortedDataset, "f").rows[e.dataIndex];
|
|
@@ -92616,6 +92635,9 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92616
92635
|
splitLine: { lineStyle: { color: __classPrivateFieldGet(this, _KupEchart_themeBorder, "f") } },
|
|
92617
92636
|
};
|
|
92618
92637
|
}, _KupEchart_setLegend = function _KupEchart_setLegend(y) {
|
|
92638
|
+
if (this.legend === KupEchartLegendPlacement.HIDDEN) {
|
|
92639
|
+
return null;
|
|
92640
|
+
}
|
|
92619
92641
|
const data = [];
|
|
92620
92642
|
for (let key in y) {
|
|
92621
92643
|
data.push(key);
|
|
@@ -92661,17 +92683,23 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92661
92683
|
const colorRange = !hasNumericValues
|
|
92662
92684
|
? undefined
|
|
92663
92685
|
: colors.length > 0
|
|
92664
|
-
? {
|
|
92686
|
+
? {
|
|
92687
|
+
inRange: { color: colors },
|
|
92688
|
+
min: min,
|
|
92689
|
+
max: max,
|
|
92690
|
+
textStyle: { color: __classPrivateFieldGet(this, _KupEchart_themeText, "f") },
|
|
92691
|
+
}
|
|
92665
92692
|
: {
|
|
92666
92693
|
inRange: {
|
|
92667
|
-
color: [__classPrivateFieldGet(this,
|
|
92694
|
+
color: [__classPrivateFieldGet(this, _KupEchart_minColorHeatMap, "f"), __classPrivateFieldGet(this, _KupEchart_maxColorHeatMap, "f")],
|
|
92668
92695
|
},
|
|
92669
92696
|
min: min,
|
|
92670
92697
|
max: max,
|
|
92698
|
+
textStyle: { color: __classPrivateFieldGet(this, _KupEchart_themeText, "f") },
|
|
92671
92699
|
};
|
|
92672
92700
|
if (colorRange) {
|
|
92673
92701
|
opts.visualMap = Object.assign(Object.assign(Object.assign({}, opts.visualMap), colorRange), { calculable: true, formatter: (value) => {
|
|
92674
|
-
return __classPrivateFieldGet(this, _KupEchart_kupManager, "f").
|
|
92702
|
+
return __classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.format(value);
|
|
92675
92703
|
}, min: min, max: max, show: true });
|
|
92676
92704
|
}
|
|
92677
92705
|
return opts;
|
|
@@ -92717,7 +92745,7 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92717
92745
|
color = hexColor;
|
|
92718
92746
|
}
|
|
92719
92747
|
else {
|
|
92720
|
-
n = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").
|
|
92748
|
+
n = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.numberify(value);
|
|
92721
92749
|
if (n > max) {
|
|
92722
92750
|
max = n;
|
|
92723
92751
|
}
|
|
@@ -92757,11 +92785,9 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92757
92785
|
return null;
|
|
92758
92786
|
}
|
|
92759
92787
|
else {
|
|
92760
|
-
|
|
92761
|
-
|
|
92762
|
-
|
|
92763
|
-
': ' +
|
|
92764
|
-
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.format(value));
|
|
92788
|
+
return ("<div style='min-width: 60px; text-align: center'>" +
|
|
92789
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.format(value) +
|
|
92790
|
+
'</div>');
|
|
92765
92791
|
}
|
|
92766
92792
|
};
|
|
92767
92793
|
const echartOption = Object.assign({ emphasis: {
|
|
@@ -92772,13 +92798,44 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92772
92798
|
{
|
|
92773
92799
|
data: data,
|
|
92774
92800
|
emphasis: {
|
|
92801
|
+
itemStyle: {
|
|
92802
|
+
areaColor: null,
|
|
92803
|
+
borderWidth: 1.5,
|
|
92804
|
+
},
|
|
92775
92805
|
label: {
|
|
92806
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
92807
|
+
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
92776
92808
|
show: true,
|
|
92777
92809
|
},
|
|
92778
92810
|
},
|
|
92811
|
+
itemStyle: {
|
|
92812
|
+
areaColor: __classPrivateFieldGet(this, _KupEchart_themeBackground, "f"),
|
|
92813
|
+
borderColor: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
92814
|
+
},
|
|
92815
|
+
label: {
|
|
92816
|
+
backgroundColor: __classPrivateFieldGet(this, _KupEchart_themeBackground, "f"),
|
|
92817
|
+
borderColor: __classPrivateFieldGet(this, _KupEchart_themeBorder, "f"),
|
|
92818
|
+
borderRadius: 4,
|
|
92819
|
+
borderWidth: 1,
|
|
92820
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
92821
|
+
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
92822
|
+
padding: 4,
|
|
92823
|
+
},
|
|
92779
92824
|
map: this.rootElement.id ? this.rootElement.id : '',
|
|
92780
|
-
name: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.
|
|
92825
|
+
name: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
92826
|
+
name: this.axis,
|
|
92827
|
+
})[0].title,
|
|
92781
92828
|
roam: true,
|
|
92829
|
+
select: {
|
|
92830
|
+
itemStyle: {
|
|
92831
|
+
areaColor: __classPrivateFieldGet(this, _KupEchart_computedColors, "f")[0],
|
|
92832
|
+
},
|
|
92833
|
+
label: {
|
|
92834
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
92835
|
+
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
92836
|
+
show: true,
|
|
92837
|
+
},
|
|
92838
|
+
},
|
|
92782
92839
|
type: 'map',
|
|
92783
92840
|
},
|
|
92784
92841
|
] }, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setVisualMap).call(this, max, min, colors, hasNumericValues));
|
|
@@ -92797,13 +92854,15 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92797
92854
|
});
|
|
92798
92855
|
}
|
|
92799
92856
|
return {
|
|
92800
|
-
color: __classPrivateFieldGet(this,
|
|
92857
|
+
color: __classPrivateFieldGet(this, _KupEchart_computedColors, "f"),
|
|
92801
92858
|
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
|
|
92802
92859
|
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
92803
92860
|
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: '{a} <br/>{b}: {c} ({d}%)' }),
|
|
92804
92861
|
series: [
|
|
92805
92862
|
{
|
|
92806
|
-
name: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.
|
|
92863
|
+
name: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
92864
|
+
name: this.axis,
|
|
92865
|
+
})[0].title,
|
|
92807
92866
|
type: 'pie',
|
|
92808
92867
|
data: data,
|
|
92809
92868
|
emphasis: {
|
|
@@ -92836,9 +92895,10 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92836
92895
|
const column = this.data.columns.find((col) => col.title === key);
|
|
92837
92896
|
if (type == KupEchartTypes.GAUSSIAN) {
|
|
92838
92897
|
if (!__classPrivateFieldGet(this, _KupEchart_kupManager, "f").objects.isNumber(column.obj)) {
|
|
92839
|
-
const newDataset = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.
|
|
92840
|
-
values =
|
|
92841
|
-
|
|
92898
|
+
const newDataset = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.distinct(this.data, [column.name]);
|
|
92899
|
+
values = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.cell.getValue(newDataset, [
|
|
92900
|
+
column.name,
|
|
92901
|
+
]);
|
|
92842
92902
|
__classPrivateFieldGet(this, _KupEchart_gaussianDatasets, "f")[column.name] = newDataset;
|
|
92843
92903
|
}
|
|
92844
92904
|
else {
|
|
@@ -92848,14 +92908,14 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92848
92908
|
else {
|
|
92849
92909
|
if (needSortDataset) {
|
|
92850
92910
|
// if there is only one series other than the Gaussian then I apply the sorting algorithm that arranges the data in "mountain"
|
|
92851
|
-
__classPrivateFieldSet(this, _KupEchart_sortedDataset, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.
|
|
92852
|
-
values =
|
|
92853
|
-
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.datasetOperations.cell.getValue(__classPrivateFieldGet(this, _KupEchart_sortedDataset, "f"), [column.name]);
|
|
92911
|
+
__classPrivateFieldSet(this, _KupEchart_sortedDataset, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.sort(this.data, 'normalDistribution', column.name), "f");
|
|
92912
|
+
values = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.cell.getValue(__classPrivateFieldGet(this, _KupEchart_sortedDataset, "f"), [column.name]);
|
|
92854
92913
|
x = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createX).call(this, __classPrivateFieldGet(this, _KupEchart_sortedDataset, "f"));
|
|
92855
92914
|
}
|
|
92856
92915
|
else {
|
|
92857
|
-
values =
|
|
92858
|
-
|
|
92916
|
+
values = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.cell.getValue(this.data, [
|
|
92917
|
+
column.name,
|
|
92918
|
+
]);
|
|
92859
92919
|
}
|
|
92860
92920
|
}
|
|
92861
92921
|
__classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_addSeries).call(this, type, series, values, key, mixedSeries, needSortDataset);
|
|
@@ -92884,7 +92944,7 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92884
92944
|
min: value - (value / 100) * 50,
|
|
92885
92945
|
},
|
|
92886
92946
|
};
|
|
92887
|
-
const rows = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.
|
|
92947
|
+
const rows = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.row.find(__classPrivateFieldGet(this, _KupEchart_gaussianDatasets, "f")[column]
|
|
92888
92948
|
? __classPrivateFieldGet(this, _KupEchart_gaussianDatasets, "f")[column]
|
|
92889
92949
|
: this.data, filters);
|
|
92890
92950
|
for (let index = 0; index < rows.length; index++) {
|
|
@@ -92941,7 +93001,7 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92941
93001
|
yAxisTmp.splice(0, 1);
|
|
92942
93002
|
}
|
|
92943
93003
|
return {
|
|
92944
|
-
color: __classPrivateFieldGet(this,
|
|
93004
|
+
color: __classPrivateFieldGet(this, _KupEchart_computedColors, "f"),
|
|
92945
93005
|
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
|
|
92946
93006
|
series: series,
|
|
92947
93007
|
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
@@ -92953,7 +93013,7 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92953
93013
|
switch (type) {
|
|
92954
93014
|
case KupEchartTypes.GAUSSIAN:
|
|
92955
93015
|
series.push({
|
|
92956
|
-
data: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").
|
|
93016
|
+
data: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.normalDistribution(values),
|
|
92957
93017
|
name: key,
|
|
92958
93018
|
showSymbol: false,
|
|
92959
93019
|
smooth: true,
|
|
@@ -93004,7 +93064,7 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
93004
93064
|
i++;
|
|
93005
93065
|
}
|
|
93006
93066
|
return {
|
|
93007
|
-
color: __classPrivateFieldGet(this,
|
|
93067
|
+
color: __classPrivateFieldGet(this, _KupEchart_computedColors, "f"),
|
|
93008
93068
|
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
|
|
93009
93069
|
series: series,
|
|
93010
93070
|
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
@@ -93012,8 +93072,8 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
93012
93072
|
xAxis: Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { data: x, type: 'category' }), this.xAxis),
|
|
93013
93073
|
yAxis: Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { type: 'value' }), this.yAxis),
|
|
93014
93074
|
};
|
|
93015
|
-
},
|
|
93016
|
-
let colorArray = [];
|
|
93075
|
+
}, _KupEchart_fetchcomputedColors = function _KupEchart_fetchcomputedColors() {
|
|
93076
|
+
let colorArray = this.colors && this.colors.length > 0 ? [...this.colors] : [];
|
|
93017
93077
|
let key = '--kup-chart-color-';
|
|
93018
93078
|
for (let index = 1; __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[key + index]; index++) {
|
|
93019
93079
|
colorArray.push(__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[key + index]);
|
|
@@ -93022,10 +93082,100 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
93022
93082
|
__classPrivateFieldSet(this, _KupEchart_themeBorder, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[kupManager.KupThemeColorValues.BORDER], "f");
|
|
93023
93083
|
__classPrivateFieldSet(this, _KupEchart_themeFont, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars['--kup-font-family'], "f");
|
|
93024
93084
|
__classPrivateFieldSet(this, _KupEchart_themeText, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[kupManager.KupThemeColorValues.TEXT], "f");
|
|
93025
|
-
__classPrivateFieldSet(this,
|
|
93026
|
-
|
|
93027
|
-
|
|
93028
|
-
|
|
93085
|
+
__classPrivateFieldSet(this, _KupEchart_computedColors, colorArray, "f");
|
|
93086
|
+
if (this.colors && this.colors[0]) {
|
|
93087
|
+
__classPrivateFieldSet(this, _KupEchart_maxColorHeatMap, this.colors[0], "f");
|
|
93088
|
+
}
|
|
93089
|
+
else {
|
|
93090
|
+
const colorCheckDark = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.colorCheck(colorArray[0]);
|
|
93091
|
+
__classPrivateFieldSet(this, _KupEchart_maxColorHeatMap, `hsl(${colorCheckDark.hue}, ${colorCheckDark.saturation}, ${(parseFloat(colorCheckDark.lightness) - 30).toString()}%)`, "f");
|
|
93092
|
+
}
|
|
93093
|
+
if (this.colors && this.colors[1]) {
|
|
93094
|
+
__classPrivateFieldSet(this, _KupEchart_minColorHeatMap, this.colors[1], "f");
|
|
93095
|
+
}
|
|
93096
|
+
else {
|
|
93097
|
+
const colorCheckBright = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.colorCheck(colorArray[0]);
|
|
93098
|
+
__classPrivateFieldSet(this, _KupEchart_minColorHeatMap, `hsl(${colorCheckBright.hue}, ${colorCheckBright.saturation}, ${(parseFloat(colorCheckBright.lightness) + 30).toString()}%)`, "f");
|
|
93099
|
+
}
|
|
93100
|
+
}, _KupEchart_checks = function _KupEchart_checks() {
|
|
93101
|
+
const gaussianCount = this.types.filter((type) => type === KupEchartTypes.GAUSSIAN).length;
|
|
93102
|
+
const nonGaussianCount = this.types.filter((type) => type === KupEchartTypes.GAUSSIAN).length;
|
|
93103
|
+
// Automatically sets axis when there is no Gaussian chart and when axis is invalid.
|
|
93104
|
+
// The first visible and non-numerical column will be used as axis.
|
|
93105
|
+
if (!gaussianCount &&
|
|
93106
|
+
(!this.axis ||
|
|
93107
|
+
!__classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
93108
|
+
name: this.axis,
|
|
93109
|
+
}).length)) {
|
|
93110
|
+
for (let index = 0; index < this.data.columns.length; index++) {
|
|
93111
|
+
const column = this.data.columns[index];
|
|
93112
|
+
if (column.visible &&
|
|
93113
|
+
!__classPrivateFieldGet(this, _KupEchart_kupManager, "f").objects.isNumber(column.obj)) {
|
|
93114
|
+
this.axis = column.name;
|
|
93115
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logMessage(this, 'Axis overridden. (' + this.axis + ')', kupManager.KupDebugCategory.WARNING);
|
|
93116
|
+
break;
|
|
93117
|
+
}
|
|
93118
|
+
}
|
|
93119
|
+
}
|
|
93120
|
+
// Automatically copies columns when there are multiple types and no specified series.
|
|
93121
|
+
// Also 1 types must be GAUSSIAN.
|
|
93122
|
+
if ((!this.series || !this.series.length) &&
|
|
93123
|
+
gaussianCount === 1 &&
|
|
93124
|
+
nonGaussianCount > 0 &&
|
|
93125
|
+
this.data.columns &&
|
|
93126
|
+
((this.data.columns.length === 1 && !this.axis) ||
|
|
93127
|
+
(this.data.columns.length === 2 && this.axis))) {
|
|
93128
|
+
const series = !this.axis
|
|
93129
|
+
? this.data.columns[0]
|
|
93130
|
+
: this.data.columns.filter((col) => col.name !== this.axis)[0];
|
|
93131
|
+
for (let index = 0; index < this.types.length; index++) {
|
|
93132
|
+
const type = this.types[index];
|
|
93133
|
+
if (type !== KupEchartTypes.GAUSSIAN) {
|
|
93134
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.new(this.data, kupManager.KupDataNewColumnTypes.DUPLICATE, {
|
|
93135
|
+
columns: [series.name],
|
|
93136
|
+
newColumn: Object.assign(Object.assign({}, series), { name: series.name + '_' + index, title: series.title + ` (${type})` }),
|
|
93137
|
+
});
|
|
93138
|
+
}
|
|
93139
|
+
}
|
|
93140
|
+
}
|
|
93141
|
+
// Checks for multiple series with the same column name, creating duplicate columns in case they are present.
|
|
93142
|
+
// When there are more types than series, new series will be automatically added to match chart types.
|
|
93143
|
+
if (this.series &&
|
|
93144
|
+
this.types &&
|
|
93145
|
+
this.series.length &&
|
|
93146
|
+
this.types.length &&
|
|
93147
|
+
this.data.columns) {
|
|
93148
|
+
if (this.types.length > this.series.length) {
|
|
93149
|
+
const lastSerie = this.series[this.series.length - 1];
|
|
93150
|
+
for (let index = this.series.length; index < this.types.length; index++) {
|
|
93151
|
+
this.series.push(lastSerie);
|
|
93152
|
+
}
|
|
93153
|
+
}
|
|
93154
|
+
const occurrences = {};
|
|
93155
|
+
for (let index = 0; index < this.series.length; index++) {
|
|
93156
|
+
const serie = this.series[index];
|
|
93157
|
+
if (Object.keys(occurrences).includes(serie)) {
|
|
93158
|
+
occurrences[serie].push(index);
|
|
93159
|
+
}
|
|
93160
|
+
else {
|
|
93161
|
+
occurrences[serie] = [index];
|
|
93162
|
+
}
|
|
93163
|
+
}
|
|
93164
|
+
for (const key in occurrences) {
|
|
93165
|
+
const indexes = occurrences[key];
|
|
93166
|
+
for (let index = 1; indexes.length > 1 && index < indexes.length; index++) {
|
|
93167
|
+
const seriesIndex = indexes[index];
|
|
93168
|
+
const column = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, { name: this.series[seriesIndex] })[0];
|
|
93169
|
+
const newName = column.name + '_' + index;
|
|
93170
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.new(this.data, kupManager.KupDataNewColumnTypes.DUPLICATE, {
|
|
93171
|
+
columns: [column.name],
|
|
93172
|
+
newColumn: Object.assign(Object.assign({}, column), { name: newName, title: column.title +
|
|
93173
|
+
` (${this.types[seriesIndex]})` }),
|
|
93174
|
+
});
|
|
93175
|
+
this.series[seriesIndex] = newName;
|
|
93176
|
+
}
|
|
93177
|
+
}
|
|
93178
|
+
}
|
|
93029
93179
|
};
|
|
93030
93180
|
KupEchart.style = kupEchartCss;
|
|
93031
93181
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
5
|
+
const index = require('./index-8d7bb3be.js');
|
|
6
|
+
const kupManager = require('./kup-manager-4227f0a2.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-a9ed17ee.js');
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -24,7 +24,7 @@ var KupFieldProps;
|
|
|
24
24
|
|
|
25
25
|
const kupFieldCss = ":host{display:block;font-size:var(--kup-font-size)}label{color:var(--kup-text-color);font-family:var(--kup-font-family);font-size:1em}.kup-field__component{display:inline-block}.label-top.submit-top label{float:left;margin:auto auto 1em auto}.label-top.submit-top kup-button{float:right;margin:auto auto 1em auto}.label-right label{display:inline-block;margin:auto auto auto 1em}.submit-right kup-button{display:inline-block;margin:auto auto auto 1em}.label-left label{display:inline-block;margin:auto 1em auto auto}.submit-left kup-button{display:inline-block;margin:auto 1em auto auto}.submit-bottom kup-button{display:block;margin:1em auto auto auto}";
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
const KupField = class {
|
|
28
28
|
constructor(hostRef) {
|
|
29
29
|
index.registerInstance(this, hostRef);
|
|
30
30
|
this.kupChange = index.createEvent(this, "kup-field-change", 6);
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
7
|
-
const utils = require('./utils-
|
|
5
|
+
const index = require('./index-8d7bb3be.js');
|
|
6
|
+
const kupManager = require('./kup-manager-4227f0a2.js');
|
|
7
|
+
const utils = require('./utils-b9df398c.js');
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Props of the kup-iframe component.
|
|
@@ -19,7 +19,7 @@ var KupIframeProps;
|
|
|
19
19
|
|
|
20
20
|
const kupIframeCss = "iframe{box-sizing:border-box;height:100%;width:100%}:host([is-iframe]){box-sizing:border-box;display:block;height:100%;width:100%}";
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
const KupIframe = class {
|
|
23
23
|
constructor(hostRef) {
|
|
24
24
|
index.registerInstance(this, hostRef);
|
|
25
25
|
this.kupIframeError = index.createEvent(this, "kup-iframe-error", 6);
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
7
|
-
const utils = require('./utils-
|
|
5
|
+
const index = require('./index-8d7bb3be.js');
|
|
6
|
+
const kupManager = require('./kup-manager-4227f0a2.js');
|
|
7
|
+
const utils = require('./utils-b9df398c.js');
|
|
8
8
|
const GenericVariables = require('./GenericVariables-a9ed17ee.js');
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -30,7 +30,7 @@ var KupLazyRender;
|
|
|
30
30
|
|
|
31
31
|
const kupLazyCss = ":host{--kup_lazy_hor_alignment:var(--kup-lazy-hor-alignment, center);--kup_lazy_ver_alignment:var(--kup-lazy-ver-alignment, center);--kup_lazy_animation_time:var(--kup-lazy-animation-time, 2s);--kup_lazy_placeholder_color:var(\n --kup-lazy-placeholder-color,\n var(--kup-icon-color)\n );display:block;height:100%;width:100%;position:relative}#kup-component{align-items:var(--kup_lazy_ver_alignment);display:flex;justify-content:var(--kup_lazy_hor_alignment);height:100%;width:100%}#kup-component kup-data-table{min-width:100%}svg{fill:var(--kup_lazy_placeholder_color);animation:shine ease var(--kup_lazy_animation_time) infinite}@keyframes shine{0%{opacity:0.4}50%{opacity:0.8}100%{opacity:0.4}}:host(.kup-bottom-aligned){--kup-lazy-ver-alignment:flex-end}:host(.kup-left-aligned){--kup-lazy-hor-alignment:flex-start}:host(.kup-right-aligned){--kup-lazy-hor-alignment:flex-end}:host(.kup-top-aligned){--kup-lazy-ver-alignment:flex-start}:host(.kup-to-be-loaded) #kup-component{position:absolute}:host(.kup-to-be-loaded) #kup-component>*{margin:auto}";
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
const KupLazy = class {
|
|
34
34
|
constructor(hostRef) {
|
|
35
35
|
index.registerInstance(this, hostRef);
|
|
36
36
|
this.kupLazyLoaded = index.createEvent(this, "kup-lazy-loaded", 6);
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
5
|
+
const index = require('./index-8d7bb3be.js');
|
|
6
|
+
const kupManager = require('./kup-manager-4227f0a2.js');
|
|
7
7
|
const fButtonDeclarations = require('./f-button-declarations-b611587f.js');
|
|
8
|
-
const fImage = require('./f-image-
|
|
9
|
-
const utils = require('./utils-
|
|
8
|
+
const fImage = require('./f-image-08a3d340.js');
|
|
9
|
+
const utils = require('./utils-b9df398c.js');
|
|
10
10
|
const GenericVariables = require('./GenericVariables-a9ed17ee.js');
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -35,7 +35,7 @@ var KupMagicBoxDisplay;
|
|
|
35
35
|
|
|
36
36
|
const kupMagicBoxCss = ":host{background-color:var(--kup-background-color);color:var(--kup-text-color);display:block;height:300px;min-width:700px;width:700px}#kup-component,.magic-box-wrapper{height:100%;width:100%}.magic-box-wrapper{border:3px dashed var(--kup-border-color);box-sizing:border-box;display:flex;flex-direction:column}.actions{align-items:center;background-color:var(--kup-title-background-color);display:inline-flex;height:52px;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:1}.actions kup-button{margin:0.5em}.actions #comp-switcher{margin:auto 0}.actions #close-dialog{position:absolute;margin:0;top:0;right:0;background-color:var(--kup-title-background-color)}.content{box-sizing:border-box;height:100%;margin-top:52px;overflow:auto;transition:background-color 125ms ease}.empty{flex-direction:column;display:flex;text-align:center;justify-content:center;height:100%;width:100%;opacity:0.5;transition:opacity 0.25s ease-out}.empty .f-image{margin:0}.json{font-family:var(--kup-font-family-monospace);margin:0}[kup-drag-over]{background-color:rgba(var(--kup-success-color-rgb), 0.25)}";
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
const KupMagicBox = class {
|
|
39
39
|
constructor(hostRef) {
|
|
40
40
|
index.registerInstance(this, hostRef);
|
|
41
41
|
/*-------------------------------------------------*/
|
|
@@ -104,9 +104,9 @@ let KupMagicBox = class {
|
|
|
104
104
|
for (const key in KupMagicBoxDisplay) {
|
|
105
105
|
if (Object.prototype.hasOwnProperty.call(KupMagicBoxDisplay, key)) {
|
|
106
106
|
listData.push({
|
|
107
|
-
|
|
108
|
-
value: KupMagicBoxDisplay[key],
|
|
107
|
+
id: KupMagicBoxDisplay[key],
|
|
109
108
|
selected: false,
|
|
109
|
+
value: KupMagicBoxDisplay[key],
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
112
|
}
|