@arcgis/charts-components 5.2.0-next.50 → 5.2.0-next.52

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 (142) hide show
  1. package/README.md +2 -2
  2. package/dist/cdn/{XMV5A2VE.js → 223CX3CX.js} +1 -1
  3. package/dist/cdn/{AALLRICA.js → 23WDH4FI.js} +1 -1
  4. package/dist/cdn/{XUL3AOTB.js → 2BGSZGPZ.js} +1 -1
  5. package/dist/cdn/{TNNXIIY2.js → 2Y5PUPWR.js} +1 -1
  6. package/dist/cdn/{MIJTHCPZ.js → 32LKPPGL.js} +1 -1
  7. package/dist/cdn/35R7YJXM.js +3 -0
  8. package/dist/cdn/3OOV2HEE.js +2 -0
  9. package/dist/cdn/{G6XSNG2U.js → 3UBK3J76.js} +1 -1
  10. package/dist/cdn/{HGG2Y5XW.js → 3WDEAWZX.js} +1 -1
  11. package/dist/cdn/{TWULSSGK.js → 43DN7ID6.js} +1 -1
  12. package/dist/cdn/{3GAUDUOD.js → 4HW6IYHV.js} +1 -1
  13. package/dist/cdn/{67P25QZA.js → 4N76NKSQ.js} +1 -1
  14. package/dist/cdn/{VX6SWJJ6.js → 4NKFXLHB.js} +1 -1
  15. package/dist/cdn/{UDDRI2Q2.js → 4S3UBB4K.js} +1 -1
  16. package/dist/cdn/{OWLVHHFH.js → 4UJL6VJ3.js} +1 -1
  17. package/dist/cdn/{DT5VZTKL.js → 4WTYDOTA.js} +1 -1
  18. package/dist/cdn/{IB6KNSJY.js → 54B66D3D.js} +1 -1
  19. package/dist/cdn/{CK2HC7UZ.js → 5IJ4LXXV.js} +1 -1
  20. package/dist/cdn/5LFGIBZK.js +2 -0
  21. package/dist/cdn/{5CIY3LRQ.js → 6EGZEBLQ.js} +1 -1
  22. package/dist/cdn/{B6BI3FPN.js → 7RRVJPTW.js} +1 -1
  23. package/dist/cdn/{T5QBJ7O3.js → AV73HH5X.js} +1 -1
  24. package/dist/cdn/{APATJCOK.js → BSQZDV2P.js} +1 -1
  25. package/dist/cdn/BUOEEUYK.js +2 -0
  26. package/dist/cdn/CA5SZB65.js +2 -0
  27. package/dist/cdn/{CUPAZHZI.js → CI7R2F5C.js} +1 -1
  28. package/dist/cdn/CQRB56BW.js +2 -0
  29. package/dist/cdn/{LGTEA66L.js → D22JQ6IQ.js} +1 -1
  30. package/dist/cdn/{K5FLBEYI.js → D3UCTZGE.js} +1 -1
  31. package/dist/cdn/{E7YVOSTR.js → D6WL3G34.js} +1 -1
  32. package/dist/cdn/{VMJSBE4T.js → EKBZUXYB.js} +1 -1
  33. package/dist/cdn/{6RPBMFL2.js → EXCIMJOH.js} +1 -1
  34. package/dist/cdn/{UBG7XLVS.js → EZNGHLSR.js} +1 -1
  35. package/dist/cdn/FDXN5BIJ.js +2 -0
  36. package/dist/cdn/{THYUOV7H.js → FQOTLW2I.js} +23 -23
  37. package/dist/cdn/{HQHYGZW7.js → FZUKEGI7.js} +1 -1
  38. package/dist/cdn/{AJ4RZPOJ.js → H6B2SK7Y.js} +1 -1
  39. package/dist/cdn/HAWXFGUX.js +2 -0
  40. package/dist/cdn/{NMITBWC4.js → HFPPW74G.js} +1 -1
  41. package/dist/cdn/HQ4XATLY.js +2 -0
  42. package/dist/cdn/{RFXODD7V.js → HZDQYG6D.js} +1 -1
  43. package/dist/cdn/{A67PKDYM.js → IIRJV7HP.js} +1 -1
  44. package/dist/cdn/{2UMW7TY6.js → IL4TO3HW.js} +1 -1
  45. package/dist/cdn/{AM27TYIA.js → IZMUEFG7.js} +1 -1
  46. package/dist/cdn/{VZNG7PQX.js → J7XMDEFX.js} +1 -1
  47. package/dist/cdn/{OAFJADKA.js → JI3UI5FQ.js} +1 -1
  48. package/dist/cdn/{RREO2RVL.js → JKHGXCTI.js} +1 -1
  49. package/dist/cdn/{ISY2BKFT.js → JMV4L7WL.js} +1 -1
  50. package/dist/cdn/{VQJKVJS7.js → JOXPPBNA.js} +1 -1
  51. package/dist/cdn/{PDPZBGTU.js → JT5VM5N6.js} +1 -1
  52. package/dist/cdn/{UBZEWFXF.js → KB5UMMBY.js} +1 -1
  53. package/dist/cdn/{W2QTMTLL.js → KMJ2IQP7.js} +1 -1
  54. package/dist/cdn/{INECCYD7.js → KNN4G3JB.js} +1 -1
  55. package/dist/cdn/{CRUHZMGY.js → KNP746RO.js} +1 -1
  56. package/dist/cdn/{PV2PO4IS.js → KVDM5PYB.js} +1 -1
  57. package/dist/cdn/{R53ISOLY.js → LDMINI6S.js} +1 -1
  58. package/dist/cdn/{TXQMUOMN.js → LF3I5SMX.js} +1 -1
  59. package/dist/cdn/{JDAJB45A.js → LMN4NECB.js} +1 -1
  60. package/dist/cdn/{356JWED3.js → LX7TCW6T.js} +1 -1
  61. package/dist/cdn/{LQMU7V5C.js → LYGQJLFB.js} +1 -1
  62. package/dist/cdn/NKPBSSL7.js +2 -0
  63. package/dist/cdn/O3N5YFJC.js +2 -0
  64. package/dist/cdn/{BYU72SMZ.js → OK4I2WDK.js} +1 -1
  65. package/dist/cdn/{J6YHKP6I.js → OQ56CBAK.js} +1 -1
  66. package/dist/cdn/{DGU55EVX.js → ORKE6J33.js} +1 -1
  67. package/dist/cdn/{YEGRLOUM.js → OYWI5PAE.js} +1 -1
  68. package/dist/cdn/{TJZPVPM6.js → OZ5I3KXC.js} +1 -1
  69. package/dist/cdn/{CO2YXCVJ.js → PHA5DJUL.js} +1 -1
  70. package/dist/cdn/{JRJXFHCK.js → PZZLUH6L.js} +1 -1
  71. package/dist/cdn/{DWWFJ4K4.js → QM25LJL6.js} +1 -1
  72. package/dist/cdn/R3RNZJIN.js +2 -0
  73. package/dist/cdn/{TIRQ7FKE.js → RZRAOK3W.js} +1 -1
  74. package/dist/cdn/{RXFVSKL4.js → STE7V4ZZ.js} +1 -1
  75. package/dist/cdn/{6HU62XEQ.js → SX4X3IVG.js} +1 -1
  76. package/dist/cdn/U274OJKG.js +2 -0
  77. package/dist/cdn/{4C3N36J3.js → UFB3GU6S.js} +1 -1
  78. package/dist/cdn/{BBMN3YU4.js → UVHDF33O.js} +1 -1
  79. package/dist/cdn/{5IOIRPSB.js → VIO5ZC5I.js} +1 -1
  80. package/dist/cdn/{PFR6MB2U.js → VPREA6CX.js} +1 -1
  81. package/dist/cdn/VU2FAY3Y.js +2 -0
  82. package/dist/cdn/{7FSMC2TG.js → W65LLW5X.js} +1 -1
  83. package/dist/cdn/{EKHD7EQL.js → W6FPVGPJ.js} +1 -1
  84. package/dist/cdn/WLMD3CUK.js +2 -0
  85. package/dist/cdn/{GT6KWFXM.js → WSHLYTT6.js} +1 -1
  86. package/dist/cdn/{PTS74ZAY.js → WV7XTPHK.js} +1 -1
  87. package/dist/cdn/{ZUIZRQUG.js → YUZVGY4R.js} +1 -1
  88. package/dist/cdn/{Y6KFUUWA.js → ZO4IZDFT.js} +1 -1
  89. package/dist/cdn/{5XW2VK3A.js → ZRVB73KX.js} +1 -1
  90. package/dist/cdn/{KITNG4RO.js → ZZOKDSTD.js} +1 -1
  91. package/dist/cdn/index.js +1 -1
  92. package/dist/cdn/model/shared/setup-utils.js +1 -1
  93. package/dist/chunks/bar-chart-model.js +3 -3
  94. package/dist/chunks/box-plot-model.js +1 -1
  95. package/dist/chunks/index.js +96 -95
  96. package/dist/chunks/index2.js +1510 -1487
  97. package/dist/chunks/index3.js +1 -1
  98. package/dist/chunks/index4.js +1 -1
  99. package/dist/chunks/line-chart-model.js +1 -1
  100. package/dist/chunks/pie-chart-model.js +1 -1
  101. package/dist/chunks/radar-chart-model.js +397 -46
  102. package/dist/chunks/serial-chart-data.js +45 -45
  103. package/dist/chunks/utils.js +13 -11
  104. package/dist/chunks/web-component-utils.js +1 -1
  105. package/dist/components/arcgis-chart/customElement.js +2621 -2610
  106. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +2 -2
  107. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +7 -7
  108. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +5 -5
  109. package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
  110. package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
  111. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +2 -2
  112. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +2 -2
  113. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +2 -2
  114. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +2 -2
  115. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +9 -9
  116. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
  117. package/dist/components/arcgis-charts-info-modal/customElement.js +2 -2
  118. package/dist/docs/api.json +1 -1
  119. package/dist/docs/docs.json +1 -1
  120. package/dist/docs/web-types.json +1 -1
  121. package/dist/index.js +395 -394
  122. package/dist/model/radar-chart-model/radar-chart-model.d.ts +190 -0
  123. package/dist/utils/chart-config/converter/index.js +18 -18
  124. package/dist/utils/data/categorical-data/index.d.ts +2 -2
  125. package/dist/utils/defaults/index.d.ts +3 -0
  126. package/dist/utils/layer/query-features/index.d.ts +1 -0
  127. package/package.json +3 -3
  128. package/dist/cdn/2EEGLP4N.js +0 -2
  129. package/dist/cdn/4PEJNBSG.js +0 -2
  130. package/dist/cdn/53HYBRJO.js +0 -2
  131. package/dist/cdn/5E27ED2B.js +0 -2
  132. package/dist/cdn/5JY7HY6L.js +0 -2
  133. package/dist/cdn/EDYALXKT.js +0 -2
  134. package/dist/cdn/JPGRB2JX.js +0 -2
  135. package/dist/cdn/NEOAI7Q7.js +0 -3
  136. package/dist/cdn/NPRV25FK.js +0 -2
  137. package/dist/cdn/PO2S3EAI.js +0 -2
  138. package/dist/cdn/QLJQK4ET.js +0 -2
  139. package/dist/cdn/TGGLZGJB.js +0 -2
  140. package/dist/cdn/TZBDO2TG.js +0 -2
  141. package/dist/cdn/XKOKJQQD.js +0 -2
  142. package/dist/cdn/YEK7BIRE.js +0 -2
@@ -3,18 +3,208 @@ import type { SerialChartModel } from "../serial-chart-model/serial-chart-model.
3
3
  import type { ModelParams } from "../interfaces/chart-interfaces.js";
4
4
  import type { ModelTypes } from "../interfaces/common.js";
5
5
  import type { WithNegativeValuesStackedToBaseline } from "../properties/series/negative-values-stacked-to-baseline.js";
6
+ import type { WebChartTextSymbol } from "../../spec/web-chart.js";
7
+ import type { WebChartRadarChartAxisLabelsOrientation, WebChartLabelBehavior } from "../../spec/chart-object-literals.js";
6
8
  import type { ModelWithLineMarkerStyling } from "../mixins/model-with-line-marker-styling.js";
7
9
 
8
10
  export class RadarChartModel extends RadarChartModelSuperclass {
11
+ /** The radar axis labels orientation. */
12
+ accessor axisLabelsOrientation: WebChartRadarChartAxisLabelsOrientation;
13
+ /** The circular-axis field for the radar chart. */
14
+ accessor circularAxisField: string;
15
+ /** Whether the circular-axis labels are visible. */
16
+ accessor circularAxisLabelsVisibility: boolean;
17
+ /** Circular-axis title text symbol (font, color, style). */
18
+ accessor circularAxisTitleSymbol: WebChartTextSymbol | undefined;
19
+ /** The circular-axis title text. */
20
+ accessor circularAxisTitleText: string;
21
+ /** Whether the circular-axis title is visible. */
22
+ accessor circularAxisTitleVisibility: boolean;
23
+ /** Visibility of the circular line of the cursor's crosshair. */
24
+ accessor cursorCrosshairCircularLineVisibility: boolean;
25
+ /**
26
+ * Visibility of the horizontal line of the cursor's crosshair.
27
+ *
28
+ * @deprecated since 5.2. Use [cursorCrosshairCircularLineVisibility](https://developers.arcgis.com/javascript/latest/references/charts-components/model/radar-chart-model/radar-chart-model/#cursorCrosshairCircularLineVisibility) instead. This property will be removed from `RadarChartModel` in 6.0.
29
+ */
30
+ accessor cursorCrosshairHorizontalLineVisibility: boolean;
31
+ /** Visibility of the radial line of the cursor's crosshair. */
32
+ accessor cursorCrosshairRadialLineVisibility: boolean;
33
+ /**
34
+ * Visibility of the vertical line of the cursor's crosshair.
35
+ *
36
+ * @deprecated since 5.2. Use [cursorCrosshairRadialLineVisibility](https://developers.arcgis.com/javascript/latest/references/charts-components/model/radar-chart-model/radar-chart-model/#cursorCrosshairRadialLineVisibility) instead. This property will be removed from `RadarChartModel` in 6.0.
37
+ */
38
+ accessor cursorCrosshairVerticalLineVisibility: boolean;
39
+ /**
40
+ * Maximum bound set for the circular axis.
41
+ *
42
+ * `null` indicates no explicit maximum.
43
+ */
44
+ accessor maxCircularBound: number | null;
45
+ /**
46
+ * Maximum bound set for the x-axis.
47
+ *
48
+ * @deprecated since 5.2. Use [maxCircularBound](https://developers.arcgis.com/javascript/latest/references/charts-components/model/radar-chart-model/radar-chart-model/#maxCircularBound) instead. This property will be removed from `RadarChartModel` in 6.0.
49
+ */
50
+ accessor maxXBound: number | null;
51
+ /**
52
+ * Minimum bound set for the circular axis.
53
+ *
54
+ * `null` indicates no explicit minimum.
55
+ */
56
+ accessor minCircularBound: number | null;
57
+ /**
58
+ * Minimum bound set for the x-axis.
59
+ *
60
+ * @deprecated since 5.2. Use [minCircularBound](https://developers.arcgis.com/javascript/latest/references/charts-components/model/radar-chart-model/radar-chart-model/#minCircularBound) instead. This property will be removed from `RadarChartModel` in 6.0.
61
+ */
62
+ accessor minXBound: number | null;
63
+ /**
64
+ * The x-axis field for the chart.
65
+ *
66
+ * @deprecated since 5.2. Use [circularAxisField](https://developers.arcgis.com/javascript/latest/references/charts-components/model/radar-chart-model/radar-chart-model/#circularAxisField) instead. This property will be removed from `RadarChartModel` in 6.0.
67
+ */
68
+ accessor xAxisField: string;
69
+ /**
70
+ * Whether the x-axis labels are visible.
71
+ *
72
+ * @deprecated since 5.2. Use [circularAxisLabelsVisibility](https://developers.arcgis.com/javascript/latest/references/charts-components/model/radar-chart-model/radar-chart-model/#circularAxisLabelsVisibility) instead. This property will be removed from `RadarChartModel` in 6.0.
73
+ */
74
+ accessor xAxisLabelsVisibility: boolean;
75
+ /**
76
+ * X-axis title text symbol (font, color, style).
77
+ *
78
+ * @deprecated since 5.2. Use [circularAxisTitleSymbol](https://developers.arcgis.com/javascript/latest/references/charts-components/model/radar-chart-model/radar-chart-model/#circularAxisTitleSymbol) instead. This property will be removed from `RadarChartModel` in 6.0.
79
+ */
80
+ accessor xAxisTitleSymbol: WebChartTextSymbol | undefined;
81
+ /**
82
+ * The x-axis title text.
83
+ *
84
+ * @deprecated since 5.2. Use [circularAxisTitleText](https://developers.arcgis.com/javascript/latest/references/charts-components/model/radar-chart-model/radar-chart-model/#circularAxisTitleText) instead. This property will be removed from `RadarChartModel` in 6.0.
85
+ */
86
+ accessor xAxisTitleText: string;
87
+ /**
88
+ * Whether the x-axis title is visible.
89
+ *
90
+ * @deprecated since 5.2. Use [circularAxisTitleVisibility](https://developers.arcgis.com/javascript/latest/references/charts-components/model/radar-chart-model/radar-chart-model/#circularAxisTitleVisibility) instead. This property will be removed from `RadarChartModel` in 6.0.
91
+ */
92
+ accessor xAxisTitleVisibility: boolean;
93
+ /**
94
+ * Adds a circular-axis guide.
95
+ *
96
+ * @param name - The name of the guide.
97
+ * @param index - The index to insert the new guide in the list of circular-axis guides. If left `undefined`, the guide is appended to the end of the list.
98
+ */
99
+ addCircularAxisGuide(name: string, index?: number): void;
100
+ /**
101
+ * Adds a radial-axis guide.
102
+ *
103
+ * @param name - The name of the guide.
104
+ * @param index - The index to insert the new guide in the list of radial-axis guides. If left `undefined`, the guide is appended to the end of the list.
105
+ */
106
+ addRadialAxisGuide(name: string, index?: number): void;
107
+ /**
108
+ * Adds an X-axis guide.
109
+ *
110
+ * @deprecated since 5.2. Use [addCircularAxisGuide](https://developers.arcgis.com/javascript/latest/references/charts-components/model/radar-chart-model/radar-chart-model/#addCircularAxisGuide) instead. This method will be removed from `RadarChartModel` in 6.0.
111
+ * @param name - The name of the guide.
112
+ * @param index - The index to insert the new guide in the list of X-axis guides. If left `undefined`, the guide is appended to the end of the list.
113
+ */
114
+ addXAxisGuide(name: string, index?: number): void;
115
+ /**
116
+ * Adds a Y-axis guide.
117
+ *
118
+ * @deprecated since 5.2. Use [addRadialAxisGuide](https://developers.arcgis.com/javascript/latest/references/charts-components/model/radar-chart-model/radar-chart-model/#addRadialAxisGuide) instead. This method will be removed from `RadarChartModel` in 6.0.
119
+ * @param name - The name of the guide.
120
+ * @param index - The index to insert the new guide in the list of Y-axis guides. If left `undefined`, the guide is appended to the end of the list.
121
+ */
122
+ addYAxisGuide(name: string, index?: number): void;
123
+ /**
124
+ * Deletes a circular-axis guide.
125
+ *
126
+ * @param index - The index of the guide to delete in the list of circular-axis guides. If left `undefined`, the last guide in the list is deleted.
127
+ */
128
+ deleteCircularAxisGuide(index?: number): void;
129
+ /**
130
+ * Deletes a radial-axis guide.
131
+ *
132
+ * @param index - The index of the guide to delete in the list of radial-axis guides. If left `undefined`, the last guide in the list is deleted.
133
+ */
134
+ deleteRadialAxisGuide(index?: number): void;
135
+ /**
136
+ * Deletes an X-axis guide.
137
+ *
138
+ * @deprecated since 5.2. Use [deleteCircularAxisGuide](https://developers.arcgis.com/javascript/latest/references/charts-components/model/radar-chart-model/radar-chart-model/#deleteCircularAxisGuide) instead. This method will be removed from `RadarChartModel` in 6.0.
139
+ * @param index - The index of the guide to delete in the list of X-axis guides. If left `undefined`, the last guide in the list is deleted.
140
+ */
141
+ deleteXAxisGuide(index?: number): void;
142
+ /**
143
+ * Deletes a Y-axis guide.
144
+ *
145
+ * @deprecated since 5.2. Use [deleteRadialAxisGuide](https://developers.arcgis.com/javascript/latest/references/charts-components/model/radar-chart-model/radar-chart-model/#deleteRadialAxisGuide) instead. This method will be removed from `RadarChartModel` in 6.0.
146
+ * @param index - The index of the guide to delete in the list of Y-axis guides. If left `undefined`, the last guide in the list is deleted.
147
+ */
148
+ deleteYAxisGuide(index?: number): void;
149
+ /** Generate the proper circular-axis title from the current config. */
150
+ generateCircularAxisTitle(): string;
151
+ /** Generate the proper radial-axis title given the current config. */
152
+ generateRadialAxisTitle(): string;
153
+ /**
154
+ * Generate the proper x-axis title from the current config.
155
+ *
156
+ * @deprecated since 5.2. Use [generateCircularAxisTitle](https://developers.arcgis.com/javascript/latest/references/charts-components/model/radar-chart-model/radar-chart-model/#generateCircularAxisTitle) instead. This method will be removed from `RadarChartModel` in 6.0.
157
+ */
158
+ generateXAxisTitle(): string;
159
+ /**
160
+ * Generate the proper y-axis title given the current config.
161
+ *
162
+ * @deprecated since 5.2. Use [generateRadialAxisTitle](https://developers.arcgis.com/javascript/latest/references/charts-components/model/radar-chart-model/radar-chart-model/#generateRadialAxisTitle) instead. This method will be removed from `RadarChartModel` in 6.0.
163
+ */
164
+ generateYAxisTitle(): string;
165
+ /** Get the default circular-axis title text. */
166
+ getDefaultCircularAxisTitleText(): string;
167
+ /**
168
+ * Get the default x-axis title text.
169
+ *
170
+ * @deprecated since 5.2. Use [getDefaultCircularAxisTitleText](https://developers.arcgis.com/javascript/latest/references/charts-components/model/radar-chart-model/radar-chart-model/#getDefaultCircularAxisTitleText) instead. This method will be removed from `RadarChartModel` in 6.0.
171
+ */
172
+ getDefaultXAxisTitleText(): string;
173
+ /**
174
+ * Gets the horizontal axis labels behavior for the chart.
175
+ *
176
+ * @deprecated since 5.2. This method has no effect on the radar-axis labels Use [axisLabelsOrientation](https://developers.arcgis.com/javascript/latest/references/charts-components/model/radar-chart-model/radar-chart-model/#axisLabelsOrientation) instead. This method will be removed from `RadarChartModel` in 6.0.
177
+ */
178
+ getHorizontalAxisLabelsBehavior(): WebChartLabelBehavior;
179
+ /**
180
+ * Gets the vertical axis labels behavior for the chart.
181
+ *
182
+ * @deprecated since 5.2. This method does not configure radar-axis labels and has no replacement. It will be removed from `RadarChartModel` in 6.0.
183
+ */
184
+ getVerticalAxisLabelsBehavior(): WebChartLabelBehavior;
9
185
  /** Returns whether the series styling is able to be reset. */
10
186
  resetAvailable(): boolean;
11
187
  /** Resets the series styling to the default styling. */
12
188
  resetSeriesStyling(): void;
189
+ /**
190
+ * Sets the horizontal axis labels behavior for the chart.
191
+ *
192
+ * @deprecated since 5.2. This method has no effect on the radar-axis labels Use [axisLabelsOrientation](https://developers.arcgis.com/javascript/latest/references/charts-components/model/radar-chart-model/radar-chart-model/#axisLabelsOrientation) instead. This method will be removed from `RadarChartModel` in 6.0.
193
+ * @param horizontalBehavior - The behavior for the horizontal axis labels.
194
+ */
195
+ setHorizontalAxisLabelsBehavior(horizontalBehavior: WebChartLabelBehavior): void;
13
196
  /**
14
197
  * Completes the async setup process for the chart model. Must be called before using the model.
15
198
  *
16
199
  * @param params
17
200
  */
18
201
  setup(params: ModelParams<ChartConfig<typeof ModelTypes.RadarChart>>): Promise<void>;
202
+ /**
203
+ * Sets the vertical axis labels behavior for the chart.
204
+ *
205
+ * @deprecated since 5.2. This method does not configure radar-axis labels and has no replacement. It will be removed from `RadarChartModel` in 6.0.
206
+ * @param verticalBehavior - The behavior for the vertical axis labels.
207
+ */
208
+ setVerticalAxisLabelsBehavior(verticalBehavior: WebChartLabelBehavior): void;
19
209
  }
20
210
  declare const RadarChartModelSuperclass: typeof SerialChartModel & typeof ModelWithLineMarkerStyling & typeof WithNegativeValuesStackedToBaseline
@@ -1,9 +1,9 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { getElementLocale as ze } from "@arcgis/toolkit/intl/dom";
2
+ import { getElementLocale as je } from "@arcgis/toolkit/intl/dom";
3
3
  import { cloneDeep as n, isEmpty as h } from "lodash-es";
4
4
  import { DateTime as He } from "luxon";
5
5
  import { af as $e, Q as oe, Z as Qe, cs as se, cU as ne, c3 as Ye, ac as Ke, Y as O, bg as Xe, O as b, bF as ee, aG as Ze, aH as Je, m as Z, h as Ue, w as et } from "../../../chunks/index2.js";
6
- import { W as tt, ay as rt, g as it, E as ot, ae as st } from "../../../chunks/index.js";
6
+ import { W as tt, az as rt, g as it, E as ot, ae as st } from "../../../chunks/index.js";
7
7
  import { d as nt } from "../../../chunks/type-guards.js";
8
8
  import { C as f, h as k, q as ae } from "../../../chunks/index3.js";
9
9
  import { h as at, o as dt, s as lt } from "../../../chunks/index5.js";
@@ -14,7 +14,7 @@ var L = /* @__PURE__ */ ((r) => (r.NONE = "none", r.ROTATE = "rotate", r.STAGGER
14
14
  function de(r) {
15
15
  const { configToUpdate: e, chartContainer: i, layer: t } = r, o = n(e);
16
16
  if (t?.capabilities?.queryAttributeBins?.supportsFirstDayOfWeek === !0 && (!("firstDayOfWeek" in e) || e.firstDayOfWeek === void 0 || e.firstDayOfWeek === null)) {
17
- const { lang: s } = ze(i ?? document.documentElement);
17
+ const { lang: s } = je(i ?? document.documentElement);
18
18
  try {
19
19
  o.firstDayOfWeek = He.local().setLocale(s.replaceAll("_", "-")).startOf("week", { useLocaleWeeks: !0 }).weekday;
20
20
  } catch {
@@ -87,10 +87,10 @@ async function ue(r) {
87
87
  a && (s = await Ke(a, t));
88
88
  }
89
89
  if (s) {
90
- const a = O(o.series), u = B(o.series), y = o.series && o.series.length > 0 && o.series[0].x.trim() === "" || u === c.GaugeSeries && !Xe(e) || a === f.PieFromFields || a === f.BarAndLineFromFields || a === f.BoxPlotMonoField || a === f.BoxPlotMonoFieldAndSplitBy || a === f.BoxPlotMultiFields || a === f.BoxPlotMultiFieldsAndSplitBy, je = u === c.ScatterSeries || u === c.HeatSeries || a === f.BarAndLineNoAggregation || a === f.BarAndLineSplitByNoAggregation || a === f.BoxPlotMonoField || a === f.BoxPlotMonoFieldAndSplitBy || a === f.BoxPlotMonoFieldAndCategory || a === f.BoxPlotMonoFieldAndCategoryAndSplitBy || a === f.PieNoAggregation;
90
+ const a = O(o.series), u = B(o.series), y = o.series && o.series.length > 0 && o.series[0].x.trim() === "" || u === c.GaugeSeries && !Xe(e) || a === f.PieFromFields || a === f.BarAndLineFromFields || a === f.BoxPlotMonoField || a === f.BoxPlotMonoFieldAndSplitBy || a === f.BoxPlotMultiFields || a === f.BoxPlotMultiFieldsAndSplitBy, _e = u === c.ScatterSeries || u === c.HeatSeries || a === f.BarAndLineNoAggregation || a === f.BarAndLineSplitByNoAggregation || a === f.BoxPlotMonoField || a === f.BoxPlotMonoFieldAndSplitBy || a === f.BoxPlotMonoFieldAndCategory || a === f.BoxPlotMonoFieldAndCategoryAndSplitBy || a === f.PieNoAggregation;
91
91
  if (o.series = e.series.map((l) => {
92
92
  const d = { ...l };
93
- if (y || (d.x = b({ queryObject: s, fieldToMatch: l.x })), "y" in d && je) {
93
+ if (y || (d.x = b({ queryObject: s, fieldToMatch: l.x })), "y" in d && _e) {
94
94
  const m = d.y;
95
95
  if (Array.isArray(m)) {
96
96
  const S = ee({
@@ -540,13 +540,13 @@ function V(r) {
540
540
  function G(r) {
541
541
  return Me(r);
542
542
  }
543
- function _(r) {
543
+ function z(r) {
544
544
  return ge(r);
545
545
  }
546
- function j(r) {
546
+ function _(r) {
547
547
  return Ie(r);
548
548
  }
549
- function z(r) {
549
+ function j(r) {
550
550
  return We(r);
551
551
  }
552
552
  function H(r) {
@@ -571,10 +571,10 @@ function X(r) {
571
571
  let e = n(r);
572
572
  return e = mt(e), e;
573
573
  }
574
- function _e(r) {
574
+ function ze(r) {
575
575
  const { versionsToConvert: e, configToUpdate: i } = r;
576
576
  let t = n(i);
577
- return e.length > 0 && t !== void 0 && (t = De(t), e.includes(oe) || e.includes(Ye) ? (t = Ge(t), t = w(t), t = A(t), t = D(t), t = M(t), t = I(t), t = W(t), t = q(t), t = R(t), t = E(t), t = N(t), t = V(t), t = G(t), t = _(t), t = j(t), t = z(t), t = H(t), t = $(t), t = Q(t), t = Y(t), t = K(t), t = X(t)) : e.forEach((o) => {
577
+ return e.length > 0 && t !== void 0 && (t = De(t), e.includes(oe) || e.includes(Ye) ? (t = Ge(t), t = w(t), t = A(t), t = D(t), t = M(t), t = I(t), t = W(t), t = q(t), t = R(t), t = E(t), t = N(t), t = V(t), t = G(t), t = z(t), t = _(t), t = j(t), t = H(t), t = $(t), t = Q(t), t = Y(t), t = K(t), t = X(t)) : e.forEach((o) => {
578
578
  if (t !== void 0)
579
579
  switch (o) {
580
580
  case "1.0.1":
@@ -614,13 +614,13 @@ function _e(r) {
614
614
  t = G(t);
615
615
  break;
616
616
  case "16.0.0":
617
- t = _(t);
617
+ t = z(t);
618
618
  break;
619
619
  case "16.1.0":
620
- t = j(t);
620
+ t = _(t);
621
621
  break;
622
622
  case "18.1.3":
623
- t = z(t);
623
+ t = j(t);
624
624
  break;
625
625
  case "20.1.0":
626
626
  t = H(t);
@@ -649,7 +649,7 @@ async function Pt(r, e, i, t) {
649
649
  const s = $e(e);
650
650
  await s?.load({ signal: t }), o = await he({ configToUpdate: r, layer: s, chartContainer: i, abortSignal: t });
651
651
  const a = r.version ?? oe, { versionStatus: u, versions: y } = Qe(a);
652
- (u === te.Older || u === te.Unrecognized) && (o = _e({
652
+ (u === te.Older || u === te.Unrecognized) && (o = ze({
653
653
  versionsToConvert: y,
654
654
  configToUpdate: o
655
655
  }));
@@ -702,9 +702,9 @@ const Lt = {
702
702
  convertTo11x0x0: N,
703
703
  convertTo12x0x0: V,
704
704
  convertTo15x0x0: G,
705
- convertTo16x1x0: _,
706
- convertTo16x1x1: j,
707
- convertTo19x0x0: z,
705
+ convertTo16x1x0: z,
706
+ convertTo16x1x1: _,
707
+ convertTo19x0x0: j,
708
708
  convertTo20x2x0: H,
709
709
  convertTo21x1x0: $,
710
710
  convertTo23x3x0: Q,
@@ -713,7 +713,7 @@ const Lt = {
713
713
  convertTo25x1x0: X,
714
714
  convertTemporalBinningProps2: Ne,
715
715
  transformPropsInHeatChart: Ve,
716
- applyConversions: _e,
716
+ applyConversions: ze,
717
717
  convertDataSourceToILayer: ge,
718
718
  applyDefaultFirstDayOfWeek: de
719
719
  };
@@ -5,7 +5,7 @@ import type { AbortControllerKeyType } from "../../layer/query-features/interfac
5
5
  import type { ErrorStrings } from "../../localization/interfaces.js";
6
6
 
7
7
  /**
8
- * Fetches the unique values from a given field.
8
+ * Fetches the unique values from a given field and the number of features associated to each one of them.
9
9
  * /!\ Currently the results for a same split-by field might differ from a category field to another.
10
10
  * This is due to the server not being able to make a distinction in some cases between values having for
11
11
  * only difference trailing spaces (e.g. `value` and `value ` and `value `). It means it will aggregate the
@@ -27,4 +27,4 @@ export function uniqueValues(props: {
27
27
  errorStrings: ErrorStrings;
28
28
  abortKey?: AbortControllerKeyType;
29
29
  abortSignal?: AbortSignal;
30
- }): Promise<(number | string)[]>;
30
+ }): Promise<Map<number | string, number>>;
@@ -55,6 +55,9 @@ export const defaultHeatChartFields: {
55
55
  yField: string;
56
56
  };
57
57
 
58
+ /** @internal */
59
+ export const isHeatChartEmptyCell: "arcgis_charts_heat_chart_empty_cell";
60
+
58
61
  /** @internal */
59
62
  export const defaultHeatChartNumberOfBreaks: {
60
63
  min: number;
@@ -64,6 +64,7 @@ export function queryFeaturesForMatrixHeatChart(props: {
64
64
  queryObject: QueryObject;
65
65
  queryConfig: WebChartQuery;
66
66
  returnFeaturesExtent?: boolean;
67
+ returnStatisticsAggregatedIds: boolean;
67
68
  errorStrings: ErrorStrings;
68
69
  abortKey?: AbortControllerKeyType;
69
70
  abortSignal?: AbortSignal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/charts-components",
3
- "version": "5.2.0-next.50",
3
+ "version": "5.2.0-next.52",
4
4
  "description": "Reusable ArcGIS charting Web Components.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -41,8 +41,8 @@
41
41
  "luxon": "~3.7.2",
42
42
  "simple-statistics": "^7.8.8",
43
43
  "tslib": "^2.8.1",
44
- "@arcgis/lumina": "5.2.0-next.50",
45
- "@arcgis/toolkit": "5.2.0-next.50"
44
+ "@arcgis/lumina": "5.2.0-next.52",
45
+ "@arcgis/toolkit": "5.2.0-next.52"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@arcgis/core": "^5.2.0-next",
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{b as f}from"./IHO3OLL3.js";import{a as v}from"./MBL6ZAKF.js";import{i as g}from"./YEK7BIRE.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./HMBXRL4X.js";import{A as m,B as d,C as s,H as C,g as n,i as p,n as i,z as h}from"./5DUKB563.js";import"./K4APZJ2O.js";import"./BYSUABOV.js";var u={panelChildrenContainer:"panel-children-container"},$=n`.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}`,o=class extends d{constructor(){super(...arguments),this._messages=v(),this.popoverElement=h(),this.selectedSliceId="",this.open=!1,this.arcgisChartsConfigPopoverClose=i(),this.arcgisChartsConfigSlicesPopoverColorChange=i(),this.arcgisChartsConfigSlicesPopoverNameChange=i()}static{this.properties={messageOverrides:0,referenceElement:0,selectedName:1,selectedColor:0,selectedSliceId:1,placement:1,open:5}}static{this.styles=$}async reposition(){await this.popoverElement.value?.reposition()}updated(){f(this.popoverElement.value,this.open)}sliceNameChange(e){let t=e.target.value;this.selectedName!==t&&(this.selectedName=t,this.arcgisChartsConfigSlicesPopoverNameChange.emit({name:t}))}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit({selectedSliceId:this.selectedSliceId})}colorChange(e){let t=e instanceof CustomEvent?e.detail:e,[a,l,r]=t,c=g*255;this.selectedColor=[a,l,r,c],this.arcgisChartsConfigSlicesPopoverColorChange.emit({color:[a,l,r,c]})}render(){let e=this.selectedColor!==void 0?[...this.selectedColor]:void 0;return p`<div><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${m(this.popoverElement)}><calcite-panel .heading=${this._messages.sliceStyle} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${s(u.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.sliceNameChange}></calcite-input></calcite-label></div><div class=${s(u.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`}};C("arcgis-charts-config-pie-chart-slices-popover",o);export{o as ArcgisChartsConfigPieChartSlicesPopover};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as h}from"./AZHBGLOD.js";import{a as R}from"./CHZMNR2R.js";import{b as H}from"./IHO3OLL3.js";import j from"./PTS74ZAY.js";import{l as c,m as b}from"./JYC77MVD.js";import{a as x}from"./MBL6ZAKF.js";import i from"./AJ4RZPOJ.js";import e from"./53HYBRJO.js";import"./ZALJA7E5.js";import a from"./NEOAI7Q7.js";import{c as f,n as D}from"./XMV5A2VE.js";import"./BGOWDCTO.js";import{i as E,wa as _}from"./YEK7BIRE.js";import{a as A}from"./KX7KGXKQ.js";import{l as T}from"./SP2IPHWF.js";import"./HMBXRL4X.js";import{A as p,B as F,C as l,D as I,E as g,H as L,g as P,i as s,n as d,z as v}from"./5DUKB563.js";import"./QP5UAIC6.js";import"./QJMUS3VS.js";import{b as S,w as u,x as C}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([q,{Aa:N,Ba:M},,{c:$,d:y},{a:B,c:k,k:m}])=>{var z=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}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.panel{max-height:60vh}.color-ramp-popover{display:flex;flex-direction:column;gap:.75rem;min-width:320px;max-width:480px}.color-ramp-toolbar{display:flex;gap:.5rem;align-items:center;padding:5px 5px 0}.ramp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.5rem;max-height:300px;overflow:auto;padding:.25rem}.ramp-item{display:flex;flex-direction:column;border:1px solid var(--calcite-color-foreground-3);background:var(--calcite-color-foreground-1);cursor:pointer;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .12s;border-radius:2px;min-height:56px;padding:4px}.ramp-item:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}.ramp-name{font-size:.625rem;line-height:1;padding:2px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--calcite-color-text-3)}.ramp-item.selected{background-color:var(--calcite-color-brand)!important;border-color:var(--calcite-color-brand)!important;outline:2px solid var(--calcite-color-brand)!important;color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-name{color:var(--calcite-color-foreground-1)}.ramp-item.selected .ramp-strip{box-shadow:none;border:none}.ramp-strips{display:flex;flex:1;height:28px;width:100%;overflow:hidden}.ramp-strip{flex:1;min-width:0}.ramp-strip-fallback{background:repeating-linear-gradient(45deg,var(--calcite-color-foreground-3) 0,var(--calcite-color-foreground-3) 5px,var(--calcite-color-foreground-2) 5px,var(--calcite-color-foreground-2) 10px)}.ramp-empty{grid-column:1/-1;font-size:.75rem;color:var(--calcite-color-text-3)}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.color-ramp-popover-footer{display:flex;padding:.5rem}.color-ramp-popover-footer calcite-button{flex:1}`,o={name:"bar-chart-data-popover",header:"header",popoverPickList:"popover-pick-list",panel:"panel",colorRampPopover:"color-ramp-popover",colorRampToolbar:"color-ramp-toolbar",rampGrid:"ramp-grid",rampItem:"ramp-item",rampName:"ramp-name",rampStrips:"ramp-strips",rampStrip:"ramp-strip",rampStripFallback:"ramp-strip-fallback",rampEmpty:"ramp-empty",panelChildrenContainer:"panel-children-container",colorRampPopoverFooter:"color-ramp-popover-footer"},w=class extends F{constructor(){super(...arguments),this._messages=x(),this.commonStrings=x({name:"common",blocking:!0}),this.picklist=v(),this.popoverElement=v(),this.placement="leading",this.offsetDistance=-200,this.availableColorRamps=[],this.selectedCategory=y.all,this.aggregationLabels=[],this.isFlipped=!1,this.open=!1,this.layerFieldsInfo=[],this.arcgisChartsConfigHeatChartColorRampChange=d(),this.arcgisChartsConfigHeatChartDataPopoverChange=d(),this.arcgisChartsConfigPopoverClose=d(),this.arcgisChartsConfigPopoverEmptyCellColorChange=d(),this.arcgisChartsConfigPopoverEmptyCellNameChange=d()}static{this.properties={availableColorRamps:16,selectedColorRampName:16,selectedCategory:16,aggregationLabels:16,isFlipped:5,model:0,messageOverrides:0,headingTitle:1,referenceElement:0,open:5,contentKind:1,layerFieldsInfo:0,selectedContent:1,colorRamps:0}}static{this.styles=z}async reposition(){await this.popoverElement.value?.reposition()}willUpdate(){let e=k.map(t=>_(t,this.commonStrings));T(this.aggregationLabels,e)||(this.aggregationLabels=e),this.colorRamps&&this.colorRamps!==this.availableColorRamps&&(this.availableColorRamps=this.colorRamps),this.contentKind===c.colorScheme&&this.selectedContent&&!this.selectedColorRampName&&(this.selectedColorRampName=this.selectedContent)}updated(){setTimeout(()=>{this.picklist.value?.setFocus()},B.PopoverTimer),H(this.popoverElement.value,this.open)}buildAggregationListItems(){return h(k.filter(e=>e!==S.NoAggregation),e=>e,(e,t)=>s`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${m(e,this.selectedContent)}></calcite-list-item>`)}buildPickListItem(e){return R(e.name,s`<calcite-list-item .label=${D(this.layerFieldsInfo,e.name)} .value=${e.name} .selected=${m(e.name,this.selectedContent)}></calcite-list-item>`)}buildPickListItems(e){let t=this.layerFieldsInfo?.length??0,a=[];switch(e){case c.numericFields:{let i=R(" ",s`<calcite-list-item label=" " value=" " .selected=${m("",this.selectedContent)}></calcite-list-item>`);a.push(i);for(let r=0;r<t;r+=1){let n=this.layerFieldsInfo?.[r];n&&N(n)&&a.push(this.buildPickListItem(n))}break}case c.xAxisField:{for(let i=0;i<t;i+=1){let r=this.layerFieldsInfo?.[i];r&&M(r)&&a.push(this.buildPickListItem(r))}break}}return a}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}onDataContentTypeChange(e){let t=e.target.selectedItems;this.arcgisChartsConfigHeatChartDataPopoverChange.emit({contentKind:this.contentKind,value:t.map(a=>a.value)[0]}),this.open=!1}filterColorRamps(){let e=[];if(this.selectedCategory===y.all)e=this.availableColorRamps;else{let t=$[this.selectedCategory];e=this.availableColorRamps?.filter(a=>t.some(i=>a.tags.includes(i)))}return e}getRampColors(e){let t=e.colors;return this.isFlipped?[...t].reverse():t}rampColorToCss(e){let t="#000000";try{if(e){if(e instanceof q){let a=e.toHex();typeof a=="string"&&a.length&&(t=a)}else if(Array.isArray(e)){let[a,i,r,n]=e;[a,i,r].every(O=>typeof O=="number")&&(t=`rgba(${a},${i},${r},${n??1})`)}else if(typeof e=="object"&&e){let{r:a,g:i,b:r,a:n}=e;if(a!=null&&i!=null&&r!=null)return`rgba(${a},${i},${r},${n??1})`}}}catch{}return t}onCategoryDropdownSelect(e){let t=e.target.selectedItems[0]?.getAttribute("data-tag");t&&(this.selectedCategory=t)}onFlipAll(){if(this.isFlipped=!this.isFlipped,this.selectedColorRampName){let e=this.availableColorRamps.find(t=>t.name===this.selectedColorRampName);if(e){let t={...e,colors:this.getRampColors(e)};this.arcgisChartsConfigHeatChartColorRampChange.emit({rampName:e.name,ramp:t,isFlipped:this.isFlipped})}}}onRampSelect(e){this.selectedColorRampName=e.name;let t={...e,colors:this.getRampColors(e)};this.arcgisChartsConfigHeatChartColorRampChange.emit({rampName:e.name,ramp:t,isFlipped:this.isFlipped})}nameChange(e){let t=e.target.value;this.model.emptyCellText!==t&&(this.model.emptyCellText=t,this.arcgisChartsConfigPopoverEmptyCellNameChange.emit({name:t}))}colorChange(e){let t=e instanceof CustomEvent?e.detail:e,[a,i,r]=t,n=E*255;this.arcgisChartsConfigPopoverEmptyCellColorChange.emit({color:[a,i,r,n]})}renderAggregationType(){let e=this.buildAggregationListItems();return s`<calcite-list label class=${l(o.popoverPickList)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderXAxisFieldSelect(){let e=this.buildPickListItems(c.xAxisField);return s`<calcite-list label class=${l(o.popoverPickList)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderNumericFields(){let e=this.buildPickListItems(c.numericFields);return s`<calcite-list label class=${l(o.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderCalendarType(){let e=this.layerFieldsInfo.find(i=>i.name===this.model.xAxisField),t=Object.values(b).filter(i=>i!==b.WeekByDayOfWeekAndHourOfDay||e?.type!==A.DateOnly),a=h(t,i=>i,i=>{let r=this._messages[i];return s`<calcite-list-item .label=${r} .value=${i} .selected=${m(i,this.selectedContent)}></calcite-list-item>`});return s`<calcite-list label class=${l(o.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${a}</calcite-list>`}renderCalendarViewType(){let e=h(Object.values(u),t=>t,t=>{let a=this._messages[t];return s`<calcite-list-item .label=${a} .value=${t} .disabled=${t!==u.singleCalendarView} .selected=${m(t,this.selectedContent)}></calcite-list-item>`});return s`<calcite-list label class=${l(o.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${e}</calcite-list>`}renderClassBreakMethod(){let e=[{value:C.naturalBreaks,title:this._messages?.classBreaksMethod?.naturalBreaks,msg:this._messages?.classBreaksMethod?.naturalBreaksMsg},{value:C.equalInterval,title:this._messages?.classBreaksMethod?.equalInterval,msg:this._messages?.classBreaksMethod?.equalIntervalMsg},{value:C.quantile,title:this._messages?.classBreaksMethod?.quantile,msg:this._messages?.classBreaksMethod?.quantileMsg}],t=h(Object.values(e),({value:a})=>a,a=>{let{title:i,msg:r,value:n}=a;return s`<calcite-list-item .label=${i} .description=${r} .value=${n} .selected=${m(n,this.selectedContent)}></calcite-list-item>`});return s`<calcite-list label class=${l(o.popoverPickList)} selection-mode=single filter-enabled selection-appearance=border @calciteListChange=${this.onDataContentTypeChange} ${p(this.picklist)}>${t}</calcite-list>`}renderPopoverInfo(){let e;switch(this.contentKind){case c.aggregation:e=this.renderAggregationType();break;case c.numericFields:e=this.renderNumericFields();break;case c.xAxisField:e=this.renderXAxisFieldSelect();break;case c.calendarType:e=this.renderCalendarType();break;case c.calendarViewType:e=this.renderCalendarViewType();break;case c.classBreakMethod:e=this.renderClassBreakMethod();break;case c.colorScheme:e=this.renderColorRampSelect();break;case c.null:e=this.renderEmptyCellUI();break;default:e=s`<div></div>`;break}return e}renderColorRampSelect(){let e=this.filterColorRamps(),t=this._messages?.colorRampCategories?this._messages.colorRampCategories[this.selectedCategory]:this.selectedCategory;return s`<div class=${l(o.colorRampPopover)}><div class=${l(o.colorRampToolbar)}><calcite-dropdown selection-mode=single placement=bottom-start @calciteDropdownSelect=${this.onCategoryDropdownSelect}><calcite-button slot=trigger appearance=outline icon-end=chevron-down>${t}</calcite-button><calcite-dropdown-group group-title=${this._messages?.colorRamp?.allCategories??"All color ramps"??g}>${Object.keys($).map(a=>s`<calcite-dropdown-item data-tag=${a??g} .selected=${this.selectedCategory===a}>${this._messages?.colorRampCategories?this._messages.colorRampCategories[a]:a}</calcite-dropdown-item>`)}</calcite-dropdown-group></calcite-dropdown><calcite-button appearance=outline icon-start=arrow-up-down @click=${this.onFlipAll}>${this._messages?.colorRamp?.flipRampColors}</calcite-button></div><div class=${l(o.rampGrid)}>${e.length===0&&s`<div class=${l(o.rampEmpty)}>${this._messages?.colorRamp?.noRamps} ${this.selectedCategory!=="all"?`"${this.selectedCategory}"`:""}</div>`||""}${e.map(a=>{let i=this.getRampColors(a),r=a.name===this.selectedColorRampName;return s`<div class=${`${o.rampItem} ${r?"selected":""}`} title=${a.name??g} @click=${()=>this.onRampSelect(a)}><div class=${l(o.rampName)} aria-hidden=true>${a.name}</div><div class=${l(o.rampStrips)}>${h(i,n=>n,n=>s`<div class=${l(o.rampStrip)} style=${I({backgroundColor:this.rampColorToCss(n)})}></div>`)}${i.length===0&&s`<div class=${`${o.rampStrip} ${o.rampStripFallback}`}></div>`||""}</div></div>`})}</div><div class=${l(o.colorRampPopoverFooter)}><calcite-button appearance=solid kind=brand @click=${this.closePopover}>${this._messages?.colorRamp?.done}</calcite-button></div></div>`}renderEmptyCellUI(){let e=this.model.emptyCellSymbol?.color??f.grayColor,t=this.model.emptyCellText??f.nullCategory?.text??"";return s`<div><div class=${l(o.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${t} @calciteInputInput=${this.nameChange}></calcite-input></calcite-label></div><div class=${l(o.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages?.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></div>`}render(){return s`<div><calcite-popover class=${l(o.name)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .offsetDistance=${this.offsetDistance} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${p(this.popoverElement)}><calcite-panel class=${l(o.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${l(o.header)}>${this.headingTitle??""}</div>${this.renderPopoverInfo()}${void 0}</calcite-panel></calcite-popover></div>`}};L("arcgis-charts-config-heat-chart-popover",w);return w},"Color",a,e,i,j)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{q as U}from"./ZALJA7E5.js";import a from"./NEOAI7Q7.js";import{C as $,j as C,n as v,r as M}from"./XMV5A2VE.js";import{e as b}from"./BGOWDCTO.js";import{C as q,E as j,G as B,W as T,c as w,wa as V}from"./YEK7BIRE.js";import{a as k}from"./QJMUS3VS.js";import{a as g,b as y,f as L,h as A}from"./K4APZJ2O.js";export default $arcgis.t(([{substitute:E},{Ga:D,Ha:I,Jb:O,Pa:S,bb:P,na:N,za:h}])=>{function ie(i,e,a){let t=i?.axes?.[e];t?.title!==void 0?t.title.content.text=a:t!==void 0&&(t.title=j({text:a,visible:!0,font:q(w.AxisTitle)}))}function re(i){let{config:e,layerInfo:a,commonStrings:t,numericFields:r,aggregationType:s}=i,o="";if(e)if(C(e)===L.Stacked100)o=t.utilsStrings.statistics.percent;else{let n=V(s,t);if(e.series[0]?.type===g.HeatSeries)o=v(a.layerFieldsInfo,e.series[0].y);else if(r.length===1){let u=v(a.layerFieldsInfo,r[0]),f=h(a.layer).idField;s===y.NoAggregation?o=u:s===y.Count&&f!==void 0&&r[0]===f?o=t.utilsStrings.statistics.count:o=E(t.axisLabels.aggregationOfFieldName,{aggregation:n,fieldName:u})}else r.length>1&&(s===y.NoAggregation?o=t.axisLabels.values:o=E(t.axisLabels.aggregationOfValues,{aggregation:n}))}return o}var K=(i,e,a)=>i.axes?.[e]??T(a,i.type)[e],G=i=>{let{config:e,axis:a,axisIndex:t}=i;e.axes!==void 0&&(e.axes[t]=a)},se=i=>{let{config:e,axisIndex:a,isMax:t}=i,r=Number.NaN;return t?r=e.axes?.[a]?.maximum:r=e.axes?.[a]?.minimum,r??Number.NaN},H=i=>{let{config:e,value:a,axisIndex:t,isMax:r}=i,s=e?.axes?.[t];s!==void 0&&(r?s.maximum=a:s.minimum=a)},oe=i=>i.axes?.[0]?.valueFormat??B(),ne=(i,e,a)=>{let t=K(i,0,e);if(t!==void 0&&a!==void 0){let r={...t,valueFormat:a};G({config:i,axis:r,axisIndex:0})}},le=(i,e,a)=>{let t=i.axes?.[e];t!==void 0&&(t.integerOnlyValues=a)},R=i=>{let e=k(i.series);return e===g.BarSeries||e===g.ComboLineAndBarSeries||e===g.LineSeries},W=i=>{let{axisIndex:e,config:a,isMultiAxis:t}=i,r=!1;return e===0||e===1&&t?r=!0:e===2&&(r=R(a)),r},ce=i=>{let{axisIndex:e,func:a,config:t}=i;return W({axisIndex:e,config:t,isMultiAxis:!0})?a(e):void 0},J=(i,e)=>{let a,t=e.axes?.[i]?.valueFormat;return(i===0||i>=1&&U(t))&&(a=t),a},ge=i=>{let{config:e,commonStrings:a,valueFormat:t,axisIndex:r=0}=i,s=K(e,r,a);if(s!==void 0&&t!==void 0){let o={...s,valueFormat:t};G({config:e,axis:o,axisIndex:r})}},ue=(i,e)=>i.axes?.[e]?.isLogarithmic??!1,fe=i=>{let{config:e,isLogarithmic:a,axisIndex:t}=i,r=e.axes?.[t];r&&(r.isLogarithmic=a,H({config:e,value:null,axisIndex:t,isMax:!0}),H({config:e,value:null,axisIndex:t,isMax:!1}))},de=i=>{let{config:e,scrollbar:a,axisIndex:t}=i;e.axes?.[t]!==void 0&&(e.axes[t].scrollbar=a)};async function xe(i){let{config:e,layer:a,xAxisField:t,splitByField:r,layerFieldsInfo:s,aggregationFields:o,fetchNullValues:n,errorStrings:u}=i,f=s.filter(F=>F.name===r)[0]?.type,d=n!==!0?`${r} IS NOT NULL`:"",x=t&&n!==!0?`${t} IS NOT NULL`:"",{where:l}=e?.dataFilters??{},Q={where:S([l,d,x]),orderByFields:M(r)?[]:[`${r} ${A.Ascending}`],geometry:e?.dataFilters?.geometry},p="";o?.length===0?p=h(a).idField:o&&([p]=o);let m=a?b(a)?await N({layer:a,category:e?.series[0].x??"",splitByField:r}):await O({queryObject:a,category:e?.series[0].x??"",splitByField:r,queryConfig:Q,errorStrings:u}):[];if(m=m.slice(0,500),e){let F=e?.series.map(c=>P({where:c.query?.where})?.toString()??"").filter(c=>c!==void 0&&c!=="");m=$({arrayA:m,arrayB:F,getKey:c=>c===null?null:c?.toString()})}return{categoriesArray:m,splitByFieldType:f,numericalField:p}}function me(i,e){let a=e==="";for(let t of i)if(e===t.name){a=!0;break}return a}function ye(i,e){let a=D(i),t=e.length===0,r=0;for(let s of e){for(let o of a)if(s===o&&(r+=1),r===e.length){t=!0;break}if(t)break}return t}function pe(i,e){e.forEach(a=>{Object.getOwnPropertyNames(a.prototype).forEach(t=>{Object.defineProperty(i.prototype,t,Object.getOwnPropertyDescriptor(a.prototype,t)||Object.create(null))})})}async function Fe(i){let{layerInfo:e,config:a,category:t,errorStrings:r}=i,{layer:s}=e,{where:o}=a?.dataFilters??{},{fetchNullValues:n}=a?.series?.[0]?.query??{},u=n!==!0?`${t} IS NOT NULL`:"",f={where:S([o,u]),orderByFields:[],geometry:a?.dataFilters?.geometry},d;return b(s)?d=(await N({layer:s,category:t,fetchNullValues:n})).map(x=>{let l=String(x);return I({queryObject:e.layer,fieldName:t,fieldValue:l})??l}):d=(await O({queryObject:s,category:t,queryConfig:f,errorStrings:r})).map(x=>{let l=String(x);return I({queryObject:e.layer,fieldName:t,fieldValue:l})??l}),d}function ve(i){return i!==void 0&&J(0,i)?.type===g.CategoryAxisFormat&&J(1,i)?.type===g.CategoryAxisFormat}return{a:ie,b:re,c:se,d:H,e:oe,f:ne,g:le,h:ce,i:J,j:ge,k:ue,l:fe,m:de,n:xe,o:me,p:ye,q:pe,r:Fe,s:ve}},"intl",a)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a}from"./3VMHKSYP.js";import{E as u,x as f}from"./XMV5A2VE.js";import{t as g,u as m,v as p,w as n}from"./YEK7BIRE.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import{B as c,C as s,D as e,H as h,g as d,i as r}from"./5DUKB563.js";import"./QJMUS3VS.js";import"./K4APZJ2O.js";import"./BYSUABOV.js";var x=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)}:host{display:block;width:auto;height:auto;overflow:auto}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.info-modal-container{box-sizing:border-box;width:-webkit-fill-available;height:100%;display:grid;position:absolute;place-items:center;align-content:center;justify-content:center;padding:1rem;text-align:start}.info-modal-container h3.heading-true{display:flex;margin-bottom:auto;background:#0000000d;height:30px;padding:.5rem;justify-self:stretch;text-align:start;align-items:center}.info-modal-container h3.heading-false{background:#0000000d;margin-bottom:auto;text-align:start}.info-modal-container p{justify-self:stretch;text-align:start}.chart-loader-overlay{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;z-index:1001}`,l=class extends c{constructor(){super(...arguments),this.message="",this.heading="",this.showLoader=!1}static{this.properties={message:1,heading:1,showLoader:5,loaderColors:0,calciteThemeColors:0}}static{this.styles=x}render(){let o=null,t=this.loaderColors?.curtainColor??this.calciteThemeColors?.backgroundColor??g,b=this.loaderColors?.spinnerColor??this.calciteThemeColors?.spinnerColor??m,i;return this.loaderColors?.curtainColor?i=u({r:t[0],g:t[1],b:t[2],a:t[3]/255})?n:p:i=this.calciteThemeColors?.textColor??n,this.showLoader?o=r`<div class=${s(a.ChartLoaderOverlay)} style=${e({background:`rgb(${t.toString()})`,"--calcite-loader-progress-color":`rgb(${b.toString()})`})}><calcite-loader scale=s label=Loading></calcite-loader></div>`:this.message!==void 0?o=r`<div class=${s(a.InfoModalContainer)} style=${e({background:`rgb(${t.toString()})`})}><h3 class=${s(this.heading!==void 0?"heading-true":"heading-false")} style=${e({color:`rgb(${i.toString()})`})}>${this.heading}</h3><p style=${e({color:`rgb(${i.toString()})`})} .innerHTML=${f(this.message)??""}></p></div>`:o=r`<div class=${`${a.InfoModalContainer} ${a.Hide}`}></div>`,o}};h("arcgis-charts-info-modal",l);export{l as ArcgisChartsInfoModal};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as c}from"./CHZMNR2R.js";import{b as k}from"./IHO3OLL3.js";import e from"./PTS74ZAY.js";import{i as s}from"./JYC77MVD.js";import{a as $}from"./MBL6ZAKF.js";import d from"./53HYBRJO.js";import"./ZALJA7E5.js";import a from"./NEOAI7Q7.js";import{n as b}from"./XMV5A2VE.js";import"./BGOWDCTO.js";import{i as C}from"./YEK7BIRE.js";import{f as y}from"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./HMBXRL4X.js";import{A as h,B as f,C as i,H as v,g,i as t,n as p,z as m}from"./5DUKB563.js";import"./QP5UAIC6.js";import"./QJMUS3VS.js";import{c as o}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{Aa:u},,{a:P,l:S}])=>{var l={symbolPropertyPopover:"symbol-property-popover",colorPicker:"color-picker",header:"header",popoverPickList:"popover-pick-list",fieldSelectPanel:"field-select-panel",transformationPanel:"transformation-panel"},T=g`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.right{display:block;text-align:right}.inline{display:inline-flex;flex-wrap:wrap}.symbol-property-popover{min-width:300px}.symbol-property-popover .inline{align-items:center;margin-bottom:1rem;padding:0 1rem}.symbol-property-popover .inline calcite-action{margin-left:.2rem}.symbol-property-popover .inline input,.symbol-property-popover .inline select{width:4rem;margin-left:.5rem;height:24px}.symbol-property-popover .inline select{width:6rem}.symbol-property-popover .color calcite-icon{margin-left:.5rem}.symbol-property-popover .color .color-picker{padding:1rem}.header{margin:0;font-weight:bolder}.popover-pick-list{font-size:small;max-width:var(--arcgis-charts-config-popover-pick-list-max-width)}.field-select-panel{max-height:60vh}.transformation-panel{width:calc(var(--calcite-panel-width-multiplier) * 12vw);max-width:calc(var(--calcite-panel-width-multiplier) * 300px);min-width:calc(var(--calcite-panel-width-multiplier) * 150px);min-width:calc(var(--calcite-panel-width-multiplier) * 170px)}`,d=class extends f{constructor(){super(...arguments),this._messages=$(),this.picklist=m(),this.popoverElement=m(),this.layerFieldsInfo=[],this.open=!1,this.arcgisChartsConfigHistogramPopoverChange=p(),this.arcgisChartsConfigHistogramPopoverSymbolChange=p(),this.arcgisChartsConfigPopoverClose=p()}static{this.properties={messageOverrides:0,layerFieldsInfo:0,headingTitle:1,selectedNumericField:1,selectedTransformationType:1,selectedOverlaySymbol:0,selectedBinColor:0,referenceElement:0,contentKind:1,placement:1,open:5,selectedOverlaySymbolType:1}}static{this.styles=T}async reposition(){await this.popoverElement.value?.reposition()}updated(){setTimeout(()=>{this.picklist.value?.setFocus()},P.PopoverTimer),k(this.popoverElement.value,this.open)}buildPickListItems(e){let n=[];if(e===s.numericFields)for(let r=0;r<this.layerFieldsInfo?.length;r+=1){let a=this.layerFieldsInfo[r];u(a)&&n.push(c(a.name,t`<calcite-list-item .label=${b(this.layerFieldsInfo,a.name)} .value=${a.name} .selected=${this.selectedNumericField===a.name}></calcite-list-item>`))}else{let r=[c(o.None,t`<calcite-list-item .label=${this._messages.none} .value=${o.None} .selected=${this.selectedTransformationType===o.None}></calcite-list-item>`),c(o.Log,t`<calcite-list-item .label=${this._messages.log} .value=${o.Log} .selected=${this.selectedTransformationType===o.Log}></calcite-list-item>`),c(o.Sqrt,t`<calcite-list-item .label=${this._messages.sqRt} .value=${o.Sqrt} .selected=${this.selectedTransformationType===o.Sqrt}></calcite-list-item>`)];n.push(...r)}return n}getPopoverClass(){return this.contentKind===s.fillSymbol||this.contentKind===s.lineSymbol?l.symbolPropertyPopover:""}closePopover(){(this.open||this.popoverElement.value?.open===!1)&&(this.open=!1,this.arcgisChartsConfigPopoverClose.emit())}overlaySymbolChange(e){this.arcgisChartsConfigHistogramPopoverSymbolChange.emit(e.detail)}fillColorChange(e){let n=e.detail,[r,a,w]=n,x=C*255;this.arcgisChartsConfigHistogramPopoverSymbolChange.emit({type:y.SFS,color:[r,a,w,x]})}onPickListChange(e){e.target!==null&&(this.arcgisChartsConfigHistogramPopoverChange.emit({contentKind:this.contentKind,value:e.target.selectedItems[0].value}),this.open=!1)}renderFillColor(){return t`<arcgis-charts-config-color-style class=${i(l.colorPicker)} .header=${this.headingTitle??this._messages.fillColor} enable-close .open=${this.open} .selectedColor=${this.selectedBinColor?.color} @arcgisChartsConfigColorStyleChange=${this.fillColorChange} @arcgisChartsConfigColorStyleClose=${this.closePopover}></arcgis-charts-config-color-style>`}renderOverlayStyle(){return t`<arcgis-charts-config-line-style class=${i(l.colorPicker)} .open=${this.open} enable-close .header=${this.headingTitle??this._messages.lineStyle} .lineStyle=${this.selectedOverlaySymbol} @arcgisChartsConfigLineStyleClose=${this.closePopover} @arcgisChartsConfigLineStyleChange=${this.overlaySymbolChange}></arcgis-charts-config-line-style>`}renderFieldSelect(){let e=this.buildPickListItems(s.numericFields);return t`<calcite-panel class=${i(l.fieldSelectPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${i(l.header)}>${this._messages.numericalFieldHeader}</div><calcite-list label selection-mode=single selection-appearance=border class=${i(l.popoverPickList)} filter-enabled @calciteListChange=${this.onPickListChange} ${h(this.picklist)}>${e}</calcite-list></calcite-panel>`}renderTransformationSelect(){let e=this.buildPickListItems(s.transformation);return t`<calcite-panel class=${i(l.transformationPanel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${i(l.header)}>${this._messages.transformationHeader}</div><calcite-list label selection-mode=single selection-appearance=border class=${i(l.popoverPickList)} @calciteListChange=${this.onPickListChange}>${e}</calcite-list></calcite-panel>`}render(){return t`<div><calcite-popover class=${i(this.getPopoverClass())} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} .offsetDistance=${S(this.placement)} label auto-close ${h(this.popoverElement)}>${this.renderContentType()}</calcite-popover></div>`}renderContentType(){switch(this.contentKind){case s.fillSymbol:return this.renderFillColor();case s.lineSymbol:return this.renderOverlayStyle();case s.numericFields:return this.renderFieldSelect();case s.transformation:return this.renderTransformationSelect();default:return}}};v("arcgis-charts-config-histogram-popover",d);return d},a,d,e)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as n}from"./MBL6ZAKF.js";import"./HMBXRL4X.js";import{B as i,C as l,H as r,g as o,i as a,n as t}from"./5DUKB563.js";import"./BYSUABOV.js";var c={colorStyleContainer:"color-style-container"},h=o`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{overflow-y:auto;width:min-content}:host calcite-panel .color-style-container{display:flex;padding:0 1rem;margin-top:1rem}:host calcite-panel .color-style-container calcite-label{flex:1 1 0px;display:flex;width:0px}.color-styling-panel>.panel-body{padding:var(--arcgis-charts-panel-padding);margin-top:var(--arcgis-charts-inter-section-margin)}`,s=class extends i{constructor(){super(...arguments),this._messages=n(),this.open=!1,this.enableClose=!1,this.arcgisChartsConfigColorStyleChange=t(),this.arcgisChartsConfigColorStyleClose=t()}static{this.properties={messageOverrides:0,header:1,selectedColor:0,open:5,enableClose:5}}static{this.styles=h}closePanel(e){e.target.closed&&this.enableClose&&(this.open=!1,this.arcgisChartsConfigColorStyleClose.emit())}colorChange(e){this.selectedColor=e.detail,this.arcgisChartsConfigColorStyleChange.emit(this.selectedColor)}render(){return a`<calcite-panel .heading=${this.header??this._messages.header} .closed=${!this.open} .closable=${this.enableClose} @calcitePanelClose=${this.closePanel}><div class=${l(c.colorStyleContainer)}><arcgis-charts-config-colors @arcgisColorSelect=${this.colorChange} .rgba=${this.selectedColor}></arcgis-charts-config-colors></div></calcite-panel>`}};r("arcgis-charts-config-color-style",s);export{s as ArcgisChartsConfigColorStyle};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{b as f}from"./IHO3OLL3.js";import{a as v}from"./MBL6ZAKF.js";import{i as g}from"./YEK7BIRE.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./HMBXRL4X.js";import{A as m,B as d,C as i,H as C,g as c,i as p,n as s,z as h}from"./5DUKB563.js";import"./K4APZJ2O.js";import"./BYSUABOV.js";var u={panelChildrenContainer:"panel-children-container"},x=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}`,o=class extends d{constructor(){super(...arguments),this._messages=v(),this.popoverElement=h(),this.open=!1,this.arcgisChartsConfigPopoverClose=s(),this.arcgisChartsConfigSeriesPopoverColorChange=s(),this.arcgisChartsConfigSeriesPopoverNameChange=s()}static{this.properties={messageOverrides:0,referenceElement:0,selectedName:1,selectedColor:0,selectedSeriesIndex:9,placement:1,open:5,nullCategory:0}}static{this.styles=x}async reposition(){await this.popoverElement.value?.reposition()}updated(){f(this.popoverElement.value,this.open)}seriesNameChange(e){let t=e.target.value;this.selectedName!==t&&(this.selectedName=t,this.arcgisChartsConfigSeriesPopoverNameChange.emit({name:t}))}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit({selectedSeriesIndex:this.selectedSeriesIndex??-1})}colorChange(e){let t=e instanceof CustomEvent?e.detail:e,[a,r,l]=t,n=g*255;this.selectedColor=[a,r,l,n],this.arcgisChartsConfigSeriesPopoverColorChange.emit({color:[a,r,l,n]})}render(){let e=this.nullCategory?.symbol?.color??this.selectedColor,t=this.nullCategory?.text??this.selectedName;return p`<div><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .open=${this.open} @calcitePopoverClose=${this.closePopover} label auto-close ${m(this.popoverElement)}><calcite-panel .heading=${this._messages.seriesElement} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${i(u.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${t} @calciteInputInput=${this.seriesNameChange}></calcite-input></calcite-label></div><div class=${i(u.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`}};C("arcgis-charts-config-bar-chart-series-popover",o);export{o as ArcgisChartsConfigBarChartSeriesPopover};