react-semaphor 0.1.540 → 0.1.542
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 +75 -75
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +3 -3
- package/dist/briefings/index.js +50 -45
- package/dist/chunks/apply-dashboard-operations-Btbp2-6v.js +2260 -0
- package/dist/chunks/{assistant-chat-ya7xopaC.js → assistant-chat-oHF5lTjA.js} +12 -12
- package/dist/chunks/bookmark-state-CXw7lZ50.js +118 -0
- package/dist/chunks/{calendar-day-equality-Bpl15IBo.js → calendar-day-equality-BmJAWduY.js} +180 -207
- package/dist/chunks/comparison-window-caption-ChIyd_-L.js +1618 -0
- package/dist/chunks/custom-visual-inputs-DUtpYZOk.js +323 -0
- package/dist/chunks/{dashboard-briefing-launcher-DJI-zfEq.js → dashboard-briefing-launcher-B-cm719R.js} +18 -18
- package/dist/chunks/{dashboard-controls-Dh7HqoKy.js → dashboard-controls-CIn22Qgp.js} +69 -70
- package/dist/chunks/{dashboard-filter-value-compatibility-D95O4nd7.js → dashboard-filter-value-compatibility-CwQ_iSNb.js} +2 -2
- package/dist/chunks/{dashboard-json-BnmlB71h.js → dashboard-json-ZUYsIExq.js} +4 -4
- package/dist/chunks/{dashboard-B6Bithfl.js → dashboard-s5WJBcK8.js} +1 -1
- package/dist/chunks/{document-dashboard-inputs-BrYYlRVo.js → document-dashboard-inputs-C6MJVyoI.js} +2357 -4948
- package/dist/chunks/document-sheet-utils-BsZUnHRl.js +3619 -0
- package/dist/chunks/{edit-dashboard-visual-CydOkSko.js → edit-dashboard-visual-DLdereA7.js} +728 -728
- package/dist/chunks/{filter-value-text-BhWugPWE.js → filter-value-text-CYsVYPuD.js} +18 -19
- package/dist/chunks/index-CV5rHq5D.js +2673 -0
- package/dist/chunks/{matrix-analytical-definition-bcprSe4u.js → matrix-analytical-definition-C7Gb0e12.js} +1 -1
- package/dist/chunks/{matrix-card-CJn1hB5V.js → matrix-card-DjwWcCo8.js} +2 -2
- package/dist/chunks/{matrix-formatter-DQ8avoIQ.js → matrix-formatter-BnsTX90d.js} +430 -417
- package/dist/chunks/{matrix-member-presentation-BNPSDKBG.js → matrix-member-presentation-CQGdVks6.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-B8PBF1Gd.js → matrix-operation-contract-8OIO4gob.js} +65 -65
- package/dist/chunks/metric-comparison-DEwi9uc2.js +498 -0
- package/dist/chunks/numeric-presentation-BSAqPpHt.js +5227 -0
- package/dist/chunks/{pivot-header-presentation-MkcKnjn3.js → pivot-header-presentation-DHcx1XGQ.js} +1 -1
- package/dist/chunks/{pivot-result-identity-D6hhcRXi.js → pivot-result-identity-DJhXXcns.js} +1 -1
- package/dist/chunks/pivot-result-lifecycle-BBlAfBA0.js +1155 -0
- package/dist/chunks/raw-temporal-presentation-CZ2r0Vb_.js +585 -0
- package/dist/chunks/{report-preferences-dialog-neMDolLg.js → report-preferences-dialog-MRUWpMcJ.js} +75 -75
- package/dist/chunks/{report-runtime-context-B984Nq1E.js → report-runtime-context-Dq8XyODK.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-CCrLpfSQ.js → saved-dashboard-context-DjPqgFly.js} +233 -206
- package/dist/chunks/{selection-reducer-vKIb_jS6.js → selection-reducer-Dj_8xD69.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator--4DWtVBu.js → semaphor-ready-indicator-BWSpRsPj.js} +38555 -40449
- package/dist/chunks/{shelf-drop-preview-context-CpdB5ois.js → shelf-drop-preview-context-CQbFLm3q.js} +6 -6
- package/dist/chunks/sort-target-MT1WK1vX.js +29 -0
- package/dist/chunks/{source-entity-resolution-CVA1a85c.js → source-entity-resolution-BYn9giz3.js} +1 -1
- package/dist/chunks/{switch-DWEWiv1J.js → switch-C3jLxlG0.js} +2 -2
- package/dist/chunks/table-export-sheet-BHSnuZHd.js +949 -0
- package/dist/chunks/table-settings-CLZocegs.js +501 -0
- package/dist/chunks/temporal-bucket-D7NBrrtL.js +2071 -0
- package/dist/chunks/{token-types-bxUxXDX2.js → token-types-DBbZVQsm.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-8g6Zhphh.js → use-create-flow-overlay-state-BJDNqdOh.js} +151 -151
- package/dist/chunks/{validators-Ej1DdCXa.js → validators-DMHTpf7a.js} +73 -73
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +399 -380
- 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 +9 -9
- package/dist/format-utils/index.js +346 -238
- package/dist/index.js +174 -175
- package/dist/pdf-export-policy/index.js +20 -10
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/briefings/attachment-outcomes.d.ts +23 -0
- package/dist/types/briefings/attachments.d.ts +17 -1
- package/dist/types/briefings/index.d.ts +6 -3
- package/dist/types/index.js +48 -48
- package/dist/types/lib/api/exports-api.d.ts +11 -65
- package/dist/types/lib/dashboard-inputs/control-contract-overrides.d.ts +17 -0
- package/dist/types/lib/dashboard-viewer/export-table-view.d.ts +2 -0
- package/dist/types/lib/hooks/use-dashboard-card.d.ts +2 -0
- package/dist/types/lib/hooks/use-dashboard.d.ts +3 -6
- package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +8 -2
- package/dist/types/lib/matrix-table/matrix-delivery.d.ts +8 -6
- package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +50 -0
- package/dist/types/lib/query-context/card-server-request.d.ts +5 -1
- package/dist/types/lib/types/common-types.d.ts +7 -0
- package/dist/types/lib/types/explorer-types.d.ts +8 -2
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +3 -3
- package/dist/types/shared/assistant-context/index.d.ts +1 -1
- package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +23 -6
- package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +173 -0
- package/dist/types/shared/dashboard-authoring/card-query-request.d.ts +20 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +4 -3
- package/dist/types/shared/format-utils/attachment-filter-line.d.ts +14 -0
- package/dist/types/shared/format-utils/exporters/export-cells.d.ts +90 -0
- package/dist/types/shared/format-utils/exporters/export-file-format.d.ts +44 -0
- package/dist/types/shared/format-utils/exporters/index.d.ts +6 -0
- package/dist/types/shared/format-utils/exporters/xlsx-file.d.ts +90 -0
- package/dist/types/shared/format-utils/filter-line.d.ts +7 -0
- package/dist/types/shared/format-utils/formatters/date-formatter.d.ts +8 -12
- package/dist/types/shared/format-utils/formatters/index.d.ts +1 -1
- package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +2 -0
- package/dist/types/shared/format-utils/index.d.ts +3 -0
- package/dist/types/shared/format-utils/matrix-continuation.d.ts +55 -9
- package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +21 -1
- package/dist/types/shared/format-utils/matrix-export-xlsx.d.ts +27 -0
- package/dist/types/shared/format-utils/pdf-export-policy.d.ts +9 -0
- package/dist/types/shared/format-utils/presentation-execution.d.ts +27 -2
- package/dist/types/shared/format-utils/raw-temporal.d.ts +8 -0
- package/dist/types/shared/format-utils/table-export/index.d.ts +8 -0
- package/dist/types/shared/format-utils/table-export/prepare-table-export.d.ts +50 -0
- package/dist/types/shared/format-utils/table-export/table-export-formatting.d.ts +47 -0
- package/dist/types/shared/format-utils/table-export/table-export-raw-temporal.d.ts +40 -0
- package/dist/types/shared/format-utils/table-export/table-export-result.d.ts +31 -0
- package/dist/types/shared/format-utils/table-export/table-export-sheet.d.ts +38 -0
- package/dist/types/shared/format-utils/temporal-bucket.d.ts +9 -0
- package/package.json +2 -1
- package/dist/chunks/aggregate-table-row-presentation-BjK9YfMI.js +0 -979
- package/dist/chunks/apply-dashboard-operations-C-iahGka.js +0 -402
- package/dist/chunks/bookmark-state-k7y5SNGf.js +0 -331
- package/dist/chunks/calculated-field-identity-DcBS2NPP.js +0 -2161
- package/dist/chunks/canonical-result-keys-CEQefvdO.js +0 -33
- package/dist/chunks/common-types-CUf03Htv.js +0 -288
- package/dist/chunks/csv-utils-GUfKyT1J.js +0 -56
- package/dist/chunks/custom-visual-inputs-BrUOIwln.js +0 -3288
- package/dist/chunks/document-sheet-utils-C1eEldxs.js +0 -1076
- package/dist/chunks/index-CqMiAkay.js +0 -3164
- package/dist/chunks/matrix-definition-DQDI2okF.js +0 -206
- package/dist/chunks/metric-comparison-CojWeLqx.js +0 -392
- package/dist/chunks/pivot-result-lifecycle-8qCDmpKc.js +0 -804
- package/dist/chunks/raw-temporal-D61lr48Y.js +0 -1464
- package/dist/chunks/temporal-bucket-D8JF7zKz.js +0 -575
- package/dist/chunks/temporal-bucket-contract-DaOajRC7.js +0 -108
|
@@ -1,30 +1,29 @@
|
|
|
1
1
|
import { jsx as t, jsxs as i, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
-
import { bz as Br, u as C, bA as Gr, bB as at, bC as Vr, bD as jr, bE as Hr, bF as qr, bG as zr, bH as Kr, aX as z, aV as ge, bI as xe, bJ as Qr, bu as Vt, bv as jt, bx as Xe, by as Ze, bK as Ht, aI as nt, aR as ee, bL as Wr, bM as Yr, bN as qt, bO as Jr, bP as zt, bw as Xr, bQ as Zr, bR as
|
|
3
|
-
import { B as T, Z as $a, _ as Fa, $ as et, L as
|
|
2
|
+
import { bz as Br, u as C, bA as Gr, bB as at, bC as Vr, bD as jr, bE as Hr, bF as qr, bG as zr, bH as Kr, aX as z, aV as ge, bI as xe, bJ as Qr, bu as Vt, bv as jt, bx as Xe, by as Ze, bK as Ht, aI as nt, aR as ee, bL as Wr, bM as Yr, bN as qt, bO as Jr, bP as zt, bw as Xr, bQ as Zr, bR as P, bS as ea, bT as ta, bU as ra, at as aa, b6 as na, bV as oa, bW as sa, bX as ia, g as da, Z as Nt, f as Le, m as ca, h as Qe, bY as la, bZ as ua, b_ as ma, b$ as ha, I as pa, c0 as fa, s as ba, c1 as ga, c2 as xa, b8 as va, c3 as ya, c4 as wa, c5 as St, c6 as kt, c7 as Ct, c8 as Na, c9 as Sa, ca as ka, cb as Ca, cc as Me, cd as Da, ce as Ea, cf as We, cg as Ia, ch as Dt, l as Aa, ci as La, cj as Ma, ck as Oa, cl as _a, cm as Pa, cn as Ra, co as Ua, cp as Ta, cq as Et } from "./semaphor-ready-indicator-BWSpRsPj.js";
|
|
3
|
+
import { B as T, Z as $a, _ as Fa, $ as et, L as _e, l as Ba, r as Ga, s as Va, t as ja, u as Ha, v as qa, P as za, a as Ka, b as Qa, m as It, n as At, o as Lt, p as Mt, I as Wa } from "./switch-C3jLxlG0.js";
|
|
4
4
|
import { c as te, X as Kt, C as Ya } from "./x-4f5U2XwU.js";
|
|
5
5
|
import * as I from "react";
|
|
6
|
-
import Qt, { useMemo as j, useState as S, useEffect as
|
|
7
|
-
import {
|
|
6
|
+
import Qt, { useMemo as j, useState as S, useEffect as Pe, useRef as Ot, useLayoutEffect as Ja } from "react";
|
|
7
|
+
import { ae as D } from "./numeric-presentation-BSAqPpHt.js";
|
|
8
8
|
import "./index-CuHybtft.js";
|
|
9
|
-
import "./validators-
|
|
10
|
-
import "./matrix-operation-contract-
|
|
9
|
+
import "./validators-DMHTpf7a.js";
|
|
10
|
+
import "./matrix-operation-contract-8OIO4gob.js";
|
|
11
11
|
import "./analytics-base-schemas-BFAoRlkU.js";
|
|
12
12
|
import "zod";
|
|
13
13
|
import "../value-format-preferences/index.js";
|
|
14
14
|
import { c as be } from "./class-utils-Df1OVOT1.js";
|
|
15
|
-
import { d as Xa, c as Za, u as en, A as tn, a as rn, g as an, V as nn, N as on, i as sn, h as dn, U as cn } from "./dashboard-briefing-launcher-
|
|
16
|
-
import { I as ln } from "./use-create-flow-overlay-state-
|
|
17
|
-
import { h as un, R as mn } from "./report-preferences-dialog-
|
|
15
|
+
import { d as Xa, c as Za, u as en, A as tn, a as rn, g as an, V as nn, N as on, i as sn, h as dn, U as cn } from "./dashboard-briefing-launcher-B-cm719R.js";
|
|
16
|
+
import { I as ln } from "./use-create-flow-overlay-state-BJDNqdOh.js";
|
|
17
|
+
import { h as un, R as mn } from "./report-preferences-dialog-MRUWpMcJ.js";
|
|
18
18
|
import { createPortal as hn } from "react-dom";
|
|
19
|
-
import {
|
|
20
|
-
import { S as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { r as
|
|
24
|
-
import { t as wn } from "./document-sheet-utils-C1eEldxs.js";
|
|
19
|
+
import { a7 as ve, a8 as ot, a9 as Wt, aa as pn, ab as _t, ac as fn } from "./document-dashboard-inputs-C6MJVyoI.js";
|
|
20
|
+
import { S as bn, C as gn } from "./selection-reducer-Dj_8xD69.js";
|
|
21
|
+
import { o as Yt } from "./matrix-formatter-BnsTX90d.js";
|
|
22
|
+
import { Z as Pt, _ as xn, $ as vn, x as yn, a as tt } from "./document-sheet-utils-BsZUnHRl.js";
|
|
23
|
+
import { r as wn } from "./pivot-result-lifecycle-BBlAfBA0.js";
|
|
25
24
|
import { u as Nn } from "./use-debounced-dirty-check-BwAbnX_5.js";
|
|
26
25
|
import { s as Sn } from "./normalize-dashboard-for-dirty-check-Bk3VYv_q.js";
|
|
27
|
-
import {
|
|
26
|
+
import { B as Re, u as Rt } from "./table-settings-CLZocegs.js";
|
|
28
27
|
import { S as kn } from "./save-CfJpQQ68.js";
|
|
29
28
|
import { P as Cn } from "./palette-D10o_yYX.js";
|
|
30
29
|
import { B as Dn } from "./braces-o9UiRQes.js";
|
|
@@ -166,7 +165,7 @@ var Je = {};
|
|
|
166
165
|
* LICENSE file in the root directory of this source tree.
|
|
167
166
|
*/
|
|
168
167
|
var Tt;
|
|
169
|
-
function
|
|
168
|
+
function _n() {
|
|
170
169
|
return Tt || (Tt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
171
170
|
function e(s, x) {
|
|
172
171
|
return s === x && (s !== 0 || 1 / s === 1 / x) || s !== s && x !== x;
|
|
@@ -218,8 +217,8 @@ function Pn() {
|
|
|
218
217
|
Je.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : u, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
219
218
|
}()), Je;
|
|
220
219
|
}
|
|
221
|
-
process.env.NODE_ENV === "production" ? rt.exports = On() : rt.exports =
|
|
222
|
-
var
|
|
220
|
+
process.env.NODE_ENV === "production" ? rt.exports = On() : rt.exports = _n();
|
|
221
|
+
var Pn = rt.exports;
|
|
223
222
|
const Oe = ["light", "dark", "system"];
|
|
224
223
|
function Rn() {
|
|
225
224
|
const { theme: e, setTheme: n } = Br(), a = C(
|
|
@@ -346,7 +345,7 @@ var Fn = [
|
|
|
346
345
|
return r.displayName = `Primitive.${n}`, { ...e, [n]: r };
|
|
347
346
|
}, {});
|
|
348
347
|
function Bn() {
|
|
349
|
-
return
|
|
348
|
+
return Pn.useSyncExternalStore(
|
|
350
349
|
Gn,
|
|
351
350
|
() => !0,
|
|
352
351
|
() => !1
|
|
@@ -564,7 +563,7 @@ function ao({
|
|
|
564
563
|
tenantId: o ? c : void 0,
|
|
565
564
|
includeMembers: !1
|
|
566
565
|
}), g = b ? cr(b, "Unable to load groups.") : null, [l, u] = S({ kind: "list" }), [s, x] = S(null), v = Zn();
|
|
567
|
-
|
|
566
|
+
Pe(() => {
|
|
568
567
|
e || (u({ kind: "list" }), x(null));
|
|
569
568
|
}, [e]);
|
|
570
569
|
const w = l.kind === "members" && m.find((N) => N.id === l.groupId) || null, h = async () => {
|
|
@@ -657,7 +656,7 @@ function ao({
|
|
|
657
656
|
disabled: v.isPending,
|
|
658
657
|
className: "inline-flex h-7 items-center gap-1.5 rounded-[5px] bg-rose-600 px-2.5 text-[12px] font-medium text-white hover:bg-rose-700 disabled:opacity-60",
|
|
659
658
|
children: [
|
|
660
|
-
v.isPending ? /* @__PURE__ */ t(
|
|
659
|
+
v.isPending ? /* @__PURE__ */ t(_e, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ t(nt, { className: "h-3 w-3" }),
|
|
661
660
|
"Delete group"
|
|
662
661
|
]
|
|
663
662
|
}
|
|
@@ -685,7 +684,7 @@ function no({
|
|
|
685
684
|
return /* @__PURE__ */ i("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
|
|
686
685
|
/* @__PURE__ */ i("div", { className: "flex shrink-0 items-center gap-2 border-b border-border px-5 py-2.5", children: [
|
|
687
686
|
/* @__PURE__ */ i("div", { className: "flex flex-1 items-center gap-2 rounded-[5px] border border-border bg-background px-2 focus-within:border-foreground/40", children: [
|
|
688
|
-
/* @__PURE__ */ t(
|
|
687
|
+
/* @__PURE__ */ t(bn, { className: "h-3 w-3 text-muted-foreground" }),
|
|
689
688
|
/* @__PURE__ */ t(
|
|
690
689
|
"input",
|
|
691
690
|
{
|
|
@@ -812,7 +811,7 @@ function oo({
|
|
|
812
811
|
children: /* @__PURE__ */ t(nt, { className: "h-3 w-3" })
|
|
813
812
|
}
|
|
814
813
|
),
|
|
815
|
-
/* @__PURE__ */ t(
|
|
814
|
+
/* @__PURE__ */ t(gn, { className: "h-3.5 w-3.5 text-muted-foreground" })
|
|
816
815
|
] })
|
|
817
816
|
]
|
|
818
817
|
}
|
|
@@ -1171,7 +1170,7 @@ function co({
|
|
|
1171
1170
|
disabled: !l || g.isPending,
|
|
1172
1171
|
className: "inline-flex h-7 items-center gap-1.5 rounded-[5px] bg-foreground px-2.5 text-[12px] font-medium text-background hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60",
|
|
1173
1172
|
children: g.isPending ? /* @__PURE__ */ i($, { children: [
|
|
1174
|
-
/* @__PURE__ */ t(
|
|
1173
|
+
/* @__PURE__ */ t(_e, { className: "h-3 w-3 animate-spin" }),
|
|
1175
1174
|
"Creating…"
|
|
1176
1175
|
] }) : /* @__PURE__ */ i($, { children: [
|
|
1177
1176
|
/* @__PURE__ */ t(ee, { className: "h-3 w-3" }),
|
|
@@ -1212,7 +1211,7 @@ function lo({
|
|
|
1212
1211
|
return s(), window.addEventListener("resize", s), window.addEventListener("scroll", s, !0), () => {
|
|
1213
1212
|
window.removeEventListener("resize", s), window.removeEventListener("scroll", s, !0);
|
|
1214
1213
|
};
|
|
1215
|
-
}, [a, o.length]),
|
|
1214
|
+
}, [a, o.length]), Pe(() => {
|
|
1216
1215
|
if (!a) return;
|
|
1217
1216
|
const s = (x) => {
|
|
1218
1217
|
var w, h;
|
|
@@ -1324,7 +1323,7 @@ function mo({
|
|
|
1324
1323
|
const a = C(
|
|
1325
1324
|
(o) => {
|
|
1326
1325
|
var c, m;
|
|
1327
|
-
return
|
|
1326
|
+
return wn({
|
|
1328
1327
|
dashboardDefault: (m = (c = o.dashboard) == null ? void 0 : c.exportDefaults) == null ? void 0 : m.csvEncoding
|
|
1329
1328
|
});
|
|
1330
1329
|
}
|
|
@@ -1457,7 +1456,7 @@ function po({
|
|
|
1457
1456
|
visible: e,
|
|
1458
1457
|
onSelect: n
|
|
1459
1458
|
}) {
|
|
1460
|
-
return e ? /* @__PURE__ */ i(
|
|
1459
|
+
return e ? /* @__PURE__ */ i(P, { onSelect: n, children: [
|
|
1461
1460
|
/* @__PURE__ */ t(ea, { className: "h-3.5 w-3.5" }),
|
|
1462
1461
|
"Schedule email report"
|
|
1463
1462
|
] }) : null;
|
|
@@ -1476,7 +1475,7 @@ function fo({
|
|
|
1476
1475
|
onSelect: a
|
|
1477
1476
|
}
|
|
1478
1477
|
),
|
|
1479
|
-
n ? /* @__PURE__ */ i(
|
|
1478
|
+
n ? /* @__PURE__ */ i(P, { onSelect: r, children: [
|
|
1480
1479
|
/* @__PURE__ */ t(ee, { className: "h-3.5 w-3.5" }),
|
|
1481
1480
|
"Create analytical briefing"
|
|
1482
1481
|
] }) : null
|
|
@@ -1486,7 +1485,7 @@ function bo(e) {
|
|
|
1486
1485
|
var f, g, l;
|
|
1487
1486
|
const { saved: n, draft: a, usage: r } = e, o = [], c = pn(n);
|
|
1488
1487
|
for (const [u, s] of Object.entries(r.inputs))
|
|
1489
|
-
!s || !
|
|
1488
|
+
!s || !_t(n, u) || _t(a, u) || o.push({
|
|
1490
1489
|
target: "input",
|
|
1491
1490
|
id: u,
|
|
1492
1491
|
label: fn(n, c, u),
|
|
@@ -1518,12 +1517,12 @@ function bo(e) {
|
|
|
1518
1517
|
});
|
|
1519
1518
|
continue;
|
|
1520
1519
|
}
|
|
1521
|
-
const w = x ?
|
|
1520
|
+
const w = x ? Pt(x) : void 0, h = Re(a, u), E = h ? Pt(h) : void 0;
|
|
1522
1521
|
if (!(!x || !w || !E))
|
|
1523
1522
|
for (const [A, L] of Object.entries(s.columns)) {
|
|
1524
|
-
if (!(L.bookmarks || L.remembered) ||
|
|
1523
|
+
if (!(L.bookmarks || L.remembered) || xn(A) || !w.has(A) || E.has(A))
|
|
1525
1524
|
continue;
|
|
1526
|
-
const N =
|
|
1525
|
+
const N = vn(x, A), k = ((l = N == null ? void 0 : N.label) == null ? void 0 : l.trim()) || (N == null ? void 0 : N.name);
|
|
1527
1526
|
o.push({
|
|
1528
1527
|
target: "column",
|
|
1529
1528
|
id: A,
|
|
@@ -1610,7 +1609,7 @@ function Gt(e, n) {
|
|
|
1610
1609
|
semanticExecutionPayload: tt(n)
|
|
1611
1610
|
};
|
|
1612
1611
|
}
|
|
1613
|
-
function
|
|
1612
|
+
function Yo() {
|
|
1614
1613
|
var gt, xt, vt, yt, wt;
|
|
1615
1614
|
Xa(), Za();
|
|
1616
1615
|
const {
|
|
@@ -1626,7 +1625,7 @@ function Jo() {
|
|
|
1626
1625
|
isInspectionSurface: g
|
|
1627
1626
|
} = oa(), { openBrandStudioPreview: l } = sa(), { permissions: u } = Un(), s = ia(), { isLoading: x } = da(), v = C((d) => d.theme), w = C((d) => d.isDownloadingPdf), h = C((d) => d.dashboard), E = C((d) => d.selectedSheetId), A = (gt = h == null ? void 0 : h.sheets) == null ? void 0 : gt.find(
|
|
1628
1627
|
(d) => d.id === E
|
|
1629
|
-
), L =
|
|
1628
|
+
), L = yn(A), N = L ? (xt = A == null ? void 0 : A.document) == null ? void 0 : xt.page : void 0, k = C(
|
|
1630
1629
|
(d) => d.isDashboardEditing
|
|
1631
1630
|
), { setDashboardTitle: re } = C((d) => d.actions), [ae, ye] = S(!1), [K, Q] = S(!1), [W, Y] = S(!1), [we, Ne] = S(!1), [ne, oe] = S(null), [Se, se] = S(!1), [Ue, J] = S(!1), [F, y] = S(null), [U, H] = S([]), [ie, q] = S(!1), [ke, de] = S(!1), R = C((d) => d.isVisualEditing);
|
|
1632
1631
|
Nt((d) => d.card);
|
|
@@ -1652,7 +1651,7 @@ function Jo() {
|
|
|
1652
1651
|
}), mt = B ? {
|
|
1653
1652
|
id: B.id,
|
|
1654
1653
|
title: (h == null ? void 0 : h.title) || B.title || "Dashboard"
|
|
1655
|
-
} : null, { handleAddNewFrame: vr } = pa(), [Fe, Be] = S(!1), [yr, le] = S(!1), [Ge, De] = S("close"), ue = fa(Qe.DASHBOARD), [M, me] = S(null), wr = async (d,
|
|
1654
|
+
} : null, { handleAddNewFrame: vr } = pa(), [Fe, Be] = S(!1), [yr, le] = S(!1), [Ge, De] = S("close"), ue = fa(Qe.DASHBOARD), [M, me] = S(null), wr = async (d, _) => {
|
|
1656
1655
|
if (!f) {
|
|
1657
1656
|
if (!(h != null && h.id)) {
|
|
1658
1657
|
console.log("No dashboard ID found");
|
|
@@ -1661,7 +1660,7 @@ function Jo() {
|
|
|
1661
1660
|
console.log("Updating dashboard title:", {
|
|
1662
1661
|
dashboardId: h.id,
|
|
1663
1662
|
newTitle: d,
|
|
1664
|
-
previousTitle:
|
|
1663
|
+
previousTitle: _
|
|
1665
1664
|
}), ue.mutate(
|
|
1666
1665
|
{
|
|
1667
1666
|
resourceId: h.id,
|
|
@@ -1679,20 +1678,20 @@ function Jo() {
|
|
|
1679
1678
|
onError: (O) => {
|
|
1680
1679
|
console.error("Failed to update dashboard title:", O), D.error("Failed to update dashboard title");
|
|
1681
1680
|
const Z = C.getState().dashboard;
|
|
1682
|
-
(Z == null ? void 0 : Z.id) === h.id && Z.title === d && re(
|
|
1681
|
+
(Z == null ? void 0 : Z.id) === h.id && Z.title === d && re(_);
|
|
1683
1682
|
}
|
|
1684
1683
|
}
|
|
1685
1684
|
);
|
|
1686
1685
|
}
|
|
1687
1686
|
};
|
|
1688
|
-
|
|
1687
|
+
Pe(() => {
|
|
1689
1688
|
if (Ce && Ce.length > 0) {
|
|
1690
1689
|
const d = h == null ? void 0 : h.id;
|
|
1691
1690
|
if (d) {
|
|
1692
|
-
const
|
|
1691
|
+
const _ = Ce.find(
|
|
1693
1692
|
(O) => O.id === d
|
|
1694
1693
|
);
|
|
1695
|
-
|
|
1694
|
+
_ && ut(_);
|
|
1696
1695
|
}
|
|
1697
1696
|
}
|
|
1698
1697
|
}, [Ce, h == null ? void 0 : h.id, ut]);
|
|
@@ -1723,7 +1722,7 @@ function Jo() {
|
|
|
1723
1722
|
}, Ee = () => {
|
|
1724
1723
|
ct(!1), lt(!1), me(null);
|
|
1725
1724
|
};
|
|
1726
|
-
|
|
1725
|
+
Pe(() => {
|
|
1727
1726
|
if (!k) {
|
|
1728
1727
|
M && me(null);
|
|
1729
1728
|
return;
|
|
@@ -1785,19 +1784,19 @@ function Jo() {
|
|
|
1785
1784
|
async function Ke(d) {
|
|
1786
1785
|
if (f)
|
|
1787
1786
|
return;
|
|
1788
|
-
const
|
|
1789
|
-
if (!
|
|
1787
|
+
const _ = C.getState().dashboard;
|
|
1788
|
+
if (!_)
|
|
1790
1789
|
return;
|
|
1791
1790
|
const O = (d == null ? void 0 : d.closeAfterSave) ?? ie, Z = (d == null ? void 0 : d.navigateHomeAfterSave) ?? !1;
|
|
1792
1791
|
q(O), O && le(!1);
|
|
1793
|
-
const Rr = tt(
|
|
1792
|
+
const Rr = tt(_);
|
|
1794
1793
|
J(!0), y(null), H([]), Be(!0);
|
|
1795
1794
|
const Ur = {
|
|
1796
|
-
template:
|
|
1795
|
+
template: _
|
|
1797
1796
|
};
|
|
1798
1797
|
ue.mutate(
|
|
1799
1798
|
{
|
|
1800
|
-
resourceId:
|
|
1799
|
+
resourceId: _.id,
|
|
1801
1800
|
data: Ur
|
|
1802
1801
|
},
|
|
1803
1802
|
{
|
|
@@ -1819,7 +1818,7 @@ function Jo() {
|
|
|
1819
1818
|
H(
|
|
1820
1819
|
ho({
|
|
1821
1820
|
errors: $r,
|
|
1822
|
-
dashboard:
|
|
1821
|
+
dashboard: _ || void 0
|
|
1823
1822
|
})
|
|
1824
1823
|
), D.error("Failed to save dashboard");
|
|
1825
1824
|
}
|
|
@@ -1832,10 +1831,10 @@ function Jo() {
|
|
|
1832
1831
|
dashboardStateTitle: h.title,
|
|
1833
1832
|
dashboardId: h == null ? void 0 : h.id
|
|
1834
1833
|
});
|
|
1835
|
-
const Mr = ce && !!(e != null && e.accessToken) && !!(n != null && n.apiServiceUrl), Or = !f && V.showDashboardHub && Mr,
|
|
1834
|
+
const Mr = ce && !!(e != null && e.accessToken) && !!(n != null && n.apiServiceUrl), Or = !f && V.showDashboardHub && Mr, _r = !f && s && V.showDashboardHub, G = (h == null ? void 0 : h.id) || null, bt = ga(
|
|
1836
1835
|
(wt = n.config) == null ? void 0 : wt.showBriefings,
|
|
1837
1836
|
r
|
|
1838
|
-
), X = !!G && pr === G,
|
|
1837
|
+
), X = !!G && pr === G, Pr = () => {
|
|
1839
1838
|
!G || f || fr({
|
|
1840
1839
|
dashboardId: X ? null : G
|
|
1841
1840
|
});
|
|
@@ -1847,7 +1846,7 @@ function Jo() {
|
|
|
1847
1846
|
role: "dashboard-controls",
|
|
1848
1847
|
children: [
|
|
1849
1848
|
/* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
1850
|
-
|
|
1849
|
+
_r && !R && /* @__PURE__ */ t(
|
|
1851
1850
|
ln,
|
|
1852
1851
|
{
|
|
1853
1852
|
"aria-label": "Dashboard Hub",
|
|
@@ -1877,8 +1876,8 @@ function Jo() {
|
|
|
1877
1876
|
canEditDashboard: m,
|
|
1878
1877
|
dashboardId: h == null ? void 0 : h.id
|
|
1879
1878
|
});
|
|
1880
|
-
const
|
|
1881
|
-
re(d), wr(d,
|
|
1879
|
+
const _ = (h == null ? void 0 : h.title) || "";
|
|
1880
|
+
re(d), wr(d, _);
|
|
1882
1881
|
},
|
|
1883
1882
|
isEditable: ya({
|
|
1884
1883
|
isDashboardEditing: k,
|
|
@@ -1904,7 +1903,7 @@ function Jo() {
|
|
|
1904
1903
|
{
|
|
1905
1904
|
variant: "ghost",
|
|
1906
1905
|
size: "xs",
|
|
1907
|
-
onClick:
|
|
1906
|
+
onClick: Pr,
|
|
1908
1907
|
disabled: br || !(e != null && e.accessToken) || !(n != null && n.apiServiceUrl),
|
|
1909
1908
|
className: be(
|
|
1910
1909
|
"w-7 px-0",
|
|
@@ -1958,7 +1957,7 @@ function Jo() {
|
|
|
1958
1957
|
{
|
|
1959
1958
|
align: "end",
|
|
1960
1959
|
className: "z-[60] w-48 rounded-[6px] border-border/60 p-1 shadow-sm",
|
|
1961
|
-
children: /* @__PURE__ */ i(
|
|
1960
|
+
children: /* @__PURE__ */ i(P, { onClick: () => de(!0), children: [
|
|
1962
1961
|
/* @__PURE__ */ t(ee, { className: "h-3.5 w-3.5" }),
|
|
1963
1962
|
"From library..."
|
|
1964
1963
|
] })
|
|
@@ -2020,7 +2019,7 @@ function Jo() {
|
|
|
2020
2019
|
disabled: Ie || !pt,
|
|
2021
2020
|
onClick: () => Ke(),
|
|
2022
2021
|
children: [
|
|
2023
|
-
Ie ? /* @__PURE__ */ t(
|
|
2022
|
+
Ie ? /* @__PURE__ */ t(_e, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ t(kn, { className: "h-3.5 w-3.5" }),
|
|
2024
2023
|
Ie ? "Saving..." : "Save"
|
|
2025
2024
|
]
|
|
2026
2025
|
}
|
|
@@ -2050,7 +2049,7 @@ function Jo() {
|
|
|
2050
2049
|
children: [
|
|
2051
2050
|
/* @__PURE__ */ t(Me, { children: "Reports & briefings" }),
|
|
2052
2051
|
/* @__PURE__ */ i(
|
|
2053
|
-
|
|
2052
|
+
P,
|
|
2054
2053
|
{
|
|
2055
2054
|
disabled: w,
|
|
2056
2055
|
onSelect: () => se(!0),
|
|
@@ -2070,7 +2069,7 @@ function Jo() {
|
|
|
2070
2069
|
}
|
|
2071
2070
|
),
|
|
2072
2071
|
k && /* @__PURE__ */ i(
|
|
2073
|
-
|
|
2072
|
+
P,
|
|
2074
2073
|
{
|
|
2075
2074
|
onSelect: () => Ne(!0),
|
|
2076
2075
|
children: [
|
|
@@ -2082,12 +2081,12 @@ function Jo() {
|
|
|
2082
2081
|
/* @__PURE__ */ t(We, {}),
|
|
2083
2082
|
(V.showDashboardSharing || V.showGroupManagement) && /* @__PURE__ */ i($, { children: [
|
|
2084
2083
|
/* @__PURE__ */ t(Me, { children: "Access" }),
|
|
2085
|
-
V.showDashboardSharing && /* @__PURE__ */ i(
|
|
2084
|
+
V.showDashboardSharing && /* @__PURE__ */ i(P, { onSelect: () => ye(!0), children: [
|
|
2086
2085
|
/* @__PURE__ */ t(Ia, { className: "h-3.5 w-3.5" }),
|
|
2087
2086
|
"Share"
|
|
2088
2087
|
] }),
|
|
2089
2088
|
V.showGroupManagement && /* @__PURE__ */ i(
|
|
2090
|
-
|
|
2089
|
+
P,
|
|
2091
2090
|
{
|
|
2092
2091
|
onClick: () => Q(!0),
|
|
2093
2092
|
children: [
|
|
@@ -2099,7 +2098,7 @@ function Jo() {
|
|
|
2099
2098
|
/* @__PURE__ */ t(We, {})
|
|
2100
2099
|
] }),
|
|
2101
2100
|
/* @__PURE__ */ t(Me, { children: "Preferences" }),
|
|
2102
|
-
/* @__PURE__ */ i(
|
|
2101
|
+
/* @__PURE__ */ i(P, { onClick: () => Y(!0), children: [
|
|
2103
2102
|
/* @__PURE__ */ t(zt, { className: "h-3.5 w-3.5" }),
|
|
2104
2103
|
"Report preferences"
|
|
2105
2104
|
] }),
|
|
@@ -2107,7 +2106,7 @@ function Jo() {
|
|
|
2107
2106
|
/* @__PURE__ */ t(We, {}),
|
|
2108
2107
|
/* @__PURE__ */ t(Me, { children: "Developer" }),
|
|
2109
2108
|
/* @__PURE__ */ i(
|
|
2110
|
-
|
|
2109
|
+
P,
|
|
2111
2110
|
{
|
|
2112
2111
|
onSelect: () => {
|
|
2113
2112
|
var d;
|
|
@@ -2122,7 +2121,7 @@ function Jo() {
|
|
|
2122
2121
|
}
|
|
2123
2122
|
),
|
|
2124
2123
|
L && /* @__PURE__ */ i(
|
|
2125
|
-
|
|
2124
|
+
P,
|
|
2126
2125
|
{
|
|
2127
2126
|
disabled: !Ve,
|
|
2128
2127
|
onSelect: () => {
|
|
@@ -2150,7 +2149,7 @@ function Jo() {
|
|
|
2150
2149
|
}
|
|
2151
2150
|
),
|
|
2152
2151
|
/* @__PURE__ */ i(
|
|
2153
|
-
|
|
2152
|
+
P,
|
|
2154
2153
|
{
|
|
2155
2154
|
onSelect: () => sn(n.apiServiceUrl),
|
|
2156
2155
|
children: [
|
|
@@ -2159,12 +2158,12 @@ function Jo() {
|
|
|
2159
2158
|
]
|
|
2160
2159
|
}
|
|
2161
2160
|
),
|
|
2162
|
-
/* @__PURE__ */ i(
|
|
2161
|
+
/* @__PURE__ */ i(P, { onSelect: l, children: [
|
|
2163
2162
|
/* @__PURE__ */ t(Cn, { className: "h-3.5 w-3.5" }),
|
|
2164
2163
|
"Brand Studio"
|
|
2165
2164
|
] }),
|
|
2166
2165
|
k && /* @__PURE__ */ i(
|
|
2167
|
-
|
|
2166
|
+
P,
|
|
2168
2167
|
{
|
|
2169
2168
|
onSelect: () => lt(!dt),
|
|
2170
2169
|
children: [
|
|
@@ -2235,8 +2234,8 @@ function Jo() {
|
|
|
2235
2234
|
!d && Fe && !F || (J(d), d || (y(null), H([]), q(!1)));
|
|
2236
2235
|
},
|
|
2237
2236
|
children: /* @__PURE__ */ i(Oa, { className: "max-w-sm", children: [
|
|
2238
|
-
/* @__PURE__ */ i(
|
|
2239
|
-
/* @__PURE__ */ t(
|
|
2237
|
+
/* @__PURE__ */ i(_a, { children: [
|
|
2238
|
+
/* @__PURE__ */ t(Pa, { children: F ? "Save failed" : "Saving dashboard" }),
|
|
2240
2239
|
/* @__PURE__ */ t(Ra, { className: "pt-2", children: F ? "We could not save the dashboard. Please try again." : "Please wait while we save your changes." }),
|
|
2241
2240
|
U.length > 0 && /* @__PURE__ */ i("div", { className: "space-y-1 rounded-md border border-destructive/20 bg-destructive/5 p-3 text-left", children: [
|
|
2242
2241
|
/* @__PURE__ */ t("div", { className: "text-sm font-medium text-destructive", children: "What needs attention" }),
|
|
@@ -2266,7 +2265,7 @@ function Jo() {
|
|
|
2266
2265
|
}
|
|
2267
2266
|
)
|
|
2268
2267
|
] }) : /* @__PURE__ */ i(Et, { disabled: !0, className: "m-0 cursor-default", children: [
|
|
2269
|
-
/* @__PURE__ */ t(
|
|
2268
|
+
/* @__PURE__ */ t(_e, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
2270
2269
|
"Saving..."
|
|
2271
2270
|
] }) })
|
|
2272
2271
|
] })
|
|
@@ -2307,5 +2306,5 @@ function wo({
|
|
|
2307
2306
|
return p.searchParams.set("pdfMode", "document"), p.searchParams.set("pageSize", r || "letter"), p.searchParams.set("orientation", o || "portrait"), p.searchParams.set("url", m.toString()), p.toString();
|
|
2308
2307
|
}
|
|
2309
2308
|
export {
|
|
2310
|
-
|
|
2309
|
+
Yo as default
|
|
2311
2310
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as r } from "./validators-
|
|
2
|
-
import "./matrix-operation-contract-
|
|
1
|
+
import { l as r } from "./validators-DMHTpf7a.js";
|
|
2
|
+
import "./matrix-operation-contract-8OIO4gob.js";
|
|
3
3
|
import "./analytics-base-schemas-BFAoRlkU.js";
|
|
4
4
|
import "zod";
|
|
5
5
|
const s = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as u, useState as f, useRef as p, useEffect as b } from "react";
|
|
3
|
-
import { u as a } from "./semaphor-ready-indicator
|
|
4
|
-
import { B as S, C as N } from "./switch-
|
|
3
|
+
import { u as a } from "./semaphor-ready-indicator-BWSpRsPj.js";
|
|
4
|
+
import { B as S, C as N } from "./switch-C3jLxlG0.js";
|
|
5
5
|
import "./index-CuHybtft.js";
|
|
6
|
-
import "./validators-
|
|
7
|
-
import "./matrix-operation-contract-
|
|
6
|
+
import "./validators-DMHTpf7a.js";
|
|
7
|
+
import "./matrix-operation-contract-8OIO4gob.js";
|
|
8
8
|
import "./analytics-base-schemas-BFAoRlkU.js";
|
|
9
9
|
import "zod";
|
|
10
10
|
import "../value-format-preferences/index.js";
|
|
@@ -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-BWSpRsPj.js";
|
|
3
3
|
function p(e) {
|
|
4
4
|
if (typeof window > "u")
|
|
5
5
|
return null;
|