react-semaphor 0.1.534 → 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 +25 -25
- package/dist/briefings/index.js +1 -1
- package/dist/chunks/{calculated-field-identity-Cz1ZU_UL.js → calculated-field-identity-BptYhyOP.js} +4 -4
- package/dist/chunks/{card-config-utils-BlIiFn0O.js → card-config-utils-BOM1dxCk.js} +102 -86
- package/dist/chunks/{dashboard-CCK80YKL.js → dashboard-BTDY_I5L.js} +1 -1
- package/dist/chunks/dashboard-briefing-launcher-DV_rlhT2.js +4224 -0
- package/dist/chunks/{dashboard-controls-CoiTGnEr.js → dashboard-controls-B4LxN5dr.js} +862 -873
- package/dist/chunks/{dashboard-json-BRGozO--.js → dashboard-json-Ccjo0Dzw.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-CZFnhGZQ.js → edit-dashboard-visual-L5zsle6X.js} +9922 -9900
- package/dist/chunks/{index-BQl5rC54.js → index-DTcTAGGM.js} +1 -1
- package/dist/chunks/{matrix-control-sources-Tls-h3AN.js → matrix-control-sources-DTqcA2_L.js} +1 -1
- package/dist/chunks/report-preferences-dialog-CW8VEIDx.js +1623 -0
- package/dist/chunks/{layout-grid-CiubineE.js → save-kO6cIaob.js} +20 -2
- package/dist/chunks/{semaphor-ready-indicator-z4SNdxiC.js → semaphor-ready-indicator-3TXTZgw-.js} +65377 -79784
- package/dist/chunks/shelf-drop-preview-context-CBCs9rjz.js +2404 -0
- package/dist/chunks/{switch-BR3Xgbqr.js → switch-CKB-kUaC.js} +4355 -4779
- package/dist/chunks/upload-CAIpsti1.js +15 -0
- package/dist/chunks/use-create-flow-overlay-state-Bk-SBnaY.js +1457 -0
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +4 -4
- package/dist/index.js +221 -220
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/components/surfboard/controls/dashboard-filter-controls-launcher.d.ts +0 -1
- package/dist/types/lib/hooks/use-dashboard-query.d.ts +0 -2
- package/dist/types/lib/hooks/use-dashboard.d.ts +0 -1
- package/dist/types/lib/stores/dashboard-store.d.ts +1 -11
- package/dist/types/lib/stores/editor-store.d.ts +1 -10
- package/dist/types/lib/types/ai-context-types.d.ts +20 -0
- package/dist/types/lib/types/common-types.d.ts +1 -20
- package/dist/types/lib/types/token-types.d.ts +0 -7
- package/dist/types/lib/utils.d.ts +0 -2
- package/package.json +1 -7
- package/dist/chunks/dashboard-briefing-launcher-B9Fq2Rf3.js +0 -3489
- package/dist/chunks/editor-action-buttons-CVtSO3I3.js +0 -2067
- package/dist/chunks/report-preferences-dialog-CWdTlWsr.js +0 -1231
- package/dist/chunks/save-DgMfP0j8.js +0 -21
- package/dist/chunks/slider-DbwmuVB-.js +0 -875
- package/dist/dashboard-assistant/index.js +0 -11
- package/dist/types/dashboard-assistant/index.d.ts +0 -80
- package/dist/types/dashboard-assistant.d.ts +0 -2
- package/dist/types/lib/types/assistant-types.d.ts +0 -127
|
@@ -1,17 +1,17 @@
|
|
|
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,
|
|
4
|
-
import { A as
|
|
5
|
-
import { c as ne, X as
|
|
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
|
+
import { A as Ge, p as We } from "../chunks/color-CJvdlFM_.js";
|
|
5
|
+
import { c as ne, X as He } from "../chunks/x-CXDkqdur.js";
|
|
6
6
|
import "../chunks/validators-DMSH81OM.js";
|
|
7
7
|
import "../chunks/matrix-operation-contract-BKupLHXL.js";
|
|
8
8
|
import "zod";
|
|
9
9
|
import "../value-format-preferences/index.js";
|
|
10
|
-
import { r as
|
|
10
|
+
import { r as Xe, v as Ye, A as qe } from "../chunks/index-CLIro-EG.js";
|
|
11
11
|
import { P as G } from "../chunks/palette-Cp1hqZtm.js";
|
|
12
|
-
import { B as
|
|
13
|
-
import {
|
|
14
|
-
import { L as er } from "../chunks/
|
|
12
|
+
import { B as Ze } from "../chunks/braces-8TRlDwDw.js";
|
|
13
|
+
import { U as Ke } from "../chunks/upload-CAIpsti1.js";
|
|
14
|
+
import { S as Qe, L as er } from "../chunks/save-kO6cIaob.js";
|
|
15
15
|
/**
|
|
16
16
|
* @license lucide-react v0.453.0 - ISC
|
|
17
17
|
*
|
|
@@ -210,7 +210,7 @@ const ar = ne("Pipette", [
|
|
|
210
210
|
}
|
|
211
211
|
];
|
|
212
212
|
function J(e) {
|
|
213
|
-
const n =
|
|
213
|
+
const n = Xe({
|
|
214
214
|
organizationAppearance: e ?? void 0
|
|
215
215
|
});
|
|
216
216
|
return nr(
|
|
@@ -231,10 +231,10 @@ function nr(e) {
|
|
|
231
231
|
}
|
|
232
232
|
function L(e) {
|
|
233
233
|
const n = O({
|
|
234
|
-
version:
|
|
234
|
+
version: qe,
|
|
235
235
|
mode: e.mode,
|
|
236
236
|
schemes: e.schemes
|
|
237
|
-
}), t =
|
|
237
|
+
}), t = Ye(n);
|
|
238
238
|
if (!t.success) {
|
|
239
239
|
const c = t.issues[0];
|
|
240
240
|
throw new Error(
|
|
@@ -457,7 +457,7 @@ const ir = [
|
|
|
457
457
|
["negative", "Negative"],
|
|
458
458
|
["warning", "Warning"],
|
|
459
459
|
["info", "Info"]
|
|
460
|
-
], cr = [0, 1, 2, 3, 4, 5], X =
|
|
460
|
+
], cr = [0, 1, 2, 3, 4, 5], X = Ge, lr = [
|
|
461
461
|
"#ffffff",
|
|
462
462
|
"#f8fafc",
|
|
463
463
|
"#f4f4f5",
|
|
@@ -625,7 +625,7 @@ function Br({
|
|
|
625
625
|
onOpenChange: Re,
|
|
626
626
|
children: [
|
|
627
627
|
/* @__PURE__ */ r(be, { asChild: !0, children: /* @__PURE__ */ d(C, { type: "button", size: "xs", variant: "ghost", disabled: !f, children: [
|
|
628
|
-
/* @__PURE__ */ r(
|
|
628
|
+
/* @__PURE__ */ r(Ze, { className: "h-3.5 w-3.5" }),
|
|
629
629
|
"Brand Spec"
|
|
630
630
|
] }) }),
|
|
631
631
|
/* @__PURE__ */ d(
|
|
@@ -665,7 +665,7 @@ function Br({
|
|
|
665
665
|
return (o = de.current) == null ? void 0 : o.click();
|
|
666
666
|
},
|
|
667
667
|
children: [
|
|
668
|
-
/* @__PURE__ */ r(
|
|
668
|
+
/* @__PURE__ */ r(Ke, { className: "h-3.5 w-3.5" }),
|
|
669
669
|
"Upload"
|
|
670
670
|
]
|
|
671
671
|
}
|
|
@@ -674,7 +674,7 @@ function Br({
|
|
|
674
674
|
] })
|
|
675
675
|
] }),
|
|
676
676
|
/* @__PURE__ */ r("div", { className: "h-[320px] overflow-hidden rounded-control border border-input", children: /* @__PURE__ */ r(
|
|
677
|
-
|
|
677
|
+
De,
|
|
678
678
|
{
|
|
679
679
|
ariaLabel: "Brand spec",
|
|
680
680
|
value: D,
|
|
@@ -752,7 +752,7 @@ function Br({
|
|
|
752
752
|
"aria-label": "Close Brand Studio",
|
|
753
753
|
className: "flex h-7 w-7 items-center justify-center rounded-control text-muted-foreground hover:bg-muted hover:text-foreground",
|
|
754
754
|
onClick: S,
|
|
755
|
-
children: /* @__PURE__ */ r(
|
|
755
|
+
children: /* @__PURE__ */ r(He, { className: "h-3.5 w-3.5" })
|
|
756
756
|
}
|
|
757
757
|
)
|
|
758
758
|
] }),
|
|
@@ -761,7 +761,7 @@ function Br({
|
|
|
761
761
|
/* @__PURE__ */ r(ue, { className: "h-3.5 w-3.5 text-destructive" }),
|
|
762
762
|
"Preview keeps the last valid draft"
|
|
763
763
|
] }) : /* @__PURE__ */ d(le, { children: [
|
|
764
|
-
/* @__PURE__ */ r(
|
|
764
|
+
/* @__PURE__ */ r(je, { className: "h-3.5 w-3.5 text-emerald-500" }),
|
|
765
765
|
"Draft is applied to the live dashboard preview"
|
|
766
766
|
] }) }),
|
|
767
767
|
/* @__PURE__ */ r("div", { className: "inline-flex h-7 items-center overflow-hidden rounded-control border border-border/70", children: ["light", "dark"].map((o) => /* @__PURE__ */ r(
|
|
@@ -779,13 +779,13 @@ function Br({
|
|
|
779
779
|
)) })
|
|
780
780
|
] }),
|
|
781
781
|
j && /* @__PURE__ */ r("div", { className: "border-b border-destructive/20 bg-destructive/5 px-4 py-2 text-[12px] text-destructive", children: j }),
|
|
782
|
-
t ? /* @__PURE__ */ r("div", { className: "flex flex-1 items-center justify-center", children: /* @__PURE__ */ r(se, { className: "h-4 w-4 animate-spin text-muted-foreground" }) }) : l ? /* @__PURE__ */ r("div", { className: "p-4 text-[13px] text-muted-foreground", children: l }) : f && u ? /* @__PURE__ */ d(
|
|
783
|
-
/* @__PURE__ */ r("div", { className: "shrink-0 px-4 pt-3", children: /* @__PURE__ */ d(
|
|
782
|
+
t ? /* @__PURE__ */ r("div", { className: "flex flex-1 items-center justify-center", children: /* @__PURE__ */ r(se, { className: "h-4 w-4 animate-spin text-muted-foreground" }) }) : l ? /* @__PURE__ */ r("div", { className: "p-4 text-[13px] text-muted-foreground", children: l }) : f && u ? /* @__PURE__ */ d(Ie, { defaultValue: "style", className: "flex min-h-0 flex-1 flex-col", children: [
|
|
783
|
+
/* @__PURE__ */ r("div", { className: "shrink-0 px-4 pt-3", children: /* @__PURE__ */ d(Je, { variant: "underline", className: "w-full gap-5", children: [
|
|
784
784
|
/* @__PURE__ */ r(V, { value: "style", children: "Style" }),
|
|
785
785
|
/* @__PURE__ */ r(V, { value: "surfaces", children: "Surfaces" }),
|
|
786
786
|
/* @__PURE__ */ r(V, { value: "data", children: "Data" })
|
|
787
787
|
] }) }),
|
|
788
|
-
/* @__PURE__ */ d(
|
|
788
|
+
/* @__PURE__ */ d(Le, { className: "min-h-0 flex-1", children: [
|
|
789
789
|
/* @__PURE__ */ d(M, { value: "style", className: "m-0 p-4", children: [
|
|
790
790
|
/* @__PURE__ */ r(
|
|
791
791
|
N,
|
|
@@ -851,7 +851,7 @@ function Br({
|
|
|
851
851
|
/* @__PURE__ */ d(
|
|
852
852
|
N,
|
|
853
853
|
{
|
|
854
|
-
icon:
|
|
854
|
+
icon: $e,
|
|
855
855
|
title: "Typography",
|
|
856
856
|
description: "Fonts and density used by dashboard and workflow chrome.",
|
|
857
857
|
children: [
|
|
@@ -1049,7 +1049,7 @@ function Br({
|
|
|
1049
1049
|
/* @__PURE__ */ d(
|
|
1050
1050
|
N,
|
|
1051
1051
|
{
|
|
1052
|
-
icon:
|
|
1052
|
+
icon: _e,
|
|
1053
1053
|
title: "Charts",
|
|
1054
1054
|
description: "Palette and semantic chart text/grid colors.",
|
|
1055
1055
|
children: [
|
|
@@ -1092,7 +1092,7 @@ function Br({
|
|
|
1092
1092
|
/* @__PURE__ */ d(
|
|
1093
1093
|
N,
|
|
1094
1094
|
{
|
|
1095
|
-
icon:
|
|
1095
|
+
icon: Ue,
|
|
1096
1096
|
title: "Tables",
|
|
1097
1097
|
description: "Flat, aggregate, and pivot tables share this V1 table appearance.",
|
|
1098
1098
|
children: [
|
|
@@ -1214,7 +1214,7 @@ function N({
|
|
|
1214
1214
|
] })
|
|
1215
1215
|
] }),
|
|
1216
1216
|
/* @__PURE__ */ r("div", { className: "space-y-2", children: c }),
|
|
1217
|
-
/* @__PURE__ */ r(
|
|
1217
|
+
/* @__PURE__ */ r(Ve, { className: "mt-5 bg-border/60" })
|
|
1218
1218
|
] });
|
|
1219
1219
|
}
|
|
1220
1220
|
function sr({
|
|
@@ -1380,7 +1380,7 @@ function y({
|
|
|
1380
1380
|
] });
|
|
1381
1381
|
}
|
|
1382
1382
|
function ur(e) {
|
|
1383
|
-
const n =
|
|
1383
|
+
const n = We(e);
|
|
1384
1384
|
return n ? `#${Y(n.r)}${Y(n.g)}${Y(n.b)}` : "#000000";
|
|
1385
1385
|
}
|
|
1386
1386
|
function Y(e) {
|
|
@@ -1456,7 +1456,7 @@ function Z({
|
|
|
1456
1456
|
}) {
|
|
1457
1457
|
return /* @__PURE__ */ d("div", { className: "flex h-8 items-center justify-between rounded-control border border-border/60 px-2", children: [
|
|
1458
1458
|
/* @__PURE__ */ r("span", { className: "text-[12px]", children: e }),
|
|
1459
|
-
/* @__PURE__ */ r(
|
|
1459
|
+
/* @__PURE__ */ r(Me, { size: "xs", checked: n, onCheckedChange: t })
|
|
1460
1460
|
] });
|
|
1461
1461
|
}
|
|
1462
1462
|
function pr(e) {
|
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,12 +1,12 @@
|
|
|
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
|
|
9
|
+
import { g as j, a as Q, b as H } from "./matrix-definition-D9iShKZI.js";
|
|
10
10
|
import { i as K } from "./matrix-card-CAdizkUl.js";
|
|
11
11
|
let v;
|
|
12
12
|
const $ = new Uint8Array(16);
|
|
@@ -24,14 +24,14 @@ function J(e, t = 0) {
|
|
|
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
31
|
const r = e.random || (e.rng || z)();
|
|
32
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
|
-
], Pe = ["_forecast"],
|
|
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 = !1, Re = [
|
|
|
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 = !1, Re = [
|
|
|
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 = !1, Re = [
|
|
|
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 Ue(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 Ue(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"
|
|
@@ -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
|
+
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);
|
|
1060
|
+
}
|
|
1046
1061
|
function je(e, t) {
|
|
1047
1062
|
return e.type !== t && (e.type === "matrixTable" || t === "matrixTable") ? { config: {}, controlBindings: [], sql: "", python: "" } : {};
|
|
1048
1063
|
}
|
|
1049
|
-
function
|
|
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,46 +1104,47 @@ function Ke(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
|
-
|
|
1111
|
+
Ye as A,
|
|
1112
|
+
Ue as B,
|
|
1113
|
+
Oe as C,
|
|
1114
|
+
De as D,
|
|
1115
|
+
Le as E,
|
|
1101
1116
|
I as F,
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1117
|
+
R as G,
|
|
1118
|
+
xe as H,
|
|
1119
|
+
O as I,
|
|
1120
|
+
S as J,
|
|
1121
|
+
U as K,
|
|
1122
|
+
Ie as L,
|
|
1107
1123
|
Pe as M,
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1124
|
+
Me as a,
|
|
1125
|
+
Je as b,
|
|
1126
|
+
_ as c,
|
|
1127
|
+
Qe as d,
|
|
1128
|
+
je as e,
|
|
1129
|
+
qe as f,
|
|
1130
|
+
re as g,
|
|
1131
|
+
ye as h,
|
|
1116
1132
|
pe as i,
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1133
|
+
Re as j,
|
|
1134
|
+
He as k,
|
|
1135
|
+
Ke as l,
|
|
1120
1136
|
ce as m,
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1137
|
+
l as n,
|
|
1138
|
+
ue as o,
|
|
1139
|
+
fe as p,
|
|
1140
|
+
w as q,
|
|
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,
|
|
1133
1149
|
le as z
|
|
1134
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;
|