react-semaphor 0.1.561 → 0.1.563
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 +452 -429
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +9 -9
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/{analytics-base-schemas-CB3oFAXk.js → analytics-base-schemas-BaIQrEzX.js} +139 -134
- package/dist/chunks/{assistant-chat-DiVHY3Hw.js → assistant-chat-iIp02_77.js} +104 -104
- package/dist/chunks/{bookmark-impact-CR09dpkn.js → bookmark-impact-D4Kl4amw.js} +2 -2
- package/dist/chunks/{bookmark-state-BusLpkb7.js → bookmark-state-CWeoGbrx.js} +25 -25
- package/dist/chunks/{braces-u8VorWJc.js → braces-DzgoQC64.js} +1 -1
- package/dist/chunks/{comparison-window-caption-DDsIWJYT.js → comparison-window-caption-D1EUXzaR.js} +562 -437
- package/dist/chunks/{context-TUjw9eqr.js → context-R31TSL5V.js} +1 -1
- package/dist/chunks/{dashboard-BRdZBPqr.js → dashboard-CmqeP3QZ.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CgvTLndW.js → dashboard-briefing-launcher-TYlSW77S.js} +155 -154
- package/dist/chunks/{dashboard-controls-B4vfSzTF.js → dashboard-controls-B253nJS-.js} +970 -968
- package/dist/chunks/{dashboard-json-Y3MF59g7.js → dashboard-json-osQuinUZ.js} +5 -5
- package/dist/chunks/dates-DFY7Gfss.js +91 -0
- package/dist/chunks/{edit-dashboard-visual-DwjZcxj-.js → edit-dashboard-visual-CMar-NhA.js} +4636 -4681
- package/dist/chunks/{filter-reach-copy-bijwf_-b.js → filter-reach-copy-CvV7W5dd.js} +1470 -1101
- package/dist/chunks/{filter-value-text-DFnhwuEW.js → filter-value-text-CPwFkrMz.js} +11 -10
- package/dist/chunks/{global-date-filter-utils-BXgCpvQM.js → global-date-filter-utils-N1kcsOFE.js} +8997 -7417
- package/dist/chunks/{index-ClwbY3BL.js → index-CNGkfUp4.js} +91 -85
- package/dist/chunks/{layout-grid-CtvCBfOm.js → layout-grid-BM65viQh.js} +1 -1
- package/dist/chunks/{list-filter-BklYgciR.js → list-filter-BoeLBfL3.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-pU51-JmY.js → matrix-analytical-definition-hEucouWM.js} +4 -4
- package/dist/chunks/{matrix-card-CUorIB7Q.js → matrix-card-CCh9JjP1.js} +3 -3
- package/dist/chunks/{matrix-member-presentation-Df5UgCGN.js → matrix-member-presentation-DsAUbuoL.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-BSiGEXVC.js → matrix-operation-contract-DsLdFdSa.js} +339 -330
- package/dist/chunks/{metric-comparison-95aC0uEO.js → metric-comparison-Bnso1cm1.js} +2 -2
- package/dist/chunks/{model-change-B5wQhg5G.js → model-change-T1cRkh3m.js} +1 -1
- package/dist/chunks/{palette-DTnMhipt.js → palette-p1XSJFgB.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-Bo-86vwS.js → pivot-result-contract-expectations-B53jqszr.js} +5 -5
- package/dist/chunks/{pivot-result-identity-olvXJoB9.js → pivot-result-identity-Dq5jm-EC.js} +1 -1
- package/dist/chunks/{zoned-wall-clock-CGLVI40Q.js → raw-temporal-value-Bqz8wc7L.js} +97 -46
- package/dist/chunks/{report-preferences-dialog-C2YUIwKG.js → report-preferences-dialog-l54wJyYE.js} +68 -63
- package/dist/chunks/{report-runtime-context-DoIUr3MP.js → report-runtime-context-BITkNSDa.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-q_iiNXE1.js → resolve-dashboard-input-context-DaDrZGuA.js} +3455 -1744
- package/dist/chunks/{save-DH4RyrnG.js → save-CHV1B1fL.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-8jqfI7hI.js → saved-dashboard-context-DFYBrE6O.js} +94 -95
- package/dist/chunks/{selection-filter-compiler-BKXmyLrS.js → selection-filter-compiler-CUDRnUxc.js} +19 -18
- package/dist/chunks/{selection-reducer-CV7K4FI6.js → selection-reducer-Bz5aywT4.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-E2XWyibu.js → semaphor-ready-indicator-C3EQEiD9.js} +36434 -37732
- package/dist/chunks/{shelf-drop-preview-context-C29EUzDp.js → shelf-drop-preview-context-BODiBlqT.js} +81 -82
- package/dist/chunks/{source-entity-resolution-BXI3nQ5Z.js → source-entity-resolution-DdDVXFB8.js} +6 -6
- package/dist/chunks/{switch-balDSHc7.js → switch-BW4yXSYs.js} +3 -3
- package/dist/chunks/{table-export-sheet-CK8tvh4d.js → table-export-sheet-bSXxGn-v.js} +1 -1
- package/dist/chunks/{temporal-input-presentation-B77JsAzU.js → temporal-input-presentation-sk9gqLi6.js} +699 -741
- package/dist/chunks/{token-types-DhYH5YKb.js → token-types-BUK06hU2.js} +1 -1
- package/dist/chunks/{upload-Ufj8vjyn.js → upload-BnmuyPqW.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-9WsnzEO5.js → use-create-flow-overlay-state-BXY8-Cyz.js} +6 -6
- package/dist/chunks/{validators-BtaCFIEB.js → validators-BIM0FE31.js} +764 -885
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +2278 -3030
- package/dist/data-app-sdk/index.js +43 -43
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +22 -22
- package/dist/format-utils/index.js +215 -209
- package/dist/index.js +225 -224
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
- package/dist/types/components/dashboard/dashboard-create-dialog.d.ts +23 -0
- package/dist/types/components/index.d.ts +1 -2
- package/dist/types/components/surfboard/filter/types.d.ts +3 -1
- package/dist/types/index.js +5 -5
- package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +59 -2
- package/dist/types/lib/interactions/get-click-context-from-matrix.d.ts +5 -0
- package/dist/types/lib/interactions/get-click-context-from-table.d.ts +45 -0
- package/dist/types/lib/print/print-inputs.d.ts +2 -1
- package/dist/types/lib/query-context/assemble-card-query.d.ts +2 -0
- package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +5 -0
- package/dist/types/lib/selection/selection-from-click-context.d.ts +41 -0
- package/dist/types/lib/types/common-types.d.ts +6 -0
- package/dist/types/lib/types/explorer-types.d.ts +7 -1
- package/dist/types/lib/types/interaction-types.d.ts +3 -1
- package/dist/types/lib/types/token-types.d.ts +0 -1
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +3 -1
- package/dist/types/shared/analytics-protocol/contracts.d.ts +9 -40
- package/dist/types/shared/analytics-protocol/selection-contract.d.ts +12 -2
- package/dist/types/shared/analytics-protocol/validators.d.ts +1 -2
- package/dist/types/shared/assistant-protocol/context.d.ts +8 -8
- package/dist/types/shared/dashboard-authoring/card-formats/sql-date-pattern.d.ts +7 -1
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +24 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/column-polarity-write.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +4 -2
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +15 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +12 -1
- package/dist/types/shared/dashboard-authoring/card-settings/views.d.ts +5 -3
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +3230 -4658
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +24 -2
- package/dist/types/shared/dashboard-authoring/changes/field-ref.d.ts +91 -0
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +27 -1
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-create.d.ts +26 -0
- package/dist/types/shared/dashboard-authoring/click-to-filter-settings.d.ts +2 -1
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/detail-date-presentation.d.ts +9 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +8 -6
- package/dist/types/shared/dashboard-authoring/measure-calculations/apply.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +16 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/dates.d.ts +41 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +17 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/options.d.ts +63 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/read.d.ts +16 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/resolve.d.ts +79 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +934 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/sentences.d.ts +4 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/set.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/transform.d.ts +63 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/window-transforms.d.ts +60 -0
- package/dist/types/shared/dashboard-authoring/new-card.d.ts +12 -1
- package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +2 -1
- package/dist/types/shared/dashboard-authoring/operations/operation-sentences.d.ts +46 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +52 -2
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +13 -1
- package/dist/types/shared/dashboard-authoring/text-card-words/blocks.d.ts +58 -0
- package/dist/types/shared/dashboard-authoring/text-card-words/index.d.ts +55 -0
- package/dist/types/shared/dashboard-authoring/text-card-words/rich-content.d.ts +18 -0
- package/dist/types/shared/format-utils/document-print.d.ts +82 -0
- package/dist/types/shared/format-utils/index.d.ts +1 -0
- package/dist/types/shared/format-utils/raw-temporal.d.ts +2 -7
- package/dist/types/shared/temporal/index.d.ts +1 -0
- package/dist/types/shared/temporal/raw-temporal-equality.d.ts +19 -0
- package/dist/types/shared/temporal/raw-temporal-value.d.ts +29 -0
- package/dist/types/shared/temporal/zoned-wall-clock.d.ts +6 -0
- package/package.json +1 -1
- package/dist/chunks/custom-visual-inputs-DfolidZ9.js +0 -292
- package/dist/chunks/document-dashboard-inputs-CvBbFTUA.js +0 -1718
- package/dist/types/components/dashboard/ai-dashboard-create-dialog.d.ts +0 -38
- package/dist/types/components/dashboard/dashboard-create-template.d.ts +0 -10
- package/dist/types/lib/hooks/use-dashboard-authoring.d.ts +0 -49
- package/dist/types/shared/dashboard-authoring/artifact-compiler.d.ts +0 -6
- package/dist/types/shared/dashboard-authoring/contracts.d.ts +0 -106
- package/dist/types/shared/dashboard-authoring/protocol-adapter.d.ts +0 -7
- package/dist/types/shared/dashboard-authoring/source-matching.d.ts +0 -34
- package/dist/types/shared/dashboard-authoring/validators.d.ts +0 -2
package/dist/chunks/{report-preferences-dialog-C2YUIwKG.js → report-preferences-dialog-l54wJyYE.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as o, Fragment as te, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import * as p from "react";
|
|
3
3
|
import $t, { useMemo as ee, useState as L, useEffect as J, createContext as jt, useRef as $, useCallback as K, useContext as qe, lazy as Ee, Suspense as Se, useLayoutEffect as Ce, Activity as Vt, useId as de } from "react";
|
|
4
|
-
import { b as Wt, b8 as He, bk as Kt, bl as qt, u as
|
|
4
|
+
import { b as Wt, b8 as He, bk as Kt, bl as qt, u as U, bm as gt, x as Ht, bn as Gt, bo as Jt, bp as Xt, bq as Yt, br as ge, bs as yt, bt as tt, bu as Zt, Z as ye, Y as Qt, bv as ea, bw as ta, _ as at, $ as aa, bx as ra, E as na, F as sa, S as la, B as oa, a as ia, U as da, by as ca, D as ua, A as fa, C as ma, bz as ha, bA as pa, bB as va, bC as ba, bD as ga, bE as ya, bF as rt, bG as ke, bH as wa, bI as Ge, bJ as G, bK as Sa, bL as xa, bM as Ca, bN as Ia, bO as Ea } from "./semaphor-ready-indicator-C3EQEiD9.js";
|
|
5
5
|
import { j as Na } from "./index-CuHybtft.js";
|
|
6
|
-
import { N as Ta } from "./bookmark-state-
|
|
6
|
+
import { N as Ta } from "./bookmark-state-CWeoGbrx.js";
|
|
7
7
|
import { r as ka, a as wt } from "./availability-Bp5Gfu1I.js";
|
|
8
|
-
import { s as Aa } from "./global-date-filter-utils-
|
|
9
|
-
import { B as q, Q as Ra, U as Da, V as _a, W as Pa, Y as Oa, Z as La, _ as oe, D as Q, $ as he, m as pe, P as za, a as Fa, b as
|
|
10
|
-
import "./validators-
|
|
11
|
-
import "./matrix-operation-contract-
|
|
12
|
-
import "./analytics-base-schemas-
|
|
8
|
+
import { s as Aa } from "./global-date-filter-utils-N1kcsOFE.js";
|
|
9
|
+
import { B as q, Q as Ra, U as Da, V as _a, W as Pa, Y as Oa, Z as La, _ as oe, D as Q, $ as he, m as pe, P as za, a as Fa, b as Ua, d as nt, L as St, s as ze, t as Fe, u as Ue, v as Me, w as Y, T as Ma, e as Ba, f as st, h as lt } from "./switch-BW4yXSYs.js";
|
|
10
|
+
import "./validators-BIM0FE31.js";
|
|
11
|
+
import "./matrix-operation-contract-DsLdFdSa.js";
|
|
12
|
+
import "./analytics-base-schemas-BaIQrEzX.js";
|
|
13
13
|
import "zod";
|
|
14
14
|
import { parseValueFormatPreferencesResponse as $a, canonicalizeSupportedLocale as xt, getSupportedCurrencyCodes as ja, canonicalizeSupportedCurrencyCode as Va } from "../value-format-preferences/index.js";
|
|
15
15
|
import { c as B } from "./_commonjsHelpers-DimLPMtv.js";
|
|
16
|
-
import {
|
|
17
|
-
import { a as Ka } from "./report-runtime-context-
|
|
18
|
-
import { ag as we,
|
|
16
|
+
import { d as Wa } from "./filter-reach-copy-CvV7W5dd.js";
|
|
17
|
+
import { a as Ka } from "./report-runtime-context-BITkNSDa.js";
|
|
18
|
+
import { ag as we, an as ce } from "./temporal-input-presentation-sk9gqLi6.js";
|
|
19
19
|
function qa() {
|
|
20
20
|
return /* @__PURE__ */ o(
|
|
21
21
|
"div",
|
|
@@ -85,8 +85,8 @@ function Qa(e) {
|
|
|
85
85
|
const a = (n, r) => {
|
|
86
86
|
const l = e.store.getState().focus;
|
|
87
87
|
l && !er(l, n, r) && e.clearFocus();
|
|
88
|
-
}, t =
|
|
89
|
-
return a(t.selectedSheetId, t.dashboard),
|
|
88
|
+
}, t = U.getState();
|
|
89
|
+
return a(t.selectedSheetId, t.dashboard), U.subscribe((n, r) => {
|
|
90
90
|
(n.selectedSheetId !== r.selectedSheetId || n.dashboard !== r.dashboard) && a(n.selectedSheetId, n.dashboard), n.isVisualEditing && !r.isVisualEditing && e.leaveBeside();
|
|
91
91
|
});
|
|
92
92
|
}, [e]);
|
|
@@ -163,7 +163,7 @@ function Rn(e, a, t) {
|
|
|
163
163
|
anchorSlot: n.anchorSlot
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
|
-
const or = Ee(() => import("./assistant-chat-
|
|
166
|
+
const or = Ee(() => import("./assistant-chat-iIp02_77.js"));
|
|
167
167
|
function Dn() {
|
|
168
168
|
const e = Ht(), a = lr();
|
|
169
169
|
if (!e.available) return null;
|
|
@@ -208,7 +208,7 @@ function ur({ surface: e = "dashboard" } = {}) {
|
|
|
208
208
|
askCount: S.askCount
|
|
209
209
|
};
|
|
210
210
|
})
|
|
211
|
-
), y = e === "none", c =
|
|
211
|
+
), y = e === "none", c = U(
|
|
212
212
|
(S) => s && t && m && !y ? fr(S.dashboard, S.selectedSheetId, m) : void 0
|
|
213
213
|
), v = mr(c, u);
|
|
214
214
|
if (!(a != null && a.available) || !n && !y) return null;
|
|
@@ -415,7 +415,7 @@ function br(e) {
|
|
|
415
415
|
const a = Zt();
|
|
416
416
|
return K(
|
|
417
417
|
async (t, n) => {
|
|
418
|
-
const r =
|
|
418
|
+
const r = U.getState();
|
|
419
419
|
if (r.isVisualEditing)
|
|
420
420
|
return { ok: !1, reason: "not_editable", message: ye.not_editable };
|
|
421
421
|
if (!e()) return { ok: !1, reason: "not_editable", message: ye.no_save };
|
|
@@ -424,28 +424,33 @@ function br(e) {
|
|
|
424
424
|
const l = Wa(t.basedOn, t.operations, t.context);
|
|
425
425
|
if (!l.ok) return { ok: !1, reason: "refused", message: l.failedAt.message };
|
|
426
426
|
const s = { domainsById: {} };
|
|
427
|
-
for (const i of gr(
|
|
427
|
+
for (const i of gr(l)) {
|
|
428
428
|
const m = await a(i, { reuseLoaded: !0 }).catch((u) => {
|
|
429
429
|
console.warn("Applying the change without refreshed semantic metadata:", u);
|
|
430
430
|
});
|
|
431
431
|
Qt(s, m);
|
|
432
432
|
}
|
|
433
|
-
return n != null && n.stillWanted && !n.stillWanted() ? { ok: !1, reason: "dropped" } : e() ?
|
|
433
|
+
return n != null && n.stillWanted && !n.stillWanted() ? { ok: !1, reason: "dropped" } : e() ? U.getState().actions.applyProposal({ ...t, semanticExecutionPayload: s }) : { ok: !1, reason: "not_editable", message: ye.no_save };
|
|
434
434
|
},
|
|
435
435
|
[e, a]
|
|
436
436
|
);
|
|
437
437
|
}
|
|
438
|
-
function gr(e
|
|
439
|
-
const
|
|
440
|
-
|
|
438
|
+
function gr(e) {
|
|
439
|
+
const a = /* @__PURE__ */ new Set([
|
|
440
|
+
...e.created.filter((t) => t.kind === "card").map((t) => t.id),
|
|
441
|
+
...e.touched
|
|
442
|
+
]);
|
|
443
|
+
return (e.dashboard.sheets ?? []).flatMap(
|
|
444
|
+
(t) => (t.frames ?? []).filter((n) => (n.cards ?? []).some((r) => a.has(r.id)))
|
|
445
|
+
);
|
|
441
446
|
}
|
|
442
447
|
function yr(e) {
|
|
443
|
-
const { canEditDashboard: a, isInspectionMode: t } = ea(), n = ta(), r =
|
|
448
|
+
const { canEditDashboard: a, isInspectionMode: t } = ea(), n = ta(), r = U(at), l = e && n && a === !0 && !t, s = $(l);
|
|
444
449
|
Ce(() => {
|
|
445
450
|
s.current = l;
|
|
446
451
|
});
|
|
447
452
|
const i = K(
|
|
448
|
-
() => s.current && at(
|
|
453
|
+
() => s.current && at(U.getState()),
|
|
449
454
|
[]
|
|
450
455
|
);
|
|
451
456
|
return { canChange: l && r, canChangeNow: i };
|
|
@@ -465,7 +470,7 @@ function wr({
|
|
|
465
470
|
port: e,
|
|
466
471
|
onLifecycleEvent: a
|
|
467
472
|
}) {
|
|
468
|
-
const { canChange: t, canChangeNow: n } = yr(!0), r =
|
|
473
|
+
const { canChange: t, canChangeNow: n } = yr(!0), r = U((f) => {
|
|
469
474
|
var w;
|
|
470
475
|
return (w = f.dashboard) == null ? void 0 : w.id;
|
|
471
476
|
}), l = br(n), [s, i] = L(null), m = $(/* @__PURE__ */ new Map()), u = $(/* @__PURE__ */ new Map()), y = $(Promise.resolve()), c = $({ apply: l, onLifecycleEvent: a });
|
|
@@ -474,7 +479,7 @@ function wr({
|
|
|
474
479
|
}), J(() => {
|
|
475
480
|
e.setScreenState({ eligible: t, ...r ? { dashboardId: r } : {} });
|
|
476
481
|
}, [e, t, r]), J(
|
|
477
|
-
() =>
|
|
482
|
+
() => U.subscribe((f, w) => {
|
|
478
483
|
if (f.editSessionEpoch !== w.editSessionEpoch) {
|
|
479
484
|
m.current.clear(), i(null);
|
|
480
485
|
return;
|
|
@@ -486,7 +491,7 @@ function wr({
|
|
|
486
491
|
[]
|
|
487
492
|
), J(() => {
|
|
488
493
|
const f = (b) => {
|
|
489
|
-
const S =
|
|
494
|
+
const S = U.getState().dashboard;
|
|
490
495
|
if (!S || S.id !== b.dashboardId) return;
|
|
491
496
|
const C = Cr();
|
|
492
497
|
m.current.set(C, S), e.answerCopyRequest({
|
|
@@ -521,7 +526,7 @@ function wr({
|
|
|
521
526
|
P = xr(H, I);
|
|
522
527
|
}
|
|
523
528
|
if (u.current.set(b.deliveryId, P), e.reportOutcome({ screenId: e.screenId, deliveryId: b.deliveryId, outcome: P }), P.status !== "applied") return;
|
|
524
|
-
const N = ((g =
|
|
529
|
+
const N = ((g = U.getState().dashboard) == null ? void 0 : g.id) ?? "";
|
|
525
530
|
i({ deliveryId: b.deliveryId, proposalId: b.proposalId, summary: b.summary, dashboardId: N, words: null }), (R = (E = c.current).onLifecycleEvent) == null || R.call(E, {
|
|
526
531
|
type: "dashboard:change-applied",
|
|
527
532
|
dashboardId: N,
|
|
@@ -542,7 +547,7 @@ function wr({
|
|
|
542
547
|
const v = K(() => {
|
|
543
548
|
var w, b;
|
|
544
549
|
if (!s) return;
|
|
545
|
-
const f =
|
|
550
|
+
const f = U.getState().actions.undoProposal(s.proposalId);
|
|
546
551
|
f.ok ? ((b = (w = c.current).onLifecycleEvent) == null || b.call(w, {
|
|
547
552
|
type: "dashboard:change-undone",
|
|
548
553
|
dashboardId: s.dashboardId,
|
|
@@ -552,7 +557,7 @@ function wr({
|
|
|
552
557
|
return s ? /* @__PURE__ */ o(Sr, { note: s, onUndo: v }) : null;
|
|
553
558
|
}
|
|
554
559
|
function Sr({ note: e, onUndo: a }) {
|
|
555
|
-
const t =
|
|
560
|
+
const t = U((s) => aa(s, e.proposalId)), n = U((s) => s.isVisualEditing);
|
|
556
561
|
if (t === "none" && e.words === null) return null;
|
|
557
562
|
const r = e.words === "changed_since" || t === "changed_since", l = r ? "changed_since" : e.words === "not_editable" ? "not_editable" : t;
|
|
558
563
|
return /* @__PURE__ */ h(
|
|
@@ -609,16 +614,16 @@ function xe(e) {
|
|
|
609
614
|
function Cr() {
|
|
610
615
|
return globalThis.crypto.randomUUID();
|
|
611
616
|
}
|
|
612
|
-
const Ir = Ee(() => import("./dashboard-controls-
|
|
613
|
-
() => import("./edit-dashboard-visual-
|
|
614
|
-
), Nr = Ee(() => import("./dashboard-json-
|
|
617
|
+
const Ir = Ee(() => import("./dashboard-controls-B253nJS-.js")), Er = Ee(
|
|
618
|
+
() => import("./edit-dashboard-visual-CMar-NhA.js")
|
|
619
|
+
), Nr = Ee(() => import("./dashboard-json-osQuinUZ.js"));
|
|
615
620
|
function _n({
|
|
616
621
|
showControls: e = !1,
|
|
617
622
|
showFooter: a = !0,
|
|
618
623
|
liveScreen: t,
|
|
619
624
|
...n
|
|
620
625
|
}) {
|
|
621
|
-
const r =
|
|
626
|
+
const r = U((m) => m.isVisualEditing), l = U(
|
|
622
627
|
(m) => m.showDashboardJSON
|
|
623
628
|
), { appearance: s, preferences: i } = n;
|
|
624
629
|
return /* @__PURE__ */ o(na, { FallbackComponent: sa, children: /* @__PURE__ */ o(la, { dashboardProps: n, children: /* @__PURE__ */ h(oa, { children: [
|
|
@@ -689,15 +694,15 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', zr = '[cmdk-group-head
|
|
|
689
694
|
if (t.current[d] = T, d === "search") V(), I(), N(1, H);
|
|
690
695
|
else if (d === "value") {
|
|
691
696
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
692
|
-
let
|
|
693
|
-
|
|
697
|
+
let M = document.getElementById(F);
|
|
698
|
+
M ? M.focus() : (x = document.getElementById(_)) == null || x.focus();
|
|
694
699
|
}
|
|
695
700
|
if (N(7, () => {
|
|
696
|
-
var
|
|
697
|
-
t.current.selectedItemId = (
|
|
701
|
+
var M;
|
|
702
|
+
t.current.selectedItemId = (M = X()) == null ? void 0 : M.id, g.emit();
|
|
698
703
|
}), A || N(5, re), ((D = i.current) == null ? void 0 : D.value) !== void 0) {
|
|
699
|
-
let
|
|
700
|
-
(W = (O = i.current).onValueChange) == null || W.call(O,
|
|
704
|
+
let M = T ?? "";
|
|
705
|
+
(W = (O = i.current).onValueChange) == null || W.call(O, M);
|
|
701
706
|
return;
|
|
702
707
|
}
|
|
703
708
|
}
|
|
@@ -732,15 +737,15 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', zr = '[cmdk-group-head
|
|
|
732
737
|
t.current.filtered.groups.forEach((x) => {
|
|
733
738
|
let D = r.current.get(x), O = 0;
|
|
734
739
|
D.forEach((W) => {
|
|
735
|
-
let
|
|
736
|
-
O = Math.max(
|
|
740
|
+
let M = d.get(W);
|
|
741
|
+
O = Math.max(M, O);
|
|
737
742
|
}), T.push([x, O]);
|
|
738
743
|
});
|
|
739
744
|
let A = P.current;
|
|
740
745
|
k().sort((x, D) => {
|
|
741
746
|
var O, W;
|
|
742
|
-
let
|
|
743
|
-
return ((O = d.get(be)) != null ? O : 0) - ((W = d.get(
|
|
747
|
+
let M = x.getAttribute("id"), be = D.getAttribute("id");
|
|
748
|
+
return ((O = d.get(be)) != null ? O : 0) - ((W = d.get(M)) != null ? W : 0);
|
|
744
749
|
}).forEach((x) => {
|
|
745
750
|
let D = x.closest(De);
|
|
746
751
|
D ? D.appendChild(x.parentElement === D ? x : x.closest(`${De} > *`)) : A.appendChild(x.parentElement === A ? x : x.closest(`${De} > *`));
|
|
@@ -763,10 +768,10 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', zr = '[cmdk-group-head
|
|
|
763
768
|
t.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
764
769
|
let D = 0;
|
|
765
770
|
for (let O of n.current) {
|
|
766
|
-
let W = (T = (d = l.current.get(O)) == null ? void 0 : d.value) != null ? T : "",
|
|
771
|
+
let W = (T = (d = l.current.get(O)) == null ? void 0 : d.value) != null ? T : "", M = (x = (A = l.current.get(O)) == null ? void 0 : A.keywords) != null ? x : [], be = R(W, M);
|
|
767
772
|
t.current.filtered.items.set(O, be), be > 0 && D++;
|
|
768
773
|
}
|
|
769
|
-
for (let [O, W] of r.current) for (let
|
|
774
|
+
for (let [O, W] of r.current) for (let M of W) if (t.current.filtered.items.get(M) > 0) {
|
|
770
775
|
t.current.filtered.groups.add(O);
|
|
771
776
|
break;
|
|
772
777
|
}
|
|
@@ -845,7 +850,7 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', zr = '[cmdk-group-head
|
|
|
845
850
|
}
|
|
846
851
|
}
|
|
847
852
|
} }, p.createElement("label", { "cmdk-label": "", htmlFor: E.inputId, id: E.labelId, style: Xr }, m), Ne(e, (d) => p.createElement(kt.Provider, { value: g }, p.createElement(Tt.Provider, { value: E }, d))));
|
|
848
|
-
}),
|
|
853
|
+
}), Ur = p.forwardRef((e, a) => {
|
|
849
854
|
var t, n;
|
|
850
855
|
let r = oe(), l = p.useRef(null), s = p.useContext(At), i = ve(), m = Dt(e), u = (n = (t = m.current) == null ? void 0 : t.forceMount) != null ? n : s == null ? void 0 : s.forceMount;
|
|
851
856
|
ae(() => {
|
|
@@ -866,7 +871,7 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', zr = '[cmdk-group-head
|
|
|
866
871
|
if (!f) return null;
|
|
867
872
|
let { disabled: S, value: C, onSelect: _, forceMount: z, keywords: F, ...P } = e;
|
|
868
873
|
return p.createElement(Q.div, { ref: he(l, a), ...P, id: r, "cmdk-item": "", role: "option", "aria-disabled": !!S, "aria-selected": !!v, "data-disabled": !!S, "data-selected": !!v, onPointerMove: S || i.getDisablePointerSelection() ? void 0 : b, onClick: S ? void 0 : w }, e.children);
|
|
869
|
-
}),
|
|
874
|
+
}), Mr = p.forwardRef((e, a) => {
|
|
870
875
|
let { heading: t, children: n, forceMount: r, ...l } = e, s = oe(), i = p.useRef(null), m = p.useRef(null), u = oe(), y = ve(), c = Z((f) => r || y.filter() === !1 ? !0 : f.search ? f.filtered.groups.has(s) : !0);
|
|
871
876
|
ae(() => y.group(s), []), _t(s, i, [e.value, e.heading, m]);
|
|
872
877
|
let v = p.useMemo(() => ({ id: s, forceMount: r }), [r]);
|
|
@@ -902,7 +907,7 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', zr = '[cmdk-group-head
|
|
|
902
907
|
}), Wr = p.forwardRef((e, a) => Z((t) => t.filtered.count === 0) ? p.createElement(Q.div, { ref: a, ...e, "cmdk-empty": "", role: "presentation" }) : null), Kr = p.forwardRef((e, a) => {
|
|
903
908
|
let { progress: t, children: n, label: r = "Loading...", ...l } = e;
|
|
904
909
|
return p.createElement(Q.div, { ref: a, ...l, "cmdk-loading": "", role: "progressbar", "aria-valuenow": t, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": r }, Ne(e, (s) => p.createElement("div", { "aria-hidden": !0 }, s)));
|
|
905
|
-
}), j = Object.assign(Rt, { List: jr, Item:
|
|
910
|
+
}), j = Object.assign(Rt, { List: jr, Item: Ur, Input: $r, Group: Mr, Separator: Br, Dialog: Vr, Empty: Wr, Loading: Kr });
|
|
906
911
|
function qr(e, a) {
|
|
907
912
|
let t = e.nextElementSibling;
|
|
908
913
|
for (; t; ) {
|
|
@@ -1041,7 +1046,7 @@ const Ve = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
|
1041
1046
|
));
|
|
1042
1047
|
Ve.displayName = j.Item.displayName;
|
|
1043
1048
|
function Yr(e = {}) {
|
|
1044
|
-
const { authToken: a, tokenProps: t } = He(), n =
|
|
1049
|
+
const { authToken: a, tokenProps: t } = He(), n = U(
|
|
1045
1050
|
(N) => N.actions.applyResolvedCalendarPreferences
|
|
1046
1051
|
), r = e.enabled ?? !0, l = (a == null ? void 0 : a.accessToken) ?? null, s = (t == null ? void 0 : t.apiServiceUrl) ?? null, [i, m] = L(!1), [u, y] = L(!1), [c, v] = L(!1), [f, w] = L(null), [b, S] = L(null), C = $(l);
|
|
1047
1052
|
C.current = l, J(() => {
|
|
@@ -1171,7 +1176,7 @@ const Ie = [
|
|
|
1171
1176
|
{ value: "Asia/Kolkata", label: "Mumbai, New Delhi" },
|
|
1172
1177
|
{ value: "Australia/Sydney", label: "Sydney" },
|
|
1173
1178
|
{ value: "UTC", label: "UTC" }
|
|
1174
|
-
],
|
|
1179
|
+
], Ut = [
|
|
1175
1180
|
{ value: 0, label: "Sunday" },
|
|
1176
1181
|
{ value: 1, label: "Monday" },
|
|
1177
1182
|
{ value: 6, label: "Saturday" }
|
|
@@ -1206,7 +1211,7 @@ function ht(e) {
|
|
|
1206
1211
|
return a ? a.label : e;
|
|
1207
1212
|
}
|
|
1208
1213
|
function en(e) {
|
|
1209
|
-
const a =
|
|
1214
|
+
const a = Ut.find((t) => t.value === e);
|
|
1210
1215
|
return a ? a.label : String(e);
|
|
1211
1216
|
}
|
|
1212
1217
|
function tn({
|
|
@@ -1363,7 +1368,7 @@ function tn({
|
|
|
1363
1368
|
}
|
|
1364
1369
|
) }),
|
|
1365
1370
|
/* @__PURE__ */ o(
|
|
1366
|
-
|
|
1371
|
+
Ua,
|
|
1367
1372
|
{
|
|
1368
1373
|
className: "z-50 w-[--radix-popover-trigger-width] p-0",
|
|
1369
1374
|
align: "start",
|
|
@@ -1436,7 +1441,7 @@ function tn({
|
|
|
1436
1441
|
},
|
|
1437
1442
|
className: "flex gap-4",
|
|
1438
1443
|
disabled: c,
|
|
1439
|
-
children:
|
|
1444
|
+
children: Ut.map((k) => /* @__PURE__ */ h(
|
|
1440
1445
|
"label",
|
|
1441
1446
|
{
|
|
1442
1447
|
htmlFor: `week-start-${k.value}`,
|
|
@@ -1484,7 +1489,7 @@ function tn({
|
|
|
1484
1489
|
] });
|
|
1485
1490
|
}
|
|
1486
1491
|
function an(e = {}) {
|
|
1487
|
-
const { authToken: a, tokenProps: t } = He(), n =
|
|
1492
|
+
const { authToken: a, tokenProps: t } = He(), n = U(
|
|
1488
1493
|
(g) => g.actions.applyResolvedValueFormatPreferences
|
|
1489
1494
|
), r = e.enabled ?? !0, l = (a == null ? void 0 : a.accessToken) ?? null, s = (t == null ? void 0 : t.apiServiceUrl) ?? null, i = $(l);
|
|
1490
1495
|
i.current = l;
|
|
@@ -1585,7 +1590,7 @@ const We = [
|
|
|
1585
1590
|
{ value: "en-IN", label: "English (India)" },
|
|
1586
1591
|
{ value: "en-NZ", label: "English (New Zealand)" },
|
|
1587
1592
|
{ value: "mi-NZ", label: "Māori (New Zealand)" }
|
|
1588
|
-
],
|
|
1593
|
+
], Mt = /* @__PURE__ */ new Set([
|
|
1589
1594
|
"USD",
|
|
1590
1595
|
"EUR",
|
|
1591
1596
|
"GBP",
|
|
@@ -1597,7 +1602,7 @@ const We = [
|
|
|
1597
1602
|
"BRL",
|
|
1598
1603
|
"KWD"
|
|
1599
1604
|
]), rn = ja(), nn = rn.filter(
|
|
1600
|
-
(e) => !
|
|
1605
|
+
(e) => !Mt.has(e)
|
|
1601
1606
|
), Bt = [
|
|
1602
1607
|
{ value: "short", label: "Short" },
|
|
1603
1608
|
{ value: "medium", label: "Medium" },
|
|
@@ -1656,8 +1661,8 @@ function Le({
|
|
|
1656
1661
|
disabled: s,
|
|
1657
1662
|
onValueChange: i,
|
|
1658
1663
|
children: [
|
|
1659
|
-
/* @__PURE__ */ o(Fe, { id: e, size: "xs", children: /* @__PURE__ */ o(
|
|
1660
|
-
/* @__PURE__ */ h(
|
|
1664
|
+
/* @__PURE__ */ o(Fe, { id: e, size: "xs", children: /* @__PURE__ */ o(Ue, { children: m }) }),
|
|
1665
|
+
/* @__PURE__ */ h(Me, { children: [
|
|
1661
1666
|
/* @__PURE__ */ o(Y, { value: "inherit", className: "[&>span:last-child]:w-full", children: /* @__PURE__ */ h("span", { className: "flex w-full min-w-0 items-center justify-between gap-4", children: [
|
|
1662
1667
|
/* @__PURE__ */ h("span", { children: [
|
|
1663
1668
|
"Inherited from ",
|
|
@@ -1779,8 +1784,8 @@ function ln({
|
|
|
1779
1784
|
locale: I === "inherit" ? void 0 : I
|
|
1780
1785
|
}),
|
|
1781
1786
|
children: [
|
|
1782
|
-
/* @__PURE__ */ o(Fe, { id: l, size: "xs", children: /* @__PURE__ */ o(
|
|
1783
|
-
/* @__PURE__ */ h(
|
|
1787
|
+
/* @__PURE__ */ o(Fe, { id: l, size: "xs", children: /* @__PURE__ */ o(Ue, { children: e.locale === void 0 ? `Inherited · ${a.locale}` : sn(e.locale) }) }),
|
|
1788
|
+
/* @__PURE__ */ h(Me, { children: [
|
|
1784
1789
|
/* @__PURE__ */ h(Y, { value: "inherit", children: [
|
|
1785
1790
|
"Inherited from ",
|
|
1786
1791
|
Ke(t.locale),
|
|
@@ -1868,8 +1873,8 @@ function ln({
|
|
|
1868
1873
|
defaultCurrency: I === "inherit" ? void 0 : I
|
|
1869
1874
|
}),
|
|
1870
1875
|
children: [
|
|
1871
|
-
/* @__PURE__ */ o(Fe, { id: s, size: "xs", children: /* @__PURE__ */ o(
|
|
1872
|
-
/* @__PURE__ */ h(
|
|
1876
|
+
/* @__PURE__ */ o(Fe, { id: s, size: "xs", children: /* @__PURE__ */ o(Ue, { children: e.defaultCurrency === void 0 ? `Inherited · ${a.defaultCurrency}` : e.defaultCurrency }) }),
|
|
1877
|
+
/* @__PURE__ */ h(Me, { children: [
|
|
1873
1878
|
/* @__PURE__ */ h(Y, { value: "inherit", children: [
|
|
1874
1879
|
"Inherited from ",
|
|
1875
1880
|
Ke(t.defaultCurrency),
|
|
@@ -1877,7 +1882,7 @@ function ln({
|
|
|
1877
1882
|
" ",
|
|
1878
1883
|
a.defaultCurrency
|
|
1879
1884
|
] }),
|
|
1880
|
-
[...
|
|
1885
|
+
[...Mt].map((I) => /* @__PURE__ */ o(Y, { value: I, children: I }, I)),
|
|
1881
1886
|
nn.map((I) => /* @__PURE__ */ o(Y, { value: I, children: I }, I))
|
|
1882
1887
|
] })
|
|
1883
1888
|
]
|
|
@@ -2060,7 +2065,7 @@ function Pn({
|
|
|
2060
2065
|
/* @__PURE__ */ o(Ia, { className: "text-[15px]", children: "Report preferences" }),
|
|
2061
2066
|
/* @__PURE__ */ o(Ea, { className: "text-[13px] leading-5", children: "Set how values and Calendar periods appear for you." })
|
|
2062
2067
|
] }),
|
|
2063
|
-
/* @__PURE__ */ h(
|
|
2068
|
+
/* @__PURE__ */ h(Ma, { value: t, onValueChange: n, children: [
|
|
2064
2069
|
/* @__PURE__ */ h(Ba, { variant: "underline", className: "w-full justify-start", children: [
|
|
2065
2070
|
/* @__PURE__ */ o(st, { value: "display", children: "Display formats" }),
|
|
2066
2071
|
/* @__PURE__ */ o(st, { value: "calendar", children: "Calendar" })
|
package/dist/chunks/{report-runtime-context-DoIUr3MP.js → report-runtime-context-BITkNSDa.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { parseValueFormatPreferences as _, isReportPreferenceSource as C } from "../value-format-preferences/index.js";
|
|
2
|
-
import { r as g } from "./validators-
|
|
3
|
-
import { i as k } from "./analytics-base-schemas-
|
|
2
|
+
import { r as g } from "./validators-BIM0FE31.js";
|
|
3
|
+
import { i as k } from "./analytics-base-schemas-BaIQrEzX.js";
|
|
4
4
|
const D = {
|
|
5
5
|
tz: "UTC",
|
|
6
6
|
weekStart: 1,
|