@arcgis/charts-components 5.1.0-next.97 → 5.1.0-next.99

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 (132) hide show
  1. package/dist/cdn/{XO3XI5UW.js → 2L4KRFAO.js} +1 -1
  2. package/dist/cdn/{474MEOFZ.js → 2WMGX4LG.js} +1 -1
  3. package/dist/cdn/{HZAQ4CU2.js → 3LHIBPWU.js} +1 -1
  4. package/dist/cdn/{SRVSS5LG.js → 3NHSJC2V.js} +1 -1
  5. package/dist/cdn/{DZCGO7SQ.js → 3TYKSX6S.js} +1 -1
  6. package/dist/cdn/437PRHGP.js +2 -0
  7. package/dist/cdn/{PH5QB66G.js → 4A46GMQH.js} +1 -1
  8. package/dist/cdn/{BRPXLQXN.js → 4AP7OF2H.js} +1 -1
  9. package/dist/cdn/{6P6JRYTL.js → 533OIYHT.js} +1 -1
  10. package/dist/cdn/{FPWXPIYT.js → 54JMGDNM.js} +1 -1
  11. package/dist/cdn/{MZIUWLFR.js → 6WQO34EX.js} +1 -1
  12. package/dist/cdn/{Q5LFOZZV.js → 7BIC7WRS.js} +1 -1
  13. package/dist/cdn/{EOSVOYYW.js → 7JYYEL7C.js} +1 -1
  14. package/dist/cdn/7RRIPRBW.js +2 -0
  15. package/dist/cdn/{44YOQYY5.js → ABRBND33.js} +1 -1
  16. package/dist/cdn/{7PRT6KPV.js → AKNI6ZDM.js} +1 -1
  17. package/dist/cdn/{VKLAEROZ.js → B5DED64I.js} +1 -1
  18. package/dist/cdn/{S5ZNTUEJ.js → BGHKBRAY.js} +1 -1
  19. package/dist/cdn/{V6ZSMHGW.js → BIBH7Z6B.js} +1 -1
  20. package/dist/cdn/{5PVOIZ3O.js → BVLDD7VH.js} +1 -1
  21. package/dist/cdn/{C4VB5VOE.js → BYMLWT4F.js} +1 -1
  22. package/dist/cdn/{W6PWWHW7.js → C6VFUQYR.js} +1 -1
  23. package/dist/cdn/{S2MYZR2R.js → CBAUBDVW.js} +1 -1
  24. package/dist/cdn/{X63PQOKY.js → D4THJNNH.js} +1 -1
  25. package/dist/cdn/{J7DSGIMM.js → DOKKZWPP.js} +1 -1
  26. package/dist/cdn/{P7KZJ4LD.js → DQOPCAYH.js} +1 -1
  27. package/dist/cdn/{S6M3THYB.js → ETKEDYJI.js} +1 -1
  28. package/dist/cdn/{MPULRJBL.js → FPOY54UW.js} +1 -1
  29. package/dist/cdn/FRTL3JKO.js +2 -0
  30. package/dist/cdn/{YGXP2KRA.js → FSPMT24F.js} +1 -1
  31. package/dist/cdn/{B5NVKUWE.js → FTTFIYT7.js} +1 -1
  32. package/dist/cdn/{ZO4QGPQK.js → FXE7IJTK.js} +1 -1
  33. package/dist/cdn/{3KOLO2DZ.js → GCLBISUU.js} +1 -1
  34. package/dist/cdn/{EERE56JC.js → GG4V6IWC.js} +1 -1
  35. package/dist/cdn/{6EGDY2R6.js → GN55TJMJ.js} +1 -1
  36. package/dist/cdn/{LDBOH522.js → GR2MDXNR.js} +1 -1
  37. package/dist/cdn/{C7BVZIR6.js → GSIQ3AM5.js} +4 -3
  38. package/dist/cdn/{EZ6IWMWU.js → HRWT2MVN.js} +1 -1
  39. package/dist/cdn/{AXQIU56U.js → HZLHE35F.js} +1 -1
  40. package/dist/cdn/{VMKLIIN4.js → J34XNLVV.js} +1 -1
  41. package/dist/cdn/{KNI5Z6M6.js → JII3X6GD.js} +1 -1
  42. package/dist/cdn/{E672GJOI.js → JIJTDQNZ.js} +1 -1
  43. package/dist/cdn/{A2QGNOIM.js → JP5QECNE.js} +1 -1
  44. package/dist/cdn/{QDQ3XMGW.js → JQAYCBRF.js} +1 -1
  45. package/dist/cdn/{MS3WQ4R4.js → JXUQXIWS.js} +1 -1
  46. package/dist/cdn/{43CJXSHJ.js → KDU3ISRJ.js} +1 -1
  47. package/dist/cdn/{5MVPQ5JO.js → KHK4ESCR.js} +1 -1
  48. package/dist/cdn/{MSYJXEJZ.js → KJXMX3GJ.js} +1 -1
  49. package/dist/cdn/{DGMBW6MF.js → KZQPT32K.js} +1 -1
  50. package/dist/cdn/{6QC2WOB4.js → L5ESAQAD.js} +1 -1
  51. package/dist/cdn/{NFMUWJ4B.js → LRLFI235.js} +1 -1
  52. package/dist/cdn/{UQYUM5RQ.js → LTPICGE4.js} +1 -1
  53. package/dist/cdn/{JIMR7C5L.js → M6AWZ4GQ.js} +1 -1
  54. package/dist/cdn/{OB3LBS5F.js → N3QESBWD.js} +1 -1
  55. package/dist/cdn/{WBQNIKK7.js → N72JHWOW.js} +1 -1
  56. package/dist/cdn/{FQWSL4WE.js → NJOCWENE.js} +1 -1
  57. package/dist/cdn/{U2ZQR6TN.js → NLPIWZ6O.js} +1 -1
  58. package/dist/cdn/{Q4FWAO2U.js → NTMKUPVQ.js} +36 -36
  59. package/dist/cdn/{FOBAMFDQ.js → OG6XNLNH.js} +1 -1
  60. package/dist/cdn/{LDRGQ4QJ.js → OGYHFMDK.js} +1 -1
  61. package/dist/cdn/{6T5JVUTW.js → OM2N4R7B.js} +1 -1
  62. package/dist/cdn/{ZRLN2MXQ.js → OXOPYUOS.js} +1 -1
  63. package/dist/cdn/{LRI7NSY6.js → PE5WVBYF.js} +1 -1
  64. package/dist/cdn/{P2FI3ZHN.js → PECU6KQ5.js} +1 -1
  65. package/dist/cdn/{U72HCS3R.js → PSDHB4WG.js} +1 -1
  66. package/dist/cdn/{HIHW6ORI.js → QCLX4TIM.js} +1 -1
  67. package/dist/cdn/{KNWOWXLU.js → QCNYOXG2.js} +1 -1
  68. package/dist/cdn/{DHCP4FMK.js → QNEGICXV.js} +1 -1
  69. package/dist/cdn/{PV7KP6OZ.js → QQNMK2QL.js} +1 -1
  70. package/dist/cdn/R2R6BF6O.js +2 -0
  71. package/dist/cdn/{DKPZTFA5.js → SCVQSDX5.js} +1 -1
  72. package/dist/cdn/{QE2DFL3U.js → SN4BIMRO.js} +1 -1
  73. package/dist/cdn/SXLPETPI.js +2 -0
  74. package/dist/cdn/{WQDJ5V5V.js → TNXVGUYE.js} +1 -1
  75. package/dist/cdn/{LFY34FCB.js → TQG6RDX5.js} +1 -1
  76. package/dist/cdn/UOUARC5O.js +2 -0
  77. package/dist/cdn/{54D7BEVF.js → V3TCGIPS.js} +1 -1
  78. package/dist/cdn/{4D2OWE4B.js → VFNQXIXU.js} +1 -1
  79. package/dist/cdn/VOTMKVNY.js +2 -0
  80. package/dist/cdn/W553UCBH.js +4 -0
  81. package/dist/cdn/{GGUZK63V.js → WMLNHOVN.js} +1 -1
  82. package/dist/cdn/{X4ZH6AQA.js → WTPRSRPB.js} +1 -1
  83. package/dist/cdn/{YQJFV4BR.js → XEDWXXF3.js} +1 -1
  84. package/dist/cdn/{424JJGJE.js → XOY4K5NH.js} +1 -1
  85. package/dist/cdn/{VMCT7EK7.js → Y4DORYPQ.js} +1 -1
  86. package/dist/cdn/{2GOV45XT.js → YEOSKZ4Q.js} +1 -1
  87. package/dist/cdn/{QV3QDDVU.js → ZAKAJKUI.js} +1 -1
  88. package/dist/cdn/ZIAGMMWU.js +2 -0
  89. package/dist/cdn/{X2Y44TIN.js → ZNOJBKUZ.js} +1 -1
  90. package/dist/cdn/index.js +1 -1
  91. package/dist/chart-rendering/common/interfaces.d.ts +5 -0
  92. package/dist/chunks/bar-chart-model.js +1 -1
  93. package/dist/chunks/combo-bar-line-chart-model.js +6 -6
  94. package/dist/chunks/heat-chart-model.js +8 -8
  95. package/dist/chunks/index.js +1112 -1080
  96. package/dist/chunks/line-chart-model.js +3 -3
  97. package/dist/chunks/radar-chart-model.js +3 -3
  98. package/dist/chunks/rotated-state.js +29 -16
  99. package/dist/chunks/time-zone.js +11 -11
  100. package/dist/chunks/type-guards2.js +9 -9
  101. package/dist/chunks/web-component-utils.js +405 -293
  102. package/dist/components/arcgis-chart/customElement.d.ts +35 -3
  103. package/dist/components/arcgis-chart/customElement.js +3857 -3807
  104. package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
  105. package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
  106. package/dist/docs/api.json +1 -1
  107. package/dist/docs/docs.json +1 -1
  108. package/dist/docs/vscode.html-custom-data.json +1 -1
  109. package/dist/docs/web-types.json +1 -1
  110. package/dist/interfaces.d.ts +5 -0
  111. package/dist/loader.js +1 -1
  112. package/dist/model/heat-chart-model/heat-chart-model.d.ts +2 -2
  113. package/dist/model/properties/rotated-state.d.ts +6 -0
  114. package/dist/model/properties/time-zone.d.ts +1 -11
  115. package/dist/types/lumina.d.ts +1 -1
  116. package/dist/types/preact.d.ts +1 -1
  117. package/dist/types/react.d.ts +1 -1
  118. package/dist/types/stencil.d.ts +1 -1
  119. package/dist/utils/chart-config/utils/index.d.ts +1 -1
  120. package/dist/utils/components/watch-handlers.d.ts +14 -0
  121. package/dist/utils/layer/query-features/index.d.ts +1 -0
  122. package/dist/utils/layer/query-parser/index.d.ts +2 -1
  123. package/package.json +3 -3
  124. package/dist/cdn/3LYLITEZ.js +0 -2
  125. package/dist/cdn/7MGBETN6.js +0 -2
  126. package/dist/cdn/A2SOHKNU.js +0 -2
  127. package/dist/cdn/DUPIQDJR.js +0 -2
  128. package/dist/cdn/DY3IXHQM.js +0 -2
  129. package/dist/cdn/FIT55NW2.js +0 -4
  130. package/dist/cdn/GPK2DP6R.js +0 -2
  131. package/dist/cdn/OD77ESN2.js +0 -2
  132. package/dist/cdn/OXA5TGBO.js +0 -2
@@ -1,432 +1,544 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { isEqual as Y, capitalize as F, isNumber as A, zip as H } from "lodash-es";
3
- import { aq as V, bK as U, bC as X, C as c, cd as O, dz as h, e8 as C, z as v, cK as W, B, j as J, k as R } from "./index.js";
4
- import { b as K } from "./interfaces.js";
5
- import { P as z } from "./common.js";
2
+ import { isEqual as J, capitalize as p, isNumber as R, zip as G } from "lodash-es";
3
+ import { aq as k, bK as ee, bC as te, C as m, cd as T, dz as C, e8 as D, z as h, B as P, j as oe, k as _, cK as ae } from "./index.js";
4
+ import { b as N } from "./interfaces.js";
5
+ import { P as q } from "./common.js";
6
6
  import "@arcgis/toolkit/type";
7
- import { w as ee, u as D } from "./series-types.js";
8
- import { R as te } from "./rest-js-object-literals.js";
9
- import { g as oe, a as N, b as Z, c as I } from "./box-plot-data.js";
10
- import { g as G } from "./series-length.js";
11
- import { g as ie } from "./histogram-data.js";
12
- import { g as ae, a as se, b as ne } from "./pie-chart-data.js";
13
- import { g as le, a as re, b as ce } from "./serial-chart-data.js";
14
- import { g as ue, a as Q } from "./data.js";
15
- function de(n, e) {
16
- return !Y(n, e);
7
+ import { w as ie, u as v } from "./series-types.js";
8
+ import { R as re } from "./rest-js-object-literals.js";
9
+ import { g as le, a as z, b as Q, c as E } from "./box-plot-data.js";
10
+ import { g as X } from "./series-length.js";
11
+ import { g as se } from "./histogram-data.js";
12
+ import { g as ne, a as ce, b as ue } from "./pie-chart-data.js";
13
+ import { g as me, a as de, b as fe } from "./serial-chart-data.js";
14
+ import { g as ge, a as U } from "./data.js";
15
+ function ye(i, e) {
16
+ return !J(i, e);
17
17
  }
18
- function Te(n, e) {
19
- return de(n, e) || n !== e;
18
+ function Ne(i, e) {
19
+ return ye(i, e) || i !== e;
20
20
  }
21
- function fe(n) {
22
- return (new Intl.NumberFormat(n, {
21
+ function xe(i) {
22
+ return (new Intl.NumberFormat(i, {
23
23
  minimumFractionDigits: 1,
24
24
  maximumFractionDigits: 1
25
- }).formatToParts(1.1).find((l) => l.type === "decimal")?.value ?? ".") === "." ? "," : ";";
25
+ }).formatToParts(1.1).find((r) => r.type === "decimal")?.value ?? ".") === "." ? "," : ";";
26
26
  }
27
- function me(n) {
28
- return new Intl.NumberFormat(n, {
27
+ function pe(i) {
28
+ return new Intl.NumberFormat(i, {
29
29
  minimumFractionDigits: 1,
30
30
  maximumFractionDigits: 1
31
31
  }).formatToParts(1.1).find((t) => t.type === "decimal")?.value ?? ".";
32
32
  }
33
- const E = (n) => {
34
- const { value: e, quoteAll: t = !1, locale: l } = n;
35
- let i = e == null ? "" : String(e);
33
+ const H = (i) => {
34
+ const { value: e, quoteAll: t = !1, locale: r, roundDecimals: l } = i;
35
+ let a = e == null ? "" : String(e);
36
36
  if (e === null)
37
- i = "null";
37
+ a = "null";
38
38
  else if (e === void 0)
39
- i = "";
40
- else if (typeof e == "number" && Number.isFinite(e) && l !== void 0) {
41
- const a = me(l), f = i.split(a)[1]?.length ?? 3;
42
- i = new Intl.NumberFormat(l, {
39
+ a = "";
40
+ else if (typeof e == "number" && Number.isFinite(e) && r !== void 0) {
41
+ const c = pe(r), f = l ?? a.split(c)[1]?.length ?? 2;
42
+ a = new Intl.NumberFormat(r, {
43
43
  maximumFractionDigits: f
44
44
  }).format(e).replace(/\u202F/gu, " ");
45
45
  }
46
- return (t || /[",\r\n]/u.test(i)) && (i = `"${i.replace(/"/gu, '""')}"`), i;
46
+ return (t || /[",\r\n]/u.test(a)) && (a = `"${a.replace(/"/gu, '""')}"`), a;
47
47
  };
48
- function ke(n, e = {}) {
49
- const { columns: t, delimiter: l, includeHeader: i = !0, quoteAll: o = !1, locale: a } = e, f = n.length === 0;
50
- let r = "";
48
+ function je(i, e = {}) {
49
+ const { columns: t, delimiter: r, includeHeader: l = !0, quoteAll: a = !1, locale: o, roundDecimals: c } = e, f = i.length === 0;
50
+ let s = "";
51
51
  if (!f) {
52
- const m = t ?? Object.keys(n[0]), x = [], g = l ?? fe(a ?? "en");
53
- if (a !== void 0 && g !== "," && (r += `sep=${g}\r
54
- `), i) {
55
- const y = m.map((s) => E({ value: s, quoteAll: o, locale: a }));
56
- x.push(y.join(g));
52
+ const A = t ?? Object.keys(i[0]), b = [], F = r ?? xe(o ?? "en");
53
+ if (o !== void 0 && F !== "," && (s += `sep=${F}\r
54
+ `), l) {
55
+ const g = A.map((n) => H({ value: n, quoteAll: a, locale: o, roundDecimals: c }));
56
+ b.push(g.join(F));
57
57
  }
58
- n.forEach((y) => {
59
- const s = m.map((d) => E({ value: y[d], quoteAll: o, locale: a }));
60
- x.push(s.join(g));
61
- }), r += x.join(`\r
58
+ i.forEach((g) => {
59
+ const n = A.map((u) => H({ value: g[u], quoteAll: a, locale: o, roundDecimals: c }));
60
+ b.push(n.join(F));
61
+ }), s += b.join(`\r
62
62
  `);
63
63
  }
64
- return r;
64
+ return s;
65
65
  }
66
- function Ke(n) {
67
- const { rawData: e, config: t, layer: l, fieldList: i } = n;
68
- let o = e;
66
+ function _e(i) {
67
+ const { rawData: e, config: t, layer: r, fieldList: l, formatters: a } = i;
68
+ let o = [];
69
69
  if (t !== void 0 && Array.isArray(e) && e.length > 0) {
70
- const a = ee(t?.series);
71
- a === D.HistogramSeries ? o = ye(t, e) : a === D.BarSeries || a === D.LineSeries || a === D.ComboLineAndBarSeries ? o = pe({
70
+ const c = ie(t?.series);
71
+ c === v.HistogramSeries ? o = be(
72
+ t,
73
+ e,
74
+ a
75
+ ) : c === v.BarSeries || c === v.LineSeries || c === v.ComboLineAndBarSeries ? o = Be({
72
76
  config: t,
73
77
  rows: e,
74
- layer: l,
75
- fieldList: i
76
- }) : a === D.PieSeries ? o = xe({
78
+ layer: r,
79
+ fieldList: l,
80
+ formatters: a
81
+ }) : c === v.PieSeries ? o = Pe({
77
82
  config: t,
78
83
  rows: e,
79
- layer: l,
80
- fieldList: i
81
- }) : a === D.BoxPlotSeries && (o = Be({
84
+ layer: r,
85
+ fieldList: l,
86
+ formatters: a
87
+ }) : c === v.BoxPlotSeries && (o = $e({
82
88
  config: t,
83
89
  rows: e,
84
- fieldList: i
90
+ fieldList: l,
91
+ formatters: a
85
92
  }));
86
93
  }
87
94
  return o;
88
95
  }
89
- function ye(n, e) {
90
- const t = ie(n), l = `${F(K.Min)} of ${t}`, i = `${F(K.Max)} of ${t}`, o = `${F(K.Count)} of ${t}`;
91
- return e.map((a) => {
92
- const { minValue: f, maxValue: r, count: m } = a, x = A(f), g = A(r), y = A(m), s = {};
93
- return x && (s[l] = f.toFixed(2)), g && (s[i] = r.toFixed(2)), x && g && (s.Label = `${f.toFixed(2)} - ${r.toFixed(2)}`), y && (s[o] = m), s;
96
+ function B(i) {
97
+ const { value: e, originalValue: t, formatter: r } = i;
98
+ let l = e;
99
+ return r !== void 0 && (e === null || e instanceof Date || typeof e == "number" || typeof e == "string") && (l = r(e, t)), l;
100
+ }
101
+ function V(i) {
102
+ const { field: e, row: t, fieldList: r, formatter: l } = i, a = Object.keys(t).find((f) => f.toLocaleLowerCase() === e.toLocaleLowerCase()), o = t[a ?? e];
103
+ let c;
104
+ return o == null || typeof o == "boolean" || Array.isArray(o) ? c = o : typeof o == "string" || typeof o == "number" || o instanceof Date ? c = W({
105
+ field: e,
106
+ value: o,
107
+ fieldList: r
108
+ }) : c = o, B({
109
+ value: c,
110
+ originalValue: o,
111
+ formatter: l
112
+ });
113
+ }
114
+ function j(i) {
115
+ const { config: e, seriesIndex: t, formatters: r } = i;
116
+ return e.series?.[t]?.assignToSecondValueAxis === !0 ? r?.secondaryYAxisLabelFormatter : r?.yAxisLabelFormatter;
117
+ }
118
+ function Fe(i) {
119
+ const { config: e, splitValueIndex: t, formatters: r } = i;
120
+ return e?.series?.[t]?.assignToSecondValueAxis === !0 ? r?.secondaryYAxisLabelFormatter : r?.yAxisLabelFormatter;
121
+ }
122
+ function be(i, e, t) {
123
+ const r = se(i), l = `${p(N.Min)} of ${r}`, a = `${p(N.Max)} of ${r}`, o = `${p(N.Count)} of ${r}`;
124
+ return e.map((c) => {
125
+ const { minValue: f, maxValue: s, count: A } = c, b = R(f), F = R(s), g = R(A), n = {};
126
+ if (b && (n[l] = B({
127
+ value: f,
128
+ originalValue: f,
129
+ formatter: t?.xAxisLabelFormatter
130
+ })), F && (n[a] = B({
131
+ value: s,
132
+ originalValue: s,
133
+ formatter: t?.xAxisLabelFormatter
134
+ })), b && F) {
135
+ const u = B({
136
+ value: f,
137
+ originalValue: f,
138
+ formatter: t?.xAxisLabelFormatter
139
+ }), d = B({
140
+ value: s,
141
+ originalValue: s,
142
+ formatter: t?.xAxisLabelFormatter
143
+ });
144
+ n.Label = `${String(u ?? "")} - ${String(d ?? "")}`;
145
+ }
146
+ return g && (n[o] = B({
147
+ value: A,
148
+ originalValue: A,
149
+ formatter: t?.yAxisLabelFormatter
150
+ })), n;
94
151
  });
95
152
  }
96
- function ge(n, e, t) {
97
- const l = Object.keys(n);
98
- let i = [];
99
- return t ? i = t.map((o) => l.find((a) => a.toLowerCase().includes(o.toLowerCase())) || "") : i = l.filter((a) => a.toLowerCase().includes(e.toLowerCase())), i.filter((o) => o.trim() !== "");
153
+ function Ae(i, e, t) {
154
+ const r = Object.keys(i);
155
+ let l = [];
156
+ return t ? l = t.map((a) => r.find((o) => o.toLowerCase().includes(a.toLowerCase())) || "") : l = r.filter((o) => o.toLowerCase().includes(e.toLowerCase())), l.filter((a) => a.trim() !== "");
100
157
  }
101
- function pe(n) {
102
- const { config: e, rows: t, layer: l, fieldList: i } = n, o = ue(e), a = le(e), f = F(a), r = re(e), m = V(e.series), x = G(e), g = ce(e), { idField: y, isTraditionalTypeOID: s } = U(X(l)), d = s && r.length === 1 && r[0] === y;
103
- let u;
104
- switch (m) {
105
- case c.BarAndLineNoAggregation:
106
- u = t.map((p) => {
107
- const b = $({
158
+ function Be(i) {
159
+ const { config: e, rows: t, layer: r, fieldList: l, formatters: a } = i, o = ge(e), c = me(e), f = p(c), s = de(e), A = k(e.series), b = X(e), F = fe(e), { idField: g, isTraditionalTypeOID: n } = ee(te(r)), u = n && s.length === 1 && s[0] === g;
160
+ let d;
161
+ switch (A) {
162
+ case m.BarAndLineNoAggregation:
163
+ d = t.map((y) => {
164
+ const x = V({
108
165
  field: o,
109
- value: p[o],
110
- fieldList: i
111
- }), P = { [o]: b };
112
- return Object.assign(P, ...r.map((S) => ({ [S]: p[S] }))), P;
166
+ row: y,
167
+ fieldList: l,
168
+ formatter: a?.xAxisLabelFormatter
169
+ }), S = { [o]: x };
170
+ return Object.assign(
171
+ S,
172
+ ...s.map((L, $) => ({
173
+ [L]: B({
174
+ value: y[L],
175
+ originalValue: y[L],
176
+ formatter: j({ config: e, seriesIndex: $, formatters: a })
177
+ })
178
+ }))
179
+ ), S;
113
180
  });
114
181
  break;
115
- case c.BarAndLineFromFields:
116
- u = H(r, t).map(([p, b]) => {
117
- const P = O(e.series)[0], S = {};
118
- return b !== void 0 && p !== void 0 && (S.Field = b[o], S.Value = b[P]), S;
182
+ case m.BarAndLineFromFields:
183
+ d = G(s, t).map(([y, x]) => {
184
+ const S = T(e.series)[0], L = {};
185
+ return x !== void 0 && y !== void 0 && (L.Field = B({
186
+ value: x[o],
187
+ originalValue: x[o],
188
+ formatter: a?.xAxisLabelFormatter
189
+ }), L.Value = B({
190
+ value: x[S],
191
+ originalValue: x[S],
192
+ formatter: j({ config: e, seriesIndex: 0, formatters: a })
193
+ })), L;
119
194
  });
120
195
  break;
121
- case c.BarAndLineMonoField:
122
- case c.BarAndLineMultiFields:
123
- u = t.map((p) => {
124
- const b = $({
196
+ case m.BarAndLineMonoField:
197
+ case m.BarAndLineMultiFields:
198
+ d = t.map((y) => {
199
+ const x = V({
125
200
  field: o,
126
- value: p[o],
127
- fieldList: i
128
- }), P = { [o]: b };
129
- return r.forEach((S, w) => {
130
- const T = Q({
201
+ row: y,
202
+ fieldList: l,
203
+ formatter: a?.xAxisLabelFormatter
204
+ }), S = { [o]: x };
205
+ return s.forEach((L, $) => {
206
+ const O = U({
131
207
  config: e,
132
208
  xAxisField: o,
133
- numericFields: r,
134
- aggregationType: a,
135
- layer: l,
136
- numericFieldIndex: w,
137
- fieldList: i
138
- }), k = O(e.series)[w];
139
- let j = k, _ = k;
140
- k.toLowerCase() === T.name.toLowerCase() && (j = T.description, _ = T.name), P[j] = p[_];
141
- }), P;
209
+ numericFields: s,
210
+ aggregationType: c,
211
+ layer: r,
212
+ numericFieldIndex: $,
213
+ fieldList: l
214
+ }), I = T(e.series)[$];
215
+ let Y = I, K = I;
216
+ I.toLowerCase() === O.name.toLowerCase() && (Y = O.description, K = O.name), S[Y] = B({
217
+ value: y[K],
218
+ originalValue: y[K],
219
+ formatter: j({ config: e, seriesIndex: $, formatters: a })
220
+ });
221
+ }), S;
142
222
  });
143
223
  break;
144
- case c.BarAndLineSplitBy:
145
- u = t.flatMap((p) => {
146
- const b = O(e.series), P = $({
224
+ case m.BarAndLineSplitBy:
225
+ d = t.flatMap((y) => {
226
+ const x = T(e.series), S = V({
147
227
  field: o,
148
- value: p[o],
149
- fieldList: i
228
+ row: y,
229
+ fieldList: l,
230
+ formatter: a?.xAxisLabelFormatter
150
231
  });
151
- return x.map(
152
- (S, w) => ({
153
- [o]: P,
154
- [g]: S,
155
- [d ? f : `${f} of ${r[0]}`]: p[b[w]]
232
+ return b.map((L, $) => ({
233
+ [o]: S,
234
+ [F]: L,
235
+ [u ? f : `${f} of ${s[0]}`]: B({
236
+ value: y[x[$]],
237
+ originalValue: y[x[$]],
238
+ formatter: Fe({ config: e, splitValueIndex: $, formatters: a })
156
239
  })
157
- );
240
+ }));
158
241
  });
159
242
  break;
160
- case c.BarAndLineSplitByNoAggregation:
161
- u = t.map((p) => {
162
- const b = $({
243
+ case m.BarAndLineSplitByNoAggregation:
244
+ d = t.map((y) => {
245
+ const x = V({
163
246
  field: o,
164
- value: p[o],
165
- fieldList: i
166
- }), P = ge(p, r[0], x);
247
+ row: y,
248
+ fieldList: l,
249
+ formatter: a?.xAxisLabelFormatter
250
+ }), S = Ae(y, s[0], b);
167
251
  return {
168
- [o]: b,
169
- [g]: p[g],
170
- [r[0]]: p[P[0]]
252
+ [o]: x,
253
+ [F]: y[F],
254
+ [s[0]]: B({
255
+ value: y[S[0]],
256
+ originalValue: y[S[0]],
257
+ formatter: a?.yAxisLabelFormatter
258
+ })
171
259
  };
172
260
  });
173
261
  break;
174
262
  default:
175
- u = t;
263
+ d = t;
176
264
  }
177
- return u;
265
+ return d;
178
266
  }
179
- function Fe(n) {
180
- if (n.length === 0)
267
+ function Se(i) {
268
+ if (i.length === 0)
181
269
  return [];
182
- const e = n.reduce((t, l) => {
183
- for (const [i, o] of Object.entries(l))
184
- typeof o == "number" && Number.isFinite(o) && (t[i] = (t[i] ?? 0) + o);
270
+ const e = i.reduce((t, r) => {
271
+ for (const [l, a] of Object.entries(r))
272
+ typeof a == "number" && Number.isFinite(a) && (t[l] = (t[l] ?? 0) + a);
185
273
  return t;
186
274
  }, {});
187
- return n.map((t) => {
188
- const l = { ...t };
189
- for (const [i, o] of Object.entries(t))
190
- if (typeof o == "number" && e[i] > 0) {
191
- const a = o / e[i];
192
- l[`${i}${h}`] = a.toPrecision(2);
275
+ return i.map((t) => {
276
+ const r = { ...t };
277
+ for (const [l, a] of Object.entries(t))
278
+ if (typeof a == "number" && e[l] > 0) {
279
+ const o = a / e[l];
280
+ r[`${l}${C}`] = o.toPrecision(2);
193
281
  }
194
- return l;
282
+ return r;
195
283
  });
196
284
  }
197
- function xe(n) {
198
- const { config: e, rows: t, layer: l, fieldList: i } = n, o = ae(e), a = V(e.series);
199
- let f = Fe(t);
200
- const r = se(e), m = a !== c.PieFromFields ? z.Category : z.Fields, x = ne(e, m), g = Q({
285
+ function Pe(i) {
286
+ const { config: e, rows: t, layer: r, fieldList: l, formatters: a } = i, o = ne(e), c = k(e.series);
287
+ let f = Se(t);
288
+ const s = ce(e), A = c !== m.PieFromFields ? q.Category : q.Fields, b = ue(e, A), F = U({
201
289
  config: e,
202
290
  xAxisField: o,
203
- numericFields: r,
204
- aggregationType: x,
205
- mode: m,
206
- layer: l,
207
- fieldList: i
208
- }), y = O(e.series)[0];
209
- return a === c.PieFromCategory || a === c.PieNoAggregation ? f = f.map((s) => {
210
- const d = $({
291
+ numericFields: s,
292
+ aggregationType: b,
293
+ mode: A,
294
+ layer: r,
295
+ fieldList: l
296
+ }), g = T(e.series)[0];
297
+ return c === m.PieFromCategory || c === m.PieNoAggregation ? f = f.map((n) => {
298
+ const u = V({
211
299
  field: o,
212
- value: s[o],
213
- fieldList: i
214
- }), u = { [o]: d };
215
- let p = y, b = y;
216
- return a === c.PieFromCategory && y.toLowerCase() === g.name.toLowerCase() && (p = g.description, b = g.name), u[p] = s[b], u[F(h.trim())] = s[`${b}${h}`], u;
217
- }) : a === c.PieFromFields && (f = H(r, f).map(([s, d]) => {
218
- const u = {};
219
- return d !== void 0 && s !== void 0 && (u.Field = d[o], u.Value = d[y], u[F(h.trim())] = d[`${y}${h}`]), u;
300
+ row: n,
301
+ fieldList: l,
302
+ formatter: a?.xAxisLabelFormatter
303
+ }), d = { [o]: u };
304
+ let y = g, x = g;
305
+ return c === m.PieFromCategory && g.toLowerCase() === F.name.toLowerCase() && (y = F.description, x = F.name), d[y] = B({
306
+ value: n[x],
307
+ originalValue: n[x],
308
+ formatter: a?.yAxisLabelFormatter
309
+ }), d[p(C.trim())] = B({
310
+ value: n[`${x}${C}`],
311
+ originalValue: n[`${x}${C}`],
312
+ formatter: a?.yAxisLabelFormatter
313
+ }), d;
314
+ }) : c === m.PieFromFields && (f = G(s, f).map(([n, u]) => {
315
+ const d = {};
316
+ return u !== void 0 && n !== void 0 && (d.Field = B({
317
+ value: u[o],
318
+ originalValue: u[o],
319
+ formatter: a?.xAxisLabelFormatter
320
+ }), d.Value = B({
321
+ value: u[g],
322
+ originalValue: u[g],
323
+ formatter: a?.yAxisLabelFormatter
324
+ }), d[p(C.trim())] = B({
325
+ value: u[`${g}${C}`],
326
+ originalValue: u[`${g}${C}`],
327
+ formatter: a?.yAxisLabelFormatter
328
+ })), d;
220
329
  })), f;
221
330
  }
222
- function L(n) {
223
- const { rawData: e, keyBase: t = "", outRow: l } = n;
224
- for (const [i, o] of Object.entries(B)) {
225
- const a = e[t + o];
226
- a !== void 0 && (l[i] = A(a) ? a.toFixed(2) : a);
227
- const f = e[t + o + J];
228
- f !== void 0 && (l[`${i} Outlier`] = A(f) ? f.toFixed(2) : f);
229
- const r = e[t + o + R];
230
- r !== void 0 && (l[`${i} Z-Score`] = A(r) ? r.toFixed(2) : r);
331
+ function w(i) {
332
+ const { rawData: e, keyBase: t = "", outRow: r } = i;
333
+ for (const [l, a] of Object.entries(P)) {
334
+ const o = e[t + a];
335
+ o !== void 0 && (r[l] = o);
336
+ const c = e[t + a + oe];
337
+ c !== void 0 && (r[`${l} Outlier`] = c);
338
+ const f = e[t + a + _];
339
+ f !== void 0 && (r[`${l} Z-Score`] = f);
231
340
  }
232
341
  }
233
- function M(n) {
234
- const { rawData: e, outRow: t, config: l, boxPlotSubType: i, fieldList: o } = n, a = N(l), f = Z(l), r = I(l);
235
- let m = B.Outlier;
236
- const x = v;
237
- switch (i) {
238
- case c.BoxPlotMonoFieldAndCategory: {
239
- const s = $({
240
- field: a,
241
- value: e[a],
242
- fieldList: o
342
+ function M(i) {
343
+ const { rawData: e, outRow: t, config: r, boxPlotSubType: l, fieldList: a } = i, o = z(r), c = Q(r), f = E(r);
344
+ let s = P.Outlier;
345
+ const A = h;
346
+ switch (l) {
347
+ case m.BoxPlotMonoFieldAndCategory: {
348
+ const g = W({
349
+ field: o,
350
+ value: e[o],
351
+ fieldList: a
243
352
  });
244
- t[a] = s, t[F(B.Outlier)] = e[m];
353
+ t[o] = g, t[p(P.Outlier)] = e[s];
245
354
  break;
246
355
  }
247
- case c.BoxPlotMultiFieldsAndCategory: {
248
- t[F(a)] = e[a], m = `${f.find(
249
- (d) => Object.keys(e).some((u) => u.toLowerCase().includes(d.toLowerCase()))
250
- ) ?? ""}_${m}`, t[F(B.Outlier)] = e[m];
356
+ case m.BoxPlotMultiFieldsAndCategory: {
357
+ t[p(o)] = e[o], s = `${c.find(
358
+ (n) => Object.keys(e).some((u) => u.toLowerCase().includes(n.toLowerCase()))
359
+ ) ?? ""}_${s}`, t[p(P.Outlier)] = e[s];
251
360
  break;
252
361
  }
253
- case c.BoxPlotMonoFieldAndSplitBy:
254
- case c.BoxPlotMultiFieldsAndSplitBy: {
255
- const s = e[r];
256
- m = `${s}_${m}`, t.Field = e[x], t[F(r)] = s, t[F(B.Outlier)] = e[m];
362
+ case m.BoxPlotMonoFieldAndSplitBy:
363
+ case m.BoxPlotMultiFieldsAndSplitBy: {
364
+ const g = String(e[f]);
365
+ s = `${g}_${s}`, t.Field = e[A], t[p(f)] = g, t[p(P.Outlier)] = e[s];
257
366
  break;
258
367
  }
259
- case c.BoxPlotMonoFieldAndCategoryAndSplitBy: {
260
- const s = e[r];
261
- m = `${s}_${m}`, t[F(a)] = e[a], t[F(r)] = s, t[F(B.Outlier)] = e[m];
368
+ case m.BoxPlotMonoFieldAndCategoryAndSplitBy: {
369
+ const g = String(e[f]);
370
+ s = `${g}_${s}`, t[p(o)] = e[o], t[p(f)] = g, t[p(P.Outlier)] = e[s];
262
371
  break;
263
372
  }
264
- case c.BoxPlotMonoField:
265
- case c.BoxPlotMultiFields:
373
+ case m.BoxPlotMonoField:
374
+ case m.BoxPlotMultiFields:
266
375
  default: {
267
- t.Field = e[x], t[F(B.Outlier)] = e[m];
376
+ t.Field = e[A], t[p(P.Outlier)] = e[s];
268
377
  break;
269
378
  }
270
379
  }
271
- const g = `${m}${R}`, y = e[g];
272
- y !== void 0 && (t[`${F(B.Outlier)} Z-Score`] = A(y) ? y.toFixed(2) : y);
380
+ const b = `${s}${_}`, F = e[b];
381
+ F !== void 0 && (t[`${p(P.Outlier)} Z-Score`] = F);
273
382
  }
274
- function be(n) {
275
- const { rawData: e, outRow: t, config: l, splitByValue: i } = n, o = V(l.series), a = e[`${i}_${B.Average}`], f = I(l), r = N(l);
276
- let m = "";
277
- switch (o) {
278
- case c.BoxPlotMonoFieldAndSplitBy: {
279
- m = `${i}_${f}`, t.Field = e[v], t[F(f)] = e[m];
383
+ function Le(i) {
384
+ const { rawData: e, outRow: t, config: r, splitByValue: l } = i, a = k(r.series), o = e[`${l}_${P.Average}`], c = E(r), f = z(r);
385
+ let s = "";
386
+ switch (a) {
387
+ case m.BoxPlotMonoFieldAndSplitBy: {
388
+ s = `${l}_${c}`, t.Field = e[h], t[p(c)] = e[s];
280
389
  break;
281
390
  }
282
- case c.BoxPlotMultiFieldsAndSplitBy: {
283
- m = `${i}_${B.Average}`, t.Field = e[v], t[F(f)] = e[m];
391
+ case m.BoxPlotMultiFieldsAndSplitBy: {
392
+ s = `${l}_${P.Average}`, t.Field = e[h], t[p(c)] = e[s];
284
393
  break;
285
394
  }
286
- case c.BoxPlotMonoFieldAndCategoryAndSplitBy: {
287
- m = `${i}_${B.Average}`, t[r] = e[r], t[F(f)] = i;
395
+ case m.BoxPlotMonoFieldAndCategoryAndSplitBy: {
396
+ s = `${l}_${P.Average}`, t[f] = e[f], t[p(c)] = l;
288
397
  break;
289
398
  }
290
399
  }
291
- t[F(B.Average)] = A(a) ? a.toFixed(2) : a;
292
- const x = `${a}${R}`, g = e[x];
293
- g !== void 0 && (t[`${F(B.Average)} Z-Score`] = A(g) ? g.toFixed(2) : g);
400
+ t[p(P.Average)] = o;
401
+ const A = `${String(o)}${_}`, b = e[A];
402
+ b !== void 0 && (t[`${p(P.Average)} Z-Score`] = b);
294
403
  }
295
- function Be(n) {
296
- const { config: e, rows: t, fieldList: l } = n, i = V(e.series);
297
- let o = i;
298
- const a = oe(e), f = Array.isArray(t) && t.length > 0 && t.every((s) => s[C.boxPlot.boxPlotMeanLineMarkerId] !== void 0);
299
- a && !f && (i === c.BoxPlotMonoFieldAndSplitBy ? o = c.BoxPlotMonoField : i === c.BoxPlotMultiFieldsAndSplitBy ? o = c.BoxPlotMultiFields : i === c.BoxPlotMonoFieldAndCategoryAndSplitBy && (o = c.BoxPlotMonoFieldAndCategory));
300
- const r = N(e), m = Z(e), x = G(e), g = I(e);
301
- let y;
404
+ function $e(i) {
405
+ const { config: e, rows: t, fieldList: r, formatters: l } = i, a = k(e.series);
406
+ let o = a;
407
+ const c = le(e), f = Array.isArray(t) && t.length > 0 && t.every((n) => n[D.boxPlot.boxPlotMeanLineMarkerId] !== void 0);
408
+ c && !f && (a === m.BoxPlotMonoFieldAndSplitBy ? o = m.BoxPlotMonoField : a === m.BoxPlotMultiFieldsAndSplitBy ? o = m.BoxPlotMultiFields : a === m.BoxPlotMonoFieldAndCategoryAndSplitBy && (o = m.BoxPlotMonoFieldAndCategory));
409
+ const s = z(e), A = Q(e), b = X(e), F = E(e);
410
+ let g;
302
411
  switch (o) {
303
- case c.BoxPlotMonoField:
304
- case c.BoxPlotMonoFieldAndCategory: {
305
- y = t.map((s) => {
306
- const d = {};
307
- if (s[C.boxPlot.boxPlotOutlierId])
308
- M({ rawData: s, outRow: d, config: e, boxPlotSubType: o });
412
+ case m.BoxPlotMonoField:
413
+ case m.BoxPlotMonoFieldAndCategory: {
414
+ g = t.map((n) => {
415
+ const u = {};
416
+ if (n[D.boxPlot.boxPlotOutlierId])
417
+ M({ rawData: n, outRow: u, config: e, boxPlotSubType: o });
309
418
  else {
310
- if (o === c.BoxPlotMonoFieldAndCategory) {
311
- const u = $({
312
- field: r,
313
- value: s[r],
314
- fieldList: l
419
+ if (o === m.BoxPlotMonoFieldAndCategory) {
420
+ const d = V({
421
+ field: s,
422
+ row: n,
423
+ fieldList: r,
424
+ formatter: l?.xAxisLabelFormatter
315
425
  });
316
- d[r] = u;
317
- } else o === c.BoxPlotMonoField && (d.Field = s[v]);
318
- L({ rawData: s, outRow: d });
426
+ u[s] = d;
427
+ } else o === m.BoxPlotMonoField && (u.Field = n[h]);
428
+ w({ rawData: n, outRow: u });
319
429
  }
320
- return d;
430
+ return u;
321
431
  });
322
432
  break;
323
433
  }
324
- case c.BoxPlotMultiFields: {
325
- y = t.flatMap((s) => {
326
- const d = {};
327
- return s[C.boxPlot.boxPlotOutlierId] ? M({
328
- rawData: s,
329
- outRow: d,
434
+ case m.BoxPlotMultiFields: {
435
+ g = t.flatMap((n) => {
436
+ const u = {};
437
+ return n[D.boxPlot.boxPlotOutlierId] ? M({
438
+ rawData: n,
439
+ outRow: u,
330
440
  config: e,
331
441
  boxPlotSubType: o
332
- }) : (d.Field = s[v], L({ rawData: s, outRow: d })), [d];
442
+ }) : (u.Field = n[h], w({ rawData: n, outRow: u })), [u];
333
443
  });
334
444
  break;
335
445
  }
336
- case c.BoxPlotMultiFieldsAndCategory: {
337
- y = t.flatMap(
338
- (s) => m.map((d) => {
339
- const u = {};
340
- let p = "";
341
- if (u.Field = d, s[C.boxPlot.boxPlotOutlierId])
446
+ case m.BoxPlotMultiFieldsAndCategory: {
447
+ g = t.flatMap(
448
+ (n) => A.map((u) => {
449
+ const d = {};
450
+ let y = "";
451
+ if (d.Field = u, n[D.boxPlot.boxPlotOutlierId])
342
452
  M({
343
- rawData: s,
344
- outRow: u,
453
+ rawData: n,
454
+ outRow: d,
345
455
  config: e,
346
456
  boxPlotSubType: o
347
457
  });
348
458
  else {
349
- if (o === c.BoxPlotMultiFieldsAndCategory) {
350
- const b = $({
351
- field: r,
352
- value: s[r],
353
- fieldList: l
459
+ if (o === m.BoxPlotMultiFieldsAndCategory) {
460
+ const x = V({
461
+ field: s,
462
+ row: n,
463
+ fieldList: r,
464
+ formatter: l?.xAxisLabelFormatter
354
465
  });
355
- u[r] = b, p = `${d}_`;
466
+ d[s] = x, y = `${u}_`;
356
467
  }
357
- L({ rawData: s, outRow: u, keyBase: p });
468
+ w({ rawData: n, outRow: d, keyBase: y });
358
469
  }
359
- return u;
470
+ return d;
360
471
  })
361
472
  );
362
473
  break;
363
474
  }
364
- case c.BoxPlotMonoFieldAndSplitBy:
365
- case c.BoxPlotMultiFieldsAndSplitBy:
366
- case c.BoxPlotMonoFieldAndCategoryAndSplitBy: {
367
- y = t.flatMap((s) => {
368
- if (s[C.boxPlot.boxPlotOutlierId]) {
369
- const d = {};
475
+ case m.BoxPlotMonoFieldAndSplitBy:
476
+ case m.BoxPlotMultiFieldsAndSplitBy:
477
+ case m.BoxPlotMonoFieldAndCategoryAndSplitBy: {
478
+ g = t.flatMap((n) => {
479
+ if (n[D.boxPlot.boxPlotOutlierId]) {
480
+ const u = {};
370
481
  return M({
371
- rawData: s,
372
- outRow: d,
482
+ rawData: n,
483
+ outRow: u,
373
484
  config: e,
374
485
  boxPlotSubType: o
375
- }), [d];
376
- } else return s[C.boxPlot.boxPlotMeanLineMarkerId] ? x?.map((d) => {
377
- const u = {};
378
- return be({
379
- rawData: s,
380
- outRow: u,
381
- splitByValue: d,
486
+ }), [u];
487
+ } else return n[D.boxPlot.boxPlotMeanLineMarkerId] ? b?.map((u) => {
488
+ const d = {};
489
+ return Le({
490
+ rawData: n,
491
+ outRow: d,
492
+ splitByValue: u,
382
493
  config: e
383
- }), u;
384
- }) : x.map((d) => {
385
- const u = {};
386
- if (o === c.BoxPlotMonoFieldAndCategoryAndSplitBy) {
387
- const p = $({
388
- field: r,
389
- value: s[r],
390
- fieldList: l
494
+ }), d;
495
+ }) : b.map((u) => {
496
+ const d = {};
497
+ if (o === m.BoxPlotMonoFieldAndCategoryAndSplitBy) {
498
+ const y = V({
499
+ field: s,
500
+ row: n,
501
+ fieldList: r,
502
+ formatter: l?.xAxisLabelFormatter
391
503
  });
392
- u[r] = p;
504
+ d[s] = y;
393
505
  }
394
- return s[C.boxPlot.boxPlotOutlierId] ? M({
395
- rawData: s,
396
- outRow: u,
506
+ return n[D.boxPlot.boxPlotOutlierId] ? M({
507
+ rawData: n,
508
+ outRow: d,
397
509
  config: e,
398
510
  boxPlotSubType: o
399
- }) : (u[g] = d, L({ rawData: s, outRow: u, keyBase: `${d}_` })), u;
511
+ }) : (d[F] = u, w({ rawData: n, outRow: d, keyBase: `${u}_` })), d;
400
512
  });
401
513
  });
402
514
  break;
403
515
  }
404
516
  default:
405
- y = t;
517
+ g = t;
406
518
  }
407
- return y;
519
+ return g;
408
520
  }
409
- const q = (n) => {
521
+ const Z = (i) => {
410
522
  let e = !1;
411
- return (typeof n == "string" || typeof n == "number") && (e = !Number.isNaN(new Date(n).getTime())), e;
412
- }, $ = (n) => {
413
- const { field: e, value: t, fieldList: l } = n;
414
- let i = t;
415
- const o = l?.find((a) => a.name === e);
416
- if (o) {
417
- const a = o.type === te.DateOnly;
418
- W(o) && !a ? i = q(t) ? new Date(t).toISOString() : t : a && typeof t != "string" && (i = q(t) ? new Date(t).toISOString().split("T")[0] : t);
523
+ return (typeof i == "string" || typeof i == "number") && (e = !Number.isNaN(new Date(i).getTime())), e;
524
+ }, W = (i) => {
525
+ const { field: e, value: t, fieldList: r } = i;
526
+ let l = t;
527
+ const a = r?.find((o) => o.name === e);
528
+ if (a) {
529
+ const o = a.type === re.DateOnly;
530
+ ae(a) && !o ? l = Z(t) ? new Date(t).toISOString() : t : o && typeof t != "string" && (l = Z(t) ? new Date(t).toISOString().split("T")[0] : t);
419
531
  }
420
- return i;
532
+ return l;
421
533
  };
422
- function Re() {
423
- const n = () => ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
424
- return `${n() + n()}-${n()}-${n()}-${n()}-${n()}${n()}${n()}`;
534
+ function ze() {
535
+ const i = () => ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
536
+ return `${i() + i()}-${i()}-${i()}-${i()}-${i()}${i()}${i()}`;
425
537
  }
426
538
  export {
427
- de as a,
428
- ke as b,
429
- Re as g,
430
- Te as h,
431
- Ke as t
539
+ ye as a,
540
+ je as b,
541
+ ze as g,
542
+ Ne as h,
543
+ _e as t
432
544
  };