@arcgis/charts-components 6.0.0-next.34 → 6.0.0-next.36

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/{MCZMJAXK.js → 2BZPX3WJ.js} +1 -1
  2. package/dist/cdn/{33SNFNFO.js → 2DQ7ZBXE.js} +1 -1
  3. package/dist/cdn/{4CI4XQ6A.js → 3JRS3R5K.js} +1 -1
  4. package/dist/cdn/{5UNAEQIF.js → 3LWOTXAJ.js} +1 -1
  5. package/dist/cdn/{MI5ZOFNE.js → 3NTU2K22.js} +1 -1
  6. package/dist/cdn/{E2BM4PQP.js → 42LSDQXN.js} +1 -1
  7. package/dist/cdn/{FXWVQU7B.js → 4EEG3Y4A.js} +1 -1
  8. package/dist/cdn/{URBOZ7IV.js → 4FEQIWCL.js} +1 -1
  9. package/dist/cdn/{LCMUCICY.js → 4XTFDZMW.js} +1 -1
  10. package/dist/cdn/{42AYSOYQ.js → 54I7ID6Z.js} +1 -1
  11. package/dist/cdn/{O5UELXJC.js → 5GJ7X4OZ.js} +1 -1
  12. package/dist/cdn/{DXMYDWMF.js → 5N22DW2N.js} +1 -1
  13. package/dist/cdn/{VQK7RKE3.js → 5NMRQXC4.js} +1 -1
  14. package/dist/cdn/{Q4LXZQ7G.js → 5VI725BE.js} +1 -1
  15. package/dist/cdn/{LZ6SUMGO.js → 5VW7MADK.js} +1 -1
  16. package/dist/cdn/6ITF7OPU.js +2 -0
  17. package/dist/cdn/{HHLOIUUD.js → 747HTBX6.js} +1 -1
  18. package/dist/cdn/{KW3N46DO.js → 7KAWS7PM.js} +1 -1
  19. package/dist/cdn/{7SKEI4E6.js → 7OQ5KHLB.js} +1 -1
  20. package/dist/cdn/{UMPW3YOW.js → 7Z5HY6CX.js} +1 -1
  21. package/dist/cdn/{4E3S2ML7.js → A4SE2666.js} +1 -1
  22. package/dist/cdn/ALUFN6JU.js +2 -0
  23. package/dist/cdn/{RFUS6E3N.js → AWS2YG4M.js} +1 -1
  24. package/dist/cdn/{ZMD6HSI6.js → B3XFRI2T.js} +1 -1
  25. package/dist/cdn/{M3QY2KLY.js → B6TOZWKP.js} +1 -1
  26. package/dist/cdn/{HMBGKFUN.js → BG5Q5IKV.js} +1 -1
  27. package/dist/cdn/{R73C2BX4.js → BLNSWTDE.js} +1 -1
  28. package/dist/cdn/{VUILGVZ6.js → BQSQE7VQ.js} +1 -1
  29. package/dist/cdn/{EV5J5FUX.js → BS6ZKR5Y.js} +1 -1
  30. package/dist/cdn/{TDNKE2VP.js → C2LULOIM.js} +1 -1
  31. package/dist/cdn/{DLJ5JUXJ.js → CPZAKMTU.js} +1 -1
  32. package/dist/cdn/{FRN47OTB.js → D7GICKNU.js} +1 -1
  33. package/dist/cdn/{RXOUF2HA.js → EYHCX276.js} +1 -1
  34. package/dist/cdn/{IRP6FSBB.js → F3MIZQUC.js} +1 -1
  35. package/dist/cdn/{42NW4KCH.js → F3TJTLG7.js} +1 -1
  36. package/dist/cdn/{DWSCE6QM.js → F5NV3AJ5.js} +1 -1
  37. package/dist/cdn/{XDLBRYVE.js → FBYUBQLZ.js} +1 -1
  38. package/dist/cdn/{P5JPYG4Z.js → FCOD27CY.js} +1 -1
  39. package/dist/cdn/{4CIFWASN.js → FDM5MY6D.js} +1 -1
  40. package/dist/cdn/{HIFEJ5CV.js → FXTL5IZJ.js} +1 -1
  41. package/dist/cdn/{YDODSSRW.js → G3VKWODV.js} +1 -1
  42. package/dist/cdn/{LSMB53E3.js → GA2UFZXY.js} +1 -1
  43. package/dist/cdn/{JE3QM6AW.js → HCQDDW6C.js} +1 -1
  44. package/dist/cdn/{RQYBXGTL.js → HF7ILAKI.js} +1 -1
  45. package/dist/cdn/{LRDJBGZS.js → HO2B7R2W.js} +1 -1
  46. package/dist/cdn/{GTD5EXV2.js → HVXXE5ZN.js} +1 -1
  47. package/dist/cdn/{AXYE2HX6.js → I6FJ54MZ.js} +1 -1
  48. package/dist/cdn/{EMV26WWB.js → IBS2EHYN.js} +1 -1
  49. package/dist/cdn/{QMPQESBZ.js → ILNDY3YI.js} +1 -1
  50. package/dist/cdn/{EDGME7VO.js → IZJLIFYM.js} +1 -1
  51. package/dist/cdn/{H2BQNZW4.js → JPR5ZF7D.js} +1 -1
  52. package/dist/cdn/{57VCII7P.js → JQIPTC5I.js} +1 -1
  53. package/dist/cdn/{7DONLE35.js → JZXZAQPZ.js} +1 -1
  54. package/dist/cdn/KMVAWVMM.js +2 -0
  55. package/dist/cdn/{EDZAQNWX.js → KOZPLQLZ.js} +1 -1
  56. package/dist/cdn/{MZRAPDRT.js → MD76NSPD.js} +1 -1
  57. package/dist/cdn/{KF35NZ4P.js → MQKJTPAC.js} +1 -1
  58. package/dist/cdn/{CU4UB2A7.js → MT6F4GEI.js} +1 -1
  59. package/dist/cdn/{BLS6BF2L.js → NACMNBIP.js} +1 -1
  60. package/dist/cdn/{OXOOIHEE.js → OCAITJL6.js} +2 -2
  61. package/dist/cdn/{L7UQNGQR.js → OZEYHJND.js} +1 -1
  62. package/dist/cdn/{YWWWL7VA.js → PMHRQOKZ.js} +1 -1
  63. package/dist/cdn/{XLF3VSA3.js → Q4HEXCLD.js} +1 -1
  64. package/dist/cdn/{F2GNY3MM.js → QJJYPIM7.js} +1 -1
  65. package/dist/cdn/{MOPMKH2V.js → QLRY7QKC.js} +1 -1
  66. package/dist/cdn/{VL4FR4TN.js → QYDTSZH5.js} +17 -17
  67. package/dist/cdn/RH2BBROM.js +2 -0
  68. package/dist/cdn/{P2AC2FC4.js → RPHXKD7J.js} +1 -1
  69. package/dist/cdn/{2DLCZPGT.js → RVRNYRR5.js} +1 -1
  70. package/dist/cdn/{OKQKTXSG.js → RYAQ7TZ5.js} +1 -1
  71. package/dist/cdn/S2CDU562.js +2 -0
  72. package/dist/cdn/{IFDTYYTW.js → SMYPC6YZ.js} +1 -1
  73. package/dist/cdn/{FFU63U6V.js → SPQSYOVK.js} +1 -1
  74. package/dist/cdn/{UE6N5N3X.js → STEMSCEZ.js} +1 -1
  75. package/dist/cdn/{WBQM4ASJ.js → UEH74K4Z.js} +1 -1
  76. package/dist/cdn/{YKSQH65V.js → UQHIV37J.js} +1 -1
  77. package/dist/cdn/{YJ7WPVBF.js → VHDFOTME.js} +1 -1
  78. package/dist/cdn/{6REYJD6E.js → VHLEM5TX.js} +1 -1
  79. package/dist/cdn/{7M4EWNDY.js → VHXIV5BX.js} +1 -1
  80. package/dist/cdn/{CYSQZIZN.js → VSYK6HGS.js} +1 -1
  81. package/dist/cdn/{DUKNIIM2.js → W52LHBTO.js} +1 -1
  82. package/dist/cdn/{EAHAZABZ.js → WLIVWHF6.js} +1 -1
  83. package/dist/cdn/{Q5GNPML7.js → WVXK6SQ2.js} +1 -1
  84. package/dist/cdn/{HBWSBIS4.js → WXUTW33L.js} +1 -1
  85. package/dist/cdn/{YYOMI2VT.js → XEW2A47I.js} +1 -1
  86. package/dist/cdn/{I3Y5KNFE.js → XNLXGZIZ.js} +1 -1
  87. package/dist/cdn/{S7ULRE3X.js → YGEJBPIE.js} +1 -1
  88. package/dist/cdn/YKM3E7AD.js +2 -0
  89. package/dist/cdn/{BZK3YRC3.js → YWAAPW2R.js} +1 -1
  90. package/dist/cdn/{DFPLMKGU.js → Z2XPKJMJ.js} +1 -1
  91. package/dist/cdn/{TSKWTKCT.js → Z6VYURPS.js} +1 -1
  92. package/dist/cdn/index.js +1 -1
  93. package/dist/cdn/model/shared/setup-utils.js +1 -1
  94. package/dist/chunks/chart-ui-utils.js +36 -36
  95. package/dist/chunks/index.js +1 -1
  96. package/dist/components/arcgis-chart/customElement.d.ts +1 -1
  97. package/dist/components/arcgis-chart/customElement.js +1922 -1912
  98. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +20 -19
  99. package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
  100. package/dist/components/arcgis-charts-config-format/customElement.js +79 -77
  101. package/dist/components/arcgis-charts-config-guide/customElement.js +47 -46
  102. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +35 -31
  103. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +19 -19
  104. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +18 -18
  105. package/dist/docs/api.json +1 -1
  106. package/dist/docs/docs.json +1 -1
  107. package/dist/docs/web-types.json +1 -1
  108. package/dist/index.d.ts +1 -1
  109. package/dist/interfaces.d.ts +1 -15
  110. package/dist/model/heat-chart-model/heat-chart-model.d.ts +1 -1
  111. package/dist/model/properties/layer.d.ts +2 -2
  112. package/dist/utils/layer/index.d.ts +6 -6
  113. package/dist/utils/layer/interfaces.d.ts +13 -3
  114. package/dist/utils/layer/query-parser/index.d.ts +2 -2
  115. package/dist/utils/layer/utils/index.d.ts +6 -18
  116. package/package.json +5 -5
  117. package/dist/cdn/4Q3YU4TS.js +0 -2
  118. package/dist/cdn/I6PWQEWZ.js +0 -2
  119. package/dist/cdn/T2CFMDZV.js +0 -2
  120. package/dist/cdn/UWRA674P.js +0 -2
  121. package/dist/cdn/V62HBNDH.js +0 -2
  122. package/dist/cdn/XMFFQFWM.js +0 -2
  123. /package/dist/cdn/{L2G4TISY.js → S6G2OZSX.js} +0 -0
@@ -1,11 +1,11 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { c as b } from "../../chunks/runtime.js";
3
- import { css as P, html as n } from "lit";
4
- import { keyed as y } from "lit/directives/keyed.js";
5
- import { repeat as M } from "lit/directives/repeat.js";
6
- import { u as O } from "../../chunks/useT9n.js";
7
- import { LitElement as B, renderElement as d, safeStyleMap as h, safeClassMap as a } from "@arcgis/lumina";
8
- import { a as w } from "../../chunks/chart-ui-utils.js";
2
+ import { c as P } from "../../chunks/runtime.js";
3
+ import { css as y, html as n } from "lit";
4
+ import { keyed as M } from "lit/directives/keyed.js";
5
+ import { repeat as O } from "lit/directives/repeat.js";
6
+ import { u as B } from "../../chunks/useT9n.js";
7
+ import { LitElement as w, renderElement as d, safeStyleMap as h, safeClassMap as a } from "@arcgis/lumina";
8
+ import { a as T, g as N } from "../../chunks/chart-ui-utils.js";
9
9
  import { y as S } from "../../chunks/index.js";
10
10
  import { r as f } from "../../chunks/popover-ui-utils.js";
11
11
  import { p as m } from "../../chunks/chart-object-literals.js";
@@ -14,10 +14,10 @@ const l = {
14
14
  sectionLabel: "section-label",
15
15
  list: "list",
16
16
  infoIcon: "info-icon"
17
- }, T = P`.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)}.top-section{margin-top:var(--arcgis-charts-config-margin-minor)}.section-label{display:flex;margin-bottom:var(--arcgis-charts-config-margin-major);margin-left:var(--arcgis-charts-config-margin-minor);margin-right: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)}.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)}.info-icon{margin:auto 1rem;pointer-events:auto}`;
18
- class N extends B {
17
+ }, E = y`.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)}.top-section{margin-top:var(--arcgis-charts-config-margin-minor)}.section-label{display:flex;margin-bottom:var(--arcgis-charts-config-margin-major);margin-left:var(--arcgis-charts-config-margin-minor);margin-right: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)}.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)}.info-icon{margin:auto 1rem;pointer-events:auto}`;
18
+ class W extends w {
19
19
  constructor() {
20
- super(...arguments), this._messages = O(), this.resetSeriesOriginal = () => {
20
+ super(...arguments), this._messages = B(), this.resetSeriesOriginal = () => {
21
21
  this.configSeriesOpen = !1, this.selectedSeriesId = void 0, this.model.resetSeriesStyling(), this.seriesOrderResetCounter += 1;
22
22
  }, this.onMultipleSeriesSelect = (e) => {
23
23
  if (!this.shouldDisableMeanLinesOption()) {
@@ -72,7 +72,7 @@ class N extends B {
72
72
  const s = e.target;
73
73
  this.tooltip = d(n`<calcite-tooltip style=${h({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${s} open placement=top>${i ?? ""}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
74
74
  }, this.destroyTooltip = () => {
75
- w(this.tooltip);
75
+ T(this.tooltip);
76
76
  }, this.onModelConfigChange = () => {
77
77
  this.selectedSeriesId !== void 0 && this.selectedSeriesIndex === -1 ? this.seriesPopoverClose() : this.seriesPopover && (this.seriesPopover.selectedSeriesIndex = this.selectedSeriesIndex), this.requestUpdate();
78
78
  }, this.meanLinesBoxColorIsSelected = !1, this.seriesOrderResetCounter = 0, this.configSeriesOpen = !1, this.activeColorMatch = !1, this.popoverPlacement = "leading";
@@ -81,7 +81,7 @@ class N extends B {
81
81
  this.properties = { selectedSeriesId: 16, meanLinesBoxColorIsSelected: 16, seriesOrderResetCounter: 16, messageOverrides: 0, model: 0, configSeriesOpen: 5, activeColorMatch: 5, popoverPlacement: 1 };
82
82
  }
83
83
  static {
84
- this.styles = T;
84
+ this.styles = E;
85
85
  }
86
86
  get selectedSeriesIndex() {
87
87
  return this.selectedSeriesId === void 0 ? void 0 : this.model.getSeriesIndex(this.selectedSeriesId);
@@ -106,19 +106,20 @@ class N extends B {
106
106
  }
107
107
  buildSeriesListItems() {
108
108
  const e = this.model.seriesLength, i = this.model.boxPlotSeriesIndexWhenMeanLinesShown, s = Array.from({ length: e }, (t, o) => o);
109
- return M(s, (t) => this.model.getSeriesId(t), (t) => {
109
+ return O(s, (t) => this.model.getSeriesId(t), (t) => {
110
110
  const o = this.model.getSeriesId(t), c = this.model.getSeriesColor(t), v = this.model.getSeriesName(t), g = this.model.chartSubType, u = g === S.BoxPlotC1MonoField || g === S.BoxPlotC2MultiFields ? this._messages.series : o;
111
111
  let p = "#CCCCCC", C = "minus-square";
112
112
  if ((e > 1 || !this.activeColorMatch) && c !== void 0) {
113
- C = this.model.showMeanLines === !0 ? "line-solid" : "square-f";
114
- const [x, $, I, L] = [...c];
115
- p = `rgba(${x},${$},${I},${L / 255})`;
113
+ const x = this.model.getSeriesLineStyle(t);
114
+ C = this.model.showMeanLines === !0 ? N(x) : "square-f";
115
+ const [$, I, L, b] = [...c];
116
+ p = `rgba(${$},${I},${L},${b / 255})`;
116
117
  }
117
118
  return i !== t ? n`<calcite-list-item .label=${v ?? o ?? ""} .description=${u} .value=${o} .selected=${this.selectedSeriesId === o} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${C} style=${h({ color: p })}></calcite-icon></calcite-list-item>` : null;
118
119
  });
119
120
  }
120
121
  buildSeriesList() {
121
- return y(this.seriesOrderResetCounter, n`<calcite-list label class=${a(l.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`);
122
+ return M(this.seriesOrderResetCounter, n`<calcite-list label class=${a(l.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`);
122
123
  }
123
124
  setupSeriesPopover() {
124
125
  this.removeSeriesPopover(), this.meanLinesBoxColorIsSelected ? this.seriesPopover = d(n`<arcgis-charts-config-box-plot-series-popover .referenceElement=${this.el} .selectedColor=${this.model.meanLinesBoxColor} .placement=${this.popoverPlacement} open .selectedSeriesIndex=${this.selectedSeriesIndex} .labelCanBeConfigured=${!this.meanLinesBoxColorIsSelected} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-box-plot-series-popover>`) : this.selectedSeriesIndex !== void 0 && (this.seriesPopover = d(n`<arcgis-charts-config-box-plot-series-popover .referenceElement=${this.el} .selectedName=${this.model.getSeriesName(this.selectedSeriesIndex)} .selectedColor=${this.model.getSeriesColor(this.selectedSeriesIndex)} .selectedLineStyle=${this.model.getSeriesLineStyle(this.selectedSeriesIndex)} .selectedLineWidth=${this.model.getSeriesLineWidth(this.selectedSeriesIndex)} .isLineSymbol=${this.model.showMeanLines} .placement=${this.popoverPlacement} open .selectedSeriesIndex=${this.selectedSeriesIndex} .labelCanBeConfigured=${!this.meanLinesBoxColorIsSelected} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-box-plot-series-popover>`)), this.seriesPopover && !document.body.contains(this.seriesPopover) && document.body.appendChild(this.seriesPopover);
@@ -148,7 +149,7 @@ class N extends B {
148
149
  return n`${this.renderMultipleSeriesOption()}<div class=${a(l.sectionLabel)}>${this._messages.series}<calcite-button @click=${this.resetSeriesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.buildSeriesList()}`;
149
150
  }
150
151
  }
151
- b("arcgis-charts-config-box-plot-series", N);
152
+ P("arcgis-charts-config-box-plot-series", W);
152
153
  export {
153
- N as ArcgisChartsConfigBoxPlotSeries
154
+ W as ArcgisChartsConfigBoxPlotSeries
154
155
  };
@@ -1,7 +1,7 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { c as o } from "../../chunks/runtime.js";
3
3
  import { css as l, html as c } from "lit";
4
- import { g } from "../../chunks/chart-ui-utils.js";
4
+ import { h as g } from "../../chunks/chart-ui-utils.js";
5
5
  import { u as h } from "../../chunks/useT9n.js";
6
6
  import { LitElement as m, createEvent as n } from "@arcgis/lumina";
7
7
  const u = "arcgis-charts-config-storage-colors", v = l`:host{--calcite-color-border-1: transparent}.color-header{margin-bottom:.5rem}`;
@@ -1,21 +1,21 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { c as B } from "../../chunks/runtime.js";
3
- import { ref as M } from "lit/directives/ref.js";
4
- import { n as y, l as m, j as h, o as S, c as V, k as w } from "../../chunks/type-guards.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 c, isArray as F, isObject as A, mergeWith as D, isEmpty as E } from "es-toolkit/compat";
8
- import { h as G } from "../../chunks/chart-ui-utils.js";
9
- import { R as W, b } from "../../chunks/rest-js-object-literals.js";
10
- import { u as N } from "../../chunks/useT9n.js";
11
- import { css as z, html as f } from "lit";
12
- import { LitElement as H, renderElement as R, safeClassMap as p } from "@arcgis/lumina";
13
- import { C as j, F as i, L as d } from "../../chunks/common.js";
14
- import { b as u, ch as r, C as I } from "../../chunks/index.js";
15
- import { r as $ } from "../../chunks/popover-ui-utils.js";
2
+ import { c as D } from "../../chunks/runtime.js";
3
+ import { ref as W } from "lit/directives/ref.js";
4
+ import { n as S, l as p, j as g, o as T, c as N, k as z } from "../../chunks/type-guards.js";
5
+ import { i as C } from "../../chunks/data-labels-symbol.js";
6
+ import { i as L, a as P, b as E } from "../../chunks/axis-lines-symbol.js";
7
+ import { cloneDeep as c, isArray as M, isObject as B, mergeWith as H, isEmpty as v } from "es-toolkit/compat";
8
+ import { g as j, j as I } from "../../chunks/chart-ui-utils.js";
9
+ import { R, b as y } from "../../chunks/rest-js-object-literals.js";
10
+ import { u as O } from "../../chunks/useT9n.js";
11
+ import { css as X, html as b } from "lit";
12
+ import { LitElement as _, renderElement as Y, safeClassMap as f, safeStyleMap as U } from "@arcgis/lumina";
13
+ import { C as q, F as i, L as d } from "../../chunks/common.js";
14
+ import { b as u, ch as r, C as J } from "../../chunks/index.js";
15
+ import { r as V } from "../../chunks/popover-ui-utils.js";
16
16
  import { a } from "../../chunks/chart-object-literals.js";
17
- const v = {
18
- type: b.TS,
17
+ const k = {
18
+ type: y.TS,
19
19
  color: [1, 1, 1, 255],
20
20
  font: {
21
21
  family: "Tahoma",
@@ -24,19 +24,19 @@ const v = {
24
24
  style: "normal",
25
25
  weight: "normal"
26
26
  }
27
- }, k = {
28
- type: b.SLS,
27
+ }, F = {
28
+ type: y.SLS,
29
29
  color: [1, 1, 1, 255],
30
- style: W.Solid,
30
+ style: R.Solid,
31
31
  width: 2
32
- }, g = {
32
+ }, x = {
33
33
  element: "chart-element",
34
34
  elementList: "element-list",
35
35
  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 X extends H {
36
+ }, Q = 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{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 Z extends _ {
38
38
  constructor() {
39
- super(...arguments), this._messages = N(), this.formatPopover = null, this.selectableElements = [], this.textProperties = [], this.symbolProperties = [], this.symbolPropertyChange = (t) => {
39
+ super(...arguments), this._messages = O(), this.formatPopover = null, this.selectableElements = [], this.textProperties = [], this.symbolProperties = [], this.symbolPropertyChange = (t) => {
40
40
  const e = t;
41
41
  e.stopImmediatePropagation();
42
42
  let s;
@@ -44,7 +44,7 @@ class X extends H {
44
44
  this.selectedSymbols = [], this.updateSelectedElement(this.selectedSymbols);
45
45
  else {
46
46
  const o = this.getFormatValue(s);
47
- this.selectedSymbols = [s], this.initSelectedSymbols(u(o) ? o : k);
47
+ this.selectedSymbols = [s], this.initSelectedSymbols(u(o) ? o : F);
48
48
  }
49
49
  this.setupFormatPopover();
50
50
  }, this.textPropertyChange = (t) => {
@@ -54,8 +54,8 @@ class X extends H {
54
54
  if (e.target?.localName === "calcite-list-item" ? s = e.target?.value : s = e.target?.parentNode?.value, this.selectedSymbols = [], this.selectedBackground = [], e.shiftKey) {
55
55
  this.selectedTexts = [];
56
56
  const o = this.textProperties.indexOf(this.lastSelectedText ?? s), l = this.textProperties.indexOf(s);
57
- this.textProperties.forEach((n, x) => {
58
- x >= Math.min(o, l) && x <= Math.max(o, l) && this.selectedTexts.push(n);
57
+ this.textProperties.forEach((n, m) => {
58
+ m >= Math.min(o, l) && m <= Math.max(o, l) && this.selectedTexts.push(n);
59
59
  }), this.updateSelectedElement(this.selectedTexts), this.setupFormatPopover();
60
60
  } else if (e.ctrlKey)
61
61
  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,7 +63,7 @@ class X extends H {
63
63
  this.selectedTexts = [], this.updateSelectedElement(this.selectedTexts), this.setupFormatPopover();
64
64
  else {
65
65
  const o = this.getFormatValue(s);
66
- this.selectedTexts = [s], this.initSelectedTexts(r(o) ? o : v), this.setupFormatPopover();
66
+ this.selectedTexts = [s], this.initSelectedTexts(r(o) ? o : k), this.setupFormatPopover();
67
67
  }
68
68
  this.lastSelectedText = s;
69
69
  }, this.backgroundChange = (t) => {
@@ -73,7 +73,7 @@ class X extends H {
73
73
  if (e.target?.localName === "calcite-list-item" ? s = e.target?.value : s = e.target?.parentNode?.value, this.selectedSymbols = [], this.selectedTexts = [], this.selectedBackground.includes(s))
74
74
  this.selectedBackground = [], this.selectedElement = void 0;
75
75
  else {
76
- const o = this.getFormatValue(s), l = [...I.backgroundColor];
76
+ const o = this.getFormatValue(s), l = [...J.backgroundColor];
77
77
  this.selectedBackground = [s], this.selectedElement = o ?? l;
78
78
  }
79
79
  this.setupFormatPopover();
@@ -83,14 +83,14 @@ class X extends H {
83
83
  this.setFormatValue(s, e);
84
84
  }), this.selectedElement = c(t.target.selectedElement);
85
85
  }, this.updateBackground = (t) => {
86
- this.setFormatValue(j.Background, t.detail), this.selectedElement = t.detail;
86
+ this.setFormatValue(q.Background, t.detail), this.selectedElement = t.detail;
87
87
  }, this.updateTextProps = (t) => {
88
88
  const { font: e, color: s } = t.detail;
89
89
  this.selectedTexts.forEach((o) => {
90
90
  const l = this.getFormatValue(o), n = r(l) ? l : void 0;
91
91
  this.setFormatValue(o, {
92
92
  ...n,
93
- type: b.TS,
93
+ type: y.TS,
94
94
  font: { ...n?.font, ...e },
95
95
  color: s ?? n?.color
96
96
  });
@@ -101,7 +101,7 @@ class X extends H {
101
101
  this.formatPopover === t?.target && (this.selectedTexts = [], this.selectedSymbols = [], this.selectedBackground = [], this.selectedElement = {}, this.removeFormatPopover());
102
102
  }, this.mergeFormatValues = (t, e) => {
103
103
  let s = !1;
104
- F(t) && F(e) || A(t) && A(e) ? s = !0 : s = t === e;
104
+ M(t) && M(e) || B(t) && B(e) ? s = !0 : s = t === e;
105
105
  const o = typeof t == "number" || typeof e == "number" ? Number.NaN : "";
106
106
  return s ? void 0 : o;
107
107
  }, this.updateSelectableElements = (t) => {
@@ -112,7 +112,7 @@ class X extends H {
112
112
  this.properties = { selectedSymbols: 16, selectedTexts: 16, selectedBackground: 16, selectedElement: 16, messageOverrides: 0, model: 0 };
113
113
  }
114
114
  static {
115
- this.styles = O;
115
+ this.styles = Q;
116
116
  }
117
117
  load() {
118
118
  this.modelChange(this.model);
@@ -137,29 +137,29 @@ class X extends H {
137
137
  const s = c(this.getFormatValue(t[0]));
138
138
  this.selectedElement = t?.reduce((o, l) => {
139
139
  const n = this.getFormatValue(l);
140
- return D(o, n, this.mergeFormatValues);
140
+ return H(o, n, this.mergeFormatValues);
141
141
  }, s);
142
142
  } else {
143
143
  let s = c(e);
144
- E(e) && (this.selectedSymbols?.length > 0 && (s = c(k)), this.selectedTexts?.length > 0 && (s = c(v))), this.selectedElement = s;
144
+ v(e) && (this.selectedSymbols?.length > 0 && (s = c(F)), this.selectedTexts?.length > 0 && (s = c(k))), this.selectedElement = s;
145
145
  }
146
146
  }
147
147
  initSelectedTexts(t) {
148
148
  let e = c(t);
149
- E(t) && (e = c(v)), this.selectedElement = e;
149
+ v(t) && (e = c(k)), this.selectedElement = e;
150
150
  }
151
151
  initSelectedSymbols(t) {
152
152
  let e = c(t);
153
- E(t) && (e = c(k)), this.selectedElement = e;
153
+ v(t) && (e = c(F)), this.selectedElement = e;
154
154
  }
155
155
  setupFormatPopover() {
156
- this.formatPopover = $(this.formatPopover);
156
+ this.formatPopover = V(this.formatPopover);
157
157
  const t = this.selectedElement;
158
- t?.type === b.TS || t?.type === b.SLS || // To check if the selected element is background.
159
- Array.isArray(this.selectedElement) ? (this.formatPopover = R(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();
158
+ t?.type === y.TS || t?.type === y.SLS || // To check if the selected element is background.
159
+ Array.isArray(this.selectedElement) ? (this.formatPopover = Y(b`<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
160
  }
161
161
  removeFormatPopover() {
162
- this.formatPopover !== null && (this.formatPopover.open = !1, this.formatPopover = $(this.formatPopover));
162
+ this.formatPopover !== null && (this.formatPopover.open = !1, this.formatPopover = V(this.formatPopover));
163
163
  }
164
164
  getFormatValue(t) {
165
165
  switch (t) {
@@ -168,25 +168,25 @@ class X extends H {
168
168
  case i.Description:
169
169
  return this.model.descriptionSymbol;
170
170
  case i.XAxisTitle:
171
- return P(this.model) ? this.model.xAxisTitleSymbol : void 0;
171
+ return E(this.model) ? this.model.xAxisTitleSymbol : void 0;
172
172
  case i.YAxisTitle:
173
- return m(this.model) ? this.model.getAxisTitleSymbol(1) : void 0;
173
+ return p(this.model) ? this.model.getAxisTitleSymbol(1) : void 0;
174
174
  case i.AxisLabels:
175
- return L(this.model) ? this.model.axisLabelsSymbol : void 0;
175
+ return P(this.model) ? this.model.axisLabelsSymbol : void 0;
176
176
  case i.GuideLabels:
177
- return S(this.model) ? this.model.guideLabelsSymbol : void 0;
177
+ return T(this.model) ? this.model.guideLabelsSymbol : void 0;
178
178
  case i.LegendText:
179
- return h(this.model) ? this.model.legendTextSymbol : void 0;
179
+ return g(this.model) ? this.model.legendTextSymbol : void 0;
180
180
  case i.LegendTitle:
181
- return h(this.model) ? this.model.legendTitleSymbol : void 0;
181
+ return g(this.model) ? this.model.legendTitleSymbol : void 0;
182
182
  case i.DataLabels:
183
- return T(this.model) ? this.model.dataLabelsSymbol : void 0;
183
+ return C(this.model) ? this.model.dataLabelsSymbol : void 0;
184
184
  case d.AxisLines:
185
- return C(this.model) ? this.model.axisLinesSymbol : void 0;
185
+ return L(this.model) ? this.model.axisLinesSymbol : void 0;
186
186
  case d.GridLines:
187
- return m(this.model) ? this.model.getGridLinesSymbol() : void 0;
187
+ return p(this.model) ? this.model.getGridLinesSymbol() : void 0;
188
188
  case d.LeaderLines:
189
- return y(this.model) ? this.model.ticksSymbol : void 0;
189
+ return S(this.model) ? this.model.ticksSymbol : void 0;
190
190
  case i.Background:
191
191
  return this.model.backgroundColor;
192
192
  default:
@@ -202,34 +202,34 @@ class X extends H {
202
202
  r(e) && (this.model.descriptionSymbol = e);
203
203
  break;
204
204
  case i.XAxisTitle:
205
- P(this.model) && r(e) && (this.model.xAxisTitleSymbol = e);
205
+ E(this.model) && r(e) && (this.model.xAxisTitleSymbol = e);
206
206
  break;
207
207
  case i.YAxisTitle:
208
- m(this.model) && r(e) && this.model.setAxisTitleSymbol(e, 1);
208
+ p(this.model) && r(e) && this.model.setAxisTitleSymbol(e, 1);
209
209
  break;
210
210
  case i.AxisLabels:
211
- L(this.model) && r(e) && (this.model.axisLabelsSymbol = e);
211
+ P(this.model) && r(e) && (this.model.axisLabelsSymbol = e);
212
212
  break;
213
213
  case i.GuideLabels:
214
- S(this.model) && r(e) && (this.model.guideLabelsSymbol = e);
214
+ T(this.model) && r(e) && (this.model.guideLabelsSymbol = e);
215
215
  break;
216
216
  case i.LegendText:
217
- h(this.model) && r(e) && (this.model.legendTextSymbol = e);
217
+ g(this.model) && r(e) && (this.model.legendTextSymbol = e);
218
218
  break;
219
219
  case i.LegendTitle:
220
- h(this.model) && r(e) && (this.model.legendTitleSymbol = e);
220
+ g(this.model) && r(e) && (this.model.legendTitleSymbol = e);
221
221
  break;
222
222
  case i.DataLabels:
223
- T(this.model) && r(e) && (this.model.dataLabelsSymbol = e);
223
+ C(this.model) && r(e) && (this.model.dataLabelsSymbol = e);
224
224
  break;
225
225
  case d.AxisLines:
226
- C(this.model) && u(e) && (this.model.axisLinesSymbol = e);
226
+ L(this.model) && u(e) && (this.model.axisLinesSymbol = e);
227
227
  break;
228
228
  case d.GridLines:
229
229
  if (u(e)) {
230
- if (V(this.model))
230
+ if (N(this.model))
231
231
  this.model.setGridLinesSymbol(e);
232
- else if (m(this.model)) {
232
+ else if (p(this.model)) {
233
233
  const s = this.model.chartType;
234
234
  let o = [];
235
235
  switch (s) {
@@ -254,7 +254,7 @@ class X extends H {
254
254
  }
255
255
  break;
256
256
  case d.LeaderLines:
257
- y(this.model) && u(e) && (this.model.ticksSymbol = e);
257
+ S(this.model) && u(e) && (this.model.ticksSymbol = e);
258
258
  break;
259
259
  case i.Background:
260
260
  Array.isArray(e) && (this.model.backgroundColor = e);
@@ -264,33 +264,35 @@ class X extends H {
264
264
  renderFormatElements() {
265
265
  this.textProperties = [
266
266
  i.Title,
267
- ...P(this.model) ? [i.XAxisTitle] : [],
268
- ...m(this.model) ? [i.YAxisTitle] : [],
269
- ...h(this.model) ? [i.LegendTitle] : [],
267
+ ...E(this.model) ? [i.XAxisTitle] : [],
268
+ ...p(this.model) ? [i.YAxisTitle] : [],
269
+ ...g(this.model) ? [i.LegendTitle] : [],
270
270
  i.Description,
271
- ...h(this.model) ? [i.LegendText] : [],
272
- ...L(this.model) ? [i.AxisLabels] : [],
273
- ...S(this.model) && this.model.chartType !== a.HeatSeries ? [i.GuideLabels] : [],
274
- ...T(this.model) && this.model.chartType !== a.HeatSeries && this.model.chartType !== a.BoxPlotSeries ? [i.DataLabels] : []
275
- ], w(this.model) && (this.textProperties = this.textProperties.filter((s) => s !== i.DataLabels)), this.symbolProperties = [
271
+ ...g(this.model) ? [i.LegendText] : [],
272
+ ...P(this.model) ? [i.AxisLabels] : [],
273
+ ...T(this.model) && this.model.chartType !== a.HeatSeries ? [i.GuideLabels] : [],
274
+ ...C(this.model) && this.model.chartType !== a.HeatSeries && this.model.chartType !== a.BoxPlotSeries ? [i.DataLabels] : []
275
+ ], z(this.model) && (this.textProperties = this.textProperties.filter((s) => s !== i.DataLabels)), this.symbolProperties = [
276
276
  i.Background,
277
- ...C(this.model) && this.model.chartType !== a.HeatSeries ? [d.AxisLines] : [],
278
- ...m(this.model) ? [d.GridLines] : [],
279
- ...y(this.model) ? [d.LeaderLines] : []
277
+ ...L(this.model) && this.model.chartType !== a.HeatSeries ? [d.AxisLines] : [],
278
+ ...p(this.model) ? [d.GridLines] : [],
279
+ ...S(this.model) ? [d.LeaderLines] : []
280
280
  ];
281
281
  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));
282
282
  return { textElements: t, symbolElements: e };
283
283
  }
284
284
  renderTextElement(t, e) {
285
- const s = G(t), o = this.getFormatValue(t), l = typeof o == "string" ? o : "", n = this.selectedTexts.includes(t) || this.selectedSymbols.includes(t) || this.selectedBackground.includes(t);
286
- return f`<calcite-list-item class=${p(g.element)} .label=${this._messages[t]} .description=${l} .value=${t} .selected=${n} @click=${e} ${M(this.updateSelectableElements)}>${s !== void 0 ? f`<calcite-icon slot=content-start scale=s .icon=${s}></calcite-icon>` : null}</calcite-list-item>`;
285
+ const s = I(t);
286
+ let o = "line-solid", [l, n, m, $] = [1, 1, 1, 255], A = "#CCCCCC";
287
+ const h = this.getFormatValue(t), w = typeof h == "string" ? h : "", G = this.selectedTexts.includes(t) || this.selectedSymbols.includes(t) || this.selectedBackground.includes(t);
288
+ return u(h) && h.color && ([l, n, m, $] = h.color, o = j(h.style), A = `rgba(${l},${n},${m},${$ / 255})`), b`<calcite-list-item class=${f(x.element)} .label=${this._messages[t]} .description=${w} .value=${t} .selected=${G} @click=${e} ${W(this.updateSelectableElements)}>${s !== void 0 ? b`<calcite-icon slot=content-start scale=s .icon=${s}></calcite-icon>` : null}${t === i.AxisLines || t === i.GridLines || t === i.LeaderLines ? b`<calcite-icon slot=content-end .icon=${o} style=${U({ color: A })}></calcite-icon>` : null}</calcite-list-item>`;
287
289
  }
288
290
  render() {
289
291
  const { textElements: t, symbolElements: e } = this.renderFormatElements();
290
- 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>`;
292
+ return b`<div class=${f(x.sectionLabel)}>${this._messages.textElements}</div><calcite-list label class=${f(x.elementList)} selection-mode=multiple selection-appearance=border @calciteListChange=${this.correctTextElementSelection}>${t}</calcite-list><div class=${f(x.sectionLabel)}>${this._messages.symbolElements}</div><calcite-list label class=${f(x.elementList)} selection-mode=single selection-appearance=border>${e}</calcite-list>`;
291
293
  }
292
294
  }
293
- B("arcgis-charts-config-format", X);
295
+ D("arcgis-charts-config-format", Z);
294
296
  export {
295
- X as ArcgisChartsConfigFormat
297
+ Z as ArcgisChartsConfigFormat
296
298
  };