@arcgis/charts-components 5.0.0-next.155 → 5.0.0-next.157

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 (144) hide show
  1. package/dist/cdn/{ECU55LUL.js → 24G3R2NZ.js} +1 -1
  2. package/dist/cdn/{FYIPLPHA.js → 26BKNNYW.js} +1 -1
  3. package/dist/cdn/{UYHIMUBJ.js → 2P3LOSXB.js} +1 -1
  4. package/dist/cdn/{C2RKCI3G.js → 375EVU4I.js} +1 -1
  5. package/dist/cdn/{DXEQJDZ7.js → 3LGMTKQX.js} +1 -1
  6. package/dist/cdn/{52FRFN3M.js → 3OOP7JVV.js} +1 -1
  7. package/dist/cdn/{35OCYCHT.js → 3WLR7LYQ.js} +1 -1
  8. package/dist/cdn/{ONHMB7IB.js → 4MX2RCM7.js} +1 -1
  9. package/dist/cdn/{GE4WRQ6M.js → 4PELVXK2.js} +1 -1
  10. package/dist/cdn/{ANLQORYF.js → 4THLFRXC.js} +1 -1
  11. package/dist/cdn/{S5B2GWDV.js → 523DCTB2.js} +1 -1
  12. package/dist/cdn/{MMWTN34M.js → 54MQG3Y4.js} +1 -1
  13. package/dist/cdn/{RRFH6UIA.js → 5ZDQSNMW.js} +1 -1
  14. package/dist/cdn/{SEWGWBKP.js → 6HH42MRM.js} +1 -1
  15. package/dist/cdn/{BDCOQQX4.js → 6VMGIBJH.js} +1 -1
  16. package/dist/cdn/{ABBNWIZT.js → 7EBT4Z3E.js} +1 -1
  17. package/dist/cdn/{QKCPJEDK.js → 7JD246JY.js} +1 -1
  18. package/dist/cdn/{7YUDBNDX.js → 7YRNF4UC.js} +1 -1
  19. package/dist/cdn/{QLYQECRG.js → A2RWFKJN.js} +1 -1
  20. package/dist/cdn/{QYF3LUIL.js → AHTQX2K5.js} +1 -1
  21. package/dist/cdn/{45N5QT4E.js → AHZO5HAI.js} +1 -1
  22. package/dist/cdn/{JFDEJL4M.js → B3B24SUJ.js} +1 -1
  23. package/dist/cdn/{H35HG6YD.js → BBNTNTPL.js} +1 -1
  24. package/dist/cdn/{YJ2ODQL6.js → BETTBA6W.js} +18 -18
  25. package/dist/cdn/{KXN3L2LR.js → BTXIFN62.js} +1 -1
  26. package/dist/cdn/{AIKNWBIY.js → C57HCIJF.js} +1 -1
  27. package/dist/cdn/{WUFVBAO7.js → CAPLS2SP.js} +1 -1
  28. package/dist/cdn/{NZQOXVGI.js → CEBFBTGN.js} +1 -1
  29. package/dist/cdn/{JNQCKZUH.js → COHNZUH4.js} +1 -1
  30. package/dist/cdn/{WWYO44HJ.js → CUHZ5H6M.js} +1 -1
  31. package/dist/cdn/{ZLRZ5NSX.js → CYQTKTBB.js} +1 -1
  32. package/dist/cdn/{XPJSRIQB.js → DACKHIMW.js} +1 -1
  33. package/dist/cdn/{ZYCJAUYA.js → DK34TJK5.js} +1 -1
  34. package/dist/cdn/{6Y36JX6K.js → DMCWDDOK.js} +1 -1
  35. package/dist/cdn/{Z3BUTY77.js → EFUGLLIB.js} +1 -1
  36. package/dist/cdn/{BHR45JWI.js → ERSE3BAG.js} +1 -1
  37. package/dist/cdn/{PGK2MFQL.js → F5JDR2LX.js} +1 -1
  38. package/dist/cdn/{F2E6R27A.js → FLY4THUG.js} +1 -1
  39. package/dist/cdn/{EIODUKVR.js → FPBZB6AO.js} +1 -1
  40. package/dist/cdn/{5KZRIPF7.js → FRPH2DSY.js} +1 -1
  41. package/dist/cdn/{467BQYS3.js → FUHZ3LKG.js} +1 -1
  42. package/dist/cdn/{3BSGQ2M2.js → FXVUNCUO.js} +1 -1
  43. package/dist/cdn/{5R5EDJI2.js → G3R6ZYXI.js} +1 -1
  44. package/dist/cdn/{KI6NXDT3.js → GTOGXYRY.js} +1 -1
  45. package/dist/cdn/{VDYXUP5N.js → HPMFVXUR.js} +2 -2
  46. package/dist/cdn/{35C6GUFD.js → HVAKXK36.js} +1 -1
  47. package/dist/cdn/{HVKTW6K7.js → IACP6TK3.js} +1 -1
  48. package/dist/cdn/{F4KKUFSS.js → IHRGRUHQ.js} +1 -1
  49. package/dist/cdn/{TSZJJRA3.js → J6ZQJAKI.js} +1 -1
  50. package/dist/cdn/{ZBFYQMVZ.js → JW4I75P2.js} +1 -1
  51. package/dist/cdn/{CNZCXTQW.js → KAGFPWOI.js} +1 -1
  52. package/dist/cdn/{JTGTN7IP.js → L2AYPA6D.js} +1 -1
  53. package/dist/cdn/{SZ6UASF7.js → L676S3UK.js} +1 -1
  54. package/dist/cdn/{AGHHMKWF.js → L6STG5JG.js} +1 -1
  55. package/dist/cdn/{M4MC6NPH.js → LNNVVWPS.js} +1 -1
  56. package/dist/cdn/{LORCTX4N.js → LRFYKNBE.js} +1 -1
  57. package/dist/cdn/{4YSSO6AV.js → MPFUP55Y.js} +1 -1
  58. package/dist/cdn/{Z6OISCU7.js → MW7P3MBK.js} +1 -1
  59. package/dist/cdn/{KSXZF3MT.js → NXJ3C63F.js} +1 -1
  60. package/dist/cdn/{ZXUPLLNU.js → OGGUW3EN.js} +1 -1
  61. package/dist/cdn/{Z7IJYITW.js → OIAUPDOF.js} +1 -1
  62. package/dist/cdn/{UNXBOULC.js → OQQGGRR3.js} +1 -1
  63. package/dist/cdn/{EFVRRAIC.js → QOFY3GIE.js} +1 -1
  64. package/dist/cdn/{O57CLGWK.js → QZPVT5YY.js} +1 -1
  65. package/dist/cdn/{NDJL5WYH.js → R4OBDOQC.js} +1 -1
  66. package/dist/cdn/{QVESOFYK.js → RABOK45X.js} +1 -1
  67. package/dist/cdn/{OFO543HE.js → RBOCPQA4.js} +1 -1
  68. package/dist/cdn/{XSAJR5MT.js → REDPF6NL.js} +1 -1
  69. package/dist/cdn/{IDO3VBRQ.js → S2HYWDTR.js} +1 -1
  70. package/dist/cdn/{45IUJCW3.js → S5H356WE.js} +1 -1
  71. package/dist/cdn/S76BUIQV.js +2 -0
  72. package/dist/cdn/{24DYJTTO.js → T4LS2RKP.js} +1 -1
  73. package/dist/cdn/{IAWX65N5.js → TFNP3TGT.js} +1 -1
  74. package/dist/cdn/{E7BSVZUR.js → TGU2UMGM.js} +1 -1
  75. package/dist/cdn/{WUYK6PKY.js → TJ5UK25V.js} +1 -1
  76. package/dist/cdn/TNOQRH3B.js +2 -0
  77. package/dist/cdn/{O53AVH5D.js → TRMC4HRI.js} +1 -1
  78. package/dist/cdn/{6N655SYJ.js → UTXBT34S.js} +1 -1
  79. package/dist/cdn/{NOTHQBKN.js → UVCTOVIX.js} +1 -1
  80. package/dist/cdn/{3GNXCBNI.js → UVI2JFIH.js} +1 -1
  81. package/dist/cdn/UYASRH7C.js +2 -0
  82. package/dist/cdn/{YUOMGY3S.js → W2NUBVFW.js} +1 -1
  83. package/dist/cdn/{U2D6UCEK.js → X2OZWCAJ.js} +1 -1
  84. package/dist/cdn/{HVTUCPBY.js → XTOYBHDM.js} +1 -1
  85. package/dist/cdn/{64M3EB2T.js → XYYEECDC.js} +1 -1
  86. package/dist/cdn/{6L25P4C5.js → Y3YBSTSA.js} +1 -1
  87. package/dist/cdn/{QUPSLYFV.js → Y56QSH3L.js} +1 -1
  88. package/dist/cdn/{BLECSW5M.js → YRRAJRCM.js} +1 -1
  89. package/dist/cdn/{UKT2HF3P.js → YYEA5GGO.js} +1 -1
  90. package/dist/cdn/{X3F6UYCA.js → ZDTETN3M.js} +1 -1
  91. package/dist/cdn/index.js +1 -1
  92. package/dist/chunks/action-bar-utils.js +1 -1
  93. package/dist/chunks/bar-chart-model.js +1 -0
  94. package/dist/chunks/box-plot-model.js +5 -0
  95. package/dist/chunks/chart-ui-utils.js +4 -3
  96. package/dist/chunks/combo-bar-line-chart-model.js +3 -0
  97. package/dist/chunks/data.js +10 -10
  98. package/dist/chunks/gauge-model.js +1 -0
  99. package/dist/chunks/heat-chart-model.js +1 -0
  100. package/dist/chunks/histogram-model.js +1 -0
  101. package/dist/chunks/index.js +196 -192
  102. package/dist/chunks/index2.js +33 -33
  103. package/dist/chunks/line-chart-model.js +2 -0
  104. package/dist/chunks/model-setter.js +3 -0
  105. package/dist/chunks/pie-chart-model.js +2 -1
  106. package/dist/chunks/radar-chart-model.js +2 -0
  107. package/dist/chunks/scatterplot-model.js +1 -0
  108. package/dist/chunks/serial-chart-data.js +92 -92
  109. package/dist/chunks/serial-chart-model.js +5 -0
  110. package/dist/chunks/web-component-utils.js +45 -45
  111. package/dist/components/arcgis-chart/customElement.js +2465 -2450
  112. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
  113. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
  114. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
  115. package/dist/components/arcgis-charts-config-create-flow/customElement.js +110 -110
  116. package/dist/components/arcgis-charts-config-format/customElement.js +20 -20
  117. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +55 -55
  118. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +5 -5
  119. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
  120. package/dist/components/arcgis-charts-info-modal/customElement.js +34 -11
  121. package/dist/docs/api.json +1 -1
  122. package/dist/docs/docs.json +1 -1
  123. package/dist/docs/web-types.json +1 -1
  124. package/dist/index.js +278 -277
  125. package/dist/model/bar-chart-model/bar-chart-model.d.ts +1 -10
  126. package/dist/model/box-plot-model/box-plot-model.d.ts +1 -34
  127. package/dist/model/chart-model/chart-model-base.d.ts +0 -46
  128. package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +1 -14
  129. package/dist/model/gauge-model/gauge-model.d.ts +2 -11
  130. package/dist/model/heat-chart-model/heat-chart-model.d.ts +2 -10
  131. package/dist/model/histogram-model/histogram-model.d.ts +2 -11
  132. package/dist/model/line-chart-model/line-chart-model.d.ts +1 -14
  133. package/dist/model/mixins/model-with-line-marker-styling.d.ts +0 -4
  134. package/dist/model/mixins/model-with-multi-axes.d.ts +0 -3
  135. package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -17
  136. package/dist/model/radar-chart-model/radar-chart-model.d.ts +1 -14
  137. package/dist/model/scatterplot-model/scatterplot-model.d.ts +2 -11
  138. package/dist/model/serial-chart-model/serial-chart-model.d.ts +0 -42
  139. package/dist/utils/misc/index.d.ts +10 -1
  140. package/dist/utils/ui/chart-ui-utils.d.ts +3 -2
  141. package/package.json +3 -3
  142. package/dist/cdn/3OOAEI2T.js +0 -2
  143. package/dist/cdn/4KZSOP76.js +0 -2
  144. package/dist/cdn/XPDQ7RD2.js +0 -2
@@ -5,7 +5,7 @@ import "@arcgis/toolkit/intl";
5
5
  import { isEqual as f } from "lodash-es";
6
6
  import "luxon";
7
7
  import "d3-array";
8
- import { bK as I, br as k, bs as O, b as D, cY as y, cZ as E, di as P, o as F, df as B, bM as _, d3 as N } from "../../chunks/index.js";
8
+ import { bK as I, br as k, bs as O, b as D, cY as y, cZ as E, dj as P, o as F, dg as B, bM as _, d3 as N } from "../../chunks/index.js";
9
9
  import { a as g, i as A, W as p, m as b } from "../../chunks/series-types.js";
10
10
  import "@arcgis/toolkit/type";
11
11
  import "@arcgis/core/geometry/support/jsonUtils.js";
@@ -7,7 +7,7 @@ import "luxon";
7
7
  import "d3-array";
8
8
  import "@arcgis/toolkit/type";
9
9
  import { e as r, a as u } from "../../chunks/series-types.js";
10
- import { df as T, di as C } from "../../chunks/index.js";
10
+ import { dg as T, dj as C } from "../../chunks/index.js";
11
11
  import "@arcgis/core/Graphic.js";
12
12
  import "@arcgis/core/renderers/support/jsonUtils.js";
13
13
  import "@arcgis/core/symbols/support/symbolUtils.js";
@@ -8,7 +8,7 @@ import "luxon";
8
8
  import "d3-array";
9
9
  import "@arcgis/toolkit/type";
10
10
  import { f as d } from "../../chunks/series-types.js";
11
- import { df as S } from "../../chunks/index.js";
11
+ import { dg as S } from "../../chunks/index.js";
12
12
  import "@arcgis/core/Graphic.js";
13
13
  import "@arcgis/core/renderers/support/jsonUtils.js";
14
14
  import "@arcgis/core/symbols/support/symbolUtils.js";
@@ -8,7 +8,7 @@ import { i as H } from "../../chunks/rotated-state.js";
8
8
  import "@arcgis/toolkit/intl";
9
9
  import { isEqual as w } from "lodash-es";
10
10
  import "luxon";
11
- import { Z as D, dd as k, c$ as F, di as z, dk as O, af as R } from "../../chunks/index.js";
11
+ import { Z as D, dd as k, c$ as F, dj as z, dl as O, af as R } from "../../chunks/index.js";
12
12
  import "@arcgis/core/geometry/support/jsonUtils.js";
13
13
  import "@arcgis/core/rest/support/AttributeBinsQuery.js";
14
14
  import "@arcgis/core/rest/support/StatisticDefinition.js";
@@ -32,8 +32,8 @@ import { C as f } from "../../chunks/index5.js";
32
32
  import { a as L } from "../../chunks/chart-ui-utils.js";
33
33
  import { r as G } from "../../chunks/popover-ui-utils.js";
34
34
  import { C as l } from "../../chunks/interfaces.js";
35
- import { LitElement as X, createEvent as y, renderElement as I, safeStyleMap as K, safeClassMap as d } from "@arcgis/lumina";
36
- import { css as j, html as h } from "lit";
35
+ import { LitElement as X, createEvent as y, renderElement as I, safeStyleMap as j, safeClassMap as d } from "@arcgis/lumina";
36
+ import { css as K, html as h } from "lit";
37
37
  import { createRef as q, ref as Y } from "lit/directives/ref.js";
38
38
  import { u as P } from "../../chunks/useT9n.js";
39
39
  import { b as Q, s as x, g as J } from "../../chunks/store.js";
@@ -46,57 +46,57 @@ 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
- 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}`;
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}`;
100
100
  class he extends X {
101
101
  constructor() {
102
102
  super(), this.selectChartTypePopover = null, this.chartsListFlowItem = q(), this.supportedChartTypes = [
@@ -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=${K({ 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.0/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 };