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

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 (66) hide show
  1. package/dist/cdn/{JBFVGQSP.js → 46PXO7ZC.js} +1 -1
  2. package/dist/cdn/{5MPXETTU.js → 4ITNOJXC.js} +1 -1
  3. package/dist/cdn/{QTSF2LK7.js → 5JXEO4VE.js} +1 -1
  4. package/dist/cdn/{XM2GVJT3.js → DQXO7PWX.js} +1 -1
  5. package/dist/cdn/FHBCVW5T.js +2 -0
  6. package/dist/cdn/{ZLXYBOM3.js → JUON3AJY.js} +1 -1
  7. package/dist/cdn/LIBE4XVH.js +2 -0
  8. package/dist/cdn/MI6AKTXQ.js +2 -0
  9. package/dist/cdn/MPGHOXLW.js +2 -0
  10. package/dist/cdn/MU6ZYADT.js +2 -0
  11. package/dist/cdn/ONKEO3Z2.js +2 -0
  12. package/dist/cdn/{BXBY6D2F.js → OT7PLFBK.js} +1 -1
  13. package/dist/cdn/PBO5VH6A.js +2 -0
  14. package/dist/cdn/{6DOANSRL.js → Q5OFF4FE.js} +1 -1
  15. package/dist/cdn/{5EYVH3PA.js → TQYJM66E.js} +1 -1
  16. package/dist/cdn/{Z3LGGHZN.js → TU3LYEK3.js} +1 -1
  17. package/dist/cdn/TVG7KD3H.js +2 -0
  18. package/dist/cdn/{A36KQ6YP.js → VM4XLVMS.js} +1 -1
  19. package/dist/cdn/VPYL3RVN.js +2 -0
  20. package/dist/cdn/WSL76GA5.js +2 -0
  21. package/dist/cdn/{Y2WHHAAA.js → X3S4M6JL.js} +1 -1
  22. package/dist/cdn/XV4LD73L.js +2 -0
  23. package/dist/cdn/index.js +1 -1
  24. package/dist/cdn/model/shared/setup-utils.js +1 -1
  25. package/dist/chunks/bar-chart-model.js +10 -10
  26. package/dist/chunks/box-plot-data.js +271 -279
  27. package/dist/chunks/box-plot-model.js +161 -146
  28. package/dist/chunks/chart-model.js +1 -1
  29. package/dist/chunks/combo-bar-line-chart-model.js +12 -12
  30. package/dist/chunks/gauge-model.js +1 -1
  31. package/dist/chunks/heat-chart-model.js +25 -25
  32. package/dist/chunks/histogram-model.js +1 -1
  33. package/dist/chunks/line-chart-model.js +11 -11
  34. package/dist/chunks/model-with-x-guides.js +5 -5
  35. package/dist/chunks/model-with-y-guides.js +33 -48
  36. package/dist/chunks/pie-chart-data.js +165 -189
  37. package/dist/chunks/pie-chart-model.js +9 -9
  38. package/dist/chunks/radar-chart-model.js +7 -7
  39. package/dist/chunks/scatterplot-model.js +1 -1
  40. package/dist/chunks/serial-chart-data.js +745 -769
  41. package/dist/chunks/serial-chart-model.js +19 -11
  42. package/dist/chunks/utils.js +9 -9
  43. package/dist/chunks/x-bounds.js +1 -1
  44. package/dist/components/arcgis-chart/customElement.d.ts +53 -11
  45. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +67 -68
  46. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -5
  47. package/dist/docs/api.json +1 -1
  48. package/dist/docs/docs.json +1 -1
  49. package/dist/docs/vscode.html-custom-data.json +1 -1
  50. package/dist/docs/web-types.json +1 -1
  51. package/dist/model/box-plot-model/box-plot-model.d.ts +7 -1
  52. package/dist/model/heat-chart-model/heat-chart-model.d.ts +20 -0
  53. package/dist/model/mixins/model-with-multi-axes.d.ts +61 -98
  54. package/dist/model/serial-chart-model/serial-chart-model.d.ts +12 -1
  55. package/package.json +3 -3
  56. package/dist/cdn/3UHXOKCR.js +0 -2
  57. package/dist/cdn/6PIQ2O5S.js +0 -2
  58. package/dist/cdn/7CMQGTU6.js +0 -2
  59. package/dist/cdn/EBSQRCQQ.js +0 -2
  60. package/dist/cdn/EDVN42ME.js +0 -2
  61. package/dist/cdn/H2EMIJME.js +0 -2
  62. package/dist/cdn/JEVWE6ER.js +0 -2
  63. package/dist/cdn/O3DJD5IR.js +0 -2
  64. package/dist/cdn/V5W5LNFT.js +0 -2
  65. package/dist/cdn/XKZ44LA2.js +0 -2
  66. package/dist/cdn/YVSZN6IH.js +0 -2
@@ -4,30 +4,18 @@ import type { WebChartLabelBehavior } from "../../spec/chart-object-literals.js"
4
4
  import type { ISimpleLineSymbol } from "../../spec/rest-js-types.js";
5
5
 
6
6
  export abstract class ModelWithMultiAxes extends ChartModel {
7
- /**
8
- * Cursor crosshair from the chart config.
9
- *
10
- * **Note:** To set the cursor crosshair for the secondary Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
11
- */
7
+ /** Gets the cursor crosshair. */
12
8
  accessor cursorCrosshair: WebChartCursorCrosshair | undefined;
13
9
  /**
14
- * Visibility of the horizontal line of the cursor's crosshair.
10
+ * Gets the visibility of the horizontal line of the cursor's crosshair.
15
11
  * - If the cursor crosshair or its horizontal line visibility is not set, the default value of `false` will be returned.
16
- *
17
- * **Note:** To set the cursor crosshair horizontal line visibility for the secondary Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
18
12
  */
19
13
  accessor cursorCrosshairHorizontalLineVisibility: boolean;
20
- /**
21
- * Style of the cursor's crosshair from the chart config.
22
- *
23
- * **Note:** To set the cursor crosshair style for the secondary Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
24
- */
14
+ /** Gets the style of the cursor's crosshair. */
25
15
  accessor cursorCrosshairStyle: ISimpleLineSymbol | undefined;
26
16
  /**
27
- * Visibility of the vertical line of the cursor's crosshair.
17
+ * Gets the visibility of the vertical line of the cursor's crosshair.
28
18
  * - If the cursor crosshair or its vertical line visibility is not set, the default value of `false` will be returned.
29
- *
30
- * **Note:** To set the cursor crosshair vertical line visibility for the secondary Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
31
19
  */
32
20
  accessor cursorCrosshairVerticalLineVisibility: boolean;
33
21
  /** Generate the proper y-axis title from the current config. */
@@ -35,14 +23,13 @@ export abstract class ModelWithMultiAxes extends ChartModel {
35
23
  /**
36
24
  * Gets the visibility of the specified axis labels.
37
25
  *
38
- * @param axisIndex - axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
39
- * @returns {boolean}
26
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
40
27
  */
41
28
  getAxisLabelsVisibility(axisIndex: number): boolean;
42
29
  /**
43
30
  * Gets the scrollbar configuration for the specified axis.
44
31
  *
45
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
32
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
46
33
  */
47
34
  getAxisScrollbar(axisIndex: number): WebChartAxisScrollBar | undefined;
48
35
  /**
@@ -54,54 +41,50 @@ export abstract class ModelWithMultiAxes extends ChartModel {
54
41
  /**
55
42
  * Gets the title text of the specified axis.
56
43
  *
57
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
44
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
58
45
  */
59
46
  getAxisTitleText(axisIndex: number): string;
60
47
  /**
61
48
  * Gets the visibility of the specified axis title.
62
49
  *
63
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
50
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
64
51
  */
65
52
  getAxisTitleVisibility(axisIndex: number): boolean;
66
53
  /**
67
54
  * Gets the value format for the specified axis.
68
55
  *
69
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
56
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
70
57
  */
71
58
  getAxisValueFormat(axisIndex: number): CategoryFormatOptions | DateTimeFormatOptions | NumberFormatOptions | undefined;
72
59
  /**
73
60
  * Gets the visibility of the specified axis.
74
61
  *
75
- * @param axisIndex - axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
76
- * @returns {boolean}
62
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
77
63
  */
78
64
  getAxisVisibility(axisIndex: number): boolean;
79
65
  /**
80
66
  * Gets the buffer setting for the specified axis.
81
- * - This setting is only applicable to the axis of type ValueAxis.
82
- * - To get the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
67
+ * - This setting is only applicable to the axis of type `ValueAxis`.
83
68
  * - If the `buffer` is not set on the axis, the default value of `false` will be returned.
84
69
  *
85
- * @param axisIndex - The index of the axis
70
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
86
71
  */
87
72
  getBuffer(axisIndex: number): boolean;
88
73
  /** Get the default x-axis title text. */
89
74
  getDefaultXAxisTitleText(): string;
90
75
  /**
91
76
  * Gets the display cursor tooltip setting for the specified axis.
92
- * - To get the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
93
- * - If the displayCursorTooltip is not set on the axis, the default value of `false` will be returned.
77
+ * - If `displayCursorTooltip` is not set on the axis, the default value of `false` will be returned.
94
78
  *
95
- * @param axisIndex - The index of the axis to get the display cursor tooltip for.
79
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
96
80
  */
97
81
  getDisplayCursorTooltip(axisIndex: number): boolean;
98
82
  /**
99
83
  * Gets the display zero line setting for the specified axis.
100
- * - This setting is only applicable to the axis of type ValueAxis.
101
- * - To get the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
102
- * - If the displayZeroLine is not set on the axis, the default value of `false` will be returned.
84
+ * - This setting is only applicable to the axis of type `ValueAxis`.
85
+ * - If the `displayZeroLine` is not set on the axis, the default value of `false` will be returned.
103
86
  *
104
- * @param axisIndex - The index of the axis to get the display zero line for.
87
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
105
88
  */
106
89
  getDisplayZeroLine(axisIndex: number): boolean;
107
90
  /** Gets the grid lines symbol. Contains styling information such as line width, line style, and line color. */
@@ -110,196 +93,176 @@ export abstract class ModelWithMultiAxes extends ChartModel {
110
93
  getHorizontalAxisLabelsBehavior(): WebChartLabelBehavior;
111
94
  /**
112
95
  * Gets the integer only values setting for the specified axis.
113
- * - This setting is only applicable to the axis of type ValueAxis.
114
- * - To get the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
96
+ * - This setting is only applicable to the axis of type `ValueAxis`.
115
97
  * - If the `integerOnlyValues` is not set on the axis, the default value of `false` will be returned.
116
98
  *
117
- * @param axisIndex - The index of the axis
99
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
118
100
  */
119
101
  getIntegerOnlyValues(axisIndex: number): boolean;
120
102
  /**
121
103
  * Gets whether logarithmic scale is enabled for the specified axis.
122
- * - `true`: Logarithmic scale is enabled for the specified axis.
123
- * - `false`: Logarithmic scale is disabled for the specified axis.
124
104
  *
125
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
105
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
126
106
  */
127
107
  getLogarithmic(axisIndex: number): boolean;
128
108
  /**
129
109
  * Gets the maximum bound for the specified axis.
130
110
  *
131
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
111
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
132
112
  */
133
113
  getMaxBound(axisIndex: number): number;
134
114
  /**
135
115
  * Gets the minimum bound for the specified axis.
136
116
  *
137
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
117
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
138
118
  */
139
119
  getMinBound(axisIndex: number): number;
140
120
  /**
141
121
  * Gets the tick spacing setting for the specified axis.
142
- * - To get the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
143
122
  *
144
- * @param axisIndex - The index of the axis
123
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
145
124
  */
146
125
  getTickSpacing(axisIndex: number): number | undefined;
147
126
  /** Gets the vertical axis labels behavior for the chart. */
148
127
  getVerticalAxisLabelsBehavior(): WebChartLabelBehavior;
149
128
  /**
150
129
  * Sets the visibility of the specified axis labels.
151
- * **Note:** The labels visibility for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
152
130
  *
153
- * @param isVisible - isVisible The visibility state for the axis labels.
154
- * @param axisIndex - axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
131
+ * @param isVisible - The visibility state for the axis labels.
132
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
155
133
  */
156
134
  setAxisLabelsVisibility(isVisible: boolean, axisIndex: number): void;
157
135
  /**
158
136
  * Sets the scrollbar configuration for the specified axis.
159
- * **Note:** The scrollbar configuration for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
160
137
  *
161
138
  * @param scrollbar - The scrollbar configuration to set.
162
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
139
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
163
140
  */
164
141
  setAxisScrollbar(scrollbar: WebChartAxisScrollBar, axisIndex: number): void;
165
142
  /**
166
143
  * Sets the title text symbol for the specified axis. Contains styling information such as font, color, and symbol style.
167
- * **Note:** The title text symbol for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
168
144
  *
169
145
  * @param titleSymbol - The title text symbol to set.
170
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
146
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
171
147
  */
172
148
  setAxisTitleSymbol(titleSymbol: WebChartTextSymbol | undefined, axisIndex: number): void;
173
149
  /**
174
150
  * Sets the title text for the specified axis.
175
- * **Note:** The title text for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
176
151
  *
177
152
  * @param titleText - The title text for the axis.
178
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
153
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
179
154
  */
180
155
  setAxisTitleText(titleText: string, axisIndex: number): void;
181
156
  /**
182
157
  * Sets the visibility of the specified axis title.
183
- * **Note:** The title visibility for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
184
158
  *
185
159
  * @param isVisible - The visibility state for the axis title.
186
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
160
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
187
161
  */
188
162
  setAxisTitleVisibility(isVisible: boolean, axisIndex: number): void;
189
163
  /**
190
164
  * Sets the value format for the specified axis.
191
- * **Note:** The value format for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
192
165
  *
193
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
166
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
194
167
  * @param valueFormat - The value format to set.
195
168
  */
196
169
  setAxisValueFormat(axisIndex: number, valueFormat?: CategoryFormatOptions | DateTimeFormatOptions | NumberFormatOptions): void;
197
170
  /**
198
171
  * Sets the visibility of the specified axis.
199
- * **Note:** The visibility for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
200
172
  *
201
- * @param isVisible - isVisible The visibility state for the axis.
202
- * @param axisIndex - axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
173
+ * @param isVisible - The visibility state for the axis.
174
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
203
175
  */
204
176
  setAxisVisibility(isVisible: boolean, axisIndex: number): void;
205
177
  /**
206
178
  * Sets the buffer for the specified axis.
207
- * - This setting is only applicable to the axis of type ValueAxis.
208
- * - To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
209
- *
210
- * **Note:** To set the buffer for the secondary Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
179
+ * - This setting is only applicable to the axis of type `ValueAxis`.
211
180
  *
212
- * @param buffer - The setting for the buffer
213
- * @param axisIndex - The index of the axis
181
+ * @param buffer - The setting for the buffer.
182
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
214
183
  */
215
184
  setBuffer(buffer: boolean, axisIndex: number): void;
216
185
  /**
217
186
  * Sets the display cursor tooltip setting for the specified axis.
218
- * - To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
219
- *
220
- * **Note:** To set the display cursor tooltip for the secondary Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
221
187
  *
222
188
  * @param displayCursorTooltip - The display cursor tooltip setting for the axis.
223
- * @param axisIndex - The index of the axis to set the display cursor tooltip for.
189
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
224
190
  */
225
191
  setDisplayCursorTooltip(displayCursorTooltip: boolean, axisIndex: number): void;
226
192
  /**
227
193
  * Sets the display zero line setting for the specified axis.
228
- *
229
- * - This setting is only applicable to the axis of type ValueAxis.
230
- * - To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
231
- *
232
- * **Note:** To set the display zero line for the secondary Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
194
+ * - This setting is only applicable to the axis of type `ValueAxis`.
233
195
  *
234
196
  * @param displayZeroLine - The display zero line setting for the axis.
235
- * @param axisIndex - The index of the axis to set the display zero line for.
197
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
236
198
  */
237
199
  setDisplayZeroLine(displayZeroLine: boolean, axisIndex: number): void;
238
200
  /**
239
201
  * Sets the grid lines symbol. Contains styling information such as line width, line style, and line color.
240
- * **Note:** To set the grid lines symbol for the secondary Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
241
202
  *
242
203
  * @param linesSymbol - The grid lines symbol.
243
204
  * @param axisIndices - The indices of the axes to set the grid lines symbol for. If omitted, the symbol is applied to all axes.
205
+ * @example
206
+ * ```ts
207
+ * // Set the grid lines symbol for all axes since `axisIndices` is omitted
208
+ * chartModel.setGridLinesSymbol(
209
+ * {
210
+ * type: "esriSLS",
211
+ * style: "esriSLSDashDot",
212
+ * color: [0, 0, 128, 255],
213
+ * width: 3,
214
+ * }
215
+ * );
216
+ * ```
217
+ *
218
+ * ![setGridLinesSymbol](https://developers.arcgis.com/javascript/latest/assets/references/components/chart/setGridLinesSymbol.avif)
219
+ * @see [Styling with charts model](https://developers.arcgis.com/javascript/latest/charts/features-and-capabilities/styling-and-theming/#styling-with-charts-model)
244
220
  */
245
221
  setGridLinesSymbol(linesSymbol: ISimpleLineSymbol | undefined, axisIndices?: number[]): void;
246
222
  /**
247
223
  * Sets the horizontal axis labels behavior for the chart.
248
- * **Note:** The horizontal axis labels behavior for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
249
224
  *
250
225
  * @param horizontalBehavior - The behavior for the horizontal axis labels.
251
226
  */
252
227
  setHorizontalAxisLabelsBehavior(horizontalBehavior: WebChartLabelBehavior): void;
253
228
  /**
254
229
  * Sets the integer only values setting for the specified axis.
255
- * - This setting is only applicable to the axis of type ValueAxis.
256
- * - To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
257
- *
258
- * **Note:** To set the integer only values for the secondary Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
230
+ * - This setting is only applicable to the axis of type `ValueAxis`.
259
231
  *
260
- * @param integerOnlyValues - The boolean value to set for the integer only values setting
261
- * @param axisIndex - The index of the axis
232
+ * @param integerOnlyValues - The boolean value to set for the integer only values setting.
233
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
262
234
  */
263
235
  setIntegerOnlyValues(integerOnlyValues: boolean, axisIndex: number): void;
264
236
  /**
265
237
  * Sets whether logarithmic scale is enabled for the specified axis.
266
- * - `true`: Enable logarithmic scale for the specified axis.
267
- * - `false`: Disable logarithmic scale for the specified axis.
268
- *
269
- * **Note:** The logarithmic scale for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
270
238
  *
271
239
  * @param isLogarithmic - Whether to enable logarithmic scale for the specified axis.
272
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
240
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
273
241
  */
274
242
  setLogarithmic(isLogarithmic: boolean, axisIndex: number): void;
275
243
  /**
276
244
  * Sets the maximum bound for the specified axis.
277
- * **Note:** The maximum bound for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
278
245
  *
279
246
  * @param newMaxBound - The value to set as the maximum bound.
280
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
247
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
281
248
  */
282
249
  setMaxBound(newMaxBound: number | null, axisIndex: number): void;
283
250
  /**
284
251
  * Sets the minimum bound for the specified axis.
285
- * **Note:** The minimum bound for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
286
252
  *
287
253
  * @param newMinBound - The value to set as the minimum bound.
288
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
254
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
289
255
  */
290
256
  setMinBound(newMinBound: number | null, axisIndex: number): void;
291
257
  /**
292
258
  * Sets the tick spacing for the specified axis.
293
- * - To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
294
- * **Note:** To set the tick spacing for the secondary Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
295
259
  *
296
- * @param tickSpacing - The value to set for the tick spacing
297
- * @param axisIndex - The index of the axis
260
+ * @param tickSpacing - The value to set for the tick spacing.
261
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
298
262
  */
299
263
  setTickSpacing(tickSpacing: number, axisIndex: number): void;
300
264
  /**
301
265
  * Sets the vertical axis labels behavior for the chart.
302
- * **Note:** The vertical axis labels behavior for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
303
266
  *
304
267
  * @param verticalBehavior - The behavior for the vertical axis labels.
305
268
  */
@@ -107,6 +107,8 @@ export abstract class SerialChartModel extends SerialChartModelSuperclass {
107
107
  * @param toIndex - Index to move the series to.
108
108
  */
109
109
  moveSeries(fromIndex: number, toIndex: number): void;
110
+ /** Rebuilds the series based on the current configuration. */
111
+ rebuildSeries(): Promise<void>;
110
112
  /**
111
113
  * Sets whether the series should be assigned to the second value axis.
112
114
  *
@@ -146,6 +148,11 @@ export abstract class SerialChartModel extends SerialChartModelSuperclass {
146
148
  *
147
149
  * @param assign - The value for the setting.
148
150
  * @param seriesIndex - The index of the series.
151
+ * @example
152
+ * ```ts
153
+ * chartModel.setSeriesToSecondaryYAxis(true, 0); // Assigns the first series to the secondary y-axis
154
+ * chartModel.setSeriesToSecondaryYAxis(false, 1); // Removes the second series from the secondary y-axis
155
+ * ```
149
156
  */
150
157
  setSeriesToSecondaryYAxis(assign: boolean, seriesIndex: number): void;
151
158
  /**
@@ -155,7 +162,11 @@ export abstract class SerialChartModel extends SerialChartModelSuperclass {
155
162
  * @param orderByList - The list of category's values to order by.
156
163
  */
157
164
  setSortOrder(newSortOrder: HeatChartDataSortingKinds | SerialChartDataSortingKinds, orderByList?: string[]): void;
158
- /** Updates the series based on the layer filter. */
165
+ /**
166
+ * Updates the series based on the layer filter.
167
+ *
168
+ * @deprecated since 5.2. Use [rebuildSeries](https://developers.arcgis.com/javascript/latest/references/charts-components/model/serial-chart-model/serial-chart-model/#rebuildSeries) instead.
169
+ */
159
170
  updateSeriesFromLayerFilter(): void;
160
171
  }
161
172
  declare const SerialChartModelSuperclass: typeof ChartModel & typeof WithTimeZone & typeof WithGenerateXAxisTitle & typeof WithAxisLinesSymbol & typeof WithAxisLabelsSymbol & typeof WithXAxisTitleSymbol & typeof WithXBounds & typeof WithXAxisTitleVisibility & typeof WithXAxisLabelsVisibility & typeof WithXAxisTitleText & typeof ModelWithTemporalBinning & typeof ModelWithYGuides & typeof ModelWithXGuides & typeof WithDataLabelsSymbol & typeof WithDataLabelsVisibility & typeof WithRotatedState & typeof WithColorMatch & typeof ModelWithTooltips & typeof ModelWithLegend & typeof ModelWithMultiAxes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/charts-components",
3
- "version": "5.2.0-next.60",
3
+ "version": "5.2.0-next.61",
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.60",
45
- "@arcgis/toolkit": "5.2.0-next.60"
44
+ "@arcgis/lumina": "5.2.0-next.61",
45
+ "@arcgis/toolkit": "5.2.0-next.61"
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 e from"./J3CL6KB6.js";import d from"./JYITKARU.js";import c from"./TEWEPSIO.js";import{c as T}from"./WMUPNT4Q.js";import b from"./54W4C75M.js";import a from"./V6LKZUEZ.js";import{n as B}from"./H57XAQPI.js";import{Ga as H,I as J,J as oe,K as ie,S as D,T as _,ba as re,fa as G,n as j,p as I}from"./SCU3SBSN.js";import{a as ee}from"./KX7KGXKQ.js";import{d as z,g as E,k as X,l as Y}from"./SP2IPHWF.js";import{b as m}from"./QP5UAIC6.js";import{a as f,h,v as u}from"./K4APZJ2O.js";export default $arcgis.t(([{substitute:P},{Da:se,Dc:te,Fa:K,cb:A,kb:ne,rb:O,vb:le},{a:L,d:R,e:Z,f:ae,n:ce,r:ye},{a:de},{b:C},{i:N}])=>{var We=(o,e)=>e?.series?.[o]?.name,Xe=(o,e,i)=>{let r=i;r?.series?.[e]!==void 0&&(r.series[e].name=o)},Ye=(o,e)=>{let i,r=e.series?.[o];return r?.type===f.BoxPlotSeries?i=r.fillSymbol?.color:r?.type===f.LineSeries&&(i=r.lineSymbol?.color),i},Fe=o=>{let e=o.series[0];return o.showMean===!0&&A(e)?e.fillSymbol?.color:void 0},Ie=(o,e)=>{let i=e.series[0];e.showMean===!0&&A(i)&&(i.fillSymbol!==void 0?i.fillSymbol.color=o:i.fillSymbol={...D(),color:o})},eo=(o,e,i)=>{let r=i?.series?.[e];r?.type===f.BoxPlotSeries&&r.fillSymbol!==void 0?r.fillSymbol.color=o:r?.type===f.LineSeries&&r.lineSymbol!==void 0&&(r.lineSymbol.color=o,r.markerSymbol!==void 0&&(r.markerSymbol.color=o))},ve=o=>o.series.map(e=>e.id),Be=(o,e)=>{e?.series?.sort((i,r)=>o.findIndex(s=>i.id===s)-o.findIndex(s=>r.id===s))},oo=(o,e,i)=>{let r=ve(i),[s]=r.splice(o,1);r.splice(e,0,s),Be(r,i)},io=o=>Q(o)?o.series.findIndex(e=>e.type===f.BoxPlotSeries):-1;function Me(o,e,i){let r=be(o,e,i),s=de(o),n=C(o);return r===s||n}function me(o,e,i){let r=k(o,e,i),s=T(1,o),n=C(o);return r===s||n}function Ae(o){let{config:e,layerInfo:i,newCategory:r}=o,{layerFieldsInfo:s}=i,n=M(e),t=r!==I?B(s,n):"",l=T(0,e),a=C(e);return t===l||a||l.trim()===""}var M=o=>O(o)?.x??I,Oe=z(o=>{let e=O(o),i=e?.query?.where?.split("=")[0].trim()??"";return le(e?.query?.where)?"":i},o=>O(o)?.query?.where),fe=z(o=>te(o?.series).filter(e=>e!==""),o=>o?.series),V=o=>{let{category:e,seriesIndex:i,y:r,commonStrings:s}=o,n={...G(s,i),x:e===void 0||e===""?I:e,y:r,query:{}};return E(n)},Le=o=>{let{category:e,seriesIndex:i,y:r,commonStrings:s}=o,n={...re({commonStrings:s,seriesIndex:i}),x:e===void 0||e===""?I:e,y:r,query:{}};return E(n)};function ge(o){let{x:e,y:i,seriesTemplate:r,commonStrings:s}=o,{id:n,fillSymbol:t}=r??{},l=G(s),a=n??`series_${Date.now()}`;return l.id=a,l.name=a,l.x=e,l.y=i,t?l.fillSymbol=t:l.fillSymbol&&(l.fillSymbol.color=H,l.fillSymbol?.outline&&(l.fillSymbol.outline.color=H)),l}function ue(o){let{numericFields:e,config:i,layerInfo:r,category:s,commonStrings:n}=o,{layerFieldsInfo:t}=r,l=[],a=s??M(i),y=!1,c=N({fieldName:a,numericFields:e,fieldList:t});if(e.length===0){let S=V({y:"",seriesIndex:0,category:a,commonStrings:n});l.push(S)}else if(c){let S=e.length>1?e:e[0],w=V({y:S,seriesIndex:0,category:a,commonStrings:n}),b=e.length>1?n.axisLabels.values:B(r.layerFieldsInfo,e[0]),p={...w,id:e[0],name:b,x:c?I:a},g=i.series.find(d=>Y(S,d.y)&&d.query?.where===void 0);g!==void 0&&(!i.colorMatch&&"fillSymbol"in g&&(p.fillSymbol=g.fillSymbol,y=!0),p.id=g.id,p.name=g.name),l.push(p)}else for(let S=0;S<e.length;S+=1){let w=e[S],b=V({y:w,seriesIndex:S,category:a,commonStrings:n}),p=B(t,w),g={...b,id:w,name:p,x:a},d=i.series.find(v=>w===v.y);d!==void 0&&(!i.colorMatch&&"fillSymbol"in d&&(g.fillSymbol=d.fillSymbol,y=!0),g.id=d.id,g.name=d.name),l.push(g)}return i.series.length===1&&l.length===1&&!i.colorMatch&&"fillSymbol"in i.series[0]&&(l[0].fillSymbol=i.series[0].fillSymbol,y=!0),i.colorMatch=!y,l}var Se=o=>o?.query?.where?.split("=")[1].trim().replace(/'/gu,"")??"",Ce=o=>o.series.some(e=>e.type===f.LineSeries)&&o.series.some(e=>e.type===f.BoxPlotSeries);function ke(o,e,i){let r=[];return o.forEach(s=>{if(s.type===f.BoxPlotSeries){let{type:n,fillSymbol:t,...l}=s;r.push({...l,type:f.LineSeries,lineSymbol:{...J({width:j}),...t!==void 0?{color:t.color}:{}},markerSymbol:{..._(),...t!==void 0?{color:t.color}:{}}})}}),r.unshift(ge({x:o[0].x,y:o[0].y,seriesTemplate:i,commonStrings:e})),r}function qe(o){let e=o.slice(1),i=[];return e.forEach(r=>{if(r.type===f.LineSeries){let{type:s,lineSymbol:n,markerSymbol:t,...l}=r,a=D();i.push({...l,type:f.BoxPlotSeries,fillSymbol:{...a,color:n?.color}})}}),i}function pe(o){let{formerSeries:e,newSeries:i,showMean:r}=o,s=i,n=a=>a.type===(r?f.LineSeries:f.BoxPlotSeries),t=e.filter(n).map(a=>a.id),l=i.filter(n).map(a=>a.id);return t.length===l.length&&JSON.stringify(t)!==JSON.stringify(l)&&(s=s.sort((a,y)=>t.findIndex(c=>c===a.id)-t.findIndex(c=>c===y.id))),s}async function De(o){let{config:e,layerInfo:i,commonStrings:r,splitByField:s,numericFields:n,category:t}=o,{layer:l,layerFieldsInfo:a}=i,{fetchNullValues:y}=O(e)?.query??{},c=t??M(e),{categoriesArray:S,splitByFieldType:w}=await ce({config:e,layer:l,layerFieldsInfo:a,xAxisField:U(c)?void 0:c,aggregationFields:n,splitByField:s,fetchNullValues:y,errorStrings:r.errorStrings}),b=[],p=!1,g=Ce(e);if(S.length===0){b=ue({numericFields:n,category:c,config:e,layerInfo:i,commonStrings:r});for(let d of b)d.query&&(d.query.where=`${s}=''`)}else for(let d=0;d<S.length;d+=1){let v=S[d],q={y:n,seriesIndex:d,category:c,commonStrings:r},W=g?Le(q):V(q),he=K({queryObject:i.layer,fieldName:s,fieldValue:v??""}),$=`${v}`,F={...W,id:$,name:he??$,x:c===void 0||c===""?I:c,query:{...W.query,where:`${s}=${w===ee.String&&v!==null?`'${v}'`:v}`}},x=e.series.find(we=>Se(we)===$);x!==void 0&&(e.colorMatch||(F.type===f.BoxPlotSeries?A(x)?F.fillSymbol=x.fillSymbol:F.fillSymbol={...D(),color:x.lineSymbol?.color}:A(x)?(F.lineSymbol={...J({width:j}),...x.fillSymbol!==void 0?{color:x.fillSymbol.color}:{}},F.markerSymbol={..._(),...x.fillSymbol!==void 0?{color:x.fillSymbol.color}:{}}):(F.lineSymbol=x.lineSymbol,F.markerSymbol=x.markerSymbol),p=!0),F.id=x.id,F.name=x.name),b.push(F)}if(b=pe({formerSeries:e.series,newSeries:b,showMean:Q(e)}),e.colorMatch=!p,Q(e)){let d=e.series.find(q=>q.type===f.BoxPlotSeries),v=ge({x:c,y:n,seriesTemplate:d,commonStrings:r});b.unshift(v)}return b}var ro=async o=>{let{splitByField:e,numericFields:i,category:r,config:s,layerInfo:n,commonStrings:t}=o,{layerFieldsInfo:l}=n,a=Ve(r,i,e),y=se(l),c=M(s),S=Me(s,n,t),w=me(s,n,t),b=Ae({config:s,layerInfo:n,newCategory:r}),p=Z(s);if(!y.includes(c)&&y.includes(r)?p=ie():y.includes(c)&&!y.includes(r)&&(p=oe()),p!==void 0&&ae(s,t,p),Ne(a?{newShowMeanLines:s.showMean,config:s,commonStrings:t}:{newShowMeanLines:!1,config:s,commonStrings:t}),s.series=a?await De({config:s,layerInfo:n,splitByField:e,numericFields:i,category:r,commonStrings:t}):ue({numericFields:i,config:s,layerInfo:n,category:r,commonStrings:t}),b){let g=N({fieldName:r,numericFields:i,fieldList:l})?"":B(l,r);L(s,0,g)}if(w){let g=k(s,n,t);L(s,1,g)}s?.title!==void 0&&S&&(s.title.content.text=be(s,n,t)),R({config:s,value:null,axisIndex:1,isMax:!1}),R({config:s,value:null,axisIndex:1,isMax:!0})},Te=o=>o?.standardizeValues??!1;function k(o,e,i){let{layerFieldsInfo:r}=e,s=Te(o)?i.axisLabels.standardizedValues:i.axisLabels.values,n=o?.series?.map(t=>t.y).flat();return n=[...new Set(n)],n.length===1&&(s=B(r,n[0])),s}function be(o,e,i){let{layerFieldsInfo:r}=e,s=M(o),n=fe(o),t=Oe(o),l=n.map(c=>B(r??[],c)).join(", "),a=B(r??[],s),y="";return n.length>0&&(s!==I&&t!==""?y=P(i.titleLabels.distributionOfFieldsByCategoryAndSplitBy,{valueFields:l,category:a,splitByField:t}):s!==I?y=P(i.titleLabels.distributionOfFieldsByCategory,{valueFields:l,category:a}):t!==""?y=P(i.titleLabels.distributionOfFieldsByCategory,{valueFields:l,category:t}):y=P(i.titleLabels.distributionOfField,{valueField:l})),y}var so=o=>{let{series:e,splitByField:i,layerInfo:r,commonStrings:s}=o,n=typeof e.y=="string"?B(r.layerFieldsInfo,e.y):s.axisLabels.values;return X(i)||(n=Se(e)),n=K({queryObject:r.layer,fieldName:i,fieldValue:n??""})??n,n??e.id},no=o=>o?.showOutliers??!1,lo=o=>{let{newShowOutliers:e,config:i,layerInfo:r,commonStrings:s}=o;if(i.showOutliers=e,me(i,r,s)){let n=k(i,r,s);L(i,1,n)}},to=o=>{let{newStandardizeValues:e,config:i,layerInfo:r,commonStrings:s}=o,n=T(1,i),t=k(i,r,s),l=C(i);if(i.standardizeValues=e,n===t||l){let a=k(i,r,s);L(i,1,a)}},xe=o=>{let e=m.xAxisAsc,i=o.orderOptions?.data?.orderType??u.Category,r=o.orderOptions?.data&&"orderBy"in o.orderOptions.data?o.orderOptions.data.orderBy:h.Ascending;switch(i){case u.Category:e=Array.isArray(r)?m.customSort:r===h.Ascending?m.xAxisAsc:m.xAxisDesc;break;case u.Mean:e=r===h.Ascending?m.meanAsc:m.meanDesc;break;case u.Median:e=r===h.Ascending?m.medianAsc:m.medianDesc;break}return e},ao=(o,e,i)=>{let r=u.Category,s=h.Ascending;if(e.orderOptions=e.orderOptions??{},o===m.customSort&&i!==void 0)e.orderOptions.data={orderType:u.Category,orderBy:i};else{switch(o){case m.xAxisAsc:{r=u.Category,s=h.Ascending;break}case m.xAxisDesc:{r=u.Category,s=h.Descending;break}case m.meanAsc:{r=u.Mean,s=h.Ascending;break}case m.meanDesc:{r=u.Mean,s=h.Descending;break}case m.medianAsc:{r=u.Median,s=h.Ascending;break}case m.medianDesc:{r=u.Median,s=h.Descending;break}}e.orderOptions.data={orderType:r,orderBy:s}}},Q=o=>o.showMean??!1,Ne=o=>{let{newShowMeanLines:e=!1,config:i,commonStrings:r,previousMeanLinesBoxColor:s}=o,n=e?s:Fe(i),t=(e??!1)!==(i.showMean??!1);if(i.showMean=e,t){let l;e?l=ne(i.series)?ke(i.series,r):i.series:l=qe(i.series),l&&(l=pe({formerSeries:i.series,newSeries:l,showMean:e}),i.series=l)}return e&&s!==void 0&&Ie(s,i),{previousMeanLinesBoxColor:n}},co=o=>{let e=[],i=o.orderOptions?.data?.orderType;return xe(o)===m.customSort&&i===u.Category&&(e=o.orderOptions?.data?.orderBy),e},yo=(o,e)=>{e.orderOptions??={};let i=e.orderOptions?.data?.orderType;xe(e)===m.customSort&&i===u.Category&&(e.orderOptions.data={orderType:u.Category,orderBy:o})},mo=async o=>{let{config:e,layerInfo:i,errorStrings:r}=o,s=M(e),n=Z(e)?.type,t=fe(e),l=[];return n===f.CategoryAxisFormat&&(N({fieldName:s,numericFields:t,fieldList:i.layerFieldsInfo})?l=t:U(s)||(l=await ye({layerInfo:i,config:e,category:s,errorStrings:r}))),l},U=o=>o.trim()===""||o===I,Pe=(o,e)=>e.length>1&&!U(o),Ve=(o,e,i)=>!Pe(o,e)&&i!=="";return{a:We,b:Xe,c:Ye,d:Fe,e:Ie,f:eo,g:ve,h:Be,i:oo,j:io,k:M,l:Oe,m:fe,n:ro,o:Te,p:k,q:be,r:so,s:no,t:lo,u:to,v:xe,w:ao,x:Q,y:Ne,z:co,A:yo,B:mo,C:Pe,D:Ve}},"intl",a,b,c,d,e)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import r from"./7CMQGTU6.js";import q from"./HOIPLQXD.js";import p from"./J3CL6KB6.js";import o from"./VA6KJZ2Y.js";import n from"./HUNN3ERX.js";import l from"./3AYXOX4U.js";import j from"./JYITKARU.js";import i from"./QTSF2LK7.js";import h from"./WFW6BNDT.js";import g from"./4COV22K4.js";import e from"./ZWIF7LHW.js";import d from"./O3VKOV2W.js";import c from"./EAV3KAS7.js";import b from"./54W4C75M.js";import a from"./V6LKZUEZ.js";import{L as w,N as P,U as D,Z as V,da as E}from"./SCU3SBSN.js";import{l as k}from"./SP2IPHWF.js";import{a as L}from"./QP5UAIC6.js";import{c as _}from"./KJZTU3DV.js";import{a as f,b as m,f as S}from"./K4APZJ2O.js";export default $arcgis.t(([{db:x,fb:F,j:p,xa:N},{a:M,b:I,d:T,n:U,o:W,p:j,q:q},{c:r},O,{b:xe,d:Fe,f:Ie},{b:ue,d:Se,f:_e},{d:me,e:fe},de,{b:R},{b:Te},{a:le,b:ge,c:ce,d:he},{a:pe,b:ye},{d:B,e:C,f:z},{b:Be},{a:Y,b:X,c:Z,d:G,e:H,f:J,g:K,h:Q,i:$,j:ee,k:ie,m:te,ma:se,na:y,oa:oe,pa:d,qa:A,ra:re,sa:u,ua:v,va:b,wa:ne,xa:ae}])=>{var Ce=(s,e)=>e.series?.[s].assignToSecondValueAxis??!1,Ae=s=>{let{assign:e,seriesIndex:i,config:t,commonStrings:o}=s;e&&t.axes!==void 0&&!t.axes?.[2]&&(t.axes[2]=V(o,f.BarSeries)[1]),t.series&&t.series.forEach((a,c)=>{c===i?a.assignToSecondValueAxis=e:c!==i&&a?.assignToSecondValueAxis!==!0&&(a.assignToSecondValueAxis=!1)}),t.axes?.[2]&&!t.series.some(a=>a.assignToSecondValueAxis)&&t.axes.splice(2,1)},ve=(s,e)=>e.series?.[s]?.name,be=(s,e,i)=>{i.series?.[e]&&(i.series[e].name=s)},Oe=(s,e)=>{let i=e.series?.[s],t;return F(i)?t=i.fillSymbol?.color:x(i)&&(t=i.lineSymbol?.color),t},ke=(s,e,i)=>{let t=i.series?.[e];t&&(F(t)?t.fillSymbol={...E(e),...t.fillSymbol,color:s}:x(t)&&(t.lineSymbol={...D(e),...t.lineSymbol,color:s}))},we=s=>s.series.map(e=>e.id),Pe=(s,e)=>{e.series?.sort((i,t)=>s.findIndex(o=>i.id===o)-s.findIndex(o=>t.id===o))},De=s=>s.stackedType??S.Side,Ve=s=>{let{newStackedType:e,config:i,layerInfo:t,commonStrings:o}=s;if(i.stackedType=e,t!==void 0){let a=I({config:i,layerInfo:t,commonStrings:o,numericFields:d(i),aggregationType:y(i)});M(i,1,a)}i.axes?.[1]&&(e===S.Stacked100?i.axes[1].valueFormat=P():i.axes[1].valueFormat=w()),T({config:i,value:null,axisIndex:1,isMax:!1}),T({config:i,value:null,axisIndex:1,isMax:!0})},Ee=s=>{let e={};return s.series.forEach(i=>{_(i)&&"nullCategory"in i&&i.nullCategory!==void 0&&(e.text??=i.nullCategory.text,i.type===f.BarSeries?e.fillSymbol??=i.nullCategory.fillSymbol:e.markerSymbol??=i.nullCategory.markerSymbol)}),e.text||e.fillSymbol||e.markerSymbol?e:void 0},Ne=(s,e)=>{s.series.forEach(i=>{_(i)&&(e?i.type===f.BarSeries?i.nullCategory={text:e?.text,fillSymbol:e?.fillSymbol}:i.nullCategory={text:e?.text,markerSymbol:e?.markerSymbol}:i.nullCategory=void 0)})},Le=Object.defineProperty,Me=Object.getOwnPropertyDescriptor,h=(s,e,i,t)=>{for(var o=Me(e,i),a=s.length-1,c;a>=0;a--)(c=s[a])&&(o=c(e,i,o)||o);return o&&Le(e,i,o),o},g=class extends O{get temporalBinningSize(){return Y(this._config)}set temporalBinningSize(e){J(e,this._config)}get temporalBinningUnit(){return X(this._config)}set temporalBinningUnit(e){Q(e,this._config)}get timeAggregationType(){return Z(this._config)}set timeAggregationType(e){$(e,this._config)}get trimIncompleteTimeInterval(){return G(this._config)}set trimIncompleteTimeInterval(e){ee(e,this._config)}get nullPolicy(){return H(this._config)}set nullPolicy(e){K(e,this._config)}resetTimeInterval(){ie(this._config)}};h([r],g.prototype,"temporalBinningSize");h([r],g.prototype,"temporalBinningUnit");h([r],g.prototype,"timeAggregationType");h([r],g.prototype,"trimIncompleteTimeInterval");h([r],g.prototype,"nullPolicy");h([r],g.prototype,"resetTimeInterval");var Ue=Object.defineProperty,We=Object.getOwnPropertyDescriptor,l=(s,e,i,t)=>{for(var o=We(e,i),a=s.length-1,c;a>=0;a--)(c=s[a])&&(o=c(e,i,o)||o);return o&&Ue(e,i,o),o},n=class extends O{constructor(){super(...arguments),this._xAxisField="",this._aggregationType=m.Count,this._splitByField="",this._numericFields=[]}get xAxisField(){return this._xAxisField}set xAxisField(e){if(this._xAxisField=e,e.trim()===""||e===p){let i=this.numericFields;this.resetConfig(),this.numericFields=i}this.processSeriesRebuild("xAxisField")}get aggregationType(){return this._aggregationType}set aggregationType(e){this._aggregationType=e,re({aggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get splitByField(){return this._splitByField}set splitByField(e){this.layerInfo?.layerFieldsInfo&&W(this.layerInfo?.layerFieldsInfo,e)&&(this._splitByField=e,this.processSeriesRebuild("splitByField"))}get numericFields(){return this._numericFields}set numericFields(e){typeof e=="string"&&(e=[e]);let i=j(this.layerInfo?.layerFieldsInfo??[],e),t=(this.xAxisField===""||this.xAxisField===p)&&e.length===0;if(i&&!t){let o=N(this.layerInfo.layer).idField;e.length===0&&o!==void 0?(e.push(o),this._aggregationType=m.Count):this._aggregationType===m.Count&&e.length>=1&&o!==void 0&&!e.includes(o)&&(this._aggregationType=m.Sum),this._numericFields=e,this.numericFields.length>1&&(this._splitByField=""),this.processSeriesRebuild("numericFields")}else t&&this.resetConfig()}getAssignToSecondValueAxis(e){return Ce(e,this._config)}setAssignToSecondValueAxis(e,i){Ae({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getSeriesToSecondaryYAxis(e){return Ce(e,this._config)}setSeriesToSecondaryYAxis(e,i){Ae({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getSortOrder(){return A(this._config)[0]}setSortOrder(e,i){C(e,this._config,i)}async getCustomSortValues(){return await b({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings?.errorStrings})}async setDataFilters(e){super.setDataFilters(e);let i=A(this._config)[0];if(i===L.customSort){this.startAsyncUpdate();let t=await b({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings?.errorStrings});C(i,this._config,t),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return B(this._config)}set orderByList(e){!R(this._config)&&v(e,this._config)}updateSeriesFromLayerFilter(){this.layerInfo!==void 0&&u(this.getBuildNewSeriesProps())}get binTemporalData(){return ne(this._config)}set binTemporalData(e){ae(e,this._config)}getSeriesName(e){return ve(e,this._config)}setSeriesName(e,i){be(e,i,this._config)}getSeriesColor(e){return Oe(e,this._config)}setSeriesColor(e,i){ke(e,i,this._config)}getOrderOfSeries(){return we(this._config)}setOrderOfSeries(e){Pe(e,this._config)}get stackedType(){return De(this._config)}set stackedType(e){Ve({newStackedType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}moveSeries(e,i){let t=this.getOrderOfSeries(),[o]=t.splice(e,1);t.splice(i,0,o),this.setOrderOfSeries(t)}moveCustomSortValuesInOrderByList(e,i){let t=B(this._config),[o]=t.splice(e,1);t.splice(i,0,o),v(t,this._config)}get nullCategory(){return Ee(this._config)}set nullCategory(e){let i=this.nullCategory;k(i,e)||Ne(this._config,e)}setupLocalProps(){this._xAxisField=z(this._config),this._aggregationType=y(this._config),this._splitByField=oe(this._config),this._numericFields=d(this._config)}resetConfig(){let e=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=e,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}usingSplitBy(){return this.splitByField!==""&&this.numericFields.length<=1}async processSeriesRebuild(e){this.usingSplitBy()?(this.startAsyncUpdate(),await this.fetchSplitByFieldInfos(),u(this.getBuildNewSeriesProps()),this.finishAsyncUpdate()):u(this.getBuildNewSeriesProps()),this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(e)}async fetchSplitByFieldInfos(){return this.splitByFieldInfos=await U({config:this._config,layer:this.layerInfo.layer,layerFieldsInfo:this.layerInfo.layerFieldsInfo,xAxisField:this._xAxisField!==p?this._xAxisField:void 0,splitByField:this._splitByField,fetchNullValues:this._config?.series?.[0]?.query?.fetchNullValues,errorStrings:this.commonStrings?.errorStrings}),this.splitByFieldInfos}getBuildNewSeriesProps(){return{xAxisFieldName:this._xAxisField,splitByField:this._splitByField,numericFields:this._numericFields,aggregationType:this._aggregationType,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,splitByFieldInfos:this.splitByFieldInfos}}generateChartTitle(){return this.layerInfo!==void 0?se(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){return this.layerInfo!==void 0?I({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,numericFields:d(this._config),aggregationType:y(this._config)}):""}};l([r],n.prototype,"aggregationType");l([r],n.prototype,"setAssignToSecondValueAxis");l([r],n.prototype,"setSeriesToSecondaryYAxis");l([r],n.prototype,"setSortOrder");l([r],n.prototype,"setDataFilters");l([r],n.prototype,"orderByList");l([r],n.prototype,"binTemporalData");l([r],n.prototype,"setSeriesName");l([r],n.prototype,"setSeriesColor");l([r],n.prototype,"setOrderOfSeries");l([r],n.prototype,"stackedType");l([r],n.prototype,"moveSeries");l([r],n.prototype,"moveCustomSortValuesInOrderByList");l([r],n.prototype,"nullCategory");l([r],n.prototype,"resetConfig");var je=[pe,le,ge,ce,Be,he,Te,de,ye,g,xe,me,Fe,fe,ue,Se,_e,Ie,te];q(n,je);return{a:ve,b:be,c:ke,d:n}},a,b,c,d,e,g,h,i,j,l,n,o,p,q,r)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import f from"./J3CL6KB6.js";import e from"./JYITKARU.js";import d from"./TEWEPSIO.js";import{c as J}from"./WMUPNT4Q.js";import c from"./EAV3KAS7.js";import b from"./54W4C75M.js";import a from"./V6LKZUEZ.js";import{c as j,d as M,n as R}from"./H57XAQPI.js";import{e as ae,f as _e}from"./BGOWDCTO.js";import{J as re,K as U,L as Pe,Y as Ve,ba as je,ca as $e,ea as We,f as Ee,za as Ze}from"./SCU3SBSN.js";import{a as fe,f as Me}from"./KX7KGXKQ.js";import{d as Ne,g as H,k as we}from"./SP2IPHWF.js";import{a as ce}from"./QP5UAIC6.js";import{a as pe,c as Se}from"./KJZTU3DV.js";import{a as h,b as A,e as Le,h as Re,k as ne,l as L,n as V,o as De,v as q}from"./K4APZJ2O.js";export default $arcgis.t(([{substitute:_},{$:ze,Aa:X,Ab:k,Ba:Q,Bc:di,Ca:xe,Cc:fi,Fa:Fe,Fc:pi,Ia:Be,J:Ue,Ka:ti,M:Xe,Oa:be,Y:Qe,Zb:ci,bb:he,c:$,d:Ye,db:T,eb:C,fb:N,gb:Ie,gc:gi,ha:Je,hb:ni,ib:ri,ic:ui,j:oe,ka:Ke,na:Ge,tb:ai,ub:le,va:ei,vb:oi,wa:ii,wb:z,xa:Y,xc:yi,y:He,ya:si,za:W,zb:li,zc:mi},{a:E,b:ge,d:O,e:ve,f:Si,g:Te,j:Ce,r:xi},{a:Fi,b:Bi,c:bi},{a:hi,e:Ii},{b:G},{a:vi,b:Ae,f:Z,g:K,i:ke}])=>{var Ls=s=>{let e,i=s.series[0];return k(i)&&(e=i.temporalBinning?.size),e},$i=s=>{let e,i=s.series[0];return k(i)&&(e=i.temporalBinning?.unit),e},Rs=s=>{let e,i=s.series[0];return k(i)&&(e=i.temporalBinning?.timeAggregationType),e},Ds=s=>{let e,i=s.series[0];return k(i)&&(e=i.temporalBinning?.trimIncompleteTimeInterval),e},Ms=s=>{let e,i=s.series[0];return k(i)&&(e=i.temporalBinning?.nullPolicy),e},Wi=(s,e)=>{e?.series?.forEach(i=>{k(i)&&(i.temporalBinning??={},i.temporalBinning.size=s)}),O({config:e,value:null,axisIndex:1,isMax:!1}),O({config:e,value:null,axisIndex:1,isMax:!0})},Zi=(s,e)=>{e?.series?.forEach(i=>{k(i)&&(i.temporalBinning??={},i.temporalBinning.nullPolicy=s)}),O({config:e,value:null,axisIndex:1,isMax:!1}),O({config:e,value:null,axisIndex:1,isMax:!0})},Es=(s,e)=>{e.series?.forEach(i=>{k(i)&&(i.temporalBinning??={},i.temporalBinning.unit=s)}),O({config:e,value:null,axisIndex:1,isMax:!1}),O({config:e,value:null,axisIndex:1,isMax:!0})},Ps=(s,e)=>{e.series?.forEach(i=>{k(i)&&(i.temporalBinning??={},i.temporalBinning.timeAggregationType=s)}),O({config:e,value:null,axisIndex:1,isMax:!1}),O({config:e,value:null,axisIndex:1,isMax:!0})},Vs=(s,e)=>{e.series?.forEach(i=>{k(i)&&(i.temporalBinning??={},i.temporalBinning.trimIncompleteTimeInterval=s)}),O({config:e,value:null,axisIndex:1,isMax:!1}),O({config:e,value:null,axisIndex:1,isMax:!0})},_i=s=>{Wi(0,s)},Yi=Object.defineProperty,Hi=Object.getOwnPropertyDescriptor,Ui=(s,e,i,n)=>{for(var r=Hi(e,i),t=s.length-1,a;t>=0;t--)(a=s[t])&&(r=a(e,i,r)||r);return r&&Yi(e,i,r),r},Xi=s=>{let e;return $(s)?e=s.outTimeZone:s?.series.forEach(i=>{(i.type===h.BarSeries||i.type===h.RadarSeries||i.type===h.LineSeries)&&i.temporalBinning&&(e=i.temporalBinning.outTimeZone)}),e||(e=s?.axes?.[0]?.valueFormat.type===h.DateAxisFormat?s.axes[0].valueFormat.intlOptions.timeZone:void 0),e},Ni=(s,e)=>{let i=ui(s);$(e)?s?e.outTimeZone=i:delete e.outTimeZone:e?.series.forEach(n=>{(n.type===h.BarSeries||n.type===h.RadarSeries||n.type===h.LineSeries)&&(s?(n.temporalBinning??={},n.temporalBinning.outTimeZone=i):n.temporalBinning&&delete n.temporalBinning.outTimeZone)}),e?.axes?.[0]?.valueFormat.type===h.DateAxisFormat&&(s?e.axes[0].valueFormat.intlOptions.timeZone=i:delete e.axes[0].valueFormat.intlOptions.timeZone)},qe=class extends Bi{get timeZone(){return Xi(this._config)}set timeZone(e){Ni(e,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}};Ui([bi],qe.prototype,"timeZone");function js(s,e){let i;return e!==void 0&&(i={...e},i.legend!==void 0&&(i.legend.position=s)),i}function $s(s,e){let i;return e!==void 0&&(i={...e},i.legend!==void 0&&(i.legend.visible=s)),i}function Ws(s,e){let i;return e!==void 0&&(i={...e,rotated:s}),i}function Qi(s){let e;return s!==void 0&&(e={...s},delete e.axes?.[0]?.minimum,delete e.axes?.[0]?.maximum,delete e.axes?.[1]?.minimum,delete e.axes?.[1]?.maximum),e}function Zs(s,e){return e!=null||he(s)}async function _s(s){let{config:e,layer:i,abortSignal:n}=s,r=!1;return ae(i)||_e(e)?e&&ae(i)&&(r=await Ge({config:e,layer:i,abortSignal:n})):r=!0,r}async function zi(s){let{queryObject:e,chartConfig:i,splitByField:n,errorStrings:r,abortSignal:t,runtimeDataFilters:a,ignoreViewExtent:o,setTimeBinningInfoWhenNotProvided:c,returnFeaturesExtent:p,chartLimits:m}=s,g=[],u,y=H(i),d=y.series[0],l=ti({queryObject:e,chartConfig:y,runtimeDataFilters:a,ignoreViewExtent:o});if(l.outStatistics?.[0]?.outStatisticFieldName&&(l.outStatistics[0].outStatisticFieldName=Ee.outStatistics.outStatisticFieldName),k(d)&&li({xAxisValueFormatType:He(y),setTimeBinningInfoWhenNotProvided:c,seriesConfig:d,queryObject:e})&&Ue(n,e)){let{temporalBinning:S,x:v}=d,{uniqueQuery:I}=be({chartConfig:y,queryConfig:l,queryObject:e,setTimeBinningInfoWhenNotProvided:c,returnFeaturesExtent:p,chartLimits:m}),F=i.axes?.[0].valueFormat.type===h.DateAxisFormat?i.axes[0].valueFormat.intlOptions.timeZone:void 0;u=await Ke({queryObject:e,dateField:v,splitByField:n,queryConfig:I,axisTimeZone:F,temporalBinning:S,errorStrings:r,abortSignal:t}),g=Array.from(new Set(u.flatMap(x=>{let{stackedAttributes:w}=x,f=[];return w&&(f=w.map(B=>B[n]).filter(B=>B!==void 0)),f})).values())}else{let{uniqueQuery:S}=be({chartConfig:y,queryObject:e,queryConfig:l,setTimeBinningInfoWhenNotProvided:c,returnFeaturesExtent:p,chartLimits:m}),{elementCount:v}=await yi({chartConfig:y,queryObject:e,queryConfig:l,behaviorAfterLimit:m?.behaviorAfterLimit,numberMaxOfFeaturesToFetch:S.num,abortSignal:t});u=await Je({queryObject:e,queryConfig:S,featureCount:v,returnStatisticsAggregatedIds:!0,errorStrings:r,abortSignal:t}),g=Array.from(new Set(u.map(I=>I.attributes[n]).filter(I=>I!==void 0)).values())}return{allValues:g,preFetchedQueryResponse:u}}function Ji(s,e){let i=new Map;return s.series.forEach(n=>{let r=le({where:n.query?.where,normalize:!0,escape:!1});e&&r!==null&&(r=Number(r));let t=pe([n]);t!==void 0&&i.set(t,[...i.get(t)??[],r])}),i}function Ki(s){let{allValues:e,configUniqueValuesPerSeriesType:i,initialConfigWasEmpty:n}=s,r=new Map;return Array.from(i.keys()).forEach(t=>{let a=i.get(t)??[],o=[];n?o=e:e.forEach(c=>{a.includes(c)||o.push(c)}),r.set(t,o)}),r}function Gi(s){let{chartConfig:e,missingValue:i,splitByField:n,seriesTemplate:r}=s,t=JSON.parse(JSON.stringify({...e.series[0],...r}));if(t.query){if(i===null?t.id=j.nullValue:i===""?t.id=j.emptyStringValue:t.id=`${i}`,t.name=`${i}`,t.query.outStatistics?.[0]!==void 0){let o=t.id;t.query.outStatistics[0].outStatisticFieldName=o,"y"in t&&(t.y=o)}let a=typeof i=="number"||i===null?i:`'${i}'`;t.query.where=`${n}=${a}`}return t}async function es(s){let{updateSplitBySeries:e,config:i,queryObject:n,errorStrings:r,abortSignal:t,runtimeDataFilters:a,ignoreViewExtent:o,setTimeBinningInfoWhenNotProvided:c,returnFeaturesExtent:p,chartLimits:m}=s,{seriesTemplate:g}=e??{},u;if(n&&!ae(n)&&e!==void 0&&i!==void 0&&(i.series.length>0||g!==void 0)&&e.addMissingSeries){let y=i.series.length===0;i.series.length===0&&g!==void 0&&i.series.push(g);let d=z(i.series);if(d===M.BoxPlotMonoFieldAndSplitBy||d===M.BoxPlotMultiFieldsAndSplitBy||d===M.BoxPlotMonoFieldAndCategoryAndSplitBy||d===M.BarAndLineSplitBy||d===M.BarAndLineSplitByNoAggregation){let l=ai(i.series[0]?.query?.where),S=ei(n),v=ii(l,S),I=v?si(v):!1,F=await zi({queryObject:n,chartConfig:i,splitByField:l,abortSignal:t,runtimeDataFilters:a,ignoreViewExtent:o,setTimeBinningInfoWhenNotProvided:c,returnFeaturesExtent:p,chartLimits:m,errorStrings:r}),{allValues:x}=F;if({preFetchedQueryResponse:u}=F,x.length>0){let w=Ji(i,I),f=Ki({allValues:x,configUniqueValuesPerSeriesType:w,initialConfigWasEmpty:y});Array.from(f.keys()).forEach(B=>{(f.get(B)??[]).forEach(P=>{i.series.push(Gi({chartConfig:i,seriesTemplate:g,missingValue:P,splitByField:l}))}),y&&i.series.shift()})}}}return u}function is(s,e){e&&!he(e)&&(e=Xe({chartConfig:e,queryObject:s}))}async function Ys(s){let{configToAlter:e,layer:i,addMissingSeries:n,updateSplitBySeries:r,chartContainer:t,queryObject:a,abortSignal:o,runtimeDataFilters:c,ignoreViewExtent:p,setTimeBinningInfoWhenNotProvided:m,returnFeaturesExtent:g,chartLimits:u,timeZone:y,errorStrings:d}=s,l=e,S;return l&&(is(i,l),l=await Fi(l,i,void 0,o),n&&a&&(S=await es({updateSplitBySeries:r,config:l,queryObject:a,errorStrings:d,abortSignal:o,runtimeDataFilters:c,ignoreViewExtent:p,setTimeBinningInfoWhenNotProvided:m,returnFeaturesExtent:g,chartLimits:u})),l=ci(l,t),Ni(y,l)),{alteredConfig:l,preFetchedQueryResponse:S}}function ss(s,e){let i=!1;if(e!==void 0){let n=di({key:ze.Average,splitBy:e});i=Number.isFinite(s[n])}return i}function Hs(s){let{data:e,config:i,showEmptySeries:n}=s,r=i.series.length,t=H(i),a=!1;if(!n&&r>1&&e){let o=mi(e),c=pe(i?.series),p=z(i?.series),m=new Set;switch(c){case h.ComboLineAndBarSeries:case h.BarSeries:case h.RadarSeries:case h.LineSeries:{t.series.forEach(u=>{if(Array.isArray(o)){let y="";"y"in u&&(y=Array.isArray(u.y)?u.y[0]:u.y,p===M.BarAndLineSplitByNoAggregation&&(y=`${y}_${le({where:u.query?.where,keepSurroundingQuotes:!1,escape:!1})}`),o.some(d=>pi({dataItem:d,x:u.x,y,aggregationType:i.series[0].query?.outStatistics?.[0]?.statisticType}))&&m.add(u))}});break}case h.BoxPlotSeries:{if(Ye(i)){let u=Qe(i);i.series.forEach(y=>{let d,l;y.type===h.BoxPlotSeries?(d=e.dataItems,l=d?.some(S=>fi({dataItem:S,splitBy:y.query?.where,showOutliers:u}))):y.type===h.LineSeries&&(d=e.meanLines,l=d?.some(S=>ss(S,y.query?.where))),l&&m.add(y)})}break}}let g=Array.from(m.values());a=g.length>0&&g.length<r,a&&(t.series=g)}return{seriesFilteredOut:a,filteredConfig:t}}var Us=s=>s.hideEmptyRowsAndColumns,Xs=(s,e)=>{s.hideEmptyRowsAndColumns=e},Qs=(s,e)=>{let i=s.series[0];i.heatRulesType=e},zs=s=>s.series[0].heatRulesType,Js=(s,e)=>{let i=s.series[0];i.gradientRules=e},Ks=s=>s.series[0].gradientRules,Gs=s=>{let{yField:e,config:i,layerInfo:n,commonStrings:r}=s,{layerFieldsInfo:t}=n,a=J(1,i),o=ts(i),c=G(i),p=i.series[0];if(typeof e=="string"&&o!==e&&p){if(p.y=e,Qi(i),o===a||c){let m=R(t,e);E(i,1,m)}wi({commonStrings:r,config:i,layerInfo:n})}},ts=s=>s.series[0].y??"",et=s=>{let{binning:e,config:i,commonStrings:n}=s,r=i.series[0];if(r.xTemporalBinning=e,e?.unit!==void 0&&e.unit in n.utilsStrings.heatChartCalendarDatePartsUnits){let t=n.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];E(i,0,t)}ue({axisIndex:0,commonStrings:n,config:i})},ns=s=>s.series[0].xTemporalBinning,it=s=>{let{binning:e,config:i,commonStrings:n}=s,r=i.series[0];if(r.yTemporalBinning=e,e?.unit!==void 0&&e.unit in n.utilsStrings.heatChartCalendarDatePartsUnits){let t=n.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];E(i,1,t)}ue({axisIndex:1,commonStrings:n,config:i})},rs=s=>s.series[0].yTemporalBinning,as=(s,e)=>{e.orderOptions??={};let i=e.axes?.[0]?.valueFormat?.type==="category"?q.Category:q.YValue,n=Oe(e)[0],r=e.axes?.[1]?.valueFormat?.type==="category"?q.Category:q.YValue,t=Oe(e)[1],a={...e.orderOptions.data??{},orderType:q.MultiAxes};n===ce.customSort&&i===q.Category&&(a.orderByX=[...s]),t===ce.customSort&&r===q.Category&&(a.orderByY=[...s]),Object.keys(a).length>1&&(e.orderOptions.data=a)},st=(s,e)=>{let i=e.series[0];i.gridLine&&(i.gridLine.width=s)},tt=s=>s.series[0].gridLine?.width,nt=(s,e)=>{let i=e.series[0],n=s?.length===4&&s.every(r=>typeof r=="number");i.gridLine&&n&&(i.gridLine.color=s)},rt=s=>s.series[0].gridLine?.color,at=(s,e)=>{let i=e.legend;i&&(i.position=s)},ot=s=>s.legend?.position??Le.Bottom,lt=s=>s.series[0].query?.outStatistics?.[0]?.onStatisticField,ct=s=>{let{field:e,config:i,layerInfo:n,commonStrings:r}=s,t=i.series[0].query?.outStatistics?.[0],a=de(i,n,r);t?(t.onStatisticField=e,t.outStatisticFieldName=`${t.statisticType}_${e}`):i.series[0].query={outStatistics:[{onStatisticField:e,outStatisticFieldName:`${A.Count}_${e}`,statisticType:A.Count}]},a&&i.title&&(i.title.content.text=se(i,n,r))},gt=s=>s.series[0].query?.outStatistics?.[0].statisticType??A.Count,ut=s=>{let{aggregationType:e,config:i,layerInfo:n,commonStrings:r}=s,t=i.series[0]?.query?.outStatistics?.[0],a=de(i,n,r);t&&e!==A.NoAggregation&&(t.statisticType=e,t.outStatisticFieldName=`${e}_${t.onStatisticField}`),(e===A.Count||e===A.Sum)&&os(V.Zero,i),a&&i.title&&(i.title.content.text=se(i,n,r))},yt=s=>s.nullPolicy,os=(s,e)=>{e.nullPolicy=s},mt=s=>s.series[0].emptyCells,dt=(s,e)=>{e.series[0].emptyCells=s},ft=s=>s.series[0].emptyCells?.text,pt=(s,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.text=s:e.series[0].emptyCells={text:s}},St=s=>s.includeLeapDay,xt=(s,e)=>{e.includeLeapDay=s},Ft=s=>s.series[0].emptyCells?.symbol,Bt=(s,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.symbol=s:e.series[0].emptyCells={symbol:s}};function bt(s){return s.viewType}function ht(s,e){gi(e)||(e.viewType=s)}function It(s){return s.series[0].classBreaksRules?.breaksCount??j.classBreaks.breaksCount}function vt(s,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.breaksCount=s??j.classBreaks.breaksCount:e.series[0].classBreaksRules={breaksCount:s??j.classBreaks.breaksCount}}function Tt(s){return s.series[0].classBreaksRules?.classificationMethod}function Ct(s,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.classificationMethod=s:e.series[0].classBreaksRules={classificationMethod:s},e.series[0].classBreaksRules.breaksCount=e.series[0].classBreaksRules.breaksCount??j.classBreaks.breaksCount}function At(s,e){e.firstDayOfWeek=s}function kt(s){return s.firstDayOfWeek}function qt(s){return s.series[0].classBreaksRules?.colorRampInfo?.name}function Ot(s,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.colorRampInfo={...e.series[0].classBreaksRules.colorRampInfo,name:s}:e.series[0].classBreaksRules={colorRampInfo:{name:s,flipped:!1}}}function Nt(s){return s.series[0].classBreaksRules?.colorRampInfo?.flipped??!1}function wt(s,e){e.series[0].classBreaksRules!==void 0?e.series[0].classBreaksRules.colorRampInfo={...e.series[0].classBreaksRules.colorRampInfo,flipped:s}:e.series[0].classBreaksRules={colorRampInfo:{flipped:s}}}var ls=[L.DayOfMonth,L.MonthOfYear],Ti=s=>{let e;return X(s)?e=re():(W(s)||Q(s))&&(e=U()),e},Ci=s=>W(s)||Q(s),Ai=s=>{let{axisIndex:e,commonStrings:i,config:n,valueFormat:r}=s,t=n.axes?.[e]?.valueFormat;r!==void 0&&t?.type!==r.type&&Ce({config:n,commonStrings:i,valueFormat:r,axisIndex:e})},cs=(s,e)=>{let i;return e===0?i=s.series[0]?.xTemporalBinning:e===1&&(i=s.series[0]?.yTemporalBinning),i},ki=(s,e)=>s.utilsStrings.heatChartCalendarDatePartsUnits[e]??"",qi=(s,e)=>{let i=ls[s];return s===0&&e?.unit===L.DayOfWeek?i=L.HourOfDay:s===1&&e?.unit===L.HourOfDay&&(i=L.DayOfWeek),{type:h.CalendarDateParts,unit:i}},gs=s=>{let e={};switch(s.unit){case L.DayOfMonth:e={day:"2-digit"};break;case L.DayOfWeek:e={weekday:"short"};break;case L.HourOfDay:e={hour:"numeric",hour12:!1};break;case L.MonthOfYear:e={month:"short"};break;default:e=U().intlOptions;break}return{type:h.DateAxisFormat,intlOptions:e}},Oi=s=>{let{axisIndex:e,binning:i,commonStrings:n,config:r,fieldName:t,layerInfo:a}=s,o=r.series[0],c=J(e,r),p=R(a.layerFieldsInfo,t);e===0?o.xTemporalBinning=i:e===1&&(o.yTemporalBinning=i),i!==void 0&&(c===""||c===p||c===ki(n,i.unit)||c===n.xAxis)&&E(r,e,ki(n,i.unit))},ue=s=>{let{axisIndex:e,commonStrings:i,config:n}=s,r=cs(n,e),t=r?gs(r):void 0;Ce({config:n,commonStrings:i,valueFormat:t,axisIndex:e})},wi=s=>{let{commonStrings:e,config:i,layerInfo:n}=s,r=i.series[0]?.x??"",t=i.series[0]?.y??"",a=Be(n.layerFieldsInfo,r),o=Be(n.layerFieldsInfo,t),c=Ti(a),p=Ti(o),m=Ci(a)&&Ci(o),g=X(a)&&X(o);if(Ai({axisIndex:0,commonStrings:e,config:i,valueFormat:c}),Ai({axisIndex:1,commonStrings:e,config:i,valueFormat:p}),m){let u=ns(i)===void 0,y=rs(i)===void 0;u&&(Oi({axisIndex:0,binning:qi(0,i.series[0].yTemporalBinning),commonStrings:e,config:i,fieldName:r,layerInfo:n}),ue({axisIndex:0,commonStrings:e,config:i})),y&&(Oi({axisIndex:1,binning:qi(1,i.series[0].xTemporalBinning),commonStrings:e,config:i,fieldName:t,layerInfo:n}),ue({axisIndex:1,commonStrings:e,config:i}))}g&&(i.series[0].xTemporalBinning=void 0,i.series[0].yTemporalBinning=void 0)};function us(s){let e={};return s.series.forEach(i=>{Se(i)&&"nullCategory"in i&&i.nullCategory!==void 0&&(e.text??=i.nullCategory.text,i.type===h.BarSeries?e.fillSymbol??=i.nullCategory.fillSymbol:e.markerSymbol??=i.nullCategory.markerSymbol)}),e.text||e.fillSymbol||e.markerSymbol?e:void 0}function ee(s){let{seriesIndex:e,xAxisField:i,aggregationType:n,config:r,layerInfo:t,commonStrings:a}=s,o=Y(t?.layer).idField,c,p=r.series[e??0],m=!1,g=!1,u=!1;if(p===void 0){let l=r.series;m=l.slice(0,e).every(S=>T(S)),g=l.slice(0,e).every(S=>C(S)),u=l.slice(0,e).every(S=>Ie(S))}else m=T(p),g=C(p),u=Ie(p);m?c=je({commonStrings:a,seriesIndex:e,objectIDField:o}):g?c=$e({commonStrings:a,seriesIndex:e,objectIDField:o}):u?c=Ve(a,o):c=We({seriesIndex:e,objectIDField:o,commonStrings:a});let y=r.series[0]?.dataLabels,d={...c,x:i,y:"",dataLabels:{...c.dataLabels,type:c.dataLabels?.type??h.Text,content:{...c.dataLabels?.content,...y?.content,type:Me.TS},visible:y?.visible??!1}};if(d.query={groupByFieldsForStatistics:[i]},n!==A.NoAggregation&&o!==void 0){let l=`${n}_${o}_0`.toUpperCase();d.y=l,d.query.outStatistics=[{statisticType:n,onStatisticField:o,outStatisticFieldName:l}]}if(k(r.series[0])&&k(d)){let l=$i(r);l===ne.Quarter&&(l=ne.Month),d.temporalBinning={...r.series[0]?.temporalBinning,unit:l}}return H(d)}function se(s,e,i){let{layerFieldsInfo:n}=e,{idField:r,isTraditionalTypeOID:t}=Y(e.layer),a=Z(s),o=me(s),c=Ri(s),p=ye(s),m=t&&(o.length===0||o.includes(r)),g=Ze(c,i),u=m?"":o.map(F=>R(n??[],F)).join(", "),y=R(n??[],a),d=R(n??[],p),l=s.series.some(F=>N(F)),S=l?"category":"xAxisField",v=y,I="";if(ke({fieldName:a,numericFields:o,fieldList:n}))I=_(i.titleLabels.aggrTypeOfAggrFields,{aggregationType:g,aggregationFields:u});else if(c===A.NoAggregation){let F=m?r:u;if(p===""){let x=l?"aggrTypeCategory":"aggrTypeXAxisField";I=_(i.titleLabels[x],{aggregationType:F,[S]:v})}else{let x=l?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";I=_(i.titleLabels[x],{aggregationType:F,[S]:v,splitByField:d})}}else if(c===A.Count)if(p===""){let F=l?"aggrTypeCategory":"aggrTypeXAxisField";I=_(i.titleLabels[F],{aggregationType:g,[S]:v})}else{let F=l?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";I=_(i.titleLabels[F],{aggregationType:g,[S]:v,splitByField:d})}else if(p!==""){let F=l?"aggrTypeOfAggrFieldByCategoryBySplitByField":"aggrTypeOfAggrFieldByXAxisFieldBySplitByField";I=_(i.titleLabels[F],{aggregationType:g,aggregationField:u,[S]:v,splitByField:d})}else if(o.length>0){let F=l?"aggrTypeOfAggrFieldsByCategory":"aggrTypeOfAggrFieldsByXAxisField";I=_(i.titleLabels[F],{aggregationType:g,aggregationFields:u,[S]:v})}return I}var Li=s=>le({where:s.query?.where,normalize:!1,escape:!1})??"",Ri=s=>s?.series?.[0]?.query?.outStatistics?.[0]?.statisticType??A.NoAggregation,ye=Ne(s=>{let e=s?.series?.[0]?.query?.where?.split("=")[0].trim()??"";return oi(s?.series?.[0]?.query?.where)?"":e},s=>s?.series?.[0]?.query?.where),me=s=>{let e=[];if(ye(s)==="")e=s?.series.map(i=>{let n=i.query?.outStatistics?.map(r=>r.onStatisticField)??[];return n?.length>0?n:i.y}).flat()??[];else{let i=s?.series?.[0],n=i?.query?.outStatistics?.[0]?.onStatisticField??[i?.y].flat()[0];e=n!==void 0?[n]:[]}return e.filter(i=>i!=="")};function Di(s){let{splitByField:e,numericFields:i,layer:n,seriesIndex:r}=s,t=Y(n).idField??"";return e===""?i[r]??t:i[0]??t}function ys(s){let{numericFields:e,aggregationType:i,config:n,layerInfo:r}=s,t=!1;i===A.Count?t=!0:i===A.NoAggregation&&(t=e.every(c=>{let p=r.layerFieldsInfo.find(m=>m.name===c);return p!==void 0?xe(p):!1})),Te(n,1,t);let a=n.series.some(c=>T(c)),o=n.series.some(c=>C(c));if(a||o){let c=Z(n),p=r.layerFieldsInfo.find(g=>g.name===c),m=p!==void 0&&xe(p);Te(n,0,m)}}var Oe=s=>{let e;if($(s)){let i=s.orderOptions?.data?.orderByX??[""],n=s.orderOptions?.data?.orderByY??[""],r=s.axes?.[0]?.valueFormat?.type==="category"?q.Category:q.YValue,t=s.axes?.[1]?.valueFormat?.type==="category"?q.Category:q.YValue;e=[Ae(i,r),Ae(n,t)]}else{let i=s.orderOptions?.data?.orderType??q.Category,n=s.orderOptions?.data&&"orderBy"in s.orderOptions.data?s.orderOptions.data.orderBy:Re.Ascending;e=[vi(n,i)]}return e};function ms(s){let{xAxisField:e,numericFields:i,aggregationType:n,config:r,layerInfo:t,commonStrings:a}=s,{layerFieldsInfo:o}=t,c=!1,p=ee({config:r,xAxisField:e,aggregationType:n,layerInfo:t,seriesIndex:0,commonStrings:a}),m=K({config:r,xAxisField:e,numericFields:i,aggregationType:n,layer:t.layer,fieldList:o}).name,g={...p,id:`series_${Date.now()}`,name:a.axisLabels.values,x:oe,y:m},u=[];for(let d of i)u.push({onStatisticField:d,outStatisticFieldName:`${d}_0`.toUpperCase(),statisticType:n});g.query={outStatistics:u};let y=r.series[0];return y!==void 0&&(g.id=y.id,(T(g)&&T(y)||C(g)&&C(y))&&ie(g,y),r.colorMatch||(N(y)&&N(g)?g.fillSymbol=y.fillSymbol:(T(g)&&T(y)||C(g)&&C(y))&&(g.lineSymbol=y.lineSymbol,g.markerSymbol=y.markerSymbol),c=!0),g.id=y.id,y.name!==p.name&&(g.name=y.name)),r.series.length===1&&((T(g)||C(g))&&ie(g,r.series[0]),r.colorMatch||(N(g)?g.fillSymbol=r.series[0].fillSymbol:(T(g)||C(g))&&(g.lineSymbol=r.series[0].lineSymbol,g.markerSymbol=r.series[0].markerSymbol),c=!0)),r.colorMatch=!c,[g]}function Mi(s){let{xAxisField:e,numericFields:i,aggregationType:n,config:r,layerInfo:t,commonStrings:a}=s,{layerFieldsInfo:o}=t,c=Y(t.layer).idField,p=[],m=!1;for(let l=0;l<i.length;l+=1){let S=ee({config:r,xAxisField:e,aggregationType:n,layerInfo:t,seriesIndex:l,commonStrings:a}),v=r.series[l]?.y,I=typeof v=="string"&&v.trim()!==""&&!o.find(B=>B.name===v)?v:K({config:r,xAxisField:e,numericFields:i,aggregationType:n,layer:t.layer,numericFieldIndex:l,fieldList:o}).name,F=i[l],x={...S,query:{...S.query}};i&&F!==c&&(x={...x,id:F,name:R(o,F)});let w=F;x.query!==void 0&&(n!==A.NoAggregation?(w=I,x.query.outStatistics=[{...S.query?.outStatistics?.[0]??{},onStatisticField:F,outStatisticFieldName:I,statisticType:n}]):delete x.query.outStatistics),x.y=w;let f=r.series.find(B=>B.query?.outStatistics?.[0]?.onStatisticField===F&&B.query.where===void 0||B.query?.outStatistics===void 0&&(B.y===F||B.x===F));if(f!==void 0&&typeof f.y=="string"&&f.y.trim()!==""){(T(x)&&T(f)||C(x)&&C(f))&&ie(x,f),r.colorMatch||(N(x)&&N(f)?x.fillSymbol=f.fillSymbol:(T(x)&&T(f)||C(x)&&C(f))&&(x.lineSymbol=f.lineSymbol,x.markerSymbol=f.markerSymbol),m=!0);let B=ee({config:r,xAxisField:e,aggregationType:n,layerInfo:t,seriesIndex:l,commonStrings:a});x.id=f.id,f.id!==B.id&&f.name!==B.name&&(x.id=f.id,x.name=f.name),x.assignToSecondValueAxis=f.assignToSecondValueAxis,x.type===h.HeatSeries&&f.type===h.HeatSeries&&(x.y=f.y,x.heatRulesType=f.heatRulesType)}p.push(x)}let g=p.filter(l=>N(l)),u=p.filter(l=>T(l)||C(l)),y=r.series.filter(l=>N(l)),d=r.series.filter(l=>T(l)||C(l));return y.length===1&&g.length===1&&!r.colorMatch&&(N(y[0])&&N(g[0])&&(g[0].fillSymbol=y[0].fillSymbol),m=!0),d.length===1&&u.length===1&&((T(d[0])&&T(u[0])||C(d[0])&&C(u[0]))&&ie(u[0],d[0]),r.colorMatch||((T(d[0])&&T(u[0])||C(d[0])&&C(u[0]))&&(u[0].lineSymbol=d[0].lineSymbol,u[0].markerSymbol=d[0].markerSymbol),m=!0)),r.colorMatch=!m,p}function Lt(s){let{aggregationType:e,config:i,layerInfo:n,commonStrings:r}=s,{layerFieldsInfo:t,layer:a}=n,o=Z(i),c=me(i),p=ye(i),m=de(i,n,r),g=Ei(i,n,r);if(i.series.forEach((u,y)=>{let d=K({config:i,xAxisField:o,numericFields:c,aggregationType:e,splitByField:p,layer:a,seriesIndex:y,numericFieldIndex:y,fieldList:t}).name;u.y=d;let l=Di({splitByField:p,numericFields:c,layer:a,seriesIndex:y}),S=u.query?.outStatistics?.[0]?.onStatisticField??l;u.query={...u.query,outStatistics:e===A.NoAggregation?void 0:[{...u.query?.outStatistics?.[0],outStatisticFieldName:d,statisticType:e,onStatisticField:S}]},"temporalBinning"in u&&u.temporalBinning!==void 0&&(u.temporalBinning.nullPolicy=e===A.NoAggregation?V.Interpolate:V.Null),e===A.NoAggregation&&_i(i)}),m&&i.title&&(i.title.content.text=se(i,n,r)),g&&i.series[0].type!==h.HeatSeries){let u=ge({config:i,layerInfo:n,commonStrings:r,numericFields:c,aggregationType:e});E(i,1,u)}}function ds(s){let{splitByField:e,xAxisField:i,numericFields:n,aggregationType:r,config:t,layerInfo:a,commonStrings:o,splitByFieldInfos:c}=s,{layer:p,layerFieldsInfo:m}=a,{categoriesArray:g,splitByFieldType:u}=c,y=Di({splitByField:e,numericFields:n,layer:p,seriesIndex:0}),d=[],l=!1;if(g.length===0){d=Mi({xAxisField:i,numericFields:n,aggregationType:r,config:t,layerInfo:a,commonStrings:o});for(let S of d)S.query&&(S.query.where=`${e}=''`)}else for(let S=0;S<g.length;S+=1){let v=g[S],I=K({config:t,xAxisField:i,numericFields:n,aggregationType:r,layer:a.layer,seriesIndex:S,splitByField:e,fieldList:m}).name,F=ee({config:t,xAxisField:i,aggregationType:r,layerInfo:a,seriesIndex:S,commonStrings:o}),x=Fe({queryObject:a.layer,fieldName:e,fieldValue:v??""}),w=`${v}`,f={...F,id:w,name:x??w,y:I,query:{...F.query,where:`${e}=${u===fe.String&&v!==null?`'${v}'`:v}`,outStatistics:r!==A.NoAggregation?[{...F.query?.outStatistics?.[0]??{},onStatisticField:y,outStatisticFieldName:I,statisticType:r}]:void 0}},B=t.series.find(P=>String(Li(P)).trim().replace(/'/gu,"")===w);B!==void 0&&((T(f)&&T(B)||C(f)&&C(B))&&ie(f,B),t.colorMatch||(N(f)&&N(B)?f.fillSymbol=B.fillSymbol:(T(f)&&T(B)||C(f)&&C(B))&&(f.lineSymbol=B.lineSymbol,f.markerSymbol=B.markerSymbol),l=!0),f.id=B.id,f.name=B.name,f.assignToSecondValueAxis=B.assignToSecondValueAxis),f.query&&(f.query.fetchNullValues=t.series.some(P=>P.query?.fetchNullValues)),d.push(f)}return t.colorMatch=!l,d}var Rt=s=>{let{xAxisFieldName:e,splitByField:i,numericFields:n,aggregationType:r,config:t,layerInfo:a,commonStrings:o,splitByFieldInfos:c}=s,{layerFieldsInfo:p}=a??{},m=H(t),g=Ii(t),u=Z(m),y=p.find(b=>b.name===u),d=t.series[0].query?.fetchNullValues,l=us(t),S=t.series[0]?.query===void 0,v="binTemporalData"in m.series[0]?m.series[0].binTemporalData:void 0,I=p.find(b=>b.name===e),F=de(m,a,o),x=Ei(m,a,o),w=fs(m,a),f=ve(t),B=m.series.some(b=>N(b)),P=ni(m.series),Pi=ri(m.series),D={};$(m)&&(D.classBreaksRules=m.series[0]?.classBreaksRules,D.xTemporalBinning=m.series[0]?.xTemporalBinning,D.yTemporalBinning=m.series[0]?.yTemporalBinning,D.emptyCells=m.series[0]?.emptyCells,D.nullPolicy=m.nullPolicy);let te=!1;if(X(I)?f=re():!Q(y)&&Q(I)?(f=U(),te=!0):!W(y)&&W(I)?(f=U(),te=!0):W(y)&&!W(I)&&(B?f=re():f=Pe(),te=!0),f!==void 0&&Si(t,o,f),g===0&&(t.series=[ee({config:t,xAxisField:e,aggregationType:r,layerInfo:a,commonStrings:o})]),t.series.forEach(b=>{b.x=e,b.query!==void 0&&(b.query.groupByFieldsForStatistics=[e])}),i===""||n.length>1?ke({fieldName:e,numericFields:n,fieldList:p})?t.series=ms({config:t,layerInfo:a,xAxisField:e,numericFields:n,aggregationType:r,commonStrings:o}):t.series=Mi({config:t,layerInfo:a,xAxisField:e,numericFields:n,aggregationType:r,commonStrings:o}):c&&(t.series=ds({config:t,layerInfo:a,splitByField:i,xAxisField:e,numericFields:n,aggregationType:r,commonStrings:o,splitByFieldInfos:c})),w&&t.series[0].type!==h.HeatSeries){let b=R(p,e);E(t,0,b)}if(x&&t.series[0].type!==h.HeatSeries){let b=ge({config:t,layerInfo:a,commonStrings:o,numericFields:n,aggregationType:r});E(t,1,b)}if(F&&t.title&&(t.title.content.text=se(t,a,o)),O({config:t,value:null,axisIndex:1,isMax:!1}),O({config:t,value:null,axisIndex:1,isMax:!0}),ys({numericFields:n,aggregationType:r,config:t,layerInfo:a}),(P||Pi)&&(O({config:t,value:null,axisIndex:0,isMax:!1}),O({config:t,value:null,axisIndex:0,isMax:!0}),te&&r!==A.NoAggregation)){let b=f?.type===h.DateAxisFormat?V.Null:V.Interpolate;Zi(b,t)}$(t)&&(t.series[0].classBreaksRules=D.classBreaksRules,t.series[0].xTemporalBinning=D.xTemporalBinning,t.series[0].yTemporalBinning=D.yTemporalBinning,t.series[0].emptyCells=D.emptyCells,t.nullPolicy=D.nullPolicy,wi({commonStrings:o,config:t,layerInfo:a})),t.series.forEach(b=>{S?delete b.query:d&&b.query&&(b.query.fetchNullValues=d),Se(b)&&l&&(b.type===h.BarSeries?b.nullCategory={text:l.text,fillSymbol:l.fillSymbol}:b.nullCategory={text:l.text,markerSymbol:l.markerSymbol}),k(b)&&b.binTemporalData===void 0&&I?.type===fe.TimeOnly&&(b.binTemporalData=!1);let Vi=m.series.find(ji=>ji.id===b.id)?.visible;b.visible=Vi,k(b)&&(b.binTemporalData=v)})},ie=(s,e)=>{s.markerVisible=e.markerVisible,s.lineSmoothed=e.lineSmoothed,s.showArea=e.showArea,s.areaColor=e.areaColor,s.stackNegativeValuesToBaseline=e.stackNegativeValuesToBaseline,e.lineSymbol&&(s.lineSymbol={...e.lineSymbol,color:s.lineSymbol?.color}),e.markerSymbol&&(s.markerSymbol={...e.markerSymbol,color:s.markerSymbol?.color})},Dt=s=>{let{config:e,seriesIndex:i,layerInfo:n,commonStrings:r}=s,t=e.series?.[i],a=ye(e),o;if(z(e.series)===M.BarAndLineFromFields)o=r.axisLabels.values;else if(we(a)){let c=t.query?.outStatistics?.[0]?.onStatisticField;c!==void 0&&c!==Y(n.layer).idField&&(o=R(n.layerFieldsInfo,c))}else{let c=String(Li(t)).trim().replace(/'/gu,"");o=Fe({queryObject:n.layer,fieldName:a,fieldValue:c??""})??c}return o??t.id},Mt=(s,e)=>{if($(e))as(s,e);else{e.orderOptions??={};let i=e.orderOptions?.data?.orderType;Oe(e)[0]===ce.customSort&&i===q.Category&&(e.orderOptions.data={orderType:q.Category,orderBy:[...s]})}},Et=async s=>{let{config:e,layerInfo:i,errorStrings:n}=s,r=Z(e),t=ve(e)?.type,a=me(e),o=z(e.series),c=[];return t===h.CategoryAxisFormat&&(o===M.BarAndLineFromFields||r===oe?c=a.map(p=>R(i?.layerFieldsInfo,p)):r.trim()!==""&&r!==oe&&i!==void 0&&(c=await xi({layerInfo:i,config:e,category:r,errorStrings:n}))),c};function de(s,e,i){let n=se(s,e,i),r=hi(s),t=G(s);return n===r||t}function Ei(s,e,i){let n=ge({config:s,layerInfo:e,commonStrings:i,numericFields:me(s),aggregationType:Ri(s)}),r=J(1,s),t=G(s);return n===r||t}function fs(s,e){let i=R(e.layerFieldsInfo,Z(s)),n=J(0,s),r=G(s);return i===n||r}function Pt(s){return k(s.series[0])?s.series[0].binTemporalData??!0:!1}function Vt(s,e){e?.series.forEach(i=>{k(i)&&(i.binTemporalData=s,s?i.temporalBinning={unit:ne.Day,size:0,timeAggregationType:De.Start,trimIncompleteTimeInterval:!0,nullPolicy:V.Null}:delete i.temporalBinning)})}return{a:Ls,b:$i,c:Rs,d:Ds,e:Ms,f:Wi,g:Zi,h:Es,i:Ps,j:Vs,k:_i,l:Ni,m:qe,n:js,o:$s,p:Ws,q:Qi,r:Zs,s:_s,t:Ys,u:Hs,v:Us,w:Xs,x:Qs,y:zs,z:Js,A:Ks,B:Gs,C:ts,D:et,E:ns,F:it,G:rs,H:st,I:tt,J:nt,K:rt,L:at,M:ot,N:lt,O:ct,P:gt,Q:ut,R:yt,S:os,T:mt,U:dt,V:ft,W:pt,X:St,Y:xt,Z:Ft,_:Bt,$:bt,aa:ht,ba:It,ca:vt,da:Tt,ea:Ct,fa:At,ga:kt,ha:qt,ia:Ot,ja:Nt,ka:wt,la:wi,ma:se,na:Ri,oa:ye,pa:me,qa:Oe,ra:Lt,sa:Rt,ta:Dt,ua:Mt,va:Et,wa:Pt,xa:Vt}},"intl",a,b,c,d,e,f)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import w from"./67QYTLMM.js";import v from"./6PIQ2O5S.js";import u from"./7CMQGTU6.js";import t from"./HOIPLQXD.js";import s from"./J3CL6KB6.js";import r from"./VA6KJZ2Y.js";import q from"./HUNN3ERX.js";import o from"./3AYXOX4U.js";import n from"./JYITKARU.js";import k from"./QTSF2LK7.js";import j from"./WFW6BNDT.js";import i from"./4COV22K4.js";import h from"./ZWIF7LHW.js";import"./OAXHS4LE.js";import f from"./O3VKOV2W.js";import e from"./TEWEPSIO.js";import"./WMUPNT4Q.js";import d from"./EAV3KAS7.js";import c from"./JS6A5QAV.js";import b from"./54W4C75M.js";import a from"./V6LKZUEZ.js";import"./H57XAQPI.js";import"./BGOWDCTO.js";import{B as g,ea as S,i as m,la as p}from"./SCU3SBSN.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./NZ2C5DJB.js";import"./MARXRC6B.js";import"./DAFNQT4C.js";import"./QP5UAIC6.js";import"./KJZTU3DV.js";import{a as l}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{xa:a},{q:y},,{c:n},,,,,,,,,,,{c:u},,{ta:d},{b:v,c:I,d:b},{a:L,b:_,c:O,d:F,e:z}])=>{var H=Object.defineProperty,B=Object.getOwnPropertyDescriptor,f=(c,e,i,t)=>{for(var s=B(e,i),o=c.length-1,h;o>=0;o--)(h=c[o])&&(s=h(e,i,s)||s);return s&&H(e,i,s),s},r=class extends b{constructor(){super(...arguments),this._chartType=l.BarSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&this.updateSeriesFromLayerFilter(),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=p(this.commonStrings);return e.series=[S({objectIDField:a(this.layerInfo.layer).idField,commonStrings:this.commonStrings})],e}getSeriesHideOversizedSideBySideLabels(e){return L(e,this._config)}setSeriesHideOversizedSideBySideLabels(e,i){_(e,i,this._config)}getSeriesHideOversizedStackedLabels(e){return O(e,this._config)}setSeriesHideOversizedStackedLabels(e,i){F(e,i,this._config)}getSortOrder(){return u(this._config)}resetSeriesStyling(){for(let e=0;e<this.seriesLength;e+=1){let i=this.getSeriesId(e),t=g({colorIndex:e,opacity:m});if(I(t,e,this._config),this.layerInfo!==void 0){let s=d({config:this._config,seriesIndex:e,layerInfo:this.layerInfo,commonStrings:this.commonStrings});s!==a(this.layerInfo.layer).idField&&v(s??i,e,this._config)}}this._config.colorMatch=!0}resetAvailable(){let e=!this.colorMatch,i=!1;if(!e&&this.layerInfo!==void 0)for(let t=0;t<this.seriesLength;t+=1){let s=d({config:this._config,seriesIndex:t,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),o=this.getSeriesName(t);if(s!==void 0&&s!==a(this.layerInfo.layer).idField&&s!==o){i=!0;break}}return e||i}};f([n],r.prototype,"setSeriesHideOversizedSideBySideLabels");f([n],r.prototype,"setSeriesHideOversizedStackedLabels");f([n],r.prototype,"resetSeriesStyling");var x=[z];y(r,x);return r},a,b,c,d,e,f,h,i,j,k,n,o,q,r,s,t,u,v,w)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import x from"./5EYVH3PA.js";import w from"./ISK4QVLY.js";import"./AYQ4HHL6.js";import v from"./6PIQ2O5S.js";import u from"./7CMQGTU6.js";import t from"./HOIPLQXD.js";import s from"./J3CL6KB6.js";import r from"./VA6KJZ2Y.js";import q from"./HUNN3ERX.js";import p from"./3AYXOX4U.js";import o from"./JYITKARU.js";import n from"./QTSF2LK7.js";import k from"./WFW6BNDT.js";import j from"./4COV22K4.js";import i from"./ZWIF7LHW.js";import"./OAXHS4LE.js";import h from"./O3VKOV2W.js";import g from"./TEWEPSIO.js";import"./WMUPNT4Q.js";import f from"./EAV3KAS7.js";import e from"./JS6A5QAV.js";import b from"./54W4C75M.js";import a from"./V6LKZUEZ.js";import"./H57XAQPI.js";import"./BGOWDCTO.js";import{B as c,ba as l,i as S,na as d}from"./SCU3SBSN.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./NZ2C5DJB.js";import"./MARXRC6B.js";import"./DAFNQT4C.js";import"./QP5UAIC6.js";import"./KJZTU3DV.js";import{a as m}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{xa:o},{q:y},,{c:g},,,,,,,,,,,,,{ta:h},{b:u,c:p,d:b},{b:I,d:v,f:_,h:F,j:k,t:L},D])=>{var M=Object.defineProperty,x=Object.getOwnPropertyDescriptor,j=(n,e,s,t)=>{for(var i=x(e,s),r=n.length-1,f;r>=0;r--)(f=n[r])&&(i=f(e,s,i)||i);return i&&M(e,s,i),i},a=class extends b{constructor(){super(...arguments),this._chartType=m.LineSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&this.updateSeriesFromLayerFilter(),this.initDefaultSeries(),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=d(this.commonStrings);return e.series=[l({commonStrings:this.commonStrings,objectIDField:o(this.layerInfo.layer).idField})],e}initDefaultSeries(){this.defaultSeries=l({commonStrings:this.commonStrings,objectIDField:o(this.layerInfo.layer).idField})}resetSeriesStyling(){for(let e=0;e<this.seriesLength;e+=1){let s=c({colorIndex:e,opacity:S});if(p(s,e,this._config),_(s,e,this._config),this.layerInfo!==void 0){let t=this.getSeriesId(e),i=h({config:this._config,seriesIndex:e,layerInfo:this.layerInfo,commonStrings:this.commonStrings});i!==o(this.layerInfo.layer).idField&&u(i??t,e,this._config)}I(this.defaultSeries?.lineSymbol?.style,e,this._config),v(this.defaultSeries?.lineSymbol?.width,e,this._config),F(this.defaultSeries?.markerSymbol?.style,e,this._config),k(this.defaultSeries?.markerSymbol?.size,e,this._config)}this._config.colorMatch=!0}resetAvailable(){let e=!this.colorMatch,s=!1;if(!e)for(let t=0;t<this.seriesLength;t+=1){if(this.layerInfo!==void 0){let i=h({config:this._config,seriesIndex:t,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),r=this.getSeriesName(t);i!==void 0&&i!==this.layerInfo.objectIdField&&i!==r&&(s=!0)}if(this.defaultSeries?.lineSymbol?.style!==void 0&&this.defaultSeries?.lineSymbol.style!==this.getSeriesLineStyle(t)||this.defaultSeries?.lineSymbol?.width!==void 0&&this.defaultSeries?.lineSymbol.width!==this.getSeriesLineWidth(t)||this.defaultSeries?.markerSymbol?.style!==void 0&&this.defaultSeries?.markerSymbol?.style!==this.getSeriesMarkerStyle(t)||this.defaultSeries?.markerSymbol?.size!==void 0&&this.defaultSeries?.markerSymbol?.size!==this.getSeriesMarkerSize(t)){s=!0;break}}return e||s}};j([g],a.prototype,"resetSeriesStyling");var w=[L,D];y(a,w);return a},a,b,e,f,g,h,i,j,k,n,o,p,q,r,s,t,u,v,w,x)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import x from"./67QYTLMM.js";import w from"./ISK4QVLY.js";import"./AYQ4HHL6.js";import v from"./6PIQ2O5S.js";import u from"./7CMQGTU6.js";import t from"./HOIPLQXD.js";import s from"./J3CL6KB6.js";import r from"./VA6KJZ2Y.js";import q from"./HUNN3ERX.js";import o from"./3AYXOX4U.js";import n from"./JYITKARU.js";import m from"./QTSF2LK7.js";import l from"./WFW6BNDT.js";import k from"./4COV22K4.js";import j from"./ZWIF7LHW.js";import"./OAXHS4LE.js";import i from"./O3VKOV2W.js";import f from"./TEWEPSIO.js";import"./WMUPNT4Q.js";import e from"./EAV3KAS7.js";import d from"./JS6A5QAV.js";import b from"./54W4C75M.js";import a from"./V6LKZUEZ.js";import"./H57XAQPI.js";import"./BGOWDCTO.js";import{ba as h,ea as g,la as p}from"./SCU3SBSN.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./NZ2C5DJB.js";import"./MARXRC6B.js";import"./DAFNQT4C.js";import"./QP5UAIC6.js";import"./KJZTU3DV.js";import{a as c}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{db:l,fb:f,hb:b,xa:S},{q:_},,{c:n},,,,,,,,,,,,,,{c:u,d:L},{a:k,b:v,c:M,d:z,e:C,f:F,g:I,h:O,i:B,j:A,k:D,l:V,m:j,n:m,o:H,p:x,q:W,t:T},{a:P,b:w,c:q,d:N,e:$}])=>{var E=Object.defineProperty,G=Object.getOwnPropertyDescriptor,a=(d,e,s,i)=>{for(var t=G(e,s),r=d.length-1,y;r>=0;r--)(y=d[r])&&(t=y(e,s,t)||t);return t&&E(e,s,t),t},o=class extends L{constructor(){super(...arguments),this._chartType=c.ComboLineAndBarSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&(b(e.config?.series)&&this.initDefaultSeries(),this.updateSeriesFromLayerFilter()),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=p(this.commonStrings);return e.series=[g({commonStrings:this.commonStrings,objectIDField:S(this.layerInfo.layer).idField})],e}initDefaultSeries(){this.defaultSeries=h({commonStrings:this.commonStrings,objectIDField:S(this.layerInfo.layer).idField})}setSeriesType(e,s){if(e<this._config.series.length&&e>=0){let i=this._config.series[e],t;if(s===c.BarSeries&&l(i)){let r={...i};delete r.lineSymbol,delete r.markerSymbol,delete r.lineSmoothed,delete r.markerVisible,delete r.areaColor,delete r.stackNegativeValuesToBaseline,t={...g({commonStrings:this.commonStrings,objectIDField:S(this.layerInfo.layer).idField}),...r,type:c.BarSeries,y:[i.y].flat()[0]},t.fillSymbol&&(t.fillSymbol={...t.fillSymbol,color:i.lineSymbol?.color})}else if(s===c.LineSeries&&f(i)){let r={...i};delete r.fillSymbol,delete r.hideOversizedStackedLabels,delete r.hideOversizedSideBySideLabels,t={...h({commonStrings:this.commonStrings,objectIDField:S(this.layerInfo.layer).idField}),...r,type:c.LineSeries},t.lineSymbol&&(t.lineSymbol={...t.lineSymbol,color:i.fillSymbol?.color})}t!==void 0&&(this._config.series[e]=t)}}getSeriesLineStyle(e){return k(e,this._config)}setSeriesLineStyle(e,s){let i=this._config.series?.[s];l(i)&&v(e,s,this._config)}getSeriesLineWidth(e){return M(e,this._config)}setSeriesLineWidth(e,s){let i=this._config.series?.[s];l(i)&&z(e,s,this._config)}getSeriesMarkerColor(e){return C(e,this._config)}setSeriesMarkerColor(e,s){let i=this._config.series?.[s];l(i)&&F(e,s,this._config)}getSeriesMarkerStyle(e){return I(e,this._config)}setSeriesMarkerStyle(e,s){let i=this._config.series?.[s];l(i)&&O(e,s,this._config)}getSeriesMarkerSize(e){return B(e,this._config)}setSeriesMarkerSize(e,s){let i=this._config.series?.[s];l(i)&&A(e,s,this._config)}isLineSmoothed(e){return D(e,this._config)}setLineSmoothed(e,s){let i=this._config.series?.[s];l(i)&&V({smoothed:e,seriesIndex:s,config:this._config})}isAreaVisible(e){return j(e,this._config)}setAreaVisible(e,s){let i=this._config.series?.[s];l(i)&&m({visible:e,seriesIndex:s,config:this._config})}isMarkerVisible(e){return H(e,this._config)}setMarkerVisible(e,s){let i=this._config.series?.[s];l(i)&&x({visible:e,seriesIndex:s,config:this._config})}getAreaColor(e){return W(e,this._config)}setAreaColor(e,s){let i=this._config.series?.[s];l(i)&&(m({visible:!0,seriesIndex:s,config:this._config}),u(e,s,this._config))}getSeriesHideOversizedSideBySideLabels(e){return P(e,this._config)}setSeriesHideOversizedSideBySideLabels(e,s){let i=this._config.series?.[s];f(i)&&w(e,s,this._config)}getSeriesHideOversizedStackedLabels(e){return q(e,this._config)}setSeriesHideOversizedStackedLabels(e,s){let i=this._config.series?.[s];f(i)&&N(e,s,this._config)}};a([n],o.prototype,"setSeriesType");a([n],o.prototype,"setSeriesLineStyle");a([n],o.prototype,"setSeriesLineWidth");a([n],o.prototype,"setSeriesMarkerColor");a([n],o.prototype,"setSeriesMarkerStyle");a([n],o.prototype,"setSeriesMarkerSize");a([n],o.prototype,"setLineSmoothed");a([n],o.prototype,"setAreaVisible");a([n],o.prototype,"setMarkerVisible");a([n],o.prototype,"setAreaColor");a([n],o.prototype,"setSeriesHideOversizedSideBySideLabels");a([n],o.prototype,"setSeriesHideOversizedStackedLabels");var J=[T,$];_(o,J);return o},a,b,d,e,f,i,j,k,l,m,n,o,q,r,s,t,u,v,w,x)