@ivandt/importer 1.3.5 → 1.3.6
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/{bg.min--IvHjSBa.cjs → bg.min-BNn8SLvE.cjs} +1 -1
- package/dist/{bg.min-Ci2J4kVv.js → bg.min-aHnLPt03.js} +1 -1
- package/dist/{cs-CZ.min-D9tKj9a2.js → cs-CZ.min-B1fydfQa.js} +1 -1
- package/dist/{cs-CZ.min-BByszzkO.cjs → cs-CZ.min-KegifoDI.cjs} +1 -1
- package/dist/{da-DK.min-BhE2B-at.js → da-DK.min-BhcfeBq5.js} +1 -1
- package/dist/{da-DK.min-BfcUmPjR.cjs → da-DK.min-TD_63M7w.cjs} +1 -1
- package/dist/{de-AT.min-4XnsqdzL.cjs → de-AT.min-DSrDAep6.cjs} +1 -1
- package/dist/{de-AT.min-Dez4Rb2N.js → de-AT.min-DYrZ-e6U.js} +1 -1
- package/dist/{de-CH.min-YbOL2y8i.js → de-CH.min-BufIhdeY.js} +1 -1
- package/dist/{de-CH.min-Clo921k-.cjs → de-CH.min-DrVWg93Z.cjs} +1 -1
- package/dist/{de-DE.min-eKOzDuBf.js → de-DE.min-BpfHjRKM.js} +1 -1
- package/dist/{de-DE.min-DJXTmXkF.cjs → de-DE.min-Bq5DwTcq.cjs} +1 -1
- package/dist/{de-LI.min-C2W52rpP.js → de-LI.min-CODTCNdO.js} +1 -1
- package/dist/{de-LI.min-DU-xFVGD.cjs → de-LI.min-D39vEVJv.cjs} +1 -1
- package/dist/{el.min-DiwmKu_F.js → el.min-BhKU1EMz.js} +1 -1
- package/dist/{el.min-CBmATLfm.cjs → el.min-CDIubxH9.cjs} +1 -1
- package/dist/{en-AU.min-CAbL9AqI.cjs → en-AU.min-CxDYf2nc.cjs} +1 -1
- package/dist/{en-AU.min-DkXGcQ-k.js → en-AU.min-D3MIlA5n.js} +1 -1
- package/dist/{en-GB.min-CAKD0PA9.js → en-GB.min-DKYAbj7M.js} +1 -1
- package/dist/{en-GB.min-Dw1emtLY.cjs → en-GB.min-DZueSU4G.cjs} +1 -1
- package/dist/{en-IE.min-BLQlAgj6.js → en-IE.min-CgcW9hLw.js} +1 -1
- package/dist/{en-IE.min-Bi7yZJc7.cjs → en-IE.min-Da6B8XJy.cjs} +1 -1
- package/dist/{en-NZ.min-BKJ7Hudh.cjs → en-NZ.min-C_-KktOX.cjs} +1 -1
- package/dist/{en-NZ.min-CA4vX-sV.js → en-NZ.min-tmjsYIZG.js} +1 -1
- package/dist/{en-ZA.min-Dd2mz0B8.cjs → en-ZA.min-Cip8wP5h.cjs} +1 -1
- package/dist/{en-ZA.min-lUaJGC5y.js → en-ZA.min-Cmx-WDQ1.js} +1 -1
- package/dist/{es-AR.min-BzKMlGUz.cjs → es-AR.min-CgnADxmt.cjs} +1 -1
- package/dist/{es-AR.min-RI83Nv0N.js → es-AR.min-Dj-6J5he.js} +1 -1
- package/dist/{es-CL.min-Bez6mQYz.js → es-CL.min-CD7ppe6l.js} +1 -1
- package/dist/{es-CL.min-BYlEB9gG.cjs → es-CL.min-DBFRz65r.cjs} +1 -1
- package/dist/{es-CO.min-DtyfKPxw.cjs → es-CO.min-BaRBmTrx.cjs} +1 -1
- package/dist/{es-CO.min-aauNdMsw.js → es-CO.min-CaDA_smb.js} +1 -1
- package/dist/{es-CR.min-BM_t6sLe.js → es-CR.min-CO6BGES1.js} +1 -1
- package/dist/{es-CR.min-_bjykPCt.cjs → es-CR.min-CyPwkcDC.cjs} +1 -1
- package/dist/{es-ES.min-7TrTtXbY.js → es-ES.min-Bh4EFRKW.js} +1 -1
- package/dist/{es-ES.min-CxRAetRS.cjs → es-ES.min-S1YZe8_Z.cjs} +1 -1
- package/dist/{es-MX.min-BSrNP6vN.cjs → es-MX.min-BUPJ87Qy.cjs} +1 -1
- package/dist/{es-MX.min-BM_tbJdA.js → es-MX.min-BpjLXpaT.js} +1 -1
- package/dist/{es-NI.min-Bhta4Nbw.cjs → es-NI.min-BfdMDwvR.cjs} +1 -1
- package/dist/{es-NI.min-zUTmFCcS.js → es-NI.min-DzDYB-gA.js} +1 -1
- package/dist/{es-PE.min-BHFXU2FR.cjs → es-PE.min-CYbZv5GM.cjs} +1 -1
- package/dist/{es-PE.min-BIC2T9-v.js → es-PE.min-Cq93wT94.js} +1 -1
- package/dist/{es-PR.min-Cz-8bkVF.js → es-PR.min-DstPxe7Y.js} +1 -1
- package/dist/{es-PR.min-CaVIWW8A.cjs → es-PR.min-ytseZ8uF.cjs} +1 -1
- package/dist/{es-SV.min-Xt7UFIZQ.js → es-SV.min-Bmy2FW33.js} +1 -1
- package/dist/{es-SV.min-0YioQBtb.cjs → es-SV.min-DVJYFIBv.cjs} +1 -1
- package/dist/{et-EE.min-DAxjInMU.js → et-EE.min-BobwtaWK.js} +1 -1
- package/dist/{et-EE.min-hldHvsxX.cjs → et-EE.min-C0LN9FYL.cjs} +1 -1
- package/dist/{fa-IR.min-_SjFGrAe.js → fa-IR.min-CXmLdxUF.js} +1 -1
- package/dist/{fa-IR.min-DA3NykXr.cjs → fa-IR.min-n557Ue_G.cjs} +1 -1
- package/dist/{fi-FI.min-Cabyi2g8.js → fi-FI.min-C3-esdv_.js} +1 -1
- package/dist/{fi-FI.min-BcVCFc-I.cjs → fi-FI.min-CPTRwYvW.cjs} +1 -1
- package/dist/{fil-PH.min-HKox2sAn.cjs → fil-PH.min--G8fSPGS.cjs} +1 -1
- package/dist/{fil-PH.min-CGSH91A6.js → fil-PH.min-CBBMoaGU.js} +1 -1
- package/dist/{fr-CA.min-BI3-jNWc.cjs → fr-CA.min-C8SxGHQz.cjs} +1 -1
- package/dist/{fr-CA.min-KIEfd_d5.js → fr-CA.min-M0W3bHQH.js} +1 -1
- package/dist/{fr-CH.min-B1K7ic_k.cjs → fr-CH.min-CJQVLjLG.cjs} +1 -1
- package/dist/{fr-CH.min-Dm-IHAfl.js → fr-CH.min-DvXnOzOi.js} +1 -1
- package/dist/{fr-FR.min-ocUftUXl.cjs → fr-FR.min-8K9gmfkl.cjs} +1 -1
- package/dist/{fr-FR.min-BGI_fcTa.js → fr-FR.min-Diihpq6w.js} +1 -1
- package/dist/{he-IL.min-CaD69TTo.cjs → he-IL.min-Cpw8QQCd.cjs} +1 -1
- package/dist/{he-IL.min-BTfUMWnn.js → he-IL.min-D_efQhmD.js} +1 -1
- package/dist/{hu-HU.min-BL4ZdtLz.js → hu-HU.min-BjSkzLEt.js} +1 -1
- package/dist/{hu-HU.min-BMcaLxkX.cjs → hu-HU.min-DxKxw84M.cjs} +1 -1
- package/dist/{id.min-DFGEouzP.js → id.min-B0pEQoJa.js} +1 -1
- package/dist/{id.min-ChHreFFC.cjs → id.min-C5DPT_Qh.cjs} +1 -1
- package/dist/{importer-C6lkqH0O.js → importer-CL388OXd.js} +13564 -13591
- package/dist/{importer-DTdYVSik.cjs → importer-Cs_2Fwe9.cjs} +187 -187
- package/dist/importer.cjs.js +1 -1
- package/dist/importer.es.js +1 -1
- package/dist/{index-DH5NRTBr.js → index-BoIinG00.js} +49 -17
- package/dist/index-CaghcyIb.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{it-CH.min-DTQyE2_8.cjs → it-CH.min-CIQyKXmn.cjs} +1 -1
- package/dist/{it-CH.min-DTzDYopE.js → it-CH.min-DS8hjsh3.js} +1 -1
- package/dist/{it-IT.min-B4ByL3IL.cjs → it-IT.min-BSPyGSPL.cjs} +1 -1
- package/dist/{it-IT.min-CsMljAFD.js → it-IT.min-Ygbgczex.js} +1 -1
- package/dist/{ja-JP.min-CMNenY83.cjs → ja-JP.min-BTg6j7BF.cjs} +1 -1
- package/dist/{ja-JP.min-B_h2b9Bz.js → ja-JP.min-l3bUsGhj.js} +1 -1
- package/dist/{ko-KR.min-XcXcybin.cjs → ko-KR.min-BguH99Io.cjs} +1 -1
- package/dist/{ko-KR.min-Bj0niq9G.js → ko-KR.min-CGQZD3Dk.js} +1 -1
- package/dist/{lv-LV.min-ChQf4TLD.js → lv-LV.min-CWtoyUXC.js} +1 -1
- package/dist/{lv-LV.min-B0Fao9no.cjs → lv-LV.min-Ddv-OfCb.cjs} +1 -1
- package/dist/{nb-NO.min-DKUjdvmc.cjs → nb-NO.min-Byxe_TP4.cjs} +1 -1
- package/dist/{nb-NO.min-CitwSZkD.js → nb-NO.min-DGuGIf6Z.js} +1 -1
- package/dist/{nb.min-B_R3LhfC.cjs → nb.min-B8Q1tQGO.cjs} +1 -1
- package/dist/{nb.min-ke7xNXay.js → nb.min-BFQiNONy.js} +1 -1
- package/dist/{nl-BE.min-CuGzzt3D.cjs → nl-BE.min-B-wm_6qe.cjs} +1 -1
- package/dist/{nl-BE.min-DWCAli_3.js → nl-BE.min-CoexapUM.js} +1 -1
- package/dist/{nl-NL.min-97xspNz7.cjs → nl-NL.min-DScdrIfy.cjs} +1 -1
- package/dist/{nl-NL.min-C6t0bq9Z.js → nl-NL.min-DrclCix0.js} +1 -1
- package/dist/{nn.min-Dc20hONu.js → nn.min-B8s_XKWm.js} +1 -1
- package/dist/{nn.min-BAJYn7pq.cjs → nn.min-CDT2ulQ9.cjs} +1 -1
- package/dist/{pl-PL.min-y83PIS65.cjs → pl-PL.min-BknAfAJ0.cjs} +1 -1
- package/dist/{pl-PL.min-D-minXMK.js → pl-PL.min-DItG3N2g.js} +1 -1
- package/dist/{pt-BR.min-9sRFcpbB.cjs → pt-BR.min-55hjntgw.cjs} +1 -1
- package/dist/{pt-BR.min-ok_l1TdS.js → pt-BR.min-CWIx6_Wg.js} +1 -1
- package/dist/{pt-PT.min-D4iPtNHp.cjs → pt-PT.min-BZLflHZH.cjs} +1 -1
- package/dist/{pt-PT.min-BCs70AK-.js → pt-PT.min-DzWmtU8C.js} +1 -1
- package/dist/{ro-RO.min-CSBkwJRw.js → ro-RO.min-B2xgQbS7.js} +1 -1
- package/dist/{ro-RO.min-DxebRHZT.cjs → ro-RO.min-rg6-wXka.cjs} +1 -1
- package/dist/{ro.min-CSBkwJRw.js → ro.min-B2xgQbS7.js} +1 -1
- package/dist/{ro.min-o4NQzwB2.cjs → ro.min-DBjz529U.cjs} +1 -1
- package/dist/{ru-RU.min-auTgwvGo.js → ru-RU.min-DhA22laX.js} +1 -1
- package/dist/{ru-RU.min-WQjGH_N2.cjs → ru-RU.min-y6sIgNof.cjs} +1 -1
- package/dist/{ru-UA.min-9ffTRGL0.js → ru-UA.min-DPgTSrF3.js} +1 -1
- package/dist/{ru-UA.min-GpnhE7f-.cjs → ru-UA.min-DVwzEWzG.cjs} +1 -1
- package/dist/{sk-SK.min-D14Uxrv4.js → sk-SK.min-BWl1c1bO.js} +1 -1
- package/dist/{sk-SK.min-XS3_y3aI.cjs → sk-SK.min-DBHB00xq.cjs} +1 -1
- package/dist/{sl.min-BVRn7r9t.cjs → sl.min-CdjBQ5De.cjs} +1 -1
- package/dist/{sl.min-3vu-eFpR.js → sl.min-DBj7OYUM.js} +1 -1
- package/dist/{sr-Cyrl-RS.min-DNsU4r-1.cjs → sr-Cyrl-RS.min-A6Flp2OW.cjs} +1 -1
- package/dist/{sr-Cyrl-RS.min-Dxwk1FsZ.js → sr-Cyrl-RS.min-DIxOIeRn.js} +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/lib/types/schema.types.d.ts +3 -3
- package/dist/src/lib/utils/mappers/numbroLanguages.d.ts +4 -63
- package/dist/{sv-SE.min-D3fvhgY5.js → sv-SE.min-UTjLm_Ki.js} +1 -1
- package/dist/{sv-SE.min-FxZGRxTC.cjs → sv-SE.min-qwRFRjQF.cjs} +1 -1
- package/dist/{th-TH.min-OC8DlRoh.cjs → th-TH.min-CCS4fv-T.cjs} +1 -1
- package/dist/{th-TH.min-DP5R_Z6M.js → th-TH.min-XM7JcGEB.js} +1 -1
- package/dist/{tr-TR.min-DHw1oVew.cjs → tr-TR.min-BQONcT-P.cjs} +1 -1
- package/dist/{tr-TR.min--bPcTjHy.js → tr-TR.min-DFf3jsBv.js} +1 -1
- package/dist/{uk-UA.min-d2uZhWnF.cjs → uk-UA.min-C2IhzRLX.cjs} +1 -1
- package/dist/{uk-UA.min-D8NWTX_T.js → uk-UA.min-CQAeBZpb.js} +1 -1
- package/dist/{zh-CN.min-CbnaV6Ej.js → zh-CN.min-C8Rz0UaJ.js} +1 -1
- package/dist/{zh-CN.min-CEO8qAix.cjs → zh-CN.min-CT0YJpZ-.cjs} +1 -1
- package/dist/{zh-MO.min-Bhecv1Ae.cjs → zh-MO.min-BH1yL03J.cjs} +1 -1
- package/dist/{zh-MO.min-CeQNquTC.js → zh-MO.min-CXLy9Ko2.js} +1 -1
- package/dist/{zh-SG.min-bnqCL6bz.cjs → zh-SG.min-BSfY67dU.cjs} +1 -1
- package/dist/{zh-SG.min-BBzkwhbR.js → zh-SG.min-Dxt68xAZ.js} +1 -1
- package/dist/{zh-TW.min-Dq25SFd6.cjs → zh-TW.min-BxOlhEDL.cjs} +1 -1
- package/dist/{zh-TW.min-Bcq6W-Dg.js → zh-TW.min-CPJIMTzR.js} +1 -1
- package/package.json +1 -1
- package/dist/index-B3OHe08v.cjs +0 -1
package/dist/importer.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("./importer-
|
|
1
|
+
"use strict";require("./importer-Cs_2Fwe9.cjs");
|
package/dist/importer.es.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import "./importer-
|
|
1
|
+
import "./importer-CL388OXd.js";
|
|
@@ -1,7 +1,35 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
1
|
+
const t = [];
|
|
2
|
+
for (let e = 0; e < 256; ++e)
|
|
3
|
+
t.push((e + 256).toString(16).slice(1));
|
|
4
|
+
function d(e, a = 0) {
|
|
5
|
+
return (t[e[a + 0]] + t[e[a + 1]] + t[e[a + 2]] + t[e[a + 3]] + "-" + t[e[a + 4]] + t[e[a + 5]] + "-" + t[e[a + 6]] + t[e[a + 7]] + "-" + t[e[a + 8]] + t[e[a + 9]] + "-" + t[e[a + 10]] + t[e[a + 11]] + t[e[a + 12]] + t[e[a + 13]] + t[e[a + 14]] + t[e[a + 15]]).toLowerCase();
|
|
6
|
+
}
|
|
7
|
+
let s;
|
|
8
|
+
const c = new Uint8Array(16);
|
|
9
|
+
function m() {
|
|
10
|
+
if (!s) {
|
|
11
|
+
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
12
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
13
|
+
s = crypto.getRandomValues.bind(crypto);
|
|
14
|
+
}
|
|
15
|
+
return s(c);
|
|
16
|
+
}
|
|
17
|
+
const p = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), i = { randomUUID: p };
|
|
18
|
+
function l(e, a, r) {
|
|
19
|
+
var o;
|
|
20
|
+
if (i.randomUUID && !e)
|
|
21
|
+
return i.randomUUID();
|
|
22
|
+
e = e || {};
|
|
23
|
+
const n = e.random ?? ((o = e.rng) == null ? void 0 : o.call(e)) ?? m();
|
|
24
|
+
if (n.length < 16)
|
|
25
|
+
throw new Error("Random bytes length must be >= 16");
|
|
26
|
+
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, d(n);
|
|
27
|
+
}
|
|
28
|
+
const x = "https://api.ivandt.com/api", v = "__static_options_", h = "__dynamic_options_", y = "__static_enum_", g = "__dynamic_enum_", w = {
|
|
29
|
+
id: l(),
|
|
3
30
|
title: "Default Schema Name",
|
|
4
31
|
apiKey: "",
|
|
32
|
+
locale: "English (Australia)",
|
|
5
33
|
initialData: void 0,
|
|
6
34
|
initialFile: void 0,
|
|
7
35
|
environment: "local",
|
|
@@ -13,7 +41,7 @@ const n = "https://api.ivandt.com/api", l = "__static_options_", r = "__dynamic_
|
|
|
13
41
|
supportedExtensions: ["xlsx", "xls", "json", "csv", "txt"],
|
|
14
42
|
maxColumns: 10,
|
|
15
43
|
maxRows: 1e5,
|
|
16
|
-
maxFileSize:
|
|
44
|
+
maxFileSize: 20 * 1024 * 1024,
|
|
17
45
|
//20mb,
|
|
18
46
|
dataEntryMethod: "manual_and_upload"
|
|
19
47
|
},
|
|
@@ -52,9 +80,10 @@ const n = "https://api.ivandt.com/api", l = "__static_options_", r = "__dynamic_
|
|
|
52
80
|
// beforeHeaderMapping
|
|
53
81
|
// afterHeaderMapping,
|
|
54
82
|
}
|
|
55
|
-
},
|
|
56
|
-
id:
|
|
83
|
+
}, f = {
|
|
84
|
+
id: l(),
|
|
57
85
|
title: "Default Schema Name",
|
|
86
|
+
locale: "English (Australia)",
|
|
58
87
|
apiKey: "",
|
|
59
88
|
initialData: void 0,
|
|
60
89
|
initialFile: void 0,
|
|
@@ -93,7 +122,7 @@ const n = "https://api.ivandt.com/api", l = "__static_options_", r = "__dynamic_
|
|
|
93
122
|
maxPerWorkerTransformationRows: 1e4
|
|
94
123
|
},
|
|
95
124
|
eventHandlers: {}
|
|
96
|
-
},
|
|
125
|
+
}, S = {
|
|
97
126
|
No: !1,
|
|
98
127
|
no: !1,
|
|
99
128
|
NO: !1,
|
|
@@ -101,17 +130,20 @@ const n = "https://api.ivandt.com/api", l = "__static_options_", r = "__dynamic_
|
|
|
101
130
|
yes: !0,
|
|
102
131
|
YES: !0
|
|
103
132
|
};
|
|
104
|
-
function
|
|
105
|
-
return
|
|
133
|
+
function _(e) {
|
|
134
|
+
return e ? e.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").split(/[^A-Za-z0-9]+/g).filter(Boolean).map((o, u) => u === 0 ? o.toLowerCase() : o[0].toUpperCase() + o.slice(1).toLowerCase()).join("") : "";
|
|
106
135
|
}
|
|
107
136
|
export {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
137
|
+
v as a,
|
|
138
|
+
h as b,
|
|
139
|
+
S as c,
|
|
140
|
+
w as d,
|
|
141
|
+
g as e,
|
|
142
|
+
x as f,
|
|
143
|
+
_ as g,
|
|
144
|
+
f as h,
|
|
145
|
+
m as r,
|
|
146
|
+
y as s,
|
|
147
|
+
d as u,
|
|
148
|
+
l as v
|
|
117
149
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=[];for(let e=0;e<256;++e)t.push((e+256).toString(16).slice(1));function l(e,a=0){return(t[e[a+0]]+t[e[a+1]]+t[e[a+2]]+t[e[a+3]]+"-"+t[e[a+4]]+t[e[a+5]]+"-"+t[e[a+6]]+t[e[a+7]]+"-"+t[e[a+8]]+t[e[a+9]]+"-"+t[e[a+10]]+t[e[a+11]]+t[e[a+12]]+t[e[a+13]]+t[e[a+14]]+t[e[a+15]]).toLowerCase()}let i;const m=new Uint8Array(16);function u(){if(!i){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");i=crypto.getRandomValues.bind(crypto)}return i(m)}const p=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),r={randomUUID:p};function s(e,a,d){var o;if(r.randomUUID&&!e)return r.randomUUID();e=e||{};const n=e.random??((o=e.rng)==null?void 0:o.call(e))??u();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,l(n)}const x="https://api.ivandt.com/api",v="__static_options_",y="__dynamic_options_",f="__static_enum_",h="__dynamic_enum_",g={id:s(),title:"Default Schema Name",apiKey:"",locale:"English (Australia)",initialData:void 0,initialFile:void 0,environment:"local",browserExcelParsing:!0,dataSources:{},fields:[],stepsConfig:{uploadFileStep:{supportedExtensions:["xlsx","xls","json","csv","txt"],maxColumns:10,maxRows:1e5,maxFileSize:20*1024*1024,dataEntryMethod:"manual_and_upload"},mapHeadersStep:{passThroughExcessColumns:!1,autoMapHeaders:!0,unMatchedHeadersBehaviour:"block",intelligentImport:!0},reviewStep:{invalidDataBehaviour:"block_submit",includeValidationMetadata:!1,includeOriginalData:!1,allowSubmitCancel:!1,allowCustomColumn:!1,storeInServer:!0}},advanced:{maxInMemoryValidationRows:500,maxPerWorkerValidationRows:1e4,maxInMemoryTransformationRows:500,maxPerWorkerTransformationRows:1e4},eventHandlers:{}},w={id:s(),title:"Default Schema Name",locale:"English (Australia)",apiKey:"",initialData:void 0,initialFile:void 0,environment:"local",browserExcelParsing:!0,dataSources:{},fields:[],stepsConfig:{uploadFileStep:{supportedExtensions:["xlsx","xls","json","csv","txt"],maxColumns:10,maxRows:1e5,maxFileSize:20*1024*1024,dataEntryMethod:"manual_and_upload"},mapHeadersStep:{passThroughExcessColumns:!1,autoMapHeaders:!0,unMatchedHeadersBehaviour:"block",intelligentImport:!0},reviewStep:{invalidDataBehaviour:"block_submit",includeValidationMetadata:!1,includeOriginalData:!1,allowCustomColumn:!1,allowSubmitCancel:!1,storeInServer:!0}},advanced:{maxInMemoryValidationRows:500,maxPerWorkerValidationRows:1e4,maxInMemoryTransformationRows:500,maxPerWorkerTransformationRows:1e4},eventHandlers:{}},S={No:!1,no:!1,NO:!1,Yes:!0,yes:!0,YES:!0};function D(e){return e?e.normalize("NFKD").replace(/[\u0300-\u036f]/g,"").replace(/([a-z0-9])([A-Z])/g,"$1 $2").split(/[^A-Za-z0-9]+/g).filter(Boolean).map((o,c)=>c===0?o.toLowerCase():o[0].toUpperCase()+o.slice(1).toLowerCase()).join(""):""}exports.baseUrl=x;exports.checkboxDefaultMapToEnums=S;exports.createFieldKey=D;exports.defaultInternalSchema=g;exports.defaultSchema=w;exports.dynamicEnumsResolverDsPrefix=h;exports.dynamicOptionsResolverDsPrefix=y;exports.rng=u;exports.staticEnumsResolverDsPrefix=f;exports.staticOptionsResolverDsPrefix=v;exports.unsafeStringify=l;exports.v4=s;
|
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CaghcyIb.cjs");exports.createFieldKey=e.createFieldKey;exports.defaultSchema=e.defaultSchema;
|
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const l=require("./importer-
|
|
1
|
+
"use strict";const l=require("./importer-Cs_2Fwe9.cjs");function c(r,o){for(var e=0;e<o.length;e++){const t=o[e];if(typeof t!="string"&&!Array.isArray(t)){for(const n in t)if(n!=="default"&&!(n in r)){const u=Object.getOwnPropertyDescriptor(t,n);u&&Object.defineProperty(r,n,u.get?u:{enumerable:!0,get:()=>t[n]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var i={exports:{}},f=i.exports,a;function m(){return a||(a=1,function(r,o){(function(e,t){r.exports=t()})(f,function(){function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}/*!
|
|
2
2
|
* numbro.js language configuration
|
|
3
3
|
* language : Italian
|
|
4
4
|
* locale: Switzerland
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("./importer-
|
|
1
|
+
"use strict";const c=require("./importer-Cs_2Fwe9.cjs");function l(r,o){for(var e=0;e<o.length;e++){const t=o[e];if(typeof t!="string"&&!Array.isArray(t)){for(const a in t)if(a!=="default"&&!(a in r)){const i=Object.getOwnPropertyDescriptor(t,a);i&&Object.defineProperty(r,a,i.get?i:{enumerable:!0,get:()=>t[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var n={exports:{}},p=n.exports,u;function d(){return u||(u=1,function(r,o){(function(e,t){r.exports=t()})(p,function(){function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}/*!
|
|
2
2
|
* numbro.js language configuration
|
|
3
3
|
* language : Italian
|
|
4
4
|
* locale: Italy
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("./importer-
|
|
1
|
+
"use strict";const c=require("./importer-Cs_2Fwe9.cjs");function l(r,o){for(var t=0;t<o.length;t++){const e=o[t];if(typeof e!="string"&&!Array.isArray(e)){for(const a in e)if(a!=="default"&&!(a in r)){const i=Object.getOwnPropertyDescriptor(e,a);i&&Object.defineProperty(r,a,i.get?i:{enumerable:!0,get:()=>e[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var n={exports:{}},p=n.exports,u;function f(){return u||(u=1,function(r,o){(function(t,e){r.exports=e()})(p,function(){function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*!
|
|
2
2
|
* numbro.js language configuration
|
|
3
3
|
* language : Japanese
|
|
4
4
|
* locale: Japan
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("./importer-
|
|
1
|
+
"use strict";const c=require("./importer-Cs_2Fwe9.cjs");function l(t,i){for(var r=0;r<i.length;r++){const e=i[r];if(typeof e!="string"&&!Array.isArray(e)){for(const o in e)if(o!=="default"&&!(o in t)){const u=Object.getOwnPropertyDescriptor(e,o);u&&Object.defineProperty(t,o,u.get?u:{enumerable:!0,get:()=>e[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var n={exports:{}},f=n.exports,s;function p(){return s||(s=1,function(t,i){(function(r,e){t.exports=e()})(f,function(){function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*!
|
|
2
2
|
* numbro.js language configuration
|
|
3
3
|
* language : Korean
|
|
4
4
|
* author (numbro.js Version): Randy Wilander : https://github.com/rocketedaway
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const l=require("./importer-
|
|
1
|
+
"use strict";const l=require("./importer-Cs_2Fwe9.cjs");function c(r,o){for(var t=0;t<o.length;t++){const e=o[t];if(typeof e!="string"&&!Array.isArray(e)){for(const a in e)if(a!=="default"&&!(a in r)){const u=Object.getOwnPropertyDescriptor(e,a);u&&Object.defineProperty(r,a,u.get?u:{enumerable:!0,get:()=>e[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var n={exports:{}},p=n.exports,i;function d(){return i||(i=1,function(r,o){(function(t,e){r.exports=e()})(p,function(){function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*!
|
|
2
2
|
* numbro.js language configuration
|
|
3
3
|
* language : Latvian
|
|
4
4
|
* locale: Latvia
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("./importer-
|
|
1
|
+
"use strict";const c=require("./importer-Cs_2Fwe9.cjs");function l(r,o){for(var t=0;t<o.length;t++){const e=o[t];if(typeof e!="string"&&!Array.isArray(e)){for(const a in e)if(a!=="default"&&!(a in r)){const u=Object.getOwnPropertyDescriptor(e,a);u&&Object.defineProperty(r,a,u.get?u:{enumerable:!0,get:()=>e[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var n={exports:{}},p=n.exports,i;function d(){return i||(i=1,function(r,o){(function(t,e){r.exports=e()})(p,function(){function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*!
|
|
2
2
|
* numbro.js language configuration
|
|
3
3
|
* language: Norwegian Bokmål
|
|
4
4
|
* locale: Norway
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const l=require("./importer-
|
|
1
|
+
"use strict";const l=require("./importer-Cs_2Fwe9.cjs");function c(t,i){for(var r=0;r<i.length;r++){const e=i[r];if(typeof e!="string"&&!Array.isArray(e)){for(const n in e)if(n!=="default"&&!(n in t)){const u=Object.getOwnPropertyDescriptor(e,n);u&&Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:()=>e[n]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var o={exports:{}},f=o.exports,a;function b(){return a||(a=1,function(t,i){(function(r,e){t.exports=e()})(f,function(){function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*!
|
|
2
2
|
* numbro.js language configuration
|
|
3
3
|
* language : Norwegian Bokmål (nb)
|
|
4
4
|
* author : Tim McIntosh (StayinFront NZ)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const l=require("./importer-
|
|
1
|
+
"use strict";const l=require("./importer-Cs_2Fwe9.cjs");function c(n,o){for(var r=0;r<o.length;r++){const e=o[r];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in n)){const u=Object.getOwnPropertyDescriptor(e,t);u&&Object.defineProperty(n,t,u.get?u:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var a={exports:{}},p=a.exports,i;function d(){return i||(i=1,function(n,o){(function(r,e){n.exports=e()})(p,function(){function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*!
|
|
2
2
|
* numbro.js language configuration
|
|
3
3
|
* language : Dutch
|
|
4
4
|
* locale: Belgium
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const l=require("./importer-
|
|
1
|
+
"use strict";const l=require("./importer-Cs_2Fwe9.cjs");function c(n,o){for(var r=0;r<o.length;r++){const e=o[r];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in n)){const u=Object.getOwnPropertyDescriptor(e,t);u&&Object.defineProperty(n,t,u.get?u:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var a={exports:{}},p=a.exports,i;function d(){return i||(i=1,function(n,o){(function(r,e){n.exports=e()})(p,function(){function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*!
|
|
2
2
|
* numbro.js language configuration
|
|
3
3
|
* language : Dutch
|
|
4
4
|
* locale: Netherlands
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const l=require("./importer-
|
|
1
|
+
"use strict";const l=require("./importer-Cs_2Fwe9.cjs");function c(r,i){for(var e=0;e<i.length;e++){const n=i[e];if(typeof n!="string"&&!Array.isArray(n)){for(const t in n)if(t!=="default"&&!(t in r)){const u=Object.getOwnPropertyDescriptor(n,t);u&&Object.defineProperty(r,t,u.get?u:{enumerable:!0,get:()=>n[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var o={exports:{}},f=o.exports,a;function m(){return a||(a=1,function(r,i){(function(e,n){r.exports=n()})(f,function(){function e(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}/*!
|
|
2
2
|
* numbro.js language configuration
|
|
3
3
|
* language : Norwegian Nynorsk (nn)
|
|
4
4
|
* author : Tim McIntosh (StayinFront NZ)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const l=require("./importer-
|
|
1
|
+
"use strict";const l=require("./importer-Cs_2Fwe9.cjs");function p(r,o){for(var t=0;t<o.length;t++){const e=o[t];if(typeof e!="string"&&!Array.isArray(e)){for(const a in e)if(a!=="default"&&!(a in r)){const u=Object.getOwnPropertyDescriptor(e,a);u&&Object.defineProperty(r,a,u.get?u:{enumerable:!0,get:()=>e[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var n={exports:{}},c=n.exports,i;function d(){return i||(i=1,function(r,o){(function(t,e){r.exports=e()})(c,function(){function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*!
|
|
2
2
|
* numbro.js language configuration
|
|
3
3
|
* language : Polish
|
|
4
4
|
* locale : Poland
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const p=require("./importer-
|
|
1
|
+
"use strict";const p=require("./importer-Cs_2Fwe9.cjs");function c(r,o){for(var e=0;e<o.length;e++){const t=o[e];if(typeof t!="string"&&!Array.isArray(t)){for(const a in t)if(a!=="default"&&!(a in r)){const i=Object.getOwnPropertyDescriptor(t,a);i&&Object.defineProperty(r,a,i.get?i:{enumerable:!0,get:()=>t[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var n={exports:{}},l=n.exports,u;function d(){return u||(u=1,function(r,o){(function(e,t){r.exports=t()})(l,function(){function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}/*!
|
|
2
2
|
* numbro.js language configuration
|
|
3
3
|
* language : Portuguese
|
|
4
4
|
* locale : Brazil
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const p=require("./importer-
|
|
1
|
+
"use strict";const p=require("./importer-Cs_2Fwe9.cjs");function c(r,o){for(var e=0;e<o.length;e++){const t=o[e];if(typeof t!="string"&&!Array.isArray(t)){for(const a in t)if(a!=="default"&&!(a in r)){const u=Object.getOwnPropertyDescriptor(t,a);u&&Object.defineProperty(r,a,u.get?u:{enumerable:!0,get:()=>t[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var n={exports:{}},l=n.exports,i;function d(){return i||(i=1,function(r,o){(function(e,t){r.exports=t()})(l,function(){function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}/*!
|
|
2
2
|
* numbro.js language configuration
|
|
3
3
|
* language : Portuguese
|
|
4
4
|
* locale : Portugal
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("./importer-
|
|
1
|
+
"use strict";const c=require("./importer-Cs_2Fwe9.cjs");function l(r,n){for(var t=0;t<n.length;t++){const e=n[t];if(typeof e!="string"&&!Array.isArray(e)){for(const o in e)if(o!=="default"&&!(o in r)){const i=Object.getOwnPropertyDescriptor(e,o);i&&Object.defineProperty(r,o,i.get?i:{enumerable:!0,get:()=>e[o]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var a={exports:{}},p=a.exports,u;function d(){return u||(u=1,function(r,n){(function(t,e){r.exports=e()})(p,function(){function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*!
|
|
2
2
|
* numeral.js language configuration
|
|
3
3
|
* language : Romanian
|
|
4
4
|
* author : Andrei Alecu https://github.com/andreialecu
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("./importer-
|
|
1
|
+
"use strict";const c=require("./importer-Cs_2Fwe9.cjs");function l(r,n){for(var t=0;t<n.length;t++){const e=n[t];if(typeof e!="string"&&!Array.isArray(e)){for(const o in e)if(o!=="default"&&!(o in r)){const i=Object.getOwnPropertyDescriptor(e,o);i&&Object.defineProperty(r,o,i.get?i:{enumerable:!0,get:()=>e[o]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var a={exports:{}},p=a.exports,u;function d(){return u||(u=1,function(r,n){(function(t,e){r.exports=e()})(p,function(){function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*!
|
|
2
2
|
* numeral.js language configuration
|
|
3
3
|
* language : Romanian
|
|
4
4
|
* author : Andrei Alecu https://github.com/andreialecu
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("./importer-
|
|
1
|
+
"use strict";const c=require("./importer-Cs_2Fwe9.cjs");function l(r,n){for(var t=0;t<n.length;t++){const e=n[t];if(typeof e!="string"&&!Array.isArray(e)){for(const a in e)if(a!=="default"&&!(a in r)){const o=Object.getOwnPropertyDescriptor(e,a);o&&Object.defineProperty(r,a,o.get?o:{enumerable:!0,get:()=>e[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var u={exports:{}},p=u.exports,i;function d(){return i||(i=1,function(r,n){(function(t,e){r.exports=e()})(p,function(){function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*!
|
|
2
2
|
* numbro.js language configuration
|
|
3
3
|
* language : Russian
|
|
4
4
|
* locale : Russsia
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("./importer-
|
|
1
|
+
"use strict";const c=require("./importer-Cs_2Fwe9.cjs");function l(r,n){for(var t=0;t<n.length;t++){const e=n[t];if(typeof e!="string"&&!Array.isArray(e)){for(const a in e)if(a!=="default"&&!(a in r)){const o=Object.getOwnPropertyDescriptor(e,a);o&&Object.defineProperty(r,a,o.get?o:{enumerable:!0,get:()=>e[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var u={exports:{}},p=u.exports,i;function d(){return i||(i=1,function(r,n){(function(t,e){r.exports=e()})(p,function(){function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*!
|
|
2
2
|
* numbro.js language configuration
|
|
3
3
|
* language : Russian
|
|
4
4
|
* locale : Ukraine
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("./importer-
|
|
1
|
+
"use strict";const c=require("./importer-Cs_2Fwe9.cjs");function l(r,o){for(var t=0;t<o.length;t++){const e=o[t];if(typeof e!="string"&&!Array.isArray(e)){for(const a in e)if(a!=="default"&&!(a in r)){const s=Object.getOwnPropertyDescriptor(e,a);s&&Object.defineProperty(r,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var n={exports:{}},p=n.exports,u;function d(){return u||(u=1,function(r,o){(function(t,e){r.exports=e()})(p,function(){function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*!
|
|
2
2
|
* numbro.js language configuration
|
|
3
3
|
* language : Slovak
|
|
4
4
|
* locale : Slovakia
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const a=require("./importer-
|
|
1
|
+
"use strict";const a=require("./importer-Cs_2Fwe9.cjs");function c(r,i){for(var t=0;t<i.length;t++){const e=i[t];if(typeof e!="string"&&!Array.isArray(e)){for(const n in e)if(n!=="default"&&!(n in r)){const s=Object.getOwnPropertyDescriptor(e,n);s&&Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var o={exports:{}},f=o.exports,l;function p(){return l||(l=1,function(r,i){(function(t,e){r.exports=e()})(f,function(){function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*!
|
|
2
2
|
* numbro.js language configuration
|
|
3
3
|
* language : Slovene
|
|
4
4
|
* locale: Slovenia
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const a=require("./importer-
|
|
1
|
+
"use strict";const a=require("./importer-Cs_2Fwe9.cjs");function c(t,i){for(var e=0;e<i.length;e++){const r=i[e];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in t)){const s=Object.getOwnPropertyDescriptor(r,n);s&&Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var o={exports:{}},f=o.exports,l;function y(){return l||(l=1,function(t,i){(function(e,r){t.exports=r()})(f,function(){function e(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}/*!
|
|
2
2
|
* numbro.js language configuration
|
|
3
3
|
* language : Serbian (sr)
|
|
4
4
|
* country : Serbia (Cyrillic)
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defaultSchema } from './lib/constants';
|
|
2
2
|
import { createFieldKey } from './lib/workers/excel-parser/createFieldKey';
|
|
3
|
+
export type { Locale, ILocaleLanguage } from './lib/utils/mappers/numbroLanguages';
|
|
3
4
|
export type { ITableRowInternal } from './lib/types';
|
|
4
5
|
export type { CountryCode } from './lib/utils/locale';
|
|
5
6
|
export type { IsURLOptions } from 'validator/lib/isURL';
|
|
@@ -4,7 +4,7 @@ import { IFileExtension, IvtCellValue } from './internal.types';
|
|
|
4
4
|
import { IFieldTransformerMapInternal } from './transformActions.types';
|
|
5
5
|
import { IEventHandlersInternal } from './events';
|
|
6
6
|
import { ICombineColumnsTransformActionPayload } from './cellTransformerAction.type';
|
|
7
|
-
import {
|
|
7
|
+
import { ILocaleLanguage } from '../utils/mappers/numbroLanguages';
|
|
8
8
|
import { default as numbro } from 'numbro';
|
|
9
9
|
export type IFieldSchemaType = 'autocomplete' | 'dropdown' | 'checkbox' | 'date' | 'numeric' | 'monetary' | 'password' | 'select' | 'text' | 'combine' | 'time';
|
|
10
10
|
export interface IBaseFieldSchemaInternal {
|
|
@@ -42,7 +42,7 @@ export interface INumericFieldSchemaInternal extends Omit<IBaseFieldSchemaIntern
|
|
|
42
42
|
export interface IMonetaryFieldSchemaInternal extends Omit<IBaseFieldSchemaInternal, 'defaultValue'> {
|
|
43
43
|
type: 'monetary';
|
|
44
44
|
average?: boolean;
|
|
45
|
-
locale:
|
|
45
|
+
locale: ILocaleLanguage;
|
|
46
46
|
currencyPosition?: numbro.Format['currencyPosition'];
|
|
47
47
|
currencySymbol?: numbro.Format['currencySymbol'];
|
|
48
48
|
defaultValue?: number;
|
|
@@ -128,5 +128,5 @@ export type IngSchemaInternal = {
|
|
|
128
128
|
maxInMemoryTransformationRows: number;
|
|
129
129
|
maxPerWorkerTransformationRows: number;
|
|
130
130
|
};
|
|
131
|
-
locale?:
|
|
131
|
+
locale?: ILocaleLanguage;
|
|
132
132
|
};
|
|
@@ -1,67 +1,8 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type Locale = 'bg' | 'cs-CZ' | 'da-DK' | 'de-AT' | 'de-CH' | 'de-DE' | 'de-LI' | 'el' | 'en-AU' | 'en-GB' | 'en-IE' | 'en-NZ' | 'en-ZA' | 'es-AR' | 'es-CL' | 'es-CO' | 'es-CR' | 'es-ES' | 'es-MX' | 'es-NI' | 'es-PE' | 'es-PR' | 'es-SV' | 'et-EE' | 'fa-IR' | 'fi-FI' | 'fil-PH' | 'fr-CA' | 'fr-CH' | 'fr-FR' | 'he-IL' | 'hu-HU' | 'id' | 'it-CH' | 'it-IT' | 'ja-JP' | 'ko-KR' | 'lv-LV' | 'nb-NO' | 'nb' | 'nl-BE' | 'nl-NL' | 'nn' | 'pl-PL' | 'pt-BR' | 'pt-PT' | 'ro-RO' | 'ro' | 'ru-RU' | 'ru-UA' | 'sk-SK' | 'sl' | 'sr-Cyrl-RS' | 'sv-SE' | 'th-TH' | 'tr-TR' | 'uk-UA' | 'zh-CN' | 'zh-MO' | 'zh-SG' | 'zh-TW';
|
|
2
|
+
export type ILocaleLanguage = 'Bulgarian' | 'Czech (Czech Republic)' | 'Danish (Denmark)' | 'German (Austria)' | 'German (Switzerland)' | 'German (Germany)' | 'German (Liechtenstein)' | 'Greek' | 'English (Australia)' | 'English (United Kingdom)' | 'English (Ireland)' | 'English (New Zealand)' | 'English (South Africa)' | 'Spanish (Argentina)' | 'Spanish (Chile)' | 'Spanish (Colombia)' | 'Spanish (Costa Rica)' | 'Spanish (Spain)' | 'Spanish (Mexico)' | 'Spanish (Nicaragua)' | 'Spanish (Peru)' | 'Spanish (Puerto Rico)' | 'Spanish (El Salvador)' | 'Estonian (Estonia)' | 'Persian (Iran)' | 'Finnish (Finland)' | 'Filipino (Philippines)' | 'French (Canada)' | 'French (Switzerland)' | 'French (France)' | 'Hebrew (Israel)' | 'Hungarian (Hungary)' | 'Indonesian' | 'Italian (Switzerland)' | 'Italian (Italy)' | 'Japanese (Japan)' | 'Korean (South Korea)' | 'Latvian (Latvia)' | 'Norwegian (Norway)' | 'Norwegian' | 'Dutch (Belgium)' | 'Dutch (Netherlands)' | 'Norwegian Nynorsk' | 'Polish (Poland)' | 'Portuguese (Brazil)' | 'Portuguese (Portugal)' | 'Romanian (Romania)' | 'Romanian' | 'Russian (Russia)' | 'Russian (Ukraine)' | 'Slovak (Slovakia)' | 'Slovene' | 'Serbian (Cyrillic, Serbia)' | 'Swedish (Sweden)' | 'Thai (Thailand)' | 'Turkish (Turkey)' | 'Ukrainian (Ukraine)' | 'Chinese (Simplified, China)' | 'Chinese (Traditional, Macao)' | 'Chinese (Simplified, Singapore)' | 'Chinese (Traditional, Taiwan)';
|
|
2
3
|
export declare const toNumbroLocale: {
|
|
3
|
-
[index in
|
|
4
|
+
[index in ILocaleLanguage]: Locale;
|
|
4
5
|
};
|
|
5
6
|
export declare const numbroLanguagesLoader: {
|
|
6
|
-
|
|
7
|
-
'cs-CZ': () => Promise<any>;
|
|
8
|
-
'da-DK': () => Promise<any>;
|
|
9
|
-
'de-AT': () => Promise<any>;
|
|
10
|
-
'de-CH': () => Promise<any>;
|
|
11
|
-
'de-DE': () => Promise<any>;
|
|
12
|
-
'de-LI': () => Promise<any>;
|
|
13
|
-
el: () => Promise<any>;
|
|
14
|
-
'en-AU': () => Promise<any>;
|
|
15
|
-
'en-GB': () => Promise<any>;
|
|
16
|
-
'en-IE': () => Promise<any>;
|
|
17
|
-
'en-NZ': () => Promise<any>;
|
|
18
|
-
'en-ZA': () => Promise<any>;
|
|
19
|
-
'es-AR': () => Promise<any>;
|
|
20
|
-
'es-CL': () => Promise<any>;
|
|
21
|
-
'es-CO': () => Promise<any>;
|
|
22
|
-
'es-CR': () => Promise<any>;
|
|
23
|
-
'es-ES': () => Promise<any>;
|
|
24
|
-
'es-MX': () => Promise<any>;
|
|
25
|
-
'es-NI': () => Promise<any>;
|
|
26
|
-
'es-PE': () => Promise<any>;
|
|
27
|
-
'es-PR': () => Promise<any>;
|
|
28
|
-
'es-SV': () => Promise<any>;
|
|
29
|
-
'et-EE': () => Promise<any>;
|
|
30
|
-
'fa-IR': () => Promise<any>;
|
|
31
|
-
'fi-FI': () => Promise<any>;
|
|
32
|
-
'fil-PH': () => Promise<any>;
|
|
33
|
-
'fr-CA': () => Promise<any>;
|
|
34
|
-
'fr-CH': () => Promise<any>;
|
|
35
|
-
'fr-FR': () => Promise<any>;
|
|
36
|
-
'he-IL': () => Promise<any>;
|
|
37
|
-
'hu-HU': () => Promise<any>;
|
|
38
|
-
id: () => Promise<any>;
|
|
39
|
-
'it-CH': () => Promise<any>;
|
|
40
|
-
'it-IT': () => Promise<any>;
|
|
41
|
-
'ja-JP': () => Promise<any>;
|
|
42
|
-
'ko-KR': () => Promise<any>;
|
|
43
|
-
'lv-LV': () => Promise<any>;
|
|
44
|
-
'nb-NO': () => Promise<any>;
|
|
45
|
-
nb: () => Promise<any>;
|
|
46
|
-
'nl-BE': () => Promise<any>;
|
|
47
|
-
'nl-NL': () => Promise<any>;
|
|
48
|
-
nn: () => Promise<any>;
|
|
49
|
-
'pl-PL': () => Promise<any>;
|
|
50
|
-
'pt-BR': () => Promise<any>;
|
|
51
|
-
'pt-PT': () => Promise<any>;
|
|
52
|
-
'ro-RO': () => Promise<any>;
|
|
53
|
-
ro: () => Promise<any>;
|
|
54
|
-
'ru-RU': () => Promise<any>;
|
|
55
|
-
'ru-UA': () => Promise<any>;
|
|
56
|
-
'sk-SK': () => Promise<any>;
|
|
57
|
-
sl: () => Promise<any>;
|
|
58
|
-
'sr-Cyrl-RS': () => Promise<any>;
|
|
59
|
-
'sv-SE': () => Promise<any>;
|
|
60
|
-
'th-TH': () => Promise<any>;
|
|
61
|
-
'tr-TR': () => Promise<any>;
|
|
62
|
-
'uk-UA': () => Promise<any>;
|
|
63
|
-
'zh-CN': () => Promise<any>;
|
|
64
|
-
'zh-MO': () => Promise<any>;
|
|
65
|
-
'zh-SG': () => Promise<any>;
|
|
66
|
-
'zh-TW': () => Promise<any>;
|
|
7
|
+
[index in Locale]: () => any;
|
|
67
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("./importer-
|
|
1
|
+
"use strict";const c=require("./importer-Cs_2Fwe9.cjs");function l(r,n){for(var t=0;t<n.length;t++){const e=n[t];if(typeof e!="string"&&!Array.isArray(e)){for(const a in e)if(a!=="default"&&!(a in r)){const s=Object.getOwnPropertyDescriptor(e,a);s&&Object.defineProperty(r,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var o={exports:{}},p=o.exports,u;function d(){return u||(u=1,function(r,n){(function(t,e){r.exports=e()})(p,function(){function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/*!
|
|
2
2
|
* numbro.js language configuration
|
|
3
3
|
* language : Swedish
|
|
4
4
|
* locale : Sweden
|