react-semaphor 0.1.569 → 0.1.570
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/appearance/index.js +6 -3
- package/dist/appearance-runtime/index.js +1 -1
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +570 -432
- package/dist/briefings/index.js +2 -2
- package/dist/chunks/appearance-context-BwBp25ZG.js +162 -0
- package/dist/chunks/appearance-runtime-provider-BRHYELkC.js +80 -0
- package/dist/chunks/assistant-chat-B-Ddyy8b.js +5940 -0
- package/dist/chunks/{bookmark-impact-Czg6FGt5.js → bookmark-impact-DCYD-6Fr.js} +1 -1
- package/dist/chunks/brand-B4BdpAB_.js +54 -0
- package/dist/chunks/{card-filter-builder-BS982X7x.js → card-filter-builder-0VvKmRst.js} +72 -72
- package/dist/chunks/{comparison-window-caption-lLTgzOkM.js → comparison-window-caption-PtcDWvkN.js} +2 -2
- package/dist/chunks/{dashboard-BiYSbxZv.js → dashboard-DxGIr1vZ.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-Bdj7luOr.js → dashboard-briefing-launcher-B-quOOOQ.js} +183 -182
- package/dist/chunks/{dashboard-controls-TViDsnb8.js → dashboard-controls-Caodx80b.js} +285 -280
- package/dist/chunks/{dashboard-json-Dg9dQd9U.js → dashboard-json-Ct-AGDHF.js} +3 -3
- package/dist/chunks/{dates-BsPrWZIP.js → dates-B9mL8BHE.js} +13 -12
- package/dist/chunks/edit-Bpdh_P_a.js +226 -0
- package/dist/chunks/{edit-dashboard-visual-C6hoIeEJ.js → edit-dashboard-visual-DeDTuYB5.js} +2256 -2268
- package/dist/chunks/{filter-reach-copy-hcQ4os0u.js → filter-reach-copy-BSY33ro5.js} +1425 -1282
- package/dist/chunks/{filter-value-text-CVxEEDVl.js → filter-value-text-DvvSNlho.js} +1 -1
- package/dist/chunks/index-BVKzKl5d.js +90 -0
- package/dist/chunks/{index-RNaTnE3m.js → index-CV_Kzou0.js} +233 -223
- package/dist/chunks/{index-G4q89J6O.js → index-y3HUzRNk.js} +61 -60
- package/dist/chunks/{layout-grid-BIcoFfdS.js → layout-grid-8rR-LPTk.js} +1 -1
- package/dist/chunks/{list-filter-C6tYkHyv.js → list-filter-C1-uTgjR.js} +1 -1
- package/dist/chunks/paintbrush-aR17Z3C9.js +27 -0
- package/dist/chunks/{palette-NjHOE_6B.js → palette-a5FCZKFI.js} +1 -1
- package/dist/chunks/{_commonjsHelpers-Bid1ZNYj.js → pickers-DkqmtnTL.js} +179 -166
- package/dist/chunks/{pivot-result-contract-expectations-DkmueDTW.js → pivot-result-contract-expectations-C-HnUKYe.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-Xc8_GFju.js → report-preferences-dialog-Yvhv3WX2.js} +79 -79
- package/dist/chunks/{resolve-dashboard-input-context-KqvcLcTM.js → resolve-dashboard-input-context-Lkbwycwe.js} +5179 -5391
- package/dist/chunks/resolver-DG_tfEpt.js +156 -0
- package/dist/chunks/{save-C6VmEJTA.js → save-D985VvYp.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-BeXXyoD4.js → saved-dashboard-context-DC_TEd6y.js} +3 -3
- package/dist/chunks/schema-C9NPiIru.js +2568 -0
- package/dist/chunks/{semaphor-ready-indicator-BNkaANsG.js → semaphor-ready-indicator-ByFvqHEO.js} +33935 -34031
- package/dist/chunks/{shelf-drop-preview-context-C_issPBA.js → shelf-drop-preview-context-CjoVaK6J.js} +50 -50
- package/dist/chunks/{stored-dashboard-B6_StAty.js → stored-dashboard-C0hekXiI.js} +189 -188
- package/dist/chunks/{code-editor-BsxHzm9u.js → style-sheet-parts-C7qGZuH1.js} +2400 -2036
- package/dist/chunks/{table-export-sheet-BWP2joD1.js → table-export-sheet-CP8zSOhj.js} +1 -1
- package/dist/chunks/{temporal-input-presentation-scSWQXAB.js → temporal-input-presentation-CqbJjIuu.js} +14 -14
- package/dist/chunks/{upload-BRW4Mwrd.js → upload-CiGNKJ_0.js} +1 -1
- package/dist/chunks/{variable-draft-BQ3OMjvy.js → variable-draft-9-huI1h4.js} +2 -2
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +1911 -1859
- package/dist/format-utils/index.js +8 -8
- package/dist/index.js +332 -335
- package/dist/layouts/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/appearance/index.d.ts +1 -0
- package/dist/types/brand-studio/brand-studio-draft.d.ts +7 -0
- package/dist/types/brand-studio/index.d.ts +1 -1
- package/dist/types/components/briefings/briefing-author/run-model.d.ts +1 -2
- package/dist/types/components/providers/appearance-runtime-provider.d.ts +4 -1
- package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -2
- package/dist/types/components/sharing-and-management/utils/types.d.ts +0 -72
- package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +0 -1
- package/dist/types/components/visual/data-table/types/data-table.d.ts +0 -9
- package/dist/types/components/visual/data-table/utils/pagination-utils.d.ts +0 -19
- package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -1
- package/dist/types/lib/appearance/aliases.d.ts +42 -0
- package/dist/types/lib/appearance/compiler.d.ts +6 -0
- package/dist/types/lib/appearance/defaults.d.ts +6 -0
- package/dist/types/lib/appearance/index.d.ts +2 -0
- package/dist/types/lib/appearance/normalize-organization.d.ts +17 -0
- package/dist/types/lib/appearance/resolver.d.ts +2 -2
- package/dist/types/lib/appearance/types.d.ts +38 -1
- package/dist/types/lib/charts/types.d.ts +6 -2
- package/dist/types/lib/dashboard/semantic-dataset-references.d.ts +0 -1
- package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +0 -2
- package/dist/types/lib/dashboard-variables/types.d.ts +1 -6
- package/dist/types/lib/download-pdf.d.ts +0 -1
- package/dist/types/lib/hooks/use-dashboard.d.ts +3 -4
- package/dist/types/lib/stores/dashboard-store.d.ts +15 -6
- package/dist/types/lib/stores/editor-store.d.ts +0 -1
- package/dist/types/lib/stores/table-actions.d.ts +0 -1
- package/dist/types/lib/table-formatting/table-formatting-css.d.ts +0 -5
- package/dist/types/lib/types/common-types.d.ts +3 -2
- package/dist/types/lib/types/summary-types.d.ts +0 -5
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +4 -4
- package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +10 -10
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +68 -68
- package/dist/types/shared/assistant-protocol/context.d.ts +18 -18
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +212 -42
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +4 -1
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +9 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +30 -30
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +4 -4
- package/dist/types/shared/dashboard-authoring/dashboard-style/bounds.d.ts +17 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/brand.d.ts +20 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/edit-words.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/edit.d.ts +19 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/index.d.ts +15 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/layers.d.ts +19 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/legacy.d.ts +21 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/parse.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/pickers.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/types.d.ts +122 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/view.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +20 -0
- package/dist/types/shared/format-utils/matrix-continuation.d.ts +7 -7
- package/package.json +6 -3
- package/dist/chunks/appearance-context-DEYtWinQ.js +0 -126
- package/dist/chunks/appearance-runtime-provider-B-M8gwlZ.js +0 -81
- package/dist/chunks/assistant-chat-Dzf2Mbph.js +0 -8847
- package/dist/chunks/color-CJvdlFM_.js +0 -2162
- package/dist/chunks/index-CLIro-EG.js +0 -425
- package/dist/types/components/sharing-and-management/utils/group-types.d.ts +0 -105
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import { jsx as t, jsxs as s, Fragment as U } from "react/jsx-runtime";
|
|
2
2
|
import la, { useState as A, useEffect as Ee, useCallback as ie, useMemo as Y, useLayoutEffect as Ut, useRef as et, useContext as da } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { c as we, B as L, X as Qe,
|
|
5
|
-
import { L as Ue } from "./layout-grid-
|
|
6
|
-
import { c as J } from "./
|
|
3
|
+
import { dx as it, bt as Le, bu as Ve, bw as Pe, dy as Ba, aT as $e, aQ as ot, dz as Oa, dA as lt, dB as Ct, a6 as dt, a3 as ve, u as w, dC as _a, dD as Ma, bs as M, dE as Ra, a5 as oe, aO as za, bY as Ua, dF as $a, dG as ja, bm as ca, bM as be, cg as ua, bL as tt, n as qa, j as Wa, dH as Qa, cj as wt, ck as St, cl as kt, cm as Dt, cn as At, co as Ft, cp as Et, cq as ha, ct as It, dI as Ka, de as Ha, c8 as pt, c5 as je, c6 as qe, dq as ma, c7 as We, bU as re, ch as Ga, cc as at, dJ as Ya, bR as Xa, dK as pa, bd as ct, bv as Tt, bx as ut, dL as fa, br as Ja, dM as Za, be as en, h as tn, dN as an, b8 as nn, v as rn, r as sn, dO as on, dP as ln, dQ as ga, dR as dn, dS as cn, dT as Ce, dU as un, R as ba, dV as hn, dW as mn, aL as pn, dX as fn, dY as ge, dZ as gn, T as Lt, d_ as bn, d$ as ft, e0 as xn, e1 as $t, e2 as vn, e3 as yn, e4 as Nn, e5 as xa, cJ as Cn, e6 as wn, e7 as Sn, dk as Vt, cu as va, e8 as kn, e9 as jt, ea as Dn, eb as An, ec as Fn, ed as En, aS as In, bn as Tn, bX as ya, ee as Ln, ef as Vn, eg as Xe, eh as Pn, ei as Bn, ej as On, A as _n, aA as Mn, aB as Rn, ag as zn, af as Un, ae as $n, ad as jn, aa as qn, a8 as Wn, ek as Qn, el as Kn, em as Hn, en as Gn, eo as Yn, ay as Xn } from "./semaphor-ready-indicator-ByFvqHEO.js";
|
|
4
|
+
import { c as we, B as L, X as Qe, s as ze, x as xe, L as de, q as Pt, j as Bt, p as Jn, F as Ot, e as Ie, aa as Na, h as Te, f as nt, i as Ca, g as Nt, y as Se, z as ke, A as De, D as Ae, E as fe, ab as Zn } from "./style-sheet-parts-C7qGZuH1.js";
|
|
5
|
+
import { L as Ue } from "./layout-grid-8rR-LPTk.js";
|
|
6
|
+
import { c as J } from "./pickers-DkqmtnTL.js";
|
|
7
7
|
import { S as er } from "./validators-B8fpdinG.js";
|
|
8
8
|
import "./matrix-operation-contract-DCVinw1o.js";
|
|
9
9
|
import "./analytics-base-schemas-BaIQrEzX.js";
|
|
10
10
|
import "../value-format-preferences/index.js";
|
|
11
11
|
import { s as Je } from "./normalize-dashboard-for-dirty-check-XKgH3GFX.js";
|
|
12
|
-
import { bE as qt, ba as Wt,
|
|
13
|
-
import {
|
|
12
|
+
import { bE as qt, ba as Wt, em as Qt, gJ as tr, gK as rt, fI as Kt, gL as ar, o as Ke, gM as nr, p as rr, gb as sr, gN as ir, gO as or, cs as lr, gP as dr, l as cr, f5 as ur, gQ as hr, gR as mr, a as _t, aM as pr, a4 as fr, c6 as gr, gS as br, gT as xr, ch as vr, gU as yr, gV as Ht, gW as Nr } from "./resolve-dashboard-input-context-Lkbwycwe.js";
|
|
13
|
+
import { S as wa } from "./save-D985VvYp.js";
|
|
14
|
+
import { V as Cr, L as wr, a as Sr, u as Sa, C as ka, F as kr, b as Dr, A as Ar, c as Fr } from "./card-filter-builder-0VvKmRst.js";
|
|
15
|
+
import { m as Er, k as Da, p as Aa } from "./report-preferences-dialog-Yvhv3WX2.js";
|
|
16
|
+
import { createPortal as Ir } from "react-dom";
|
|
17
|
+
import { aV as Gt, ar as Tr } from "./temporal-input-presentation-CqbJjIuu.js";
|
|
18
|
+
import { aA as Lr, an as Vr, D as Pr, a8 as st, R as Br } from "./bookmark-state-CflS88gq.js";
|
|
14
19
|
import "zod";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import "./index-RNaTnE3m.js";
|
|
20
|
+
import "./schema-C9NPiIru.js";
|
|
21
|
+
import "./index-CV_Kzou0.js";
|
|
18
22
|
import "./context-R31TSL5V.js";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { v as Or, E as _r } from "./filter-reach-copy-hcQ4os0u.js";
|
|
23
|
-
import { a as Yt, d as Xt, c as Mr, i as Rr, b as zr, e as Ur, v as Jt, f as Zt, g as $r } from "./variable-draft-BQ3OMjvy.js";
|
|
24
|
-
import { g as pe, d as jr, a as qr } from "./index-G4q89J6O.js";
|
|
23
|
+
import { v as Or, F as _r } from "./filter-reach-copy-BSY33ro5.js";
|
|
24
|
+
import { a as Yt, d as Xt, c as Mr, i as Rr, b as zr, e as Ur, v as Jt, f as Zt, g as $r } from "./variable-draft-9-huI1h4.js";
|
|
25
|
+
import { g as pe, d as jr, a as qr } from "./index-y3HUzRNk.js";
|
|
25
26
|
/**
|
|
26
27
|
* @license lucide-react v0.453.0 - ISC
|
|
27
28
|
*
|
|
@@ -578,7 +579,7 @@ function ss({ visual: e }) {
|
|
|
578
579
|
const a = e.ownership.status === "public" ? "Public" : e.ownership.status === "shared" || e.ownership.sharedCount > 0 ? "Shared" : "Private";
|
|
579
580
|
return /* @__PURE__ */ t("span", { className: "inline-flex items-center rounded-[4px] border border-border/60 px-1.5 py-px text-[11px] text-muted-foreground", children: a });
|
|
580
581
|
}
|
|
581
|
-
function
|
|
582
|
+
function Wi({
|
|
582
583
|
open: e,
|
|
583
584
|
onOpenChange: a
|
|
584
585
|
}) {
|
|
@@ -1190,7 +1191,7 @@ function ls({
|
|
|
1190
1191
|
}
|
|
1191
1192
|
);
|
|
1192
1193
|
}
|
|
1193
|
-
function
|
|
1194
|
+
function Qi(e, a, r = !1) {
|
|
1194
1195
|
const n = w((d) => d.dashboard), i = w(
|
|
1195
1196
|
(d) => d.isDashboardEditing
|
|
1196
1197
|
), o = w(
|
|
@@ -1229,110 +1230,6 @@ function Wi(e, a, r = !1) {
|
|
|
1229
1230
|
}));
|
|
1230
1231
|
}, [u, o]), l;
|
|
1231
1232
|
}
|
|
1232
|
-
function ds({
|
|
1233
|
-
open: e,
|
|
1234
|
-
onOpenChange: a,
|
|
1235
|
-
isLibraryVisual: r,
|
|
1236
|
-
currentVisualName: n,
|
|
1237
|
-
isSaving: i = !1,
|
|
1238
|
-
destinationMode: o = "both",
|
|
1239
|
-
onConfirm: l
|
|
1240
|
-
}) {
|
|
1241
|
-
const [u, c] = A(
|
|
1242
|
-
r && n ? `Copy of ${n}` : n || ""
|
|
1243
|
-
), [d, h] = A("");
|
|
1244
|
-
la.useEffect(() => {
|
|
1245
|
-
e && (c(
|
|
1246
|
-
r && n ? `Copy of ${n}` : n || ""
|
|
1247
|
-
), h(""));
|
|
1248
|
-
}, [e, r, n]);
|
|
1249
|
-
const p = !!u.trim(), m = o === "local" ? {
|
|
1250
|
-
saveToLibrary: !1,
|
|
1251
|
-
saveToCurrentDashboard: !0,
|
|
1252
|
-
badgeType: "local",
|
|
1253
|
-
description: "Creates a local copy on the current dashboard.",
|
|
1254
|
-
actionLabel: "Add to Dashboard (Local)"
|
|
1255
|
-
} : o === "library" ? {
|
|
1256
|
-
saveToLibrary: !0,
|
|
1257
|
-
saveToCurrentDashboard: !1,
|
|
1258
|
-
badgeType: "library",
|
|
1259
|
-
description: "Creates a reusable visual in Visual Library.",
|
|
1260
|
-
actionLabel: "Save as Library Visual"
|
|
1261
|
-
} : {
|
|
1262
|
-
saveToLibrary: !0,
|
|
1263
|
-
saveToCurrentDashboard: !0,
|
|
1264
|
-
badgeType: "linked",
|
|
1265
|
-
description: "Creates a new library visual and adds a linked copy to this dashboard.",
|
|
1266
|
-
actionLabel: "Save Copy as Linked Visual"
|
|
1267
|
-
}, f = () => {
|
|
1268
|
-
!p || i || l({
|
|
1269
|
-
name: u.trim(),
|
|
1270
|
-
description: d.trim() || void 0,
|
|
1271
|
-
saveToLibrary: m.saveToLibrary,
|
|
1272
|
-
saveToCurrentDashboard: m.saveToCurrentDashboard
|
|
1273
|
-
});
|
|
1274
|
-
};
|
|
1275
|
-
return /* @__PURE__ */ t(Le, { open: e, onOpenChange: a, children: /* @__PURE__ */ s(Ve, { className: "sm:max-w-[500px]", children: [
|
|
1276
|
-
/* @__PURE__ */ s(Tt, { children: [
|
|
1277
|
-
/* @__PURE__ */ s(Pe, { className: "flex items-center gap-2", children: [
|
|
1278
|
-
/* @__PURE__ */ t("span", { children: "Save Visual As" }),
|
|
1279
|
-
m.badgeType !== "local" && /* @__PURE__ */ t(
|
|
1280
|
-
Fr,
|
|
1281
|
-
{
|
|
1282
|
-
type: m.badgeType,
|
|
1283
|
-
showLabel: !0,
|
|
1284
|
-
className: "px-2 py-0.5"
|
|
1285
|
-
}
|
|
1286
|
-
)
|
|
1287
|
-
] }),
|
|
1288
|
-
/* @__PURE__ */ t(ct, { children: m.description })
|
|
1289
|
-
] }),
|
|
1290
|
-
/* @__PURE__ */ s("div", { className: "grid gap-4 py-4", children: [
|
|
1291
|
-
/* @__PURE__ */ s("div", { className: "grid gap-2", children: [
|
|
1292
|
-
/* @__PURE__ */ t(ze, { htmlFor: "name", children: "Name" }),
|
|
1293
|
-
/* @__PURE__ */ t(
|
|
1294
|
-
xe,
|
|
1295
|
-
{
|
|
1296
|
-
id: "name",
|
|
1297
|
-
value: u,
|
|
1298
|
-
onChange: (g) => c(g.target.value),
|
|
1299
|
-
placeholder: "Enter visual name",
|
|
1300
|
-
disabled: i
|
|
1301
|
-
}
|
|
1302
|
-
)
|
|
1303
|
-
] }),
|
|
1304
|
-
/* @__PURE__ */ s("div", { className: "grid gap-2", children: [
|
|
1305
|
-
/* @__PURE__ */ t(ze, { htmlFor: "description", children: "Description (optional)" }),
|
|
1306
|
-
/* @__PURE__ */ t(
|
|
1307
|
-
pa,
|
|
1308
|
-
{
|
|
1309
|
-
id: "description",
|
|
1310
|
-
value: d,
|
|
1311
|
-
onChange: (g) => h(g.target.value),
|
|
1312
|
-
placeholder: "Enter visual description",
|
|
1313
|
-
rows: 3,
|
|
1314
|
-
disabled: i
|
|
1315
|
-
}
|
|
1316
|
-
)
|
|
1317
|
-
] })
|
|
1318
|
-
] }),
|
|
1319
|
-
/* @__PURE__ */ s(Ja, { children: [
|
|
1320
|
-
/* @__PURE__ */ t(
|
|
1321
|
-
L,
|
|
1322
|
-
{
|
|
1323
|
-
variant: "outline",
|
|
1324
|
-
onClick: () => a(!1),
|
|
1325
|
-
disabled: i,
|
|
1326
|
-
children: "Cancel"
|
|
1327
|
-
}
|
|
1328
|
-
),
|
|
1329
|
-
/* @__PURE__ */ s(L, { onClick: f, disabled: !p || i, children: [
|
|
1330
|
-
i && /* @__PURE__ */ t(de, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
1331
|
-
m.actionLabel
|
|
1332
|
-
] })
|
|
1333
|
-
] })
|
|
1334
|
-
] }) });
|
|
1335
|
-
}
|
|
1336
1233
|
function Rt(e) {
|
|
1337
1234
|
var a;
|
|
1338
1235
|
for (const r of e.cards)
|
|
@@ -1363,11 +1260,11 @@ function gt({
|
|
|
1363
1260
|
}
|
|
1364
1261
|
);
|
|
1365
1262
|
}
|
|
1366
|
-
function
|
|
1263
|
+
function ds({
|
|
1367
1264
|
className: e,
|
|
1368
1265
|
variant: a = "default"
|
|
1369
1266
|
}) {
|
|
1370
|
-
const r = ot(), [n, i] = A(!1), { setIsVisualEditing: o } = ve(), { getUpdatedFrame: l } = Be(), u = lt(), c = oe((p) => p.frame), d =
|
|
1267
|
+
const r = ot(), [n, i] = A(!1), { setIsVisualEditing: o } = ve(), { getUpdatedFrame: l } = Be(), u = lt(), c = oe((p) => p.frame), d = pa();
|
|
1371
1268
|
return /* @__PURE__ */ t(
|
|
1372
1269
|
L,
|
|
1373
1270
|
{
|
|
@@ -1413,10 +1310,10 @@ function cs({
|
|
|
1413
1310
|
}
|
|
1414
1311
|
);
|
|
1415
1312
|
}
|
|
1416
|
-
function
|
|
1313
|
+
function cs({
|
|
1417
1314
|
className: e
|
|
1418
1315
|
}) {
|
|
1419
|
-
const a = ot(), [r, n] = A(!1), i = lt(), o = oe((g) => g.frame), l = w((g) => g.selectedSheetId), u = w((g) => g.dashboard), { updateFrame: c, setIsVisualEditing: d } = ve(), { getUpdatedFrame: h } = Be(), p =
|
|
1316
|
+
const a = ot(), [r, n] = A(!1), i = lt(), o = oe((g) => g.frame), l = w((g) => g.selectedSheetId), u = w((g) => g.dashboard), { updateFrame: c, setIsVisualEditing: d } = ve(), { getUpdatedFrame: h } = Be(), p = pa(), m = ct();
|
|
1420
1317
|
return /* @__PURE__ */ t(
|
|
1421
1318
|
L,
|
|
1422
1319
|
{
|
|
@@ -1499,8 +1396,112 @@ function bt({ className: e }) {
|
|
|
1499
1396
|
}
|
|
1500
1397
|
);
|
|
1501
1398
|
}
|
|
1399
|
+
function us({
|
|
1400
|
+
open: e,
|
|
1401
|
+
onOpenChange: a,
|
|
1402
|
+
isLibraryVisual: r,
|
|
1403
|
+
currentVisualName: n,
|
|
1404
|
+
isSaving: i = !1,
|
|
1405
|
+
destinationMode: o = "both",
|
|
1406
|
+
onConfirm: l
|
|
1407
|
+
}) {
|
|
1408
|
+
const [u, c] = A(
|
|
1409
|
+
r && n ? `Copy of ${n}` : n || ""
|
|
1410
|
+
), [d, h] = A("");
|
|
1411
|
+
la.useEffect(() => {
|
|
1412
|
+
e && (c(
|
|
1413
|
+
r && n ? `Copy of ${n}` : n || ""
|
|
1414
|
+
), h(""));
|
|
1415
|
+
}, [e, r, n]);
|
|
1416
|
+
const p = !!u.trim(), m = o === "local" ? {
|
|
1417
|
+
saveToLibrary: !1,
|
|
1418
|
+
saveToCurrentDashboard: !0,
|
|
1419
|
+
badgeType: "local",
|
|
1420
|
+
description: "Creates a local copy on the current dashboard.",
|
|
1421
|
+
actionLabel: "Add to Dashboard (Local)"
|
|
1422
|
+
} : o === "library" ? {
|
|
1423
|
+
saveToLibrary: !0,
|
|
1424
|
+
saveToCurrentDashboard: !1,
|
|
1425
|
+
badgeType: "library",
|
|
1426
|
+
description: "Creates a reusable visual in Visual Library.",
|
|
1427
|
+
actionLabel: "Save as Library Visual"
|
|
1428
|
+
} : {
|
|
1429
|
+
saveToLibrary: !0,
|
|
1430
|
+
saveToCurrentDashboard: !0,
|
|
1431
|
+
badgeType: "linked",
|
|
1432
|
+
description: "Creates a new library visual and adds a linked copy to this dashboard.",
|
|
1433
|
+
actionLabel: "Save Copy as Linked Visual"
|
|
1434
|
+
}, f = () => {
|
|
1435
|
+
!p || i || l({
|
|
1436
|
+
name: u.trim(),
|
|
1437
|
+
description: d.trim() || void 0,
|
|
1438
|
+
saveToLibrary: m.saveToLibrary,
|
|
1439
|
+
saveToCurrentDashboard: m.saveToCurrentDashboard
|
|
1440
|
+
});
|
|
1441
|
+
};
|
|
1442
|
+
return /* @__PURE__ */ t(Le, { open: e, onOpenChange: a, children: /* @__PURE__ */ s(Ve, { className: "sm:max-w-[500px]", children: [
|
|
1443
|
+
/* @__PURE__ */ s(Tt, { children: [
|
|
1444
|
+
/* @__PURE__ */ s(Pe, { className: "flex items-center gap-2", children: [
|
|
1445
|
+
/* @__PURE__ */ t("span", { children: "Save Visual As" }),
|
|
1446
|
+
m.badgeType !== "local" && /* @__PURE__ */ t(
|
|
1447
|
+
Cr,
|
|
1448
|
+
{
|
|
1449
|
+
type: m.badgeType,
|
|
1450
|
+
showLabel: !0,
|
|
1451
|
+
className: "px-2 py-0.5"
|
|
1452
|
+
}
|
|
1453
|
+
)
|
|
1454
|
+
] }),
|
|
1455
|
+
/* @__PURE__ */ t(ut, { children: m.description })
|
|
1456
|
+
] }),
|
|
1457
|
+
/* @__PURE__ */ s("div", { className: "grid gap-4 py-4", children: [
|
|
1458
|
+
/* @__PURE__ */ s("div", { className: "grid gap-2", children: [
|
|
1459
|
+
/* @__PURE__ */ t(ze, { htmlFor: "name", children: "Name" }),
|
|
1460
|
+
/* @__PURE__ */ t(
|
|
1461
|
+
xe,
|
|
1462
|
+
{
|
|
1463
|
+
id: "name",
|
|
1464
|
+
value: u,
|
|
1465
|
+
onChange: (g) => c(g.target.value),
|
|
1466
|
+
placeholder: "Enter visual name",
|
|
1467
|
+
disabled: i
|
|
1468
|
+
}
|
|
1469
|
+
)
|
|
1470
|
+
] }),
|
|
1471
|
+
/* @__PURE__ */ s("div", { className: "grid gap-2", children: [
|
|
1472
|
+
/* @__PURE__ */ t(ze, { htmlFor: "description", children: "Description (optional)" }),
|
|
1473
|
+
/* @__PURE__ */ t(
|
|
1474
|
+
fa,
|
|
1475
|
+
{
|
|
1476
|
+
id: "description",
|
|
1477
|
+
value: d,
|
|
1478
|
+
onChange: (g) => h(g.target.value),
|
|
1479
|
+
placeholder: "Enter visual description",
|
|
1480
|
+
rows: 3,
|
|
1481
|
+
disabled: i
|
|
1482
|
+
}
|
|
1483
|
+
)
|
|
1484
|
+
] })
|
|
1485
|
+
] }),
|
|
1486
|
+
/* @__PURE__ */ s(Ja, { children: [
|
|
1487
|
+
/* @__PURE__ */ t(
|
|
1488
|
+
L,
|
|
1489
|
+
{
|
|
1490
|
+
variant: "outline",
|
|
1491
|
+
onClick: () => a(!1),
|
|
1492
|
+
disabled: i,
|
|
1493
|
+
children: "Cancel"
|
|
1494
|
+
}
|
|
1495
|
+
),
|
|
1496
|
+
/* @__PURE__ */ s(L, { onClick: f, disabled: !p || i, children: [
|
|
1497
|
+
i && /* @__PURE__ */ t(de, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
1498
|
+
m.actionLabel
|
|
1499
|
+
] })
|
|
1500
|
+
] })
|
|
1501
|
+
] }) });
|
|
1502
|
+
}
|
|
1502
1503
|
function hs() {
|
|
1503
|
-
const [e, a] = A(!1), [r, n] = A(!1), [i, o] = A(null), [l, u] = A(null), c = oe((b) => b.frame), d = oe((b) => b.card), h = lt(), p = w((b) => b.selectedSheetId), m = w((b) => b.dashboard), { getUpdatedFrame: f } = Be(), { selectVisual: g } = Ct(), { addFrame: y, setIsVisualEditing: N } = ve(), k =
|
|
1504
|
+
const [e, a] = A(!1), [r, n] = A(!1), [i, o] = A(null), [l, u] = A(null), c = oe((b) => b.frame), d = oe((b) => b.card), h = lt(), p = w((b) => b.selectedSheetId), m = w((b) => b.dashboard), { getUpdatedFrame: f } = Be(), { selectVisual: g } = Ct(), { addFrame: y, setIsVisualEditing: N } = ve(), k = ct(), V = !!(c != null && c.visualId), P = (() => {
|
|
1504
1505
|
var b, S;
|
|
1505
1506
|
return ((b = c == null ? void 0 : c.cards) == null ? void 0 : b.length) === 1 && ((S = c.cards[0]) != null && S.title) ? c.cards[0].title : h != null && h.title ? h.title : (d == null ? void 0 : d.title) || "Untitled Visual";
|
|
1506
1507
|
})(), D = Za((b) => {
|
|
@@ -1593,8 +1594,8 @@ function hs() {
|
|
|
1593
1594
|
isSaving: D.isPending
|
|
1594
1595
|
};
|
|
1595
1596
|
}
|
|
1596
|
-
function
|
|
1597
|
-
const { isInspectionMode: a } = en(), r = oe((B) => B.frame), n = oe((B) => B.editorContext), i = tn((B) => B.selectedVisual), o = w((B) => B.selectedFrameId), l = w((B) => B.selectedSheetId), u = w((B) => B.dashboard), { setIsVisualEditing: c, updateFrame: d } = ve(), [h, p] = A(!1), [m, f] = A("both"), g =
|
|
1597
|
+
function Ki(e = {}) {
|
|
1598
|
+
const { isInspectionMode: a } = en(), r = oe((B) => B.frame), n = oe((B) => B.editorContext), i = tn((B) => B.selectedVisual), o = w((B) => B.selectedFrameId), l = w((B) => B.selectedSheetId), u = w((B) => B.dashboard), { setIsVisualEditing: c, updateFrame: d } = ve(), [h, p] = A(!1), [m, f] = A("both"), g = ct(), y = (n == null ? void 0 : n.type) === "documentSection", N = !!(r != null && r.visualId || i != null && i.id), k = !!(r != null && r.visualId && o), V = N && !k, {
|
|
1598
1599
|
saveAsDialogOpen: P,
|
|
1599
1600
|
setSaveAsDialogOpen: D,
|
|
1600
1601
|
handleSaveAs: _,
|
|
@@ -1651,8 +1652,8 @@ function Qi(e = {}) {
|
|
|
1651
1652
|
return /* @__PURE__ */ s(U, { children: [
|
|
1652
1653
|
/* @__PURE__ */ s("div", { className: "inline-flex items-center overflow-hidden rounded-control", children: [
|
|
1653
1654
|
!N && /* @__PURE__ */ t(gt, { className: "!rounded-none", variant: "default" }),
|
|
1654
|
-
N && V && /* @__PURE__ */ t(
|
|
1655
|
-
N && k && /* @__PURE__ */ t(
|
|
1655
|
+
N && V && /* @__PURE__ */ t(ds, { className: "!rounded-none", variant: "default" }),
|
|
1656
|
+
N && k && /* @__PURE__ */ t(cs, { className: "!rounded-none" }),
|
|
1656
1657
|
/* @__PURE__ */ s(je, { modal: !1, children: [
|
|
1657
1658
|
/* @__PURE__ */ t(qe, { asChild: !0, children: /* @__PURE__ */ t(
|
|
1658
1659
|
L,
|
|
@@ -1702,7 +1703,7 @@ function Qi(e = {}) {
|
|
|
1702
1703
|
onClick: () => H("library"),
|
|
1703
1704
|
disabled: v,
|
|
1704
1705
|
children: [
|
|
1705
|
-
/* @__PURE__ */ t(
|
|
1706
|
+
/* @__PURE__ */ t(wr, { className: "h-3.5 w-3.5" }),
|
|
1706
1707
|
"Save as Library Visual"
|
|
1707
1708
|
]
|
|
1708
1709
|
}
|
|
@@ -1713,7 +1714,7 @@ function Qi(e = {}) {
|
|
|
1713
1714
|
onClick: () => H("both"),
|
|
1714
1715
|
disabled: v,
|
|
1715
1716
|
children: [
|
|
1716
|
-
/* @__PURE__ */ t(
|
|
1717
|
+
/* @__PURE__ */ t(Sr, { className: "h-3.5 w-3.5" }),
|
|
1717
1718
|
"Save Copy as Linked Visual"
|
|
1718
1719
|
]
|
|
1719
1720
|
}
|
|
@@ -1725,7 +1726,7 @@ function Qi(e = {}) {
|
|
|
1725
1726
|
] }),
|
|
1726
1727
|
/* @__PURE__ */ t(bt, {}),
|
|
1727
1728
|
/* @__PURE__ */ t(
|
|
1728
|
-
|
|
1729
|
+
us,
|
|
1729
1730
|
{
|
|
1730
1731
|
open: P,
|
|
1731
1732
|
onOpenChange: (B) => {
|
|
@@ -1740,7 +1741,7 @@ function Qi(e = {}) {
|
|
|
1740
1741
|
)
|
|
1741
1742
|
] });
|
|
1742
1743
|
}
|
|
1743
|
-
function
|
|
1744
|
+
function Hi({ className: e }) {
|
|
1744
1745
|
const a = oe((h) => h.isDevMode), r = oe((h) => h.card.type), n = w((h) => h.isVisualEditing), { setIsDevMode: i } = dt(), { config: o } = da(an).tokenProps, l = (o == null ? void 0 : o.showAdvancedMode) !== !1;
|
|
1745
1746
|
if (!n || !l || !ar(r))
|
|
1746
1747
|
return null;
|
|
@@ -1763,8 +1764,8 @@ function Ki({ className: e }) {
|
|
|
1763
1764
|
}
|
|
1764
1765
|
);
|
|
1765
1766
|
}
|
|
1766
|
-
function
|
|
1767
|
-
const e =
|
|
1767
|
+
function Gi() {
|
|
1768
|
+
const e = Er() === "sm", a = w((c) => c.isDashboardEditing), r = w((c) => c.isVisualEditing), n = w((c) => {
|
|
1768
1769
|
var h;
|
|
1769
1770
|
const d = ((h = c.dashboard) == null ? void 0 : h.sheets) ?? [];
|
|
1770
1771
|
return d.find((p) => p.id === c.selectedSheetId) ?? d[0];
|
|
@@ -1825,7 +1826,7 @@ function Hi() {
|
|
|
1825
1826
|
] })
|
|
1826
1827
|
] });
|
|
1827
1828
|
}
|
|
1828
|
-
function
|
|
1829
|
+
function Yi() {
|
|
1829
1830
|
const e = w((i) => i.screenSizesOpen), a = w((i) => {
|
|
1830
1831
|
var u, c;
|
|
1831
1832
|
const o = ((u = i.dashboard) == null ? void 0 : u.sheets) ?? [], l = o.find((d) => d.id === i.selectedSheetId) ?? o[0];
|
|
@@ -1856,7 +1857,7 @@ function Gi() {
|
|
|
1856
1857
|
}
|
|
1857
1858
|
);
|
|
1858
1859
|
}
|
|
1859
|
-
function
|
|
1860
|
+
function Xi({ dashboardId: e }) {
|
|
1860
1861
|
const { openDashboardId: a, access: r, printMode: n, serverIsFavorite: i, fetchedAt: o } = w(
|
|
1861
1862
|
nn((c) => {
|
|
1862
1863
|
var d;
|
|
@@ -1880,7 +1881,7 @@ function Yi({ dashboardId: e }) {
|
|
|
1880
1881
|
}
|
|
1881
1882
|
);
|
|
1882
1883
|
}
|
|
1883
|
-
function
|
|
1884
|
+
function Ji({
|
|
1884
1885
|
width: e,
|
|
1885
1886
|
hasOverflowMenu: a = !0,
|
|
1886
1887
|
children: r
|
|
@@ -1906,11 +1907,11 @@ function Xi({
|
|
|
1906
1907
|
);
|
|
1907
1908
|
return /* @__PURE__ */ t(Aa.Provider, { value: h, children: r });
|
|
1908
1909
|
}
|
|
1909
|
-
function
|
|
1910
|
+
function Zi() {
|
|
1910
1911
|
const { setAnchorSlot: e } = da(Aa);
|
|
1911
1912
|
return /* @__PURE__ */ t("span", { ref: e, "aria-hidden": !0, className: "relative -mr-1.5 block h-7 w-0" });
|
|
1912
1913
|
}
|
|
1913
|
-
function
|
|
1914
|
+
function eo(e) {
|
|
1914
1915
|
var c;
|
|
1915
1916
|
const { authToken: a, tokenProps: r } = $e(), { data: n } = on(), { mutate: i, isPending: o } = ln(), l = !!e && ((c = n == null ? void 0 : n.preference) == null ? void 0 : c.defaultDashboardId) === e, u = !n || o;
|
|
1916
1917
|
return {
|
|
@@ -1922,7 +1923,7 @@ function Zi(e) {
|
|
|
1922
1923
|
}
|
|
1923
1924
|
};
|
|
1924
1925
|
}
|
|
1925
|
-
function
|
|
1926
|
+
function to({
|
|
1926
1927
|
open: e,
|
|
1927
1928
|
onOpenChange: a,
|
|
1928
1929
|
onSave: r,
|
|
@@ -1962,7 +1963,7 @@ function eo({
|
|
|
1962
1963
|
] })
|
|
1963
1964
|
] }) });
|
|
1964
1965
|
}
|
|
1965
|
-
async function
|
|
1966
|
+
async function ao(e) {
|
|
1966
1967
|
var o, l;
|
|
1967
1968
|
const a = (l = (o = w.getState()) == null ? void 0 : o.authToken) == null ? void 0 : l.accessToken;
|
|
1968
1969
|
if (!a)
|
|
@@ -2109,7 +2110,7 @@ function Ta({
|
|
|
2109
2110
|
] })
|
|
2110
2111
|
] });
|
|
2111
2112
|
}
|
|
2112
|
-
function
|
|
2113
|
+
function no({ variant: e }) {
|
|
2113
2114
|
const { snapshot: a, markSeen: r } = Lt(), n = a.runningCount > 0 ? a.runningCount > 9 ? "9+" : String(a.runningCount) : a.hasUnseenFinished ? "" : null, i = Da("activity", "md", {
|
|
2114
2115
|
label: ge.title,
|
|
2115
2116
|
icon: /* @__PURE__ */ t(ea, { className: "h-3.5 w-3.5" }),
|
|
@@ -2125,7 +2126,7 @@ function ao({ variant: e }) {
|
|
|
2125
2126
|
i.setPopoverOpen(o), o && r();
|
|
2126
2127
|
},
|
|
2127
2128
|
children: [
|
|
2128
|
-
i.anchorSlot &&
|
|
2129
|
+
i.anchorSlot && Ir(
|
|
2129
2130
|
/* @__PURE__ */ t(Na, { asChild: !0, children: /* @__PURE__ */ t("span", { className: "absolute right-0 top-0 h-7 w-px" }) }),
|
|
2130
2131
|
i.anchorSlot
|
|
2131
2132
|
),
|
|
@@ -2246,7 +2247,7 @@ function gs({
|
|
|
2246
2247
|
// create and make consumers use `forceClose()` from a dedicated
|
|
2247
2248
|
// button.
|
|
2248
2249
|
dismissMode: n ? "passive" : "explicit-only"
|
|
2249
|
-
}), m = w((v) => v.dashboard), { setDashboardControlsModel: f } = ve(), { participants: g } = vn(
|
|
2250
|
+
}), m = w((v) => v.dashboard), { setDashboardControlsModel: f } = ve(), { participants: g } = vn(Lr(m)), y = Array.from(
|
|
2250
2251
|
new Map(
|
|
2251
2252
|
g.flatMap(
|
|
2252
2253
|
(v) => v.fieldChoices.map((T) => {
|
|
@@ -2345,7 +2346,7 @@ function gs({
|
|
|
2345
2346
|
children: [
|
|
2346
2347
|
/* @__PURE__ */ t(Pe, { className: "text-[15px]", children: b }),
|
|
2347
2348
|
/* @__PURE__ */ t(
|
|
2348
|
-
|
|
2349
|
+
ut,
|
|
2349
2350
|
{
|
|
2350
2351
|
className: c ? "sr-only" : "text-[13px]",
|
|
2351
2352
|
children: c ? "Configure and add a shared dashboard control." : "Add shared controls viewers can use across the dashboard. Each card can decide how to respond to the same control."
|
|
@@ -2444,7 +2445,7 @@ function xs({
|
|
|
2444
2445
|
/* @__PURE__ */ s(Tt, { className: l ? "space-y-0" : void 0, children: [
|
|
2445
2446
|
/* @__PURE__ */ t(Pe, { className: "text-[15px]", children: l ? "Add document control" : "Document Controls" }),
|
|
2446
2447
|
/* @__PURE__ */ t(
|
|
2447
|
-
|
|
2448
|
+
ut,
|
|
2448
2449
|
{
|
|
2449
2450
|
className: l ? "sr-only" : "text-[13px]",
|
|
2450
2451
|
children: l ? "Configure and add a document-local control input." : "Add document-local control inputs. They are stored on this document sheet and are not dashboard controls."
|
|
@@ -2578,7 +2579,7 @@ function ws({
|
|
|
2578
2579
|
l
|
|
2579
2580
|
),
|
|
2580
2581
|
children: [
|
|
2581
|
-
e ? /* @__PURE__ */ t(
|
|
2582
|
+
e ? /* @__PURE__ */ t(kr, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ t(xa, { className: "h-3.5 w-3.5" }),
|
|
2582
2583
|
"Filter"
|
|
2583
2584
|
]
|
|
2584
2585
|
}
|
|
@@ -2630,7 +2631,7 @@ function ws({
|
|
|
2630
2631
|
);
|
|
2631
2632
|
}
|
|
2632
2633
|
function Ss() {
|
|
2633
|
-
|
|
2634
|
+
Dr();
|
|
2634
2635
|
const e = w((c) => c.selectedSheetId), a = w((c) => c.selectedFrameId), r = w((c) => c.dashboard), n = w((c) => c.actions.getSelectedFrame), { setSelectedFrameId: i } = ve(), { setCard: o } = dt(), l = oe((c) => c.card.dataSource);
|
|
2635
2636
|
return Ee(() => {
|
|
2636
2637
|
var d, h;
|
|
@@ -2777,7 +2778,7 @@ function As({
|
|
|
2777
2778
|
)
|
|
2778
2779
|
] });
|
|
2779
2780
|
}
|
|
2780
|
-
function
|
|
2781
|
+
function ro({
|
|
2781
2782
|
size: e,
|
|
2782
2783
|
className: a,
|
|
2783
2784
|
primaryButtonClassName: r,
|
|
@@ -2864,7 +2865,7 @@ function no({
|
|
|
2864
2865
|
}
|
|
2865
2866
|
function Fs(e, a) {
|
|
2866
2867
|
return (e.variables ?? []).map((r) => {
|
|
2867
|
-
const n =
|
|
2868
|
+
const n = Vr(e, r.id);
|
|
2868
2869
|
return {
|
|
2869
2870
|
variable: r,
|
|
2870
2871
|
question: Or(r),
|
|
@@ -2956,14 +2957,14 @@ function ia({
|
|
|
2956
2957
|
}
|
|
2957
2958
|
);
|
|
2958
2959
|
}
|
|
2959
|
-
function
|
|
2960
|
+
function so() {
|
|
2960
2961
|
const e = w((r) => {
|
|
2961
2962
|
var n;
|
|
2962
2963
|
return ((n = r.dashboard.variables) == null ? void 0 : n.length) ?? 0;
|
|
2963
2964
|
}), a = w((r) => r.actions.setVariablesListOpen);
|
|
2964
2965
|
return { label: "Data variables", count: e, open: () => a(!0) };
|
|
2965
2966
|
}
|
|
2966
|
-
function
|
|
2967
|
+
function io() {
|
|
2967
2968
|
var c;
|
|
2968
2969
|
const e = w((d) => d.variablesListOpen), a = w((d) => d.actions.setVariablesListOpen), r = w((d) => d.dashboard), n = w((d) => d.selectedSheetId), i = w((d) => d.actions.openVariableEditor), o = it("interactive"), l = (c = r.sheets) == null ? void 0 : c.find((d) => d.id === n), u = (d) => {
|
|
2969
2970
|
a(!1), i(d);
|
|
@@ -2998,7 +2999,7 @@ function Ts(e, a) {
|
|
|
2998
2999
|
return new Set(
|
|
2999
3000
|
(e.sheets ?? []).map((i) => {
|
|
3000
3001
|
const o = { sheetId: i.id, cardId: a, sheetKind: Ke(i) ? "document" : "dashboard" };
|
|
3001
|
-
return r.filter((l) =>
|
|
3002
|
+
return r.filter((l) => Pr(l, o)).map((l) => l.runtimeScope === "shared" ? l.id : `${l.id}@${i.id}`).join(`
|
|
3002
3003
|
`);
|
|
3003
3004
|
})
|
|
3004
3005
|
).size > 1;
|
|
@@ -3238,7 +3239,7 @@ function Us({
|
|
|
3238
3239
|
label: "SQL",
|
|
3239
3240
|
hint: /* @__PURE__ */ t(U, { children: "One row. Each column is a part; the first shows by default. Filters reach it where the SQL names them, as a SQL card's do." }),
|
|
3240
3241
|
children: /* @__PURE__ */ t(
|
|
3241
|
-
|
|
3242
|
+
fa,
|
|
3242
3243
|
{
|
|
3243
3244
|
size: "xs",
|
|
3244
3245
|
value: e.sql,
|
|
@@ -3280,7 +3281,7 @@ function Us({
|
|
|
3280
3281
|
] }) : null
|
|
3281
3282
|
] }),
|
|
3282
3283
|
/* @__PURE__ */ t(
|
|
3283
|
-
|
|
3284
|
+
Ar,
|
|
3284
3285
|
{
|
|
3285
3286
|
open: c,
|
|
3286
3287
|
onOpenChange: d,
|
|
@@ -3395,7 +3396,7 @@ function Us({
|
|
|
3395
3396
|
// In place, not a dialog over the dialog: each edit is the draft's, and
|
|
3396
3397
|
// Cancel or Done here keeps or drops it. A new source starts a new list.
|
|
3397
3398
|
/* @__PURE__ */ t(
|
|
3398
|
-
|
|
3399
|
+
Fr,
|
|
3399
3400
|
{
|
|
3400
3401
|
filters: e.conditions ?? null,
|
|
3401
3402
|
availableFields: D,
|
|
@@ -3490,7 +3491,7 @@ function Ks({
|
|
|
3490
3491
|
variables: [...(n.variables ?? []).filter((I) => I.id !== v.id), v]
|
|
3491
3492
|
}),
|
|
3492
3493
|
[n, v]
|
|
3493
|
-
), E = $r(l), H =
|
|
3494
|
+
), E = $r(l), H = ct(), B = w((I) => I.actions.mergeSemanticExecutionPayload), [Q, X] = A(!1), O = async () => {
|
|
3494
3495
|
const I = Jt(l, n);
|
|
3495
3496
|
X(!0);
|
|
3496
3497
|
let ae;
|
|
@@ -3693,7 +3694,7 @@ const Xs = [
|
|
|
3693
3694
|
];
|
|
3694
3695
|
function Js({ draft: e, onChange: a }) {
|
|
3695
3696
|
var u, c;
|
|
3696
|
-
const r = e.mode === "sql" ? "unknown" : _t((u = e.field) == null ? void 0 : u.dataType), n = (c = e.presentation) == null ? void 0 : c.temporal, i = n ? n.mode === "style" ? n.dateStyle : n.mode === "pattern" ? "pattern" : "auto" : "auto", o = (n == null ? void 0 : n.mode) === "pattern" ?
|
|
3697
|
+
const r = e.mode === "sql" ? "unknown" : _t((u = e.field) == null ? void 0 : u.dataType), n = (c = e.presentation) == null ? void 0 : c.temporal, i = n ? n.mode === "style" ? n.dateStyle : n.mode === "pattern" ? "pattern" : "auto" : "auto", o = (n == null ? void 0 : n.mode) === "pattern" ? Tr(n.pattern) : null, l = (d) => a({ ...e, presentation: d && Object.keys(d).length ? d : void 0 });
|
|
3697
3698
|
return /* @__PURE__ */ s(U, { children: [
|
|
3698
3699
|
r === "date" || r === "unknown" ? /* @__PURE__ */ s(se, { label: "Dates read as", hint: "A chip can change this for itself.", children: [
|
|
3699
3700
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
@@ -3809,7 +3810,7 @@ function ei(e, a, r) {
|
|
|
3809
3810
|
] }), o = (h) => h === void 0 ? "" : h === "beyondCap" ? `more than ${st} match` : `${h} ${h === 1 ? "match" : "matches"}`, l = "filterReach" in a ? a.filterReach : [], u = l.filter((h) => h.status === "applied").length, c = l.length - u, d = l.length ? ` · ${u} ${u === 1 ? "filter" : "filters"} applied${c ? `, ${c} skipped` : ""}` : "";
|
|
3810
3811
|
switch (a.status) {
|
|
3811
3812
|
case "answered": {
|
|
3812
|
-
const h =
|
|
3813
|
+
const h = Br(e, Object.keys(a.parts))[0], p = h ? a.parts[h] : void 0, m = p && Ht(p, e.presentation, r) || "(empty)", f = `${o(a.matched)}${d}`.replace(/^ · /, ""), g = Nr(e, a, r);
|
|
3813
3814
|
return g && typeof g == "object" && "unavailable" in g ? { body: n(m), meta: f, unavailable: g.unavailable } : g === "noPrevious" ? { body: n(m), meta: `${f} · Nothing in the period before to compare with.`.replace(/^ · /, "") } : g ? {
|
|
3814
3815
|
body: /* @__PURE__ */ s(U, { children: [
|
|
3815
3816
|
n(g.value),
|
|
@@ -3846,7 +3847,7 @@ function ei(e, a, r) {
|
|
|
3846
3847
|
return { body: null, meta: "" };
|
|
3847
3848
|
}
|
|
3848
3849
|
}
|
|
3849
|
-
function
|
|
3850
|
+
function oo() {
|
|
3850
3851
|
const e = w((l) => l.variableEditor), a = w((l) => l.dashboard.variables), r = w((l) => l.actions.closeVariableEditor), n = et(!1), i = (e == null ? void 0 : e.kind) === "edit" ? a == null ? void 0 : a.find((l) => l.id === e.variableId) : void 0;
|
|
3851
3852
|
return !(e && (e.kind === "new" || i)) ? null : /* @__PURE__ */ s(Le, { modal: !1, open: !0, onOpenChange: (l) => !l && r(), children: [
|
|
3852
3853
|
/* @__PURE__ */ t("div", { className: "pointer-events-none fixed inset-0 z-40 bg-zinc-950/40 backdrop-blur-sm" }),
|
|
@@ -3860,7 +3861,7 @@ function io() {
|
|
|
3860
3861
|
},
|
|
3861
3862
|
children: [
|
|
3862
3863
|
/* @__PURE__ */ t(Pe, { className: "sr-only", children: "Variable from data" }),
|
|
3863
|
-
/* @__PURE__ */ t(
|
|
3864
|
+
/* @__PURE__ */ t(ut, { className: "sr-only", children: "Define a value from your data to show in text." }),
|
|
3864
3865
|
/* @__PURE__ */ t(
|
|
3865
3866
|
Ks,
|
|
3866
3867
|
{
|
|
@@ -4517,7 +4518,7 @@ const bi = {
|
|
|
4517
4518
|
deleteBriefing: Un,
|
|
4518
4519
|
runBriefingNow: zn
|
|
4519
4520
|
};
|
|
4520
|
-
function
|
|
4521
|
+
function lo(e) {
|
|
4521
4522
|
return /* @__PURE__ */ t(_n, { authToken: e.token ? { accessToken: e.token } : void 0, children: /* @__PURE__ */ t(Mn, { children: /* @__PURE__ */ t(xi, { ...e }) }) });
|
|
4522
4523
|
}
|
|
4523
4524
|
function xi({
|
|
@@ -4884,26 +4885,26 @@ function vi() {
|
|
|
4884
4885
|
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `briefing-run-now-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
|
|
4885
4886
|
}
|
|
4886
4887
|
export {
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4888
|
+
Hi as A,
|
|
4889
|
+
Xi as D,
|
|
4890
|
+
Yi as S,
|
|
4891
|
+
Zi as T,
|
|
4892
|
+
to as U,
|
|
4893
|
+
Wi as V,
|
|
4893
4894
|
ti as W,
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4895
|
+
Ki as a,
|
|
4896
|
+
Gi as b,
|
|
4897
|
+
Ji as c,
|
|
4898
|
+
eo as d,
|
|
4899
|
+
no as e,
|
|
4899
4900
|
gs as f,
|
|
4900
4901
|
xs as g,
|
|
4901
4902
|
ws as h,
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4903
|
+
ao as i,
|
|
4904
|
+
ro as j,
|
|
4905
|
+
io as k,
|
|
4906
|
+
so as l,
|
|
4907
|
+
oo as m,
|
|
4908
|
+
lo as n,
|
|
4909
|
+
Qi as u
|
|
4909
4910
|
};
|