react-semaphor 0.1.541 → 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 +51 -49
- package/dist/chunks/apply-dashboard-operations-Btbp2-6v.js +2260 -0
- package/dist/chunks/{assistant-chat-D1fDZD6O.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-DwjFpewq.js → dashboard-briefing-launcher-B-cm719R.js} +18 -18
- package/dist/chunks/{dashboard-controls-C_BI28ME.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-DDY15Trn.js → dashboard-json-ZUYsIExq.js} +4 -4
- package/dist/chunks/{dashboard-B6IrON_Q.js → dashboard-s5WJBcK8.js} +1 -1
- package/dist/chunks/{document-dashboard-inputs-DP_Op5mu.js → document-dashboard-inputs-C6MJVyoI.js} +2382 -4975
- package/dist/chunks/document-sheet-utils-BsZUnHRl.js +3619 -0
- package/dist/chunks/{edit-dashboard-visual-CH2dzWW-.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-DaQlghLY.js → index-CV5rHq5D.js} +824 -1351
- 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-DpNkFfQO.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-CJ2WpoMF.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-KT598QJq.js → semaphor-ready-indicator-BWSpRsPj.js} +37489 -39476
- package/dist/chunks/{shelf-drop-preview-context-BxV3Fl8h.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-DdD12SMY.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 +462 -457
- 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 -241
- package/dist/index.js +174 -175
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
- package/dist/types/briefings/attachments.d.ts +17 -1
- package/dist/types/briefings/index.d.ts +5 -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.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/types/explorer-types.d.ts +6 -0
- 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/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +4 -3
- 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/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 +2 -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/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-B_vQjYR3.js +0 -996
- 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/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,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { x as p, y as N } from "./validators-DMHTpf7a.js";
|
|
2
2
|
import { g as k } from "./zoned-wall-clock-MulfA26h.js";
|
|
3
|
-
import {
|
|
4
|
-
import { d as T, p as L } from "./temporal-bucket-D8JF7zKz.js";
|
|
3
|
+
import { C as D, B as T, I as L } from "./temporal-bucket-D7NBrrtL.js";
|
|
5
4
|
const d = { kind: "plain" }, g = { kind: "temporal" }, O = {
|
|
6
5
|
"=": "=",
|
|
7
6
|
"!=": "!=",
|
|
@@ -22,7 +21,7 @@ const d = { kind: "plain" }, g = { kind: "temporal" }, O = {
|
|
|
22
21
|
isNotNull: "is not empty"
|
|
23
22
|
}, S = { between: "in", "not between": "not in" };
|
|
24
23
|
function V(t, n = {}) {
|
|
25
|
-
const { operator: e, values: i, reading: r } = t, o = r.kind === "bucket" ? `${t.subject} (${
|
|
24
|
+
const { operator: e, values: i, reading: r } = t, o = r.kind === "bucket" ? `${t.subject} (${D(r.bucket)})` : t.subject, s = O[e], u = t.shownAs ? ` (shown as ${JSON.stringify(t.shownAs)})` : "", c = (a, f = 0) => ({ text: a, omittedValues: f });
|
|
26
25
|
if (e === "isNull" || e === "isNotNull") return c(`${o} ${s}`);
|
|
27
26
|
if (t.latestValue)
|
|
28
27
|
return c(`${o} ${s} the latest value of this field (resolved at run time)`);
|
|
@@ -40,7 +39,7 @@ function V(t, n = {}) {
|
|
|
40
39
|
b(i.length, n.maxListedValues)
|
|
41
40
|
) : c(`${o} ${s} ${l(i[0], r)}${u}`);
|
|
42
41
|
}
|
|
43
|
-
function
|
|
42
|
+
function _(t, n = {}) {
|
|
44
43
|
return t == null ? { text: "no value", omittedValues: 0 } : Array.isArray(t) ? {
|
|
45
44
|
text: I(t, d, n.maxListedValues),
|
|
46
45
|
omittedValues: b(t.length, n.maxListedValues)
|
|
@@ -48,10 +47,10 @@ function W(t, n = {}) {
|
|
|
48
47
|
}
|
|
49
48
|
function l(t, n = d) {
|
|
50
49
|
if (n.kind !== "plain") {
|
|
51
|
-
const e =
|
|
50
|
+
const e = w(t, n);
|
|
52
51
|
if (e !== void 0) return e;
|
|
53
52
|
}
|
|
54
|
-
return t instanceof Date ?
|
|
53
|
+
return t instanceof Date ? w(t, g) ?? JSON.stringify(String(t)) : t === void 0 ? "null" : typeof t == "number" || typeof t == "boolean" || t === null ? String(t) : JSON.stringify(t) ?? String(t);
|
|
55
54
|
}
|
|
56
55
|
function I(t, n = d, e = Number.POSITIVE_INFINITY) {
|
|
57
56
|
const i = t.slice(0, Number.isFinite(e) ? e : void 0).map((o) => l(o, n)).join(", "), r = b(t.length, e);
|
|
@@ -64,12 +63,12 @@ function m(t) {
|
|
|
64
63
|
if (t instanceof Date)
|
|
65
64
|
return Number.isNaN(t.getTime()) ? void 0 : { kind: "instant", instant: t };
|
|
66
65
|
if (typeof t != "string") return;
|
|
67
|
-
const n =
|
|
66
|
+
const n = L(t);
|
|
68
67
|
return n === "instant" ? { kind: n, instant: new Date(t) } : n ? { kind: n, text: t } : void 0;
|
|
69
68
|
}
|
|
70
|
-
function
|
|
69
|
+
function w(t, n) {
|
|
71
70
|
if (n.kind === "bucket")
|
|
72
|
-
return typeof t == "string" &&
|
|
71
|
+
return typeof t == "string" && T(t, n.bucket).ok ? t : void 0;
|
|
73
72
|
const e = m(t);
|
|
74
73
|
if (e)
|
|
75
74
|
return e.kind === "instant" ? e.instant.toISOString() : e.text;
|
|
@@ -77,13 +76,13 @@ function p(t, n) {
|
|
|
77
76
|
function A(t, n, e, i) {
|
|
78
77
|
const r = e.kind === "temporal" ? m(t) : void 0, o = e.kind === "temporal" ? m(n) : void 0;
|
|
79
78
|
if (i && (r == null ? void 0 : r.kind) === "instant" && (o == null ? void 0 : o.kind) === "instant") {
|
|
80
|
-
const s =
|
|
79
|
+
const s = y(r.instant, i), u = y(o.instant, i);
|
|
81
80
|
if (s && u && s.time === "00:00:00" && r.instant.getUTCMilliseconds() === 0 && u.time === "23:59:59" && [0, 999].includes(o.instant.getUTCMilliseconds()))
|
|
82
81
|
return { from: s.date, to: u.date, wholeDaysIn: i };
|
|
83
82
|
}
|
|
84
83
|
return { from: l(t, e), to: l(n, e) };
|
|
85
84
|
}
|
|
86
|
-
function
|
|
85
|
+
function y(t, n) {
|
|
87
86
|
try {
|
|
88
87
|
const e = Object.fromEntries(
|
|
89
88
|
new Intl.DateTimeFormat("en-CA", {
|
|
@@ -113,7 +112,7 @@ function F(t) {
|
|
|
113
112
|
switch (t.mode) {
|
|
114
113
|
case "last": {
|
|
115
114
|
const n = $(t.n, t.unit);
|
|
116
|
-
return
|
|
115
|
+
return p(t) ? t.complete ? `the ${n} before the ${t.unit} of the latest date in the data, whole ${t.unit}s only` : `the last ${n}, up to the latest date in the data` : t.complete ? `the ${n} before the current ${t.unit}, whole ${t.unit}s only` : `the last ${n}, up to now`;
|
|
117
116
|
}
|
|
118
117
|
case "this":
|
|
119
118
|
return t.boundary === "first_day" ? "the first day of the current month" : t.boundary === "last_day" ? "the last day of the current month" : t.toDate ? `the current ${t.unit} up to now` : `the whole current ${t.unit}`;
|
|
@@ -124,10 +123,10 @@ function F(t) {
|
|
|
124
123
|
}
|
|
125
124
|
}
|
|
126
125
|
function R(t, n) {
|
|
127
|
-
const e = k(t), i = n && !
|
|
126
|
+
const e = k(t), i = n && !p(t) ? `; last resolved here as ${n.from} to ${n.to}${n.wholeDaysIn ? `, whole days in ${n.wholeDaysIn}` : ""}` : "";
|
|
128
127
|
return `${e ? `${JSON.stringify(e)} ` : ""}(relative window: ${F(t)}; resolved again at run time${i})`;
|
|
129
128
|
}
|
|
130
|
-
const
|
|
129
|
+
const x = {
|
|
131
130
|
"=": "=",
|
|
132
131
|
"!=": "!=",
|
|
133
132
|
">": ">",
|
|
@@ -143,11 +142,11 @@ const E = {
|
|
|
143
142
|
"is null": "isNull",
|
|
144
143
|
"is not null": "isNotNull"
|
|
145
144
|
};
|
|
146
|
-
function
|
|
145
|
+
function W(t, n, e = {}) {
|
|
147
146
|
const i = t.valueType === "date";
|
|
148
147
|
return V({
|
|
149
148
|
subject: n,
|
|
150
|
-
operator:
|
|
149
|
+
operator: x[t.operation],
|
|
151
150
|
values: t.values,
|
|
152
151
|
reading: i ? g : d,
|
|
153
152
|
...i ? { relative: N(t.relativeMeta) } : {}
|
|
@@ -157,7 +156,7 @@ export {
|
|
|
157
156
|
d as P,
|
|
158
157
|
g as T,
|
|
159
158
|
V as a,
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
_ as b,
|
|
160
|
+
W as d,
|
|
162
161
|
b as o
|
|
163
162
|
};
|