@arcgis/charts-components 5.2.0-next.58 → 5.2.0-next.59

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 (231) hide show
  1. package/dist/cdn/{A6QLIVFM.js → 26UUSCOV.js} +20 -20
  2. package/dist/cdn/2B27HWX2.js +2 -0
  3. package/dist/cdn/44DVV3KE.js +2 -0
  4. package/dist/cdn/54M3LLQH.js +2 -0
  5. package/dist/cdn/5NZ537SN.js +2 -0
  6. package/dist/cdn/5RC76C5H.js +2 -0
  7. package/dist/cdn/{OEYB3NZZ.js → 5RWZRHLN.js} +1 -1
  8. package/dist/cdn/64CBZCW7.js +2 -0
  9. package/dist/cdn/{PHUJHKPW.js → 6HIK7EBX.js} +1 -1
  10. package/dist/cdn/6KMPIGFU.js +2 -0
  11. package/dist/cdn/6KTWKIGJ.js +2 -0
  12. package/dist/cdn/{UGOWEOTC.js → AYQ4HHL6.js} +1 -1
  13. package/dist/cdn/AZDPAG65.js +2 -0
  14. package/dist/cdn/B2XDPYOL.js +2 -0
  15. package/dist/cdn/{LOEMTYZB.js → B5KB7HXA.js} +1 -1
  16. package/dist/cdn/BFT5CL7V.js +2 -0
  17. package/dist/cdn/BU3IX333.js +2 -0
  18. package/dist/cdn/COLTSCAS.js +2 -0
  19. package/dist/cdn/CU6R7UXF.js +2 -0
  20. package/dist/cdn/{NYFHPR6N.js → DAFNQT4C.js} +1 -1
  21. package/dist/cdn/{OS5TUH4X.js → DDUKKQIZ.js} +1 -1
  22. package/dist/cdn/{FQ6B5P53.js → DG6ENZ35.js} +1 -1
  23. package/dist/cdn/E5G6IGUP.js +2 -0
  24. package/dist/cdn/EFRELYIP.js +2 -0
  25. package/dist/cdn/EQ2X422F.js +2 -0
  26. package/dist/cdn/{J64IDIEG.js → EQDTX4JX.js} +1 -1
  27. package/dist/cdn/FHCIXPMQ.js +3 -0
  28. package/dist/cdn/FJGG2VVZ.js +2 -0
  29. package/dist/cdn/G3MWFZDW.js +2 -0
  30. package/dist/cdn/GC7ISTDF.js +2 -0
  31. package/dist/cdn/{GVUHKCSZ.js → GJ4JGGKT.js} +1 -1
  32. package/dist/cdn/GPABWWGF.js +2 -0
  33. package/dist/cdn/{DRHDCMI3.js → GQGII3CK.js} +1 -1
  34. package/dist/cdn/{JXZJXDU5.js → GWNHO3MZ.js} +11 -9
  35. package/dist/cdn/H3CYQU3L.js +2 -0
  36. package/dist/cdn/{HDCSZ2BJ.js → H57XAQPI.js} +2 -2
  37. package/dist/cdn/HD72K7JQ.js +2 -0
  38. package/dist/cdn/{FJPWWKHZ.js → HSVZTTYF.js} +1 -1
  39. package/dist/cdn/IJYXP34M.js +2 -0
  40. package/dist/cdn/IKSW6TU5.js +2 -0
  41. package/dist/cdn/{BGTNSGMQ.js → INUVRMMG.js} +1 -1
  42. package/dist/cdn/{6Z7SZ44K.js → IOE5YG7Q.js} +1 -1
  43. package/dist/cdn/IPMCTC6B.js +2 -0
  44. package/dist/cdn/IW7AZIV6.js +2 -0
  45. package/dist/cdn/{4B5XCGIW.js → J6M4AA5V.js} +1 -1
  46. package/dist/cdn/JWWSIFDA.js +2 -0
  47. package/dist/cdn/KBOIN2ZI.js +2 -0
  48. package/dist/cdn/KDLRVDVQ.js +2 -0
  49. package/dist/cdn/KJZTU3DV.js +2 -0
  50. package/dist/cdn/{GSD4ZLN6.js → KR7A5JG4.js} +1 -1
  51. package/dist/cdn/KUI3SQHQ.js +2 -0
  52. package/dist/cdn/KVAWYWYK.js +2 -0
  53. package/dist/cdn/{5PAOUYHV.js → LA5FTE2U.js} +2 -2
  54. package/dist/cdn/LU6YEMXO.js +2 -0
  55. package/dist/cdn/MJLDF2FQ.js +2 -0
  56. package/dist/cdn/{UYQBMPSN.js → MLLV2GML.js} +1 -1
  57. package/dist/cdn/MO5LDVWE.js +2 -0
  58. package/dist/cdn/MYDNPSD6.js +2 -0
  59. package/dist/cdn/NCHIDM4H.js +2 -0
  60. package/dist/cdn/NYDW2I5M.js +2 -0
  61. package/dist/cdn/{2EDBRZSQ.js → NZT3J3KJ.js} +1 -1
  62. package/dist/cdn/{QYNNPEED.js → OAXHS4LE.js} +1 -1
  63. package/dist/cdn/OKZBV5LB.js +2 -0
  64. package/dist/cdn/{QRJMT2DB.js → OTH3FQJJ.js} +1 -1
  65. package/dist/cdn/P2L3OTIA.js +2 -0
  66. package/dist/cdn/PA4NRD4I.js +2 -0
  67. package/dist/cdn/PDYOXU7M.js +2 -0
  68. package/dist/cdn/PXTBSPEA.js +2 -0
  69. package/dist/cdn/{ALOMPW5P.js → Q6VW7H3A.js} +1 -1
  70. package/dist/cdn/QRNP4SNY.js +2 -0
  71. package/dist/cdn/QTD2QGHC.js +2 -0
  72. package/dist/cdn/{GXGUKV7H.js → RA3GUNR3.js} +1 -1
  73. package/dist/cdn/{VPJVWP7S.js → RQ6HACQP.js} +1 -1
  74. package/dist/cdn/{2ULHNXRJ.js → SCU3SBSN.js} +1 -1
  75. package/dist/cdn/T3WULYNA.js +2 -0
  76. package/dist/cdn/TCKFUPRR.js +2 -0
  77. package/dist/cdn/TQYULR2I.js +2 -0
  78. package/dist/cdn/UL2ASLY7.js +2 -0
  79. package/dist/cdn/{MEQOANO2.js → UMYQZXPT.js} +1 -1
  80. package/dist/cdn/USNCFQ5L.js +2 -0
  81. package/dist/cdn/{EZ6DGROJ.js → UYMLDXJI.js} +1 -1
  82. package/dist/cdn/V6TEH3XV.js +2 -0
  83. package/dist/cdn/VME2NH7X.js +2 -0
  84. package/dist/cdn/{KI2XMATI.js → VXQLTYHF.js} +1 -1
  85. package/dist/cdn/WKCITUA3.js +2 -0
  86. package/dist/cdn/{CB6BIIF2.js → WMUPNT4Q.js} +1 -1
  87. package/dist/cdn/WWKZYBCF.js +2 -0
  88. package/dist/cdn/XYBOIKE4.js +2 -0
  89. package/dist/cdn/{2DHUAIBZ.js → YIWJ2NPY.js} +1 -1
  90. package/dist/cdn/YL27XTUT.js +2 -0
  91. package/dist/cdn/{TT6WOAKC.js → ZESW7TCR.js} +1 -1
  92. package/dist/cdn/ZH3BXRLT.js +2 -0
  93. package/dist/cdn/{6HFL4FZL.js → ZZ5FKECR.js} +1 -1
  94. package/dist/cdn/index.js +1 -1
  95. package/dist/cdn/model/shared/setup-utils.js +1 -1
  96. package/dist/chart-rendering/common/interfaces.d.ts +11 -8
  97. package/dist/chunks/action-bar-utils.js +1 -1
  98. package/dist/chunks/bar-chart-model.js +1 -1
  99. package/dist/chunks/box-plot-data.js +55 -56
  100. package/dist/chunks/box-plot-model.js +1 -1
  101. package/dist/chunks/class-breaks.js +1 -1
  102. package/dist/chunks/combo-bar-line-chart-model.js +6 -7
  103. package/dist/chunks/data.js +9 -9
  104. package/dist/chunks/gauge-model.js +1 -1
  105. package/dist/chunks/generate-x-axis-title.js +4 -4
  106. package/dist/chunks/heat-chart-model.js +1 -1
  107. package/dist/chunks/index.js +1 -1
  108. package/dist/chunks/index2.js +1576 -1467
  109. package/dist/chunks/index3.js +77 -67
  110. package/dist/chunks/index4.js +25 -13
  111. package/dist/chunks/index5.js +63 -100
  112. package/dist/chunks/line-chart-model.js +1 -1
  113. package/dist/chunks/model-setter.js +1 -1
  114. package/dist/chunks/negative-values-stacked-to-baseline.js +6 -6
  115. package/dist/chunks/pie-chart-data.js +1 -1
  116. package/dist/chunks/pie-chart-model.js +1 -1
  117. package/dist/chunks/radar-chart-model.js +1 -1
  118. package/dist/chunks/resource.js +5 -5
  119. package/dist/chunks/rounded-corners.js +5 -5
  120. package/dist/chunks/scatterplot-model.js +1 -1
  121. package/dist/chunks/serial-chart-data.js +631 -620
  122. package/dist/chunks/serial-chart-model.js +63 -64
  123. package/dist/chunks/series-length.js +1 -1
  124. package/dist/chunks/series-types.js +22 -18
  125. package/dist/chunks/type-guards2.js +30 -26
  126. package/dist/chunks/utils.js +50 -51
  127. package/dist/chunks/web-component-utils.js +2 -2
  128. package/dist/chunks/x-bounds.js +21 -22
  129. package/dist/components/arcgis-chart/customElement.d.ts +64 -23
  130. package/dist/components/arcgis-chart/customElement.js +6128 -6148
  131. package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
  132. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +6 -7
  133. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
  134. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
  135. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +54 -53
  136. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +10 -9
  137. package/dist/components/arcgis-charts-config-box-plot/customElement.js +10 -11
  138. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
  139. package/dist/components/arcgis-charts-config-create-flow/customElement.js +48 -46
  140. package/dist/components/arcgis-charts-config-format/customElement.js +2 -2
  141. package/dist/components/arcgis-charts-config-guide/customElement.js +18 -19
  142. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
  143. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +12 -13
  144. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +1 -1
  145. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
  146. package/dist/components/arcgis-charts-config-histogram/customElement.js +12 -13
  147. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +6 -6
  148. package/dist/components/arcgis-charts-config-line-chart/customElement.js +5 -6
  149. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
  150. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +5 -5
  151. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +4 -5
  152. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -1
  153. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +18 -18
  154. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +6 -7
  155. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
  156. package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
  157. package/dist/docs/api.json +1 -1
  158. package/dist/docs/docs.json +1 -1
  159. package/dist/docs/vscode.html-custom-data.json +1 -1
  160. package/dist/docs/web-types.json +1 -1
  161. package/dist/index.js +286 -283
  162. package/dist/json-schema/index.d.ts +12 -2
  163. package/dist/model/shared/type-guards.d.ts +9 -2
  164. package/dist/spec/web-chart.d.ts +26 -4
  165. package/dist/utils/chart-config/converter/index.js +185 -166
  166. package/dist/utils/chart-config/utils/index.d.ts +18 -3
  167. package/dist/utils/cursor/interfaces.d.ts +21 -0
  168. package/dist/utils/type-guards/series-types.d.ts +9 -2
  169. package/package.json +3 -3
  170. package/dist/cdn/2B7R5EPU.js +0 -2
  171. package/dist/cdn/37UC5ORG.js +0 -2
  172. package/dist/cdn/3MGWFTQH.js +0 -2
  173. package/dist/cdn/3Z4FG2HV.js +0 -2
  174. package/dist/cdn/4L2YTJ24.js +0 -2
  175. package/dist/cdn/4MQOMRB6.js +0 -2
  176. package/dist/cdn/4MSUALRF.js +0 -2
  177. package/dist/cdn/4PMNY6J6.js +0 -2
  178. package/dist/cdn/4SFDTXQJ.js +0 -2
  179. package/dist/cdn/53DFPXFT.js +0 -2
  180. package/dist/cdn/5GXB34LE.js +0 -2
  181. package/dist/cdn/5WIDEL4K.js +0 -2
  182. package/dist/cdn/7IK6J5VF.js +0 -2
  183. package/dist/cdn/A34ROM33.js +0 -2
  184. package/dist/cdn/BM62ZXFE.js +0 -2
  185. package/dist/cdn/BNBZEIMG.js +0 -2
  186. package/dist/cdn/C3YMGEUW.js +0 -2
  187. package/dist/cdn/C64W7ELG.js +0 -2
  188. package/dist/cdn/CD2NGAV3.js +0 -2
  189. package/dist/cdn/CPRSIFTK.js +0 -2
  190. package/dist/cdn/DTNHSQRD.js +0 -2
  191. package/dist/cdn/DUAMGCAK.js +0 -2
  192. package/dist/cdn/E4T5VUXT.js +0 -2
  193. package/dist/cdn/EDYZLWGW.js +0 -3
  194. package/dist/cdn/EKWX6BR7.js +0 -2
  195. package/dist/cdn/EQXKSMAG.js +0 -2
  196. package/dist/cdn/F64XESDA.js +0 -2
  197. package/dist/cdn/G5DDARQJ.js +0 -2
  198. package/dist/cdn/G5FTVXQF.js +0 -2
  199. package/dist/cdn/GHTCOHC2.js +0 -2
  200. package/dist/cdn/I6LYDJKQ.js +0 -2
  201. package/dist/cdn/IDAMYFLT.js +0 -2
  202. package/dist/cdn/IH2BBWAQ.js +0 -2
  203. package/dist/cdn/J4C4QWY4.js +0 -2
  204. package/dist/cdn/JYROXMJN.js +0 -2
  205. package/dist/cdn/LDBJRKCM.js +0 -2
  206. package/dist/cdn/M5K6IJLD.js +0 -2
  207. package/dist/cdn/M7ZANON3.js +0 -2
  208. package/dist/cdn/MCJTQ4YF.js +0 -2
  209. package/dist/cdn/MLA3N4MI.js +0 -2
  210. package/dist/cdn/MR7KELUF.js +0 -2
  211. package/dist/cdn/MY2W3RH7.js +0 -2
  212. package/dist/cdn/MYK7BBLS.js +0 -2
  213. package/dist/cdn/N7D4B5LO.js +0 -2
  214. package/dist/cdn/NFU76HOO.js +0 -2
  215. package/dist/cdn/NZVEN4LR.js +0 -2
  216. package/dist/cdn/OKK5OJ6S.js +0 -2
  217. package/dist/cdn/PXTV6Y3K.js +0 -2
  218. package/dist/cdn/QJMUS3VS.js +0 -2
  219. package/dist/cdn/QMJ75W7D.js +0 -2
  220. package/dist/cdn/RKGAXZQB.js +0 -2
  221. package/dist/cdn/RP2TRPHY.js +0 -2
  222. package/dist/cdn/UIU5UYBO.js +0 -2
  223. package/dist/cdn/V23GYHYZ.js +0 -2
  224. package/dist/cdn/XWJ4GDXQ.js +0 -2
  225. package/dist/cdn/ZAAMSMQB.js +0 -2
  226. package/dist/cdn/ZALJA7E5.js +0 -2
  227. package/dist/cdn/ZCACFAKY.js +0 -2
  228. package/dist/cdn/ZKZOXEXY.js +0 -2
  229. package/dist/cdn/ZMBNBTJQ.js +0 -2
  230. package/dist/chunks/index6.js +0 -66
  231. /package/dist/cdn/{IVLVCLDE.js → 7NWEE7T2.js} +0 -0
@@ -1,27 +1,27 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as _ } from "../../chunks/runtime.js";
3
- import { repeat as V } from "lit/directives/repeat.js";
2
+ import { c as A } from "../../chunks/runtime.js";
3
+ import { repeat as N } from "lit/directives/repeat.js";
4
4
  import { keyed as b } from "lit/directives/keyed.js";
5
- import { createModel as U } from "../../model/shared/setup-utils.js";
6
- import { g as S, i as T, v as R, k as v, m as I } from "../../chunks/type-guards2.js";
5
+ import { createModel as _ } from "../../model/shared/setup-utils.js";
6
+ import { g as S, i as V, w as U, n as R, k as T, m as v } from "../../chunks/type-guards2.js";
7
7
  import { i as z } from "../../chunks/rotated-state.js";
8
8
  import { substitute as H } from "@arcgis/core/intl.js";
9
9
  import { C as n } from "../../chunks/interfaces.js";
10
- import { isEqual as D } from "lodash-es";
11
- import { i as F } from "../../chunks/index4.js";
12
- import { D as k, w as E, F as O } from "../../chunks/index3.js";
13
- import { LitElement as W, createEvent as f, renderElement as L, safeStyleMap as G, safeClassMap as d } from "@arcgis/lumina";
10
+ import { isEqual as w } from "lodash-es";
11
+ import { i as D } from "../../chunks/index4.js";
12
+ import { D as F, w as E, F as O } from "../../chunks/index3.js";
13
+ import { LitElement as W, createEvent as f, renderElement as I, safeStyleMap as G, safeClassMap as d } from "@arcgis/lumina";
14
14
  import { css as X, html as h } from "lit";
15
15
  import { createRef as Z, ref as K } from "lit/directives/ref.js";
16
- import { u as P } from "../../chunks/useT9n.js";
17
- import { c as j, a as $, g as q } from "../../chunks/store.js";
18
- import { d4 as Y, _ as Q, d5 as J, K as ee, b$ as te } from "../../chunks/index2.js";
16
+ import { u as L } from "../../chunks/useT9n.js";
17
+ import { c as j, a as x, g as q } from "../../chunks/store.js";
18
+ import { dv as Y, _ as Q, dw as J, K as ee, cp as te } from "../../chunks/index2.js";
19
19
  import { A as ae } from "../../chunks/axis-model-wrapper.js";
20
20
  import { h as se, f as y } from "../../chunks/web-component-utils.js";
21
21
  import { a as ie } from "../../chunks/chart-ui-utils2.js";
22
- import { C as M } from "../../chunks/index6.js";
23
- import { a as B } from "../../chunks/chart-ui-utils.js";
24
- import { d as re, e as x } from "../../chunks/type-guards.js";
22
+ import { C as M } from "../../chunks/index5.js";
23
+ import { a as P } from "../../chunks/chart-ui-utils.js";
24
+ import { d as re, e as $ } from "../../chunks/type-guards.js";
25
25
  import { r as oe } from "../../chunks/popover-ui-utils.js";
26
26
  import { u as o, s as le } from "../../chunks/chart-object-literals.js";
27
27
  const p = {
@@ -29,7 +29,7 @@ const p = {
29
29
  tabBar: "tab-bar",
30
30
  tab: "tab"
31
31
  };
32
- function w(m, e) {
32
+ function B(m, e) {
33
33
  const s = /* @__PURE__ */ new Set();
34
34
  let t = e;
35
35
  return m?.forEach((a, i) => {
@@ -50,16 +50,16 @@ function ce(m) {
50
50
  function he(m, e) {
51
51
  m.forEach((s) => {
52
52
  e.forEach((t) => {
53
- s?.id === t.layer?.id && A(s, t);
53
+ s?.id === t.layer?.id && k(s, t);
54
54
  });
55
55
  });
56
56
  }
57
- function A(m, e) {
57
+ function k(m, e) {
58
58
  const s = m;
59
59
  if (s) {
60
60
  const t = [...s?.charts ?? []], a = t?.findIndex((r) => r.id === e.chartId);
61
61
  let i = !1;
62
- a !== void 0 && a > -1 ? (i = !D(t[a], e.config), t[a] = e.config) : s && !F(e.config) && (i = !0, t.push(e.config)), i && (s.charts = t);
62
+ a !== void 0 && a > -1 ? (i = !w(t[a], e.config), t[a] = e.config) : s && !D(e.config) && (i = !0, t.push(e.config)), i && (s.charts = t);
63
63
  }
64
64
  }
65
65
  function de(m, e) {
@@ -73,7 +73,7 @@ function pe(m, e) {
73
73
  const s = m;
74
74
  if (s) {
75
75
  let t = [...s.charts ?? []];
76
- t = k({
76
+ t = F({
77
77
  arrayA: t,
78
78
  arrayB: e.map((a) => a.config),
79
79
  getKey: (a) => a.id ?? a.title?.content.text ?? ""
@@ -91,7 +91,7 @@ class ue extends W {
91
91
  o.HistogramSeries,
92
92
  o.ScatterSeries,
93
93
  o.HeatSeries
94
- ], this._messages = P(), this.commonStrings = P({ name: "common", blocking: !0 }), this.chartDataProcessComplete = (e) => {
94
+ ], this._messages = L(), this.commonStrings = L({ name: "common", blocking: !0 }), this.chartDataProcessComplete = (e) => {
95
95
  const s = e, { chartData: t, model: a } = s.detail, i = this.getModel(this.selectedChartId);
96
96
  if (a?.isSameChartAs(i))
97
97
  switch (i?.chartType) {
@@ -108,19 +108,21 @@ class ue extends W {
108
108
  case o.ScatterSeries: {
109
109
  const l = t, { dataItems: c, r2: g, aggregated: u } = l;
110
110
  let C = g;
111
- Number.isFinite(g) || (C = void 0), this.r2 = C, R(a) && (a.dataStore.r2 = C, a.dataStore.aggregated = u, u && (a.additionalTooltipField = void 0)), this.calculatedDataMinMaxBounds = this.getDataExtent(c), a && (a.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds);
111
+ Number.isFinite(g) || (C = void 0), this.r2 = C, U(a) && (a.dataStore.r2 = C, a.dataStore.aggregated = u, u && (a.additionalTooltipField = void 0)), this.calculatedDataMinMaxBounds = this.getDataExtent(c), a && (a.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds);
112
112
  break;
113
113
  }
114
114
  case o.LineSeries:
115
115
  case o.BarSeries: {
116
116
  const { dataItems: l, timeIntervalInfo: c } = t;
117
- if ((S(i) || T(i) && i.binTemporalData) && (c?.size !== void 0 && i.temporalBinningSize !== c?.size && (i.temporalBinningSize = c?.size), c?.unit !== void 0 && i.temporalBinningUnit !== c?.unit && c?.unit !== le.Quarter && (i.temporalBinningUnit = c?.unit), c?.size !== void 0 && c?.unit !== void 0 && j($, { size: c.size, unit: c.unit })), this.calculatedDataMinMaxBounds = this.getDataExtent(l), a && (a.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds), T(i)) {
118
- const g = i.xAxisField, u = l.some((N) => N[g] === null), C = i.nullCategory;
119
- u && C === void 0 && (i.nullCategory = O.nullCategory);
120
- }
117
+ (S(i) || V(i) && i.binTemporalData) && (c?.size !== void 0 && i.temporalBinningSize !== c?.size && (i.temporalBinningSize = c?.size), c?.unit !== void 0 && i.temporalBinningUnit !== c?.unit && c?.unit !== le.Quarter && (i.temporalBinningUnit = c?.unit), c?.size !== void 0 && c?.unit !== void 0 && j(x, { size: c.size, unit: c.unit })), this.calculatedDataMinMaxBounds = this.getDataExtent(l), a && (a.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds), this.applyDefaultNullCategoryIfNeeded(i, l);
121
118
  break;
122
119
  }
123
120
  }
121
+ }, this.applyDefaultNullCategoryIfNeeded = (e, s) => {
122
+ if (R(e) && e.nullCategory === void 0) {
123
+ const t = e.xAxisField;
124
+ s.some((i) => i[t] === null) && (e.nullCategory = O.nullCategory);
125
+ }
124
126
  }, this.chartAxesMinMaxChange = (e) => {
125
127
  const s = e, { bounds: t, model: a } = s.detail, i = this.getModel(this.selectedChartId), r = a?.isSameChartAs(i), l = i?.chartType;
126
128
  if (r)
@@ -158,15 +160,15 @@ class ue extends W {
158
160
  typeof a == "boolean" && z(r) && (r.rotated = a);
159
161
  break;
160
162
  case "legendPosition":
161
- typeof a == "string" && v(r) && (r.legendPosition = a);
163
+ typeof a == "string" && T(r) && (r.legendPosition = a);
162
164
  break;
163
165
  case "legendVisibility":
164
- typeof a == "boolean" && v(r) && (r.legendVisibility = a);
166
+ typeof a == "boolean" && T(r) && (r.legendVisibility = a);
165
167
  break;
166
168
  }
167
169
  }, this.chartLegendItemVisibilityChange = (e) => {
168
170
  const s = e, { legendItemVisibility: t, model: a } = s.detail, i = this.modelList.find((r) => a?.isSameChartAs(r));
169
- i?.setSeriesVisibility(t), I(i) && ((i.getMinBound(1) === null || Number.isNaN(i.getMinBound(1))) && i.setMinBound(null, 1), (i.getMaxBound(1) === null || Number.isNaN(i.getMaxBound(1))) && i.setMaxBound(null, 1), S(i) && ((i.getMinBound(0) === null || Number.isNaN(i.getMinBound(0))) && i.setMinBound(null, 0), (i.getMaxBound(0) === null || Number.isNaN(i.getMaxBound(0))) && i.setMaxBound(null, 0)));
171
+ i?.setSeriesVisibility(t), v(i) && ((i.getMinBound(1) === null || Number.isNaN(i.getMinBound(1))) && i.setMinBound(null, 1), (i.getMaxBound(1) === null || Number.isNaN(i.getMaxBound(1))) && i.setMaxBound(null, 1), S(i) && ((i.getMinBound(0) === null || Number.isNaN(i.getMinBound(0))) && i.setMinBound(null, 0), (i.getMaxBound(0) === null || Number.isNaN(i.getMaxBound(0))) && i.setMaxBound(null, 0)));
170
172
  }, this.onSelectChartTypeChange = (e) => {
171
173
  this.currentChartTypeText = "", this.calculatedDataMinMaxBounds = void 0, this.calculatedMinMaxBounds = void 0, this.removeSelectChartTypePopover();
172
174
  const { selectedModelType: s, layerId: t } = e.target;
@@ -180,7 +182,7 @@ class ue extends W {
180
182
  }, this.onModelConfigChange = (e) => {
181
183
  if (this.syncChartsToLayers && this.allowChartSyncing) {
182
184
  const s = e.target;
183
- A(s?.layer, s);
185
+ k(s?.layer, s);
184
186
  }
185
187
  this.requestUpdate();
186
188
  }, this.allowChartSyncing = !1, this.currentChartTypeText = "", this.modelList = [], this.layerList = [], this.disableEditing = !1, this.syncChartsToLayers = !1, this.close = !1, this.usePopupTemplateFieldsInfo = !1, this.panelNumber = 0, this.filterBySelection = !1, this.arcgisChartsConfigChartViewChartClose = f(), this.arcgisChartsConfigModelListChange = f(), this.arcgisChartsConfigNewChart = f(), this.arcgisChartsConfigPanelNumberChange = f(), this.arcgisChartsConfigSelectedChartChange = f(), this.addChartEventListeners(), this.listen("arcgisChartsConfigModelListReorder", this.modelListReorderChangeListener);
@@ -207,7 +209,7 @@ class ue extends W {
207
209
  }
208
210
  modelListReorderChangeListener(e) {
209
211
  const { modelList: s } = e.detail;
210
- if (this.modelList = k({
212
+ if (this.modelList = F({
211
213
  arrayA: this.modelList,
212
214
  arrayB: s,
213
215
  getKey: (t) => t.chartId ?? t.titleText ?? ""
@@ -231,7 +233,7 @@ class ue extends W {
231
233
  }
232
234
  const r = a.charts;
233
235
  for (const l of r ?? []) {
234
- const c = await U({
236
+ const c = await _({
235
237
  layer: a,
236
238
  config: l,
237
239
  commonStrings: this.commonStrings
@@ -239,18 +241,18 @@ class ue extends W {
239
241
  c !== void 0 && e.push(c);
240
242
  }
241
243
  }
242
- w(e), e.forEach((a) => {
244
+ B(e), e.forEach((a) => {
243
245
  t.find((r) => r.isSameChartAs(a)) === void 0 && t.push(a);
244
246
  }), t = t.filter((a) => !Y(a.config)), this.modelList = t;
245
247
  }
246
248
  modelListChange(e, s) {
247
- this.selectedChartId = w(e, this.selectedChartId), s?.forEach((a) => {
249
+ this.selectedChartId = B(e, this.selectedChartId), s?.forEach((a) => {
248
250
  a.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
249
251
  }), e.forEach((a) => {
250
252
  a.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
251
253
  });
252
254
  const t = this.getModel(this.selectedChartId);
253
- this.currentChartTypeText = t?.chartType !== void 0 ? B({
255
+ this.currentChartTypeText = t?.chartType !== void 0 ? P({
254
256
  chartType: t.chartType,
255
257
  commonStrings: this.commonStrings,
256
258
  config: t.config
@@ -259,11 +261,11 @@ class ue extends W {
259
261
  selectedChartIdChange(e) {
260
262
  this.selectedChartId === void 0 && (this.panelNumber = 0), this.selectedPanel = n.Data;
261
263
  const s = this.getModel(e);
262
- this.setEventBasedPropsFromModelData(s), this.currentChartTypeText = s?.chartType !== void 0 ? B({
264
+ this.setEventBasedPropsFromModelData(s), this.currentChartTypeText = s?.chartType !== void 0 ? P({
263
265
  chartType: s.chartType,
264
266
  commonStrings: this.commonStrings,
265
267
  config: s.config
266
- }) : "", e !== void 0 && e !== $.selectedChartId && ($.selectedChartId = e), this.allowChartSyncing = !0, this.arcgisChartsConfigSelectedChartChange.emit({
268
+ }) : "", e !== void 0 && e !== x.selectedChartId && (x.selectedChartId = e), this.allowChartSyncing = !0, this.arcgisChartsConfigSelectedChartChange.emit({
267
269
  key: "key",
268
270
  model: s
269
271
  });
@@ -292,12 +294,12 @@ class ue extends W {
292
294
  updateAxesBoundsInAppState(e) {
293
295
  e?.forEach((s) => {
294
296
  const { isXAxis: t, maximum: a, minimum: i } = s, r = this.getModel(this.selectedChartId);
295
- if (r !== void 0 && I(r) && this.selectedChartId !== void 0) {
297
+ if (r !== void 0 && v(r) && this.selectedChartId !== void 0) {
296
298
  const l = new ae(r, t), c = q({
297
299
  chartId: this.selectedChartId,
298
300
  isXAxis: t,
299
301
  isLogarithmic: l.getLogarithmic()
300
- }), g = $.chartAxesBoundDataMap;
302
+ }), g = x.chartAxesBoundDataMap;
301
303
  g[this.selectedChartId] === void 0 && (g[this.selectedChartId] = {});
302
304
  const u = g[this.selectedChartId]?.[c], C = {
303
305
  defaultMinBound: u?.defaultMinBound === u?.currMinBound ? i : u?.defaultMinBound,
@@ -305,7 +307,7 @@ class ue extends W {
305
307
  defaultMaxBound: u?.defaultMaxBound === u?.currMaxBound ? a : u?.defaultMaxBound,
306
308
  currMaxBound: a
307
309
  };
308
- !D(u, C) && this.selectedChartId !== void 0 && g?.[this.selectedChartId] !== void 0 && (g[this.selectedChartId][c] = C);
310
+ !w(u, C) && this.selectedChartId !== void 0 && g?.[this.selectedChartId] !== void 0 && (g[this.selectedChartId][c] = C);
309
311
  }
310
312
  });
311
313
  }
@@ -319,15 +321,15 @@ class ue extends W {
319
321
  async onAddChartClick(e) {
320
322
  const { referenceElement: s, layerId: t, layerType: a } = e.detail;
321
323
  let i = !0;
322
- if (x(a) && t) {
324
+ if ($(a) && t) {
323
325
  const r = this.layerList.find((l) => l.id === t);
324
- x(r?.type) && (i = !!(await ee(r))?.attributeTable);
326
+ $(r?.type) && (i = !!(await ee(r))?.attributeTable);
325
327
  }
326
328
  this.setupSelectChartTypePopover(s, t, a, i);
327
329
  }
328
330
  setupSelectChartTypePopover(e, s, t, a = !0) {
329
331
  const i = this.getPlacement();
330
- this.removeSelectChartTypePopover(), this.selectChartTypePopover = L(h`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${s} .layerType=${t} .isRasterBarChartSupported=${a} .popoverPlacement=${i} @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);
332
+ this.removeSelectChartTypePopover(), this.selectChartTypePopover = I(h`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${s} .layerType=${t} .isRasterBarChartSupported=${a} .popoverPlacement=${i} @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);
331
333
  }
332
334
  getModel(e) {
333
335
  return this.modelList?.find((s) => s.chartId === e);
@@ -336,7 +338,7 @@ class ue extends W {
336
338
  this.selectChartTypePopover !== void 0 && (this.selectChartTypePopover?.remove(), this.selectChartTypePopover = oe(this.selectChartTypePopover));
337
339
  }
338
340
  clearPartialModels() {
339
- this.modelList = this.modelList.filter((e) => !F(e.config));
341
+ this.modelList = this.modelList.filter((e) => !D(e.config));
340
342
  }
341
343
  onViewChartDelete(e) {
342
344
  const { chartId: s } = e.detail;
@@ -391,7 +393,7 @@ class ue extends W {
391
393
  t = "";
392
394
  break;
393
395
  }
394
- this.tooltip = L(h`<calcite-tooltip style=${G({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${s} open placement=top>${t}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
396
+ this.tooltip = I(h`<calcite-tooltip style=${G({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${s} open placement=top>${t}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
395
397
  }
396
398
  destroyTooltip() {
397
399
  ie(this.tooltip);
@@ -403,7 +405,7 @@ class ue extends W {
403
405
  activeLayerId: this.activeLayerId,
404
406
  disableEditing: this.disableEditing
405
407
  });
406
- return V(e, (s) => s.id, (s) => h`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId !== void 0} .modelList=${ne(this.modelList, s.id.toString(), x(s.type) ? te : this.supportedChartTypes)} .selectedChartId=${this.selectedChartId ?? ""} .layer=${s} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`);
408
+ return N(e, (s) => s.id, (s) => h`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId !== void 0} .modelList=${ne(this.modelList, s.id.toString(), $(s.type) ? te : this.supportedChartTypes)} .selectedChartId=${this.selectedChartId ?? ""} .layer=${s} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`);
407
409
  }
408
410
  render() {
409
411
  return this.close ? null : h`<calcite-flow>${b("charts-list", h`<calcite-flow-item .selected=${this.panelNumber === 0 || this.disableEditing} .heading=${this.headerTitle ?? this._messages.defaultHeaderTitle} closable @calciteFlowItemClose=${this.onViewChartClose} ${K(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber >= 1 && !this.disableEditing ? this.renderTabs() : null}</calcite-flow>`;
@@ -463,7 +465,7 @@ class ue extends W {
463
465
  return t;
464
466
  }
465
467
  }
466
- _("arcgis-charts-config-create-flow", ue);
468
+ A("arcgis-charts-config-create-flow", ue);
467
469
  export {
468
470
  ue as ArcgisChartsConfigCreateFlow
469
471
  };
@@ -1,7 +1,7 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as M } from "../../chunks/runtime.js";
3
3
  import { ref as B } from "lit/directives/ref.js";
4
- import { t as S, m as d, k as h, j as T, e as V, v as w } from "../../chunks/type-guards2.js";
4
+ import { u as S, m as d, k as h, j as T, e as V, w } from "../../chunks/type-guards2.js";
5
5
  import { i as L } from "../../chunks/data-labels-symbol.js";
6
6
  import { i as P, a as C, b as E } from "../../chunks/axis-lines-symbol.js";
7
7
  import { isEmpty as f, cloneDeep as a, isArray as F, isObject as A, mergeWith as G } from "lodash-es";
@@ -11,7 +11,7 @@ import { u as N } from "../../chunks/useT9n.js";
11
11
  import { css as z, html as u } from "lit";
12
12
  import { LitElement as H, renderElement as j, safeClassMap as p } from "@arcgis/lumina";
13
13
  import { C as I, F as i, L as n } from "../../chunks/common.js";
14
- import { q as x, x as l } from "../../chunks/index5.js";
14
+ import { bF as x, bV as l } from "../../chunks/index2.js";
15
15
  import { r as $ } from "../../chunks/popover-ui-utils.js";
16
16
  import { u as r } from "../../chunks/chart-object-literals.js";
17
17
  const v = {
@@ -1,18 +1,17 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as R } from "../../chunks/runtime.js";
3
3
  import { keyed as X } from "lit/directives/keyed.js";
4
- import { cloneDeep as E } from "lodash-es";
5
- import { m as G, a as N, j as q, k, U as S } from "../../chunks/chart-ui-utils2.js";
4
+ import { cloneDeep as P } from "lodash-es";
5
+ import { m as G, a as N, j as Z, k, U as S } from "../../chunks/chart-ui-utils2.js";
6
6
  import { d as F } from "../../chunks/default.js";
7
- import { g as Z } from "../../chunks/resource.js";
8
- import { u as z } from "../../chunks/useT9n.js";
9
- import { css as O, html as c } from "lit";
7
+ import { g as z } from "../../chunks/resource.js";
8
+ import { u as O } from "../../chunks/useT9n.js";
9
+ import { css as V, html as c } from "lit";
10
10
  import { createRef as h, ref as u } from "lit/directives/ref.js";
11
- import { LitElement as V, createEvent as U, renderElement as M, safeStyleMap as L, safeClassMap as o } from "@arcgis/lumina";
12
- import { m as W, q as Y, r as j } from "../../chunks/type-guards2.js";
13
- import { M as p, i as H, a1 as A, aI as _ } from "../../chunks/index2.js";
11
+ import { LitElement as q, createEvent as U, renderElement as M, safeStyleMap as L, safeClassMap as o } from "@arcgis/lumina";
12
+ import { m as W, r as Y, s as j } from "../../chunks/type-guards2.js";
13
+ import { M as p, bF as m, i as H, a1 as A, aK as _, bE as K } from "../../chunks/index2.js";
14
14
  import { a0 as J } from "../../chunks/index.js";
15
- import { q as m, p as K } from "../../chunks/index5.js";
16
15
  import { r as Q } from "../../chunks/popover-ui-utils.js";
17
16
  import { i as g, g as ee } from "../../chunks/rest-js-object-literals.js";
18
17
  import { u as te } from "../../chunks/chart-object-literals.js";
@@ -21,13 +20,13 @@ const n = {
21
20
  row: "row",
22
21
  column: "column",
23
22
  colorPicker: "color-picker"
24
- }, ie = O`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column}.row{display:flex;flex-direction:row;column-gap:var(--arcgis-charts-inter-section-margin)}.column{display:flex;flex-direction:column;flex-wrap:wrap;flex-grow:1}.column>calcite-input{margin-bottom:.5rem;flex-grow:2}.column>calcite-input[type=number]{margin-bottom:.5rem}input{padding:.5rem}.label{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--arcgis-charts-intra-section-margin);flex-grow:1}.color-picker{border:1px solid var(--calcite-color-border-2);box-shadow:none;margin-bottom:var(--arcgis-charts-inter-section-margin)}.delete-guide{display:flex;flex-direction:row-reverse;height:2rem;margin:0 1rem;font-weight:550}.delete-guide:dir(rtl){flex-direction:row}`;
25
- class se extends V {
23
+ }, ie = V`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column}.row{display:flex;flex-direction:row;column-gap:var(--arcgis-charts-inter-section-margin)}.column{display:flex;flex-direction:column;flex-wrap:wrap;flex-grow:1}.column>calcite-input{margin-bottom:.5rem;flex-grow:2}.column>calcite-input[type=number]{margin-bottom:.5rem}input{padding:.5rem}.label{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--arcgis-charts-intra-section-margin);flex-grow:1}.color-picker{border:1px solid var(--calcite-color-border-2);box-shadow:none;margin-bottom:var(--arcgis-charts-inter-section-margin)}.delete-guide{display:flex;flex-direction:row-reverse;height:2rem;margin:0 1rem;font-weight:550}.delete-guide:dir(rtl){flex-direction:row}`;
24
+ class se extends q {
26
25
  constructor() {
27
- super(...arguments), this._messages = z(), this.startCalciteInput = h(), this.endCalciteInput = h(), this.startDateCalciteInput = h(), this.endDateCalciteInput = h(), this.startTimeCalciteInput = h(), this.endTimeCalciteInput = h(), this.colorElement = h(), this.colorChange = (e) => {
26
+ super(...arguments), this._messages = O(), this.startCalciteInput = h(), this.endCalciteInput = h(), this.startDateCalciteInput = h(), this.endDateCalciteInput = h(), this.startTimeCalciteInput = h(), this.endTimeCalciteInput = h(), this.colorElement = h(), this.colorChange = (e) => {
28
27
  const t = e.detail, i = this.model.getGuideStart(this.index, this.orientation), a = this.model.getGuideEnd(this.index, this.orientation);
29
28
  if (p(i, a) === g.SLS) {
30
- const l = E(F.style), s = this.model.getGuideStyle(this.index, this.orientation), r = {
29
+ const l = P(F.style), s = this.model.getGuideStyle(this.index, this.orientation), r = {
31
30
  ...l,
32
31
  ...m(s) ? s : {},
33
32
  color: t
@@ -38,7 +37,7 @@ class se extends V {
38
37
  }, this.symbolChange = (e) => {
39
38
  const t = e?.detail, i = this.model.getGuideStart(this.index, this.orientation), a = this.model.getGuideEnd(this.index, this.orientation);
40
39
  if (p(i, a) === g.SLS) {
41
- const l = E(F.style), s = this.model.getGuideStyle(this.index, this.orientation), r = {
40
+ const l = P(F.style), s = this.model.getGuideStyle(this.index, this.orientation), r = {
42
41
  ...l,
43
42
  ...m(s) ? s : {},
44
43
  ...m(t) ? t : {}
@@ -102,14 +101,14 @@ class se extends V {
102
101
  })), this.guidePopover?.open === !0 && this.removeGuidePopover();
103
102
  }
104
103
  setGuideDateTimeRange() {
105
- const e = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.minimum, t = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.maximum, i = typeof e == "number" ? new Date(e) : /* @__PURE__ */ new Date(), a = typeof t == "number" ? new Date(t) : /* @__PURE__ */ new Date(), l = new window.Intl.DateTimeFormat().resolvedOptions().timeZone, s = H(this.timeZone) ?? l, r = A(i, s), v = _(i, s), f = A(a, s), B = _(a, s), T = this.startDateCalciteInput.value?.value ?? "", C = T === "" ? r : T, D = this.startTimeCalciteInput.value?.value ?? "", I = D === "" ? v : D, x = this.endDateCalciteInput.value?.value ?? "", y = x === "" ? f : x, w = this.endTimeCalciteInput.value?.value ?? "", P = w === "" ? B : w;
104
+ const e = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.minimum, t = this.calculatedMinMaxBounds?.find((d) => d.isXAxis)?.maximum, i = typeof e == "number" ? new Date(e) : /* @__PURE__ */ new Date(), a = typeof t == "number" ? new Date(t) : /* @__PURE__ */ new Date(), l = new window.Intl.DateTimeFormat().resolvedOptions().timeZone, s = H(this.timeZone) ?? l, r = A(i, s), v = _(i, s), f = A(a, s), B = _(a, s), T = this.startDateCalciteInput.value?.value ?? "", C = T === "" ? r : T, D = this.startTimeCalciteInput.value?.value ?? "", I = D === "" ? v : D, x = this.endDateCalciteInput.value?.value ?? "", y = x === "" ? f : x, w = this.endTimeCalciteInput.value?.value ?? "", E = w === "" ? B : w;
106
105
  let $ = !1;
107
106
  if (!Array.isArray(C) && C !== void 0 && I !== void 0) {
108
107
  const d = `${C}T${I}`;
109
108
  this.model.setGuideStart(d, this.index, this.orientation), $ = !0;
110
109
  }
111
- if (!Array.isArray(y) && y !== void 0 && P !== void 0) {
112
- const d = x === "" ? void 0 : `${y}T${P}`;
110
+ if (!Array.isArray(y) && y !== void 0 && E !== void 0) {
111
+ const d = x === "" ? void 0 : `${y}T${E}`;
113
112
  this.model.setGuideEnd(d, this.index, this.orientation), $ = !0;
114
113
  }
115
114
  $ && (this.symbolChange(), this.arcgisChartsConfigGuideChange.emit({
@@ -214,12 +213,12 @@ class se extends V {
214
213
  });
215
214
  }
216
215
  renderColorElement() {
217
- const e = this.model.getGuideStyle(this.index, this.orientation), [t, i, a, l] = [...e?.color ?? [1, 1, 1, 255]], s = this.model.getGuideStart(this.index, this.orientation), r = this.model.getGuideEnd(this.index, this.orientation), v = m(e) ? q(e.style) : ee.Solid, f = p(s, r) === g.SLS ? `line-${v}` : "square-f";
216
+ const e = this.model.getGuideStyle(this.index, this.orientation), [t, i, a, l] = [...e?.color ?? [1, 1, 1, 255]], s = this.model.getGuideStart(this.index, this.orientation), r = this.model.getGuideEnd(this.index, this.orientation), v = m(e) ? Z(e.style) : ee.Solid, f = p(s, r) === g.SLS ? `line-${v}` : "square-f";
218
217
  return c`<calcite-list label selection-mode=single selection-appearance=border><calcite-list-item .value=${this._messages.style} class=${o(n.colorPicker)} .label=${this._messages.style} .selected=${this.guidePopover?.open} @click=${this.onColorElementSelect} ${u(this.colorElement)}><calcite-icon slot=content-end .icon=${f} style=${L({ color: `rgba(${t},${i},${a},${l / 255})` })}></calcite-icon></calcite-list-item></calcite-list>`;
219
218
  }
220
219
  render() {
221
220
  const e = this.model.getGuideStart(this.index, this.orientation), t = this.model.getGuideEnd(this.index, this.orientation), i = this.model.getGuideName(this.index, this.orientation), a = this.model.getGuideLabelText(this.index, this.orientation), l = this.model.getGuideAbove(this.index, this.orientation), s = this.model.getGuideVisibility(this.index, this.orientation), r = this.isXAxisDateField;
222
- return c`<calcite-block .heading=${i ?? ""} .expanded=${this.latestGuidePosition === Z(this.index, this.orientation, this.model)} collapsible .messageOverrides=${{
221
+ return c`<calcite-block .heading=${i ?? ""} .expanded=${this.latestGuidePosition === z(this.index, this.orientation, this.model)} collapsible .messageOverrides=${{
223
222
  expand: this._messages.expand,
224
223
  collapse: this._messages.collapse
225
224
  }}><calcite-action slot=actions-end text .icon=${s ? "view-visible" : "view-hide"} @click=${this.toggleGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><calcite-action slot=actions-end text icon=trash @click=${this.deleteGuide} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip}></calcite-action><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.start}${r ? c`<calcite-input-date-picker .value=${this.getDateStringFromBound(e)} required scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${u(this.startDateCalciteInput)}></calcite-input-date-picker>` : c`<calcite-input type=number required @calciteInputInput=${this.setGuideStart} @keydown=${k} number-button-type=none .value=${e?.toString()} ${u(this.startCalciteInput)}></calcite-input>`}</calcite-label><calcite-label class=${o(n.column)}>${this._messages.end}${r ? c`<calcite-input-date-picker .value=${this.getDateStringFromBound(t)} scale=s placement=bottom-end @calciteInputDatePickerChange=${this.setGuideDateTimeRange} ${u(this.endDateCalciteInput)}></calcite-input-date-picker>` : c`<calcite-input type=number @calciteInputInput=${this.setGuideEnd} @keydown=${k} number-button-type=none .value=${t?.toString()} ${u(this.endCalciteInput)}></calcite-input>`}</calcite-label></div>${r ? X("time-picker-row", c`<div class=${o(n.row)}>${e != null ? c`<calcite-label class=${o(n.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(e)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${u(this.startTimeCalciteInput)}></calcite-input-time-picker></calcite-label>` : null}${t != null ? c`<calcite-label class=${o(n.column)}><calcite-input-time-picker .value=${this.getTimeStringFromBound(t)} scale=s @calciteInputTimePickerChange=${this.setGuideDateTimeRange} ${u(this.endTimeCalciteInput)}></calcite-input-time-picker></calcite-label>` : null}</div>`) : null}<div class=${o(n.row)}><div class=${o(n.column)}>${this.renderColorElement()}</div></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.guideName}<calcite-input type=text .value=${i} @calciteInputInput=${this.setGuideName}></calcite-input></calcite-label></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.guideLabel}<calcite-input type=text .value=${a} @calciteInputInput=${this.setGuideLabel}></calcite-input></calcite-label></div><div class=${o(n.row)}><calcite-label class=${o(n.column)}>${this._messages.display}<calcite-segmented-control @calciteSegmentedControlChange=${this.setGuideRendered} scale=s><calcite-segmented-control-item .checked=${l} .value=${this._messages.inFront}>${this._messages.inFront}</calcite-segmented-control-item><calcite-segmented-control-item .checked=${!l} .value=${this._messages.inBack}>${this._messages.inBack}</calcite-segmented-control-item></calcite-segmented-control></calcite-label></div></calcite-block>`;
@@ -7,7 +7,7 @@ import { u as f } from "../../chunks/useT9n.js";
7
7
  import { css as A, html as a } from "lit";
8
8
  import { createRef as x, ref as C } from "lit/directives/ref.js";
9
9
  import { LitElement as b, renderElement as v, safeClassMap as c } from "@arcgis/lumina";
10
- import { q as h, r as u } from "../../chunks/type-guards2.js";
10
+ import { r as h, s as u } from "../../chunks/type-guards2.js";
11
11
  import { G as s } from "../../chunks/common.js";
12
12
  const P = A`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.add-guide{display:flex;justify-content:center;padding:.5rem}.add-guide-btn{width:100%}.no-guides{border-radius:2rem}.no-messages{text-align:center}.guide-icon{padding-left:.5rem;padding-top:.5rem;width:1.5rem;height:1.5rem}`;
13
13
  class $ extends b {
@@ -2,17 +2,16 @@
2
2
  import { c as r } from "../../chunks/runtime.js";
3
3
  import { LitElement as l } from "@arcgis/lumina";
4
4
  import { css as n, html as i } from "lit";
5
- import { C as o } from "../../chunks/interfaces.js";
5
+ import { C as s } from "../../chunks/interfaces.js";
6
6
  import { isEqual as d } from "lodash-es";
7
- import { h } from "../../chunks/index5.js";
8
- import { ac as c, I as f } from "../../chunks/index2.js";
9
- const m = n`:host{margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
10
- class p extends l {
7
+ import { a$ as h, ac as c, I as f } from "../../chunks/index2.js";
8
+ const p = n`:host{margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
9
+ class m extends l {
11
10
  static {
12
11
  this.properties = { layerFieldsInfo: 16, model: 0, page: 1, layer: 0, usePopupTemplateFieldsInfo: 5, popupTemplateFieldInfosEnabled: 5 };
13
12
  }
14
13
  static {
15
- this.styles = m;
14
+ this.styles = p;
16
15
  }
17
16
  async load() {
18
17
  await this.updateFetchLayerFieldsInfo(this.model?.config), this.modelChange(this.model);
@@ -31,8 +30,8 @@ class p extends l {
31
30
  const a = e ?? this.model.config;
32
31
  let t = this.layer;
33
32
  if (!t) {
34
- const s = h(a) ? a.iLayer : void 0;
35
- s && (t = await c(s));
33
+ const o = h(a) ? a.iLayer : void 0;
34
+ o && (t = await c(o));
36
35
  }
37
36
  t && (await t.load(), this.layerFieldsInfo = f(t, this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled));
38
37
  }
@@ -43,13 +42,13 @@ class p extends l {
43
42
  render() {
44
43
  let e;
45
44
  switch (this.page) {
46
- case o.Data:
45
+ case s.Data:
47
46
  e = i`<arcgis-charts-config-heat-chart-data .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-heat-chart-data>`;
48
47
  break;
49
- case o.Format:
48
+ case s.Format:
50
49
  e = i`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;
51
50
  break;
52
- case o.General:
51
+ case s.General:
53
52
  e = i`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;
54
53
  break;
55
54
  default:
@@ -59,7 +58,7 @@ class p extends l {
59
58
  return e;
60
59
  }
61
60
  }
62
- r("arcgis-charts-config-heat-chart", p);
61
+ r("arcgis-charts-config-heat-chart", m);
63
62
  export {
64
- p as ArcgisChartsConfigHeatChart
63
+ m as ArcgisChartsConfigHeatChart
65
64
  };
@@ -18,7 +18,7 @@ import { H as j } from "../../chunks/common.js";
18
18
  import { i as G } from "../../chunks/rest-js-object-literals.js";
19
19
  import { r as m, m as h, d as p, u as C, h as u, e as F, i as Y } from "../../chunks/chart-object-literals.js";
20
20
  import { w as J, k as Q, l as d } from "../../chunks/index.js";
21
- import { an as S } from "../../chunks/index2.js";
21
+ import { ap as S } from "../../chunks/index2.js";
22
22
  import { i as ee } from "../../chunks/index4.js";
23
23
  import { r as ae } from "../../chunks/popover-ui-utils.js";
24
24
  const te = _`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.color-ramp{width:100%;height:20px;overflow:hidden;border-radius:0}.color-ramp-segment{height:100%;display:inline-block}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.accordion{margin-top:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}`, r = {
@@ -16,7 +16,7 @@ import { R as E } from "../../chunks/rest-js-object-literals.js";
16
16
  import { r as _, i as R, e as C } from "../../chunks/chart-object-literals.js";
17
17
  import { e as N } from "../../chunks/popover-ui-utils.js";
18
18
  import { w as B, aF as M } from "../../chunks/index.js";
19
- import { bb as H, bk as O } from "../../chunks/index2.js";
19
+ import { bj as H, bx as O } from "../../chunks/index2.js";
20
20
  const q = T`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.panel{max-height:60vh}.color-ramp-popover{display:flex;flex-direction:column;gap:.75rem;min-width:320px;max-width:480px}.color-ramp-toolbar{display:flex;gap:.5rem;align-items:center;padding:5px 5px 0}.ramp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.5rem;max-height:300px;overflow:auto;padding:.25rem}.ramp-item{display:flex;flex-direction:column;border:1px solid var(--calcite-color-foreground-3);background:var(--calcite-color-foreground-1);cursor:pointer;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .12s;border-radius:2px;min-height:56px;padding:4px}.ramp-item:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}.ramp-name{font-size:.625rem;line-height:1;padding:2px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--calcite-color-text-3)}.ramp-item.selected{background-color:var(--calcite-color-brand)!important;border-color:var(--calcite-color-brand)!important;outline:2px solid var(--calcite-color-brand)!important;color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-name{color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-strip{box-shadow:none;border:none}.ramp-strips{display:flex;flex:1;height:28px;width:100%;overflow:hidden}.ramp-strip{flex:1;min-width:0}.ramp-strip-fallback{background:repeating-linear-gradient(45deg,var(--calcite-color-foreground-3) 0,var(--calcite-color-foreground-3) 5px,var(--calcite-color-foreground-2) 5px,var(--calcite-color-foreground-2) 10px)}.ramp-empty{grid-column:1/-1;font-size:.75rem;color:var(--calcite-color-text-3)}.panel-children-container{display:flex}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.panel-children-container{padding:0 1rem;margin-top:1rem}.color-ramp-popover-footer{display:flex;padding:.5rem}.color-ramp-popover-footer calcite-button{flex:1}`, s = {
21
21
  name: "bar-chart-data-popover",
22
22
  header: "header",
@@ -2,13 +2,12 @@
2
2
  import { c as l } from "../../chunks/runtime.js";
3
3
  import { isEqual as r } from "lodash-es";
4
4
  import { LitElement as n } from "@arcgis/lumina";
5
- import { css as h, html as i } from "lit";
5
+ import { css as d, html as i } from "lit";
6
6
  import { C as o } from "../../chunks/interfaces.js";
7
- import { ac as d, bx as c, aw as m, I as f } from "../../chunks/index2.js";
8
- import { p as g, h as p } from "../../chunks/index5.js";
7
+ import { bE as h, a$ as c, ac as m, bX as f, ay as g, I as p } from "../../chunks/index2.js";
9
8
  import { d as u } from "../../chunks/type-guards.js";
10
- const C = h`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
11
- class y extends n {
9
+ const y = d`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`;
10
+ class C extends n {
12
11
  constructor() {
13
12
  super(...arguments), this.onModelConfigChange = async (e) => {
14
13
  const s = e?.detail.config ?? this.model.config;
@@ -19,7 +18,7 @@ class y extends n {
19
18
  this.properties = { layerFieldsInfo: 16, model: 0, chartData: 0, seriesColor: 0, calculatedMinMaxBounds: 0, page: 1, layer: 0, usePopupTemplateFieldsInfo: 5, popupTemplateFieldInfosEnabled: 5 };
20
19
  }
21
20
  static {
22
- this.styles = C;
21
+ this.styles = y;
23
22
  }
24
23
  async load() {
25
24
  this.seriesColor !== void 0 && this.seriesColorChange(this.seriesColor), await this.updateFetchLayerFieldsInfo(this.model?.config), this.modelChange(this.model);
@@ -36,20 +35,20 @@ class y extends n {
36
35
  }
37
36
  seriesColorChange(e) {
38
37
  this.model.colorMatch && e?.forEach((a) => {
39
- g(a) && e?.get(0) !== void 0 && !r(this.model.binSymbol, a) && (this.model.binSymbol = a);
38
+ h(a) && e?.get(0) !== void 0 && !r(this.model.binSymbol, a) && (this.model.binSymbol = a);
40
39
  });
41
40
  }
42
41
  async updateFetchLayerFieldsInfo(e) {
43
42
  const a = e ?? this.model.config;
44
43
  let s = this.layer;
45
44
  if (!s) {
46
- const t = p(a) ? a.iLayer : void 0;
47
- t && (s = await d(t));
45
+ const t = c(a) ? a.iLayer : void 0;
46
+ t && (s = await m(t));
48
47
  }
49
48
  if (s) {
50
- await c(s);
49
+ await f(s);
51
50
  const t = this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled;
52
- this.layerFieldsInfo = u(s) ? m({ layer: s, popupTemplateFieldInfosEnabled: t, chartType: a?.type }) : f(s, t);
51
+ this.layerFieldsInfo = u(s) ? g({ layer: s, popupTemplateFieldInfosEnabled: t, chartType: a?.type }) : p(s, t);
53
52
  }
54
53
  }
55
54
  render() {
@@ -77,7 +76,7 @@ class y extends n {
77
76
  return e;
78
77
  }
79
78
  }
80
- l("arcgis-charts-config-histogram", y);
79
+ l("arcgis-charts-config-histogram", C);
81
80
  export {
82
- y as ArcgisChartsConfigHistogram
81
+ C as ArcgisChartsConfigHistogram
83
82
  };
@@ -11,7 +11,7 @@ import { i as $ } from "../../chunks/rest-js-object-literals.js";
11
11
  import { g as s } from "../../chunks/chart-object-literals.js";
12
12
  import { e as P } from "../../chunks/popover-ui-utils.js";
13
13
  import { d as S } from "../../chunks/index3.js";
14
- import { bk as k } from "../../chunks/index2.js";
14
+ import { bx as k } from "../../chunks/index2.js";
15
15
  import { aF as T } from "../../chunks/index.js";
16
16
  const l = {
17
17
  symbolPropertyPopover: "symbol-property-popover",
@@ -20,8 +20,8 @@ const l = {
20
20
  popoverPickList: "popover-pick-list",
21
21
  fieldSelectPanel: "field-select-panel",
22
22
  transformationPanel: "transformation-panel"
23
- }, w = v`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.right{display:block;text-align:right}.inline{display:inline-flex;flex-wrap:wrap}.symbol-property-popover{min-width:300px}.symbol-property-popover .inline{align-items:center;margin-bottom:1rem}.symbol-property-popover .inline calcite-action{margin-left:.2rem}.symbol-property-popover .inline input,.symbol-property-popover .inline select{width:4rem;margin-left:.5rem;height:24px}.symbol-property-popover .inline select{width:6rem}.symbol-property-popover .inline{padding:0 1rem}.symbol-property-popover .color calcite-icon{margin-left:.5rem}.symbol-property-popover .color .color-picker{padding:1rem}.header{margin:0;font-weight:bolder}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.field-select-panel{max-height:60vh}.transformation-panel{width:calc(var(--calcite-panel-width-multiplier) * 12vw);max-width:calc(var(--calcite-panel-width-multiplier) * 300px);min-width:calc(var(--calcite-panel-width-multiplier) * 150px);min-width:calc(var(--calcite-panel-width-multiplier) * 170px)}`;
24
- class x extends b {
23
+ }, x = v`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.right{display:block;text-align:right}.inline{display:inline-flex;flex-wrap:wrap}.symbol-property-popover{min-width:300px}.symbol-property-popover .inline{align-items:center;margin-bottom:1rem}.symbol-property-popover .inline calcite-action{margin-left:.2rem}.symbol-property-popover .inline input,.symbol-property-popover .inline select{width:4rem;margin-left:.5rem;height:24px}.symbol-property-popover .inline select{width:6rem}.symbol-property-popover .inline{padding:0 1rem}.symbol-property-popover .color calcite-icon{margin-left:.5rem}.symbol-property-popover .color .color-picker{padding:1rem}.header{margin:0;font-weight:bolder}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.field-select-panel{max-height:60vh}.transformation-panel{width:calc(var(--calcite-panel-width-multiplier) * 12vw);max-width:calc(var(--calcite-panel-width-multiplier) * 300px);min-width:calc(var(--calcite-panel-width-multiplier) * 150px);min-width:calc(var(--calcite-panel-width-multiplier) * 170px)}`;
24
+ class w extends b {
25
25
  constructor() {
26
26
  super(...arguments), this._messages = u(), this.picklist = m(), this.popoverElement = m(), this.layerFieldsInfo = [], this.open = !1, this.arcgisChartsConfigHistogramPopoverChange = p(), this.arcgisChartsConfigHistogramPopoverSymbolChange = p(), this.arcgisChartsConfigPopoverClose = p();
27
27
  }
@@ -29,7 +29,7 @@ class x extends b {
29
29
  this.properties = { messageOverrides: 0, layerFieldsInfo: 0, headingTitle: 1, selectedNumericField: 1, selectedTransformationType: 1, selectedOverlaySymbol: 0, selectedBinColor: 0, referenceElement: 0, contentKind: 1, placement: 1, open: 5, selectedOverlaySymbolType: 1 };
30
30
  }
31
31
  static {
32
- this.styles = w;
32
+ this.styles = x;
33
33
  }
34
34
  async reposition() {
35
35
  await this.popoverElement.value?.reposition();
@@ -110,7 +110,7 @@ class x extends b {
110
110
  }
111
111
  }
112
112
  }
113
- f("arcgis-charts-config-histogram-popover", x);
113
+ f("arcgis-charts-config-histogram-popover", w);
114
114
  export {
115
- x as ArcgisChartsConfigHistogramPopover
115
+ w as ArcgisChartsConfigHistogramPopover
116
116
  };