@arcgis/charts-components 5.2.0-next.10 → 5.2.0-next.12

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 (183) hide show
  1. package/dist/cdn/26ESJ72L.js +2 -0
  2. package/dist/cdn/{2XYTPC2V.js → 2PFDGKA5.js} +1 -1
  3. package/dist/cdn/3MKY6UCO.js +2 -0
  4. package/dist/cdn/3SBYV6BW.js +2 -0
  5. package/dist/cdn/{4ETF22K6.js → 3T4NYRGX.js} +1 -1
  6. package/dist/cdn/{LOZOENFC.js → 3TBK72EK.js} +1 -1
  7. package/dist/cdn/3UFVHYX5.js +2 -0
  8. package/dist/cdn/{NKJC4MT7.js → 4LQHAOMY.js} +1 -1
  9. package/dist/cdn/5BADQJ64.js +2 -0
  10. package/dist/cdn/{CEE2QRZ5.js → 5F5N7ZZ6.js} +1 -1
  11. package/dist/cdn/{QM27URJR.js → 5PKMZMGG.js} +1 -1
  12. package/dist/cdn/{PZKRRAXW.js → 624WBDC3.js} +1 -1
  13. package/dist/cdn/{7EEYYP6X.js → 66GCPNDR.js} +1 -1
  14. package/dist/cdn/{5V3ADOWS.js → 6VVUN6AX.js} +1 -1
  15. package/dist/cdn/73JQ2I2Q.js +3 -0
  16. package/dist/cdn/7HUD5SQI.js +2 -0
  17. package/dist/cdn/A636YSNA.js +2 -0
  18. package/dist/cdn/AIFWLINL.js +2 -0
  19. package/dist/cdn/AQIB3VEP.js +2 -0
  20. package/dist/cdn/{BBURKBKE.js → AZY72Q7D.js} +1 -1
  21. package/dist/cdn/BJYCLLJL.js +2 -0
  22. package/dist/cdn/BXJZ4YYQ.js +2 -0
  23. package/dist/cdn/CRCAJAFA.js +2 -0
  24. package/dist/cdn/{F7Q3XDZH.js → CTE365PT.js} +1 -1
  25. package/dist/cdn/{PRPNJEPZ.js → CVF3NLTS.js} +1 -1
  26. package/dist/cdn/{RH4AC577.js → DKRPN24O.js} +1 -1
  27. package/dist/cdn/{M6JCOZIE.js → DL6PRHZT.js} +1 -1
  28. package/dist/cdn/{2PAVNZEM.js → DOVGECFB.js} +1 -1
  29. package/dist/cdn/DYNPQ2KT.js +2 -0
  30. package/dist/cdn/{SYIW6YJN.js → ECICE4SU.js} +1 -1
  31. package/dist/cdn/{GNC62GNV.js → EEFS6HU7.js} +1 -1
  32. package/dist/cdn/{2A7JZQX5.js → EYF75TH5.js} +1 -1
  33. package/dist/cdn/{H4B3ERFL.js → EYYQKOXI.js} +1 -1
  34. package/dist/cdn/{VMS7DT3M.js → GHLJNZ27.js} +1 -1
  35. package/dist/cdn/{XUT56VH6.js → HQONJQEW.js} +1 -1
  36. package/dist/cdn/{Z4HCNLCD.js → IBKS2NZ3.js} +1 -1
  37. package/dist/cdn/IDHDU3DJ.js +2 -0
  38. package/dist/cdn/{SPVZ5BND.js → IHHPUKGG.js} +1 -1
  39. package/dist/cdn/{QF4UBQYT.js → IM5PHXV3.js} +1 -1
  40. package/dist/cdn/ISSVKLHV.js +2 -0
  41. package/dist/cdn/{Z5VVIVR3.js → IYP3GZSC.js} +1 -1
  42. package/dist/cdn/{25YAWDIB.js → J2HYDDIW.js} +1 -1
  43. package/dist/cdn/{WBJ6NWHX.js → J47CNZCT.js} +1 -1
  44. package/dist/cdn/{PM6FCUUV.js → JHANH4UG.js} +1 -1
  45. package/dist/cdn/{CBHWMUGA.js → JKTF2L3L.js} +21 -21
  46. package/dist/cdn/JLWDVTJW.js +2 -0
  47. package/dist/cdn/JQX5EJZV.js +2 -0
  48. package/dist/cdn/{QF6LHQTR.js → K2P5RSE5.js} +1 -1
  49. package/dist/cdn/{ZIVPZF6E.js → KJPXY6NE.js} +1 -1
  50. package/dist/cdn/{3376CR53.js → KL33ETQG.js} +1 -1
  51. package/dist/cdn/{YDJPGFXU.js → KUUBYC33.js} +1 -1
  52. package/dist/cdn/{ICVAXCHZ.js → KZTGYTHS.js} +1 -1
  53. package/dist/cdn/{6SRJ2VKV.js → LA7COTN7.js} +1 -1
  54. package/dist/cdn/{HD4FP3ZK.js → LJDGLKFL.js} +1 -1
  55. package/dist/cdn/LL757OZ7.js +2 -0
  56. package/dist/cdn/{FTOYQNHN.js → LU5S2VRK.js} +1 -1
  57. package/dist/cdn/{NFANBMTU.js → MGMUUWSP.js} +1 -1
  58. package/dist/cdn/{LIPUN4CH.js → MPSRB65O.js} +1 -1
  59. package/dist/cdn/{OYCT7CFU.js → N5ZIF7M4.js} +1 -1
  60. package/dist/cdn/NVEIMJJ7.js +2 -0
  61. package/dist/cdn/{255TSQSE.js → O363DXQ4.js} +6 -6
  62. package/dist/cdn/O533LNDP.js +2 -0
  63. package/dist/cdn/ODWDODUY.js +2 -0
  64. package/dist/cdn/{N7NZHIGS.js → OEOAL6JO.js} +1 -1
  65. package/dist/cdn/{IHTJSWKK.js → PGHVUDMJ.js} +1 -1
  66. package/dist/cdn/{YSWV4FZE.js → PGWOWXHQ.js} +1 -1
  67. package/dist/cdn/{L6ZALCLC.js → PIONRTCB.js} +1 -1
  68. package/dist/cdn/{CSAUXIK2.js → QNT6HTFC.js} +1 -1
  69. package/dist/cdn/QSBAOCG4.js +2 -0
  70. package/dist/cdn/{KB76VF4V.js → QT3VTHUJ.js} +1 -1
  71. package/dist/cdn/{CHQDKVVQ.js → RIM4HLHN.js} +1 -1
  72. package/dist/cdn/{4J6UFQ2Q.js → RJSCJBFO.js} +1 -1
  73. package/dist/cdn/{GXC7VLYM.js → RMBD6ZSC.js} +1 -1
  74. package/dist/cdn/RMHGA6AU.js +2 -0
  75. package/dist/cdn/{KHNP4LWB.js → S5EYODWJ.js} +1 -1
  76. package/dist/cdn/S7Z4HRW7.js +2 -0
  77. package/dist/cdn/{RA3CZHC7.js → SMCXHMTP.js} +1 -1
  78. package/dist/cdn/{KKKCWW6G.js → SN2GPX3I.js} +1 -1
  79. package/dist/cdn/SNMFJ4CN.js +2 -0
  80. package/dist/cdn/{GBDEYCR6.js → SOOQD5FC.js} +1 -1
  81. package/dist/cdn/T2SFRF7I.js +2 -0
  82. package/dist/cdn/{5OKNLDIJ.js → TCS4HOSG.js} +1 -1
  83. package/dist/cdn/U7TKKTUC.js +2 -0
  84. package/dist/cdn/{TH4OHGTQ.js → V2UF2WVE.js} +1 -1
  85. package/dist/cdn/{XWZYTOHY.js → VFUFK3UT.js} +1 -1
  86. package/dist/cdn/VP42WLDX.js +2 -0
  87. package/dist/cdn/W4XQNHSD.js +4 -0
  88. package/dist/cdn/{LO6KKSE4.js → W55GZOYQ.js} +1 -1
  89. package/dist/cdn/{IKCVYV5L.js → WMXNQ5XH.js} +1 -1
  90. package/dist/cdn/WVV5DAII.js +2 -0
  91. package/dist/cdn/{3S3PN7AK.js → X5PNAE7T.js} +1 -1
  92. package/dist/cdn/XRLVJJBT.js +2 -0
  93. package/dist/cdn/{VW4GW2JT.js → YBN53S4C.js} +1 -1
  94. package/dist/cdn/{CDHUW42P.js → YCJIOFQR.js} +1 -1
  95. package/dist/cdn/{SZEYHOGG.js → Z2UG6CUL.js} +1 -1
  96. package/dist/cdn/{I5AALJRN.js → ZFK3D55V.js} +1 -1
  97. package/dist/cdn/ZP22BN3G.js +2 -0
  98. package/dist/cdn/ZW4PF3UK.js +2 -0
  99. package/dist/cdn/index.js +1 -1
  100. package/dist/cdn/model/shared/setup-utils.js +1 -1
  101. package/dist/chunks/data.js +68 -68
  102. package/dist/chunks/index2.js +218 -210
  103. package/dist/chunks/index3.js +1 -0
  104. package/dist/chunks/index4.js +21 -14
  105. package/dist/chunks/pie-chart-data.js +42 -36
  106. package/dist/chunks/pie-chart-model.js +175 -162
  107. package/dist/chunks/serial-chart-data.js +588 -569
  108. package/dist/chunks/time-zone.js +1 -1
  109. package/dist/chunks/web-component-utils.js +529 -508
  110. package/dist/components/arcgis-chart/customElement.d.ts +1 -1
  111. package/dist/components/arcgis-chart/customElement.js +4512 -4434
  112. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +34 -36
  113. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +28 -28
  114. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +5 -8
  115. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +34 -35
  116. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
  117. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
  118. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +14 -16
  119. package/dist/components/arcgis-charts-config-create-flow/customElement.js +11 -11
  120. package/dist/components/arcgis-charts-config-format/customElement.js +25 -25
  121. package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
  122. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +8 -11
  123. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +13 -14
  124. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +25 -26
  125. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +28 -30
  126. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -5
  127. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +49 -56
  128. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +37 -39
  129. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +4 -4
  130. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -8
  131. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +11 -12
  132. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +8 -10
  133. package/dist/docs/api.json +1 -1
  134. package/dist/docs/docs.json +1 -1
  135. package/dist/docs/web-types.json +1 -1
  136. package/dist/json-schema/index.d.ts +9 -2
  137. package/dist/model/interfaces/common.d.ts +0 -2
  138. package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -0
  139. package/dist/spec/rest-js-types.d.ts +22 -8
  140. package/dist/spec/web-chart.d.ts +2 -2
  141. package/dist/utils/chart-config/converter/index.js +264 -264
  142. package/dist/utils/chart-config/utils/index.d.ts +1 -0
  143. package/dist/utils/chart-config/validator/interfaces.d.ts +1 -3
  144. package/dist/utils/errors/index.d.ts +1 -1
  145. package/dist/utils/layer/inline-conversion/index.d.ts +0 -3
  146. package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
  147. package/dist/utils/misc/index.d.ts +2 -3
  148. package/dist/utils/types/index.d.ts +1 -5
  149. package/package.json +3 -3
  150. package/dist/cdn/2HTYRBIX.js +0 -2
  151. package/dist/cdn/3CFZUVMF.js +0 -2
  152. package/dist/cdn/3W2A4SAP.js +0 -2
  153. package/dist/cdn/4YJSRB7R.js +0 -2
  154. package/dist/cdn/5JNEJJU3.js +0 -2
  155. package/dist/cdn/6MF2R6DJ.js +0 -2
  156. package/dist/cdn/BER7FMK3.js +0 -2
  157. package/dist/cdn/BJRHNVLR.js +0 -2
  158. package/dist/cdn/CGYB5KPV.js +0 -2
  159. package/dist/cdn/DJ5OHPYW.js +0 -2
  160. package/dist/cdn/EK33HUAH.js +0 -2
  161. package/dist/cdn/GKPMAFU3.js +0 -2
  162. package/dist/cdn/HFJ4EPET.js +0 -2
  163. package/dist/cdn/JEH22SPH.js +0 -2
  164. package/dist/cdn/JMAVBKEZ.js +0 -2
  165. package/dist/cdn/JNNB2DIA.js +0 -2
  166. package/dist/cdn/JQYB4ZDY.js +0 -2
  167. package/dist/cdn/PJZVDHIF.js +0 -2
  168. package/dist/cdn/PNDFAGEB.js +0 -2
  169. package/dist/cdn/QAIY4AMN.js +0 -2
  170. package/dist/cdn/SHTFWNG3.js +0 -2
  171. package/dist/cdn/SXT5DNXJ.js +0 -4
  172. package/dist/cdn/U4COKMGA.js +0 -2
  173. package/dist/cdn/U6USPTQ5.js +0 -2
  174. package/dist/cdn/UHPAFBYO.js +0 -2
  175. package/dist/cdn/VL2G5M57.js +0 -2
  176. package/dist/cdn/VOTZAPI3.js +0 -2
  177. package/dist/cdn/VSPTNIIU.js +0 -2
  178. package/dist/cdn/X4BYDZDR.js +0 -2
  179. package/dist/cdn/XACXJMSF.js +0 -3
  180. package/dist/cdn/XJ2L7VN4.js +0 -2
  181. package/dist/cdn/XP5GZU4O.js +0 -2
  182. package/dist/cdn/XXXXO6OB.js +0 -2
  183. package/dist/cdn/YXWIKYN4.js +0 -2
@@ -1,698 +1,718 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { isEqual as ne, capitalize as S, isNumber as E, zip as ee } from "lodash-es";
3
- import { d as U } from "./interfaces.js";
4
- import { g as se, a as H, b as te, c as _ } from "./box-plot-data.js";
5
- import { g as ue } from "./histogram-data.js";
6
- import { g as ce, a as fe, b as me } from "./pie-chart-data.js";
7
- import { g as ae } from "./series-length.js";
8
- import { g as oe, d as ie, e as de } from "./serial-chart-data.js";
9
- import { g as z, a as ye } from "./data.js";
10
- import { Y as K, an as ge, af as pe, aK as R, a6 as be, B as P, bb as xe } from "./index2.js";
11
- import { j as Y, av as M, g as T, ap as Fe, b as De, a as q } from "./index.js";
12
- import { q as N, C as y, F as V } from "./index3.js";
13
- import { g as Se } from "./series-types.js";
14
- import { V as ve } from "./index6.js";
15
- import { DateTime as re } from "luxon";
16
- import { P as Z } from "./common.js";
17
- import { u as O, d as L } from "./chart-object-literals.js";
18
- import { R as he } from "./rest-js-object-literals.js";
19
- function Pe(l) {
20
- const { hour: e, minute: t = 0, format: o, locale: r = "en-US" } = l, a = o && Object.keys(o).length > 0 ? o : {
2
+ import { isEqual as se, capitalize as v, isNumber as W, zip as te } from "lodash-es";
3
+ import { d as Y } from "./interfaces.js";
4
+ import { g as ue, a as q, b as ae, c as _ } from "./box-plot-data.js";
5
+ import { g as ce } from "./histogram-data.js";
6
+ import { g as fe, a as de, b as me } from "./pie-chart-data.js";
7
+ import { g as oe } from "./series-length.js";
8
+ import { g as ie, d as re, e as ye } from "./serial-chart-data.js";
9
+ import { g as z, a as ge } from "./data.js";
10
+ import { Y as E, an as pe, af as be, aK as j, cj as xe, B as P, a6 as Fe, bb as De, d4 as Se } from "./index2.js";
11
+ import { j as H, av as k, g as T, ap as ve, b as Be, a as Q } from "./index.js";
12
+ import { q as I, C as y, F as L } from "./index3.js";
13
+ import { g as he } from "./series-types.js";
14
+ import { V as Pe } from "./index6.js";
15
+ import { DateTime as le } from "luxon";
16
+ import { P as X } from "./common.js";
17
+ import { u as w, d as C } from "./chart-object-literals.js";
18
+ import { R as Ve } from "./rest-js-object-literals.js";
19
+ function Ce(l) {
20
+ const { hour: e, minute: t = 0, format: a, locale: o = "en-US" } = l, i = a && Object.keys(a).length > 0 ? a : {
21
21
  hour: "numeric",
22
22
  minute: "2-digit",
23
23
  hour12: !1
24
24
  };
25
- let i = e.toString();
25
+ let r = e.toString();
26
26
  if (Number.isInteger(e) && e >= 0 && e <= 23 && Number.isInteger(t) && t >= 0 && t <= 59) {
27
27
  const n = new Date(2e3, 0, 1, e, t);
28
- i = new Intl.DateTimeFormat(r, a).format(n), i.includes(":") || i.startsWith("0") && (i = i.slice(1));
28
+ r = new Intl.DateTimeFormat(o, i).format(n), r.includes(":") || r.startsWith("0") && (r = r.slice(1));
29
29
  }
30
- return i;
30
+ return r;
31
31
  }
32
- function Be(l) {
33
- const { weekdayNumber: e, format: t, locale: o = "en-US", firstDayOfWeek: r = 7 } = l, a = t && Object.keys(t).length > 0 ? t : { weekday: "long" };
34
- let i = e.toString();
35
- if (Number.isInteger(e) && e > 0 && e <= 7 && Number.isInteger(r) && r > 0 && r <= 7) {
36
- const n = (e + r - 1) % 7, m = new Date(2e3, 0, 2 + n);
37
- i = new Intl.DateTimeFormat(o, a).format(m);
32
+ function Le(l) {
33
+ const { weekdayNumber: e, format: t, locale: a = "en-US", firstDayOfWeek: o = 7 } = l, i = t && Object.keys(t).length > 0 ? t : { weekday: "long" };
34
+ let r = e.toString();
35
+ if (Number.isInteger(e) && e > 0 && e <= 7 && Number.isInteger(o) && o > 0 && o <= 7) {
36
+ const n = (e + o - 1) % 7, s = new Date(2e3, 0, 2 + n);
37
+ r = new Intl.DateTimeFormat(a, i).format(s);
38
38
  }
39
- return i;
39
+ return r;
40
40
  }
41
41
  function Ae(l) {
42
- const { monthNumber: e, format: t, locale: o = "en-US" } = l, r = t && Object.keys(t).length > 0 ? t : { month: "long" };
43
- let a = e.toString();
42
+ const { monthNumber: e, format: t, locale: a = "en-US" } = l, o = t && Object.keys(t).length > 0 ? t : { month: "long" };
43
+ let i = e.toString();
44
44
  if (Number.isInteger(e) && e > 0 && e <= 12) {
45
- const i = new Date(2e3, e - 1);
46
- a = new Intl.DateTimeFormat(o, r).format(i);
45
+ const r = new Date(2e3, e - 1);
46
+ i = new Intl.DateTimeFormat(a, o).format(r);
47
47
  }
48
- return a;
48
+ return i;
49
49
  }
50
- function X(l) {
51
- const { value: e, formatLocale: t, unit: o, config: r, utilsStrings: a } = l;
52
- let i = { label: "", value: e.toString() };
53
- switch (o) {
54
- case L.DayOfWeek:
55
- i = {
56
- label: a.heatChartCalendarDatePartsUnits.dayOfWeek,
57
- value: Be({
50
+ function Z(l) {
51
+ const { value: e, formatLocale: t, unit: a, config: o, utilsStrings: i } = l;
52
+ let r = { label: "", value: e.toString() };
53
+ switch (a) {
54
+ case C.DayOfWeek:
55
+ r = {
56
+ label: i.heatChartCalendarDatePartsUnits.dayOfWeek,
57
+ value: Le({
58
58
  weekdayNumber: e,
59
- firstDayOfWeek: "firstDayOfWeek" in r ? r.firstDayOfWeek : Fe,
59
+ firstDayOfWeek: "firstDayOfWeek" in o ? o.firstDayOfWeek : ve,
60
60
  locale: t
61
61
  })
62
62
  };
63
63
  break;
64
- case L.MonthOfYear:
65
- i = {
66
- label: a.heatChartCalendarDatePartsUnits.monthOfYear,
64
+ case C.MonthOfYear:
65
+ r = {
66
+ label: i.heatChartCalendarDatePartsUnits.monthOfYear,
67
67
  value: Ae({
68
68
  monthNumber: e,
69
69
  locale: t
70
70
  })
71
71
  };
72
72
  break;
73
- case L.HourOfDay:
74
- i = {
75
- label: a.heatChartCalendarDatePartsUnits.hourOfDay,
76
- value: Pe({
73
+ case C.HourOfDay:
74
+ r = {
75
+ label: i.heatChartCalendarDatePartsUnits.hourOfDay,
76
+ value: Ce({
77
77
  hour: e,
78
78
  format: { hour: "numeric", hour12: !1 },
79
79
  locale: t
80
80
  })
81
81
  };
82
82
  break;
83
- case L.DayOfMonth:
84
- i = {
85
- label: a.heatChartCalendarDatePartsUnits.dayOfMonth,
83
+ case C.DayOfMonth:
84
+ r = {
85
+ label: i.heatChartCalendarDatePartsUnits.dayOfMonth,
86
86
  value: typeof e == "string" ? e : e?.toString() ?? ""
87
87
  };
88
88
  break;
89
- case L.DayOfYear:
90
- i = {
91
- label: a.heatChartCalendarDatePartsUnits.dayOfYear,
89
+ case C.DayOfYear:
90
+ r = {
91
+ label: i.heatChartCalendarDatePartsUnits.dayOfYear,
92
92
  value: typeof e == "string" ? e : e?.toString() ?? ""
93
93
  };
94
94
  break;
95
- case L.MinuteOfDay:
96
- i = {
97
- label: a.heatChartCalendarDatePartsUnits.minuteOfDay,
95
+ case C.MinuteOfDay:
96
+ r = {
97
+ label: i.heatChartCalendarDatePartsUnits.minuteOfDay,
98
98
  value: typeof e == "string" ? e : e?.toString() ?? ""
99
99
  };
100
100
  break;
101
- case L.WeekOfYear:
102
- i = {
103
- label: a.heatChartCalendarDatePartsUnits.weekOfYear,
101
+ case C.WeekOfYear:
102
+ r = {
103
+ label: i.heatChartCalendarDatePartsUnits.weekOfYear,
104
104
  value: typeof e == "string" ? e : e?.toString() ?? ""
105
105
  };
106
106
  break;
107
- case L.QuarterOfYear:
108
- i = {
109
- label: a.heatChartCalendarDatePartsUnits.quarterOfYear,
107
+ case C.QuarterOfYear:
108
+ r = {
109
+ label: i.heatChartCalendarDatePartsUnits.quarterOfYear,
110
110
  value: typeof e == "string" ? e : e?.toString() ?? ""
111
111
  };
112
112
  break;
113
113
  }
114
- return i;
114
+ return r;
115
115
  }
116
- function Le(l, e) {
117
- return !ne(l, e);
116
+ function Oe(l, e) {
117
+ return !se(l, e);
118
118
  }
119
- function it(l, e) {
120
- return Le(l, e) || l !== e;
119
+ function st(l, e) {
120
+ return Oe(l, e) || l !== e;
121
121
  }
122
- function Ce(l) {
122
+ function Me(l) {
123
123
  return (new Intl.NumberFormat(l, {
124
124
  minimumFractionDigits: 1,
125
125
  maximumFractionDigits: 1
126
- }).formatToParts(1.1).find((o) => o.type === "decimal")?.value ?? ".") === "." ? "," : ";";
126
+ }).formatToParts(1.1).find((a) => a.type === "decimal")?.value ?? ".") === "." ? "," : ";";
127
127
  }
128
- function Ve(l) {
128
+ function we(l) {
129
129
  return new Intl.NumberFormat(l, {
130
130
  minimumFractionDigits: 1,
131
131
  maximumFractionDigits: 1
132
132
  }).formatToParts(1.1).find((t) => t.type === "decimal")?.value ?? ".";
133
133
  }
134
134
  const G = (l) => {
135
- const { value: e, quoteAll: t = !1, locale: o, roundDecimals: r } = l;
136
- let a = e == null ? "" : String(e);
135
+ const { value: e, quoteAll: t = !1, locale: a, roundDecimals: o } = l;
136
+ let i = e == null ? "" : String(e);
137
137
  if (e === null)
138
- a = "null";
138
+ i = "null";
139
139
  else if (e === void 0)
140
- a = "";
141
- else if (typeof e == "number" && Number.isFinite(e) && o !== void 0) {
142
- const n = Ve(o), m = r ?? a.split(n)[1]?.length ?? 2;
143
- a = new Intl.NumberFormat(o, {
144
- maximumFractionDigits: m
140
+ i = "";
141
+ else if (typeof e == "number" && Number.isFinite(e) && a !== void 0) {
142
+ const n = we(a), s = o ?? i.split(n)[1]?.length ?? 2;
143
+ i = new Intl.NumberFormat(a, {
144
+ maximumFractionDigits: s
145
145
  }).format(e).replace(/\u202F/gu, " ");
146
146
  }
147
- return (t || /[",\r\n]/u.test(a)) && (a = `"${a.replace(/"/gu, '""')}"`), a;
147
+ return (t || /[",\r\n]/u.test(i)) && (i = `"${i.replace(/"/gu, '""')}"`), i;
148
148
  };
149
- function rt(l, e = {}) {
150
- const { columns: t, delimiter: o, includeHeader: r = !0, quoteAll: a = !1, locale: i, roundDecimals: n } = e, m = l.length === 0;
149
+ function ut(l, e = {}) {
150
+ const { columns: t, delimiter: a, includeHeader: o = !0, quoteAll: i = !1, locale: r, roundDecimals: n } = e, s = l.length === 0;
151
151
  let u = "";
152
- if (!m) {
153
- const g = t ?? Object.keys(l[0]), F = [], b = o ?? Ce(i ?? "en");
154
- if (i !== void 0 && b !== "," && (u += `sep=${b}\r
155
- `), r) {
156
- const x = g.map((d) => G({ value: d, quoteAll: a, locale: i, roundDecimals: n }));
157
- F.push(x.join(b));
152
+ if (!s) {
153
+ const c = t ?? Object.keys(l[0]), b = [], D = a ?? Me(r ?? "en");
154
+ if (r !== void 0 && D !== "," && (u += `sep=${D}\r
155
+ `), o) {
156
+ const x = c.map((g) => G({ value: g, quoteAll: i, locale: r, roundDecimals: n }));
157
+ b.push(x.join(D));
158
158
  }
159
159
  l.forEach((x) => {
160
- const d = g.map((s) => G({ value: x[s], quoteAll: a, locale: i, roundDecimals: n }));
161
- F.push(d.join(b));
162
- }), u += F.join(`\r
160
+ const g = c.map((p) => G({ value: x[p], quoteAll: i, locale: r, roundDecimals: n }));
161
+ b.push(g.join(D));
162
+ }), u += b.join(`\r
163
163
  `);
164
164
  }
165
165
  return u;
166
166
  }
167
- function lt(l) {
168
- const { rawData: e, config: t, layer: o, fieldList: r, formatters: a, formatLocale: i, utilsStrings: n } = l;
169
- let m = [];
167
+ function ct(l) {
168
+ const { rawData: e, config: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r, formatLocale: n, utilsStrings: s } = l;
169
+ let u = [];
170
170
  if (t !== void 0 && Array.isArray(e) && e.length > 0) {
171
- const u = Se(t?.series);
172
- u === O.HistogramSeries ? m = ke(
171
+ const c = he(t?.series);
172
+ c === w.HistogramSeries ? u = Te(
173
173
  t,
174
174
  e,
175
- a
176
- ) : u === O.HeatSeries ? m = Me({
175
+ i
176
+ ) : c === w.HeatSeries ? u = Ne({
177
177
  config: t,
178
178
  rows: e,
179
- layer: o,
180
- fieldList: r,
181
- formatLocale: i,
182
- utilsStrings: n
183
- }) : u === O.BarSeries || u === O.LineSeries || u === O.ComboLineAndBarSeries ? m = Te({
179
+ layer: a,
180
+ fieldList: o,
181
+ formatLocale: n,
182
+ utilsStrings: s
183
+ }) : c === w.BarSeries || c === w.LineSeries || c === w.ComboLineAndBarSeries ? u = Ie({
184
184
  config: t,
185
185
  rows: e,
186
- layer: o,
187
- fieldList: r,
188
- formatters: a
189
- }) : u === O.PieSeries ? m = Ne({
186
+ layer: a,
187
+ fieldList: o,
188
+ formatters: i,
189
+ useRendererLabel: r
190
+ }) : c === w.PieSeries ? u = je({
190
191
  config: t,
191
192
  rows: e,
192
- layer: o,
193
- fieldList: r,
194
- formatters: a
195
- }) : u === O.BoxPlotSeries && (m = Re({
193
+ layer: a,
194
+ fieldList: o,
195
+ formatters: i,
196
+ useRendererLabel: r
197
+ }) : c === w.BoxPlotSeries && (u = Ue({
196
198
  config: t,
197
199
  rows: e,
198
- layer: o,
199
- fieldList: r,
200
- formatters: a
200
+ layer: a,
201
+ fieldList: o,
202
+ formatters: i,
203
+ useRendererLabel: r
201
204
  }));
202
205
  }
203
- return m;
206
+ return u;
204
207
  }
205
208
  function h(l) {
206
- const { value: e, originalValue: t, formatter: o } = l;
207
- let r = e;
208
- return o !== void 0 && (e === null || e instanceof Date || typeof e == "number" || typeof e == "string") && (r = o(e, t)), r;
209
+ const { value: e, originalValue: t, formatter: a } = l;
210
+ let o = e;
211
+ return a !== void 0 && (e === null || e instanceof Date || typeof e == "number" || typeof e == "string") && (o = a(e, t)), o;
209
212
  }
210
- function A(l) {
211
- const { field: e, value: t, layer: o, fieldList: r, formatter: a } = l;
212
- let i;
213
+ function O(l) {
214
+ const { field: e, value: t, dataContext: a, layer: o, fieldList: i, formatter: r } = l;
215
+ let n;
213
216
  if (t == null || typeof t == "boolean" || Array.isArray(t))
214
- i = t;
217
+ n = t;
215
218
  else if (typeof t == "string" || typeof t == "number" || t instanceof Date) {
216
- const n = o !== void 0 && (typeof t == "string" || typeof t == "number") ? be({
219
+ const u = $e({
220
+ fieldName: e,
221
+ dataContext: a
222
+ }) ?? (o !== void 0 && (typeof t == "string" || typeof t == "number") ? Fe({
217
223
  queryObject: o,
218
224
  fieldName: e,
219
225
  fieldValue: t
220
- }) : void 0;
221
- i = le({
226
+ }) : void 0);
227
+ n = ne({
222
228
  field: e,
223
- value: n ?? t,
224
- fieldList: r
229
+ value: u ?? t,
230
+ fieldList: i
225
231
  });
226
232
  } else
227
- i = t;
233
+ n = t;
228
234
  return h({
229
- value: i,
235
+ value: n,
230
236
  originalValue: t,
231
- formatter: a
237
+ formatter: r
232
238
  });
233
239
  }
234
- function C(l) {
235
- const { field: e, row: t, layer: o, fieldList: r, formatter: a } = l, i = Object.keys(t).find((m) => m.toLocaleLowerCase() === e.toLocaleLowerCase()), n = t[i ?? e];
236
- return A({
240
+ function A(l) {
241
+ const { field: e, row: t, layer: a, fieldList: o, formatter: i, useRendererLabel: r = !1 } = l, n = Object.keys(t).find((c) => c.toLocaleLowerCase() === e.toLocaleLowerCase()), s = t[n ?? e], u = xe({
242
+ value: s,
243
+ dataContext: t,
244
+ useRendererLabel: r
245
+ });
246
+ return O({
237
247
  field: e,
238
- value: n,
239
- layer: o,
240
- fieldList: r,
241
- formatter: a
248
+ value: u,
249
+ dataContext: t,
250
+ layer: a,
251
+ fieldList: o,
252
+ formatter: i
242
253
  });
243
254
  }
244
- function W(l) {
245
- const { config: e, seriesIndex: t, formatters: o } = l;
246
- return e.series?.[t]?.assignToSecondValueAxis === !0 ? o?.secondaryYAxisLabelFormatter : o?.yAxisLabelFormatter;
255
+ function ke(l, e) {
256
+ let t = !1;
257
+ if (l === e)
258
+ t = !0;
259
+ else if (l != null && e != null) {
260
+ const a = String(l), o = String(e);
261
+ t = a === o || !Number.isNaN(Number(a)) && !Number.isNaN(Number(o)) && Number(a) === Number(o);
262
+ }
263
+ return t;
247
264
  }
248
- function Oe(l) {
249
- const { config: e, splitValueIndex: t, formatters: o } = l;
250
- return e?.series?.[t]?.assignToSecondValueAxis === !0 ? o?.secondaryYAxisLabelFormatter : o?.yAxisLabelFormatter;
265
+ function $e(l) {
266
+ const { fieldName: e, dataContext: t } = l, a = L.rendererSymbolField;
267
+ return e === a && t !== void 0 ? Se(t) : void 0;
251
268
  }
252
- function Me(l) {
253
- const { config: e, rows: t, layer: o, fieldList: r, formatLocale: a, utilsStrings: i } = l, [n] = e.series, m = n.x, u = oe(e), g = ie(e), F = z({
269
+ function J(l) {
270
+ const { config: e, splitByField: t, splitByValue: a, splitByValueIndex: o, layer: i, fieldList: r } = l;
271
+ let n;
272
+ const s = e.series[o ?? -1]?.name;
273
+ return s !== void 0 ? n = s : n = O({
274
+ field: t,
275
+ value: a,
276
+ layer: i,
277
+ fieldList: r
278
+ }), n;
279
+ }
280
+ function Ne(l) {
281
+ const { config: e, rows: t, layer: a, fieldList: o, formatLocale: i, utilsStrings: r } = l, [n] = e.series, s = n.x, u = ie(e), c = re(e), b = z({
254
282
  config: e,
255
- xAxisField: m,
256
- numericFields: g,
283
+ xAxisField: s,
284
+ numericFields: c,
257
285
  aggregationType: u,
258
- layer: o,
259
- fieldList: r
286
+ layer: a,
287
+ fieldList: o
260
288
  });
261
- return t.map((b) => {
262
- const x = b[Y.xField], d = b[Y.yField], s = b[Y.valueField], c = typeof s == "number" && Number.isFinite(s) ? s.toFixed(2) : s;
263
- let f = { label: n.x, value: x }, p = { label: n.y, value: d };
289
+ return t.map((D) => {
290
+ const x = D[H.xField], g = D[H.yField], p = D[H.valueField], f = typeof p == "number" && Number.isFinite(p) ? p.toFixed(2) : p;
291
+ let d = { label: n.x, value: x }, m = { label: n.y, value: g };
264
292
  if (n.xTemporalBinning !== void 0) {
265
- const { label: D, value: v } = X({
293
+ const { label: S, value: B } = Z({
266
294
  value: Number(x),
267
295
  config: e,
268
- formatLocale: a,
296
+ formatLocale: i,
269
297
  unit: n.xTemporalBinning.unit,
270
- utilsStrings: i
298
+ utilsStrings: r
271
299
  });
272
- !N(D) && !N(v) && (f = { label: D, value: v });
300
+ !I(S) && !I(B) && (d = { label: S, value: B });
273
301
  }
274
302
  if (n.yTemporalBinning !== void 0) {
275
- const { label: D, value: v } = X({
276
- value: Number(d),
303
+ const { label: S, value: B } = Z({
304
+ value: Number(g),
277
305
  config: e,
278
- formatLocale: a,
306
+ formatLocale: i,
279
307
  unit: n.yTemporalBinning.unit,
280
- utilsStrings: i
308
+ utilsStrings: r
281
309
  });
282
- !N(D) && !N(v) && (p = { label: D, value: v });
310
+ !I(S) && !I(B) && (m = { label: S, value: B });
283
311
  }
284
312
  return {
285
- [f.label]: f.value,
286
- [p.label]: p.value,
287
- [F.description]: c
313
+ [d.label]: d.value,
314
+ [m.label]: m.value,
315
+ [b.description]: f
288
316
  };
289
317
  });
290
318
  }
291
- function ke(l, e, t) {
292
- const o = ue(l), r = `${S(U.Min)} of ${o}`, a = `${S(U.Max)} of ${o}`, i = `${S(U.Count)} of ${o}`;
319
+ function Te(l, e, t) {
320
+ const a = ce(l), o = `${v(Y.Min)} of ${a}`, i = `${v(Y.Max)} of ${a}`, r = `${v(Y.Count)} of ${a}`;
293
321
  return e.map((n) => {
294
- const { minValue: m, maxValue: u, count: g } = n, F = E(m), b = E(u), x = E(g), d = {};
295
- if (F && (d[r] = h({
296
- value: m,
297
- originalValue: m,
322
+ const { minValue: s, maxValue: u, count: c } = n, b = W(s), D = W(u), x = W(c), g = {};
323
+ if (b && (g[o] = h({
324
+ value: s,
325
+ originalValue: s,
298
326
  formatter: t?.xAxisLabelFormatter
299
- })), b && (d[a] = h({
327
+ })), D && (g[i] = h({
300
328
  value: u,
301
329
  originalValue: u,
302
330
  formatter: t?.xAxisLabelFormatter
303
- })), F && b) {
304
- const s = h({
305
- value: m,
306
- originalValue: m,
331
+ })), b && D) {
332
+ const p = h({
333
+ value: s,
334
+ originalValue: s,
307
335
  formatter: t?.xAxisLabelFormatter
308
- }), c = h({
336
+ }), f = h({
309
337
  value: u,
310
338
  originalValue: u,
311
339
  formatter: t?.xAxisLabelFormatter
312
340
  });
313
- d.Label = `${String(s ?? "")} - ${String(c ?? "")}`;
341
+ g.Label = `${String(p ?? "")} - ${String(f ?? "")}`;
314
342
  }
315
- return x && (d[i] = h({
316
- value: g,
317
- originalValue: g,
318
- formatter: t?.yAxisLabelFormatter
319
- })), d;
343
+ return x && (g[r] = c), g;
320
344
  });
321
345
  }
322
- function $e(l, e, t) {
323
- const o = Object.keys(l);
324
- let r = [];
325
- return t ? r = t.map((a) => o.find((i) => i.toLowerCase().includes(a.toLowerCase())) || "") : r = o.filter((i) => i.toLowerCase().includes(e.toLowerCase())), r.filter((a) => a.trim() !== "");
346
+ function Re(l, e, t) {
347
+ const a = Object.keys(l);
348
+ let o = [];
349
+ return t ? o = t.map((i) => a.find((r) => r.toLowerCase().includes(i.toLowerCase())) || "") : o = a.filter((r) => r.toLowerCase().includes(e.toLowerCase())), o.filter((i) => i.trim() !== "");
326
350
  }
327
- function Te(l) {
328
- const { config: e, rows: t, layer: o, fieldList: r, formatters: a } = l, i = ye(e), n = oe(e), m = S(n), u = ie(e), g = K(e.series), F = ae(e), b = de(e), { idField: x, isTraditionalTypeOID: d } = ge(pe(o)), s = d && u.length === 1 && u[0] === x;
329
- let c;
330
- switch (g) {
351
+ function Ie(l) {
352
+ const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1 } = l, n = ge(e), s = ie(e), u = v(s), c = re(e), b = E(e.series), D = oe(e), x = ye(e), { idField: g, isTraditionalTypeOID: p } = pe(be(a)), f = p && c.length === 1 && c[0] === g;
353
+ let d;
354
+ switch (b) {
331
355
  case y.BarAndLineNoAggregation:
332
- c = t.map((f) => {
333
- const p = C({
334
- field: i,
335
- row: f,
336
- layer: o,
337
- fieldList: r,
338
- formatter: a?.xAxisLabelFormatter
339
- }), D = { [i]: p };
356
+ d = t.map((m) => {
357
+ const F = A({
358
+ field: n,
359
+ row: m,
360
+ layer: a,
361
+ fieldList: o,
362
+ formatter: i?.xAxisLabelFormatter,
363
+ useRendererLabel: r
364
+ }), S = { [n]: F };
340
365
  return Object.assign(
341
- D,
342
- ...u.map((v, B) => ({
343
- [v]: h({
344
- value: f[v],
345
- originalValue: f[v],
346
- formatter: W({ config: e, seriesIndex: B, formatters: a })
366
+ S,
367
+ ...c.map((B) => ({
368
+ [B]: h({
369
+ value: m[B],
370
+ originalValue: m[B]
347
371
  })
348
372
  }))
349
- ), D;
373
+ ), S;
350
374
  });
351
375
  break;
352
376
  case y.BarAndLineFromFields:
353
- c = ee(u, t).map(([f, p]) => {
354
- const D = R(e.series)[0], v = {};
355
- return p !== void 0 && f !== void 0 && (v.Field = h({
356
- value: p[i],
357
- originalValue: p[i],
358
- formatter: a?.xAxisLabelFormatter
359
- }), v.Value = h({
360
- value: p[D],
361
- originalValue: p[D],
362
- formatter: W({ config: e, seriesIndex: 0, formatters: a })
363
- })), v;
377
+ d = te(c, t).map(([m, F]) => {
378
+ const S = j(e.series)[0], B = {};
379
+ return F !== void 0 && m !== void 0 && (B.Field = h({
380
+ value: F[n],
381
+ originalValue: F[n],
382
+ formatter: i?.xAxisLabelFormatter
383
+ }), B.Value = h({
384
+ value: F[S],
385
+ originalValue: F[S]
386
+ })), B;
364
387
  });
365
388
  break;
366
389
  case y.BarAndLineMonoField:
367
390
  case y.BarAndLineMultiFields:
368
- c = t.map((f) => {
369
- const p = C({
370
- field: i,
371
- row: f,
372
- layer: o,
373
- fieldList: r,
374
- formatter: a?.xAxisLabelFormatter
375
- }), D = { [i]: p };
376
- return u.forEach((v, B) => {
377
- const k = z({
391
+ d = t.map((m) => {
392
+ const F = A({
393
+ field: n,
394
+ row: m,
395
+ layer: a,
396
+ fieldList: o,
397
+ formatter: i?.xAxisLabelFormatter,
398
+ useRendererLabel: r
399
+ }), S = { [n]: F };
400
+ return c.forEach((B, V) => {
401
+ const M = z({
378
402
  config: e,
379
- xAxisField: i,
380
- numericFields: u,
381
- aggregationType: n,
382
- layer: o,
383
- numericFieldIndex: B,
384
- fieldList: r
385
- }), w = R(e.series)[B];
386
- let Q = w, j = w;
387
- w.toLowerCase() === k.name.toLowerCase() && (Q = k.description, j = k.name), D[Q] = h({
388
- value: f[j],
389
- originalValue: f[j],
390
- formatter: W({ config: e, seriesIndex: B, formatters: a })
403
+ xAxisField: n,
404
+ numericFields: c,
405
+ aggregationType: s,
406
+ layer: a,
407
+ numericFieldIndex: V,
408
+ fieldList: o
409
+ }), $ = j(e.series)[V];
410
+ let R = $, U = $;
411
+ $.toLowerCase() === M.name.toLowerCase() && (R = M.description, U = M.name), S[R] = h({
412
+ value: m[U],
413
+ originalValue: m[U]
391
414
  });
392
- }), D;
415
+ }), S;
393
416
  });
394
417
  break;
395
418
  case y.BarAndLineSplitBy:
396
- c = t.flatMap((f) => {
397
- const p = R(e.series), D = C({
398
- field: i,
399
- row: f,
400
- layer: o,
401
- fieldList: r,
402
- formatter: a?.xAxisLabelFormatter
419
+ d = t.flatMap((m) => {
420
+ const F = j(e.series), S = A({
421
+ field: n,
422
+ row: m,
423
+ layer: a,
424
+ fieldList: o,
425
+ formatter: i?.xAxisLabelFormatter,
426
+ useRendererLabel: r
403
427
  });
404
- return F.map((v, B) => {
405
- const k = A({
406
- field: b,
407
- value: v,
408
- layer: o,
409
- fieldList: r
428
+ return D.map((B, V) => {
429
+ const M = J({
430
+ config: e,
431
+ splitByField: x,
432
+ splitByValue: B,
433
+ splitByValueIndex: V,
434
+ layer: a,
435
+ fieldList: o
410
436
  });
411
437
  return {
412
- [i]: D,
413
- [b]: k,
414
- [s ? m : `${m} of ${u[0]}`]: h({
415
- value: f[p[B]],
416
- originalValue: f[p[B]],
417
- formatter: Oe({ config: e, splitValueIndex: B, formatters: a })
418
- })
438
+ [n]: S,
439
+ [x]: M,
440
+ [f ? u : `${u} of ${c[0]}`]: m[F[V]]
419
441
  };
420
442
  });
421
443
  });
422
444
  break;
423
445
  case y.BarAndLineSplitByNoAggregation:
424
- c = t.map((f) => {
425
- const p = C({
426
- field: i,
427
- row: f,
428
- layer: o,
429
- fieldList: r,
430
- formatter: a?.xAxisLabelFormatter
431
- }), D = $e(f, u[0], F), v = A({
432
- field: b,
433
- value: f[b],
434
- layer: o,
435
- fieldList: r
446
+ d = t.map((m) => {
447
+ const F = A({
448
+ field: n,
449
+ row: m,
450
+ layer: a,
451
+ fieldList: o,
452
+ formatter: i?.xAxisLabelFormatter,
453
+ useRendererLabel: r
454
+ }), S = Re(m, c[0], D), B = m[x], V = D.findIndex((R) => ke(R, B)), M = J({
455
+ config: e,
456
+ splitByField: x,
457
+ splitByValue: B,
458
+ splitByValueIndex: V >= 0 ? V : void 0,
459
+ layer: a,
460
+ fieldList: o
436
461
  });
437
462
  return {
438
- [i]: p,
439
- [b]: v,
440
- [u[0]]: h({
441
- value: f[D[0]],
442
- originalValue: f[D[0]],
443
- formatter: a?.yAxisLabelFormatter
444
- })
463
+ [n]: F,
464
+ [x]: M,
465
+ [c[0]]: m[S[0]]
445
466
  };
446
467
  });
447
468
  break;
448
469
  default:
449
- c = t;
470
+ d = t;
450
471
  }
451
- return c;
472
+ return d;
452
473
  }
453
- function we(l) {
474
+ function Ke(l) {
454
475
  if (l.length === 0)
455
476
  return [];
456
- const e = l.reduce((t, o) => {
457
- for (const [r, a] of Object.entries(o))
458
- typeof a == "number" && Number.isFinite(a) && (t[r] = (t[r] ?? 0) + a);
477
+ const e = l.reduce((t, a) => {
478
+ for (const [o, i] of Object.entries(a))
479
+ typeof i == "number" && Number.isFinite(i) && (t[o] = (t[o] ?? 0) + i);
459
480
  return t;
460
481
  }, {});
461
482
  return l.map((t) => {
462
- const o = { ...t };
463
- for (const [r, a] of Object.entries(t))
464
- if (typeof a == "number" && e[r] > 0) {
465
- const i = a / e[r];
466
- o[`${r}${M}`] = i.toPrecision(2);
483
+ const a = { ...t };
484
+ for (const [o, i] of Object.entries(t))
485
+ if (typeof i == "number" && e[o] > 0) {
486
+ const r = i / e[o];
487
+ a[`${o}${k}`] = r.toPrecision(2);
467
488
  }
468
- return o;
489
+ return a;
469
490
  });
470
491
  }
471
- function Ne(l) {
472
- const { config: e, rows: t, layer: o, fieldList: r, formatters: a } = l, i = ce(e), n = K(e.series);
473
- let m = we(t);
474
- const u = fe(e), g = n !== y.PieFromFields ? Z.Category : Z.Fields, F = me(e, g), b = z({
492
+ function je(l) {
493
+ const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1 } = l, n = fe(e), s = E(e.series);
494
+ let u = Ke(t);
495
+ const c = de(e), b = s !== y.PieFromFields ? X.Category : X.Fields, D = me(e, b), x = z({
475
496
  config: e,
476
- xAxisField: i,
477
- numericFields: u,
478
- aggregationType: F,
479
- mode: g,
480
- layer: o,
481
- fieldList: r
482
- }), x = R(e.series)[0];
483
- return n === y.PieFromCategory || n === y.PieNoAggregation ? m = m.map((d) => {
484
- const s = C({
485
- field: i,
486
- row: d,
487
- layer: o,
488
- fieldList: r,
489
- formatter: a?.xAxisLabelFormatter
490
- }), c = { [i]: s };
491
- let f = x, p = x;
492
- return n === y.PieFromCategory && x.toLowerCase() === b.name.toLowerCase() && (f = b.description, p = b.name), c[f] = h({
493
- value: d[p],
494
- originalValue: d[p],
495
- formatter: a?.yAxisLabelFormatter
496
- }), c[S(M.trim())] = h({
497
- value: d[`${p}${M}`],
498
- originalValue: d[`${p}${M}`],
499
- formatter: a?.yAxisLabelFormatter
500
- }), c;
501
- }) : n === y.PieFromFields && (m = ee(u, m).map(([d, s]) => {
502
- const c = {};
503
- return s !== void 0 && d !== void 0 && (c.Field = h({
504
- value: s[i],
505
- originalValue: s[i],
506
- formatter: a?.xAxisLabelFormatter
507
- }), c.Value = h({
508
- value: s[x],
509
- originalValue: s[x],
510
- formatter: a?.yAxisLabelFormatter
511
- }), c[S(M.trim())] = h({
512
- value: s[`${x}${M}`],
513
- originalValue: s[`${x}${M}`],
514
- formatter: a?.yAxisLabelFormatter
515
- })), c;
516
- })), m;
497
+ xAxisField: n,
498
+ numericFields: c,
499
+ aggregationType: D,
500
+ mode: b,
501
+ layer: a,
502
+ fieldList: o
503
+ }), g = j(e.series)[0];
504
+ return s === y.PieFromCategory || s === y.PieNoAggregation ? u = u.map((p) => {
505
+ const f = A({
506
+ field: n,
507
+ row: p,
508
+ layer: a,
509
+ fieldList: o,
510
+ formatter: i?.xAxisLabelFormatter,
511
+ useRendererLabel: r
512
+ }), d = { [n]: f };
513
+ let m = g, F = g;
514
+ return s === y.PieFromCategory && g.toLowerCase() === x.name.toLowerCase() && (m = x.description, F = x.name), d[m] = h({
515
+ value: p[F],
516
+ originalValue: p[F]
517
+ }), d[v(k.trim())] = h({
518
+ value: p[`${F}${k}`],
519
+ originalValue: p[`${F}${k}`]
520
+ }), d;
521
+ }) : s === y.PieFromFields && (u = te(c, u).map(([p, f]) => {
522
+ const d = {};
523
+ return f !== void 0 && p !== void 0 && (d.Field = h({
524
+ value: f[n],
525
+ originalValue: f[n],
526
+ formatter: i?.xAxisLabelFormatter
527
+ }), d.Value = h({
528
+ value: f[g],
529
+ originalValue: f[g]
530
+ }), d[v(k.trim())] = h({
531
+ value: f[`${g}${k}`],
532
+ originalValue: f[`${g}${k}`]
533
+ })), d;
534
+ })), u;
517
535
  }
518
- function I(l) {
519
- const { rawData: e, keyBase: t = "", outRow: o } = l;
520
- for (const [r, a] of Object.entries(P)) {
521
- const i = e[t + a];
522
- i !== void 0 && (o[r] = i);
523
- const n = e[t + a + De];
524
- n !== void 0 && (o[`${r} Outlier`] = n);
525
- const m = e[t + a + q];
526
- m !== void 0 && (o[`${r} Z-Score`] = m);
536
+ function K(l) {
537
+ const { rawData: e, keyBase: t = "", outRow: a } = l;
538
+ for (const [o, i] of Object.entries(P)) {
539
+ const r = e[t + i];
540
+ r !== void 0 && (a[o] = r);
541
+ const n = e[t + i + Be];
542
+ n !== void 0 && (a[`${o} Outlier`] = n);
543
+ const s = e[t + i + Q];
544
+ s !== void 0 && (a[`${o} Z-Score`] = s);
527
545
  }
528
546
  }
529
- function $(l) {
530
- const { rawData: e, outRow: t, config: o, boxPlotSubType: r, layer: a, fieldList: i } = l, n = H(o), m = te(o), u = _(o);
531
- let g = P.Outlier;
532
- const F = T;
533
- switch (r) {
547
+ function N(l) {
548
+ const { rawData: e, outRow: t, config: a, boxPlotSubType: o, layer: i, fieldList: r } = l, n = q(a), s = ae(a), u = _(a);
549
+ let c = P.Outlier;
550
+ const b = T;
551
+ switch (o) {
534
552
  case y.BoxPlotMonoFieldAndCategory: {
535
- const d = le({
553
+ const g = ne({
536
554
  field: n,
537
555
  value: e[n],
538
- fieldList: i
556
+ fieldList: r
539
557
  });
540
- t[n] = d, t[S(P.Outlier)] = e[g];
558
+ t[n] = g, t[v(P.Outlier)] = e[c];
541
559
  break;
542
560
  }
543
561
  case y.BoxPlotMultiFieldsAndCategory: {
544
- t[S(n)] = e[n], g = `${m.find(
545
- (s) => Object.keys(e).some((c) => c.toLowerCase().includes(s.toLowerCase()))
546
- ) ?? ""}_${g}`, t[S(P.Outlier)] = e[g];
562
+ t[v(n)] = e[n], c = `${s.find(
563
+ (p) => Object.keys(e).some((f) => f.toLowerCase().includes(p.toLowerCase()))
564
+ ) ?? ""}_${c}`, t[v(P.Outlier)] = e[c];
547
565
  break;
548
566
  }
549
567
  case y.BoxPlotMonoFieldAndSplitBy:
550
568
  case y.BoxPlotMultiFieldsAndSplitBy: {
551
- const d = String(e[u]), s = A({
569
+ const g = String(e[u]), p = O({
552
570
  field: u,
553
- value: d,
554
- layer: a,
555
- fieldList: i
571
+ value: g,
572
+ layer: i,
573
+ fieldList: r
556
574
  });
557
- g = `${d}_${g}`, t.Field = e[F], t[S(u)] = s, t[S(P.Outlier)] = e[g];
575
+ c = `${g}_${c}`, t.Field = e[b], t[v(u)] = p, t[v(P.Outlier)] = e[c];
558
576
  break;
559
577
  }
560
578
  case y.BoxPlotMonoFieldAndCategoryAndSplitBy: {
561
- const d = String(e[u]), s = A({
579
+ const g = String(e[u]), p = O({
562
580
  field: u,
563
- value: d,
564
- layer: a,
565
- fieldList: i
581
+ value: g,
582
+ layer: i,
583
+ fieldList: r
566
584
  });
567
- g = `${d}_${g}`, t[S(n)] = e[n], t[S(u)] = s, t[S(P.Outlier)] = e[g];
585
+ c = `${g}_${c}`, t[v(n)] = e[n], t[v(u)] = p, t[v(P.Outlier)] = e[c];
568
586
  break;
569
587
  }
570
588
  case y.BoxPlotMonoField:
571
589
  case y.BoxPlotMultiFields:
572
590
  default: {
573
- t.Field = e[F], t[S(P.Outlier)] = e[g];
591
+ t.Field = e[b], t[v(P.Outlier)] = e[c];
574
592
  break;
575
593
  }
576
594
  }
577
- const b = `${g}${q}`, x = e[b];
578
- x !== void 0 && (t[`${S(P.Outlier)} Z-Score`] = x);
595
+ const D = `${c}${Q}`, x = e[D];
596
+ x !== void 0 && (t[`${v(P.Outlier)} Z-Score`] = x);
579
597
  }
580
- function Ie(l) {
581
- const { rawData: e, outRow: t, config: o, splitByValue: r, layer: a, fieldList: i } = l, n = K(o.series), m = e[`${r}_${P.Average}`], u = _(o), g = H(o);
582
- let F = "";
598
+ function Ee(l) {
599
+ const { rawData: e, outRow: t, config: a, splitByValue: o, layer: i, fieldList: r } = l, n = E(a.series), s = e[`${o}_${P.Average}`], u = _(a), c = q(a);
600
+ let b = "";
583
601
  switch (n) {
584
602
  case y.BoxPlotMonoFieldAndSplitBy: {
585
- F = `${r}_${u}`, t.Field = e[T], t[S(u)] = A({
603
+ b = `${o}_${u}`, t.Field = e[T], t[v(u)] = O({
586
604
  field: u,
587
- value: e[F],
588
- layer: a,
589
- fieldList: i
605
+ value: e[b],
606
+ layer: i,
607
+ fieldList: r
590
608
  });
591
609
  break;
592
610
  }
593
611
  case y.BoxPlotMultiFieldsAndSplitBy: {
594
- F = `${r}_${P.Average}`, t.Field = e[T], t[S(u)] = A({
612
+ b = `${o}_${P.Average}`, t.Field = e[T], t[v(u)] = O({
595
613
  field: u,
596
- value: e[F],
597
- layer: a,
598
- fieldList: i
614
+ value: e[b],
615
+ layer: i,
616
+ fieldList: r
599
617
  });
600
618
  break;
601
619
  }
602
620
  case y.BoxPlotMonoFieldAndCategoryAndSplitBy: {
603
- F = `${r}_${P.Average}`, t[g] = e[g], t[S(u)] = A({
621
+ b = `${o}_${P.Average}`, t[c] = e[c], t[v(u)] = O({
604
622
  field: u,
605
- value: r,
606
- layer: a,
607
- fieldList: i
623
+ value: o,
624
+ layer: i,
625
+ fieldList: r
608
626
  });
609
627
  break;
610
628
  }
611
629
  }
612
- t[S(P.Average)] = m;
613
- const b = `${String(m)}${q}`, x = e[b];
614
- x !== void 0 && (t[`${S(P.Average)} Z-Score`] = x);
630
+ t[v(P.Average)] = s;
631
+ const D = `${String(s)}${Q}`, x = e[D];
632
+ x !== void 0 && (t[`${v(P.Average)} Z-Score`] = x);
615
633
  }
616
- function Re(l) {
617
- const { config: e, rows: t, layer: o, fieldList: r, formatters: a } = l, i = K(e.series);
618
- let n = i;
619
- const m = se(e), u = Array.isArray(t) && t.length > 0 && t.every((s) => s[V.boxPlot.boxPlotMeanLineMarkerId] !== void 0);
620
- m && !u && (i === y.BoxPlotMonoFieldAndSplitBy ? n = y.BoxPlotMonoField : i === y.BoxPlotMultiFieldsAndSplitBy ? n = y.BoxPlotMultiFields : i === y.BoxPlotMonoFieldAndCategoryAndSplitBy && (n = y.BoxPlotMonoFieldAndCategory));
621
- const g = H(e), F = te(e), b = ae(e), x = _(e);
622
- let d;
623
- switch (n) {
634
+ function Ue(l) {
635
+ const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1 } = l, n = E(e.series);
636
+ let s = n;
637
+ const u = ue(e), c = Array.isArray(t) && t.length > 0 && t.every((f) => f[L.boxPlot.boxPlotMeanLineMarkerId] !== void 0);
638
+ u && !c && (n === y.BoxPlotMonoFieldAndSplitBy ? s = y.BoxPlotMonoField : n === y.BoxPlotMultiFieldsAndSplitBy ? s = y.BoxPlotMultiFields : n === y.BoxPlotMonoFieldAndCategoryAndSplitBy && (s = y.BoxPlotMonoFieldAndCategory));
639
+ const b = q(e), D = ae(e), x = oe(e), g = _(e);
640
+ let p;
641
+ switch (s) {
624
642
  case y.BoxPlotMonoField:
625
643
  case y.BoxPlotMonoFieldAndCategory: {
626
- d = t.map((s) => {
627
- const c = {};
628
- if (s[V.boxPlot.boxPlotOutlierId])
629
- $({
630
- rawData: s,
631
- outRow: c,
644
+ p = t.map((f) => {
645
+ const d = {};
646
+ if (f[L.boxPlot.boxPlotOutlierId])
647
+ N({
648
+ rawData: f,
649
+ outRow: d,
632
650
  config: e,
633
- boxPlotSubType: n,
634
- layer: o,
635
- fieldList: r
651
+ boxPlotSubType: s,
652
+ layer: a,
653
+ fieldList: o
636
654
  });
637
655
  else {
638
- if (n === y.BoxPlotMonoFieldAndCategory) {
639
- const f = C({
640
- field: g,
641
- row: s,
642
- layer: o,
643
- fieldList: r,
644
- formatter: a?.xAxisLabelFormatter
656
+ if (s === y.BoxPlotMonoFieldAndCategory) {
657
+ const m = A({
658
+ field: b,
659
+ row: f,
660
+ layer: a,
661
+ fieldList: o,
662
+ formatter: i?.xAxisLabelFormatter,
663
+ useRendererLabel: r
645
664
  });
646
- c[g] = f;
647
- } else n === y.BoxPlotMonoField && (c.Field = s[T]);
648
- I({ rawData: s, outRow: c });
665
+ d[b] = m;
666
+ } else s === y.BoxPlotMonoField && (d.Field = f[T]);
667
+ K({ rawData: f, outRow: d });
649
668
  }
650
- return c;
669
+ return d;
651
670
  });
652
671
  break;
653
672
  }
654
673
  case y.BoxPlotMultiFields: {
655
- d = t.flatMap((s) => {
656
- const c = {};
657
- return s[V.boxPlot.boxPlotOutlierId] ? $({
658
- rawData: s,
659
- outRow: c,
674
+ p = t.flatMap((f) => {
675
+ const d = {};
676
+ return f[L.boxPlot.boxPlotOutlierId] ? N({
677
+ rawData: f,
678
+ outRow: d,
660
679
  config: e,
661
- boxPlotSubType: n,
662
- layer: o,
663
- fieldList: r
664
- }) : (c.Field = s[T], I({ rawData: s, outRow: c })), [c];
680
+ boxPlotSubType: s,
681
+ layer: a,
682
+ fieldList: o
683
+ }) : (d.Field = f[T], K({ rawData: f, outRow: d })), [d];
665
684
  });
666
685
  break;
667
686
  }
668
687
  case y.BoxPlotMultiFieldsAndCategory: {
669
- d = t.flatMap(
670
- (s) => F.map((c) => {
671
- const f = {};
672
- let p = "";
673
- if (f.Field = c, s[V.boxPlot.boxPlotOutlierId])
674
- $({
675
- rawData: s,
676
- outRow: f,
688
+ p = t.flatMap(
689
+ (f) => D.map((d) => {
690
+ const m = {};
691
+ let F = "";
692
+ if (m.Field = d, f[L.boxPlot.boxPlotOutlierId])
693
+ N({
694
+ rawData: f,
695
+ outRow: m,
677
696
  config: e,
678
- boxPlotSubType: n,
679
- layer: o,
680
- fieldList: r
697
+ boxPlotSubType: s,
698
+ layer: a,
699
+ fieldList: o
681
700
  });
682
701
  else {
683
- if (n === y.BoxPlotMultiFieldsAndCategory) {
684
- const D = C({
685
- field: g,
686
- row: s,
687
- layer: o,
688
- fieldList: r,
689
- formatter: a?.xAxisLabelFormatter
702
+ if (s === y.BoxPlotMultiFieldsAndCategory) {
703
+ const S = A({
704
+ field: b,
705
+ row: f,
706
+ layer: a,
707
+ fieldList: o,
708
+ formatter: i?.xAxisLabelFormatter,
709
+ useRendererLabel: r
690
710
  });
691
- f[g] = D, p = `${c}_`;
711
+ m[b] = S, F = `${d}_`;
692
712
  }
693
- I({ rawData: s, outRow: f, keyBase: p });
713
+ K({ rawData: f, outRow: m, keyBase: F });
694
714
  }
695
- return f;
715
+ return m;
696
716
  })
697
717
  );
698
718
  break;
@@ -700,88 +720,89 @@ function Re(l) {
700
720
  case y.BoxPlotMonoFieldAndSplitBy:
701
721
  case y.BoxPlotMultiFieldsAndSplitBy:
702
722
  case y.BoxPlotMonoFieldAndCategoryAndSplitBy: {
703
- d = t.flatMap((s) => {
704
- if (s[V.boxPlot.boxPlotOutlierId]) {
705
- const c = {};
706
- return $({
707
- rawData: s,
708
- outRow: c,
723
+ p = t.flatMap((f) => {
724
+ if (f[L.boxPlot.boxPlotOutlierId]) {
725
+ const d = {};
726
+ return N({
727
+ rawData: f,
728
+ outRow: d,
709
729
  config: e,
710
- boxPlotSubType: n,
711
- layer: o,
712
- fieldList: r
713
- }), [c];
714
- } else return s[V.boxPlot.boxPlotMeanLineMarkerId] ? b?.map((c) => {
715
- const f = {};
716
- return Ie({
717
- rawData: s,
718
- outRow: f,
719
- splitByValue: c,
730
+ boxPlotSubType: s,
731
+ layer: a,
732
+ fieldList: o
733
+ }), [d];
734
+ } else return f[L.boxPlot.boxPlotMeanLineMarkerId] ? x?.map((d) => {
735
+ const m = {};
736
+ return Ee({
737
+ rawData: f,
738
+ outRow: m,
739
+ splitByValue: d,
720
740
  config: e,
721
- layer: o,
722
- fieldList: r
723
- }), f;
724
- }) : b.map((c) => {
725
- const f = {}, p = A({
726
- field: x,
727
- value: c,
728
- layer: o,
729
- fieldList: r
741
+ layer: a,
742
+ fieldList: o
743
+ }), m;
744
+ }) : x.map((d) => {
745
+ const m = {}, F = O({
746
+ field: g,
747
+ value: d,
748
+ layer: a,
749
+ fieldList: o
730
750
  });
731
- if (n === y.BoxPlotMonoFieldAndCategoryAndSplitBy) {
732
- const D = C({
733
- field: g,
734
- row: s,
735
- layer: o,
736
- fieldList: r,
737
- formatter: a?.xAxisLabelFormatter
751
+ if (s === y.BoxPlotMonoFieldAndCategoryAndSplitBy) {
752
+ const S = A({
753
+ field: b,
754
+ row: f,
755
+ layer: a,
756
+ fieldList: o,
757
+ formatter: i?.xAxisLabelFormatter,
758
+ useRendererLabel: r
738
759
  });
739
- f[g] = D;
760
+ m[b] = S;
740
761
  }
741
- return s[V.boxPlot.boxPlotOutlierId] ? $({
742
- rawData: s,
743
- outRow: f,
762
+ return f[L.boxPlot.boxPlotOutlierId] ? N({
763
+ rawData: f,
764
+ outRow: m,
744
765
  config: e,
745
- boxPlotSubType: n
746
- }) : (f[x] = p, I({ rawData: s, outRow: f, keyBase: `${c}_` })), f;
766
+ boxPlotSubType: s
767
+ }) : (m[g] = F, K({ rawData: f, outRow: m, keyBase: `${d}_` })), m;
747
768
  });
748
769
  });
749
770
  break;
750
771
  }
751
772
  default:
752
- d = t;
773
+ p = t;
753
774
  }
754
- return d;
775
+ return p;
755
776
  }
756
- const J = (l) => {
777
+ const ee = (l) => {
757
778
  let e = !1;
758
779
  return (typeof l == "string" || typeof l == "number") && (e = !Number.isNaN(new Date(l).getTime())), e;
759
- }, Ke = (l) => re.fromJSDate(l, { zone: "local" }).toFormat("yyyy-LL-dd"), je = (l) => re.fromJSDate(l, { zone: "local" }).toFormat("yyyy-LL-dd'T'HH:mm:ss"), le = (l) => {
760
- const { field: e, value: t, fieldList: o } = l;
761
- let r = t;
762
- const a = o?.find((i) => i.name === e);
763
- if (a) {
764
- const i = a.type === he.DateOnly;
765
- xe(a) && !i ? r = J(t) ? je(new Date(t)) : t : i && typeof t != "string" && (r = J(t) ? Ke(new Date(t)) : t);
780
+ }, We = (l) => le.fromJSDate(l, { zone: "local" }).toFormat("yyyy-LL-dd"), Ye = (l) => le.fromJSDate(l, { zone: "local" }).toFormat("yyyy-LL-dd'T'HH:mm:ss"), ne = (l) => {
781
+ const { field: e, value: t, fieldList: a } = l;
782
+ let o = t;
783
+ const i = a?.find((r) => r.name === e);
784
+ if (i) {
785
+ const r = i.type === Ve.DateOnly;
786
+ De(i) && !r ? o = ee(t) ? Ye(new Date(t)) : t : r && typeof t != "string" && (o = ee(t) ? We(new Date(t)) : t);
766
787
  }
767
- return r;
788
+ return o;
768
789
  };
769
- function nt(l) {
770
- const { runtimeDataFilters: e, view: t, viewTimeExtentChangePolicy: o, syncViewTimeExtent: r } = l;
771
- let a = e;
772
- return t && (o === ve.Refresh || r) && t.timeExtent?.start != null && t.timeExtent?.end != null && (a = {
790
+ function ft(l) {
791
+ const { runtimeDataFilters: e, view: t, viewTimeExtentChangePolicy: a, syncViewTimeExtent: o } = l;
792
+ let i = e;
793
+ return t && (a === Pe.Refresh || o) && t.timeExtent?.start != null && t.timeExtent?.end != null && (i = {
773
794
  ...e,
774
795
  timeExtent: [t.timeExtent.start.valueOf(), t.timeExtent.end.valueOf()]
775
- }), a;
796
+ }), i;
776
797
  }
777
798
  export {
778
- Pe as a,
799
+ Ce as a,
779
800
  Ae as b,
780
- Be as c,
781
- nt as d,
782
- rt as e,
783
- Le as f,
784
- X as g,
785
- it as h,
786
- lt as t
801
+ Le as c,
802
+ ft as d,
803
+ ut as e,
804
+ Oe as f,
805
+ Z as g,
806
+ st as h,
807
+ ct as t
787
808
  };