@arcgis/charts-components 5.0.3 → 5.0.5
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/{IQ3LXZYD.js → 2CBUMHRA.js} +1 -1
- package/dist/cdn/{ZFVQRJQ7.js → 2MHTEFTN.js} +1 -1
- package/dist/cdn/{WWXZW74R.js → 323OLTIZ.js} +1 -1
- package/dist/cdn/{LVZTV3FA.js → 3FVO6DOG.js} +1 -1
- package/dist/cdn/{ZRMXLAQY.js → 3MCAERQX.js} +1 -1
- package/dist/cdn/{VZ44V3HS.js → 3MLRXGZW.js} +1 -1
- package/dist/cdn/{6H6KCQQ7.js → 3UGQMZBC.js} +1 -1
- package/dist/cdn/{RMROWNRF.js → 3ZMFTGT7.js} +1 -1
- package/dist/cdn/{LOK7JKND.js → 472TV7JM.js} +1 -1
- package/dist/cdn/{5OZ7QFX6.js → 5POYCFM6.js} +1 -1
- package/dist/cdn/5QHSITJN.js +2 -0
- package/dist/cdn/{BTONUMBH.js → 64O2WNXM.js} +1 -1
- package/dist/cdn/{FO75LJSM.js → 6KYG5IS7.js} +1 -1
- package/dist/cdn/{27DTKG6V.js → 6ULCWBRP.js} +1 -1
- package/dist/cdn/{2FUS6O7H.js → 6ZNWFJ4U.js} +1 -1
- package/dist/cdn/{X5ZAXKCP.js → 75JY7UWW.js} +1 -1
- package/dist/cdn/{4VQVE4C7.js → 7L6RHNJE.js} +1 -1
- package/dist/cdn/{LB4IMZU4.js → 7SNEFWKS.js} +1 -1
- package/dist/cdn/{CFUO6STF.js → 7UDIM2RN.js} +1 -1
- package/dist/cdn/{VQCPC5MW.js → 7VR67453.js} +1 -1
- package/dist/cdn/{CIJ5O5BL.js → A2RSFQTZ.js} +1 -1
- package/dist/cdn/{ZUOTMTB7.js → AB6UUQCY.js} +1 -1
- package/dist/cdn/{XBLXWPC2.js → ACNQQYJ3.js} +1 -1
- package/dist/cdn/{E3HXDNJT.js → AIRSLL6C.js} +1 -1
- package/dist/cdn/{2KN4CLMR.js → AUSCA7EU.js} +1 -1
- package/dist/cdn/{7EB6KB2E.js → B3NMDLGZ.js} +1 -1
- package/dist/cdn/{NXO5Z75U.js → BE2QTC4W.js} +1 -1
- package/dist/cdn/{NHXZJUFK.js → BE4QVLN4.js} +1 -1
- package/dist/cdn/{YSQELDLB.js → BT7BIY7T.js} +1 -1
- package/dist/cdn/{GG3PIJLU.js → BVLPJVDW.js} +1 -1
- package/dist/cdn/{2XPCIWBG.js → C2UKDBMG.js} +1 -1
- package/dist/cdn/{BFNC2ETR.js → C6XZQDJP.js} +1 -1
- package/dist/cdn/{7TEOUKOF.js → CRKUKA7F.js} +19 -19
- package/dist/cdn/{3JITMHPG.js → CUMHSQ5B.js} +1 -1
- package/dist/cdn/{W6TFES74.js → D7T5B7ZY.js} +1 -1
- package/dist/cdn/{6F6DZRWR.js → E5MVSOWC.js} +1 -1
- package/dist/cdn/{A7FBACBC.js → EH55HO7S.js} +1 -1
- package/dist/cdn/{PWK7UH7Q.js → EH72XW47.js} +1 -1
- package/dist/cdn/{EM3LR7UO.js → EXIBGD7H.js} +1 -1
- package/dist/cdn/{OMNPEO5U.js → F24J5FOK.js} +1 -1
- package/dist/cdn/{7MLGTWIO.js → FO42IYAW.js} +1 -1
- package/dist/cdn/G25RGJ3U.js +2 -0
- package/dist/cdn/{HTCCZNLC.js → GPSSZWZ4.js} +1 -1
- package/dist/cdn/{ZB5OCRQD.js → HID67G4Y.js} +1 -1
- package/dist/cdn/{34EETSDY.js → HZQVAQAT.js} +1 -1
- package/dist/cdn/{YJ7LGJTF.js → IDVOD4IN.js} +1 -1
- package/dist/cdn/{YLNF6BVE.js → IIFSMFE2.js} +1 -1
- package/dist/cdn/{254ACFSW.js → IJRPRE47.js} +1 -1
- package/dist/cdn/{33LF656A.js → JPAA7QJZ.js} +1 -1
- package/dist/cdn/{5ARI5KHB.js → JSBRZLZC.js} +1 -1
- package/dist/cdn/{2YZO4O4C.js → JW64QXX2.js} +1 -1
- package/dist/cdn/{IV4FJABM.js → K2OLQG5E.js} +1 -1
- package/dist/cdn/{RG7M674M.js → K5ZQRPNQ.js} +1 -1
- package/dist/cdn/{OLPHS2VK.js → KFEMBMXR.js} +1 -1
- package/dist/cdn/{AH342LGQ.js → L7QJCL76.js} +1 -1
- package/dist/cdn/{KKNEKSHD.js → LRSWK7UU.js} +1 -1
- package/dist/cdn/{JSY552UU.js → MMFELGRJ.js} +1 -1
- package/dist/cdn/{2S37VEK2.js → O35HFCGO.js} +1 -1
- package/dist/cdn/{KTKP6ALD.js → O7RZGOC5.js} +1 -1
- package/dist/cdn/{4WVMBBVD.js → OBQKQ6XM.js} +1 -1
- package/dist/cdn/{7V2DRGGI.js → OU3KNUF3.js} +1 -1
- package/dist/cdn/{JYVKFWTJ.js → P5DF7XW3.js} +1 -1
- package/dist/cdn/PRHKA4ST.js +2 -0
- package/dist/cdn/{WHCT34DA.js → Q2HSYYCM.js} +1 -1
- package/dist/cdn/Q366DD6L.js +2 -0
- package/dist/cdn/{BBUGGE25.js → Q6RS6G4P.js} +1 -1
- package/dist/cdn/{6SI2J3ND.js → RCJ3RB6P.js} +1 -1
- package/dist/cdn/{P55J4PM2.js → RN26CKVP.js} +1 -1
- package/dist/cdn/{CRV4LLKN.js → RNMGPEE5.js} +1 -1
- package/dist/cdn/{5C7NTPSE.js → SZ52IJAQ.js} +1 -1
- package/dist/cdn/{7VMZBMMZ.js → TAY5HFC2.js} +1 -1
- package/dist/cdn/{LH2I7L2I.js → TJ62MAOJ.js} +1 -1
- package/dist/cdn/{ECSZ3SYM.js → TO3WDLJA.js} +1 -1
- package/dist/cdn/{OXNFPOLH.js → TWEAPPJX.js} +1 -1
- package/dist/cdn/{FE7IFXVB.js → U4X2BBUI.js} +1 -1
- package/dist/cdn/{DCSUMIFP.js → VPBA7TM4.js} +1 -1
- package/dist/cdn/{YEYTGWFG.js → W7QCBNAE.js} +1 -1
- package/dist/cdn/{B54M5XXW.js → WEKGGNIK.js} +1 -1
- package/dist/cdn/{XQA2HURV.js → WMP4LXIM.js} +1 -1
- package/dist/cdn/{G65QHYVN.js → WOOEEF5X.js} +1 -1
- package/dist/cdn/{CXXSASOK.js → WQWUCLD2.js} +1 -1
- package/dist/cdn/{YHUSRACP.js → WVO3PDQG.js} +1 -1
- package/dist/cdn/{3O2O7M4O.js → WWAMNFPK.js} +1 -1
- package/dist/cdn/X4ZGVUUU.js +2 -0
- package/dist/cdn/{XXSXCQ7D.js → XIAZNRO5.js} +1 -1
- package/dist/cdn/{CHI43SAT.js → XTZTFS2L.js} +1 -1
- package/dist/cdn/{LGHRATJM.js → Y2343TIX.js} +1 -1
- package/dist/cdn/{JRRD34R4.js → YBM2HY3F.js} +1 -1
- package/dist/cdn/{J7JQANYC.js → YGJAYEKL.js} +1 -1
- package/dist/cdn/{4Y526WWN.js → YI2MUBBI.js} +1 -1
- package/dist/cdn/{RE6HXYZH.js → YPSU3PB2.js} +1 -1
- package/dist/cdn/{IAE7ZQMW.js → YWGVOFXH.js} +1 -1
- package/dist/cdn/{QHPVHLLT.js → YWMHZFB6.js} +1 -1
- package/dist/cdn/{BRGE2VY6.js → Z4KAAUVV.js} +1 -1
- package/dist/cdn/{G7UTPU7P.js → ZFB7MYZF.js} +1 -1
- package/dist/cdn/ZLQXY2BV.js +2 -0
- package/dist/cdn/{PQWR3MAC.js → ZMGQFEUZ.js} +1 -1
- package/dist/cdn/{4CZW5UHS.js → ZZJRDILP.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/class-breaks.js +207 -125
- package/dist/chunks/index.js +27 -27
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/serial-chart-data.js +3 -3
- package/dist/chunks/store.js +25 -16
- package/dist/components/arcgis-chart/customElement.js +2918 -2888
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +149 -153
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +170 -183
- package/dist/components/arcgis-charts-config-heat-chart-popover/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/loader.js +2 -2
- package/package.json +3 -3
- package/dist/cdn/2NB32Y3G.js +0 -2
- package/dist/cdn/42KFTXRH.js +0 -2
- package/dist/cdn/573OYM3D.js +0 -2
- package/dist/cdn/FUPLTNSS.js +0 -2
- package/dist/cdn/GQDYH5F5.js +0 -2
- package/dist/cdn/MIFPGG3B.js +0 -2
|
@@ -14,7 +14,7 @@ import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
|
14
14
|
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
15
15
|
import "@arcgis/core/time/TimeExtent.js";
|
|
16
16
|
import "@arcgis/toolkit/type";
|
|
17
|
-
import { W as
|
|
17
|
+
import { W as o, i as W } from "../../chunks/series-types.js";
|
|
18
18
|
import "@arcgis/core/Graphic.js";
|
|
19
19
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
20
20
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -46,158 +46,154 @@ const m = {
|
|
|
46
46
|
tab: "tab"
|
|
47
47
|
};
|
|
48
48
|
function B(p, e) {
|
|
49
|
-
const
|
|
49
|
+
const a = /* @__PURE__ */ new Set();
|
|
50
50
|
let t = e;
|
|
51
|
-
return p?.forEach((
|
|
52
|
-
const
|
|
53
|
-
(
|
|
51
|
+
return p?.forEach((i, s) => {
|
|
52
|
+
const r = i.chartId;
|
|
53
|
+
(a.has(r) || r === void 0 || r === "") && (i.chartId = `Chart_${Date.now()}_${s}`, e === r && (t = i.chartId)), a.add(r);
|
|
54
54
|
}), t;
|
|
55
55
|
}
|
|
56
|
-
function se(p, e,
|
|
57
|
-
return p?.filter((t) => F(
|
|
56
|
+
function se(p, e, a) {
|
|
57
|
+
return p?.filter((t) => F(a, t.config) && t.layer?.id === e) ?? [];
|
|
58
58
|
}
|
|
59
59
|
function re(p) {
|
|
60
|
-
const { modelList: e, layerList:
|
|
61
|
-
return e?.forEach((
|
|
62
|
-
const n =
|
|
60
|
+
const { modelList: e, layerList: a, activeLayerId: t, disableEditing: i } = p, s = /* @__PURE__ */ new Map();
|
|
61
|
+
return e?.forEach((r) => {
|
|
62
|
+
const n = r.layer;
|
|
63
63
|
n && s.set(n.id, n);
|
|
64
|
-
}),
|
|
64
|
+
}), i || a.forEach((r) => s.set(r.id, r)), Array.from(s.values()).filter((r) => !t || r.id === t);
|
|
65
65
|
}
|
|
66
66
|
function oe(p, e) {
|
|
67
|
-
p.forEach((
|
|
67
|
+
p.forEach((a) => {
|
|
68
68
|
e.forEach((t) => {
|
|
69
|
-
|
|
69
|
+
a?.id === t.layer?.id && E(a, t);
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
function E(p, e) {
|
|
74
|
-
const
|
|
75
|
-
if (
|
|
76
|
-
const t = [...
|
|
74
|
+
const a = p;
|
|
75
|
+
if (a) {
|
|
76
|
+
const t = [...a?.charts ?? []], i = t?.findIndex((r) => r.id === e.chartId);
|
|
77
77
|
let s = !1;
|
|
78
|
-
|
|
78
|
+
i !== void 0 && i > -1 ? (s = !w(t[i], e.config), t[i] = e.config) : a && !D(e.config) && (s = !0, t.push(e.config)), s && (a.charts = t);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
function le(p, e) {
|
|
82
|
-
const
|
|
83
|
-
if (
|
|
84
|
-
const t = [...
|
|
85
|
-
|
|
82
|
+
const a = p;
|
|
83
|
+
if (a) {
|
|
84
|
+
const t = [...a.charts ?? []], i = t.findIndex((s) => s.id === e);
|
|
85
|
+
i > -1 && (t.splice(i, 1), a.charts = t);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
function ne(p, e) {
|
|
89
|
-
const
|
|
90
|
-
if (
|
|
91
|
-
let t = [...
|
|
89
|
+
const a = p;
|
|
90
|
+
if (a) {
|
|
91
|
+
let t = [...a.charts ?? []];
|
|
92
92
|
t = k({
|
|
93
93
|
arrayA: t,
|
|
94
|
-
arrayB: e.map((
|
|
95
|
-
getKey: (
|
|
96
|
-
}),
|
|
94
|
+
arrayB: e.map((i) => i.config),
|
|
95
|
+
getKey: (i) => i.id ?? i.title?.content.text ?? ""
|
|
96
|
+
}), a.charts = t;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
const ce = j`:host{display:flex;flex-direction:column;flex:1 1 auto;overflow:hidden;height:inherit;max-height:100%}.chart-ui-component{overflow-y:auto;overflow-x:hidden}.label{display:flex;margin-left:1rem;margin-bottom:.5rem;justify-content:space-between}.text{display:flex;margin-left:1rem;width:calc(100% - 1.5rem);height:2rem;margin-bottom:.5rem;justify-content:space-between}.field-list{max-height:50vh;overflow-y:scroll}.row{padding:.5rem}.bin-count-container{display:flex;width:calc(100% - 1rem);padding:.5rem}.bin-count-slider{margin-left:1rem;width:calc(90% - 1rem)}.bin-count-input{margin-left:1rem;height:2rem;width:2rem}.bin-row{padding:.5rem 0 .5rem .5rem}.tab-bar{display:flex}.tab{flex:1;height:2.5rem}`;
|
|
100
100
|
class he extends Z {
|
|
101
101
|
constructor() {
|
|
102
102
|
super(), this.selectChartTypePopover = null, this.chartsListFlowItem = q(), this.supportedChartTypes = [
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
103
|
+
o.BarSeries,
|
|
104
|
+
o.BoxPlotSeries,
|
|
105
|
+
o.LineSeries,
|
|
106
|
+
o.PieSeries,
|
|
107
|
+
o.HistogramSeries,
|
|
108
|
+
o.ScatterSeries,
|
|
109
|
+
o.HeatSeries
|
|
110
110
|
], this._messages = P(), this.commonStrings = P({ name: "common", blocking: !0 }), this.chartDataProcessComplete = (e) => {
|
|
111
|
-
const
|
|
112
|
-
if (
|
|
111
|
+
const a = e, { chartData: t, model: i } = a.detail, s = this.getModel(this.selectedChartId);
|
|
112
|
+
if (i?.isSameChartAs(s))
|
|
113
113
|
switch (s?.chartType) {
|
|
114
|
-
case
|
|
115
|
-
this.chartData = t,
|
|
114
|
+
case o.HistogramSeries:
|
|
115
|
+
this.chartData = t, i && (i.dataStore.chartData = t);
|
|
116
116
|
break;
|
|
117
|
-
case
|
|
118
|
-
this.chartData = t,
|
|
117
|
+
case o.PieSeries: {
|
|
118
|
+
this.chartData = t, i && (i.dataStore.chartData = t);
|
|
119
119
|
break;
|
|
120
120
|
}
|
|
121
|
-
case
|
|
121
|
+
case o.ScatterSeries: {
|
|
122
122
|
const n = t, { dataItems: c, r2: u, aggregated: g } = n;
|
|
123
123
|
let C = u;
|
|
124
|
-
Number.isFinite(u) || (C = void 0), this.r2 = C, _(
|
|
124
|
+
Number.isFinite(u) || (C = void 0), this.r2 = C, _(i) && (i.dataStore.r2 = C, i.dataStore.aggregated = g, g && (i.additionalTooltipField = void 0)), this.calculatedDataMinMaxBounds = this.getDataExtent(c), i && (i.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds);
|
|
125
125
|
break;
|
|
126
126
|
}
|
|
127
|
-
case
|
|
128
|
-
case
|
|
127
|
+
case o.LineSeries:
|
|
128
|
+
case o.BarSeries: {
|
|
129
129
|
const { dataItems: n, timeIntervalInfo: c } = t;
|
|
130
|
-
if ((S(s) || b(s) && s.binTemporalData) && (c?.size !== void 0 && s.temporalBinningSize !== c?.size && (s.temporalBinningSize = c?.size), c?.unit !== void 0 && s.temporalBinningUnit !== c?.unit && c?.unit !== W.Quarter && (s.temporalBinningUnit = c?.unit), c?.size !== void 0 && c?.unit !== void 0 && Q(x, { size: c.size, unit: c.unit })), this.calculatedDataMinMaxBounds = this.getDataExtent(n),
|
|
130
|
+
if ((S(s) || b(s) && s.binTemporalData) && (c?.size !== void 0 && s.temporalBinningSize !== c?.size && (s.temporalBinningSize = c?.size), c?.unit !== void 0 && s.temporalBinningUnit !== c?.unit && c?.unit !== W.Quarter && (s.temporalBinningUnit = c?.unit), c?.size !== void 0 && c?.unit !== void 0 && Q(x, { size: c.size, unit: c.unit })), this.calculatedDataMinMaxBounds = this.getDataExtent(n), i && (i.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds), b(s)) {
|
|
131
131
|
const u = s.xAxisField, g = n.some((A) => A[u] === null), C = s.nullCategory;
|
|
132
132
|
g && C === void 0 && (s.nullCategory = z.nullCategory);
|
|
133
133
|
}
|
|
134
134
|
break;
|
|
135
135
|
}
|
|
136
|
-
case r.HeatSeries: {
|
|
137
|
-
this.chartData = t, a && (a.dataStore.chartData = t);
|
|
138
|
-
break;
|
|
139
|
-
}
|
|
140
136
|
}
|
|
141
137
|
}, this.chartAxesMinMaxChange = (e) => {
|
|
142
|
-
const
|
|
143
|
-
if (
|
|
138
|
+
const a = e, { bounds: t, model: i } = a.detail, s = this.getModel(this.selectedChartId), r = i?.isSameChartAs(s), n = s?.chartType;
|
|
139
|
+
if (r)
|
|
144
140
|
switch (n) {
|
|
145
|
-
case
|
|
146
|
-
case
|
|
147
|
-
case
|
|
148
|
-
case
|
|
149
|
-
case
|
|
150
|
-
this.calculatedMinMaxBounds = t,
|
|
141
|
+
case o.BarSeries:
|
|
142
|
+
case o.BoxPlotSeries:
|
|
143
|
+
case o.LineSeries:
|
|
144
|
+
case o.HistogramSeries:
|
|
145
|
+
case o.ScatterSeries:
|
|
146
|
+
this.calculatedMinMaxBounds = t, i && (i.dataStore.calculatedMinMaxBounds = t), this.updateAxesBoundsInAppState(t);
|
|
151
147
|
break;
|
|
152
148
|
}
|
|
153
149
|
}, this.chartSeriesColorChange = (e) => {
|
|
154
|
-
const
|
|
155
|
-
if (
|
|
150
|
+
const a = e, { data: t, model: i } = a.detail, s = this.getModel(this.selectedChartId);
|
|
151
|
+
if (i?.isSameChartAs(s))
|
|
156
152
|
switch (s?.chartType) {
|
|
157
|
-
case
|
|
158
|
-
case
|
|
159
|
-
case
|
|
160
|
-
case
|
|
161
|
-
this.seriesColor = t,
|
|
153
|
+
case o.BarSeries:
|
|
154
|
+
case o.BoxPlotSeries:
|
|
155
|
+
case o.LineSeries:
|
|
156
|
+
case o.HistogramSeries:
|
|
157
|
+
this.seriesColor = t, i && (i.dataStore.seriesColor = t);
|
|
162
158
|
break;
|
|
163
|
-
case
|
|
159
|
+
case o.PieSeries: {
|
|
164
160
|
const n = /* @__PURE__ */ new Map([[0, t]]);
|
|
165
|
-
this.seriesColor = n,
|
|
161
|
+
this.seriesColor = n, i && (i.dataStore.seriesColor = n);
|
|
166
162
|
break;
|
|
167
163
|
}
|
|
168
|
-
case
|
|
164
|
+
case o.ScatterSeries:
|
|
169
165
|
}
|
|
170
166
|
}, this.chartNoRenderPropChange = (e) => {
|
|
171
|
-
const
|
|
172
|
-
if (
|
|
167
|
+
const a = e, { propName: t, value: i, model: s } = a.detail, r = this.modelList.find((n) => s?.isSameChartAs(n));
|
|
168
|
+
if (r)
|
|
173
169
|
switch (t) {
|
|
174
170
|
case "rotation":
|
|
175
|
-
typeof
|
|
171
|
+
typeof i == "boolean" && H(r) && (r.rotatedState = i);
|
|
176
172
|
break;
|
|
177
173
|
case "legendPosition":
|
|
178
|
-
typeof
|
|
174
|
+
typeof i == "string" && v(r) && (r.legendPosition = i);
|
|
179
175
|
break;
|
|
180
176
|
case "legendVisibility":
|
|
181
|
-
typeof
|
|
177
|
+
typeof i == "boolean" && v(r) && (r.legendVisibility = i);
|
|
182
178
|
break;
|
|
183
179
|
}
|
|
184
180
|
}, this.chartLegendItemVisibilityChange = (e) => {
|
|
185
|
-
const
|
|
181
|
+
const a = e, { legendItemVisibility: t, model: i } = a.detail, s = this.modelList.find((r) => i?.isSameChartAs(r));
|
|
186
182
|
s?.setSeriesVisibility(t), T(s) && ((s.getMinBound(1) === null || Number.isNaN(s.getMinBound(1))) && s.setMinBound(null, 1), (s.getMaxBound(1) === null || Number.isNaN(s.getMaxBound(1))) && s.setMaxBound(null, 1), S(s) && ((s.getMinBound(0) === null || Number.isNaN(s.getMinBound(0))) && s.setMinBound(null, 0), (s.getMaxBound(0) === null || Number.isNaN(s.getMaxBound(0))) && s.setMaxBound(null, 0)));
|
|
187
183
|
}, this.onSelectChartTypeChange = (e) => {
|
|
188
184
|
this.currentChartTypeText = "", this.calculatedDataMinMaxBounds = void 0, this.calculatedMinMaxBounds = void 0, this.removeSelectChartTypePopover();
|
|
189
|
-
const { selectedModelType:
|
|
190
|
-
|
|
185
|
+
const { selectedModelType: a, layerId: t } = e.target;
|
|
186
|
+
a !== void 0 && (this.allowChartSyncing = !0, this.arcgisChartsConfigNewChart.emit({
|
|
191
187
|
key: "key",
|
|
192
|
-
chartType:
|
|
188
|
+
chartType: a,
|
|
193
189
|
layerId: t
|
|
194
190
|
}));
|
|
195
191
|
}, this.onAddChartClose = () => {
|
|
196
192
|
this.removeSelectChartTypePopover();
|
|
197
193
|
}, this.onModelConfigChange = (e) => {
|
|
198
194
|
if (this.syncChartsToLayers && this.allowChartSyncing) {
|
|
199
|
-
const
|
|
200
|
-
E(
|
|
195
|
+
const a = e.target;
|
|
196
|
+
E(a?.layer, a);
|
|
201
197
|
}
|
|
202
198
|
this.requestUpdate();
|
|
203
199
|
}, this.allowChartSyncing = !1, this.currentChartTypeText = "", this.modelList = [], this.layerList = [], this.disableEditing = !1, this.syncChartsToLayers = !1, this.panelNumber = 0, this.arcgisChartsConfigChartViewChartClose = y(), this.arcgisChartsConfigModelListChange = y(), this.arcgisChartsConfigNewChart = y(), this.arcgisChartsConfigPanelNumberChange = y(), this.arcgisChartsConfigSelectedChartChange = y(), this.addChartEventListeners(), this.listen("arcgisChartsConfigModelListReorder", this.modelListReorderChangeListener);
|
|
@@ -223,47 +219,47 @@ class he extends Z {
|
|
|
223
219
|
super.disconnectedCallback(), this.clearPartialModels(), this.removeSelectChartTypePopover();
|
|
224
220
|
}
|
|
225
221
|
modelListReorderChangeListener(e) {
|
|
226
|
-
const { modelList:
|
|
222
|
+
const { modelList: a } = e.detail;
|
|
227
223
|
if (this.modelList = k({
|
|
228
224
|
arrayA: this.modelList,
|
|
229
|
-
arrayB:
|
|
225
|
+
arrayB: a,
|
|
230
226
|
getKey: (t) => t.chartId ?? t.titleText ?? ""
|
|
231
227
|
}), this.syncChartsToLayers) {
|
|
232
|
-
const t =
|
|
228
|
+
const t = a.find((i) => i.layer?.id !== void 0)?.layer?.id;
|
|
233
229
|
if (t) {
|
|
234
|
-
const
|
|
235
|
-
|
|
230
|
+
const i = this.layerList.find((s) => s.id.toString() === t);
|
|
231
|
+
i && ne(i, a);
|
|
236
232
|
}
|
|
237
233
|
}
|
|
238
234
|
}
|
|
239
235
|
async layerListChange() {
|
|
240
|
-
const e = [],
|
|
241
|
-
let t = [...this.modelList.filter((
|
|
242
|
-
for (let
|
|
243
|
-
if (
|
|
244
|
-
const n = await
|
|
236
|
+
const e = [], a = this.layerList.map((i) => i.id.toString());
|
|
237
|
+
let t = [...this.modelList.filter((i) => a.includes(i.layer?.id ?? ""))];
|
|
238
|
+
for (let i of this.layerList ?? []) {
|
|
239
|
+
if (i.type === "sublayer") {
|
|
240
|
+
const n = await i.createFeatureLayer();
|
|
245
241
|
if (!n)
|
|
246
242
|
continue;
|
|
247
|
-
|
|
243
|
+
i = n;
|
|
248
244
|
}
|
|
249
|
-
const
|
|
250
|
-
for (const n of
|
|
245
|
+
const r = i.charts;
|
|
246
|
+
for (const n of r ?? []) {
|
|
251
247
|
const c = await U({
|
|
252
|
-
layer:
|
|
248
|
+
layer: i,
|
|
253
249
|
config: n
|
|
254
250
|
});
|
|
255
251
|
c !== void 0 && e.push(c);
|
|
256
252
|
}
|
|
257
253
|
}
|
|
258
|
-
B(e), e.forEach((
|
|
259
|
-
t.find((
|
|
260
|
-
}), t = t.filter((
|
|
261
|
-
}
|
|
262
|
-
modelListChange(e,
|
|
263
|
-
this.selectedChartId = B(e, this.selectedChartId),
|
|
264
|
-
|
|
265
|
-
}), e.forEach((
|
|
266
|
-
|
|
254
|
+
B(e), e.forEach((i) => {
|
|
255
|
+
t.find((r) => r.isSameChartAs(i)) === void 0 && t.push(i);
|
|
256
|
+
}), t = t.filter((i) => !O(i.config)), this.modelList = t;
|
|
257
|
+
}
|
|
258
|
+
modelListChange(e, a) {
|
|
259
|
+
this.selectedChartId = B(e, this.selectedChartId), a?.forEach((i) => {
|
|
260
|
+
i.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
261
|
+
}), e.forEach((i) => {
|
|
262
|
+
i.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
267
263
|
});
|
|
268
264
|
const t = this.getModel(this.selectedChartId);
|
|
269
265
|
this.currentChartTypeText = t?.chartType !== void 0 ? L({
|
|
@@ -274,14 +270,14 @@ class he extends Z {
|
|
|
274
270
|
}
|
|
275
271
|
selectedChartIdChange(e) {
|
|
276
272
|
this.selectedChartId === void 0 && (this.panelNumber = 0), this.selectedPanel = l.Data;
|
|
277
|
-
const
|
|
278
|
-
this.setEventBasedPropsFromModelData(
|
|
279
|
-
chartType:
|
|
273
|
+
const a = this.getModel(e);
|
|
274
|
+
this.setEventBasedPropsFromModelData(a), this.currentChartTypeText = a?.chartType !== void 0 ? L({
|
|
275
|
+
chartType: a.chartType,
|
|
280
276
|
commonStrings: this.commonStrings,
|
|
281
|
-
config:
|
|
277
|
+
config: a.config
|
|
282
278
|
}) : "", e !== void 0 && e !== x.selectedChartId && (x.selectedChartId = e), this.allowChartSyncing = !0, this.arcgisChartsConfigSelectedChartChange.emit({
|
|
283
279
|
key: "key",
|
|
284
|
-
model:
|
|
280
|
+
model: a
|
|
285
281
|
});
|
|
286
282
|
}
|
|
287
283
|
panelNumberChange(e) {
|
|
@@ -291,25 +287,25 @@ class he extends Z {
|
|
|
291
287
|
this.listenOn(document, f.DataProcessComplete, this.chartDataProcessComplete), this.listenOn(document, f.AxesMinMaxChange, this.chartAxesMinMaxChange), this.listenOn(document, f.SeriesColorChange, this.chartSeriesColorChange), this.listenOn(document, f.NoRenderPropChange, this.chartNoRenderPropChange), this.listenOn(document, f.LegendItemVisibilityChange, this.chartLegendItemVisibilityChange);
|
|
292
288
|
}
|
|
293
289
|
getDataExtent(e) {
|
|
294
|
-
const
|
|
290
|
+
const a = this.getModel(this.selectedChartId)?.config;
|
|
295
291
|
let t = [];
|
|
296
|
-
if (
|
|
297
|
-
const
|
|
298
|
-
chartConfig:
|
|
292
|
+
if (a !== void 0 && e !== void 0) {
|
|
293
|
+
const i = R({
|
|
294
|
+
chartConfig: a,
|
|
299
295
|
chartData: e
|
|
300
|
-
}), { minY: s, maxY:
|
|
296
|
+
}), { minY: s, maxY: r, minX: n, maxX: c } = i;
|
|
301
297
|
t = [
|
|
302
298
|
{ isXAxis: !0, minimum: n, maximum: c },
|
|
303
|
-
{ isXAxis: !1, minimum: s, maximum:
|
|
299
|
+
{ isXAxis: !1, minimum: s, maximum: r }
|
|
304
300
|
];
|
|
305
301
|
}
|
|
306
302
|
return t;
|
|
307
303
|
}
|
|
308
304
|
updateAxesBoundsInAppState(e) {
|
|
309
|
-
e?.forEach((
|
|
310
|
-
const { isXAxis: t, maximum:
|
|
311
|
-
if (
|
|
312
|
-
const n = new ae(
|
|
305
|
+
e?.forEach((a) => {
|
|
306
|
+
const { isXAxis: t, maximum: i, minimum: s } = a, r = this.getModel(this.selectedChartId);
|
|
307
|
+
if (r !== void 0 && T(r) && this.selectedChartId !== void 0) {
|
|
308
|
+
const n = new ae(r, t), c = J({
|
|
313
309
|
chartId: this.selectedChartId,
|
|
314
310
|
isXAxis: t,
|
|
315
311
|
isLogarithmic: n.getLogarithmic()
|
|
@@ -318,8 +314,8 @@ class he extends Z {
|
|
|
318
314
|
const g = u[this.selectedChartId]?.[c], C = {
|
|
319
315
|
defaultMinBound: g?.defaultMinBound === g?.currMinBound ? s : g?.defaultMinBound,
|
|
320
316
|
currMinBound: s,
|
|
321
|
-
defaultMaxBound: g?.defaultMaxBound === g?.currMaxBound ?
|
|
322
|
-
currMaxBound:
|
|
317
|
+
defaultMaxBound: g?.defaultMaxBound === g?.currMaxBound ? i : g?.defaultMaxBound,
|
|
318
|
+
currMaxBound: i
|
|
323
319
|
};
|
|
324
320
|
!w(g, C) && this.selectedChartId !== void 0 && u?.[this.selectedChartId] !== void 0 && (u[this.selectedChartId][c] = C);
|
|
325
321
|
}
|
|
@@ -327,21 +323,21 @@ class he extends Z {
|
|
|
327
323
|
}
|
|
328
324
|
getPlacement() {
|
|
329
325
|
let e;
|
|
330
|
-
return this.popoverPlacement !== void 0 ? e = this.popoverPlacement : e = this.modelList?.filter((
|
|
326
|
+
return this.popoverPlacement !== void 0 ? e = this.popoverPlacement : e = this.modelList?.filter((i) => F(te, i.config)).length <= 2 ? "bottom" : "top", e;
|
|
331
327
|
}
|
|
332
328
|
onBackFlow() {
|
|
333
329
|
this.panelNumber -= 1;
|
|
334
330
|
}
|
|
335
331
|
onAddChartClick(e) {
|
|
336
|
-
const { referenceElement:
|
|
337
|
-
this.setupSelectChartTypePopover(
|
|
332
|
+
const { referenceElement: a, layerId: t } = e.detail;
|
|
333
|
+
this.setupSelectChartTypePopover(a, t);
|
|
338
334
|
}
|
|
339
|
-
setupSelectChartTypePopover(e,
|
|
335
|
+
setupSelectChartTypePopover(e, a) {
|
|
340
336
|
const t = this.getPlacement();
|
|
341
|
-
this.removeSelectChartTypePopover(), this.selectChartTypePopover = I(h`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${
|
|
337
|
+
this.removeSelectChartTypePopover(), this.selectChartTypePopover = I(h`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${a} .popoverPlacement=${t} @arcgisChartsConfigPopoverClose=${this.onAddChartClose} @arcgisChartsConfigSelectChartTypeChange=${this.onSelectChartTypeChange}></arcgis-charts-config-select-chart-type-popover>`), !document.body.contains(this.selectChartTypePopover) && this.selectChartTypePopover !== null && document.body.appendChild(this.selectChartTypePopover);
|
|
342
338
|
}
|
|
343
339
|
getModel(e) {
|
|
344
|
-
return this.modelList?.find((
|
|
340
|
+
return this.modelList?.find((a) => a.chartId === e);
|
|
345
341
|
}
|
|
346
342
|
removeSelectChartTypePopover() {
|
|
347
343
|
this.selectChartTypePopover !== void 0 && (this.selectChartTypePopover?.remove(), this.selectChartTypePopover = X(this.selectChartTypePopover));
|
|
@@ -350,10 +346,10 @@ class he extends Z {
|
|
|
350
346
|
this.modelList = this.modelList.filter((e) => !D(e.config));
|
|
351
347
|
}
|
|
352
348
|
onViewChartDelete(e) {
|
|
353
|
-
const { chartId:
|
|
354
|
-
if (
|
|
355
|
-
const t = this.modelList.find((s) => s.chartId ===
|
|
356
|
-
this.modelList = [...this.modelList.filter((s) => s.chartId !==
|
|
349
|
+
const { chartId: a } = e.detail;
|
|
350
|
+
if (a !== void 0) {
|
|
351
|
+
const t = this.modelList.find((s) => s.chartId === a), i = this.layerList.find((s) => s.id === t?.layer?.id);
|
|
352
|
+
this.modelList = [...this.modelList.filter((s) => s.chartId !== a)], i && this.syncChartsToLayers && this.allowChartSyncing && le(i, a);
|
|
357
353
|
}
|
|
358
354
|
}
|
|
359
355
|
onViewChartsSelect(e) {
|
|
@@ -372,9 +368,9 @@ class he extends Z {
|
|
|
372
368
|
this.chartData = e?.dataStore.chartData, this.r2 = e?.dataStore.r2, this.seriesColor = e?.dataStore.seriesColor, this.calculatedMinMaxBounds = e?.dataStore.calculatedMinMaxBounds, this.calculatedDataMinMaxBounds = e?.dataStore.calculatedDataMinMaxBounds;
|
|
373
369
|
}
|
|
374
370
|
createTooltip(e) {
|
|
375
|
-
const
|
|
371
|
+
const a = e.target;
|
|
376
372
|
let t = "";
|
|
377
|
-
switch (
|
|
373
|
+
switch (a.icon) {
|
|
378
374
|
case "configure":
|
|
379
375
|
t = this._messages.data ?? "";
|
|
380
376
|
break;
|
|
@@ -402,7 +398,7 @@ class he extends Z {
|
|
|
402
398
|
t = "";
|
|
403
399
|
break;
|
|
404
400
|
}
|
|
405
|
-
this.tooltip = I(h`<calcite-tooltip style=${K({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${
|
|
401
|
+
this.tooltip = I(h`<calcite-tooltip style=${K({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${a} open placement=top>${t}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
|
|
406
402
|
}
|
|
407
403
|
destroyTooltip() {
|
|
408
404
|
ie(this.tooltip);
|
|
@@ -414,7 +410,7 @@ class he extends Z {
|
|
|
414
410
|
activeLayerId: this.activeLayerId,
|
|
415
411
|
disableEditing: this.disableEditing
|
|
416
412
|
});
|
|
417
|
-
return V(e, (
|
|
413
|
+
return V(e, (a) => a.id, (a) => h`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId !== void 0} .modelList=${se(this.modelList, a.id.toString(), this.supportedChartTypes)} .selectedChartId=${this.selectedChartId ?? ""} .layer=${a} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`);
|
|
418
414
|
}
|
|
419
415
|
render() {
|
|
420
416
|
return this.open !== !1 ? h`<calcite-flow>${$("charts-list", h`<calcite-flow-item .selected=${this.panelNumber === 0 || this.disableEditing} .heading=${this.headerTitle ?? this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${Y(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber >= 1 && !this.disableEditing ? this.renderTabs() : null}</calcite-flow>` : null;
|
|
@@ -426,17 +422,17 @@ class he extends Z {
|
|
|
426
422
|
layerName: e?.layer?.title ?? ""
|
|
427
423
|
}) : ""}>${e?.chartType !== void 0 ? h`<calcite-action-bar class=${d(m.tabBar)} layout=horizontal expand-disabled><calcite-action class=${d(m.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel === l.Data || this.selectedPanel === void 0} @click=${() => {
|
|
428
424
|
this.selectedPanel = l.Data;
|
|
429
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType ===
|
|
425
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType === o.BarSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel === l.Series} @click=${() => {
|
|
430
426
|
this.selectedPanel = l.Series;
|
|
431
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType ===
|
|
427
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType === o.LineSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel === l.Series} @click=${() => {
|
|
432
428
|
this.selectedPanel = l.Series;
|
|
433
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType ===
|
|
429
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType === o.BoxPlotSeries ? h`<calcite-action class=${d(m.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel === l.Series} @click=${() => {
|
|
434
430
|
this.selectedPanel = l.Series;
|
|
435
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType ===
|
|
431
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType === o.PieSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel === l.Slices} @click=${() => {
|
|
436
432
|
this.selectedPanel = l.Slices;
|
|
437
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType !==
|
|
433
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType !== o.PieSeries && e?.chartType !== o.HeatSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel === l.Axes} @click=${() => {
|
|
438
434
|
this.selectedPanel = l.Axes;
|
|
439
|
-
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType !==
|
|
435
|
+
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}${e?.chartType !== o.PieSeries && e?.chartType !== o.HeatSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel === l.Guides} @click=${() => {
|
|
440
436
|
this.selectedPanel = l.Guides;
|
|
441
437
|
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>` : null}<calcite-action class=${d(m.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel === l.Format} @click=${() => {
|
|
442
438
|
this.selectedPanel = l.Format;
|
|
@@ -445,30 +441,30 @@ class he extends Z {
|
|
|
445
441
|
}} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action></calcite-action-bar>` : null}${this.renderChartUIComponent()}</calcite-flow-item>`);
|
|
446
442
|
}
|
|
447
443
|
renderChartUIComponent() {
|
|
448
|
-
const e = this.getModel(this.selectedChartId),
|
|
444
|
+
const e = this.getModel(this.selectedChartId), a = e?.layer;
|
|
449
445
|
let t = null;
|
|
450
446
|
if (e !== void 0 && !this.disableEditing)
|
|
451
447
|
switch (e?.chartType) {
|
|
452
|
-
case
|
|
453
|
-
t = h`<arcgis-charts-config-bar-chart class=${d(m.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${
|
|
448
|
+
case o.BarSeries:
|
|
449
|
+
t = h`<arcgis-charts-config-bar-chart class=${d(m.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel ?? l.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;
|
|
454
450
|
break;
|
|
455
|
-
case
|
|
456
|
-
t = h`<arcgis-charts-config-line-chart class=${d(m.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${
|
|
451
|
+
case o.LineSeries:
|
|
452
|
+
t = h`<arcgis-charts-config-line-chart class=${d(m.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel ?? l.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;
|
|
457
453
|
break;
|
|
458
|
-
case
|
|
459
|
-
t = h`<arcgis-charts-config-pie-chart class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${
|
|
454
|
+
case o.PieSeries:
|
|
455
|
+
t = h`<arcgis-charts-config-pie-chart class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .chartData=${this.chartData} .page=${this.selectedPanel ?? l.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;
|
|
460
456
|
break;
|
|
461
|
-
case
|
|
462
|
-
t = h`<arcgis-charts-config-histogram class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${
|
|
457
|
+
case o.HistogramSeries:
|
|
458
|
+
t = h`<arcgis-charts-config-histogram class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel ?? l.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;
|
|
463
459
|
break;
|
|
464
|
-
case
|
|
465
|
-
t = h`<arcgis-charts-config-scatter-plot class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${
|
|
460
|
+
case o.ScatterSeries:
|
|
461
|
+
t = h`<arcgis-charts-config-scatter-plot class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel ?? l.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;
|
|
466
462
|
break;
|
|
467
|
-
case
|
|
468
|
-
t = h`<arcgis-charts-config-box-plot class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${
|
|
463
|
+
case o.BoxPlotSeries:
|
|
464
|
+
t = h`<arcgis-charts-config-box-plot class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel ?? l.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;
|
|
469
465
|
break;
|
|
470
|
-
case
|
|
471
|
-
t = h`<arcgis-charts-config-heat-chart class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .
|
|
466
|
+
case o.HeatSeries:
|
|
467
|
+
t = h`<arcgis-charts-config-heat-chart class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${a} .page=${this.selectedPanel ?? l.Data}></arcgis-charts-config-heat-chart>`;
|
|
472
468
|
break;
|
|
473
469
|
}
|
|
474
470
|
return t;
|
|
@@ -4,12 +4,12 @@ import { LitElement as l } from "@arcgis/lumina";
|
|
|
4
4
|
import { css as n, html as a } from "lit";
|
|
5
5
|
import { C as o } from "../../chunks/interfaces.js";
|
|
6
6
|
import "@arcgis/toolkit/intl";
|
|
7
|
-
import { isEqual as
|
|
7
|
+
import { isEqual as m } from "lodash-es";
|
|
8
8
|
import "luxon";
|
|
9
9
|
import "d3-array";
|
|
10
10
|
import "@arcgis/toolkit/type";
|
|
11
11
|
import "../../chunks/series-types.js";
|
|
12
|
-
import { bM as
|
|
12
|
+
import { bM as h, bO as d } from "../../chunks/index.js";
|
|
13
13
|
import "@arcgis/core/Graphic.js";
|
|
14
14
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
15
15
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -26,12 +26,12 @@ import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
|
26
26
|
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
27
27
|
import "@arcgis/core/time/TimeExtent.js";
|
|
28
28
|
import "@arcgis/core/core/promiseUtils.js";
|
|
29
|
-
import { h as
|
|
29
|
+
import { h as c } from "../../chunks/index4.js";
|
|
30
30
|
import "@arcgis/toolkit/dom";
|
|
31
31
|
const f = n`:host{margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
|
|
32
32
|
class p extends l {
|
|
33
33
|
static {
|
|
34
|
-
this.properties = { layerFieldsInfo: 16, model: 0, page: 1, layer: 0, usePopupTemplateFieldsInfo: 5
|
|
34
|
+
this.properties = { layerFieldsInfo: 16, model: 0, page: 1, layer: 0, usePopupTemplateFieldsInfo: 5 };
|
|
35
35
|
}
|
|
36
36
|
static {
|
|
37
37
|
this.styles = f;
|
|
@@ -41,7 +41,7 @@ class p extends l {
|
|
|
41
41
|
}
|
|
42
42
|
willUpdate(e) {
|
|
43
43
|
let t = !1;
|
|
44
|
-
e.has("model") && this.modelChange(this.model, e.get("model")), e.has("layer") && this.layer !== void 0 && !
|
|
44
|
+
e.has("model") && this.modelChange(this.model, e.get("model")), e.has("layer") && this.layer !== void 0 && !m(e.get("layer"), this.layer) && (t = !0), e.has("usePopupTemplateFieldsInfo") && this.usePopupTemplateFieldsInfo !== e.get("usePopupTemplateFieldsInfo") && (t = !0), this.layerFieldsInfo === void 0 && (t = !0), t && this.updateFetchLayerFieldsInfo();
|
|
45
45
|
}
|
|
46
46
|
disconnectedCallback() {
|
|
47
47
|
super.disconnectedCallback(), this.model.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
|
|
@@ -53,10 +53,10 @@ class p extends l {
|
|
|
53
53
|
const t = e ?? this.model.config;
|
|
54
54
|
let i = this.layer;
|
|
55
55
|
if (!i) {
|
|
56
|
-
const r =
|
|
57
|
-
r && (i = await
|
|
56
|
+
const r = c(t) ? t.iLayer : void 0;
|
|
57
|
+
r && (i = await h(r));
|
|
58
58
|
}
|
|
59
|
-
i && (this.layerFieldsInfo = await
|
|
59
|
+
i && (this.layerFieldsInfo = await d(i, this.usePopupTemplateFieldsInfo));
|
|
60
60
|
}
|
|
61
61
|
async onModelConfigChange(e) {
|
|
62
62
|
const i = e?.detail.config ?? this.model.config;
|
|
@@ -66,7 +66,7 @@ class p extends l {
|
|
|
66
66
|
let e;
|
|
67
67
|
switch (this.page) {
|
|
68
68
|
case o.Data:
|
|
69
|
-
e = a`<arcgis-charts-config-heat-chart-data .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo}
|
|
69
|
+
e = a`<arcgis-charts-config-heat-chart-data .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-heat-chart-data>`;
|
|
70
70
|
break;
|
|
71
71
|
case o.Format:
|
|
72
72
|
e = a`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;
|