react-semaphor 0.1.583 → 0.1.585
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 +470 -428
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +7 -7
- package/dist/briefings/index.js +4 -4
- package/dist/chunks/aggregate-measure-field-DsFXETpI.js +22 -0
- package/dist/chunks/{assistant-chat-D3fm5qod.js → assistant-chat-BdbLmAnK.js} +12 -12
- package/dist/chunks/{bookmark-impact-Dpxl46Wd.js → bookmark-impact-BhT3k379.js} +2 -2
- package/dist/chunks/{bookmark-state-BEl_G9vr.js → bookmark-state-CL4WEpgB.js} +22 -22
- package/dist/chunks/{card-filter-builder-IxkFVxy2.js → card-filter-builder-CEcKF6Fw.js} +124 -124
- package/dist/chunks/comparison-window-caption-CoART8BC.js +1254 -0
- package/dist/chunks/{dashboard-BMqG98fc.js → dashboard-MPku_x1M.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-D45YfCkm.js → dashboard-briefing-launcher-CkFNlkr1.js} +13 -13
- package/dist/chunks/{dashboard-controls-DOvZRfof.js → dashboard-controls-Clt4ovXS.js} +84 -84
- package/dist/chunks/{dashboard-json-B_4TqF_o.js → dashboard-json-DSmXazIg.js} +4 -4
- package/dist/chunks/{dates-44_rcNj2.js → dates-CYZW9owO.js} +8 -8
- package/dist/chunks/{edit-dashboard-visual-BBPKJWSe.js → edit-dashboard-visual-Dn2ECRbX.js} +2752 -2687
- package/dist/chunks/filter-line-Cu2u1K36.js +131 -0
- package/dist/chunks/{filter-reach-copy-DWPq4Swi.js → filter-reach-copy-CmJpPa4G.js} +1745 -1326
- package/dist/chunks/{filter-value-text-DXGYypEd.js → filter-value-text-xefXzZlf.js} +6 -6
- package/dist/chunks/{index-DPRzcFp0.js → index-0WYn6RMz.js} +37 -37
- package/dist/chunks/{layout-grid-8rR-LPTk.js → layout-grid-9nSS2SL-.js} +1 -1
- package/dist/chunks/{list-filter-C1-uTgjR.js → list-filter-CfMPI6v4.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-D_HgptqZ.js → matrix-analytical-definition-QjBgUYhP.js} +382 -544
- package/dist/chunks/{matrix-member-presentation-DRa-9e6Q.js → matrix-member-presentation-BKDyxJho.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-DCVinw1o.js → matrix-operation-contract-BM5TveR3.js} +153 -147
- package/dist/chunks/{metric-comparison-n9NsIa-2.js → metric-comparison-ZmurmEIs.js} +3 -3
- package/dist/chunks/{paintbrush-aR17Z3C9.js → paintbrush-LzAje2ff.js} +1 -1
- package/dist/chunks/{palette-a5FCZKFI.js → palette-DicJG0TC.js} +1 -1
- package/dist/chunks/{pivot-header-presentation-MvvlxtIB.js → pivot-header-presentation-CdeTU96P.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-8tuNjRvG.js → pivot-result-contract-expectations-Bx_BCu-7.js} +1029 -1010
- package/dist/chunks/{pivot-result-identity-B89X5xjb.js → pivot-result-identity-Bvs6Uq3v.js} +1 -1
- package/dist/chunks/raw-temporal-value-DH-feMc2.js +322 -0
- package/dist/chunks/{report-preferences-dialog-B8PhISua.js → report-preferences-dialog-BRaeufEi.js} +63 -62
- package/dist/chunks/{report-runtime-context-BhPzLTbS.js → report-runtime-context-NlOXwyRB.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-BfT8y5xL.js → resolve-dashboard-input-context-Cn9jumxl.js} +4924 -4823
- package/dist/chunks/{save-D985VvYp.js → save-0wu1Z1U7.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-DH91-2B9.js → saved-dashboard-context-CfqkUMzR.js} +6 -6
- package/dist/chunks/selection-filter-compiler-BReJy-uv.js +92 -0
- package/dist/chunks/{semaphor-ready-indicator-Cg_Z2IDc.js → semaphor-ready-indicator-D6WjdTGl.js} +48377 -47074
- package/dist/chunks/{shelf-drop-preview-context-C7-BgcP4.js → shelf-drop-preview-context-Bbbrr9u4.js} +5 -5
- package/dist/chunks/{stored-dashboard-BpyCiE49.js → stored-dashboard-sPkTjxYf.js} +210 -221
- package/dist/chunks/{style-sheet-parts-C7qGZuH1.js → style-sheet-parts-_dGSFzDi.js} +2 -2
- package/dist/chunks/{table-export-sheet-wBkk17aa.js → table-export-sheet-Dmtqi5NV.js} +1 -1
- package/dist/chunks/{token-types-iKMplaBL.js → token-types-DEe_FP4l.js} +1 -1
- package/dist/chunks/{upload-CiGNKJ_0.js → upload-CtyOkU_B.js} +1 -1
- package/dist/chunks/{validators-B8fpdinG.js → validators-CJ8Jh0E8.js} +2 -2
- package/dist/chunks/{variable-draft-D8GFhAkm.js → variable-draft-D1RotIEG.js} +4 -4
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +670 -647
- package/dist/format-utils/index.js +218 -215
- package/dist/index.js +234 -231
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/visual/data-table/types/data-table.d.ts +3 -0
- package/dist/types/components/visual/matrix-table/matrix-interaction-actions.d.ts +24 -3
- package/dist/types/index.js +5 -5
- package/dist/types/lib/hooks/interactions/use-drill-actions.d.ts +1 -1
- package/dist/types/lib/interactions/get-click-context-from-chartjs.d.ts +9 -0
- package/dist/types/lib/matrix-table/matrix-runtime.d.ts +8 -3
- package/dist/types/lib/query-context/compile-selection-filters.d.ts +1 -5
- package/dist/types/lib/see-records/click.d.ts +79 -0
- package/dist/types/lib/see-records/see-records-offer.d.ts +25 -0
- package/dist/types/lib/see-records/use-see-records-offer.d.ts +16 -0
- package/dist/types/lib/types/common-types.d.ts +6 -0
- package/dist/types/shared/analytics-protocol/aggregate-expression.d.ts +7 -0
- package/dist/types/shared/analytics-protocol/aggregate-measure-field.d.ts +13 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +1 -0
- package/dist/types/shared/analytics-protocol/selection-filter-compiler.d.ts +3 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +6 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/index.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/kpi-date-context.d.ts +191 -0
- package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/see-records/availability.d.ts +30 -0
- package/dist/types/shared/dashboard-authoring/see-records/click.d.ts +37 -0
- package/dist/types/shared/dashboard-authoring/see-records/index.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/see-records/limits.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/see-records/measure-kind.d.ts +49 -0
- package/dist/types/shared/dashboard-authoring/see-records/request.d.ts +28 -0
- package/dist/types/shared/dashboard-authoring/see-records/result.d.ts +94 -0
- package/dist/types/shared/format-utils/semantic-format.d.ts +0 -1
- package/dist/types/shared/format-utils/temporal-bucket.d.ts +20 -0
- package/dist/types/shared/temporal/calendar-periods.d.ts +15 -0
- package/dist/types/shared/temporal/raw-temporal-equality.d.ts +14 -0
- package/dist/types/shared/usage-events/envelope.d.ts +4 -4
- package/package.json +1 -1
- package/dist/chunks/comparison-window-caption-sRFtnX1q.js +0 -1371
- package/dist/chunks/raw-temporal-value-DdT0s47W.js +0 -159
- package/dist/chunks/selection-filter-compiler-CUDRnUxc.js +0 -80
package/dist/chunks/{report-preferences-dialog-B8PhISua.js → report-preferences-dialog-BRaeufEi.js}
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as i, Fragment as te, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import * as p from "react";
|
|
3
3
|
import Mt, { useMemo as ee, useState as F, useEffect as Z, lazy as Ie, Suspense as Se, useRef as H, useLayoutEffect as Ce, useCallback as W, Activity as jt, useId as de } from "react";
|
|
4
|
-
import { b as Bt,
|
|
4
|
+
import { b as Bt, b2 as qe, be as $t, bf as Vt, u as O, bg as bt, N as Wt, K as Kt, bh as qt, bi as Ht, bj as Gt, bk as Jt, bl as ge, bm as vt, bn as Qe, bo as Xt, a7 as ye, a6 as Zt, bp as Yt, bq as Qt, a8 as et, a9 as ea, br as ta, E as aa, F as ra, S as na, B as sa, a as la, U as ia, bs as oa, D as da, A as ca, C as ua, bt as ma, bu as fa, bv as ha, bw as pa, bx as ba, by as va, bz as tt, bA as ke, bB as ga, bC as He, bD as G, bE as ya, bF as wa, bG as Sa, bH as xa, bI as Ca } from "./semaphor-ready-indicator-D6WjdTGl.js";
|
|
5
5
|
import { j as Ea, c as j } from "./pickers-DkqmtnTL.js";
|
|
6
|
-
import { J as Ia } from "./bookmark-state-
|
|
6
|
+
import { J as Ia } from "./bookmark-state-CL4WEpgB.js";
|
|
7
7
|
import { r as Na, a as gt } from "./availability-Bp5Gfu1I.js";
|
|
8
|
-
import { s as Ta } from "./resolve-dashboard-input-context-
|
|
9
|
-
import { B as K, Z as ka, _ as Aa, $ as Da, a0 as Ra, a1 as Pa, a2 as _a, a3 as ie, H as Q, a4 as he, s as pe, e as La, f as za, h as Fa, j as at, L as yt, y as Fe, z as
|
|
10
|
-
import "./validators-
|
|
11
|
-
import "./matrix-operation-contract-
|
|
8
|
+
import { s as Ta } from "./resolve-dashboard-input-context-Cn9jumxl.js";
|
|
9
|
+
import { B as K, Z as ka, _ as Aa, $ as Da, a0 as Ra, a1 as Pa, a2 as _a, a3 as ie, H as Q, a4 as he, s as pe, e as La, f as za, h as Fa, j as at, L as yt, y as Fe, z as Ue, A as Oe, D as Me, E as X, T as Ua, k as Oa, l as rt, n as nt } from "./style-sheet-parts-_dGSFzDi.js";
|
|
10
|
+
import "./validators-CJ8Jh0E8.js";
|
|
11
|
+
import "./matrix-operation-contract-BM5TveR3.js";
|
|
12
12
|
import "./analytics-base-schemas-BaIQrEzX.js";
|
|
13
13
|
import { parseValueFormatPreferencesResponse as Ma, canonicalizeSupportedLocale as wt, getSupportedCurrencyCodes as ja, canonicalizeSupportedCurrencyCode as Ba } from "../value-format-preferences/index.js";
|
|
14
|
-
import { e as $a } from "./filter-reach-copy-
|
|
15
|
-
import { a as Va } from "./report-runtime-context-
|
|
16
|
-
import {
|
|
14
|
+
import { e as $a } from "./filter-reach-copy-CmJpPa4G.js";
|
|
15
|
+
import { a as Va } from "./report-runtime-context-NlOXwyRB.js";
|
|
16
|
+
import { aq as we, ax as ce } from "./pivot-result-contract-expectations-Bx_BCu-7.js";
|
|
17
17
|
function Wa() {
|
|
18
18
|
return /* @__PURE__ */ i(
|
|
19
19
|
"div",
|
|
@@ -83,8 +83,8 @@ function Za(e) {
|
|
|
83
83
|
const a = (n, r) => {
|
|
84
84
|
const l = e.store.getState().focus;
|
|
85
85
|
l && !Ya(l, n, r) && e.clearFocus();
|
|
86
|
-
}, t =
|
|
87
|
-
return a(t.selectedSheetId, t.dashboard),
|
|
86
|
+
}, t = O.getState();
|
|
87
|
+
return a(t.selectedSheetId, t.dashboard), O.subscribe((n, r) => {
|
|
88
88
|
(n.selectedSheetId !== r.selectedSheetId || n.dashboard !== r.dashboard) && a(n.selectedSheetId, n.dashboard), n.isVisualEditing && !r.isVisualEditing && e.leaveBeside();
|
|
89
89
|
});
|
|
90
90
|
}, [e]);
|
|
@@ -94,7 +94,7 @@ function Ya(e, a, t) {
|
|
|
94
94
|
const n = t ? Ia(t, e.cardId) : void 0;
|
|
95
95
|
return !!n && n.sheet.id === e.sheetId;
|
|
96
96
|
}
|
|
97
|
-
const Qa = Ie(() => import("./assistant-chat-
|
|
97
|
+
const Qa = Ie(() => import("./assistant-chat-BdbLmAnK.js"));
|
|
98
98
|
function vn() {
|
|
99
99
|
const e = Wt(), a = Kt();
|
|
100
100
|
if (!e.available) return null;
|
|
@@ -139,7 +139,7 @@ function rr({ surface: e = "dashboard" } = {}) {
|
|
|
139
139
|
askCount: y.askCount
|
|
140
140
|
};
|
|
141
141
|
})
|
|
142
|
-
), w = e === "none", c =
|
|
142
|
+
), w = e === "none", c = O(
|
|
143
143
|
(y) => s && t && f && !w ? nr(y.dashboard, y.selectedSheetId, f) : void 0
|
|
144
144
|
), v = sr(c, u);
|
|
145
145
|
if (!(a != null && a.available) || !n && !w) return null;
|
|
@@ -346,7 +346,7 @@ function dr(e) {
|
|
|
346
346
|
const a = Xt();
|
|
347
347
|
return W(
|
|
348
348
|
async (t, n) => {
|
|
349
|
-
const r =
|
|
349
|
+
const r = O.getState();
|
|
350
350
|
if (r.isVisualEditing)
|
|
351
351
|
return { ok: !1, reason: "not_editable", message: ye.not_editable };
|
|
352
352
|
if (!e()) return { ok: !1, reason: "not_editable", message: ye.no_save };
|
|
@@ -361,18 +361,18 @@ function dr(e) {
|
|
|
361
361
|
});
|
|
362
362
|
Zt(s, f);
|
|
363
363
|
}
|
|
364
|
-
return n != null && n.stillWanted && !n.stillWanted() ? { ok: !1, reason: "dropped" } : e() ?
|
|
364
|
+
return n != null && n.stillWanted && !n.stillWanted() ? { ok: !1, reason: "dropped" } : e() ? O.getState().actions.applyProposal({ ...t, semanticExecutionPayload: s }) : { ok: !1, reason: "not_editable", message: ye.no_save };
|
|
365
365
|
},
|
|
366
366
|
[e, a]
|
|
367
367
|
);
|
|
368
368
|
}
|
|
369
369
|
function cr(e) {
|
|
370
|
-
const { canEditDashboard: a, isInspectionMode: t } = Yt(), n = Qt(), r =
|
|
370
|
+
const { canEditDashboard: a, isInspectionMode: t } = Yt(), n = Qt(), r = O(et), l = e && n && a === !0 && !t, s = H(l);
|
|
371
371
|
Ce(() => {
|
|
372
372
|
s.current = l;
|
|
373
373
|
});
|
|
374
374
|
const o = W(
|
|
375
|
-
() => s.current && et(
|
|
375
|
+
() => s.current && et(O.getState()),
|
|
376
376
|
[]
|
|
377
377
|
);
|
|
378
378
|
return { canChange: l && r, canChangeNow: o };
|
|
@@ -392,7 +392,7 @@ function ur({
|
|
|
392
392
|
port: e,
|
|
393
393
|
onLifecycleEvent: a
|
|
394
394
|
}) {
|
|
395
|
-
const { canChange: t, canChangeNow: n } = cr(!0), r =
|
|
395
|
+
const { canChange: t, canChangeNow: n } = cr(!0), r = O((m) => {
|
|
396
396
|
var S;
|
|
397
397
|
return (S = m.dashboard) == null ? void 0 : S.id;
|
|
398
398
|
}), l = dr(n), [s, o] = F(null), f = H(/* @__PURE__ */ new Map()), u = H(/* @__PURE__ */ new Map()), w = H(Promise.resolve()), c = H({ apply: l, onLifecycleEvent: a });
|
|
@@ -401,7 +401,7 @@ function ur({
|
|
|
401
401
|
}), Z(() => {
|
|
402
402
|
e.setScreenState({ eligible: t, ...r ? { dashboardId: r } : {} });
|
|
403
403
|
}, [e, t, r]), Z(
|
|
404
|
-
() =>
|
|
404
|
+
() => O.subscribe((m, S) => {
|
|
405
405
|
if (m.editSessionEpoch !== S.editSessionEpoch) {
|
|
406
406
|
f.current.clear(), o(null);
|
|
407
407
|
return;
|
|
@@ -413,7 +413,7 @@ function ur({
|
|
|
413
413
|
[]
|
|
414
414
|
), Z(() => {
|
|
415
415
|
const m = (b) => {
|
|
416
|
-
const y =
|
|
416
|
+
const y = O.getState().dashboard;
|
|
417
417
|
if (!y || y.id !== b.dashboardId) return;
|
|
418
418
|
const C = hr();
|
|
419
419
|
f.current.set(C, y), e.answerCopyRequest({
|
|
@@ -430,10 +430,10 @@ function ur({
|
|
|
430
430
|
e.reportOutcome({ screenId: e.screenId, deliveryId: b.deliveryId, outcome: C });
|
|
431
431
|
return;
|
|
432
432
|
}
|
|
433
|
-
const P = f.current.get(b.revisionId), z = () => !P || f.current.get(b.revisionId) !== P ? "dashboard_changed" : performance.now() < y + b.applyWithinMs ? null : "expired",
|
|
433
|
+
const P = f.current.get(b.revisionId), z = () => !P || f.current.get(b.revisionId) !== P ? "dashboard_changed" : performance.now() < y + b.applyWithinMs ? null : "expired", U = z();
|
|
434
434
|
let _;
|
|
435
|
-
if (
|
|
436
|
-
_ = xe(
|
|
435
|
+
if (U || !P)
|
|
436
|
+
_ = xe(U ?? "dashboard_changed");
|
|
437
437
|
else {
|
|
438
438
|
let E = "expired";
|
|
439
439
|
const q = await c.current.apply(
|
|
@@ -448,7 +448,7 @@ function ur({
|
|
|
448
448
|
_ = fr(q, E);
|
|
449
449
|
}
|
|
450
450
|
if (u.current.set(b.deliveryId, _), e.reportOutcome({ screenId: e.screenId, deliveryId: b.deliveryId, outcome: _ }), _.status !== "applied") return;
|
|
451
|
-
const N = ((g =
|
|
451
|
+
const N = ((g = O.getState().dashboard) == null ? void 0 : g.id) ?? "";
|
|
452
452
|
o({ deliveryId: b.deliveryId, proposalId: b.proposalId, summary: b.summary, dashboardId: N, words: null }), (D = (I = c.current).onLifecycleEvent) == null || D.call(I, {
|
|
453
453
|
type: "dashboard:change-applied",
|
|
454
454
|
dashboardId: N,
|
|
@@ -469,7 +469,7 @@ function ur({
|
|
|
469
469
|
const v = W(() => {
|
|
470
470
|
var S, b;
|
|
471
471
|
if (!s) return;
|
|
472
|
-
const m =
|
|
472
|
+
const m = O.getState().actions.undoProposal(s.proposalId);
|
|
473
473
|
m.ok ? ((b = (S = c.current).onLifecycleEvent) == null || b.call(S, {
|
|
474
474
|
type: "dashboard:change-undone",
|
|
475
475
|
dashboardId: s.dashboardId,
|
|
@@ -479,7 +479,7 @@ function ur({
|
|
|
479
479
|
return s ? /* @__PURE__ */ i(mr, { note: s, onUndo: v }) : null;
|
|
480
480
|
}
|
|
481
481
|
function mr({ note: e, onUndo: a }) {
|
|
482
|
-
const t =
|
|
482
|
+
const t = O((s) => ea(s, e.proposalId)), n = O((s) => s.isVisualEditing);
|
|
483
483
|
if (t === "none" && e.words === null) return null;
|
|
484
484
|
const r = e.words === "changed_since" || t === "changed_since", l = r ? "changed_since" : e.words === "not_editable" ? "not_editable" : t;
|
|
485
485
|
return /* @__PURE__ */ h(
|
|
@@ -536,16 +536,16 @@ function xe(e) {
|
|
|
536
536
|
function hr() {
|
|
537
537
|
return globalThis.crypto.randomUUID();
|
|
538
538
|
}
|
|
539
|
-
const pr = Ie(() => import("./dashboard-controls-
|
|
540
|
-
() => import("./edit-dashboard-visual-
|
|
541
|
-
), vr = Ie(() => import("./dashboard-json-
|
|
539
|
+
const pr = Ie(() => import("./dashboard-controls-Clt4ovXS.js")), br = Ie(
|
|
540
|
+
() => import("./edit-dashboard-visual-Dn2ECRbX.js")
|
|
541
|
+
), vr = Ie(() => import("./dashboard-json-DSmXazIg.js"));
|
|
542
542
|
function gn({
|
|
543
543
|
showControls: e = !1,
|
|
544
544
|
showFooter: a = !0,
|
|
545
545
|
liveScreen: t,
|
|
546
546
|
...n
|
|
547
547
|
}) {
|
|
548
|
-
const r =
|
|
548
|
+
const r = O((f) => f.isVisualEditing), l = O(
|
|
549
549
|
(f) => f.showDashboardJSON
|
|
550
550
|
), { appearance: s, preferences: o } = n;
|
|
551
551
|
return /* @__PURE__ */ i(aa, { FallbackComponent: ra, children: /* @__PURE__ */ i(na, { dashboardProps: n, children: /* @__PURE__ */ h(sa, { children: [
|
|
@@ -601,7 +601,7 @@ var me = '[cmdk-group=""]', Re = '[cmdk-group-items=""]', Tr = '[cmdk-group-head
|
|
|
601
601
|
let t = se(() => {
|
|
602
602
|
var d, T;
|
|
603
603
|
return { search: "", value: (T = (d = e.value) != null ? d : e.defaultValue) != null ? T : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
604
|
-
}), n = se(() => /* @__PURE__ */ new Set()), r = se(() => /* @__PURE__ */ new Map()), l = se(() => /* @__PURE__ */ new Map()), s = se(() => /* @__PURE__ */ new Set()), o = At(e), { label: f, children: u, value: w, onValueChange: c, filter: v, shouldFilter: m, loop: S, disablePointerSelection: b = !1, vimBindings: y = !0, ...C } = e, P = ie(), z = ie(),
|
|
604
|
+
}), n = se(() => /* @__PURE__ */ new Set()), r = se(() => /* @__PURE__ */ new Map()), l = se(() => /* @__PURE__ */ new Map()), s = se(() => /* @__PURE__ */ new Set()), o = At(e), { label: f, children: u, value: w, onValueChange: c, filter: v, shouldFilter: m, loop: S, disablePointerSelection: b = !1, vimBindings: y = !0, ...C } = e, P = ie(), z = ie(), U = ie(), _ = p.useRef(null), N = Mr();
|
|
605
605
|
ae(() => {
|
|
606
606
|
if (w !== void 0) {
|
|
607
607
|
let d = w.trim();
|
|
@@ -616,7 +616,7 @@ var me = '[cmdk-group=""]', Re = '[cmdk-group-items=""]', Tr = '[cmdk-group-head
|
|
|
616
616
|
if (t.current[d] = T, d === "search") $(), E(), N(1, q);
|
|
617
617
|
else if (d === "value") {
|
|
618
618
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
619
|
-
let M = document.getElementById(
|
|
619
|
+
let M = document.getElementById(U);
|
|
620
620
|
M ? M.focus() : (x = document.getElementById(P)) == null || x.focus();
|
|
621
621
|
}
|
|
622
622
|
if (N(7, () => {
|
|
@@ -647,7 +647,7 @@ var me = '[cmdk-group=""]', Re = '[cmdk-group-items=""]', Tr = '[cmdk-group-head
|
|
|
647
647
|
});
|
|
648
648
|
}), group: (d) => (r.current.has(d) || r.current.set(d, /* @__PURE__ */ new Set()), () => {
|
|
649
649
|
l.current.delete(d), r.current.delete(d);
|
|
650
|
-
}), filter: () => o.current.shouldFilter, label: f || e["aria-label"], getDisablePointerSelection: () => o.current.disablePointerSelection, listId: P, inputId:
|
|
650
|
+
}), filter: () => o.current.shouldFilter, label: f || e["aria-label"], getDisablePointerSelection: () => o.current.disablePointerSelection, listId: P, inputId: U, labelId: z, listInnerRef: _ }), []);
|
|
651
651
|
function D(d, T) {
|
|
652
652
|
var A, x;
|
|
653
653
|
let R = (x = (A = o.current) == null ? void 0 : A.filter) != null ? x : kr;
|
|
@@ -723,7 +723,7 @@ var me = '[cmdk-group=""]', Re = '[cmdk-group-items=""]', Tr = '[cmdk-group-head
|
|
|
723
723
|
}
|
|
724
724
|
function Je(d) {
|
|
725
725
|
let T = J(), A = T == null ? void 0 : T.closest(me), x;
|
|
726
|
-
for (; A && !x; ) A = d > 0 ?
|
|
726
|
+
for (; A && !x; ) A = d > 0 ? Ur(A, me) : Or(A, me), x = A == null ? void 0 : A.querySelector(ct);
|
|
727
727
|
x ? g.setState("value", x.getAttribute(ne)) : Te(d);
|
|
728
728
|
}
|
|
729
729
|
let Xe = () => oe(k().length - 1), Ze = (d) => {
|
|
@@ -791,7 +791,7 @@ var me = '[cmdk-group=""]', Re = '[cmdk-group-items=""]', Tr = '[cmdk-group-head
|
|
|
791
791
|
c.setState("value", w.current, !0);
|
|
792
792
|
}
|
|
793
793
|
if (!m) return null;
|
|
794
|
-
let { disabled: y, value: C, onSelect: P, forceMount: z, keywords:
|
|
794
|
+
let { disabled: y, value: C, onSelect: P, forceMount: z, keywords: U, ..._ } = e;
|
|
795
795
|
return p.createElement(Q.div, { ref: he(l, a), ..._, id: r, "cmdk-item": "", role: "option", "aria-disabled": !!y, "aria-selected": !!v, "data-disabled": !!y, "data-selected": !!v, onPointerMove: y || o.getDisablePointerSelection() ? void 0 : b, onClick: y ? void 0 : S }, e.children);
|
|
796
796
|
}), Dr = p.forwardRef((e, a) => {
|
|
797
797
|
let { heading: t, children: n, forceMount: r, ...l } = e, s = ie(), o = p.useRef(null), f = p.useRef(null), u = ie(), w = be(), c = Y((m) => r || w.filter() === !1 ? !0 : m.search ? m.filtered.groups.has(s) : !0);
|
|
@@ -830,14 +830,14 @@ var me = '[cmdk-group=""]', Re = '[cmdk-group-items=""]', Tr = '[cmdk-group-head
|
|
|
830
830
|
let { progress: t, children: n, label: r = "Loading...", ...l } = e;
|
|
831
831
|
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)));
|
|
832
832
|
}), B = Object.assign(kt, { List: _r, Item: Ar, Input: Pr, Group: Dr, Separator: Rr, Dialog: Lr, Empty: zr, Loading: Fr });
|
|
833
|
-
function
|
|
833
|
+
function Ur(e, a) {
|
|
834
834
|
let t = e.nextElementSibling;
|
|
835
835
|
for (; t; ) {
|
|
836
836
|
if (t.matches(a)) return t;
|
|
837
837
|
t = t.nextElementSibling;
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
|
-
function
|
|
840
|
+
function Or(e, a) {
|
|
841
841
|
let t = e.previousElementSibling;
|
|
842
842
|
for (; t; ) {
|
|
843
843
|
if (t.matches(a)) return t;
|
|
@@ -968,7 +968,7 @@ const Ve = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ i(
|
|
|
968
968
|
));
|
|
969
969
|
Ve.displayName = B.Item.displayName;
|
|
970
970
|
function $r(e = {}) {
|
|
971
|
-
const { authToken: a, tokenProps: t } = qe(), n =
|
|
971
|
+
const { authToken: a, tokenProps: t } = qe(), n = O(
|
|
972
972
|
(N) => N.actions.applyResolvedCalendarPreferences
|
|
973
973
|
), r = e.enabled ?? !0, l = (a == null ? void 0 : a.accessToken) ?? null, s = (t == null ? void 0 : t.apiServiceUrl) ?? null, [o, f] = F(!1), [u, w] = F(!1), [c, v] = F(!1), [m, S] = F(null), [b, y] = F(null), C = H(l);
|
|
974
974
|
C.current = l, Z(() => {
|
|
@@ -1006,7 +1006,7 @@ function $r(e = {}) {
|
|
|
1006
1006
|
Z(() => {
|
|
1007
1007
|
r && z();
|
|
1008
1008
|
}, [r, z]);
|
|
1009
|
-
const
|
|
1009
|
+
const U = W(
|
|
1010
1010
|
async (N) => {
|
|
1011
1011
|
if (!l || !s)
|
|
1012
1012
|
return S("Not authenticated"), !1;
|
|
@@ -1078,7 +1078,7 @@ function $r(e = {}) {
|
|
|
1078
1078
|
isSaving: u,
|
|
1079
1079
|
isClearing: c,
|
|
1080
1080
|
error: m,
|
|
1081
|
-
updatePreferences:
|
|
1081
|
+
updatePreferences: U,
|
|
1082
1082
|
clearPreferences: _,
|
|
1083
1083
|
refetch: z
|
|
1084
1084
|
};
|
|
@@ -1151,7 +1151,7 @@ function qr({
|
|
|
1151
1151
|
u
|
|
1152
1152
|
), [C, P] = F(
|
|
1153
1153
|
w
|
|
1154
|
-
), [z,
|
|
1154
|
+
), [z, U] = F(!1), _ = ee(() => Vr(), []), N = ee(
|
|
1155
1155
|
() => _.filter(
|
|
1156
1156
|
(k) => !Ee.some((oe) => oe.value === k)
|
|
1157
1157
|
),
|
|
@@ -1271,7 +1271,7 @@ function qr({
|
|
|
1271
1271
|
La,
|
|
1272
1272
|
{
|
|
1273
1273
|
open: z,
|
|
1274
|
-
onOpenChange:
|
|
1274
|
+
onOpenChange: U,
|
|
1275
1275
|
modal: !0,
|
|
1276
1276
|
children: [
|
|
1277
1277
|
/* @__PURE__ */ i(za, { asChild: !0, children: /* @__PURE__ */ h(
|
|
@@ -1303,7 +1303,7 @@ function qr({
|
|
|
1303
1303
|
{
|
|
1304
1304
|
value: `${k.value} ${k.label}`,
|
|
1305
1305
|
onSelect: () => {
|
|
1306
|
-
S(!0), y(k.value),
|
|
1306
|
+
S(!0), y(k.value), U(!1);
|
|
1307
1307
|
},
|
|
1308
1308
|
children: [
|
|
1309
1309
|
/* @__PURE__ */ i(
|
|
@@ -1327,7 +1327,7 @@ function qr({
|
|
|
1327
1327
|
{
|
|
1328
1328
|
value: k,
|
|
1329
1329
|
onSelect: () => {
|
|
1330
|
-
S(!0), y(k),
|
|
1330
|
+
S(!0), y(k), U(!1);
|
|
1331
1331
|
},
|
|
1332
1332
|
children: [
|
|
1333
1333
|
/* @__PURE__ */ i(
|
|
@@ -1411,7 +1411,7 @@ function qr({
|
|
|
1411
1411
|
] });
|
|
1412
1412
|
}
|
|
1413
1413
|
function Hr(e = {}) {
|
|
1414
|
-
const { authToken: a, tokenProps: t } = qe(), n =
|
|
1414
|
+
const { authToken: a, tokenProps: t } = qe(), n = O(
|
|
1415
1415
|
(g) => g.actions.applyResolvedValueFormatPreferences
|
|
1416
1416
|
), r = e.enabled ?? !0, l = (a == null ? void 0 : a.accessToken) ?? null, s = (t == null ? void 0 : t.apiServiceUrl) ?? null, o = H(l);
|
|
1417
1417
|
o.current = l;
|
|
@@ -1446,7 +1446,7 @@ function Hr(e = {}) {
|
|
|
1446
1446
|
return P(D);
|
|
1447
1447
|
},
|
|
1448
1448
|
[l, s, P]
|
|
1449
|
-
),
|
|
1449
|
+
), U = W(async () => {
|
|
1450
1450
|
if (!r || !l || !s) return;
|
|
1451
1451
|
const g = l;
|
|
1452
1452
|
c(!0), C(null);
|
|
@@ -1460,8 +1460,8 @@ function Hr(e = {}) {
|
|
|
1460
1460
|
}
|
|
1461
1461
|
}, [l, s, r, z]);
|
|
1462
1462
|
Z(() => {
|
|
1463
|
-
r &&
|
|
1464
|
-
}, [r,
|
|
1463
|
+
r && U();
|
|
1464
|
+
}, [r, U]);
|
|
1465
1465
|
const _ = W(
|
|
1466
1466
|
async (g) => {
|
|
1467
1467
|
const I = l;
|
|
@@ -1496,7 +1496,7 @@ function Hr(e = {}) {
|
|
|
1496
1496
|
error: y,
|
|
1497
1497
|
updatePreferences: _,
|
|
1498
1498
|
clearPreferences: N,
|
|
1499
|
-
refetch:
|
|
1499
|
+
refetch: U
|
|
1500
1500
|
};
|
|
1501
1501
|
}
|
|
1502
1502
|
const We = [
|
|
@@ -1510,9 +1510,10 @@ const We = [
|
|
|
1510
1510
|
{ value: "pt-BR", label: "Portuguese (Brazil)" },
|
|
1511
1511
|
{ value: "ja-JP", label: "Japanese (Japan)" },
|
|
1512
1512
|
{ value: "en-IN", label: "English (India)" },
|
|
1513
|
+
{ value: "en-AU", label: "English (Australia)" },
|
|
1513
1514
|
{ value: "en-NZ", label: "English (New Zealand)" },
|
|
1514
1515
|
{ value: "mi-NZ", label: "Māori (New Zealand)" }
|
|
1515
|
-
],
|
|
1516
|
+
], Ut = /* @__PURE__ */ new Set([
|
|
1516
1517
|
"USD",
|
|
1517
1518
|
"EUR",
|
|
1518
1519
|
"GBP",
|
|
@@ -1524,8 +1525,8 @@ const We = [
|
|
|
1524
1525
|
"BRL",
|
|
1525
1526
|
"KWD"
|
|
1526
1527
|
]), Gr = ja(), Jr = Gr.filter(
|
|
1527
|
-
(e) => !
|
|
1528
|
-
),
|
|
1528
|
+
(e) => !Ut.has(e)
|
|
1529
|
+
), Ot = [
|
|
1529
1530
|
{ value: "short", label: "Short" },
|
|
1530
1531
|
{ value: "medium", label: "Medium" },
|
|
1531
1532
|
{ value: "long", label: "Long" }
|
|
@@ -1550,7 +1551,7 @@ function Ke(e) {
|
|
|
1550
1551
|
}
|
|
1551
1552
|
function _e(e) {
|
|
1552
1553
|
var a;
|
|
1553
|
-
return ((a =
|
|
1554
|
+
return ((a = Ot.find((t) => t.value === e)) == null ? void 0 : a.label) ?? e;
|
|
1554
1555
|
}
|
|
1555
1556
|
function Xr(e) {
|
|
1556
1557
|
const a = We.find((t) => t.value === e);
|
|
@@ -1583,7 +1584,7 @@ function ze({
|
|
|
1583
1584
|
disabled: s,
|
|
1584
1585
|
onValueChange: o,
|
|
1585
1586
|
children: [
|
|
1586
|
-
/* @__PURE__ */ i(
|
|
1587
|
+
/* @__PURE__ */ i(Ue, { id: e, size: "xs", children: /* @__PURE__ */ i(Oe, { children: f }) }),
|
|
1587
1588
|
/* @__PURE__ */ h(Me, { children: [
|
|
1588
1589
|
/* @__PURE__ */ i(X, { 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: [
|
|
1589
1590
|
/* @__PURE__ */ h("span", { children: [
|
|
@@ -1595,7 +1596,7 @@ function ze({
|
|
|
1595
1596
|
] }),
|
|
1596
1597
|
/* @__PURE__ */ i("span", { className: "shrink-0 tabular-nums text-muted-foreground", children: l[n] })
|
|
1597
1598
|
] }) }),
|
|
1598
|
-
|
|
1599
|
+
Ot.map((u) => /* @__PURE__ */ i(
|
|
1599
1600
|
X,
|
|
1600
1601
|
{
|
|
1601
1602
|
value: u.value,
|
|
@@ -1664,7 +1665,7 @@ function Zr({
|
|
|
1664
1665
|
calendar: { tz: "UTC" }
|
|
1665
1666
|
})
|
|
1666
1667
|
}).text
|
|
1667
|
-
),
|
|
1668
|
+
), U = Le(
|
|
1668
1669
|
(E) => ce({
|
|
1669
1670
|
value: Pe,
|
|
1670
1671
|
metadata: { kind: "raw_temporal", valueKind: "wall_datetime" },
|
|
@@ -1706,7 +1707,7 @@ function Zr({
|
|
|
1706
1707
|
locale: E === "inherit" ? void 0 : E
|
|
1707
1708
|
}),
|
|
1708
1709
|
children: [
|
|
1709
|
-
/* @__PURE__ */ i(
|
|
1710
|
+
/* @__PURE__ */ i(Ue, { id: l, size: "xs", children: /* @__PURE__ */ i(Oe, { children: e.locale === void 0 ? `Inherited · ${a.locale}` : Xr(e.locale) }) }),
|
|
1710
1711
|
/* @__PURE__ */ h(Me, { children: [
|
|
1711
1712
|
/* @__PURE__ */ h(X, { value: "inherit", children: [
|
|
1712
1713
|
"Inherited from ",
|
|
@@ -1770,7 +1771,7 @@ function Zr({
|
|
|
1770
1771
|
value: (D = e.dateTime) == null ? void 0 : D.timeStyle,
|
|
1771
1772
|
inherited: a.dateTime.timeStyle,
|
|
1772
1773
|
inheritedSource: t.dateTime.timeStyle,
|
|
1773
|
-
examples:
|
|
1774
|
+
examples: U,
|
|
1774
1775
|
disabled: r,
|
|
1775
1776
|
onValueChange: (E) => _("timeStyle", E)
|
|
1776
1777
|
}
|
|
@@ -1795,7 +1796,7 @@ function Zr({
|
|
|
1795
1796
|
defaultCurrency: E === "inherit" ? void 0 : E
|
|
1796
1797
|
}),
|
|
1797
1798
|
children: [
|
|
1798
|
-
/* @__PURE__ */ i(
|
|
1799
|
+
/* @__PURE__ */ i(Ue, { id: s, size: "xs", children: /* @__PURE__ */ i(Oe, { children: e.defaultCurrency === void 0 ? `Inherited · ${a.defaultCurrency}` : e.defaultCurrency }) }),
|
|
1799
1800
|
/* @__PURE__ */ h(Me, { children: [
|
|
1800
1801
|
/* @__PURE__ */ h(X, { value: "inherit", children: [
|
|
1801
1802
|
"Inherited from ",
|
|
@@ -1804,7 +1805,7 @@ function Zr({
|
|
|
1804
1805
|
" ",
|
|
1805
1806
|
a.defaultCurrency
|
|
1806
1807
|
] }),
|
|
1807
|
-
[...
|
|
1808
|
+
[...Ut].map((E) => /* @__PURE__ */ i(X, { value: E, children: E }, E)),
|
|
1808
1809
|
Jr.map((E) => /* @__PURE__ */ i(X, { value: E, children: E }, E))
|
|
1809
1810
|
] })
|
|
1810
1811
|
]
|
|
@@ -1987,8 +1988,8 @@ function yn({
|
|
|
1987
1988
|
/* @__PURE__ */ i(xa, { className: "text-[15px]", children: "Report preferences" }),
|
|
1988
1989
|
/* @__PURE__ */ i(Ca, { className: "text-[13px] leading-5", children: "Set how values and Calendar periods appear for you." })
|
|
1989
1990
|
] }),
|
|
1990
|
-
/* @__PURE__ */ h(
|
|
1991
|
-
/* @__PURE__ */ h(
|
|
1991
|
+
/* @__PURE__ */ h(Ua, { value: t, onValueChange: n, children: [
|
|
1992
|
+
/* @__PURE__ */ h(Oa, { variant: "underline", className: "w-full justify-start", children: [
|
|
1992
1993
|
/* @__PURE__ */ i(rt, { value: "display", children: "Display formats" }),
|
|
1993
1994
|
/* @__PURE__ */ i(rt, { value: "calendar", children: "Calendar" })
|
|
1994
1995
|
] }),
|
package/dist/chunks/{report-runtime-context-BhPzLTbS.js → report-runtime-context-NlOXwyRB.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parseValueFormatPreferences as _, isReportPreferenceSource as C } from "../value-format-preferences/index.js";
|
|
2
|
-
import { p as g } from "./validators-
|
|
2
|
+
import { p as g } from "./validators-CJ8Jh0E8.js";
|
|
3
3
|
import { i as k } from "./analytics-base-schemas-BaIQrEzX.js";
|
|
4
4
|
const D = {
|
|
5
5
|
tz: "UTC",
|