@sisense/sdk-ui 2.0.0 → 2.1.0
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/ai.cjs +2 -2
- package/dist/ai.js +34 -34
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +123 -123
- package/dist/{derive-chart-family-BLaI9-3r.js → derive-chart-family-BNMFblR9.js} +31081 -30183
- package/dist/{derive-chart-family-CxqjTyNt.cjs → derive-chart-family-DjbiaKLQ.cjs} +252 -252
- package/dist/{dimensions-C-VKss5V.cjs → dimensions-DcsEnPSY.cjs} +1 -1
- package/dist/{dimensions-Cfq9FexH.js → dimensions-DeTiL-EZ.js} +1 -1
- package/dist/index.cjs +18 -18
- package/dist/index.js +6721 -6405
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +8 -7
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/legend-section.d.ts +1 -0
- package/dist/packages/sdk-ui/src/emotion-cache-provider/emotion-cache-provider.d.ts +10 -0
- package/dist/packages/sdk-ui/src/emotion-cache-provider/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/emotion-cache-provider/utils.d.ts +4 -0
- package/dist/packages/sdk-ui/src/props.d.ts +6 -0
- package/dist/packages/sdk-ui/src/query-execution/use-query-cache.d.ts +4 -2
- package/dist/packages/sdk-ui/src/theme-provider/default-theme-settings.d.ts +1 -0
- package/dist/packages/sdk-ui/src/types.d.ts +2 -0
- package/dist/packages/sdk-ui/src/utils/get-scrollbar-width.d.ts +1 -0
- package/dist/packages/sdk-ui/src/widgets/constants.d.ts +1 -0
- package/dist/{use-common-filters-Cmyb86sc.js → use-common-filters-CJNwlbbh.js} +6628 -6282
- package/dist/use-common-filters-DcFu4qRs.cjs +271 -0
- package/dist/{widget-composer-C4rwNt4P.js → widget-composer-BEVCXjFv.js} +24 -24
- package/dist/{widget-composer-BJURHrVD.cjs → widget-composer-fYnr8SDo.cjs} +1 -1
- package/package.json +8 -7
- package/dist/use-common-filters-BGGGgJJ5.cjs +0 -271
|
@@ -59,10 +59,10 @@ var d = (e) => {
|
|
|
59
59
|
throw r;
|
|
60
60
|
}, "return" in t && n("return"), i;
|
|
61
61
|
};
|
|
62
|
-
import { s as hi, E as ms, c as di, p as pi, v as mi, g as yi, a as rt, b as zt, d as Ut, e as Vt, f as vt, h as
|
|
63
|
-
import { j as Ro, l as Ko, m as jo, k as
|
|
64
|
-
import {
|
|
65
|
-
import { D as
|
|
62
|
+
import { s as hi, E as ms, c as di, p as pi, v as mi, g as yi, a as rt, b as zt, d as Ut, e as Vt, f as vt, h as G, C as Je, i as gi, J as Bs } from "./widget-composer-BEVCXjFv.js";
|
|
63
|
+
import { j as Ro, l as Ko, m as jo, k as qo, n as Fo, w as zo } from "./widget-composer-BEVCXjFv.js";
|
|
64
|
+
import { bd as Jt, b4 as bi, c4 as ys, d2 as wi, e3 as Si, aY as ki, bj as Oi, e4 as Ps, aP as Rs, e5 as Ks, e6 as js, e7 as qs, e8 as Fs, az as zs, e9 as Us, ea as Vs, eb as vs, ec as Js, ed as Qs, ee as Ys, ef as Ws, eg as xs, aL as Ai } from "./derive-chart-family-BNMFblR9.js";
|
|
65
|
+
import { D as Gs, b as Hs } from "./dimensions-DeTiL-EZ.js";
|
|
66
66
|
const Qt = Symbol.for("yaml.alias"), $t = Symbol.for("yaml.document"), Z = Symbol.for("yaml.map"), Xs = Symbol.for("yaml.pair"), X = Symbol.for("yaml.scalar"), Ne = Symbol.for("yaml.seq"), v = Symbol.for("yaml.node.type"), ce = (e) => !!e && typeof e == "object" && e[v] === Qt, Ee = (e) => !!e && typeof e == "object" && e[v] === $t, Te = (e) => !!e && typeof e == "object" && e[v] === Z, C = (e) => !!e && typeof e == "object" && e[v] === Xs, I = (e) => !!e && typeof e == "object" && e[v] === X, Ie = (e) => !!e && typeof e == "object" && e[v] === Ne;
|
|
67
67
|
function _(e) {
|
|
68
68
|
if (e && typeof e == "object")
|
|
@@ -84,14 +84,14 @@ function D(e) {
|
|
|
84
84
|
}
|
|
85
85
|
return !1;
|
|
86
86
|
}
|
|
87
|
-
const Ni = (e) => (I(e) || _(e)) && !!e.anchor,
|
|
87
|
+
const Ni = (e) => (I(e) || _(e)) && !!e.anchor, F = Symbol("break visit"), Zs = Symbol("skip children"), x = Symbol("remove node");
|
|
88
88
|
function ee(e, t) {
|
|
89
89
|
const s = en(t);
|
|
90
|
-
Ee(e) ? pe(null, e.contents, s, Object.freeze([e])) ===
|
|
90
|
+
Ee(e) ? pe(null, e.contents, s, Object.freeze([e])) === x && (e.contents = null) : pe(null, e, s, Object.freeze([]));
|
|
91
91
|
}
|
|
92
|
-
ee.BREAK =
|
|
92
|
+
ee.BREAK = F;
|
|
93
93
|
ee.SKIP = Zs;
|
|
94
|
-
ee.REMOVE =
|
|
94
|
+
ee.REMOVE = x;
|
|
95
95
|
function pe(e, t, s, n) {
|
|
96
96
|
const i = tn(e, t, s, n);
|
|
97
97
|
if (D(i) || C(i))
|
|
@@ -104,21 +104,21 @@ function pe(e, t, s, n) {
|
|
|
104
104
|
if (typeof o == "number")
|
|
105
105
|
r = o - 1;
|
|
106
106
|
else {
|
|
107
|
-
if (o ===
|
|
108
|
-
return
|
|
109
|
-
o ===
|
|
107
|
+
if (o === F)
|
|
108
|
+
return F;
|
|
109
|
+
o === x && (t.items.splice(r, 1), r -= 1);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
} else if (C(t)) {
|
|
113
113
|
n = Object.freeze(n.concat(t));
|
|
114
114
|
const r = pe("key", t.key, s, n);
|
|
115
|
-
if (r ===
|
|
116
|
-
return
|
|
117
|
-
r ===
|
|
115
|
+
if (r === F)
|
|
116
|
+
return F;
|
|
117
|
+
r === x && (t.key = null);
|
|
118
118
|
const o = pe("value", t.value, s, n);
|
|
119
|
-
if (o ===
|
|
120
|
-
return
|
|
121
|
-
o ===
|
|
119
|
+
if (o === F)
|
|
120
|
+
return F;
|
|
121
|
+
o === x && (t.value = null);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
return i;
|
|
@@ -126,12 +126,12 @@ function pe(e, t, s, n) {
|
|
|
126
126
|
function ot(e, t) {
|
|
127
127
|
return Ot(this, null, function* () {
|
|
128
128
|
const s = en(t);
|
|
129
|
-
Ee(e) ? (yield me(null, e.contents, s, Object.freeze([e]))) ===
|
|
129
|
+
Ee(e) ? (yield me(null, e.contents, s, Object.freeze([e]))) === x && (e.contents = null) : yield me(null, e, s, Object.freeze([]));
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
ot.BREAK =
|
|
132
|
+
ot.BREAK = F;
|
|
133
133
|
ot.SKIP = Zs;
|
|
134
|
-
ot.REMOVE =
|
|
134
|
+
ot.REMOVE = x;
|
|
135
135
|
function me(e, t, s, n) {
|
|
136
136
|
return Ot(this, null, function* () {
|
|
137
137
|
const i = yield tn(e, t, s, n);
|
|
@@ -145,21 +145,21 @@ function me(e, t, s, n) {
|
|
|
145
145
|
if (typeof o == "number")
|
|
146
146
|
r = o - 1;
|
|
147
147
|
else {
|
|
148
|
-
if (o ===
|
|
149
|
-
return
|
|
150
|
-
o ===
|
|
148
|
+
if (o === F)
|
|
149
|
+
return F;
|
|
150
|
+
o === x && (t.items.splice(r, 1), r -= 1);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
} else if (C(t)) {
|
|
154
154
|
n = Object.freeze(n.concat(t));
|
|
155
155
|
const r = yield me("key", t.key, s, n);
|
|
156
|
-
if (r ===
|
|
157
|
-
return
|
|
158
|
-
r ===
|
|
156
|
+
if (r === F)
|
|
157
|
+
return F;
|
|
158
|
+
r === x && (t.key = null);
|
|
159
159
|
const o = yield me("value", t.value, s, n);
|
|
160
|
-
if (o ===
|
|
161
|
-
return
|
|
162
|
-
o ===
|
|
160
|
+
if (o === F)
|
|
161
|
+
return F;
|
|
162
|
+
o === x && (t.value = null);
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
return i;
|
|
@@ -216,12 +216,12 @@ const Ei = {
|
|
|
216
216
|
"{": "%7B",
|
|
217
217
|
"}": "%7D"
|
|
218
218
|
}, Ti = (e) => e.replace(/[!,[\]{}]/g, (t) => Ei[t]);
|
|
219
|
-
class
|
|
219
|
+
class q {
|
|
220
220
|
constructor(t, s) {
|
|
221
|
-
this.docStart = null, this.docEnd = !1, this.yaml = Object.assign({},
|
|
221
|
+
this.docStart = null, this.docEnd = !1, this.yaml = Object.assign({}, q.defaultYaml, t), this.tags = Object.assign({}, q.defaultTags, s);
|
|
222
222
|
}
|
|
223
223
|
clone() {
|
|
224
|
-
const t = new
|
|
224
|
+
const t = new q(this.yaml, this.tags);
|
|
225
225
|
return t.docStart = this.docStart, t;
|
|
226
226
|
}
|
|
227
227
|
/**
|
|
@@ -229,16 +229,16 @@ class F {
|
|
|
229
229
|
* update the stream state according to the current version's spec.
|
|
230
230
|
*/
|
|
231
231
|
atDocument() {
|
|
232
|
-
const t = new
|
|
232
|
+
const t = new q(this.yaml, this.tags);
|
|
233
233
|
switch (this.yaml.version) {
|
|
234
234
|
case "1.1":
|
|
235
235
|
this.atNextDocument = !0;
|
|
236
236
|
break;
|
|
237
237
|
case "1.2":
|
|
238
238
|
this.atNextDocument = !1, this.yaml = {
|
|
239
|
-
explicit:
|
|
239
|
+
explicit: q.defaultYaml.explicit,
|
|
240
240
|
version: "1.2"
|
|
241
|
-
}, this.tags = Object.assign({},
|
|
241
|
+
}, this.tags = Object.assign({}, q.defaultTags);
|
|
242
242
|
break;
|
|
243
243
|
}
|
|
244
244
|
return t;
|
|
@@ -248,7 +248,7 @@ class F {
|
|
|
248
248
|
* @returns `true` on success
|
|
249
249
|
*/
|
|
250
250
|
add(t, s) {
|
|
251
|
-
this.atNextDocument && (this.yaml = { explicit:
|
|
251
|
+
this.atNextDocument && (this.yaml = { explicit: q.defaultYaml.explicit, version: "1.1" }, this.tags = Object.assign({}, q.defaultTags), this.atNextDocument = !1);
|
|
252
252
|
const n = t.trim().split(/[ \t]+/), i = n.shift();
|
|
253
253
|
switch (i) {
|
|
254
254
|
case "%TAG": {
|
|
@@ -324,8 +324,8 @@ class F {
|
|
|
324
324
|
`);
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
|
|
328
|
-
|
|
327
|
+
q.defaultYaml = { explicit: !1, version: "1.2" };
|
|
328
|
+
q.defaultTags = { "!!": "tag:yaml.org,2002:" };
|
|
329
329
|
function nn(e) {
|
|
330
330
|
if (/[\x00-\x19\s,[\]{}]/.test(e)) {
|
|
331
331
|
const s = `Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;
|
|
@@ -477,7 +477,7 @@ class at extends Yt {
|
|
|
477
477
|
const l = "This should not happen: Alias anchor was not resolved?";
|
|
478
478
|
throw new ReferenceError(l);
|
|
479
479
|
}
|
|
480
|
-
if (r >= 0 && (a.count += 1, a.aliasCount === 0 && (a.aliasCount =
|
|
480
|
+
if (r >= 0 && (a.count += 1, a.aliasCount === 0 && (a.aliasCount = Ge(i, o, n)), a.count * a.aliasCount > r)) {
|
|
481
481
|
const l = "Excessive alias count indicates a resource exhaustion attack";
|
|
482
482
|
throw new ReferenceError(l);
|
|
483
483
|
}
|
|
@@ -496,19 +496,19 @@ class at extends Yt {
|
|
|
496
496
|
return i;
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function Ge(e, t, s) {
|
|
500
500
|
if (ce(t)) {
|
|
501
501
|
const n = t.resolve(e), i = s && n && s.get(n);
|
|
502
502
|
return i ? i.count * i.aliasCount : 0;
|
|
503
503
|
} else if (_(t)) {
|
|
504
504
|
let n = 0;
|
|
505
505
|
for (const i of t.items) {
|
|
506
|
-
const r =
|
|
506
|
+
const r = Ge(e, i, s);
|
|
507
507
|
r > n && (n = r);
|
|
508
508
|
}
|
|
509
509
|
return n;
|
|
510
510
|
} else if (C(t)) {
|
|
511
|
-
const n =
|
|
511
|
+
const n = Ge(e, t.key, s), i = Ge(e, t.value, s);
|
|
512
512
|
return Math.max(n, i);
|
|
513
513
|
}
|
|
514
514
|
return 1;
|
|
@@ -1233,7 +1233,7 @@ class j {
|
|
|
1233
1233
|
}
|
|
1234
1234
|
function dn(e, t, s) {
|
|
1235
1235
|
var r;
|
|
1236
|
-
return (((r = t.inFlow) != null ? r : e.flow) ?
|
|
1236
|
+
return (((r = t.inFlow) != null ? r : e.flow) ? qi : ji)(e, t, s);
|
|
1237
1237
|
}
|
|
1238
1238
|
function ji({ comment: e, items: t }, s, { blockItemPrefix: n, flowChars: i, itemIndent: r, onChompKeep: o, onComment: a }) {
|
|
1239
1239
|
const { indent: l, options: { commentString: c } } = s, h = Object.assign({}, s, { indent: r, type: null });
|
|
@@ -1267,7 +1267,7 @@ ${l}${f}` : `
|
|
|
1267
1267
|
return e ? (y += `
|
|
1268
1268
|
` + H(c(e), l), a && a()) : u && o && o(), y;
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function qi({ items: e }, t, { flowChars: s, itemIndent: n }) {
|
|
1271
1271
|
const { indent: i, indentStep: r, flowCollectionPadding: o, options: { commentString: a } } = t;
|
|
1272
1272
|
n += r;
|
|
1273
1273
|
const l = Object.assign({}, t, {
|
|
@@ -1537,14 +1537,14 @@ const Le = {
|
|
|
1537
1537
|
test: /^(?:~|[Nn]ull|NULL)?$/,
|
|
1538
1538
|
resolve: () => new A(null),
|
|
1539
1539
|
stringify: ({ source: e }, t) => typeof e == "string" && ht.test.test(e) ? e : t.options.nullStr
|
|
1540
|
-
},
|
|
1540
|
+
}, xt = {
|
|
1541
1541
|
identify: (e) => typeof e == "boolean",
|
|
1542
1542
|
default: !0,
|
|
1543
1543
|
tag: "tag:yaml.org,2002:bool",
|
|
1544
1544
|
test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
|
|
1545
1545
|
resolve: (e) => new A(e[0] === "t" || e[0] === "T"),
|
|
1546
1546
|
stringify({ source: e, value: t }, s) {
|
|
1547
|
-
if (e &&
|
|
1547
|
+
if (e && xt.test.test(e)) {
|
|
1548
1548
|
const n = e[0] === "t" || e[0] === "T";
|
|
1549
1549
|
if (t === n)
|
|
1550
1550
|
return e;
|
|
@@ -1596,7 +1596,7 @@ const pn = {
|
|
|
1596
1596
|
return s !== -1 && e[e.length - 1] === "0" && (t.minFractionDigits = e.length - s - 1), t;
|
|
1597
1597
|
},
|
|
1598
1598
|
stringify: Y
|
|
1599
|
-
}, dt = (e) => typeof e == "bigint" || Number.isInteger(e),
|
|
1599
|
+
}, dt = (e) => typeof e == "bigint" || Number.isInteger(e), Gt = (e, t, s, { intAsBigInt: n }) => n ? BigInt(e) : parseInt(e.substring(t), s);
|
|
1600
1600
|
function gn(e, t, s) {
|
|
1601
1601
|
const { value: n } = e;
|
|
1602
1602
|
return dt(n) && n >= 0 ? s + n.toString(t) : Y(e);
|
|
@@ -1607,14 +1607,14 @@ const bn = {
|
|
|
1607
1607
|
tag: "tag:yaml.org,2002:int",
|
|
1608
1608
|
format: "OCT",
|
|
1609
1609
|
test: /^0o[0-7]+$/,
|
|
1610
|
-
resolve: (e, t, s) =>
|
|
1610
|
+
resolve: (e, t, s) => Gt(e, 2, 8, s),
|
|
1611
1611
|
stringify: (e) => gn(e, 8, "0o")
|
|
1612
1612
|
}, wn = {
|
|
1613
1613
|
identify: dt,
|
|
1614
1614
|
default: !0,
|
|
1615
1615
|
tag: "tag:yaml.org,2002:int",
|
|
1616
1616
|
test: /^[-+]?[0-9]+$/,
|
|
1617
|
-
resolve: (e, t, s) =>
|
|
1617
|
+
resolve: (e, t, s) => Gt(e, 0, 10, s),
|
|
1618
1618
|
stringify: Y
|
|
1619
1619
|
}, Sn = {
|
|
1620
1620
|
identify: (e) => dt(e) && e >= 0,
|
|
@@ -1622,14 +1622,14 @@ const bn = {
|
|
|
1622
1622
|
tag: "tag:yaml.org,2002:int",
|
|
1623
1623
|
format: "HEX",
|
|
1624
1624
|
test: /^0x[0-9a-fA-F]+$/,
|
|
1625
|
-
resolve: (e, t, s) =>
|
|
1625
|
+
resolve: (e, t, s) => Gt(e, 2, 16, s),
|
|
1626
1626
|
stringify: (e) => gn(e, 16, "0x")
|
|
1627
|
-
},
|
|
1627
|
+
}, Fi = [
|
|
1628
1628
|
Ce,
|
|
1629
1629
|
Le,
|
|
1630
1630
|
ut,
|
|
1631
1631
|
ht,
|
|
1632
|
-
|
|
1632
|
+
xt,
|
|
1633
1633
|
bn,
|
|
1634
1634
|
wn,
|
|
1635
1635
|
Sn,
|
|
@@ -1925,14 +1925,14 @@ const Yi = {
|
|
|
1925
1925
|
test: /^[-+]?0[0-7_]+$/,
|
|
1926
1926
|
resolve: (e, t, s) => pt(e, 1, 8, s),
|
|
1927
1927
|
stringify: (e) => es(e, 8, "0")
|
|
1928
|
-
},
|
|
1928
|
+
}, xi = {
|
|
1929
1929
|
identify: Ue,
|
|
1930
1930
|
default: !0,
|
|
1931
1931
|
tag: "tag:yaml.org,2002:int",
|
|
1932
1932
|
test: /^[-+]?[0-9][0-9_]*$/,
|
|
1933
1933
|
resolve: (e, t, s) => pt(e, 0, 10, s),
|
|
1934
1934
|
stringify: Y
|
|
1935
|
-
},
|
|
1935
|
+
}, Gi = {
|
|
1936
1936
|
identify: Ue,
|
|
1937
1937
|
default: !0,
|
|
1938
1938
|
tag: "tag:yaml.org,2002:int",
|
|
@@ -2061,8 +2061,8 @@ const In = {
|
|
|
2061
2061
|
En,
|
|
2062
2062
|
Yi,
|
|
2063
2063
|
Wi,
|
|
2064
|
-
Gi,
|
|
2065
2064
|
xi,
|
|
2065
|
+
Gi,
|
|
2066
2066
|
vi,
|
|
2067
2067
|
Ji,
|
|
2068
2068
|
Qi,
|
|
@@ -2074,14 +2074,14 @@ const In = {
|
|
|
2074
2074
|
Cn,
|
|
2075
2075
|
mt
|
|
2076
2076
|
], ks = /* @__PURE__ */ new Map([
|
|
2077
|
-
["core",
|
|
2077
|
+
["core", Fi],
|
|
2078
2078
|
["failsafe", [Ce, Le, ut]],
|
|
2079
2079
|
["json", Vi],
|
|
2080
2080
|
["yaml11", Ss],
|
|
2081
2081
|
["yaml-1.1", Ss]
|
|
2082
2082
|
]), Os = {
|
|
2083
2083
|
binary: Ht,
|
|
2084
|
-
bool:
|
|
2084
|
+
bool: xt,
|
|
2085
2085
|
float: yn,
|
|
2086
2086
|
floatExp: mn,
|
|
2087
2087
|
floatNaN: pn,
|
|
@@ -2198,7 +2198,7 @@ class _e {
|
|
|
2198
2198
|
}, n);
|
|
2199
2199
|
this.options = r;
|
|
2200
2200
|
let { version: o } = r;
|
|
2201
|
-
n != null && n._directives ? (this.directives = n._directives.atDocument(), this.directives.yaml.explicit && (o = this.directives.yaml.version)) : this.directives = new
|
|
2201
|
+
n != null && n._directives ? (this.directives = n._directives.atDocument(), this.directives.yaml.explicit && (o = this.directives.yaml.version)) : this.directives = new q({ version: o }), this.setSchema(o, n), this.contents = t === void 0 ? null : this.createNode(t, i, n);
|
|
2202
2202
|
}
|
|
2203
2203
|
/**
|
|
2204
2204
|
* Create a deep copy of this Document and its contents.
|
|
@@ -2336,11 +2336,11 @@ class _e {
|
|
|
2336
2336
|
let n;
|
|
2337
2337
|
switch (t) {
|
|
2338
2338
|
case "1.1":
|
|
2339
|
-
this.directives ? this.directives.yaml.version = "1.1" : this.directives = new
|
|
2339
|
+
this.directives ? this.directives.yaml.version = "1.1" : this.directives = new q({ version: "1.1" }), n = { merge: !0, resolveKnownTags: !1, schema: "yaml-1.1" };
|
|
2340
2340
|
break;
|
|
2341
2341
|
case "1.2":
|
|
2342
2342
|
case "next":
|
|
2343
|
-
this.directives ? this.directives.yaml.version = t : this.directives = new
|
|
2343
|
+
this.directives ? this.directives.yaml.version = t : this.directives = new q({ version: t }), n = { merge: !1, resolveKnownTags: !0, schema: "core" };
|
|
2344
2344
|
break;
|
|
2345
2345
|
case null:
|
|
2346
2346
|
this.directives && delete this.directives, n = null;
|
|
@@ -3228,7 +3228,7 @@ class rs {
|
|
|
3228
3228
|
this.doc = null, this.atDirectives = !1, this.prelude = [], this.errors = [], this.warnings = [], this.onError = (s, n, i, r) => {
|
|
3229
3229
|
const o = $e(s);
|
|
3230
3230
|
r ? this.warnings.push(new Ln(o, n, i)) : this.errors.push(new ae(o, n, i));
|
|
3231
|
-
}, this.directives = new
|
|
3231
|
+
}, this.directives = new q({ version: t.version || "1.2" }), this.options = t;
|
|
3232
3232
|
}
|
|
3233
3233
|
decorate(t, s) {
|
|
3234
3234
|
const { comment: n, afterEmptyLine: i } = Ns(this.prelude);
|
|
@@ -3603,7 +3603,7 @@ function Tr(e) {
|
|
|
3603
3603
|
return JSON.stringify(e);
|
|
3604
3604
|
}
|
|
3605
3605
|
}
|
|
3606
|
-
function
|
|
3606
|
+
function qn(e) {
|
|
3607
3607
|
switch (e) {
|
|
3608
3608
|
case gt:
|
|
3609
3609
|
return "byte-order-mark";
|
|
@@ -3677,7 +3677,7 @@ const Ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3677
3677
|
resolveAsScalar: br,
|
|
3678
3678
|
setScalarValue: Sr,
|
|
3679
3679
|
stringify: Or,
|
|
3680
|
-
tokenType:
|
|
3680
|
+
tokenType: qn,
|
|
3681
3681
|
visit: le
|
|
3682
3682
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3683
3683
|
function Q(e) {
|
|
@@ -3695,7 +3695,7 @@ function Q(e) {
|
|
|
3695
3695
|
}
|
|
3696
3696
|
const Es = new Set("0123456789ABCDEFabcdef"), Cr = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), We = new Set(",[]{}"), Lr = new Set(` ,[]{}
|
|
3697
3697
|
\r `), Lt = (e) => !e || Lr.has(e);
|
|
3698
|
-
class
|
|
3698
|
+
class Fn {
|
|
3699
3699
|
constructor() {
|
|
3700
3700
|
this.atEnd = !1, this.blockScalarIndent = -1, this.blockScalarKeep = !1, this.buffer = "", this.flowKey = !1, this.flowLevel = 0, this.indentNext = 0, this.indentValue = 0, this.lineEndPos = null, this.next = null, this.pos = 0;
|
|
3701
3701
|
}
|
|
@@ -4154,7 +4154,7 @@ function Un(e) {
|
|
|
4154
4154
|
return !1;
|
|
4155
4155
|
}
|
|
4156
4156
|
}
|
|
4157
|
-
function
|
|
4157
|
+
function xe(e) {
|
|
4158
4158
|
var t;
|
|
4159
4159
|
switch (e.type) {
|
|
4160
4160
|
case "document":
|
|
@@ -4199,7 +4199,7 @@ class os {
|
|
|
4199
4199
|
* each new line (in `parse()`, including the start of input).
|
|
4200
4200
|
*/
|
|
4201
4201
|
constructor(t) {
|
|
4202
|
-
this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new
|
|
4202
|
+
this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new Fn(), this.onNewLine = t;
|
|
4203
4203
|
}
|
|
4204
4204
|
/**
|
|
4205
4205
|
* Parse `source` as a YAML stream.
|
|
@@ -4223,7 +4223,7 @@ class os {
|
|
|
4223
4223
|
this.atScalar = !1, yield* d(this.step()), this.offset += t.length;
|
|
4224
4224
|
return;
|
|
4225
4225
|
}
|
|
4226
|
-
const s =
|
|
4226
|
+
const s = qn(t);
|
|
4227
4227
|
if (s)
|
|
4228
4228
|
if (s === "scalar")
|
|
4229
4229
|
this.atNewLine = !1, this.atScalar = !0, this.type = "scalar";
|
|
@@ -4406,7 +4406,7 @@ class os {
|
|
|
4406
4406
|
}
|
|
4407
4407
|
*scalar(t) {
|
|
4408
4408
|
if (this.type === "map-value-ind") {
|
|
4409
|
-
const s =
|
|
4409
|
+
const s = xe(this.peek(2)), n = de(s);
|
|
4410
4410
|
let i;
|
|
4411
4411
|
t.end ? (i = t.end, i.push(this.sourceToken), delete t.end) : i = [this.sourceToken];
|
|
4412
4412
|
const r = {
|
|
@@ -4655,7 +4655,7 @@ class os {
|
|
|
4655
4655
|
if (n.type === "block-map" && (this.type === "map-value-ind" && n.indent === t.indent || this.type === "newline" && !n.items[n.items.length - 1].sep))
|
|
4656
4656
|
yield* d(this.pop()), yield* d(this.step());
|
|
4657
4657
|
else if (this.type === "map-value-ind" && n.type !== "flow-collection") {
|
|
4658
|
-
const i =
|
|
4658
|
+
const i = xe(n), r = de(i);
|
|
4659
4659
|
Is(t);
|
|
4660
4660
|
const o = t.end.splice(1, t.end.length);
|
|
4661
4661
|
o.push(this.sourceToken);
|
|
@@ -4719,7 +4719,7 @@ class os {
|
|
|
4719
4719
|
};
|
|
4720
4720
|
case "explicit-key-ind": {
|
|
4721
4721
|
this.onKeyLine = !0;
|
|
4722
|
-
const s =
|
|
4722
|
+
const s = xe(t), n = de(s);
|
|
4723
4723
|
return n.push(this.sourceToken), {
|
|
4724
4724
|
type: "block-map",
|
|
4725
4725
|
offset: this.offset,
|
|
@@ -4729,7 +4729,7 @@ class os {
|
|
|
4729
4729
|
}
|
|
4730
4730
|
case "map-value-ind": {
|
|
4731
4731
|
this.onKeyLine = !0;
|
|
4732
|
-
const s =
|
|
4732
|
+
const s = xe(t), n = de(s);
|
|
4733
4733
|
return {
|
|
4734
4734
|
type: "block-map",
|
|
4735
4735
|
offset: this.offset,
|
|
@@ -4821,7 +4821,7 @@ const Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4821
4821
|
CST: Ir,
|
|
4822
4822
|
Composer: rs,
|
|
4823
4823
|
Document: _e,
|
|
4824
|
-
Lexer:
|
|
4824
|
+
Lexer: Fn,
|
|
4825
4825
|
LineCounter: zn,
|
|
4826
4826
|
Pair: j,
|
|
4827
4827
|
Parser: os,
|
|
@@ -5183,35 +5183,35 @@ const Br = (e, t) => {
|
|
|
5183
5183
|
filtersString: Vt(e.filters),
|
|
5184
5184
|
componentString: "Dashboard",
|
|
5185
5185
|
extraImportsString: vt(e.filters || e.widgets.map((r) => "filters" in r ? r.filters : []).flat().filter((r) => r !== void 0) || [], n),
|
|
5186
|
-
tabbersOptionsString:
|
|
5187
|
-
layoutOptionsString:
|
|
5188
|
-
widgetsOptionsString:
|
|
5189
|
-
styleOptionsString:
|
|
5186
|
+
tabbersOptionsString: G(e.tabbersOptions || {}, Je),
|
|
5187
|
+
layoutOptionsString: G(e.layoutOptions || {}, Je),
|
|
5188
|
+
widgetsOptionsString: G(e.widgetsOptions || {}, Je, !0),
|
|
5189
|
+
styleOptionsString: G(e.styleOptions || {}, Je)
|
|
5190
5190
|
};
|
|
5191
5191
|
return rt(s, i, t);
|
|
5192
|
-
},
|
|
5192
|
+
}, qr = (e) => gi(e) ? Kr(e) : jr(e), $o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5193
5193
|
__proto__: null,
|
|
5194
|
-
toDashboardCode:
|
|
5195
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5194
|
+
toDashboardCode: qr
|
|
5195
|
+
}, Symbol.toStringTag, { value: "Module" })), Fr = "executeQueryTmpl", zr = "executePivotQueryTmpl", Ur = (e, t, s) => {
|
|
5196
5196
|
const n = zt(e), i = {
|
|
5197
5197
|
dataSourceString: Ut(e.dataSource),
|
|
5198
|
-
dimensionsString:
|
|
5199
|
-
measuresString:
|
|
5198
|
+
dimensionsString: G(e.dimensions || []),
|
|
5199
|
+
measuresString: G(e.measures || []),
|
|
5200
5200
|
filtersString: Vt(e.filters),
|
|
5201
|
-
highlightsString:
|
|
5201
|
+
highlightsString: G(e.highlights || []),
|
|
5202
5202
|
extraImportsString: vt(e.filters || [], n)
|
|
5203
5203
|
};
|
|
5204
5204
|
return rt(s, i, t);
|
|
5205
5205
|
}, Vr = (e, t, s) => {
|
|
5206
5206
|
const n = zt(e), i = {
|
|
5207
5207
|
dataSourceString: Ut(e.dataSource),
|
|
5208
|
-
rowsString:
|
|
5209
|
-
valuesString:
|
|
5208
|
+
rowsString: G(e.rows || []),
|
|
5209
|
+
valuesString: G(e.values || []),
|
|
5210
5210
|
filtersString: Vt(e.filters),
|
|
5211
5211
|
extraImportsString: vt(e.filters || [], n)
|
|
5212
5212
|
};
|
|
5213
5213
|
return rt(s, i, t);
|
|
5214
|
-
}, vr = ({ queryParams: e, uiFramework: t = "react" }) => Ur(e, t,
|
|
5214
|
+
}, vr = ({ queryParams: e, uiFramework: t = "react" }) => Ur(e, t, Fr), Jr = ({ pivotQueryParams: e, uiFramework: t = "react" }) => Vr(e, t, zr), Qr = (e) => vr(e), Yr = (e) => Jr(e), Mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5215
5215
|
__proto__: null,
|
|
5216
5216
|
toExecutePivotQueryCode: Yr,
|
|
5217
5217
|
toExecuteQueryCode: Qr
|
|
@@ -5250,7 +5250,7 @@ class Jn {
|
|
|
5250
5250
|
return this.kv.getByKey(t);
|
|
5251
5251
|
}
|
|
5252
5252
|
}
|
|
5253
|
-
class
|
|
5253
|
+
class xr extends Jn {
|
|
5254
5254
|
constructor() {
|
|
5255
5255
|
super((t) => t.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
|
|
5256
5256
|
}
|
|
@@ -5261,7 +5261,7 @@ class Gr extends Jn {
|
|
|
5261
5261
|
return this.classToAllowedProps.get(t);
|
|
5262
5262
|
}
|
|
5263
5263
|
}
|
|
5264
|
-
function
|
|
5264
|
+
function Gr(e) {
|
|
5265
5265
|
if ("values" in Object)
|
|
5266
5266
|
return Object.values(e);
|
|
5267
5267
|
const t = [];
|
|
@@ -5270,7 +5270,7 @@ function xr(e) {
|
|
|
5270
5270
|
return t;
|
|
5271
5271
|
}
|
|
5272
5272
|
function Hr(e, t) {
|
|
5273
|
-
const s =
|
|
5273
|
+
const s = Gr(e);
|
|
5274
5274
|
if ("find" in s)
|
|
5275
5275
|
return s.find(t);
|
|
5276
5276
|
const n = s;
|
|
@@ -5307,7 +5307,7 @@ class Xr {
|
|
|
5307
5307
|
return this.transfomers[t];
|
|
5308
5308
|
}
|
|
5309
5309
|
}
|
|
5310
|
-
const Zr = (e) => Object.prototype.toString.call(e).slice(8, -1), Qn = (e) => typeof e == "undefined", eo = (e) => e === null, je = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, Kt = (e) => je(e) && Object.keys(e).length === 0, se = (e) => Array.isArray(e), to = (e) => typeof e == "string", so = (e) => typeof e == "number" && !isNaN(e), no = (e) => typeof e == "boolean", io = (e) => e instanceof RegExp,
|
|
5310
|
+
const Zr = (e) => Object.prototype.toString.call(e).slice(8, -1), Qn = (e) => typeof e == "undefined", eo = (e) => e === null, je = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, Kt = (e) => je(e) && Object.keys(e).length === 0, se = (e) => Array.isArray(e), to = (e) => typeof e == "string", so = (e) => typeof e == "number" && !isNaN(e), no = (e) => typeof e == "boolean", io = (e) => e instanceof RegExp, qe = (e) => e instanceof Map, Fe = (e) => e instanceof Set, Yn = (e) => Zr(e) === "Symbol", ro = (e) => e instanceof Date && !isNaN(e.valueOf()), oo = (e) => e instanceof Error, _s = (e) => typeof e == "number" && isNaN(e), ao = (e) => no(e) || eo(e) || Qn(e) || so(e) || to(e) || Yn(e), lo = (e) => typeof e == "bigint", co = (e) => e === 1 / 0 || e === -1 / 0, fo = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), uo = (e) => e instanceof URL, Wn = (e) => e.replace(/\./g, "\\."), _t = (e) => e.map(String).map(Wn).join("."), Be = (e) => {
|
|
5311
5311
|
const t = [];
|
|
5312
5312
|
let s = "";
|
|
5313
5313
|
for (let i = 0; i < e.length; i++) {
|
|
@@ -5333,7 +5333,7 @@ function W(e, t, s, n) {
|
|
|
5333
5333
|
untransform: n
|
|
5334
5334
|
};
|
|
5335
5335
|
}
|
|
5336
|
-
const
|
|
5336
|
+
const xn = [
|
|
5337
5337
|
W(Qn, "undefined", () => null, () => {
|
|
5338
5338
|
}),
|
|
5339
5339
|
W(lo, "bigint", (e) => e.toString(), (e) => typeof BigInt != "undefined" ? BigInt(e) : (console.error("Please add a BigInt polyfill."), e)),
|
|
@@ -5357,14 +5357,14 @@ const Gn = [
|
|
|
5357
5357
|
return new RegExp(t, s);
|
|
5358
5358
|
}),
|
|
5359
5359
|
W(
|
|
5360
|
-
|
|
5360
|
+
Fe,
|
|
5361
5361
|
"set",
|
|
5362
5362
|
// (sets only exist in es6+)
|
|
5363
5363
|
// eslint-disable-next-line es5/no-es6-methods
|
|
5364
5364
|
(e) => [...e.values()],
|
|
5365
5365
|
(e) => new Set(e)
|
|
5366
5366
|
),
|
|
5367
|
-
W(
|
|
5367
|
+
W(qe, "map", (e) => [...e.entries()], (e) => new Map(e)),
|
|
5368
5368
|
W((e) => _s(e) || co(e), "number", (e) => _s(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
|
|
5369
5369
|
W((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
|
|
5370
5370
|
W(uo, "URL", (e) => e.toString(), (e) => new URL(e))
|
|
@@ -5377,7 +5377,7 @@ function St(e, t, s, n) {
|
|
|
5377
5377
|
untransform: n
|
|
5378
5378
|
};
|
|
5379
5379
|
}
|
|
5380
|
-
const
|
|
5380
|
+
const Gn = St((e, t) => Yn(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, s) => {
|
|
5381
5381
|
const n = s.symbolRegistry.getValue(t[1]);
|
|
5382
5382
|
if (!n)
|
|
5383
5383
|
throw new Error("Trying to deserialize unknown symbol");
|
|
@@ -5419,28 +5419,28 @@ const Zn = St(Xn, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructo
|
|
|
5419
5419
|
if (!n)
|
|
5420
5420
|
throw new Error("Trying to deserialize unknown custom value");
|
|
5421
5421
|
return n.deserialize(e);
|
|
5422
|
-
}), po = [Zn,
|
|
5422
|
+
}), po = [Zn, Gn, ei, Hn], $s = (e, t) => {
|
|
5423
5423
|
const s = Ls(po, (i) => i.isApplicable(e, t));
|
|
5424
5424
|
if (s)
|
|
5425
5425
|
return {
|
|
5426
5426
|
value: s.transform(e, t),
|
|
5427
5427
|
type: s.annotation(e, t)
|
|
5428
5428
|
};
|
|
5429
|
-
const n = Ls(
|
|
5429
|
+
const n = Ls(xn, (i) => i.isApplicable(e, t));
|
|
5430
5430
|
if (n)
|
|
5431
5431
|
return {
|
|
5432
5432
|
value: n.transform(e, t),
|
|
5433
5433
|
type: n.annotation
|
|
5434
5434
|
};
|
|
5435
5435
|
}, ti = {};
|
|
5436
|
-
|
|
5436
|
+
xn.forEach((e) => {
|
|
5437
5437
|
ti[e.annotation] = e;
|
|
5438
5438
|
});
|
|
5439
5439
|
const mo = (e, t, s) => {
|
|
5440
5440
|
if (se(t))
|
|
5441
5441
|
switch (t[0]) {
|
|
5442
5442
|
case "symbol":
|
|
5443
|
-
return
|
|
5443
|
+
return Gn.untransform(e, t, s);
|
|
5444
5444
|
case "class":
|
|
5445
5445
|
return Zn.untransform(e, t, s);
|
|
5446
5446
|
case "custom":
|
|
@@ -5476,9 +5476,9 @@ const yo = (e, t) => {
|
|
|
5476
5476
|
si(t);
|
|
5477
5477
|
for (let s = 0; s < t.length; s++) {
|
|
5478
5478
|
const n = t[s];
|
|
5479
|
-
if (
|
|
5479
|
+
if (Fe(e))
|
|
5480
5480
|
e = be(e, +n);
|
|
5481
|
-
else if (
|
|
5481
|
+
else if (qe(e)) {
|
|
5482
5482
|
const i = +n, r = +t[++s] == 0 ? "key" : "value", o = be(e, i);
|
|
5483
5483
|
switch (r) {
|
|
5484
5484
|
case "key":
|
|
@@ -5503,10 +5503,10 @@ const yo = (e, t) => {
|
|
|
5503
5503
|
n = n[a];
|
|
5504
5504
|
} else if (je(n))
|
|
5505
5505
|
n = n[o];
|
|
5506
|
-
else if (
|
|
5506
|
+
else if (Fe(n)) {
|
|
5507
5507
|
const a = +o;
|
|
5508
5508
|
n = be(n, a);
|
|
5509
|
-
} else if (
|
|
5509
|
+
} else if (qe(n)) {
|
|
5510
5510
|
if (r === t.length - 2)
|
|
5511
5511
|
break;
|
|
5512
5512
|
const l = +o, c = +t[++r] == 0 ? "key" : "value", h = be(n, l);
|
|
@@ -5521,11 +5521,11 @@ const yo = (e, t) => {
|
|
|
5521
5521
|
}
|
|
5522
5522
|
}
|
|
5523
5523
|
const i = t[t.length - 1];
|
|
5524
|
-
if (se(n) ? n[+i] = s(n[+i]) : je(n) && (n[i] = s(n[i])),
|
|
5524
|
+
if (se(n) ? n[+i] = s(n[+i]) : je(n) && (n[i] = s(n[i])), Fe(n)) {
|
|
5525
5525
|
const r = be(n, +i), o = s(r);
|
|
5526
5526
|
r !== o && (n.delete(r), n.add(o));
|
|
5527
5527
|
}
|
|
5528
|
-
if (
|
|
5528
|
+
if (qe(n)) {
|
|
5529
5529
|
const r = +t[t.length - 2], o = be(n, r);
|
|
5530
5530
|
switch (+i == 0 ? "key" : "value") {
|
|
5531
5531
|
case "key": {
|
|
@@ -5541,20 +5541,20 @@ const yo = (e, t) => {
|
|
|
5541
5541
|
}
|
|
5542
5542
|
return e;
|
|
5543
5543
|
};
|
|
5544
|
-
function
|
|
5544
|
+
function qt(e, t, s = []) {
|
|
5545
5545
|
if (!e)
|
|
5546
5546
|
return;
|
|
5547
5547
|
if (!se(e)) {
|
|
5548
|
-
Ae(e, (r, o) =>
|
|
5548
|
+
Ae(e, (r, o) => qt(r, t, [...s, ...Be(o)]));
|
|
5549
5549
|
return;
|
|
5550
5550
|
}
|
|
5551
5551
|
const [n, i] = e;
|
|
5552
5552
|
i && Ae(i, (r, o) => {
|
|
5553
|
-
|
|
5553
|
+
qt(r, t, [...s, ...Be(o)]);
|
|
5554
5554
|
}), t(n, s);
|
|
5555
5555
|
}
|
|
5556
5556
|
function go(e, t, s) {
|
|
5557
|
-
return
|
|
5557
|
+
return qt(t, (n, i) => {
|
|
5558
5558
|
e = jt(e, i, (r) => mo(r, n, s));
|
|
5559
5559
|
}), e;
|
|
5560
5560
|
}
|
|
@@ -5574,7 +5574,7 @@ function bo(e, t) {
|
|
|
5574
5574
|
Ae(t, s);
|
|
5575
5575
|
return e;
|
|
5576
5576
|
}
|
|
5577
|
-
const wo = (e, t) => je(e) || se(e) ||
|
|
5577
|
+
const wo = (e, t) => je(e) || se(e) || qe(e) || Fe(e) || Xn(e, t);
|
|
5578
5578
|
function So(e, t, s) {
|
|
5579
5579
|
const n = s.get(e);
|
|
5580
5580
|
n ? n.push(t) : s.set(e, [t]);
|
|
@@ -5653,16 +5653,16 @@ function Ao(e, t, s, n, i) {
|
|
|
5653
5653
|
configurable: !0
|
|
5654
5654
|
});
|
|
5655
5655
|
}
|
|
5656
|
-
function
|
|
5656
|
+
function Ft(e, t = {}) {
|
|
5657
5657
|
if (Ms(e))
|
|
5658
|
-
return e.map((i) =>
|
|
5658
|
+
return e.map((i) => Ft(i, t));
|
|
5659
5659
|
if (!Oo(e))
|
|
5660
5660
|
return e;
|
|
5661
5661
|
const s = Object.getOwnPropertyNames(e), n = Object.getOwnPropertySymbols(e);
|
|
5662
5662
|
return [...s, ...n].reduce((i, r) => {
|
|
5663
5663
|
if (Ms(t.props) && !t.props.includes(r))
|
|
5664
5664
|
return i;
|
|
5665
|
-
const o = e[r], a =
|
|
5665
|
+
const o = e[r], a = Ft(o, t);
|
|
5666
5666
|
return Ao(i, r, a, e, t.nonenumerable), i;
|
|
5667
5667
|
}, {});
|
|
5668
5668
|
}
|
|
@@ -5671,7 +5671,7 @@ class k {
|
|
|
5671
5671
|
* @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
|
|
5672
5672
|
*/
|
|
5673
5673
|
constructor({ dedupe: t = !1 } = {}) {
|
|
5674
|
-
this.classRegistry = new
|
|
5674
|
+
this.classRegistry = new xr(), this.symbolRegistry = new Jn((s) => {
|
|
5675
5675
|
var n;
|
|
5676
5676
|
return (n = s.description) != null ? n : "";
|
|
5677
5677
|
}), this.customTransformerRegistry = new Xr(), this.allowedErrorProps = [], this.dedupe = t;
|
|
@@ -5690,7 +5690,7 @@ class k {
|
|
|
5690
5690
|
}
|
|
5691
5691
|
deserialize(t) {
|
|
5692
5692
|
const { json: s, meta: n } = t;
|
|
5693
|
-
let i =
|
|
5693
|
+
let i = Ft(s);
|
|
5694
5694
|
return n != null && n.values && (i = go(i, n.values, this)), n != null && n.referentialEqualities && (i = bo(i, n.referentialEqualities)), i;
|
|
5695
5695
|
}
|
|
5696
5696
|
stringify(t) {
|
|
@@ -5732,7 +5732,7 @@ const fe = (e) => e === void 0 ? Ai.None : e, No = (e) => new Bs(e.metadataItem,
|
|
|
5732
5732
|
default:
|
|
5733
5733
|
return e;
|
|
5734
5734
|
}
|
|
5735
|
-
}, ri = (e) => new
|
|
5735
|
+
}, ri = (e) => new Gs(e.name, e.expression, e.attributes.map((t) => U(t)), e.dimensions.map((t) => Eo(t)), e.type, e.description, fe(e.sort), e.dataSource, e.composeCode, e.defaultAttribute ? U(e.defaultAttribute) : void 0), oi = (e) => new Hs(e.name, e.expression, e.description, fe(e.sort), e.dataSource, e.composeCode), Eo = (e) => {
|
|
5736
5736
|
switch (e.__serializable) {
|
|
5737
5737
|
case "DimensionalDimension":
|
|
5738
5738
|
return ri(e);
|
|
@@ -5791,11 +5791,11 @@ const fe = (e) => e === void 0 ? Ai.None : e, No = (e) => new Bs(e.metadataItem,
|
|
|
5791
5791
|
}, K = (e) => {
|
|
5792
5792
|
switch (e.__serializable) {
|
|
5793
5793
|
case "MembersFilter":
|
|
5794
|
-
return new
|
|
5794
|
+
return new qs(U(e.attribute), e.members, e.config.backgroundFilter ? J(R({}, e.config), {
|
|
5795
5795
|
backgroundFilter: K(e.config.backgroundFilter)
|
|
5796
5796
|
}) : e.config, e.composeCode);
|
|
5797
5797
|
case "LogicalAttributeFilter":
|
|
5798
|
-
return new
|
|
5798
|
+
return new Fs(e.filters.map((s) => K(s)), e.operator, e.config, e.composeCode);
|
|
5799
5799
|
case "CascadingFilter":
|
|
5800
5800
|
return new zs(e._filters.map((s) => K(s)), e.config, e.composeCode);
|
|
5801
5801
|
case "ExcludeFilter":
|
|
@@ -5815,7 +5815,7 @@ const fe = (e) => e === void 0 ? Ai.None : e, No = (e) => new Bs(e.metadataItem,
|
|
|
5815
5815
|
case "RelativeDateFilter":
|
|
5816
5816
|
return new Ws(U(e.attribute), e.offset, e.count, e.operator, e.anchor, e.config, e.composeCode);
|
|
5817
5817
|
case "CustomFilter":
|
|
5818
|
-
return new
|
|
5818
|
+
return new xs(U(e.attribute), e.jaqlExpression, e.config, e.composeCode);
|
|
5819
5819
|
default:
|
|
5820
5820
|
return e;
|
|
5821
5821
|
}
|
|
@@ -5836,7 +5836,7 @@ k.registerCustom({
|
|
|
5836
5836
|
deserialize: (e) => ls(e)
|
|
5837
5837
|
}, "DimensionalLevelAttribute");
|
|
5838
5838
|
k.registerCustom({
|
|
5839
|
-
isApplicable: (e) => e instanceof
|
|
5839
|
+
isApplicable: (e) => e instanceof Gs && e.type !== "datedimension",
|
|
5840
5840
|
serialize: (e) => e.serialize(),
|
|
5841
5841
|
deserialize: (e) => ri(e)
|
|
5842
5842
|
}, "DimensionalDimension");
|
|
@@ -5861,12 +5861,12 @@ k.registerCustom({
|
|
|
5861
5861
|
deserialize: (e) => ai(e)
|
|
5862
5862
|
}, "DimensionalMeasureTemplate");
|
|
5863
5863
|
k.registerCustom({
|
|
5864
|
-
isApplicable: (e) => e instanceof
|
|
5864
|
+
isApplicable: (e) => e instanceof qs,
|
|
5865
5865
|
serialize: (e) => e.serialize(),
|
|
5866
5866
|
deserialize: (e) => K(e)
|
|
5867
5867
|
}, "MembersFilter");
|
|
5868
5868
|
k.registerCustom({
|
|
5869
|
-
isApplicable: (e) => e instanceof
|
|
5869
|
+
isApplicable: (e) => e instanceof Fs,
|
|
5870
5870
|
serialize: (e) => e.serialize(),
|
|
5871
5871
|
deserialize: (e) => K(e)
|
|
5872
5872
|
}, "LogicalAttributeFilter");
|
|
@@ -5911,7 +5911,7 @@ k.registerCustom({
|
|
|
5911
5911
|
deserialize: (e) => K(e)
|
|
5912
5912
|
}, "RelativeDateFilter");
|
|
5913
5913
|
k.registerCustom({
|
|
5914
|
-
isApplicable: (e) => e instanceof
|
|
5914
|
+
isApplicable: (e) => e instanceof xs,
|
|
5915
5915
|
serialize: (e) => e.serialize(),
|
|
5916
5916
|
deserialize: (e) => K(e)
|
|
5917
5917
|
}, "CustomFilter");
|
|
@@ -5926,7 +5926,7 @@ export {
|
|
|
5926
5926
|
gi as isByIdDashboardCodeParams,
|
|
5927
5927
|
Ko as isByIdWidgetCodeParams,
|
|
5928
5928
|
jo as isClientSideDashboardCodeParams,
|
|
5929
|
-
|
|
5930
|
-
|
|
5929
|
+
qo as isClientSideWidgetCodeParams,
|
|
5930
|
+
Fo as simplifyMetadataItem,
|
|
5931
5931
|
zo as widgetComposer
|
|
5932
5932
|
};
|