@arcgis/charts-components 5.2.0-next.70 → 5.2.0-next.72

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