react-semaphor 0.1.540 → 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 +50 -45
- package/dist/chunks/apply-dashboard-operations-Btbp2-6v.js +2260 -0
- package/dist/chunks/{assistant-chat-ya7xopaC.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-DJI-zfEq.js → dashboard-briefing-launcher-B-cm719R.js} +18 -18
- package/dist/chunks/{dashboard-controls-Dh7HqoKy.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-BnmlB71h.js → dashboard-json-ZUYsIExq.js} +4 -4
- package/dist/chunks/{dashboard-B6Bithfl.js → dashboard-s5WJBcK8.js} +1 -1
- package/dist/chunks/{document-dashboard-inputs-BrYYlRVo.js → document-dashboard-inputs-C6MJVyoI.js} +2357 -4948
- package/dist/chunks/document-sheet-utils-BsZUnHRl.js +3619 -0
- package/dist/chunks/{edit-dashboard-visual-CydOkSko.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-CV5rHq5D.js +2673 -0
- 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-neMDolLg.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-CCrLpfSQ.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--4DWtVBu.js → semaphor-ready-indicator-BWSpRsPj.js} +38555 -40449
- package/dist/chunks/{shelf-drop-preview-context-CpdB5ois.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-8g6Zhphh.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 +399 -380
- 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 -238
- package/dist/index.js +174 -175
- package/dist/pdf-export-policy/index.js +20 -10
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/briefings/attachment-outcomes.d.ts +23 -0
- package/dist/types/briefings/attachments.d.ts +17 -1
- package/dist/types/briefings/index.d.ts +6 -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-card.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/query-context/card-server-request.d.ts +5 -1
- package/dist/types/lib/types/common-types.d.ts +7 -0
- package/dist/types/lib/types/explorer-types.d.ts +8 -2
- 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/card-query-request.d.ts +20 -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/attachment-filter-line.d.ts +14 -0
- 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/filter-line.d.ts +7 -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 +3 -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/pdf-export-policy.d.ts +9 -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-BjK9YfMI.js +0 -979
- 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/index-CqMiAkay.js +0 -3164
- 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
package/dist/chunks/{report-preferences-dialog-neMDolLg.js → report-preferences-dialog-MRUWpMcJ.js}
RENAMED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { jsxs as h, jsx as l, Fragment as ie } from "react/jsx-runtime";
|
|
2
2
|
import * as p from "react";
|
|
3
|
-
import Ft, { useRef as J, useState as F, useCallback as
|
|
4
|
-
import { u as j, b6 as _t, b7 as Mt, X as Ut, b8 as Ot, b9 as jt, ba as
|
|
5
|
-
import {
|
|
6
|
-
import { l as oe, B as V, N as va, O as ba, Q as ga, U as ya, V as wa, W as Sa, X as se, z as Z, Y as he, P as xa, a as Ca, b as Na, c as Ze, L as ht, r as Pe, s as ze, t as Fe, u as Le, v as G, T as Ea, d as Ta, e as Qe, g as et } from "./switch-
|
|
3
|
+
import Ft, { useRef as J, useState as F, useCallback as $, useEffect as ee, useMemo as Q, lazy as Se, Suspense as ye, useLayoutEffect as Ge, Activity as Lt, useId as ce } from "react";
|
|
4
|
+
import { u as j, b6 as _t, b7 as Mt, X as Ut, b8 as Ot, b9 as jt, ba as Bt, b as Wt, aX as We, bb as $t, bc as Vt, bd as mt, p as Kt, be as Ht, bf as qt, bg as Xt, bh as Gt, bi as be, bj as ft, bk as Je, E as Jt, F as Yt, S as Zt, B as Qt, a as ea, U as ta, D as aa, C as ra, bl as na, bm as la, bn as sa, bo as ia, bp as oa, bq as Ye, br as Ne, bs as da, bt as $e, bu as ca, bv as ua, bw as ma, bx as fa, by as ha } from "./semaphor-ready-indicator-BWSpRsPj.js";
|
|
5
|
+
import { ad as pa, ae as H } from "./numeric-presentation-BSAqPpHt.js";
|
|
6
|
+
import { l as oe, B as V, N as va, O as ba, Q as ga, U as ya, V as wa, W as Sa, X as se, z as Z, Y as he, P as xa, a as Ca, b as Na, c as Ze, L as ht, r as Pe, s as ze, t as Fe, u as Le, v as G, T as Ea, d as Ta, e as Qe, g as et } from "./switch-C3jLxlG0.js";
|
|
7
7
|
import { X as ka } from "./x-4f5U2XwU.js";
|
|
8
8
|
import { j as Ia } from "./index-CuHybtft.js";
|
|
9
|
-
import "./validators-
|
|
10
|
-
import "./matrix-operation-contract-
|
|
9
|
+
import "./validators-DMHTpf7a.js";
|
|
10
|
+
import "./matrix-operation-contract-8OIO4gob.js";
|
|
11
11
|
import "./analytics-base-schemas-BFAoRlkU.js";
|
|
12
12
|
import "zod";
|
|
13
13
|
import { parseValueFormatPreferencesResponse as Aa, canonicalizeSupportedLocale as pt, getSupportedCurrencyCodes as Da, canonicalizeSupportedCurrencyCode as Ra } from "../value-format-preferences/index.js";
|
|
14
14
|
import { c as M } from "./class-utils-Df1OVOT1.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
15
|
+
import { x as Pa } from "./document-sheet-utils-BsZUnHRl.js";
|
|
16
|
+
import { A as za } from "./table-settings-CLZocegs.js";
|
|
17
17
|
import { r as Fa, a as vt } from "./availability-Bp5Gfu1I.js";
|
|
18
18
|
import { s as La } from "./stable-serialize-CfqXeiBP.js";
|
|
19
|
-
import { S as _a } from "./selection-reducer-
|
|
20
|
-
import { a as Ma } from "./report-runtime-context-
|
|
21
|
-
import {
|
|
19
|
+
import { S as _a } from "./selection-reducer-Dj_8xD69.js";
|
|
20
|
+
import { a as Ma } from "./report-runtime-context-Dq8XyODK.js";
|
|
21
|
+
import { r as ge, M as ue } from "./temporal-bucket-D7NBrrtL.js";
|
|
22
22
|
function Ua(e = []) {
|
|
23
|
-
const a = J(null), t = J(null), r = J(null), [n, i] = F(), s =
|
|
23
|
+
const a = J(null), t = J(null), r = J(null), [n, i] = F(), s = $(() => {
|
|
24
24
|
var m, S, N;
|
|
25
25
|
const o = ((m = a.current) == null ? void 0 : m.clientWidth) ?? 0, f = ((S = r.current) == null ? void 0 : S.offsetWidth) ?? 0, u = ((N = t.current) == null ? void 0 : N.offsetWidth) ?? 0, c = o - f - u - 8, v = Math.max(c, 0);
|
|
26
26
|
i((w) => w === v ? w : v);
|
|
@@ -123,7 +123,7 @@ function ja() {
|
|
|
123
123
|
className: "flex min-w-[250px] max-w-fit flex-col gap-1 p-2",
|
|
124
124
|
children: [
|
|
125
125
|
/* @__PURE__ */ l(Oa, { filter: r }),
|
|
126
|
-
/* @__PURE__ */ l(
|
|
126
|
+
/* @__PURE__ */ l(Bt, { filter: r })
|
|
127
127
|
]
|
|
128
128
|
},
|
|
129
129
|
r.id
|
|
@@ -131,7 +131,7 @@ function ja() {
|
|
|
131
131
|
}
|
|
132
132
|
) : null;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Ba() {
|
|
135
135
|
var i;
|
|
136
136
|
const e = j((s) => s.dashboard), a = j((s) => s.selectedSheetId), t = j(
|
|
137
137
|
(s) => s.isDashboardEditing
|
|
@@ -145,16 +145,16 @@ function $a() {
|
|
|
145
145
|
className: "flex min-h-0 grow basis-0 overflow-hidden",
|
|
146
146
|
children: /* @__PURE__ */ h("section", { className: "flex min-h-0 grow basis-0 flex-col overflow-hidden", children: [
|
|
147
147
|
t && !n && /* @__PURE__ */ l(ja, {}),
|
|
148
|
-
/* @__PURE__ */ l(
|
|
148
|
+
/* @__PURE__ */ l(Wt, {})
|
|
149
149
|
] })
|
|
150
150
|
}
|
|
151
151
|
);
|
|
152
152
|
}
|
|
153
|
-
const
|
|
154
|
-
function
|
|
153
|
+
const Wa = /* @__PURE__ */ new Set(["iat", "exp", "nbf", "jti"]);
|
|
154
|
+
function $a(e) {
|
|
155
155
|
return La(
|
|
156
156
|
Object.fromEntries(
|
|
157
|
-
Object.entries(e ?? {}).filter(([a]) => !
|
|
157
|
+
Object.entries(e ?? {}).filter(([a]) => !Wa.has(a))
|
|
158
158
|
)
|
|
159
159
|
);
|
|
160
160
|
}
|
|
@@ -182,16 +182,16 @@ function Ka({
|
|
|
182
182
|
children: e,
|
|
183
183
|
authToken: a
|
|
184
184
|
}) {
|
|
185
|
-
const t =
|
|
185
|
+
const t = We(), r = Q(
|
|
186
186
|
() => a === void 0 ? t.tokenProps : qa(a),
|
|
187
187
|
[a, t.tokenProps]
|
|
188
|
-
), n = Q(() =>
|
|
188
|
+
), n = Q(() => $a(r), [r]), i = Q(
|
|
189
189
|
() => Va(r).available,
|
|
190
190
|
[r]
|
|
191
191
|
), [s, o] = F(() => at(n, r));
|
|
192
192
|
s.callerKey !== n && o(at(n, r)), Xa(s);
|
|
193
193
|
const f = Q(() => ({ instance: s, available: i }), [s, i]);
|
|
194
|
-
return /* @__PURE__ */ l(
|
|
194
|
+
return /* @__PURE__ */ l($t.Provider, { value: f, children: e });
|
|
195
195
|
}
|
|
196
196
|
function Ha({ children: e }) {
|
|
197
197
|
return mt() ? /* @__PURE__ */ l(ie, { children: e }) : /* @__PURE__ */ l(Ka, { children: e });
|
|
@@ -220,7 +220,7 @@ function Ga(e, a, t) {
|
|
|
220
220
|
const r = t ? za(t, e.cardId) : void 0;
|
|
221
221
|
return !!r && r.sheet.id === e.sheetId;
|
|
222
222
|
}
|
|
223
|
-
const Ja = Se(() => import("./assistant-chat-
|
|
223
|
+
const Ja = Se(() => import("./assistant-chat-oHF5lTjA.js"));
|
|
224
224
|
function fn() {
|
|
225
225
|
const e = Kt();
|
|
226
226
|
return e.available ? /* @__PURE__ */ h(
|
|
@@ -463,9 +463,9 @@ function lr({ instance: e, side: a, width: t }) {
|
|
|
463
463
|
}
|
|
464
464
|
);
|
|
465
465
|
}
|
|
466
|
-
const sr = Se(() => import("./dashboard-controls-
|
|
467
|
-
() => import("./edit-dashboard-visual-
|
|
468
|
-
), or = Se(() => import("./dashboard-json-
|
|
466
|
+
const sr = Se(() => import("./dashboard-controls-CIn22Qgp.js")), ir = Se(
|
|
467
|
+
() => import("./edit-dashboard-visual-DLdereA7.js")
|
|
468
|
+
), or = Se(() => import("./dashboard-json-ZUYsIExq.js"));
|
|
469
469
|
function hn({
|
|
470
470
|
showControls: e = !1,
|
|
471
471
|
showFooter: a = !0,
|
|
@@ -499,7 +499,7 @@ function hn({
|
|
|
499
499
|
/* @__PURE__ */ h("div", { className: "relative flex grow overflow-hidden", children: [
|
|
500
500
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1", children: /* @__PURE__ */ h(ra, { ...t, type: "dashboard", children: [
|
|
501
501
|
r && /* @__PURE__ */ l(ye, { fallback: null, children: /* @__PURE__ */ l(ir, {}) }),
|
|
502
|
-
/* @__PURE__ */ l(Lt, { mode: r ? "hidden" : "visible", children: /* @__PURE__ */ l(
|
|
502
|
+
/* @__PURE__ */ l(Lt, { mode: r ? "hidden" : "visible", children: /* @__PURE__ */ l(Ba, {}) })
|
|
503
503
|
] }) }),
|
|
504
504
|
/* @__PURE__ */ l(er, {})
|
|
505
505
|
] })
|
|
@@ -536,7 +536,7 @@ var me = '[cmdk-group=""]', ke = '[cmdk-group-items=""]', gr = '[cmdk-group-head
|
|
|
536
536
|
E(6, ae);
|
|
537
537
|
}, []);
|
|
538
538
|
let b = p.useMemo(() => ({ subscribe: (d) => (s.current.add(d), () => s.current.delete(d)), snapshot: () => t.current, setState: (d, T, A) => {
|
|
539
|
-
var y, D, P,
|
|
539
|
+
var y, D, P, W;
|
|
540
540
|
if (!Object.is(t.current[d], T)) {
|
|
541
541
|
if (t.current[d] = T, d === "search") K(), x(), E(1, q);
|
|
542
542
|
else if (d === "value") {
|
|
@@ -549,7 +549,7 @@ var me = '[cmdk-group=""]', ke = '[cmdk-group-items=""]', gr = '[cmdk-group-head
|
|
|
549
549
|
t.current.selectedItemId = (O = X()) == null ? void 0 : O.id, b.emit();
|
|
550
550
|
}), A || E(5, ae), ((D = o.current) == null ? void 0 : D.value) !== void 0) {
|
|
551
551
|
let O = T ?? "";
|
|
552
|
-
(
|
|
552
|
+
(W = (P = o.current).onValueChange) == null || W.call(P, O);
|
|
553
553
|
return;
|
|
554
554
|
}
|
|
555
555
|
}
|
|
@@ -583,16 +583,16 @@ var me = '[cmdk-group=""]', ke = '[cmdk-group-items=""]', gr = '[cmdk-group-head
|
|
|
583
583
|
let d = t.current.filtered.items, T = [];
|
|
584
584
|
t.current.filtered.groups.forEach((y) => {
|
|
585
585
|
let D = n.current.get(y), P = 0;
|
|
586
|
-
D.forEach((
|
|
587
|
-
let O = d.get(
|
|
586
|
+
D.forEach((W) => {
|
|
587
|
+
let O = d.get(W);
|
|
588
588
|
P = Math.max(O, P);
|
|
589
589
|
}), T.push([y, P]);
|
|
590
590
|
});
|
|
591
591
|
let A = _.current;
|
|
592
592
|
I().sort((y, D) => {
|
|
593
|
-
var P,
|
|
593
|
+
var P, W;
|
|
594
594
|
let O = y.getAttribute("id"), ve = D.getAttribute("id");
|
|
595
|
-
return ((P = d.get(ve)) != null ? P : 0) - ((
|
|
595
|
+
return ((P = d.get(ve)) != null ? P : 0) - ((W = d.get(O)) != null ? W : 0);
|
|
596
596
|
}).forEach((y) => {
|
|
597
597
|
let D = y.closest(ke);
|
|
598
598
|
D ? D.appendChild(y.parentElement === D ? y : y.closest(`${ke} > *`)) : A.appendChild(y.parentElement === A ? y : y.closest(`${ke} > *`));
|
|
@@ -615,10 +615,10 @@ var me = '[cmdk-group=""]', ke = '[cmdk-group-items=""]', gr = '[cmdk-group-head
|
|
|
615
615
|
t.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
616
616
|
let D = 0;
|
|
617
617
|
for (let P of r.current) {
|
|
618
|
-
let
|
|
618
|
+
let W = (T = (d = i.current.get(P)) == null ? void 0 : d.value) != null ? T : "", O = (y = (A = i.current.get(P)) == null ? void 0 : A.keywords) != null ? y : [], ve = R(W, O);
|
|
619
619
|
t.current.filtered.items.set(P, ve), ve > 0 && D++;
|
|
620
620
|
}
|
|
621
|
-
for (let [P,
|
|
621
|
+
for (let [P, W] of n.current) for (let O of W) if (t.current.filtered.items.get(O) > 0) {
|
|
622
622
|
t.current.filtered.groups.add(P);
|
|
623
623
|
break;
|
|
624
624
|
}
|
|
@@ -643,7 +643,7 @@ var me = '[cmdk-group=""]', ke = '[cmdk-group-items=""]', gr = '[cmdk-group-head
|
|
|
643
643
|
}
|
|
644
644
|
function Ce(d) {
|
|
645
645
|
var T;
|
|
646
|
-
let A = X(), y = I(), D = y.findIndex((
|
|
646
|
+
let A = X(), y = I(), D = y.findIndex((W) => W === A), P = y[D + d];
|
|
647
647
|
(T = o.current) != null && T.loop && (P = D + d < 0 ? y[y.length - 1] : D + d === y.length ? y[0] : y[D + d]), P && b.setState("value", P.getAttribute(re));
|
|
648
648
|
}
|
|
649
649
|
function Ke(d) {
|
|
@@ -754,7 +754,7 @@ var me = '[cmdk-group=""]', ke = '[cmdk-group-items=""]', gr = '[cmdk-group-head
|
|
|
754
754
|
}), Tr = p.forwardRef((e, a) => Y((t) => t.filtered.count === 0) ? p.createElement(Z.div, { ref: a, ...e, "cmdk-empty": "", role: "presentation" }) : null), kr = p.forwardRef((e, a) => {
|
|
755
755
|
let { progress: t, children: r, label: n = "Loading...", ...i } = e;
|
|
756
756
|
return p.createElement(Z.div, { ref: a, ...i, "cmdk-loading": "", role: "progressbar", "aria-valuenow": t, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": n }, xe(e, (s) => p.createElement("div", { "aria-hidden": !0 }, s)));
|
|
757
|
-
}),
|
|
757
|
+
}), B = Object.assign(Ct, { List: Nr, Item: wr, Input: Cr, Group: Sr, Separator: xr, Dialog: Er, Empty: Tr, Loading: kr });
|
|
758
758
|
function Ir(e, a) {
|
|
759
759
|
let t = e.nextElementSibling;
|
|
760
760
|
for (; t; ) {
|
|
@@ -815,7 +815,7 @@ function xe({ asChild: e, children: a }, t) {
|
|
|
815
815
|
}
|
|
816
816
|
var Pr = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
817
817
|
const Tt = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l(
|
|
818
|
-
|
|
818
|
+
B,
|
|
819
819
|
{
|
|
820
820
|
ref: t,
|
|
821
821
|
className: M(
|
|
@@ -825,11 +825,11 @@ const Tt = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l(
|
|
|
825
825
|
...a
|
|
826
826
|
}
|
|
827
827
|
));
|
|
828
|
-
Tt.displayName =
|
|
828
|
+
Tt.displayName = B.displayName;
|
|
829
829
|
const kt = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ h("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
830
830
|
/* @__PURE__ */ l(_a, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
831
831
|
/* @__PURE__ */ l(
|
|
832
|
-
|
|
832
|
+
B.Input,
|
|
833
833
|
{
|
|
834
834
|
ref: t,
|
|
835
835
|
className: M(
|
|
@@ -840,27 +840,27 @@ const kt = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ h("div",
|
|
|
840
840
|
}
|
|
841
841
|
)
|
|
842
842
|
] }));
|
|
843
|
-
kt.displayName =
|
|
843
|
+
kt.displayName = B.Input.displayName;
|
|
844
844
|
const It = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l(
|
|
845
|
-
|
|
845
|
+
B.List,
|
|
846
846
|
{
|
|
847
847
|
ref: t,
|
|
848
848
|
className: M("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
|
|
849
849
|
...a
|
|
850
850
|
}
|
|
851
851
|
));
|
|
852
|
-
It.displayName =
|
|
852
|
+
It.displayName = B.List.displayName;
|
|
853
853
|
const At = p.forwardRef((e, a) => /* @__PURE__ */ l(
|
|
854
|
-
|
|
854
|
+
B.Empty,
|
|
855
855
|
{
|
|
856
856
|
ref: a,
|
|
857
857
|
className: "py-6 text-center text-sm",
|
|
858
858
|
...e
|
|
859
859
|
}
|
|
860
860
|
));
|
|
861
|
-
At.displayName =
|
|
861
|
+
At.displayName = B.Empty.displayName;
|
|
862
862
|
const Ue = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l(
|
|
863
|
-
|
|
863
|
+
B.Group,
|
|
864
864
|
{
|
|
865
865
|
ref: t,
|
|
866
866
|
className: M(
|
|
@@ -870,18 +870,18 @@ const Ue = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l(
|
|
|
870
870
|
...a
|
|
871
871
|
}
|
|
872
872
|
));
|
|
873
|
-
Ue.displayName =
|
|
873
|
+
Ue.displayName = B.Group.displayName;
|
|
874
874
|
const Dt = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l(
|
|
875
|
-
|
|
875
|
+
B.Separator,
|
|
876
876
|
{
|
|
877
877
|
ref: t,
|
|
878
878
|
className: M("-mx-1 h-px bg-border", e),
|
|
879
879
|
...a
|
|
880
880
|
}
|
|
881
881
|
));
|
|
882
|
-
Dt.displayName =
|
|
882
|
+
Dt.displayName = B.Separator.displayName;
|
|
883
883
|
const Oe = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l(
|
|
884
|
-
|
|
884
|
+
B.Item,
|
|
885
885
|
{
|
|
886
886
|
ref: t,
|
|
887
887
|
className: M(
|
|
@@ -891,20 +891,20 @@ const Oe = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l(
|
|
|
891
891
|
...a
|
|
892
892
|
}
|
|
893
893
|
));
|
|
894
|
-
Oe.displayName =
|
|
894
|
+
Oe.displayName = B.Item.displayName;
|
|
895
895
|
function zr(e = {}) {
|
|
896
|
-
const { authToken: a, tokenProps: t } =
|
|
896
|
+
const { authToken: a, tokenProps: t } = We(), r = j(
|
|
897
897
|
(E) => E.actions.applyResolvedCalendarPreferences
|
|
898
898
|
), n = e.enabled ?? !0, i = (a == null ? void 0 : a.accessToken) ?? null, s = (t == null ? void 0 : t.apiServiceUrl) ?? null, [o, f] = F(!1), [u, g] = F(!1), [c, v] = F(!1), [m, S] = F(null), [N, w] = F(null), k = J(i);
|
|
899
899
|
k.current = i, ee(() => {
|
|
900
900
|
w(null), S(null), f(!1), g(!1), v(!1);
|
|
901
901
|
}, [i]);
|
|
902
|
-
const z =
|
|
902
|
+
const z = $(async (E) => {
|
|
903
903
|
const b = Ma(await E.json());
|
|
904
904
|
if (!b.ok)
|
|
905
905
|
throw new Error("Calendar preferences response is invalid");
|
|
906
906
|
return b.value;
|
|
907
|
-
}, []), L =
|
|
907
|
+
}, []), L = $(async () => {
|
|
908
908
|
if (!n || !i || !s) return;
|
|
909
909
|
const E = i;
|
|
910
910
|
f(!0), S(null);
|
|
@@ -931,7 +931,7 @@ function zr(e = {}) {
|
|
|
931
931
|
ee(() => {
|
|
932
932
|
n && L();
|
|
933
933
|
}, [n, L]);
|
|
934
|
-
const U =
|
|
934
|
+
const U = $(
|
|
935
935
|
async (E) => {
|
|
936
936
|
if (!i || !s)
|
|
937
937
|
return S("Not authenticated"), !1;
|
|
@@ -967,7 +967,7 @@ function zr(e = {}) {
|
|
|
967
967
|
r,
|
|
968
968
|
z
|
|
969
969
|
]
|
|
970
|
-
), _ =
|
|
970
|
+
), _ = $(async () => {
|
|
971
971
|
if (!i || !s)
|
|
972
972
|
return S("Not authenticated"), !1;
|
|
973
973
|
const E = i;
|
|
@@ -1317,7 +1317,7 @@ function Mr({
|
|
|
1317
1317
|
}
|
|
1318
1318
|
)
|
|
1319
1319
|
] }),
|
|
1320
|
-
/* @__PURE__ */ h(
|
|
1320
|
+
/* @__PURE__ */ h($e, { children: [
|
|
1321
1321
|
/* @__PURE__ */ l(
|
|
1322
1322
|
V,
|
|
1323
1323
|
{
|
|
@@ -1336,7 +1336,7 @@ function Mr({
|
|
|
1336
1336
|
] });
|
|
1337
1337
|
}
|
|
1338
1338
|
function Ur(e = {}) {
|
|
1339
|
-
const { authToken: a, tokenProps: t } =
|
|
1339
|
+
const { authToken: a, tokenProps: t } = We(), r = j(
|
|
1340
1340
|
(b) => b.actions.applyResolvedValueFormatPreferences
|
|
1341
1341
|
), n = e.enabled ?? !0, i = (a == null ? void 0 : a.accessToken) ?? null, s = (t == null ? void 0 : t.apiServiceUrl) ?? null, o = J(i);
|
|
1342
1342
|
o.current = i;
|
|
@@ -1344,12 +1344,12 @@ function Ur(e = {}) {
|
|
|
1344
1344
|
ee(() => {
|
|
1345
1345
|
u(null), k(null), c(!1), m(!1), N(!1);
|
|
1346
1346
|
}, [i]);
|
|
1347
|
-
const z =
|
|
1347
|
+
const z = $(async (b) => {
|
|
1348
1348
|
const C = Aa(await b.json());
|
|
1349
1349
|
if (!C.ok)
|
|
1350
1350
|
throw new Error("Value format preferences response is invalid");
|
|
1351
1351
|
return C.value;
|
|
1352
|
-
}, []), L =
|
|
1352
|
+
}, []), L = $(
|
|
1353
1353
|
async (b, C) => {
|
|
1354
1354
|
if (!i || !s)
|
|
1355
1355
|
throw new Error("Not authenticated");
|
|
@@ -1371,7 +1371,7 @@ function Ur(e = {}) {
|
|
|
1371
1371
|
return z(R);
|
|
1372
1372
|
},
|
|
1373
1373
|
[i, s, z]
|
|
1374
|
-
), U =
|
|
1374
|
+
), U = $(async () => {
|
|
1375
1375
|
if (!n || !i || !s) return;
|
|
1376
1376
|
const b = i;
|
|
1377
1377
|
c(!0), k(null);
|
|
@@ -1387,7 +1387,7 @@ function Ur(e = {}) {
|
|
|
1387
1387
|
ee(() => {
|
|
1388
1388
|
n && U();
|
|
1389
1389
|
}, [n, U]);
|
|
1390
|
-
const _ =
|
|
1390
|
+
const _ = $(
|
|
1391
1391
|
async (b) => {
|
|
1392
1392
|
const C = i;
|
|
1393
1393
|
m(!0), k(null);
|
|
@@ -1401,7 +1401,7 @@ function Ur(e = {}) {
|
|
|
1401
1401
|
}
|
|
1402
1402
|
},
|
|
1403
1403
|
[i, r, L]
|
|
1404
|
-
), E =
|
|
1404
|
+
), E = $(async () => {
|
|
1405
1405
|
const b = i;
|
|
1406
1406
|
N(!0), k(null);
|
|
1407
1407
|
try {
|
|
@@ -1455,7 +1455,7 @@ const je = [
|
|
|
1455
1455
|
{ value: "medium", label: "Medium" },
|
|
1456
1456
|
{ value: "long", label: "Long" }
|
|
1457
1457
|
], dt = "2026-07-31", Ie = "2026-07-31T14:30:45";
|
|
1458
|
-
function
|
|
1458
|
+
function Be(e) {
|
|
1459
1459
|
switch (e) {
|
|
1460
1460
|
case "viewer_user":
|
|
1461
1461
|
return "user";
|
|
@@ -1477,7 +1477,7 @@ function Ae(e) {
|
|
|
1477
1477
|
var a;
|
|
1478
1478
|
return ((a = zt.find((t) => t.value === e)) == null ? void 0 : a.label) ?? e;
|
|
1479
1479
|
}
|
|
1480
|
-
function
|
|
1480
|
+
function Br(e) {
|
|
1481
1481
|
const a = je.find((t) => t.value === e);
|
|
1482
1482
|
return a ? `${a.label} — ${a.value}` : e;
|
|
1483
1483
|
}
|
|
@@ -1513,7 +1513,7 @@ function Re({
|
|
|
1513
1513
|
/* @__PURE__ */ l(G, { 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: [
|
|
1514
1514
|
/* @__PURE__ */ h("span", { children: [
|
|
1515
1515
|
"Inherited from ",
|
|
1516
|
-
|
|
1516
|
+
Be(n),
|
|
1517
1517
|
" ·",
|
|
1518
1518
|
" ",
|
|
1519
1519
|
Ae(r)
|
|
@@ -1538,7 +1538,7 @@ function Re({
|
|
|
1538
1538
|
)
|
|
1539
1539
|
] });
|
|
1540
1540
|
}
|
|
1541
|
-
function
|
|
1541
|
+
function Wr({
|
|
1542
1542
|
value: e,
|
|
1543
1543
|
inherited: a,
|
|
1544
1544
|
inheritedSources: t,
|
|
@@ -1631,11 +1631,11 @@ function Br({
|
|
|
1631
1631
|
locale: x === "inherit" ? void 0 : x
|
|
1632
1632
|
}),
|
|
1633
1633
|
children: [
|
|
1634
|
-
/* @__PURE__ */ l(ze, { id: i, size: "xs", children: /* @__PURE__ */ l(Fe, { children: e.locale === void 0 ? `Inherited · ${a.locale}` :
|
|
1634
|
+
/* @__PURE__ */ l(ze, { id: i, size: "xs", children: /* @__PURE__ */ l(Fe, { children: e.locale === void 0 ? `Inherited · ${a.locale}` : Br(e.locale) }) }),
|
|
1635
1635
|
/* @__PURE__ */ h(Le, { children: [
|
|
1636
1636
|
/* @__PURE__ */ h(G, { value: "inherit", children: [
|
|
1637
1637
|
"Inherited from ",
|
|
1638
|
-
|
|
1638
|
+
Be(t.locale),
|
|
1639
1639
|
" ·",
|
|
1640
1640
|
" ",
|
|
1641
1641
|
a.locale
|
|
@@ -1724,7 +1724,7 @@ function Br({
|
|
|
1724
1724
|
/* @__PURE__ */ h(Le, { children: [
|
|
1725
1725
|
/* @__PURE__ */ h(G, { value: "inherit", children: [
|
|
1726
1726
|
"Inherited from ",
|
|
1727
|
-
|
|
1727
|
+
Be(t.defaultCurrency),
|
|
1728
1728
|
" ·",
|
|
1729
1729
|
" ",
|
|
1730
1730
|
a.defaultCurrency
|
|
@@ -1778,7 +1778,7 @@ function ut(e, a) {
|
|
|
1778
1778
|
return e == null ? void 0 : e.defaultCurrency;
|
|
1779
1779
|
}
|
|
1780
1780
|
}
|
|
1781
|
-
function
|
|
1781
|
+
function $r(e) {
|
|
1782
1782
|
var r, n;
|
|
1783
1783
|
const a = (r = e == null ? void 0 : e.dateTime) == null ? void 0 : r.dateStyle, t = (n = e == null ? void 0 : e.dateTime) == null ? void 0 : n.timeStyle;
|
|
1784
1784
|
return {
|
|
@@ -1798,7 +1798,7 @@ function Vr({
|
|
|
1798
1798
|
if (!t)
|
|
1799
1799
|
return /* @__PURE__ */ h(ie, { children: [
|
|
1800
1800
|
/* @__PURE__ */ l("div", { className: "py-2", children: /* @__PURE__ */ l("div", { className: "flex min-h-36 items-center justify-center text-[12px] text-muted-foreground", children: r ? "Loading preferences…" : "Preferences unavailable." }) }),
|
|
1801
|
-
/* @__PURE__ */ h(
|
|
1801
|
+
/* @__PURE__ */ h($e, { className: "justify-between sm:justify-between", children: [
|
|
1802
1802
|
/* @__PURE__ */ l(V, { variant: "ghost", size: "xs", disabled: !0, children: "Reset display formats" }),
|
|
1803
1803
|
/* @__PURE__ */ h("div", { className: "flex gap-2", children: [
|
|
1804
1804
|
/* @__PURE__ */ l(V, { variant: "outline", size: "xs", onClick: a, children: "Cancel" }),
|
|
@@ -1832,7 +1832,7 @@ function Kr({
|
|
|
1832
1832
|
}) {
|
|
1833
1833
|
var u, g;
|
|
1834
1834
|
const [n, i] = F(
|
|
1835
|
-
() =>
|
|
1835
|
+
() => $r(e.stored)
|
|
1836
1836
|
), s = (n.locale === void 0 || pt(n.locale) !== void 0) && (n.defaultCurrency === void 0 || Ra(n.defaultCurrency) !== void 0) && (n.dateStyle === void 0 || ["short", "medium", "long"].includes(n.dateStyle)) && (((u = n.dateTime) == null ? void 0 : u.dateStyle) === void 0 || ["short", "medium", "long"].includes(n.dateTime.dateStyle)) && (((g = n.dateTime) == null ? void 0 : g.timeStyle) === void 0 || ["short", "medium", "long"].includes(n.dateTime.timeStyle)), o = async () => {
|
|
1837
1837
|
const c = {
|
|
1838
1838
|
...n.locale !== void 0 ? { locale: n.locale } : {},
|
|
@@ -1855,7 +1855,7 @@ function Kr({
|
|
|
1855
1855
|
};
|
|
1856
1856
|
return /* @__PURE__ */ h(ie, { children: [
|
|
1857
1857
|
/* @__PURE__ */ l("div", { className: "py-2", children: /* @__PURE__ */ l(
|
|
1858
|
-
|
|
1858
|
+
Wr,
|
|
1859
1859
|
{
|
|
1860
1860
|
value: n,
|
|
1861
1861
|
inherited: e.inherited,
|
|
@@ -1864,7 +1864,7 @@ function Kr({
|
|
|
1864
1864
|
disabled: a
|
|
1865
1865
|
}
|
|
1866
1866
|
) }),
|
|
1867
|
-
/* @__PURE__ */ h(
|
|
1867
|
+
/* @__PURE__ */ h($e, { className: "justify-between sm:justify-between", children: [
|
|
1868
1868
|
/* @__PURE__ */ l(
|
|
1869
1869
|
V,
|
|
1870
1870
|
{
|
|
@@ -1939,7 +1939,7 @@ export {
|
|
|
1939
1939
|
Tt as C,
|
|
1940
1940
|
hn as D,
|
|
1941
1941
|
pn as R,
|
|
1942
|
-
|
|
1942
|
+
Wr as a,
|
|
1943
1943
|
kt as b,
|
|
1944
1944
|
It as c,
|
|
1945
1945
|
At as d,
|
package/dist/chunks/{report-runtime-context-B984Nq1E.js → report-runtime-context-Dq8XyODK.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parseValueFormatPreferences as _, isReportPreferenceSource as C } from "../value-format-preferences/index.js";
|
|
2
|
-
import { v as g } from "./validators-
|
|
2
|
+
import { v as g } from "./validators-DMHTpf7a.js";
|
|
3
3
|
import { i as k } from "./analytics-base-schemas-BFAoRlkU.js";
|
|
4
4
|
const D = {
|
|
5
5
|
tz: "UTC",
|