@hybridcore/ui 1.5.90 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AccordionDetails-DhriPVPP.js → AccordionSummary-DgAwVTk8.js} +81 -82
- package/dist/{Add-CMz4N2zT.js → Add-DJLrrVHm.js} +52 -51
- package/dist/AnimatedTheme-jnasw6rT.js +11305 -0
- package/dist/AxisRenderer-DTyLLA6c.js +3579 -0
- package/dist/AxisRendererY-C_ItLPNV.js +445 -0
- package/dist/Box-p6OtTUEo.js +30 -0
- package/dist/Bullet-DVczI2TD.js +41 -0
- package/dist/Button-CcsPEIDh.js +35 -0
- package/dist/{Button-eqWvpDuh.js → Button-CvE2gnly.js} +138 -124
- package/dist/{ButtonBase-DsX-jMQJ.js → ButtonBase-2bPw77UP.js} +5 -5
- package/dist/{CardContent-DsYqqPeJ.js → CardContent-CSHh-ZlM.js} +4 -4
- package/dist/CategoryAxis-CwnfaGc8.js +458 -0
- package/dist/{Checkbox-CrU2hpWB.js → Checkbox-CWRMFTBp.js} +12 -11
- package/dist/Circle-Cy5s-pVc.js +27 -0
- package/dist/ColorSet-C7vpNXhM.js +2957 -0
- package/dist/{ColumnSeries-BTcqshjB.js → ColumnSeries-CjgdJ2QL.js} +129 -126
- package/dist/DataProcessor-CHDO51q4.js +83 -0
- package/dist/DateAxis-YX3QNIB-.js +569 -0
- package/dist/{Delete-86TO0fMo.js → Delete-CW0UZv1m.js} +1 -1
- package/dist/{DialogContent-CqTojymQ.js → DialogContent-B3nbEbuv.js} +10 -11
- package/dist/FormControl-BLbrq4C7.js +1636 -0
- package/dist/{FormControlLabel-BrdX4R71.js → FormControlLabel-C8SPv14J.js} +8 -8
- package/dist/Hierarchy-Bihj0S61.js +925 -0
- package/dist/{IconButton-DJ-31-Fd.js → IconButton-CHwRQF-g.js} +20 -19
- package/dist/IconPlus-yPkff_Vj.js +19 -0
- package/dist/{InputAdornment-B7qEA4kN.js → InputAdornment-DLxWUE6H.js} +6 -6
- package/dist/Legend-Dp_MKfS4.js +178 -0
- package/dist/LineSeries-Uiv5o56b.js +472 -0
- package/dist/{List-DOD5kSk3.js → List-tqElle9C.js} +4 -4
- package/dist/{ListItem-r8PbsvCz.js → ListItem-CfjsIg4B.js} +9 -8
- package/dist/{MenuItem-C6qlUyV3.js → MenuItem-xZx_w7zA.js} +14 -13
- package/dist/{Modal-CkcFEpHa.js → Modal-DhPpOoGB.js} +292 -277
- package/dist/{Paper-CjqLScHA.js → Paper-2B03OBmZ.js} +47 -41
- package/dist/PieSeries-B2fW3z0s.js +693 -0
- package/dist/RoundedRectangle-CWLi2PXn.js +34 -0
- package/dist/Scrollbar-D86MJyr2.js +171 -0
- package/dist/{Select-t3ewnSdf.js → Select-BgYwkZgI.js} +2066 -1633
- package/dist/Slice-B19rbYDZ.js +261 -0
- package/dist/{Source-BESIjd9X.js → Source-BSZST_GH.js} +2472 -2445
- package/dist/{Text-Cl1H4b0h.js → Text-ChJRuaD8.js} +398 -397
- package/dist/{TextField-BQ8a50fA.js → TextField-1yCesIbH.js} +23 -25
- package/dist/Tick-2bcLyHpF.js +162 -0
- package/dist/{Typography-D1t7XuLN.js → Typography-CxbneZy_.js} +11 -11
- package/dist/Vector-BmuhQO4p.js +3606 -0
- package/dist/Vector-DfTqQEln.js +1735 -0
- package/dist/WKT-2wsDT-nq.js +2310 -0
- package/dist/XYCursor-C8WktvKM.js +362 -0
- package/dist/ZoomableContainer-DYyqwaMb.js +220 -0
- package/dist/_commonjsHelpers-BVfed4GL.js +28 -0
- package/dist/capitalize-ciszXJ7R.js +9 -0
- package/dist/components/access/helpers.js +1 -1
- package/dist/components/access/index.js +1 -1
- package/dist/components/card/index.js +6 -6
- package/dist/components/card/styled.js +1 -1
- package/dist/components/charts/_common/utils.js +20 -0
- package/dist/components/charts/candlestick/logic.js +170 -140
- package/dist/components/charts/chart-wrapper/helpers.js +27 -0
- package/dist/components/charts/chart-wrapper/index.js +44 -0
- package/dist/components/charts/chart-wrapper/logic.js +47 -0
- package/dist/components/charts/chart-wrapper/styled.js +44 -0
- package/dist/components/charts/column-line-mix/index.js +10 -0
- package/dist/components/charts/column-line-mix/logic.js +162 -0
- package/dist/components/charts/column-line-mix/styled.js +12 -0
- package/dist/components/charts/drill-down-treemap/index.js +10 -0
- package/dist/components/charts/drill-down-treemap/logic.js +391 -0
- package/dist/components/charts/drill-down-treemap/styled.js +12 -0
- package/dist/components/charts/drill-down-voronoi-treemap/index.js +10 -0
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1527 -0
- package/dist/components/charts/drill-down-voronoi-treemap/styled.js +12 -0
- package/dist/components/charts/heatmap/index.js +10 -0
- package/dist/components/charts/heatmap/logic.js +361 -0
- package/dist/components/charts/heatmap/styled.js +12 -0
- package/dist/components/charts/highlighting-line-data/logic.js +89 -256
- package/dist/components/charts/line/index.js +10 -0
- package/dist/components/charts/line/logic.js +148 -0
- package/dist/components/charts/line/styled.js +12 -0
- package/dist/components/charts/logaritmic-scale/index.js +10 -0
- package/dist/components/charts/logaritmic-scale/logic.js +119 -0
- package/dist/components/charts/logaritmic-scale/styled.js +12 -0
- package/dist/components/charts/multiple-value-axes/index.js +10 -0
- package/dist/components/charts/multiple-value-axes/logic.js +191 -0
- package/dist/components/charts/multiple-value-axes/styled.js +12 -0
- package/dist/components/charts/nested-pie/index.js +10 -0
- package/dist/components/charts/nested-pie/logic.js +110 -0
- package/dist/components/charts/nested-pie/styled.js +12 -0
- package/dist/components/charts/packed-circles/index.js +10 -0
- package/dist/components/charts/packed-circles/logic.js +423 -0
- package/dist/components/charts/packed-circles/styled.js +12 -0
- package/dist/components/charts/pie-chart/index.js +10 -0
- package/dist/components/charts/pie-chart/logic.js +70 -0
- package/dist/components/charts/pie-chart/styled.js +12 -0
- package/dist/components/charts/stacked-area-radar/index.js +10 -0
- package/dist/components/charts/stacked-area-radar/logic.js +868 -0
- package/dist/components/charts/stacked-area-radar/styled.js +12 -0
- package/dist/components/charts/stacked-column-chart/index.js +10 -0
- package/dist/components/charts/stacked-column-chart/logic.js +148 -0
- package/dist/components/charts/stacked-column-chart/styled.js +12 -0
- package/dist/components/charts/xy-chart/index.js +10 -0
- package/dist/components/charts/xy-chart/logic.js +170 -0
- package/dist/components/charts/xy-chart/styled.js +12 -0
- package/dist/components/collapsible-card/index.js +58 -32
- package/dist/components/collapsible-card/logic.js +20 -0
- package/dist/components/collapsible-card/styled.js +52 -0
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +7 -7
- package/dist/components/context-menu/index.js +153 -253
- package/dist/components/data-map/components/controls/index.js +12 -0
- package/dist/components/data-map/components/controls/styled.js +34 -0
- package/dist/components/data-map/index.js +51 -0
- package/dist/components/data-map/logic.js +108 -0
- package/dist/components/data-map/styled.js +32 -0
- package/dist/components/data-security-selectors/security-level/index.js +5 -5
- package/dist/components/date-picker-with-custom-range/index.js +9 -0
- package/dist/components/date-picker-with-custom-range/logic.js +66 -0
- package/dist/components/date-picker-with-custom-range/styled.js +43 -0
- package/dist/components/divider/index.js +18 -0
- package/dist/components/divider/logic.js +13 -0
- package/dist/components/divider/styled.js +14 -0
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- package/dist/components/geometry-picker/edit/index.js +1 -1
- package/dist/components/geometry-picker/geometry/index.js +1 -1
- package/dist/components/geometry-picker/index.js +7 -8
- package/dist/components/geometry-picker/kml/index.js +1 -1
- package/dist/components/geometry-picker/map/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +65 -62
- package/dist/components/geometry-picker/map/style.js +1 -1
- package/dist/components/heat-map/components/controls/index.js +12 -0
- package/dist/components/heat-map/components/controls/styled.js +34 -0
- package/dist/components/heat-map/components/legend/index.js +26 -0
- package/dist/components/heat-map/components/legend/styled.js +14 -0
- package/dist/components/heat-map/index.js +37 -0
- package/dist/components/heat-map/logic.js +1945 -0
- package/dist/components/heat-map/styled.js +32 -0
- package/dist/components/icon-button/index.js +22 -15
- package/dist/components/icon-button/logic.js +15 -0
- package/dist/components/icon-button/styled.js +22 -10
- package/dist/components/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +8 -7
- package/dist/components/instance-form/components/variable/index.js +8 -8
- package/dist/components/instance-form/components/variables/index.js +1 -1
- package/dist/components/instance-hierarchy-table/styled.js +1 -1
- package/dist/components/instance-variable-list/index.js +34 -29
- package/dist/components/instance-variable-list/styled.js +21 -21
- package/dist/components/instance-variable-list/variable.js +44 -74
- package/dist/components/linear-indicator/index.js +10 -67
- package/dist/components/linear-indicator/logic.js +47 -0
- package/dist/components/linear-indicator/styled.js +39 -40
- package/dist/components/map/helpers/kml.js +1 -1
- package/dist/components/map/helpers/mapbox.js +14 -14
- package/dist/components/map/helpers/ol.js +23 -19
- package/dist/components/map/helpers/wkt.js +26 -1314
- package/dist/components/map/index.js +1 -1
- package/dist/components/map/logic.js +113 -101
- package/dist/components/map/styled.js +39 -31
- package/dist/components/metric-card/MetricChart.js +50 -498
- package/dist/components/metric-card/index.js +94 -115
- package/dist/components/metric-card/logic.js +70 -131
- package/dist/components/object-profile-card/components/avatar/index.js +44 -0
- package/dist/components/object-profile-card/components/avatar/logic.js +19 -0
- package/dist/components/object-profile-card/components/avatar/styled.js +41 -0
- package/dist/components/object-profile-card/index.js +90 -0
- package/dist/components/object-profile-card/logic.js +33 -0
- package/dist/components/object-profile-card/styled.js +48 -0
- package/dist/components/paginated-list/index.js +93 -89
- package/dist/components/paginated-list/logic.js +51 -40
- package/dist/components/paginated-list/styled.js +25 -21
- package/dist/components/property-mapping/index.js +2 -2
- package/dist/components/prr-map/components/controls/index.js +12 -0
- package/dist/components/prr-map/components/controls/styled.js +34 -0
- package/dist/components/prr-map/components/legend/index.js +36 -0
- package/dist/components/prr-map/components/legend/styled.js +21 -0
- package/dist/components/prr-map/index.js +38 -0
- package/dist/components/prr-map/logic.js +104 -0
- package/dist/components/prr-map/styled.js +32 -0
- package/dist/components/range-selector/components/composite-list-range/index.js +1 -1
- package/dist/components/range-selector/components/date-range/index.js +4282 -7
- package/dist/components/range-selector/index.js +1 -1
- package/dist/components/raster-grid-map/components/controls/index.js +12 -0
- package/dist/components/raster-grid-map/components/controls/styled.js +34 -0
- package/dist/components/raster-grid-map/components/legend/index.js +14 -0
- package/dist/components/raster-grid-map/components/legend/styled.js +21 -0
- package/dist/components/raster-grid-map/helpers.js +190 -0
- package/dist/components/raster-grid-map/index.js +38 -0
- package/dist/components/raster-grid-map/logic.js +172 -0
- package/dist/components/raster-grid-map/styled.js +32 -0
- package/dist/components/search-input/index.js +62 -140
- package/dist/components/search-input/logic.js +43 -0
- package/dist/components/search-input/styled.js +33 -0
- package/dist/components/simple-pivot-table/index.js +66 -0
- package/dist/components/simple-pivot-table/logic.js +51 -0
- package/dist/components/simple-pivot-table/styled.js +45 -0
- package/dist/components/static-text/index.js +18 -0
- package/dist/components/static-text/logic.js +13 -0
- package/dist/components/static-text/styled.js +45 -0
- package/dist/components/tabs/index.js +56 -2160
- package/dist/components/tabs/logic.js +36 -0
- package/dist/components/tabs/styled.js +94 -16
- package/dist/components/tabs/tab-panel.js +11 -10
- package/dist/components/template-filters/components/tab-panel/index.js +1 -1
- package/dist/components/template-form/components/property-list/index.js +7 -7
- package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +9 -9
- package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +7 -7
- package/dist/components/template-form/index.js +5 -5
- package/dist/components/template-property-filters/property.js +5 -5
- package/dist/components/timeline/index.js +61 -0
- package/dist/components/timeline/logic.js +40 -0
- package/dist/components/timeline/styled.js +48 -0
- package/dist/components/tree-select/index.js +5 -5
- package/dist/components/treeview-filter/item-label/index.js +3 -3
- package/dist/constant-BiOGvlZc.js +21 -0
- package/dist/createReactComponent-C7L-DMHj.js +60 -0
- package/dist/{createSvgIcon-DLPYMuH1.js → createSvgIcon-BjpIhJ30.js} +30 -32
- package/dist/{createSvgIcon-OuwzpcaC.js → createSvgIcon-DrtgaibK.js} +5 -5
- package/dist/{createTheme-CNnKNxwL.js → createTheme-DYxDnE9u.js} +226 -285
- package/dist/{dialog-BE4D6swf.js → dialog-DcwXug9J.js} +6 -6
- package/dist/{helpers-DaCoWmi2.js → helpers-B4UL9NMD.js} +3 -3
- package/dist/index-BMS1Otro.js +183 -0
- package/dist/index-C__OZmYy.js +663 -0
- package/dist/{index-CGNxsLVm.js → index-CcdvNlgr.js} +7 -7
- package/dist/{index-JrtqxUdI.js → index-kCJ_Zvl8.js} +5 -5
- package/dist/index-syTc6m_V.js +1934 -0
- package/dist/index.es-CHNMhaMi.js +2067 -0
- package/dist/index.esm-BLLrbTzY.js +318 -0
- package/dist/{listItemTextClasses-CNjn41Of.js → listItemTextClasses-C3lndiXO.js} +2 -2
- package/dist/main.d.ts +1226 -358
- package/dist/main.js +141 -443
- package/dist/{has-DNclCIDV.js → math-Bvt2Ubuz.js} +220 -222
- package/dist/ol-yOE-NV0X.js +7465 -0
- package/dist/path-CNVruS--.js +84 -0
- package/dist/{property-list-form-C5hcK2y2.js → property-list-form-zZQfpR0X.js} +13 -13
- package/dist/styled-eZwjUruw.js +12 -0
- package/dist/useId-B4-oF9Mq.js +34 -0
- package/dist/useMobilePicker-BLg3Blg8.js +7589 -0
- package/dist/useThemeProps-BzzHcQyd.js +58 -0
- package/dist/{utils-CsOZUsQj.js → utils-BDNynJcd.js} +2 -2
- package/package.json +11 -2
- package/dist/AxisRendererY-kADUad00.js +0 -18370
- package/dist/Box-B1AVyJ_s.js +0 -71
- package/dist/DateAxis-CMum47iz.js +0 -924
- package/dist/Input-CoIrGZAh.js +0 -326
- package/dist/InputLabel-CBuAYyuT.js +0 -1367
- package/dist/LineSeries-CfcpoYla.js +0 -549
- package/dist/OutlinedInput-B-iZoc9l.js +0 -450
- package/dist/Tabs-Cn42Z5QI.js +0 -789
- package/dist/components/collapsible-card/style.js +0 -49
- package/dist/components/profile-card/index.js +0 -80
- package/dist/components/profile-card/logic.js +0 -33
- package/dist/components/profile-card/styled.js +0 -43
- package/dist/components/tabs/appleTabs.style.js +0 -55
- package/dist/createStyled-BGx1I94c.js +0 -352
- package/dist/createTheme-CyC5HawC.js +0 -879
- package/dist/exactProp-cjT0t_Pt.js +0 -36
- package/dist/extendSxProp-FEpqY5_S.js +0 -30
- package/dist/index-DMSHuq6l.js +0 -688
- package/dist/index-SpeaLUQD.js +0 -10963
- package/dist/ol-lGwSyEIV.js +0 -15050
- package/dist/ownerDocument-CUrv0DIK.js +0 -6
- package/dist/ownerWindow-niciwP7I.js +0 -7
- package/dist/styled-B8ugzvji.js +0 -12
- package/dist/useId-BHG98T5I.js +0 -26
- package/dist/useTheme-C15Eq8KG.js +0 -18
- package/dist/useTheme-D-uii9iX.js +0 -10
- package/dist/useThemeProps-DRP1dikX.js +0 -95
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e as D, P as M, h as V, f as X, _ as E, m as U } from "./ColorSet-C7vpNXhM.js";
|
|
2
|
+
import { b as J } from "./AxisRenderer-DTyLLA6c.js";
|
|
3
|
+
import { v as H, G as K, k as B, l as z } from "./AnimatedTheme-jnasw6rT.js";
|
|
4
|
+
import { R as q } from "./RoundedRectangle-CWLi2PXn.js";
|
|
2
5
|
class Y extends J {
|
|
3
6
|
constructor() {
|
|
4
7
|
super(...arguments), Object.defineProperty(this, "_ph", {
|
|
@@ -18,45 +21,45 @@ class Y extends J {
|
|
|
18
21
|
value: !1
|
|
19
22
|
});
|
|
20
23
|
}
|
|
21
|
-
_makeGraphics(
|
|
22
|
-
return this.makeColumn(
|
|
24
|
+
_makeGraphics(t, e) {
|
|
25
|
+
return this.makeColumn(e, t);
|
|
23
26
|
}
|
|
24
27
|
_makeFieldNames() {
|
|
25
28
|
super._makeFieldNames();
|
|
26
|
-
const
|
|
27
|
-
|
|
29
|
+
const t = this.get("xAxis"), e = this.get("yAxis"), s = "CategoryAxis", o = "ValueAxis";
|
|
30
|
+
t.isType(s) && (this.get("openCategoryXField") || (this._xOpenField = this._xField)), t.isType(o) && (this.get("openValueXField") || (this._xOpenField = this._xField)), e.isType(s) && (this.get("openCategoryYField") || (this._yOpenField = this._yField)), e.isType(o) && (this.get("openValueYField") || (this._yOpenField = this._yField));
|
|
28
31
|
}
|
|
29
32
|
_prepareChildren() {
|
|
30
33
|
super._prepareChildren();
|
|
31
|
-
const
|
|
32
|
-
if (
|
|
34
|
+
const t = this.get("xAxis"), e = this.get("yAxis"), s = this.dataItems.length, o = Math.max(0, this.startIndex() - 2), i = Math.min(this.endIndex() + 2, s - 1);
|
|
35
|
+
if (t.inited && e.inited)
|
|
33
36
|
for (let n = o; n <= i; n++) {
|
|
34
37
|
let a = this.dataItems[n];
|
|
35
38
|
this._createGraphics(a);
|
|
36
39
|
}
|
|
37
40
|
}
|
|
38
41
|
_updateChildren() {
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
+
const t = this.chart;
|
|
43
|
+
t && (this._ph = t.plotContainer.height(), this._pw = t.plotContainer.width());
|
|
44
|
+
const e = this.get("xAxis"), s = this.get("yAxis"), o = this.get("baseAxis"), i = this.columns.template;
|
|
42
45
|
this.isDirty("fill") && i.get("fill") == null && i.set("fill", this.get("fill")), this.isDirty("fillPattern") && i.get("fillPattern") == null && i.set("fillPattern", this.get("fillPattern")), this.isDirty("stroke") && i.get("stroke") == null && i.set("stroke", this.get("stroke"));
|
|
43
46
|
let n = 0, a = 0, _ = 0;
|
|
44
|
-
D(o.series, (
|
|
45
|
-
if (
|
|
46
|
-
const L =
|
|
47
|
-
L && _ == 0 && a++, !L &&
|
|
47
|
+
D(o.series, (b) => {
|
|
48
|
+
if (b instanceof Y) {
|
|
49
|
+
const L = b.get("stacked");
|
|
50
|
+
L && _ == 0 && a++, !L && b.get("clustered") && a++;
|
|
48
51
|
}
|
|
49
|
-
|
|
52
|
+
b === this && (n = a - 1), _++;
|
|
50
53
|
}), this.get("clustered") || (n = 0, a = 1), a === 0 && (a = 1, n = 0);
|
|
51
|
-
const f =
|
|
52
|
-
if (this._aLocationX0 = g + n / a * (v - g), this._aLocationX1 = g + (n + 1) / a * (v - g), this._aLocationY0 = d + n / a * (l - d), this._aLocationY1 = d + (n + 1) / a * (l - d),
|
|
54
|
+
const f = e.get("renderer"), x = s.get("renderer"), c = "cellStartLocation", h = "cellEndLocation", g = f.get(c, 0), v = f.get(h, 1), d = x.get(c, 0), l = x.get(h, 1);
|
|
55
|
+
if (this._aLocationX0 = g + n / a * (v - g), this._aLocationX1 = g + (n + 1) / a * (v - g), this._aLocationY0 = d + n / a * (l - d), this._aLocationY1 = d + (n + 1) / a * (l - d), e.inited && s.inited) {
|
|
53
56
|
if (this._axesDirty || this._valuesDirty || this._stackDirty || this.isDirty("vcx") || this.isDirty("vcy") || this._sizeDirty) {
|
|
54
|
-
const
|
|
55
|
-
let L = Math.max(0, this.startIndex() - 2),
|
|
57
|
+
const b = this.dataItems.length;
|
|
58
|
+
let L = Math.max(0, this.startIndex() - 2), P = Math.min(this.endIndex() + 2, b - 1);
|
|
56
59
|
for (let r = 0; r < L; r++)
|
|
57
60
|
this._toggleColumn(this.dataItems[r], !1);
|
|
58
61
|
let y = this.dataItems[L];
|
|
59
|
-
for (let r = L; r <=
|
|
62
|
+
for (let r = L; r <= P; r++) {
|
|
60
63
|
let C = this.dataItems[r];
|
|
61
64
|
if (C.get("valueX") != null && C.get("valueY") != null) {
|
|
62
65
|
if (y = C, r > 0 && L > 0)
|
|
@@ -73,13 +76,13 @@ class Y extends J {
|
|
|
73
76
|
}
|
|
74
77
|
this._beforeColumnsDraw();
|
|
75
78
|
let A = 0;
|
|
76
|
-
s.isType("CategoryAxis") &&
|
|
77
|
-
for (let r = L; r <=
|
|
79
|
+
s.isType("CategoryAxis") && e.isType("CategoryAxis") ? A = 2 : e === o ? A = 0 : s === o && (A = 1);
|
|
80
|
+
for (let r = L; r <= P; r++) {
|
|
78
81
|
let C = this.dataItems[r];
|
|
79
82
|
this._updateGraphics(C, y, A), C.get("valueX") != null && C.get("valueY") != null && (y = C);
|
|
80
83
|
}
|
|
81
84
|
this._afterColumnsDraw();
|
|
82
|
-
for (let r =
|
|
85
|
+
for (let r = P + 1; r < b; r++)
|
|
83
86
|
this._toggleColumn(this.dataItems[r], !1);
|
|
84
87
|
this._columnsUpdated = !0;
|
|
85
88
|
}
|
|
@@ -94,41 +97,41 @@ class Y extends J {
|
|
|
94
97
|
}
|
|
95
98
|
_afterColumnsDraw() {
|
|
96
99
|
}
|
|
97
|
-
_createGraphics(
|
|
98
|
-
let
|
|
99
|
-
if (!
|
|
100
|
-
|
|
101
|
-
const s =
|
|
100
|
+
_createGraphics(t) {
|
|
101
|
+
let e = t.get("graphics");
|
|
102
|
+
if (!e) {
|
|
103
|
+
e = this._makeGraphics(this.columns, t), t.set("graphics", e), e._setDataItem(t);
|
|
104
|
+
const s = t.get("legendDataItem");
|
|
102
105
|
if (s) {
|
|
103
106
|
const i = s.get("markerRectangle");
|
|
104
107
|
if (i) {
|
|
105
108
|
const n = i.states.lookup("default");
|
|
106
|
-
D(
|
|
107
|
-
const _ =
|
|
109
|
+
D(H, (a) => {
|
|
110
|
+
const _ = e.get(a, this.get(a));
|
|
108
111
|
i.set(a, _), n.set(a, _);
|
|
109
112
|
});
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
|
-
let o =
|
|
115
|
+
let o = t.get("rangeGraphics");
|
|
113
116
|
o && D(o, (i) => {
|
|
114
117
|
i.dispose();
|
|
115
|
-
}), o = [],
|
|
116
|
-
const n = i.container, a = this._makeGraphics(i.columns,
|
|
118
|
+
}), o = [], t.setRaw("rangeGraphics", o), this.axisRanges.each((i) => {
|
|
119
|
+
const n = i.container, a = this._makeGraphics(i.columns, t);
|
|
117
120
|
o && o.push(a), a.setPrivate("list", i.columns), n.children.push(a);
|
|
118
121
|
});
|
|
119
122
|
}
|
|
120
123
|
}
|
|
121
|
-
createAxisRange(
|
|
122
|
-
return D(this.dataItems, (
|
|
123
|
-
const s =
|
|
124
|
-
s && (s.dispose(),
|
|
125
|
-
}), super.createAxisRange(
|
|
124
|
+
createAxisRange(t) {
|
|
125
|
+
return D(this.dataItems, (e) => {
|
|
126
|
+
const s = e.get("graphics");
|
|
127
|
+
s && (s.dispose(), e.set("graphics", void 0));
|
|
128
|
+
}), super.createAxisRange(t);
|
|
126
129
|
}
|
|
127
|
-
_updateGraphics(
|
|
128
|
-
let o =
|
|
129
|
-
const i = this._xField, n = this._yField, a =
|
|
130
|
+
_updateGraphics(t, e, s) {
|
|
131
|
+
let o = t.get("graphics");
|
|
132
|
+
const i = this._xField, n = this._yField, a = t.get(i), _ = t.get(n), f = this.get("exactLocationX", !1);
|
|
130
133
|
if (a != null && _ != null) {
|
|
131
|
-
const x = this._xOpenField, c = this._yOpenField, h = this.get("locationX",
|
|
134
|
+
const x = this._xOpenField, c = this._yOpenField, h = this.get("locationX", t.get("locationX", 0.5)), g = this.get("locationY", t.get("locationY", 0.5)), v = this.get("openLocationX", t.get("openLocationX", h)), d = this.get("openLocationY", t.get("openLocationY", g)), l = o.get("width"), b = o.get("height"), L = this.get("stacked"), P = this.get("xAxis"), y = this.get("yAxis"), A = P.get("start"), r = P.get("end"), C = y.get("start"), G = y.get("end");
|
|
132
135
|
let u, O, k, F, T = this.get("vcy", 1), R = this.get("vcx", 1), S = !1, j = !1;
|
|
133
136
|
if (s == 0) {
|
|
134
137
|
let m = this._aLocationX0 + v - 0.5, w = this._aLocationX1 + h - 0.5;
|
|
@@ -136,50 +139,50 @@ class Y extends J {
|
|
|
136
139
|
let p = (w - m) * (1 - l.value) / 2;
|
|
137
140
|
m += p, w -= p;
|
|
138
141
|
}
|
|
139
|
-
if (u =
|
|
140
|
-
F = y.getDataItemPositionY(
|
|
142
|
+
if (u = P.getDataItemPositionX(t, x, m, R, f), O = P.getDataItemPositionX(t, i, w, R, f), k = y.getDataItemPositionY(t, n, g, T), this._yOpenField !== this._yField)
|
|
143
|
+
F = y.getDataItemPositionY(t, c, d, T);
|
|
141
144
|
else if (L) {
|
|
142
|
-
let p =
|
|
145
|
+
let p = t.get("stackToItemY");
|
|
143
146
|
p ? F = y.getDataItemPositionY(p, n, d, p.component.get("vcy")) : F = y.basePosition();
|
|
144
147
|
} else
|
|
145
148
|
F = y.basePosition();
|
|
146
|
-
|
|
149
|
+
t.setRaw("point", { x: u + (O - u) / 2, y: k }), j = !0;
|
|
147
150
|
} else if (s == 1) {
|
|
148
151
|
let m = this._aLocationY0 + d - 0.5, w = this._aLocationY1 + g - 0.5;
|
|
149
|
-
if (
|
|
150
|
-
let p = (w - m) * (1 -
|
|
152
|
+
if (b instanceof M) {
|
|
153
|
+
let p = (w - m) * (1 - b.value) / 2;
|
|
151
154
|
m += p, w -= p;
|
|
152
155
|
}
|
|
153
|
-
if (k = y.getDataItemPositionY(
|
|
154
|
-
u =
|
|
156
|
+
if (k = y.getDataItemPositionY(t, c, m, T), F = y.getDataItemPositionY(t, n, w, T), O = P.getDataItemPositionX(t, i, h, R, f), this._xOpenField !== this._xField)
|
|
157
|
+
u = P.getDataItemPositionX(t, x, v, R, f);
|
|
155
158
|
else if (L) {
|
|
156
|
-
let p =
|
|
157
|
-
p ? u =
|
|
159
|
+
let p = t.get("stackToItemX");
|
|
160
|
+
p ? u = P.getDataItemPositionX(p, i, v, p.component.get("vcx"), f) : u = P.basePosition();
|
|
158
161
|
} else
|
|
159
|
-
u =
|
|
160
|
-
S = !0,
|
|
162
|
+
u = P.basePosition();
|
|
163
|
+
S = !0, t.setRaw("point", { x: O, y: k + (F - k) / 2 });
|
|
161
164
|
} else if (s == 2) {
|
|
162
165
|
let m = this._aLocationX0 + v - 0.5, w = this._aLocationX1 + h - 0.5;
|
|
163
166
|
if (l instanceof M) {
|
|
164
167
|
let p = (w - m) * (1 - l.value) / 2;
|
|
165
168
|
m += p, w -= p;
|
|
166
169
|
}
|
|
167
|
-
if (u =
|
|
168
|
-
let p = (w - m) * (1 -
|
|
170
|
+
if (u = P.getDataItemPositionX(t, x, m, R), O = P.getDataItemPositionX(t, i, w, R), m = this._aLocationY0 + d - 0.5, w = this._aLocationY1 + g - 0.5, b instanceof M) {
|
|
171
|
+
let p = (w - m) * (1 - b.value) / 2;
|
|
169
172
|
m += p, w -= p;
|
|
170
173
|
}
|
|
171
|
-
k = y.getDataItemPositionY(
|
|
174
|
+
k = y.getDataItemPositionY(t, c, m, T), F = y.getDataItemPositionY(t, n, w, T), t.setRaw("point", { x: u + (O - u) / 2, y: k + (F - k) / 2 });
|
|
172
175
|
}
|
|
173
|
-
this._applyGraphicsStates(
|
|
174
|
-
let W =
|
|
176
|
+
this._applyGraphicsStates(t, e), this._updateSeriesGraphics(t, o, u, O, k, F, S, j), u < A && O < A || u > r && O > r || k < C && F <= C || k >= G && F > G || V(u) || V(k) ? this._toggleColumn(t, !1) : this._toggleColumn(t, !0);
|
|
177
|
+
let W = t.get("rangeGraphics");
|
|
175
178
|
W && D(W, (m) => {
|
|
176
|
-
this._updateSeriesGraphics(
|
|
179
|
+
this._updateSeriesGraphics(t, m, u, O, k, F, S, j);
|
|
177
180
|
});
|
|
178
181
|
} else
|
|
179
|
-
this._toggleColumn(
|
|
182
|
+
this._toggleColumn(t, !1);
|
|
180
183
|
}
|
|
181
|
-
_updateSeriesGraphics(
|
|
182
|
-
const f =
|
|
184
|
+
_updateSeriesGraphics(t, e, s, o, i, n, a, _) {
|
|
185
|
+
const f = e.get("width"), x = e.get("height"), c = e.get("maxWidth"), h = e.get("maxHeight"), g = this.getPoint(s, i), v = this.getPoint(o, n), d = t.get("point");
|
|
183
186
|
if (d) {
|
|
184
187
|
const l = this.getPoint(d.x, d.y);
|
|
185
188
|
d.x = l.x + this._x, d.y = l.y + this._y;
|
|
@@ -200,29 +203,29 @@ class Y extends J {
|
|
|
200
203
|
const l = (n - i - h) / 2;
|
|
201
204
|
i += l, n -= l;
|
|
202
205
|
}
|
|
203
|
-
this.get("adjustBulletPosition") && (a && (o = Math.min(Math.max(0, o), this._pw), s = Math.min(Math.max(0, s), this._pw)), _ && (i = Math.min(Math.max(0, i), this._ph), n = Math.min(Math.max(0, n), this._ph))),
|
|
206
|
+
this.get("adjustBulletPosition") && (a && (o = Math.min(Math.max(0, o), this._pw), s = Math.min(Math.max(0, s), this._pw)), _ && (i = Math.min(Math.max(0, i), this._ph), n = Math.min(Math.max(0, n), this._ph))), t.setRaw("left", s), t.setRaw("right", o), t.setRaw("top", i), t.setRaw("bottom", n), e.setPrivate("width", o - s), e.setPrivate("height", n - i), e.set("x", s), e.set("y", n - (n - i));
|
|
204
207
|
}
|
|
205
208
|
_handleDataSetChange() {
|
|
206
|
-
super._handleDataSetChange(), D(this._dataItems, (
|
|
207
|
-
this._toggleColumn(
|
|
209
|
+
super._handleDataSetChange(), D(this._dataItems, (t) => {
|
|
210
|
+
this._toggleColumn(t, !1);
|
|
208
211
|
});
|
|
209
212
|
}
|
|
210
|
-
_applyGraphicsStates(
|
|
211
|
-
const s =
|
|
213
|
+
_applyGraphicsStates(t, e) {
|
|
214
|
+
const s = t.get("graphics"), o = s.states.lookup("dropFromOpen"), i = s.states.lookup("riseFromOpen"), n = s.states.lookup("dropFromPrevious"), a = s.states.lookup("riseFromPrevious");
|
|
212
215
|
if (o || n || i || a) {
|
|
213
216
|
const _ = this.get("xAxis"), f = this.get("yAxis"), x = this.get("baseAxis");
|
|
214
217
|
let c, h, g;
|
|
215
|
-
x === _ && f.isType("ValueAxis") ? (c =
|
|
218
|
+
x === _ && f.isType("ValueAxis") ? (c = t.get(this._yOpenField), h = t.get(this._yField), g = e.get(this._yField)) : x === f && _.isType("ValueAxis") && (c = t.get(this._xOpenField), h = t.get(this._xField), g = e.get(this._xField)), X(c) && X(h) && (h < c ? o && o.apply() : i && i.apply(), X(g) && (h < g ? n && n.apply() : a && a.apply()));
|
|
216
219
|
}
|
|
217
220
|
}
|
|
218
221
|
/**
|
|
219
222
|
* @ignore
|
|
220
223
|
*/
|
|
221
|
-
disposeDataItem(
|
|
222
|
-
super.disposeDataItem(
|
|
223
|
-
const
|
|
224
|
-
|
|
225
|
-
const s =
|
|
224
|
+
disposeDataItem(t) {
|
|
225
|
+
super.disposeDataItem(t);
|
|
226
|
+
const e = t.get("graphics");
|
|
227
|
+
e && (this.columns.removeValue(e), e.dispose());
|
|
228
|
+
const s = t.get("rangeGraphics");
|
|
226
229
|
s && D(s, (o) => {
|
|
227
230
|
const i = o.getPrivate("list");
|
|
228
231
|
i && i.removeValue(o), o.dispose();
|
|
@@ -235,29 +238,29 @@ class Y extends J {
|
|
|
235
238
|
* @param duration Animation duration in milliseconds
|
|
236
239
|
* @return Promise
|
|
237
240
|
*/
|
|
238
|
-
hideDataItem(
|
|
241
|
+
hideDataItem(t, e) {
|
|
239
242
|
const s = Object.create(null, {
|
|
240
243
|
hideDataItem: { get: () => super.hideDataItem }
|
|
241
244
|
});
|
|
242
|
-
return
|
|
243
|
-
const o = [s.hideDataItem.call(this,
|
|
244
|
-
i && o.push(i.hide(
|
|
245
|
-
const n =
|
|
245
|
+
return E(this, void 0, void 0, function* () {
|
|
246
|
+
const o = [s.hideDataItem.call(this, t, e)], i = t.get("graphics");
|
|
247
|
+
i && o.push(i.hide(e));
|
|
248
|
+
const n = t.get("rangeGraphics");
|
|
246
249
|
n && D(n, (a) => {
|
|
247
|
-
o.push(a.hide(
|
|
250
|
+
o.push(a.hide(e));
|
|
248
251
|
}), yield Promise.all(o);
|
|
249
252
|
});
|
|
250
253
|
}
|
|
251
|
-
_toggleColumn(
|
|
252
|
-
const s =
|
|
253
|
-
s && s.setPrivate("visible",
|
|
254
|
-
const o =
|
|
254
|
+
_toggleColumn(t, e) {
|
|
255
|
+
const s = t.get("graphics");
|
|
256
|
+
s && s.setPrivate("visible", e);
|
|
257
|
+
const o = t.get("rangeGraphics");
|
|
255
258
|
o && D(o, (n) => {
|
|
256
|
-
n.setPrivate("visible",
|
|
259
|
+
n.setPrivate("visible", e);
|
|
257
260
|
});
|
|
258
|
-
const i =
|
|
261
|
+
const i = t.bullets;
|
|
259
262
|
i && D(i, (n) => {
|
|
260
|
-
n.setPrivate("hidden", !
|
|
263
|
+
n.setPrivate("hidden", !e);
|
|
261
264
|
});
|
|
262
265
|
}
|
|
263
266
|
/**
|
|
@@ -267,49 +270,49 @@ class Y extends J {
|
|
|
267
270
|
* @param duration Animation duration in milliseconds
|
|
268
271
|
* @return Promise
|
|
269
272
|
*/
|
|
270
|
-
showDataItem(
|
|
273
|
+
showDataItem(t, e) {
|
|
271
274
|
const s = Object.create(null, {
|
|
272
275
|
showDataItem: { get: () => super.showDataItem }
|
|
273
276
|
});
|
|
274
|
-
return
|
|
275
|
-
const o = [s.showDataItem.call(this,
|
|
276
|
-
i && o.push(i.show(
|
|
277
|
-
const n =
|
|
277
|
+
return E(this, void 0, void 0, function* () {
|
|
278
|
+
const o = [s.showDataItem.call(this, t, e)], i = t.get("graphics");
|
|
279
|
+
i && o.push(i.show(e));
|
|
280
|
+
const n = t.get("rangeGraphics");
|
|
278
281
|
n && D(n, (a) => {
|
|
279
|
-
o.push(a.show(
|
|
282
|
+
o.push(a.show(e));
|
|
280
283
|
}), yield Promise.all(o);
|
|
281
284
|
});
|
|
282
285
|
}
|
|
283
286
|
/**
|
|
284
287
|
* @ignore
|
|
285
288
|
*/
|
|
286
|
-
updateLegendMarker(
|
|
287
|
-
let
|
|
288
|
-
if (this.get("useLastColorForLegendMarker") && !
|
|
289
|
+
updateLegendMarker(t) {
|
|
290
|
+
let e = this.get("legendDataItem");
|
|
291
|
+
if (this.get("useLastColorForLegendMarker") && !t) {
|
|
289
292
|
const s = this.dataItems[this.endIndex() - 1];
|
|
290
|
-
s && (
|
|
293
|
+
s && (t = s);
|
|
291
294
|
}
|
|
292
|
-
if (
|
|
295
|
+
if (e) {
|
|
293
296
|
let s = this.columns.template;
|
|
294
|
-
if (
|
|
295
|
-
let i =
|
|
297
|
+
if (t) {
|
|
298
|
+
let i = t.get("graphics");
|
|
296
299
|
i && (s = i);
|
|
297
300
|
}
|
|
298
|
-
const o =
|
|
299
|
-
if (o && !
|
|
301
|
+
const o = e.get("markerRectangle");
|
|
302
|
+
if (o && !e.get("itemContainer").get("disabled")) {
|
|
300
303
|
const i = o.states.lookup("default");
|
|
301
|
-
D(
|
|
304
|
+
D(H, (n) => {
|
|
302
305
|
const a = s.get(n, this.get(n));
|
|
303
306
|
o.set(n, a), i.set(n, a);
|
|
304
307
|
});
|
|
305
308
|
}
|
|
306
309
|
}
|
|
307
310
|
}
|
|
308
|
-
_getTooltipTarget(
|
|
311
|
+
_getTooltipTarget(t) {
|
|
309
312
|
if (this.get("seriesTooltipTarget") == "bullet")
|
|
310
|
-
return super._getTooltipTarget(
|
|
311
|
-
let
|
|
312
|
-
return
|
|
313
|
+
return super._getTooltipTarget(t);
|
|
314
|
+
let e = t.get("graphics");
|
|
315
|
+
return e || this;
|
|
313
316
|
}
|
|
314
317
|
}
|
|
315
318
|
Object.defineProperty(Y, "className", {
|
|
@@ -340,46 +343,46 @@ class N extends Y {
|
|
|
340
343
|
enumerable: !0,
|
|
341
344
|
configurable: !0,
|
|
342
345
|
writable: !0,
|
|
343
|
-
value: this.addDisposer(new
|
|
346
|
+
value: this.addDisposer(new B(z.new({}), () => q._new(this._root, {
|
|
344
347
|
position: "absolute",
|
|
345
|
-
themeTags:
|
|
348
|
+
themeTags: U(this.columns.template.get("themeTags", []), ["series", "column"])
|
|
346
349
|
}, [this.columns.template])))
|
|
347
350
|
});
|
|
348
351
|
}
|
|
349
352
|
/**
|
|
350
353
|
* @ignore
|
|
351
354
|
*/
|
|
352
|
-
makeColumn(
|
|
353
|
-
const s =
|
|
354
|
-
return this.get("turboMode") ? s.virtualParent = this.chart : this.mainContainer.children.push(s), s._setDataItem(
|
|
355
|
+
makeColumn(t, e) {
|
|
356
|
+
const s = e.make();
|
|
357
|
+
return this.get("turboMode") ? s.virtualParent = this.chart : this.mainContainer.children.push(s), s._setDataItem(t), e.push(s), s;
|
|
355
358
|
}
|
|
356
|
-
_processAxisRange(
|
|
357
|
-
super._processAxisRange(
|
|
359
|
+
_processAxisRange(t) {
|
|
360
|
+
super._processAxisRange(t), t.columns = new B(z.new({}), () => q._new(this._root, {
|
|
358
361
|
position: "absolute",
|
|
359
|
-
themeTags:
|
|
360
|
-
}, [this.columns.template,
|
|
362
|
+
themeTags: U(t.columns.template.get("themeTags", []), ["series", "column"])
|
|
363
|
+
}, [this.columns.template, t.columns.template]));
|
|
361
364
|
}
|
|
362
365
|
_beforeColumnsDraw() {
|
|
363
366
|
this.allColumnsData = [];
|
|
364
367
|
}
|
|
365
368
|
_afterColumnsDraw() {
|
|
366
|
-
this.get("turboMode") && this.allColumns.set("draw", (
|
|
367
|
-
|
|
368
|
-
const s =
|
|
369
|
-
|
|
369
|
+
this.get("turboMode") && this.allColumns.set("draw", (t) => {
|
|
370
|
+
t.clear(), D(this.allColumnsData, (e) => {
|
|
371
|
+
const s = e.width, o = e.height, i = e.x, n = e.y, a = e.stroke, _ = e.fill, f = e.strokeWidth, x = e.strokeOpacity, c = e.fillOpacity;
|
|
372
|
+
t.beginFill(_, c), t.beginPath(), t.lineStyle(f, a, x), t.drawRect(i, n, s, o), t.endStroke(), t.endFill();
|
|
370
373
|
});
|
|
371
374
|
});
|
|
372
375
|
}
|
|
373
|
-
_updateSeriesGraphics(
|
|
376
|
+
_updateSeriesGraphics(t, e, s, o, i, n, a, _) {
|
|
374
377
|
if (this.get("turboMode")) {
|
|
375
|
-
const f =
|
|
378
|
+
const f = e.get("stroke"), x = e.get("fillOpacity", 1), c = e.get("strokeOpacity", 1), h = e.get("strokeWidth", 1), g = e.get("fill"), v = this.getPoint(s, i), d = this.getPoint(o, n), l = t.get("point");
|
|
376
379
|
if (l) {
|
|
377
|
-
const
|
|
378
|
-
l.x =
|
|
380
|
+
const b = this.getPoint(l.x, l.y);
|
|
381
|
+
l.x = b.x + this._x, l.y = b.y + this._y;
|
|
379
382
|
}
|
|
380
|
-
s = v.x, o = d.x, i = v.y, n = d.y,
|
|
383
|
+
s = v.x, o = d.x, i = v.y, n = d.y, t.setRaw("left", s), t.setRaw("right", o), t.setRaw("top", i), t.setRaw("bottom", n), this.allColumnsData.push({ width: o - s, height: n - i, x: s, y: i, stroke: f, fill: g, strokeWidth: h, strokeOpacity: c, fillOpacity: x });
|
|
381
384
|
} else
|
|
382
|
-
super._updateSeriesGraphics(
|
|
385
|
+
super._updateSeriesGraphics(t, e, s, o, i, n, a, _);
|
|
383
386
|
}
|
|
384
387
|
}
|
|
385
388
|
Object.defineProperty(N, "className", {
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { E as c, e as h, q as a, r as l, t as o, u, v as n } from "./ColorSet-C7vpNXhM.js";
|
|
2
|
+
class p extends c {
|
|
3
|
+
constructor() {
|
|
4
|
+
super(...arguments), Object.defineProperty(this, "_checkDates", {
|
|
5
|
+
enumerable: !0,
|
|
6
|
+
configurable: !0,
|
|
7
|
+
writable: !0,
|
|
8
|
+
value: !1
|
|
9
|
+
}), Object.defineProperty(this, "_checkNumbers", {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
configurable: !0,
|
|
12
|
+
writable: !0,
|
|
13
|
+
value: !1
|
|
14
|
+
}), Object.defineProperty(this, "_checkColors", {
|
|
15
|
+
enumerable: !0,
|
|
16
|
+
configurable: !0,
|
|
17
|
+
writable: !0,
|
|
18
|
+
value: !1
|
|
19
|
+
}), Object.defineProperty(this, "_checkEmpty", {
|
|
20
|
+
enumerable: !0,
|
|
21
|
+
configurable: !0,
|
|
22
|
+
writable: !0,
|
|
23
|
+
value: !1
|
|
24
|
+
}), Object.defineProperty(this, "_checkDeep", {
|
|
25
|
+
enumerable: !0,
|
|
26
|
+
configurable: !0,
|
|
27
|
+
writable: !0,
|
|
28
|
+
value: !1
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
_afterNew() {
|
|
32
|
+
super._afterNew(), this._checkFeatures(), this.on("dateFields", () => this._checkFeatures()), this.on("dateFormat", () => this._checkFeatures()), this.on("numericFields", () => this._checkFeatures()), this.on("colorFields", () => this._checkFeatures()), this.on("emptyAs", () => this._checkFeatures());
|
|
33
|
+
}
|
|
34
|
+
_checkFeatures() {
|
|
35
|
+
(this.isDirty("dateFields") || this.isDirty("dateFormat")) && (this._checkDates = this.get("dateFields") && this.get("dateFields").length > 0), this.isDirty("numericFields") && (this._checkNumbers = this.get("numericFields") && this.get("numericFields").length > 0), this.isDirty("colorFields") && (this._checkColors = this.get("colorFields") && this.get("colorFields").length > 0), this.isDirty("emptyAs") && (this._checkEmpty = this.get("emptyAs") != null), this._checkDeepFeatures();
|
|
36
|
+
}
|
|
37
|
+
_checkDeepFeatures() {
|
|
38
|
+
const e = [];
|
|
39
|
+
h(["dateFields", "numericFields", "colorFields"], (t) => {
|
|
40
|
+
h(this.get(t, []), (s) => {
|
|
41
|
+
const i = s.split(".");
|
|
42
|
+
for (i.pop(); i.length > 0; )
|
|
43
|
+
e.push(i.join(".")), i.pop();
|
|
44
|
+
});
|
|
45
|
+
}), this._checkDeep = e.length > 0, this.setPrivate("deepFields", e);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Processess entire array of data.
|
|
49
|
+
*
|
|
50
|
+
* NOTE: calling this will modify original array!
|
|
51
|
+
*/
|
|
52
|
+
processMany(e) {
|
|
53
|
+
a(e) && (this._checkDates || this._checkNumbers || this._checkColors || this._checkEmpty) && h(e, (t) => {
|
|
54
|
+
this.processRow(t);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Processes a row (object) of data.
|
|
59
|
+
*
|
|
60
|
+
* NOTE: calling this will modify values of the original object!
|
|
61
|
+
*/
|
|
62
|
+
processRow(e, t = "") {
|
|
63
|
+
l(e, (s, i) => {
|
|
64
|
+
const r = t + s;
|
|
65
|
+
this._checkEmpty && (e[s] = this._maybeToEmpty(e[s])), this._checkNumbers && (e[s] = this._maybeToNumber(r, e[s])), this._checkDates && (e[s] = this._maybeToDate(r, e[s])), this._checkColors && (e[s] = this._maybeToColor(r, e[s])), this._checkDeep && this.getPrivate("deepFields", []).indexOf(r) !== -1 && n(e[s]) && this.processRow(e[s], r + ".");
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
_maybeToNumber(e, t) {
|
|
69
|
+
return this.get("numericFields").indexOf(e) !== -1 ? o(t) : t;
|
|
70
|
+
}
|
|
71
|
+
_maybeToDate(e, t) {
|
|
72
|
+
return this.get("dateFields").indexOf(e) !== -1 ? this._root.dateFormatter.parse(t, this.get("dateFormat", "")).getTime() : t;
|
|
73
|
+
}
|
|
74
|
+
_maybeToEmpty(e) {
|
|
75
|
+
return (e == null || e == "") && this.get("emptyAs") != null ? this.get("emptyAs") : e;
|
|
76
|
+
}
|
|
77
|
+
_maybeToColor(e, t) {
|
|
78
|
+
return this.get("colorFields").indexOf(e) !== -1 ? u.fromAny(t) : t;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
export {
|
|
82
|
+
p as D
|
|
83
|
+
};
|