@sisense/sdk-ui 2.2.0 → 2.3.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 +39 -27
- package/dist/ai.js +1650 -1155
- package/dist/analytics-composer.cjs +24 -24
- package/dist/analytics-composer.js +131 -127
- package/dist/derive-chart-family-BtTi3OxL.js +90465 -0
- package/dist/derive-chart-family-DeTlU_Wm.cjs +669 -0
- package/dist/{dimensions-mYUylB-h.cjs → dimensions-DpBTdNJ_.cjs} +1 -1
- package/dist/{dimensions-HgrcPa-Q.js → dimensions-Xxab6o5s.js} +13 -13
- package/dist/index.cjs +22 -22
- package/dist/index.js +12403 -12525
- package/dist/index.umd.js +1578 -0
- package/dist/packages/sdk-ui/src/ai/api/types.d.ts +2 -0
- package/dist/packages/sdk-ui/src/ai/common/icon-button.d.ts +1 -1
- package/dist/packages/sdk-ui/src/analytics-composer/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/analytics-composer/widget/chart-options/get-widget-options.d.ts +23 -7
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +16 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/chart-builder-factory.d.ts +3 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/alerts.d.ts +3 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/{helpers/cartesians → highchart-based-charts/cartesians/helpers}/data-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/data.d.ts +4 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/get-legacy-cartesian-chart-options.d.ts +3 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/bar-chart/bar-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/bar-chart/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/{column-chart → highchart-based-charts/cartesians/stackable/column-chart}/column-chart-builder.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/column-chart/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/{helpers/cartesians/stackable → highchart-based-charts/cartesians/stackable/helpers}/design-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/types.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/build-highchart-options.d.ts +20 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/highcharts-based-chart-renderer.d.ts +39 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/utils.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/types.d.ts +28 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/types.d.ts +0 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/apply-event-handlers.d.ts +15 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/common-highcharts-option-service.d.ts +9 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/subtype-to-design-options.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/theme-option-service.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +4 -1
- package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/group.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/components/grouped-items-browser/types.d.ts +3 -0
- package/dist/packages/sdk-ui/src/common/components/loading-overlay.d.ts +1 -3
- package/dist/packages/sdk-ui/src/common/components/menu/menu-ids.d.ts +10 -1
- package/dist/packages/sdk-ui/src/common/components/menu/types.d.ts +2 -0
- package/dist/packages/sdk-ui/src/common/components/modal/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/common/components/modal/modal-context.d.ts +39 -0
- package/dist/packages/sdk-ui/src/common/components/modal/modal-provider.d.ts +19 -0
- package/dist/packages/sdk-ui/src/common/components/popover.d.ts +10 -0
- package/dist/packages/sdk-ui/src/common/hooks/use-combined-menu.d.ts +4 -8
- package/dist/packages/sdk-ui/src/dashboard/components/jtd-dashboard.d.ts +15 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-jtd.d.ts +113 -0
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +9 -2
- package/dist/packages/sdk-ui/src/data-browser/data-schema-browser/data-schema-browser.d.ts +14 -0
- package/dist/packages/sdk-ui/src/data-browser/data-schema-browser/data-schema-browser.styles.d.ts +6 -0
- package/dist/packages/sdk-ui/src/data-browser/dimensions-browser/types.d.ts +5 -0
- package/dist/packages/sdk-ui/src/decorators/component-decorators/as-sisense-component.d.ts +2 -0
- package/dist/packages/sdk-ui/src/decorators/component-decorators/with-modal.d.ts +6 -0
- package/dist/packages/sdk-ui/src/index.d.ts +2 -1
- package/dist/packages/sdk-ui/src/models/dashboard/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +6 -0
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model.d.ts +18 -17
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-persistence.d.ts +34 -0
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +4 -4
- package/dist/packages/sdk-ui/src/plugins-provider/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/props.d.ts +3 -3
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +7 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +14 -0
- package/dist/packages/sdk-ui/src/types.d.ts +26 -3
- package/dist/packages/sdk-ui/src/utils/filter-relations.d.ts +4 -4
- package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +72 -0
- package/dist/packages/sdk-ui/src/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -2
- package/dist/packages/sdk-ui/src/widgets/tabber-widget.d.ts +2 -1
- package/dist/use-common-filters-B2N7j9H-.cjs +350 -0
- package/dist/use-common-filters-BC4Vg9wu.js +32068 -0
- package/dist/{widget-composer-CACtfvw6.js → widget-composer-Bj5DrCSm.js} +83 -73
- package/dist/{widget-composer-JVl8mNCt.cjs → widget-composer-DjREvygd.cjs} +7 -7
- package/package.json +23 -19
- package/dist/derive-chart-family-BsbFdcgd.cjs +0 -758
- package/dist/derive-chart-family-C9IDI6UV.js +0 -102051
- package/dist/packages/sdk-ui/src/chart/restructured-charts/bar-chart/bar-chart-builder.d.ts +0 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/helpers/cartesians/data.d.ts +0 -4
- package/dist/packages/sdk-ui/src/widget-by-id/use-get-dashboard-model-and-widget-model.d.ts +0 -14
- package/dist/use-common-filters-BKYG6WGA.cjs +0 -271
- package/dist/use-common-filters-DkwU7HJ3.js +0 -28928
|
@@ -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,
|
|
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 x, C as Je, i as gi, J as Bs } from "./widget-composer-Bj5DrCSm.js";
|
|
63
|
+
import { j as Ro, q as Ko, u as jo, o as qo, r as Fo, l as zo, m as Uo, k as Vo, n as vo, w as Jo } from "./widget-composer-Bj5DrCSm.js";
|
|
64
|
+
import { aP as Jt, aG as bi, bG as ys, cG as wi, dI as Si, ay as ki, aW as Oi, dJ as Ps, ap as Rs, dK as Ks, dL as js, dM as qs, dN as Fs, a9 as zs, dO as Us, dP as Vs, dQ as vs, dR as Js, dS as Qs, dT as Ys, dU as Ws, dV as Gs, al as Ai } from "./derive-chart-family-BtTi3OxL.js";
|
|
65
|
+
import { D as xs, b as Hs } from "./dimensions-Xxab6o5s.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, F = Symbol("break visit"), Zs = Symbol("skip children"),
|
|
87
|
+
const Ni = (e) => (I(e) || _(e)) && !!e.anchor, F = Symbol("break visit"), Zs = Symbol("skip children"), G = 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])) === G && (e.contents = null) : pe(null, e, s, Object.freeze([]));
|
|
91
91
|
}
|
|
92
92
|
ee.BREAK = F;
|
|
93
93
|
ee.SKIP = Zs;
|
|
94
|
-
ee.REMOVE =
|
|
94
|
+
ee.REMOVE = G;
|
|
95
95
|
function pe(e, t, s, n) {
|
|
96
96
|
const i = tn(e, t, s, n);
|
|
97
97
|
if (D(i) || C(i))
|
|
@@ -106,7 +106,7 @@ function pe(e, t, s, n) {
|
|
|
106
106
|
else {
|
|
107
107
|
if (o === F)
|
|
108
108
|
return F;
|
|
109
|
-
o ===
|
|
109
|
+
o === G && (t.items.splice(r, 1), r -= 1);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
} else if (C(t)) {
|
|
@@ -114,11 +114,11 @@ function pe(e, t, s, n) {
|
|
|
114
114
|
const r = pe("key", t.key, s, n);
|
|
115
115
|
if (r === F)
|
|
116
116
|
return F;
|
|
117
|
-
r ===
|
|
117
|
+
r === G && (t.key = null);
|
|
118
118
|
const o = pe("value", t.value, s, n);
|
|
119
119
|
if (o === F)
|
|
120
120
|
return F;
|
|
121
|
-
o ===
|
|
121
|
+
o === G && (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]))) === G && (e.contents = null) : yield me(null, e, s, Object.freeze([]));
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
ot.BREAK = F;
|
|
133
133
|
ot.SKIP = Zs;
|
|
134
|
-
ot.REMOVE =
|
|
134
|
+
ot.REMOVE = G;
|
|
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);
|
|
@@ -147,7 +147,7 @@ function me(e, t, s, n) {
|
|
|
147
147
|
else {
|
|
148
148
|
if (o === F)
|
|
149
149
|
return F;
|
|
150
|
-
o ===
|
|
150
|
+
o === G && (t.items.splice(r, 1), r -= 1);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
} else if (C(t)) {
|
|
@@ -155,11 +155,11 @@ function me(e, t, s, n) {
|
|
|
155
155
|
const r = yield me("key", t.key, s, n);
|
|
156
156
|
if (r === F)
|
|
157
157
|
return F;
|
|
158
|
-
r ===
|
|
158
|
+
r === G && (t.key = null);
|
|
159
159
|
const o = yield me("value", t.value, s, n);
|
|
160
160
|
if (o === F)
|
|
161
161
|
return F;
|
|
162
|
-
o ===
|
|
162
|
+
o === G && (t.value = null);
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
return i;
|
|
@@ -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 = xe(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 xe(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 = xe(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 = xe(e, t.key, s), i = xe(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 = Ki(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 Ki(e, t, s) {
|
|
1195
1195
|
if (t === null)
|
|
1196
1196
|
return "";
|
|
1197
1197
|
if (typeof t != "object")
|
|
@@ -1213,15 +1213,15 @@ function ji(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 j(n, i);
|
|
1217
1217
|
}
|
|
1218
|
-
class
|
|
1218
|
+
class j {
|
|
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 j(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 K {
|
|
|
1233
1233
|
}
|
|
1234
1234
|
function dn(e, t, s) {
|
|
1235
1235
|
var r;
|
|
1236
|
-
return (((r = t.inFlow) != null ? r : e.flow) ? qi :
|
|
1236
|
+
return (((r = t.inFlow) != null ? r : e.flow) ? qi : ji)(e, t, s);
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
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 });
|
|
1240
1240
|
let u = !1;
|
|
1241
1241
|
const p = [];
|
|
@@ -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 j(t, t == null ? void 0 : t.value) : n = new j(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 j(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
|
+
}, Gt = {
|
|
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 && Gt.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), xt = (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) => xt(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) => xt(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) => xt(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
|
+
Gt,
|
|
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 j(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 j(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
|
+
}, Gi = {
|
|
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
|
+
}, xi = {
|
|
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 j(t.key, null) : s = new j(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 j(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
|
-
xi,
|
|
2065
2064
|
Gi,
|
|
2065
|
+
xi,
|
|
2066
2066
|
vi,
|
|
2067
2067
|
Ji,
|
|
2068
2068
|
Qi,
|
|
@@ -2081,7 +2081,7 @@ const In = {
|
|
|
2081
2081
|
["yaml-1.1", Ss]
|
|
2082
2082
|
]), Os = {
|
|
2083
2083
|
binary: Ht,
|
|
2084
|
-
bool:
|
|
2084
|
+
bool: Gt,
|
|
2085
2085
|
float: yn,
|
|
2086
2086
|
floatExp: mn,
|
|
2087
2087
|
floatNaN: pn,
|
|
@@ -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 j(i, r);
|
|
2270
2270
|
}
|
|
2271
2271
|
/**
|
|
2272
2272
|
* Removes a value from the document.
|
|
@@ -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 j(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 j(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 j(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);
|
|
@@ -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"), Kn = 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 }), jn(Object.freeze([]), e, t);
|
|
3548
3548
|
}
|
|
3549
3549
|
le.BREAK = Rt;
|
|
3550
3550
|
le.SKIP = Ar;
|
|
3551
|
-
le.REMOVE =
|
|
3551
|
+
le.REMOVE = Kn;
|
|
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 jn(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 Kn(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 = jn(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 === Kn && (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 Kn(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 = "", Ke = "", 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,7 +3597,7 @@ function Tr(e) {
|
|
|
3597
3597
|
return "<DOC>";
|
|
3598
3598
|
case wt:
|
|
3599
3599
|
return "<FLOW_END>";
|
|
3600
|
-
case
|
|
3600
|
+
case Ke:
|
|
3601
3601
|
return "<SCALAR>";
|
|
3602
3602
|
default:
|
|
3603
3603
|
return JSON.stringify(e);
|
|
@@ -3611,7 +3611,7 @@ function qn(e) {
|
|
|
3611
3611
|
return "doc-mode";
|
|
3612
3612
|
case wt:
|
|
3613
3613
|
return "flow-error-end";
|
|
3614
|
-
case
|
|
3614
|
+
case Ke:
|
|
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: Ke,
|
|
3673
3673
|
createScalarToken: wr,
|
|
3674
3674
|
isCollection: Nr,
|
|
3675
3675
|
isScalar: Er,
|
|
@@ -4014,7 +4014,7 @@ class Fn {
|
|
|
4014
4014
|
else
|
|
4015
4015
|
break;
|
|
4016
4016
|
} while (!0);
|
|
4017
|
-
return yield
|
|
4017
|
+
return yield Ke, 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 Fn {
|
|
|
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 Ke, 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 Ge(e) {
|
|
4158
4158
|
var t;
|
|
4159
4159
|
switch (e.type) {
|
|
4160
4160
|
case "document":
|
|
@@ -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 = Ge(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 = Ge(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 = Ge(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 = Ge(t), n = de(s);
|
|
4733
4733
|
return {
|
|
4734
4734
|
type: "block-map",
|
|
4735
4735
|
offset: this.offset,
|
|
@@ -4823,7 +4823,7 @@ const Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4823
4823
|
Document: _e,
|
|
4824
4824
|
Lexer: Fn,
|
|
4825
4825
|
LineCounter: zn,
|
|
4826
|
-
Pair:
|
|
4826
|
+
Pair: j,
|
|
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", Kr = ({ dashboardOid: e, uiFramework: t = "react" }) => rt(Pr, {
|
|
5177
5177
|
dashboardOid: e
|
|
5178
|
-
}, t),
|
|
5178
|
+
}, t), jr = ({ 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,30 +5183,30 @@ 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: x(e.tabbersOptions || {}, Je),
|
|
5187
|
+
layoutOptionsString: x(e.layoutOptions || {}, Je),
|
|
5188
|
+
widgetsOptionsString: x(e.widgetsOptions || {}, Je, !0),
|
|
5189
|
+
styleOptionsString: x(e.styleOptions || {}, Je)
|
|
5190
5190
|
};
|
|
5191
5191
|
return rt(s, i, t);
|
|
5192
|
-
}, qr = (e) => gi(e) ?
|
|
5192
|
+
}, qr = (e) => gi(e) ? Kr(e) : jr(e), $o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5193
5193
|
__proto__: null,
|
|
5194
5194
|
toDashboardCode: qr
|
|
5195
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: x(e.dimensions || []),
|
|
5199
|
+
measuresString: x(e.measures || []),
|
|
5200
5200
|
filtersString: Vt(e.filters),
|
|
5201
|
-
highlightsString:
|
|
5201
|
+
highlightsString: x(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: x(e.rows || []),
|
|
5209
|
+
valuesString: x(e.values || []),
|
|
5210
5210
|
filtersString: Vt(e.filters),
|
|
5211
5211
|
extraImportsString: vt(e.filters || [], n)
|
|
5212
5212
|
};
|
|
@@ -5250,7 +5250,7 @@ class Jn {
|
|
|
5250
5250
|
return this.kv.getByKey(t);
|
|
5251
5251
|
}
|
|
5252
5252
|
}
|
|
5253
|
-
class
|
|
5253
|
+
class Gr extends Jn {
|
|
5254
5254
|
constructor() {
|
|
5255
5255
|
super((t) => t.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
|
|
5256
5256
|
}
|
|
@@ -5261,7 +5261,7 @@ class xr extends Jn {
|
|
|
5261
5261
|
return this.classToAllowedProps.get(t);
|
|
5262
5262
|
}
|
|
5263
5263
|
}
|
|
5264
|
-
function
|
|
5264
|
+
function xr(e) {
|
|
5265
5265
|
if ("values" in Object)
|
|
5266
5266
|
return Object.values(e);
|
|
5267
5267
|
const t = [];
|
|
@@ -5270,7 +5270,7 @@ function Gr(e) {
|
|
|
5270
5270
|
return t;
|
|
5271
5271
|
}
|
|
5272
5272
|
function Hr(e, t) {
|
|
5273
|
-
const s =
|
|
5273
|
+
const s = xr(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, 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 Gn = [
|
|
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)),
|
|
@@ -5377,7 +5377,7 @@ function St(e, t, s, n) {
|
|
|
5377
5377
|
untransform: n
|
|
5378
5378
|
};
|
|
5379
5379
|
}
|
|
5380
|
-
const
|
|
5380
|
+
const xn = 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, xn, 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(Gn, (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
|
+
Gn.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 xn.untransform(e, t, s);
|
|
5444
5444
|
case "class":
|
|
5445
5445
|
return Zn.untransform(e, t, s);
|
|
5446
5446
|
case "custom":
|
|
@@ -5492,7 +5492,7 @@ const yo = (e, t) => {
|
|
|
5492
5492
|
e = e[n];
|
|
5493
5493
|
}
|
|
5494
5494
|
return e;
|
|
5495
|
-
},
|
|
5495
|
+
}, jt = (e, t, s) => {
|
|
5496
5496
|
if (si(t), t.length === 0)
|
|
5497
5497
|
return s(e);
|
|
5498
5498
|
let n = e;
|
|
@@ -5501,7 +5501,7 @@ 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 (je(n))
|
|
5505
5505
|
n = n[o];
|
|
5506
5506
|
else if (Fe(n)) {
|
|
5507
5507
|
const a = +o;
|
|
@@ -5521,7 +5521,7 @@ 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]) : 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
|
}
|
|
@@ -5555,26 +5555,26 @@ function qt(e, t, s = []) {
|
|
|
5555
5555
|
}
|
|
5556
5556
|
function go(e, t, s) {
|
|
5557
5557
|
return qt(t, (n, i) => {
|
|
5558
|
-
e =
|
|
5558
|
+
e = jt(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 = jt(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 = jt(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) => 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]);
|
|
@@ -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 ? Kt(s) ? [n] : [n, s] : Kt(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 : je(g.annotations) && Ae(g.annotations, (b, w) => {
|
|
5623
5623
|
u[Wn(f) + "." + w] = b;
|
|
5624
5624
|
});
|
|
5625
5625
|
});
|
|
5626
|
-
const p =
|
|
5626
|
+
const p = Kt(u) ? {
|
|
5627
5627
|
transformedValue: h,
|
|
5628
5628
|
annotations: l ? [l.type] : void 0
|
|
5629
5629
|
} : {
|
|
@@ -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 Gr(), 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;
|
|
@@ -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 xs(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 Ks(e.name, e.expression, t, e.format, e.description, fe(e.sort), e.dataSource, e.composeCode);
|
|
5780
|
+
}, ai = (e) => new js(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
|
+
}, K = (e) => {
|
|
5792
5792
|
switch (e.__serializable) {
|
|
5793
5793
|
case "MembersFilter":
|
|
5794
5794
|
return new qs(U(e.attribute), e.members, e.config.backgroundFilter ? J(R({}, e.config), {
|
|
5795
|
-
backgroundFilter:
|
|
5795
|
+
backgroundFilter: K(e.config.backgroundFilter)
|
|
5796
5796
|
}) : e.config, e.composeCode);
|
|
5797
5797
|
case "LogicalAttributeFilter":
|
|
5798
|
-
return new Fs(e.filters.map((s) =>
|
|
5798
|
+
return new Fs(e.filters.map((s) => K(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) => K(s)), e.config, e.composeCode);
|
|
5801
5801
|
case "ExcludeFilter":
|
|
5802
|
-
return new Us(
|
|
5802
|
+
return new Us(K(e.filter), e.input ? K(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 Gs(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 xs && 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 Ks,
|
|
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 js,
|
|
5860
5860
|
serialize: (e) => e.serialize(),
|
|
5861
5861
|
deserialize: (e) => ai(e)
|
|
5862
5862
|
}, "DimensionalMeasureTemplate");
|
|
5863
5863
|
k.registerCustom({
|
|
5864
5864
|
isApplicable: (e) => e instanceof qs,
|
|
5865
5865
|
serialize: (e) => e.serialize(),
|
|
5866
|
-
deserialize: (e) =>
|
|
5866
|
+
deserialize: (e) => K(e)
|
|
5867
5867
|
}, "MembersFilter");
|
|
5868
5868
|
k.registerCustom({
|
|
5869
5869
|
isApplicable: (e) => e instanceof Fs,
|
|
5870
5870
|
serialize: (e) => e.serialize(),
|
|
5871
|
-
deserialize: (e) =>
|
|
5871
|
+
deserialize: (e) => K(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) => K(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) => K(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) => K(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) => K(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) => K(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) => K(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) => K(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) => K(e)
|
|
5912
5912
|
}, "RelativeDateFilter");
|
|
5913
5913
|
k.registerCustom({
|
|
5914
|
-
isApplicable: (e) => e instanceof
|
|
5914
|
+
isApplicable: (e) => e instanceof Gs,
|
|
5915
5915
|
serialize: (e) => e.serialize(),
|
|
5916
|
-
deserialize: (e) =>
|
|
5916
|
+
deserialize: (e) => K(e)
|
|
5917
5917
|
}, "CustomFilter");
|
|
5918
5918
|
const Do = k;
|
|
5919
5919
|
export {
|
|
@@ -5923,10 +5923,14 @@ export {
|
|
|
5923
5923
|
_o as QueryTranslator,
|
|
5924
5924
|
$o as dashboardComposer,
|
|
5925
5925
|
Mo as executeQueryComposer,
|
|
5926
|
+
Ko as getChartDataOptions,
|
|
5927
|
+
jo as getChartOptions,
|
|
5928
|
+
qo as getChartRecommendationsOrDefault,
|
|
5929
|
+
Fo as getChartStyleOptions,
|
|
5926
5930
|
gi as isByIdDashboardCodeParams,
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5931
|
+
zo as isByIdWidgetCodeParams,
|
|
5932
|
+
Uo as isClientSideDashboardCodeParams,
|
|
5933
|
+
Vo as isClientSideWidgetCodeParams,
|
|
5934
|
+
vo as simplifyMetadataItem,
|
|
5935
|
+
Jo as widgetComposer
|
|
5932
5936
|
};
|