react-semaphor 0.1.543 → 0.1.545
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/activity/index.js +73 -0
- package/dist/analytics-protocol/index.js +35 -34
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +2 -2
- package/dist/briefings/index.js +56 -52
- package/dist/chunks/{class-utils-Df1OVOT1.js → _commonjsHelpers-DimLPMtv.js} +124 -98
- package/dist/chunks/{apply-dashboard-operations-CG9S7MGt.js → apply-dashboard-operations-CZEMsx8E.js} +778 -958
- package/dist/chunks/{assistant-chat-BFMRUYoB.js → assistant-chat-D7sWTypJ.js} +26 -27
- package/dist/chunks/calendar-day-equality-dvoQp1xW.js +410 -0
- package/dist/chunks/{comparison-window-caption-Bv18samq.js → comparison-window-caption-D4E6IHPD.js} +462 -456
- package/dist/chunks/{custom-visual-inputs-DUtpYZOk.js → custom-visual-inputs-DLCD9Y5V.js} +8 -2
- package/dist/chunks/dashboard-B1tMju0u.js +14 -0
- package/dist/chunks/dashboard-briefing-launcher-CePgIu0Z.js +3720 -0
- package/dist/chunks/{dashboard-controls-UGpjOM2k.js → dashboard-controls-Cq05n3e0.js} +526 -521
- package/dist/chunks/{dashboard-json-DG8dz0eX.js → dashboard-json-CoYRPqxx.js} +3 -3
- package/dist/chunks/document-dashboard-inputs-BesAHZvB.js +3112 -0
- package/dist/chunks/{edit-dashboard-visual-CDpA4y5e.js → edit-dashboard-visual-JPtNfJRb.js} +5628 -5618
- package/dist/chunks/export-file-format-C-tJsxsf.js +111 -0
- package/dist/chunks/{filter-value-text-CYsVYPuD.js → filter-value-text-ff7osJr7.js} +1 -1
- package/dist/chunks/{index-l5LclZvs.js → index-DRWiuqyd.js} +378 -332
- package/dist/chunks/{matrix-formatter-BnsTX90d.js → matrix-formatter-DnCyRXJE.js} +13 -13
- package/dist/chunks/{numeric-presentation-F_-H6VAw.js → numeric-presentation-7X_IrD58.js} +2572 -2573
- package/dist/chunks/{pivot-result-lifecycle-DupbRk-R.js → pivot-result-lifecycle-DM4CyGKs.js} +285 -393
- package/dist/chunks/{raw-temporal-presentation-D-azM_98.js → raw-temporal-presentation-C3mUgnEx.js} +2 -2
- package/dist/chunks/{zoned-wall-clock-MulfA26h.js → relative-date-label-Bk2j94pA.js} +21 -64
- package/dist/chunks/rendered-file-D8xEuVVx.js +108 -0
- package/dist/chunks/{report-preferences-dialog-CPwRwEJx.js → report-preferences-dialog-DUtuUL_5.js} +640 -612
- package/dist/chunks/resolve-dashboard-input-context-DJ2tICwz.js +9415 -0
- package/dist/chunks/{saved-dashboard-context-BKvMfRfC.js → saved-dashboard-context-LrF_kW0l.js} +183 -211
- package/dist/chunks/selection-filter-compiler-BKXmyLrS.js +79 -0
- package/dist/chunks/{semaphor-ready-indicator-CN2AHm2x.js → semaphor-ready-indicator-BxF96Yhv.js} +46859 -47102
- package/dist/chunks/shelf-drop-preview-context-CNaM_Gmh.js +2469 -0
- package/dist/chunks/{switch-C3jLxlG0.js → switch-uDtPgQlQ.js} +44 -45
- package/dist/chunks/{table-export-sheet-BDRXLLdq.js → table-export-sheet-YzMioA7Y.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-BnclfB2k.js → use-create-flow-overlay-state-CjB7ig1o.js} +153 -164
- package/dist/chunks/zoned-wall-clock-BkxV9jS2.js +46 -0
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +553 -541
- package/dist/data-app-sdk/index.js +1 -1
- package/dist/format-utils/index.js +241 -227
- package/dist/index.js +354 -331
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/activity.d.ts +2 -0
- package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
- package/dist/types/briefings/attachments.d.ts +33 -6
- package/dist/types/briefings/index.d.ts +6 -5
- package/dist/types/components/activity/activity-bell.d.ts +11 -0
- package/dist/types/components/activity/activity-instance.d.ts +50 -0
- package/dist/types/components/activity/activity-notices.d.ts +7 -0
- package/dist/types/components/activity/activity-provider.d.ts +21 -0
- package/dist/types/components/activity/activity-types.d.ts +177 -0
- package/dist/types/components/activity/index.d.ts +6 -0
- package/dist/types/components/activity/use-activity.d.ts +20 -0
- package/dist/types/components/briefings/briefing-author/run-model.d.ts +1 -2
- package/dist/types/components/briefings/briefing-author.d.ts +14 -12
- package/dist/types/components/briefings/dashboard-briefing-launcher.d.ts +5 -0
- package/dist/types/components/briefings/use-briefing-run-detail.d.ts +34 -0
- package/dist/types/components/index.d.ts +1 -4
- package/dist/types/components/surfboard/filter/types.d.ts +0 -14
- package/dist/types/lib/activity-identity.d.ts +21 -0
- package/dist/types/lib/api/exports-api.d.ts +4 -4
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-authoring.d.ts +68 -82
- package/dist/types/lib/dashboard-inputs/dashboard-input-target-context.d.ts +0 -8
- package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +35 -1
- package/dist/types/lib/dashboard-inputs/filter-settings.d.ts +199 -0
- package/dist/types/lib/dashboard-inputs/resolve-dashboard-input-context.d.ts +7 -2
- package/dist/types/lib/dashboard-inputs/resolve-selection-input.d.ts +1 -1
- package/dist/types/lib/dashboard-viewer/captured-runtime-values.d.ts +40 -0
- package/dist/types/lib/dashboard-viewer/compatibility-input-storage.d.ts +16 -16
- package/dist/types/lib/dashboard-viewer/viewer-state.d.ts +11 -9
- package/dist/types/lib/download-pdf.d.ts +75 -1
- package/dist/types/lib/hooks/index.d.ts +1 -3
- package/dist/types/lib/hooks/use-date-filter.d.ts +5 -0
- package/dist/types/lib/hooks/use-text-filter.d.ts +5 -0
- package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +5 -4
- package/dist/types/lib/matrix-table/matrix-delivery.d.ts +4 -0
- package/dist/types/lib/query-context/assemble-card-query.d.ts +158 -0
- package/dist/types/lib/query-context/build-card-query-context.d.ts +3 -3
- package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +15 -6
- package/dist/types/lib/query-context/build-dashboard-execution-snapshot.d.ts +11 -13
- package/dist/types/lib/query-context/compile-dashboard-card-filters.d.ts +22 -12
- package/dist/types/lib/stores/dashboard-store.d.ts +39 -55
- package/dist/types/lib/stores/editor-store.d.ts +0 -3
- package/dist/types/lib/types/common-types.d.ts +21 -6
- package/dist/types/shared/activity/activity-contract.d.ts +84 -0
- package/dist/types/shared/activity/index.d.ts +5 -0
- package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +4 -11
- package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +6 -0
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +12 -12
- package/dist/types/shared/dashboard-authoring/dashboard-filter-mapping-contract.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/dashboard-input-scope.d.ts +92 -0
- package/dist/types/shared/dashboard-authoring/filter-model/ad-hoc-filter-values.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/filter-model/filter-definitions.d.ts +29 -0
- package/dist/types/shared/dashboard-authoring/filter-model/filter-values.d.ts +58 -0
- package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/filter-model/prototype-document-inputs.d.ts +15 -0
- package/dist/types/shared/dashboard-authoring/filter-model/read-dashboard-filter-model.d.ts +78 -0
- package/dist/types/shared/dashboard-authoring/filter-model/stored-dashboard.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/filter-model/toolbar-filter-reach.d.ts +23 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +2 -0
- package/dist/types/shared/format-utils/export-policy.d.ts +12 -0
- package/dist/types/shared/format-utils/exporters/index.d.ts +2 -0
- package/dist/types/shared/format-utils/exporters/rendered-file.d.ts +106 -0
- package/package.json +6 -2
- package/dist/chunks/_commonjsHelpers-BkfeUUK-.js +0 -28
- package/dist/chunks/calendar-day-equality-BmJAWduY.js +0 -460
- package/dist/chunks/dashboard-B9mKTJoy.js +0 -14
- package/dist/chunks/dashboard-briefing-launcher-Bdmry_oG.js +0 -4248
- package/dist/chunks/document-dashboard-inputs-OwqCbrVp.js +0 -8087
- package/dist/chunks/document-sheet-utils-BTb3VZxV.js +0 -3619
- package/dist/chunks/shelf-drop-preview-context-BGl_rxcW.js +0 -2407
- package/dist/chunks/sort-target-MT1WK1vX.js +0 -29
- package/dist/types/components/briefings/briefing-author/run-ui.d.ts +0 -81
- package/dist/types/components/briefings/use-briefing-run-polling.d.ts +0 -34
- package/dist/types/components/notifications/export-notification-item.d.ts +0 -24
- package/dist/types/components/notifications/export-notification-list.d.ts +0 -8
- package/dist/types/components/notifications/index.d.ts +0 -3
- package/dist/types/components/notifications/notification-bell.d.ts +0 -13
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-storage-transition.d.ts +0 -88
- package/dist/types/lib/dashboard-inputs/dashboard-input-scope.d.ts +0 -10
- package/dist/types/lib/exports/bounded-request.d.ts +0 -12
- package/dist/types/lib/hooks/use-export-polling.d.ts +0 -32
- package/dist/types/lib/hooks/use-export-recovery.d.ts +0 -11
- package/dist/types/lib/stores/export-store.d.ts +0 -62
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
const f = ["utf-8-bom", "utf-8"], d = "utf-8-bom", l = [",", ";", " "], p = `\r
|
|
2
|
+
`, u = "text/csv; charset=utf-8";
|
|
3
|
+
function g(e) {
|
|
4
|
+
return e == null || typeof e == "string" || typeof e == "number" ? e : typeof e == "object" ? JSON.stringify(e) : String(e);
|
|
5
|
+
}
|
|
6
|
+
const m = "\uFEFF";
|
|
7
|
+
function o(e) {
|
|
8
|
+
return f.find((t) => t === e);
|
|
9
|
+
}
|
|
10
|
+
function F(e) {
|
|
11
|
+
return l.find((t) => t === e);
|
|
12
|
+
}
|
|
13
|
+
function _(e) {
|
|
14
|
+
return o(e.requested) ?? o(e.dashboardDefault) ?? d;
|
|
15
|
+
}
|
|
16
|
+
function x(e) {
|
|
17
|
+
return e === "utf-8-bom" ? m : "";
|
|
18
|
+
}
|
|
19
|
+
function O(e) {
|
|
20
|
+
const t = e.trimStart().charAt(0);
|
|
21
|
+
return ["=", "+", "-", "@"].includes(t) || [" ", "\r", `
|
|
22
|
+
`].includes(e.charAt(0)) ? `'${e}` : e;
|
|
23
|
+
}
|
|
24
|
+
function C(e, t = ",") {
|
|
25
|
+
if (e == null)
|
|
26
|
+
return "";
|
|
27
|
+
const n = String(e);
|
|
28
|
+
return n.includes(t) || n.includes('"') || n.includes(`
|
|
29
|
+
`) || n.includes("\r") ? `"${n.replace(/"/g, '""')}"` : n;
|
|
30
|
+
}
|
|
31
|
+
function i(e, t) {
|
|
32
|
+
return e.map((n) => C(n, t)).join(t) + p;
|
|
33
|
+
}
|
|
34
|
+
function E(e, t) {
|
|
35
|
+
return e.map((n) => i(n, t)).join("");
|
|
36
|
+
}
|
|
37
|
+
function R(e) {
|
|
38
|
+
return x(e.encoding) + (e.header ? i(e.header, e.delimiter) : "") + E(e.rows, e.delimiter);
|
|
39
|
+
}
|
|
40
|
+
const a = ["csv", "xlsx"], S = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", s = {
|
|
41
|
+
csv: Object.freeze({
|
|
42
|
+
format: "csv",
|
|
43
|
+
extension: "csv",
|
|
44
|
+
contentType: u,
|
|
45
|
+
partExtension: "csv",
|
|
46
|
+
partContentType: "text/csv",
|
|
47
|
+
compactedFileName: "export.csv.gz",
|
|
48
|
+
storedEncoding: "gzip",
|
|
49
|
+
storedValue: "CSV",
|
|
50
|
+
label: "CSV"
|
|
51
|
+
}),
|
|
52
|
+
xlsx: Object.freeze({
|
|
53
|
+
format: "xlsx",
|
|
54
|
+
extension: "xlsx",
|
|
55
|
+
contentType: S,
|
|
56
|
+
partExtension: "xml",
|
|
57
|
+
partContentType: "application/xml",
|
|
58
|
+
compactedFileName: "export.xlsx",
|
|
59
|
+
storedEncoding: "identity",
|
|
60
|
+
storedValue: "XLSX",
|
|
61
|
+
label: "Excel"
|
|
62
|
+
})
|
|
63
|
+
};
|
|
64
|
+
function V(e) {
|
|
65
|
+
return a.find((t) => t === e);
|
|
66
|
+
}
|
|
67
|
+
function b(e) {
|
|
68
|
+
return { ...s[e] };
|
|
69
|
+
}
|
|
70
|
+
function N(e) {
|
|
71
|
+
return e === "XLSX" ? "xlsx" : "csv";
|
|
72
|
+
}
|
|
73
|
+
function c(e) {
|
|
74
|
+
return e.split(";")[0].trim().toLowerCase();
|
|
75
|
+
}
|
|
76
|
+
function y(e) {
|
|
77
|
+
if (!e) return;
|
|
78
|
+
const t = c(e);
|
|
79
|
+
return a.find(
|
|
80
|
+
(n) => c(s[n].contentType) === t
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
function h(e) {
|
|
84
|
+
var r;
|
|
85
|
+
const t = (((r = e.title) == null ? void 0 : r.trim()) || "export").replace(/[^a-z0-9]+/gi, "_").replace(/^_+|_+$/g, "") || "export", n = (e.at ?? /* @__PURE__ */ new Date()).toISOString().replace(/\.\d{3}Z$/, "Z").replace(/:/g, "-");
|
|
86
|
+
return `${t}-${n}.${s[e.format].extension}`;
|
|
87
|
+
}
|
|
88
|
+
export {
|
|
89
|
+
f as C,
|
|
90
|
+
d as D,
|
|
91
|
+
a as E,
|
|
92
|
+
S as X,
|
|
93
|
+
l as a,
|
|
94
|
+
p as b,
|
|
95
|
+
i as c,
|
|
96
|
+
u as d,
|
|
97
|
+
F as e,
|
|
98
|
+
x as f,
|
|
99
|
+
C as g,
|
|
100
|
+
O as h,
|
|
101
|
+
E as i,
|
|
102
|
+
R as j,
|
|
103
|
+
V as k,
|
|
104
|
+
b as l,
|
|
105
|
+
N as m,
|
|
106
|
+
y as n,
|
|
107
|
+
h as o,
|
|
108
|
+
o as p,
|
|
109
|
+
_ as r,
|
|
110
|
+
g as t
|
|
111
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { x as p, y as N } from "./validators-DMHTpf7a.js";
|
|
2
|
-
import { g as k } from "./
|
|
2
|
+
import { g as k } from "./relative-date-label-Bk2j94pA.js";
|
|
3
3
|
import { C as D, B as T, I as L } from "./temporal-bucket-D7NBrrtL.js";
|
|
4
4
|
const d = { kind: "plain" }, g = { kind: "temporal" }, O = {
|
|
5
5
|
"=": "=",
|