@arcgis/charts-components 6.0.0-next.5 → 6.0.0-next.7
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/{LPLMRI3E.js → 22TQSTSU.js} +1 -1
- package/dist/cdn/2IZ27E73.js +2 -0
- package/dist/cdn/36YS6SWU.js +2 -0
- package/dist/cdn/3JXXDTM7.js +2 -0
- package/dist/cdn/3RUCVEOG.js +2 -0
- package/dist/cdn/3UNCSMIH.js +4 -0
- package/dist/cdn/3XWKTCG2.js +2 -0
- package/dist/cdn/{V5Z75IQI.js → 4DQDAM44.js} +2 -2
- package/dist/cdn/4F5HIOT7.js +2 -0
- package/dist/cdn/4W5FC5UJ.js +2 -0
- package/dist/cdn/6Y63J2D4.js +2 -0
- package/dist/cdn/7A6ZC3BY.js +2 -0
- package/dist/cdn/7B26LXAO.js +2 -0
- package/dist/cdn/7BMO4QQG.js +2 -0
- package/dist/cdn/7SKWCJOI.js +2 -0
- package/dist/cdn/ABHDKVCT.js +2 -0
- package/dist/cdn/AHDEGHQC.js +2 -0
- package/dist/cdn/{QQFMQAJ3.js → AS2IRRXE.js} +1 -1
- package/dist/cdn/B73SVOUA.js +2 -0
- package/dist/cdn/{PQ3XCNCP.js → BILTOAXM.js} +1 -1
- package/dist/cdn/CX5HMAVB.js +2 -0
- package/dist/cdn/{732AMNPK.js → DIOXIMBZ.js} +1 -1
- package/dist/cdn/DIVS65HK.js +2 -0
- package/dist/cdn/EJE4D6K4.js +2 -0
- package/dist/cdn/EMJV6FFC.js +2 -0
- package/dist/cdn/EOAW5SJZ.js +2 -0
- package/dist/cdn/EU5JSGVI.js +2 -0
- package/dist/cdn/EVKJUQYC.js +2 -0
- package/dist/cdn/GIUYJ4MX.js +2 -0
- package/dist/cdn/{6RGTAMGU.js → H7EH6MJN.js} +1 -1
- package/dist/cdn/HKD2DTMQ.js +2 -0
- package/dist/cdn/HWJULHS4.js +2 -0
- package/dist/cdn/{HMZRDWG2.js → I3VAEJNQ.js} +24 -24
- package/dist/cdn/IMHL6OT4.js +2 -0
- package/dist/cdn/IMJ4ZP54.js +2 -0
- package/dist/cdn/IPRY6SMT.js +2 -0
- package/dist/cdn/IUWQ2XAM.js +2 -0
- package/dist/cdn/IZ6QMJ5N.js +2 -0
- package/dist/cdn/JGKOHDSF.js +2 -0
- package/dist/cdn/JQH63THU.js +2 -0
- package/dist/cdn/{563H5HEV.js → JYLCRNMW.js} +1 -1
- package/dist/cdn/K43QNXLK.js +2 -0
- package/dist/cdn/KE6MY5WL.js +2 -0
- package/dist/cdn/KHC45XNZ.js +2 -0
- package/dist/cdn/KXW4QAYP.js +2 -0
- package/dist/cdn/{GDJDA5MG.js → LNJSZCPC.js} +1 -1
- package/dist/cdn/{PIGINE4M.js → M7MSRLEE.js} +1 -1
- package/dist/cdn/{S2BGEXZV.js → MGKEPCZT.js} +1 -1
- package/dist/cdn/MGX5TD4I.js +2 -0
- package/dist/cdn/MIRDAGB6.js +2 -0
- package/dist/cdn/N337OTT2.js +2 -0
- package/dist/cdn/NCFIBVSV.js +2 -0
- package/dist/cdn/NNKLFRZL.js +2 -0
- package/dist/cdn/NSF637D3.js +2 -0
- package/dist/cdn/{VSKK65CP.js → NUTUTE7W.js} +1 -1
- package/dist/cdn/O3FVBAXP.js +2 -0
- package/dist/cdn/O53REUWO.js +2 -0
- package/dist/cdn/OPSWLJ6M.js +2 -0
- package/dist/cdn/OTIAHPXY.js +2 -0
- package/dist/cdn/PYK3S2WM.js +2 -0
- package/dist/cdn/PYMEPWV2.js +2 -0
- package/dist/cdn/QE4HAH4J.js +2 -0
- package/dist/cdn/SFX2QCRS.js +2 -0
- package/dist/cdn/SI7W275P.js +2 -0
- package/dist/cdn/SVF2UENW.js +4 -0
- package/dist/cdn/SY4PA5GZ.js +2 -0
- package/dist/cdn/TCUFKLTS.js +2 -0
- package/dist/cdn/TMVELVZ4.js +2 -0
- package/dist/cdn/TVAJJTLH.js +2 -0
- package/dist/cdn/TVBULK7L.js +2 -0
- package/dist/cdn/TYVYXA4I.js +2 -0
- package/dist/cdn/TZJX3ZDX.js +2 -0
- package/dist/cdn/{XPCXTKEY.js → U6AJIZZU.js} +1 -1
- package/dist/cdn/U75UR6WF.js +2 -0
- package/dist/cdn/{CUMXC4O4.js → VJBVJ2GM.js} +1 -1
- package/dist/cdn/VKLX5GBO.js +2 -0
- package/dist/cdn/{INYMF2BQ.js → VKMVMHTT.js} +1 -1
- package/dist/cdn/VL3NDPH3.js +2 -0
- package/dist/cdn/VUNCUXZR.js +2 -0
- package/dist/cdn/VVB5JOCB.js +2 -0
- package/dist/cdn/WAW5LS5U.js +2 -0
- package/dist/cdn/XWGJFR6Q.js +2 -0
- package/dist/cdn/YBFPKUEE.js +2 -0
- package/dist/cdn/YBPCOPML.js +2 -0
- package/dist/cdn/YGYZNUDM.js +2 -0
- package/dist/cdn/YLJUSUEV.js +2 -0
- package/dist/cdn/Z3UCAFDO.js +2 -0
- package/dist/cdn/ZHKGWF55.js +2 -0
- package/dist/cdn/{CLCHZMZ5.js → ZXPGBKDC.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 +18 -20
- package/dist/chunks/axis-lines-symbol.js +6 -6
- package/dist/chunks/bar-chart-model.js +5 -7
- package/dist/chunks/box-plot-data.js +74 -76
- package/dist/chunks/box-plot-model.js +40 -41
- package/dist/chunks/chart-model.js +31 -33
- package/dist/chunks/chart-ui-utils.js +45 -47
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/class-breaks.js +14 -14
- package/dist/chunks/combo-bar-line-chart-model.js +15 -16
- package/dist/chunks/data-labels-symbol.js +1 -1
- package/dist/chunks/data-labels-visibility.js +1 -1
- package/dist/chunks/data.js +52 -54
- package/dist/chunks/gauge-model.js +65 -65
- package/dist/chunks/generate-x-axis-title.js +19 -19
- package/dist/chunks/heat-chart-model.js +13 -14
- package/dist/chunks/histogram-data.js +47 -48
- package/dist/chunks/histogram-model.js +6 -6
- package/dist/chunks/index.js +4959 -3855
- package/dist/chunks/index2.js +1165 -871
- package/dist/chunks/index3.js +11040 -1173
- package/dist/chunks/index4.js +65 -11086
- package/dist/chunks/line-chart-model.js +18 -19
- package/dist/chunks/model-setter.js +6 -6
- package/dist/chunks/model-with-x-guides.js +1 -1
- package/dist/chunks/model-with-y-guides.js +25 -25
- package/dist/chunks/negative-values-stacked-to-baseline.js +6 -6
- package/dist/chunks/pie-chart-data.js +25 -27
- package/dist/chunks/pie-chart-model.js +21 -23
- package/dist/chunks/radar-chart-model.js +6 -7
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/rounded-corners.js +2 -2
- package/dist/chunks/scatterplot-model.js +13 -15
- package/dist/chunks/serial-chart-data.js +226 -229
- package/dist/chunks/serial-chart-model.js +66 -66
- package/dist/chunks/series-length.js +4 -4
- package/dist/chunks/series.js +1 -1
- package/dist/chunks/type-guards.js +109 -55
- package/dist/chunks/utils.js +146 -212
- package/dist/chunks/web-component-utils.js +55 -56
- package/dist/chunks/x-bounds.js +24 -25
- package/dist/components/arcgis-chart/customElement.d.ts +11 -4
- package/dist/components/arcgis-chart/customElement.js +7591 -7485
- package/dist/components/arcgis-charts-action-bar/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +24 -21
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +10 -11
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +5 -6
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +11 -12
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +189 -184
- package/dist/components/arcgis-charts-config-font-style/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-format/customElement.js +37 -38
- package/dist/components/arcgis-charts-config-general/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-guide/customElement.js +7 -7
- 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 +14 -15
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +32 -33
- package/dist/components/arcgis-charts-config-histogram/customElement.js +2 -3
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +2 -3
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +3 -4
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +4 -5
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +5 -6
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +5 -6
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +9 -10
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +8 -9
- package/dist/components/arcgis-charts-config-scatter-plot-aoi/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +8 -10
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +3 -4
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +21 -25
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +15 -16
- package/dist/components/arcgis-charts-info-modal/customElement.js +4 -4
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +396 -398
- package/dist/loader.js +1 -1
- package/dist/utils/chart-config/converter/index.js +73 -75
- package/dist/utils/misc/index.d.ts +4 -4
- package/package.json +4 -4
- package/dist/cdn/23NH4HLE.js +0 -2
- package/dist/cdn/2DRKIHTI.js +0 -2
- package/dist/cdn/2E3WHSEW.js +0 -2
- package/dist/cdn/2RG5JCBW.js +0 -3
- package/dist/cdn/2X2QOEKX.js +0 -2
- package/dist/cdn/37WXQO5B.js +0 -2
- package/dist/cdn/3INTJJ4X.js +0 -2
- package/dist/cdn/3RJNZA24.js +0 -2
- package/dist/cdn/4CU5D5WQ.js +0 -2
- package/dist/cdn/4WQUPC2P.js +0 -2
- package/dist/cdn/5DAVFUDX.js +0 -2
- package/dist/cdn/5VCTFSTZ.js +0 -2
- package/dist/cdn/5XGX5QH2.js +0 -2
- package/dist/cdn/6XH6ZRHO.js +0 -2
- package/dist/cdn/7WD2VKG4.js +0 -2
- package/dist/cdn/7YN565O4.js +0 -2
- package/dist/cdn/A2BFOCSN.js +0 -2
- package/dist/cdn/A5TI5TEO.js +0 -2
- package/dist/cdn/AHB4IS7P.js +0 -2
- package/dist/cdn/B6ADEFC7.js +0 -2
- package/dist/cdn/B6APNE72.js +0 -3
- package/dist/cdn/BDIRQUQE.js +0 -2
- package/dist/cdn/BWZA3447.js +0 -2
- package/dist/cdn/BZTSUXUT.js +0 -2
- package/dist/cdn/CFACTMRG.js +0 -2
- package/dist/cdn/D2LNPCIA.js +0 -2
- package/dist/cdn/D6WQTOUC.js +0 -2
- package/dist/cdn/DTSX7SEI.js +0 -2
- package/dist/cdn/EPFEFHM2.js +0 -2
- package/dist/cdn/EW2P4QSN.js +0 -2
- package/dist/cdn/GE7CLC6K.js +0 -4
- package/dist/cdn/GEPIPU4G.js +0 -2
- package/dist/cdn/GXYGXB4U.js +0 -2
- package/dist/cdn/IEOIKLLK.js +0 -2
- package/dist/cdn/ISSUAEJS.js +0 -2
- package/dist/cdn/KJNBURYA.js +0 -2
- package/dist/cdn/L3AKSDIB.js +0 -2
- package/dist/cdn/L5MTHGFZ.js +0 -2
- package/dist/cdn/LHLPK6TU.js +0 -2
- package/dist/cdn/LXFY54NF.js +0 -2
- package/dist/cdn/MJUCIYQN.js +0 -2
- package/dist/cdn/NGBBNBA7.js +0 -2
- package/dist/cdn/NIZC75X3.js +0 -2
- package/dist/cdn/OBKDR3MU.js +0 -2
- package/dist/cdn/OQKL344Q.js +0 -2
- package/dist/cdn/PT66VVXN.js +0 -2
- package/dist/cdn/QOENPUSD.js +0 -2
- package/dist/cdn/QPVBVDRP.js +0 -2
- package/dist/cdn/RGMPFNUN.js +0 -2
- package/dist/cdn/RGSJ3JFI.js +0 -2
- package/dist/cdn/RVHNFMTN.js +0 -2
- package/dist/cdn/RVQPEB4W.js +0 -2
- package/dist/cdn/RXTO6RE2.js +0 -2
- package/dist/cdn/SCEFJRON.js +0 -2
- package/dist/cdn/SEILP6QP.js +0 -2
- package/dist/cdn/SKI5Z6UH.js +0 -2
- package/dist/cdn/SSEWUPML.js +0 -2
- package/dist/cdn/TCE6PLHN.js +0 -2
- package/dist/cdn/TOCU6UKM.js +0 -2
- package/dist/cdn/TSASF4ZC.js +0 -2
- package/dist/cdn/UDAJILEU.js +0 -2
- package/dist/cdn/UZOYADSB.js +0 -2
- package/dist/cdn/W2PTHYOT.js +0 -2
- package/dist/cdn/W53DMMGZ.js +0 -2
- package/dist/cdn/WAQJ7V62.js +0 -2
- package/dist/cdn/WEPXOYBS.js +0 -2
- package/dist/cdn/WLPUBXN7.js +0 -2
- package/dist/cdn/Y2S7EWZR.js +0 -2
- package/dist/cdn/YGLBPPXP.js +0 -2
- package/dist/cdn/YWUNLBCQ.js +0 -2
- package/dist/cdn/YYTAWATK.js +0 -2
- package/dist/cdn/ZDQWMMOA.js +0 -2
- package/dist/cdn/ZFHMGE36.js +0 -2
- package/dist/cdn/ZGNJFT7B.js +0 -2
- package/dist/cdn/ZMVIOIBB.js +0 -2
- package/dist/cdn/ZTHSDPEH.js +0 -2
- package/dist/chunks/index5.js +0 -69
- package/dist/chunks/type-guards2.js +0 -113
- package/dist/chunks/utils2.js +0 -63
- /package/dist/cdn/{OTV3YYDU.js → 7JMZPDM5.js} +0 -0
- /package/dist/cdn/{O6GVF76X.js → KRRYFLG4.js} +0 -0
- /package/dist/cdn/{27C6PCQ2.js → XXO5K6N4.js} +0 -0
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { a as d } from "./chart-object-literals.js";
|
|
3
|
-
import { aw as
|
|
4
|
-
import {
|
|
5
|
-
import { m as
|
|
6
|
-
import { M as
|
|
7
|
-
import { s as
|
|
8
|
-
import { S as
|
|
3
|
+
import { aw as S, a0 as l, g as m, r as c } from "./index2.js";
|
|
4
|
+
import { u as a, eI as g } from "./index.js";
|
|
5
|
+
import { m as y } from "./model-setter.js";
|
|
6
|
+
import { M as u } from "./model-with-line-marker-styling.js";
|
|
7
|
+
import { s as p, a as b, b as I, c as v, d as _, W as C } from "./negative-values-stacked-to-baseline.js";
|
|
8
|
+
import { S as M, s as k, a as x } from "./serial-chart-model.js";
|
|
9
9
|
import { h as f } from "./serial-chart-data.js";
|
|
10
|
-
import { h as x } from "./utils.js";
|
|
11
10
|
var L = Object.defineProperty, D = Object.getOwnPropertyDescriptor, w = (o, e, s, t) => {
|
|
12
11
|
for (var i = D(e, s), r = o.length - 1, n; r >= 0; r--)
|
|
13
12
|
(n = o[r]) && (i = n(e, s, i) || i);
|
|
14
13
|
return i && L(e, s, i), i;
|
|
15
14
|
};
|
|
16
|
-
class h extends
|
|
15
|
+
class h extends M {
|
|
17
16
|
constructor() {
|
|
18
17
|
super(...arguments), this._chartType = d.LineSeries;
|
|
19
18
|
}
|
|
@@ -26,7 +25,7 @@ class h extends C {
|
|
|
26
25
|
// ---------------------------------------------------------------------------------------------
|
|
27
26
|
/** @private */
|
|
28
27
|
generateDefaultConfig() {
|
|
29
|
-
const e =
|
|
28
|
+
const e = S(this.commonStrings);
|
|
30
29
|
return e.series = [
|
|
31
30
|
l({
|
|
32
31
|
commonStrings: this.commonStrings,
|
|
@@ -46,32 +45,32 @@ class h extends C {
|
|
|
46
45
|
}
|
|
47
46
|
resetSeriesStyling() {
|
|
48
47
|
for (let e = 0; e < this.seriesLength; e += 1) {
|
|
49
|
-
const s =
|
|
48
|
+
const s = m({
|
|
50
49
|
colorIndex: e,
|
|
51
50
|
opacity: c
|
|
52
51
|
});
|
|
53
|
-
if (
|
|
52
|
+
if (k(s, e, this._config), p(s, e, this._config), this.layerInfo !== void 0) {
|
|
54
53
|
const t = this.getSeriesId(e), i = f({
|
|
55
54
|
config: this._config,
|
|
56
55
|
seriesIndex: e,
|
|
57
56
|
layerInfo: this.layerInfo,
|
|
58
57
|
commonStrings: this.commonStrings
|
|
59
58
|
});
|
|
60
|
-
i !== a(this.layerInfo.layer).idField &&
|
|
59
|
+
i !== a(this.layerInfo.layer).idField && x(i ?? t, e, this._config);
|
|
61
60
|
}
|
|
62
|
-
|
|
61
|
+
b({
|
|
63
62
|
style: this.defaultSeries?.lineSymbol?.style,
|
|
64
63
|
seriesIndex: e,
|
|
65
64
|
config: this._config
|
|
66
|
-
}),
|
|
65
|
+
}), I({
|
|
67
66
|
width: this.defaultSeries?.lineSymbol?.width,
|
|
68
67
|
seriesIndex: e,
|
|
69
68
|
config: this._config
|
|
70
|
-
}),
|
|
69
|
+
}), v({
|
|
71
70
|
style: this.defaultSeries?.markerSymbol?.style,
|
|
72
71
|
seriesIndex: e,
|
|
73
72
|
config: this._config
|
|
74
|
-
}),
|
|
73
|
+
}), _({
|
|
75
74
|
size: this.defaultSeries?.markerSymbol?.size,
|
|
76
75
|
seriesIndex: e,
|
|
77
76
|
config: this._config
|
|
@@ -105,10 +104,10 @@ class h extends C {
|
|
|
105
104
|
}
|
|
106
105
|
}
|
|
107
106
|
w([
|
|
108
|
-
|
|
107
|
+
y
|
|
109
108
|
], h.prototype, "resetSeriesStyling");
|
|
110
|
-
const F = [
|
|
111
|
-
|
|
109
|
+
const F = [C, u];
|
|
110
|
+
g(h, F);
|
|
112
111
|
export {
|
|
113
112
|
h as LineChartModel
|
|
114
113
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { fetchT9nStringsBundle as
|
|
2
|
+
import { fetchT9nStringsBundle as g } from "@arcgis/toolkit/intl";
|
|
3
3
|
import { getElementLocale as l } from "@arcgis/toolkit/intl/dom";
|
|
4
4
|
import { g as m } from "./runtime.js";
|
|
5
5
|
import { convertChartSpec as y } from "../utils/chart-config/converter/index.js";
|
|
6
|
-
import { a7 as p } from "./
|
|
7
|
-
import {
|
|
6
|
+
import { a7 as p } from "./index2.js";
|
|
7
|
+
import { ca as o, bA as u, v as _, u as C } from "./index.js";
|
|
8
8
|
import { cloneDeep as U } from "es-toolkit/compat";
|
|
9
9
|
const h = 30;
|
|
10
10
|
function v(r, e, t, i) {
|
|
@@ -78,7 +78,7 @@ class x extends EventTarget {
|
|
|
78
78
|
*/
|
|
79
79
|
async loadConfigFromLayer(e) {
|
|
80
80
|
const { layer: t, iLayer: i, config: s, commonStrings: n, chartLimits: c } = e;
|
|
81
|
-
this._chartLimits = c, this.commonStrings = n ?? await
|
|
81
|
+
this._chartLimits = c, this.commonStrings = n ?? await g(
|
|
82
82
|
l(document.documentElement).t9nLocale,
|
|
83
83
|
m("./assets/common/t9n"),
|
|
84
84
|
"messages."
|
|
@@ -86,11 +86,11 @@ class x extends EventTarget {
|
|
|
86
86
|
let a = t;
|
|
87
87
|
if (!a && i ? a = await o(i) : !a && s?.iLayer && (a = await o(s.iLayer)), a) {
|
|
88
88
|
await u(a);
|
|
89
|
-
const d = _(a, !0),
|
|
89
|
+
const d = _(a, !0), f = C(a).idField;
|
|
90
90
|
this.layerInfo = {
|
|
91
91
|
layer: a,
|
|
92
92
|
layerFieldsInfo: d,
|
|
93
|
-
objectIdField:
|
|
93
|
+
objectIdField: f
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
this._config = s ? await y(s) : this.generateDefaultConfig(), this._config.legend !== void 0 && this._config.legend?.title === void 0 && (this._config.legend.title = p().title), i && (this._config.iLayer = i);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { G as n } from "./common.js";
|
|
3
|
-
import {
|
|
3
|
+
import { eI as f } from "./index.js";
|
|
4
4
|
import { M as a, b as l, d as G } from "./x-bounds.js";
|
|
5
5
|
import { m as p } from "./model-setter.js";
|
|
6
6
|
var m = Object.defineProperty, c = Object.getOwnPropertyDescriptor, u = (o, e, t, h) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { C as A } from "./chart-model.js";
|
|
3
|
-
import {
|
|
4
|
-
import { cloneDeep as
|
|
3
|
+
import { l as g, m as C, r, n as m, k as L, h as V, g as v, i as T, o as S, j as B, p as x, d as p, q as I, s as M, t as O, v as D, w as G, f as z } from "./utils.js";
|
|
4
|
+
import { cloneDeep as k } from "es-toolkit/compat";
|
|
5
5
|
import { W as b } from "./chart-object-literals.js";
|
|
6
|
-
import { aq as u } from "./
|
|
6
|
+
import { aq as u } from "./index2.js";
|
|
7
7
|
import { m as n } from "./model-setter.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { M as d, b as H, d as Y } from "./x-bounds.js";
|
|
9
|
+
import { eI as P } from "./index.js";
|
|
10
10
|
import { G as y } from "./common.js";
|
|
11
11
|
const W = (t) => {
|
|
12
12
|
for (const i of t.axes ?? [])
|
|
@@ -15,9 +15,9 @@ const W = (t) => {
|
|
|
15
15
|
}, Z = (t, i, s) => {
|
|
16
16
|
const e = i.axes;
|
|
17
17
|
(s ?? e?.map((l, f) => f) ?? []).forEach((l) => {
|
|
18
|
-
e?.[l] !== void 0 && (e[l].grid =
|
|
18
|
+
e?.[l] !== void 0 && (e[l].grid = k(t));
|
|
19
19
|
});
|
|
20
|
-
},
|
|
20
|
+
}, w = (t, i) => i.axes?.[t]?.visible ?? !0, F = (t, i, s) => {
|
|
21
21
|
const e = s.axes?.[i];
|
|
22
22
|
e !== void 0 && (e.visible = t);
|
|
23
23
|
}, N = (t, i) => t.axes?.[i]?.displayZeroLine ?? !1, j = (t) => {
|
|
@@ -87,7 +87,7 @@ class c extends A {
|
|
|
87
87
|
return r({
|
|
88
88
|
config: this._config,
|
|
89
89
|
axisIndex: i,
|
|
90
|
-
func: (s) =>
|
|
90
|
+
func: (s) => v(s, this._config)
|
|
91
91
|
}) ?? "";
|
|
92
92
|
}
|
|
93
93
|
setAxisTitleText(i, s) {
|
|
@@ -95,7 +95,7 @@ class c extends A {
|
|
|
95
95
|
config: this._config,
|
|
96
96
|
axisIndex: s,
|
|
97
97
|
func: (e) => {
|
|
98
|
-
|
|
98
|
+
T(i, e, this._config);
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
}
|
|
@@ -108,7 +108,7 @@ class c extends A {
|
|
|
108
108
|
return r({
|
|
109
109
|
config: this._config,
|
|
110
110
|
axisIndex: i,
|
|
111
|
-
func: (s) =>
|
|
111
|
+
func: (s) => w(s, this._config)
|
|
112
112
|
}) ?? !0;
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
@@ -123,7 +123,7 @@ class c extends A {
|
|
|
123
123
|
config: this._config,
|
|
124
124
|
axisIndex: s,
|
|
125
125
|
func: (e) => {
|
|
126
|
-
|
|
126
|
+
F(i, e, this._config), this.emitConfigUpdate("setAxisVisibility");
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
129
|
});
|
|
@@ -137,7 +137,7 @@ class c extends A {
|
|
|
137
137
|
return r({
|
|
138
138
|
config: this._config,
|
|
139
139
|
axisIndex: i,
|
|
140
|
-
func: (s) =>
|
|
140
|
+
func: (s) => S(s, this._config)
|
|
141
141
|
}) ?? !0;
|
|
142
142
|
}
|
|
143
143
|
/**
|
|
@@ -148,7 +148,7 @@ class c extends A {
|
|
|
148
148
|
*/
|
|
149
149
|
setAxisLabelsVisibility(i, s) {
|
|
150
150
|
this.guardSetterFromAsyncOverwrite(() => {
|
|
151
|
-
|
|
151
|
+
m({
|
|
152
152
|
visibility: i,
|
|
153
153
|
axisIndex: s,
|
|
154
154
|
config: this._config
|
|
@@ -164,11 +164,11 @@ class c extends A {
|
|
|
164
164
|
return r({
|
|
165
165
|
config: this._config,
|
|
166
166
|
axisIndex: i,
|
|
167
|
-
func: (s) =>
|
|
167
|
+
func: (s) => B(s, this._config)
|
|
168
168
|
}) ?? !1;
|
|
169
169
|
}
|
|
170
170
|
setAxisTitleVisibility(i, s) {
|
|
171
|
-
|
|
171
|
+
L({
|
|
172
172
|
visibility: i,
|
|
173
173
|
axisIndex: s,
|
|
174
174
|
config: this._config
|
|
@@ -225,7 +225,7 @@ class c extends A {
|
|
|
225
225
|
return r({
|
|
226
226
|
config: this._config,
|
|
227
227
|
axisIndex: i,
|
|
228
|
-
func: (s) =>
|
|
228
|
+
func: (s) => I(s, this._config)
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
231
|
setAxisValueFormat(i, s) {
|
|
@@ -233,7 +233,7 @@ class c extends A {
|
|
|
233
233
|
config: this._config,
|
|
234
234
|
axisIndex: i,
|
|
235
235
|
func: (e) => {
|
|
236
|
-
|
|
236
|
+
M({
|
|
237
237
|
config: this._config,
|
|
238
238
|
valueFormat: s,
|
|
239
239
|
axisIndex: e,
|
|
@@ -251,7 +251,7 @@ class c extends A {
|
|
|
251
251
|
return r({
|
|
252
252
|
config: this._config,
|
|
253
253
|
axisIndex: i,
|
|
254
|
-
func: (s) =>
|
|
254
|
+
func: (s) => O(this._config, s)
|
|
255
255
|
}) ?? !1;
|
|
256
256
|
}
|
|
257
257
|
setLogarithmic(i, s) {
|
|
@@ -259,7 +259,7 @@ class c extends A {
|
|
|
259
259
|
config: this._config,
|
|
260
260
|
axisIndex: s,
|
|
261
261
|
func: (e) => {
|
|
262
|
-
|
|
262
|
+
D({
|
|
263
263
|
config: this._config,
|
|
264
264
|
isLogarithmic: i,
|
|
265
265
|
axisIndex: e
|
|
@@ -284,7 +284,7 @@ class c extends A {
|
|
|
284
284
|
config: this._config,
|
|
285
285
|
axisIndex: s,
|
|
286
286
|
func: (e) => {
|
|
287
|
-
|
|
287
|
+
G({
|
|
288
288
|
config: this._config,
|
|
289
289
|
scrollbar: i,
|
|
290
290
|
axisIndex: e
|
|
@@ -301,11 +301,11 @@ class c extends A {
|
|
|
301
301
|
return r({
|
|
302
302
|
config: this._config,
|
|
303
303
|
axisIndex: i,
|
|
304
|
-
func: (s) =>
|
|
304
|
+
func: (s) => z(this._config, s)
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
307
|
setAxisTitleSymbol(i, s) {
|
|
308
|
-
|
|
308
|
+
V({ symbol: i, config: this._config, axisIndex: s });
|
|
309
309
|
}
|
|
310
310
|
/**
|
|
311
311
|
* Gets the horizontal axis labels behavior for the chart.
|
|
@@ -558,7 +558,7 @@ class h extends d {
|
|
|
558
558
|
return this._config.axes?.[1]?.guides?.length;
|
|
559
559
|
}
|
|
560
560
|
addYAxisGuide(i, s) {
|
|
561
|
-
|
|
561
|
+
H({
|
|
562
562
|
config: this._config,
|
|
563
563
|
name: i,
|
|
564
564
|
index: s,
|
|
@@ -566,7 +566,7 @@ class h extends d {
|
|
|
566
566
|
});
|
|
567
567
|
}
|
|
568
568
|
deleteYAxisGuide(i) {
|
|
569
|
-
|
|
569
|
+
Y({
|
|
570
570
|
config: this._config,
|
|
571
571
|
index: i,
|
|
572
572
|
orientation: y.Y
|
|
@@ -580,7 +580,7 @@ _([
|
|
|
580
580
|
n
|
|
581
581
|
], h.prototype, "deleteYAxisGuide");
|
|
582
582
|
const pi = [d];
|
|
583
|
-
|
|
583
|
+
P(h, pi);
|
|
584
584
|
export {
|
|
585
585
|
c as M,
|
|
586
586
|
h as a
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { g as k, b as S, s as b, a as v } from "./series.js";
|
|
3
|
-
import { n } from "./
|
|
4
|
-
import {
|
|
3
|
+
import { n } from "./index2.js";
|
|
4
|
+
import { cD as i, cE as o } from "./index.js";
|
|
5
5
|
import { C as y, m as h } from "./model-setter.js";
|
|
6
6
|
const l = (s) => {
|
|
7
7
|
const { config: e, seriesIndex: a, callback: t } = s;
|
|
@@ -46,7 +46,7 @@ const l = (s) => {
|
|
|
46
46
|
r.markerSymbol === void 0 && (r.markerSymbol = n()), r.markerSymbol.style = e;
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
|
-
}, j = (s, e) => i(e.series[s]) || o(e.series[s]) ? e.series?.[s]?.markerSymbol?.size : void 0,
|
|
49
|
+
}, j = (s, e) => i(e.series[s]) || o(e.series[s]) ? e.series?.[s]?.markerSymbol?.size : void 0, D = (s) => {
|
|
50
50
|
const { size: e, seriesIndex: a, config: t } = s;
|
|
51
51
|
l({
|
|
52
52
|
config: t,
|
|
@@ -55,7 +55,7 @@ const l = (s) => {
|
|
|
55
55
|
r.markerSymbol === void 0 && (r.markerSymbol = n()), r.markerSymbol.size = e;
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
|
-
},
|
|
58
|
+
}, P = (s, e) => i(e.series[s]) || o(e.series[s]) ? e.series?.[s]?.lineSmoothed ?? !1 : !1, E = (s) => {
|
|
59
59
|
const { smoothed: e, seriesIndex: a, config: t } = s;
|
|
60
60
|
l({
|
|
61
61
|
config: t,
|
|
@@ -128,13 +128,13 @@ export {
|
|
|
128
128
|
N as a,
|
|
129
129
|
O as b,
|
|
130
130
|
A as c,
|
|
131
|
-
|
|
131
|
+
D as d,
|
|
132
132
|
_ as e,
|
|
133
133
|
W as f,
|
|
134
134
|
M as g,
|
|
135
135
|
z as h,
|
|
136
136
|
j as i,
|
|
137
|
-
|
|
137
|
+
P as j,
|
|
138
138
|
E as k,
|
|
139
139
|
J as l,
|
|
140
140
|
K as m,
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { substitute as O } from "@arcgis/core/intl.js";
|
|
3
|
-
import { isEmpty as
|
|
3
|
+
import { isEmpty as $, isNull as M, cloneDeep as U } from "es-toolkit/compat";
|
|
4
4
|
import { P as g, a as y } from "./common.js";
|
|
5
|
-
import {
|
|
6
|
-
import { g as
|
|
7
|
-
import { g as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { x as A, t as B, z as w } from "./index.js";
|
|
12
|
-
import { i as K } from "./index4.js";
|
|
5
|
+
import { a as x, u as L, g as W } from "./utils.js";
|
|
6
|
+
import { g as k } from "./data.js";
|
|
7
|
+
import { g as _ } from "./series-length.js";
|
|
8
|
+
import { a7 as J, J as z, af as G } from "./index2.js";
|
|
9
|
+
import { A, u as B, B as P, E as w } from "./index.js";
|
|
10
|
+
import { i as K } from "./index3.js";
|
|
13
11
|
import { d as p, g as C, t as f } from "./chart-object-literals.js";
|
|
14
12
|
function v(s) {
|
|
15
|
-
const { config: t, layerInfo: e, mode: i, commonStrings: r } = s, o = e !== void 0 ? D({ config: t, layerInfo: e, commonStrings: r, mode: i }) : "", d =
|
|
13
|
+
const { config: t, layerInfo: e, mode: i, commonStrings: r } = s, o = e !== void 0 ? D({ config: t, layerInfo: e, commonStrings: r, mode: i }) : "", d = _(t), l = K(t);
|
|
16
14
|
return o === d || l;
|
|
17
15
|
}
|
|
18
16
|
function I(s) {
|
|
@@ -22,7 +20,7 @@ function I(s) {
|
|
|
22
20
|
commonStrings: r,
|
|
23
21
|
numericFields: m(t),
|
|
24
22
|
aggregationType: F(t, i)
|
|
25
|
-
}) : "", d =
|
|
23
|
+
}) : "", d = W(1, t), l = K(t);
|
|
26
24
|
return o === d || l;
|
|
27
25
|
}
|
|
28
26
|
const b = (s) => s.series?.[0]?.x ?? "";
|
|
@@ -64,7 +62,7 @@ function j(s) {
|
|
|
64
62
|
return i === g.Category && c.query !== void 0 ? c.query.groupByFieldsForStatistics = [l] : delete c.query?.groupByFieldsForStatistics, U(c);
|
|
65
63
|
}
|
|
66
64
|
function D(s) {
|
|
67
|
-
const { config: t, layerInfo: e, mode: i, commonStrings: r } = s, { layerFieldsInfo: o } = e, { idField: d, isTraditionalTypeOID: l } = B(e.layer), c = b(t), a = m(t), n = F(t, i), u = l && (a.length === 0 || a.includes(d)), h =
|
|
65
|
+
const { config: t, layerInfo: e, mode: i, commonStrings: r } = s, { layerFieldsInfo: o } = e, { idField: d, isTraditionalTypeOID: l } = B(e.layer), c = b(t), a = m(t), n = F(t, i), u = l && (a.length === 0 || a.includes(d)), h = z(n, r), q = u ? "" : a.map((E) => P(o ?? [], E)).join(", "), T = P(o ?? [], c);
|
|
68
66
|
let S = "", N;
|
|
69
67
|
return i === g.Fields ? N = a.length === 0 : N = c === "", N ? S = r.utilsStrings.chartType.pieChart : n === p.NoAggregation ? S = O(r.titleLabels.aggrFieldsByCategory, {
|
|
70
68
|
aggregationFields: u ? d : q,
|
|
@@ -72,7 +70,7 @@ function D(s) {
|
|
|
72
70
|
}) : n === p.Count ? S = O(r.titleLabels.aggrTypeCategory, {
|
|
73
71
|
aggregationType: h,
|
|
74
72
|
category: T
|
|
75
|
-
}) : a.length > 0 && (T === A ||
|
|
73
|
+
}) : a.length > 0 && (T === A || $(T) || M(T) ? S = O(r.titleLabels.aggrTypeOfAggrFields, {
|
|
76
74
|
aggregationType: h,
|
|
77
75
|
aggregationFields: q
|
|
78
76
|
}) : S = O(r.titleLabels.aggrTypeOfAggrFieldsByCategory, {
|
|
@@ -81,7 +79,7 @@ function D(s) {
|
|
|
81
79
|
category: T
|
|
82
80
|
})), S;
|
|
83
81
|
}
|
|
84
|
-
const
|
|
82
|
+
const ne = (s) => {
|
|
85
83
|
const { newSortOrderKind: t, config: e, orderByList: i } = s;
|
|
86
84
|
e.orderOptions ??= {}, t === y.customSort && i !== void 0 ? e.orderOptions.data = {
|
|
87
85
|
orderType: f.Category,
|
|
@@ -90,7 +88,7 @@ const de = (s) => {
|
|
|
90
88
|
orderType: t === y.labelAsc || t === y.labelDesc ? f.Category : f.YValue,
|
|
91
89
|
orderBy: t === y.labelAsc || t === y.valueAsc ? C.Ascending : C.Descending
|
|
92
90
|
};
|
|
93
|
-
},
|
|
91
|
+
}, le = (s) => {
|
|
94
92
|
const { newCategory: t, config: e, layerInfo: i, mode: r, commonStrings: o } = s, d = e.series?.length ?? 0, l = v({ config: e, layerInfo: i, commonStrings: o, mode: r }), c = I({ config: e, layerInfo: i, commonStrings: o, mode: r });
|
|
95
93
|
if (e.series.forEach((a) => {
|
|
96
94
|
a.x = r === g.Category ? t : A, a.query !== void 0 && t !== A ? a.query.groupByFieldsForStatistics = [t] : delete a.query?.groupByFieldsForStatistics;
|
|
@@ -122,7 +120,7 @@ function V(s) {
|
|
|
122
120
|
commonStrings: d
|
|
123
121
|
});
|
|
124
122
|
a.query || (a.query = {}), t.length > 1 && delete a.query?.where;
|
|
125
|
-
const n =
|
|
123
|
+
const n = k({
|
|
126
124
|
config: i,
|
|
127
125
|
xAxisField: b(i),
|
|
128
126
|
numericFields: t,
|
|
@@ -158,7 +156,7 @@ function V(s) {
|
|
|
158
156
|
a.query = {};
|
|
159
157
|
a.y = n, c.push(a), i.series = c;
|
|
160
158
|
}
|
|
161
|
-
const
|
|
159
|
+
const de = (s) => {
|
|
162
160
|
const { newAggregationType: t, config: e, layerInfo: i, mode: r, commonStrings: o } = s, d = m(e), l = v({ config: e, layerInfo: i, commonStrings: o, mode: r }), c = I({ config: e, layerInfo: i, commonStrings: o, mode: r });
|
|
163
161
|
if (V({
|
|
164
162
|
config: e,
|
|
@@ -180,7 +178,7 @@ const ge = (s) => {
|
|
|
180
178
|
e.title && l && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: o, mode: r }));
|
|
181
179
|
const a = e.series?.[0]?.displayCategoryOnDataLabel, n = e.series?.[0]?.displayNumericValueOnDataLabel, u = e.series?.[0]?.displayPercentageOnDataLabel;
|
|
182
180
|
e.legend = {
|
|
183
|
-
...e.legend ??
|
|
181
|
+
...e.legend ?? J(),
|
|
184
182
|
displayNumericValue: n,
|
|
185
183
|
displayPercentage: u,
|
|
186
184
|
displayCategory: a
|
|
@@ -213,11 +211,11 @@ const ge = (s) => {
|
|
|
213
211
|
e.series.forEach((n) => {
|
|
214
212
|
delete n.query, n.y = t[0];
|
|
215
213
|
});
|
|
216
|
-
},
|
|
214
|
+
}, ce = (s, t) => {
|
|
217
215
|
let e = [];
|
|
218
216
|
const i = s.orderOptions?.data?.orderType, r = Y(s, t), o = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : void 0;
|
|
219
217
|
return r === y.customSort && i === f.Category && Array.isArray(o) && (e = o), e;
|
|
220
|
-
},
|
|
218
|
+
}, ge = (s) => {
|
|
221
219
|
const { values: t, config: e, mode: i } = s;
|
|
222
220
|
e.orderOptions ??= {};
|
|
223
221
|
const r = e.orderOptions?.data?.orderType;
|
|
@@ -226,7 +224,7 @@ const ge = (s) => {
|
|
|
226
224
|
orderBy: [...t]
|
|
227
225
|
});
|
|
228
226
|
};
|
|
229
|
-
function
|
|
227
|
+
function ye(s) {
|
|
230
228
|
const { category: t = "", numericFields: e = [], fallbackMode: i = g.Category } = s, r = t.trim() !== "" && t !== A;
|
|
231
229
|
let o = i;
|
|
232
230
|
return e.length > 1 || !r && e.length > 0 ? o = g.Fields : r && e.length <= 1 && (o = g.Category), o;
|
|
@@ -235,13 +233,13 @@ export {
|
|
|
235
233
|
m as a,
|
|
236
234
|
F as b,
|
|
237
235
|
Q as c,
|
|
238
|
-
|
|
236
|
+
de as d,
|
|
239
237
|
Y as e,
|
|
240
|
-
|
|
238
|
+
ne as f,
|
|
241
239
|
b as g,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
240
|
+
ce as h,
|
|
241
|
+
ye as i,
|
|
242
|
+
ge as j,
|
|
245
243
|
D as k,
|
|
246
|
-
|
|
244
|
+
le as s
|
|
247
245
|
};
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { log as B } from "@arcgis/toolkit/log";
|
|
3
3
|
import { a as g } from "./chart-object-literals.js";
|
|
4
|
-
import {
|
|
5
|
-
import { i as
|
|
6
|
-
import { a7 as p, ay as A, k as L, p as G, ax as
|
|
7
|
-
import {
|
|
8
|
-
import { C as J } from "./chart-model.js";
|
|
4
|
+
import { r as b, eK as E, x as f, cA as K, u as j, B as q, eI as H } from "./index.js";
|
|
5
|
+
import { i as J } from "./index3.js";
|
|
6
|
+
import { a7 as p, ay as A, k as L, p as G, ax as Q, af as U } from "./index2.js";
|
|
7
|
+
import { C as X } from "./chart-model.js";
|
|
9
8
|
import { m as s } from "./model-setter.js";
|
|
10
9
|
import { b as l, P as u } from "./common.js";
|
|
11
|
-
import { M as
|
|
12
|
-
import { W as
|
|
13
|
-
import { k as $, b as ee, h as te } from "./utils.js";
|
|
10
|
+
import { M as Y, a as Z, W as $, b as ee } from "./data-labels-visibility.js";
|
|
11
|
+
import { W as te } from "./data-labels-symbol.js";
|
|
14
12
|
import { i as y, a as m, g as h, s as ie, c as se, b as re, d as ae, e as O, f as D, h as C, j as v, k as oe } from "./pie-chart-data.js";
|
|
15
13
|
import { cloneDeep as ne } from "es-toolkit/compat";
|
|
16
14
|
import { b as _ } from "./rest-js-object-literals.js";
|
|
@@ -63,7 +61,7 @@ const P = (t) => t.legend?.displayNumericValue ?? !1, I = (t, e) => {
|
|
|
63
61
|
e.series[0] && (e.series[0].dataLabelsOffset = t);
|
|
64
62
|
}, Be = (t) => t.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits, Ee = (t, e) => {
|
|
65
63
|
e.series?.[0] && (e.series[0].numericValueFormat ??= L(), e.series[0].numericValueFormat.intlOptions.minimumFractionDigits = t, e.series[0].numericValueFormat.intlOptions.maximumFractionDigits = t, e.series[0].percentValueFormat ??= L(), e.series[0].percentValueFormat.intlOptions.minimumFractionDigits = t, e.series[0].percentValueFormat.intlOptions.maximumFractionDigits = t);
|
|
66
|
-
},
|
|
64
|
+
}, Ke = (t) => t.series?.[0]?.optimizeDataLabelsOverlapping ?? !1, je = (t, e) => {
|
|
67
65
|
e.series[0] && (e.series[0].optimizeDataLabelsOverlapping = t);
|
|
68
66
|
}, qe = (t) => t.series[0]?.ticks?.visible ?? !1, He = (t, e) => {
|
|
69
67
|
e.series?.[0] && (e.series[0].ticks ??= A(), e.series[0].ticks.visible = t);
|
|
@@ -105,7 +103,7 @@ var lt = Object.defineProperty, ct = Object.getOwnPropertyDescriptor, r = (t, e,
|
|
|
105
103
|
(d = t[c]) && (n = d(e, a, n) || n);
|
|
106
104
|
return n && lt(e, a, n), n;
|
|
107
105
|
};
|
|
108
|
-
class i extends
|
|
106
|
+
class i extends X {
|
|
109
107
|
constructor() {
|
|
110
108
|
super(...arguments), this._chartType = g.PieSeries, this._mode = u.Category, this._groupedSliceIds = [], this._customizedSliceIds = [];
|
|
111
109
|
}
|
|
@@ -132,7 +130,7 @@ class i extends J {
|
|
|
132
130
|
return h(this._config);
|
|
133
131
|
}
|
|
134
132
|
set category(e) {
|
|
135
|
-
(!
|
|
133
|
+
(!J(this._config) || e.trim() !== "") && (this._mode = y({
|
|
136
134
|
category: e,
|
|
137
135
|
numericFields: m(this._config),
|
|
138
136
|
fallbackMode: this._mode
|
|
@@ -151,7 +149,7 @@ class i extends J {
|
|
|
151
149
|
return m(this._config);
|
|
152
150
|
}
|
|
153
151
|
set numericFields(e) {
|
|
154
|
-
typeof e == "string" && (e = [e]), (this.layerInfo !== void 0 ?
|
|
152
|
+
typeof e == "string" && (e = [e]), (this.layerInfo !== void 0 ? E(this.layerInfo.layerFieldsInfo, e) : !0) ? (this._mode = y({
|
|
155
153
|
category: h(this._config),
|
|
156
154
|
numericFields: e,
|
|
157
155
|
fallbackMode: this._mode
|
|
@@ -256,7 +254,7 @@ class i extends J {
|
|
|
256
254
|
async getCustomSortValues() {
|
|
257
255
|
const e = h(this._config), a = b(this._config.series);
|
|
258
256
|
let o = [];
|
|
259
|
-
return a === f.PieFromFields ? o = this.numericFields : e.trim() !== "" && a === f.PieFromCategory && (o = await
|
|
257
|
+
return a === f.PieFromFields ? o = this.numericFields : e.trim() !== "" && a === f.PieFromCategory && (o = await K({
|
|
260
258
|
category: e,
|
|
261
259
|
config: this._config,
|
|
262
260
|
layerInfo: this.layerInfo,
|
|
@@ -376,8 +374,8 @@ class i extends J {
|
|
|
376
374
|
// ---------------------------------------------------------------------------------------------
|
|
377
375
|
/** @private */
|
|
378
376
|
generateDefaultConfig() {
|
|
379
|
-
const e =
|
|
380
|
-
return e.series = [
|
|
377
|
+
const e = Q(this.commonStrings);
|
|
378
|
+
return e.series = [U(this.commonStrings, j(this.layerInfo.layer).idField)], e;
|
|
381
379
|
}
|
|
382
380
|
// ---------------------------------------------------------------------------------------------
|
|
383
381
|
// #region Series Methods
|
|
@@ -463,7 +461,7 @@ class i extends J {
|
|
|
463
461
|
let a = !1;
|
|
464
462
|
const o = this.slices?.length ?? 0;
|
|
465
463
|
for (let n = 0; n < o; n += 1) {
|
|
466
|
-
const c = this.getOriginalSliceName(n), d = this.getSliceName(n), S = this._mode === u.Fields ?
|
|
464
|
+
const c = this.getOriginalSliceName(n), d = this.getSliceName(n), S = this._mode === u.Fields ? q(this.layerInfo?.layerFieldsInfo, c?.toString()) : c;
|
|
467
465
|
if (S !== void 0 && S?.toString() !== d?.toString()) {
|
|
468
466
|
a = !0;
|
|
469
467
|
break;
|
|
@@ -629,10 +627,10 @@ class i extends J {
|
|
|
629
627
|
* Optimize data labels overlapping setting for the pie chart.
|
|
630
628
|
*/
|
|
631
629
|
get optimizeDataLabelsOverlapping() {
|
|
632
|
-
return
|
|
630
|
+
return Ke(this._config);
|
|
633
631
|
}
|
|
634
632
|
set optimizeDataLabelsOverlapping(e) {
|
|
635
|
-
|
|
633
|
+
je(e, this._config);
|
|
636
634
|
}
|
|
637
635
|
// ---------------------------------------------------------------------------------------------
|
|
638
636
|
// #region Legend Props
|
|
@@ -889,13 +887,13 @@ r([
|
|
|
889
887
|
s
|
|
890
888
|
], i.prototype, "displayCategory");
|
|
891
889
|
const gt = [
|
|
892
|
-
Q,
|
|
893
|
-
U,
|
|
894
|
-
X,
|
|
895
890
|
Y,
|
|
896
|
-
Z
|
|
891
|
+
Z,
|
|
892
|
+
$,
|
|
893
|
+
ee,
|
|
894
|
+
te
|
|
897
895
|
];
|
|
898
|
-
|
|
896
|
+
H(i, gt);
|
|
899
897
|
export {
|
|
900
898
|
i as PieChartModel
|
|
901
899
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { S as c, s as y, a as
|
|
3
|
-
import { s as
|
|
2
|
+
import { S as c, s as y, a as g } from "./serial-chart-model.js";
|
|
3
|
+
import { s as m, a as f, b, c as A, d as S, W as p } from "./negative-values-stacked-to-baseline.js";
|
|
4
4
|
import { h as x } from "./serial-chart-data.js";
|
|
5
|
-
import {
|
|
5
|
+
import { u as l, eI as T } from "./index.js";
|
|
6
6
|
import { m as n } from "./model-setter.js";
|
|
7
7
|
import { a as L, m as C } from "./chart-object-literals.js";
|
|
8
8
|
import { M as V } from "./model-with-line-marker-styling.js";
|
|
9
|
-
import { az as v,
|
|
10
|
-
import { t as l } from "./index.js";
|
|
9
|
+
import { az as v, a1 as h, g as B, r as X } from "./index2.js";
|
|
11
10
|
var I = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, u = (o, i, e, t) => {
|
|
12
11
|
for (var s = _(i, e), r = o.length - 1, d; r >= 0; r--)
|
|
13
12
|
(d = o[r]) && (s = d(i, e, s) || s);
|
|
@@ -397,14 +396,14 @@ class a extends c {
|
|
|
397
396
|
colorIndex: i,
|
|
398
397
|
opacity: X
|
|
399
398
|
});
|
|
400
|
-
if (y(e, i, this._config),
|
|
399
|
+
if (y(e, i, this._config), m(e, i, this._config), this.layerInfo !== void 0) {
|
|
401
400
|
const t = this.getSeriesId(i), s = x({
|
|
402
401
|
config: this._config,
|
|
403
402
|
seriesIndex: i,
|
|
404
403
|
layerInfo: this.layerInfo,
|
|
405
404
|
commonStrings: this.commonStrings
|
|
406
405
|
});
|
|
407
|
-
s !== l(this.layerInfo.layer).idField &&
|
|
406
|
+
s !== l(this.layerInfo.layer).idField && g(s ?? t, i, this._config);
|
|
408
407
|
}
|
|
409
408
|
f({
|
|
410
409
|
style: this.defaultSeries?.lineSymbol?.style,
|
package/dist/chunks/resource.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { C as p, m as d } from "./model-setter.js";
|
|
3
|
-
import {
|
|
3
|
+
import { a1 as _ } from "./index.js";
|
|
4
4
|
var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, c = (t, e, r, l) => {
|
|
5
5
|
for (var o = g(e, r), a = t.length - 1, s; a >= 0; a--)
|
|
6
6
|
(s = t[a]) && (o = s(e, r, o) || o);
|