@sisense/sdk-ui 2.0.0 → 2.1.1
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 +183 -183
- package/dist/{derive-chart-family-BLaI9-3r.js → derive-chart-family-C8duLtwv.js} +30285 -29376
- package/dist/{derive-chart-family-CxqjTyNt.cjs → derive-chart-family-CQ1Myy0A.cjs} +252 -252
- package/dist/{dimensions-C-VKss5V.cjs → dimensions-BBfnA6e8.cjs} +1 -1
- package/dist/{dimensions-Cfq9FexH.js → dimensions-DOWF8q44.js} +1 -1
- package/dist/index.cjs +29 -25
- package/dist/index.js +14054 -10744
- 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/dashboard/components/content-panel.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/cell-drop-overlay.d.ts +34 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/draggable-line.d.ts +24 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/draggable-widget-wrapper.d.ts +28 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/droppable-zone.d.ts +23 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/resizable-columns.d.ts +31 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/resizable-row.d.ts +39 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/row-drop-overlay.d.ts +30 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/const.d.ts +11 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/editable-layout.d.ts +28 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/helpers.d.ts +42 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/types.d.ts +78 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/utils.d.ts +5 -0
- package/dist/packages/sdk-ui/src/dashboard/constants.d.ts +0 -2
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +7 -1
- package/dist/packages/sdk-ui/src/dashboard/use-dashboard-theme.d.ts +4 -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/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +29 -17
- 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 +4 -0
- package/dist/packages/sdk-ui/src/types.d.ts +16 -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--6cyMg9O.js} +6632 -6282
- package/dist/use-common-filters-NTIrYvRs.cjs +271 -0
- package/dist/{widget-composer-C4rwNt4P.js → widget-composer-BZwsi1mW.js} +24 -24
- package/dist/{widget-composer-BJURHrVD.cjs → widget-composer-Bv_aqjLX.cjs} +1 -1
- package/package.json +11 -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
|
|
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-BZwsi1mW.js";
|
|
63
|
+
import { j as Ro, l as jo, m as Ko, k as qo, n as Fo, w as zo } from "./widget-composer-BZwsi1mW.js";
|
|
64
|
+
import { bd as Jt, b4 as bi, c4 as ys, d5 as wi, e6 as Si, aY as ki, bj as Oi, e7 as Ps, aP as Rs, e8 as js, e9 as Ks, ea as qs, eb as Fs, az as zs, ec as Us, ed as Vs, ee as vs, ef as Js, eg as Qs, eh as Ys, ei as Ws, ej as xs, aL as Ai } from "./derive-chart-family-C8duLtwv.js";
|
|
65
|
+
import { D as Gs, b as Hs } from "./dimensions-DOWF8q44.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;
|
|
@@ -1165,7 +1165,7 @@ function hn(e, t, { key: s, value: n }) {
|
|
|
1165
1165
|
else if (t instanceof Set)
|
|
1166
1166
|
t.add(i);
|
|
1167
1167
|
else {
|
|
1168
|
-
const r =
|
|
1168
|
+
const r = ji(s, i, e), o = V(n, r, e);
|
|
1169
1169
|
r in t ? Object.defineProperty(t, r, {
|
|
1170
1170
|
value: o,
|
|
1171
1171
|
writable: !0,
|
|
@@ -1191,7 +1191,7 @@ function At(e, t, s) {
|
|
|
1191
1191
|
});
|
|
1192
1192
|
return t;
|
|
1193
1193
|
}
|
|
1194
|
-
function
|
|
1194
|
+
function ji(e, t, s) {
|
|
1195
1195
|
if (t === null)
|
|
1196
1196
|
return "";
|
|
1197
1197
|
if (typeof t != "object")
|
|
@@ -1213,15 +1213,15 @@ function Ki(e, t, s) {
|
|
|
1213
1213
|
}
|
|
1214
1214
|
function Wt(e, t, s) {
|
|
1215
1215
|
const n = Pe(e, void 0, s), i = Pe(t, void 0, s);
|
|
1216
|
-
return new
|
|
1216
|
+
return new K(n, i);
|
|
1217
1217
|
}
|
|
1218
|
-
class
|
|
1218
|
+
class K {
|
|
1219
1219
|
constructor(t, s = null) {
|
|
1220
1220
|
Object.defineProperty(this, v, { value: Xs }), this.key = t, this.value = s;
|
|
1221
1221
|
}
|
|
1222
1222
|
clone(t) {
|
|
1223
1223
|
let { key: s, value: n } = this;
|
|
1224
|
-
return D(s) && (s = s.clone(t)), D(n) && (n = n.clone(t)), new
|
|
1224
|
+
return D(s) && (s = s.clone(t)), D(n) && (n = n.clone(t)), new K(s, n);
|
|
1225
1225
|
}
|
|
1226
1226
|
toJSON(t, s) {
|
|
1227
1227
|
const n = s != null && s.mapAsMap ? /* @__PURE__ */ new Map() : {};
|
|
@@ -1233,9 +1233,9 @@ 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 : Ki)(e, t, s);
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1238
|
+
function Ki({ 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 });
|
|
1240
1240
|
let u = !1;
|
|
1241
1241
|
const p = [];
|
|
@@ -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, {
|
|
@@ -1359,7 +1359,7 @@ class z extends ln {
|
|
|
1359
1359
|
add(t, s) {
|
|
1360
1360
|
var o;
|
|
1361
1361
|
let n;
|
|
1362
|
-
C(t) ? n = t : !t || typeof t != "object" || !("key" in t) ? n = new
|
|
1362
|
+
C(t) ? n = t : !t || typeof t != "object" || !("key" in t) ? n = new K(t, t == null ? void 0 : t.value) : n = new K(t.key, t.value);
|
|
1363
1363
|
const i = oe(this.items, n.key), r = (o = this.schema) == null ? void 0 : o.sortMapEntries;
|
|
1364
1364
|
if (i) {
|
|
1365
1365
|
if (!s)
|
|
@@ -1384,7 +1384,7 @@ class z extends ln {
|
|
|
1384
1384
|
return !!oe(this.items, t);
|
|
1385
1385
|
}
|
|
1386
1386
|
set(t, s) {
|
|
1387
|
-
this.add(new
|
|
1387
|
+
this.add(new K(t, s), !0);
|
|
1388
1388
|
}
|
|
1389
1389
|
/**
|
|
1390
1390
|
* @param ctx - Conversion context, originally set in Document#toJS()
|
|
@@ -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,
|
|
@@ -1742,7 +1742,7 @@ function kn(e, t) {
|
|
|
1742
1742
|
if (!C(i)) {
|
|
1743
1743
|
if (Te(i)) {
|
|
1744
1744
|
i.items.length > 1 && t("Each pair must have its own sequence indicator");
|
|
1745
|
-
const r = i.items[0] || new
|
|
1745
|
+
const r = i.items[0] || new K(new A(null));
|
|
1746
1746
|
if (i.commentBefore && (r.key.commentBefore = r.key.commentBefore ? `${i.commentBefore}
|
|
1747
1747
|
${r.key.commentBefore}` : i.commentBefore), i.comment) {
|
|
1748
1748
|
const o = (s = r.value) != null ? s : r.key;
|
|
@@ -1751,7 +1751,7 @@ ${o.comment}` : i.comment;
|
|
|
1751
1751
|
}
|
|
1752
1752
|
i = r;
|
|
1753
1753
|
}
|
|
1754
|
-
e.items[n] = C(i) ? i : new
|
|
1754
|
+
e.items[n] = C(i) ? i : new K(i);
|
|
1755
1755
|
}
|
|
1756
1756
|
}
|
|
1757
1757
|
else
|
|
@@ -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",
|
|
@@ -1947,7 +1947,7 @@ class Se extends z {
|
|
|
1947
1947
|
}
|
|
1948
1948
|
add(t) {
|
|
1949
1949
|
let s;
|
|
1950
|
-
C(t) ? s = t : t && typeof t == "object" && "key" in t && "value" in t && t.value === null ? s = new
|
|
1950
|
+
C(t) ? s = t : t && typeof t == "object" && "key" in t && "value" in t && t.value === null ? s = new K(t.key, null) : s = new K(t, null), oe(this.items, s.key) || this.items.push(s);
|
|
1951
1951
|
}
|
|
1952
1952
|
/**
|
|
1953
1953
|
* If `keepPair` is `true`, returns the Pair matching `key`.
|
|
@@ -1961,7 +1961,7 @@ class Se extends z {
|
|
|
1961
1961
|
if (typeof s != "boolean")
|
|
1962
1962
|
throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof s}`);
|
|
1963
1963
|
const n = oe(this.items, t);
|
|
1964
|
-
n && !s ? this.items.splice(this.items.indexOf(n), 1) : !n && s && this.items.push(new
|
|
1964
|
+
n && !s ? this.items.splice(this.items.indexOf(n), 1) : !n && s && this.items.push(new K(t));
|
|
1965
1965
|
}
|
|
1966
1966
|
toJSON(t, s) {
|
|
1967
1967
|
return super.toJSON(t, s, Set);
|
|
@@ -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.
|
|
@@ -2266,7 +2266,7 @@ class _e {
|
|
|
2266
2266
|
*/
|
|
2267
2267
|
createPair(t, s, n = {}) {
|
|
2268
2268
|
const i = this.createNode(t, null, n), r = this.createNode(s, null, n);
|
|
2269
|
-
return new
|
|
2269
|
+
return new K(i, r);
|
|
2270
2270
|
}
|
|
2271
2271
|
/**
|
|
2272
2272
|
* Removes a value from the document.
|
|
@@ -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;
|
|
@@ -2574,12 +2574,12 @@ function er({ composeNode: e, composeEmptyNode: t }, s, n, i, r) {
|
|
|
2574
2574
|
w && ((g == null ? void 0 : g.type) === "block-map" && !N.hasNewline && i(l, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), s.options.strict && b.start < N.found.offset - 1024 && i(O.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
|
|
2575
2575
|
const E = g ? e(s, g, N, i) : t(s, l, f, null, N, i);
|
|
2576
2576
|
s.schema.compat && Pt(n.indent, g, i), l = E.range[2];
|
|
2577
|
-
const $ = new
|
|
2577
|
+
const $ = new K(O, E);
|
|
2578
2578
|
s.options.keepSourceTokens && ($.srcToken = p), a.items.push($);
|
|
2579
2579
|
} else {
|
|
2580
2580
|
w && i(O.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"), N.comment && (O.comment ? O.comment += `
|
|
2581
2581
|
` + N.comment : O.comment = N.comment);
|
|
2582
|
-
const E = new
|
|
2582
|
+
const E = new K(O);
|
|
2583
2583
|
s.options.keepSourceTokens && (E.srcToken = p), a.items.push(E);
|
|
2584
2584
|
}
|
|
2585
2585
|
}
|
|
@@ -2724,7 +2724,7 @@ function sr({ composeNode: e, composeEmptyNode: t }, s, n, i, r) {
|
|
|
2724
2724
|
const ne = $ ? e(s, $, P, i) : P.found ? t(s, P.end, E, null, P, i) : null;
|
|
2725
2725
|
ne ? Tt($) && i(ne.range, "BLOCK_IN_FLOW", Et) : P.comment && (M.comment ? M.comment += `
|
|
2726
2726
|
` + P.comment : M.comment = P.comment);
|
|
2727
|
-
const ue = new
|
|
2727
|
+
const ue = new K(M, ne);
|
|
2728
2728
|
if (s.options.keepSourceTokens && (ue.srcToken = T), o) {
|
|
2729
2729
|
const B = c;
|
|
2730
2730
|
_n(s, B.items, M) && i(L, "DUPLICATE_KEY", "Map keys must be unique"), B.items.push(ue);
|
|
@@ -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);
|
|
@@ -3542,13 +3542,13 @@ function Ze({ start: e, key: t, sep: s, value: n }) {
|
|
|
3542
3542
|
i += r.source;
|
|
3543
3543
|
return n && (i += it(n)), i;
|
|
3544
3544
|
}
|
|
3545
|
-
const Rt = Symbol("break visit"), Ar = Symbol("skip children"),
|
|
3545
|
+
const Rt = Symbol("break visit"), Ar = Symbol("skip children"), jn = Symbol("remove item");
|
|
3546
3546
|
function le(e, t) {
|
|
3547
|
-
"type" in e && e.type === "document" && (e = { start: e.start, value: e.value }),
|
|
3547
|
+
"type" in e && e.type === "document" && (e = { start: e.start, value: e.value }), Kn(Object.freeze([]), e, t);
|
|
3548
3548
|
}
|
|
3549
3549
|
le.BREAK = Rt;
|
|
3550
3550
|
le.SKIP = Ar;
|
|
3551
|
-
le.REMOVE =
|
|
3551
|
+
le.REMOVE = jn;
|
|
3552
3552
|
le.itemAtPath = (e, t) => {
|
|
3553
3553
|
let s = e;
|
|
3554
3554
|
for (const [n, i] of t) {
|
|
@@ -3566,7 +3566,7 @@ le.parentCollection = (e, t) => {
|
|
|
3566
3566
|
return i;
|
|
3567
3567
|
throw new Error("Parent collection not found");
|
|
3568
3568
|
};
|
|
3569
|
-
function
|
|
3569
|
+
function Kn(e, t, s) {
|
|
3570
3570
|
let n = s(t, e);
|
|
3571
3571
|
if (typeof n == "symbol")
|
|
3572
3572
|
return n;
|
|
@@ -3574,13 +3574,13 @@ function jn(e, t, s) {
|
|
|
3574
3574
|
const r = t[i];
|
|
3575
3575
|
if (r && "items" in r) {
|
|
3576
3576
|
for (let o = 0; o < r.items.length; ++o) {
|
|
3577
|
-
const a =
|
|
3577
|
+
const a = Kn(Object.freeze(e.concat([[i, o]])), r.items[o], s);
|
|
3578
3578
|
if (typeof a == "number")
|
|
3579
3579
|
o = a - 1;
|
|
3580
3580
|
else {
|
|
3581
3581
|
if (a === Rt)
|
|
3582
3582
|
return Rt;
|
|
3583
|
-
a ===
|
|
3583
|
+
a === jn && (r.items.splice(o, 1), o -= 1);
|
|
3584
3584
|
}
|
|
3585
3585
|
}
|
|
3586
3586
|
typeof n == "function" && i === "key" && (n = n(t, e));
|
|
@@ -3588,7 +3588,7 @@ function jn(e, t, s) {
|
|
|
3588
3588
|
}
|
|
3589
3589
|
return typeof n == "function" ? n(t, e) : n;
|
|
3590
3590
|
}
|
|
3591
|
-
const gt = "\uFEFF", bt = "", wt = "",
|
|
3591
|
+
const gt = "\uFEFF", bt = "", wt = "", je = "", Nr = (e) => !!e && "items" in e, Er = (e) => !!e && (e.type === "scalar" || e.type === "single-quoted-scalar" || e.type === "double-quoted-scalar" || e.type === "block-scalar");
|
|
3592
3592
|
function Tr(e) {
|
|
3593
3593
|
switch (e) {
|
|
3594
3594
|
case gt:
|
|
@@ -3597,13 +3597,13 @@ function Tr(e) {
|
|
|
3597
3597
|
return "<DOC>";
|
|
3598
3598
|
case wt:
|
|
3599
3599
|
return "<FLOW_END>";
|
|
3600
|
-
case
|
|
3600
|
+
case je:
|
|
3601
3601
|
return "<SCALAR>";
|
|
3602
3602
|
default:
|
|
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";
|
|
@@ -3611,7 +3611,7 @@ function Fn(e) {
|
|
|
3611
3611
|
return "doc-mode";
|
|
3612
3612
|
case wt:
|
|
3613
3613
|
return "flow-error-end";
|
|
3614
|
-
case
|
|
3614
|
+
case je:
|
|
3615
3615
|
return "scalar";
|
|
3616
3616
|
case "---":
|
|
3617
3617
|
return "doc-start";
|
|
@@ -3669,7 +3669,7 @@ const Ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3669
3669
|
BOM: gt,
|
|
3670
3670
|
DOCUMENT: bt,
|
|
3671
3671
|
FLOW_END: wt,
|
|
3672
|
-
SCALAR:
|
|
3672
|
+
SCALAR: je,
|
|
3673
3673
|
createScalarToken: wr,
|
|
3674
3674
|
isCollection: Nr,
|
|
3675
3675
|
isScalar: Er,
|
|
@@ -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
|
}
|
|
@@ -4014,7 +4014,7 @@ class qn {
|
|
|
4014
4014
|
else
|
|
4015
4015
|
break;
|
|
4016
4016
|
} while (!0);
|
|
4017
|
-
return yield
|
|
4017
|
+
return yield je, yield* d(this.pushToIndex(t + 1, !0)), yield* d(this.parseLineStart());
|
|
4018
4018
|
}
|
|
4019
4019
|
*parsePlainScalar() {
|
|
4020
4020
|
const t = this.flowLevel > 0;
|
|
@@ -4043,7 +4043,7 @@ class qn {
|
|
|
4043
4043
|
break;
|
|
4044
4044
|
s = n;
|
|
4045
4045
|
}
|
|
4046
|
-
return !i && !this.atEnd ? this.setNext("plain-scalar") : (yield
|
|
4046
|
+
return !i && !this.atEnd ? this.setNext("plain-scalar") : (yield je, yield* d(this.pushToIndex(s + 1, !0)), t ? "flow" : "doc");
|
|
4047
4047
|
}
|
|
4048
4048
|
*pushCount(t) {
|
|
4049
4049
|
return t > 0 ? (yield this.buffer.substr(this.pos, t), this.pos += t, t) : 0;
|
|
@@ -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,9 +4821,9 @@ 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
|
-
Pair:
|
|
4826
|
+
Pair: K,
|
|
4827
4827
|
Parser: os,
|
|
4828
4828
|
Scalar: A,
|
|
4829
4829
|
Schema: yt,
|
|
@@ -5173,9 +5173,9 @@ const Br = (e, t) => {
|
|
|
5173
5173
|
};
|
|
5174
5174
|
return `[${e.map((n) => yi(n, t, s)).join(`,
|
|
5175
5175
|
`)}]`;
|
|
5176
|
-
}, Pr = "dashboardByIdTmpl", Rr = "dashboardTmpl",
|
|
5176
|
+
}, Pr = "dashboardByIdTmpl", Rr = "dashboardTmpl", jr = ({ dashboardOid: e, uiFramework: t = "react" }) => rt(Pr, {
|
|
5177
5177
|
dashboardOid: e
|
|
5178
|
-
}, t),
|
|
5178
|
+
}, t), Kr = ({ dashboardProps: e, uiFramework: t = "react" }) => {
|
|
5179
5179
|
const s = Rr, n = e.widgets.some((r) => (ki(r) || Oi(r)) && zt(r)), i = {
|
|
5180
5180
|
titleString: e.title,
|
|
5181
5181
|
defaultDataSourceString: Ut(e.defaultDataSource),
|
|
@@ -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) ? jr(e) : Kr(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,
|
|
5310
|
+
const Zr = (e) => Object.prototype.toString.call(e).slice(8, -1), Qn = (e) => typeof e == "undefined", eo = (e) => e === null, Ke = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, jt = (e) => Ke(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":
|
|
@@ -5492,7 +5492,7 @@ const yo = (e, t) => {
|
|
|
5492
5492
|
e = e[n];
|
|
5493
5493
|
}
|
|
5494
5494
|
return e;
|
|
5495
|
-
},
|
|
5495
|
+
}, Kt = (e, t, s) => {
|
|
5496
5496
|
if (si(t), t.length === 0)
|
|
5497
5497
|
return s(e);
|
|
5498
5498
|
let n = e;
|
|
@@ -5501,12 +5501,12 @@ const yo = (e, t) => {
|
|
|
5501
5501
|
if (se(n)) {
|
|
5502
5502
|
const a = +o;
|
|
5503
5503
|
n = n[a];
|
|
5504
|
-
} else if (
|
|
5504
|
+
} else if (Ke(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]) :
|
|
5524
|
+
if (se(n) ? n[+i] = s(n[+i]) : Ke(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,40 +5541,40 @@ 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
|
|
5558
|
-
e =
|
|
5557
|
+
return qt(t, (n, i) => {
|
|
5558
|
+
e = Kt(e, i, (r) => mo(r, n, s));
|
|
5559
5559
|
}), e;
|
|
5560
5560
|
}
|
|
5561
5561
|
function bo(e, t) {
|
|
5562
5562
|
function s(n, i) {
|
|
5563
5563
|
const r = yo(e, Be(i));
|
|
5564
5564
|
n.map(Be).forEach((o) => {
|
|
5565
|
-
e =
|
|
5565
|
+
e = Kt(e, o, () => r);
|
|
5566
5566
|
});
|
|
5567
5567
|
}
|
|
5568
5568
|
if (se(t)) {
|
|
5569
5569
|
const [n, i] = t;
|
|
5570
5570
|
n.forEach((r) => {
|
|
5571
|
-
e =
|
|
5571
|
+
e = Kt(e, Be(r), () => e);
|
|
5572
5572
|
}), i && Ae(i, s);
|
|
5573
5573
|
} else
|
|
5574
5574
|
Ae(t, s);
|
|
5575
5575
|
return e;
|
|
5576
5576
|
}
|
|
5577
|
-
const wo = (e, t) =>
|
|
5577
|
+
const wo = (e, t) => Ke(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]);
|
|
@@ -5588,7 +5588,7 @@ function ko(e, t) {
|
|
|
5588
5588
|
t || (i = i.map((a) => a.map(String)).sort((a, l) => a.length - l.length));
|
|
5589
5589
|
const [r, ...o] = i;
|
|
5590
5590
|
r.length === 0 ? n = o.map(_t) : s[_t(r)] = o.map(_t);
|
|
5591
|
-
}), n ?
|
|
5591
|
+
}), n ? jt(s) ? [n] : [n, s] : jt(s) ? void 0 : s;
|
|
5592
5592
|
}
|
|
5593
5593
|
const ni = (e, t, s, n, i = [], r = [], o = /* @__PURE__ */ new Map()) => {
|
|
5594
5594
|
var y;
|
|
@@ -5619,11 +5619,11 @@ const ni = (e, t, s, n, i = [], r = [], o = /* @__PURE__ */ new Map()) => {
|
|
|
5619
5619
|
if (f === "__proto__" || f === "constructor" || f === "prototype")
|
|
5620
5620
|
throw new Error(`Detected property ${f}. This is a prototype pollution risk, please remove it from your object.`);
|
|
5621
5621
|
const g = ni(m, t, s, n, [...i, f], [...r, e], o);
|
|
5622
|
-
h[f] = g.transformedValue, se(g.annotations) ? u[f] = g.annotations :
|
|
5622
|
+
h[f] = g.transformedValue, se(g.annotations) ? u[f] = g.annotations : Ke(g.annotations) && Ae(g.annotations, (b, w) => {
|
|
5623
5623
|
u[Wn(f) + "." + w] = b;
|
|
5624
5624
|
});
|
|
5625
5625
|
});
|
|
5626
|
-
const p =
|
|
5626
|
+
const p = jt(u) ? {
|
|
5627
5627
|
transformedValue: h,
|
|
5628
5628
|
annotations: l ? [l.type] : void 0
|
|
5629
5629
|
} : {
|
|
@@ -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);
|
|
@@ -5776,8 +5776,8 @@ const fe = (e) => e === void 0 ? Ai.None : e, No = (e) => new Bs(e.metadataItem,
|
|
|
5776
5776
|
n
|
|
5777
5777
|
];
|
|
5778
5778
|
}));
|
|
5779
|
-
return new
|
|
5780
|
-
}, ai = (e) => new
|
|
5779
|
+
return new js(e.name, e.expression, t, e.format, e.description, fe(e.sort), e.dataSource, e.composeCode);
|
|
5780
|
+
}, ai = (e) => new Ks(e.name, U(e.attribute), e.format, e.description, fe(e.sort), e.dataSource, e.composeCode), Ds = (e) => {
|
|
5781
5781
|
switch (e.__serializable) {
|
|
5782
5782
|
case "DimensionalBaseMeasure":
|
|
5783
5783
|
return cs(e);
|
|
@@ -5788,18 +5788,18 @@ const fe = (e) => e === void 0 ? Ai.None : e, No = (e) => new Bs(e.metadataItem,
|
|
|
5788
5788
|
default:
|
|
5789
5789
|
return e;
|
|
5790
5790
|
}
|
|
5791
|
-
},
|
|
5791
|
+
}, j = (e) => {
|
|
5792
5792
|
switch (e.__serializable) {
|
|
5793
5793
|
case "MembersFilter":
|
|
5794
|
-
return new
|
|
5795
|
-
backgroundFilter:
|
|
5794
|
+
return new qs(U(e.attribute), e.members, e.config.backgroundFilter ? J(R({}, e.config), {
|
|
5795
|
+
backgroundFilter: j(e.config.backgroundFilter)
|
|
5796
5796
|
}) : e.config, e.composeCode);
|
|
5797
5797
|
case "LogicalAttributeFilter":
|
|
5798
|
-
return new
|
|
5798
|
+
return new Fs(e.filters.map((s) => j(s)), e.operator, e.config, e.composeCode);
|
|
5799
5799
|
case "CascadingFilter":
|
|
5800
|
-
return new zs(e._filters.map((s) =>
|
|
5800
|
+
return new zs(e._filters.map((s) => j(s)), e.config, e.composeCode);
|
|
5801
5801
|
case "ExcludeFilter":
|
|
5802
|
-
return new Us(
|
|
5802
|
+
return new Us(j(e.filter), e.input ? j(e.input) : void 0, e.config, e.composeCode);
|
|
5803
5803
|
case "MeasureFilter":
|
|
5804
5804
|
return new Vs(U(e.attribute), Ds(e.measure), e.operatorA, e.valueA, e.operatorB, e.valueB, e.config, e.composeCode);
|
|
5805
5805
|
case "RankingFilter":
|
|
@@ -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");
|
|
@@ -5851,69 +5851,69 @@ k.registerCustom({
|
|
|
5851
5851
|
deserialize: (e) => cs(e)
|
|
5852
5852
|
}, "DimensionalBaseMeasure");
|
|
5853
5853
|
k.registerCustom({
|
|
5854
|
-
isApplicable: (e) => e instanceof
|
|
5854
|
+
isApplicable: (e) => e instanceof js,
|
|
5855
5855
|
serialize: (e) => e.serialize(),
|
|
5856
5856
|
deserialize: (e) => fs(e)
|
|
5857
5857
|
}, "DimensionalCalculatedMeasure");
|
|
5858
5858
|
k.registerCustom({
|
|
5859
|
-
isApplicable: (e) => e instanceof
|
|
5859
|
+
isApplicable: (e) => e instanceof Ks,
|
|
5860
5860
|
serialize: (e) => e.serialize(),
|
|
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
|
-
deserialize: (e) =>
|
|
5866
|
+
deserialize: (e) => j(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
|
-
deserialize: (e) =>
|
|
5871
|
+
deserialize: (e) => j(e)
|
|
5872
5872
|
}, "LogicalAttributeFilter");
|
|
5873
5873
|
k.registerCustom({
|
|
5874
5874
|
isApplicable: (e) => e instanceof zs,
|
|
5875
5875
|
serialize: (e) => e.serialize(),
|
|
5876
|
-
deserialize: (e) =>
|
|
5876
|
+
deserialize: (e) => j(e)
|
|
5877
5877
|
}, "CascadingFilter");
|
|
5878
5878
|
k.registerCustom({
|
|
5879
5879
|
isApplicable: (e) => e instanceof Us,
|
|
5880
5880
|
serialize: (e) => e.serialize(),
|
|
5881
|
-
deserialize: (e) =>
|
|
5881
|
+
deserialize: (e) => j(e)
|
|
5882
5882
|
}, "ExcludeFilter");
|
|
5883
5883
|
k.registerCustom({
|
|
5884
5884
|
isApplicable: (e) => e instanceof Vs,
|
|
5885
5885
|
serialize: (e) => e.serialize(),
|
|
5886
|
-
deserialize: (e) =>
|
|
5886
|
+
deserialize: (e) => j(e)
|
|
5887
5887
|
}, "MeasureFilter");
|
|
5888
5888
|
k.registerCustom({
|
|
5889
5889
|
isApplicable: (e) => e instanceof vs,
|
|
5890
5890
|
serialize: (e) => e.serialize(),
|
|
5891
|
-
deserialize: (e) =>
|
|
5891
|
+
deserialize: (e) => j(e)
|
|
5892
5892
|
}, "RankingFilter");
|
|
5893
5893
|
k.registerCustom({
|
|
5894
5894
|
isApplicable: (e) => e instanceof Js,
|
|
5895
5895
|
serialize: (e) => e.serialize(),
|
|
5896
|
-
deserialize: (e) =>
|
|
5896
|
+
deserialize: (e) => j(e)
|
|
5897
5897
|
}, "NumericFilter");
|
|
5898
5898
|
k.registerCustom({
|
|
5899
5899
|
isApplicable: (e) => e instanceof Qs,
|
|
5900
5900
|
serialize: (e) => e.serialize(),
|
|
5901
|
-
deserialize: (e) =>
|
|
5901
|
+
deserialize: (e) => j(e)
|
|
5902
5902
|
}, "TextFilter");
|
|
5903
5903
|
k.registerCustom({
|
|
5904
5904
|
isApplicable: (e) => e instanceof Ys,
|
|
5905
5905
|
serialize: (e) => e.serialize(),
|
|
5906
|
-
deserialize: (e) =>
|
|
5906
|
+
deserialize: (e) => j(e)
|
|
5907
5907
|
}, "DateRangeFilter");
|
|
5908
5908
|
k.registerCustom({
|
|
5909
5909
|
isApplicable: (e) => e instanceof Ws,
|
|
5910
5910
|
serialize: (e) => e.serialize(),
|
|
5911
|
-
deserialize: (e) =>
|
|
5911
|
+
deserialize: (e) => j(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
|
-
deserialize: (e) =>
|
|
5916
|
+
deserialize: (e) => j(e)
|
|
5917
5917
|
}, "CustomFilter");
|
|
5918
5918
|
const Do = k;
|
|
5919
5919
|
export {
|
|
@@ -5924,9 +5924,9 @@ export {
|
|
|
5924
5924
|
$o as dashboardComposer,
|
|
5925
5925
|
Mo as executeQueryComposer,
|
|
5926
5926
|
gi as isByIdDashboardCodeParams,
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5927
|
+
jo as isByIdWidgetCodeParams,
|
|
5928
|
+
Ko as isClientSideDashboardCodeParams,
|
|
5929
|
+
qo as isClientSideWidgetCodeParams,
|
|
5930
|
+
Fo as simplifyMetadataItem,
|
|
5931
5931
|
zo as widgetComposer
|
|
5932
5932
|
};
|