@arcgis/charts-components 5.2.0-next.124 → 5.2.0-next.125
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/cdn/{CQLILZFZ.js → 2FQ6G6B6.js} +1 -1
- package/dist/cdn/{IYVSAR3D.js → 2FYXFIR4.js} +1 -1
- package/dist/cdn/2QWB5XRH.js +2 -0
- package/dist/cdn/{ZRYPRUVT.js → 2VX44HPW.js} +1 -1
- package/dist/cdn/{IKH7UGJM.js → 3GN7VR32.js} +1 -1
- package/dist/cdn/{WTMEWLUJ.js → 3W4HHL2V.js} +1 -1
- package/dist/cdn/{ELXF6XQQ.js → 4PUOMS4A.js} +1 -1
- package/dist/cdn/{U2O4NGY5.js → 4RLQLQVB.js} +1 -1
- package/dist/cdn/{H4UKMJ3M.js → 4SNP6HTM.js} +1 -1
- package/dist/cdn/{OO4U6KKQ.js → 54265YSL.js} +1 -1
- package/dist/cdn/{MQI4ZLAS.js → 5434ASC3.js} +1 -1
- package/dist/cdn/{GCPA466R.js → 56INS6ML.js} +1 -1
- package/dist/cdn/{N4YN5XHL.js → 5E6TR5OW.js} +1 -1
- package/dist/cdn/{STFT35NP.js → 5XXBOV4Q.js} +1 -1
- package/dist/cdn/6462KIIY.js +2 -0
- package/dist/cdn/{BUXZ2NBS.js → 6ESCKCYY.js} +1 -1
- package/dist/cdn/{EXCMERSU.js → 6H4PWDET.js} +1 -1
- package/dist/cdn/77VLHOOC.js +2 -0
- package/dist/cdn/{Q4HYSXEK.js → 77YJOTCX.js} +1 -1
- package/dist/cdn/{KYQWN5DR.js → 7OESRD4R.js} +1 -1
- package/dist/cdn/7PKJNQL7.js +2 -0
- package/dist/cdn/{ZP4T262N.js → B44MEIQW.js} +1 -1
- package/dist/cdn/{BQMUOJL7.js → B5XYZKLU.js} +1 -1
- package/dist/cdn/{RPUEIRTH.js → BGIUDL2K.js} +1 -1
- package/dist/cdn/{IJKFUMKC.js → C3PVEL66.js} +1 -1
- package/dist/cdn/{IJR65YQB.js → CSN6MJ4B.js} +1 -1
- package/dist/cdn/{CR2U5KNC.js → DPRUAGVZ.js} +1 -1
- package/dist/cdn/{O7NFMOTE.js → ENG2F3IQ.js} +1 -1
- package/dist/cdn/{JSFNIFWE.js → EP5BMXUY.js} +1 -1
- package/dist/cdn/{3IXFIA6D.js → ETDHU5U4.js} +19 -19
- package/dist/cdn/EU6AJ57R.js +2 -0
- package/dist/cdn/{HFFXDWQL.js → F2MSD3QS.js} +1 -1
- package/dist/cdn/{DYCZXSJG.js → F2WEYOKD.js} +1 -1
- package/dist/cdn/{WSSQILRB.js → F3UFKEVT.js} +1 -1
- package/dist/cdn/{5SYHQWPP.js → FASMW7S2.js} +1 -1
- package/dist/cdn/{JFXCJ6HT.js → FH66KPN5.js} +1 -1
- package/dist/cdn/{A5CQKJHA.js → G6DJZSMC.js} +1 -1
- package/dist/cdn/{QSJV77RB.js → H5QMZ65D.js} +1 -1
- package/dist/cdn/{JO4YQAFF.js → HDHS7RTZ.js} +1 -1
- package/dist/cdn/{353KIT3L.js → HPO7UHSN.js} +1 -1
- package/dist/cdn/{METDO2QG.js → IMQYTRSY.js} +1 -1
- package/dist/cdn/{4GHJREG3.js → J5E4KON6.js} +1 -1
- package/dist/cdn/{UDQP2AFN.js → J65VM5UV.js} +1 -1
- package/dist/cdn/{VP5MGMQP.js → JPDI5NK6.js} +1 -1
- package/dist/cdn/{IS7KQGMM.js → JSJ2OXVP.js} +1 -1
- package/dist/cdn/{IGOJGDYE.js → JSUH5PFI.js} +1 -1
- package/dist/cdn/{WXO3YJ3T.js → KAVJHTFB.js} +1 -1
- package/dist/cdn/{6CPDF77P.js → KCEJQPTE.js} +1 -1
- package/dist/cdn/{DCIQMSQ2.js → KDMYI6HZ.js} +1 -1
- package/dist/cdn/{RDCTBV2Q.js → KHFNTBX4.js} +1 -1
- package/dist/cdn/{MFJINTU5.js → KHV5W5KY.js} +1 -1
- package/dist/cdn/{5V33DFCG.js → KIUBFEUI.js} +1 -1
- package/dist/cdn/{M6L3GCVZ.js → KKHTRL5K.js} +1 -1
- package/dist/cdn/{C6YIO7EV.js → LHQ5R7PX.js} +1 -1
- package/dist/cdn/{V4VQT6A6.js → LQL7VPXH.js} +1 -1
- package/dist/cdn/{CQORXOQS.js → LYVV7FBJ.js} +1 -1
- package/dist/cdn/{LBX6U6EK.js → MDKLQ2IS.js} +2 -2
- package/dist/cdn/{SZYIWW3C.js → MRN3GTKF.js} +1 -1
- package/dist/cdn/{W7HVSUF2.js → MUFEV5ZR.js} +1 -1
- package/dist/cdn/{6H6ZTNGY.js → N26FS3KG.js} +1 -1
- package/dist/cdn/{CKD62DZ4.js → N75HEDSD.js} +1 -1
- package/dist/cdn/{Q4GIMFJ2.js → NMAG7AL2.js} +1 -1
- package/dist/cdn/{KILQBDSV.js → OCCBK5S7.js} +1 -1
- package/dist/cdn/{U2VHNPRE.js → OLRPPTEO.js} +1 -1
- package/dist/cdn/{3LEJV2CC.js → OR765GRF.js} +1 -1
- package/dist/cdn/{GZA5OPRD.js → OUDFAIXR.js} +1 -1
- package/dist/cdn/{O34ACKBX.js → P7PD3PBN.js} +1 -1
- package/dist/cdn/{BF2U4V7S.js → PAHQAFMT.js} +1 -1
- package/dist/cdn/{KRNF2XCU.js → PIOFHDMU.js} +1 -1
- package/dist/cdn/{BQMDOKAK.js → POSJMG3Z.js} +1 -1
- package/dist/cdn/{MOL3RVAG.js → PUXBUCDR.js} +1 -1
- package/dist/cdn/{MDMJT2VS.js → PZRHKUTQ.js} +1 -1
- package/dist/cdn/{XIVGFLZQ.js → QHGSGGGJ.js} +1 -1
- package/dist/cdn/{PX7QCMDX.js → QHRYG4SP.js} +1 -1
- package/dist/cdn/{TV3FXQVK.js → QL5M6E2E.js} +1 -1
- package/dist/cdn/{CB3BW4H5.js → QZNI3BD3.js} +1 -1
- package/dist/cdn/{DPEEMYYB.js → RBTEJMJT.js} +1 -1
- package/dist/cdn/RD2OZ5DF.js +2 -0
- package/dist/cdn/{EFFUZV52.js → S2PTOBDF.js} +1 -1
- package/dist/cdn/{OCABBLZ7.js → SF3FTQP5.js} +1 -1
- package/dist/cdn/{3HZFE5JC.js → SLKGXWIE.js} +1 -1
- package/dist/cdn/{V4N4EY2E.js → TLYVHR5K.js} +1 -1
- package/dist/cdn/{MVJKABXP.js → UYNE67O2.js} +1 -1
- package/dist/cdn/{WVOXFKFO.js → VJG6ZEH4.js} +1 -1
- package/dist/cdn/{JNRJSGDP.js → VPCAPPIP.js} +1 -1
- package/dist/cdn/{IW27UN5J.js → VSMUBBEN.js} +1 -1
- package/dist/cdn/{IJ3OJVJQ.js → W2QXMYBG.js} +1 -1
- package/dist/cdn/{32RVL6OQ.js → W6SZDF5T.js} +1 -1
- package/dist/cdn/{QOZYAJXQ.js → WDWOAIWE.js} +1 -1
- package/dist/cdn/{7TM4LYGN.js → WG2TWSUV.js} +1 -1
- package/dist/cdn/{PETPI6FO.js → WQQMTR5J.js} +1 -1
- package/dist/cdn/{4UYG2V6P.js → X7OXNUXM.js} +1 -1
- package/dist/cdn/{NCOXA4CE.js → XQ5Q4AMB.js} +1 -1
- package/dist/cdn/{FK7MIBNE.js → XZAXZDTP.js} +1 -1
- package/dist/cdn/{OY5HRHVW.js → YEAARWKU.js} +1 -1
- package/dist/cdn/{ITFMAKY3.js → YMAI2PRA.js} +1 -1
- package/dist/cdn/Z5KG3KRT.js +2 -0
- package/dist/cdn/{LUFRX5TB.js → Z5ZBVJ2L.js} +1 -1
- package/dist/cdn/{YW6WBDZV.js → ZD4GMDVL.js} +1 -1
- package/dist/cdn/{H3JLQ2R3.js → ZLUIF2K7.js} +1 -1
- package/dist/cdn/{ZTVR6KBG.js → ZUN46CYQ.js} +1 -1
- package/dist/cdn/{4YOIC4P4.js → ZZAJQVXL.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/action-bar-utils.js +1 -1
- package/dist/chunks/box-plot-data.js +1 -1
- package/dist/chunks/box-plot-model.js +173 -117
- package/dist/chunks/chart-ui-utils.js +7 -7
- package/dist/chunks/class-breaks.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +1 -1
- package/dist/chunks/data.js +9 -9
- package/dist/chunks/generate-x-axis-title.js +15 -15
- package/dist/chunks/index.js +164 -163
- package/dist/chunks/index2.js +1 -1
- package/dist/chunks/index3.js +15 -15
- package/dist/chunks/index4.js +7 -7
- package/dist/chunks/model-setter.js +22 -22
- package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
- package/dist/chunks/pie-chart-data.js +4 -4
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rounded-corners.js +1 -1
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +2 -2
- package/dist/chunks/serial-chart-model.js +131 -76
- package/dist/chunks/type-guards2.js +17 -17
- package/dist/chunks/utils.js +122 -106
- package/dist/chunks/web-component-utils.js +9 -9
- package/dist/chunks/x-bounds.js +12 -12
- package/dist/components/arcgis-chart/customElement.js +2259 -2254
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +8 -8
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +8 -8
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format/customElement.js +14 -14
- package/dist/components/arcgis-charts-config-general/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +11 -11
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +111 -111
- package/dist/model/box-plot-model/box-plot-model.d.ts +20 -1
- package/dist/model/interfaces/chart-interfaces.d.ts +3 -0
- package/dist/model/interfaces/common.d.ts +2 -0
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +20 -1
- package/dist/model/shared/setup-utils.d.ts +2 -0
- package/dist/model/shared/setup-utils.js +37 -36
- package/dist/utils/chart-config/converter/index.js +40 -40
- package/dist/utils/data/interfaces.d.ts +1 -0
- package/package.json +4 -4
- package/dist/cdn/2TV4NKY2.js +0 -2
- package/dist/cdn/EXLX4SJG.js +0 -2
- package/dist/cdn/GTBT4ACW.js +0 -2
- package/dist/cdn/HH5B6KCV.js +0 -2
- package/dist/cdn/KZBUDNHW.js +0 -2
- package/dist/cdn/KZSCAJDG.js +0 -2
- package/dist/cdn/XOTHROVZ.js +0 -2
- /package/dist/cdn/{225VUGML.js → IJPD3GVL.js} +0 -0
package/dist/chunks/utils.js
CHANGED
|
@@ -1,140 +1,156 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { r as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
const
|
|
2
|
+
import { c as $, a as n, d as h, g as U } from "./chart-object-literals.js";
|
|
3
|
+
import { r as B, aj as T, cg as X, ch as j, ci as D, cj as q, O as H, a1 as I } from "./index.js";
|
|
4
|
+
import { I as K, a0 as G, a1 as Q, X as Y, a7 as z, a2 as J, H as Z } from "./index3.js";
|
|
5
|
+
import { i as w } from "./type-guards.js";
|
|
6
|
+
import { f as _, b as N, i as ee, q as te } from "./index2.js";
|
|
7
|
+
import { g as k } from "./series-types.js";
|
|
8
|
+
import { substitute as O } from "@arcgis/core/intl.js";
|
|
9
|
+
const de = (s) => {
|
|
10
10
|
const { config: e, axisIndex: i, callback: t } = s;
|
|
11
11
|
[i !== void 0 ? e.axes?.[i] : e.axes].flat().forEach((a, r) => {
|
|
12
12
|
a !== void 0 && t(a, i !== void 0 ? i : r);
|
|
13
13
|
});
|
|
14
|
-
},
|
|
14
|
+
}, fe = (s) => {
|
|
15
15
|
const { config: e, axisIndex: i, callback: t } = s;
|
|
16
16
|
[i !== void 0 ? e.axes?.[i] : e.axes].flat().forEach((a) => {
|
|
17
|
-
a !== void 0 &&
|
|
17
|
+
a !== void 0 && T(a.valueFormat) && t(a);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
|
-
function
|
|
20
|
+
function ge(s, e, i) {
|
|
21
21
|
const t = s?.axes?.[e];
|
|
22
|
-
t?.title !== void 0 ? t.title.content.text = i : t !== void 0 && (t.title =
|
|
22
|
+
t?.title !== void 0 ? t.title.content.text = i : t !== void 0 && (t.title = G({
|
|
23
23
|
text: i,
|
|
24
24
|
visible: !0,
|
|
25
|
-
font:
|
|
25
|
+
font: Q(J.AxisTitle)
|
|
26
26
|
}));
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function xe(s) {
|
|
29
29
|
const { config: e, layerInfo: i, commonStrings: t, numericFields: a, aggregationType: r } = s;
|
|
30
30
|
let o = "";
|
|
31
31
|
if (e)
|
|
32
|
-
if (
|
|
32
|
+
if (_(e) === $.Stacked100)
|
|
33
33
|
o = t.utilsStrings.statistics.percent;
|
|
34
34
|
else {
|
|
35
|
-
const f =
|
|
36
|
-
if (e.series[0]?.type ===
|
|
37
|
-
o =
|
|
35
|
+
const f = K(r, t);
|
|
36
|
+
if (e.series[0]?.type === n.HeatSeries)
|
|
37
|
+
o = N(i.layerFieldsInfo, e.series[0].y);
|
|
38
38
|
else if (a.length === 1) {
|
|
39
|
-
const g =
|
|
40
|
-
r ===
|
|
39
|
+
const g = N(i.layerFieldsInfo, a[0]), l = B(i.layer).idField;
|
|
40
|
+
r === h.NoAggregation ? o = g : r === h.Count && l !== void 0 && a[0] === l ? o = t.utilsStrings.statistics.count : o = O(t.axisLabels.aggregationOfFieldName, {
|
|
41
41
|
aggregation: f,
|
|
42
42
|
fieldName: g
|
|
43
43
|
});
|
|
44
|
-
} else a.length > 1 && (r ===
|
|
44
|
+
} else a.length > 1 && (r === h.NoAggregation ? o = t.axisLabels.values : o = O(t.axisLabels.aggregationOfValues, {
|
|
45
45
|
aggregation: f
|
|
46
46
|
}));
|
|
47
47
|
}
|
|
48
48
|
return o;
|
|
49
49
|
}
|
|
50
|
-
const
|
|
50
|
+
const E = (s, e, i) => s.axes?.[e] ?? z(i, s.type)[e], M = (s) => {
|
|
51
51
|
const { config: e, axis: i, axisIndex: t } = s;
|
|
52
52
|
e.axes !== void 0 && (e.axes[t] = i);
|
|
53
|
-
},
|
|
53
|
+
}, me = (s) => {
|
|
54
54
|
const { config: e, axisIndex: i, isMax: t } = s;
|
|
55
55
|
let a = Number.NaN;
|
|
56
56
|
return t ? a = e.axes?.[i]?.maximum : a = e.axes?.[i]?.minimum, a ?? Number.NaN;
|
|
57
|
-
},
|
|
57
|
+
}, C = (s) => {
|
|
58
58
|
const { config: e, value: i, axisIndex: t, isMax: a } = s, r = e?.axes?.[t];
|
|
59
59
|
r !== void 0 && (a ? r.maximum = i : r.minimum = i);
|
|
60
|
-
},
|
|
61
|
-
const t =
|
|
60
|
+
}, ye = (s) => s.axes?.[0]?.valueFormat ?? Y(), pe = (s, e, i) => {
|
|
61
|
+
const t = E(s, 0, e);
|
|
62
62
|
if (t !== void 0 && i !== void 0) {
|
|
63
63
|
const a = {
|
|
64
64
|
...t,
|
|
65
65
|
valueFormat: i
|
|
66
66
|
};
|
|
67
|
-
|
|
67
|
+
M({ config: s, axis: a, axisIndex: 0 });
|
|
68
68
|
}
|
|
69
|
-
},
|
|
69
|
+
}, Fe = (s, e, i) => {
|
|
70
70
|
const t = s.axes?.[e];
|
|
71
71
|
t !== void 0 && (t.integerOnlyValues = i);
|
|
72
|
-
},
|
|
73
|
-
const e =
|
|
74
|
-
return e ===
|
|
75
|
-
},
|
|
72
|
+
}, ie = (s) => {
|
|
73
|
+
const e = k(s.series);
|
|
74
|
+
return e === n.BarSeries || e === n.ComboLineAndBarSeries || e === n.LineSeries;
|
|
75
|
+
}, se = (s) => {
|
|
76
76
|
const { axisIndex: e, config: i, isMultiAxis: t } = s;
|
|
77
77
|
let a = !1;
|
|
78
|
-
return e === 0 || e === 1 && t ? a = !0 : e === 2 && (a =
|
|
79
|
-
},
|
|
78
|
+
return e === 0 || e === 1 && t ? a = !0 : e === 2 && (a = ie(i)), a;
|
|
79
|
+
}, Se = (s) => {
|
|
80
80
|
const { axisIndex: e, func: i, config: t } = s;
|
|
81
|
-
return
|
|
82
|
-
},
|
|
81
|
+
return se({ axisIndex: e, config: t, isMultiAxis: !0 }) ? i(e) : void 0;
|
|
82
|
+
}, V = (s, e) => {
|
|
83
83
|
let i;
|
|
84
84
|
const t = e.axes?.[s]?.valueFormat;
|
|
85
|
-
return (s === 0 || s >= 1 &&
|
|
86
|
-
},
|
|
87
|
-
const { config: e, commonStrings: i, valueFormat: t, axisIndex: a = 0 } = s, r =
|
|
85
|
+
return (s === 0 || s >= 1 && T(t)) && (i = t), i;
|
|
86
|
+
}, he = (s) => {
|
|
87
|
+
const { config: e, commonStrings: i, valueFormat: t, axisIndex: a = 0 } = s, r = E(e, a, i);
|
|
88
88
|
if (r !== void 0 && t !== void 0) {
|
|
89
89
|
const o = {
|
|
90
90
|
...r,
|
|
91
91
|
valueFormat: t
|
|
92
92
|
};
|
|
93
|
-
|
|
93
|
+
M({
|
|
94
94
|
config: e,
|
|
95
95
|
axis: o,
|
|
96
96
|
axisIndex: a
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
},
|
|
99
|
+
}, Ae = (s, e) => s.axes?.[e]?.isLogarithmic ?? !1, be = (s) => {
|
|
100
100
|
const { config: e, isLogarithmic: i, axisIndex: t } = s, a = e.axes?.[t];
|
|
101
|
-
a && (a.isLogarithmic = i,
|
|
102
|
-
},
|
|
101
|
+
a && (a.isLogarithmic = i, C({ config: e, value: null, axisIndex: t, isMax: !0 }), C({ config: e, value: null, axisIndex: t, isMax: !1 }));
|
|
102
|
+
}, ve = (s) => {
|
|
103
103
|
const { config: e, scrollbar: i, axisIndex: t } = s;
|
|
104
104
|
e.axes?.[t] !== void 0 && (e.axes[t].scrollbar = i);
|
|
105
105
|
};
|
|
106
|
-
async function
|
|
107
|
-
const {
|
|
108
|
-
|
|
106
|
+
async function Le(s) {
|
|
107
|
+
const {
|
|
108
|
+
config: e,
|
|
109
|
+
layer: i,
|
|
110
|
+
xAxisField: t,
|
|
111
|
+
splitByField: a,
|
|
112
|
+
layerFieldsInfo: r,
|
|
113
|
+
aggregationFields: o,
|
|
114
|
+
fetchNullValues: d,
|
|
115
|
+
chartLimits: f,
|
|
116
|
+
errorStrings: g
|
|
117
|
+
} = s, m = r.filter((S) => S.name === a)[0]?.type, c = d !== !0 ? `${a} IS NOT NULL` : "", p = t && d !== !0 ? `${t} IS NOT NULL` : "", A = k(e?.series), { where: P } = e?.dataFilters ?? {}, R = {
|
|
118
|
+
where: j([P, c, p]),
|
|
109
119
|
// excluding the null values from the list
|
|
110
|
-
orderByFields:
|
|
120
|
+
orderByFields: ee(a) ? [] : [`${a} ${U.Ascending}`],
|
|
111
121
|
// default sorting ascending for split-by field
|
|
112
122
|
geometry: e?.dataFilters?.geometry
|
|
113
123
|
};
|
|
114
|
-
let
|
|
115
|
-
o?.length === 0 ?
|
|
116
|
-
let
|
|
124
|
+
let F = "";
|
|
125
|
+
o?.length === 0 ? F = B(i).idField : o && ([F] = o);
|
|
126
|
+
let x = i ? w(i) ? await D({
|
|
117
127
|
layer: i,
|
|
118
128
|
category: e?.series[0].x ?? "",
|
|
119
129
|
splitByField: a
|
|
120
|
-
}) : await
|
|
130
|
+
}) : await q({
|
|
121
131
|
queryObject: i,
|
|
122
132
|
category: e?.series[0].x ?? "",
|
|
123
133
|
splitByField: a,
|
|
124
|
-
queryConfig:
|
|
125
|
-
errorStrings:
|
|
134
|
+
queryConfig: R,
|
|
135
|
+
errorStrings: g
|
|
126
136
|
}) : [];
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
y
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
137
|
+
const y = Z(f), W = {
|
|
138
|
+
[n.BarSeries]: y.maxBarChartSeriesCount,
|
|
139
|
+
[n.BoxPlotSeries]: y.maxBoxPlotSeriesCount,
|
|
140
|
+
[n.LineSeries]: y.maxLineChartSeriesCount,
|
|
141
|
+
[n.RadarSeries]: y.maxRadarChartSeriesCount
|
|
142
|
+
}, b = (A ? W[A] : void 0) ?? y.serialChart.series, v = x.length, L = v > b;
|
|
143
|
+
if (L && (x = x.slice(0, b)), e) {
|
|
144
|
+
const S = e?.series.map((u) => H({ where: u.query?.where })?.toString() ?? "").filter((u) => u !== void 0 && u !== "");
|
|
145
|
+
x = te({
|
|
146
|
+
arrayA: x,
|
|
147
|
+
arrayB: S,
|
|
148
|
+
getKey: (u) => u === null ? null : u?.toString()
|
|
133
149
|
});
|
|
134
150
|
}
|
|
135
|
-
return { categoriesArray:
|
|
151
|
+
return { categoriesArray: x, seriesLimitReached: L, totalSeriesCount: v, splitByFieldType: m, numericalField: F };
|
|
136
152
|
}
|
|
137
|
-
function
|
|
153
|
+
function Ie(s, e) {
|
|
138
154
|
let i = e === "";
|
|
139
155
|
for (const t of s)
|
|
140
156
|
if (e === t.name) {
|
|
@@ -143,8 +159,8 @@ function pe(s, e) {
|
|
|
143
159
|
}
|
|
144
160
|
return i;
|
|
145
161
|
}
|
|
146
|
-
function
|
|
147
|
-
const i =
|
|
162
|
+
function Ne(s, e) {
|
|
163
|
+
const i = X(s);
|
|
148
164
|
let t = e.length === 0, a = 0;
|
|
149
165
|
for (const r of e) {
|
|
150
166
|
for (const o of i)
|
|
@@ -157,7 +173,7 @@ function Fe(s, e) {
|
|
|
157
173
|
}
|
|
158
174
|
return t;
|
|
159
175
|
}
|
|
160
|
-
function
|
|
176
|
+
function Oe(s, e) {
|
|
161
177
|
e.forEach((i) => {
|
|
162
178
|
Object.getOwnPropertyNames(i.prototype).forEach((t) => {
|
|
163
179
|
Object.defineProperty(
|
|
@@ -168,60 +184,60 @@ function Ae(s, e) {
|
|
|
168
184
|
});
|
|
169
185
|
});
|
|
170
186
|
}
|
|
171
|
-
async function
|
|
172
|
-
const { layerInfo: e, config: i, category: t, errorStrings: a } = s, { layer: r } = e, { where: o } = i?.dataFilters ?? {}, { fetchNullValues:
|
|
173
|
-
where:
|
|
187
|
+
async function Ce(s) {
|
|
188
|
+
const { layerInfo: e, config: i, category: t, errorStrings: a } = s, { layer: r } = e, { where: o } = i?.dataFilters ?? {}, { fetchNullValues: d } = i?.series?.[0]?.query ?? {}, f = d !== !0 ? `${t} IS NOT NULL` : "", g = {
|
|
189
|
+
where: j([o, f]),
|
|
174
190
|
// excluding the null values from the list
|
|
175
191
|
orderByFields: [],
|
|
176
192
|
geometry: i?.dataFilters?.geometry
|
|
177
193
|
};
|
|
178
|
-
let
|
|
179
|
-
return
|
|
194
|
+
let l;
|
|
195
|
+
return w(r) ? l = (await D({
|
|
180
196
|
layer: r,
|
|
181
197
|
category: t,
|
|
182
|
-
fetchNullValues:
|
|
183
|
-
})).map((
|
|
184
|
-
const
|
|
185
|
-
return
|
|
198
|
+
fetchNullValues: d
|
|
199
|
+
})).map((m) => {
|
|
200
|
+
const c = String(m);
|
|
201
|
+
return I({
|
|
186
202
|
queryObject: e.layer,
|
|
187
203
|
fieldName: t,
|
|
188
|
-
fieldValue:
|
|
189
|
-
}) ??
|
|
190
|
-
}) :
|
|
191
|
-
(await
|
|
192
|
-
(
|
|
193
|
-
const
|
|
194
|
-
return
|
|
204
|
+
fieldValue: c
|
|
205
|
+
}) ?? c;
|
|
206
|
+
}) : l = // fetch unique category values asynchronously
|
|
207
|
+
(await q({ queryObject: r, category: t, queryConfig: g, errorStrings: a })).map(
|
|
208
|
+
(m) => {
|
|
209
|
+
const c = String(m);
|
|
210
|
+
return I({
|
|
195
211
|
queryObject: e.layer,
|
|
196
212
|
fieldName: t,
|
|
197
|
-
fieldValue:
|
|
198
|
-
}) ??
|
|
213
|
+
fieldValue: c
|
|
214
|
+
}) ?? c;
|
|
199
215
|
}
|
|
200
|
-
),
|
|
216
|
+
), l;
|
|
201
217
|
}
|
|
202
|
-
function
|
|
203
|
-
return s !== void 0 &&
|
|
218
|
+
function Ve(s) {
|
|
219
|
+
return s !== void 0 && V(0, s)?.type === n.CategoryAxisFormat && V(1, s)?.type === n.CategoryAxisFormat;
|
|
204
220
|
}
|
|
205
221
|
export {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
222
|
+
ye as a,
|
|
223
|
+
Ce as b,
|
|
224
|
+
pe as c,
|
|
225
|
+
C as d,
|
|
226
|
+
Fe as e,
|
|
227
|
+
de as f,
|
|
228
|
+
xe as g,
|
|
229
|
+
Oe as h,
|
|
230
|
+
Ve as i,
|
|
231
|
+
Ie as j,
|
|
232
|
+
Ne as k,
|
|
233
|
+
Le as l,
|
|
234
|
+
fe as m,
|
|
235
|
+
me as n,
|
|
236
|
+
V as o,
|
|
237
|
+
Ae as p,
|
|
238
|
+
be as q,
|
|
239
|
+
Se as r,
|
|
240
|
+
he as s,
|
|
241
|
+
ve as t,
|
|
242
|
+
ge as u
|
|
227
243
|
};
|
|
@@ -7,8 +7,8 @@ import { g as me, a as de, b as ye } from "./pie-chart-data.js";
|
|
|
7
7
|
import { a as ie } from "./series-length.js";
|
|
8
8
|
import { g as re, d as le, e as ge } from "./serial-chart-data.js";
|
|
9
9
|
import { g as z, a as pe } from "./data.js";
|
|
10
|
-
import { p as U, r as be, q as xe, U as E, H as Fe, P, a1 as Ce, aQ as De,
|
|
11
|
-
import { i as Y,
|
|
10
|
+
import { p as U, r as be, q as xe, U as E, H as Fe, P, a1 as Ce, aQ as De, bN as Se } from "./index.js";
|
|
11
|
+
import { i as Y, K as $, l as R, M as ve, N as Be, O as Q } from "./index3.js";
|
|
12
12
|
import { i as K, a as g, C as A } from "./index2.js";
|
|
13
13
|
import { g as he } from "./series-types.js";
|
|
14
14
|
import { V as Pe } from "./index5.js";
|
|
@@ -47,7 +47,7 @@ function Oe(l) {
|
|
|
47
47
|
}
|
|
48
48
|
return i;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function G(l) {
|
|
51
51
|
const { value: e, formatLocale: t, unit: a, config: o, utilsStrings: i } = l;
|
|
52
52
|
let r = { label: "", value: e.toString() };
|
|
53
53
|
switch (a) {
|
|
@@ -131,7 +131,7 @@ function ke(l) {
|
|
|
131
131
|
maximumFractionDigits: 1
|
|
132
132
|
}).formatToParts(1.1).find((t) => t.type === "decimal")?.value ?? ".";
|
|
133
133
|
}
|
|
134
|
-
const
|
|
134
|
+
const J = (l) => {
|
|
135
135
|
const { value: e, quoteAll: t = !1, locale: a, roundDecimals: o } = l;
|
|
136
136
|
let i = e == null ? "" : String(e);
|
|
137
137
|
if (e === null)
|
|
@@ -153,11 +153,11 @@ function ct(l, e = {}) {
|
|
|
153
153
|
const f = t ?? Object.keys(l[0]), u = [], p = a ?? we(r ?? "en");
|
|
154
154
|
if (r !== void 0 && p !== "," && (c += `sep=${p}\r
|
|
155
155
|
`), o) {
|
|
156
|
-
const v = f.map((b) =>
|
|
156
|
+
const v = f.map((b) => J({ value: b, quoteAll: i, locale: r, roundDecimals: n }));
|
|
157
157
|
u.push(v.join(p));
|
|
158
158
|
}
|
|
159
159
|
l.forEach((v) => {
|
|
160
|
-
const b = f.map((x) =>
|
|
160
|
+
const b = f.map((x) => J({ value: v[x], quoteAll: i, locale: r, roundDecimals: n }));
|
|
161
161
|
u.push(b.join(p));
|
|
162
162
|
}), c += u.join(`\r
|
|
163
163
|
`);
|
|
@@ -296,7 +296,7 @@ function Te(l) {
|
|
|
296
296
|
const v = p[Y.xField], b = p[Y.yField], x = p[Y.valueField], C = typeof x == "number" && Number.isFinite(x) ? x.toFixed(2) : x;
|
|
297
297
|
let m = { label: n.x, value: v }, d = { label: n.y, value: b };
|
|
298
298
|
if (n.xTemporalBinning !== void 0) {
|
|
299
|
-
const { label: F, value: D } =
|
|
299
|
+
const { label: F, value: D } = G({
|
|
300
300
|
value: Number(v),
|
|
301
301
|
config: e,
|
|
302
302
|
formatLocale: i,
|
|
@@ -306,7 +306,7 @@ function Te(l) {
|
|
|
306
306
|
!K(F) && !K(D) && (m = { label: F, value: D });
|
|
307
307
|
}
|
|
308
308
|
if (n.yTemporalBinning !== void 0) {
|
|
309
|
-
const { label: F, value: D } =
|
|
309
|
+
const { label: F, value: D } = G({
|
|
310
310
|
value: Number(b),
|
|
311
311
|
config: e,
|
|
312
312
|
formatLocale: i,
|
|
@@ -832,7 +832,7 @@ export {
|
|
|
832
832
|
mt as d,
|
|
833
833
|
ct as e,
|
|
834
834
|
Me as f,
|
|
835
|
-
|
|
835
|
+
G as g,
|
|
836
836
|
ut as h,
|
|
837
837
|
ft as t
|
|
838
838
|
};
|
package/dist/chunks/x-bounds.js
CHANGED
|
@@ -4,12 +4,12 @@ import { cloneDeep as _ } from "es-toolkit/compat";
|
|
|
4
4
|
import { G as c } from "./common.js";
|
|
5
5
|
import { b as g } from "./rest-js-object-literals.js";
|
|
6
6
|
import { a as x } from "./chart-object-literals.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { P as S, a1 as L, a2 as b, t as T } from "./index3.js";
|
|
8
|
+
import { bP as X, b as C, i as B } from "./index.js";
|
|
9
9
|
import { m as r, C as f } from "./model-setter.js";
|
|
10
10
|
import { f as A, e as M } from "./utils2.js";
|
|
11
|
-
import { n as y, d as v, h as
|
|
12
|
-
const
|
|
11
|
+
import { n as y, d as v, h as P } from "./utils.js";
|
|
12
|
+
const O = (t) => {
|
|
13
13
|
for (const e of t.axes ?? [])
|
|
14
14
|
for (const i of e?.guides ?? [])
|
|
15
15
|
if (i.label !== void 0)
|
|
@@ -55,13 +55,13 @@ const V = (t) => {
|
|
|
55
55
|
}, j = (t) => {
|
|
56
56
|
const { axis: e, index: i } = a(t);
|
|
57
57
|
return e?.guides?.[i]?.name;
|
|
58
|
-
},
|
|
58
|
+
}, $ = (t) => {
|
|
59
59
|
const { name: e, axis: i, index: s } = a(t);
|
|
60
60
|
i?.guides?.[s] !== void 0 && (i.guides[s].name = e);
|
|
61
|
-
},
|
|
61
|
+
}, I = (t) => {
|
|
62
62
|
const { axis: e, index: i } = a(t);
|
|
63
63
|
return e?.guides?.[i]?.label?.text;
|
|
64
|
-
},
|
|
64
|
+
}, N = (t) => {
|
|
65
65
|
const { labelText: e, axis: i, index: s } = a(t), o = i?.guides?.[s]?.label ?? S(e, L(b.GuideLabel), b.GuideLabel);
|
|
66
66
|
i?.guides?.[s] !== void 0 && (i.guides[s].label = { ...o, text: e });
|
|
67
67
|
}, Y = (t) => {
|
|
@@ -110,7 +110,7 @@ class u extends h {
|
|
|
110
110
|
* The guide labels text symbol (font, color, style).
|
|
111
111
|
*/
|
|
112
112
|
get guideLabelsSymbol() {
|
|
113
|
-
return
|
|
113
|
+
return O(this._config);
|
|
114
114
|
}
|
|
115
115
|
set guideLabelsSymbol(e) {
|
|
116
116
|
D(e, this._config);
|
|
@@ -161,7 +161,7 @@ class u extends h {
|
|
|
161
161
|
return j({ config: this._config, index: e, orientation: i });
|
|
162
162
|
}
|
|
163
163
|
setGuideName(e, i, s) {
|
|
164
|
-
|
|
164
|
+
$({ name: e, config: this._config, index: i, orientation: s });
|
|
165
165
|
}
|
|
166
166
|
/**
|
|
167
167
|
* Gets the guide label text.
|
|
@@ -170,10 +170,10 @@ class u extends h {
|
|
|
170
170
|
* @param orientation - Default `y`. The axis orientation of the guide.
|
|
171
171
|
*/
|
|
172
172
|
getGuideLabelText(e, i) {
|
|
173
|
-
return
|
|
173
|
+
return I({ config: this._config, index: e, orientation: i });
|
|
174
174
|
}
|
|
175
175
|
setGuideLabelText(e, i, s) {
|
|
176
|
-
|
|
176
|
+
N({ labelText: e, config: this._config, index: i, orientation: s });
|
|
177
177
|
}
|
|
178
178
|
/**
|
|
179
179
|
* Gets whether the guide should be rendered above the other chart elements.
|
|
@@ -306,7 +306,7 @@ ne([
|
|
|
306
306
|
], p.prototype, "minXBound");
|
|
307
307
|
class re extends f {
|
|
308
308
|
}
|
|
309
|
-
|
|
309
|
+
P(re, [G, p]);
|
|
310
310
|
export {
|
|
311
311
|
u as M,
|
|
312
312
|
he as W,
|