@arcgis/charts-components 5.1.0-next.5 → 5.1.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.
Files changed (41) hide show
  1. package/dist/cdn/AND6TXZC.js +2 -0
  2. package/dist/cdn/{NFGXU34G.js → KGYOF4HQ.js} +1 -1
  3. package/dist/cdn/ZD2OFLRT.js +2 -0
  4. package/dist/cdn/index.js +1 -1
  5. package/dist/chunks/bar-chart-model.js +1 -0
  6. package/dist/chunks/box-plot-model.js +5 -0
  7. package/dist/chunks/chart-ui-utils.js +4 -3
  8. package/dist/chunks/combo-bar-line-chart-model.js +3 -0
  9. package/dist/chunks/gauge-model.js +1 -0
  10. package/dist/chunks/heat-chart-model.js +1 -0
  11. package/dist/chunks/histogram-model.js +1 -0
  12. package/dist/chunks/line-chart-model.js +2 -0
  13. package/dist/chunks/model-setter.js +3 -0
  14. package/dist/chunks/pie-chart-model.js +1 -0
  15. package/dist/chunks/radar-chart-model.js +2 -0
  16. package/dist/chunks/scatterplot-model.js +1 -0
  17. package/dist/chunks/serial-chart-model.js +5 -0
  18. package/dist/components/arcgis-charts-config-create-flow/customElement.js +106 -106
  19. package/dist/components/arcgis-charts-config-format/customElement.js +20 -20
  20. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +55 -55
  21. package/dist/docs/api.json +1 -1
  22. package/dist/docs/docs.json +1 -1
  23. package/dist/docs/web-types.json +1 -1
  24. package/dist/model/bar-chart-model/bar-chart-model.d.ts +1 -10
  25. package/dist/model/box-plot-model/box-plot-model.d.ts +1 -34
  26. package/dist/model/chart-model/chart-model-base.d.ts +0 -46
  27. package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +1 -14
  28. package/dist/model/gauge-model/gauge-model.d.ts +2 -11
  29. package/dist/model/heat-chart-model/heat-chart-model.d.ts +2 -10
  30. package/dist/model/histogram-model/histogram-model.d.ts +2 -11
  31. package/dist/model/line-chart-model/line-chart-model.d.ts +1 -14
  32. package/dist/model/mixins/model-with-line-marker-styling.d.ts +0 -4
  33. package/dist/model/mixins/model-with-multi-axes.d.ts +0 -3
  34. package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -17
  35. package/dist/model/radar-chart-model/radar-chart-model.d.ts +1 -14
  36. package/dist/model/scatterplot-model/scatterplot-model.d.ts +2 -11
  37. package/dist/model/serial-chart-model/serial-chart-model.d.ts +0 -42
  38. package/dist/utils/ui/chart-ui-utils.d.ts +3 -2
  39. package/package.json +3 -3
  40. package/dist/cdn/EXVJCW7V.js +0 -2
  41. package/dist/cdn/RUYVKHFW.js +0 -2
@@ -46,54 +46,54 @@ const m = {
46
46
  tab: "tab"
47
47
  };
48
48
  function B(p, e) {
49
- const a = /* @__PURE__ */ new Set();
49
+ const i = /* @__PURE__ */ new Set();
50
50
  let t = e;
51
- return p?.forEach((i, s) => {
52
- const o = i.chartId;
53
- (a.has(o) || o === void 0 || o === "") && (i.chartId = `Chart_${Date.now()}_${s}`, e === o && (t = i.chartId)), a.add(o);
51
+ return p?.forEach((a, s) => {
52
+ const o = a.chartId;
53
+ (i.has(o) || o === void 0 || o === "") && (a.chartId = `Chart_${Date.now()}_${s}`, e === o && (t = a.chartId)), i.add(o);
54
54
  }), t;
55
55
  }
56
- function se(p, e, a) {
57
- return p?.filter((t) => F(a, t.config) && t.layer?.id === e) ?? [];
56
+ function se(p, e, i) {
57
+ return p?.filter((t) => F(i, t.config) && t.layer?.id === e) ?? [];
58
58
  }
59
59
  function re(p) {
60
- const { modelList: e, layerList: a, activeLayerId: t, disableEditing: i } = p, s = /* @__PURE__ */ new Map();
60
+ const { modelList: e, layerList: i, activeLayerId: t, disableEditing: a } = p, s = /* @__PURE__ */ new Map();
61
61
  return e?.forEach((o) => {
62
62
  const n = o.layer;
63
63
  n && s.set(n.id, n);
64
- }), i || a.forEach((o) => s.set(o.id, o)), Array.from(s.values()).filter((o) => !t || o.id === t);
64
+ }), a || i.forEach((o) => s.set(o.id, o)), Array.from(s.values()).filter((o) => !t || o.id === t);
65
65
  }
66
66
  function oe(p, e) {
67
- p.forEach((a) => {
67
+ p.forEach((i) => {
68
68
  e.forEach((t) => {
69
- a?.id === t.layer?.id && E(a, t);
69
+ i?.id === t.layer?.id && E(i, t);
70
70
  });
71
71
  });
72
72
  }
73
73
  function E(p, e) {
74
- const a = p;
75
- if (a) {
76
- const t = [...a?.charts ?? []], i = t?.findIndex((o) => o.id === e.chartId);
74
+ const i = p;
75
+ if (i) {
76
+ const t = [...i?.charts ?? []], a = t?.findIndex((o) => o.id === e.chartId);
77
77
  let s = !1;
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);
78
+ a !== void 0 && a > -1 ? (s = !w(t[a], e.config), t[a] = e.config) : i && !D(e.config) && (s = !0, t.push(e.config)), s && (i.charts = t);
79
79
  }
80
80
  }
81
81
  function le(p, e) {
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);
82
+ const i = p;
83
+ if (i) {
84
+ const t = [...i.charts ?? []], a = t.findIndex((s) => s.id === e);
85
+ a > -1 && (t.splice(a, 1), i.charts = t);
86
86
  }
87
87
  }
88
88
  function ne(p, e) {
89
- const a = p;
90
- if (a) {
91
- let t = [...a.charts ?? []];
89
+ const i = p;
90
+ if (i) {
91
+ let t = [...i.charts ?? []];
92
92
  t = k({
93
93
  arrayA: t,
94
- arrayB: e.map((i) => i.config),
95
- getKey: (i) => i.id ?? i.title?.content.text ?? ""
96
- }), a.charts = t;
94
+ arrayB: e.map((a) => a.config),
95
+ getKey: (a) => a.id ?? a.title?.content.text ?? ""
96
+ }), i.charts = t;
97
97
  }
98
98
  }
99
99
  const ce = K`: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}`;
@@ -108,38 +108,38 @@ class he extends X {
108
108
  r.ScatterSeries,
109
109
  r.HeatSeries
110
110
  ], this._messages = P(), this.commonStrings = P({ name: "common", blocking: !0 }), this.chartDataProcessComplete = (e) => {
111
- const a = e, { chartData: t, model: i } = a.detail, s = this.getModel(this.selectedChartId);
112
- if (i?.isSameChartAs(s))
111
+ const i = e, { chartData: t, model: a } = i.detail, s = this.getModel(this.selectedChartId);
112
+ if (a?.isSameChartAs(s))
113
113
  switch (s?.chartType) {
114
114
  case r.HistogramSeries:
115
- this.chartData = t, i && (i.dataStore.chartData = t);
115
+ this.chartData = t, a && (a.dataStore.chartData = t);
116
116
  break;
117
117
  case r.PieSeries: {
118
- this.chartData = t, i && (i.dataStore.chartData = t);
118
+ this.chartData = t, a && (a.dataStore.chartData = t);
119
119
  break;
120
120
  }
121
121
  case r.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, _(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);
124
+ Number.isFinite(u) || (C = void 0), this.r2 = C, _(a) && (a.dataStore.r2 = C, a.dataStore.aggregated = g, g && (a.additionalTooltipField = void 0)), this.calculatedDataMinMaxBounds = this.getDataExtent(c), a && (a.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds);
125
125
  break;
126
126
  }
127
127
  case r.LineSeries:
128
128
  case r.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), i && (i.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds), b(s)) {
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), a && (a.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
136
  case r.HeatSeries: {
137
- this.chartData = t;
137
+ this.chartData = t, a && (a.dataStore.chartData = t);
138
138
  break;
139
139
  }
140
140
  }
141
141
  }, this.chartAxesMinMaxChange = (e) => {
142
- const a = e, { bounds: t, model: i } = a.detail, s = this.getModel(this.selectedChartId), o = i?.isSameChartAs(s), n = s?.chartType;
142
+ const i = e, { bounds: t, model: a } = i.detail, s = this.getModel(this.selectedChartId), o = a?.isSameChartAs(s), n = s?.chartType;
143
143
  if (o)
144
144
  switch (n) {
145
145
  case r.BarSeries:
@@ -147,57 +147,57 @@ class he extends X {
147
147
  case r.LineSeries:
148
148
  case r.HistogramSeries:
149
149
  case r.ScatterSeries:
150
- this.calculatedMinMaxBounds = t, i && (i.dataStore.calculatedMinMaxBounds = t), this.updateAxesBoundsInAppState(t);
150
+ this.calculatedMinMaxBounds = t, a && (a.dataStore.calculatedMinMaxBounds = t), this.updateAxesBoundsInAppState(t);
151
151
  break;
152
152
  }
153
153
  }, this.chartSeriesColorChange = (e) => {
154
- const a = e, { data: t, model: i } = a.detail, s = this.getModel(this.selectedChartId);
155
- if (i?.isSameChartAs(s))
154
+ const i = e, { data: t, model: a } = i.detail, s = this.getModel(this.selectedChartId);
155
+ if (a?.isSameChartAs(s))
156
156
  switch (s?.chartType) {
157
157
  case r.BarSeries:
158
158
  case r.BoxPlotSeries:
159
159
  case r.LineSeries:
160
160
  case r.HistogramSeries:
161
- this.seriesColor = t, i && (i.dataStore.seriesColor = t);
161
+ this.seriesColor = t, a && (a.dataStore.seriesColor = t);
162
162
  break;
163
163
  case r.PieSeries: {
164
164
  const n = /* @__PURE__ */ new Map([[0, t]]);
165
- this.seriesColor = n, i && (i.dataStore.seriesColor = n);
165
+ this.seriesColor = n, a && (a.dataStore.seriesColor = n);
166
166
  break;
167
167
  }
168
168
  case r.ScatterSeries:
169
169
  }
170
170
  }, this.chartNoRenderPropChange = (e) => {
171
- const a = e, { propName: t, value: i, model: s } = a.detail, o = this.modelList.find((n) => s?.isSameChartAs(n));
171
+ const i = e, { propName: t, value: a, model: s } = i.detail, o = this.modelList.find((n) => s?.isSameChartAs(n));
172
172
  if (o)
173
173
  switch (t) {
174
174
  case "rotation":
175
- typeof i == "boolean" && H(o) && (o.rotatedState = i);
175
+ typeof a == "boolean" && H(o) && (o.rotatedState = a);
176
176
  break;
177
177
  case "legendPosition":
178
- typeof i == "string" && v(o) && (o.legendPosition = i);
178
+ typeof a == "string" && v(o) && (o.legendPosition = a);
179
179
  break;
180
180
  case "legendVisibility":
181
- typeof i == "boolean" && v(o) && (o.legendVisibility = i);
181
+ typeof a == "boolean" && v(o) && (o.legendVisibility = a);
182
182
  break;
183
183
  }
184
184
  }, this.chartLegendItemVisibilityChange = (e) => {
185
- const a = e, { legendItemVisibility: t, model: i } = a.detail, s = this.modelList.find((o) => i?.isSameChartAs(o));
185
+ const i = e, { legendItemVisibility: t, model: a } = i.detail, s = this.modelList.find((o) => a?.isSameChartAs(o));
186
186
  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
187
  }, this.onSelectChartTypeChange = (e) => {
188
188
  this.currentChartTypeText = "", this.calculatedDataMinMaxBounds = void 0, this.calculatedMinMaxBounds = void 0, this.removeSelectChartTypePopover();
189
- const { selectedModelType: a, layerId: t } = e.target;
190
- a !== void 0 && (this.allowChartSyncing = !0, this.arcgisChartsConfigNewChart.emit({
189
+ const { selectedModelType: i, layerId: t } = e.target;
190
+ i !== void 0 && (this.allowChartSyncing = !0, this.arcgisChartsConfigNewChart.emit({
191
191
  key: "key",
192
- chartType: a,
192
+ chartType: i,
193
193
  layerId: t
194
194
  }));
195
195
  }, this.onAddChartClose = () => {
196
196
  this.removeSelectChartTypePopover();
197
197
  }, this.onModelConfigChange = (e) => {
198
198
  if (this.syncChartsToLayers && this.allowChartSyncing) {
199
- const a = e.target;
200
- E(a?.layer, a);
199
+ const i = e.target;
200
+ E(i?.layer, i);
201
201
  }
202
202
  this.requestUpdate();
203
203
  }, 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 +223,47 @@ class he extends X {
223
223
  super.disconnectedCallback(), this.clearPartialModels(), this.removeSelectChartTypePopover();
224
224
  }
225
225
  modelListReorderChangeListener(e) {
226
- const { modelList: a } = e.detail;
226
+ const { modelList: i } = e.detail;
227
227
  if (this.modelList = k({
228
228
  arrayA: this.modelList,
229
- arrayB: a,
229
+ arrayB: i,
230
230
  getKey: (t) => t.chartId ?? t.titleText ?? ""
231
231
  }), this.syncChartsToLayers) {
232
- const t = a.find((i) => i.layer?.id !== void 0)?.layer?.id;
232
+ const t = i.find((a) => a.layer?.id !== void 0)?.layer?.id;
233
233
  if (t) {
234
- const i = this.layerList.find((s) => s.id.toString() === t);
235
- i && ne(i, a);
234
+ const a = this.layerList.find((s) => s.id.toString() === t);
235
+ a && ne(a, i);
236
236
  }
237
237
  }
238
238
  }
239
239
  async layerListChange() {
240
- const e = [], a = this.layerList.map((i) => i.id.toString());
241
- let t = [...this.modelList.filter((i) => a.includes(i.layer?.id ?? ""))];
242
- for (let i of this.layerList ?? []) {
243
- if (i.type === "sublayer") {
244
- const n = await i.createFeatureLayer();
240
+ const e = [], i = this.layerList.map((a) => a.id.toString());
241
+ let t = [...this.modelList.filter((a) => i.includes(a.layer?.id ?? ""))];
242
+ for (let a of this.layerList ?? []) {
243
+ if (a.type === "sublayer") {
244
+ const n = await a.createFeatureLayer();
245
245
  if (!n)
246
246
  continue;
247
- i = n;
247
+ a = n;
248
248
  }
249
- const o = i.charts;
249
+ const o = a.charts;
250
250
  for (const n of o ?? []) {
251
251
  const c = await U({
252
- layer: i,
252
+ layer: a,
253
253
  config: n
254
254
  });
255
255
  c !== void 0 && e.push(c);
256
256
  }
257
257
  }
258
- B(e), e.forEach((i) => {
259
- t.find((o) => o.isSameChartAs(i)) === void 0 && t.push(i);
260
- }), t = t.filter((i) => !O(i.config)), this.modelList = t;
261
- }
262
- modelListChange(e, a) {
263
- this.selectedChartId = B(e, this.selectedChartId), a?.forEach((i) => {
264
- i.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
265
- }), e.forEach((i) => {
266
- i.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
258
+ B(e), e.forEach((a) => {
259
+ t.find((o) => o.isSameChartAs(a)) === void 0 && t.push(a);
260
+ }), t = t.filter((a) => !O(a.config)), this.modelList = t;
261
+ }
262
+ modelListChange(e, i) {
263
+ this.selectedChartId = B(e, this.selectedChartId), i?.forEach((a) => {
264
+ a.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
265
+ }), e.forEach((a) => {
266
+ a.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
267
267
  });
268
268
  const t = this.getModel(this.selectedChartId);
269
269
  this.currentChartTypeText = t?.chartType !== void 0 ? L({
@@ -274,14 +274,14 @@ class he extends X {
274
274
  }
275
275
  selectedChartIdChange(e) {
276
276
  this.selectedChartId === void 0 && (this.panelNumber = 0), this.selectedPanel = l.Data;
277
- const a = this.getModel(e);
278
- this.setEventBasedPropsFromModelData(a), this.currentChartTypeText = a?.chartType !== void 0 ? L({
279
- chartType: a.chartType,
277
+ const i = this.getModel(e);
278
+ this.setEventBasedPropsFromModelData(i), this.currentChartTypeText = i?.chartType !== void 0 ? L({
279
+ chartType: i.chartType,
280
280
  commonStrings: this.commonStrings,
281
- config: a.config
281
+ config: i.config
282
282
  }) : "", e !== void 0 && e !== x.selectedChartId && (x.selectedChartId = e), this.allowChartSyncing = !0, this.arcgisChartsConfigSelectedChartChange.emit({
283
283
  key: "key",
284
- model: a
284
+ model: i
285
285
  });
286
286
  }
287
287
  panelNumberChange(e) {
@@ -291,13 +291,13 @@ class he extends X {
291
291
  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
292
  }
293
293
  getDataExtent(e) {
294
- const a = this.getModel(this.selectedChartId)?.config;
294
+ const i = this.getModel(this.selectedChartId)?.config;
295
295
  let t = [];
296
- if (a !== void 0 && e !== void 0) {
297
- const i = R({
298
- chartConfig: a,
296
+ if (i !== void 0 && e !== void 0) {
297
+ const a = R({
298
+ chartConfig: i,
299
299
  chartData: e
300
- }), { minY: s, maxY: o, minX: n, maxX: c } = i;
300
+ }), { minY: s, maxY: o, minX: n, maxX: c } = a;
301
301
  t = [
302
302
  { isXAxis: !0, minimum: n, maximum: c },
303
303
  { isXAxis: !1, minimum: s, maximum: o }
@@ -306,8 +306,8 @@ class he extends X {
306
306
  return t;
307
307
  }
308
308
  updateAxesBoundsInAppState(e) {
309
- e?.forEach((a) => {
310
- const { isXAxis: t, maximum: i, minimum: s } = a, o = this.getModel(this.selectedChartId);
309
+ e?.forEach((i) => {
310
+ const { isXAxis: t, maximum: a, minimum: s } = i, o = this.getModel(this.selectedChartId);
311
311
  if (o !== void 0 && T(o) && this.selectedChartId !== void 0) {
312
312
  const n = new ae(o, t), c = J({
313
313
  chartId: this.selectedChartId,
@@ -318,8 +318,8 @@ class he extends X {
318
318
  const g = u[this.selectedChartId]?.[c], C = {
319
319
  defaultMinBound: g?.defaultMinBound === g?.currMinBound ? s : g?.defaultMinBound,
320
320
  currMinBound: s,
321
- defaultMaxBound: g?.defaultMaxBound === g?.currMaxBound ? i : g?.defaultMaxBound,
322
- currMaxBound: i
321
+ defaultMaxBound: g?.defaultMaxBound === g?.currMaxBound ? a : g?.defaultMaxBound,
322
+ currMaxBound: a
323
323
  };
324
324
  !w(g, C) && this.selectedChartId !== void 0 && u?.[this.selectedChartId] !== void 0 && (u[this.selectedChartId][c] = C);
325
325
  }
@@ -327,21 +327,21 @@ class he extends X {
327
327
  }
328
328
  getPlacement() {
329
329
  let e;
330
- return this.popoverPlacement !== void 0 ? e = this.popoverPlacement : e = this.modelList?.filter((i) => F(te, i.config)).length <= 2 ? "bottom" : "top", e;
330
+ return this.popoverPlacement !== void 0 ? e = this.popoverPlacement : e = this.modelList?.filter((a) => F(te, a.config)).length <= 2 ? "bottom" : "top", e;
331
331
  }
332
332
  onBackFlow() {
333
333
  this.panelNumber -= 1;
334
334
  }
335
335
  onAddChartClick(e) {
336
- const { referenceElement: a, layerId: t } = e.detail;
337
- this.setupSelectChartTypePopover(a, t);
336
+ const { referenceElement: i, layerId: t } = e.detail;
337
+ this.setupSelectChartTypePopover(i, t);
338
338
  }
339
- setupSelectChartTypePopover(e, a) {
339
+ setupSelectChartTypePopover(e, i) {
340
340
  const t = this.getPlacement();
341
- 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);
341
+ this.removeSelectChartTypePopover(), this.selectChartTypePopover = I(h`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${i} .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
342
  }
343
343
  getModel(e) {
344
- return this.modelList?.find((a) => a.chartId === e);
344
+ return this.modelList?.find((i) => i.chartId === e);
345
345
  }
346
346
  removeSelectChartTypePopover() {
347
347
  this.selectChartTypePopover !== void 0 && (this.selectChartTypePopover?.remove(), this.selectChartTypePopover = G(this.selectChartTypePopover));
@@ -350,10 +350,10 @@ class he extends X {
350
350
  this.modelList = this.modelList.filter((e) => !D(e.config));
351
351
  }
352
352
  onViewChartDelete(e) {
353
- const { chartId: a } = e.detail;
354
- if (a !== void 0) {
355
- const t = this.modelList.find((s) => s.chartId === a), i = this.layerList.find((s) => s.id === t?.layer?.id);
356
- this.modelList = [...this.modelList.filter((s) => s.chartId !== a)], i && this.syncChartsToLayers && this.allowChartSyncing && le(i, a);
353
+ const { chartId: i } = e.detail;
354
+ if (i !== void 0) {
355
+ const t = this.modelList.find((s) => s.chartId === i), a = this.layerList.find((s) => s.id === t?.layer?.id);
356
+ this.modelList = [...this.modelList.filter((s) => s.chartId !== i)], a && this.syncChartsToLayers && this.allowChartSyncing && le(a, i);
357
357
  }
358
358
  }
359
359
  onViewChartsSelect(e) {
@@ -372,9 +372,9 @@ class he extends X {
372
372
  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
373
  }
374
374
  createTooltip(e) {
375
- const a = e.target;
375
+ const i = e.target;
376
376
  let t = "";
377
- switch (a.icon) {
377
+ switch (i.icon) {
378
378
  case "configure":
379
379
  t = this._messages.data ?? "";
380
380
  break;
@@ -402,7 +402,7 @@ class he extends X {
402
402
  t = "";
403
403
  break;
404
404
  }
405
- this.tooltip = I(h`<calcite-tooltip style=${j({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${a} open placement=top>${t}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
405
+ this.tooltip = I(h`<calcite-tooltip style=${j({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${i} open placement=top>${t}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
406
406
  }
407
407
  destroyTooltip() {
408
408
  ie(this.tooltip);
@@ -414,10 +414,10 @@ class he extends X {
414
414
  activeLayerId: this.activeLayerId,
415
415
  disableEditing: this.disableEditing
416
416
  });
417
- 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>`);
417
+ return V(e, (i) => i.id, (i) => h`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId !== void 0} .modelList=${se(this.modelList, i.id.toString(), this.supportedChartTypes)} .selectedChartId=${this.selectedChartId ?? ""} .layer=${i} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`);
418
418
  }
419
419
  render() {
420
- 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.renderTabs()}</calcite-flow>` : null;
420
+ 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;
421
421
  }
422
422
  renderTabs() {
423
423
  const e = this.getModel(this.selectedChartId);
@@ -445,30 +445,30 @@ class he extends X {
445
445
  }} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action></calcite-action-bar>` : null}${this.renderChartUIComponent()}</calcite-flow-item>`);
446
446
  }
447
447
  renderChartUIComponent() {
448
- const e = this.getModel(this.selectedChartId), a = e?.layer;
448
+ const e = this.getModel(this.selectedChartId), i = e?.layer;
449
449
  let t = null;
450
450
  if (e !== void 0 && !this.disableEditing)
451
451
  switch (e?.chartType) {
452
452
  case r.BarSeries:
453
- 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>`;
453
+ t = h`<arcgis-charts-config-bar-chart class=${d(m.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${i} .page=${this.selectedPanel ?? l.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;
454
454
  break;
455
455
  case r.LineSeries:
456
- 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>`;
456
+ t = h`<arcgis-charts-config-line-chart class=${d(m.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${i} .page=${this.selectedPanel ?? l.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;
457
457
  break;
458
458
  case r.PieSeries:
459
- 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>`;
459
+ t = h`<arcgis-charts-config-pie-chart class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${i} .chartData=${this.chartData} .page=${this.selectedPanel ?? l.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;
460
460
  break;
461
461
  case r.HistogramSeries:
462
- 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>`;
462
+ t = h`<arcgis-charts-config-histogram class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${i} .page=${this.selectedPanel ?? l.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;
463
463
  break;
464
464
  case r.ScatterSeries:
465
- 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>`;
465
+ t = h`<arcgis-charts-config-scatter-plot class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${i} .page=${this.selectedPanel ?? l.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;
466
466
  break;
467
467
  case r.BoxPlotSeries:
468
- 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>`;
468
+ t = h`<arcgis-charts-config-box-plot class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .layer=${i} .page=${this.selectedPanel ?? l.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;
469
469
  break;
470
470
  case r.HeatSeries:
471
- t = h`<arcgis-charts-config-heat-chart class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .chartData=${this.chartData} .layer=${a} .page=${this.selectedPanel ?? l.Data}></arcgis-charts-config-heat-chart>`;
471
+ t = h`<arcgis-charts-config-heat-chart class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo} .chartData=${this.chartData} .layer=${i} .page=${this.selectedPanel ?? l.Data}></arcgis-charts-config-heat-chart>`;
472
472
  break;
473
473
  }
474
474
  return t;
@@ -1,8 +1,8 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  import { c as B } from "../../chunks/runtime.js";
3
3
  import { ref as M } from "lit/directives/ref.js";
4
- import { C as V, F as i, L as n } from "../../chunks/common.js";
5
- import { e as y, l as d, r as h, o as T, g as w } from "../../chunks/type-guards.js";
4
+ import { C as V, F as i, L as d } from "../../chunks/common.js";
5
+ import { e as x, l as n, r as h, o as T, g as w } from "../../chunks/type-guards.js";
6
6
  import "@arcgis/toolkit/type";
7
7
  import { W as l } from "../../chunks/series-types.js";
8
8
  import { a as N, f as b, h as W, g as D, i as G } from "../../chunks/rest-js-object-literals.js";
@@ -76,8 +76,8 @@ class z extends X {
76
76
  if (e.target?.localName === "calcite-list-item" ? s = e.target?.value : s = e.target?.parentNode?.value, this.selectedSymbols = [], this.selectedBackground = [], e.shiftKey) {
77
77
  this.selectedTexts = [];
78
78
  const o = this.textProperties.indexOf(this.lastSelectedText ?? s), m = this.textProperties.indexOf(s);
79
- this.textProperties.forEach((c, x) => {
80
- x >= Math.min(o, m) && x <= Math.max(o, m) && this.selectedTexts.push(c);
79
+ this.textProperties.forEach((c, y) => {
80
+ y >= Math.min(o, m) && y <= Math.max(o, m) && this.selectedTexts.push(c);
81
81
  }), this.updateSelectedElement(this.selectedTexts), this.setupFormatPopover();
82
82
  } else if (e.ctrlKey)
83
83
  this.selectedTexts.includes(s) ? (this.selectedTexts = this.selectedTexts.filter((o) => o !== s), this.updateSelectedElement(this.selectedTexts)) : (this.selectedTexts = [...this.selectedTexts, s], this.updateSelectedElement(this.selectedTexts)), this.setupFormatPopover();
@@ -186,7 +186,7 @@ class z extends X {
186
186
  case i.XAxisTitle:
187
187
  return C(this.model) ? this.model.xAxisTitleSymbol : void 0;
188
188
  case i.YAxisTitle:
189
- return d(this.model) ? this.model.getAxisTitleSymbol(1) : void 0;
189
+ return n(this.model) ? this.model.getAxisTitleSymbol(1) : void 0;
190
190
  case i.AxisLabels:
191
191
  return E(this.model) ? this.model.axisLabelsSymbol : void 0;
192
192
  case i.GuideLabels:
@@ -197,12 +197,12 @@ class z extends X {
197
197
  return h(this.model) ? this.model.legendTitleSymbol : void 0;
198
198
  case i.DataLabels:
199
199
  return L(this.model) ? this.model.dataLabelsSymbol : void 0;
200
- case n.AxisLines:
200
+ case d.AxisLines:
201
201
  return P(this.model) ? this.model.axisLinesSymbol : void 0;
202
- case n.GridLines:
203
- return d(this.model) ? this.model.getGridLinesSymbol() : void 0;
204
- case n.LeaderLines:
205
- return y(this.model) ? this.model.ticksSymbol : void 0;
202
+ case d.GridLines:
203
+ return n(this.model) ? this.model.getGridLinesSymbol() : void 0;
204
+ case d.LeaderLines:
205
+ return x(this.model) ? this.model.ticksSymbol : void 0;
206
206
  case i.Background:
207
207
  return this.model.backgroundColor;
208
208
  default:
@@ -221,7 +221,7 @@ class z extends X {
221
221
  C(this.model) && r(e) && (this.model.xAxisTitleSymbol = e);
222
222
  break;
223
223
  case i.YAxisTitle:
224
- d(this.model) && r(e) && this.model.setAxisTitleSymbol(e, 1);
224
+ n(this.model) && r(e) && this.model.setAxisTitleSymbol(e, 1);
225
225
  break;
226
226
  case i.AxisLabels:
227
227
  E(this.model) && r(e) && (this.model.axisLabelsSymbol = e);
@@ -238,11 +238,11 @@ class z extends X {
238
238
  case i.DataLabels:
239
239
  L(this.model) && r(e) && (this.model.dataLabelsSymbol = e);
240
240
  break;
241
- case n.AxisLines:
241
+ case d.AxisLines:
242
242
  P(this.model) && u(e) && (this.model.axisLinesSymbol = e);
243
243
  break;
244
- case n.GridLines:
245
- if (d(this.model) && u(e)) {
244
+ case d.GridLines:
245
+ if (n(this.model) && u(e)) {
246
246
  const s = this.model.chartType;
247
247
  let o = [];
248
248
  switch (s) {
@@ -266,8 +266,8 @@ class z extends X {
266
266
  this.model.setGridLinesSymbol(e, o);
267
267
  }
268
268
  break;
269
- case n.LeaderLines:
270
- y(this.model) && u(e) && (this.model.ticksSymbol = e);
269
+ case d.LeaderLines:
270
+ x(this.model) && u(e) && (this.model.ticksSymbol = e);
271
271
  break;
272
272
  case i.Background:
273
273
  Array.isArray(e) && (this.model.backgroundColor = e);
@@ -278,7 +278,7 @@ class z extends X {
278
278
  this.textProperties = [
279
279
  i.Title,
280
280
  ...C(this.model) ? [i.XAxisTitle] : [],
281
- ...d(this.model) ? [i.YAxisTitle] : [],
281
+ ...n(this.model) ? [i.YAxisTitle] : [],
282
282
  ...h(this.model) ? [i.LegendTitle] : [],
283
283
  i.Description,
284
284
  ...h(this.model) ? [i.LegendText] : [],
@@ -287,9 +287,9 @@ class z extends X {
287
287
  ...L(this.model) && this.model.chartType !== l.HeatSeries && this.model.chartType !== l.BoxPlotSeries ? [i.DataLabels] : []
288
288
  ], w(this.model) && (this.textProperties = this.textProperties.filter((s) => s !== i.DataLabels)), this.symbolProperties = [
289
289
  i.Background,
290
- ...P(this.model) ? [n.AxisLines] : [],
291
- ...d(this.model) ? [n.GridLines] : [],
292
- ...y(this.model) ? [n.LeaderLines] : []
290
+ ...P(this.model) && this.model.chartType !== l.HeatSeries ? [d.AxisLines] : [],
291
+ ...n(this.model) ? [d.GridLines] : [],
292
+ ...x(this.model) ? [d.LeaderLines] : []
293
293
  ];
294
294
  const t = this.textProperties.map((s) => this.renderTextElement(s, this.textPropertyChange)), e = this.symbolProperties.map((s) => s === i.Background ? this.renderTextElement(s, this.backgroundChange) : this.renderTextElement(s, this.symbolPropertyChange));
295
295
  return { textElements: t, symbolElements: e };