@arcgis/charts-components 5.2.0-next.71 → 5.2.0-next.73

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 (134) hide show
  1. package/LICENSE.md +4 -2
  2. package/dist/cdn/{4M4SAEH4.js → 27T5D3K4.js} +1 -1
  3. package/dist/cdn/{QSGJ3MAT.js → 2EX6L3UK.js} +1 -1
  4. package/dist/cdn/{54VUGIAU.js → 2NQ6MELS.js} +1 -1
  5. package/dist/cdn/{VHW4OAKG.js → 2TE3YZBW.js} +3 -3
  6. package/dist/cdn/{7XWR4EVM.js → 3K3AZU3H.js} +1 -1
  7. package/dist/cdn/{FJGG2VVZ.js → 3P2SRGLO.js} +1 -1
  8. package/dist/cdn/{5NVOWYWZ.js → 3VM4DOEZ.js} +1 -1
  9. package/dist/cdn/{IODRBLGT.js → 4BRBVLD3.js} +1 -1
  10. package/dist/cdn/{2SLJKRSD.js → 4R7PF5KX.js} +1 -1
  11. package/dist/cdn/{SSQPRUUN.js → 54JCSWKS.js} +1 -1
  12. package/dist/cdn/{IO6A77U4.js → 5LWG4OGB.js} +1 -1
  13. package/dist/cdn/{I5DMUUEL.js → 5ROKZRVW.js} +1 -1
  14. package/dist/cdn/{25MA553Z.js → 5TF4XWIC.js} +1 -1
  15. package/dist/cdn/{OAXHS4LE.js → 5X7Q3I6R.js} +1 -1
  16. package/dist/cdn/{3PDVKKKZ.js → 6F6RXEE7.js} +1 -1
  17. package/dist/cdn/{SL7NRRSJ.js → 6O3HF44R.js} +1 -1
  18. package/dist/cdn/{QWCNHH6G.js → 6QQTUFRP.js} +1 -1
  19. package/dist/cdn/{WDUTZ6EO.js → 76SBKWBM.js} +1 -1
  20. package/dist/cdn/{VUHFYOLC.js → 7NQYTB6K.js} +1 -1
  21. package/dist/cdn/{4DC4ARHU.js → 7O3T7HG5.js} +1 -1
  22. package/dist/cdn/{6TJIHHQF.js → 7VJRGF4E.js} +1 -1
  23. package/dist/cdn/{GIH3U7YP.js → A7ISZ5RM.js} +1 -1
  24. package/dist/cdn/{VNYRZDY5.js → BBWFFVQ7.js} +1 -1
  25. package/dist/cdn/{RCZLTGQI.js → BE3D4CYZ.js} +1 -1
  26. package/dist/cdn/{BZ6FUIQF.js → BRWJSQNF.js} +1 -1
  27. package/dist/cdn/{OTFA727N.js → BTKWU3YE.js} +1 -1
  28. package/dist/cdn/{PTUMQCFF.js → C6U7HPQE.js} +1 -1
  29. package/dist/cdn/{DT5BOM5F.js → CY3UKUIP.js} +1 -1
  30. package/dist/cdn/{2K4MIK4T.js → D2AGAJK7.js} +1 -1
  31. package/dist/cdn/{LIDWAYQH.js → D43DR25R.js} +28 -28
  32. package/dist/cdn/{4JWIBRGO.js → D6MRUKIA.js} +1 -1
  33. package/dist/cdn/{4IO3VF3L.js → DQSPIG3P.js} +1 -1
  34. package/dist/cdn/DY2DE7FX.js +2 -0
  35. package/dist/cdn/{3B6QE7OV.js → E4ZOL5K5.js} +1 -1
  36. package/dist/cdn/{QT64PB4L.js → EUNBXPUS.js} +1 -1
  37. package/dist/cdn/{ROG3HFDT.js → EUQPESOK.js} +1 -1
  38. package/dist/cdn/{K6F2LRKI.js → F3ZGHFA6.js} +1 -1
  39. package/dist/cdn/{MAC4MPUA.js → FLMUOC55.js} +1 -1
  40. package/dist/cdn/{WM6SCZHN.js → HOQNWF7T.js} +1 -1
  41. package/dist/cdn/{PIEX577B.js → HS52MRKJ.js} +1 -1
  42. package/dist/cdn/{QC3FMJKL.js → HXC5LKJW.js} +1 -1
  43. package/dist/cdn/{IK4FPUFJ.js → IMG5US47.js} +1 -1
  44. package/dist/cdn/{7KNUJIOC.js → IXBLQSE6.js} +1 -1
  45. package/dist/cdn/{V2FHLWYC.js → JYV4I2GQ.js} +1 -1
  46. package/dist/cdn/{3FM3YR57.js → KBROJDYY.js} +1 -1
  47. package/dist/cdn/{NUHPR7BM.js → KMX777EF.js} +1 -1
  48. package/dist/cdn/{BQORJ3LU.js → KN6WLM2H.js} +1 -1
  49. package/dist/cdn/{WPLHZAZ3.js → LKNQUAR2.js} +1 -1
  50. package/dist/cdn/{OE7Q4MG5.js → LMOH2EKW.js} +1 -1
  51. package/dist/cdn/{NF4EBNLN.js → LP5TTMQR.js} +1 -1
  52. package/dist/cdn/{OE7FIKPS.js → M2TX43TJ.js} +1 -1
  53. package/dist/cdn/{XH57C72H.js → MQJAK2SJ.js} +1 -1
  54. package/dist/cdn/{L6DFXTSQ.js → NAUEEC5O.js} +1 -1
  55. package/dist/cdn/{F5AR3N3Z.js → NLIYZT4J.js} +1 -1
  56. package/dist/cdn/{LAPBDR32.js → NPH57JQ6.js} +1 -1
  57. package/dist/cdn/{JYLEN3VQ.js → NQ5JEX36.js} +1 -1
  58. package/dist/cdn/{MOG5ZVLX.js → NVINMCGT.js} +1 -1
  59. package/dist/cdn/{BAFCVCT4.js → OFJFM4B4.js} +1 -1
  60. package/dist/cdn/{BNNBHYRP.js → OQZDT6CL.js} +1 -1
  61. package/dist/cdn/{3XB2RWHK.js → OUOCOHTG.js} +1 -1
  62. package/dist/cdn/{EJWHEBKW.js → OWJQEWK7.js} +1 -1
  63. package/dist/cdn/{JAQYU6KP.js → P6YFC7LU.js} +1 -1
  64. package/dist/cdn/{7REEJ3OW.js → PE3I5BB4.js} +1 -1
  65. package/dist/cdn/{5GZDXWTQ.js → PZL4HGLN.js} +1 -1
  66. package/dist/cdn/{CVFKL3S2.js → Q2GJNRU2.js} +1 -1
  67. package/dist/cdn/{O2BQ374Y.js → Q7VV6RA4.js} +1 -1
  68. package/dist/cdn/{3WOYVXSZ.js → R2GPX6DA.js} +1 -1
  69. package/dist/cdn/{VAF3UIVA.js → RHSCKBJG.js} +1 -1
  70. package/dist/cdn/RSLGXN7X.js +2 -0
  71. package/dist/cdn/{P6DBPQZO.js → RXSNPRN7.js} +1 -1
  72. package/dist/cdn/{ZK5Z6BOX.js → S3LRWKAX.js} +1 -1
  73. package/dist/cdn/{3V4ZETXH.js → S3QIWVN6.js} +1 -1
  74. package/dist/cdn/{LPYRKK25.js → SJ7UC3JM.js} +1 -1
  75. package/dist/cdn/{NP24UZGI.js → SM5PY54Q.js} +1 -1
  76. package/dist/cdn/{AVE3KXWQ.js → SPAWFHXG.js} +1 -1
  77. package/dist/cdn/{RCLHFY6O.js → TBAK2RCH.js} +1 -1
  78. package/dist/cdn/{33JR3GH6.js → TSORVNA6.js} +1 -1
  79. package/dist/cdn/{27RKQQPS.js → TTMIUSJW.js} +1 -1
  80. package/dist/cdn/{QAXXYD6N.js → UFCXIYYK.js} +1 -1
  81. package/dist/cdn/{4ODTQZJK.js → UUKKQ3K7.js} +1 -1
  82. package/dist/cdn/VMN2UXWS.js +3 -0
  83. package/dist/cdn/{GKEW5JYD.js → VZOL2AD6.js} +1 -1
  84. package/dist/cdn/{E7QFC64H.js → W4F6FFOT.js} +1 -1
  85. package/dist/cdn/{4JUR3VIE.js → XFO5L4DP.js} +1 -1
  86. package/dist/cdn/index.js +1 -1
  87. package/dist/cdn/model/shared/setup-utils.js +1 -1
  88. package/dist/chunks/box-plot-model.js +37 -37
  89. package/dist/chunks/class-breaks.js +66 -66
  90. package/dist/chunks/combo-bar-line-chart-model.js +1 -1
  91. package/dist/chunks/data.js +15 -15
  92. package/dist/chunks/index2.js +3184 -3143
  93. package/dist/chunks/index4.js +1 -1
  94. package/dist/chunks/model-setter.js +1 -1
  95. package/dist/chunks/negative-values-stacked-to-baseline.js +6 -6
  96. package/dist/chunks/pie-chart-model.js +385 -334
  97. package/dist/chunks/scatterplot-model.js +1 -1
  98. package/dist/chunks/serial-chart-data.js +50 -50
  99. package/dist/chunks/serial-chart-model.js +1 -1
  100. package/dist/chunks/type-guards2.js +15 -15
  101. package/dist/chunks/utils.js +10 -10
  102. package/dist/chunks/web-component-utils.js +1 -1
  103. package/dist/chunks/x-bounds.js +5 -5
  104. package/dist/components/arcgis-chart/customElement.d.ts +11 -29
  105. package/dist/components/arcgis-chart/customElement.js +171 -166
  106. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  107. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
  108. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
  109. package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
  110. package/dist/components/arcgis-charts-config-format/customElement.js +7 -7
  111. package/dist/components/arcgis-charts-config-guide/customElement.js +7 -7
  112. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
  113. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
  114. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +9 -9
  115. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  116. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +9 -9
  117. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +18 -18
  118. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  119. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
  120. package/dist/components/arcgis-charts-config-view-charts/customElement.js +4 -4
  121. package/dist/docs/api.json +1 -1
  122. package/dist/docs/docs.json +1 -1
  123. package/dist/docs/vscode.html-custom-data.json +1 -1
  124. package/dist/docs/web-types.json +1 -1
  125. package/dist/index.js +208 -207
  126. package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +7 -55
  127. package/dist/model/pie-chart-model/pie-chart-model.d.ts +59 -2
  128. package/dist/model/shared/type-guards.d.ts +1 -0
  129. package/dist/utils/chart-config/converter/index.js +32 -32
  130. package/dist/utils/components/interfaces.d.ts +2 -0
  131. package/package.json +4 -4
  132. package/dist/cdn/CNI32IL3.js +0 -2
  133. package/dist/cdn/CRQK4CKK.js +0 -2
  134. package/dist/cdn/NAGOJPIX.js +0 -3
@@ -5,11 +5,11 @@ import type { ChartConfig } from "../../utils/types/index.js";
5
5
  import type { ChartModel } from "../chart-model/chart-model.js";
6
6
  import type { ModelParams } from "../interfaces/chart-interfaces.js";
7
7
  import type { ModelTypes, PieChartDataSortingKinds, PieChartSlicesDisplay, PieChartDataModes } from "../interfaces/common.js";
8
+ import type { ModelWithLegend } from "../mixins/model-with-legend.js";
8
9
  import type { ModelWithTooltips } from "../mixins/model-with-tooltips.js";
9
10
  import type { WithColorMatch } from "../properties/color-match.js";
10
11
  import type { WithDataLabelsSymbol } from "../properties/data-labels/data-labels-symbol.js";
11
12
  import type { WithDataLabelsVisibility } from "../properties/data-labels/data-labels-visibility.js";
12
- import type { PieChartLegendModel } from "./pie-chart-legend-model.js";
13
13
 
14
14
  export class PieChartModel extends PieChartModelSuperclass {
15
15
  /** Aggregation type for the pie chart. */
@@ -24,11 +24,19 @@ export class PieChartModel extends PieChartModelSuperclass {
24
24
  accessor dataLabelsOffset: number;
25
25
  /** Number of decimal places to display in the slice values. */
26
26
  accessor decimalPlaces: number;
27
+ /**
28
+ * Whether to display the category in the legend.
29
+ *
30
+ * @deprecated since 5.2. Use [displayCategoryOnLegendItems](https://developers.arcgis.com/javascript/latest/references/charts-components/model/pie-chart-model/pie-chart-model/#displayCategoryOnLegendItems) instead. This property will be removed from `PieChartModel` in 6.0.
31
+ */
32
+ accessor displayCategory: boolean;
27
33
  /**
28
34
  * Whether to display the category on the data label.
29
35
  * **Note:** If the setting is not found in the config, it will default to `true`.
30
36
  */
31
37
  accessor displayCategoryOnDataLabel: boolean;
38
+ /** Whether to display the category on legend items. */
39
+ accessor displayCategoryOnLegendItems: boolean;
32
40
  /**
33
41
  * Display category value on tooltip setting from the chart config.
34
42
  *
@@ -40,6 +48,8 @@ export class PieChartModel extends PieChartModelSuperclass {
40
48
  * **Note:** If the setting is not found in the config, it will default to `true`.
41
49
  */
42
50
  accessor displayNumericValueOnDataLabel: boolean;
51
+ /** Whether to display the numeric value on legend items. */
52
+ accessor displayNumericValueOnLegendItems: boolean;
43
53
  /**
44
54
  * Display numeric value on tooltip setting from the chart config.
45
55
  *
@@ -52,6 +62,8 @@ export class PieChartModel extends PieChartModelSuperclass {
52
62
  * **Note:** If the setting is not found in the config, it will default to `true`.
53
63
  */
54
64
  accessor displayPercentageOnDataLabel: boolean;
65
+ /** Whether to display the percentage on legend items. */
66
+ accessor displayPercentageOnLegendItems: boolean;
55
67
  /**
56
68
  * Display percentage on tooltip setting from the chart config.
57
69
  *
@@ -70,6 +82,9 @@ export class PieChartModel extends PieChartModelSuperclass {
70
82
  accessor innerRadiusSize: number;
71
83
  /** Character limit for the slice labels. */
72
84
  accessor labelCharacterLimit: number | null;
85
+ /** Maximum width in pixels for legend item labels. */
86
+ get labelMaxWidth(): number;
87
+ set labelMaxWidth(value: number | undefined);
73
88
  /**
74
89
  * The pie chart data mode.
75
90
  *
@@ -109,6 +124,9 @@ export class PieChartModel extends PieChartModelSuperclass {
109
124
  accessor ticksSymbol: ISimpleLineSymbol | undefined;
110
125
  /** Visibility of the ticks. */
111
126
  accessor ticksVisibility: boolean;
127
+ /** Maximum width in pixels for legend value labels. */
128
+ get valueLabelMaxWidth(): number;
129
+ set valueLabelMaxWidth(value: number | undefined);
112
130
  /** Prefix of the values of the slices. */
113
131
  accessor valuePrefix: string | undefined;
114
132
  /** Suffix of the values of the slice. */
@@ -117,6 +135,24 @@ export class PieChartModel extends PieChartModelSuperclass {
117
135
  generateChartTitle(): string;
118
136
  /** Gets the list of the category values for the chart. */
119
137
  getCustomSortValues(): Promise<string[]>;
138
+ /**
139
+ * Gets the setting for displaying numerical values on legend items.
140
+ *
141
+ * @deprecated since 5.2. Use [displayNumericValueOnLegendItems](https://developers.arcgis.com/javascript/latest/references/charts-components/model/pie-chart-model/pie-chart-model/#displayNumericValueOnLegendItems) instead. This method will be removed from `PieChartModel` in 6.0.
142
+ */
143
+ getDisplayNumericValue(): boolean;
144
+ /**
145
+ * Gets the setting for displaying percentages on legend items.
146
+ *
147
+ * @deprecated since 5.2. Use [displayPercentageOnLegendItems](https://developers.arcgis.com/javascript/latest/references/charts-components/model/pie-chart-model/pie-chart-model/#displayPercentageOnLegendItems) instead. This method will be removed from `PieChartModel` in 6.0.
148
+ */
149
+ getDisplayPercentage(): boolean;
150
+ /**
151
+ * Gets the maximum width in pixels for legend item labels.
152
+ *
153
+ * @deprecated since 5.2. Use [labelMaxWidth](https://developers.arcgis.com/javascript/latest/references/charts-components/model/pie-chart-model/pie-chart-model/#labelMaxWidth) instead. This method will be removed from `PieChartModel` in 6.0.
154
+ */
155
+ getLabelMaxWidth(): number;
120
156
  /**
121
157
  * Gets the original name of the slice based on the slice index.
122
158
  *
@@ -170,6 +206,27 @@ export class PieChartModel extends PieChartModelSuperclass {
170
206
  resetAvailable(): boolean;
171
207
  /** Resets the slices styling to the default styling. */
172
208
  resetSlices(): void;
209
+ /**
210
+ * Sets the setting for displaying numerical values on legend items.
211
+ *
212
+ * @deprecated since 5.2. Use [displayNumericValueOnLegendItems](https://developers.arcgis.com/javascript/latest/references/charts-components/model/pie-chart-model/pie-chart-model/#displayNumericValueOnLegendItems) instead. This method will be removed from `PieChartModel` in 6.0.
213
+ * @param display
214
+ */
215
+ setDisplayNumericValue(display: boolean): void;
216
+ /**
217
+ * Sets the setting for displaying percentages on legend items.
218
+ *
219
+ * @deprecated since 5.2. Use [displayPercentageOnLegendItems](https://developers.arcgis.com/javascript/latest/references/charts-components/model/pie-chart-model/pie-chart-model/#displayPercentageOnLegendItems) instead. This method will be removed from `PieChartModel` in 6.0.
220
+ * @param display
221
+ */
222
+ setDisplayPercentage(display: boolean): void;
223
+ /**
224
+ * Sets the maximum width in pixels for legend item labels.
225
+ *
226
+ * @deprecated since 5.2. Use [labelMaxWidth](https://developers.arcgis.com/javascript/latest/references/charts-components/model/pie-chart-model/pie-chart-model/#labelMaxWidth) instead. This method will be removed from `PieChartModel` in 6.0.
227
+ * @param labelMaxWidth
228
+ */
229
+ setLabelMaxWidth(labelMaxWidth: number | undefined): void;
173
230
  /**
174
231
  * Sets the color of the slice based on the slice index.
175
232
  *
@@ -198,4 +255,4 @@ export class PieChartModel extends PieChartModelSuperclass {
198
255
  */
199
256
  setup(params: ModelParams<ChartConfig<typeof ModelTypes.PieChart>>): Promise<void>;
200
257
  }
201
- declare const PieChartModelSuperclass: typeof ChartModel & typeof WithDataLabelsSymbol & typeof WithDataLabelsVisibility & typeof WithColorMatch & typeof ModelWithTooltips & typeof PieChartLegendModel
258
+ declare const PieChartModelSuperclass: typeof ChartModel & typeof WithDataLabelsSymbol & typeof WithDataLabelsVisibility & typeof WithColorMatch & typeof ModelWithTooltips & typeof ModelWithLegend
@@ -160,6 +160,7 @@ export function isModelWithLegend(model: ChartModel | undefined): model is Model
160
160
  /**
161
161
  * Determines if the provided `model` is of type `PieChartLegendModel`.
162
162
  *
163
+ * @deprecated since 5.2. Use [isPieChartModel](https://developers.arcgis.com/javascript/latest/references/charts-components/model/shared/type-guards/#isPieChartModel) instead. This function will be removed in 6.0.
163
164
  * @param model - The model to check.
164
165
  */
165
166
  export function isPieChartLegendModel(model: ChartModel | undefined): model is PieChartLegendModel;
@@ -2,7 +2,7 @@
2
2
  import { getElementLocale as $e } from "@arcgis/toolkit/intl/dom";
3
3
  import { cloneDeep as n, isEmpty as B } from "lodash-es";
4
4
  import { DateTime as Qe } from "luxon";
5
- import { af as Ye, Q as se, Z as Je, cS as ne, di as ae, cs as Ke, a$ as Xe, ac as Ze, Y as O, bo as Ue, O as b, c3 as te, aI as et, aJ as tt, m as Z, bD as rt, h as it, bJ as ot, w as st } from "../../../chunks/index2.js";
5
+ import { af as Ye, Q as se, Z as Ke, cT as ne, dj as ae, ct as Je, a$ as Xe, ac as Ze, Y as O, bo as Ue, O as b, c4 as te, aI as et, aJ as tt, m as Z, bE as rt, h as it, bK as ot, w as st } from "../../../chunks/index2.js";
6
6
  import { W as nt, aB as at, g as dt, G as lt, ag as ct } from "../../../chunks/index.js";
7
7
  import { d as ut } from "../../../chunks/type-guards.js";
8
8
  import { C as f, h as k, q as de } from "../../../chunks/index3.js";
@@ -437,11 +437,11 @@ function qe(r) {
437
437
  }
438
438
  return e;
439
439
  }
440
- function Re(r) {
440
+ function Ee(r) {
441
441
  const e = n(r);
442
442
  return e.horizontalAxisLabelsBehavior === L.NONE && (e.horizontalAxisLabelsBehavior = ie.Hide), e.verticalAxisLabelsBehavior === L.NONE && (e.verticalAxisLabelsBehavior = ie.Hide), e;
443
443
  }
444
- function Ee(r) {
444
+ function Re(r) {
445
445
  const e = n(r), i = e.series[0];
446
446
  if (i && !i.temporalBinning && st(e.series[0]) && ("timeIntervalSize" in i || "timeIntervalUnits" in i || "timeAggregationType" in i || "trimIncompleteTimeInterval" in i || "nullPolicy" in i)) {
447
447
  if (i.temporalBinning = {}, i.timeIntervalSize !== void 0 && (i.temporalBinning.size = i.timeIntervalSize, delete i.timeIntervalSize), i.timeIntervalUnits) {
@@ -491,7 +491,7 @@ function Ge(r) {
491
491
  const e = n(r), i = e.series[0];
492
492
  return i?.temporalBinning && delete i.temporalBinning?.type, e;
493
493
  }
494
- function _e(r) {
494
+ function je(r) {
495
495
  const e = n(r), i = e.series[0], t = r;
496
496
  return t.series[0]?.xTemporalBinning && (i.xTemporalBinning = {
497
497
  ...t.series[0]?.xTemporalBinning,
@@ -501,7 +501,7 @@ function _e(r) {
501
501
  type: c.CalendarDateParts
502
502
  }), e;
503
503
  }
504
- function je(r) {
504
+ function _e(r) {
505
505
  let e = n(r);
506
506
  return e = be(e), e;
507
507
  }
@@ -533,11 +533,11 @@ function q(r) {
533
533
  let e = n(r);
534
534
  return e = we(e), e;
535
535
  }
536
- function R(r) {
536
+ function E(r) {
537
537
  let e = n(r);
538
538
  return e = Ae(e), e;
539
539
  }
540
- function E(r) {
540
+ function R(r) {
541
541
  return Me(r);
542
542
  }
543
543
  function N(r) {
@@ -550,17 +550,17 @@ function V(r) {
550
550
  function G(r) {
551
551
  return We(r);
552
552
  }
553
- function _(r) {
553
+ function j(r) {
554
554
  return ve(r);
555
555
  }
556
- function j(r) {
556
+ function _(r) {
557
557
  return qe(r);
558
558
  }
559
559
  function z(r) {
560
- return Re(r);
560
+ return Ee(r);
561
561
  }
562
562
  function H(r) {
563
- return Ee(r);
563
+ return Re(r);
564
564
  }
565
565
  function $(r) {
566
566
  return Ne(r);
@@ -573,11 +573,11 @@ function Y(r) {
573
573
  let e = n(r);
574
574
  return e = Ge(e), e;
575
575
  }
576
- function J(r) {
576
+ function K(r) {
577
577
  let e = n(r);
578
- return e = _e(e), e;
578
+ return e = je(e), e;
579
579
  }
580
- function K(r) {
580
+ function J(r) {
581
581
  let e = n(r);
582
582
  return e = Bt(e), e;
583
583
  }
@@ -588,7 +588,7 @@ function X(r) {
588
588
  function ze(r) {
589
589
  const { versionsToConvert: e, configToUpdate: i } = r;
590
590
  let t = n(i);
591
- return e.length > 0 && t !== void 0 && (t = Ie(t), e.includes(se) || e.includes(Ke) ? (t = je(t), t = w(t), t = A(t), t = D(t), t = M(t), t = I(t), t = W(t), t = q(t), t = R(t), t = E(t), t = N(t), t = V(t), t = G(t), t = _(t), t = j(t), t = z(t), t = H(t), t = $(t), t = Q(t), t = Y(t), t = J(t), t = K(t), t = X(t)) : e.forEach((o) => {
591
+ return e.length > 0 && t !== void 0 && (t = Ie(t), e.includes(se) || e.includes(Je) ? (t = _e(t), t = w(t), t = A(t), t = D(t), t = M(t), t = I(t), t = W(t), t = q(t), t = E(t), t = R(t), t = N(t), t = V(t), t = G(t), t = j(t), t = _(t), t = z(t), t = H(t), t = $(t), t = Q(t), t = Y(t), t = K(t), t = J(t), t = X(t)) : e.forEach((o) => {
592
592
  if (t !== void 0)
593
593
  switch (o) {
594
594
  case "1.0.1":
@@ -613,10 +613,10 @@ function ze(r) {
613
613
  t = q(t);
614
614
  break;
615
615
  case "9.2.0":
616
- t = R(t);
616
+ t = E(t);
617
617
  break;
618
618
  case "9.7.0":
619
- t = E(t);
619
+ t = R(t);
620
620
  break;
621
621
  case "10.0.0":
622
622
  t = N(t);
@@ -628,10 +628,10 @@ function ze(r) {
628
628
  t = G(t);
629
629
  break;
630
630
  case "16.0.0":
631
- t = _(t);
631
+ t = j(t);
632
632
  break;
633
633
  case "16.1.0":
634
- t = j(t);
634
+ t = _(t);
635
635
  break;
636
636
  case "18.1.3":
637
637
  t = z(t);
@@ -649,10 +649,10 @@ function ze(r) {
649
649
  t = Y(t);
650
650
  break;
651
651
  case "24.8.0":
652
- t = J(t);
652
+ t = K(t);
653
653
  break;
654
654
  case "25.0.0":
655
- t = K(t);
655
+ t = J(t);
656
656
  break;
657
657
  case "25.1.0":
658
658
  t = X(t);
@@ -665,7 +665,7 @@ async function Dt(r, e, i, t) {
665
665
  if (r) {
666
666
  const s = Ye(e);
667
667
  await s?.load({ signal: t }), o = await he({ configToUpdate: r, layer: s, chartContainer: i, abortSignal: t });
668
- const a = r.version ?? se, { versionStatus: u, versions: y } = Je(a);
668
+ const a = r.version ?? se, { versionStatus: u, versions: y } = Ke(a);
669
669
  (u === re.Older || u === re.Unrecognized) && (o = ze({
670
670
  versionsToConvert: y,
671
671
  configToUpdate: o
@@ -699,14 +699,14 @@ const Mt = {
699
699
  getDataOrderFromOrderByFields: P,
700
700
  convertWebChartDataValueTypes: ke,
701
701
  moveOrConvertSeriesOrderByFieldsToChartOrderOptions: Ie,
702
- convertWebChartLabelBehaviorNoneToHide: Re,
702
+ convertWebChartLabelBehaviorNoneToHide: Ee,
703
703
  handleOrderOptionsChanges: We,
704
704
  applyDataOrderInstructionForFromFieldsCharts: qe,
705
- convertTemporalBinningProps: Ee,
705
+ convertTemporalBinningProps: Re,
706
706
  convertRESTStatisticTypeToWebChartStatisticType: Ne,
707
707
  renameChartSubtitle: Ve,
708
708
  applyMandatoryConversions: he,
709
- convertTo1x0x1: je,
709
+ convertTo1x0x1: _e,
710
710
  convertTo2x0x0: w,
711
711
  convertTo3x5x0: A,
712
712
  convertTo4x0x1: D,
@@ -714,23 +714,23 @@ const Mt = {
714
714
  convertTo7x0x0: I,
715
715
  convertTo7x6x0: W,
716
716
  convertTo8x0x1: q,
717
- convertTo9x3x0: R,
718
- convertTo10x0x0: E,
717
+ convertTo9x3x0: E,
718
+ convertTo10x0x0: R,
719
719
  convertTo11x0x0: N,
720
720
  convertTo12x0x0: V,
721
721
  convertTo15x0x0: G,
722
- convertTo16x1x0: _,
723
- convertTo16x1x1: j,
722
+ convertTo16x1x0: j,
723
+ convertTo16x1x1: _,
724
724
  convertTo19x0x0: z,
725
725
  convertTo20x2x0: H,
726
726
  convertTo21x1x0: $,
727
727
  convertTo23x3x0: Q,
728
728
  convertTo24x8x0: Y,
729
- convertTo25x0x0: J,
730
- convertTo25x1x0: K,
729
+ convertTo25x0x0: K,
730
+ convertTo25x1x0: J,
731
731
  convertTo25x2x0: X,
732
732
  convertTemporalBinningProps2: Ge,
733
- transformPropsInHeatChart: _e,
733
+ transformPropsInHeatChart: je,
734
734
  applyConversions: ze,
735
735
  convertDataSourceToILayer: ve,
736
736
  applyDefaultFirstDayOfWeek: le,
@@ -8,6 +8,8 @@ export interface MissingSplitBySeriesProps {
8
8
  export const DownloadableChartImagesTypes: {
9
9
  readonly PNG: "png";
10
10
  readonly JPEG: "jpeg";
11
+ readonly JPG: "jpg";
12
+ readonly WEBP: "webp";
11
13
  readonly SVG: "svg";
12
14
  };
13
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/charts-components",
3
- "version": "5.2.0-next.71",
3
+ "version": "5.2.0-next.73",
4
4
  "description": "Reusable ArcGIS charting Web Components.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -32,7 +32,7 @@
32
32
  "@amcharts/amcharts5": "~5.20.1",
33
33
  "@esri/arcgis-html-sanitizer": "~4.1.0",
34
34
  "@lit/task": "^1.0.3",
35
- "@zumer/snapdom": "^2.12.9",
35
+ "@zumer/snapdom": "^2.24.1",
36
36
  "ajv": "6.12.6",
37
37
  "d3-shape": "^3.2.0",
38
38
  "jszip": "^3.10.1",
@@ -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.71",
45
- "@arcgis/toolkit": "5.2.0-next.71"
44
+ "@arcgis/toolkit": "5.2.0-next.73",
45
+ "@arcgis/lumina": "5.2.0-next.73"
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 r from"./QC3FMJKL.js";import q from"./4ODTQZJK.js";import p from"./7KNUJIOC.js";import o from"./AVE3KXWQ.js";import n from"./L6DFXTSQ.js";import l from"./WDUTZ6EO.js";import j from"./OE7Q4MG5.js";import"./WDMYVS4F.js";import i from"./MOG5ZVLX.js";import g from"./EJWHEBKW.js";import e from"./4JWIBRGO.js";import a from"./NAGOJPIX.js";import{d as y,n as k}from"./CRNIOME2.js";import"./BGOWDCTO.js";import{L as O,O as h,ga as L,ia as N,o as b,pa as M}from"./USNJZCHH.js";import{f as m}from"./KX7KGXKQ.js";import{g as T}from"./SP2IPHWF.js";import"./LJTJTGIW.js";import{l as F}from"./7SBVBD4E.js";import{e as f,f as c}from"./QP5UAIC6.js";import"./KJZTU3DV.js";import{a as d}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{yb:v,za:w},{p:A,q:I,r:G},,{c:t},,X,{b:z},{b:J},{a:P,b:Y,c:q,d:H},,{a:u,b:W,c:_,d:B,e:j,f:E,g:R,h:U,i:K,j:C,k:D,l:S}])=>{var se=i=>i.legend?.displayNumericValue??!1,te=(i,e)=>{e.series[0]?.type===d.PieSeries&&(e.legend===void 0&&(e.legend=h()),e.legend.displayNumericValue=i)},re=i=>i.legend?.displayCategory??!1,oe=(i,e)=>{e.series[0]?.type===d.PieSeries&&(e.legend===void 0&&(e.legend=h()),e.legend.displayCategory=i)},ae=i=>i.legend?.displayPercentage??!1,ne=(i,e)=>{e.series[0]?.type===d.PieSeries&&(e.legend===void 0&&(e.legend=h()),e.legend.displayPercentage=i)},le=i=>i.legend?.labelMaxWidth??200,ce=(i,e)=>{e.series[0]?.type===d.PieSeries&&(e.legend===void 0&&(e.legend=h()),e.legend.labelMaxWidth=i)},ge=i=>i.legend?.valueLabelMaxWidth??200,de=(i,e)=>{e.series[0]?.type===d.PieSeries&&(e.legend===void 0&&(e.legend=h()),e.legend.valueLabelMaxWidth=i)},pe=Object.defineProperty,he=Object.getOwnPropertyDescriptor,x=(i,e,s,o)=>{for(var n=he(e,s),l=i.length-1,g;l>=0;l--)(g=i[l])&&(n=g(e,s,n)||n);return n&&pe(e,s,n),n},p=class extends P{getDisplayNumericValue(){return se(this._config)}setDisplayNumericValue(e){te(e,this._config)}getDisplayPercentage(){return ae(this._config)}setDisplayPercentage(e){ne(e,this._config)}getLabelMaxWidth(){return le(this._config)}setLabelMaxWidth(e){ce(e,this._config)}get valueLabelMaxWidth(){return ge(this._config)}set valueLabelMaxWidth(e){de(e,this._config),this.emitConfigUpdate("valueLabelMaxWidth")}get displayCategory(){return re(this._config)}set displayCategory(e){oe(e,this._config),this.emitConfigUpdate("displayCategory")}};x([t],p.prototype,"setDisplayNumericValue");x([t],p.prototype,"setDisplayPercentage");x([t],p.prototype,"setLabelMaxWidth");var fe=[P];I(p,fe);var ue=i=>i.series?.[0]?.innerRadius,me=(i,e)=>{e.series?.[0]&&(e.series[0].innerRadius=i)},ye=i=>i.series?.[0]?.dataLabelsCharacterLimit,_e=(i,e)=>{e.series?.[0]&&(e.series[0].dataLabelsCharacterLimit=i)},Q=i=>i.series[0]?.startAngle,Se=(i,e)=>{e.series?.[0]&&(e.series[0].startAngle=i)},be=(i,e)=>{e.series?.[0]&&(e.series[0].endAngle=i)},Oe=i=>i.series?.[0]?.displayCategoryOnTooltip??!0,Le=i=>i.series?.[0]?.displayCategoryOnDataLabel??!0,ve=i=>i.series?.[0]?.displayNumericValueOnDataLabel??!0,Ie=i=>i.series?.[0]?.displayPercentageOnDataLabel??!1,Ce=i=>i.series?.[0]?.displayNumericValueOnTooltip??!0,De=i=>i.series?.[0]?.displayPercentageOnTooltip??!0,Pe=(i,e)=>{e.series[0]&&(e.series[0].displayPercentageOnTooltip=i)},xe=i=>i.series?.[0]?.valuePrefix,Ve=(i,e)=>{e.series?.[0]&&(e.series[0].valuePrefix=i)},Fe=i=>i.series?.[0]?.valueSuffix,Te=(i,e)=>{e.series?.[0]&&(e.series[0].valueSuffix=i)},Ne=i=>i.series?.[0]?.percentagePrefix,Me=(i,e)=>{e.series?.[0]&&(e.series[0].percentagePrefix=i)},ke=i=>i.series?.[0]?.percentageSuffix,we=(i,e)=>{e.series?.[0]&&(e.series[0].percentageSuffix=i)},Ae=i=>{let e,s=i.series?.[0];return s?.displayNumericValueOnDataLabel===!0&&s?.displayPercentageOnDataLabel===!0?e=c.Both:s?.displayNumericValueOnDataLabel===!0?e=c.Value:e=c.Percentage,e},Ge=(i,e)=>{let s=i===c.Value||i===c.Both,o=i===c.Percentage||i===c.Both;e.series?.[0]&&(e.series[0].displayNumericValueOnDataLabel=s,e.series[0].displayPercentageOnDataLabel=o),e.legend&&(e.legend={...e.legend,displayNumericValue:s,displayPercentage:o})},ze=i=>i.series?.[0]?.alignDataLabels??!1,We=(i,e)=>{e.series[0]&&(e.series[0].alignDataLabels=i)},Be=i=>i.series?.[0]?.dataLabelsInside??!1,je=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsInside=i)},Ee=i=>i.series?.[0]?.dataLabelsOffset??10,Re=(i,e)=>{e.series[0]&&(e.series[0].dataLabelsOffset=i)},Ue=i=>i.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits,Ke=(i,e)=>{e.series?.[0]&&(e.series[0].numericValueFormat??=O(),e.series[0].numericValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].numericValueFormat.intlOptions.maximumFractionDigits=i,e.series[0].percentValueFormat??=O(),e.series[0].percentValueFormat.intlOptions.minimumFractionDigits=i,e.series[0].percentValueFormat.intlOptions.maximumFractionDigits=i)},Xe=i=>i.series?.[0]?.optimizeDataLabelsOverlapping??!1,Ye=(i,e)=>{e.series[0]&&(e.series[0].optimizeDataLabelsOverlapping=i)},qe=i=>i.series[0]?.ticks?.visible??!1,He=(i,e)=>{e.series?.[0]&&(e.series[0].ticks??=L(),e.series[0].ticks.visible=i)},Je=i=>i.series[0]?.ticks?.lineSymbol,Qe=(i,e)=>{i&&e.series?.[0]&&(e.series[0].ticks??=L(),e.series[0].ticks.lineSymbol=T(i))},Ze=(i,e)=>e.series?.[0]?.slices?.[i]?.originalLabel,$e=(i,e)=>e.series?.[0]?.slices?.[i]?.label,ei=(i,e,s)=>{s.series?.[0]?.slices?.[e]&&(s.series[0].slices[e].label=i)},ii=(i,e)=>e.series?.[0]?.slices?.[i]?.fillSymbol?.color,si=(i,e,s)=>{let o=s.series?.[0]?.slices?.[e]?.fillSymbol;o!==void 0?(o.color=i,o.outline!==void 0?o.outline.color=i:o.outline={type:m.SLS,color:i}):s.series?.[0]?.slices?.[e]!==void 0&&(s.series[0].slices[e].fillSymbol={type:m.SFS,color:i,outline:{type:m.SLS,color:i}})},ti=i=>i.series?.[0]?.slices?.map(e=>e.sliceId),Z=(i,e)=>{e.series?.[0]?.slices?.sort((s,o)=>i.findIndex(n=>s.sliceId===n)-i.findIndex(n=>o.sliceId===n))},ri=i=>i.series?.[0]?.sliceGrouping,$=(i,e)=>{e.series?.[0]&&(e.series[0].sliceGrouping=i)},ee=i=>i.series?.[0]?.sliceGrouping?.percentageThreshold,oi=(i,e)=>{e.series?.[0]?.sliceGrouping!==void 0?e.series[0].sliceGrouping.percentageThreshold=i:e.series[0].sliceGrouping={sliceId:b.defaultGroupOfSlicesId,percentageThreshold:i}},ai=i=>i.series?.[0]?.slices,ie=(i,e)=>{e.series?.[0]&&(e.series[0].slices=i)},ni=i=>{ie(void 0,i),$({sliceId:b.defaultGroupOfSlicesId,percentageThreshold:ee(i)??0},i)},li=(i,e)=>e.series[0]?.slices?.[i]?.sliceId,ci=(i,e)=>e.series[0]?.slices?.findIndex(s=>s.sliceId===i),gi=i=>i.series[0]?.slices?.length??0,di=Object.defineProperty,pi=Object.getOwnPropertyDescriptor,a=(i,e,s,o)=>{for(var n=pi(e,s),l=i.length-1,g;l>=0;l--)(g=i[l])&&(n=g(e,s,n)||n);return n&&di(e,s,n),n},r=class extends X{constructor(){super(...arguments),this._chartType=d.PieSeries,this._mode=f.Category,this._groupedSliceIds=[],this._customizedSliceIds=[]}async setup(e){await this.loadConfigFromLayer(e);let{config:s}=e;if(s!==void 0){let o=v(s.series)!==y.PieFromFields?f.Category:f.Fields;this._mode=S({category:u(this._config),numericFields:_(this._config),fallbackMode:o})}typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return u(this._config)}set category(e){(!z(this._config)||e.trim()!=="")&&(this._mode=S({category:e,numericFields:_(this._config),fallbackMode:this._mode}),R({newCategory:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")))}get numericFields(){return _(this._config)}set numericFields(e){typeof e=="string"&&(e=[e]),this.layerInfo===void 0||A(this.layerInfo.layerFieldsInfo,e)?(this._mode=S({category:u(this._config),numericFields:e,fallbackMode:this._mode}),K({newNumericFields:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this._config.series[0].slices=this._config.series[0].slices?.filter(s=>s.fillSymbol?.color!==void 0&&this._customizedSliceIds.includes(s.sliceId??"")),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))):F("error","pie-chart-model","Invalid `numericFields`")}get aggregationType(){return B(this._config,this._mode)}set aggregationType(e){U({newAggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getSortOrder(){return W(this._config,this._mode)}setSortOrder(e,s){E({newSortOrderKind:e,config:this._config,orderByList:s})}get orderByList(){return C(this._config,this._mode)}set orderByList(e){D({values:e,config:this._config,mode:this._mode})}get mode(){return this._mode}set mode(e){this._mode=e}async getCustomSortValues(){let e=u(this._config),s=v(this._config.series),o=[];return s===y.PieFromFields?o=this.numericFields:e.trim()!==""&&s===y.PieFromCategory&&(o=await G({category:e,config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings})),o}moveCustomSortValuesInOrderByList(e,s){let o=C(this._config,this._mode),[n]=o.splice(e,1);o.splice(s,0,n),D({values:o,config:this._config,mode:this._mode})}get ticksSymbol(){return Je(this._config)}set ticksSymbol(e){Qe(e,this._config)}get slices(){return ai(this._config)}set slices(e){ie(e,this._config)}get groupedSliceIds(){return this._groupedSliceIds}set groupedSliceIds(e){this._groupedSliceIds=e}get sliceGrouping(){return ri(this._config)}set sliceGrouping(e){$(e,this._config)}get innerRadiusSize(){return ue(this._config)??0}set innerRadiusSize(e){me(e,this._config)}get groupingThreshold(){return ee(this._config)??0}set groupingThreshold(e){oi(e,this._config)}get labelCharacterLimit(){return ye(this._config)??null}set labelCharacterLimit(e){_e(e,this._config)}get decimalPlaces(){return Ue(this._config)??1}set decimalPlaces(e){Ke(e,this._config)}get displayType(){return Ae(this._config)}set displayType(e){Ge(e,this._config)}generateDefaultConfig(){let e=M(this.commonStrings);return e.series=[N(this.commonStrings,w(this.layerInfo.layer).idField)],e}getOriginalSliceName(e){return Ze(e,this._config)}getSliceName(e){return $e(e,this._config)}setSliceName(e,s){let o=this.getSliceId(s);o!==void 0&&this._customizedSliceIds.push(o),ei(e,s,this._config)}getSliceColor(e){return ii(e,this._config)}setSliceColor(e,s){let o=this.getSliceId(s);e!==void 0&&o!==void 0&&this._customizedSliceIds.push(o),si(e,s,this._config)}get orderOfSlices(){return ti(this._config)}set orderOfSlices(e){e!==void 0&&Z(e,this._config)}moveSeries(e,s){let o=this.orderOfSlices;if(o!==void 0){let[n]=o.splice(e,1);o.splice(s,0,n),Z(o,this._config)}}getSliceId(e){return li(e,this._config)}getSliceIndex(e){return ci(e,this._config)}getSlicesLength(){return gi(this._config)}resetSlices(){this._customizedSliceIds=[],ni(this._config)}resetAvailable(){let e=!this.colorMatch,s=!1,o=this.slices?.length??0;for(let n=0;n<o;n+=1){let l=this.getOriginalSliceName(n),g=this.getSliceName(n),V=this._mode===f.Fields?k(this.layerInfo?.layerFieldsInfo,l?.toString()):l;if(V!==void 0&&V?.toString()!==g?.toString()){s=!0;break}}return this.sliceGrouping?.originalLabel!==void 0&&this.sliceGrouping?.label!==this.sliceGrouping.originalLabel&&(s=!0),e||s}get ticksVisibility(){return qe(this._config)}set ticksVisibility(e){He(e,this._config)}get startAngle(){return Q(this._config)}set startAngle(e){Se(e,this._config)}get endAngle(){return Q(this._config)}set endAngle(e){be(e,this._config)}get displayCategoryOnDataLabel(){return Le(this._config)}set displayCategoryOnDataLabel(e){this.guardSetterFromAsyncOverwrite(()=>{this._config.series[0].displayCategoryOnDataLabel=e,this.emitConfigUpdate("displayCategoryOnDataLabel")})}get displayCategoryValueOnTooltip(){return Oe(this._config)}set displayCategoryValueOnTooltip(e){this._config.series[0].displayCategoryOnTooltip=e}get displayNumericValueOnDataLabel(){return ve(this._config)}set displayNumericValueOnDataLabel(e){this.guardSetterFromAsyncOverwrite(()=>{this._config.series[0].displayNumericValueOnDataLabel=e,this.emitConfigUpdate("displayNumericValueOnDataLabel")})}get displayPercentageOnDataLabel(){return Ie(this._config)}set displayPercentageOnDataLabel(e){this.guardSetterFromAsyncOverwrite(()=>{this._config.series[0].displayPercentageOnDataLabel=e,this.emitConfigUpdate("displayPercentageOnDataLabel")})}get displayNumericValueOnTooltip(){return Ce(this._config)}set displayNumericValueOnTooltip(e){this._config.series[0].displayNumericValueOnTooltip=e}get displayPercentageOnTooltip(){return De(this._config)}set displayPercentageOnTooltip(e){Pe(e,this._config)}get valuePrefix(){return xe(this._config)}set valuePrefix(e){Ve(e,this._config)}get valueSuffix(){return Fe(this._config)}set valueSuffix(e){Te(e,this._config)}get percentagePrefix(){return Ne(this._config)}set percentagePrefix(e){Me(e,this._config)}get percentageSuffix(){return ke(this._config)}set percentageSuffix(e){we(e,this._config)}get dataLabelsOffset(){return Ee(this._config)}set dataLabelsOffset(e){Re(e,this._config)}get alignDataLabels(){return ze(this._config)}set alignDataLabels(e){We(e,this._config)}get dataLabelsInside(){return Be(this._config)}set dataLabelsInside(e){je(e,this._config)}get optimizeDataLabelsOverlapping(){return Xe(this._config)}set optimizeDataLabelsOverlapping(e){Ye(e,this._config)}generateChartTitle(){return j({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,mode:this._mode})}};a([t],r.prototype,"category");a([t],r.prototype,"numericFields");a([t],r.prototype,"aggregationType");a([t],r.prototype,"setSortOrder");a([t],r.prototype,"orderByList");a([t],r.prototype,"mode");a([t],r.prototype,"moveCustomSortValuesInOrderByList");a([t],r.prototype,"ticksSymbol");a([t],r.prototype,"slices");a([t],r.prototype,"groupedSliceIds");a([t],r.prototype,"sliceGrouping");a([t],r.prototype,"innerRadiusSize");a([t],r.prototype,"groupingThreshold");a([t],r.prototype,"labelCharacterLimit");a([t],r.prototype,"decimalPlaces");a([t],r.prototype,"displayType");a([t],r.prototype,"setSliceName");a([t],r.prototype,"setSliceColor");a([t],r.prototype,"orderOfSlices");a([t],r.prototype,"moveSeries");a([t],r.prototype,"resetSlices");a([t],r.prototype,"ticksVisibility");a([t],r.prototype,"startAngle");a([t],r.prototype,"endAngle");a([t],r.prototype,"displayCategoryValueOnTooltip");a([t],r.prototype,"displayNumericValueOnTooltip");a([t],r.prototype,"displayPercentageOnTooltip");a([t],r.prototype,"valuePrefix");a([t],r.prototype,"valueSuffix");a([t],r.prototype,"percentagePrefix");a([t],r.prototype,"percentageSuffix");a([t],r.prototype,"dataLabelsOffset");a([t],r.prototype,"alignDataLabels");a([t],r.prototype,"dataLabelsInside");a([t],r.prototype,"optimizeDataLabelsOverlapping");var hi=[p,Y,q,H,J];I(r,hi);return r},a,e,g,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 u from"./P6DBPQZO.js";import{a as Cs,b as v,c as Is,d as M}from"./ASYRUV4T.js";import t from"./K6F2LRKI.js";import s from"./4ODTQZJK.js";import r from"./ROG3HFDT.js";import q from"./7KNUJIOC.js";import o from"./AVE3KXWQ.js";import n from"./L6DFXTSQ.js";import l from"./33JR3GH6.js";import k from"./WM6SCZHN.js";import j from"./2SLJKRSD.js";import"./OAXHS4LE.js";import i from"./WDUTZ6EO.js";import h from"./OE7Q4MG5.js";import"./WDMYVS4F.js";import e from"./MOG5ZVLX.js";import c from"./EJWHEBKW.js";import b from"./4JWIBRGO.js";import a from"./NAGOJPIX.js";import"./CRNIOME2.js";import"./BGOWDCTO.js";import{B as D,Ga as d,fa as E,i as O,m as f,ma as P,n as p,p as m}from"./USNJZCHH.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./LJTJTGIW.js";import{l as g}from"./7SBVBD4E.js";import"./DAFNQT4C.js";import{b as N}from"./QP5UAIC6.js";import"./KJZTU3DV.js";import{a as x}from"./K4APZJ2O.js";import"./BYSUABOV.js";export default $arcgis.t(([{fb:h,tb:W},{n:V,o:A,p:R,q:z},,{c:r},,as,{b:_s,d:Fs,f:Bs},{b:ys,d:us,f:Ss},{d:fs,e:ps},,{b:Ls},{a:hs,b:ls,c:cs,d:gs},{a:ms,b:ds},,{b:ws},{A:C,B:I,C:rs,D:os,E:ns,a:U,b:y,c:j,d:k,e:u,f:S,g:T,h:q,i:H,j:Y,k:G,l:J,m:K,n:_,o:Q,p:X,q:Z,r:F,s:$,t:ss,u:es,v:B,w:L,x:is,y:ts,z:w}])=>{var xs=Object.defineProperty,Os=Object.getOwnPropertyDescriptor,n=(c,s,e,t)=>{for(var o=Os(s,e),a=c.length-1,l;a>=0;a--)(l=c[a])&&(o=l(s,e,o)||o);return o&&xs(s,e,o),o},i=class extends as{constructor(){super(...arguments),this._chartType=x.BoxPlotSeries,this._category=m,this._splitByField="",this._numericFields=[]}async setup(s){await this.loadConfigFromLayer(s),this.setupLocalProps(),s.config!==void 0&&await this.rebuildSeries(),typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return this._category}set category(s){let e=s.trim()==="";this._category=e?m:s,this.processSeriesRebuild("category")}get numericFields(){return this._numericFields}set numericFields(s){let{layerFieldsInfo:e}=this.layerInfo;typeof s=="string"&&(s=[s]),R(e,s)?(this._numericFields=s,os(this._category,this._numericFields)&&(this._splitByField=""),this.processSeriesRebuild("numericFields")):g("error","box-plot-model","Invalid `numericFields`")}get splitByField(){return this._splitByField}set splitByField(s){A(this.layerInfo.layerFieldsInfo,s)?(this._splitByField=s,this.processSeriesRebuild("splitByField")):g("error","box-plot-model","Invalid `splitByField`")}get showOutliers(){return $(this._config)}set showOutliers(s){ss({newShowOutliers:s,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get standardizeValues(){return Q(this._config)}set standardizeValues(s){es({newStandardizeValues:s,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getSortOrder(){return B(this._config)}setSortOrder(s,e){L(s,this._config,e)}async getCustomSortValues(){return await I({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings})}async setDataFilters(s){super.setDataFilters(s);let e=B(this._config);if(e===N.customSort){this.startAsyncUpdate();let t=await I({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings});L(e,this._config,t),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return w(this._config)}set orderByList(s){C(s,this._config)}async updateSeriesFromLayerFilter(){await this.processSeriesRebuild("updateSeriesFromLayerFilter")}async rebuildSeries(){await this.processSeriesRebuild("rebuildSeries")}get showMeanLines(){return is(this._config)}set showMeanLines(s){let{previousMeanLinesBoxColor:e}=ts({newShowMeanLines:s,config:this._config,commonStrings:this.commonStrings,previousMeanLinesBoxColor:this.previousMeanLinesBoxColor});this.previousMeanLinesBoxColor=e}get meanLinesBoxColor(){return k(this._config)}set meanLinesBoxColor(s){u(s,this._config)}setupLocalProps(){this._category=G(this._config),this._splitByField=J(this._config),this._numericFields=K(this._config)}generateDefaultConfig(){let s=P(this.commonStrings);return s.series=[E(this.commonStrings)],s}resetConfig(){let s=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=s,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}usingSplitBy(){return ns(this.category,this.numericFields,this.splitByField)}async processSeriesRebuild(s){this.usingSplitBy()?(this.startAsyncUpdate(),await this.fetchSplitByFieldInfos(),_(this.getBuildNewSeriesProps()),this.finishAsyncUpdate()):_(this.getBuildNewSeriesProps()),this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(s)}async fetchSplitByFieldInfos(){let{fetchNullValues:s}=W(this._config)?.query??{};return this.splitByFieldInfos=await V({config:this._config,layer:this.layerInfo.layer,layerFieldsInfo:this.layerInfo.layerFieldsInfo,xAxisField:rs(this._category)?void 0:this._category,aggregationFields:this.numericFields,splitByField:this._splitByField,fetchNullValues:s,errorStrings:this.commonStrings?.errorStrings}),this.splitByFieldInfos}getBuildNewSeriesProps(){return{category:this.category,splitByField:this.splitByField,numericFields:this.numericFields,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,splitByFieldInfos:this.splitByFieldInfos}}getSeriesName(s){return U(s,this._config)}setSeriesName(s,e){y(s,e,this._config)}getSeriesColor(s){return j(s,this._config)}setSeriesColor(s,e){S(s,e,this._config)}getSeriesLineStyle(s){let e=this._config.series[s];if(this.showMeanLines===!0&&h(e))return Cs(e)}setSeriesLineStyle(s,e){let t=this._config.series[e];this.showMeanLines===!0&&h(t)&&v(s,t)}getSeriesLineWidth(s){let e=this._config.series[s];if(this.showMeanLines===!0&&h(e))return Is(e)}setSeriesLineWidth(s,e){let t=this._config.series[e];this.showMeanLines===!0&&h(t)&&M(s,t)}get orderOfSeries(){return T(this._config)}set orderOfSeries(s){q(s,this._config)}moveSeries(s,e){H(s,e,this._config)}get boxPlotSeriesIndexWhenMeanLinesShown(){return Y(this._config)}moveCustomSortValuesInOrderByList(s,e){let t=w(this._config),[o]=t.splice(s,1);t.splice(e,0,o),C(t,this._config)}generateChartTitle(){return Z(this._config,this.layerInfo,this.commonStrings)}generateYAxisTitle(){return X(this._config,this.layerInfo,this.commonStrings)}resetSeriesStyling(){for(let s=this.showMeanLines===!0?1:0;s<this.seriesLength;s+=1){let e=this.getSeriesId(s),t=D({colorIndex:s,opacity:O}),o=this._config.series[s];S(t,s,this._config);let a=F({series:o,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings});y(a??e,s,this._config),this.showMeanLines===!0&&h(o)&&(v(f,o),M(p,o))}this.showMeanLines===!0&&u(d,this._config),this._config.colorMatch=!0}resetAvailable(){let s=!this.colorMatch,e=this.showMeanLines===!0&&this.meanLinesBoxColor!==d,t=!1,o=!1;if(!s)for(let a=this.showMeanLines===!0?1:0;a<this.seriesLength;a+=1){let l=this._config.series[a],b=F({series:l,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),vs=this.getSeriesName(a);if(b!==void 0&&b!==vs){t=!0;break}if(this.showMeanLines===!0&&h(l)){let Ms=this.getSeriesLineStyle(a),bs=this.getSeriesLineWidth(a);if(Ms!==f||bs!==p){o=!0;break}}}return s||e||t||o}};n([r],i.prototype,"showOutliers");n([r],i.prototype,"standardizeValues");n([r],i.prototype,"setSortOrder");n([r],i.prototype,"setDataFilters");n([r],i.prototype,"orderByList");n([r],i.prototype,"showMeanLines");n([r],i.prototype,"meanLinesBoxColor");n([r],i.prototype,"resetConfig");n([r],i.prototype,"setSeriesName");n([r],i.prototype,"setSeriesColor");n([r],i.prototype,"setSeriesLineStyle");n([r],i.prototype,"setSeriesLineWidth");n([r],i.prototype,"orderOfSeries");n([r],i.prototype,"moveSeries");n([r],i.prototype,"moveCustomSortValuesInOrderByList");n([r],i.prototype,"resetSeriesStyling");var Ds=[ms,hs,ls,cs,ws,gs,Ls,ds,_s,fs,Fs,ps,ys,us,Ss,Bs];z(i,Ds);return i},a,b,c,e,h,i,j,k,l,n,o,q,r,s,t,u)