@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
@@ -1,191 +1,120 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { log as W } from "@arcgis/toolkit/log";
3
- import { u as p } from "./chart-object-literals.js";
4
- import { Y as O, ap as k } from "./index2.js";
5
- import { i as w } from "./index4.js";
6
- import { X as d, a8 as I, a2 as D, aB as V, a5 as G, a6 as z } from "./index.js";
7
- import { C as y, d as B } from "./index3.js";
8
- import { C as E } from "./chart-model.js";
2
+ import { log as w } from "@arcgis/toolkit/log";
3
+ import { u as g } from "./chart-object-literals.js";
4
+ import { Y as b, ap as B } from "./index2.js";
5
+ import { i as E } from "./index4.js";
6
+ import { X as p, a8 as W, a2 as L, aB as k, a5 as R, a6 as j } from "./index.js";
7
+ import { C as f, d as K } from "./index3.js";
8
+ import { C as X } from "./chart-model.js";
9
9
  import { m as s } from "./model-setter.js";
10
- import { b as g, P as f } from "./common.js";
11
- import { M as x, a as R, W as j, b as U } from "./data-labels-visibility.js";
12
- import { W as K } from "./data-labels-symbol.js";
13
- import { f as N, j as $, c as X } from "./utils.js";
14
- import { i as m, a as S, g as h, s as Y, c as q, b as H, d as J, e as Q, f as Z, h as C, j as v, k as ee } from "./pie-chart-data.js";
15
- import { cloneDeep as te } from "lodash-es";
10
+ import { b as n, P as u } from "./common.js";
11
+ import { M as Y, a as q, W as H, b as J } from "./data-labels-visibility.js";
12
+ import { W as Q } from "./data-labels-symbol.js";
13
+ import { j as U, c as Z, f as $ } from "./utils.js";
14
+ import { i as y, a as m, g as h, s as ee, c as te, b as ie, d as se, e as re, f as ae, h as O, j as D, k as oe } from "./pie-chart-data.js";
15
+ import { cloneDeep as le } from "lodash-es";
16
16
  import { i as _ } from "./rest-js-object-literals.js";
17
- const ie = (t) => t.legend?.displayNumericValue ?? !1, se = (t, e) => {
18
- e.series[0]?.type === p.PieSeries && (e.legend === void 0 && (e.legend = d()), e.legend.displayNumericValue = t);
19
- }, re = (t) => t.legend?.displayCategory ?? !1, ae = (t, e) => {
20
- e.series[0]?.type === p.PieSeries && (e.legend === void 0 && (e.legend = d()), e.legend.displayCategory = t);
21
- }, oe = (t) => t.legend?.displayPercentage ?? !1, le = (t, e) => {
22
- e.series[0]?.type === p.PieSeries && (e.legend === void 0 && (e.legend = d()), e.legend.displayPercentage = t);
23
- }, ne = (t) => t.legend?.labelMaxWidth ?? 200, ce = (t, e) => {
24
- e.series[0]?.type === p.PieSeries && (e.legend === void 0 && (e.legend = d()), e.legend.labelMaxWidth = t);
25
- }, ge = (t) => t.legend?.valueLabelMaxWidth ?? 200, pe = (t, e) => {
26
- e.series[0]?.type === p.PieSeries && (e.legend === void 0 && (e.legend = d()), e.legend.valueLabelMaxWidth = t);
27
- };
28
- var de = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, b = (t, e, i, r) => {
29
- for (var l = ue(e, i), n = t.length - 1, c; n >= 0; n--)
30
- (c = t[n]) && (l = c(e, i, l) || l);
31
- return l && de(e, i, l), l;
32
- };
33
- class u extends x {
34
- /**
35
- * Gets the setting for the display of numerical value in the legend items.
36
- *
37
- * **Note**: Only applicable to pie charts.
38
- */
39
- getDisplayNumericValue() {
40
- return ie(this._config);
41
- }
42
- setDisplayNumericValue(e) {
43
- se(e, this._config);
44
- }
45
- /**
46
- * Gets the setting for the display of percentage in the legend items.
47
- *
48
- * **Note**: Only applicable to pie charts.
49
- */
50
- getDisplayPercentage() {
51
- return oe(this._config);
52
- }
53
- setDisplayPercentage(e) {
54
- le(e, this._config);
55
- }
56
- /**
57
- * Gets the maximum width in pixel for the legend item labels.
58
- *
59
- * **Note**: Only applicable to pie charts.
60
- */
61
- getLabelMaxWidth() {
62
- return ne(this._config);
63
- }
64
- setLabelMaxWidth(e) {
65
- ce(e, this._config);
66
- }
67
- /**
68
- * The maximum width in pixel for the legend value labels.
69
- * @returns {number}
70
- */
71
- get valueLabelMaxWidth() {
72
- return ge(this._config);
73
- }
74
- set valueLabelMaxWidth(e) {
75
- pe(e, this._config), this.emitConfigUpdate("valueLabelMaxWidth");
76
- }
77
- /**
78
- * Whether to display the category in the legend.
79
- */
80
- get displayCategory() {
81
- return re(this._config);
82
- }
83
- set displayCategory(e) {
84
- ae(e, this._config), this.emitConfigUpdate("displayCategory");
85
- }
86
- }
87
- b([
88
- s
89
- ], u.prototype, "setDisplayNumericValue");
90
- b([
91
- s
92
- ], u.prototype, "setDisplayPercentage");
93
- b([
94
- s
95
- ], u.prototype, "setLabelMaxWidth");
96
- const fe = [x];
97
- N(u, fe);
98
- const he = (t) => t.series?.[0]?.innerRadius, ye = (t, e) => {
17
+ const C = (t) => t.legend?.displayNumericValue ?? !1, v = (t, e) => {
18
+ e.series[0]?.type === g.PieSeries && (e.legend === void 0 && (e.legend = p()), e.legend.displayNumericValue = t);
19
+ }, P = (t) => t.legend?.displayCategory ?? !1, I = (t, e) => {
20
+ e.series[0]?.type === g.PieSeries && (e.legend === void 0 && (e.legend = p()), e.legend.displayCategory = t);
21
+ }, T = (t) => t.legend?.displayPercentage ?? !1, V = (t, e) => {
22
+ e.series[0]?.type === g.PieSeries && (e.legend === void 0 && (e.legend = p()), e.legend.displayPercentage = t);
23
+ }, x = (t) => t.legend?.labelMaxWidth ?? 200, N = (t, e) => {
24
+ e.series[0]?.type === g.PieSeries && (e.legend === void 0 && (e.legend = p()), e.legend.labelMaxWidth = t);
25
+ }, ne = (t) => t.legend?.valueLabelMaxWidth ?? 200, ce = (t, e) => {
26
+ e.series[0]?.type === g.PieSeries && (e.legend === void 0 && (e.legend = p()), e.legend.valueLabelMaxWidth = t);
27
+ }, ge = (t) => t.series?.[0]?.innerRadius, pe = (t, e) => {
99
28
  e.series?.[0] && (e.series[0].innerRadius = t);
100
- }, me = (t) => t.series?.[0]?.dataLabelsCharacterLimit, Se = (t, e) => {
29
+ }, de = (t) => t.series?.[0]?.dataLabelsCharacterLimit, ue = (t, e) => {
101
30
  e.series?.[0] && (e.series[0].dataLabelsCharacterLimit = t);
102
- }, P = (t) => t.series[0]?.startAngle, _e = (t, e) => {
31
+ }, M = (t) => t.series[0]?.startAngle, he = (t, e) => {
103
32
  e.series?.[0] && (e.series[0].startAngle = t);
104
- }, be = (t, e) => {
33
+ }, fe = (t, e) => {
105
34
  e.series?.[0] && (e.series[0].endAngle = t);
106
- }, Le = (t) => t.series?.[0]?.displayCategoryOnTooltip ?? !0, Oe = (t) => t.series?.[0]?.displayCategoryOnDataLabel ?? !0, De = (t) => t.series?.[0]?.displayNumericValueOnDataLabel ?? !0, Ce = (t) => t.series?.[0]?.displayPercentageOnDataLabel ?? !1, ve = (t) => t.series?.[0]?.displayNumericValueOnTooltip ?? !0, Pe = (t) => t.series?.[0]?.displayPercentageOnTooltip ?? !0, Te = (t, e) => {
35
+ }, ye = (t) => t.series?.[0]?.displayCategoryOnTooltip ?? !0, me = (t) => t.series?.[0]?.displayCategoryOnDataLabel ?? !0, _e = (t) => t.series?.[0]?.displayNumericValueOnDataLabel ?? !0, Se = (t) => t.series?.[0]?.displayPercentageOnDataLabel ?? !1, be = (t) => t.series?.[0]?.displayNumericValueOnTooltip ?? !0, Le = (t) => t.series?.[0]?.displayPercentageOnTooltip ?? !0, Oe = (t, e) => {
107
36
  e.series[0] && (e.series[0].displayPercentageOnTooltip = t);
108
- }, Ie = (t) => t.series?.[0]?.valuePrefix, Ve = (t, e) => {
37
+ }, De = (t) => t.series?.[0]?.valuePrefix, Ce = (t, e) => {
109
38
  e.series?.[0] && (e.series[0].valuePrefix = t);
110
- }, xe = (t) => t.series?.[0]?.valueSuffix, Ne = (t, e) => {
39
+ }, ve = (t) => t.series?.[0]?.valueSuffix, Pe = (t, e) => {
111
40
  e.series?.[0] && (e.series[0].valueSuffix = t);
112
- }, Fe = (t) => t.series?.[0]?.percentagePrefix, Me = (t, e) => {
41
+ }, Ie = (t) => t.series?.[0]?.percentagePrefix, Te = (t, e) => {
113
42
  e.series?.[0] && (e.series[0].percentagePrefix = t);
114
- }, Ae = (t) => t.series?.[0]?.percentageSuffix, We = (t, e) => {
43
+ }, Ve = (t) => t.series?.[0]?.percentageSuffix, xe = (t, e) => {
115
44
  e.series?.[0] && (e.series[0].percentageSuffix = t);
116
- }, ke = (t) => {
45
+ }, Ne = (t) => {
117
46
  let e;
118
- const i = t.series?.[0];
119
- return i?.displayNumericValueOnDataLabel === !0 && i?.displayPercentageOnDataLabel === !0 ? e = g.Both : i?.displayNumericValueOnDataLabel === !0 ? e = g.Value : e = g.Percentage, e;
120
- }, we = (t, e) => {
121
- const i = t === g.Value || t === g.Both, r = t === g.Percentage || t === g.Both;
122
- e.series?.[0] && (e.series[0].displayNumericValueOnDataLabel = i, e.series[0].displayPercentageOnDataLabel = r), e.legend && (e.legend = {
47
+ const a = t.series?.[0];
48
+ return a?.displayNumericValueOnDataLabel === !0 && a?.displayPercentageOnDataLabel === !0 ? e = n.Both : a?.displayNumericValueOnDataLabel === !0 ? e = n.Value : e = n.Percentage, e;
49
+ }, Me = (t, e) => {
50
+ const a = t === n.Value || t === n.Both, o = t === n.Percentage || t === n.Both;
51
+ e.series?.[0] && (e.series[0].displayNumericValueOnDataLabel = a, e.series[0].displayPercentageOnDataLabel = o), e.legend && (e.legend = {
123
52
  ...e.legend,
124
- displayNumericValue: i,
125
- displayPercentage: r
53
+ displayNumericValue: a,
54
+ displayPercentage: o
126
55
  });
127
- }, Ge = (t) => t.series?.[0]?.alignDataLabels ?? !1, ze = (t, e) => {
56
+ }, Fe = (t) => t.series?.[0]?.alignDataLabels ?? !1, We = (t, e) => {
128
57
  e.series[0] && (e.series[0].alignDataLabels = t);
129
- }, Be = (t) => t.series?.[0]?.dataLabelsInside ?? !1, Ee = (t, e) => {
58
+ }, ke = (t) => t.series?.[0]?.dataLabelsInside ?? !1, Ae = (t, e) => {
130
59
  e.series[0] && (e.series[0].dataLabelsInside = t);
131
- }, Re = (t) => t.series?.[0]?.dataLabelsOffset ?? 10, je = (t, e) => {
60
+ }, Ge = (t) => t.series?.[0]?.dataLabelsOffset ?? 10, ze = (t, e) => {
132
61
  e.series[0] && (e.series[0].dataLabelsOffset = t);
133
- }, Ue = (t) => t.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits, Ke = (t, e) => {
134
- e.series?.[0] && (e.series[0].numericValueFormat ??= D(), e.series[0].numericValueFormat.intlOptions.minimumFractionDigits = t, e.series[0].numericValueFormat.intlOptions.maximumFractionDigits = t, e.series[0].percentValueFormat ??= D(), e.series[0].percentValueFormat.intlOptions.minimumFractionDigits = t, e.series[0].percentValueFormat.intlOptions.maximumFractionDigits = t);
135
- }, $e = (t) => t.series?.[0]?.optimizeDataLabelsOverlapping ?? !1, Xe = (t, e) => {
62
+ }, we = (t) => t.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits, Be = (t, e) => {
63
+ e.series?.[0] && (e.series[0].numericValueFormat ??= L(), e.series[0].numericValueFormat.intlOptions.minimumFractionDigits = t, e.series[0].numericValueFormat.intlOptions.maximumFractionDigits = t, e.series[0].percentValueFormat ??= L(), e.series[0].percentValueFormat.intlOptions.minimumFractionDigits = t, e.series[0].percentValueFormat.intlOptions.maximumFractionDigits = t);
64
+ }, Ee = (t) => t.series?.[0]?.optimizeDataLabelsOverlapping ?? !1, Re = (t, e) => {
136
65
  e.series[0] && (e.series[0].optimizeDataLabelsOverlapping = t);
137
- }, Ye = (t) => t.series[0]?.ticks?.visible ?? !1, qe = (t, e) => {
138
- e.series?.[0] && (e.series[0].ticks ??= I(), e.series[0].ticks.visible = t);
139
- }, He = (t) => t.series[0]?.ticks?.lineSymbol, Je = (t, e) => {
140
- t && e.series?.[0] && (e.series[0].ticks ??= I(), e.series[0].ticks.lineSymbol = te(t));
141
- }, Qe = (t, e) => e.series?.[0]?.slices?.[t]?.originalLabel, Ze = (t, e) => e.series?.[0]?.slices?.[t]?.label, et = (t, e, i) => {
142
- i.series?.[0]?.slices?.[e] && (i.series[0].slices[e].label = t);
143
- }, tt = (t, e) => e.series?.[0]?.slices?.[t]?.fillSymbol?.color, it = (t, e, i) => {
144
- const r = i.series?.[0]?.slices?.[e]?.fillSymbol;
145
- r !== void 0 ? (r.color = t, r.outline !== void 0 ? r.outline.color = t : r.outline = { type: _.SLS, color: t }) : i.series?.[0]?.slices?.[e] !== void 0 && (i.series[0].slices[e].fillSymbol = {
66
+ }, je = (t) => t.series[0]?.ticks?.visible ?? !1, Ke = (t, e) => {
67
+ e.series?.[0] && (e.series[0].ticks ??= W(), e.series[0].ticks.visible = t);
68
+ }, Xe = (t) => t.series[0]?.ticks?.lineSymbol, Ye = (t, e) => {
69
+ t && e.series?.[0] && (e.series[0].ticks ??= W(), e.series[0].ticks.lineSymbol = le(t));
70
+ }, qe = (t, e) => e.series?.[0]?.slices?.[t]?.originalLabel, He = (t, e) => e.series?.[0]?.slices?.[t]?.label, Je = (t, e, a) => {
71
+ a.series?.[0]?.slices?.[e] && (a.series[0].slices[e].label = t);
72
+ }, Qe = (t, e) => e.series?.[0]?.slices?.[t]?.fillSymbol?.color, Ue = (t, e, a) => {
73
+ const o = a.series?.[0]?.slices?.[e]?.fillSymbol;
74
+ o !== void 0 ? (o.color = t, o.outline !== void 0 ? o.outline.color = t : o.outline = { type: _.SLS, color: t }) : a.series?.[0]?.slices?.[e] !== void 0 && (a.series[0].slices[e].fillSymbol = {
146
75
  type: _.SFS,
147
76
  color: t,
148
77
  outline: { type: _.SLS, color: t }
149
78
  });
150
- }, st = (t) => t.series?.[0]?.slices?.map((e) => e.sliceId), T = (t, e) => {
79
+ }, Ze = (t) => t.series?.[0]?.slices?.map((e) => e.sliceId), F = (t, e) => {
151
80
  e.series?.[0]?.slices?.sort(
152
- (i, r) => t.findIndex((l) => i.sliceId === l) - t.findIndex((l) => r.sliceId === l)
81
+ (a, o) => t.findIndex((l) => a.sliceId === l) - t.findIndex((l) => o.sliceId === l)
153
82
  );
154
- }, rt = (t) => t.series?.[0]?.sliceGrouping, F = (t, e) => {
83
+ }, $e = (t) => t.series?.[0]?.sliceGrouping, A = (t, e) => {
155
84
  e.series?.[0] && (e.series[0].sliceGrouping = t);
156
- }, M = (t) => t.series?.[0]?.sliceGrouping?.percentageThreshold, at = (t, e) => {
85
+ }, G = (t) => t.series?.[0]?.sliceGrouping?.percentageThreshold, et = (t, e) => {
157
86
  e.series?.[0]?.sliceGrouping !== void 0 ? e.series[0].sliceGrouping.percentageThreshold = t : e.series[0].sliceGrouping = {
158
- sliceId: V.defaultGroupOfSlicesId,
87
+ sliceId: k.defaultGroupOfSlicesId,
159
88
  percentageThreshold: t
160
89
  };
161
- }, ot = (t) => t.series?.[0]?.slices, A = (t, e) => {
90
+ }, tt = (t) => t.series?.[0]?.slices, z = (t, e) => {
162
91
  e.series?.[0] && (e.series[0].slices = t);
163
- }, lt = (t) => {
164
- A(void 0, t), F(
92
+ }, it = (t) => {
93
+ z(void 0, t), A(
165
94
  {
166
- sliceId: V.defaultGroupOfSlicesId,
167
- percentageThreshold: M(t) ?? 0
95
+ sliceId: k.defaultGroupOfSlicesId,
96
+ percentageThreshold: G(t) ?? 0
168
97
  },
169
98
  t
170
99
  );
171
- }, nt = (t, e) => e.series[0]?.slices?.[t]?.sliceId, ct = (t, e) => e.series[0]?.slices?.findIndex((i) => i.sliceId === t), gt = (t) => t.series[0]?.slices?.length ?? 0;
172
- var pt = Object.defineProperty, dt = Object.getOwnPropertyDescriptor, o = (t, e, i, r) => {
173
- for (var l = dt(e, i), n = t.length - 1, c; n >= 0; n--)
174
- (c = t[n]) && (l = c(e, i, l) || l);
175
- return l && pt(e, i, l), l;
100
+ }, st = (t, e) => e.series[0]?.slices?.[t]?.sliceId, rt = (t, e) => e.series[0]?.slices?.findIndex((a) => a.sliceId === t), at = (t) => t.series[0]?.slices?.length ?? 0;
101
+ var ot = Object.defineProperty, lt = Object.getOwnPropertyDescriptor, r = (t, e, a, o) => {
102
+ for (var l = lt(e, a), c = t.length - 1, d; c >= 0; c--)
103
+ (d = t[c]) && (l = d(e, a, l) || l);
104
+ return l && ot(e, a, l), l;
176
105
  };
177
- class a extends E {
106
+ class i extends X {
178
107
  constructor() {
179
- super(...arguments), this._chartType = p.PieSeries, this._mode = f.Category, this._groupedSliceIds = [], this._customizedSliceIds = [];
108
+ super(...arguments), this._chartType = g.PieSeries, this._mode = u.Category, this._groupedSliceIds = [], this._customizedSliceIds = [];
180
109
  }
181
110
  async setup(e) {
182
111
  await this.loadConfigFromLayer(e);
183
- const { config: i } = e;
184
- if (i !== void 0) {
185
- const l = O(i.series) !== y.PieFromFields ? f.Category : f.Fields;
186
- this._mode = m({
112
+ const { config: a } = e;
113
+ if (a !== void 0) {
114
+ const l = b(a.series) !== f.PieFromFields ? u.Category : u.Fields;
115
+ this._mode = y({
187
116
  category: h(this._config),
188
- numericFields: S(this._config),
117
+ numericFields: m(this._config),
189
118
  fallbackMode: l
190
119
  });
191
120
  }
@@ -201,11 +130,11 @@ class a extends E {
201
130
  return h(this._config);
202
131
  }
203
132
  set category(e) {
204
- (!w(this._config) || e.trim() !== "") && (this._mode = m({
133
+ (!E(this._config) || e.trim() !== "") && (this._mode = y({
205
134
  category: e,
206
- numericFields: S(this._config),
135
+ numericFields: m(this._config),
207
136
  fallbackMode: this._mode
208
- }), Y({
137
+ }), ee({
209
138
  newCategory: e,
210
139
  config: this._config,
211
140
  layerInfo: this.layerInfo,
@@ -217,31 +146,31 @@ class a extends E {
217
146
  * Numeric fields for the pie chart.
218
147
  */
219
148
  get numericFields() {
220
- return S(this._config);
149
+ return m(this._config);
221
150
  }
222
151
  set numericFields(e) {
223
- typeof e == "string" && (e = [e]), (this.layerInfo !== void 0 ? $(this.layerInfo.layerFieldsInfo, e) : !0) ? (this._mode = m({
152
+ typeof e == "string" && (e = [e]), (this.layerInfo !== void 0 ? U(this.layerInfo.layerFieldsInfo, e) : !0) ? (this._mode = y({
224
153
  category: h(this._config),
225
154
  numericFields: e,
226
155
  fallbackMode: this._mode
227
- }), q({
156
+ }), te({
228
157
  newNumericFields: e,
229
158
  config: this._config,
230
159
  layerInfo: this.layerInfo,
231
160
  commonStrings: this.commonStrings,
232
161
  mode: this._mode
233
162
  }), this._config.series[0].slices = this._config.series[0].slices?.filter(
234
- (r) => r.fillSymbol?.color !== void 0 && this._customizedSliceIds.includes(r.sliceId ?? "")
235
- ), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))) : W("error", "pie-chart-model", "Invalid `numericFields`");
163
+ (o) => o.fillSymbol?.color !== void 0 && this._customizedSliceIds.includes(o.sliceId ?? "")
164
+ ), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))) : w("error", "pie-chart-model", "Invalid `numericFields`");
236
165
  }
237
166
  /**
238
167
  * Aggregation type for the pie chart.
239
168
  */
240
169
  get aggregationType() {
241
- return H(this._config, this._mode);
170
+ return ie(this._config, this._mode);
242
171
  }
243
172
  set aggregationType(e) {
244
- J({
173
+ se({
245
174
  newAggregationType: e,
246
175
  config: this._config,
247
176
  layerInfo: this.layerInfo,
@@ -253,13 +182,13 @@ class a extends E {
253
182
  * Gets the sort order for the pie chart.
254
183
  */
255
184
  getSortOrder() {
256
- return Q(this._config, this._mode);
185
+ return re(this._config, this._mode);
257
186
  }
258
- setSortOrder(e, i) {
259
- Z({
187
+ setSortOrder(e, a) {
188
+ ae({
260
189
  newSortOrderKind: e,
261
190
  config: this._config,
262
- orderByList: i
191
+ orderByList: a
263
192
  });
264
193
  }
265
194
  /**
@@ -271,10 +200,10 @@ class a extends E {
271
200
  * ```
272
201
  */
273
202
  get orderByList() {
274
- return C(this._config, this._mode);
203
+ return O(this._config, this._mode);
275
204
  }
276
205
  set orderByList(e) {
277
- v({
206
+ D({
278
207
  values: e,
279
208
  config: this._config,
280
209
  mode: this._mode
@@ -297,19 +226,19 @@ class a extends E {
297
226
  * Gets the list of the category values for the chart.
298
227
  */
299
228
  async getCustomSortValues() {
300
- const e = h(this._config), i = O(this._config.series);
301
- let r = [];
302
- return i === y.PieFromFields ? r = this.numericFields : e.trim() !== "" && i === y.PieFromCategory && (r = await X({
229
+ const e = h(this._config), a = b(this._config.series);
230
+ let o = [];
231
+ return a === f.PieFromFields ? o = this.numericFields : e.trim() !== "" && a === f.PieFromCategory && (o = await Z({
303
232
  category: e,
304
233
  config: this._config,
305
234
  layerInfo: this.layerInfo,
306
235
  errorStrings: this.commonStrings.errorStrings
307
- })), r;
236
+ })), o;
308
237
  }
309
- moveCustomSortValuesInOrderByList(e, i) {
310
- const r = C(this._config, this._mode), [l] = r.splice(e, 1);
311
- r.splice(i, 0, l), v({
312
- values: r,
238
+ moveCustomSortValuesInOrderByList(e, a) {
239
+ const o = O(this._config, this._mode), [l] = o.splice(e, 1);
240
+ o.splice(a, 0, l), D({
241
+ values: o,
313
242
  config: this._config,
314
243
  mode: this._mode
315
244
  });
@@ -321,10 +250,10 @@ class a extends E {
321
250
  * Ticks symbol connecting slices to labels.
322
251
  */
323
252
  get ticksSymbol() {
324
- return He(this._config);
253
+ return Xe(this._config);
325
254
  }
326
255
  set ticksSymbol(e) {
327
- Je(e, this._config);
256
+ Ye(e, this._config);
328
257
  }
329
258
  // ---------------------------------------------------------------------------------------------
330
259
  // #region Slices Props
@@ -333,10 +262,10 @@ class a extends E {
333
262
  * Array of slices for the pie chart.
334
263
  */
335
264
  get slices() {
336
- return ot(this._config);
265
+ return tt(this._config);
337
266
  }
338
267
  set slices(e) {
339
- A(e, this._config);
268
+ z(e, this._config);
340
269
  }
341
270
  /**
342
271
  * Array of grouped slice ids for the pie chart.
@@ -351,63 +280,63 @@ class a extends E {
351
280
  * Slice grouping configuration for the pie chart.
352
281
  */
353
282
  get sliceGrouping() {
354
- return rt(this._config);
283
+ return $e(this._config);
355
284
  }
356
285
  set sliceGrouping(e) {
357
- F(e, this._config);
286
+ A(e, this._config);
358
287
  }
359
288
  /**
360
289
  * Inner radius size for the pie chart.
361
290
  */
362
291
  get innerRadiusSize() {
363
- return he(this._config) ?? 0;
292
+ return ge(this._config) ?? 0;
364
293
  }
365
294
  set innerRadiusSize(e) {
366
- ye(e, this._config);
295
+ pe(e, this._config);
367
296
  }
368
297
  /**
369
298
  * Threshold below which slices will be grouped.
370
299
  */
371
300
  get groupingThreshold() {
372
- return M(this._config) ?? 0;
301
+ return G(this._config) ?? 0;
373
302
  }
374
303
  set groupingThreshold(e) {
375
- at(e, this._config);
304
+ et(e, this._config);
376
305
  }
377
306
  /**
378
307
  * Character limit for the slice labels.
379
308
  */
380
309
  get labelCharacterLimit() {
381
- return me(this._config) ?? null;
310
+ return de(this._config) ?? null;
382
311
  }
383
312
  set labelCharacterLimit(e) {
384
- Se(e, this._config);
313
+ ue(e, this._config);
385
314
  }
386
315
  /**
387
316
  * Number of decimal places to display in the slice values.
388
317
  */
389
318
  get decimalPlaces() {
390
- return Ue(this._config) ?? 1;
319
+ return we(this._config) ?? 1;
391
320
  }
392
321
  set decimalPlaces(e) {
393
- Ke(e, this._config);
322
+ Be(e, this._config);
394
323
  }
395
324
  /**
396
325
  * Display type for the pie chart slices. Specifies whether to display the slices as a `percentage`, `value`, or `both`.
397
326
  */
398
327
  get displayType() {
399
- return ke(this._config);
328
+ return Ne(this._config);
400
329
  }
401
330
  set displayType(e) {
402
- we(e, this._config);
331
+ Me(e, this._config);
403
332
  }
404
333
  // ---------------------------------------------------------------------------------------------
405
334
  // #region Protected methods
406
335
  // ---------------------------------------------------------------------------------------------
407
336
  /** @private */
408
337
  generateDefaultConfig() {
409
- const e = G(this.commonStrings);
410
- return e.series = [z(this.commonStrings, k(this.layerInfo.layer).idField)], e;
338
+ const e = R(this.commonStrings);
339
+ return e.series = [j(this.commonStrings, B(this.layerInfo.layer).idField)], e;
411
340
  }
412
341
  // ---------------------------------------------------------------------------------------------
413
342
  // #region Series Methods
@@ -418,7 +347,7 @@ class a extends E {
418
347
  * @param sliceIndex - The index of the slice.
419
348
  */
420
349
  getOriginalSliceName(e) {
421
- return Qe(e, this._config);
350
+ return qe(e, this._config);
422
351
  }
423
352
  /**
424
353
  * Gets the name of the slice based on the slice index. If the index is out of bounds, this function will return `undefined`.
@@ -426,11 +355,11 @@ class a extends E {
426
355
  * @param sliceIndex - The index of the slice.
427
356
  */
428
357
  getSliceName(e) {
429
- return Ze(e, this._config);
358
+ return He(e, this._config);
430
359
  }
431
- setSliceName(e, i) {
432
- const r = this.getSliceId(i);
433
- r !== void 0 && this._customizedSliceIds.push(r), et(e, i, this._config);
360
+ setSliceName(e, a) {
361
+ const o = this.getSliceId(a);
362
+ o !== void 0 && this._customizedSliceIds.push(o), Je(e, a, this._config);
434
363
  }
435
364
  /**
436
365
  * Gets the color of the slice based on the slice index. If the index is out of bounds, this function will return `undefined`.
@@ -438,26 +367,26 @@ class a extends E {
438
367
  * @param sliceIndex - The index of the slice.
439
368
  */
440
369
  getSliceColor(e) {
441
- return tt(e, this._config);
370
+ return Qe(e, this._config);
442
371
  }
443
- setSliceColor(e, i) {
444
- const r = this.getSliceId(i);
445
- e !== void 0 && r !== void 0 && this._customizedSliceIds.push(r), it(e, i, this._config);
372
+ setSliceColor(e, a) {
373
+ const o = this.getSliceId(a);
374
+ e !== void 0 && o !== void 0 && this._customizedSliceIds.push(o), Ue(e, a, this._config);
446
375
  }
447
376
  /**
448
377
  * Order of the slice array by returning an array of slice ids
449
378
  */
450
379
  get orderOfSlices() {
451
- return st(this._config);
380
+ return Ze(this._config);
452
381
  }
453
382
  set orderOfSlices(e) {
454
- e !== void 0 && T(e, this._config);
383
+ e !== void 0 && F(e, this._config);
455
384
  }
456
- moveSeries(e, i) {
457
- const r = this.orderOfSlices;
458
- if (r !== void 0) {
459
- const [l] = r.splice(e, 1);
460
- r.splice(i, 0, l), T(r, this._config);
385
+ moveSeries(e, a) {
386
+ const o = this.orderOfSlices;
387
+ if (o !== void 0) {
388
+ const [l] = o.splice(e, 1);
389
+ o.splice(a, 0, l), F(o, this._config);
461
390
  }
462
391
  }
463
392
  /**
@@ -466,7 +395,7 @@ class a extends E {
466
395
  * @param sliceIndex - The index of the slice.
467
396
  */
468
397
  getSliceId(e) {
469
- return nt(e, this._config);
398
+ return st(e, this._config);
470
399
  }
471
400
  /**
472
401
  * Gets the slice index for a given slice id. If the `sliceId` is not found, this function will return `undefined`.
@@ -474,71 +403,69 @@ class a extends E {
474
403
  * @param sliceId - The id of the slice.
475
404
  */
476
405
  getSliceIndex(e) {
477
- return ct(e, this._config);
406
+ return rt(e, this._config);
478
407
  }
479
408
  /**
480
409
  * Gets the length of the slices array.
481
410
  */
482
411
  getSlicesLength() {
483
- return gt(this._config);
412
+ return at(this._config);
484
413
  }
485
414
  resetSlices() {
486
- this._customizedSliceIds = [], lt(this._config);
415
+ this._customizedSliceIds = [], it(this._config);
487
416
  }
488
417
  /**
489
418
  * Returns whether the series styling is able to be reset.
490
419
  */
491
420
  resetAvailable() {
492
421
  const e = !this.colorMatch;
493
- let i = !1;
494
- const r = this.slices?.length ?? 0;
495
- for (let l = 0; l < r; l += 1) {
496
- const n = this.getOriginalSliceName(l), c = this.getSliceName(l), L = this._mode === f.Fields ? B(this.layerInfo?.layerFieldsInfo, n?.toString()) : n;
497
- if (L !== void 0 && L?.toString() !== c?.toString()) {
498
- i = !0;
422
+ let a = !1;
423
+ const o = this.slices?.length ?? 0;
424
+ for (let l = 0; l < o; l += 1) {
425
+ const c = this.getOriginalSliceName(l), d = this.getSliceName(l), S = this._mode === u.Fields ? K(this.layerInfo?.layerFieldsInfo, c?.toString()) : c;
426
+ if (S !== void 0 && S?.toString() !== d?.toString()) {
427
+ a = !0;
499
428
  break;
500
429
  }
501
430
  }
502
- return this.sliceGrouping?.originalLabel !== void 0 && this.sliceGrouping?.label !== this.sliceGrouping.originalLabel && (i = !0), e || i;
431
+ return this.sliceGrouping?.originalLabel !== void 0 && this.sliceGrouping?.label !== this.sliceGrouping.originalLabel && (a = !0), e || a;
503
432
  }
504
433
  /**
505
434
  * Visibility of the ticks.
506
435
  */
507
436
  get ticksVisibility() {
508
- return Ye(this._config);
437
+ return je(this._config);
509
438
  }
510
439
  set ticksVisibility(e) {
511
- qe(e, this._config);
440
+ Ke(e, this._config);
512
441
  }
513
442
  /**
514
443
  * Start angle of the pie chart.
515
444
  */
516
445
  get startAngle() {
517
- return P(this._config);
446
+ return M(this._config);
518
447
  }
519
448
  set startAngle(e) {
520
- _e(e, this._config);
449
+ he(e, this._config);
521
450
  }
522
451
  /**
523
452
  * End angle of the pie chart.
524
453
  */
525
454
  get endAngle() {
526
- return P(this._config);
455
+ return M(this._config);
527
456
  }
528
457
  set endAngle(e) {
529
- be(e, this._config);
458
+ fe(e, this._config);
530
459
  }
531
460
  /**
532
461
  * Whether to display the category on the data label.
533
462
  * **Note:** If the setting is not found in the config, it will default to `true`.
534
463
  */
535
464
  get displayCategoryOnDataLabel() {
536
- return Oe(this._config);
465
+ return me(this._config);
537
466
  }
538
467
  set displayCategoryOnDataLabel(e) {
539
- this.guardSetterFromAsyncOverwrite(() => {
540
- this._config.series[0].displayCategoryOnDataLabel = e, this.emitConfigUpdate("displayCategoryOnDataLabel");
541
- });
468
+ this._config.series[0].displayCategoryOnDataLabel = e;
542
469
  }
543
470
  /**
544
471
  * Display category value on tooltip setting from the chart config.
@@ -546,7 +473,7 @@ class a extends E {
546
473
  * **Note**: If the setting is not found in the config, it will default to `true`.
547
474
  */
548
475
  get displayCategoryValueOnTooltip() {
549
- return Le(this._config);
476
+ return ye(this._config);
550
477
  }
551
478
  set displayCategoryValueOnTooltip(e) {
552
479
  this._config.series[0].displayCategoryOnTooltip = e;
@@ -556,12 +483,10 @@ class a extends E {
556
483
  * **Note:** If the setting is not found in the config, it will default to `true`.
557
484
  */
558
485
  get displayNumericValueOnDataLabel() {
559
- return De(this._config);
486
+ return _e(this._config);
560
487
  }
561
488
  set displayNumericValueOnDataLabel(e) {
562
- this.guardSetterFromAsyncOverwrite(() => {
563
- this._config.series[0].displayNumericValueOnDataLabel = e, this.emitConfigUpdate("displayNumericValueOnDataLabel");
564
- });
489
+ this._config.series[0].displayNumericValueOnDataLabel = e;
565
490
  }
566
491
  /**
567
492
  * Whether to display the percentage on the data label.
@@ -569,12 +494,10 @@ class a extends E {
569
494
  * **Note:** If the setting is not found in the config, it will default to `true`.
570
495
  */
571
496
  get displayPercentageOnDataLabel() {
572
- return Ce(this._config);
497
+ return Se(this._config);
573
498
  }
574
499
  set displayPercentageOnDataLabel(e) {
575
- this.guardSetterFromAsyncOverwrite(() => {
576
- this._config.series[0].displayPercentageOnDataLabel = e, this.emitConfigUpdate("displayPercentageOnDataLabel");
577
- });
500
+ this._config.series[0].displayPercentageOnDataLabel = e;
578
501
  }
579
502
  /**
580
503
  * Display numeric value on tooltip setting from the chart config.
@@ -582,7 +505,7 @@ class a extends E {
582
505
  * **Note**: If the setting is not found in the config, it will default to `true`.
583
506
  */
584
507
  get displayNumericValueOnTooltip() {
585
- return ve(this._config);
508
+ return be(this._config);
586
509
  }
587
510
  set displayNumericValueOnTooltip(e) {
588
511
  this._config.series[0].displayNumericValueOnTooltip = e;
@@ -593,82 +516,174 @@ class a extends E {
593
516
  * **Note**: If the setting is not found in the config, it will default to `true`.
594
517
  */
595
518
  get displayPercentageOnTooltip() {
596
- return Pe(this._config);
519
+ return Le(this._config);
597
520
  }
598
521
  set displayPercentageOnTooltip(e) {
599
- Te(e, this._config);
522
+ Oe(e, this._config);
600
523
  }
601
524
  /**
602
525
  * Prefix of the values of the slices.
603
526
  */
604
527
  get valuePrefix() {
605
- return Ie(this._config);
528
+ return De(this._config);
606
529
  }
607
530
  set valuePrefix(e) {
608
- Ve(e, this._config);
531
+ Ce(e, this._config);
609
532
  }
610
533
  /**
611
534
  * Suffix of the values of the slice.
612
535
  */
613
536
  get valueSuffix() {
614
- return xe(this._config);
537
+ return ve(this._config);
615
538
  }
616
539
  set valueSuffix(e) {
617
- Ne(e, this._config);
540
+ Pe(e, this._config);
618
541
  }
619
542
  /**
620
543
  * Prefix of the percentages of the slices.
621
544
  */
622
545
  get percentagePrefix() {
623
- return Fe(this._config);
546
+ return Ie(this._config);
624
547
  }
625
548
  set percentagePrefix(e) {
626
- Me(e, this._config);
549
+ Te(e, this._config);
627
550
  }
628
551
  /**
629
552
  * Suffix of the percentages of the slices.
630
553
  */
631
554
  get percentageSuffix() {
632
- return Ae(this._config);
555
+ return Ve(this._config);
633
556
  }
634
557
  set percentageSuffix(e) {
635
- We(e, this._config);
558
+ xe(e, this._config);
636
559
  }
637
560
  /**
638
561
  * Offset for the data labels.
639
562
  */
640
563
  get dataLabelsOffset() {
641
- return Re(this._config);
564
+ return Ge(this._config);
642
565
  }
643
566
  set dataLabelsOffset(e) {
644
- je(e, this._config);
567
+ ze(e, this._config);
645
568
  }
646
569
  /**
647
570
  * Align the data labels on the left or right side of the chart instead of the default position around the chart.
648
571
  */
649
572
  get alignDataLabels() {
650
- return Ge(this._config);
573
+ return Fe(this._config);
651
574
  }
652
575
  set alignDataLabels(e) {
653
- ze(e, this._config);
576
+ We(e, this._config);
654
577
  }
655
578
  /**
656
579
  * Setting for placing the data labels inside of the slices.
657
580
  */
658
581
  get dataLabelsInside() {
659
- return Be(this._config);
582
+ return ke(this._config);
660
583
  }
661
584
  set dataLabelsInside(e) {
662
- Ee(e, this._config);
585
+ Ae(e, this._config);
663
586
  }
664
587
  /**
665
588
  * Optimize data labels overlapping setting for the pie chart.
666
589
  */
667
590
  get optimizeDataLabelsOverlapping() {
668
- return $e(this._config);
591
+ return Ee(this._config);
669
592
  }
670
593
  set optimizeDataLabelsOverlapping(e) {
671
- Xe(e, this._config);
594
+ Re(e, this._config);
595
+ }
596
+ // ---------------------------------------------------------------------------------------------
597
+ // #region Legend Props
598
+ // ---------------------------------------------------------------------------------------------
599
+ /**
600
+ * Whether to display the numeric value on legend items.
601
+ */
602
+ get displayNumericValueOnLegendItems() {
603
+ return C(this._config);
604
+ }
605
+ set displayNumericValueOnLegendItems(e) {
606
+ v(e, this._config);
607
+ }
608
+ /**
609
+ * Whether to display the percentage on legend items.
610
+ */
611
+ get displayPercentageOnLegendItems() {
612
+ return T(this._config);
613
+ }
614
+ set displayPercentageOnLegendItems(e) {
615
+ V(e, this._config);
616
+ }
617
+ /**
618
+ * Whether to display the category on legend items.
619
+ */
620
+ get displayCategoryOnLegendItems() {
621
+ return P(this._config);
622
+ }
623
+ set displayCategoryOnLegendItems(e) {
624
+ I(e, this._config);
625
+ }
626
+ /**
627
+ * Maximum width in pixels for legend item labels.
628
+ */
629
+ get labelMaxWidth() {
630
+ return x(this._config);
631
+ }
632
+ set labelMaxWidth(e) {
633
+ N(e, this._config);
634
+ }
635
+ /**
636
+ * Maximum width in pixels for legend value labels.
637
+ */
638
+ get valueLabelMaxWidth() {
639
+ return ne(this._config);
640
+ }
641
+ set valueLabelMaxWidth(e) {
642
+ ce(e, this._config);
643
+ }
644
+ /**
645
+ * Gets the setting for displaying numerical values on legend items.
646
+ *
647
+ * @deprecated since 5.2. Use {@link model/pie-chart-model/pie-chart-model#displayNumericValueOnLegendItems displayNumericValueOnLegendItems} instead. This method will be removed from `PieChartModel` in 6.0.
648
+ */
649
+ getDisplayNumericValue() {
650
+ return C(this._config);
651
+ }
652
+ setDisplayNumericValue(e) {
653
+ v(e, this._config);
654
+ }
655
+ /**
656
+ * Gets the setting for displaying percentages on legend items.
657
+ *
658
+ * @deprecated since 5.2. Use {@link model/pie-chart-model/pie-chart-model#displayPercentageOnLegendItems displayPercentageOnLegendItems} instead. This method will be removed from `PieChartModel` in 6.0.
659
+ */
660
+ getDisplayPercentage() {
661
+ return T(this._config);
662
+ }
663
+ setDisplayPercentage(e) {
664
+ V(e, this._config);
665
+ }
666
+ /**
667
+ * Gets the maximum width in pixels for legend item labels.
668
+ *
669
+ * @deprecated since 5.2. Use {@link model/pie-chart-model/pie-chart-model#labelMaxWidth labelMaxWidth} instead. This method will be removed from `PieChartModel` in 6.0.
670
+ */
671
+ getLabelMaxWidth() {
672
+ return x(this._config);
673
+ }
674
+ setLabelMaxWidth(e) {
675
+ N(e, this._config);
676
+ }
677
+ /**
678
+ * Whether to display the category in the legend.
679
+ *
680
+ * @deprecated since 5.2. Use {@link model/pie-chart-model/pie-chart-model#displayCategoryOnLegendItems displayCategoryOnLegendItems} instead. This property will be removed from `PieChartModel` in 6.0.
681
+ */
682
+ get displayCategory() {
683
+ return P(this._config);
684
+ }
685
+ set displayCategory(e) {
686
+ I(e, this._config);
672
687
  }
673
688
  // ---------------------------------------------------------------------------------------------
674
689
  // #region General Props
@@ -677,7 +692,7 @@ class a extends E {
677
692
  * Generate the proper chart title given the current config.
678
693
  */
679
694
  generateChartTitle() {
680
- return ee({
695
+ return oe({
681
696
  config: this._config,
682
697
  layerInfo: this.layerInfo,
683
698
  commonStrings: this.commonStrings,
@@ -685,119 +700,155 @@ class a extends E {
685
700
  });
686
701
  }
687
702
  }
688
- o([
703
+ r([
704
+ s
705
+ ], i.prototype, "category");
706
+ r([
707
+ s
708
+ ], i.prototype, "numericFields");
709
+ r([
710
+ s
711
+ ], i.prototype, "aggregationType");
712
+ r([
713
+ s
714
+ ], i.prototype, "setSortOrder");
715
+ r([
716
+ s
717
+ ], i.prototype, "orderByList");
718
+ r([
719
+ s
720
+ ], i.prototype, "mode");
721
+ r([
722
+ s
723
+ ], i.prototype, "moveCustomSortValuesInOrderByList");
724
+ r([
725
+ s
726
+ ], i.prototype, "ticksSymbol");
727
+ r([
728
+ s
729
+ ], i.prototype, "slices");
730
+ r([
731
+ s
732
+ ], i.prototype, "groupedSliceIds");
733
+ r([
734
+ s
735
+ ], i.prototype, "sliceGrouping");
736
+ r([
737
+ s
738
+ ], i.prototype, "innerRadiusSize");
739
+ r([
689
740
  s
690
- ], a.prototype, "category");
691
- o([
741
+ ], i.prototype, "groupingThreshold");
742
+ r([
692
743
  s
693
- ], a.prototype, "numericFields");
694
- o([
744
+ ], i.prototype, "labelCharacterLimit");
745
+ r([
695
746
  s
696
- ], a.prototype, "aggregationType");
697
- o([
747
+ ], i.prototype, "decimalPlaces");
748
+ r([
698
749
  s
699
- ], a.prototype, "setSortOrder");
700
- o([
750
+ ], i.prototype, "displayType");
751
+ r([
701
752
  s
702
- ], a.prototype, "orderByList");
703
- o([
753
+ ], i.prototype, "setSliceName");
754
+ r([
704
755
  s
705
- ], a.prototype, "mode");
706
- o([
756
+ ], i.prototype, "setSliceColor");
757
+ r([
707
758
  s
708
- ], a.prototype, "moveCustomSortValuesInOrderByList");
709
- o([
759
+ ], i.prototype, "orderOfSlices");
760
+ r([
710
761
  s
711
- ], a.prototype, "ticksSymbol");
712
- o([
762
+ ], i.prototype, "moveSeries");
763
+ r([
713
764
  s
714
- ], a.prototype, "slices");
715
- o([
765
+ ], i.prototype, "resetSlices");
766
+ r([
716
767
  s
717
- ], a.prototype, "groupedSliceIds");
718
- o([
768
+ ], i.prototype, "ticksVisibility");
769
+ r([
719
770
  s
720
- ], a.prototype, "sliceGrouping");
721
- o([
771
+ ], i.prototype, "startAngle");
772
+ r([
722
773
  s
723
- ], a.prototype, "innerRadiusSize");
724
- o([
774
+ ], i.prototype, "endAngle");
775
+ r([
725
776
  s
726
- ], a.prototype, "groupingThreshold");
727
- o([
777
+ ], i.prototype, "displayCategoryOnDataLabel");
778
+ r([
728
779
  s
729
- ], a.prototype, "labelCharacterLimit");
730
- o([
780
+ ], i.prototype, "displayCategoryValueOnTooltip");
781
+ r([
731
782
  s
732
- ], a.prototype, "decimalPlaces");
733
- o([
783
+ ], i.prototype, "displayNumericValueOnDataLabel");
784
+ r([
734
785
  s
735
- ], a.prototype, "displayType");
736
- o([
786
+ ], i.prototype, "displayPercentageOnDataLabel");
787
+ r([
737
788
  s
738
- ], a.prototype, "setSliceName");
739
- o([
789
+ ], i.prototype, "displayNumericValueOnTooltip");
790
+ r([
740
791
  s
741
- ], a.prototype, "setSliceColor");
742
- o([
792
+ ], i.prototype, "displayPercentageOnTooltip");
793
+ r([
743
794
  s
744
- ], a.prototype, "orderOfSlices");
745
- o([
795
+ ], i.prototype, "valuePrefix");
796
+ r([
746
797
  s
747
- ], a.prototype, "moveSeries");
748
- o([
798
+ ], i.prototype, "valueSuffix");
799
+ r([
749
800
  s
750
- ], a.prototype, "resetSlices");
751
- o([
801
+ ], i.prototype, "percentagePrefix");
802
+ r([
752
803
  s
753
- ], a.prototype, "ticksVisibility");
754
- o([
804
+ ], i.prototype, "percentageSuffix");
805
+ r([
755
806
  s
756
- ], a.prototype, "startAngle");
757
- o([
807
+ ], i.prototype, "dataLabelsOffset");
808
+ r([
758
809
  s
759
- ], a.prototype, "endAngle");
760
- o([
810
+ ], i.prototype, "alignDataLabels");
811
+ r([
761
812
  s
762
- ], a.prototype, "displayCategoryValueOnTooltip");
763
- o([
813
+ ], i.prototype, "dataLabelsInside");
814
+ r([
764
815
  s
765
- ], a.prototype, "displayNumericValueOnTooltip");
766
- o([
816
+ ], i.prototype, "optimizeDataLabelsOverlapping");
817
+ r([
767
818
  s
768
- ], a.prototype, "displayPercentageOnTooltip");
769
- o([
819
+ ], i.prototype, "displayNumericValueOnLegendItems");
820
+ r([
770
821
  s
771
- ], a.prototype, "valuePrefix");
772
- o([
822
+ ], i.prototype, "displayPercentageOnLegendItems");
823
+ r([
773
824
  s
774
- ], a.prototype, "valueSuffix");
775
- o([
825
+ ], i.prototype, "displayCategoryOnLegendItems");
826
+ r([
776
827
  s
777
- ], a.prototype, "percentagePrefix");
778
- o([
828
+ ], i.prototype, "labelMaxWidth");
829
+ r([
779
830
  s
780
- ], a.prototype, "percentageSuffix");
781
- o([
831
+ ], i.prototype, "valueLabelMaxWidth");
832
+ r([
782
833
  s
783
- ], a.prototype, "dataLabelsOffset");
784
- o([
834
+ ], i.prototype, "setDisplayNumericValue");
835
+ r([
785
836
  s
786
- ], a.prototype, "alignDataLabels");
787
- o([
837
+ ], i.prototype, "setDisplayPercentage");
838
+ r([
788
839
  s
789
- ], a.prototype, "dataLabelsInside");
790
- o([
840
+ ], i.prototype, "setLabelMaxWidth");
841
+ r([
791
842
  s
792
- ], a.prototype, "optimizeDataLabelsOverlapping");
793
- const ut = [
794
- u,
795
- R,
796
- j,
797
- U,
798
- K
843
+ ], i.prototype, "displayCategory");
844
+ const nt = [
845
+ Y,
846
+ q,
847
+ H,
848
+ J,
849
+ Q
799
850
  ];
800
- N(a, ut);
851
+ $(i, nt);
801
852
  export {
802
- a as PieChartModel
853
+ i as PieChartModel
803
854
  };