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

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 (123) hide show
  1. package/dist/cdn/{MO5LDVWE.js → 2G65P262.js} +1 -1
  2. package/dist/cdn/2RYKKN36.js +2 -0
  3. package/dist/cdn/{ZESW7TCR.js → 3AYXOX4U.js} +1 -1
  4. package/dist/cdn/{USNCFQ5L.js → 3UHXOKCR.js} +1 -1
  5. package/dist/cdn/{5RC76C5H.js → 3YCGBAQY.js} +1 -1
  6. package/dist/cdn/{CHZMNR2R.js → 3ZGG7Q5M.js} +1 -1
  7. package/dist/cdn/{6HIK7EBX.js → 4COV22K4.js} +1 -1
  8. package/dist/cdn/{KDLRVDVQ.js → 54W4C75M.js} +1 -1
  9. package/dist/cdn/{DG6ENZ35.js → 5EYVH3PA.js} +1 -1
  10. package/dist/cdn/{KUI3SQHQ.js → 5MPXETTU.js} +1 -1
  11. package/dist/cdn/{IW7AZIV6.js → 5YP7P6S3.js} +1 -1
  12. package/dist/cdn/{XYBOIKE4.js → 67QYTLMM.js} +1 -1
  13. package/dist/cdn/{77A4IT5I.js → 6AI3ZXL5.js} +1 -1
  14. package/dist/cdn/{26UUSCOV.js → 6DOANSRL.js} +20 -20
  15. package/dist/cdn/{PA4NRD4I.js → 6MNV7FJC.js} +1 -1
  16. package/dist/cdn/{G3MWFZDW.js → 6PIQ2O5S.js} +1 -1
  17. package/dist/cdn/7CMQGTU6.js +2 -0
  18. package/dist/cdn/{UMYQZXPT.js → 7DIQIFKR.js} +1 -1
  19. package/dist/cdn/{ZH3BXRLT.js → A36KQ6YP.js} +1 -1
  20. package/dist/cdn/{IPMCTC6B.js → ANHW36VW.js} +1 -1
  21. package/dist/cdn/{44DVV3KE.js → AYUYEY5H.js} +1 -1
  22. package/dist/cdn/{BYPSLSFP.js → BDTKAMUN.js} +1 -1
  23. package/dist/cdn/{MYDNPSD6.js → BHGOAHMJ.js} +1 -1
  24. package/dist/cdn/{PXTBSPEA.js → BKK57XHL.js} +1 -1
  25. package/dist/cdn/BLZLMGO6.js +2 -0
  26. package/dist/cdn/{KVAWYWYK.js → BXBY6D2F.js} +1 -1
  27. package/dist/cdn/{OKZBV5LB.js → DBAM7MH7.js} +1 -1
  28. package/dist/cdn/{B2XDPYOL.js → DGV6S2W3.js} +1 -1
  29. package/dist/cdn/{EQ2X422F.js → DPTA2AET.js} +1 -1
  30. package/dist/cdn/{COLTSCAS.js → EAV3KAS7.js} +1 -1
  31. package/dist/cdn/{T3WULYNA.js → EBSQRCQQ.js} +1 -1
  32. package/dist/cdn/{UL2ASLY7.js → EDVN42ME.js} +1 -1
  33. package/dist/cdn/{VME2NH7X.js → EMBMJCFZ.js} +1 -1
  34. package/dist/cdn/{BFT5CL7V.js → EOHKNJSJ.js} +1 -1
  35. package/dist/cdn/{PDYOXU7M.js → EUOJG5H6.js} +1 -1
  36. package/dist/cdn/{VU2FAY3Y.js → FQLRMWNL.js} +1 -1
  37. package/dist/cdn/{MLLV2GML.js → GARBFC7Q.js} +1 -1
  38. package/dist/cdn/{AZHBGLOD.js → GRL5SM6K.js} +1 -1
  39. package/dist/cdn/{KBOIN2ZI.js → H2EMIJME.js} +1 -1
  40. package/dist/cdn/{B5KB7HXA.js → HOIPLQXD.js} +1 -1
  41. package/dist/cdn/{5RWZRHLN.js → HUNN3ERX.js} +1 -1
  42. package/dist/cdn/{P2L3OTIA.js → I3XBTQKJ.js} +1 -1
  43. package/dist/cdn/{E5G6IGUP.js → INISFVAK.js} +1 -1
  44. package/dist/cdn/{RQ6HACQP.js → ISK4QVLY.js} +1 -1
  45. package/dist/cdn/{IOE5YG7Q.js → J3CL6KB6.js} +1 -1
  46. package/dist/cdn/{LA5FTE2U.js → JBFVGQSP.js} +3 -3
  47. package/dist/cdn/{WWKZYBCF.js → JEVWE6ER.js} +1 -1
  48. package/dist/cdn/{AZDPAG65.js → JGESKW6S.js} +1 -1
  49. package/dist/cdn/{M22IUUVK.js → JH3NSZUT.js} +1 -1
  50. package/dist/cdn/{UYMLDXJI.js → JS6A5QAV.js} +1 -1
  51. package/dist/cdn/{GWNHO3MZ.js → JYITKARU.js} +1 -1
  52. package/dist/cdn/{GQGII3CK.js → KCES2YBJ.js} +1 -1
  53. package/dist/cdn/{YL27XTUT.js → KDCZQ6UT.js} +1 -1
  54. package/dist/cdn/{LSWWNXP3.js → KLKI4XNW.js} +1 -1
  55. package/dist/cdn/KWA7OWHO.js +2 -0
  56. package/dist/cdn/{GJ4JGGKT.js → L7TUV2MY.js} +1 -1
  57. package/dist/cdn/{NYDW2I5M.js → LGTXQIF7.js} +1 -1
  58. package/dist/cdn/{CU6R7UXF.js → M744CFJ2.js} +1 -1
  59. package/dist/cdn/{WKCITUA3.js → MJTWR33N.js} +1 -1
  60. package/dist/cdn/{MJLDF2FQ.js → MXE4VPZS.js} +1 -1
  61. package/dist/cdn/{NCHIDM4H.js → NK66D65H.js} +1 -1
  62. package/dist/cdn/{HMBXRL4X.js → NZ2C5DJB.js} +1 -1
  63. package/dist/cdn/{BU3IX333.js → O3DJD5IR.js} +1 -1
  64. package/dist/cdn/{HSVZTTYF.js → O3VKOV2W.js} +1 -1
  65. package/dist/cdn/{EQDTX4JX.js → OFFKJPQH.js} +1 -1
  66. package/dist/cdn/{DDUKKQIZ.js → OWWQ5SYW.js} +1 -1
  67. package/dist/cdn/P5QEJOJS.js +2 -0
  68. package/dist/cdn/{INUVRMMG.js → PLEC3GNT.js} +1 -1
  69. package/dist/cdn/{VXQLTYHF.js → QTSF2LK7.js} +1 -1
  70. package/dist/cdn/{QTD2QGHC.js → QZCTLQBM.js} +1 -1
  71. package/dist/cdn/{H3CYQU3L.js → RICA7GJM.js} +1 -1
  72. package/dist/cdn/{KR7A5JG4.js → S5GVUYBL.js} +1 -1
  73. package/dist/cdn/{GPABWWGF.js → SQIKFO32.js} +1 -1
  74. package/dist/cdn/{TCKFUPRR.js → SUNHJPBW.js} +1 -1
  75. package/dist/cdn/{HD72K7JQ.js → SYVPFDIW.js} +1 -1
  76. package/dist/cdn/{2B27HWX2.js → T62EETHJ.js} +1 -1
  77. package/dist/cdn/{J6M4AA5V.js → TEWEPSIO.js} +1 -1
  78. package/dist/cdn/{MBL6ZAKF.js → U43KANH5.js} +1 -1
  79. package/dist/cdn/{6KTWKIGJ.js → UM7RIOCE.js} +1 -1
  80. package/dist/cdn/{TQYULR2I.js → V5W5LNFT.js} +1 -1
  81. package/dist/cdn/V6LKZUEZ.js +3 -0
  82. package/dist/cdn/{RA3GUNR3.js → VA6KJZ2Y.js} +1 -1
  83. package/dist/cdn/{64CBZCW7.js → WFW6BNDT.js} +1 -1
  84. package/dist/cdn/{IJYXP34M.js → WTJ2NJ76.js} +1 -1
  85. package/dist/cdn/{6KMPIGFU.js → WZOHQJFB.js} +1 -1
  86. package/dist/cdn/{NZT3J3KJ.js → XKZ44LA2.js} +1 -1
  87. package/dist/cdn/{OTH3FQJJ.js → XM2GVJT3.js} +1 -1
  88. package/dist/cdn/{GC7ISTDF.js → Y2WHHAAA.js} +1 -1
  89. package/dist/cdn/{V6TEH3XV.js → Y5ZH7VS4.js} +1 -1
  90. package/dist/cdn/{FHKRXY7E.js → YC4WZNPI.js} +1 -1
  91. package/dist/cdn/{LU6YEMXO.js → YVSZN6IH.js} +1 -1
  92. package/dist/cdn/{54M3LLQH.js → Z3LGGHZN.js} +1 -1
  93. package/dist/cdn/{Q6VW7H3A.js → ZGBULDPL.js} +1 -1
  94. package/dist/cdn/{YIWJ2NPY.js → ZLXYBOM3.js} +1 -1
  95. package/dist/cdn/{TW4RXJ35.js → ZRX4BEOX.js} +1 -1
  96. package/dist/cdn/{ZZ5FKECR.js → ZWIF7LHW.js} +1 -1
  97. package/dist/cdn/index.js +1 -1
  98. package/dist/cdn/model/shared/setup-utils.js +1 -1
  99. package/dist/chunks/data.js +1 -1
  100. package/dist/chunks/index2.js +1879 -1939
  101. package/dist/chunks/index4.js +8 -8
  102. package/dist/chunks/model-setter.js +1 -1
  103. package/dist/chunks/serial-chart-data.js +1 -1
  104. package/dist/chunks/web-component-utils.js +38 -38
  105. package/dist/components/arcgis-chart/customElement.js +3835 -3789
  106. package/dist/components/arcgis-charts-config-axis/customElement.js +70 -64
  107. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +6 -6
  108. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
  109. package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
  110. package/dist/components/arcgis-charts-config-format/customElement.js +89 -82
  111. package/dist/components/arcgis-charts-config-view-charts/customElement.js +4 -4
  112. package/dist/docs/api.json +1 -1
  113. package/dist/docs/docs.json +1 -1
  114. package/dist/docs/web-types.json +1 -1
  115. package/dist/utils/chart-config/converter/index.js +1 -1
  116. package/package.json +3 -3
  117. package/dist/cdn/5NZ537SN.js +0 -2
  118. package/dist/cdn/EFRELYIP.js +0 -2
  119. package/dist/cdn/FHCIXPMQ.js +0 -3
  120. package/dist/cdn/IKSW6TU5.js +0 -2
  121. package/dist/cdn/JWWSIFDA.js +0 -2
  122. package/dist/cdn/QRNP4SNY.js +0 -2
  123. /package/dist/cdn/{5DUKB563.js → MARXRC6B.js} +0 -0
@@ -1,19 +1,20 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as M } from "../../chunks/runtime.js";
3
- import { ref as B } from "lit/directives/ref.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
- import { i as L } from "../../chunks/data-labels-symbol.js";
6
- import { i as P, a as C, b as E } from "../../chunks/axis-lines-symbol.js";
7
- import { isEmpty as f, cloneDeep as a, isArray as F, isObject as A, mergeWith as G } from "lodash-es";
8
- import { h as W } from "../../chunks/chart-ui-utils2.js";
9
- import { g as D, i as b } from "../../chunks/rest-js-object-literals.js";
2
+ import { c as B } from "../../chunks/runtime.js";
3
+ import { ref as M } from "lit/directives/ref.js";
4
+ import { u as y, m as d, k as h, j as S, e as V, w } from "../../chunks/type-guards2.js";
5
+ import { i as T } from "../../chunks/data-labels-symbol.js";
6
+ import { i as C, a as L, b as P } from "../../chunks/axis-lines-symbol.js";
7
+ import { cloneDeep as n, isArray as F, isObject as A, mergeWith as D, isEmpty as E } from "lodash-es";
8
+ import { h as G } from "../../chunks/chart-ui-utils2.js";
9
+ import { g as W, i as b } from "../../chunks/rest-js-object-literals.js";
10
10
  import { u as N } from "../../chunks/useT9n.js";
11
- import { css as z, html as u } from "lit";
11
+ import { css as z, html as f } from "lit";
12
12
  import { LitElement as H, renderElement as j, safeClassMap as p } from "@arcgis/lumina";
13
- import { C as I, F as i, L as n } from "../../chunks/common.js";
14
- import { bF as x, bV as l } from "../../chunks/index2.js";
13
+ import { C as I, F as i, L as m } from "../../chunks/common.js";
14
+ import { bF as u, bV as r } from "../../chunks/index2.js";
15
15
  import { r as $ } from "../../chunks/popover-ui-utils.js";
16
- import { u as r } from "../../chunks/chart-object-literals.js";
16
+ import { F as O } from "../../chunks/index3.js";
17
+ import { u as a } from "../../chunks/chart-object-literals.js";
17
18
  const v = {
18
19
  type: b.TS,
19
20
  color: [1, 1, 1, 255],
@@ -27,14 +28,14 @@ const v = {
27
28
  }, k = {
28
29
  type: b.SLS,
29
30
  color: [1, 1, 1, 255],
30
- style: D.Solid,
31
+ style: W.Solid,
31
32
  width: 2
32
33
  }, g = {
33
34
  element: "chart-element",
34
35
  elementList: "element-list",
35
36
  sectionLabel: "section-label"
36
- }, O = 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{width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.section-label{display:flex;margin:var(--arcgis-charts-config-margin-major) var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.element-list{margin:var(--arcgis-charts-config-margin-minor)}.element{user-select:none}`;
37
- class R extends H {
37
+ }, R = 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{width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.section-label{display:flex;margin:var(--arcgis-charts-config-margin-major) var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.element-list{margin:var(--arcgis-charts-config-margin-minor)}.element{user-select:none}`;
38
+ class X extends H {
38
39
  constructor() {
39
40
  super(...arguments), this._messages = N(), this.formatPopover = null, this.selectableElements = [], this.textProperties = [], this.symbolProperties = [], this.symbolPropertyChange = (t) => {
40
41
  const e = t;
@@ -44,7 +45,7 @@ class R extends H {
44
45
  this.selectedSymbols = [], this.updateSelectedElement(this.selectedSymbols);
45
46
  else {
46
47
  const o = this.getFormatValue(s);
47
- this.selectedSymbols = [s], this.initSelectedSymbols(x(o) ? o : k);
48
+ this.selectedSymbols = [s], this.initSelectedSymbols(u(o) ? o : k);
48
49
  }
49
50
  this.setupFormatPopover();
50
51
  }, this.textPropertyChange = (t) => {
@@ -53,9 +54,9 @@ class R extends H {
53
54
  let s;
54
55
  if (e.target?.localName === "calcite-list-item" ? s = e.target?.value : s = e.target?.parentNode?.value, this.selectedSymbols = [], this.selectedBackground = [], e.shiftKey) {
55
56
  this.selectedTexts = [];
56
- const o = this.textProperties.indexOf(this.lastSelectedText ?? s), c = this.textProperties.indexOf(s);
57
- this.textProperties.forEach((m, y) => {
58
- y >= Math.min(o, c) && y <= Math.max(o, c) && this.selectedTexts.push(m);
57
+ const o = this.textProperties.indexOf(this.lastSelectedText ?? s), l = this.textProperties.indexOf(s);
58
+ this.textProperties.forEach((c, x) => {
59
+ x >= Math.min(o, l) && x <= Math.max(o, l) && this.selectedTexts.push(c);
59
60
  }), this.updateSelectedElement(this.selectedTexts), this.setupFormatPopover();
60
61
  } else if (e.ctrlKey)
61
62
  this.selectedTexts.includes(s) ? (this.selectedTexts = this.selectedTexts.filter((o) => o !== s), this.updateSelectedElement(this.selectedTexts)) : (this.selectedTexts = [...this.selectedTexts, s], this.updateSelectedElement(this.selectedTexts)), this.setupFormatPopover();
@@ -63,32 +64,38 @@ class R extends H {
63
64
  this.selectedTexts = [], this.updateSelectedElement(this.selectedTexts), this.setupFormatPopover();
64
65
  else {
65
66
  const o = this.getFormatValue(s);
66
- this.selectedTexts = [s], this.initSelectedTexts(l(o) ? o : v), this.setupFormatPopover();
67
+ this.selectedTexts = [s], this.initSelectedTexts(r(o) ? o : v), this.setupFormatPopover();
67
68
  }
68
69
  this.lastSelectedText = s;
69
70
  }, this.backgroundChange = (t) => {
70
71
  const e = t;
71
72
  e.stopImmediatePropagation();
72
73
  let s;
73
- e.target?.localName === "calcite-list-item" ? s = e.target?.value : s = e.target?.parentNode?.value, this.selectedSymbols = [], this.selectedTexts = [], this.selectedBackground.includes(s) ? (this.selectedBackground = [], this.selectedElement = void 0) : (this.selectedBackground = [s], this.selectedElement = f(this.getFormatValue(s)) ? void 0 : this.getFormatValue(s)), this.setupFormatPopover();
74
+ if (e.target?.localName === "calcite-list-item" ? s = e.target?.value : s = e.target?.parentNode?.value, this.selectedSymbols = [], this.selectedTexts = [], this.selectedBackground.includes(s))
75
+ this.selectedBackground = [], this.selectedElement = void 0;
76
+ else {
77
+ const o = this.getFormatValue(s), l = [...O.backgroundColor];
78
+ this.selectedBackground = [s], this.selectedElement = o ?? l;
79
+ }
80
+ this.setupFormatPopover();
74
81
  }, this.updateSymbolProps = (t) => {
75
82
  const e = t.detail;
76
83
  this.selectedSymbols.forEach((s) => {
77
84
  this.setFormatValue(s, e);
78
- }), this.selectedElement = a(t.target.selectedElement);
85
+ }), this.selectedElement = n(t.target.selectedElement);
79
86
  }, this.updateBackground = (t) => {
80
87
  this.setFormatValue(I.Background, t.detail), this.selectedElement = t.detail;
81
88
  }, this.updateTextProps = (t) => {
82
89
  const { font: e, color: s } = t.detail;
83
90
  this.selectedTexts.forEach((o) => {
84
- const c = this.getFormatValue(o), m = l(c) ? c : void 0;
91
+ const l = this.getFormatValue(o), c = r(l) ? l : void 0;
85
92
  this.setFormatValue(o, {
86
- ...m,
93
+ ...c,
87
94
  type: b.TS,
88
- font: { ...m?.font, ...e },
89
- color: s ?? m?.color
95
+ font: { ...c?.font, ...e },
96
+ color: s ?? c?.color
90
97
  });
91
- }), this.selectedElement = a(t.target.selectedElement);
98
+ }), this.selectedElement = n(t.target.selectedElement);
92
99
  }, this.onModelConfigChange = () => {
93
100
  this.requestUpdate();
94
101
  }, this.formatPopoverClose = (t) => {
@@ -106,7 +113,7 @@ class R extends H {
106
113
  this.properties = { selectedSymbols: 16, selectedTexts: 16, selectedBackground: 16, selectedElement: 16, messageOverrides: 0, model: 0 };
107
114
  }
108
115
  static {
109
- this.styles = O;
116
+ this.styles = R;
110
117
  }
111
118
  load() {
112
119
  this.modelChange(this.model);
@@ -128,29 +135,29 @@ class R extends H {
128
135
  }
129
136
  updateSelectedElement(t, e) {
130
137
  if (this.selectedElement = void 0, e === void 0) {
131
- const s = a(this.getFormatValue(t[0]));
132
- this.selectedElement = t?.reduce((o, c) => {
133
- const m = this.getFormatValue(c);
134
- return G(o, m, this.mergeFormatValues);
138
+ const s = n(this.getFormatValue(t[0]));
139
+ this.selectedElement = t?.reduce((o, l) => {
140
+ const c = this.getFormatValue(l);
141
+ return D(o, c, this.mergeFormatValues);
135
142
  }, s);
136
143
  } else {
137
- let s = a(e);
138
- f(e) && (this.selectedSymbols?.length > 0 && (s = a(k)), this.selectedTexts?.length > 0 && (s = a(v))), this.selectedElement = s;
144
+ let s = n(e);
145
+ E(e) && (this.selectedSymbols?.length > 0 && (s = n(k)), this.selectedTexts?.length > 0 && (s = n(v))), this.selectedElement = s;
139
146
  }
140
147
  }
141
148
  initSelectedTexts(t) {
142
- let e = a(t);
143
- f(t) && (e = a(v)), this.selectedElement = e;
149
+ let e = n(t);
150
+ E(t) && (e = n(v)), this.selectedElement = e;
144
151
  }
145
152
  initSelectedSymbols(t) {
146
- let e = a(t);
147
- f(t) && (e = a(k)), this.selectedElement = e;
153
+ let e = n(t);
154
+ E(t) && (e = n(k)), this.selectedElement = e;
148
155
  }
149
156
  setupFormatPopover() {
150
157
  this.formatPopover = $(this.formatPopover);
151
158
  const t = this.selectedElement;
152
159
  t?.type === b.TS || t?.type === b.SLS || // To check if the selected element is background.
153
- Array.isArray(this.selectedElement) ? (this.formatPopover = j(u`<arcgis-charts-config-format-popover .selectedElement=${this.selectedElement} .referenceElement=${this.el} @arcgisChartsConfigFormatPopoverSymbolChange=${this.updateSymbolProps} @arcgisChartsConfigFormatPopoverTextChange=${this.updateTextProps} @arcgisChartsConfigFormatPopoverColorChange=${this.updateBackground} placement=auto @arcgisChartsConfigPopoverClose=${this.formatPopoverClose} open></arcgis-charts-config-format-popover>`), this.formatPopover !== null && !document.body.contains(this.formatPopover) && document.body.appendChild(this.formatPopover)) : this.removeFormatPopover();
160
+ Array.isArray(this.selectedElement) ? (this.formatPopover = j(f`<arcgis-charts-config-format-popover .selectedElement=${this.selectedElement} .referenceElement=${this.el} @arcgisChartsConfigFormatPopoverSymbolChange=${this.updateSymbolProps} @arcgisChartsConfigFormatPopoverTextChange=${this.updateTextProps} @arcgisChartsConfigFormatPopoverColorChange=${this.updateBackground} placement=auto @arcgisChartsConfigPopoverClose=${this.formatPopoverClose} open></arcgis-charts-config-format-popover>`), this.formatPopover !== null && !document.body.contains(this.formatPopover) && document.body.appendChild(this.formatPopover)) : this.removeFormatPopover();
154
161
  }
155
162
  removeFormatPopover() {
156
163
  this.formatPopover !== null && (this.formatPopover.open = !1, this.formatPopover = $(this.formatPopover));
@@ -162,25 +169,25 @@ class R extends H {
162
169
  case i.Description:
163
170
  return this.model.descriptionSymbol;
164
171
  case i.XAxisTitle:
165
- return E(this.model) ? this.model.xAxisTitleSymbol : void 0;
172
+ return P(this.model) ? this.model.xAxisTitleSymbol : void 0;
166
173
  case i.YAxisTitle:
167
174
  return d(this.model) ? this.model.getAxisTitleSymbol(1) : void 0;
168
175
  case i.AxisLabels:
169
- return C(this.model) ? this.model.axisLabelsSymbol : void 0;
176
+ return L(this.model) ? this.model.axisLabelsSymbol : void 0;
170
177
  case i.GuideLabels:
171
- return T(this.model) ? this.model.guideLabelsSymbol : void 0;
178
+ return S(this.model) ? this.model.guideLabelsSymbol : void 0;
172
179
  case i.LegendText:
173
180
  return h(this.model) ? this.model.legendTextSymbol : void 0;
174
181
  case i.LegendTitle:
175
182
  return h(this.model) ? this.model.legendTitleSymbol : void 0;
176
183
  case i.DataLabels:
177
- return L(this.model) ? this.model.dataLabelsSymbol : void 0;
178
- case n.AxisLines:
179
- return P(this.model) ? this.model.axisLinesSymbol : void 0;
180
- case n.GridLines:
184
+ return T(this.model) ? this.model.dataLabelsSymbol : void 0;
185
+ case m.AxisLines:
186
+ return C(this.model) ? this.model.axisLinesSymbol : void 0;
187
+ case m.GridLines:
181
188
  return d(this.model) ? this.model.getGridLinesSymbol() : void 0;
182
- case n.LeaderLines:
183
- return S(this.model) ? this.model.ticksSymbol : void 0;
189
+ case m.LeaderLines:
190
+ return y(this.model) ? this.model.ticksSymbol : void 0;
184
191
  case i.Background:
185
192
  return this.model.backgroundColor;
186
193
  default:
@@ -190,37 +197,37 @@ class R extends H {
190
197
  setFormatValue(t, e) {
191
198
  switch (t) {
192
199
  case i.Title:
193
- l(e) && (this.model.titleSymbol = e);
200
+ r(e) && (this.model.titleSymbol = e);
194
201
  break;
195
202
  case i.Description:
196
- l(e) && (this.model.descriptionSymbol = e);
203
+ r(e) && (this.model.descriptionSymbol = e);
197
204
  break;
198
205
  case i.XAxisTitle:
199
- E(this.model) && l(e) && (this.model.xAxisTitleSymbol = e);
206
+ P(this.model) && r(e) && (this.model.xAxisTitleSymbol = e);
200
207
  break;
201
208
  case i.YAxisTitle:
202
- d(this.model) && l(e) && this.model.setAxisTitleSymbol(e, 1);
209
+ d(this.model) && r(e) && this.model.setAxisTitleSymbol(e, 1);
203
210
  break;
204
211
  case i.AxisLabels:
205
- C(this.model) && l(e) && (this.model.axisLabelsSymbol = e);
212
+ L(this.model) && r(e) && (this.model.axisLabelsSymbol = e);
206
213
  break;
207
214
  case i.GuideLabels:
208
- T(this.model) && l(e) && (this.model.guideLabelsSymbol = e);
215
+ S(this.model) && r(e) && (this.model.guideLabelsSymbol = e);
209
216
  break;
210
217
  case i.LegendText:
211
- h(this.model) && l(e) && (this.model.legendTextSymbol = e);
218
+ h(this.model) && r(e) && (this.model.legendTextSymbol = e);
212
219
  break;
213
220
  case i.LegendTitle:
214
- h(this.model) && l(e) && (this.model.legendTitleSymbol = e);
221
+ h(this.model) && r(e) && (this.model.legendTitleSymbol = e);
215
222
  break;
216
223
  case i.DataLabels:
217
- L(this.model) && l(e) && (this.model.dataLabelsSymbol = e);
224
+ T(this.model) && r(e) && (this.model.dataLabelsSymbol = e);
218
225
  break;
219
- case n.AxisLines:
220
- P(this.model) && x(e) && (this.model.axisLinesSymbol = e);
226
+ case m.AxisLines:
227
+ C(this.model) && u(e) && (this.model.axisLinesSymbol = e);
221
228
  break;
222
- case n.GridLines:
223
- if (x(e)) {
229
+ case m.GridLines:
230
+ if (u(e)) {
224
231
  if (V(this.model))
225
232
  this.model.setGridLinesSymbol(e);
226
233
  else if (d(this.model)) {
@@ -228,17 +235,17 @@ class R extends H {
228
235
  let o = [];
229
236
  switch (s) {
230
237
  // set y-axis grid line for charts -Bar chart/Line chart, Histogram and Box plot
231
- case r.BarSeries:
232
- case r.LineSeries:
233
- case r.ComboLineAndBarSeries:
234
- case r.HistogramSeries:
235
- case r.BoxPlotSeries:
236
- case r.RadarSeries: {
238
+ case a.BarSeries:
239
+ case a.LineSeries:
240
+ case a.ComboLineAndBarSeries:
241
+ case a.HistogramSeries:
242
+ case a.BoxPlotSeries:
243
+ case a.RadarSeries: {
237
244
  o = [1];
238
245
  break;
239
246
  }
240
247
  // set both x and y-axis grid lines for charts - Scatter chart
241
- case r.ScatterSeries: {
248
+ case a.ScatterSeries: {
242
249
  o = [0, 1];
243
250
  break;
244
251
  }
@@ -247,8 +254,8 @@ class R extends H {
247
254
  }
248
255
  }
249
256
  break;
250
- case n.LeaderLines:
251
- S(this.model) && x(e) && (this.model.ticksSymbol = e);
257
+ case m.LeaderLines:
258
+ y(this.model) && u(e) && (this.model.ticksSymbol = e);
252
259
  break;
253
260
  case i.Background:
254
261
  Array.isArray(e) && (this.model.backgroundColor = e);
@@ -258,33 +265,33 @@ class R extends H {
258
265
  renderFormatElements() {
259
266
  this.textProperties = [
260
267
  i.Title,
261
- ...E(this.model) ? [i.XAxisTitle] : [],
268
+ ...P(this.model) ? [i.XAxisTitle] : [],
262
269
  ...d(this.model) ? [i.YAxisTitle] : [],
263
270
  ...h(this.model) ? [i.LegendTitle] : [],
264
271
  i.Description,
265
272
  ...h(this.model) ? [i.LegendText] : [],
266
- ...C(this.model) ? [i.AxisLabels] : [],
267
- ...T(this.model) && this.model.chartType !== r.HeatSeries ? [i.GuideLabels] : [],
268
- ...L(this.model) && this.model.chartType !== r.HeatSeries && this.model.chartType !== r.BoxPlotSeries ? [i.DataLabels] : []
273
+ ...L(this.model) ? [i.AxisLabels] : [],
274
+ ...S(this.model) && this.model.chartType !== a.HeatSeries ? [i.GuideLabels] : [],
275
+ ...T(this.model) && this.model.chartType !== a.HeatSeries && this.model.chartType !== a.BoxPlotSeries ? [i.DataLabels] : []
269
276
  ], w(this.model) && (this.textProperties = this.textProperties.filter((s) => s !== i.DataLabels)), this.symbolProperties = [
270
277
  i.Background,
271
- ...P(this.model) && this.model.chartType !== r.HeatSeries ? [n.AxisLines] : [],
272
- ...d(this.model) ? [n.GridLines] : [],
273
- ...S(this.model) ? [n.LeaderLines] : []
278
+ ...C(this.model) && this.model.chartType !== a.HeatSeries ? [m.AxisLines] : [],
279
+ ...d(this.model) ? [m.GridLines] : [],
280
+ ...y(this.model) ? [m.LeaderLines] : []
274
281
  ];
275
282
  const t = this.textProperties.map((s) => this.renderTextElement(s, this.textPropertyChange)), e = this.symbolProperties.map((s) => s === i.Background ? this.renderTextElement(s, this.backgroundChange) : this.renderTextElement(s, this.symbolPropertyChange));
276
283
  return { textElements: t, symbolElements: e };
277
284
  }
278
285
  renderTextElement(t, e) {
279
- const s = W(t), o = this.getFormatValue(t), c = typeof o == "string" ? o : "", m = this.selectedTexts.includes(t) || this.selectedSymbols.includes(t) || this.selectedBackground.includes(t);
280
- return u`<calcite-list-item class=${p(g.element)} .label=${this._messages[t]} .description=${c} .value=${t} .selected=${m} @click=${e} ${B(this.updateSelectableElements)}>${s !== void 0 ? u`<calcite-icon slot=content-start scale=s .icon=${s}></calcite-icon>` : null}</calcite-list-item>`;
286
+ const s = G(t), o = this.getFormatValue(t), l = typeof o == "string" ? o : "", c = this.selectedTexts.includes(t) || this.selectedSymbols.includes(t) || this.selectedBackground.includes(t);
287
+ return f`<calcite-list-item class=${p(g.element)} .label=${this._messages[t]} .description=${l} .value=${t} .selected=${c} @click=${e} ${M(this.updateSelectableElements)}>${s !== void 0 ? f`<calcite-icon slot=content-start scale=s .icon=${s}></calcite-icon>` : null}</calcite-list-item>`;
281
288
  }
282
289
  render() {
283
290
  const { textElements: t, symbolElements: e } = this.renderFormatElements();
284
- return u`<div class=${p(g.sectionLabel)}>${this._messages.textElements}</div><calcite-list label class=${p(g.elementList)} selection-mode=multiple selection-appearance=border @calciteListChange=${this.correctTextElementSelection}>${t}</calcite-list><div class=${p(g.sectionLabel)}>${this._messages.symbolElements}</div><calcite-list label class=${p(g.elementList)} selection-mode=single selection-appearance=border>${e}</calcite-list>`;
291
+ return f`<div class=${p(g.sectionLabel)}>${this._messages.textElements}</div><calcite-list label class=${p(g.elementList)} selection-mode=multiple selection-appearance=border @calciteListChange=${this.correctTextElementSelection}>${t}</calcite-list><div class=${p(g.sectionLabel)}>${this._messages.symbolElements}</div><calcite-list label class=${p(g.elementList)} selection-mode=single selection-appearance=border>${e}</calcite-list>`;
285
292
  }
286
293
  }
287
- M("arcgis-charts-config-format", R);
294
+ B("arcgis-charts-config-format", X);
288
295
  export {
289
- R as ArcgisChartsConfigFormat
296
+ X as ArcgisChartsConfigFormat
290
297
  };
@@ -7,7 +7,7 @@ import { LitElement as v, createEvent as c, safeClassMap as n, renderElement as
7
7
  import { repeat as $ } from "lit/directives/repeat.js";
8
8
  import { g as R } from "../../chunks/chart-ui-utils.js";
9
9
  import { r as I } from "../../chunks/popover-ui-utils.js";
10
- import { cU as b } from "../../chunks/index2.js";
10
+ import { cT as b } from "../../chunks/index2.js";
11
11
  import { c as L } from "../../chunks/model-types.js";
12
12
  import { M as s } from "../../chunks/common.js";
13
13
  const h = {
@@ -16,7 +16,7 @@ const h = {
16
16
  header: "header",
17
17
  dropdownPopup: "dropdown-popup"
18
18
  }, P = u`.view-chart-component{width:var(--arcgis-charts-config-panel-width);height:var(--arcgis-charts-config-panel-height)}.add-chart-container{display:flex;justify-content:center;padding:2rem 0;background-color:var(--calcite-color-background)}.header{margin-left:1rem}.dropdown-popup{position:relative}`;
19
- class y extends v {
19
+ class T extends v {
20
20
  constructor() {
21
21
  super(...arguments), this._messages = f(), this.chartRenamePopover = null, this.popoverClose = () => {
22
22
  const e = this.modelList?.find((t) => t.chartId === this.selectedChartId);
@@ -139,7 +139,7 @@ class y extends v {
139
139
  return r`<div class=${n(h.viewChartComponent)}>${this.buildChartList()}</div>`;
140
140
  }
141
141
  }
142
- C("arcgis-charts-config-view-charts", y);
142
+ C("arcgis-charts-config-view-charts", T);
143
143
  export {
144
- y as ArcgisChartsConfigViewCharts
144
+ T as ArcgisChartsConfigViewCharts
145
145
  };