react-semaphor 0.1.545 → 0.1.546
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 +405 -442
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +100 -76
- package/dist/brand-studio/index.js +4 -4
- package/dist/briefings/index.js +6 -6
- package/dist/chunks/{add-to-dashboard-BuAqfA2Y.js → add-to-dashboard-BQRAAnc3.js} +55 -33
- package/dist/chunks/{analytics-base-schemas-BFAoRlkU.js → analytics-base-schemas-BKs3flFS.js} +2 -2
- package/dist/chunks/{assistant-chat-D7sWTypJ.js → assistant-chat-BPXhulAx.js} +2826 -2595
- package/dist/chunks/{bookmark-state-CXw7lZ50.js → bookmark-state-C4vetoa0.js} +7 -8
- package/dist/chunks/column-catalog-BYnochWQ.js +3363 -0
- package/dist/chunks/comparison-window-caption-C2xF-eWw.js +1433 -0
- package/dist/chunks/{context-ClREvqCZ.js → context-BerEBuFR.js} +11 -6
- package/dist/chunks/custom-visual-inputs-CkJW9pBS.js +295 -0
- package/dist/chunks/{dashboard-B1tMju0u.js → dashboard-C3CoKbGY.js} +1 -1
- package/dist/chunks/dashboard-briefing-launcher-Be4h-7My.js +3734 -0
- package/dist/chunks/dashboard-controls-bxPrlSyp.js +2307 -0
- package/dist/chunks/{dashboard-json-CoYRPqxx.js → dashboard-json-BrjxIiRt.js} +5 -5
- package/dist/chunks/{document-dashboard-inputs-BesAHZvB.js → document-dashboard-inputs-CRVHpIHp.js} +872 -974
- package/dist/chunks/{edit-dashboard-visual-JPtNfJRb.js → edit-dashboard-visual-DYYYDjY6.js} +2361 -2447
- package/dist/chunks/{filter-value-text-ff7osJr7.js → filter-value-text-Ddf55Ku1.js} +9 -9
- package/dist/chunks/global-date-filter-utils-9d6m9-FE.js +11859 -0
- package/dist/chunks/index-CtoK1Lgu.js +586 -0
- package/dist/chunks/{index-DRWiuqyd.js → index-DkQkMKa1.js} +80 -79
- package/dist/chunks/list-filter-DsaTbM3J.js +15 -0
- package/dist/chunks/matrix-analytical-definition-B9vW-osb.js +717 -0
- package/dist/chunks/{matrix-card-DjwWcCo8.js → matrix-card-LiMEipvq.js} +3 -3
- package/dist/chunks/{matrix-formatter-DnCyRXJE.js → matrix-formatter-DWEeC0_c.js} +44 -44
- package/dist/chunks/{matrix-member-presentation-CQGdVks6.js → matrix-member-presentation-DqzG-UhQ.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-8OIO4gob.js → matrix-operation-contract-D6vYkZK4.js} +72 -72
- package/dist/chunks/{metric-comparison-DEwi9uc2.js → metric-comparison-zpGw4lD6.js} +2 -2
- package/dist/chunks/normalize-dashboard-for-dirty-check-XKgH3GFX.js +119 -0
- package/dist/chunks/{pivot-header-presentation-DHcx1XGQ.js → pivot-header-presentation-CQnIDtUv.js} +1 -1
- package/dist/chunks/{pivot-result-identity-DJhXXcns.js → pivot-result-identity-C-Q1j1Wb.js} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-DM4CyGKs.js → pivot-result-lifecycle-pwq3b7LC.js} +571 -380
- package/dist/chunks/{raw-temporal-contract-C51YG48G.js → raw-temporal-contract-WuXA8jBP.js} +1 -1
- package/dist/chunks/{raw-temporal-presentation-C3mUgnEx.js → raw-temporal-presentation-CBzrDOjM.js} +8 -8
- package/dist/chunks/{report-preferences-dialog-DUtuUL_5.js → report-preferences-dialog-4QEZWe5U.js} +111 -112
- package/dist/chunks/{report-runtime-context-Dq8XyODK.js → report-runtime-context-hWiTCzFV.js} +2 -2
- package/dist/chunks/resolve-dashboard-input-context-UpK_LBpL.js +5677 -0
- package/dist/chunks/{saved-dashboard-context-LrF_kW0l.js → saved-dashboard-context-D_I3Lxk0.js} +34 -34
- package/dist/chunks/{selection-reducer-Dj_8xD69.js → selection-reducer-CJzkTZio.js} +15 -15
- package/dist/chunks/{semaphor-ready-indicator-BxF96Yhv.js → semaphor-ready-indicator-4zpRHE-X.js} +45823 -47304
- package/dist/chunks/{shelf-drop-preview-context-CNaM_Gmh.js → shelf-drop-preview-context-Cfw7TRAx.js} +84 -84
- package/dist/chunks/{source-entity-resolution-BYn9giz3.js → source-entity-resolution-BIGRvtbG.js} +13 -13
- package/dist/chunks/{switch-uDtPgQlQ.js → switch-CEBOR4n7.js} +3 -3
- package/dist/chunks/{table-export-sheet-YzMioA7Y.js → table-export-sheet-4X9mAG3V.js} +1 -1
- package/dist/chunks/table-settings-CunhoDUi.js +605 -0
- package/dist/chunks/{temporal-bucket-D7NBrrtL.js → temporal-bucket-CQOSbv9-.js} +26 -26
- package/dist/chunks/{token-types-DBbZVQsm.js → token-types-BMqRmT-C.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-CjB7ig1o.js → use-create-flow-overlay-state-DZBZiiD-.js} +101 -101
- package/dist/chunks/{validators-DMHTpf7a.js → validators-C-aOQlTB.js} +713 -658
- package/dist/chunks/{relative-date-label-Bk2j94pA.js → zoned-wall-clock-MulfA26h.js} +64 -21
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1802 -1149
- package/dist/data-app-sdk/index.js +6 -6
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +14 -14
- package/dist/format-utils/index.js +133 -133
- package/dist/index.js +192 -186
- package/dist/layouts/index.js +5 -242
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/shared/index.js +4 -5
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/surfboard/arrange-layout-button.d.ts +8 -0
- package/dist/types/components/surfboard/screen-size-preview-button.d.ts +7 -0
- package/dist/types/index.js +6 -6
- package/dist/types/lib/charts/table-chart-types.d.ts +4 -0
- package/dist/types/lib/charts/types.d.ts +2 -2
- package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +6 -0
- package/dist/types/lib/dashboard-inputs/filter-settings.d.ts +2 -0
- package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +15 -0
- package/dist/types/lib/matrix-table/matrix-editor.d.ts +52 -0
- package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +69 -0
- package/dist/types/lib/stores/dashboard-store.d.ts +125 -6
- package/dist/types/lib/types/common-types.d.ts +8 -0
- package/dist/types/lib/types/explorer-types.d.ts +10 -0
- package/dist/types/lib/types/semantic-types.d.ts +84 -0
- package/dist/types/lib/utils/build-saved-editor-card.d.ts +20 -0
- package/dist/types/lib/utils/card-type-change.d.ts +16 -0
- package/dist/types/lib/utils/field-availability-context.d.ts +25 -0
- package/dist/types/lib/utils/field-placement.d.ts +96 -0
- package/dist/types/lib/utils/field-state-calculator.d.ts +161 -0
- package/dist/types/lib/utils/qualified-entity-name.d.ts +2 -0
- package/dist/types/shared/analytics-protocol/field-provenance.d.ts +89 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +2 -0
- package/dist/types/shared/analytics-protocol/query-policies.d.ts +52 -0
- package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/time-window.d.ts +40 -1
- package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +4 -1
- package/dist/types/shared/assistant-protocol/answer-text.d.ts +20 -0
- package/dist/types/shared/assistant-protocol/context.d.ts +21 -21
- package/dist/types/shared/assistant-protocol/index.d.ts +1 -0
- package/dist/types/shared/assistant-protocol/limits.d.ts +6 -1
- package/dist/types/shared/assistant-protocol/parts.d.ts +43 -3
- package/dist/types/shared/assistant-protocol/request.d.ts +14 -2
- package/dist/types/shared/dashboard-authoring/calculated-field-identity.d.ts +3 -0
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +487 -0
- package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +34 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +7886 -0
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +43 -0
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +54 -0
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +89 -0
- package/dist/types/shared/dashboard-authoring/column-catalog.d.ts +32 -0
- package/dist/types/shared/dashboard-authoring/contracts.d.ts +0 -55
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +24 -14
- package/dist/types/shared/dashboard-authoring/dashboard-card-source-index.d.ts +9 -1
- package/dist/types/shared/dashboard-authoring/dashboard-input-scope.d.ts +26 -0
- package/dist/types/shared/dashboard-authoring/filter-applicability.d.ts +75 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +18 -2
- package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +10 -37
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +189 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +94 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +78 -0
- package/dist/types/shared/dashboard-authoring/validators.d.ts +1 -2
- package/dist/types/shared/layouts/engine/grid.d.ts +25 -0
- package/dist/types/shared/layouts/engine/index.d.ts +4 -0
- package/dist/types/shared/layouts/engine/sheet-layout.d.ts +7 -0
- package/dist/types/shared/layouts/engine/types.d.ts +125 -0
- package/dist/types/shared/layouts/index.d.ts +1 -2
- package/package.json +2 -2
- package/dist/chunks/apply-dashboard-operations-CZEMsx8E.js +0 -2080
- package/dist/chunks/calendar-day-equality-dvoQp1xW.js +0 -410
- package/dist/chunks/comparison-window-caption-D4E6IHPD.js +0 -1624
- package/dist/chunks/custom-visual-inputs-DLCD9Y5V.js +0 -329
- package/dist/chunks/dashboard-briefing-launcher-CePgIu0Z.js +0 -3720
- package/dist/chunks/dashboard-controls-Cq05n3e0.js +0 -2315
- package/dist/chunks/dashboard-filter-value-compatibility-CwQ_iSNb.js +0 -108
- package/dist/chunks/matrix-analytical-definition-C7Gb0e12.js +0 -117
- package/dist/chunks/normalize-dashboard-for-dirty-check-Bk3VYv_q.js +0 -67
- package/dist/chunks/numeric-presentation-7X_IrD58.js +0 -5226
- package/dist/chunks/resolve-dashboard-input-context-DJ2tICwz.js +0 -9415
- package/dist/chunks/stable-serialize-CfqXeiBP.js +0 -6
- package/dist/chunks/table-settings-CLZocegs.js +0 -501
- package/dist/chunks/use-debounced-dirty-check-BwAbnX_5.js +0 -59
- package/dist/chunks/zoned-wall-clock-BkxV9jS2.js +0 -46
- package/dist/types/shared/dashboard-authoring/change-compiler.d.ts +0 -7
- package/dist/types/shared/dashboard-authoring/layout-compiler.d.ts +0 -2
- package/dist/types/shared/layouts/create-frame-layouts.d.ts +0 -27
- package/dist/types/shared/layouts/frame-layouts.d.ts +0 -23
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var Ve = (e, t, r) => t in e ?
|
|
1
|
+
var Ke = Object.defineProperty;
|
|
2
|
+
var Ve = (e, t, r) => t in e ? Ke(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var O = (e, t, r) => Ve(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import {
|
|
5
|
-
import { canonicalizeSupportedLocale as _, canonicalizeSupportedCurrencyCode as
|
|
6
|
-
import { i as F } from "./analytics-base-schemas-
|
|
7
|
-
import { p as Be } from "./raw-temporal-contract-
|
|
4
|
+
import { aP as we, aQ as Ge } from "./validators-C-aOQlTB.js";
|
|
5
|
+
import { canonicalizeSupportedLocale as _, canonicalizeSupportedCurrencyCode as q } from "../value-format-preferences/index.js";
|
|
6
|
+
import { i as F } from "./analytics-base-schemas-BKs3flFS.js";
|
|
7
|
+
import { p as Be } from "./raw-temporal-contract-WuXA8jBP.js";
|
|
8
8
|
function We(e) {
|
|
9
9
|
if (!e || typeof e != "object") return !1;
|
|
10
10
|
const t = e.type;
|
|
@@ -19,7 +19,7 @@ const xe = [
|
|
|
19
19
|
"minute",
|
|
20
20
|
"second",
|
|
21
21
|
"millisecond"
|
|
22
|
-
],
|
|
22
|
+
], K = {
|
|
23
23
|
day: 864e5,
|
|
24
24
|
hour: 36e5,
|
|
25
25
|
minute: 6e4,
|
|
@@ -52,13 +52,13 @@ function et(e, t) {
|
|
|
52
52
|
return xe.slice(a, i + 1);
|
|
53
53
|
}
|
|
54
54
|
function tt(e, t) {
|
|
55
|
-
return e *
|
|
55
|
+
return e * K[ve(t, "second")];
|
|
56
56
|
}
|
|
57
57
|
function rt(e, t) {
|
|
58
|
-
const r = et(t.largestUnit, t.smallestUnit), n = r[r.length - 1], a =
|
|
58
|
+
const r = et(t.largestUnit, t.smallestUnit), n = r[r.length - 1], a = K[n];
|
|
59
59
|
let i = Math.round(e / a) * a;
|
|
60
60
|
return r.map((s) => {
|
|
61
|
-
const c =
|
|
61
|
+
const c = K[s], o = Math.floor(i / c);
|
|
62
62
|
return i -= o * c, { unit: s, value: o };
|
|
63
63
|
});
|
|
64
64
|
}
|
|
@@ -711,7 +711,7 @@ function It(e) {
|
|
|
711
711
|
});
|
|
712
712
|
const n = e.locale === void 0 ? void 0 : _(e.locale);
|
|
713
713
|
e.locale !== void 0 && !n && t.push({ path: "locale", message: "Expected a supported BCP 47 locale." });
|
|
714
|
-
const a = e.currency === void 0 ? void 0 :
|
|
714
|
+
const a = e.currency === void 0 ? void 0 : q(e.currency);
|
|
715
715
|
e.currency !== void 0 && !a && t.push({
|
|
716
716
|
path: "currency",
|
|
717
717
|
message: "Expected a supported ISO 4217 currency code."
|
|
@@ -840,14 +840,14 @@ function Ct(e) {
|
|
|
840
840
|
};
|
|
841
841
|
}
|
|
842
842
|
function Or(e, t, r) {
|
|
843
|
-
const n = _(e.locale) ?? t.locale, a = e.type === "number" || e.type === "currency" ?
|
|
843
|
+
const n = _(e.locale) ?? t.locale, a = e.type === "number" || e.type === "currency" ? q(r) : void 0;
|
|
844
844
|
if (!(e.type === "currency" || a !== void 0))
|
|
845
845
|
return {
|
|
846
846
|
...e,
|
|
847
847
|
locale: n,
|
|
848
848
|
...Ct(e)
|
|
849
849
|
};
|
|
850
|
-
const s = a ??
|
|
850
|
+
const s = a ?? q(e.currency) ?? t.defaultCurrency, c = Ft(
|
|
851
851
|
n,
|
|
852
852
|
s
|
|
853
853
|
), o = c.minimumFractionDigits ?? 0, u = c.maximumFractionDigits ?? o, l = e.minimumFractionDigits ?? Math.min(
|
|
@@ -1218,7 +1218,7 @@ function Lr(e) {
|
|
|
1218
1218
|
};
|
|
1219
1219
|
return Re(s);
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1221
|
+
function qt(e) {
|
|
1222
1222
|
if (Pe.test(e)) return "date";
|
|
1223
1223
|
if (Oe.test(e)) return "instant";
|
|
1224
1224
|
if (Ae.test(e)) return "wall_datetime";
|
|
@@ -1229,7 +1229,7 @@ function Rr(e) {
|
|
|
1229
1229
|
for (const n of e.values) {
|
|
1230
1230
|
if (n === null) continue;
|
|
1231
1231
|
r = !0;
|
|
1232
|
-
const a =
|
|
1232
|
+
const a = qt(n);
|
|
1233
1233
|
a && t.add(a);
|
|
1234
1234
|
}
|
|
1235
1235
|
if (!r) return { status: "empty" };
|
|
@@ -1258,7 +1258,7 @@ function Hr(e) {
|
|
|
1258
1258
|
)
|
|
1259
1259
|
};
|
|
1260
1260
|
}
|
|
1261
|
-
function
|
|
1261
|
+
function Kt(e) {
|
|
1262
1262
|
if (!g(e) || e.version !== 1 || !g(e.columns) || Object.keys(e).some((n) => n !== "version" && n !== "columns"))
|
|
1263
1263
|
throw new w(
|
|
1264
1264
|
"invalid_raw_temporal_format",
|
|
@@ -1283,7 +1283,7 @@ function qt(e) {
|
|
|
1283
1283
|
}
|
|
1284
1284
|
function Zr(e) {
|
|
1285
1285
|
if (e.length === 0) return;
|
|
1286
|
-
const t = e.map(
|
|
1286
|
+
const t = e.map(Kt), r = Object.keys(t[0].columns).sort();
|
|
1287
1287
|
for (let n = 1; n < t.length; n += 1) {
|
|
1288
1288
|
const a = Object.keys(t[n].columns).sort();
|
|
1289
1289
|
if (a.length !== r.length || a.some((i, s) => i !== r[s]))
|
|
@@ -1594,7 +1594,7 @@ function nr(e) {
|
|
|
1594
1594
|
};
|
|
1595
1595
|
};
|
|
1596
1596
|
}
|
|
1597
|
-
function
|
|
1597
|
+
function qr(e) {
|
|
1598
1598
|
return nr({
|
|
1599
1599
|
metadata: e.metadata,
|
|
1600
1600
|
format: e.format
|
|
@@ -1701,7 +1701,7 @@ function je(e, t) {
|
|
|
1701
1701
|
`Canonical value ${e} is not aligned to ${t.granularity} granularity and its governed Calendar.`
|
|
1702
1702
|
);
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1704
|
+
function Kr(e) {
|
|
1705
1705
|
const { granularity: t, calendar: r } = e, n = (s, c) => new Intl.DateTimeFormat("en-US", { ...s, timeZone: "UTC" }).format(c), a = [`by ${t} in the ${r.tz} calendar`];
|
|
1706
1706
|
t === "week" && a.push(`weeks starting on ${n({ weekday: "long" }, new Date(Date.UTC(2023, 0, 1 + r.weekStart)))}`);
|
|
1707
1707
|
const i = A(e);
|
|
@@ -1798,12 +1798,12 @@ function dr(e, t) {
|
|
|
1798
1798
|
const r = !!t.calendar.fiscalCalendar;
|
|
1799
1799
|
return e === "fiscal_quarter_short" || e === "fiscal_year" ? r : e === "quarter_short" || e === "quarter_long" ? !r : !0;
|
|
1800
1800
|
}
|
|
1801
|
-
function
|
|
1801
|
+
function qe(e, t) {
|
|
1802
1802
|
return ze(e, t.granularity).ok ? e.presentation.mode === "preset" ? dr(e.presentation.preset, t) : !(e.presentation.mode === "pattern" && t.calendar.fiscalCalendar && (t.granularity === "quarter" || t.granularity === "year")) : !1;
|
|
1803
1803
|
}
|
|
1804
1804
|
function pe(e, t) {
|
|
1805
1805
|
if (!(!e || e.presentation.mode === "auto"))
|
|
1806
|
-
return
|
|
1806
|
+
return qe(e, t) ? { type: "temporal_bucket", presentation: e.presentation } : void 0;
|
|
1807
1807
|
}
|
|
1808
1808
|
function Vr(e) {
|
|
1809
1809
|
var a;
|
|
@@ -1980,7 +1980,7 @@ function Gr(e, t) {
|
|
|
1980
1980
|
}
|
|
1981
1981
|
function Br(e) {
|
|
1982
1982
|
const t = fr(e.format);
|
|
1983
|
-
if (!t.ok || !
|
|
1983
|
+
if (!t.ok || !qe(t.value, e.metadata))
|
|
1984
1984
|
throw new I(
|
|
1985
1985
|
"invalid_temporal_bucket_format",
|
|
1986
1986
|
"Resolved temporal bucket format is invalid or inapplicable to its metadata."
|
|
@@ -2018,17 +2018,17 @@ function Br(e) {
|
|
|
2018
2018
|
export {
|
|
2019
2019
|
I as A,
|
|
2020
2020
|
je as B,
|
|
2021
|
-
|
|
2021
|
+
Kr as C,
|
|
2022
2022
|
ar as D,
|
|
2023
2023
|
fr as E,
|
|
2024
2024
|
Vr as F,
|
|
2025
2025
|
Gr as G,
|
|
2026
2026
|
Re as H,
|
|
2027
|
-
|
|
2027
|
+
qt as I,
|
|
2028
2028
|
Hr as J,
|
|
2029
|
-
|
|
2029
|
+
Kt as K,
|
|
2030
2030
|
Zr as L,
|
|
2031
|
-
|
|
2031
|
+
qr as M,
|
|
2032
2032
|
Cr as N,
|
|
2033
2033
|
Fr as O,
|
|
2034
2034
|
g as P,
|