react-semaphor 0.1.552 → 0.1.554
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/analytics-protocol/index.js +228 -227
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +3 -3
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/{assistant-chat-sWQaBT61.js → assistant-chat-ngs5dTvo.js} +1275 -1296
- package/dist/chunks/{bookmark-state-Cu-a5ie_.js → bookmark-state-BAeGKd3s.js} +3 -3
- package/dist/chunks/{comparison-window-caption-CF90-I0i.js → comparison-window-caption-C2WNTlxK.js} +44 -44
- package/dist/chunks/{custom-visual-inputs-ByQUyWf4.js → custom-visual-inputs-cTHqcqPu.js} +1 -1
- package/dist/chunks/{dashboard-BjoJI7NN.js → dashboard-548YvEW5.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DUJQv719.js → dashboard-briefing-launcher-ptIRn5FS.js} +62 -62
- package/dist/chunks/{dashboard-controls-BjnvfcQp.js → dashboard-controls-CqyUTN6Q.js} +46 -46
- package/dist/chunks/{dashboard-json-BqcLekhd.js → dashboard-json-CvDFipA0.js} +4 -4
- package/dist/chunks/{document-dashboard-inputs-PoQihHLu.js → document-dashboard-inputs-DrA9m-5H.js} +119 -119
- package/dist/chunks/{edit-dashboard-visual-KNJQr60W.js → edit-dashboard-visual-BHL0AlIj.js} +4087 -3979
- package/dist/chunks/{filter-reach-copy-zdhUFn6t.js → filter-reach-copy-CyftKCZE.js} +48 -48
- package/dist/chunks/{filter-value-text-Ddf55Ku1.js → filter-value-text-DMrpj4h9.js} +2 -2
- package/dist/chunks/{global-date-filter-utils-C1jCNWdV.js → global-date-filter-utils-Or-3DL3k.js} +6033 -5772
- package/dist/chunks/{index-Dp0ta6KB.js → index-ClwmmbUH.js} +9 -9
- package/dist/chunks/{matrix-analytical-definition-B9vW-osb.js → matrix-analytical-definition-DPVGg1mU.js} +12 -12
- package/dist/chunks/{matrix-card-LiMEipvq.js → matrix-card-CVFVtqyo.js} +2 -2
- package/dist/chunks/{matrix-formatter-C_EpDP6o.js → matrix-formatter-K2OVPJQI.js} +30 -30
- package/dist/chunks/{matrix-member-presentation-DqzG-UhQ.js → matrix-member-presentation-DRWcJ8Mi.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-D6vYkZK4.js → matrix-operation-contract--lMaLlpV.js} +64 -61
- package/dist/chunks/{metric-comparison-zpGw4lD6.js → metric-comparison-CYIt2F5X.js} +1 -1
- package/dist/chunks/{pivot-header-presentation-CQnIDtUv.js → pivot-header-presentation-CX4fkRuG.js} +1 -1
- package/dist/chunks/{pivot-result-identity-C-Q1j1Wb.js → pivot-result-identity-BHJGZwIc.js} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-pwq3b7LC.js → pivot-result-lifecycle-BygCpOhk.js} +20 -20
- package/dist/chunks/{raw-temporal-presentation-D3i0mnUe.js → raw-temporal-presentation-gooAp93G.js} +6 -6
- package/dist/chunks/{report-preferences-dialog-C0uGI0v7.js → report-preferences-dialog-2tqY0BMQ.js} +49 -49
- package/dist/chunks/{report-runtime-context-hWiTCzFV.js → report-runtime-context-BaIKSaja.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-Cm0b7s-d.js → resolve-dashboard-input-context-bOKDTHfJ.js} +2062 -1986
- package/dist/chunks/{saved-dashboard-context-DCtGmAWe.js → saved-dashboard-context--Hq1juf9.js} +8 -8
- package/dist/chunks/{selection-reducer-CJzkTZio.js → selection-reducer-yw_JgICP.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-ChyotaWB.js → semaphor-ready-indicator-yM4wo-FH.js} +26 -26
- package/dist/chunks/{shelf-drop-preview-context-D09ATIXv.js → shelf-drop-preview-context-BuLzyT1T.js} +119 -119
- package/dist/chunks/{source-entity-resolution-D195CrYS.js → source-entity-resolution-CGymm5td.js} +1 -1
- package/dist/chunks/{switch-wJP6O7ZT.js → switch-B-UTI6v-.js} +2 -2
- package/dist/chunks/{table-export-sheet-DUS_s8Cj.js → table-export-sheet-CgO6gaSM.js} +1 -1
- package/dist/chunks/{table-settings-WysCBj62.js → table-settings-DOT_Bv1m.js} +224 -201
- package/dist/chunks/{temporal-bucket-CQOSbv9-.js → temporal-bucket-C4rqmwaQ.js} +24 -24
- package/dist/chunks/{token-types-BMqRmT-C.js → token-types-DYECHYGH.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-t7JLE_LV.js → use-create-flow-overlay-state-DSXC-LD7.js} +6 -6
- package/dist/chunks/{validators-C-aOQlTB.js → validators-ClKLGDGZ.js} +1077 -1054
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +273 -264
- package/dist/data-app-sdk/index.js +5 -5
- package/dist/data-app-sdk-adapters/index.js +2 -2
- package/dist/data-app-sdk-validation/index.js +5 -5
- package/dist/format-utils/index.js +15 -15
- package/dist/index.js +21 -21
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/index.js +6 -6
- package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +3 -0
- package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +3 -2
- package/dist/types/lib/matrix-table/matrix-delivery.d.ts +4 -2
- package/dist/types/lib/utils/card-config-utils.d.ts +61 -0
- package/dist/types/lib/utils/card-definition.d.ts +2 -1
- package/dist/types/lib/utils/card-type-change.d.ts +5 -1
- package/dist/types/shared/analytics-protocol/explorer-input-schemas.d.ts +2 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +2 -2
- package/dist/types/shared/analytics-protocol/matrix-analytical-definition.d.ts +1 -0
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +59 -21
- package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +12 -7
- package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +16 -9
- package/dist/types/shared/dashboard-authoring/document-section-cards.d.ts +6 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/legacy-table-routing.d.ts +62 -0
- package/dist/types/shared/dashboard-authoring/matrix-authoring.d.ts +4 -1
- package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +8 -4
- package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +4 -2
- package/package.json +2 -2
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { jsx as t, jsxs as s, Fragment as R } from "react/jsx-runtime";
|
|
2
|
-
import Vt, { useState as S, useEffect as xe, useCallback as
|
|
3
|
-
import { cE as ot, bL as Ie, bM as Te, bO as Le, cF as ta, b5 as it, b3 as Qe, cG as aa, cH as Ke, cI as lt, a7 as Ge, a4 as ce, u as w, cJ as ra, cK as na, bK as E, cL as sa, a6 as ee, bh as oa, cM as ia, cN as la, a_ as ve, ct as Pt, aR as $e, o as da, k as ca, cO as ua, cw as dt, cx as ct, cy as ut, cz as ht, cA as mt, cB as pt, cC as ft, cD as Mt, aP as gt, cP as ha, cQ as ma, cl as et, ci as Ve, cj as Be, cR as Ut, ck as Pe, c7 as G, cu as pa, cp as We, cS as fa, c5 as ga, bN as bt, bP as xt, cT as ba, bJ as xa, cU as Ot, bx as vt, cV as va, by as ya, i as Ca, cW as wa, bs as Na, w as Sa, t as ka, cX as Da, cY as Aa, cZ as Fa, c_ as K, c$ as Ea, R as Rt, d0 as Ia, d1 as Ta, d2 as La, d3 as Va, aM as Ba, d4 as de, d5 as Pa, W as yt, d6 as Ma, d7 as Ua, d8 as Oa, d9 as Ra, da as za, db as _a, dc as ja, dd as zt, de as $a, df as Wa, dg as qa, dh as _t, di as Ha, dj as ze, dk as Qa, dl as Ka, dm as Ga, A as Xa, aB as Ya, aC as
|
|
4
|
-
import { B as I, l as De, q as st, L as re, j as jt, c as Ct, i as ur, P as Ae, a0 as hr, b as Fe, a as qe, S as $t } from "./switch-
|
|
2
|
+
import Vt, { useState as S, useEffect as xe, useCallback as J, useMemo as te, useLayoutEffect as Dt, useRef as nt, useContext as Bt } from "react";
|
|
3
|
+
import { cE as ot, bL as Ie, bM as Te, bO as Le, cF as ta, b5 as it, b3 as Qe, cG as aa, cH as Ke, cI as lt, a7 as Ge, a4 as ce, u as w, cJ as ra, cK as na, bK as E, cL as sa, a6 as ee, bh as oa, cM as ia, cN as la, a_ as ve, ct as Pt, aR as $e, o as da, k as ca, cO as ua, cw as dt, cx as ct, cy as ut, cz as ht, cA as mt, cB as pt, cC as ft, cD as Mt, aP as gt, cP as ha, cQ as ma, cl as et, ci as Ve, cj as Be, cR as Ut, ck as Pe, c7 as G, cu as pa, cp as We, cS as fa, c5 as ga, bN as bt, bP as xt, cT as ba, bJ as xa, cU as Ot, bx as vt, cV as va, by as ya, i as Ca, cW as wa, bs as Na, w as Sa, t as ka, cX as Da, cY as Aa, cZ as Fa, c_ as K, c$ as Ea, R as Rt, d0 as Ia, d1 as Ta, d2 as La, d3 as Va, aM as Ba, d4 as de, d5 as Pa, W as yt, d6 as Ma, d7 as Ua, d8 as Oa, d9 as Ra, da as za, db as _a, dc as ja, dd as zt, de as $a, df as Wa, dg as qa, dh as _t, di as Ha, dj as ze, dk as Qa, dl as Ka, dm as Ga, A as Xa, aB as Ya, aC as Ja, ah as Za, ag as er, af as tr, ae as ar, ab as rr, a9 as nr, dn as sr, dp as or, dq as ir, dr as lr, ds as dr, az as cr } from "./semaphor-ready-indicator-yM4wo-FH.js";
|
|
4
|
+
import { B as I, l as De, q as st, L as re, j as jt, c as Ct, i as ur, P as Ae, a0 as hr, b as Fe, a as qe, S as $t } from "./switch-B-UTI6v-.js";
|
|
5
5
|
import { L as Ee } from "./layout-grid-Bgzth8vd.js";
|
|
6
6
|
import { c as fe, X as Xe, C as wt } from "./x-4f5U2XwU.js";
|
|
7
7
|
import "./index-CuHybtft.js";
|
|
8
|
-
import { o as mr } from "./validators-
|
|
9
|
-
import "./matrix-operation-contract
|
|
8
|
+
import { o as mr } from "./validators-ClKLGDGZ.js";
|
|
9
|
+
import "./matrix-operation-contract--lMaLlpV.js";
|
|
10
10
|
import "./analytics-base-schemas-BKs3flFS.js";
|
|
11
11
|
import "zod";
|
|
12
12
|
import "../value-format-preferences/index.js";
|
|
13
|
-
import { c as
|
|
14
|
-
import { S as pr } from "./selection-reducer-
|
|
13
|
+
import { c as Z } from "./_commonjsHelpers-DimLPMtv.js";
|
|
14
|
+
import { S as pr } from "./selection-reducer-yw_JgICP.js";
|
|
15
15
|
import { s as _e } from "./normalize-dashboard-for-dirty-check-XKgH3GFX.js";
|
|
16
|
-
import { aL as fr, ay as gr,
|
|
16
|
+
import { aL as fr, ay as gr, e3 as He, v as At, e4 as br, as as Nt, e5 as xr, ds as vr, de as yr, br as Cr, e6 as wr } from "./global-date-filter-utils-Or-3DL3k.js";
|
|
17
17
|
import { f as Nr } from "./editor-draft-sync-BN5qYHPF.js";
|
|
18
18
|
import { createPortal as Sr } from "react-dom";
|
|
19
|
-
import "./pivot-result-lifecycle-
|
|
19
|
+
import "./pivot-result-lifecycle-BygCpOhk.js";
|
|
20
20
|
import "./index-CtoK1Lgu.js";
|
|
21
|
-
import {
|
|
21
|
+
import { J as kr } from "./table-settings-DOT_Bv1m.js";
|
|
22
22
|
import { S as Wt } from "./save-CfJpQQ68.js";
|
|
23
|
-
import { V as Dr, L as Ar, a as Fr, u as qt, C as Ht, F as Er, b as Ir } from "./use-create-flow-overlay-state-
|
|
24
|
-
import { m as Tr, k as Qt, n as Kt } from "./report-preferences-dialog-
|
|
25
|
-
import { q as Ft } from "./matrix-formatter-
|
|
26
|
-
import { g as Lr, f as Vr } from "./document-dashboard-inputs-
|
|
27
|
-
import { g as le, d as Br, a as Pr } from "./index-
|
|
23
|
+
import { V as Dr, L as Ar, a as Fr, u as qt, C as Ht, F as Er, b as Ir } from "./use-create-flow-overlay-state-DSXC-LD7.js";
|
|
24
|
+
import { m as Tr, k as Qt, n as Kt } from "./report-preferences-dialog-2tqY0BMQ.js";
|
|
25
|
+
import { q as Ft } from "./matrix-formatter-K2OVPJQI.js";
|
|
26
|
+
import { g as Lr, f as Vr } from "./document-dashboard-inputs-DrA9m-5H.js";
|
|
27
|
+
import { g as le, d as Br, a as Pr } from "./index-ClwmmbUH.js";
|
|
28
28
|
/**
|
|
29
29
|
* @license lucide-react v0.453.0 - ISC
|
|
30
30
|
*
|
|
@@ -364,7 +364,7 @@ function Hr() {
|
|
|
364
364
|
return ((i = n.card.customCardPreferences) == null ? void 0 : i.url) || "";
|
|
365
365
|
}
|
|
366
366
|
), a = $r(e);
|
|
367
|
-
return { getUpdatedFrame:
|
|
367
|
+
return { getUpdatedFrame: J(() => {
|
|
368
368
|
var g;
|
|
369
369
|
Nr();
|
|
370
370
|
const {
|
|
@@ -419,7 +419,7 @@ function ye() {
|
|
|
419
419
|
(L) => L.inlineFilterValuesMap
|
|
420
420
|
), T = ra((i == null ? void 0 : i.id) || "", {
|
|
421
421
|
enabled: !!(i != null && i.id) && !!(e != null && e.accessToken)
|
|
422
|
-
}), z =
|
|
422
|
+
}), z = J(
|
|
423
423
|
async (L) => {
|
|
424
424
|
try {
|
|
425
425
|
r(L), F(), A();
|
|
@@ -486,7 +486,7 @@ function ye() {
|
|
|
486
486
|
D,
|
|
487
487
|
j
|
|
488
488
|
]
|
|
489
|
-
), X =
|
|
489
|
+
), X = J(
|
|
490
490
|
async (L) => {
|
|
491
491
|
var Y;
|
|
492
492
|
const ae = (H) => (E.error(H), { success: !1, error: H });
|
|
@@ -645,7 +645,7 @@ function hs({
|
|
|
645
645
|
break;
|
|
646
646
|
}
|
|
647
647
|
B || A();
|
|
648
|
-
},
|
|
648
|
+
}, Je = (x) => {
|
|
649
649
|
F(x), A();
|
|
650
650
|
}, be = (x) => {
|
|
651
651
|
U(x), L(x, {
|
|
@@ -657,7 +657,7 @@ function hs({
|
|
|
657
657
|
return;
|
|
658
658
|
}
|
|
659
659
|
k(null), g(!0);
|
|
660
|
-
},
|
|
660
|
+
}, Ze = async () => {
|
|
661
661
|
const x = v ? [v] : me;
|
|
662
662
|
try {
|
|
663
663
|
for (const B of x)
|
|
@@ -780,7 +780,7 @@ function hs({
|
|
|
780
780
|
onSelectAll: W,
|
|
781
781
|
onToggleSelection: $,
|
|
782
782
|
onAddVisual: ne,
|
|
783
|
-
onOpenVisual:
|
|
783
|
+
onOpenVisual: Je,
|
|
784
784
|
onEditDetails: p,
|
|
785
785
|
onShareVisual: h,
|
|
786
786
|
onDeleteVisual: (x) => {
|
|
@@ -917,7 +917,7 @@ function hs({
|
|
|
917
917
|
Mt,
|
|
918
918
|
{
|
|
919
919
|
onClick: (x) => {
|
|
920
|
-
x.preventDefault(),
|
|
920
|
+
x.preventDefault(), Ze();
|
|
921
921
|
},
|
|
922
922
|
disabled: Y || ke === 0,
|
|
923
923
|
children: [
|
|
@@ -1007,7 +1007,7 @@ function Yr({
|
|
|
1007
1007
|
return /* @__PURE__ */ s(
|
|
1008
1008
|
"div",
|
|
1009
1009
|
{
|
|
1010
|
-
className:
|
|
1010
|
+
className: Z(
|
|
1011
1011
|
"group grid min-h-12 grid-cols-[2.5rem_minmax(14rem,1.8fr)_minmax(10rem,1fr)_8rem_7rem_5rem_5.5rem] items-center border-b border-border/50 px-3 text-[13px] hover:bg-muted/50",
|
|
1012
1012
|
a && "bg-muted/70"
|
|
1013
1013
|
),
|
|
@@ -1058,7 +1058,7 @@ function Yr({
|
|
|
1058
1058
|
/* @__PURE__ */ t(Gr, { visual: e }),
|
|
1059
1059
|
/* @__PURE__ */ t("span", { className: "text-right tabular-nums text-muted-foreground", children: e.ownership.sharedCount > 0 ? e.ownership.sharedCount : "—" }),
|
|
1060
1060
|
/* @__PURE__ */ t(
|
|
1061
|
-
|
|
1061
|
+
Jr,
|
|
1062
1062
|
{
|
|
1063
1063
|
visual: e,
|
|
1064
1064
|
onOpenVisual: i,
|
|
@@ -1075,7 +1075,7 @@ function Yr({
|
|
|
1075
1075
|
}
|
|
1076
1076
|
);
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1078
|
+
function Jr({
|
|
1079
1079
|
visual: e,
|
|
1080
1080
|
onOpenVisual: a,
|
|
1081
1081
|
onEditDetails: o,
|
|
@@ -1182,7 +1182,7 @@ function ms(e, a, o = !1) {
|
|
|
1182
1182
|
(u) => u.isDashboardEditing
|
|
1183
1183
|
), r = w(
|
|
1184
1184
|
(u) => u.onDashboardLifecycleEvent
|
|
1185
|
-
), d =
|
|
1185
|
+
), d = J(() => {
|
|
1186
1186
|
const u = w.getState().dashboard;
|
|
1187
1187
|
return a || !e || !u || u.id !== e.id ? !1 : _e(u) !== _e(e);
|
|
1188
1188
|
}, [e, a]);
|
|
@@ -1216,7 +1216,7 @@ function ms(e, a, o = !1) {
|
|
|
1216
1216
|
}));
|
|
1217
1217
|
}, [c, r]), d;
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1219
|
+
function Zr({
|
|
1220
1220
|
open: e,
|
|
1221
1221
|
onOpenChange: a,
|
|
1222
1222
|
isLibraryVisual: o,
|
|
@@ -1712,7 +1712,7 @@ function ps(e = {}) {
|
|
|
1712
1712
|
] }),
|
|
1713
1713
|
/* @__PURE__ */ t(at, {}),
|
|
1714
1714
|
/* @__PURE__ */ t(
|
|
1715
|
-
|
|
1715
|
+
Zr,
|
|
1716
1716
|
{
|
|
1717
1717
|
open: M,
|
|
1718
1718
|
onOpenChange: (T) => {
|
|
@@ -1739,7 +1739,7 @@ function fs({ className: e }) {
|
|
|
1739
1739
|
"aria-label": u,
|
|
1740
1740
|
title: u,
|
|
1741
1741
|
onClick: () => i(!a),
|
|
1742
|
-
className:
|
|
1742
|
+
className: Z(
|
|
1743
1743
|
"inline-flex h-7 items-center gap-1.5 rounded-control border border-input bg-background px-2 text-[12px] font-medium text-foreground transition-colors hover:bg-muted/40 focus-visible:border-ring focus-visible:outline-none",
|
|
1744
1744
|
e
|
|
1745
1745
|
),
|
|
@@ -1874,7 +1874,7 @@ function vs({
|
|
|
1874
1874
|
}) {
|
|
1875
1875
|
const [n, i] = S(
|
|
1876
1876
|
() => /* @__PURE__ */ new Map()
|
|
1877
|
-
), [r, d] = S(null), [c, l] = S(null), u =
|
|
1877
|
+
), [r, d] = S(null), [c, l] = S(null), u = J((m) => (i((p) => new Map(p).set(m.id, m)), () => i((p) => {
|
|
1878
1878
|
if (p.get(m.id) !== m) return p;
|
|
1879
1879
|
const f = new Map(p);
|
|
1880
1880
|
return f.delete(m.id), f;
|
|
@@ -2241,7 +2241,7 @@ function ln({
|
|
|
2241
2241
|
D,
|
|
2242
2242
|
on(N)
|
|
2243
2243
|
);
|
|
2244
|
-
}, A =
|
|
2244
|
+
}, A = J(() => {
|
|
2245
2245
|
if (r) {
|
|
2246
2246
|
d();
|
|
2247
2247
|
return;
|
|
@@ -2360,13 +2360,13 @@ function cn({
|
|
|
2360
2360
|
), M = te(
|
|
2361
2361
|
() => un(h),
|
|
2362
2362
|
[h]
|
|
2363
|
-
), A =
|
|
2363
|
+
), A = J(() => {
|
|
2364
2364
|
if (n) {
|
|
2365
2365
|
i();
|
|
2366
2366
|
return;
|
|
2367
2367
|
}
|
|
2368
2368
|
u(!1);
|
|
2369
|
-
}, [n, i, u]), O =
|
|
2369
|
+
}, [n, i, u]), O = J(
|
|
2370
2370
|
(C, D, N) => {
|
|
2371
2371
|
!g || !(f != null && f.document) || p(
|
|
2372
2372
|
pn({
|
|
@@ -2511,7 +2511,7 @@ function fn({
|
|
|
2511
2511
|
return /* @__PURE__ */ s(
|
|
2512
2512
|
"div",
|
|
2513
2513
|
{
|
|
2514
|
-
className:
|
|
2514
|
+
className: Z(
|
|
2515
2515
|
// Height lives on the shell so the outer border is part of the
|
|
2516
2516
|
// h-7 box (matches regular `size="xs"` buttons). Inner triggers
|
|
2517
2517
|
// stretch to fill via `h-full`.
|
|
@@ -2526,7 +2526,7 @@ function fn({
|
|
|
2526
2526
|
{
|
|
2527
2527
|
variant: "ghost",
|
|
2528
2528
|
size: "xs",
|
|
2529
|
-
className:
|
|
2529
|
+
className: Z(
|
|
2530
2530
|
"h-full rounded-none border-0 bg-transparent pl-2.5 pr-2 shadow-none hover:bg-accent/50 data-[state=open]:bg-accent/60",
|
|
2531
2531
|
d
|
|
2532
2532
|
),
|
|
@@ -2541,7 +2541,7 @@ function fn({
|
|
|
2541
2541
|
{
|
|
2542
2542
|
align: "end",
|
|
2543
2543
|
sideOffset: 6,
|
|
2544
|
-
className:
|
|
2544
|
+
className: Z(
|
|
2545
2545
|
"w-auto rounded-card border border-border/60 p-0 shadow-[0_10px_28px_rgba(0,0,0,0.14)] dark:shadow-[0_10px_28px_rgba(0,0,0,0.5)]",
|
|
2546
2546
|
l
|
|
2547
2547
|
),
|
|
@@ -2556,7 +2556,7 @@ function fn({
|
|
|
2556
2556
|
{
|
|
2557
2557
|
variant: "ghost",
|
|
2558
2558
|
size: "xs",
|
|
2559
|
-
className:
|
|
2559
|
+
className: Z(
|
|
2560
2560
|
"h-full w-7 rounded-none border-0 border-l border-border/60 bg-transparent px-0 shadow-none hover:bg-accent/50 data-[state=open]:bg-accent/60",
|
|
2561
2561
|
c
|
|
2562
2562
|
),
|
|
@@ -2569,7 +2569,7 @@ function fn({
|
|
|
2569
2569
|
{
|
|
2570
2570
|
align: "end",
|
|
2571
2571
|
sideOffset: 6,
|
|
2572
|
-
className:
|
|
2572
|
+
className: Z(
|
|
2573
2573
|
"w-auto rounded-card border border-border/60 p-0 shadow-[0_10px_28px_rgba(0,0,0,0.14)] dark:shadow-[0_10px_28px_rgba(0,0,0,0.5)]",
|
|
2574
2574
|
u
|
|
2575
2575
|
),
|
|
@@ -2741,11 +2741,11 @@ function ks({
|
|
|
2741
2741
|
var O;
|
|
2742
2742
|
const [d, c] = S(null), l = w((b) => b.dashboard), u = w((b) => b.selectedSheetId), h = w((b) => b.showFilters), m = w((b) => b.actions), { setDocumentPanelTarget: p, setShowFilters: f } = m, g = (O = l.sheets) == null ? void 0 : O.find(
|
|
2743
2743
|
(b) => b.id === u
|
|
2744
|
-
), v = Nt(g), k =
|
|
2744
|
+
), v = Nt(g), k = J((b) => {
|
|
2745
2745
|
window.setTimeout(() => {
|
|
2746
2746
|
c(b);
|
|
2747
2747
|
}, 0);
|
|
2748
|
-
}, []), V =
|
|
2748
|
+
}, []), V = J(
|
|
2749
2749
|
(b) => {
|
|
2750
2750
|
if (v && u) {
|
|
2751
2751
|
b && p(u, {
|
|
@@ -2762,11 +2762,11 @@ function ks({
|
|
|
2762
2762
|
p,
|
|
2763
2763
|
f
|
|
2764
2764
|
]
|
|
2765
|
-
), U =
|
|
2765
|
+
), U = J(() => {
|
|
2766
2766
|
V(!0);
|
|
2767
|
-
}, [V]), M =
|
|
2767
|
+
}, [V]), M = J(() => {
|
|
2768
2768
|
k("create");
|
|
2769
|
-
}, [k]), A =
|
|
2769
|
+
}, [k]), A = J(() => {
|
|
2770
2770
|
k("manage");
|
|
2771
2771
|
}, [k]);
|
|
2772
2772
|
return /* @__PURE__ */ s(R, { children: [
|
|
@@ -2829,7 +2829,7 @@ function yn({
|
|
|
2829
2829
|
size: "xs",
|
|
2830
2830
|
variant: "outline",
|
|
2831
2831
|
disabled: e,
|
|
2832
|
-
className:
|
|
2832
|
+
className: Z("gap-1.5", o),
|
|
2833
2833
|
onClick: n,
|
|
2834
2834
|
"aria-label": "Reports & briefings",
|
|
2835
2835
|
children: [
|
|
@@ -2840,7 +2840,7 @@ function yn({
|
|
|
2840
2840
|
}
|
|
2841
2841
|
);
|
|
2842
2842
|
}
|
|
2843
|
-
const Cn = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground",
|
|
2843
|
+
const Cn = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", Jt = "inline-flex h-7 items-center gap-1.5 rounded-control px-2 text-[12px] text-muted-foreground hover:bg-muted hover:text-foreground disabled:opacity-50", je = "inline-flex h-7 items-center gap-1.5 rounded-control bg-primary px-3 text-[12px] font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50";
|
|
2844
2844
|
function wn(e) {
|
|
2845
2845
|
return e === "dashboard" ? "This dashboard" : "Project";
|
|
2846
2846
|
}
|
|
@@ -2871,7 +2871,7 @@ function kn(e) {
|
|
|
2871
2871
|
}
|
|
2872
2872
|
return null;
|
|
2873
2873
|
}
|
|
2874
|
-
function
|
|
2874
|
+
function Zt(e) {
|
|
2875
2875
|
return e.hasActiveRun ? "Running" : e.lastRunStatus ? `Last run ${e.lastRunStatus.toString().toLowerCase()}` : "Idle";
|
|
2876
2876
|
}
|
|
2877
2877
|
function Dn(e) {
|
|
@@ -2896,7 +2896,7 @@ function An({
|
|
|
2896
2896
|
role: "tab",
|
|
2897
2897
|
"aria-selected": n,
|
|
2898
2898
|
onClick: () => a(o),
|
|
2899
|
-
className:
|
|
2899
|
+
className: Z(
|
|
2900
2900
|
"h-6 rounded-[3px] px-2 text-[11px] transition-colors",
|
|
2901
2901
|
n ? "bg-background font-medium text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
|
|
2902
2902
|
),
|
|
@@ -3033,7 +3033,7 @@ function Fn({
|
|
|
3033
3033
|
/* @__PURE__ */ t(re, { className: "h-3 w-3 shrink-0 animate-spin text-muted-foreground" }),
|
|
3034
3034
|
/* @__PURE__ */ t("span", { className: "font-medium text-foreground", children: F.name }),
|
|
3035
3035
|
/* @__PURE__ */ t("span", { className: "text-border", children: "·" }),
|
|
3036
|
-
/* @__PURE__ */ t("span", { className: "truncate text-muted-foreground", children:
|
|
3036
|
+
/* @__PURE__ */ t("span", { className: "truncate text-muted-foreground", children: Zt(F) })
|
|
3037
3037
|
] }) : null,
|
|
3038
3038
|
/* @__PURE__ */ s("div", { className: "flex-1 overflow-y-auto", children: [
|
|
3039
3039
|
n ? /* @__PURE__ */ t("div", { className: "m-4 rounded-card border border-destructive/30 bg-destructive/10 px-3 py-2 text-[12px] text-destructive", children: n }) : null,
|
|
@@ -3065,7 +3065,7 @@ function Fn({
|
|
|
3065
3065
|
"a",
|
|
3066
3066
|
{
|
|
3067
3067
|
href: V,
|
|
3068
|
-
className:
|
|
3068
|
+
className: Z(Jt, "h-6 px-1 text-[11px]"),
|
|
3069
3069
|
children: [
|
|
3070
3070
|
"Manage all reports & briefings",
|
|
3071
3071
|
/* @__PURE__ */ t(Mr, { className: "h-3 w-3" })
|
|
@@ -3110,7 +3110,7 @@ function En({
|
|
|
3110
3110
|
"button",
|
|
3111
3111
|
{
|
|
3112
3112
|
onClick: () => e("analytical_briefing"),
|
|
3113
|
-
className:
|
|
3113
|
+
className: Jt,
|
|
3114
3114
|
children: "Create analytical briefing"
|
|
3115
3115
|
}
|
|
3116
3116
|
) : null
|
|
@@ -3307,7 +3307,7 @@ function Tn({
|
|
|
3307
3307
|
return /* @__PURE__ */ s(
|
|
3308
3308
|
"div",
|
|
3309
3309
|
{
|
|
3310
|
-
className:
|
|
3310
|
+
className: Z(
|
|
3311
3311
|
"group relative border-b border-border/60 px-4 py-3 transition-colors hover:bg-muted/60",
|
|
3312
3312
|
c && "opacity-70"
|
|
3313
3313
|
),
|
|
@@ -3346,13 +3346,13 @@ function Tn({
|
|
|
3346
3346
|
l ? /* @__PURE__ */ t(re, { className: "h-3 w-3 shrink-0 animate-spin text-muted-foreground/70" }) : /* @__PURE__ */ t(
|
|
3347
3347
|
"span",
|
|
3348
3348
|
{
|
|
3349
|
-
className:
|
|
3349
|
+
className: Z(
|
|
3350
3350
|
"inline-block h-1.5 w-1.5 shrink-0 rounded-full",
|
|
3351
3351
|
f
|
|
3352
3352
|
)
|
|
3353
3353
|
}
|
|
3354
3354
|
),
|
|
3355
|
-
/* @__PURE__ */ t("span", { className: "truncate", children: l ?
|
|
3355
|
+
/* @__PURE__ */ t("span", { className: "truncate", children: l ? Zt(e) : u })
|
|
3356
3356
|
] }) : null
|
|
3357
3357
|
]
|
|
3358
3358
|
}
|
|
@@ -3453,7 +3453,7 @@ const Mn = {
|
|
|
3453
3453
|
pauseBriefing: ar,
|
|
3454
3454
|
resumeBriefing: tr,
|
|
3455
3455
|
deleteBriefing: er,
|
|
3456
|
-
runBriefingNow:
|
|
3456
|
+
runBriefingNow: Za
|
|
3457
3457
|
};
|
|
3458
3458
|
function Ds(e) {
|
|
3459
3459
|
return /* @__PURE__ */ t(Xa, { authToken: e.token ? { accessToken: e.token } : void 0, children: /* @__PURE__ */ t(Ya, { children: /* @__PURE__ */ t(Un, { ...e }) }) });
|
|
@@ -3473,7 +3473,7 @@ function Un({
|
|
|
3473
3473
|
openRun: m,
|
|
3474
3474
|
client: p
|
|
3475
3475
|
}) {
|
|
3476
|
-
const { authToken: f, tokenProps: g } = it(), v =
|
|
3476
|
+
const { authToken: f, tokenProps: g } = it(), v = Ja(), k = !h || v.canCreate && (h === "scheduled_report" || v.analyticalBriefingsEnabled), [V, U] = S(!1), M = c ?? V, A = (y) => {
|
|
3477
3477
|
c === void 0 && U(y), l == null || l(y);
|
|
3478
3478
|
}, [O, b] = S(
|
|
3479
3479
|
h ? "author" : "list"
|
|
@@ -3488,12 +3488,12 @@ function Un({
|
|
|
3488
3488
|
const y = M && !Me.current;
|
|
3489
3489
|
Me.current = M, !(!y || !h) && (X(null), N("dashboard"), C(h), b("author"), pe(null));
|
|
3490
3490
|
}, [M, h]);
|
|
3491
|
-
const Ye = yt(), $ = o ?? (g == null ? void 0 : g.apiServiceUrl), W = n ?? (f == null ? void 0 : f.accessToken), ne = te(() => ({ ...Mn, ...p }), [p]), [we,
|
|
3491
|
+
const Ye = yt(), $ = o ?? (g == null ? void 0 : g.apiServiceUrl), W = n ?? (f == null ? void 0 : f.accessToken), ne = te(() => ({ ...Mn, ...p }), [p]), [we, Je] = S(null);
|
|
3492
3492
|
xe(() => {
|
|
3493
3493
|
if (!m || !$ || !W) return;
|
|
3494
3494
|
let y = !0;
|
|
3495
3495
|
return ne.getBriefing($, W, m.briefingId).then(({ briefing: P }) => {
|
|
3496
|
-
y && (X(P),
|
|
3496
|
+
y && (X(P), Je(m), b("author"));
|
|
3497
3497
|
}, (P) => {
|
|
3498
3498
|
y && E.error(P instanceof Error ? P.message : "Could not open the run.");
|
|
3499
3499
|
}), () => {
|
|
@@ -3512,7 +3512,7 @@ function Un({
|
|
|
3512
3512
|
return y.filter(
|
|
3513
3513
|
(Oe) => le(Oe).noun === P
|
|
3514
3514
|
);
|
|
3515
|
-
}, [e, j, D, h]),
|
|
3515
|
+
}, [e, j, D, h]), Ze = te(() => D === "dashboard" ? {
|
|
3516
3516
|
source: { type: "dashboard", dashboardId: e },
|
|
3517
3517
|
label: be,
|
|
3518
3518
|
detail: Vn(be)
|
|
@@ -3524,7 +3524,7 @@ function Un({
|
|
|
3524
3524
|
canCreate: v.canCreate,
|
|
3525
3525
|
analyticalBriefingsEnabled: v.analyticalBriefingsEnabled,
|
|
3526
3526
|
scheduledReportAvailable: D === "dashboard"
|
|
3527
|
-
}), se =
|
|
3527
|
+
}), se = J(async () => {
|
|
3528
3528
|
if (!(!$ || !W)) {
|
|
3529
3529
|
Y(!0), pe(null);
|
|
3530
3530
|
try {
|
|
@@ -3673,7 +3673,7 @@ function Un({
|
|
|
3673
3673
|
role: "tab",
|
|
3674
3674
|
"aria-selected": L === "author",
|
|
3675
3675
|
disabled: !k,
|
|
3676
|
-
className:
|
|
3676
|
+
className: Z(
|
|
3677
3677
|
"-mb-px border-b-2 px-0.5 pb-2 text-[12px] transition-colors",
|
|
3678
3678
|
L === "author" ? "border-foreground font-medium text-foreground" : "border-transparent text-muted-foreground hover:text-foreground",
|
|
3679
3679
|
!k && "cursor-not-allowed opacity-50"
|
|
@@ -3690,7 +3690,7 @@ function Un({
|
|
|
3690
3690
|
type: "button",
|
|
3691
3691
|
role: "tab",
|
|
3692
3692
|
"aria-selected": L === "list",
|
|
3693
|
-
className:
|
|
3693
|
+
className: Z(
|
|
3694
3694
|
"-mb-px border-b-2 px-0.5 pb-2 text-[12px] transition-colors",
|
|
3695
3695
|
L === "list" ? "border-foreground font-medium text-foreground" : "border-transparent text-muted-foreground hover:text-foreground"
|
|
3696
3696
|
),
|
|
@@ -3754,7 +3754,7 @@ function Un({
|
|
|
3754
3754
|
briefing: z,
|
|
3755
3755
|
initialRunId: we && (z == null ? void 0 : z.id) === we.briefingId ? we.runId : void 0,
|
|
3756
3756
|
intent: F,
|
|
3757
|
-
sourceContext: z ? void 0 :
|
|
3757
|
+
sourceContext: z ? void 0 : Ze,
|
|
3758
3758
|
title: z ? `Edit ${le(z).noun}` : F === "scheduled_report" ? "Schedule report" : "Create analytical briefing",
|
|
3759
3759
|
hideHeader: !!h,
|
|
3760
3760
|
className: "h-full min-h-0 max-w-none border-0 shadow-none",
|