react-semaphor 0.1.535 → 0.1.536
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/brand-studio/index.js +1 -1
- package/dist/briefings/index.js +1 -1
- package/dist/chunks/{card-config-utils-C-QfuqEy.js → card-config-utils-BOM1dxCk.js} +108 -91
- package/dist/chunks/{dashboard-B7y_WeF2.js → dashboard-BTDY_I5L.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DwSxDtgZ.js → dashboard-briefing-launcher-DV_rlhT2.js} +5 -5
- package/dist/chunks/{dashboard-controls-CzTh9J0s.js → dashboard-controls-B4LxN5dr.js} +6 -6
- package/dist/chunks/{dashboard-json-o6tOjNhH.js → dashboard-json-Ccjo0Dzw.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-Lp_iKRGH.js → edit-dashboard-visual-L5zsle6X.js} +6928 -7140
- package/dist/chunks/{index-P5aUuGF1.js → index-DTcTAGGM.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-BaUr346O.js → report-preferences-dialog-CW8VEIDx.js} +5 -5
- package/dist/chunks/{semaphor-ready-indicator-B017OW6t.js → semaphor-ready-indicator-3TXTZgw-.js} +33256 -33089
- package/dist/chunks/{slider-CrLoCpsr.js → shelf-drop-preview-context-CBCs9rjz.js} +524 -503
- package/dist/chunks/{switch-ojmMsFMO.js → switch-CKB-kUaC.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-BbwQ0gpQ.js → use-create-flow-overlay-state-Bk-SBnaY.js} +2 -2
- package/dist/dashboard/index.js +1 -1
- package/dist/index.js +12 -12
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as d, jsx as r, Fragment as le } from "react/jsx-runtime";
|
|
2
2
|
import m from "react";
|
|
3
|
-
import { c as K, P as ge, a as be, B as C, b as fe, C as De, R as me, L as se, S as ue, d as je, T as Ie, e as Je, f as V, g as Le, h as M, i as $e, j as _e, k as Ue, l as Ve, m as E, n as Q, o as ee, p as re, I as he, q as oe, r as ae, s as ke, t as xe, v as ye, w as ve, x as Ce, y as Me } from "../chunks/switch-
|
|
3
|
+
import { c as K, P as ge, a as be, B as C, b as fe, C as De, R as me, L as se, S as ue, d as je, T as Ie, e as Je, f as V, g as Le, h as M, i as $e, j as _e, k as Ue, l as Ve, m as E, n as Q, o as ee, p as re, I as he, q as oe, r as ae, s as ke, t as xe, v as ye, w as ve, x as Ce, y as Me } from "../chunks/switch-CKB-kUaC.js";
|
|
4
4
|
import { A as Ge, p as We } from "../chunks/color-CJvdlFM_.js";
|
|
5
5
|
import { c as ne, X as He } from "../chunks/x-CXDkqdur.js";
|
|
6
6
|
import "../chunks/validators-DMSH81OM.js";
|
package/dist/briefings/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import "../chunks/matrix-continuation-C4sRcjZU.js";
|
|
|
5
5
|
import "../chunks/matrix-operation-contract-BKupLHXL.js";
|
|
6
6
|
import "zod";
|
|
7
7
|
import "../value-format-preferences/index.js";
|
|
8
|
-
import { ag as g, ak as l, af as B, aj as m, ao as u, ah as d, a7 as c, ai as p, a4 as I, a2 as h, a3 as C, as as D, a1 as E, au as T, z as F, x as S, av as b, a9 as A, a6 as y, w as _, e as R, an as N, am as v, _ as x, v as M, h as G, aD as z, d as L, aC as O, ay as U, az as V, al as q, a8 as J, $ as w, aA as H, aB as P, a5 as X, ap as j, at as k, ar as K, a0 as Q, aq as $, aw as W, ax as Y } from "../chunks/index-
|
|
8
|
+
import { ag as g, ak as l, af as B, aj as m, ao as u, ah as d, a7 as c, ai as p, a4 as I, a2 as h, a3 as C, as as D, a1 as E, au as T, z as F, x as S, av as b, a9 as A, a6 as y, w as _, e as R, an as N, am as v, _ as x, v as M, h as G, aD as z, d as L, aC as O, ay as U, az as V, al as q, a8 as J, $ as w, aA as H, aB as P, a5 as X, ap as j, at as k, ar as K, a0 as Q, aq as $, aw as W, ax as Y } from "../chunks/index-DTcTAGGM.js";
|
|
9
9
|
export {
|
|
10
10
|
g as BRIEFING_ARTIFACT_FORMATS,
|
|
11
11
|
l as BRIEFING_CONTENT_LIMITS,
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { v as
|
|
2
|
-
import { ak as
|
|
1
|
+
import { v as q, am as G, B as L, G as T, t as N } from "./validators-DMSH81OM.js";
|
|
2
|
+
import { ak as V } from "./matrix-operation-contract-BKupLHXL.js";
|
|
3
3
|
import "zod";
|
|
4
4
|
import "./matrix-continuation-C4sRcjZU.js";
|
|
5
5
|
import "../value-format-preferences/index.js";
|
|
6
|
-
import { v as
|
|
7
|
-
import { A as b, f as
|
|
6
|
+
import { v as F } from "./temporal-bucket-DlFuhCnT.js";
|
|
7
|
+
import { A as b, f as A } from "./field-aggregations-CoLzYHeL.js";
|
|
8
8
|
import { S as W, a as k } from "./color-CJvdlFM_.js";
|
|
9
|
-
import { g as
|
|
10
|
-
import { i as
|
|
9
|
+
import { g as j, a as Q, b as H } from "./matrix-definition-D9iShKZI.js";
|
|
10
|
+
import { i as K } from "./matrix-card-CAdizkUl.js";
|
|
11
11
|
let v;
|
|
12
|
-
const
|
|
13
|
-
function
|
|
12
|
+
const $ = new Uint8Array(16);
|
|
13
|
+
function z() {
|
|
14
14
|
if (!v && (v = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !v))
|
|
15
15
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
16
|
-
return v(
|
|
16
|
+
return v($);
|
|
17
17
|
}
|
|
18
18
|
const g = [];
|
|
19
19
|
for (let e = 0; e < 256; ++e)
|
|
20
20
|
g.push((e + 256).toString(16).slice(1));
|
|
21
|
-
function
|
|
21
|
+
function J(e, t = 0) {
|
|
22
22
|
return g[e[t + 0]] + g[e[t + 1]] + g[e[t + 2]] + g[e[t + 3]] + "-" + g[e[t + 4]] + g[e[t + 5]] + "-" + g[e[t + 6]] + g[e[t + 7]] + "-" + g[e[t + 8]] + g[e[t + 9]] + "-" + g[e[t + 10]] + g[e[t + 11]] + g[e[t + 12]] + g[e[t + 13]] + g[e[t + 14]] + g[e[t + 15]];
|
|
23
23
|
}
|
|
24
24
|
const Z = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), M = {
|
|
25
25
|
randomUUID: Z
|
|
26
26
|
};
|
|
27
|
-
function
|
|
27
|
+
function ke(e, t, a) {
|
|
28
28
|
if (M.randomUUID && !e)
|
|
29
29
|
return M.randomUUID();
|
|
30
30
|
e = e || {};
|
|
31
|
-
const r = e.random || (e.rng ||
|
|
32
|
-
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128,
|
|
31
|
+
const r = e.random || (e.rng || z)();
|
|
32
|
+
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, J(r);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Me(e) {
|
|
35
35
|
return e.format != null || e.dateFormat != null;
|
|
36
36
|
}
|
|
37
37
|
const B = {
|
|
@@ -81,7 +81,7 @@ function ee(e, t) {
|
|
|
81
81
|
};
|
|
82
82
|
if (Object.prototype.hasOwnProperty.call(B, a)) {
|
|
83
83
|
const i = B[a];
|
|
84
|
-
return i ?
|
|
84
|
+
return i ? F(
|
|
85
85
|
i,
|
|
86
86
|
t
|
|
87
87
|
).ok ? { format: i } : {
|
|
@@ -97,7 +97,7 @@ function ee(e, t) {
|
|
|
97
97
|
const r = {
|
|
98
98
|
type: "temporal_bucket",
|
|
99
99
|
presentation: { mode: "pattern", pattern: a }
|
|
100
|
-
}, n =
|
|
100
|
+
}, n = F(
|
|
101
101
|
r,
|
|
102
102
|
t
|
|
103
103
|
);
|
|
@@ -113,7 +113,7 @@ function te(e) {
|
|
|
113
113
|
if (!(e.granularity !== void 0 && e.granularity !== null))
|
|
114
114
|
return L(e.dataType) === "date" ? { granularity: "day", assumedDay: !0 } : void 0;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Be(e) {
|
|
117
117
|
const t = te(e);
|
|
118
118
|
if (!t)
|
|
119
119
|
return {
|
|
@@ -122,11 +122,11 @@ function ke(e) {
|
|
|
122
122
|
};
|
|
123
123
|
let a, r, n;
|
|
124
124
|
if (e.format !== void 0 && e.format !== null) {
|
|
125
|
-
const f =
|
|
125
|
+
const f = q.safeParse(e.format);
|
|
126
126
|
if (!f.success)
|
|
127
127
|
a = b, r = "unsupported_pattern";
|
|
128
128
|
else {
|
|
129
|
-
const d =
|
|
129
|
+
const d = F(
|
|
130
130
|
f.data,
|
|
131
131
|
t.granularity
|
|
132
132
|
);
|
|
@@ -151,11 +151,11 @@ function ke(e) {
|
|
|
151
151
|
} : {}
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
-
var
|
|
154
|
+
var Re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
155
155
|
function re(e) {
|
|
156
156
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Ye(e) {
|
|
159
159
|
if (e.__esModule) return e;
|
|
160
160
|
var t = e.default;
|
|
161
161
|
if (typeof t == "function") {
|
|
@@ -174,11 +174,11 @@ function Be(e) {
|
|
|
174
174
|
});
|
|
175
175
|
}), a;
|
|
176
176
|
}
|
|
177
|
-
var
|
|
177
|
+
var Y = {}, x = {}, E = { exports: {} }, s = String, P = function() {
|
|
178
178
|
return { isColorSupported: !1, reset: s, bold: s, dim: s, italic: s, underline: s, inverse: s, hidden: s, strikethrough: s, black: s, red: s, green: s, yellow: s, blue: s, magenta: s, cyan: s, white: s, gray: s, bgBlack: s, bgRed: s, bgGreen: s, bgYellow: s, bgBlue: s, bgMagenta: s, bgCyan: s, bgWhite: s, blackBright: s, redBright: s, greenBright: s, yellowBright: s, blueBright: s, magentaBright: s, cyanBright: s, whiteBright: s, bgBlackBright: s, bgRedBright: s, bgGreenBright: s, bgYellowBright: s, bgBlueBright: s, bgMagentaBright: s, bgCyanBright: s, bgWhiteBright: s };
|
|
179
179
|
};
|
|
180
|
-
E.exports =
|
|
181
|
-
E.exports.createColors =
|
|
180
|
+
E.exports = P();
|
|
181
|
+
E.exports.createColors = P;
|
|
182
182
|
var ae = E.exports;
|
|
183
183
|
(function(e) {
|
|
184
184
|
Object.defineProperty(e, "__esModule", {
|
|
@@ -237,7 +237,7 @@ var ae = E.exports;
|
|
|
237
237
|
]);
|
|
238
238
|
}
|
|
239
239
|
};
|
|
240
|
-
})(
|
|
240
|
+
})(x);
|
|
241
241
|
(function(e) {
|
|
242
242
|
Object.defineProperty(e, "__esModule", {
|
|
243
243
|
value: !0
|
|
@@ -247,7 +247,7 @@ var ae = E.exports;
|
|
|
247
247
|
return n;
|
|
248
248
|
}
|
|
249
249
|
});
|
|
250
|
-
const t = /* @__PURE__ */ a(
|
|
250
|
+
const t = /* @__PURE__ */ a(x);
|
|
251
251
|
function a(i) {
|
|
252
252
|
return i && i.__esModule ? i : {
|
|
253
253
|
default: i
|
|
@@ -587,8 +587,8 @@ var ae = E.exports;
|
|
|
587
587
|
}), this.slate;
|
|
588
588
|
}
|
|
589
589
|
};
|
|
590
|
-
})(
|
|
591
|
-
let C =
|
|
590
|
+
})(Y);
|
|
591
|
+
let C = Y;
|
|
592
592
|
var oe = (C.__esModule ? C : { default: C }).default;
|
|
593
593
|
const l = /* @__PURE__ */ re(oe), ne = ".semaphor-scope";
|
|
594
594
|
function ie(e) {
|
|
@@ -599,11 +599,11 @@ function se(e) {
|
|
|
599
599
|
const t = e.dataset.semaphorTheme;
|
|
600
600
|
return t === "dark" || t === "light" ? t : e.classList.contains("dark") ? "dark" : "light";
|
|
601
601
|
}
|
|
602
|
-
const
|
|
602
|
+
const xe = [
|
|
603
603
|
"table",
|
|
604
604
|
"view",
|
|
605
605
|
"materialized view"
|
|
606
|
-
],
|
|
606
|
+
], Pe = ["_forecast"], De = "dm", Ie = "semaphor_calculated_fields", Oe = "calculated_fields", Ue = ["lg", "md", "sm", "xs", "xxs"], qe = {
|
|
607
607
|
// dashboardHeader: ' font-mono border-b-2 border-red-700',
|
|
608
608
|
default: {
|
|
609
609
|
dashboardPanel: "",
|
|
@@ -664,7 +664,7 @@ const Ye = [
|
|
|
664
664
|
plugins: {
|
|
665
665
|
datalabels: {
|
|
666
666
|
display: !1,
|
|
667
|
-
color:
|
|
667
|
+
color: R
|
|
668
668
|
},
|
|
669
669
|
title: {
|
|
670
670
|
display: !0
|
|
@@ -756,7 +756,7 @@ const Ye = [
|
|
|
756
756
|
// colors.green[500],
|
|
757
757
|
// ],
|
|
758
758
|
datalables: {
|
|
759
|
-
color:
|
|
759
|
+
color: R
|
|
760
760
|
},
|
|
761
761
|
backgroundColor: [
|
|
762
762
|
// colors.teal[900],
|
|
@@ -838,7 +838,7 @@ const Ye = [
|
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
840
|
};
|
|
841
|
-
function
|
|
841
|
+
function R(e) {
|
|
842
842
|
var r, n, i, f, d, o, u, p, c;
|
|
843
843
|
const t = (d = (f = (i = (n = (r = e == null ? void 0 : e.chart) == null ? void 0 : r.config) == null ? void 0 : n._config) == null ? void 0 : i.options) == null ? void 0 : f.plugins) == null ? void 0 : d.datalabels;
|
|
844
844
|
let a = (o = e == null ? void 0 : e.dataset) == null ? void 0 : o.backgroundColor;
|
|
@@ -891,7 +891,7 @@ const de = {
|
|
|
891
891
|
g: 255,
|
|
892
892
|
b: 255
|
|
893
893
|
};
|
|
894
|
-
function
|
|
894
|
+
function Ge(e) {
|
|
895
895
|
const { spec: t, window: a, queryContext: r, reportContext: n } = e;
|
|
896
896
|
if (!e.cardId) throw new Error("Matrix query requires its card identity.");
|
|
897
897
|
return {
|
|
@@ -899,7 +899,7 @@ function qe(e) {
|
|
|
899
899
|
cardType: "matrixTable",
|
|
900
900
|
cardConfig: { matrix: { spec: t } },
|
|
901
901
|
matrixWindowRequest: a,
|
|
902
|
-
...
|
|
902
|
+
...V({ runtimeFilters: r.resolvedFilters, runtimeSorts: e.runtimeSorts }),
|
|
903
903
|
active_filters: r.cardFilterValues,
|
|
904
904
|
calendarContext: n.calendar,
|
|
905
905
|
controlDefinitions: r.controlDefinitions,
|
|
@@ -912,7 +912,7 @@ function qe(e) {
|
|
|
912
912
|
}
|
|
913
913
|
function le(e) {
|
|
914
914
|
return (t, a) => {
|
|
915
|
-
const r = e.filter((n) => n.field.name === t.name && !!n.field.source &&
|
|
915
|
+
const r = e.filter((n) => n.field.name === t.name && !!n.field.source && T(n.field.source, t.source ?? a));
|
|
916
916
|
return r.length === 1 ? r[0] : void 0;
|
|
917
917
|
};
|
|
918
918
|
}
|
|
@@ -923,16 +923,16 @@ function I(e) {
|
|
|
923
923
|
return (n = t(a, r)) == null ? void 0 : n.resolvedField;
|
|
924
924
|
};
|
|
925
925
|
}
|
|
926
|
-
function
|
|
926
|
+
function Le(e) {
|
|
927
927
|
const t = I(e);
|
|
928
928
|
return (a, r) => a.derivedField ? void 0 : t(a, r);
|
|
929
929
|
}
|
|
930
930
|
function ce(e, t, a) {
|
|
931
931
|
if (e.derivedField) return e.derivedField.dataType;
|
|
932
|
-
const r = a.filter((i) => !i.derivedField && i.name === e.name &&
|
|
932
|
+
const r = a.filter((i) => !i.derivedField && i.name === e.name && T(i.source ?? t, e.source ?? t));
|
|
933
933
|
return r.length ? new Set(r.map((i) => i.dataType)).size === 1 ? r[0].dataType ?? e.dataType : void 0 : e.dataType;
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function S(e, t, a) {
|
|
936
936
|
var d;
|
|
937
937
|
const r = (d = e.config) == null ? void 0 : d.matrix;
|
|
938
938
|
if (!r) return [];
|
|
@@ -960,7 +960,7 @@ function F(e, t, a) {
|
|
|
960
960
|
...i(
|
|
961
961
|
o.field,
|
|
962
962
|
o.id,
|
|
963
|
-
|
|
963
|
+
j(o, r.presentation)
|
|
964
964
|
),
|
|
965
965
|
granularity: o.grain,
|
|
966
966
|
role: f === "rows" ? "groupby" : "pivotby"
|
|
@@ -978,7 +978,7 @@ function F(e, t, a) {
|
|
|
978
978
|
}));
|
|
979
979
|
}
|
|
980
980
|
function ue(e) {
|
|
981
|
-
return
|
|
981
|
+
return K(e, { authoringDraft: !0 });
|
|
982
982
|
}
|
|
983
983
|
function pe(e) {
|
|
984
984
|
return e.type !== "matrixTable";
|
|
@@ -1014,9 +1014,9 @@ function _(e, t = []) {
|
|
|
1014
1014
|
error: a.status === "invalid" ? a.error : void 0,
|
|
1015
1015
|
get fields() {
|
|
1016
1016
|
return r ? {
|
|
1017
|
-
rows:
|
|
1018
|
-
columns:
|
|
1019
|
-
metrics:
|
|
1017
|
+
rows: S(n, "groupBy", t),
|
|
1018
|
+
columns: S(n, "pivotBy", t),
|
|
1019
|
+
metrics: S(n, "metrics", t),
|
|
1020
1020
|
details: []
|
|
1021
1021
|
} : { rows: [], columns: [], metrics: [], details: [] };
|
|
1022
1022
|
},
|
|
@@ -1025,7 +1025,7 @@ function _(e, t = []) {
|
|
|
1025
1025
|
filters: (u = (o = (d = e.config) == null ? void 0 : d.matrix) == null ? void 0 : o.spec) == null ? void 0 : u.filters,
|
|
1026
1026
|
joinPlan: (m = (c = (p = e.config) == null ? void 0 : p.matrix) == null ? void 0 : c.spec) == null ? void 0 : m.joinPlan,
|
|
1027
1027
|
get configured() {
|
|
1028
|
-
return
|
|
1028
|
+
return N.safeParse(r).success;
|
|
1029
1029
|
},
|
|
1030
1030
|
supportsSql: !1
|
|
1031
1031
|
};
|
|
@@ -1033,55 +1033,70 @@ function _(e, t = []) {
|
|
|
1033
1033
|
function ge(e) {
|
|
1034
1034
|
return e ? Object.values(O({ config: e })).some((t) => t.length > 0) : !1;
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function U(e, t) {
|
|
1037
1037
|
var n, i;
|
|
1038
1038
|
if ((n = e.config) != null && n.matrix) return e.config.matrix;
|
|
1039
|
-
const a = ((i = e.dataSource) == null ? void 0 : i.selectedEntities) ?? [], r = t ?? (a.length === 1 ?
|
|
1039
|
+
const a = ((i = e.dataSource) == null ? void 0 : i.selectedEntities) ?? [], r = t ?? (a.length === 1 ? A(a[0], e.dataSource) : void 0);
|
|
1040
1040
|
if (!r) throw new Error("Select a base dataset before configuring Matrix fields or filters.");
|
|
1041
1041
|
return H({ source: r, rows: [], columns: [], measures: [], sorts: [], rankings: [] });
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1043
|
+
function Ne(e) {
|
|
1044
1044
|
return _({ type: e }).supportsSql;
|
|
1045
1045
|
}
|
|
1046
|
-
|
|
1047
|
-
|
|
1046
|
+
const me = /* @__PURE__ */ new Set([
|
|
1047
|
+
"table",
|
|
1048
|
+
"pivotTable",
|
|
1049
|
+
"aggregateTable",
|
|
1050
|
+
"detailTable",
|
|
1051
|
+
"matrixTable",
|
|
1052
|
+
"kpi"
|
|
1053
|
+
]);
|
|
1054
|
+
function Ve(e) {
|
|
1055
|
+
return !me.has(e);
|
|
1056
|
+
}
|
|
1057
|
+
const be = /* @__PURE__ */ new Set(["kpi", "matrixTable"]);
|
|
1058
|
+
function We(e) {
|
|
1059
|
+
return !be.has(e);
|
|
1048
1060
|
}
|
|
1049
1061
|
function je(e, t) {
|
|
1062
|
+
return e.type !== t && (e.type === "matrixTable" || t === "matrixTable") ? { config: {}, controlBindings: [], sql: "", python: "" } : {};
|
|
1063
|
+
}
|
|
1064
|
+
function Qe(e, t) {
|
|
1050
1065
|
var n, i;
|
|
1051
1066
|
const a = e.type === "matrixTable" ? (i = (n = e.config) == null ? void 0 : n.matrix) == null ? void 0 : i.spec.source : void 0;
|
|
1052
1067
|
return !a || (t.selectedEntities ?? []).some((f) => {
|
|
1053
|
-
const d =
|
|
1054
|
-
return d &&
|
|
1068
|
+
const d = A(f, t);
|
|
1069
|
+
return d && T(a, d);
|
|
1055
1070
|
}) ? { dataSource: t } : { dataSource: t, config: {}, controlBindings: [] };
|
|
1056
1071
|
}
|
|
1057
|
-
function
|
|
1072
|
+
function He(e) {
|
|
1058
1073
|
return _(e).joinPlan;
|
|
1059
1074
|
}
|
|
1060
|
-
function
|
|
1075
|
+
function Ke(e, t) {
|
|
1061
1076
|
var i;
|
|
1062
1077
|
if (e.type !== "matrixTable") return { ...e.config, joinPlan: t };
|
|
1063
|
-
const a = (i = e.config) == null ? void 0 : i.matrix, r = t ?
|
|
1078
|
+
const a = (i = e.config) == null ? void 0 : i.matrix, r = t ? A(t.baseEntity, e.dataSource) : a == null ? void 0 : a.spec.source;
|
|
1064
1079
|
if (!r) {
|
|
1065
1080
|
if (!t) return e.config ?? {};
|
|
1066
1081
|
throw new Error("Matrix joins require a configured base source.");
|
|
1067
1082
|
}
|
|
1068
|
-
const n =
|
|
1083
|
+
const n = U(e, r);
|
|
1069
1084
|
return { matrix: { ...n, spec: { ...n.spec, source: r, joinPlan: t } } };
|
|
1070
1085
|
}
|
|
1071
|
-
function
|
|
1086
|
+
function $e(e) {
|
|
1072
1087
|
return e ? _(e).filters : void 0;
|
|
1073
1088
|
}
|
|
1074
|
-
function
|
|
1089
|
+
function ze(e, t) {
|
|
1075
1090
|
var r;
|
|
1076
1091
|
if (e.type !== "matrixTable") return { ...e.config, filters: t };
|
|
1077
1092
|
if (!t && !((r = e.config) != null && r.matrix)) return e.config ?? {};
|
|
1078
|
-
const a =
|
|
1093
|
+
const a = U(e);
|
|
1079
1094
|
return { matrix: { ...a, spec: { ...a.spec, filters: t } } };
|
|
1080
1095
|
}
|
|
1081
|
-
function
|
|
1096
|
+
function ye(e, t) {
|
|
1082
1097
|
return e ? t ? _({ type: t, config: e }).configured : ge(e) : !1;
|
|
1083
1098
|
}
|
|
1084
|
-
function
|
|
1099
|
+
function Je(e, t) {
|
|
1085
1100
|
var f, d, o;
|
|
1086
1101
|
if (t != null && t.skipSetupCheck || e.type === "text")
|
|
1087
1102
|
return !1;
|
|
@@ -1089,45 +1104,47 @@ function He(e, t) {
|
|
|
1089
1104
|
if (!a.supportsSql) return !a.configured;
|
|
1090
1105
|
if ((f = e.customCardPreferences) != null && f.url)
|
|
1091
1106
|
return !1;
|
|
1092
|
-
const r = !!(e.connectionId || (d = e.dataSource) != null && d.connectionId), n = !!((o = e.sql) != null && o.trim()), i =
|
|
1107
|
+
const r = !!(e.connectionId || (d = e.dataSource) != null && d.connectionId), n = !!((o = e.sql) != null && o.trim()), i = ye(e.config);
|
|
1093
1108
|
return !r || !i && !n;
|
|
1094
1109
|
}
|
|
1095
1110
|
export {
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1111
|
+
Ye as A,
|
|
1112
|
+
Ue as B,
|
|
1113
|
+
Oe as C,
|
|
1114
|
+
De as D,
|
|
1115
|
+
Le as E,
|
|
1116
|
+
I as F,
|
|
1117
|
+
R as G,
|
|
1118
|
+
xe as H,
|
|
1119
|
+
O as I,
|
|
1120
|
+
S as J,
|
|
1121
|
+
U as K,
|
|
1122
|
+
Ie as L,
|
|
1123
|
+
Pe as M,
|
|
1124
|
+
Me as a,
|
|
1125
|
+
Je as b,
|
|
1109
1126
|
_ as c,
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1127
|
+
Qe as d,
|
|
1128
|
+
je as e,
|
|
1129
|
+
qe as f,
|
|
1113
1130
|
re as g,
|
|
1114
|
-
|
|
1131
|
+
ye as h,
|
|
1115
1132
|
pe as i,
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1133
|
+
Re as j,
|
|
1134
|
+
He as k,
|
|
1135
|
+
Ke as l,
|
|
1119
1136
|
ce as m,
|
|
1120
1137
|
l as n,
|
|
1121
1138
|
ue as o,
|
|
1122
1139
|
fe as p,
|
|
1123
1140
|
w as q,
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1141
|
+
Be as r,
|
|
1142
|
+
Ne as s,
|
|
1143
|
+
$e as t,
|
|
1144
|
+
We as u,
|
|
1145
|
+
ke as v,
|
|
1146
|
+
ze as w,
|
|
1147
|
+
Ve as x,
|
|
1148
|
+
Ge as y,
|
|
1149
|
+
le as z
|
|
1133
1150
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { E as o, F as d, S as i, B as s, a as c, U as l, D as t, C as h, b as f } from "./semaphor-ready-indicator-
|
|
2
|
+
import { E as o, F as d, S as i, B as s, a as c, U as l, D as t, C as h, b as f } from "./semaphor-ready-indicator-3TXTZgw-.js";
|
|
3
3
|
function p(e) {
|
|
4
4
|
if (typeof window > "u")
|
|
5
5
|
return null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as t, jsxs as s, Fragment as $ } from "react/jsx-runtime";
|
|
2
2
|
import * as ue from "react";
|
|
3
3
|
import _t, { useState as F, useEffect as J, useCallback as j, useMemo as oe, useLayoutEffect as Pt, useRef as ge, useContext as pr } from "react";
|
|
4
|
-
import { B as U, m as Te, r as dt, L as ie, a2 as Je, $ as pe, u as L, aO as R, a1 as ee, k as Ot, d as ut, c as X, j as fr, aY as qe, aP as gr, P as He, a as Qe, b as Ge, aZ as br, S as $t, a_ as vr, a$ as xr, b0 as yr, b1 as Cr, aK as wr } from "./switch-
|
|
5
|
-
import {
|
|
4
|
+
import { B as U, m as Te, r as dt, L as ie, a2 as Je, $ as pe, u as L, aO as R, a1 as ee, k as Ot, d as ut, c as X, j as fr, aY as qe, aP as gr, P as He, a as Qe, b as Ge, aZ as br, S as $t, a_ as vr, a$ as xr, b0 as yr, b1 as Cr, aK as wr } from "./switch-CKB-kUaC.js";
|
|
5
|
+
import { c8 as ht, b8 as Ue, b9 as Re, bb as Ve, c9 as Nr, ca as Sr, aK as Be, aI as et, cb as Dr, cc as tt, cd as mt, ce as Er, cf as kr, cg as Ar, aW as Ir, ch as Fr, ci as Pr, aE as Se, bO as zt, av as Ke, k as Lr, g as Tr, cj as Ur, c0 as pt, c1 as ft, c2 as gt, c3 as bt, c4 as vt, c5 as xt, c6 as yt, c7 as jt, at as Ct, ck as Rr, cl as Vr, cm as ot, bP as rt, bQ as at, cn as Wt, bR as nt, bv as Y, b_ as Br, bZ as Xe, co as Mr, bt as _r, ba as wt, bc as Nt, cp as Or, b7 as $r, cq as qt, cr as St, cs as zr, bC as jr, u as Wr, ct as qr, z as xe, ao as Le, ak as Ht, al as Ye, cu as Q, A as Qt, aj as Hr, cv as Qr, aq as Gr, R as Gt, cw as Kr, am as Lt, H as Xr, cx as Yr, cy as Zr, cz as Jr, cA as ea, cB as ta, cC as ra, cD as Kt, cE as aa, cF as na, cG as sa, bS as Xt, cH as oa, cI as ze, cJ as ia, cK as la, cL as ca, af as da, ag as ua, X as ha, W as ma, T as pa, Q as fa, N as ga, K as ba, cM as va, cN as xa, cO as ya, cP as Ca, cQ as wa, ad as Na, cR as Sa, cS as Da, a1 as Ea, cT as ka, cU as Aa, cV as Ia } from "./semaphor-ready-indicator-3TXTZgw-.js";
|
|
6
6
|
import { L as Dt, S as Yt } from "./save-kO6cIaob.js";
|
|
7
7
|
import { c as De, X as Me, C as Zt } from "./x-CXDkqdur.js";
|
|
8
8
|
import { t as Fa } from "./validators-DMSH81OM.js";
|
|
@@ -11,14 +11,14 @@ import "zod";
|
|
|
11
11
|
import "../value-format-preferences/index.js";
|
|
12
12
|
import { S as Pa } from "./selection-reducer-CiDEtmAq.js";
|
|
13
13
|
import { s as je } from "./normalize-dashboard-for-dirty-check-Bk3VYv_q.js";
|
|
14
|
-
import { f as La, V as Ta, L as Ua, a as Ra, u as Jt, C as er, F as Va, b as Ba } from "./use-create-flow-overlay-state-
|
|
14
|
+
import { f as La, V as Ta, L as Ua, a as Ra, u as Jt, C as er, F as Va, b as Ba } from "./use-create-flow-overlay-state-Bk-SBnaY.js";
|
|
15
15
|
import "react-dom";
|
|
16
16
|
import "./matrix-continuation-C4sRcjZU.js";
|
|
17
17
|
import "./field-aggregations-CoLzYHeL.js";
|
|
18
|
-
import { v as Tt, s as Ma } from "./card-config-utils-
|
|
18
|
+
import { v as Tt, s as Ma } from "./card-config-utils-BOM1dxCk.js";
|
|
19
19
|
import { l as _a } from "./bookmark-state-B-I9BDD0.js";
|
|
20
20
|
import { l as Ut } from "./matrix-formatter-DJCk8Znf.js";
|
|
21
|
-
import { d as me, e as Oa, h as $a } from "./index-
|
|
21
|
+
import { d as me, e as Oa, h as $a } from "./index-DTcTAGGM.js";
|
|
22
22
|
/**
|
|
23
23
|
* @license lucide-react v0.453.0 - ISC
|
|
24
24
|
*
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as t, jsxs as i, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
-
import { u as D, B as T, aP as Gr, aQ as Vr, aR as Xe, c as be, aO as C, aS as ge, aT as at, aU as Ht, L as Pe, m as jr, s as Hr, t as qr, v as zr, w as Kr, x as Qr, aV as Wr, aW as St, aX as Yr, P as Jr, a as Xr, b as Zr, aK as ea, a1 as kt, n as Ct, o as Dt, p as Et, q as It, I as ta, D as ra } from "./switch-
|
|
3
|
-
import {
|
|
2
|
+
import { u as D, B as T, aP as Gr, aQ as Vr, aR as Xe, c as be, aO as C, aS as ge, aT as at, aU as Ht, L as Pe, m as jr, s as Hr, t as qr, v as zr, w as Kr, x as Qr, aV as Wr, aW as St, aX as Yr, P as Jr, a as Xr, b as Zr, aK as ea, a1 as kt, n as Ct, o as Dt, p as Et, q as It, I as ta, D as ra } from "./switch-CKB-kUaC.js";
|
|
3
|
+
import { bd as aa, be as na, bf as nt, bg as oa, bh as sa, bi as ia, bj as da, bk as la, bl as ca, aK as q, aI as xe, bm as ve, bn as ua, b8 as qt, b9 as zt, bb as Ze, bc as et, bo as Kt, av as ot, aE as ee, bp as ma, bq as ha, br as Qt, bs as pa, bt as Wt, ba as fa, bu as ba, bv as R, bw as ga, bx as At, by as xa, bz as va, bA as ya, bB as wa, ag as Na, aW as Sa, bC as ka, bD as Ca, bE as Da, f as Ea, u as Le, l as Ia, g as Qe, bF as Aa, bG as La, bH as Ma, bI as Oa, y as Pa, bJ as _a, bK as Ra, bL as Ua, aY as Ta, bM as $a, bN as Fa, bO as Ba, bP as Lt, bQ as Mt, bR as Ot, bS as Ga, bT as Va, bU as ja, bV as Ha, bW as Me, bX as qa, bY as za, bZ as We, b_ as Pt, k as Ka, b$ as Qa, c0 as Wa, c1 as Ya, c2 as Ja, c3 as Xa, c4 as Za, c5 as en, c6 as tn, c7 as _t } from "./semaphor-ready-indicator-3TXTZgw-.js";
|
|
4
4
|
import { c as te, X as Yt, C as rn } from "./x-CXDkqdur.js";
|
|
5
5
|
import * as I from "react";
|
|
6
6
|
import Jt, { useMemo as V, useState as S, useEffect as _e, useRef as Rt, useLayoutEffect as an } from "react";
|
|
7
|
-
import { d as nn, c as on, u as sn, A as dn, a as ln, g as cn, V as un, N as mn, h as hn, U as pn } from "./dashboard-briefing-launcher-
|
|
8
|
-
import { I as Ut } from "./use-create-flow-overlay-state-
|
|
9
|
-
import "./card-config-utils-
|
|
7
|
+
import { d as nn, c as on, u as sn, A as dn, a as ln, g as cn, V as un, N as mn, h as hn, U as pn } from "./dashboard-briefing-launcher-DV_rlhT2.js";
|
|
8
|
+
import { I as Ut } from "./use-create-flow-overlay-state-Bk-SBnaY.js";
|
|
9
|
+
import "./card-config-utils-BOM1dxCk.js";
|
|
10
10
|
import { createPortal as fn } from "react-dom";
|
|
11
11
|
import "./validators-DMSH81OM.js";
|
|
12
12
|
import "./matrix-operation-contract-BKupLHXL.js";
|
|
@@ -15,7 +15,7 @@ import "../value-format-preferences/index.js";
|
|
|
15
15
|
import { S as bn, C as gn } from "./selection-reducer-CiDEtmAq.js";
|
|
16
16
|
import { k as Xt } from "./matrix-formatter-DJCk8Znf.js";
|
|
17
17
|
import { I as tt } from "./calculated-field-identity-BptYhyOP.js";
|
|
18
|
-
import { R as xn } from "./report-preferences-dialog-
|
|
18
|
+
import { R as xn } from "./report-preferences-dialog-CW8VEIDx.js";
|
|
19
19
|
import { r as vn } from "./pivot-result-lifecycle-DQz_gjGu.js";
|
|
20
20
|
import { u as yn } from "./use-debounced-dirty-check-BwAbnX_5.js";
|
|
21
21
|
import { s as wn } from "./normalize-dashboard-for-dirty-check-Bk3VYv_q.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as m, useState as f, useRef as b, useEffect as p } from "react";
|
|
3
|
-
import { u as o, c as S, B as N, C as D } from "./switch-
|
|
3
|
+
import { u as o, c as S, B as N, C as D } from "./switch-CKB-kUaC.js";
|
|
4
4
|
import { X as J } from "./x-CXDkqdur.js";
|
|
5
5
|
import "./validators-DMSH81OM.js";
|
|
6
6
|
import "./matrix-operation-contract-BKupLHXL.js";
|