@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.
- package/dist/cdn/{XO3XI5UW.js → 2L4KRFAO.js} +1 -1
- package/dist/cdn/{474MEOFZ.js → 2WMGX4LG.js} +1 -1
- package/dist/cdn/{HZAQ4CU2.js → 3LHIBPWU.js} +1 -1
- package/dist/cdn/{SRVSS5LG.js → 3NHSJC2V.js} +1 -1
- package/dist/cdn/{DZCGO7SQ.js → 3TYKSX6S.js} +1 -1
- package/dist/cdn/437PRHGP.js +2 -0
- package/dist/cdn/{PH5QB66G.js → 4A46GMQH.js} +1 -1
- package/dist/cdn/{BRPXLQXN.js → 4AP7OF2H.js} +1 -1
- package/dist/cdn/{6P6JRYTL.js → 533OIYHT.js} +1 -1
- package/dist/cdn/{FPWXPIYT.js → 54JMGDNM.js} +1 -1
- package/dist/cdn/{MZIUWLFR.js → 6WQO34EX.js} +1 -1
- package/dist/cdn/{Q5LFOZZV.js → 7BIC7WRS.js} +1 -1
- package/dist/cdn/{EOSVOYYW.js → 7JYYEL7C.js} +1 -1
- package/dist/cdn/7RRIPRBW.js +2 -0
- package/dist/cdn/{44YOQYY5.js → ABRBND33.js} +1 -1
- package/dist/cdn/{7PRT6KPV.js → AKNI6ZDM.js} +1 -1
- package/dist/cdn/{VKLAEROZ.js → B5DED64I.js} +1 -1
- package/dist/cdn/{S5ZNTUEJ.js → BGHKBRAY.js} +1 -1
- package/dist/cdn/{V6ZSMHGW.js → BIBH7Z6B.js} +1 -1
- package/dist/cdn/{5PVOIZ3O.js → BVLDD7VH.js} +1 -1
- package/dist/cdn/{C4VB5VOE.js → BYMLWT4F.js} +1 -1
- package/dist/cdn/{W6PWWHW7.js → C6VFUQYR.js} +1 -1
- package/dist/cdn/{S2MYZR2R.js → CBAUBDVW.js} +1 -1
- package/dist/cdn/{X63PQOKY.js → D4THJNNH.js} +1 -1
- package/dist/cdn/{J7DSGIMM.js → DOKKZWPP.js} +1 -1
- package/dist/cdn/{P7KZJ4LD.js → DQOPCAYH.js} +1 -1
- package/dist/cdn/{S6M3THYB.js → ETKEDYJI.js} +1 -1
- package/dist/cdn/{MPULRJBL.js → FPOY54UW.js} +1 -1
- package/dist/cdn/FRTL3JKO.js +2 -0
- package/dist/cdn/{YGXP2KRA.js → FSPMT24F.js} +1 -1
- package/dist/cdn/{B5NVKUWE.js → FTTFIYT7.js} +1 -1
- package/dist/cdn/{ZO4QGPQK.js → FXE7IJTK.js} +1 -1
- package/dist/cdn/{3KOLO2DZ.js → GCLBISUU.js} +1 -1
- package/dist/cdn/{EERE56JC.js → GG4V6IWC.js} +1 -1
- package/dist/cdn/{6EGDY2R6.js → GN55TJMJ.js} +1 -1
- package/dist/cdn/{LDBOH522.js → GR2MDXNR.js} +1 -1
- package/dist/cdn/{C7BVZIR6.js → GSIQ3AM5.js} +4 -3
- package/dist/cdn/{EZ6IWMWU.js → HRWT2MVN.js} +1 -1
- package/dist/cdn/{AXQIU56U.js → HZLHE35F.js} +1 -1
- package/dist/cdn/{VMKLIIN4.js → J34XNLVV.js} +1 -1
- package/dist/cdn/{KNI5Z6M6.js → JII3X6GD.js} +1 -1
- package/dist/cdn/{E672GJOI.js → JIJTDQNZ.js} +1 -1
- package/dist/cdn/{A2QGNOIM.js → JP5QECNE.js} +1 -1
- package/dist/cdn/{QDQ3XMGW.js → JQAYCBRF.js} +1 -1
- package/dist/cdn/{MS3WQ4R4.js → JXUQXIWS.js} +1 -1
- package/dist/cdn/{43CJXSHJ.js → KDU3ISRJ.js} +1 -1
- package/dist/cdn/{5MVPQ5JO.js → KHK4ESCR.js} +1 -1
- package/dist/cdn/{MSYJXEJZ.js → KJXMX3GJ.js} +1 -1
- package/dist/cdn/{DGMBW6MF.js → KZQPT32K.js} +1 -1
- package/dist/cdn/{6QC2WOB4.js → L5ESAQAD.js} +1 -1
- package/dist/cdn/{NFMUWJ4B.js → LRLFI235.js} +1 -1
- package/dist/cdn/{UQYUM5RQ.js → LTPICGE4.js} +1 -1
- package/dist/cdn/{JIMR7C5L.js → M6AWZ4GQ.js} +1 -1
- package/dist/cdn/{OB3LBS5F.js → N3QESBWD.js} +1 -1
- package/dist/cdn/{WBQNIKK7.js → N72JHWOW.js} +1 -1
- package/dist/cdn/{FQWSL4WE.js → NJOCWENE.js} +1 -1
- package/dist/cdn/{U2ZQR6TN.js → NLPIWZ6O.js} +1 -1
- package/dist/cdn/{Q4FWAO2U.js → NTMKUPVQ.js} +36 -36
- package/dist/cdn/{FOBAMFDQ.js → OG6XNLNH.js} +1 -1
- package/dist/cdn/{LDRGQ4QJ.js → OGYHFMDK.js} +1 -1
- package/dist/cdn/{6T5JVUTW.js → OM2N4R7B.js} +1 -1
- package/dist/cdn/{ZRLN2MXQ.js → OXOPYUOS.js} +1 -1
- package/dist/cdn/{LRI7NSY6.js → PE5WVBYF.js} +1 -1
- package/dist/cdn/{P2FI3ZHN.js → PECU6KQ5.js} +1 -1
- package/dist/cdn/{U72HCS3R.js → PSDHB4WG.js} +1 -1
- package/dist/cdn/{HIHW6ORI.js → QCLX4TIM.js} +1 -1
- package/dist/cdn/{KNWOWXLU.js → QCNYOXG2.js} +1 -1
- package/dist/cdn/{DHCP4FMK.js → QNEGICXV.js} +1 -1
- package/dist/cdn/{PV7KP6OZ.js → QQNMK2QL.js} +1 -1
- package/dist/cdn/R2R6BF6O.js +2 -0
- package/dist/cdn/{DKPZTFA5.js → SCVQSDX5.js} +1 -1
- package/dist/cdn/{QE2DFL3U.js → SN4BIMRO.js} +1 -1
- package/dist/cdn/SXLPETPI.js +2 -0
- package/dist/cdn/{WQDJ5V5V.js → TNXVGUYE.js} +1 -1
- package/dist/cdn/{LFY34FCB.js → TQG6RDX5.js} +1 -1
- package/dist/cdn/UOUARC5O.js +2 -0
- package/dist/cdn/{54D7BEVF.js → V3TCGIPS.js} +1 -1
- package/dist/cdn/{4D2OWE4B.js → VFNQXIXU.js} +1 -1
- package/dist/cdn/VOTMKVNY.js +2 -0
- package/dist/cdn/W553UCBH.js +4 -0
- package/dist/cdn/{GGUZK63V.js → WMLNHOVN.js} +1 -1
- package/dist/cdn/{X4ZH6AQA.js → WTPRSRPB.js} +1 -1
- package/dist/cdn/{YQJFV4BR.js → XEDWXXF3.js} +1 -1
- package/dist/cdn/{424JJGJE.js → XOY4K5NH.js} +1 -1
- package/dist/cdn/{VMCT7EK7.js → Y4DORYPQ.js} +1 -1
- package/dist/cdn/{2GOV45XT.js → YEOSKZ4Q.js} +1 -1
- package/dist/cdn/{QV3QDDVU.js → ZAKAJKUI.js} +1 -1
- package/dist/cdn/ZIAGMMWU.js +2 -0
- package/dist/cdn/{X2Y44TIN.js → ZNOJBKUZ.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chart-rendering/common/interfaces.d.ts +5 -0
- package/dist/chunks/bar-chart-model.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +6 -6
- package/dist/chunks/heat-chart-model.js +8 -8
- package/dist/chunks/index.js +1112 -1080
- package/dist/chunks/line-chart-model.js +3 -3
- package/dist/chunks/radar-chart-model.js +3 -3
- package/dist/chunks/rotated-state.js +29 -16
- package/dist/chunks/time-zone.js +11 -11
- package/dist/chunks/type-guards2.js +9 -9
- package/dist/chunks/web-component-utils.js +405 -293
- package/dist/components/arcgis-chart/customElement.d.ts +35 -3
- package/dist/components/arcgis-chart/customElement.js +3857 -3807
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/interfaces.d.ts +5 -0
- package/dist/loader.js +1 -1
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +2 -2
- package/dist/model/properties/rotated-state.d.ts +6 -0
- package/dist/model/properties/time-zone.d.ts +1 -11
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/dist/utils/chart-config/utils/index.d.ts +1 -1
- package/dist/utils/components/watch-handlers.d.ts +14 -0
- package/dist/utils/layer/query-features/index.d.ts +1 -0
- package/dist/utils/layer/query-parser/index.d.ts +2 -1
- package/package.json +3 -3
- package/dist/cdn/3LYLITEZ.js +0 -2
- package/dist/cdn/7MGBETN6.js +0 -2
- package/dist/cdn/A2SOHKNU.js +0 -2
- package/dist/cdn/DUPIQDJR.js +0 -2
- package/dist/cdn/DY3IXHQM.js +0 -2
- package/dist/cdn/FIT55NW2.js +0 -4
- package/dist/cdn/GPK2DP6R.js +0 -2
- package/dist/cdn/OD77ESN2.js +0 -2
- 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
|
|
3
|
-
import { aq as
|
|
4
|
-
import { b as
|
|
5
|
-
import { P as
|
|
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
|
|
8
|
-
import { R as
|
|
9
|
-
import { g as
|
|
10
|
-
import { g as
|
|
11
|
-
import { g as
|
|
12
|
-
import { g as
|
|
13
|
-
import { g as
|
|
14
|
-
import { g as
|
|
15
|
-
function
|
|
16
|
-
return !
|
|
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
|
|
19
|
-
return
|
|
18
|
+
function Ne(i, e) {
|
|
19
|
+
return ye(i, e) || i !== e;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
return (new Intl.NumberFormat(
|
|
21
|
+
function xe(i) {
|
|
22
|
+
return (new Intl.NumberFormat(i, {
|
|
23
23
|
minimumFractionDigits: 1,
|
|
24
24
|
maximumFractionDigits: 1
|
|
25
|
-
}).formatToParts(1.1).find((
|
|
25
|
+
}).formatToParts(1.1).find((r) => r.type === "decimal")?.value ?? ".") === "." ? "," : ";";
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
return new Intl.NumberFormat(
|
|
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
|
|
34
|
-
const { value: e, quoteAll: t = !1, locale: l } =
|
|
35
|
-
let
|
|
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
|
-
|
|
37
|
+
a = "null";
|
|
38
38
|
else if (e === void 0)
|
|
39
|
-
|
|
40
|
-
else if (typeof e == "number" && Number.isFinite(e) &&
|
|
41
|
-
const
|
|
42
|
-
|
|
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(
|
|
46
|
+
return (t || /[",\r\n]/u.test(a)) && (a = `"${a.replace(/"/gu, '""')}"`), a;
|
|
47
47
|
};
|
|
48
|
-
function
|
|
49
|
-
const { columns: t, delimiter:
|
|
50
|
-
let
|
|
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
|
|
53
|
-
if (
|
|
54
|
-
`),
|
|
55
|
-
const
|
|
56
|
-
|
|
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
|
-
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
}),
|
|
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
|
|
64
|
+
return s;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
const { rawData: e, config: t, layer:
|
|
68
|
-
let o =
|
|
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
|
|
71
|
-
|
|
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:
|
|
75
|
-
fieldList:
|
|
76
|
-
|
|
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:
|
|
80
|
-
fieldList:
|
|
81
|
-
|
|
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:
|
|
90
|
+
fieldList: l,
|
|
91
|
+
formatters: a
|
|
85
92
|
}));
|
|
86
93
|
}
|
|
87
94
|
return o;
|
|
88
95
|
}
|
|
89
|
-
function
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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
|
|
97
|
-
const
|
|
98
|
-
let
|
|
99
|
-
return t ?
|
|
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
|
|
102
|
-
const { config: e, rows: t, layer:
|
|
103
|
-
let
|
|
104
|
-
switch (
|
|
105
|
-
case
|
|
106
|
-
|
|
107
|
-
const
|
|
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
|
-
|
|
110
|
-
fieldList:
|
|
111
|
-
|
|
112
|
-
|
|
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
|
|
116
|
-
|
|
117
|
-
const
|
|
118
|
-
return
|
|
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
|
|
122
|
-
case
|
|
123
|
-
|
|
124
|
-
const
|
|
196
|
+
case m.BarAndLineMonoField:
|
|
197
|
+
case m.BarAndLineMultiFields:
|
|
198
|
+
d = t.map((y) => {
|
|
199
|
+
const x = V({
|
|
125
200
|
field: o,
|
|
126
|
-
|
|
127
|
-
fieldList:
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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:
|
|
134
|
-
aggregationType:
|
|
135
|
-
layer:
|
|
136
|
-
numericFieldIndex:
|
|
137
|
-
fieldList:
|
|
138
|
-
}),
|
|
139
|
-
let
|
|
140
|
-
|
|
141
|
-
|
|
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
|
|
145
|
-
|
|
146
|
-
const
|
|
224
|
+
case m.BarAndLineSplitBy:
|
|
225
|
+
d = t.flatMap((y) => {
|
|
226
|
+
const x = T(e.series), S = V({
|
|
147
227
|
field: o,
|
|
148
|
-
|
|
149
|
-
fieldList:
|
|
228
|
+
row: y,
|
|
229
|
+
fieldList: l,
|
|
230
|
+
formatter: a?.xAxisLabelFormatter
|
|
150
231
|
});
|
|
151
|
-
return
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
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
|
|
161
|
-
|
|
162
|
-
const
|
|
243
|
+
case m.BarAndLineSplitByNoAggregation:
|
|
244
|
+
d = t.map((y) => {
|
|
245
|
+
const x = V({
|
|
163
246
|
field: o,
|
|
164
|
-
|
|
165
|
-
fieldList:
|
|
166
|
-
|
|
247
|
+
row: y,
|
|
248
|
+
fieldList: l,
|
|
249
|
+
formatter: a?.xAxisLabelFormatter
|
|
250
|
+
}), S = Ae(y, s[0], b);
|
|
167
251
|
return {
|
|
168
|
-
[o]:
|
|
169
|
-
[
|
|
170
|
-
[
|
|
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
|
-
|
|
263
|
+
d = t;
|
|
176
264
|
}
|
|
177
|
-
return
|
|
265
|
+
return d;
|
|
178
266
|
}
|
|
179
|
-
function
|
|
180
|
-
if (
|
|
267
|
+
function Se(i) {
|
|
268
|
+
if (i.length === 0)
|
|
181
269
|
return [];
|
|
182
|
-
const e =
|
|
183
|
-
for (const [
|
|
184
|
-
typeof
|
|
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
|
|
188
|
-
const
|
|
189
|
-
for (const [
|
|
190
|
-
if (typeof
|
|
191
|
-
const
|
|
192
|
-
|
|
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
|
|
282
|
+
return r;
|
|
195
283
|
});
|
|
196
284
|
}
|
|
197
|
-
function
|
|
198
|
-
const { config: e, rows: t, layer:
|
|
199
|
-
let f =
|
|
200
|
-
const
|
|
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:
|
|
204
|
-
aggregationType:
|
|
205
|
-
mode:
|
|
206
|
-
layer:
|
|
207
|
-
fieldList:
|
|
208
|
-
}),
|
|
209
|
-
return
|
|
210
|
-
const
|
|
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
|
-
|
|
213
|
-
fieldList:
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
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
|
|
223
|
-
const { rawData: e, keyBase: t = "", outRow:
|
|
224
|
-
for (const [
|
|
225
|
-
const
|
|
226
|
-
|
|
227
|
-
const
|
|
228
|
-
|
|
229
|
-
const
|
|
230
|
-
|
|
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(
|
|
234
|
-
const { rawData: e, outRow: t, config:
|
|
235
|
-
let
|
|
236
|
-
const
|
|
237
|
-
switch (
|
|
238
|
-
case
|
|
239
|
-
const
|
|
240
|
-
field:
|
|
241
|
-
value: e[
|
|
242
|
-
fieldList:
|
|
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[
|
|
353
|
+
t[o] = g, t[p(P.Outlier)] = e[s];
|
|
245
354
|
break;
|
|
246
355
|
}
|
|
247
|
-
case
|
|
248
|
-
t[
|
|
249
|
-
(
|
|
250
|
-
) ?? ""}_${
|
|
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
|
|
254
|
-
case
|
|
255
|
-
const
|
|
256
|
-
|
|
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
|
|
260
|
-
const
|
|
261
|
-
|
|
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
|
|
265
|
-
case
|
|
373
|
+
case m.BoxPlotMonoField:
|
|
374
|
+
case m.BoxPlotMultiFields:
|
|
266
375
|
default: {
|
|
267
|
-
t.Field = e[
|
|
376
|
+
t.Field = e[A], t[p(P.Outlier)] = e[s];
|
|
268
377
|
break;
|
|
269
378
|
}
|
|
270
379
|
}
|
|
271
|
-
const
|
|
272
|
-
|
|
380
|
+
const b = `${s}${_}`, F = e[b];
|
|
381
|
+
F !== void 0 && (t[`${p(P.Outlier)} Z-Score`] = F);
|
|
273
382
|
}
|
|
274
|
-
function
|
|
275
|
-
const { rawData: e, outRow: t, config:
|
|
276
|
-
let
|
|
277
|
-
switch (
|
|
278
|
-
case
|
|
279
|
-
|
|
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
|
|
283
|
-
|
|
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
|
|
287
|
-
|
|
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[
|
|
292
|
-
const
|
|
293
|
-
|
|
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
|
|
296
|
-
const { config: e, rows: t, fieldList: l } =
|
|
297
|
-
let o =
|
|
298
|
-
const
|
|
299
|
-
|
|
300
|
-
const
|
|
301
|
-
let
|
|
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
|
|
304
|
-
case
|
|
305
|
-
|
|
306
|
-
const
|
|
307
|
-
if (
|
|
308
|
-
M({ rawData:
|
|
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 ===
|
|
311
|
-
const
|
|
312
|
-
field:
|
|
313
|
-
|
|
314
|
-
fieldList:
|
|
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
|
-
|
|
317
|
-
} else o ===
|
|
318
|
-
|
|
426
|
+
u[s] = d;
|
|
427
|
+
} else o === m.BoxPlotMonoField && (u.Field = n[h]);
|
|
428
|
+
w({ rawData: n, outRow: u });
|
|
319
429
|
}
|
|
320
|
-
return
|
|
430
|
+
return u;
|
|
321
431
|
});
|
|
322
432
|
break;
|
|
323
433
|
}
|
|
324
|
-
case
|
|
325
|
-
|
|
326
|
-
const
|
|
327
|
-
return
|
|
328
|
-
rawData:
|
|
329
|
-
outRow:
|
|
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
|
-
}) : (
|
|
442
|
+
}) : (u.Field = n[h], w({ rawData: n, outRow: u })), [u];
|
|
333
443
|
});
|
|
334
444
|
break;
|
|
335
445
|
}
|
|
336
|
-
case
|
|
337
|
-
|
|
338
|
-
(
|
|
339
|
-
const
|
|
340
|
-
let
|
|
341
|
-
if (
|
|
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:
|
|
344
|
-
outRow:
|
|
453
|
+
rawData: n,
|
|
454
|
+
outRow: d,
|
|
345
455
|
config: e,
|
|
346
456
|
boxPlotSubType: o
|
|
347
457
|
});
|
|
348
458
|
else {
|
|
349
|
-
if (o ===
|
|
350
|
-
const
|
|
351
|
-
field:
|
|
352
|
-
|
|
353
|
-
fieldList:
|
|
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
|
-
|
|
466
|
+
d[s] = x, y = `${u}_`;
|
|
356
467
|
}
|
|
357
|
-
|
|
468
|
+
w({ rawData: n, outRow: d, keyBase: y });
|
|
358
469
|
}
|
|
359
|
-
return
|
|
470
|
+
return d;
|
|
360
471
|
})
|
|
361
472
|
);
|
|
362
473
|
break;
|
|
363
474
|
}
|
|
364
|
-
case
|
|
365
|
-
case
|
|
366
|
-
case
|
|
367
|
-
|
|
368
|
-
if (
|
|
369
|
-
const
|
|
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:
|
|
372
|
-
outRow:
|
|
482
|
+
rawData: n,
|
|
483
|
+
outRow: u,
|
|
373
484
|
config: e,
|
|
374
485
|
boxPlotSubType: o
|
|
375
|
-
}), [
|
|
376
|
-
} else return
|
|
377
|
-
const
|
|
378
|
-
return
|
|
379
|
-
rawData:
|
|
380
|
-
outRow:
|
|
381
|
-
splitByValue:
|
|
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
|
-
}),
|
|
384
|
-
}) :
|
|
385
|
-
const
|
|
386
|
-
if (o ===
|
|
387
|
-
const
|
|
388
|
-
field:
|
|
389
|
-
|
|
390
|
-
fieldList:
|
|
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
|
-
|
|
504
|
+
d[s] = y;
|
|
393
505
|
}
|
|
394
|
-
return
|
|
395
|
-
rawData:
|
|
396
|
-
outRow:
|
|
506
|
+
return n[D.boxPlot.boxPlotOutlierId] ? M({
|
|
507
|
+
rawData: n,
|
|
508
|
+
outRow: d,
|
|
397
509
|
config: e,
|
|
398
510
|
boxPlotSubType: o
|
|
399
|
-
}) : (
|
|
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
|
-
|
|
517
|
+
g = t;
|
|
406
518
|
}
|
|
407
|
-
return
|
|
519
|
+
return g;
|
|
408
520
|
}
|
|
409
|
-
const
|
|
521
|
+
const Z = (i) => {
|
|
410
522
|
let e = !1;
|
|
411
|
-
return (typeof
|
|
412
|
-
},
|
|
413
|
-
const { field: e, value: t, fieldList:
|
|
414
|
-
let
|
|
415
|
-
const
|
|
416
|
-
if (
|
|
417
|
-
const
|
|
418
|
-
|
|
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
|
|
532
|
+
return l;
|
|
421
533
|
};
|
|
422
|
-
function
|
|
423
|
-
const
|
|
424
|
-
return `${
|
|
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
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
539
|
+
ye as a,
|
|
540
|
+
je as b,
|
|
541
|
+
ze as g,
|
|
542
|
+
Ne as h,
|
|
543
|
+
_e as t
|
|
432
544
|
};
|