react-semaphor 0.1.560 → 0.1.561
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 +353 -349
- 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-CHLxsPfX.js → analytics-base-schemas-CB3oFAXk.js} +199 -171
- package/dist/chunks/{assistant-chat-Bu2fFm_I.js → assistant-chat-DiVHY3Hw.js} +27 -28
- package/dist/chunks/bookmark-impact-CR09dpkn.js +75 -0
- package/dist/chunks/bookmark-state-BusLpkb7.js +743 -0
- package/dist/chunks/{braces-Da41xfUd.js → braces-u8VorWJc.js} +1 -1
- package/dist/chunks/{comparison-window-caption-4FNkMrzE.js → comparison-window-caption-DDsIWJYT.js} +108 -108
- package/dist/chunks/{context-BgPDzLHZ.js → context-TUjw9eqr.js} +1 -1
- package/dist/chunks/{custom-visual-inputs-Dz-enUNR.js → custom-visual-inputs-DfolidZ9.js} +1 -1
- package/dist/chunks/{dashboard-_MeBuy67.js → dashboard-BRdZBPqr.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CEi4Pr_v.js → dashboard-briefing-launcher-CgvTLndW.js} +161 -162
- package/dist/chunks/{dashboard-controls-Bi7fyG-4.js → dashboard-controls-B4vfSzTF.js} +881 -945
- package/dist/chunks/{dashboard-json-B1mU_OMa.js → dashboard-json-Y3MF59g7.js} +5 -5
- package/dist/chunks/document-dashboard-inputs-CvBbFTUA.js +1718 -0
- package/dist/chunks/{edit-dashboard-visual-0CJN31Y3.js → edit-dashboard-visual-DwjZcxj-.js} +6112 -6146
- package/dist/chunks/{filter-reach-copy-BF4w4kI2.js → filter-reach-copy-bijwf_-b.js} +1250 -1392
- package/dist/chunks/{filter-value-text-CRC-K_l_.js → filter-value-text-DFnhwuEW.js} +3 -3
- package/dist/chunks/global-date-filter-utils-BXgCpvQM.js +15142 -0
- package/dist/chunks/{index-DtHidOPV.js → index-ClwbY3BL.js} +197 -198
- package/dist/chunks/{layout-grid-BvsH4RY2.js → layout-grid-CtvCBfOm.js} +1 -1
- package/dist/chunks/{list-filter-Dg0otx5E.js → list-filter-BklYgciR.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-CM18W8w6.js → matrix-analytical-definition-pU51-JmY.js} +4 -4
- package/dist/chunks/{matrix-card-HPskLaPy.js → matrix-card-CUorIB7Q.js} +3 -3
- package/dist/chunks/{matrix-member-presentation-Bbrfrke4.js → matrix-member-presentation-Df5UgCGN.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-WPv4R-H_.js → matrix-operation-contract-BSiGEXVC.js} +255 -248
- package/dist/chunks/{metric-comparison-ljMKYZKa.js → metric-comparison-95aC0uEO.js} +6 -6
- package/dist/chunks/{model-change-Ccn1zaxl.js → model-change-B5wQhg5G.js} +1 -1
- package/dist/chunks/{palette-Bsh376zO.js → palette-DTnMhipt.js} +1 -1
- package/dist/chunks/pivot-result-contract-expectations-Bo-86vwS.js +56 -0
- package/dist/chunks/{pivot-result-identity-vS9TSh4f.js → pivot-result-identity-olvXJoB9.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-BV8L0SeS.js → report-preferences-dialog-C2YUIwKG.js} +14 -14
- package/dist/chunks/{report-runtime-context-BZQh9ywy.js → report-runtime-context-DoIUr3MP.js} +2 -2
- package/dist/chunks/resolve-dashboard-input-context-q_iiNXE1.js +6503 -0
- package/dist/chunks/{save-B5EAsgQF.js → save-DH4RyrnG.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-n2Wn11cV.js → saved-dashboard-context-8jqfI7hI.js} +12 -12
- package/dist/chunks/{selection-reducer-D0YnaAD9.js → selection-reducer-CV7K4FI6.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-XLBLOJ2V.js → semaphor-ready-indicator-E2XWyibu.js} +30253 -31076
- package/dist/chunks/{shelf-drop-preview-context-DHMa54a-.js → shelf-drop-preview-context-C29EUzDp.js} +7 -7
- package/dist/chunks/{source-entity-resolution-dUG5VWRm.js → source-entity-resolution-BXI3nQ5Z.js} +1 -1
- package/dist/chunks/{switch-ByxH4M7t.js → switch-balDSHc7.js} +3 -3
- package/dist/chunks/{table-export-sheet-C_GdeTYU.js → table-export-sheet-CK8tvh4d.js} +1 -1
- package/dist/chunks/temporal-input-presentation-B77JsAzU.js +5002 -0
- package/dist/chunks/{token-types-CQtXUVMy.js → token-types-DhYH5YKb.js} +1 -1
- package/dist/chunks/{upload-wbR-NVzq.js → upload-Ufj8vjyn.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-CEBaLOKC.js → use-create-flow-overlay-state-9WsnzEO5.js} +6 -6
- package/dist/chunks/{validators-CXTneCA4.js → validators-BtaCFIEB.js} +37 -37
- package/dist/chunks/{zoned-wall-clock-B1n_WjW3.js → zoned-wall-clock-CGLVI40Q.js} +1 -1
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +2400 -1856
- package/dist/data-app-sdk/index.js +20 -20
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +10 -10
- package/dist/format-utils/index.js +257 -256
- package/dist/index.js +214 -215
- 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/components/dashboard/summary-number-formatter.d.ts +6 -0
- package/dist/types/index.js +50 -51
- package/dist/types/lib/formatters/kpi-number-formatter.d.ts +41 -0
- package/dist/types/lib/stores/editor-store.d.ts +9 -1
- package/dist/types/lib/stores/table-actions.d.ts +0 -2
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +10 -0
- package/dist/types/shared/analytics-protocol/measure-aggregation-profile.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/card-settings/apply-card-settings.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +52 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/card-settings/carry-column-settings.d.ts +3 -0
- package/dist/types/shared/dashboard-authoring/card-settings/column-format-write.d.ts +8 -0
- package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +51 -0
- package/dist/types/shared/dashboard-authoring/card-settings/column-sources.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/card-settings/confirm-class.d.ts +9 -0
- package/dist/types/shared/dashboard-authoring/card-settings/highlight-inputs.d.ts +19 -0
- package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +15 -0
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +102 -0
- package/dist/types/shared/dashboard-authoring/card-settings/read-card-settings.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-highlights.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-settings.d.ts +59 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +40 -0
- package/dist/types/shared/dashboard-authoring/card-settings/views.d.ts +28 -0
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +6 -0
- package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +32 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +539 -22
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +27 -8
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +25 -1
- package/dist/types/shared/dashboard-authoring/conditional-formatting/kpi.d.ts +1 -8
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/index.d.ts +3 -0
- package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +123 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +21 -1
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +10 -4
- package/dist/types/shared/dashboard-viewer/bookmark-impact.d.ts +33 -0
- package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +8 -1
- package/dist/types/shared/format-utils/raw-temporal.d.ts +16 -0
- package/package.json +2 -2
- package/dist/chunks/bookmark-state-BFY9oNmr.js +0 -111
- package/dist/chunks/document-dashboard-inputs-CkWfDB8c.js +0 -3010
- package/dist/chunks/global-date-filter-utils-D8365uPH.js +0 -12889
- package/dist/chunks/pivot-result-contract-expectations-Bl5suy4-.js +0 -1832
- package/dist/chunks/raw-temporal-presentation-BHm7s-hz.js +0 -540
- package/dist/chunks/resolve-dashboard-input-context-CAMiWvyR.js +0 -5280
- package/dist/chunks/table-settings-Imz0FgWi.js +0 -637
- package/dist/chunks/temporal-input-presentation-uvNK_tM0.js +0 -3228
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { z as t } from "zod";
|
|
2
|
-
import { b as g, d as v } from "./matrix-operation-contract-WPv4R-H_.js";
|
|
3
|
-
import { a as T } from "./metric-comparison-ljMKYZKa.js";
|
|
4
|
-
import { D as O, v as y, k as E, j as A, i as V } from "./table-settings-Imz0FgWi.js";
|
|
5
|
-
const p = 1, $ = ["PRIVATE", "TEAM", "DASHBOARD"], R = t.object({
|
|
6
|
-
filterId: t.string().min(1),
|
|
7
|
-
name: t.string(),
|
|
8
|
-
operation: t.string(),
|
|
9
|
-
valueType: t.enum(["string", "number", "date", "boolean"]),
|
|
10
|
-
values: t.array(t.unknown())
|
|
11
|
-
}).passthrough().superRefine((e, o) => {
|
|
12
|
-
const s = [];
|
|
13
|
-
O.has(e.operation) ? y(e, e.valueType, "filterValue", s) : s.push("filterValue.operation must be a valid filter operation.");
|
|
14
|
-
for (const i of s) o.addIssue({ code: "custom", message: i });
|
|
15
|
-
}), S = t.unknown().superRefine((e, o) => {
|
|
16
|
-
for (const s of T(e).errors)
|
|
17
|
-
o.addIssue({ code: "custom", message: s.message });
|
|
18
|
-
}), _ = t.discriminatedUnion("kind", [
|
|
19
|
-
t.object({ kind: t.literal("filter"), filterValue: R }).strict(),
|
|
20
|
-
t.object({ kind: t.literal("control"), value: t.unknown() }).strict(),
|
|
21
|
-
t.object({
|
|
22
|
-
kind: t.literal("selection"),
|
|
23
|
-
selection: g
|
|
24
|
-
}).strict()
|
|
25
|
-
]), w = t.union([
|
|
26
|
-
t.object({
|
|
27
|
-
status: t.literal("set"),
|
|
28
|
-
value: _,
|
|
29
|
-
comparisonSelection: S.optional()
|
|
30
|
-
}).strict(),
|
|
31
|
-
t.object({
|
|
32
|
-
status: t.literal("cleared"),
|
|
33
|
-
comparisonSelection: S.optional()
|
|
34
|
-
}).strict(),
|
|
35
|
-
t.object({ comparisonSelection: S }).strict()
|
|
36
|
-
]), k = ["bySheetId", "byCardId", "byDocumentSectionId"], B = /* @__PURE__ */ new Set(["version", "selectedSheetId", "inputs", "tableSettings"]), D = /* @__PURE__ */ new Set(["shared", ...k]), d = (e) => !!e && typeof e == "object" && !Array.isArray(e);
|
|
37
|
-
function b(e, o, s) {
|
|
38
|
-
if (e === void 0) return;
|
|
39
|
-
if (!d(e)) {
|
|
40
|
-
o.push({ target: "input", id: s });
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
const i = {};
|
|
44
|
-
for (const [a, u] of Object.entries(e)) {
|
|
45
|
-
const c = a ? w.safeParse(u) : void 0;
|
|
46
|
-
c != null && c.success ? i[a] = c.data : o.push({
|
|
47
|
-
target: v(a) ? "selection" : "input",
|
|
48
|
-
id: a
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
return Object.keys(i).length ? i : void 0;
|
|
52
|
-
}
|
|
53
|
-
function K(e, o) {
|
|
54
|
-
if (o !== p)
|
|
55
|
-
return { ok: !1, error: `Unsupported bookmark version ${o}.` };
|
|
56
|
-
if (!d(e) || e.version !== p)
|
|
57
|
-
return { ok: !1, error: "The bookmark state is invalid." };
|
|
58
|
-
const s = [], i = Object.keys(e).filter((l) => !B.has(l));
|
|
59
|
-
let a;
|
|
60
|
-
typeof e.selectedSheetId == "string" && e.selectedSheetId ? a = e.selectedSheetId : e.selectedSheetId !== void 0 && s.push({ target: "sheet", id: String(e.selectedSheetId) });
|
|
61
|
-
const u = {};
|
|
62
|
-
if (d(e.inputs)) {
|
|
63
|
-
i.push(
|
|
64
|
-
...Object.keys(e.inputs).filter((r) => !D.has(r)).map((r) => `inputs.${r}`)
|
|
65
|
-
);
|
|
66
|
-
const l = b(e.inputs.shared, s, "shared");
|
|
67
|
-
l && (u.shared = l);
|
|
68
|
-
for (const r of k) {
|
|
69
|
-
const n = e.inputs[r];
|
|
70
|
-
if (n === void 0) continue;
|
|
71
|
-
if (!d(n)) {
|
|
72
|
-
s.push({ target: "input", id: r });
|
|
73
|
-
continue;
|
|
74
|
-
}
|
|
75
|
-
const f = {};
|
|
76
|
-
for (const [h, I] of Object.entries(n)) {
|
|
77
|
-
const m = b(I, s, `${r}.${h}`);
|
|
78
|
-
m && (f[h] = m);
|
|
79
|
-
}
|
|
80
|
-
Object.keys(f).length && (u[r] = f);
|
|
81
|
-
}
|
|
82
|
-
} else e.inputs !== void 0 && i.push("inputs");
|
|
83
|
-
const c = {};
|
|
84
|
-
if (d(e.tableSettings))
|
|
85
|
-
for (const [l, r] of Object.entries(e.tableSettings)) {
|
|
86
|
-
const n = l ? E(r, V) : void 0;
|
|
87
|
-
n != null && n.ok ? A(n.value) || (c[l] = n.value) : s.push({ target: "card", id: l });
|
|
88
|
-
}
|
|
89
|
-
else e.tableSettings !== void 0 && i.push("tableSettings");
|
|
90
|
-
return {
|
|
91
|
-
ok: !0,
|
|
92
|
-
value: {
|
|
93
|
-
version: p,
|
|
94
|
-
...a ? { selectedSheetId: a } : {},
|
|
95
|
-
...Object.keys(u).length ? { inputs: u } : {},
|
|
96
|
-
...Object.keys(c).length ? { tableSettings: c } : {}
|
|
97
|
-
},
|
|
98
|
-
issues: s,
|
|
99
|
-
unknownKeys: i
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
function j(e, o) {
|
|
103
|
-
const s = K(e, o);
|
|
104
|
-
return s.ok ? s.issues.some((i) => i.target === "card") ? { ok: !1, error: "The bookmark table settings are invalid." } : s.issues.length || s.unknownKeys.length ? { ok: !1, error: "The bookmark state is invalid." } : { ok: !0, value: s.value } : s;
|
|
105
|
-
}
|
|
106
|
-
export {
|
|
107
|
-
p as B,
|
|
108
|
-
$ as a,
|
|
109
|
-
j as p,
|
|
110
|
-
K as r
|
|
111
|
-
};
|