@arcgis/charts-components 5.2.0-next.70 → 5.2.0-next.72

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 (110) hide show
  1. package/LICENSE.md +4 -2
  2. package/dist/cdn/{S6C5PJP4.js → 27QJPJG2.js} +1 -1
  3. package/dist/cdn/{5BMIWC4E.js → 2IT2RCIC.js} +1 -1
  4. package/dist/cdn/{P4VJYOCL.js → 3F3DSHMX.js} +1 -1
  5. package/dist/cdn/{55FTLFES.js → 3O6KXZI3.js} +1 -1
  6. package/dist/cdn/{FJGG2VVZ.js → 3P2SRGLO.js} +1 -1
  7. package/dist/cdn/{AQOCENW4.js → 42A7W3OA.js} +1 -1
  8. package/dist/cdn/{3FNSOFZW.js → 4HZOLYYJ.js} +1 -1
  9. package/dist/cdn/{SKQQFLCU.js → 4MVV6KMX.js} +1 -1
  10. package/dist/cdn/{QB5VLM5A.js → 52AWRYBA.js} +1 -1
  11. package/dist/cdn/{NS22JUJ7.js → 5TUEP4OK.js} +1 -1
  12. package/dist/cdn/{OAXHS4LE.js → 5X7Q3I6R.js} +1 -1
  13. package/dist/cdn/{P3WSMZJU.js → 6HRHDLP5.js} +1 -1
  14. package/dist/cdn/{3PJG5RPA.js → 6X64PHGO.js} +1 -1
  15. package/dist/cdn/{SNLS5YDJ.js → 6XCI7UCI.js} +1 -1
  16. package/dist/cdn/{LTHNRIKF.js → 6YZUX3IR.js} +1 -1
  17. package/dist/cdn/{6PGKTC6F.js → 73JR3GLJ.js} +1 -1
  18. package/dist/cdn/7RSZDQRA.js +2 -0
  19. package/dist/cdn/{CQS3N3YT.js → AWL4BHAE.js} +1 -1
  20. package/dist/cdn/{FNJOMPCS.js → BFX4S6V7.js} +1 -1
  21. package/dist/cdn/{NJKSUAO7.js → BHH6HAXC.js} +1 -1
  22. package/dist/cdn/{BKENQZVC.js → BJYYXABD.js} +1 -1
  23. package/dist/cdn/{UDAL44H7.js → BPRQJH3C.js} +1 -1
  24. package/dist/cdn/{MFYVUIPM.js → D4YMWPO7.js} +1 -1
  25. package/dist/cdn/{24UNROUY.js → DGJT4BLR.js} +1 -1
  26. package/dist/cdn/{OF3OQQID.js → EPHJ2KVR.js} +1 -1
  27. package/dist/cdn/{2GXX5IMS.js → FY42MP27.js} +1 -1
  28. package/dist/cdn/{MGUUHKYW.js → G6RHXKZI.js} +1 -1
  29. package/dist/cdn/{LZABQV52.js → GBVHGXLI.js} +1 -1
  30. package/dist/cdn/{OJDYJETX.js → GDCYGJRG.js} +1 -1
  31. package/dist/cdn/{BSCFYA5P.js → GEGDQRVU.js} +1 -1
  32. package/dist/cdn/{HEWG4ZZE.js → GIW5FIBF.js} +28 -28
  33. package/dist/cdn/{ZSTPZFF6.js → GW33HA7C.js} +1 -1
  34. package/dist/cdn/{TYVMAK67.js → HE4DQBAF.js} +1 -1
  35. package/dist/cdn/{LNRNJHH3.js → HEV6CQ2O.js} +1 -1
  36. package/dist/cdn/{4SHVP5PZ.js → HFWQWWZX.js} +1 -1
  37. package/dist/cdn/{DGGCAG3N.js → HGWVBXGI.js} +1 -1
  38. package/dist/cdn/{7ENBCEQR.js → HTDEFWRO.js} +1 -1
  39. package/dist/cdn/{6JJHAS2P.js → IMJT2ADR.js} +1 -1
  40. package/dist/cdn/{TSQYRV3W.js → IOF3LHQS.js} +1 -1
  41. package/dist/cdn/{V75KABKD.js → IQAQH55N.js} +1 -1
  42. package/dist/cdn/{WTB23TU5.js → IRLDFW6T.js} +1 -1
  43. package/dist/cdn/{T2G5XRL5.js → J3UWN6IT.js} +1 -1
  44. package/dist/cdn/{7GO7L6K4.js → JCMK62IU.js} +1 -1
  45. package/dist/cdn/{MLPHSOJB.js → JRLNI3JM.js} +1 -1
  46. package/dist/cdn/{VZCYTHM2.js → JU77OUXG.js} +1 -1
  47. package/dist/cdn/{MFVIGPEF.js → JZIH5BEO.js} +1 -1
  48. package/dist/cdn/{76BU2ZWA.js → KW4YJOEM.js} +1 -1
  49. package/dist/cdn/{YXOUH52R.js → L44RZ2LJ.js} +1 -1
  50. package/dist/cdn/{UW3WL44H.js → LFUOUZRD.js} +1 -1
  51. package/dist/cdn/{7AFOMUPB.js → LQU6DEB6.js} +1 -1
  52. package/dist/cdn/{ZNGT5LSV.js → MHWVJW2G.js} +1 -1
  53. package/dist/cdn/{YWMVQFAN.js → MQJ65BCX.js} +1 -1
  54. package/dist/cdn/{W665SH4P.js → N7PKDRUM.js} +1 -1
  55. package/dist/cdn/{BIPFB5HW.js → NBS2RCOO.js} +1 -1
  56. package/dist/cdn/{ANMO6CLA.js → NORDWTUH.js} +1 -1
  57. package/dist/cdn/{CH7EMYXL.js → NWH7AJ52.js} +1 -1
  58. package/dist/cdn/{A2OP6Q3D.js → P5HKNAV6.js} +1 -1
  59. package/dist/cdn/{FLKBGFAC.js → PCTPAU4P.js} +1 -1
  60. package/dist/cdn/{WGPNG4C5.js → PDSFLHBW.js} +1 -1
  61. package/dist/cdn/{E76O5CL2.js → QAQ7XMIR.js} +1 -1
  62. package/dist/cdn/QQO3KMZ4.js +2 -0
  63. package/dist/cdn/{VWY7QP3W.js → RI7OFHO5.js} +1 -1
  64. package/dist/cdn/{EKBLEUCP.js → RLZXSSP6.js} +1 -1
  65. package/dist/cdn/{ZK5Z6BOX.js → S3LRWKAX.js} +1 -1
  66. package/dist/cdn/{KHGILG5X.js → S3XBL7KR.js} +1 -1
  67. package/dist/cdn/{UULF2NFJ.js → SCVLTVPD.js} +1 -1
  68. package/dist/cdn/SG2DVYJ7.js +2 -0
  69. package/dist/cdn/{CWSAYMFQ.js → SU5W5NFD.js} +1 -1
  70. package/dist/cdn/{ILI6Z4H3.js → SWD33GFB.js} +1 -1
  71. package/dist/cdn/{VPHWRDJI.js → TEVJHF4T.js} +1 -1
  72. package/dist/cdn/{OCYSGUCY.js → TTW52EWC.js} +1 -1
  73. package/dist/cdn/{KEHRL2MP.js → UAUXUYSZ.js} +1 -1
  74. package/dist/cdn/{GZVU6ATV.js → UKVRMGYE.js} +1 -1
  75. package/dist/cdn/{VWOS4FBW.js → V35ALJHW.js} +2 -2
  76. package/dist/cdn/V5EPH7SJ.js +2 -0
  77. package/dist/cdn/{PZ3FNMU7.js → V6WZ4HG3.js} +1 -1
  78. package/dist/cdn/{E7RGF2VG.js → VLTMMRNO.js} +1 -1
  79. package/dist/cdn/{UXVU3KHY.js → VPYOVHNR.js} +1 -1
  80. package/dist/cdn/{7IUKJ5PU.js → WDBM5DMV.js} +1 -1
  81. package/dist/cdn/{2WVTUVN4.js → WMXFQ3W5.js} +1 -1
  82. package/dist/cdn/YALJ3XEN.js +2 -0
  83. package/dist/cdn/{CGCRNEFM.js → ZBP6VJMM.js} +1 -1
  84. package/dist/cdn/{UGAHTOBA.js → ZCCW2VVQ.js} +1 -1
  85. package/dist/cdn/{XRRDA4TC.js → ZKB6OSA6.js} +1 -1
  86. package/dist/cdn/index.js +1 -1
  87. package/dist/cdn/model/shared/setup-utils.js +1 -1
  88. package/dist/chunks/bar-chart-model.js +24 -23
  89. package/dist/chunks/box-plot-model.js +36 -36
  90. package/dist/chunks/index2.js +1550 -1548
  91. package/dist/chunks/pie-chart-model.js +381 -326
  92. package/dist/chunks/serial-chart-model.js +2 -1
  93. package/dist/chunks/type-guards2.js +15 -15
  94. package/dist/components/arcgis-chart/customElement.d.ts +11 -29
  95. package/dist/components/arcgis-chart/customElement.js +168 -163
  96. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +40 -26
  97. package/dist/components/arcgis-charts-config-create-flow/customElement.js +236 -224
  98. package/dist/docs/api.json +1 -1
  99. package/dist/docs/docs.json +1 -1
  100. package/dist/docs/vscode.html-custom-data.json +1 -1
  101. package/dist/docs/web-types.json +1 -1
  102. package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +7 -55
  103. package/dist/model/pie-chart-model/pie-chart-model.d.ts +59 -2
  104. package/dist/model/shared/type-guards.d.ts +2 -1
  105. package/package.json +4 -4
  106. package/dist/cdn/FLYZW7XF.js +0 -2
  107. package/dist/cdn/O2K4WDQR.js +0 -2
  108. package/dist/cdn/OANIWZFQ.js +0 -2
  109. package/dist/cdn/ODNJBXGP.js +0 -2
  110. package/dist/cdn/Z4LBCIER.js +0 -2
@@ -1,89 +1,89 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as A } from "../../chunks/runtime.js";
3
3
  import { repeat as N } from "lit/directives/repeat.js";
4
- import { keyed as b } from "lit/directives/keyed.js";
4
+ import { keyed as $ } from "lit/directives/keyed.js";
5
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";
6
+ import { g as x, i as V, w as U, k as T, m as v, n as R } 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
- import { C as n } from "../../chunks/interfaces.js";
10
- import { isEqual as w } from "lodash-es";
9
+ import { C as c } from "../../chunks/interfaces.js";
10
+ import { isEqual as w, cloneDeep as O } from "lodash-es";
11
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
- import { css as X, html as h } from "lit";
15
- import { createRef as Z, ref as K } from "lit/directives/ref.js";
12
+ import { D as k, w as F, F as W } from "../../chunks/index3.js";
13
+ import { LitElement as G, createEvent as f, renderElement as I, safeStyleMap as X, safeClassMap as d } from "@arcgis/lumina";
14
+ import { css as Z, html as h } from "lit";
15
+ import { createRef as K, ref as j } from "lit/directives/ref.js";
16
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, co as te } from "../../chunks/index2.js";
19
- import { A as ae } from "../../chunks/axis-model-wrapper.js";
17
+ import { c as q, a as S, g as Y } from "../../chunks/store.js";
18
+ import { dv as Q, _ as J, dw as ee, K as te, co as ae } from "../../chunks/index2.js";
19
+ import { A as ie } from "../../chunks/axis-model-wrapper.js";
20
20
  import { h as se, f as y } from "../../chunks/web-component-utils.js";
21
- import { a as ie } from "../../chunks/chart-ui-utils2.js";
21
+ import { a as re } from "../../chunks/chart-ui-utils2.js";
22
22
  import { C as M } from "../../chunks/index5.js";
23
23
  import { a as P } from "../../chunks/chart-ui-utils.js";
24
- import { d as re, e as $ } from "../../chunks/type-guards.js";
25
- import { r as oe } from "../../chunks/popover-ui-utils.js";
26
- import { u as o, s as le } from "../../chunks/chart-object-literals.js";
27
- const p = {
24
+ import { d as oe, e as b } from "../../chunks/type-guards.js";
25
+ import { r as le } from "../../chunks/popover-ui-utils.js";
26
+ import { u as o, s as ne } from "../../chunks/chart-object-literals.js";
27
+ const m = {
28
28
  chartUIComponent: "chart-ui-component",
29
29
  tabBar: "tab-bar",
30
30
  tab: "tab"
31
31
  };
32
- function B(m, e) {
33
- const s = /* @__PURE__ */ new Set();
34
- let t = e;
35
- return m?.forEach((a, i) => {
36
- const r = a.chartId;
37
- (s.has(r) || r === void 0 || r === "") && (a.chartId = `Chart_${Date.now()}_${i}`, e === r && (t = a.chartId)), s.add(r);
38
- }), t;
32
+ function B(p, e) {
33
+ const t = /* @__PURE__ */ new Set();
34
+ let a = e;
35
+ return p?.forEach((i, s) => {
36
+ const r = i.chartId;
37
+ (t.has(r) || r === void 0 || r === "") && (i.chartId = `Chart_${Date.now()}_${s}`, e === r && (a = i.chartId)), t.add(r);
38
+ }), a;
39
39
  }
40
- function ne(m, e, s) {
41
- return m?.filter((t) => E(s, t.config) && t.layer?.id === e) ?? [];
40
+ function ce(p, e, t) {
41
+ return p?.filter((a) => F(t, a.config) && a.layer?.id === e) ?? [];
42
42
  }
43
- function ce(m) {
44
- const { modelList: e, layerList: s, activeLayerId: t, disableEditing: a } = m, i = /* @__PURE__ */ new Map();
43
+ function he(p) {
44
+ const { modelList: e, layerList: t, activeLayerId: a, disableEditing: i } = p, s = /* @__PURE__ */ new Map();
45
45
  return e?.forEach((r) => {
46
- const l = r.layer;
47
- l && i.set(l.id, l);
48
- }), a || s.forEach((r) => i.set(r.id, r)), Array.from(i.values()).filter((r) => !t || r.id === t);
46
+ const n = r.layer;
47
+ n && s.set(n.id, n);
48
+ }), i || t.forEach((r) => s.set(r.id, r)), Array.from(s.values()).filter((r) => !a || r.id === a);
49
49
  }
50
- function he(m, e) {
51
- m.forEach((s) => {
52
- e.forEach((t) => {
53
- s?.id === t.layer?.id && k(s, t);
50
+ function de(p, e) {
51
+ p.forEach((t) => {
52
+ e.forEach((a) => {
53
+ t?.id === a.layer?.id && E(t, a);
54
54
  });
55
55
  });
56
56
  }
57
- function k(m, e) {
58
- const s = m;
59
- if (s) {
60
- const t = [...s?.charts ?? []], a = t?.findIndex((r) => r.id === e.chartId);
61
- let i = !1;
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);
57
+ function E(p, e) {
58
+ const t = p;
59
+ if (t) {
60
+ const a = [...t?.charts ?? []], i = a?.findIndex((r) => r.id === e.chartId);
61
+ let s = !1;
62
+ i !== void 0 && i > -1 ? (s = !w(a[i], e.config), a[i] = e.config) : t && !D(e.config) && (s = !0, a.push(e.config)), s && (t.charts = a);
63
63
  }
64
64
  }
65
- function de(m, e) {
66
- const s = m;
67
- if (s) {
68
- const t = [...s.charts ?? []], a = t.findIndex((i) => i.id === e);
69
- a > -1 && (t.splice(a, 1), s.charts = t);
65
+ function me(p, e) {
66
+ const t = p;
67
+ if (t) {
68
+ const a = [...t.charts ?? []], i = a.findIndex((s) => s.id === e);
69
+ i > -1 && (a.splice(i, 1), t.charts = a);
70
70
  }
71
71
  }
72
- function pe(m, e) {
73
- const s = m;
74
- if (s) {
75
- let t = [...s.charts ?? []];
76
- t = F({
77
- arrayA: t,
78
- arrayB: e.map((a) => a.config),
79
- getKey: (a) => a.id ?? a.title?.content.text ?? ""
80
- }), s.charts = t;
72
+ function pe(p, e) {
73
+ const t = p;
74
+ if (t) {
75
+ let a = [...t.charts ?? []];
76
+ a = k({
77
+ arrayA: a,
78
+ arrayB: e.map((i) => i.config),
79
+ getKey: (i) => i.id ?? i.title?.content.text ?? ""
80
+ }), t.charts = a;
81
81
  }
82
82
  }
83
- const me = X`.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;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}`;
84
- class ue extends W {
83
+ const ue = Z`.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;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}`;
84
+ class ge extends G {
85
85
  constructor() {
86
- super(), this.selectChartTypePopover = null, this.chartsListFlowItem = Z(), this.supportedChartTypes = [
86
+ super(), this.selectChartTypePopover = null, this.chartsListFlowItem = K(), this.supportedChartTypes = [
87
87
  o.BarSeries,
88
88
  o.BoxPlotSeries,
89
89
  o.LineSeries,
@@ -91,98 +91,97 @@ class ue extends W {
91
91
  o.HistogramSeries,
92
92
  o.ScatterSeries,
93
93
  o.HeatSeries
94
- ], this._messages = L(), this.commonStrings = L({ name: "common", blocking: !0 }), this.chartDataProcessComplete = (e) => {
95
- const s = e, { chartData: t, model: a } = s.detail, i = this.getModel(this.selectedChartId);
96
- if (a?.isSameChartAs(i))
97
- switch (i?.chartType) {
94
+ ], this._messages = L(), this.commonStrings = L({ name: "common", blocking: !0 }), this.chartDataProcessComplete = async (e) => {
95
+ const t = e, { chartData: a, model: i } = t.detail, s = this.getModel(this.selectedChartId);
96
+ if (i?.isSameChartAs(s))
97
+ switch (s?.chartType) {
98
98
  case o.HistogramSeries:
99
- if (this.chartData = t, a && (a.dataStore.chartData = t, re(a.layer))) {
100
- const l = a, c = t?.bins?.length;
101
- c !== void 0 && l.binCount !== c && (l.binCount = c);
99
+ if (this.chartData = a, i && (i.dataStore.chartData = a, oe(i.layer))) {
100
+ const n = i, l = a?.bins?.length;
101
+ l !== void 0 && n.binCount !== l && (n.binCount = l);
102
102
  }
103
103
  break;
104
104
  case o.PieSeries: {
105
- this.chartData = t, a && (a.dataStore.chartData = t);
105
+ this.chartData = a, i && (i.dataStore.chartData = a);
106
106
  break;
107
107
  }
108
108
  case o.ScatterSeries: {
109
- const l = t, { dataItems: c, r2: g, aggregated: u } = l;
109
+ const n = a, { dataItems: l, r2: g, aggregated: u } = n;
110
110
  let C = g;
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);
111
+ Number.isFinite(g) || (C = void 0), this.r2 = C, U(i) && (i.dataStore.r2 = C, i.dataStore.aggregated = u, u && (i.additionalTooltipField = void 0)), this.calculatedDataMinMaxBounds = this.getDataExtent(l), i && (i.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds);
112
112
  break;
113
113
  }
114
114
  case o.LineSeries:
115
115
  case o.BarSeries: {
116
- const { dataItems: l, timeIntervalInfo: c } = t;
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);
116
+ const { dataItems: n, timeIntervalInfo: l } = a;
117
+ (x(s) || V(s) && s.binTemporalData) && (l?.size !== void 0 && s.temporalBinningSize !== l?.size && (s.temporalBinningSize = l?.size), l?.unit !== void 0 && s.temporalBinningUnit !== l?.unit && l?.unit !== ne.Quarter && (s.temporalBinningUnit = l?.unit), l?.size !== void 0 && l?.unit !== void 0 && q(S, { size: l.size, unit: l.unit })), this.calculatedDataMinMaxBounds = this.getDataExtent(n), i && (i.dataStore.calculatedDataMinMaxBounds = this.calculatedDataMinMaxBounds);
118
118
  break;
119
119
  }
120
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
- }
126
121
  }, this.chartAxesMinMaxChange = (e) => {
127
- const s = e, { bounds: t, model: a } = s.detail, i = this.getModel(this.selectedChartId), r = a?.isSameChartAs(i), l = i?.chartType;
122
+ const t = e, { bounds: a, model: i } = t.detail, s = this.getModel(this.selectedChartId), r = i?.isSameChartAs(s), n = s?.chartType;
128
123
  if (r)
129
- switch (l) {
124
+ switch (n) {
130
125
  case o.BarSeries:
131
126
  case o.BoxPlotSeries:
132
127
  case o.LineSeries:
133
128
  case o.HistogramSeries:
134
129
  case o.ScatterSeries:
135
- this.calculatedMinMaxBounds = t, a && (a.dataStore.calculatedMinMaxBounds = t), this.updateAxesBoundsInAppState(t);
130
+ this.calculatedMinMaxBounds = a, i && (i.dataStore.calculatedMinMaxBounds = a), this.updateAxesBoundsInAppState(a);
136
131
  break;
137
132
  }
138
133
  }, this.chartSeriesColorChange = (e) => {
139
- const s = e, { data: t, model: a } = s.detail, i = this.getModel(this.selectedChartId);
140
- if (a?.isSameChartAs(i))
141
- switch (i?.chartType) {
134
+ const t = e, { colorMatchApplied: a, data: i, model: s } = t.detail, r = this.getModel(this.selectedChartId);
135
+ if (s?.isSameChartAs(r))
136
+ switch (r?.chartType) {
142
137
  case o.BarSeries:
143
138
  case o.BoxPlotSeries:
144
139
  case o.LineSeries:
145
140
  case o.HistogramSeries:
146
- this.seriesColor = t, a && (a.dataStore.seriesColor = t);
141
+ this.seriesColor = i, s && (s.dataStore.seriesColor = i), this.applyNullCategorySeriesColor({
142
+ colorMatchApplied: a,
143
+ data: i,
144
+ model: r
145
+ });
147
146
  break;
148
147
  case o.PieSeries: {
149
- const l = /* @__PURE__ */ new Map([[0, t]]);
150
- this.seriesColor = l, a && (a.dataStore.seriesColor = l);
148
+ const l = /* @__PURE__ */ new Map([[0, i]]);
149
+ this.seriesColor = l, s && (s.dataStore.seriesColor = l);
151
150
  break;
152
151
  }
153
152
  case o.ScatterSeries:
154
153
  }
155
154
  }, this.chartNoRenderPropChange = (e) => {
156
- const s = e, { propName: t, value: a, model: i } = s.detail, r = this.modelList.find((l) => i?.isSameChartAs(l));
155
+ const t = e, { propName: a, value: i, model: s } = t.detail, r = this.modelList.find((n) => s?.isSameChartAs(n));
157
156
  if (r)
158
- switch (t) {
157
+ switch (a) {
159
158
  case "rotation":
160
- typeof a == "boolean" && z(r) && (r.rotated = a);
159
+ typeof i == "boolean" && z(r) && (r.rotated = i);
161
160
  break;
162
161
  case "legendPosition":
163
- typeof a == "string" && T(r) && (r.legendPosition = a);
162
+ typeof i == "string" && T(r) && (r.legendPosition = i);
164
163
  break;
165
164
  case "legendVisibility":
166
- typeof a == "boolean" && T(r) && (r.legendVisibility = a);
165
+ typeof i == "boolean" && T(r) && (r.legendVisibility = i);
167
166
  break;
168
167
  }
169
168
  }, this.chartLegendItemVisibilityChange = (e) => {
170
- const s = e, { legendItemVisibility: t, model: a } = s.detail, i = this.modelList.find((r) => a?.isSameChartAs(r));
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)));
169
+ const t = e, { legendItemVisibility: a, model: i } = t.detail, s = this.modelList.find((r) => i?.isSameChartAs(r));
170
+ s?.setSeriesVisibility(a), v(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), x(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)));
172
171
  }, this.onSelectChartTypeChange = (e) => {
173
172
  this.currentChartTypeText = "", this.calculatedDataMinMaxBounds = void 0, this.calculatedMinMaxBounds = void 0, this.removeSelectChartTypePopover();
174
- const { selectedModelType: s, layerId: t } = e.target;
175
- s !== void 0 && (this.allowChartSyncing = !0, this.arcgisChartsConfigNewChart.emit({
173
+ const { selectedModelType: t, layerId: a } = e.target;
174
+ t !== void 0 && (this.allowChartSyncing = !0, this.arcgisChartsConfigNewChart.emit({
176
175
  key: "key",
177
- chartType: s,
178
- layerId: t
176
+ chartType: t,
177
+ layerId: a
179
178
  }));
180
179
  }, this.onAddChartClose = () => {
181
180
  this.removeSelectChartTypePopover();
182
181
  }, this.onModelConfigChange = (e) => {
183
182
  if (this.syncChartsToLayers && this.allowChartSyncing) {
184
- const s = e.target;
185
- k(s?.layer, s);
183
+ const t = e.target;
184
+ E(t?.layer, t);
186
185
  }
187
186
  this.requestUpdate();
188
187
  }, 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);
@@ -191,7 +190,7 @@ class ue extends W {
191
190
  this.properties = { selectedPanel: 16, currentChartTypeText: 16, messageOverrides: 0, modelList: [0, { hasChanged: y }], layerList: [0, { hasChanged: y }], selectedChartId: 1, activeLayerId: 1, disableEditing: 5, syncChartsToLayers: 5, timeZone: 1, headerTitle: 1, close: 5, chartData: [0, { hasChanged: y }], r2: 9, calculatedDataMinMaxBounds: [0, { hasChanged: y }], calculatedMinMaxBounds: [0, { hasChanged: y }], seriesColor: [0, { hasChanged: se }], popoverPlacement: 1, usePopupTemplateFieldsInfo: 5, popupTemplateFieldInfosEnabled: 5, panelNumber: 9, filterBySelection: 5 };
192
191
  }
193
192
  static {
194
- this.styles = me;
193
+ this.styles = ue;
195
194
  }
196
195
  async setFocus() {
197
196
  await this.chartsListFlowItem.value?.setFocus();
@@ -207,67 +206,80 @@ class ue extends W {
207
206
  disconnectedCallback() {
208
207
  super.disconnectedCallback(), this.clearPartialModels(), this.removeSelectChartTypePopover();
209
208
  }
209
+ applyNullCategorySeriesColor(e) {
210
+ const { colorMatchApplied: t, data: a, model: i } = e;
211
+ R(i) && i.nullCategory === void 0 && (i.nullCategory = this.getDefaultNullCategory(t ? this.getSeriesColor(a) : void 0));
212
+ }
213
+ getSeriesColor(e) {
214
+ const t = e.get(0);
215
+ let a;
216
+ return t && "color" in t ? a = t.color : t && "lineSymbol" in t && (a = t.markerSymbol?.color ?? t.lineSymbol.color), a;
217
+ }
218
+ getDefaultNullCategory(e) {
219
+ const t = O(W.nullCategory);
220
+ return e !== void 0 && (t.fillSymbol && (t.fillSymbol.color = e, t.fillSymbol.outline && (t.fillSymbol.outline.color = e)), t.markerSymbol && (t.markerSymbol.color = e, t.markerSymbol.outline && (t.markerSymbol.outline.color = e))), t;
221
+ }
210
222
  modelListReorderChangeListener(e) {
211
- const { modelList: s } = e.detail;
212
- if (this.modelList = F({
223
+ const { modelList: t } = e.detail;
224
+ if (this.modelList = k({
213
225
  arrayA: this.modelList,
214
- arrayB: s,
215
- getKey: (t) => t.chartId ?? t.titleText ?? ""
226
+ arrayB: t,
227
+ getKey: (a) => a.chartId ?? a.titleText ?? ""
216
228
  }), this.syncChartsToLayers) {
217
- const t = s.find((a) => a.layer?.id !== void 0)?.layer?.id;
218
- if (t) {
219
- const a = this.layerList.find((i) => i.id.toString() === t);
220
- a && pe(a, s);
229
+ const a = t.find((i) => i.layer?.id !== void 0)?.layer?.id;
230
+ if (a) {
231
+ const i = this.layerList.find((s) => s.id.toString() === a);
232
+ i && pe(i, t);
221
233
  }
222
234
  }
223
235
  }
224
236
  async layerListChange() {
225
- const e = [], s = this.layerList.map((a) => a.id.toString());
226
- let t = [...this.modelList.filter((a) => s.includes(a.layer?.id ?? ""))];
227
- for (let a of this.layerList ?? []) {
228
- if (a.type === "sublayer") {
229
- const l = await a.createFeatureLayer();
230
- if (!l)
237
+ const e = [], t = this.layerList.map((i) => i.id.toString());
238
+ let a = [...this.modelList.filter((i) => t.includes(i.layer?.id ?? ""))];
239
+ for (let i of this.layerList ?? []) {
240
+ if (i.type === "sublayer") {
241
+ const n = await i.createFeatureLayer();
242
+ if (!n)
231
243
  continue;
232
- a = l;
244
+ i = n;
233
245
  }
234
- const r = a.charts;
235
- for (const l of r ?? []) {
236
- const c = await _({
237
- layer: a,
238
- config: l,
246
+ const r = i.charts;
247
+ for (const n of r ?? []) {
248
+ const l = await _({
249
+ layer: i,
250
+ config: n,
239
251
  commonStrings: this.commonStrings
240
252
  });
241
- c !== void 0 && e.push(c);
253
+ l !== void 0 && e.push(l);
242
254
  }
243
255
  }
244
- B(e), e.forEach((a) => {
245
- t.find((r) => r.isSameChartAs(a)) === void 0 && t.push(a);
246
- }), t = t.filter((a) => !Y(a.config)), this.modelList = t;
247
- }
248
- modelListChange(e, s) {
249
- this.selectedChartId = B(e, this.selectedChartId), s?.forEach((a) => {
250
- a.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
251
- }), e.forEach((a) => {
252
- a.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
256
+ B(e), e.forEach((i) => {
257
+ a.find((r) => r.isSameChartAs(i)) === void 0 && a.push(i);
258
+ }), a = a.filter((i) => !Q(i.config)), this.modelList = a;
259
+ }
260
+ modelListChange(e, t) {
261
+ this.selectedChartId = B(e, this.selectedChartId), t?.forEach((i) => {
262
+ i.removeEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
263
+ }), e.forEach((i) => {
264
+ i.addEventListener("arcgisChartsModelConfigChange", this.onModelConfigChange);
253
265
  });
254
- const t = this.getModel(this.selectedChartId);
255
- this.currentChartTypeText = t?.chartType !== void 0 ? P({
256
- chartType: t.chartType,
266
+ const a = this.getModel(this.selectedChartId);
267
+ this.currentChartTypeText = a?.chartType !== void 0 ? P({
268
+ chartType: a.chartType,
257
269
  commonStrings: this.commonStrings,
258
- config: t.config
259
- }) : "", this.syncChartsToLayers && this.allowChartSyncing && he(this.layerList, e), this.arcgisChartsConfigModelListChange.emit({ modelList: e });
270
+ config: a.config
271
+ }) : "", this.syncChartsToLayers && this.allowChartSyncing && de(this.layerList, e), this.arcgisChartsConfigModelListChange.emit({ modelList: e });
260
272
  }
261
273
  selectedChartIdChange(e) {
262
- this.selectedChartId === void 0 && (this.panelNumber = 0), this.selectedPanel = n.Data;
263
- const s = this.getModel(e);
264
- this.setEventBasedPropsFromModelData(s), this.currentChartTypeText = s?.chartType !== void 0 ? P({
265
- chartType: s.chartType,
274
+ this.selectedChartId === void 0 && (this.panelNumber = 0), this.selectedPanel = c.Data;
275
+ const t = this.getModel(e);
276
+ this.setEventBasedPropsFromModelData(t), this.currentChartTypeText = t?.chartType !== void 0 ? P({
277
+ chartType: t.chartType,
266
278
  commonStrings: this.commonStrings,
267
- config: s.config
268
- }) : "", e !== void 0 && e !== x.selectedChartId && (x.selectedChartId = e), this.allowChartSyncing = !0, this.arcgisChartsConfigSelectedChartChange.emit({
279
+ config: t.config
280
+ }) : "", e !== void 0 && e !== S.selectedChartId && (S.selectedChartId = e), this.allowChartSyncing = !0, this.arcgisChartsConfigSelectedChartChange.emit({
269
281
  key: "key",
270
- model: s
282
+ model: t
271
283
  });
272
284
  }
273
285
  panelNumberChange(e) {
@@ -277,74 +289,74 @@ class ue extends W {
277
289
  this.listenOn(document, M.DataProcessComplete, this.chartDataProcessComplete), this.listenOn(document, M.AxesMinMaxChange, this.chartAxesMinMaxChange), this.listenOn(document, M.SeriesColorChange, this.chartSeriesColorChange), this.listenOn(document, M.NoRenderPropChange, this.chartNoRenderPropChange), this.listenOn(document, M.LegendItemVisibilityChange, this.chartLegendItemVisibilityChange);
278
290
  }
279
291
  getDataExtent(e) {
280
- const s = this.getModel(this.selectedChartId)?.config;
281
- let t = [];
282
- if (s !== void 0 && e !== void 0) {
283
- const a = Q({
284
- chartConfig: s,
292
+ const t = this.getModel(this.selectedChartId)?.config;
293
+ let a = [];
294
+ if (t !== void 0 && e !== void 0) {
295
+ const i = J({
296
+ chartConfig: t,
285
297
  chartData: e
286
- }), { minY: i, maxY: r, minX: l, maxX: c } = a;
287
- t = [
288
- { isXAxis: !0, minimum: l, maximum: c },
289
- { isXAxis: !1, minimum: i, maximum: r }
298
+ }), { minY: s, maxY: r, minX: n, maxX: l } = i;
299
+ a = [
300
+ { isXAxis: !0, minimum: n, maximum: l },
301
+ { isXAxis: !1, minimum: s, maximum: r }
290
302
  ];
291
303
  }
292
- return t;
304
+ return a;
293
305
  }
294
306
  updateAxesBoundsInAppState(e) {
295
- e?.forEach((s) => {
296
- const { isXAxis: t, maximum: a, minimum: i } = s, r = this.getModel(this.selectedChartId);
307
+ e?.forEach((t) => {
308
+ const { isXAxis: a, maximum: i, minimum: s } = t, r = this.getModel(this.selectedChartId);
297
309
  if (r !== void 0 && v(r) && this.selectedChartId !== void 0) {
298
- const l = new ae(r, t), c = q({
310
+ const n = new ie(r, a), l = Y({
299
311
  chartId: this.selectedChartId,
300
- isXAxis: t,
301
- isLogarithmic: l.getLogarithmic()
302
- }), g = x.chartAxesBoundDataMap;
312
+ isXAxis: a,
313
+ isLogarithmic: n.getLogarithmic()
314
+ }), g = S.chartAxesBoundDataMap;
303
315
  g[this.selectedChartId] === void 0 && (g[this.selectedChartId] = {});
304
- const u = g[this.selectedChartId]?.[c], C = {
305
- defaultMinBound: u?.defaultMinBound === u?.currMinBound ? i : u?.defaultMinBound,
306
- currMinBound: i,
307
- defaultMaxBound: u?.defaultMaxBound === u?.currMaxBound ? a : u?.defaultMaxBound,
308
- currMaxBound: a
316
+ const u = g[this.selectedChartId]?.[l], C = {
317
+ defaultMinBound: u?.defaultMinBound === u?.currMinBound ? s : u?.defaultMinBound,
318
+ currMinBound: s,
319
+ defaultMaxBound: u?.defaultMaxBound === u?.currMaxBound ? i : u?.defaultMaxBound,
320
+ currMaxBound: i
309
321
  };
310
- !w(u, C) && this.selectedChartId !== void 0 && g?.[this.selectedChartId] !== void 0 && (g[this.selectedChartId][c] = C);
322
+ !w(u, C) && this.selectedChartId !== void 0 && g?.[this.selectedChartId] !== void 0 && (g[this.selectedChartId][l] = C);
311
323
  }
312
324
  });
313
325
  }
314
326
  getPlacement() {
315
327
  let e;
316
- return this.popoverPlacement !== void 0 ? e = this.popoverPlacement : e = this.modelList?.filter((a) => E(J, a.config)).length <= 2 ? "bottom" : "top", e;
328
+ return this.popoverPlacement !== void 0 ? e = this.popoverPlacement : e = this.modelList?.filter((i) => F(ee, i.config)).length <= 2 ? "bottom" : "top", e;
317
329
  }
318
330
  onBackFlow() {
319
331
  this.panelNumber -= 1;
320
332
  }
321
333
  async onAddChartClick(e) {
322
- const { referenceElement: s, layerId: t, layerType: a } = e.detail;
323
- let i = !0;
324
- if ($(a) && t) {
325
- const r = this.layerList.find((l) => l.id === t);
326
- $(r?.type) && (i = !!(await ee(r))?.attributeTable);
334
+ const { referenceElement: t, layerId: a, layerType: i } = e.detail;
335
+ let s = !0;
336
+ if (b(i) && a) {
337
+ const r = this.layerList.find((n) => n.id === a);
338
+ b(r?.type) && (s = !!(await te(r))?.attributeTable);
327
339
  }
328
- this.setupSelectChartTypePopover(s, t, a, i);
340
+ this.setupSelectChartTypePopover(t, a, i, s);
329
341
  }
330
- setupSelectChartTypePopover(e, s, t, a = !0) {
331
- const i = this.getPlacement();
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);
342
+ setupSelectChartTypePopover(e, t, a, i = !0) {
343
+ const s = this.getPlacement();
344
+ this.removeSelectChartTypePopover(), this.selectChartTypePopover = I(h`<arcgis-charts-config-select-chart-type-popover .referenceElement=${e} open .layerId=${t} .layerType=${a} .isRasterBarChartSupported=${i} .popoverPlacement=${s} @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);
333
345
  }
334
346
  getModel(e) {
335
- return this.modelList?.find((s) => s.chartId === e);
347
+ return this.modelList?.find((t) => t.chartId === e);
336
348
  }
337
349
  removeSelectChartTypePopover() {
338
- this.selectChartTypePopover !== void 0 && (this.selectChartTypePopover?.remove(), this.selectChartTypePopover = oe(this.selectChartTypePopover));
350
+ this.selectChartTypePopover !== void 0 && (this.selectChartTypePopover?.remove(), this.selectChartTypePopover = le(this.selectChartTypePopover));
339
351
  }
340
352
  clearPartialModels() {
341
353
  this.modelList = this.modelList.filter((e) => !D(e.config));
342
354
  }
343
355
  onViewChartDelete(e) {
344
- const { chartId: s } = e.detail;
345
- if (s !== void 0) {
346
- const t = this.modelList.find((i) => i.chartId === s), a = this.layerList.find((i) => i.id === t?.layer?.id);
347
- this.modelList = [...this.modelList.filter((i) => i.chartId !== s)], a && this.syncChartsToLayers && this.allowChartSyncing && de(a, s);
356
+ const { chartId: t } = e.detail;
357
+ if (t !== void 0) {
358
+ const a = this.modelList.find((s) => s.chartId === t), i = this.layerList.find((s) => s.id === a?.layer?.id);
359
+ this.modelList = [...this.modelList.filter((s) => s.chartId !== t)], i && this.syncChartsToLayers && this.allowChartSyncing && me(i, t);
348
360
  }
349
361
  }
350
362
  onViewChartsSelect(e) {
@@ -363,109 +375,109 @@ class ue extends W {
363
375
  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;
364
376
  }
365
377
  createTooltip(e) {
366
- const s = e.target;
367
- let t = "";
368
- switch (s.icon) {
378
+ const t = e.target;
379
+ let a = "";
380
+ switch (t.icon) {
369
381
  case "configure":
370
- t = this._messages.data ?? "";
382
+ a = this._messages.data ?? "";
371
383
  break;
372
384
  case "graph-bar-stacked":
373
385
  case "graph-line-series":
374
386
  case "box-chart-series":
375
- t = this._messages.series ?? "";
387
+ a = this._messages.series ?? "";
376
388
  break;
377
389
  case "graph-pie-slice":
378
- t = this._messages.slices ?? "";
390
+ a = this._messages.slices ?? "";
379
391
  break;
380
392
  case "graph-axis":
381
- t = this._messages.axes ?? "";
393
+ a = this._messages.axes ?? "";
382
394
  break;
383
395
  case "graph-guides":
384
- t = this._messages.guides ?? "";
396
+ a = this._messages.guides ?? "";
385
397
  break;
386
398
  case "palette":
387
- t = this._messages.format ?? "";
399
+ a = this._messages.format ?? "";
388
400
  break;
389
401
  case "text":
390
- t = this._messages.general ?? "";
402
+ a = this._messages.general ?? "";
391
403
  break;
392
404
  default:
393
- t = "";
405
+ a = "";
394
406
  break;
395
407
  }
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);
408
+ this.tooltip = I(h`<calcite-tooltip style=${X({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${a}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
397
409
  }
398
410
  destroyTooltip() {
399
- ie(this.tooltip);
411
+ re(this.tooltip);
400
412
  }
401
413
  renderViewCharts() {
402
- const e = ce({
414
+ const e = he({
403
415
  modelList: this.modelList,
404
416
  layerList: this.layerList,
405
417
  activeLayerId: this.activeLayerId,
406
418
  disableEditing: this.disableEditing
407
419
  });
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>`);
420
+ return N(e, (t) => t.id, (t) => h`<arcgis-charts-config-view-charts .noGroup=${this.activeLayerId !== void 0} .modelList=${ce(this.modelList, t.id.toString(), b(t.type) ? ae : this.supportedChartTypes)} .selectedChartId=${this.selectedChartId ?? ""} .layer=${t} .disableEditing=${this.disableEditing} @arcgisChartsConfigViewChartSelect=${this.onViewChartsSelect} @arcgisChartsConfigViewChartEdit=${this.onViewChartsEdit} @arcgisChartsConfigViewChartDelete=${this.onViewChartDelete} @arcgisChartsConfigViewChartAddChart=${this.onAddChartClick}></arcgis-charts-config-view-charts>`);
409
421
  }
410
422
  render() {
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>`;
423
+ return this.close ? null : 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} ${j(this.chartsListFlowItem)}>${this.renderViewCharts()}</calcite-flow-item>`)}${this.panelNumber >= 1 && !this.disableEditing ? this.renderTabs() : null}</calcite-flow>`;
412
424
  }
413
425
  renderTabs() {
414
426
  const e = this.getModel(this.selectedChartId);
415
- return b("chart-edit", h`<calcite-flow-item .selected=${this.panelNumber >= 1 && !this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel ?? n.Data]} .description=${this.currentChartTypeText !== "" && this._messages.pageFlowTitle !== void 0 ? H(this._messages.pageFlowTitle, {
427
+ return $("chart-edit", h`<calcite-flow-item .selected=${this.panelNumber >= 1 && !this.disableEditing} @calciteFlowItemBack=${this.onBackFlow} .heading=${this._messages[this.selectedPanel ?? c.Data]} .description=${this.currentChartTypeText !== "" && this._messages.pageFlowTitle !== void 0 ? H(this._messages.pageFlowTitle, {
416
428
  chartName: e?.titleText ?? this.currentChartTypeText,
417
429
  layerName: e?.layer?.title ?? ""
418
- }) : ""}>${e?.chartType !== void 0 ? h`<calcite-action-bar class=${d(p.tabBar)} layout=horizontal expand-disabled><calcite-action class=${d(p.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel === n.Data || this.selectedPanel === void 0} @click=${() => {
419
- this.selectedPanel = n.Data;
420
- }} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType === o.BarSeries ? h`<calcite-action class=${d(p.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel === n.Series} @click=${() => {
421
- this.selectedPanel = n.Series;
422
- }} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === o.LineSeries ? h`<calcite-action class=${d(p.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel === n.Series} @click=${() => {
423
- this.selectedPanel = n.Series;
424
- }} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === o.BoxPlotSeries ? h`<calcite-action class=${d(p.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel === n.Series} @click=${() => {
425
- this.selectedPanel = n.Series;
426
- }} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === o.PieSeries ? h`<calcite-action class=${d(p.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel === n.Slices} @click=${() => {
427
- this.selectedPanel = n.Slices;
428
- }} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.slices ?? ""}></calcite-action>` : null}${e?.chartType !== o.PieSeries && e?.chartType !== o.HeatSeries ? h`<calcite-action class=${d(p.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel === n.Axes} @click=${() => {
429
- this.selectedPanel = n.Axes;
430
- }} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.axes ?? ""}></calcite-action>` : null}${e?.chartType !== o.PieSeries && e?.chartType !== o.HeatSeries ? h`<calcite-action class=${d(p.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel === n.Guides} @click=${() => {
431
- this.selectedPanel = n.Guides;
432
- }} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.guides ?? ""}></calcite-action>` : null}<calcite-action class=${d(p.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel === n.Format} @click=${() => {
433
- this.selectedPanel = n.Format;
434
- }} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.format ?? ""}></calcite-action><calcite-action class=${d(p.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel === n.General} @click=${() => {
435
- this.selectedPanel = n.General;
430
+ }) : ""}>${e?.chartType !== void 0 ? h`<calcite-action-bar class=${d(m.tabBar)} layout=horizontal expand-disabled><calcite-action class=${d(m.tab)} icon=configure scale=s alignment=center .active=${this.selectedPanel === c.Data || this.selectedPanel === void 0} @click=${() => {
431
+ this.selectedPanel = c.Data;
432
+ }} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} text></calcite-action>${e?.chartType === o.BarSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-bar-stacked scale=s alignment=center .active=${this.selectedPanel === c.Series} @click=${() => {
433
+ this.selectedPanel = c.Series;
434
+ }} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === o.LineSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-line-series scale=s alignment=center .active=${this.selectedPanel === c.Series} @click=${() => {
435
+ this.selectedPanel = c.Series;
436
+ }} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === o.BoxPlotSeries ? h`<calcite-action class=${d(m.tab)} icon=box-chart-series scale=s alignment=center .active=${this.selectedPanel === c.Series} @click=${() => {
437
+ this.selectedPanel = c.Series;
438
+ }} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.series ?? ""}></calcite-action>` : null}${e?.chartType === o.PieSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-pie-slice scale=s alignment=center .active=${this.selectedPanel === c.Slices} @click=${() => {
439
+ this.selectedPanel = c.Slices;
440
+ }} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.slices ?? ""}></calcite-action>` : null}${e?.chartType !== o.PieSeries && e?.chartType !== o.HeatSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-axis scale=s alignment=center .active=${this.selectedPanel === c.Axes} @click=${() => {
441
+ this.selectedPanel = c.Axes;
442
+ }} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.axes ?? ""}></calcite-action>` : null}${e?.chartType !== o.PieSeries && e?.chartType !== o.HeatSeries ? h`<calcite-action class=${d(m.tab)} icon=graph-guides scale=s alignment=center .active=${this.selectedPanel === c.Guides} @click=${() => {
443
+ this.selectedPanel = c.Guides;
444
+ }} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.guides ?? ""}></calcite-action>` : null}<calcite-action class=${d(m.tab)} icon=palette scale=s alignment=center .active=${this.selectedPanel === c.Format} @click=${() => {
445
+ this.selectedPanel = c.Format;
446
+ }} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.format ?? ""}></calcite-action><calcite-action class=${d(m.tab)} icon=text scale=s alignment=center .active=${this.selectedPanel === c.General} @click=${() => {
447
+ this.selectedPanel = c.General;
436
448
  }} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} .text=${this._messages.general ?? ""}></calcite-action></calcite-action-bar>` : null}${this.renderChartUIComponent()}</calcite-flow-item>`);
437
449
  }
438
450
  renderChartUIComponent() {
439
- const e = this.getModel(this.selectedChartId), s = e?.layer;
440
- let t = null;
451
+ const e = this.getModel(this.selectedChartId), t = e?.layer;
452
+ let a = null;
441
453
  if (e !== void 0 && !this.disableEditing)
442
454
  switch (e?.chartType) {
443
455
  case o.BarSeries:
444
- t = h`<arcgis-charts-config-bar-chart class=${d(p.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel ?? n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;
456
+ a = h`<arcgis-charts-config-bar-chart class=${d(m.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ?? c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-bar-chart>`;
445
457
  break;
446
458
  case o.LineSeries:
447
- t = h`<arcgis-charts-config-line-chart class=${d(p.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel ?? n.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;
459
+ a = h`<arcgis-charts-config-line-chart class=${d(m.chartUIComponent)} .model=${e} .timeZone=${this.timeZone} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ?? c.Data} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-line-chart>`;
448
460
  break;
449
461
  case o.PieSeries:
450
- t = h`<arcgis-charts-config-pie-chart class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${s} .chartData=${this.chartData} .page=${this.selectedPanel ?? n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;
462
+ a = h`<arcgis-charts-config-pie-chart class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .chartData=${this.chartData} .page=${this.selectedPanel ?? c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor} .filterBySelection=${this.filterBySelection}></arcgis-charts-config-pie-chart>`;
451
463
  break;
452
464
  case o.HistogramSeries:
453
- t = h`<arcgis-charts-config-histogram class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel ?? n.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;
465
+ a = h`<arcgis-charts-config-histogram class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ?? c.Data} .chartData=${this.chartData} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-histogram>`;
454
466
  break;
455
467
  case o.ScatterSeries:
456
- t = h`<arcgis-charts-config-scatter-plot class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel ?? n.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;
468
+ a = h`<arcgis-charts-config-scatter-plot class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ?? c.Data} .r2=${this.r2} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds}></arcgis-charts-config-scatter-plot>`;
457
469
  break;
458
470
  case o.BoxPlotSeries:
459
- t = h`<arcgis-charts-config-box-plot class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel ?? n.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;
471
+ a = h`<arcgis-charts-config-box-plot class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ?? c.Data} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .seriesColor=${this.seriesColor}></arcgis-charts-config-box-plot>`;
460
472
  break;
461
473
  case o.HeatSeries:
462
- t = h`<arcgis-charts-config-heat-chart class=${d(p.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${s} .page=${this.selectedPanel ?? n.Data}></arcgis-charts-config-heat-chart>`;
474
+ a = h`<arcgis-charts-config-heat-chart class=${d(m.chartUIComponent)} .model=${e} .usePopupTemplateFieldsInfo=${this.usePopupTemplateFieldsInfo || this.popupTemplateFieldInfosEnabled} .layer=${t} .page=${this.selectedPanel ?? c.Data}></arcgis-charts-config-heat-chart>`;
463
475
  break;
464
476
  }
465
- return t;
477
+ return a;
466
478
  }
467
479
  }
468
- A("arcgis-charts-config-create-flow", ue);
480
+ A("arcgis-charts-config-create-flow", ge);
469
481
  export {
470
- ue as ArcgisChartsConfigCreateFlow
482
+ ge as ArcgisChartsConfigCreateFlow
471
483
  };