@embeddable.com/remarkable-pro 0.0.14 → 0.0.16
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/BarChartDefaultHorizontalPro.js +24 -24
- package/dist/BarChartDefaultHorizontalPro.js.map +1 -1
- package/dist/BarChartDefaultPro.js +24 -24
- package/dist/BarChartDefaultPro.js.map +1 -1
- package/dist/BarChartGroupedHorizontalPro.js +27 -27
- package/dist/BarChartGroupedHorizontalPro.js.map +1 -1
- package/dist/BarChartGroupedPro.js +33 -33
- package/dist/BarChartGroupedPro.js.map +1 -1
- package/dist/BarChartStackedHorizontalPro.js +28 -28
- package/dist/BarChartStackedHorizontalPro.js.map +1 -1
- package/dist/BarChartStackedPro.js +27 -27
- package/dist/BarChartStackedPro.js.map +1 -1
- package/dist/{ChartCard-DaUtlchs.js → ChartCard-DWq8ltZe.js} +3 -3
- package/dist/{ChartCard-DaUtlchs.js.map → ChartCard-DWq8ltZe.js.map} +1 -1
- package/dist/{index-BIiign0L.js → Color.type.emb-CLYI-rua.js} +7217 -7211
- package/dist/Color.type.emb-CLYI-rua.js.map +1 -0
- package/dist/ColorEditor.js +10 -11
- package/dist/ColorEditor.js.map +1 -1
- package/dist/ComparisonPeriodSelectFieldPro.js +19 -22
- package/dist/ComparisonPeriodSelectFieldPro.js.map +1 -1
- package/dist/DateRangePickerCustomPro.js +29 -28
- package/dist/DateRangePickerCustomPro.js.map +1 -1
- package/dist/DateRangeSelectFieldPro.js +23 -21
- package/dist/DateRangeSelectFieldPro.js.map +1 -1
- package/dist/DonutChartPro.js +24 -24
- package/dist/DonutChartPro.js.map +1 -1
- package/dist/DonutLabelChartPro.js +29 -30
- package/dist/DonutLabelChartPro.js.map +1 -1
- package/dist/{EditorCard-DXQeyo3r.js → EditorCard-GIL6-rb_.js} +10 -10
- package/dist/{EditorCard-DXQeyo3r.js.map → EditorCard-GIL6-rb_.js.map} +1 -1
- package/dist/HeatMapPro.js +46 -45
- package/dist/HeatMapPro.js.map +1 -1
- package/dist/KpiChartNumberComparisonPro.js +32 -31
- package/dist/KpiChartNumberComparisonPro.js.map +1 -1
- package/dist/KpiChartNumberPro.js +14 -20
- package/dist/KpiChartNumberPro.js.map +1 -1
- package/dist/LineChartComparisonDefaultPro.js +61 -60
- package/dist/LineChartComparisonDefaultPro.js.map +1 -1
- package/dist/LineChartDefaultPro.js +46 -38
- package/dist/LineChartDefaultPro.js.map +1 -1
- package/dist/LineChartGroupedPro.js +47 -36
- package/dist/LineChartGroupedPro.js.map +1 -1
- package/dist/MultiSelectFieldPro.js +24 -27
- package/dist/MultiSelectFieldPro.js.map +1 -1
- package/dist/PieChartPro.js +24 -24
- package/dist/PieChartPro.js.map +1 -1
- package/dist/PivotTablePro.js +31 -29
- package/dist/PivotTablePro.js.map +1 -1
- package/dist/SingleSelectFieldPro.js +24 -24
- package/dist/SingleSelectFieldPro.js.map +1 -1
- package/dist/TableChartPaginated.js +43 -37
- package/dist/TableChartPaginated.js.map +1 -1
- package/dist/{bars.utils-BOaMUmRC.js → bars.utils-fkN2-HS9.js} +4 -4
- package/dist/{bars.utils-BOaMUmRC.js.map → bars.utils-fkN2-HS9.js.map} +1 -1
- package/dist/{charts.utils-QEdmPKTi.js → charts.utils-BiED7HDM.js} +6 -5
- package/dist/charts.utils-BiED7HDM.js.map +1 -0
- package/dist/{component.constants-DJqBv0qe.js → component.inputs.constants-BYwiwFNH.js} +446 -407
- package/dist/component.inputs.constants-BYwiwFNH.js.map +1 -0
- package/dist/components/charts/tables/HeatMapPro/index.d.ts +2 -2
- package/dist/components/charts/tables/HeatMapPro/index.d.ts.map +1 -1
- package/dist/components/component.inputs.constants.d.ts +309 -0
- package/dist/components/component.inputs.constants.d.ts.map +1 -0
- package/dist/components/component.subinputs.constants.d.ts +95 -0
- package/dist/components/component.subinputs.constants.d.ts.map +1 -0
- package/dist/embeddable-components.json +11 -11
- package/dist/embeddable-theme-0137e.js +2 -1
- package/dist/{formatter.utils-BRMB8qAc.js → formatter.utils-C6e5AE1P.js} +2 -2
- package/dist/{formatter.utils-BRMB8qAc.js.map → formatter.utils-C6e5AE1P.js.map} +1 -1
- package/dist/{index-DkbXF0dN.js → index-AkhRDk1Q.js} +5 -5
- package/dist/{index-DkbXF0dN.js.map → index-AkhRDk1Q.js.map} +1 -1
- package/dist/{index-CYfKRRhL.js → index-B6Sxhv5V.js} +16 -16
- package/dist/{index-CYfKRRhL.js.map → index-B6Sxhv5V.js.map} +1 -1
- package/dist/{index-DD28i12d.js → index-B7ZOvR_0.js} +5 -5
- package/dist/{index-DD28i12d.js.map → index-B7ZOvR_0.js.map} +1 -1
- package/dist/{index-QLS7PLnH.js → index-BKe5XLWq.js} +5 -5
- package/dist/{index-QLS7PLnH.js.map → index-BKe5XLWq.js.map} +1 -1
- package/dist/{index-BqgkyNm8.js → index-BLrDwmLF.js} +5 -5
- package/dist/index-BLrDwmLF.js.map +1 -0
- package/dist/{index-DBFwmzJQ.js → index-BPWmQIUP.js} +11 -11
- package/dist/{index-DBFwmzJQ.js.map → index-BPWmQIUP.js.map} +1 -1
- package/dist/{index-BcipgJ0R.js → index-BiJMrvpt.js} +5 -5
- package/dist/{index-BcipgJ0R.js.map → index-BiJMrvpt.js.map} +1 -1
- package/dist/{index-CVv-xIyp.js → index-Bvnqafeu.js} +5 -5
- package/dist/{index-CVv-xIyp.js.map → index-Bvnqafeu.js.map} +1 -1
- package/dist/{index-BvAMg9p7.js → index-CBauec4T.js} +5 -5
- package/dist/{index-BvAMg9p7.js.map → index-CBauec4T.js.map} +1 -1
- package/dist/{index-9xeta4is.js → index-CdT1o7ra.js} +5 -5
- package/dist/{index-9xeta4is.js.map → index-CdT1o7ra.js.map} +1 -1
- package/dist/{index-CfpIN_sB.js → index-DGoq-GmG.js} +6 -6
- package/dist/{index-CfpIN_sB.js.map → index-DGoq-GmG.js.map} +1 -1
- package/dist/{index-BbypzboN.js → index-DJy_zcds.js} +5 -5
- package/dist/{index-BbypzboN.js.map → index-DJy_zcds.js.map} +1 -1
- package/dist/{index-Bege60LS.js → index-DP-lVPuh.js} +5 -5
- package/dist/{index-Bege60LS.js.map → index-DP-lVPuh.js.map} +1 -1
- package/dist/{index-BpTn16mw.js → index-De2fu_3w.js} +22 -22
- package/dist/{index-BpTn16mw.js.map → index-De2fu_3w.js.map} +1 -1
- package/dist/{index-DlkwNVQ_.js → index-Do4E11C9.js} +5 -5
- package/dist/{index-DlkwNVQ_.js.map → index-Do4E11C9.js.map} +1 -1
- package/dist/{index-CrFZJTR2.js → index-IERhvJoR.js} +6 -6
- package/dist/{index-CrFZJTR2.js.map → index-IERhvJoR.js.map} +1 -1
- package/dist/{index-DD5t0omh.js → index-PV9-pvEj.js} +5 -5
- package/dist/{index-DD5t0omh.js.map → index-PV9-pvEj.js.map} +1 -1
- package/dist/{index-Ba6ziHiQ.js → index-Ybpp0kam.js} +4 -4
- package/dist/{index-Ba6ziHiQ.js.map → index-Ybpp0kam.js.map} +1 -1
- package/dist/{index-Drxp0RBw.js → index-agIiR5E8.js} +16 -16
- package/dist/{index-Drxp0RBw.js.map → index-agIiR5E8.js.map} +1 -1
- package/dist/{index-fHVbX-W0.js → index-hHZCF8mP.js} +5 -5
- package/dist/{index-fHVbX-W0.js.map → index-hHZCF8mP.js.map} +1 -1
- package/dist/{index-CnbSiVWn.js → index-za3bNggu.js} +5 -5
- package/dist/{index-CnbSiVWn.js.map → index-za3bNggu.js.map} +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +84 -131
- package/dist/index.js.map +1 -1
- package/dist/{pies.utils-P0szT8UT.js → pies.utils--MuyzEyP.js} +5 -5
- package/dist/{pies.utils-P0szT8UT.js.map → pies.utils--MuyzEyP.js.map} +1 -1
- package/dist/remarkable-pro.css +1 -1
- package/dist/{timeRange.utils-CgLgHA94.js → timeRange.utils-Cf2JBR0j.js} +2 -2
- package/dist/{timeRange.utils-CgLgHA94.js.map → timeRange.utils-Cf2JBR0j.js.map} +1 -1
- package/package.json +2 -2
- package/dist/Color.type.emb-DFhAaPXz.js +0 -9
- package/dist/Color.type.emb-DFhAaPXz.js.map +0 -1
- package/dist/ComparisonPeriod.type.emb-C-YdNTEB.js +0 -14
- package/dist/ComparisonPeriod.type.emb-C-YdNTEB.js.map +0 -1
- package/dist/charts.utils-QEdmPKTi.js.map +0 -1
- package/dist/component.constants-DJqBv0qe.js.map +0 -1
- package/dist/components/component.constants.d.ts +0 -324
- package/dist/components/component.constants.d.ts.map +0 -1
- package/dist/index-BIiign0L.js.map +0 -1
- package/dist/index-BqgkyNm8.js.map +0 -1
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
const p = (r) => typeof r == "string",
|
|
1
|
+
import { t as Ve, W as $e, X as D, s as Ne } from "./Color.type.emb-CLYI-rua.js";
|
|
2
|
+
const p = (r) => typeof r == "string", U = () => {
|
|
3
3
|
let r, e;
|
|
4
4
|
const t = new Promise((i, s) => {
|
|
5
5
|
r = i, e = s;
|
|
6
6
|
});
|
|
7
7
|
return t.resolve = r, t.reject = e, t;
|
|
8
|
-
},
|
|
8
|
+
}, pe = (r) => r == null ? "" : "" + r, Ke = (r, e, t) => {
|
|
9
9
|
r.forEach((i) => {
|
|
10
10
|
e[i] && (t[i] = e[i]);
|
|
11
11
|
});
|
|
12
|
-
},
|
|
12
|
+
}, Ue = /###/g, ge = (r) => r && r.indexOf("###") > -1 ? r.replace(Ue, ".") : r, me = (r) => !r || p(r), H = (r, e, t) => {
|
|
13
13
|
const i = p(e) ? e.split(".") : e;
|
|
14
14
|
let s = 0;
|
|
15
15
|
for (; s < i.length - 1; ) {
|
|
16
|
-
if (
|
|
17
|
-
const n =
|
|
16
|
+
if (me(r)) return {};
|
|
17
|
+
const n = ge(i[s]);
|
|
18
18
|
!r[n] && t && (r[n] = new t()), Object.prototype.hasOwnProperty.call(r, n) ? r = r[n] : r = {}, ++s;
|
|
19
19
|
}
|
|
20
|
-
return
|
|
20
|
+
return me(r) ? {} : {
|
|
21
21
|
obj: r,
|
|
22
|
-
k:
|
|
22
|
+
k: ge(i[s])
|
|
23
23
|
};
|
|
24
|
-
},
|
|
24
|
+
}, ye = (r, e, t) => {
|
|
25
25
|
const {
|
|
26
26
|
obj: i,
|
|
27
27
|
k: s
|
|
28
|
-
} =
|
|
28
|
+
} = H(r, e, Object);
|
|
29
29
|
if (i !== void 0 || e.length === 1) {
|
|
30
30
|
i[s] = t;
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
|
-
let n = e[e.length - 1], a = e.slice(0, e.length - 1), o =
|
|
33
|
+
let n = e[e.length - 1], a = e.slice(0, e.length - 1), o = H(r, a, Object);
|
|
34
34
|
for (; o.obj === void 0 && a.length; )
|
|
35
|
-
n = `${a[a.length - 1]}.${n}`, a = a.slice(0, a.length - 1), o =
|
|
35
|
+
n = `${a[a.length - 1]}.${n}`, a = a.slice(0, a.length - 1), o = H(r, a, Object), o != null && o.obj && typeof o.obj[`${o.k}.${n}`] < "u" && (o.obj = void 0);
|
|
36
36
|
o.obj[`${o.k}.${n}`] = t;
|
|
37
|
-
},
|
|
37
|
+
}, He = (r, e, t, i) => {
|
|
38
38
|
const {
|
|
39
39
|
obj: s,
|
|
40
40
|
k: n
|
|
41
|
-
} =
|
|
41
|
+
} = H(r, e, Object);
|
|
42
42
|
s[n] = s[n] || [], s[n].push(t);
|
|
43
|
-
},
|
|
43
|
+
}, _ = (r, e) => {
|
|
44
44
|
const {
|
|
45
45
|
obj: t,
|
|
46
46
|
k: i
|
|
47
|
-
} =
|
|
47
|
+
} = H(r, e);
|
|
48
48
|
if (t && Object.prototype.hasOwnProperty.call(t, i))
|
|
49
49
|
return t[i];
|
|
50
|
-
},
|
|
51
|
-
const i =
|
|
52
|
-
return i !== void 0 ? i :
|
|
53
|
-
},
|
|
50
|
+
}, Be = (r, e, t) => {
|
|
51
|
+
const i = _(r, t);
|
|
52
|
+
return i !== void 0 ? i : _(e, t);
|
|
53
|
+
}, ke = (r, e, t) => {
|
|
54
54
|
for (const i in e)
|
|
55
|
-
i !== "__proto__" && i !== "constructor" && (i in r ? p(r[i]) || r[i] instanceof String || p(e[i]) || e[i] instanceof String ? t && (r[i] = e[i]) :
|
|
55
|
+
i !== "__proto__" && i !== "constructor" && (i in r ? p(r[i]) || r[i] instanceof String || p(e[i]) || e[i] instanceof String ? t && (r[i] = e[i]) : ke(r[i], e[i], t) : r[i] = e[i]);
|
|
56
56
|
return r;
|
|
57
|
-
},
|
|
58
|
-
var
|
|
57
|
+
}, j = (r) => r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
58
|
+
var ze = {
|
|
59
59
|
"&": "&",
|
|
60
60
|
"<": "<",
|
|
61
61
|
">": ">",
|
|
@@ -63,8 +63,8 @@ var Ve = {
|
|
|
63
63
|
"'": "'",
|
|
64
64
|
"/": "/"
|
|
65
65
|
};
|
|
66
|
-
const
|
|
67
|
-
class
|
|
66
|
+
const Je = (r) => p(r) ? r.replace(/[&<>"'\/]/g, (e) => ze[e]) : r;
|
|
67
|
+
class Ye {
|
|
68
68
|
constructor(e) {
|
|
69
69
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
70
70
|
}
|
|
@@ -76,18 +76,18 @@ class Ke {
|
|
|
76
76
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, i), this.regExpQueue.push(e), i;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
const
|
|
79
|
+
const We = [" ", ",", "?", "!", ";"], _e = new Ye(20), qe = (r, e, t) => {
|
|
80
80
|
e = e || "", t = t || "";
|
|
81
|
-
const i =
|
|
81
|
+
const i = We.filter((a) => e.indexOf(a) < 0 && t.indexOf(a) < 0);
|
|
82
82
|
if (i.length === 0) return !0;
|
|
83
|
-
const s =
|
|
83
|
+
const s = _e.getRegExp(`(${i.map((a) => a === "?" ? "\\?" : a).join("|")})`);
|
|
84
84
|
let n = !s.test(r);
|
|
85
85
|
if (!n) {
|
|
86
86
|
const a = r.indexOf(t);
|
|
87
87
|
a > 0 && !s.test(r.substring(0, a)) && (n = !0);
|
|
88
88
|
}
|
|
89
89
|
return n;
|
|
90
|
-
},
|
|
90
|
+
}, te = (r, e, t = ".") => {
|
|
91
91
|
if (!r) return;
|
|
92
92
|
if (r[e])
|
|
93
93
|
return Object.prototype.hasOwnProperty.call(r, e) ? r[e] : void 0;
|
|
@@ -107,7 +107,7 @@ const Ue = [" ", ",", "?", "!", ";"], He = new Ke(20), Be = (r, e, t) => {
|
|
|
107
107
|
s = a;
|
|
108
108
|
}
|
|
109
109
|
return s;
|
|
110
|
-
},
|
|
110
|
+
}, z = (r) => r == null ? void 0 : r.replace("_", "-"), Xe = {
|
|
111
111
|
type: "logger",
|
|
112
112
|
log(r) {
|
|
113
113
|
this.output("log", r);
|
|
@@ -123,12 +123,12 @@ const Ue = [" ", ",", "?", "!", ";"], He = new Ke(20), Be = (r, e, t) => {
|
|
|
123
123
|
(i = (t = console == null ? void 0 : console[r]) == null ? void 0 : t.apply) == null || i.call(t, console, e);
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
|
-
class
|
|
126
|
+
class q {
|
|
127
127
|
constructor(e, t = {}) {
|
|
128
128
|
this.init(e, t);
|
|
129
129
|
}
|
|
130
130
|
init(e, t = {}) {
|
|
131
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
131
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || Xe, this.options = t, this.debug = t.debug;
|
|
132
132
|
}
|
|
133
133
|
log(...e) {
|
|
134
134
|
return this.forward(e, "log", "", !0);
|
|
@@ -146,17 +146,17 @@ class W {
|
|
|
146
146
|
return s && !this.debug ? null : (p(e[0]) && (e[0] = `${i}${this.prefix} ${e[0]}`), this.logger[t](e));
|
|
147
147
|
}
|
|
148
148
|
create(e) {
|
|
149
|
-
return new
|
|
149
|
+
return new q(this.logger, {
|
|
150
150
|
prefix: `${this.prefix}:${e}:`,
|
|
151
151
|
...this.options
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
clone(e) {
|
|
155
|
-
return e = e || this.options, e.prefix = e.prefix || this.prefix, new
|
|
155
|
+
return e = e || this.options, e.prefix = e.prefix || this.prefix, new q(this.logger, e);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
var $ = new
|
|
159
|
-
class
|
|
158
|
+
var $ = new q();
|
|
159
|
+
class G {
|
|
160
160
|
constructor() {
|
|
161
161
|
this.observers = {};
|
|
162
162
|
}
|
|
@@ -186,7 +186,7 @@ class _ {
|
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
class
|
|
189
|
+
class xe extends G {
|
|
190
190
|
constructor(e, t = {
|
|
191
191
|
ns: ["translation"],
|
|
192
192
|
defaultNS: "translation"
|
|
@@ -205,15 +205,15 @@ class ce extends _ {
|
|
|
205
205
|
const n = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, a = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
206
206
|
let o;
|
|
207
207
|
e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], i && (Array.isArray(i) ? o.push(...i) : p(i) && n ? o.push(...i.split(n)) : o.push(i)));
|
|
208
|
-
const u =
|
|
209
|
-
return !u && !t && !i && e.indexOf(".") > -1 && (e = o[0], t = o[1], i = o.slice(2).join(".")), u || !a || !p(i) ? u :
|
|
208
|
+
const u = _(this.data, o);
|
|
209
|
+
return !u && !t && !i && e.indexOf(".") > -1 && (e = o[0], t = o[1], i = o.slice(2).join(".")), u || !a || !p(i) ? u : te((f = (l = this.data) == null ? void 0 : l[e]) == null ? void 0 : f[t], i, n);
|
|
210
210
|
}
|
|
211
211
|
addResource(e, t, i, s, n = {
|
|
212
212
|
silent: !1
|
|
213
213
|
}) {
|
|
214
214
|
const a = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator;
|
|
215
215
|
let o = [e, t];
|
|
216
|
-
i && (o = o.concat(a ? i.split(a) : i)), e.indexOf(".") > -1 && (o = e.split("."), s = t, t = o[1]), this.addNamespaces(t),
|
|
216
|
+
i && (o = o.concat(a ? i.split(a) : i)), e.indexOf(".") > -1 && (o = e.split("."), s = t, t = o[1]), this.addNamespaces(t), ye(this.data, o, s), n.silent || this.emit("added", e, t, i, s);
|
|
217
217
|
}
|
|
218
218
|
addResources(e, t, i, s = {
|
|
219
219
|
silent: !1
|
|
@@ -230,11 +230,11 @@ class ce extends _ {
|
|
|
230
230
|
}) {
|
|
231
231
|
let o = [e, t];
|
|
232
232
|
e.indexOf(".") > -1 && (o = e.split("."), s = i, i = t, t = o[1]), this.addNamespaces(t);
|
|
233
|
-
let u =
|
|
234
|
-
a.skipCopy || (i = JSON.parse(JSON.stringify(i))), s ?
|
|
233
|
+
let u = _(this.data, o) || {};
|
|
234
|
+
a.skipCopy || (i = JSON.parse(JSON.stringify(i))), s ? ke(u, i, n) : u = {
|
|
235
235
|
...u,
|
|
236
236
|
...i
|
|
237
|
-
},
|
|
237
|
+
}, ye(this.data, o, u), a.silent || this.emit("added", e, t, i);
|
|
238
238
|
}
|
|
239
239
|
removeResourceBundle(e, t) {
|
|
240
240
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -256,7 +256,7 @@ class ce extends _ {
|
|
|
256
256
|
return this.data;
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
|
-
var
|
|
259
|
+
var Ae = {
|
|
260
260
|
processors: {},
|
|
261
261
|
addPostProcessor(r) {
|
|
262
262
|
this.processors[r.name] = r;
|
|
@@ -268,25 +268,25 @@ var Le = {
|
|
|
268
268
|
}), e;
|
|
269
269
|
}
|
|
270
270
|
};
|
|
271
|
-
const
|
|
272
|
-
function
|
|
271
|
+
const Te = Symbol("i18next/PATH_KEY");
|
|
272
|
+
function Ge() {
|
|
273
273
|
const r = [], e = /* @__PURE__ */ Object.create(null);
|
|
274
274
|
let t;
|
|
275
275
|
return e.get = (i, s) => {
|
|
276
276
|
var n;
|
|
277
|
-
return (n = t == null ? void 0 : t.revoke) == null || n.call(t), s ===
|
|
277
|
+
return (n = t == null ? void 0 : t.revoke) == null || n.call(t), s === Te ? r : (r.push(s), t = Proxy.revocable(i, e), t.proxy);
|
|
278
278
|
}, Proxy.revocable(/* @__PURE__ */ Object.create(null), e).proxy;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function se(r, e) {
|
|
281
281
|
const {
|
|
282
|
-
[
|
|
283
|
-
} = r(
|
|
282
|
+
[Te]: t
|
|
283
|
+
} = r(Ge());
|
|
284
284
|
return t.join((e == null ? void 0 : e.keySeparator) ?? ".");
|
|
285
285
|
}
|
|
286
|
-
const
|
|
287
|
-
class
|
|
286
|
+
const be = {}, Z = (r) => !p(r) && typeof r != "boolean" && typeof r != "number";
|
|
287
|
+
class X extends G {
|
|
288
288
|
constructor(e, t = {}) {
|
|
289
|
-
super(),
|
|
289
|
+
super(), Ke(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = $.create("translator");
|
|
290
290
|
}
|
|
291
291
|
changeLanguage(e) {
|
|
292
292
|
e && (this.language = e);
|
|
@@ -300,7 +300,7 @@ class G extends _ {
|
|
|
300
300
|
if (e == null) return !1;
|
|
301
301
|
const s = this.resolve(e, i);
|
|
302
302
|
if ((s == null ? void 0 : s.res) === void 0) return !1;
|
|
303
|
-
const n =
|
|
303
|
+
const n = Z(s.res);
|
|
304
304
|
return !(i.returnObjects === !1 && n);
|
|
305
305
|
}
|
|
306
306
|
extractFromKey(e, t) {
|
|
@@ -308,7 +308,7 @@ class G extends _ {
|
|
|
308
308
|
i === void 0 && (i = ":");
|
|
309
309
|
const s = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
310
310
|
let n = t.ns || this.options.defaultNS || [];
|
|
311
|
-
const a = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !
|
|
311
|
+
const a = i && e.indexOf(i) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !qe(e, i, s);
|
|
312
312
|
if (a && !o) {
|
|
313
313
|
const u = e.match(this.interpolator.nestingRegexp);
|
|
314
314
|
if (u && u.length > 0)
|
|
@@ -331,7 +331,7 @@ class G extends _ {
|
|
|
331
331
|
if (typeof s != "object" && this.options.overloadTranslationOptionHandler && (s = this.options.overloadTranslationOptionHandler(arguments)), typeof s == "object" && (s = {
|
|
332
332
|
...s
|
|
333
333
|
}), s || (s = {}), e == null) return "";
|
|
334
|
-
typeof e == "function" && (e =
|
|
334
|
+
typeof e == "function" && (e = se(e, {
|
|
335
335
|
...this.options,
|
|
336
336
|
...s
|
|
337
337
|
})), Array.isArray(e) || (e = [String(e)]);
|
|
@@ -358,76 +358,76 @@ class G extends _ {
|
|
|
358
358
|
usedNS: l,
|
|
359
359
|
usedParams: this.getUsedParamsDetails(s)
|
|
360
360
|
} : o;
|
|
361
|
-
const
|
|
362
|
-
let
|
|
363
|
-
const m = (
|
|
361
|
+
const h = this.resolve(e, s);
|
|
362
|
+
let d = h == null ? void 0 : h.res;
|
|
363
|
+
const m = (h == null ? void 0 : h.usedKey) || o, x = (h == null ? void 0 : h.exactUsedKey) || o, w = ["[object Number]", "[object Function]", "[object RegExp]"], C = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, T = !this.i18nFormat || this.i18nFormat.handleAsObject, S = s.count !== void 0 && !p(s.count), N = X.hasDefaultValue(s), J = S ? this.pluralResolver.getSuffix(c, s.count, s) : "", k = s.ordinal && S ? this.pluralResolver.getSuffix(c, s.count, {
|
|
364
364
|
ordinal: !1
|
|
365
|
-
}) : "",
|
|
366
|
-
let b =
|
|
367
|
-
|
|
368
|
-
const
|
|
369
|
-
if (
|
|
365
|
+
}) : "", M = S && !s.ordinal && s.count === 0, L = M && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${J}`] || s[`defaultValue${k}`] || s.defaultValue;
|
|
366
|
+
let b = d;
|
|
367
|
+
T && !d && N && (b = L);
|
|
368
|
+
const Ee = Z(b), Me = Object.prototype.toString.apply(b);
|
|
369
|
+
if (T && b && Ee && w.indexOf(Me) < 0 && !(p(C) && Array.isArray(b))) {
|
|
370
370
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
371
371
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
372
372
|
const v = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(m, b, {
|
|
373
373
|
...s,
|
|
374
374
|
ns: u
|
|
375
375
|
}) : `key '${o} (${this.language})' returned an object instead of string.`;
|
|
376
|
-
return n ? (
|
|
376
|
+
return n ? (h.res = v, h.usedParams = this.getUsedParamsDetails(s), h) : v;
|
|
377
377
|
}
|
|
378
378
|
if (a) {
|
|
379
|
-
const v = Array.isArray(b), R = v ? [] : {},
|
|
379
|
+
const v = Array.isArray(b), R = v ? [] : {}, ce = v ? x : m;
|
|
380
380
|
for (const P in b)
|
|
381
381
|
if (Object.prototype.hasOwnProperty.call(b, P)) {
|
|
382
|
-
const
|
|
383
|
-
N && !
|
|
382
|
+
const A = `${ce}${a}${P}`;
|
|
383
|
+
N && !d ? R[P] = this.translate(A, {
|
|
384
384
|
...s,
|
|
385
|
-
defaultValue:
|
|
385
|
+
defaultValue: Z(L) ? L[P] : void 0,
|
|
386
386
|
joinArrays: !1,
|
|
387
387
|
ns: u
|
|
388
|
-
}) : R[P] = this.translate(
|
|
388
|
+
}) : R[P] = this.translate(A, {
|
|
389
389
|
...s,
|
|
390
390
|
joinArrays: !1,
|
|
391
391
|
ns: u
|
|
392
|
-
}), R[P] ===
|
|
392
|
+
}), R[P] === A && (R[P] = b[P]);
|
|
393
393
|
}
|
|
394
|
-
|
|
394
|
+
d = R;
|
|
395
395
|
}
|
|
396
|
-
} else if (
|
|
397
|
-
|
|
396
|
+
} else if (T && p(C) && Array.isArray(d))
|
|
397
|
+
d = d.join(C), d && (d = this.extendTranslation(d, e, s, i));
|
|
398
398
|
else {
|
|
399
399
|
let v = !1, R = !1;
|
|
400
|
-
!this.isValidLookup(
|
|
401
|
-
const P = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && R ? void 0 :
|
|
402
|
-
if (R || v ||
|
|
403
|
-
if (this.logger.log(
|
|
400
|
+
!this.isValidLookup(d) && N && (v = !0, d = L), this.isValidLookup(d) || (R = !0, d = o);
|
|
401
|
+
const P = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && R ? void 0 : d, A = N && L !== d && this.options.updateMissing;
|
|
402
|
+
if (R || v || A) {
|
|
403
|
+
if (this.logger.log(A ? "updateKey" : "missingKey", c, l, o, A ? L : d), a) {
|
|
404
404
|
const O = this.resolve(o, {
|
|
405
405
|
...s,
|
|
406
406
|
keySeparator: !1
|
|
407
407
|
});
|
|
408
408
|
O && O.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
409
409
|
}
|
|
410
|
-
let
|
|
411
|
-
const
|
|
412
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
413
|
-
for (let O = 0; O <
|
|
414
|
-
|
|
415
|
-
else this.options.saveMissingTo === "all" ?
|
|
416
|
-
const
|
|
417
|
-
var
|
|
418
|
-
const
|
|
419
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(O, l,
|
|
410
|
+
let V = [];
|
|
411
|
+
const Y = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
|
|
412
|
+
if (this.options.saveMissingTo === "fallback" && Y && Y[0])
|
|
413
|
+
for (let O = 0; O < Y.length; O++)
|
|
414
|
+
V.push(Y[O]);
|
|
415
|
+
else this.options.saveMissingTo === "all" ? V = this.languageUtils.toResolveHierarchy(s.lng || this.language) : V.push(s.lng || this.language);
|
|
416
|
+
const fe = (O, F, K) => {
|
|
417
|
+
var he;
|
|
418
|
+
const de = N && K !== d ? K : P;
|
|
419
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(O, l, F, de, A, s) : (he = this.backendConnector) != null && he.saveMissing && this.backendConnector.saveMissing(O, l, F, de, A, s), this.emit("missingKey", O, l, F, d);
|
|
420
420
|
};
|
|
421
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && S ?
|
|
422
|
-
const
|
|
423
|
-
|
|
424
|
-
|
|
421
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && S ? V.forEach((O) => {
|
|
422
|
+
const F = this.pluralResolver.getSuffixes(O, s);
|
|
423
|
+
M && s[`defaultValue${this.options.pluralSeparator}zero`] && F.indexOf(`${this.options.pluralSeparator}zero`) < 0 && F.push(`${this.options.pluralSeparator}zero`), F.forEach((K) => {
|
|
424
|
+
fe([O], o + K, s[`defaultValue${K}`] || L);
|
|
425
425
|
});
|
|
426
|
-
}) :
|
|
426
|
+
}) : fe(V, o, L));
|
|
427
427
|
}
|
|
428
|
-
|
|
428
|
+
d = this.extendTranslation(d, e, s, h, i), R && d === o && this.options.appendNamespaceToMissingKey && (d = `${l}${f}${o}`), (R || v) && this.options.parseMissingKeyHandler && (d = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${f}${o}` : o, v ? d : void 0, s));
|
|
429
429
|
}
|
|
430
|
-
return n ? (
|
|
430
|
+
return n ? (h.res = d, h.usedParams = this.getUsedParamsDetails(s), h) : d;
|
|
431
431
|
}
|
|
432
432
|
extendTranslation(e, t, i, s, n) {
|
|
433
433
|
var u, l;
|
|
@@ -449,21 +449,21 @@ class G extends _ {
|
|
|
449
449
|
const f = p(e) && (((l = i == null ? void 0 : i.interpolation) == null ? void 0 : l.skipOnVariables) !== void 0 ? i.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
450
450
|
let c;
|
|
451
451
|
if (f) {
|
|
452
|
-
const
|
|
453
|
-
c =
|
|
452
|
+
const h = e.match(this.interpolator.nestingRegexp);
|
|
453
|
+
c = h && h.length;
|
|
454
454
|
}
|
|
455
455
|
let g = i.replace && !p(i.replace) ? i.replace : i;
|
|
456
456
|
if (this.options.interpolation.defaultVariables && (g = {
|
|
457
457
|
...this.options.interpolation.defaultVariables,
|
|
458
458
|
...g
|
|
459
459
|
}), e = this.interpolator.interpolate(e, g, i.lng || this.language || s.usedLng, i), f) {
|
|
460
|
-
const
|
|
461
|
-
c <
|
|
460
|
+
const h = e.match(this.interpolator.nestingRegexp), d = h && h.length;
|
|
461
|
+
c < d && (i.nest = !1);
|
|
462
462
|
}
|
|
463
|
-
!i.lng && s && s.res && (i.lng = this.language || s.usedLng), i.nest !== !1 && (e = this.interpolator.nest(e, (...
|
|
463
|
+
!i.lng && s && s.res && (i.lng = this.language || s.usedLng), i.nest !== !1 && (e = this.interpolator.nest(e, (...h) => (n == null ? void 0 : n[0]) === h[0] && !i.context ? (this.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${t[0]}`), null) : this.translate(...h, t), i)), i.interpolation && this.interpolator.reset();
|
|
464
464
|
}
|
|
465
465
|
const a = i.postProcess || this.options.postProcess, o = p(a) ? [a] : a;
|
|
466
|
-
return e != null && (o != null && o.length) && i.applyPostProcessor !== !1 && (e =
|
|
466
|
+
return e != null && (o != null && o.length) && i.applyPostProcessor !== !1 && (e = Ae.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
467
467
|
i18nResolved: {
|
|
468
468
|
...s,
|
|
469
469
|
usedParams: this.getUsedParamsDetails(i)
|
|
@@ -479,28 +479,28 @@ class G extends _ {
|
|
|
479
479
|
s = f;
|
|
480
480
|
let c = l.namespaces;
|
|
481
481
|
this.options.fallbackNS && (c = c.concat(this.options.fallbackNS));
|
|
482
|
-
const g = t.count !== void 0 && !p(t.count),
|
|
482
|
+
const g = t.count !== void 0 && !p(t.count), h = g && !t.ordinal && t.count === 0, d = t.context !== void 0 && (p(t.context) || typeof t.context == "number") && t.context !== "", m = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
483
483
|
c.forEach((x) => {
|
|
484
484
|
var w, C;
|
|
485
|
-
this.isValidLookup(i) || (o = x, !
|
|
486
|
-
var
|
|
485
|
+
this.isValidLookup(i) || (o = x, !be[`${m[0]}-${x}`] && ((w = this.utils) != null && w.hasLoadedNamespace) && !((C = this.utils) != null && C.hasLoadedNamespace(o)) && (be[`${m[0]}-${x}`] = !0, this.logger.warn(`key "${s}" for languages "${m.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), m.forEach((T) => {
|
|
486
|
+
var J;
|
|
487
487
|
if (this.isValidLookup(i)) return;
|
|
488
|
-
a =
|
|
488
|
+
a = T;
|
|
489
489
|
const S = [f];
|
|
490
|
-
if ((
|
|
491
|
-
this.i18nFormat.addLookupKeys(S, f,
|
|
490
|
+
if ((J = this.i18nFormat) != null && J.addLookupKeys)
|
|
491
|
+
this.i18nFormat.addLookupKeys(S, f, T, x, t);
|
|
492
492
|
else {
|
|
493
|
-
let
|
|
494
|
-
g && (
|
|
495
|
-
const
|
|
496
|
-
if (g && (t.ordinal &&
|
|
493
|
+
let k;
|
|
494
|
+
g && (k = this.pluralResolver.getSuffix(T, t.count, t));
|
|
495
|
+
const M = `${this.options.pluralSeparator}zero`, L = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
496
|
+
if (g && (t.ordinal && k.indexOf(L) === 0 && S.push(f + k.replace(L, this.options.pluralSeparator)), S.push(f + k), h && S.push(f + M)), d) {
|
|
497
497
|
const b = `${f}${this.options.contextSeparator || "_"}${t.context}`;
|
|
498
|
-
S.push(b), g && (t.ordinal &&
|
|
498
|
+
S.push(b), g && (t.ordinal && k.indexOf(L) === 0 && S.push(b + k.replace(L, this.options.pluralSeparator)), S.push(b + k), h && S.push(b + M));
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
let N;
|
|
502
502
|
for (; N = S.pop(); )
|
|
503
|
-
this.isValidLookup(i) || (n = N, i = this.getResource(
|
|
503
|
+
this.isValidLookup(i) || (n = N, i = this.getResource(T, x, N, t));
|
|
504
504
|
}));
|
|
505
505
|
});
|
|
506
506
|
}), {
|
|
@@ -541,17 +541,17 @@ class G extends _ {
|
|
|
541
541
|
return !1;
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
|
-
class
|
|
544
|
+
class Se {
|
|
545
545
|
constructor(e) {
|
|
546
546
|
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = $.create("languageUtils");
|
|
547
547
|
}
|
|
548
548
|
getScriptPartFromCode(e) {
|
|
549
|
-
if (e =
|
|
549
|
+
if (e = z(e), !e || e.indexOf("-") < 0) return null;
|
|
550
550
|
const t = e.split("-");
|
|
551
551
|
return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
|
|
552
552
|
}
|
|
553
553
|
getLanguagePartFromCode(e) {
|
|
554
|
-
if (e =
|
|
554
|
+
if (e = z(e), !e || e.indexOf("-") < 0) return e;
|
|
555
555
|
const t = e.split("-");
|
|
556
556
|
return this.formatLanguageCode(t[0]);
|
|
557
557
|
}
|
|
@@ -605,20 +605,20 @@ class he {
|
|
|
605
605
|
}), s;
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
|
-
const
|
|
608
|
+
const Le = {
|
|
609
609
|
zero: 0,
|
|
610
610
|
one: 1,
|
|
611
611
|
two: 2,
|
|
612
612
|
few: 3,
|
|
613
613
|
many: 4,
|
|
614
614
|
other: 5
|
|
615
|
-
},
|
|
615
|
+
}, Oe = {
|
|
616
616
|
select: (r) => r === 1 ? "one" : "other",
|
|
617
617
|
resolvedOptions: () => ({
|
|
618
618
|
pluralCategories: ["one", "other"]
|
|
619
619
|
})
|
|
620
620
|
};
|
|
621
|
-
class
|
|
621
|
+
class Qe {
|
|
622
622
|
constructor(e, t = {}) {
|
|
623
623
|
this.languageUtils = e, this.options = t, this.logger = $.create("pluralResolver"), this.pluralRulesCache = {};
|
|
624
624
|
}
|
|
@@ -629,7 +629,7 @@ class Ye {
|
|
|
629
629
|
this.pluralRulesCache = {};
|
|
630
630
|
}
|
|
631
631
|
getRule(e, t = {}) {
|
|
632
|
-
const i =
|
|
632
|
+
const i = z(e === "dev" ? "en" : e), s = t.ordinal ? "ordinal" : "cardinal", n = JSON.stringify({
|
|
633
633
|
cleanedCode: i,
|
|
634
634
|
type: s
|
|
635
635
|
});
|
|
@@ -642,8 +642,8 @@ class Ye {
|
|
|
642
642
|
});
|
|
643
643
|
} catch {
|
|
644
644
|
if (!Intl)
|
|
645
|
-
return this.logger.error("No Intl support, please use an Intl polyfill!"),
|
|
646
|
-
if (!e.match(/-|_/)) return
|
|
645
|
+
return this.logger.error("No Intl support, please use an Intl polyfill!"), Oe;
|
|
646
|
+
if (!e.match(/-|_/)) return Oe;
|
|
647
647
|
const u = this.languageUtils.getLanguagePartFromCode(e);
|
|
648
648
|
a = this.getRule(u, t);
|
|
649
649
|
}
|
|
@@ -658,18 +658,18 @@ class Ye {
|
|
|
658
658
|
}
|
|
659
659
|
getSuffixes(e, t = {}) {
|
|
660
660
|
let i = this.getRule(e, t);
|
|
661
|
-
return i || (i = this.getRule("dev", t)), i ? i.resolvedOptions().pluralCategories.sort((s, n) =>
|
|
661
|
+
return i || (i = this.getRule("dev", t)), i ? i.resolvedOptions().pluralCategories.sort((s, n) => Le[s] - Le[n]).map((s) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${s}`) : [];
|
|
662
662
|
}
|
|
663
663
|
getSuffix(e, t, i = {}) {
|
|
664
664
|
const s = this.getRule(e, i);
|
|
665
665
|
return s ? `${this.options.prepend}${i.ordinal ? `ordinal${this.options.prepend}` : ""}${s.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, i));
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
|
-
const
|
|
669
|
-
let n =
|
|
670
|
-
return !n && s && p(t) && (n =
|
|
671
|
-
},
|
|
672
|
-
class
|
|
668
|
+
const Ce = (r, e, t, i = ".", s = !0) => {
|
|
669
|
+
let n = Be(r, e, t);
|
|
670
|
+
return !n && s && p(t) && (n = te(r, t, i), n === void 0 && (n = te(e, t, i))), n;
|
|
671
|
+
}, ee = (r) => r.replace(/\$/g, "$$$$");
|
|
672
|
+
class we {
|
|
673
673
|
constructor(e = {}) {
|
|
674
674
|
var t;
|
|
675
675
|
this.logger = $.create("interpolator"), this.options = e, this.format = ((t = e == null ? void 0 : e.interpolation) == null ? void 0 : t.format) || ((i) => i), this.init(e);
|
|
@@ -690,14 +690,14 @@ class me {
|
|
|
690
690
|
unescapeSuffix: f,
|
|
691
691
|
unescapePrefix: c,
|
|
692
692
|
nestingPrefix: g,
|
|
693
|
-
nestingPrefixEscaped:
|
|
694
|
-
nestingSuffix:
|
|
693
|
+
nestingPrefixEscaped: h,
|
|
694
|
+
nestingSuffix: d,
|
|
695
695
|
nestingSuffixEscaped: m,
|
|
696
696
|
nestingOptionsSeparator: x,
|
|
697
697
|
maxReplaces: w,
|
|
698
698
|
alwaysFormat: C
|
|
699
699
|
} = e.interpolation;
|
|
700
|
-
this.escape = t !== void 0 ? t :
|
|
700
|
+
this.escape = t !== void 0 ? t : Je, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = n ? j(n) : a || "{{", this.suffix = o ? j(o) : u || "}}", this.formatSeparator = l || ",", this.unescapePrefix = f ? "" : c || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = g ? j(g) : h || j("$t("), this.nestingSuffix = d ? j(d) : m || j(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = C !== void 0 ? C : !1, this.resetRegExp();
|
|
701
701
|
}
|
|
702
702
|
reset() {
|
|
703
703
|
this.options && this.init(this.options);
|
|
@@ -707,34 +707,34 @@ class me {
|
|
|
707
707
|
this.regexp = e(this.regexp, `${this.prefix}(.+?)${this.suffix}`), this.regexpUnescape = e(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`), this.nestingRegexp = e(this.nestingRegexp, `${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`);
|
|
708
708
|
}
|
|
709
709
|
interpolate(e, t, i, s) {
|
|
710
|
-
var
|
|
710
|
+
var h;
|
|
711
711
|
let n, a, o;
|
|
712
|
-
const u = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (
|
|
713
|
-
if (
|
|
714
|
-
const C =
|
|
712
|
+
const u = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (d) => {
|
|
713
|
+
if (d.indexOf(this.formatSeparator) < 0) {
|
|
714
|
+
const C = Ce(t, u, d, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
715
715
|
return this.alwaysFormat ? this.format(C, void 0, i, {
|
|
716
716
|
...s,
|
|
717
717
|
...t,
|
|
718
|
-
interpolationkey:
|
|
718
|
+
interpolationkey: d
|
|
719
719
|
}) : C;
|
|
720
720
|
}
|
|
721
|
-
const m =
|
|
722
|
-
return this.format(
|
|
721
|
+
const m = d.split(this.formatSeparator), x = m.shift().trim(), w = m.join(this.formatSeparator).trim();
|
|
722
|
+
return this.format(Ce(t, u, x, this.options.keySeparator, this.options.ignoreJSONStructure), w, i, {
|
|
723
723
|
...s,
|
|
724
724
|
...t,
|
|
725
725
|
interpolationkey: x
|
|
726
726
|
});
|
|
727
727
|
};
|
|
728
728
|
this.resetRegExp();
|
|
729
|
-
const f = (s == null ? void 0 : s.missingInterpolationHandler) || this.options.missingInterpolationHandler, c = ((
|
|
729
|
+
const f = (s == null ? void 0 : s.missingInterpolationHandler) || this.options.missingInterpolationHandler, c = ((h = s == null ? void 0 : s.interpolation) == null ? void 0 : h.skipOnVariables) !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
730
730
|
return [{
|
|
731
731
|
regex: this.regexpUnescape,
|
|
732
|
-
safeValue: (
|
|
732
|
+
safeValue: (d) => ee(d)
|
|
733
733
|
}, {
|
|
734
734
|
regex: this.regexp,
|
|
735
|
-
safeValue: (
|
|
736
|
-
}].forEach((
|
|
737
|
-
for (o = 0; n =
|
|
735
|
+
safeValue: (d) => this.escapeValue ? ee(this.escape(d)) : ee(d)
|
|
736
|
+
}].forEach((d) => {
|
|
737
|
+
for (o = 0; n = d.regex.exec(e); ) {
|
|
738
738
|
const m = n[1].trim();
|
|
739
739
|
if (a = l(m), a === void 0)
|
|
740
740
|
if (typeof f == "function") {
|
|
@@ -747,9 +747,9 @@ class me {
|
|
|
747
747
|
continue;
|
|
748
748
|
} else
|
|
749
749
|
this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`), a = "";
|
|
750
|
-
else !p(a) && !this.useRawValueToEscape && (a =
|
|
751
|
-
const x =
|
|
752
|
-
if (e = e.replace(n[0], x), c ? (
|
|
750
|
+
else !p(a) && !this.useRawValueToEscape && (a = pe(a));
|
|
751
|
+
const x = d.safeValue(a);
|
|
752
|
+
if (e = e.replace(n[0], x), c ? (d.regex.lastIndex += a.length, d.regex.lastIndex -= n[0].length) : d.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
753
753
|
break;
|
|
754
754
|
}
|
|
755
755
|
}), e;
|
|
@@ -762,8 +762,8 @@ class me {
|
|
|
762
762
|
const c = u.split(new RegExp(`${f}[ ]*{`));
|
|
763
763
|
let g = `{${c[1]}`;
|
|
764
764
|
u = c[0], g = this.interpolate(g, a);
|
|
765
|
-
const
|
|
766
|
-
(((
|
|
765
|
+
const h = g.match(/'/g), d = g.match(/"/g);
|
|
766
|
+
(((h == null ? void 0 : h.length) ?? 0) % 2 === 0 && !d || d.length % 2 !== 0) && (g = g.replace(/'/g, '"'));
|
|
767
767
|
try {
|
|
768
768
|
a = JSON.parse(g), l && (a = {
|
|
769
769
|
...l,
|
|
@@ -781,7 +781,7 @@ class me {
|
|
|
781
781
|
}, a = a.replace && !p(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
|
|
782
782
|
const l = /{.*}/.test(s[1]) ? s[1].lastIndexOf("}") + 1 : s[1].indexOf(this.formatSeparator);
|
|
783
783
|
if (l !== -1 && (u = s[1].slice(l).split(this.formatSeparator).map((f) => f.trim()).filter(Boolean), s[1] = s[1].slice(0, l)), n = t(o.call(this, s[1].trim(), a), a), n && s[0] === e && !p(n)) return n;
|
|
784
|
-
p(n) || (n =
|
|
784
|
+
p(n) || (n = pe(n)), n || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), n = ""), u.length && (n = u.reduce((f, c) => this.format(f, c, i.lng, {
|
|
785
785
|
...i,
|
|
786
786
|
interpolationkey: s[1].trim()
|
|
787
787
|
}), n.trim())), e = e.replace(s[0], n), this.regexp.lastIndex = 0;
|
|
@@ -789,7 +789,7 @@ class me {
|
|
|
789
789
|
return e;
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
|
-
const
|
|
792
|
+
const Ze = (r) => {
|
|
793
793
|
let e = r.toLowerCase().trim();
|
|
794
794
|
const t = {};
|
|
795
795
|
if (r.indexOf("(") > -1) {
|
|
@@ -807,7 +807,7 @@ const We = (r) => {
|
|
|
807
807
|
formatName: e,
|
|
808
808
|
formatOptions: t
|
|
809
809
|
};
|
|
810
|
-
},
|
|
810
|
+
}, Re = (r) => {
|
|
811
811
|
const e = {};
|
|
812
812
|
return (t, i, s) => {
|
|
813
813
|
let n = s;
|
|
@@ -817,10 +817,10 @@ const We = (r) => {
|
|
|
817
817
|
});
|
|
818
818
|
const a = i + JSON.stringify(n);
|
|
819
819
|
let o = e[a];
|
|
820
|
-
return o || (o = r(
|
|
820
|
+
return o || (o = r(z(i), s), e[a] = o), o(t);
|
|
821
821
|
};
|
|
822
|
-
},
|
|
823
|
-
class
|
|
822
|
+
}, et = (r) => (e, t, i) => r(z(t), i)(e);
|
|
823
|
+
class tt {
|
|
824
824
|
constructor(e = {}) {
|
|
825
825
|
this.logger = $.create("formatter"), this.options = e, this.init(e);
|
|
826
826
|
}
|
|
@@ -828,7 +828,7 @@ class _e {
|
|
|
828
828
|
interpolation: {}
|
|
829
829
|
}) {
|
|
830
830
|
this.formatSeparator = t.interpolation.formatSeparator || ",";
|
|
831
|
-
const i = t.cacheInBuiltFormats ?
|
|
831
|
+
const i = t.cacheInBuiltFormats ? Re : et;
|
|
832
832
|
this.formats = {
|
|
833
833
|
number: i((s, n) => {
|
|
834
834
|
const a = new Intl.NumberFormat(s, {
|
|
@@ -867,7 +867,7 @@ class _e {
|
|
|
867
867
|
this.formats[e.toLowerCase().trim()] = t;
|
|
868
868
|
}
|
|
869
869
|
addCached(e, t) {
|
|
870
|
-
this.formats[e.toLowerCase().trim()] =
|
|
870
|
+
this.formats[e.toLowerCase().trim()] = Re(t);
|
|
871
871
|
}
|
|
872
872
|
format(e, t, i, s = {}) {
|
|
873
873
|
const n = t.split(this.formatSeparator);
|
|
@@ -880,18 +880,18 @@ class _e {
|
|
|
880
880
|
const {
|
|
881
881
|
formatName: l,
|
|
882
882
|
formatOptions: f
|
|
883
|
-
} =
|
|
883
|
+
} = Ze(u);
|
|
884
884
|
if (this.formats[l]) {
|
|
885
885
|
let g = o;
|
|
886
886
|
try {
|
|
887
|
-
const
|
|
888
|
-
g = this.formats[l](o,
|
|
887
|
+
const h = ((c = s == null ? void 0 : s.formatParams) == null ? void 0 : c[s.interpolationkey]) || {}, d = h.locale || h.lng || s.locale || s.lng || i;
|
|
888
|
+
g = this.formats[l](o, d, {
|
|
889
889
|
...f,
|
|
890
890
|
...s,
|
|
891
|
-
...
|
|
891
|
+
...h
|
|
892
892
|
});
|
|
893
|
-
} catch (
|
|
894
|
-
this.logger.warn(
|
|
893
|
+
} catch (h) {
|
|
894
|
+
this.logger.warn(h);
|
|
895
895
|
}
|
|
896
896
|
return g;
|
|
897
897
|
} else
|
|
@@ -900,10 +900,10 @@ class _e {
|
|
|
900
900
|
}, e);
|
|
901
901
|
}
|
|
902
902
|
}
|
|
903
|
-
const
|
|
903
|
+
const st = (r, e) => {
|
|
904
904
|
r.pending[e] !== void 0 && (delete r.pending[e], r.pendingCount--);
|
|
905
905
|
};
|
|
906
|
-
class
|
|
906
|
+
class it extends G {
|
|
907
907
|
constructor(e, t, i, s = {}) {
|
|
908
908
|
var n, a;
|
|
909
909
|
super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = s, this.logger = $.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], (a = (n = this.backend) == null ? void 0 : n.init) == null || a.call(n, i, s.backend, s);
|
|
@@ -936,7 +936,7 @@ class Xe extends _ {
|
|
|
936
936
|
}), this.state[e] = t ? -1 : 2, t && i && (this.state[e] = 0);
|
|
937
937
|
const o = {};
|
|
938
938
|
this.queue.forEach((u) => {
|
|
939
|
-
|
|
939
|
+
He(u.loaded, [n], a), st(u, e), t && u.errors.push(t), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((l) => {
|
|
940
940
|
o[l] || (o[l] = {});
|
|
941
941
|
const f = u.loaded[l];
|
|
942
942
|
f.length && f.forEach((c) => {
|
|
@@ -1017,25 +1017,25 @@ class Xe extends _ {
|
|
|
1017
1017
|
}
|
|
1018
1018
|
if (!(i == null || i === "")) {
|
|
1019
1019
|
if ((g = this.backend) != null && g.create) {
|
|
1020
|
-
const
|
|
1020
|
+
const h = {
|
|
1021
1021
|
...a,
|
|
1022
1022
|
isUpdate: n
|
|
1023
|
-
},
|
|
1024
|
-
if (
|
|
1023
|
+
}, d = this.backend.create.bind(this.backend);
|
|
1024
|
+
if (d.length < 6)
|
|
1025
1025
|
try {
|
|
1026
1026
|
let m;
|
|
1027
|
-
|
|
1027
|
+
d.length === 5 ? m = d(e, t, i, s, h) : m = d(e, t, i, s), m && typeof m.then == "function" ? m.then((x) => o(null, x)).catch(o) : o(null, m);
|
|
1028
1028
|
} catch (m) {
|
|
1029
1029
|
o(m);
|
|
1030
1030
|
}
|
|
1031
1031
|
else
|
|
1032
|
-
|
|
1032
|
+
d(e, t, i, s, o, h);
|
|
1033
1033
|
}
|
|
1034
1034
|
!e || !e[0] || this.store.addResource(e[0], t, i, s);
|
|
1035
1035
|
}
|
|
1036
1036
|
}
|
|
1037
1037
|
}
|
|
1038
|
-
const
|
|
1038
|
+
const ve = () => ({
|
|
1039
1039
|
debug: !1,
|
|
1040
1040
|
initAsync: !0,
|
|
1041
1041
|
ns: ["translation"],
|
|
@@ -1092,20 +1092,20 @@ const xe = () => ({
|
|
|
1092
1092
|
skipOnVariables: !0
|
|
1093
1093
|
},
|
|
1094
1094
|
cacheInBuiltFormats: !0
|
|
1095
|
-
}),
|
|
1095
|
+
}), Pe = (r) => {
|
|
1096
1096
|
var e, t;
|
|
1097
1097
|
return p(r.ns) && (r.ns = [r.ns]), p(r.fallbackLng) && (r.fallbackLng = [r.fallbackLng]), p(r.fallbackNS) && (r.fallbackNS = [r.fallbackNS]), ((t = (e = r.supportedLngs) == null ? void 0 : e.indexOf) == null ? void 0 : t.call(e, "cimode")) < 0 && (r.supportedLngs = r.supportedLngs.concat(["cimode"])), typeof r.initImmediate == "boolean" && (r.initAsync = r.initImmediate), r;
|
|
1098
|
-
},
|
|
1099
|
-
},
|
|
1098
|
+
}, W = () => {
|
|
1099
|
+
}, nt = (r) => {
|
|
1100
1100
|
Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach((t) => {
|
|
1101
1101
|
typeof r[t] == "function" && (r[t] = r[t].bind(r));
|
|
1102
1102
|
});
|
|
1103
1103
|
};
|
|
1104
|
-
class
|
|
1104
|
+
class B extends G {
|
|
1105
1105
|
constructor(e = {}, t) {
|
|
1106
|
-
if (super(), this.options =
|
|
1106
|
+
if (super(), this.options = Pe(e), this.services = {}, this.logger = $, this.modules = {
|
|
1107
1107
|
external: []
|
|
1108
|
-
},
|
|
1108
|
+
}, nt(this), t && !this.isInitialized && !e.isClone) {
|
|
1109
1109
|
if (!this.options.initAsync)
|
|
1110
1110
|
return this.init(e, t), this;
|
|
1111
1111
|
setTimeout(() => {
|
|
@@ -1115,11 +1115,11 @@ class U extends _ {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
init(e = {}, t) {
|
|
1117
1117
|
this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (p(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
|
|
1118
|
-
const i =
|
|
1118
|
+
const i = ve();
|
|
1119
1119
|
this.options = {
|
|
1120
1120
|
...i,
|
|
1121
1121
|
...this.options,
|
|
1122
|
-
...
|
|
1122
|
+
...Pe(e)
|
|
1123
1123
|
}, this.options.interpolation = {
|
|
1124
1124
|
...i.interpolation,
|
|
1125
1125
|
...this.options.interpolation
|
|
@@ -1128,24 +1128,24 @@ class U extends _ {
|
|
|
1128
1128
|
if (!this.options.isClone) {
|
|
1129
1129
|
this.modules.logger ? $.init(s(this.modules.logger), this.options) : $.init(null, this.options);
|
|
1130
1130
|
let l;
|
|
1131
|
-
this.modules.formatter ? l = this.modules.formatter : l =
|
|
1132
|
-
const f = new
|
|
1133
|
-
this.store = new
|
|
1131
|
+
this.modules.formatter ? l = this.modules.formatter : l = tt;
|
|
1132
|
+
const f = new Se(this.options);
|
|
1133
|
+
this.store = new xe(this.options.resources, this.options);
|
|
1134
1134
|
const c = this.services;
|
|
1135
|
-
c.logger = $, c.resourceStore = this.store, c.languageUtils = f, c.pluralResolver = new
|
|
1135
|
+
c.logger = $, c.resourceStore = this.store, c.languageUtils = f, c.pluralResolver = new Qe(f, {
|
|
1136
1136
|
prepend: this.options.pluralSeparator,
|
|
1137
1137
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
1138
|
-
}), this.options.interpolation.format && this.options.interpolation.format !== i.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), l && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (c.formatter = s(l), c.formatter.init && c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new
|
|
1138
|
+
}), this.options.interpolation.format && this.options.interpolation.format !== i.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), l && (!this.options.interpolation.format || this.options.interpolation.format === i.interpolation.format) && (c.formatter = s(l), c.formatter.init && c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new we(this.options), c.utils = {
|
|
1139
1139
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
1140
|
-
}, c.backendConnector = new
|
|
1141
|
-
this.emit(
|
|
1142
|
-
}), this.modules.languageDetector && (c.languageDetector = s(this.modules.languageDetector), c.languageDetector.init && c.languageDetector.init(c, this.options.detection, this.options)), this.modules.i18nFormat && (c.i18nFormat = s(this.modules.i18nFormat), c.i18nFormat.init && c.i18nFormat.init(this)), this.translator = new
|
|
1143
|
-
this.emit(
|
|
1144
|
-
}), this.modules.external.forEach((
|
|
1145
|
-
|
|
1140
|
+
}, c.backendConnector = new it(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", (h, ...d) => {
|
|
1141
|
+
this.emit(h, ...d);
|
|
1142
|
+
}), this.modules.languageDetector && (c.languageDetector = s(this.modules.languageDetector), c.languageDetector.init && c.languageDetector.init(c, this.options.detection, this.options)), this.modules.i18nFormat && (c.i18nFormat = s(this.modules.i18nFormat), c.i18nFormat.init && c.i18nFormat.init(this)), this.translator = new X(this.services, this.options), this.translator.on("*", (h, ...d) => {
|
|
1143
|
+
this.emit(h, ...d);
|
|
1144
|
+
}), this.modules.external.forEach((h) => {
|
|
1145
|
+
h.init && h.init(this);
|
|
1146
1146
|
});
|
|
1147
1147
|
}
|
|
1148
|
-
if (this.format = this.options.interpolation.format, t || (t =
|
|
1148
|
+
if (this.format = this.options.interpolation.format, t || (t = W), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
1149
1149
|
const l = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
1150
1150
|
l.length > 0 && l[0] !== "dev" && (this.options.lng = l[0]);
|
|
1151
1151
|
}
|
|
@@ -1154,7 +1154,7 @@ class U extends _ {
|
|
|
1154
1154
|
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((l) => {
|
|
1155
1155
|
this[l] = (...f) => (this.store[l](...f), this);
|
|
1156
1156
|
});
|
|
1157
|
-
const o =
|
|
1157
|
+
const o = U(), u = () => {
|
|
1158
1158
|
const l = (f, c) => {
|
|
1159
1159
|
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), o.resolve(c), t(f, c);
|
|
1160
1160
|
};
|
|
@@ -1163,7 +1163,7 @@ class U extends _ {
|
|
|
1163
1163
|
};
|
|
1164
1164
|
return this.options.resources || !this.options.initAsync ? u() : setTimeout(u, 0), o;
|
|
1165
1165
|
}
|
|
1166
|
-
loadResources(e, t =
|
|
1166
|
+
loadResources(e, t = W) {
|
|
1167
1167
|
var n, a;
|
|
1168
1168
|
let i = t;
|
|
1169
1169
|
const s = p(e) ? e : this.language;
|
|
@@ -1182,15 +1182,15 @@ class U extends _ {
|
|
|
1182
1182
|
i(null);
|
|
1183
1183
|
}
|
|
1184
1184
|
reloadResources(e, t, i) {
|
|
1185
|
-
const s =
|
|
1186
|
-
return typeof e == "function" && (i = e, e = void 0), typeof t == "function" && (i = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), i || (i =
|
|
1185
|
+
const s = U();
|
|
1186
|
+
return typeof e == "function" && (i = e, e = void 0), typeof t == "function" && (i = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), i || (i = W), this.services.backendConnector.reload(e, t, (n) => {
|
|
1187
1187
|
s.resolve(), i(n);
|
|
1188
1188
|
}), s;
|
|
1189
1189
|
}
|
|
1190
1190
|
use(e) {
|
|
1191
1191
|
if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
1192
1192
|
if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
1193
|
-
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" &&
|
|
1193
|
+
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Ae.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
1194
1194
|
}
|
|
1195
1195
|
setResolvedLanguage(e) {
|
|
1196
1196
|
if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
|
|
@@ -1206,7 +1206,7 @@ class U extends _ {
|
|
|
1206
1206
|
}
|
|
1207
1207
|
changeLanguage(e, t) {
|
|
1208
1208
|
this.isLanguageChangingTo = e;
|
|
1209
|
-
const i =
|
|
1209
|
+
const i = U();
|
|
1210
1210
|
this.emit("languageChanging", e);
|
|
1211
1211
|
const s = (o) => {
|
|
1212
1212
|
this.language = o, this.languages = this.services.languageUtils.toResolveHierarchy(o), this.resolvedLanguage = void 0, this.setResolvedLanguage(o);
|
|
@@ -1230,10 +1230,10 @@ class U extends _ {
|
|
|
1230
1230
|
}, u.lng = u.lng || s.lng, u.lngs = u.lngs || s.lngs, u.ns = u.ns || s.ns, u.keyPrefix !== "" && (u.keyPrefix = u.keyPrefix || i || s.keyPrefix);
|
|
1231
1231
|
const l = this.options.keySeparator || ".";
|
|
1232
1232
|
let f;
|
|
1233
|
-
return u.keyPrefix && Array.isArray(n) ? f = n.map((c) => (typeof c == "function" && (c =
|
|
1233
|
+
return u.keyPrefix && Array.isArray(n) ? f = n.map((c) => (typeof c == "function" && (c = se(c, {
|
|
1234
1234
|
...this.options,
|
|
1235
1235
|
...a
|
|
1236
|
-
})), `${u.keyPrefix}${l}${c}`)) : (typeof n == "function" && (n =
|
|
1236
|
+
})), `${u.keyPrefix}${l}${c}`)) : (typeof n == "function" && (n = se(n, {
|
|
1237
1237
|
...this.options,
|
|
1238
1238
|
...a
|
|
1239
1239
|
})), f = u.keyPrefix ? `${u.keyPrefix}${l}${n}` : n), this.t(f, u);
|
|
@@ -1269,7 +1269,7 @@ class U extends _ {
|
|
|
1269
1269
|
return !!(this.hasResourceBundle(i, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(i, e) && (!s || a(n, e)));
|
|
1270
1270
|
}
|
|
1271
1271
|
loadNamespaces(e, t) {
|
|
1272
|
-
const i =
|
|
1272
|
+
const i = U();
|
|
1273
1273
|
return this.options.ns ? (p(e) && (e = [e]), e.forEach((s) => {
|
|
1274
1274
|
this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
|
|
1275
1275
|
}), this.loadResources((s) => {
|
|
@@ -1277,7 +1277,7 @@ class U extends _ {
|
|
|
1277
1277
|
}), i) : (t && t(), Promise.resolve());
|
|
1278
1278
|
}
|
|
1279
1279
|
loadLanguages(e, t) {
|
|
1280
|
-
const i =
|
|
1280
|
+
const i = U();
|
|
1281
1281
|
p(e) && (e = [e]);
|
|
1282
1282
|
const s = this.options.preload || [], n = e.filter((a) => s.indexOf(a) < 0 && this.services.languageUtils.isSupportedCode(a));
|
|
1283
1283
|
return n.length ? (this.options.preload = s.concat(n), this.loadResources((a) => {
|
|
@@ -1295,21 +1295,21 @@ class U extends _ {
|
|
|
1295
1295
|
}
|
|
1296
1296
|
} catch {
|
|
1297
1297
|
}
|
|
1298
|
-
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], i = ((n = this.services) == null ? void 0 : n.languageUtils) || new
|
|
1298
|
+
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], i = ((n = this.services) == null ? void 0 : n.languageUtils) || new Se(ve());
|
|
1299
1299
|
return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(i.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
1300
1300
|
}
|
|
1301
1301
|
static createInstance(e = {}, t) {
|
|
1302
|
-
const i = new
|
|
1303
|
-
return i.createInstance =
|
|
1302
|
+
const i = new B(e, t);
|
|
1303
|
+
return i.createInstance = B.createInstance, i;
|
|
1304
1304
|
}
|
|
1305
|
-
cloneInstance(e = {}, t =
|
|
1305
|
+
cloneInstance(e = {}, t = W) {
|
|
1306
1306
|
const i = e.forkResourceStore;
|
|
1307
1307
|
i && delete e.forkResourceStore;
|
|
1308
1308
|
const s = {
|
|
1309
1309
|
...this.options,
|
|
1310
1310
|
...e,
|
|
1311
1311
|
isClone: !0
|
|
1312
|
-
}, n = new
|
|
1312
|
+
}, n = new B(s);
|
|
1313
1313
|
if ((e.debug !== void 0 || e.prefix !== void 0) && (n.logger = n.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
|
|
1314
1314
|
n[o] = this[o];
|
|
1315
1315
|
}), n.services = {
|
|
@@ -1322,9 +1322,9 @@ class U extends _ {
|
|
|
1322
1322
|
}, u[l] = Object.keys(u[l]).reduce((f, c) => (f[c] = {
|
|
1323
1323
|
...u[l][c]
|
|
1324
1324
|
}, f), u[l]), u), {});
|
|
1325
|
-
n.store = new
|
|
1325
|
+
n.store = new xe(o, s), n.services.resourceStore = n.store;
|
|
1326
1326
|
}
|
|
1327
|
-
return e.interpolation && (n.services.interpolator = new
|
|
1327
|
+
return e.interpolation && (n.services.interpolator = new we(s)), n.translator = new X(n.services, s), n.translator.on("*", (o, ...u) => {
|
|
1328
1328
|
n.emit(o, ...u);
|
|
1329
1329
|
}), n.init(s, t), n.translator.options = s, n.translator.backendConnector.services.utils = {
|
|
1330
1330
|
hasLoadedNamespace: n.hasLoadedNamespace.bind(n)
|
|
@@ -1340,7 +1340,7 @@ class U extends _ {
|
|
|
1340
1340
|
};
|
|
1341
1341
|
}
|
|
1342
1342
|
}
|
|
1343
|
-
const y =
|
|
1343
|
+
const y = B.createInstance();
|
|
1344
1344
|
y.createInstance;
|
|
1345
1345
|
y.dir;
|
|
1346
1346
|
y.init;
|
|
@@ -1355,7 +1355,7 @@ y.setDefaultNamespace;
|
|
|
1355
1355
|
y.hasLoadedNamespace;
|
|
1356
1356
|
y.loadNamespaces;
|
|
1357
1357
|
y.loadLanguages;
|
|
1358
|
-
const
|
|
1358
|
+
const ts = (r) => {
|
|
1359
1359
|
var e, t;
|
|
1360
1360
|
!((e = r == null ? void 0 : r.i18n) != null && e.language) || !((t = r == null ? void 0 : r.i18n) != null && t.translations) || y.language === r.i18n.language && y.isInitialized || y.init({
|
|
1361
1361
|
lng: r.i18n.language,
|
|
@@ -1372,137 +1372,171 @@ const rt = (r) => {
|
|
|
1372
1372
|
* This source code is licensed under the MIT license.
|
|
1373
1373
|
* See the LICENSE file in the root directory of this source tree.
|
|
1374
1374
|
*/
|
|
1375
|
-
const
|
|
1375
|
+
const at = [["path", { d: "M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", key: "svg-0" }], ["path", { d: "M12 8v4", key: "svg-1" }], ["path", { d: "M12 16h.01", key: "svg-2" }]], ss = Ve("outline", "alert-circle", "AlertCircle", at), rt = (r, e) => {
|
|
1376
1376
|
if (!r || !r.includes("|")) return y.t(r, e);
|
|
1377
1377
|
const [t, i] = r.split("|", 2).map((s) => s.trim());
|
|
1378
1378
|
return y.t(
|
|
1379
1379
|
[t, i].filter((s) => !!s),
|
|
1380
1380
|
e
|
|
1381
1381
|
);
|
|
1382
|
-
},
|
|
1382
|
+
}, is = (r) => {
|
|
1383
1383
|
const e = {};
|
|
1384
1384
|
return Object.keys(r).forEach((t) => {
|
|
1385
1385
|
const i = r[t];
|
|
1386
|
-
e[t] = typeof i == "string" ?
|
|
1386
|
+
e[t] = typeof i == "string" ? rt(i) : i;
|
|
1387
1387
|
}), e;
|
|
1388
|
-
},
|
|
1388
|
+
}, Q = $e("align", {
|
|
1389
1389
|
label: "Align",
|
|
1390
1390
|
optionLabel: (r) => r
|
|
1391
1391
|
});
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
const
|
|
1392
|
+
D(Q, "left");
|
|
1393
|
+
D(Q, "center");
|
|
1394
|
+
D(Q, "right");
|
|
1395
|
+
const ot = {
|
|
1396
|
+
name: "number",
|
|
1397
|
+
type: "number",
|
|
1398
|
+
label: "Number"
|
|
1399
|
+
}, lt = {
|
|
1400
|
+
name: "string",
|
|
1401
|
+
type: "string",
|
|
1402
|
+
label: "String"
|
|
1403
|
+
}, ut = {
|
|
1396
1404
|
name: "boolean",
|
|
1397
1405
|
type: "boolean",
|
|
1398
|
-
label: "Boolean"
|
|
1399
|
-
category: "Component Settings"
|
|
1406
|
+
label: "Boolean"
|
|
1400
1407
|
}, ct = {
|
|
1401
1408
|
name: "timeRange",
|
|
1402
1409
|
type: "timeRange",
|
|
1403
|
-
label: "Time Range"
|
|
1404
|
-
category: "Component Settings"
|
|
1405
|
-
}, tt = {
|
|
1406
|
-
name: "number",
|
|
1407
|
-
type: "number",
|
|
1408
|
-
label: "Number",
|
|
1409
|
-
category: "Component Settings"
|
|
1410
|
+
label: "Time Range"
|
|
1410
1411
|
}, ft = {
|
|
1411
|
-
name: "string",
|
|
1412
|
-
type: "string",
|
|
1413
|
-
label: "String",
|
|
1414
|
-
category: "Component Settings"
|
|
1415
|
-
}, ht = {
|
|
1416
|
-
...tt,
|
|
1417
1412
|
name: "width",
|
|
1413
|
+
type: "number",
|
|
1418
1414
|
label: "Width",
|
|
1419
1415
|
description: "You can input a number in pixels e.g. 400"
|
|
1420
|
-
}, dt = {
|
|
1421
|
-
name: "align",
|
|
1422
|
-
type: q,
|
|
1423
|
-
label: "Align",
|
|
1424
|
-
category: "Component Settings"
|
|
1425
|
-
}, Ce = {
|
|
1426
|
-
name: "prefix",
|
|
1427
|
-
type: "string",
|
|
1428
|
-
label: "Prefix",
|
|
1429
|
-
description: "Prefix"
|
|
1430
|
-
}, we = {
|
|
1431
|
-
name: "suffix",
|
|
1432
|
-
type: "string",
|
|
1433
|
-
label: "Suffix",
|
|
1434
|
-
description: "Suffix"
|
|
1435
|
-
}, Re = {
|
|
1416
|
+
}, dt = { name: "align", type: Q, label: "Align" }, ie = { name: "prefix", type: "string", label: "Prefix" }, ne = { name: "suffix", type: "string", label: "Suffix" }, ae = {
|
|
1436
1417
|
name: "displayName",
|
|
1437
1418
|
type: "string",
|
|
1438
1419
|
label: "Display name"
|
|
1439
|
-
},
|
|
1440
|
-
name: "boolean",
|
|
1441
|
-
type: "boolean",
|
|
1442
|
-
defaultValue: !1,
|
|
1443
|
-
label: "Boolean"
|
|
1444
|
-
}, gt = {
|
|
1445
|
-
name: "number",
|
|
1446
|
-
type: "number",
|
|
1447
|
-
label: "Number"
|
|
1448
|
-
}, ve = {
|
|
1420
|
+
}, re = {
|
|
1449
1421
|
name: "maxCharacters",
|
|
1450
1422
|
type: "number",
|
|
1451
1423
|
label: "Maximum characters",
|
|
1424
|
+
description: void 0,
|
|
1452
1425
|
supportedTypes: ["string"]
|
|
1453
|
-
},
|
|
1426
|
+
}, oe = {
|
|
1454
1427
|
name: "decimalPlaces",
|
|
1455
1428
|
type: "number",
|
|
1456
1429
|
label: "Decimal places",
|
|
1457
1430
|
supportedTypes: ["number"]
|
|
1458
|
-
},
|
|
1431
|
+
}, le = {
|
|
1459
1432
|
name: "currency",
|
|
1460
1433
|
type: "string",
|
|
1461
1434
|
label: "Currency",
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
},
|
|
1435
|
+
description: "e.g. EUR",
|
|
1436
|
+
supportedTypes: ["number"]
|
|
1437
|
+
}, ue = {
|
|
1465
1438
|
name: "abbreviateLargeNumber",
|
|
1466
1439
|
type: "boolean",
|
|
1467
1440
|
label: "Abbreviate large number",
|
|
1468
1441
|
supportedTypes: ["number"]
|
|
1469
|
-
},
|
|
1442
|
+
}, De = {
|
|
1470
1443
|
name: "dateBounds",
|
|
1471
1444
|
type: "timeRange",
|
|
1472
1445
|
label: "Date Bounds",
|
|
1473
1446
|
description: "Set the date range for the axis",
|
|
1474
1447
|
supportedTypes: ["time"]
|
|
1475
|
-
},
|
|
1448
|
+
}, Fe = {
|
|
1476
1449
|
name: "granularity",
|
|
1477
1450
|
type: "granularity",
|
|
1478
1451
|
label: "Granularity",
|
|
1479
|
-
supportedTypes: ["time"]
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1452
|
+
supportedTypes: ["time"]
|
|
1453
|
+
}, ht = {
|
|
1454
|
+
type: Ne,
|
|
1455
|
+
name: "color",
|
|
1456
|
+
label: "Color"
|
|
1457
|
+
}, I = [
|
|
1458
|
+
ie,
|
|
1459
|
+
ne,
|
|
1460
|
+
ae,
|
|
1461
|
+
re,
|
|
1462
|
+
oe,
|
|
1463
|
+
le,
|
|
1464
|
+
ue
|
|
1465
|
+
], pt = [
|
|
1466
|
+
ie,
|
|
1467
|
+
ne,
|
|
1468
|
+
ae,
|
|
1469
|
+
re,
|
|
1470
|
+
oe,
|
|
1471
|
+
le,
|
|
1472
|
+
ue,
|
|
1473
|
+
Fe,
|
|
1474
|
+
De
|
|
1475
|
+
], ns = {
|
|
1476
|
+
boolean: ut,
|
|
1477
|
+
timeRange: ct,
|
|
1478
|
+
number: ot,
|
|
1479
|
+
string: lt,
|
|
1480
|
+
width: ft,
|
|
1481
|
+
align: dt,
|
|
1482
|
+
prefix: ie,
|
|
1483
|
+
suffix: ne,
|
|
1484
|
+
displayName: ae,
|
|
1485
|
+
maxCharacters: re,
|
|
1486
|
+
decimalPlaces: oe,
|
|
1487
|
+
currency: le,
|
|
1488
|
+
abbreviateLargeNumber: ue,
|
|
1489
|
+
dateBounds: De,
|
|
1490
|
+
granularity: Fe,
|
|
1491
|
+
color: ht
|
|
1492
|
+
}, E = $e("comparisonPeriod", {
|
|
1493
|
+
label: "Comparison Period",
|
|
1494
|
+
optionLabel: (r) => r
|
|
1495
|
+
});
|
|
1496
|
+
D(E, "Previous period");
|
|
1497
|
+
D(E, "Previous week");
|
|
1498
|
+
D(E, "Previous month");
|
|
1499
|
+
D(E, "Previous quarter");
|
|
1500
|
+
D(E, "Previous year");
|
|
1501
|
+
const gt = {
|
|
1502
|
+
name: "boolean",
|
|
1503
|
+
type: "boolean",
|
|
1504
|
+
label: "Boolean"
|
|
1505
|
+
}, mt = {
|
|
1506
|
+
name: "timeRange",
|
|
1507
|
+
type: "timeRange",
|
|
1508
|
+
label: "Time Range"
|
|
1509
|
+
}, yt = {
|
|
1510
|
+
name: "number",
|
|
1511
|
+
type: "number",
|
|
1512
|
+
label: "Number"
|
|
1513
|
+
}, je = {
|
|
1514
|
+
name: "string",
|
|
1515
|
+
type: "string",
|
|
1516
|
+
label: "String"
|
|
1517
|
+
}, xt = {
|
|
1518
|
+
name: "title",
|
|
1519
|
+
type: "string",
|
|
1520
|
+
label: "Title",
|
|
1521
|
+
category: "Component Header"
|
|
1522
|
+
}, bt = {
|
|
1523
|
+
name: "description",
|
|
1524
|
+
type: "string",
|
|
1525
|
+
label: "Description",
|
|
1526
|
+
category: "Component Header"
|
|
1527
|
+
}, St = {
|
|
1500
1528
|
name: "dataset",
|
|
1501
1529
|
type: "dataset",
|
|
1502
1530
|
label: "Dataset",
|
|
1503
1531
|
required: !0,
|
|
1504
1532
|
category: "Component Data"
|
|
1505
|
-
},
|
|
1533
|
+
}, Lt = {
|
|
1534
|
+
name: "maxLegendItems",
|
|
1535
|
+
type: "number",
|
|
1536
|
+
label: "Max Legend Items",
|
|
1537
|
+
defaultValue: 10,
|
|
1538
|
+
category: "Component Data"
|
|
1539
|
+
}, Ie = {
|
|
1506
1540
|
name: "dimension",
|
|
1507
1541
|
type: "dimension",
|
|
1508
1542
|
label: "Dimension",
|
|
@@ -1511,8 +1545,12 @@ const ut = {
|
|
|
1511
1545
|
},
|
|
1512
1546
|
required: !0,
|
|
1513
1547
|
category: "Component Data",
|
|
1514
|
-
inputs:
|
|
1515
|
-
},
|
|
1548
|
+
inputs: I
|
|
1549
|
+
}, Ot = {
|
|
1550
|
+
...Ie,
|
|
1551
|
+
name: "groupBy",
|
|
1552
|
+
label: "Group By"
|
|
1553
|
+
}, Ct = {
|
|
1516
1554
|
name: "dimensionSimple",
|
|
1517
1555
|
type: "dimension",
|
|
1518
1556
|
label: "Dimension",
|
|
@@ -1522,7 +1560,7 @@ const ut = {
|
|
|
1522
1560
|
},
|
|
1523
1561
|
required: !0,
|
|
1524
1562
|
category: "Component Data"
|
|
1525
|
-
},
|
|
1563
|
+
}, wt = {
|
|
1526
1564
|
name: "dimensionTime",
|
|
1527
1565
|
type: "dimension",
|
|
1528
1566
|
label: "Dimension Time",
|
|
@@ -1533,7 +1571,7 @@ const ut = {
|
|
|
1533
1571
|
},
|
|
1534
1572
|
required: !0,
|
|
1535
1573
|
category: "Component Data"
|
|
1536
|
-
},
|
|
1574
|
+
}, Rt = {
|
|
1537
1575
|
name: "dimension",
|
|
1538
1576
|
type: "dimension",
|
|
1539
1577
|
label: "Dimension",
|
|
@@ -1542,8 +1580,8 @@ const ut = {
|
|
|
1542
1580
|
},
|
|
1543
1581
|
required: !0,
|
|
1544
1582
|
category: "Component Data",
|
|
1545
|
-
inputs:
|
|
1546
|
-
},
|
|
1583
|
+
inputs: pt
|
|
1584
|
+
}, vt = {
|
|
1547
1585
|
name: "dimensions",
|
|
1548
1586
|
type: "dimension",
|
|
1549
1587
|
label: "Dimensions",
|
|
@@ -1552,8 +1590,8 @@ const ut = {
|
|
|
1552
1590
|
},
|
|
1553
1591
|
required: !0,
|
|
1554
1592
|
category: "Component Data",
|
|
1555
|
-
inputs:
|
|
1556
|
-
},
|
|
1593
|
+
inputs: I
|
|
1594
|
+
}, Pt = {
|
|
1557
1595
|
name: "dimensionOrMeasure",
|
|
1558
1596
|
type: "dimensionOrMeasure",
|
|
1559
1597
|
label: "Dimension or Measure",
|
|
@@ -1561,8 +1599,8 @@ const ut = {
|
|
|
1561
1599
|
dataset: "dataset"
|
|
1562
1600
|
},
|
|
1563
1601
|
category: "Component Data",
|
|
1564
|
-
inputs:
|
|
1565
|
-
},
|
|
1602
|
+
inputs: I
|
|
1603
|
+
}, $t = {
|
|
1566
1604
|
name: "dimensionsAndMeasures",
|
|
1567
1605
|
type: "dimensionOrMeasure",
|
|
1568
1606
|
label: "Dimensions and Measures",
|
|
@@ -1572,8 +1610,8 @@ const ut = {
|
|
|
1572
1610
|
dataset: "dataset"
|
|
1573
1611
|
},
|
|
1574
1612
|
category: "Component Data",
|
|
1575
|
-
inputs:
|
|
1576
|
-
},
|
|
1613
|
+
inputs: I
|
|
1614
|
+
}, Nt = {
|
|
1577
1615
|
name: "measure",
|
|
1578
1616
|
type: "measure",
|
|
1579
1617
|
label: "Measure",
|
|
@@ -1582,8 +1620,8 @@ const ut = {
|
|
|
1582
1620
|
},
|
|
1583
1621
|
required: !0,
|
|
1584
1622
|
category: "Component Data",
|
|
1585
|
-
inputs:
|
|
1586
|
-
},
|
|
1623
|
+
inputs: I
|
|
1624
|
+
}, kt = {
|
|
1587
1625
|
name: "measures",
|
|
1588
1626
|
type: "measure",
|
|
1589
1627
|
label: "Measures",
|
|
@@ -1593,184 +1631,185 @@ const ut = {
|
|
|
1593
1631
|
},
|
|
1594
1632
|
required: !0,
|
|
1595
1633
|
category: "Component Data",
|
|
1596
|
-
inputs:
|
|
1597
|
-
},
|
|
1598
|
-
name: "
|
|
1599
|
-
type:
|
|
1600
|
-
label: "
|
|
1601
|
-
category: "Component
|
|
1602
|
-
},
|
|
1603
|
-
name: "description",
|
|
1604
|
-
type: "string",
|
|
1605
|
-
label: "Description",
|
|
1606
|
-
category: "Component Header"
|
|
1607
|
-
}, $t = {
|
|
1634
|
+
inputs: I
|
|
1635
|
+
}, At = {
|
|
1636
|
+
name: "comparisonPeriod",
|
|
1637
|
+
type: E,
|
|
1638
|
+
label: "Comparison Period",
|
|
1639
|
+
category: "Component data"
|
|
1640
|
+
}, Tt = {
|
|
1608
1641
|
name: "maxResults",
|
|
1609
1642
|
type: "number",
|
|
1610
1643
|
label: "Max results",
|
|
1611
1644
|
category: "Component Settings",
|
|
1612
1645
|
defaultValue: 1e3
|
|
1613
|
-
},
|
|
1646
|
+
}, Dt = {
|
|
1647
|
+
name: "placeholder",
|
|
1648
|
+
type: "string",
|
|
1649
|
+
label: "Placeholder",
|
|
1650
|
+
category: "Component Settings"
|
|
1651
|
+
}, Ft = {
|
|
1614
1652
|
name: "showLegend",
|
|
1615
1653
|
type: "boolean",
|
|
1616
1654
|
label: "Show Legend",
|
|
1617
1655
|
defaultValue: !0,
|
|
1618
1656
|
category: "Component Settings"
|
|
1619
|
-
},
|
|
1657
|
+
}, jt = {
|
|
1620
1658
|
name: "showTooltips",
|
|
1621
1659
|
type: "boolean",
|
|
1622
1660
|
label: "Show Tooltips",
|
|
1623
1661
|
defaultValue: !0,
|
|
1624
1662
|
category: "Component Settings"
|
|
1625
|
-
},
|
|
1663
|
+
}, It = {
|
|
1626
1664
|
name: "showValueLabels",
|
|
1627
1665
|
type: "boolean",
|
|
1628
1666
|
label: "Show Value Labels",
|
|
1629
1667
|
defaultValue: !0,
|
|
1630
1668
|
category: "Component Settings"
|
|
1631
|
-
},
|
|
1669
|
+
}, Et = {
|
|
1632
1670
|
name: "showTotalLabels",
|
|
1633
1671
|
type: "boolean",
|
|
1634
1672
|
label: "Show Total Labels",
|
|
1635
1673
|
defaultValue: !1,
|
|
1636
1674
|
category: "Component Settings"
|
|
1637
|
-
},
|
|
1675
|
+
}, Mt = {
|
|
1638
1676
|
name: "showLogarithmicScale",
|
|
1639
1677
|
type: "boolean",
|
|
1640
1678
|
label: "Show Logarithmic Scale",
|
|
1641
1679
|
defaultValue: !1,
|
|
1642
1680
|
category: "Component Settings"
|
|
1643
|
-
},
|
|
1681
|
+
}, Vt = {
|
|
1682
|
+
name: "displayPercentages",
|
|
1683
|
+
type: "boolean",
|
|
1684
|
+
label: "Display Percentages",
|
|
1685
|
+
defaultValue: !1,
|
|
1686
|
+
category: "Component Settings"
|
|
1687
|
+
}, Kt = {
|
|
1688
|
+
type: Ne,
|
|
1689
|
+
name: "color",
|
|
1690
|
+
label: "Color",
|
|
1691
|
+
category: "Component Settings"
|
|
1692
|
+
}, Ut = {
|
|
1693
|
+
type: "number",
|
|
1694
|
+
name: "fontSize",
|
|
1695
|
+
label: "Font Size",
|
|
1696
|
+
category: "Component Settings"
|
|
1697
|
+
}, Ht = {
|
|
1698
|
+
type: "boolean",
|
|
1699
|
+
name: "clearable",
|
|
1700
|
+
label: "Can be cleared",
|
|
1701
|
+
defaultValue: !0,
|
|
1702
|
+
category: "Component Settings"
|
|
1703
|
+
}, Bt = {
|
|
1704
|
+
...je,
|
|
1705
|
+
name: "displayNullAs",
|
|
1706
|
+
label: "Display Null As",
|
|
1707
|
+
category: "Component Settings"
|
|
1708
|
+
}, zt = {
|
|
1644
1709
|
name: "xAxisLabel",
|
|
1645
1710
|
type: "string",
|
|
1646
1711
|
label: "X-axis Label",
|
|
1647
1712
|
category: "Axes Settings"
|
|
1648
|
-
},
|
|
1713
|
+
}, Jt = {
|
|
1649
1714
|
name: "yAxisLabel",
|
|
1650
1715
|
type: "string",
|
|
1651
1716
|
label: "Y-axis Label",
|
|
1652
1717
|
category: "Axes Settings"
|
|
1653
|
-
},
|
|
1718
|
+
}, Yt = {
|
|
1654
1719
|
name: "reverseXAxis",
|
|
1655
1720
|
type: "boolean",
|
|
1656
1721
|
label: "Reverse X-axis",
|
|
1657
1722
|
defaultValue: !1,
|
|
1658
1723
|
category: "Axes Settings"
|
|
1659
|
-
},
|
|
1660
|
-
name: "displayPercentages",
|
|
1661
|
-
type: "boolean",
|
|
1662
|
-
label: "Display Percentages",
|
|
1663
|
-
defaultValue: !1,
|
|
1664
|
-
category: "Component Settings"
|
|
1665
|
-
}, Vt = {
|
|
1724
|
+
}, Wt = {
|
|
1666
1725
|
name: "reverseYAxis",
|
|
1667
1726
|
type: "boolean",
|
|
1668
1727
|
label: "Reverse Y-axis",
|
|
1669
1728
|
defaultValue: !1,
|
|
1670
1729
|
category: "Axes Settings"
|
|
1671
|
-
},
|
|
1730
|
+
}, _t = {
|
|
1672
1731
|
name: "yAxisRangeMin",
|
|
1673
1732
|
type: "number",
|
|
1674
1733
|
label: "Y-axis Range Min",
|
|
1675
1734
|
category: "Axes Settings"
|
|
1676
|
-
},
|
|
1735
|
+
}, qt = {
|
|
1677
1736
|
name: "yAxisRangeMax",
|
|
1678
1737
|
type: "number",
|
|
1679
1738
|
label: "Y-axis Range Max",
|
|
1680
1739
|
category: "Axes Settings"
|
|
1681
|
-
},
|
|
1740
|
+
}, Xt = {
|
|
1682
1741
|
name: "xAxisRangeMin",
|
|
1683
1742
|
type: "number",
|
|
1684
1743
|
label: "X-axis Range Min",
|
|
1685
1744
|
category: "Axes Settings"
|
|
1686
|
-
},
|
|
1745
|
+
}, Gt = {
|
|
1687
1746
|
name: "xAxisRangeMax",
|
|
1688
1747
|
type: "number",
|
|
1689
1748
|
label: "X-axis Range Max",
|
|
1690
1749
|
category: "Axes Settings"
|
|
1691
|
-
},
|
|
1750
|
+
}, Qt = {
|
|
1692
1751
|
name: "xAxisMaxItems",
|
|
1693
1752
|
type: "number",
|
|
1694
1753
|
label: "Max X-axis Items",
|
|
1695
1754
|
category: "Axes Settings"
|
|
1696
|
-
},
|
|
1755
|
+
}, Zt = {
|
|
1697
1756
|
name: "yAxisMaxItems",
|
|
1698
1757
|
type: "number",
|
|
1699
1758
|
label: "Max Y-axis Items",
|
|
1700
1759
|
category: "Axes Settings"
|
|
1701
|
-
},
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1760
|
+
}, as = {
|
|
1761
|
+
boolean: gt,
|
|
1762
|
+
timeRange: mt,
|
|
1763
|
+
number: yt,
|
|
1764
|
+
string: je,
|
|
1765
|
+
title: xt,
|
|
1766
|
+
description: bt,
|
|
1767
|
+
dataset: St,
|
|
1768
|
+
maxLegendItems: Lt,
|
|
1769
|
+
dimension: Ie,
|
|
1770
|
+
groupBy: Ot,
|
|
1771
|
+
dimensionSimple: Ct,
|
|
1772
|
+
dimensionTime: wt,
|
|
1773
|
+
dimensionWithDateBounds: Rt,
|
|
1774
|
+
dimensions: vt,
|
|
1775
|
+
dimensionOrMeasure: Pt,
|
|
1776
|
+
dimensionsAndMeasures: $t,
|
|
1777
|
+
measure: Nt,
|
|
1778
|
+
measures: kt,
|
|
1779
|
+
comparisonPeriod: At,
|
|
1780
|
+
maxResults: Tt,
|
|
1781
|
+
placeholder: Dt,
|
|
1782
|
+
showLegend: Ft,
|
|
1783
|
+
showTooltips: jt,
|
|
1784
|
+
showValueLabels: It,
|
|
1785
|
+
showTotalLabels: Et,
|
|
1786
|
+
showLogarithmicScale: Mt,
|
|
1787
|
+
displayPercentages: Vt,
|
|
1788
|
+
color: Kt,
|
|
1789
|
+
fontSize: Ut,
|
|
1790
|
+
clearable: Ht,
|
|
1791
|
+
displayNullAs: Bt,
|
|
1792
|
+
xAxisLabel: zt,
|
|
1793
|
+
yAxisLabel: Jt,
|
|
1794
|
+
reverseXAxis: Yt,
|
|
1795
|
+
reverseYAxis: Wt,
|
|
1796
|
+
yAxisRangeMin: _t,
|
|
1797
|
+
yAxisRangeMax: qt,
|
|
1798
|
+
xAxisRangeMin: Xt,
|
|
1799
|
+
xAxisRangeMax: Gt,
|
|
1800
|
+
xAxisMaxItems: Qt,
|
|
1801
|
+
yAxisMaxItems: Zt
|
|
1718
1802
|
};
|
|
1719
1803
|
export {
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
vt as F,
|
|
1727
|
-
Pt as G,
|
|
1728
|
-
$t as H,
|
|
1729
|
-
Nt as I,
|
|
1730
|
-
It as J,
|
|
1731
|
-
kt as K,
|
|
1732
|
-
At as L,
|
|
1733
|
-
Dt as M,
|
|
1734
|
-
Tt as N,
|
|
1735
|
-
Ft as O,
|
|
1736
|
-
jt as P,
|
|
1737
|
-
Et as Q,
|
|
1738
|
-
Vt as R,
|
|
1739
|
-
Mt as S,
|
|
1740
|
-
Kt as T,
|
|
1741
|
-
Ut as U,
|
|
1742
|
-
Ht as V,
|
|
1743
|
-
Bt as W,
|
|
1744
|
-
zt as X,
|
|
1745
|
-
Jt as Y,
|
|
1746
|
-
Yt as Z,
|
|
1747
|
-
Wt as _,
|
|
1748
|
-
rt as a,
|
|
1749
|
-
ot as a0,
|
|
1750
|
-
ct as b,
|
|
1751
|
-
tt as c,
|
|
1752
|
-
ft as d,
|
|
1753
|
-
dt as e,
|
|
1754
|
-
Ce as f,
|
|
1755
|
-
ut as g,
|
|
1756
|
-
we as h,
|
|
1804
|
+
E as C,
|
|
1805
|
+
ss as I,
|
|
1806
|
+
ts as a,
|
|
1807
|
+
as as b,
|
|
1808
|
+
rt as c,
|
|
1809
|
+
I as d,
|
|
1757
1810
|
y as i,
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
ve as m,
|
|
1762
|
-
Pe as n,
|
|
1763
|
-
$e as o,
|
|
1764
|
-
Ne as p,
|
|
1765
|
-
st as q,
|
|
1766
|
-
lt as r,
|
|
1767
|
-
ht as s,
|
|
1768
|
-
it as t,
|
|
1769
|
-
nt as u,
|
|
1770
|
-
mt as v,
|
|
1771
|
-
yt as w,
|
|
1772
|
-
xt as x,
|
|
1773
|
-
bt as y,
|
|
1774
|
-
St as z
|
|
1811
|
+
is as r,
|
|
1812
|
+
ns as s,
|
|
1813
|
+
pt as t
|
|
1775
1814
|
};
|
|
1776
|
-
//# sourceMappingURL=component.constants-
|
|
1815
|
+
//# sourceMappingURL=component.inputs.constants-BYwiwFNH.js.map
|