@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
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement, a as getAssetPath } from './index-
|
|
2
|
-
import { k as kupManagerInstance, j as KupDebugCategory, b as KupThemeColorValues } from './kup-manager-
|
|
3
|
-
import { g as getProps, s as setProps } from './utils-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement, a as getAssetPath } from './index-aeec9835.js';
|
|
2
|
+
import { k as kupManagerInstance, j as KupDebugCategory, b as KupThemeColorValues, u as KupDataNewColumnTypes } from './kup-manager-0ab94726.js';
|
|
3
|
+
import { g as getProps, s as setProps } from './utils-35c7a90d.js';
|
|
4
4
|
import { c as componentWrapperId } from './GenericVariables-665de00a.js';
|
|
5
|
-
import { c as getColumnByName } from './cell-utils-
|
|
5
|
+
import { c as getColumnByName } from './cell-utils-69f75e2e.js';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -92237,6 +92237,8 @@ var KupEchartProps;
|
|
|
92237
92237
|
(function (KupEchartProps) {
|
|
92238
92238
|
KupEchartProps["axis"] = "Sets the axis of the chart.";
|
|
92239
92239
|
KupEchartProps["chartTitle"] = "Title of the graph.";
|
|
92240
|
+
KupEchartProps["colors"] = "Overrides theme's colors.";
|
|
92241
|
+
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.";
|
|
92240
92242
|
KupEchartProps["customStyle"] = "Custom style of the component.";
|
|
92241
92243
|
KupEchartProps["data"] = "The actual data of the chart.";
|
|
92242
92244
|
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.";
|
|
@@ -92252,6 +92254,7 @@ var KupEchartLegendPlacement;
|
|
|
92252
92254
|
(function (KupEchartLegendPlacement) {
|
|
92253
92255
|
KupEchartLegendPlacement["BOTTOM"] = "bottom";
|
|
92254
92256
|
KupEchartLegendPlacement["LEFT"] = "left";
|
|
92257
|
+
KupEchartLegendPlacement["HIDDEN"] = "hidden";
|
|
92255
92258
|
KupEchartLegendPlacement["RIGHT"] = "right";
|
|
92256
92259
|
KupEchartLegendPlacement["TOP"] = "top";
|
|
92257
92260
|
})(KupEchartLegendPlacement || (KupEchartLegendPlacement = {}));
|
|
@@ -92293,8 +92296,8 @@ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) ||
|
|
|
92293
92296
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
92294
92297
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
92295
92298
|
};
|
|
92296
|
-
var _KupEchart_instances,
|
|
92297
|
-
|
|
92299
|
+
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;
|
|
92300
|
+
const KupEchart = class {
|
|
92298
92301
|
constructor(hostRef) {
|
|
92299
92302
|
registerInstance(this, hostRef);
|
|
92300
92303
|
this.kupEchartClick = createEvent(this, "kup-echart-click", 6);
|
|
@@ -92307,6 +92310,17 @@ let KupEchart = class {
|
|
|
92307
92310
|
* @default ""
|
|
92308
92311
|
*/
|
|
92309
92312
|
this.axis = '';
|
|
92313
|
+
/**
|
|
92314
|
+
* Overrides theme's colors.
|
|
92315
|
+
* @default []
|
|
92316
|
+
*/
|
|
92317
|
+
this.colors = [];
|
|
92318
|
+
/**
|
|
92319
|
+
* When true, performs checks in order to properly initialize props which could be missing (i.e.: axis).
|
|
92320
|
+
* For performances purposes, this prop will run only once when the component is initially created.
|
|
92321
|
+
* @default false
|
|
92322
|
+
*/
|
|
92323
|
+
this.consistencyCheck = false;
|
|
92310
92324
|
/**
|
|
92311
92325
|
* Title of the graph.
|
|
92312
92326
|
* @default null
|
|
@@ -92324,7 +92338,7 @@ let KupEchart = class {
|
|
|
92324
92338
|
*/
|
|
92325
92339
|
this.data = null;
|
|
92326
92340
|
/**
|
|
92327
|
-
* 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.
|
|
92341
|
+
* 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.
|
|
92328
92342
|
* @default KupEchartLegendPlacement.RIGHT
|
|
92329
92343
|
*/
|
|
92330
92344
|
this.legend = KupEchartLegendPlacement.RIGHT;
|
|
@@ -92366,20 +92380,20 @@ let KupEchart = class {
|
|
|
92366
92380
|
/*-------------------------------------------------*/
|
|
92367
92381
|
/* I n t e r n a l V a r i a b l e s */
|
|
92368
92382
|
/*-------------------------------------------------*/
|
|
92369
|
-
_KupEchart_kupManager.set(this, kupManagerInstance());
|
|
92370
|
-
_KupEchart_resizeTimeout.set(this, void 0);
|
|
92371
92383
|
_KupEchart_chartContainer.set(this, void 0);
|
|
92372
92384
|
_KupEchart_chartEl.set(this, void 0);
|
|
92373
92385
|
_KupEchart_gaussianDatasets.set(this, void 0);
|
|
92386
|
+
_KupEchart_kupManager.set(this, kupManagerInstance());
|
|
92387
|
+
_KupEchart_mapObj.set(this, {});
|
|
92388
|
+
_KupEchart_resizeTimeout.set(this, void 0);
|
|
92374
92389
|
_KupEchart_sortedDataset.set(this, null);
|
|
92375
92390
|
_KupEchart_themeBorder.set(this, null);
|
|
92376
92391
|
_KupEchart_themeBackground.set(this, null);
|
|
92377
|
-
|
|
92378
|
-
|
|
92379
|
-
|
|
92392
|
+
_KupEchart_computedColors.set(this, null);
|
|
92393
|
+
_KupEchart_minColorHeatMap.set(this, null);
|
|
92394
|
+
_KupEchart_maxColorHeatMap.set(this, null);
|
|
92380
92395
|
_KupEchart_themeFont.set(this, null);
|
|
92381
92396
|
_KupEchart_themeText.set(this, null);
|
|
92382
|
-
_KupEchart_mapObj.set(this, {});
|
|
92383
92397
|
}
|
|
92384
92398
|
/*-------------------------------------------------*/
|
|
92385
92399
|
/* P u b l i c M e t h o d s */
|
|
@@ -92403,7 +92417,19 @@ let KupEchart = class {
|
|
|
92403
92417
|
*/
|
|
92404
92418
|
async resizeCallback() {
|
|
92405
92419
|
window.clearTimeout(__classPrivateFieldGet(this, _KupEchart_resizeTimeout, "f"));
|
|
92406
|
-
__classPrivateFieldSet(this, _KupEchart_resizeTimeout, window.setTimeout(() =>
|
|
92420
|
+
__classPrivateFieldSet(this, _KupEchart_resizeTimeout, window.setTimeout(() => {
|
|
92421
|
+
if (__classPrivateFieldGet(this, _KupEchart_chartEl, "f")) {
|
|
92422
|
+
const xMin = this.rootElement.clientWidth - 5;
|
|
92423
|
+
const xMax = this.rootElement.clientWidth + 5;
|
|
92424
|
+
const yMin = this.rootElement.clientHeight - 5;
|
|
92425
|
+
const yMax = this.rootElement.clientHeight + 5;
|
|
92426
|
+
const x = __classPrivateFieldGet(this, _KupEchart_chartEl, "f").getWidth();
|
|
92427
|
+
const y = __classPrivateFieldGet(this, _KupEchart_chartEl, "f").getHeight();
|
|
92428
|
+
if (x < xMin || x > xMax || y < yMin || y > yMax) {
|
|
92429
|
+
__classPrivateFieldGet(this, _KupEchart_chartEl, "f").resize();
|
|
92430
|
+
}
|
|
92431
|
+
}
|
|
92432
|
+
}, 300), "f");
|
|
92407
92433
|
}
|
|
92408
92434
|
/**
|
|
92409
92435
|
* Sets the props to the component.
|
|
@@ -92418,6 +92444,9 @@ let KupEchart = class {
|
|
|
92418
92444
|
componentWillLoad() {
|
|
92419
92445
|
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logLoad(this, false);
|
|
92420
92446
|
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.register(this);
|
|
92447
|
+
if (this.consistencyCheck) {
|
|
92448
|
+
__classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_checks).call(this);
|
|
92449
|
+
}
|
|
92421
92450
|
}
|
|
92422
92451
|
componentDidLoad() {
|
|
92423
92452
|
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").resize.observe(this.rootElement);
|
|
@@ -92425,7 +92454,7 @@ let KupEchart = class {
|
|
|
92425
92454
|
}
|
|
92426
92455
|
componentWillRender() {
|
|
92427
92456
|
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logRender(this, false);
|
|
92428
|
-
__classPrivateFieldGet(this, _KupEchart_instances, "m",
|
|
92457
|
+
__classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_fetchcomputedColors).call(this);
|
|
92429
92458
|
}
|
|
92430
92459
|
componentDidRender() {
|
|
92431
92460
|
if (this.data && this.data.columns && this.data.rows) {
|
|
@@ -92450,7 +92479,7 @@ let KupEchart = class {
|
|
|
92450
92479
|
static get assetsDirs() { return ["assets/maps"]; }
|
|
92451
92480
|
get rootElement() { return getElement(this); }
|
|
92452
92481
|
};
|
|
92453
|
-
|
|
92482
|
+
_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() {
|
|
92454
92483
|
if (__classPrivateFieldGet(this, _KupEchart_chartEl, "f")) {
|
|
92455
92484
|
dispose(__classPrivateFieldGet(this, _KupEchart_chartContainer, "f"));
|
|
92456
92485
|
}
|
|
@@ -92463,18 +92492,6 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92463
92492
|
}
|
|
92464
92493
|
}, _KupEchart_createChart = async function _KupEchart_createChart() {
|
|
92465
92494
|
__classPrivateFieldSet(this, _KupEchart_sortedDataset, null, "f");
|
|
92466
|
-
if (!this.types.includes(KupEchartTypes.GAUSSIAN) &&
|
|
92467
|
-
(!this.axis ||
|
|
92468
|
-
!__classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.datasetOperations.column.find(this.data, { name: this.axis }).length)) {
|
|
92469
|
-
for (let index = 0; index < this.data.columns.length; index++) {
|
|
92470
|
-
const column = this.data.columns[index];
|
|
92471
|
-
if (!__classPrivateFieldGet(this, _KupEchart_kupManager, "f").objects.isNumber(column.obj)) {
|
|
92472
|
-
this.axis = column.name;
|
|
92473
|
-
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logMessage(this, 'Axis overridden. (' + this.axis + ')', KupDebugCategory.WARNING);
|
|
92474
|
-
break;
|
|
92475
|
-
}
|
|
92476
|
-
}
|
|
92477
|
-
}
|
|
92478
92495
|
let options = null;
|
|
92479
92496
|
const firstType = this.types[0];
|
|
92480
92497
|
switch (firstType) {
|
|
@@ -92510,12 +92527,14 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92510
92527
|
}
|
|
92511
92528
|
__classPrivateFieldGet(this, _KupEchart_chartEl, "f").setOption(options, true);
|
|
92512
92529
|
__classPrivateFieldGet(this, _KupEchart_chartEl, "f").on('click', (e) => {
|
|
92513
|
-
const column = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.
|
|
92530
|
+
const column = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
92514
92531
|
title: e.seriesName,
|
|
92515
92532
|
})[0];
|
|
92516
92533
|
let row = null;
|
|
92517
92534
|
if (e.seriesType === 'map') {
|
|
92518
|
-
row = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.
|
|
92535
|
+
row = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.row.find(this.data, {
|
|
92536
|
+
value: __classPrivateFieldGet(this, _KupEchart_mapObj, "f")[e.name],
|
|
92537
|
+
})[0];
|
|
92519
92538
|
}
|
|
92520
92539
|
else if (__classPrivateFieldGet(this, _KupEchart_sortedDataset, "f") && e.seriesType === 'bar') {
|
|
92521
92540
|
row = __classPrivateFieldGet(this, _KupEchart_sortedDataset, "f").rows[e.dataIndex];
|
|
@@ -92612,6 +92631,9 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92612
92631
|
splitLine: { lineStyle: { color: __classPrivateFieldGet(this, _KupEchart_themeBorder, "f") } },
|
|
92613
92632
|
};
|
|
92614
92633
|
}, _KupEchart_setLegend = function _KupEchart_setLegend(y) {
|
|
92634
|
+
if (this.legend === KupEchartLegendPlacement.HIDDEN) {
|
|
92635
|
+
return null;
|
|
92636
|
+
}
|
|
92615
92637
|
const data = [];
|
|
92616
92638
|
for (let key in y) {
|
|
92617
92639
|
data.push(key);
|
|
@@ -92657,17 +92679,23 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92657
92679
|
const colorRange = !hasNumericValues
|
|
92658
92680
|
? undefined
|
|
92659
92681
|
: colors.length > 0
|
|
92660
|
-
? {
|
|
92682
|
+
? {
|
|
92683
|
+
inRange: { color: colors },
|
|
92684
|
+
min: min,
|
|
92685
|
+
max: max,
|
|
92686
|
+
textStyle: { color: __classPrivateFieldGet(this, _KupEchart_themeText, "f") },
|
|
92687
|
+
}
|
|
92661
92688
|
: {
|
|
92662
92689
|
inRange: {
|
|
92663
|
-
color: [__classPrivateFieldGet(this,
|
|
92690
|
+
color: [__classPrivateFieldGet(this, _KupEchart_minColorHeatMap, "f"), __classPrivateFieldGet(this, _KupEchart_maxColorHeatMap, "f")],
|
|
92664
92691
|
},
|
|
92665
92692
|
min: min,
|
|
92666
92693
|
max: max,
|
|
92694
|
+
textStyle: { color: __classPrivateFieldGet(this, _KupEchart_themeText, "f") },
|
|
92667
92695
|
};
|
|
92668
92696
|
if (colorRange) {
|
|
92669
92697
|
opts.visualMap = Object.assign(Object.assign(Object.assign({}, opts.visualMap), colorRange), { calculable: true, formatter: (value) => {
|
|
92670
|
-
return __classPrivateFieldGet(this, _KupEchart_kupManager, "f").
|
|
92698
|
+
return __classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.format(value);
|
|
92671
92699
|
}, min: min, max: max, show: true });
|
|
92672
92700
|
}
|
|
92673
92701
|
return opts;
|
|
@@ -92713,7 +92741,7 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92713
92741
|
color = hexColor;
|
|
92714
92742
|
}
|
|
92715
92743
|
else {
|
|
92716
|
-
n = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").
|
|
92744
|
+
n = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.numberify(value);
|
|
92717
92745
|
if (n > max) {
|
|
92718
92746
|
max = n;
|
|
92719
92747
|
}
|
|
@@ -92753,11 +92781,9 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92753
92781
|
return null;
|
|
92754
92782
|
}
|
|
92755
92783
|
else {
|
|
92756
|
-
|
|
92757
|
-
|
|
92758
|
-
|
|
92759
|
-
': ' +
|
|
92760
|
-
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.format(value));
|
|
92784
|
+
return ("<div style='min-width: 60px; text-align: center'>" +
|
|
92785
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.format(value) +
|
|
92786
|
+
'</div>');
|
|
92761
92787
|
}
|
|
92762
92788
|
};
|
|
92763
92789
|
const echartOption = Object.assign({ emphasis: {
|
|
@@ -92768,13 +92794,44 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92768
92794
|
{
|
|
92769
92795
|
data: data,
|
|
92770
92796
|
emphasis: {
|
|
92797
|
+
itemStyle: {
|
|
92798
|
+
areaColor: null,
|
|
92799
|
+
borderWidth: 1.5,
|
|
92800
|
+
},
|
|
92771
92801
|
label: {
|
|
92802
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
92803
|
+
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
92772
92804
|
show: true,
|
|
92773
92805
|
},
|
|
92774
92806
|
},
|
|
92807
|
+
itemStyle: {
|
|
92808
|
+
areaColor: __classPrivateFieldGet(this, _KupEchart_themeBackground, "f"),
|
|
92809
|
+
borderColor: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
92810
|
+
},
|
|
92811
|
+
label: {
|
|
92812
|
+
backgroundColor: __classPrivateFieldGet(this, _KupEchart_themeBackground, "f"),
|
|
92813
|
+
borderColor: __classPrivateFieldGet(this, _KupEchart_themeBorder, "f"),
|
|
92814
|
+
borderRadius: 4,
|
|
92815
|
+
borderWidth: 1,
|
|
92816
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
92817
|
+
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
92818
|
+
padding: 4,
|
|
92819
|
+
},
|
|
92775
92820
|
map: this.rootElement.id ? this.rootElement.id : '',
|
|
92776
|
-
name: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.
|
|
92821
|
+
name: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
92822
|
+
name: this.axis,
|
|
92823
|
+
})[0].title,
|
|
92777
92824
|
roam: true,
|
|
92825
|
+
select: {
|
|
92826
|
+
itemStyle: {
|
|
92827
|
+
areaColor: __classPrivateFieldGet(this, _KupEchart_computedColors, "f")[0],
|
|
92828
|
+
},
|
|
92829
|
+
label: {
|
|
92830
|
+
color: __classPrivateFieldGet(this, _KupEchart_themeText, "f"),
|
|
92831
|
+
fontFamily: __classPrivateFieldGet(this, _KupEchart_themeFont, "f"),
|
|
92832
|
+
show: true,
|
|
92833
|
+
},
|
|
92834
|
+
},
|
|
92778
92835
|
type: 'map',
|
|
92779
92836
|
},
|
|
92780
92837
|
] }, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setVisualMap).call(this, max, min, colors, hasNumericValues));
|
|
@@ -92793,13 +92850,15 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92793
92850
|
});
|
|
92794
92851
|
}
|
|
92795
92852
|
return {
|
|
92796
|
-
color: __classPrivateFieldGet(this,
|
|
92853
|
+
color: __classPrivateFieldGet(this, _KupEchart_computedColors, "f"),
|
|
92797
92854
|
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
|
|
92798
92855
|
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
92799
92856
|
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: '{a} <br/>{b}: {c} ({d}%)' }),
|
|
92800
92857
|
series: [
|
|
92801
92858
|
{
|
|
92802
|
-
name: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.
|
|
92859
|
+
name: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
92860
|
+
name: this.axis,
|
|
92861
|
+
})[0].title,
|
|
92803
92862
|
type: 'pie',
|
|
92804
92863
|
data: data,
|
|
92805
92864
|
emphasis: {
|
|
@@ -92832,9 +92891,10 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92832
92891
|
const column = this.data.columns.find((col) => col.title === key);
|
|
92833
92892
|
if (type == KupEchartTypes.GAUSSIAN) {
|
|
92834
92893
|
if (!__classPrivateFieldGet(this, _KupEchart_kupManager, "f").objects.isNumber(column.obj)) {
|
|
92835
|
-
const newDataset = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.
|
|
92836
|
-
values =
|
|
92837
|
-
|
|
92894
|
+
const newDataset = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.distinct(this.data, [column.name]);
|
|
92895
|
+
values = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.cell.getValue(newDataset, [
|
|
92896
|
+
column.name,
|
|
92897
|
+
]);
|
|
92838
92898
|
__classPrivateFieldGet(this, _KupEchart_gaussianDatasets, "f")[column.name] = newDataset;
|
|
92839
92899
|
}
|
|
92840
92900
|
else {
|
|
@@ -92844,14 +92904,14 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92844
92904
|
else {
|
|
92845
92905
|
if (needSortDataset) {
|
|
92846
92906
|
// if there is only one series other than the Gaussian then I apply the sorting algorithm that arranges the data in "mountain"
|
|
92847
|
-
__classPrivateFieldSet(this, _KupEchart_sortedDataset, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.
|
|
92848
|
-
values =
|
|
92849
|
-
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.datasetOperations.cell.getValue(__classPrivateFieldGet(this, _KupEchart_sortedDataset, "f"), [column.name]);
|
|
92907
|
+
__classPrivateFieldSet(this, _KupEchart_sortedDataset, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.sort(this.data, 'normalDistribution', column.name), "f");
|
|
92908
|
+
values = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.cell.getValue(__classPrivateFieldGet(this, _KupEchart_sortedDataset, "f"), [column.name]);
|
|
92850
92909
|
x = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createX).call(this, __classPrivateFieldGet(this, _KupEchart_sortedDataset, "f"));
|
|
92851
92910
|
}
|
|
92852
92911
|
else {
|
|
92853
|
-
values =
|
|
92854
|
-
|
|
92912
|
+
values = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.cell.getValue(this.data, [
|
|
92913
|
+
column.name,
|
|
92914
|
+
]);
|
|
92855
92915
|
}
|
|
92856
92916
|
}
|
|
92857
92917
|
__classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_addSeries).call(this, type, series, values, key, mixedSeries, needSortDataset);
|
|
@@ -92880,7 +92940,7 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92880
92940
|
min: value - (value / 100) * 50,
|
|
92881
92941
|
},
|
|
92882
92942
|
};
|
|
92883
|
-
const rows = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.
|
|
92943
|
+
const rows = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.row.find(__classPrivateFieldGet(this, _KupEchart_gaussianDatasets, "f")[column]
|
|
92884
92944
|
? __classPrivateFieldGet(this, _KupEchart_gaussianDatasets, "f")[column]
|
|
92885
92945
|
: this.data, filters);
|
|
92886
92946
|
for (let index = 0; index < rows.length; index++) {
|
|
@@ -92937,7 +92997,7 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92937
92997
|
yAxisTmp.splice(0, 1);
|
|
92938
92998
|
}
|
|
92939
92999
|
return {
|
|
92940
|
-
color: __classPrivateFieldGet(this,
|
|
93000
|
+
color: __classPrivateFieldGet(this, _KupEchart_computedColors, "f"),
|
|
92941
93001
|
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
|
|
92942
93002
|
series: series,
|
|
92943
93003
|
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
@@ -92949,7 +93009,7 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
92949
93009
|
switch (type) {
|
|
92950
93010
|
case KupEchartTypes.GAUSSIAN:
|
|
92951
93011
|
series.push({
|
|
92952
|
-
data: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").
|
|
93012
|
+
data: __classPrivateFieldGet(this, _KupEchart_kupManager, "f").math.normalDistribution(values),
|
|
92953
93013
|
name: key,
|
|
92954
93014
|
showSymbol: false,
|
|
92955
93015
|
smooth: true,
|
|
@@ -93000,7 +93060,7 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
93000
93060
|
i++;
|
|
93001
93061
|
}
|
|
93002
93062
|
return {
|
|
93003
|
-
color: __classPrivateFieldGet(this,
|
|
93063
|
+
color: __classPrivateFieldGet(this, _KupEchart_computedColors, "f"),
|
|
93004
93064
|
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, y),
|
|
93005
93065
|
series: series,
|
|
93006
93066
|
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
@@ -93008,8 +93068,8 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
93008
93068
|
xAxis: Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { data: x, type: 'category' }), this.xAxis),
|
|
93009
93069
|
yAxis: Object.assign(Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setAxisColors).call(this)), { type: 'value' }), this.yAxis),
|
|
93010
93070
|
};
|
|
93011
|
-
},
|
|
93012
|
-
let colorArray = [];
|
|
93071
|
+
}, _KupEchart_fetchcomputedColors = function _KupEchart_fetchcomputedColors() {
|
|
93072
|
+
let colorArray = this.colors && this.colors.length > 0 ? [...this.colors] : [];
|
|
93013
93073
|
let key = '--kup-chart-color-';
|
|
93014
93074
|
for (let index = 1; __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[key + index]; index++) {
|
|
93015
93075
|
colorArray.push(__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[key + index]);
|
|
@@ -93018,10 +93078,100 @@ _KupEchart_kupManager = new WeakMap(), _KupEchart_resizeTimeout = new WeakMap(),
|
|
|
93018
93078
|
__classPrivateFieldSet(this, _KupEchart_themeBorder, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[KupThemeColorValues.BORDER], "f");
|
|
93019
93079
|
__classPrivateFieldSet(this, _KupEchart_themeFont, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars['--kup-font-family'], "f");
|
|
93020
93080
|
__classPrivateFieldSet(this, _KupEchart_themeText, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.cssVars[KupThemeColorValues.TEXT], "f");
|
|
93021
|
-
__classPrivateFieldSet(this,
|
|
93022
|
-
|
|
93023
|
-
|
|
93024
|
-
|
|
93081
|
+
__classPrivateFieldSet(this, _KupEchart_computedColors, colorArray, "f");
|
|
93082
|
+
if (this.colors && this.colors[0]) {
|
|
93083
|
+
__classPrivateFieldSet(this, _KupEchart_maxColorHeatMap, this.colors[0], "f");
|
|
93084
|
+
}
|
|
93085
|
+
else {
|
|
93086
|
+
const colorCheckDark = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.colorCheck(colorArray[0]);
|
|
93087
|
+
__classPrivateFieldSet(this, _KupEchart_maxColorHeatMap, `hsl(${colorCheckDark.hue}, ${colorCheckDark.saturation}, ${(parseFloat(colorCheckDark.lightness) - 30).toString()}%)`, "f");
|
|
93088
|
+
}
|
|
93089
|
+
if (this.colors && this.colors[1]) {
|
|
93090
|
+
__classPrivateFieldSet(this, _KupEchart_minColorHeatMap, this.colors[1], "f");
|
|
93091
|
+
}
|
|
93092
|
+
else {
|
|
93093
|
+
const colorCheckBright = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.colorCheck(colorArray[0]);
|
|
93094
|
+
__classPrivateFieldSet(this, _KupEchart_minColorHeatMap, `hsl(${colorCheckBright.hue}, ${colorCheckBright.saturation}, ${(parseFloat(colorCheckBright.lightness) + 30).toString()}%)`, "f");
|
|
93095
|
+
}
|
|
93096
|
+
}, _KupEchart_checks = function _KupEchart_checks() {
|
|
93097
|
+
const gaussianCount = this.types.filter((type) => type === KupEchartTypes.GAUSSIAN).length;
|
|
93098
|
+
const nonGaussianCount = this.types.filter((type) => type === KupEchartTypes.GAUSSIAN).length;
|
|
93099
|
+
// Automatically sets axis when there is no Gaussian chart and when axis is invalid.
|
|
93100
|
+
// The first visible and non-numerical column will be used as axis.
|
|
93101
|
+
if (!gaussianCount &&
|
|
93102
|
+
(!this.axis ||
|
|
93103
|
+
!__classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, {
|
|
93104
|
+
name: this.axis,
|
|
93105
|
+
}).length)) {
|
|
93106
|
+
for (let index = 0; index < this.data.columns.length; index++) {
|
|
93107
|
+
const column = this.data.columns[index];
|
|
93108
|
+
if (column.visible &&
|
|
93109
|
+
!__classPrivateFieldGet(this, _KupEchart_kupManager, "f").objects.isNumber(column.obj)) {
|
|
93110
|
+
this.axis = column.name;
|
|
93111
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").debug.logMessage(this, 'Axis overridden. (' + this.axis + ')', KupDebugCategory.WARNING);
|
|
93112
|
+
break;
|
|
93113
|
+
}
|
|
93114
|
+
}
|
|
93115
|
+
}
|
|
93116
|
+
// Automatically copies columns when there are multiple types and no specified series.
|
|
93117
|
+
// Also 1 types must be GAUSSIAN.
|
|
93118
|
+
if ((!this.series || !this.series.length) &&
|
|
93119
|
+
gaussianCount === 1 &&
|
|
93120
|
+
nonGaussianCount > 0 &&
|
|
93121
|
+
this.data.columns &&
|
|
93122
|
+
((this.data.columns.length === 1 && !this.axis) ||
|
|
93123
|
+
(this.data.columns.length === 2 && this.axis))) {
|
|
93124
|
+
const series = !this.axis
|
|
93125
|
+
? this.data.columns[0]
|
|
93126
|
+
: this.data.columns.filter((col) => col.name !== this.axis)[0];
|
|
93127
|
+
for (let index = 0; index < this.types.length; index++) {
|
|
93128
|
+
const type = this.types[index];
|
|
93129
|
+
if (type !== KupEchartTypes.GAUSSIAN) {
|
|
93130
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.new(this.data, KupDataNewColumnTypes.DUPLICATE, {
|
|
93131
|
+
columns: [series.name],
|
|
93132
|
+
newColumn: Object.assign(Object.assign({}, series), { name: series.name + '_' + index, title: series.title + ` (${type})` }),
|
|
93133
|
+
});
|
|
93134
|
+
}
|
|
93135
|
+
}
|
|
93136
|
+
}
|
|
93137
|
+
// Checks for multiple series with the same column name, creating duplicate columns in case they are present.
|
|
93138
|
+
// When there are more types than series, new series will be automatically added to match chart types.
|
|
93139
|
+
if (this.series &&
|
|
93140
|
+
this.types &&
|
|
93141
|
+
this.series.length &&
|
|
93142
|
+
this.types.length &&
|
|
93143
|
+
this.data.columns) {
|
|
93144
|
+
if (this.types.length > this.series.length) {
|
|
93145
|
+
const lastSerie = this.series[this.series.length - 1];
|
|
93146
|
+
for (let index = this.series.length; index < this.types.length; index++) {
|
|
93147
|
+
this.series.push(lastSerie);
|
|
93148
|
+
}
|
|
93149
|
+
}
|
|
93150
|
+
const occurrences = {};
|
|
93151
|
+
for (let index = 0; index < this.series.length; index++) {
|
|
93152
|
+
const serie = this.series[index];
|
|
93153
|
+
if (Object.keys(occurrences).includes(serie)) {
|
|
93154
|
+
occurrences[serie].push(index);
|
|
93155
|
+
}
|
|
93156
|
+
else {
|
|
93157
|
+
occurrences[serie] = [index];
|
|
93158
|
+
}
|
|
93159
|
+
}
|
|
93160
|
+
for (const key in occurrences) {
|
|
93161
|
+
const indexes = occurrences[key];
|
|
93162
|
+
for (let index = 1; indexes.length > 1 && index < indexes.length; index++) {
|
|
93163
|
+
const seriesIndex = indexes[index];
|
|
93164
|
+
const column = __classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.find(this.data, { name: this.series[seriesIndex] })[0];
|
|
93165
|
+
const newName = column.name + '_' + index;
|
|
93166
|
+
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").data.column.new(this.data, KupDataNewColumnTypes.DUPLICATE, {
|
|
93167
|
+
columns: [column.name],
|
|
93168
|
+
newColumn: Object.assign(Object.assign({}, column), { name: newName, title: column.title +
|
|
93169
|
+
` (${this.types[seriesIndex]})` }),
|
|
93170
|
+
});
|
|
93171
|
+
this.series[seriesIndex] = newName;
|
|
93172
|
+
}
|
|
93173
|
+
}
|
|
93174
|
+
}
|
|
93025
93175
|
};
|
|
93026
93176
|
KupEchart.style = kupEchartCss;
|
|
93027
93177
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { k as kupManagerInstance, j as KupDebugCategory } from './kup-manager-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-aeec9835.js';
|
|
2
|
+
import { k as kupManagerInstance, j as KupDebugCategory } from './kup-manager-0ab94726.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-665de00a.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -20,7 +20,7 @@ var KupFieldProps;
|
|
|
20
20
|
|
|
21
21
|
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}";
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
const KupField = class {
|
|
24
24
|
constructor(hostRef) {
|
|
25
25
|
registerInstance(this, hostRef);
|
|
26
26
|
this.kupChange = createEvent(this, "kup-field-change", 6);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { k as kupManagerInstance, j as KupDebugCategory } from './kup-manager-
|
|
3
|
-
import { g as getProps, s as setProps } from './utils-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-aeec9835.js';
|
|
2
|
+
import { k as kupManagerInstance, j as KupDebugCategory } from './kup-manager-0ab94726.js';
|
|
3
|
+
import { g as getProps, s as setProps } from './utils-35c7a90d.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Props of the kup-iframe component.
|
|
@@ -15,7 +15,7 @@ var KupIframeProps;
|
|
|
15
15
|
|
|
16
16
|
const kupIframeCss = "iframe{box-sizing:border-box;height:100%;width:100%}:host([is-iframe]){box-sizing:border-box;display:block;height:100%;width:100%}";
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
const KupIframe = class {
|
|
19
19
|
constructor(hostRef) {
|
|
20
20
|
registerInstance(this, hostRef);
|
|
21
21
|
this.kupIframeError = createEvent(this, "kup-iframe-error", 6);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { k as kupManagerInstance } from './kup-manager-
|
|
3
|
-
import { g as getProps, s as setProps } from './utils-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-aeec9835.js';
|
|
2
|
+
import { k as kupManagerInstance } from './kup-manager-0ab94726.js';
|
|
3
|
+
import { g as getProps, s as setProps } from './utils-35c7a90d.js';
|
|
4
4
|
import { c as componentWrapperId } from './GenericVariables-665de00a.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -26,7 +26,7 @@ var KupLazyRender;
|
|
|
26
26
|
|
|
27
27
|
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}";
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
const KupLazy = class {
|
|
30
30
|
constructor(hostRef) {
|
|
31
31
|
registerInstance(this, hostRef);
|
|
32
32
|
this.kupLazyLoaded = createEvent(this, "kup-lazy-loaded", 6);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, f as forceUpdate, h, H as Host, g as getElement } from './index-
|
|
2
|
-
import { k as kupManagerInstance, i as KupLanguageGeneric, j as KupDebugCategory,
|
|
1
|
+
import { r as registerInstance, f as forceUpdate, h, H as Host, g as getElement } from './index-aeec9835.js';
|
|
2
|
+
import { k as kupManagerInstance, i as KupLanguageGeneric, j as KupDebugCategory, _ as kupDropEvent, F as kupDraggableColumnAttr, $ as kupDraggableRowAttr, o as KupDropEventTypes, b as KupThemeColorValues } from './kup-manager-0ab94726.js';
|
|
3
3
|
import { F as FButtonStyling } from './f-button-declarations-b1b4cac4.js';
|
|
4
|
-
import { F as FImage } from './f-image-
|
|
5
|
-
import { g as getProps, s as setProps } from './utils-
|
|
4
|
+
import { F as FImage } from './f-image-de331954.js';
|
|
5
|
+
import { g as getProps, s as setProps } from './utils-35c7a90d.js';
|
|
6
6
|
import { c as componentWrapperId } from './GenericVariables-665de00a.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -31,7 +31,7 @@ var KupMagicBoxDisplay;
|
|
|
31
31
|
|
|
32
32
|
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)}";
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
const KupMagicBox = class {
|
|
35
35
|
constructor(hostRef) {
|
|
36
36
|
registerInstance(this, hostRef);
|
|
37
37
|
/*-------------------------------------------------*/
|
|
@@ -100,9 +100,9 @@ let KupMagicBox = class {
|
|
|
100
100
|
for (const key in KupMagicBoxDisplay) {
|
|
101
101
|
if (Object.prototype.hasOwnProperty.call(KupMagicBoxDisplay, key)) {
|
|
102
102
|
listData.push({
|
|
103
|
-
|
|
104
|
-
value: KupMagicBoxDisplay[key],
|
|
103
|
+
id: KupMagicBoxDisplay[key],
|
|
105
104
|
selected: false,
|
|
105
|
+
value: KupMagicBoxDisplay[key],
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
}
|