@arcgis/charts-components 5.2.0-next.10 → 5.2.0-next.11

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 (171) hide show
  1. package/dist/cdn/{I5AALJRN.js → 24AOJE7B.js} +1 -1
  2. package/dist/cdn/{VOTZAPI3.js → 3KRPCKJZ.js} +1 -1
  3. package/dist/cdn/{LOZOENFC.js → 3TBK72EK.js} +1 -1
  4. package/dist/cdn/{RA3CZHC7.js → 425PZ2QJ.js} +1 -1
  5. package/dist/cdn/{6SRJ2VKV.js → 4PHYDOBF.js} +1 -1
  6. package/dist/cdn/{F7Q3XDZH.js → 567CLBG4.js} +1 -1
  7. package/dist/cdn/{YDJPGFXU.js → 5IIF22XN.js} +1 -1
  8. package/dist/cdn/{NKJC4MT7.js → 5IN5WK2R.js} +1 -1
  9. package/dist/cdn/{GNC62GNV.js → 5LXX2PUM.js} +1 -1
  10. package/dist/cdn/{4YJSRB7R.js → 5NTIKQP4.js} +1 -1
  11. package/dist/cdn/{QF4UBQYT.js → 5YEADAVZ.js} +1 -1
  12. package/dist/cdn/{2XYTPC2V.js → 6R7VSDDU.js} +1 -1
  13. package/dist/cdn/{ICVAXCHZ.js → 76MOP26H.js} +1 -1
  14. package/dist/cdn/77A4T4FJ.js +2 -0
  15. package/dist/cdn/{N7NZHIGS.js → 7JIHGRTB.js} +1 -1
  16. package/dist/cdn/{CHQDKVVQ.js → 7YXTWBT4.js} +1 -1
  17. package/dist/cdn/{XUT56VH6.js → AHYYQWKY.js} +1 -1
  18. package/dist/cdn/{CEE2QRZ5.js → ASI7RDYV.js} +1 -1
  19. package/dist/cdn/{4J6UFQ2Q.js → AXS3UMQJ.js} +1 -1
  20. package/dist/cdn/BHUFE4DA.js +2 -0
  21. package/dist/cdn/{2HTYRBIX.js → CEWH3LQO.js} +1 -1
  22. package/dist/cdn/{KKKCWW6G.js → CTBQ5Y4Z.js} +1 -1
  23. package/dist/cdn/CVK7KFEC.js +2 -0
  24. package/dist/cdn/{255TSQSE.js → DFKVPDMJ.js} +6 -6
  25. package/dist/cdn/DJGEQ42V.js +2 -0
  26. package/dist/cdn/DL43NPDO.js +2 -0
  27. package/dist/cdn/{PZKRRAXW.js → E2DO2HQ6.js} +1 -1
  28. package/dist/cdn/E4LJWBRC.js +2 -0
  29. package/dist/cdn/EE3KEIAT.js +2 -0
  30. package/dist/cdn/EJCGZPIV.js +2 -0
  31. package/dist/cdn/{L6ZALCLC.js → ETSB7KD3.js} +1 -1
  32. package/dist/cdn/{YSWV4FZE.js → F6QRLYSF.js} +1 -1
  33. package/dist/cdn/{ZIVPZF6E.js → FBMA7FW4.js} +1 -1
  34. package/dist/cdn/{3376CR53.js → FEKSPYHM.js} +1 -1
  35. package/dist/cdn/FUAA6IFR.js +4 -0
  36. package/dist/cdn/FWRMJQXY.js +2 -0
  37. package/dist/cdn/{M6JCOZIE.js → G5FULTB5.js} +1 -1
  38. package/dist/cdn/{PRPNJEPZ.js → GISGGO3Z.js} +1 -1
  39. package/dist/cdn/{CBHWMUGA.js → GQPOEX7B.js} +21 -21
  40. package/dist/cdn/{BJRHNVLR.js → GYXK3DV7.js} +1 -1
  41. package/dist/cdn/{Z5VVIVR3.js → H45LPCQ2.js} +1 -1
  42. package/dist/cdn/HW6MJJSX.js +2 -0
  43. package/dist/cdn/{2PAVNZEM.js → HZFHTWL6.js} +1 -1
  44. package/dist/cdn/{QF6LHQTR.js → I2EERAZ3.js} +1 -1
  45. package/dist/cdn/{PM6FCUUV.js → I5T7JUDH.js} +1 -1
  46. package/dist/cdn/IE3GLZJZ.js +2 -0
  47. package/dist/cdn/{PNDFAGEB.js → IL2FG26D.js} +1 -1
  48. package/dist/cdn/{5V3ADOWS.js → JBPYGZPJ.js} +1 -1
  49. package/dist/cdn/JEOBO5JM.js +2 -0
  50. package/dist/cdn/{XWZYTOHY.js → KPWHYSA5.js} +1 -1
  51. package/dist/cdn/{IKCVYV5L.js → KXUQJ6GE.js} +1 -1
  52. package/dist/cdn/{GXC7VLYM.js → KZQFX7LH.js} +1 -1
  53. package/dist/cdn/{VMS7DT3M.js → L5DROI2A.js} +1 -1
  54. package/dist/cdn/LL7NH3VV.js +2 -0
  55. package/dist/cdn/{CDHUW42P.js → LUMOL7ZP.js} +1 -1
  56. package/dist/cdn/{5OKNLDIJ.js → LYJFZA2M.js} +1 -1
  57. package/dist/cdn/{WBJ6NWHX.js → MBSMC77K.js} +1 -1
  58. package/dist/cdn/{25YAWDIB.js → MVGAATR7.js} +1 -1
  59. package/dist/cdn/{UHPAFBYO.js → NNZCIR7W.js} +1 -1
  60. package/dist/cdn/NZXQ5BWP.js +2 -0
  61. package/dist/cdn/{FTOYQNHN.js → O4HUYRYL.js} +1 -1
  62. package/dist/cdn/{4ETF22K6.js → O4LKWTBY.js} +1 -1
  63. package/dist/cdn/{LIPUN4CH.js → OW2DLJGU.js} +1 -1
  64. package/dist/cdn/{CSAUXIK2.js → P2F2O6MH.js} +1 -1
  65. package/dist/cdn/P4UJJCPG.js +2 -0
  66. package/dist/cdn/{BBURKBKE.js → P56ROGSK.js} +1 -1
  67. package/dist/cdn/{HD4FP3ZK.js → PMIWXHTG.js} +1 -1
  68. package/dist/cdn/{SYIW6YJN.js → PXIAM4CZ.js} +1 -1
  69. package/dist/cdn/{VL2G5M57.js → QPSJ6XOX.js} +1 -1
  70. package/dist/cdn/R7HW5WVG.js +2 -0
  71. package/dist/cdn/{2A7JZQX5.js → RJCJ3F5C.js} +1 -1
  72. package/dist/cdn/{QM27URJR.js → RKB6QZNW.js} +1 -1
  73. package/dist/cdn/{GBDEYCR6.js → S6LH7YS6.js} +1 -1
  74. package/dist/cdn/{XACXJMSF.js → S74GCXXK.js} +2 -2
  75. package/dist/cdn/{JNNB2DIA.js → SA22QZNW.js} +1 -1
  76. package/dist/cdn/{OYCT7CFU.js → SJVVFOAX.js} +1 -1
  77. package/dist/cdn/{TH4OHGTQ.js → SOKKWGPA.js} +1 -1
  78. package/dist/cdn/SQYOFBS6.js +2 -0
  79. package/dist/cdn/{KHNP4LWB.js → SVGAVKBQ.js} +1 -1
  80. package/dist/cdn/SX6SDBU7.js +2 -0
  81. package/dist/cdn/TTBRUBXY.js +2 -0
  82. package/dist/cdn/{IHTJSWKK.js → U5IM4KAQ.js} +1 -1
  83. package/dist/cdn/{VW4GW2JT.js → UE5VX2RL.js} +1 -1
  84. package/dist/cdn/{7EEYYP6X.js → UIRKQREJ.js} +1 -1
  85. package/dist/cdn/{Z4HCNLCD.js → UIY2PSG4.js} +1 -1
  86. package/dist/cdn/UNTIPIBS.js +2 -0
  87. package/dist/cdn/{KB76VF4V.js → VIY3BCJZ.js} +1 -1
  88. package/dist/cdn/{LO6KKSE4.js → WHJU66P4.js} +1 -1
  89. package/dist/cdn/{3S3PN7AK.js → WJ2VDT6B.js} +1 -1
  90. package/dist/cdn/WU3C7BQU.js +2 -0
  91. package/dist/cdn/{SPVZ5BND.js → WWO326JE.js} +1 -1
  92. package/dist/cdn/{H4B3ERFL.js → XNWSVHA3.js} +1 -1
  93. package/dist/cdn/{RH4AC577.js → XOM6LSIW.js} +1 -1
  94. package/dist/cdn/{NFANBMTU.js → XP4S2M7F.js} +1 -1
  95. package/dist/cdn/YALB4GSA.js +2 -0
  96. package/dist/cdn/YUF4ZSA5.js +2 -0
  97. package/dist/cdn/ZJHV3UVG.js +2 -0
  98. package/dist/cdn/{SZEYHOGG.js → ZQ2WG55W.js} +1 -1
  99. package/dist/cdn/index.js +1 -1
  100. package/dist/cdn/model/shared/setup-utils.js +1 -1
  101. package/dist/chunks/data.js +68 -68
  102. package/dist/chunks/index2.js +214 -208
  103. package/dist/chunks/index3.js +1 -0
  104. package/dist/chunks/index4.js +21 -14
  105. package/dist/chunks/serial-chart-data.js +588 -569
  106. package/dist/chunks/time-zone.js +1 -1
  107. package/dist/chunks/web-component-utils.js +529 -508
  108. package/dist/components/arcgis-chart/customElement.d.ts +1 -1
  109. package/dist/components/arcgis-chart/customElement.js +4167 -4128
  110. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +34 -36
  111. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +28 -28
  112. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +5 -8
  113. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +34 -35
  114. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
  115. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
  116. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +14 -16
  117. package/dist/components/arcgis-charts-config-create-flow/customElement.js +11 -11
  118. package/dist/components/arcgis-charts-config-format/customElement.js +25 -25
  119. package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
  120. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +8 -11
  121. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +13 -14
  122. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +25 -26
  123. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +28 -30
  124. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -5
  125. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +35 -35
  126. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +37 -39
  127. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +4 -4
  128. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -8
  129. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +11 -12
  130. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +8 -10
  131. package/dist/docs/api.json +1 -1
  132. package/dist/docs/docs.json +1 -1
  133. package/dist/docs/web-types.json +1 -1
  134. package/dist/json-schema/index.d.ts +9 -2
  135. package/dist/model/interfaces/common.d.ts +0 -2
  136. package/dist/spec/rest-js-types.d.ts +22 -8
  137. package/dist/spec/web-chart.d.ts +2 -2
  138. package/dist/utils/chart-config/converter/index.js +264 -264
  139. package/dist/utils/chart-config/utils/index.d.ts +1 -0
  140. package/dist/utils/chart-config/validator/interfaces.d.ts +1 -3
  141. package/dist/utils/errors/index.d.ts +1 -1
  142. package/dist/utils/layer/inline-conversion/index.d.ts +0 -3
  143. package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
  144. package/dist/utils/misc/index.d.ts +2 -3
  145. package/dist/utils/types/index.d.ts +1 -5
  146. package/package.json +3 -3
  147. package/dist/cdn/3CFZUVMF.js +0 -2
  148. package/dist/cdn/3W2A4SAP.js +0 -2
  149. package/dist/cdn/5JNEJJU3.js +0 -2
  150. package/dist/cdn/6MF2R6DJ.js +0 -2
  151. package/dist/cdn/BER7FMK3.js +0 -2
  152. package/dist/cdn/CGYB5KPV.js +0 -2
  153. package/dist/cdn/DJ5OHPYW.js +0 -2
  154. package/dist/cdn/EK33HUAH.js +0 -2
  155. package/dist/cdn/GKPMAFU3.js +0 -2
  156. package/dist/cdn/HFJ4EPET.js +0 -2
  157. package/dist/cdn/JEH22SPH.js +0 -2
  158. package/dist/cdn/JMAVBKEZ.js +0 -2
  159. package/dist/cdn/JQYB4ZDY.js +0 -2
  160. package/dist/cdn/PJZVDHIF.js +0 -2
  161. package/dist/cdn/QAIY4AMN.js +0 -2
  162. package/dist/cdn/SHTFWNG3.js +0 -2
  163. package/dist/cdn/SXT5DNXJ.js +0 -4
  164. package/dist/cdn/U4COKMGA.js +0 -2
  165. package/dist/cdn/U6USPTQ5.js +0 -2
  166. package/dist/cdn/VSPTNIIU.js +0 -2
  167. package/dist/cdn/X4BYDZDR.js +0 -2
  168. package/dist/cdn/XJ2L7VN4.js +0 -2
  169. package/dist/cdn/XP5GZU4O.js +0 -2
  170. package/dist/cdn/XXXXO6OB.js +0 -2
  171. package/dist/cdn/YXWIKYN4.js +0 -2
@@ -1,26 +1,24 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as F } from "../../chunks/runtime.js";
3
- import { repeat as b } from "lit/directives/repeat.js";
2
+ import { c as S } from "../../chunks/runtime.js";
3
+ import { repeat as u } from "lit/directives/repeat.js";
4
4
  import { keyed as f } from "lit/directives/keyed.js";
5
- import { LitElement as S, createEvent as C, renderElement as T, safeStyleMap as A, safeClassMap as c } from "@arcgis/lumina";
6
- import { substitute as P } from "@arcgis/core/intl.js";
7
- import { css as D, html as a } from "lit";
5
+ import { LitElement as T, createEvent as C, renderElement as F, safeStyleMap as A, safeClassMap as c } from "@arcgis/lumina";
6
+ import { substitute as D } from "@arcgis/core/intl.js";
7
+ import { css as P, html as a } from "lit";
8
8
  import { createRef as g, ref as d } from "lit/directives/ref.js";
9
9
  import { isEqual as y } from "lodash-es";
10
10
  import { u as $ } from "../../chunks/useT9n.js";
11
11
  import { B as n } from "../../chunks/interfaces.js";
12
12
  import { c as v, b as L, e as h, a as x, f as E, s as z } from "../../chunks/chart-ui-utils2.js";
13
13
  import { R as k } from "../../chunks/rest-js-object-literals.js";
14
- import { t as u, r as N, s as p } from "../../chunks/chart-object-literals.js";
14
+ import { t as b, r as N, s as p } from "../../chunks/chart-object-literals.js";
15
15
  import { S as m } from "../../chunks/common.js";
16
16
  import { e as w, p as B } from "../../chunks/popover-ui-utils.js";
17
17
  import { t as K, ag as _ } from "../../chunks/index.js";
18
- import { a2 as O, bh as I, bb as j, bu as H, bk as M } from "../../chunks/index2.js";
19
- import { d as U, m as W } from "../../chunks/index3.js";
20
- const R = D`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.pick-list-item-label{font-size:small}.sort-icon-color{color:#000}.sort-y-axis{transform:rotate(90deg)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}.panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}.panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}.panel .apply-button{width:17rem}`, o = {
21
- jsAppFlyout: "js-app-flyout",
18
+ import { a2 as O, bh as I, bb as H, bu as M, bk as U } from "../../chunks/index2.js";
19
+ import { d as W, m as j } from "../../chunks/index3.js";
20
+ const R = 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)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.pick-list-item-label{font-size:small}.sort-icon-color{color:#000}.sort-y-axis{transform:rotate(90deg)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}.panel .size-section{width:19rem;margin:1rem 0;display:flex;flex-wrap:wrap;justify-content:space-evenly}.panel .size-section calcite-label{width:8rem;margin-bottom:.25rem}.panel .apply-button{width:17rem}`, r = {
22
21
  name: "bar-chart-data-popover",
23
- numericFieldPickList: "bar-chart-data-numeric-fields-pick-list",
24
22
  header: "header",
25
23
  fab: "fab",
26
24
  pickListItemLabel: "pick-list-item-label",
@@ -30,7 +28,7 @@ const R = D`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.a
30
28
  applyButton: "apply-button",
31
29
  panel: "panel"
32
30
  };
33
- class q extends S {
31
+ class q extends T {
34
32
  constructor() {
35
33
  super(...arguments), this._messages = $(), this.commonStrings = $({ name: "common", blocking: !0 }), this.picklist = g(), this.intervalSizeElement = g(), this.intervalTypeElement = g(), this.popoverElement = g(), this.placement = "leading", this.offsetDistance = -200, this.pickListHasChanged = !1, this.aggregationLabels = [], this.open = !1, this.layerFieldsInfo = [], this.isCustomSortDisabled = !1, this.isNoAggregationDisabled = !1, this.arcgisChartsConfigBarChartDataPopoverChange = C(), this.arcgisChartsConfigPopoverClose = C();
36
34
  }
@@ -47,7 +45,7 @@ class q extends S {
47
45
  e.has("selectedContent") && this.selectedContentChange(this.selectedContent, e.get("selectedContent"));
48
46
  const t = v.map((s) => K(s, this.commonStrings));
49
47
  y(this.aggregationLabels, t) || (this.aggregationLabels = t);
50
- const l = [u.Start, u.End].map((s) => _(s, this.commonStrings));
48
+ const l = [b.Start, b.End].map((s) => _(s, this.commonStrings));
51
49
  y(this.timeAggregationLabels, l) || (this.timeAggregationLabels = l);
52
50
  }
53
51
  updated() {
@@ -60,14 +58,14 @@ class q extends S {
60
58
  }
61
59
  buildAggregationListItems() {
62
60
  const e = this.isNoAggregationDisabled ? v.filter((t) => t !== N.NoAggregation) : v;
63
- return b(e, (t) => t, (t, i) => a`<calcite-list-item .label=${this.aggregationLabels[i]} .value=${t} .selected=${h(t, this.selectedContent)}></calcite-list-item>`);
61
+ return u(e, (t) => t, (t, i) => a`<calcite-list-item .label=${this.aggregationLabels[i]} .value=${t} .selected=${h(t, this.selectedContent)}></calcite-list-item>`);
64
62
  }
65
63
  createTooltip(e) {
66
64
  if (e.target?.label === this._messages.customSort && this.isCustomSortDisabled) {
67
- const t = e.target, i = O(t), s = new Intl.NumberFormat(i).format(L.customSortLimit), r = P(this._messages.customSortLimit ?? "", {
65
+ const t = e.target, i = O(t), s = new Intl.NumberFormat(i).format(L.customSortLimit), o = D(this._messages.customSortLimit ?? "", {
68
66
  totalLimit: s
69
67
  });
70
- this.tooltip = T(a`<calcite-tooltip style=${A({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${r}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
68
+ this.tooltip = F(a`<calcite-tooltip style=${A({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${o}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
71
69
  }
72
70
  }
73
71
  destroyTooltip() {
@@ -76,7 +74,7 @@ class q extends S {
76
74
  buildSortOrder() {
77
75
  const e = Object.keys(m);
78
76
  let t;
79
- return b(e, (i) => i, (i) => {
77
+ return u(e, (i) => i, (i) => {
80
78
  let l = "";
81
79
  switch (i) {
82
80
  case m.xAxisAsc: {
@@ -88,11 +86,11 @@ class q extends S {
88
86
  break;
89
87
  }
90
88
  case m.yAxisAsc: {
91
- t = "sort-descending", l = o.rotateClass;
89
+ t = "sort-descending", l = r.rotateClass;
92
90
  break;
93
91
  }
94
92
  case m.yAxisDesc: {
95
- t = "sort-ascending", l = o.rotateClass;
93
+ t = "sort-ascending", l = r.rotateClass;
96
94
  break;
97
95
  }
98
96
  case m.customSort: {
@@ -104,7 +102,7 @@ class q extends S {
104
102
  });
105
103
  }
106
104
  buildPickListItem(e) {
107
- return f(e.name, a`<calcite-list-item .label=${U(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${h(e.name, this.selectedContent)}></calcite-list-item>`);
105
+ return f(e.name, a`<calcite-list-item .label=${W(this.layerFieldsInfo, e.name)} .value=${e.name} .selected=${h(e.name, this.selectedContent)}></calcite-list-item>`);
108
106
  }
109
107
  buildPickListItems(e) {
110
108
  const t = this.layerFieldsInfo?.length ?? 0, i = [];
@@ -112,7 +110,7 @@ class q extends S {
112
110
  case n.numericFields: {
113
111
  for (let l = 0; l < t; l += 1) {
114
112
  const s = this.layerFieldsInfo?.[l];
115
- s && M(s) && i.push(this.buildPickListItem(s));
113
+ s && U(s) && i.push(this.buildPickListItem(s));
116
114
  }
117
115
  break;
118
116
  }
@@ -120,8 +118,8 @@ class q extends S {
120
118
  const l = f(" ", a`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`);
121
119
  i.push(l);
122
120
  for (let s = 0; s < t; s += 1) {
123
- const r = this.layerFieldsInfo?.[s];
124
- r && (r.type === k.String || I(r) || j(r) || H(r)) && i.push(this.buildPickListItem(r));
121
+ const o = this.layerFieldsInfo?.[s];
122
+ o && (o.type === k.String || I(o) || H(o) || M(o)) && i.push(this.buildPickListItem(o));
125
123
  }
126
124
  break;
127
125
  }
@@ -129,8 +127,8 @@ class q extends S {
129
127
  const l = f(" ", a`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`);
130
128
  i.push(l);
131
129
  for (let s = 0; s < t; s += 1) {
132
- const r = this.layerFieldsInfo?.[s];
133
- r && (I(r) || r.type === k.String) && i.push(this.buildPickListItem(r));
130
+ const o = this.layerFieldsInfo?.[s];
131
+ o && (I(o) || o.type === k.String) && i.push(this.buildPickListItem(o));
134
132
  }
135
133
  break;
136
134
  }
@@ -169,32 +167,32 @@ class q extends S {
169
167
  this.closePopover();
170
168
  }
171
169
  buildIntervalAlignmentPickListItems() {
172
- const e = [u.Start, u.End];
173
- return b(e, (t) => t, (t, i) => a`<calcite-list-item .label=${this.timeAggregationLabels?.[i]} .value=${t} .selected=${h(t, this.selectedContent)}></calcite-list-item>`);
170
+ const e = [b.Start, b.End];
171
+ return u(e, (t) => t, (t, i) => a`<calcite-list-item .label=${this.timeAggregationLabels?.[i]} .value=${t} .selected=${h(t, this.selectedContent)}></calcite-list-item>`);
174
172
  }
175
173
  renderAggregationType() {
176
174
  const e = this.buildAggregationListItems();
177
- return a`<calcite-list label class=${c(o.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
175
+ return a`<calcite-list label class=${c(r.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
178
176
  }
179
177
  renderCategory() {
180
178
  const e = this.buildPickListItems(n.category);
181
- return a`<calcite-list label class=${c(o.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${d(this.picklist)}>${e}</calcite-list>`;
179
+ return a`<calcite-list label class=${c(r.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${d(this.picklist)}>${e}</calcite-list>`;
182
180
  }
183
181
  renderNumericFields() {
184
182
  const e = this.buildPickListItems(n.numericFields);
185
- return a`<calcite-list label class=${c(o.numericFieldPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${d(this.picklist)}>${e}</calcite-list>`;
183
+ return a`<calcite-list label selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${d(this.picklist)}>${e}</calcite-list>`;
186
184
  }
187
185
  renderSortOrder() {
188
186
  const e = this.buildSortOrder();
189
- return a`<calcite-list label class=${c(o.sortOrderPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
187
+ return a`<calcite-list label class=${c(r.sortOrderPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
190
188
  }
191
189
  renderSplitByField() {
192
190
  const e = this.buildPickListItems(n.splitByField);
193
- return a`<calcite-list label class=${c(o.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${d(this.picklist)}>${e}</calcite-list>`;
191
+ return a`<calcite-list label class=${c(r.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${d(this.picklist)}>${e}</calcite-list>`;
194
192
  }
195
193
  renderIntervalAlignment() {
196
194
  const e = this.buildIntervalAlignmentPickListItems();
197
- return a`<calcite-list label class=${c(o.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
195
+ return a`<calcite-list label class=${c(r.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
198
196
  }
199
197
  renderInterval() {
200
198
  const e = this.selectedContent, t = [
@@ -206,7 +204,7 @@ class q extends S {
206
204
  p.Month,
207
205
  p.Year
208
206
  ];
209
- return a`<div><div class=${c(o.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${z(e?.size, 1)} ${d(this.intervalSizeElement)}></calcite-input></calcite-label><calcite-label scale=m>${this._messages.intervalType}<calcite-select .label=${this._messages.intervalType ?? ""} ${d(this.intervalTypeElement)}>${t.map((i) => a`<calcite-option .value=${i} .label=${W(i, this._messages)} .selected=${e?.unit === i}></calcite-option>`)}</calcite-select></calcite-label><calcite-button class=${c(o.applyButton)} appearance=outline @click=${this.intervalChange}>${this._messages.apply}</calcite-button></div></div>`;
207
+ return a`<div><div class=${c(r.sizeSection)}><calcite-label scale=m>${this._messages.intervalSize}<calcite-input type=number scale=m min=1 step=any .value=${z(e?.size, 1)} ${d(this.intervalSizeElement)}></calcite-input></calcite-label><calcite-label scale=m>${this._messages.intervalType}<calcite-select .label=${this._messages.intervalType ?? ""} ${d(this.intervalTypeElement)}>${t.map((i) => a`<calcite-option .value=${i} .label=${j(i, this._messages)} .selected=${e?.unit === i}></calcite-option>`)}</calcite-select></calcite-label><calcite-button class=${c(r.applyButton)} appearance=outline @click=${this.intervalChange}>${this._messages.apply}</calcite-button></div></div>`;
210
208
  }
211
209
  renderPopoverInfo() {
212
210
  let e;
@@ -237,10 +235,10 @@ class q extends S {
237
235
  }
238
236
  render() {
239
237
  let e;
240
- return this.contentKind === n.numericFields && (e = a`<div slot=footer><calcite-fab class=${c(o.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`), a`<div class=${c(o.jsAppFlyout)}><calcite-popover class=${c(o.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${d(this.popoverElement)}><calcite-panel class=${c(o.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${c(o.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
238
+ return this.contentKind === n.numericFields && (e = a`<div slot=footer><calcite-fab class=${c(r.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`), a`<div><calcite-popover class=${c(r.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${d(this.popoverElement)}><calcite-panel class=${c(r.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${c(r.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
241
239
  }
242
240
  }
243
- F("arcgis-charts-config-bar-chart-popover", q);
241
+ S("arcgis-charts-config-bar-chart-popover", q);
244
242
  export {
245
243
  q as ArcgisChartsConfigBarChartPopover
246
244
  };
@@ -1,8 +1,8 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as k } from "../../chunks/runtime.js";
3
3
  import { keyed as x } from "lit/directives/keyed.js";
4
- import { repeat as T } from "lit/directives/repeat.js";
5
- import { u as P } from "../../chunks/useT9n.js";
4
+ import { repeat as P } from "lit/directives/repeat.js";
5
+ import { u as T } from "../../chunks/useT9n.js";
6
6
  import { css as L, html as l } from "lit";
7
7
  import { LitElement as M, createEvent as N, renderElement as u, safeStyleMap as h, safeClassMap as a } from "@arcgis/lumina";
8
8
  import { a as O } from "../../chunks/chart-ui-utils2.js";
@@ -17,17 +17,17 @@ const E = {
17
17
  list: "list",
18
18
  disabledInfo: "disabled-info",
19
19
  disabledStackingOption: "disabled-stacking-option"
20
- }, w = L`: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)}.disabled-info{margin:auto 1rem;pointer-events:auto}.disabled-info:active{margin:auto 1rem;pointer-events:none}.disabled-stacking-option{pointer-events:none;opacity:var(--calcite-opacity-disabled)}`;
20
+ }, w = L`.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)}.disabled-info{margin:auto 1rem;pointer-events:auto}.disabled-info:active{margin:auto 1rem;pointer-events:none}.disabled-stacking-option{pointer-events:none;opacity:var(--calcite-opacity-disabled)}`;
21
21
  class D extends M {
22
22
  constructor() {
23
- super(...arguments), this._messages = P(), this.open = !1, this.seriesNameChange = (e) => {
23
+ super(...arguments), this._messages = T(), this.open = !1, this.seriesNameChange = (e) => {
24
24
  if (e.detail !== null && e.detail !== void 0) {
25
25
  const t = e.detail.name;
26
26
  if (this.isNullCategorySelected) {
27
- const s = this.model.nullCategory;
28
- if (s) {
29
- const i = { ...s, text: t };
30
- this.model.nullCategory = i;
27
+ const i = this.model.nullCategory;
28
+ if (i) {
29
+ const s = { ...i, text: t };
30
+ this.model.nullCategory = s;
31
31
  }
32
32
  } else
33
33
  this.model.setSeriesName(t, this.selectedSeriesIndex ?? -1);
@@ -37,15 +37,15 @@ class D extends M {
37
37
  const { color: t } = e.detail;
38
38
  if (t !== void 0) {
39
39
  if (this.isNullCategorySelected) {
40
- const s = this.model.nullCategory, i = s?.symbol && {
41
- ...s,
40
+ const i = this.model.nullCategory, s = i?.symbol && {
41
+ ...i,
42
42
  symbol: {
43
- ...s.symbol,
43
+ ...i.symbol,
44
44
  color: t,
45
- outline: s.symbol.outline && { ...s.symbol.outline, color: t }
45
+ outline: i.symbol.outline && { ...i.symbol.outline, color: t }
46
46
  }
47
47
  };
48
- this.model.nullCategory = i;
48
+ this.model.nullCategory = s;
49
49
  } else
50
50
  this.model.setSeriesColor(t, this.selectedSeriesIndex ?? -1);
51
51
  this.model.colorMatch = !1;
@@ -83,24 +83,24 @@ class D extends M {
83
83
  this.selectedSeriesIndex !== void 0 && (this.seriesPopover = u(l`<arcgis-charts-config-bar-chart-series-popover .referenceElement=${this.el} .selectedName=${this.selectedSeriesIndex != null ? this.model.getSeriesName(this.selectedSeriesIndex) : void 0} .selectedColor=${this.selectedSeriesIndex != null ? this.model.getSeriesColor(this.selectedSeriesIndex) : void 0} .placement=${this.popoverPlacement} .selectedSeriesIndex=${this.selectedSeriesIndex != null ? this.selectedSeriesIndex : void 0} .nullCategory=${this.isNullCategorySelected ? this.model.nullCategory : void 0} .open=${this.open} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-bar-chart-series-popover>`), this.seriesPopover && !document.body.contains(this.seriesPopover) && document.body.appendChild(this.seriesPopover));
84
84
  }
85
85
  buildSeriesListItems() {
86
- const e = this.model.seriesLength ?? 0, t = Array.from({ length: e }, (i, n) => n);
87
- return T(t, (i) => this.model.getSeriesId(i), (i) => {
88
- const n = this.model.getSeriesId(i), c = this.model.getSeriesColor(i), d = this.model.getSeriesName(i), S = this.model.chartSubType === _.BarAndLineFromFields ? this._messages.series : n;
89
- let m = "#CCCCCC", p = "minus-square";
86
+ const e = this.model.seriesLength ?? 0, t = Array.from({ length: e }, (s, n) => n);
87
+ return P(t, (s) => this.model.getSeriesId(s), (s) => {
88
+ const n = this.model.getSeriesId(s), c = this.model.getSeriesColor(s), d = this.model.getSeriesName(s), b = this.model.chartSubType === _.BarAndLineFromFields ? this._messages.series : n;
89
+ let g = "#CCCCCC", p = "minus-square";
90
90
  if ((e > 1 || !this.activeColorMatch) && c !== void 0) {
91
91
  p = "square-f";
92
- const [b, y, $, I] = [...c];
93
- m = `rgba(${b},${y},${$},${I / 255})`;
92
+ const [S, y, $, I] = [...c];
93
+ g = `rgba(${S},${y},${$},${I / 255})`;
94
94
  }
95
- return l`<calcite-list-item .label=${d ?? n ?? ""} .description=${S} .value=${n} .selected=${this.selectedSeriesIndex === i} @click=${this.openSeriesPopOver}><calcite-icon .icon=${p} style=${h({ color: m })} slot=content-end></calcite-icon></calcite-list-item>`;
95
+ return l`<calcite-list-item .label=${d ?? n ?? ""} .description=${b} .value=${n} .selected=${this.selectedSeriesIndex === s} @click=${this.openSeriesPopOver}><calcite-icon .icon=${p} style=${h({ color: g })} slot=content-end></calcite-icon></calcite-list-item>`;
96
96
  });
97
97
  }
98
98
  buildSeriesList() {
99
99
  return x(this.seriesOrderResetCounter, l`<calcite-list label class=${a(o.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`);
100
100
  }
101
101
  buildNullCategoryUI() {
102
- const e = this.model.nullCategory, t = this._messages.nullCategory, s = e?.symbol?.color ?? C.nullCategory?.symbol?.color ?? C.grayColor, [i, n, c, d] = [...s], g = `rgba(${i},${n},${c},${d / 255})`;
103
- return l`<calcite-list label class=${a(o.list)} selection-mode=none><calcite-list-item .label=${t} .value=${t} .selected=${this.selectedSeriesIndex === null} @click=${this.openSeriesPopOver}><calcite-icon icon=square-f style=${h({ color: g })} slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
102
+ const e = this.model.nullCategory, t = this._messages.nullCategory, i = e?.symbol?.color ?? C.nullCategory?.symbol?.color ?? C.grayColor, [s, n, c, d] = [...i], m = `rgba(${s},${n},${c},${d / 255})`;
103
+ return l`<calcite-list label class=${a(o.list)} selection-mode=none><calcite-list-item .label=${t} .value=${t} .selected=${this.selectedSeriesIndex === null} @click=${this.openSeriesPopOver}><calcite-icon icon=square-f style=${h({ color: m })} slot=content-end></calcite-icon></calcite-list-item></calcite-list>`;
104
104
  }
105
105
  buildMultipleBarTypeList() {
106
106
  const e = this.shouldDisableStacking();
@@ -117,18 +117,18 @@ class D extends M {
117
117
  }
118
118
  onCalciteListOrderChange(e) {
119
119
  if (e.detail !== null && e.detail !== void 0) {
120
- const { newIndex: t, oldIndex: s } = e.detail;
121
- this.model.moveSeries(s ?? 0, t ?? s ?? 0), this.seriesOrderResetCounter += 1;
120
+ const { newIndex: t, oldIndex: i } = e.detail;
121
+ this.model.moveSeries(i ?? 0, t ?? i ?? 0), this.seriesOrderResetCounter += 1;
122
122
  }
123
123
  }
124
124
  openSeriesPopOver(e) {
125
125
  e.stopImmediatePropagation(), this.removeSeriesPopover();
126
- const t = e.target, s = t.localName === "calcite-list-item" ? t : t.parentNode, i = this.model.getSeriesIndex(s.value);
127
- this.open = this.selectedSeriesIndex !== i, this.selectedSeriesIndex = this.selectedSeriesIndex !== i ? i : void 0, this.isNullCategorySelected = s.value === this._messages.nullCategory;
126
+ const t = e.target, i = t.localName === "calcite-list-item" ? t : t.parentNode, s = this.model.getSeriesIndex(i.value);
127
+ this.open = this.selectedSeriesIndex !== s, this.selectedSeriesIndex = this.selectedSeriesIndex !== s ? s : void 0, this.isNullCategorySelected = i.value === this._messages.nullCategory;
128
128
  }
129
129
  createTooltip(e) {
130
- const t = e.target, s = (this.model.aggregationType === f.NoAggregation ? this._messages.noAggStackingDisabled : this._messages.singleStackingDisabled) ?? "";
131
- this.tooltip = u(l`<calcite-tooltip style=${h({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${s}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
130
+ const t = e.target, i = (this.model.aggregationType === f.NoAggregation ? this._messages.noAggStackingDisabled : this._messages.singleStackingDisabled) ?? "";
131
+ this.tooltip = u(l`<calcite-tooltip style=${h({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${i}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
132
132
  }
133
133
  destroyTooltip() {
134
134
  O(this.tooltip);
@@ -3,11 +3,10 @@ import { c } from "../../chunks/runtime.js";
3
3
  import { css as p, html as h } from "lit";
4
4
  import { u as m } from "../../chunks/useT9n.js";
5
5
  import { createRef as d, ref as g } from "lit/directives/ref.js";
6
- import { LitElement as C, createEvent as s, safeClassMap as o } from "@arcgis/lumina";
6
+ import { LitElement as C, createEvent as s, safeClassMap as n } from "@arcgis/lumina";
7
7
  import { e as v } from "../../chunks/popover-ui-utils.js";
8
8
  import { aB as f } from "../../chunks/index.js";
9
- const i = {
10
- jsAppFlyout: "js-app-flyout",
9
+ const l = {
11
10
  panelChildrenContainer: "panel-children-container"
12
11
  }, u = 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{overflow-y:auto;width:min-content}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`;
13
12
  class y extends C {
@@ -36,14 +35,12 @@ class y extends C {
36
35
  });
37
36
  }
38
37
  colorChange(e) {
39
- const t = e instanceof CustomEvent ? e.detail : e, [a, r, l] = t, n = f * 255;
40
- this.selectedColor = [a, r, l, n], this.arcgisChartsConfigSeriesPopoverColorChange.emit({ color: [a, r, l, n] });
38
+ const t = e instanceof CustomEvent ? e.detail : e, [o, i, a] = t, r = f * 255;
39
+ this.selectedColor = [o, i, a, r], this.arcgisChartsConfigSeriesPopoverColorChange.emit({ color: [o, i, a, r] });
41
40
  }
42
41
  render() {
43
42
  const e = this.nullCategory?.symbol?.color ?? this.selectedColor, t = this.nullCategory?.text ?? this.selectedName;
44
- return h`<div class=${o({
45
- [i.jsAppFlyout]: !0
46
- })}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${g(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${o(i.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${t} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div><div class=${o(i.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`;
43
+ return h`<div><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${g(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${n(l.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${t} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div><div class=${n(l.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`;
47
44
  }
48
45
  }
49
46
  c("arcgis-charts-config-bar-chart-series-popover", y);
@@ -3,9 +3,9 @@ import { c as k } from "../../chunks/runtime.js";
3
3
  import { keyed as p } from "lit/directives/keyed.js";
4
4
  import { repeat as v } from "lit/directives/repeat.js";
5
5
  import { substitute as $ } from "@arcgis/core/intl.js";
6
- import { a as l } from "../../chunks/interfaces.js";
7
- import { b as u, f as y, e as h, a as F } from "../../chunks/chart-ui-utils2.js";
8
- import { u as L } from "../../chunks/useT9n.js";
6
+ import { a } from "../../chunks/interfaces.js";
7
+ import { b as u, f as y, e as h, a as L } from "../../chunks/chart-ui-utils2.js";
8
+ import { u as F } from "../../chunks/useT9n.js";
9
9
  import { css as P, html as n } from "lit";
10
10
  import { createRef as f, ref as m } from "lit/directives/ref.js";
11
11
  import { LitElement as I, createEvent as g, renderElement as x, safeStyleMap as D, safeClassMap as d } from "@arcgis/lumina";
@@ -14,8 +14,7 @@ import { e as S, p as T } from "../../chunks/popover-ui-utils.js";
14
14
  import { bh as b, bk as E, a2 as w } from "../../chunks/index2.js";
15
15
  import { d as B } from "../../chunks/index3.js";
16
16
  import { R as C } from "../../chunks/rest-js-object-literals.js";
17
- const o = {
18
- jsAppFlyout: "js-app-flyout",
17
+ const l = {
19
18
  name: "bar-chart-data-popover",
20
19
  numericFieldPickList: "bar-chart-data-numeric-fields-pick-list",
21
20
  header: "header",
@@ -28,7 +27,7 @@ const o = {
28
27
  }, N = 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)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.pick-list-item-label{font-size:small}.sort-icon-color{color:#000}.sort-mean,.sort-median{transform:rotate(90deg)}.sort-order-pick-list{overflow-y:hidden}.panel{max-height:60vh}`;
29
28
  class K extends I {
30
29
  constructor() {
31
- super(...arguments), this._messages = L(), this.picklist = f(), this.placement = "leading", this.popoverElement = f(), this.offsetDistance = -200, this.pickListHasChanged = !1, this.open = !1, this.layerFieldsInfo = [], this.isCustomSortDisabled = !1, this.arcgisChartsConfigBoxPlotDataPopoverChange = g(), this.arcgisChartsConfigPopoverClose = g();
30
+ super(...arguments), this._messages = F(), this.picklist = f(), this.placement = "leading", this.popoverElement = f(), this.offsetDistance = -200, this.pickListHasChanged = !1, this.open = !1, this.layerFieldsInfo = [], this.isCustomSortDisabled = !1, this.arcgisChartsConfigBoxPlotDataPopoverChange = g(), this.arcgisChartsConfigPopoverClose = g();
32
31
  }
33
32
  static {
34
33
  this.properties = { messageOverrides: 0, headingTitle: 1, referenceElement: 0, open: 5, contentKind: 1, layerFieldsInfo: 0, isCustomSortDisabled: 5, selectedContent: 1 };
@@ -51,7 +50,7 @@ class K extends I {
51
50
  this.pickListHasChanged = T(e, t);
52
51
  }
53
52
  closePopover() {
54
- if (this.contentKind === l.numericFields && this.pickListHasChanged) {
53
+ if (this.contentKind === a.numericFields && this.pickListHasChanged) {
55
54
  const e = {
56
55
  pickListElement: this.picklist.value,
57
56
  eventEmitter: this.arcgisChartsConfigBoxPlotDataPopoverChange,
@@ -75,27 +74,27 @@ class K extends I {
75
74
  buildPickListItems(e) {
76
75
  const t = this.layerFieldsInfo?.length ?? 0, i = [];
77
76
  switch (e) {
78
- case l.numericFields: {
77
+ case a.numericFields: {
79
78
  for (let s = 0; s < t; s += 1) {
80
- const a = this.layerFieldsInfo[s];
81
- E(a) && i.push(this.buildPickListItem(a));
79
+ const o = this.layerFieldsInfo[s];
80
+ E(o) && i.push(this.buildPickListItem(o));
82
81
  }
83
82
  break;
84
83
  }
85
- case l.category: {
84
+ case a.category: {
86
85
  const s = p(" ", n`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`);
87
86
  i.push(s);
88
- for (let a = 0; a < t; a += 1) {
89
- const c = this.layerFieldsInfo[a];
87
+ for (let o = 0; o < t; o += 1) {
88
+ const c = this.layerFieldsInfo[o];
90
89
  (b(c) || c.type === C.String) && i.push(this.buildPickListItem(c));
91
90
  }
92
91
  break;
93
92
  }
94
- case l.splitByField: {
93
+ case a.splitByField: {
95
94
  const s = p(" ", n`<calcite-list-item label=" " value=" " .selected=${h("", this.selectedContent)}></calcite-list-item>`);
96
95
  i.push(s);
97
- for (let a = 0; a < t; a += 1) {
98
- const c = this.layerFieldsInfo[a];
96
+ for (let o = 0; o < t; o += 1) {
97
+ const c = this.layerFieldsInfo[o];
99
98
  (b(c) || c.type === C.String) && i.push(this.buildPickListItem(c));
100
99
  }
101
100
  break;
@@ -121,18 +120,18 @@ class K extends I {
121
120
  break;
122
121
  }
123
122
  case r.meanAsc:
124
- t = "sort-descending", s = o.sortMean;
123
+ t = "sort-descending", s = l.sortMean;
125
124
  break;
126
125
  case r.meanDesc: {
127
- t = "sort-ascending", s = o.sortMean;
126
+ t = "sort-ascending", s = l.sortMean;
128
127
  break;
129
128
  }
130
129
  case r.medianAsc: {
131
- t = "sort-descending", s = o.sortMedian;
130
+ t = "sort-descending", s = l.sortMedian;
132
131
  break;
133
132
  }
134
133
  case r.medianDesc: {
135
- t = "sort-ascending", s = o.sortMedian;
134
+ t = "sort-ascending", s = l.sortMedian;
136
135
  break;
137
136
  }
138
137
  case r.customSort: {
@@ -148,44 +147,44 @@ class K extends I {
148
147
  }
149
148
  createTooltip(e) {
150
149
  if (e.target?.label === this._messages.customSort && this.isCustomSortDisabled) {
151
- const t = e.target, i = w(t), a = new Intl.NumberFormat(i).format(u.customSortLimit), c = $(this._messages.customSortLimit ?? "", {
152
- totalLimit: a
150
+ const t = e.target, i = w(t), o = new Intl.NumberFormat(i).format(u.customSortLimit), c = $(this._messages.customSortLimit ?? "", {
151
+ totalLimit: o
153
152
  });
154
153
  this.tooltip = x(n`<calcite-tooltip style=${D({ opacity: 1, zIndex: "var(--calcite-floating-ui-z-index)" })} .referenceElement=${t} open placement=top>${c}</calcite-tooltip>`), document.body.appendChild(this.tooltip);
155
154
  }
156
155
  }
157
156
  destroyTooltip() {
158
- F(this.tooltip);
157
+ L(this.tooltip);
159
158
  }
160
159
  renderCategory() {
161
- const e = this.buildPickListItems(l.category);
162
- return n`<calcite-list label class=${d(o.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
160
+ const e = this.buildPickListItems(a.category);
161
+ return n`<calcite-list label class=${d(l.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
163
162
  }
164
163
  renderNumericFields() {
165
- const e = this.buildPickListItems(l.numericFields);
166
- return n`<calcite-list label class=${d(o.numericFieldPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${m(this.picklist)}>${e}</calcite-list>`;
164
+ const e = this.buildPickListItems(a.numericFields);
165
+ return n`<calcite-list label class=${d(l.numericFieldPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${m(this.picklist)}>${e}</calcite-list>`;
167
166
  }
168
167
  renderSplitByField() {
169
- const e = this.buildPickListItems(l.splitByField);
170
- return n`<calcite-list label class=${d(o.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
168
+ const e = this.buildPickListItems(a.splitByField);
169
+ return n`<calcite-list label class=${d(l.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`;
171
170
  }
172
171
  renderSortOrder() {
173
172
  const e = this.buildSortOrder();
174
- return n`<calcite-list label class=${d(o.sortOrderPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
173
+ return n`<calcite-list label class=${d(l.sortOrderPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`;
175
174
  }
176
175
  renderPopoverInfo() {
177
176
  let e;
178
177
  switch (this.contentKind) {
179
- case l.category:
178
+ case a.category:
180
179
  e = this.renderCategory();
181
180
  break;
182
- case l.numericFields:
181
+ case a.numericFields:
183
182
  e = this.renderNumericFields();
184
183
  break;
185
- case l.splitByField:
184
+ case a.splitByField:
186
185
  e = this.renderSplitByField();
187
186
  break;
188
- case l.sortOrder:
187
+ case a.sortOrder:
189
188
  e = this.renderSortOrder();
190
189
  break;
191
190
  }
@@ -193,7 +192,7 @@ class K extends I {
193
192
  }
194
193
  render() {
195
194
  let e;
196
- return this.contentKind === l.numericFields && (e = n`<div slot=footer><calcite-fab class=${d(o.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`), n`<div class=${d(o.jsAppFlyout)}><calcite-popover class=${d(o.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${m(this.popoverElement)}><calcite-panel class=${d(o.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${d(o.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
195
+ return this.contentKind === a.numericFields && (e = n`<div slot=footer><calcite-fab class=${d(l.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`), n`<div><calcite-popover class=${d(l.name)} .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${m(this.popoverElement)}><calcite-panel class=${d(l.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${d(l.header)}>${this.headingTitle ?? ""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`;
197
196
  }
198
197
  }
199
198
  k("arcgis-charts-config-box-plot-popover", K);
@@ -14,7 +14,7 @@ const l = {
14
14
  sectionLabel: "section-label",
15
15
  list: "list",
16
16
  infoIcon: "info-icon"
17
- }, T = P`: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}`;
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
18
  class N extends O {
19
19
  constructor() {
20
20
  super(...arguments), this._messages = B(), this.resetSeriesOriginal = () => {
@@ -1,20 +1,19 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as g } from "../../chunks/runtime.js";
3
- import { css as C, html as a } from "lit";
3
+ import { css as C, html as l } from "lit";
4
4
  import { isEqual as f } from "lodash-es";
5
5
  import { u as v } from "../../chunks/useT9n.js";
6
6
  import { createRef as y, ref as S } from "lit/directives/ref.js";
7
- import { LitElement as u, createEvent as r, safeClassMap as n } from "@arcgis/lumina";
8
- import { e as b } from "../../chunks/popover-ui-utils.js";
9
- import { aB as d } from "../../chunks/index.js";
7
+ import { LitElement as b, createEvent as a, safeClassMap as p } from "@arcgis/lumina";
8
+ import { e as u } from "../../chunks/popover-ui-utils.js";
9
+ import { aB as m } from "../../chunks/index.js";
10
10
  import { i as $ } from "../../chunks/rest-js-object-literals.js";
11
- const c = {
12
- jsAppFlyout: "js-app-flyout",
11
+ const d = {
13
12
  panelChildrenContainer: "panel-children-container"
14
13
  }, L = C`.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{overflow-y:auto;width:min-content}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`;
15
- class P extends u {
14
+ class P extends b {
16
15
  constructor() {
17
- super(...arguments), this._messages = v(), this.popoverElement = y(), this.isLineSymbol = !1, this.open = !1, this.labelCanBeConfigured = !1, this.arcgisChartsConfigPopoverClose = r(), this.arcgisChartsConfigSeriesPopoverColorChange = r(), this.arcgisChartsConfigSeriesPopoverLineStyleChange = r(), this.arcgisChartsConfigSeriesPopoverLineWidthChange = r(), this.arcgisChartsConfigSeriesPopoverNameChange = r();
16
+ super(...arguments), this._messages = v(), this.popoverElement = y(), this.isLineSymbol = !1, this.open = !1, this.labelCanBeConfigured = !1, this.arcgisChartsConfigPopoverClose = a(), this.arcgisChartsConfigSeriesPopoverColorChange = a(), this.arcgisChartsConfigSeriesPopoverLineStyleChange = a(), this.arcgisChartsConfigSeriesPopoverLineWidthChange = a(), this.arcgisChartsConfigSeriesPopoverNameChange = a();
18
17
  }
19
18
  static {
20
19
  this.properties = { messageOverrides: 0, referenceElement: 0, selectedName: 1, selectedColor: 0, selectedLineStyle: 1, selectedLineWidth: 9, selectedSeriesIndex: 9, isLineSymbol: 5, placement: 1, open: 5, labelCanBeConfigured: 5 };
@@ -26,7 +25,7 @@ class P extends u {
26
25
  await this.popoverElement.value?.reposition();
27
26
  }
28
27
  updated() {
29
- b(this.popoverElement.value, this.open);
28
+ u(this.popoverElement.value, this.open);
30
29
  }
31
30
  seriesNameChange(e) {
32
31
  const i = e.target.value;
@@ -36,27 +35,25 @@ class P extends u {
36
35
  this.open = !1, this.arcgisChartsConfigPopoverClose.emit();
37
36
  }
38
37
  colorChange(e) {
39
- const i = e instanceof CustomEvent ? e.detail : e, [o, t, s] = i, l = d * 255;
40
- this.selectedColor = [o, t, s, l], this.arcgisChartsConfigSeriesPopoverColorChange.emit({ color: [o, t, s, l] });
38
+ const i = e instanceof CustomEvent ? e.detail : e, [o, t, s] = i, r = m * 255;
39
+ this.selectedColor = [o, t, s, r], this.arcgisChartsConfigSeriesPopoverColorChange.emit({ color: [o, t, s, r] });
41
40
  }
42
41
  lineSymbolChange(e) {
43
42
  const { lineStyle: i } = e.target, { color: o, style: t, width: s } = i;
44
43
  if (o !== void 0 && !f(o, this.selectedColor)) {
45
- const [l, h, p] = o, m = d * 255;
46
- this.selectedColor = [l, h, p, m], this.arcgisChartsConfigSeriesPopoverColorChange.emit({ color: [l, h, p, m] });
44
+ const [r, n, c] = o, h = m * 255;
45
+ this.selectedColor = [r, n, c, h], this.arcgisChartsConfigSeriesPopoverColorChange.emit({ color: [r, n, c, h] });
47
46
  }
48
47
  t !== void 0 && t !== this.selectedLineStyle && (this.selectedLineStyle = t, this.arcgisChartsConfigSeriesPopoverLineStyleChange.emit({ style: t })), s !== void 0 && s !== this.selectedLineWidth && (this.selectedLineWidth = s, this.arcgisChartsConfigSeriesPopoverLineWidthChange.emit({ width: s }));
49
48
  }
50
49
  render() {
51
50
  const e = this.selectedColor;
52
- return a`<div class=${n({
53
- [c.jsAppFlyout]: !0
54
- })}><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${S(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}>${this.labelCanBeConfigured ? a`<div class=${n(c.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div>` : null}<div class=${n(this.isLineSymbol ? "" : c.panelChildrenContainer)}>${this.isLineSymbol ? a`<arcgis-charts-config-line-style .open=${this.open} enable-close .lineStyle=${{
51
+ return l`<div><calcite-popover .referenceElement=${this.referenceElement ?? document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${S(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}>${this.labelCanBeConfigured ? l`<div class=${p(d.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div>` : null}<div class=${p(this.isLineSymbol ? "" : d.panelChildrenContainer)}>${this.isLineSymbol ? l`<arcgis-charts-config-line-style .open=${this.open} enable-close .lineStyle=${{
55
52
  type: $.SLS,
56
53
  style: this.selectedLineStyle,
57
54
  width: this.selectedLineWidth,
58
55
  color: e
59
- }} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.lineSymbolChange}></arcgis-charts-config-line-style>` : a`<arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors>`}</div></calcite-panel></calcite-popover></div>`;
56
+ }} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.lineSymbolChange}></arcgis-charts-config-line-style>` : l`<arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors>`}</div></calcite-panel></calcite-popover></div>`;
60
57
  }
61
58
  }
62
59
  g("arcgis-charts-config-box-plot-series-popover", P);