react-semaphor 0.1.558 → 0.1.560
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 +368 -358
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +9 -9
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/analytics-base-schemas-CHLxsPfX.js +630 -0
- package/dist/chunks/{assistant-chat-BCWoP6Rf.js → assistant-chat-Bu2fFm_I.js} +206 -207
- package/dist/chunks/{bookmark-state-PjQpxbG7.js → bookmark-state-BFY9oNmr.js} +3 -3
- package/dist/chunks/{braces-D5Ucy7q1.js → braces-Da41xfUd.js} +1 -1
- package/dist/chunks/{comparison-window-caption-Dc7BaCMz.js → comparison-window-caption-4FNkMrzE.js} +213 -213
- package/dist/chunks/{context-DVy4HOU0.js → context-BgPDzLHZ.js} +1 -1
- package/dist/chunks/{custom-visual-inputs-B-DLRGrV.js → custom-visual-inputs-Dz-enUNR.js} +1 -1
- package/dist/chunks/{dashboard-wK6Bai4V.js → dashboard-_MeBuy67.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-Coqghdn6.js → dashboard-briefing-launcher-CEi4Pr_v.js} +1152 -1166
- package/dist/chunks/{dashboard-controls-BYWSM2RM.js → dashboard-controls-Bi7fyG-4.js} +98 -98
- package/dist/chunks/{dashboard-json-pPTB5gj0.js → dashboard-json-B1mU_OMa.js} +5 -5
- package/dist/chunks/{document-dashboard-inputs-PY_7Xm55.js → document-dashboard-inputs-CkWfDB8c.js} +64 -64
- package/dist/chunks/{edit-dashboard-visual-BODxuUeq.js → edit-dashboard-visual-0CJN31Y3.js} +8274 -8514
- package/dist/chunks/filter-reach-copy-BF4w4kI2.js +3738 -0
- package/dist/chunks/{filter-value-text-CUBpotVN.js → filter-value-text-CRC-K_l_.js} +3 -3
- package/dist/chunks/{global-date-filter-utils-BsFqnnbA.js → global-date-filter-utils-D8365uPH.js} +4088 -3416
- package/dist/chunks/{index-DP_wQl0v.js → index-DtHidOPV.js} +579 -604
- package/dist/chunks/{layout-grid-CkoXmv0L.js → layout-grid-BvsH4RY2.js} +1 -1
- package/dist/chunks/{list-filter-B4i25kuc.js → list-filter-Dg0otx5E.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-4GTUDheD.js → matrix-analytical-definition-CM18W8w6.js} +41 -41
- package/dist/chunks/{matrix-card-fS_4O7zA.js → matrix-card-HPskLaPy.js} +3 -3
- package/dist/chunks/{matrix-member-presentation-Dj7HaAHC.js → matrix-member-presentation-Bbrfrke4.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-CpgLZ7E5.js → matrix-operation-contract-WPv4R-H_.js} +130 -130
- package/dist/chunks/{metric-comparison-C8LY7GG5.js → metric-comparison-ljMKYZKa.js} +2 -2
- package/dist/chunks/{model-change-CJEj3ZD6.js → model-change-Ccn1zaxl.js} +1 -1
- package/dist/chunks/{palette-stlpjVk4.js → palette-Bsh376zO.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-DMk-mKhG.js → pivot-result-contract-expectations-Bl5suy4-.js} +602 -696
- package/dist/chunks/{pivot-result-identity-CrQ54Xbj.js → pivot-result-identity-vS9TSh4f.js} +1 -1
- package/dist/chunks/{raw-temporal-presentation-BI2z2LlB.js → raw-temporal-presentation-BHm7s-hz.js} +230 -274
- package/dist/chunks/{report-preferences-dialog-Dc-YyVwf.js → report-preferences-dialog-BV8L0SeS.js} +55 -55
- package/dist/chunks/{report-runtime-context-CohdtiMg.js → report-runtime-context-BZQh9ywy.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-BZYI1hB0.js → resolve-dashboard-input-context-CAMiWvyR.js} +2021 -2239
- package/dist/chunks/{save-C1dgxgAu.js → save-B5EAsgQF.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-CIBoMq46.js → saved-dashboard-context-n2Wn11cV.js} +57 -57
- package/dist/chunks/{selection-reducer-_d6aKJnj.js → selection-reducer-D0YnaAD9.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-ERTLU7B4.js → semaphor-ready-indicator-XLBLOJ2V.js} +38446 -39176
- package/dist/chunks/{shelf-drop-preview-context-fEnx6iL_.js → shelf-drop-preview-context-DHMa54a-.js} +570 -570
- package/dist/chunks/source-entity-resolution-dUG5VWRm.js +607 -0
- package/dist/chunks/{switch-BqUan2mN.js → switch-ByxH4M7t.js} +3 -3
- package/dist/chunks/{table-export-sheet-CTCTA_bd.js → table-export-sheet-C_GdeTYU.js} +1 -1
- package/dist/chunks/{table-settings-DF1gdVQR.js → table-settings-Imz0FgWi.js} +8 -8
- package/dist/chunks/{temporal-input-presentation-DoSniQj1.js → temporal-input-presentation-uvNK_tM0.js} +1109 -820
- package/dist/chunks/{token-types-DFyLflLY.js → token-types-CQtXUVMy.js} +1 -1
- package/dist/chunks/{upload-DcoyjkRV.js → upload-wbR-NVzq.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-xhb9YFg-.js → use-create-flow-overlay-state-CEBaLOKC.js} +6 -6
- package/dist/chunks/validators-CXTneCA4.js +3453 -0
- package/dist/chunks/{zoned-wall-clock-E35Frf9v.js → zoned-wall-clock-B1n_WjW3.js} +1 -1
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +2207 -1496
- package/dist/data-app-sdk/index.js +20 -20
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +6 -6
- package/dist/format-utils/index.js +181 -176
- package/dist/index.js +22 -22
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/editor/editor-aside/utils.d.ts +1 -1
- package/dist/types/components/visual/data-table/types/data-table.d.ts +5 -20
- package/dist/types/index.js +6 -6
- package/dist/types/lib/formatters/canonical-format-adapter.d.ts +2 -29
- package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +0 -2
- package/dist/types/lib/formatters/table-column-settings.d.ts +47 -0
- package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +10 -188
- package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +1 -1
- package/dist/types/lib/matrix-table/matrix-delivery.d.ts +16 -372
- package/dist/types/lib/stores/dashboard-store.d.ts +0 -1
- package/dist/types/lib/stores/editor-store.d.ts +39 -9
- package/dist/types/lib/stores/table-actions.d.ts +9 -3
- package/dist/types/lib/table-formatting/index.d.ts +0 -2
- package/dist/types/lib/table-formatting/table-conditional-formatting-range-source.d.ts +3 -2
- package/dist/types/lib/table-formatting/table-conditional-formatting-range.d.ts +3 -2
- package/dist/types/lib/table-formatting/table-formatting-normalize.d.ts +1 -2
- package/dist/types/lib/table-formatting/table-formatting-render-model.d.ts +9 -0
- package/dist/types/lib/table-formatting/table-formatting-types.d.ts +5 -95
- package/dist/types/lib/table-formatting/table-presentation-fields.d.ts +35 -0
- package/dist/types/lib/types/common-types.d.ts +40 -47
- package/dist/types/lib/types/explorer-types.d.ts +13 -44
- package/dist/types/lib/utils/card-config-utils.d.ts +9 -1
- package/dist/types/lib/utils/card-definition.d.ts +9 -187
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +159 -513
- package/dist/types/shared/analytics-protocol/contracts.d.ts +32 -9
- package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +108 -980
- package/dist/types/shared/analytics-protocol/field-validation.d.ts +1 -0
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +281 -4624
- package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +20 -20
- package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +18 -18
- package/dist/types/shared/analytics-protocol/matrix-path-contract.d.ts +40 -40
- package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +3 -203
- package/dist/types/shared/analytics-protocol/scalar-value.d.ts +8 -8
- package/dist/types/shared/analytics-protocol/source-capabilities.d.ts +21 -0
- package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +8 -0
- package/dist/types/shared/assistant-protocol/context.d.ts +69 -69
- package/dist/types/shared/dashboard-authoring/canonical-result-keys.d.ts +13 -0
- package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +4 -1
- package/dist/types/shared/dashboard-authoring/card-formats/sql-date-pattern.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/card-formats/upgrade-card-formats.d.ts +57 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +24 -24
- package/dist/types/shared/dashboard-authoring/conditional-formatting/editable.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/evaluate.d.ts +16 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/index.d.ts +9 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/kpi.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/resolve-card-column-ref.d.ts +17 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/retain.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +4499 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/store.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/types.d.ts +151 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/upgrade.d.ts +35 -0
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +62 -62
- package/dist/types/shared/dashboard-authoring/dashboard-card-source-index.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/legacy-table-routing.d.ts +4 -2
- package/dist/types/shared/dashboard-authoring/matrix-authoring.d.ts +4 -5
- package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +24 -736
- package/dist/types/shared/dashboard-authoring/retired-presentation-fields.d.ts +31 -0
- package/dist/types/shared/dashboard-authoring/upgrade-card-presentation.d.ts +14 -0
- package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +5 -1
- package/dist/types/shared/format-utils/formatters/number-formatter.d.ts +16 -0
- package/dist/types/shared/format-utils/index.d.ts +2 -0
- package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +10 -366
- package/dist/types/shared/format-utils/raw-temporal.d.ts +15 -1
- package/dist/types/shared/format-utils/resolve-column-format.d.ts +43 -0
- package/dist/types/shared/format-utils/retired-format-adapters.d.ts +68 -0
- package/dist/types/shared/format-utils/semantic-format.d.ts +5 -1
- package/dist/types/shared/format-utils/stored-value-format.d.ts +16 -0
- package/dist/types/shared/format-utils/types/format-types.d.ts +10 -12
- package/package.json +1 -1
- package/dist/chunks/analytics-base-schemas-BUFUoO6G.js +0 -472
- package/dist/chunks/editor-draft-sync-BN5qYHPF.js +0 -15
- package/dist/chunks/filter-reach-copy-BvJH9JO-.js +0 -3411
- package/dist/chunks/source-entity-resolution-DXW1HpKf.js +0 -816
- package/dist/chunks/validators-hmfNNQz8.js +0 -3595
- package/dist/types/lib/table-formatting/table-conditional-formatting-evaluator.d.ts +0 -9
- package/dist/types/lib/table-formatting/table-formatting-validation.d.ts +0 -12
package/dist/chunks/{report-preferences-dialog-Dc-YyVwf.js → report-preferences-dialog-BV8L0SeS.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as o, Fragment as te, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import * as p from "react";
|
|
3
|
-
import
|
|
4
|
-
import { b as Wt,
|
|
3
|
+
import $t, { useMemo as ee, useState as L, useEffect as J, createContext as jt, useRef as $, useCallback as K, useContext as qe, lazy as Ee, Suspense as Se, useLayoutEffect as Ce, Activity as Vt, useId as de } from "react";
|
|
4
|
+
import { b as Wt, b8 as He, bk as Kt, bl as qt, u as M, bm as gt, x as Ht, bn as Gt, bo as Jt, bp as Xt, bq as Yt, br as ge, bs as yt, bt as tt, bu as Zt, Z as ye, Y as Qt, bv as ea, bw as ta, _ as at, $ as aa, bx as ra, E as na, F as sa, S as la, B as oa, a as ia, U as da, by as ca, D as ua, A as fa, C as ma, bz as ha, bA as pa, bB as va, bC as ba, bD as ga, bE as ya, bF as rt, bG as ke, bH as wa, bI as Ge, bJ as G, bK as Sa, bL as xa, bM as Ca, bN as Ia, bO as Ea } from "./semaphor-ready-indicator-XLBLOJ2V.js";
|
|
5
5
|
import { j as Na } from "./index-CuHybtft.js";
|
|
6
|
-
import { I as Ta } from "./table-settings-
|
|
6
|
+
import { I as Ta } from "./table-settings-Imz0FgWi.js";
|
|
7
7
|
import { r as ka, a as wt } from "./availability-Bp5Gfu1I.js";
|
|
8
|
-
import { s as Aa } from "./global-date-filter-utils-
|
|
9
|
-
import { B as q, Q as Ra, U as Da, V as _a, W as Pa, Y as Oa, Z as La, _ as oe, D as Q, $ as he, m as pe, P as za, a as Fa, b as Ma, d as nt, L as St, s as ze, t as Fe, u as Me, v as Ue, w as Y, T as Ua, e as Ba, f as st, h as lt } from "./switch-
|
|
10
|
-
import "./validators-
|
|
11
|
-
import "./matrix-operation-contract-
|
|
12
|
-
import "./analytics-base-schemas-
|
|
8
|
+
import { s as Aa } from "./global-date-filter-utils-D8365uPH.js";
|
|
9
|
+
import { B as q, Q as Ra, U as Da, V as _a, W as Pa, Y as Oa, Z as La, _ as oe, D as Q, $ as he, m as pe, P as za, a as Fa, b as Ma, d as nt, L as St, s as ze, t as Fe, u as Me, v as Ue, w as Y, T as Ua, e as Ba, f as st, h as lt } from "./switch-ByxH4M7t.js";
|
|
10
|
+
import "./validators-CXTneCA4.js";
|
|
11
|
+
import "./matrix-operation-contract-WPv4R-H_.js";
|
|
12
|
+
import "./analytics-base-schemas-CHLxsPfX.js";
|
|
13
13
|
import "zod";
|
|
14
|
-
import { parseValueFormatPreferencesResponse as
|
|
14
|
+
import { parseValueFormatPreferencesResponse as $a, canonicalizeSupportedLocale as xt, getSupportedCurrencyCodes as ja, canonicalizeSupportedCurrencyCode as Va } from "../value-format-preferences/index.js";
|
|
15
15
|
import { c as B } from "./_commonjsHelpers-DimLPMtv.js";
|
|
16
|
-
import { a as Wa } from "./filter-reach-copy-
|
|
17
|
-
import { a as Ka } from "./report-runtime-context-
|
|
18
|
-
import { r as we,
|
|
16
|
+
import { a as Wa } from "./filter-reach-copy-BF4w4kI2.js";
|
|
17
|
+
import { a as Ka } from "./report-runtime-context-BZQh9ywy.js";
|
|
18
|
+
import { r as we, ab as ce } from "./temporal-input-presentation-uvNK_tM0.js";
|
|
19
19
|
function qa() {
|
|
20
20
|
return /* @__PURE__ */ o(
|
|
21
21
|
"div",
|
|
@@ -115,9 +115,9 @@ const sr = {
|
|
|
115
115
|
anchorSlot: null,
|
|
116
116
|
setAnchorSlot: () => {
|
|
117
117
|
}
|
|
118
|
-
}, Je =
|
|
118
|
+
}, Je = jt(sr);
|
|
119
119
|
function kn() {
|
|
120
|
-
const [e, a] = L("lg"), t =
|
|
120
|
+
const [e, a] = L("lg"), t = $(null);
|
|
121
121
|
return { measure: K((r) => {
|
|
122
122
|
var s;
|
|
123
123
|
if ((s = t.current) == null || s.disconnect(), t.current = null, !r || typeof ResizeObserver > "u") return;
|
|
@@ -134,11 +134,11 @@ function An() {
|
|
|
134
134
|
return qe(Je).overflowItems;
|
|
135
135
|
}
|
|
136
136
|
function Rn(e, a, t) {
|
|
137
|
-
const n = qe(Je), r = n.hasOverflowMenu && !nr(a, n.width), { register: l, setOpenOverflowId: s } = n, i = t == null ? void 0 : t.label, m = t == null ? void 0 : t.hint, u = t == null ? void 0 : t.checked, y = (t == null ? void 0 : t.order) ?? 0, c =
|
|
137
|
+
const n = qe(Je), r = n.hasOverflowMenu && !nr(a, n.width), { register: l, setOpenOverflowId: s } = n, i = t == null ? void 0 : t.label, m = t == null ? void 0 : t.hint, u = t == null ? void 0 : t.checked, y = (t == null ? void 0 : t.order) ?? 0, c = $(t == null ? void 0 : t.icon);
|
|
138
138
|
c.current = t == null ? void 0 : t.icon;
|
|
139
|
-
const v =
|
|
139
|
+
const v = $(t == null ? void 0 : t.onSelect);
|
|
140
140
|
v.current = t == null ? void 0 : t.onSelect;
|
|
141
|
-
const f =
|
|
141
|
+
const f = $(t == null ? void 0 : t.onOpen);
|
|
142
142
|
return f.current = t == null ? void 0 : t.onOpen, J(() => {
|
|
143
143
|
if (!(!r || i === void 0))
|
|
144
144
|
return l({
|
|
@@ -163,7 +163,7 @@ function Rn(e, a, t) {
|
|
|
163
163
|
anchorSlot: n.anchorSlot
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
|
-
const or = Ee(() => import("./assistant-chat-
|
|
166
|
+
const or = Ee(() => import("./assistant-chat-Bu2fFm_I.js"));
|
|
167
167
|
function Dn() {
|
|
168
168
|
const e = Ht(), a = lr();
|
|
169
169
|
if (!e.available) return null;
|
|
@@ -256,7 +256,7 @@ function fr(e, a, t) {
|
|
|
256
256
|
}
|
|
257
257
|
function mr(e, a) {
|
|
258
258
|
var w;
|
|
259
|
-
const [t, n] = L(void 0), [r, l] = L(void 0), s =
|
|
259
|
+
const [t, n] = L(void 0), [r, l] = L(void 0), s = $(a);
|
|
260
260
|
Ce(() => {
|
|
261
261
|
s.current = a;
|
|
262
262
|
});
|
|
@@ -316,7 +316,7 @@ function pr({
|
|
|
316
316
|
size: a,
|
|
317
317
|
side: t
|
|
318
318
|
}) {
|
|
319
|
-
const n =
|
|
319
|
+
const n = $(void 0), r = t === "left" ? -1 : 1, l = (s) => {
|
|
320
320
|
const i = n.current;
|
|
321
321
|
return {
|
|
322
322
|
width: i.start.width + r * (s.clientX - i.x),
|
|
@@ -362,7 +362,7 @@ function pr({
|
|
|
362
362
|
}
|
|
363
363
|
const le = 16, Ct = 0.6;
|
|
364
364
|
function vr({ instance: e, side: a, width: t }) {
|
|
365
|
-
const n =
|
|
365
|
+
const n = $(void 0), r = (c) => {
|
|
366
366
|
var f, w;
|
|
367
367
|
const v = (w = (f = c.closest("aside")) == null ? void 0 : f.parentElement) == null ? void 0 : w.clientWidth;
|
|
368
368
|
return v ? v * Ct : ge.max;
|
|
@@ -440,7 +440,7 @@ function gr(e, a) {
|
|
|
440
440
|
return (a.sheets ?? []).flatMap((n) => (n.frames ?? []).filter((r) => !t.has(r)));
|
|
441
441
|
}
|
|
442
442
|
function yr(e) {
|
|
443
|
-
const { canEditDashboard: a, isInspectionMode: t } = ea(), n = ta(), r = M(at), l = e && n && a === !0 && !t, s =
|
|
443
|
+
const { canEditDashboard: a, isInspectionMode: t } = ea(), n = ta(), r = M(at), l = e && n && a === !0 && !t, s = $(l);
|
|
444
444
|
Ce(() => {
|
|
445
445
|
s.current = l;
|
|
446
446
|
});
|
|
@@ -468,7 +468,7 @@ function wr({
|
|
|
468
468
|
const { canChange: t, canChangeNow: n } = yr(!0), r = M((f) => {
|
|
469
469
|
var w;
|
|
470
470
|
return (w = f.dashboard) == null ? void 0 : w.id;
|
|
471
|
-
}), l = br(n), [s, i] = L(null), m =
|
|
471
|
+
}), l = br(n), [s, i] = L(null), m = $(/* @__PURE__ */ new Map()), u = $(/* @__PURE__ */ new Map()), y = $(Promise.resolve()), c = $({ apply: l, onLifecycleEvent: a });
|
|
472
472
|
Ce(() => {
|
|
473
473
|
c.current = { apply: l, onLifecycleEvent: a };
|
|
474
474
|
}), J(() => {
|
|
@@ -609,9 +609,9 @@ function xe(e) {
|
|
|
609
609
|
function Cr() {
|
|
610
610
|
return globalThis.crypto.randomUUID();
|
|
611
611
|
}
|
|
612
|
-
const Ir = Ee(() => import("./dashboard-controls-
|
|
613
|
-
() => import("./edit-dashboard-visual-
|
|
614
|
-
), Nr = Ee(() => import("./dashboard-json-
|
|
612
|
+
const Ir = Ee(() => import("./dashboard-controls-Bi7fyG-4.js")), Er = Ee(
|
|
613
|
+
() => import("./edit-dashboard-visual-0CJN31Y3.js")
|
|
614
|
+
), Nr = Ee(() => import("./dashboard-json-B1mU_OMa.js"));
|
|
615
615
|
function _n({
|
|
616
616
|
showControls: e = !1,
|
|
617
617
|
showFooter: a = !0,
|
|
@@ -670,7 +670,7 @@ function ut(e) {
|
|
|
670
670
|
function Lr(e, a, t) {
|
|
671
671
|
return e = t && t.length > 0 ? `${e + " " + t.join(" ")}` : e, Be(e, a, ut(e), ut(a), 0, 0, {});
|
|
672
672
|
}
|
|
673
|
-
var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', zr = '[cmdk-group-heading=""]', Nt = '[cmdk-item=""]', ft = `${Nt}:not([aria-disabled="true"])`,
|
|
673
|
+
var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', zr = '[cmdk-group-heading=""]', Nt = '[cmdk-item=""]', ft = `${Nt}:not([aria-disabled="true"])`, $e = "cmdk-item-select", ne = "data-value", Fr = (e, a, t) => Lr(e, a, t), Tt = p.createContext(void 0), ve = () => p.useContext(Tt), kt = p.createContext(void 0), Xe = () => p.useContext(kt), At = p.createContext(void 0), Rt = p.forwardRef((e, a) => {
|
|
674
674
|
let t = se(() => {
|
|
675
675
|
var d, T;
|
|
676
676
|
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() } };
|
|
@@ -839,7 +839,7 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', zr = '[cmdk-group-head
|
|
|
839
839
|
d.preventDefault();
|
|
840
840
|
let x = X();
|
|
841
841
|
if (x) {
|
|
842
|
-
let D = new Event(
|
|
842
|
+
let D = new Event($e);
|
|
843
843
|
x.dispatchEvent(D);
|
|
844
844
|
}
|
|
845
845
|
}
|
|
@@ -854,7 +854,7 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', zr = '[cmdk-group-head
|
|
|
854
854
|
let y = _t(r, l, [e.value, e.children, l], e.keywords), c = Xe(), v = Z((N) => N.value && N.value === y.current), f = Z((N) => u || i.filter() === !1 ? !0 : N.search ? N.filtered.items.get(r) > 0 : !0);
|
|
855
855
|
p.useEffect(() => {
|
|
856
856
|
let N = l.current;
|
|
857
|
-
if (!(!N || e.disabled)) return N.addEventListener(
|
|
857
|
+
if (!(!N || e.disabled)) return N.addEventListener($e, w), () => N.removeEventListener($e, w);
|
|
858
858
|
}, [f, e.onSelect, e.disabled]);
|
|
859
859
|
function w() {
|
|
860
860
|
var N, g;
|
|
@@ -874,14 +874,14 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', zr = '[cmdk-group-head
|
|
|
874
874
|
}), Br = p.forwardRef((e, a) => {
|
|
875
875
|
let { alwaysRender: t, ...n } = e, r = p.useRef(null), l = Z((s) => !s.search);
|
|
876
876
|
return !t && !l ? null : p.createElement(Q.div, { ref: he(r, a), ...n, "cmdk-separator": "", role: "separator" });
|
|
877
|
-
}),
|
|
877
|
+
}), $r = p.forwardRef((e, a) => {
|
|
878
878
|
let { onValueChange: t, ...n } = e, r = e.value != null, l = Xe(), s = Z((u) => u.search), i = Z((u) => u.selectedItemId), m = ve();
|
|
879
879
|
return p.useEffect(() => {
|
|
880
880
|
e.value != null && l.setState("search", e.value);
|
|
881
881
|
}, [e.value]), p.createElement(Q.input, { ref: a, ...n, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": m.listId, "aria-labelledby": m.labelId, "aria-activedescendant": i, id: m.inputId, type: "text", value: r ? e.value : s, onChange: (u) => {
|
|
882
882
|
r || l.setState("search", u.target.value), t == null || t(u.target.value);
|
|
883
883
|
} });
|
|
884
|
-
}),
|
|
884
|
+
}), jr = p.forwardRef((e, a) => {
|
|
885
885
|
let { children: t, label: n = "Suggestions", ...r } = e, l = p.useRef(null), s = p.useRef(null), i = Z((u) => u.selectedItemId), m = ve();
|
|
886
886
|
return p.useEffect(() => {
|
|
887
887
|
if (s.current && l.current) {
|
|
@@ -902,7 +902,7 @@ var fe = '[cmdk-group=""]', De = '[cmdk-group-items=""]', zr = '[cmdk-group-head
|
|
|
902
902
|
}), Wr = p.forwardRef((e, a) => Z((t) => t.filtered.count === 0) ? p.createElement(Q.div, { ref: a, ...e, "cmdk-empty": "", role: "presentation" }) : null), Kr = p.forwardRef((e, a) => {
|
|
903
903
|
let { progress: t, children: n, label: r = "Loading...", ...l } = e;
|
|
904
904
|
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)));
|
|
905
|
-
}),
|
|
905
|
+
}), j = Object.assign(Rt, { List: jr, Item: Mr, Input: $r, Group: Ur, Separator: Br, Dialog: Vr, Empty: Wr, Loading: Kr });
|
|
906
906
|
function qr(e, a) {
|
|
907
907
|
let t = e.nextElementSibling;
|
|
908
908
|
for (; t; ) {
|
|
@@ -963,7 +963,7 @@ function Ne({ asChild: e, children: a }, t) {
|
|
|
963
963
|
}
|
|
964
964
|
var Xr = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
965
965
|
const Pt = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
966
|
-
|
|
966
|
+
j,
|
|
967
967
|
{
|
|
968
968
|
ref: t,
|
|
969
969
|
className: B(
|
|
@@ -973,11 +973,11 @@ const Pt = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
|
973
973
|
...a
|
|
974
974
|
}
|
|
975
975
|
));
|
|
976
|
-
Pt.displayName =
|
|
976
|
+
Pt.displayName = j.displayName;
|
|
977
977
|
const Ot = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ h("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
978
978
|
/* @__PURE__ */ o(ga, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
979
979
|
/* @__PURE__ */ o(
|
|
980
|
-
|
|
980
|
+
j.Input,
|
|
981
981
|
{
|
|
982
982
|
ref: t,
|
|
983
983
|
className: B(
|
|
@@ -988,27 +988,27 @@ const Ot = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ h("div",
|
|
|
988
988
|
}
|
|
989
989
|
)
|
|
990
990
|
] }));
|
|
991
|
-
Ot.displayName =
|
|
991
|
+
Ot.displayName = j.Input.displayName;
|
|
992
992
|
const Lt = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
993
|
-
|
|
993
|
+
j.List,
|
|
994
994
|
{
|
|
995
995
|
ref: t,
|
|
996
996
|
className: B("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
|
|
997
997
|
...a
|
|
998
998
|
}
|
|
999
999
|
));
|
|
1000
|
-
Lt.displayName =
|
|
1000
|
+
Lt.displayName = j.List.displayName;
|
|
1001
1001
|
const zt = p.forwardRef((e, a) => /* @__PURE__ */ o(
|
|
1002
|
-
|
|
1002
|
+
j.Empty,
|
|
1003
1003
|
{
|
|
1004
1004
|
ref: a,
|
|
1005
1005
|
className: "py-6 text-center text-sm",
|
|
1006
1006
|
...e
|
|
1007
1007
|
}
|
|
1008
1008
|
));
|
|
1009
|
-
zt.displayName =
|
|
1010
|
-
const
|
|
1011
|
-
|
|
1009
|
+
zt.displayName = j.Empty.displayName;
|
|
1010
|
+
const je = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
1011
|
+
j.Group,
|
|
1012
1012
|
{
|
|
1013
1013
|
ref: t,
|
|
1014
1014
|
className: B(
|
|
@@ -1018,18 +1018,18 @@ const $e = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
|
1018
1018
|
...a
|
|
1019
1019
|
}
|
|
1020
1020
|
));
|
|
1021
|
-
|
|
1021
|
+
je.displayName = j.Group.displayName;
|
|
1022
1022
|
const Ft = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
1023
|
-
|
|
1023
|
+
j.Separator,
|
|
1024
1024
|
{
|
|
1025
1025
|
ref: t,
|
|
1026
1026
|
className: B("-mx-1 h-px bg-border", e),
|
|
1027
1027
|
...a
|
|
1028
1028
|
}
|
|
1029
1029
|
));
|
|
1030
|
-
Ft.displayName =
|
|
1030
|
+
Ft.displayName = j.Separator.displayName;
|
|
1031
1031
|
const Ve = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
1032
|
-
|
|
1032
|
+
j.Item,
|
|
1033
1033
|
{
|
|
1034
1034
|
ref: t,
|
|
1035
1035
|
className: B(
|
|
@@ -1039,11 +1039,11 @@ const Ve = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
|
|
|
1039
1039
|
...a
|
|
1040
1040
|
}
|
|
1041
1041
|
));
|
|
1042
|
-
Ve.displayName =
|
|
1042
|
+
Ve.displayName = j.Item.displayName;
|
|
1043
1043
|
function Yr(e = {}) {
|
|
1044
1044
|
const { authToken: a, tokenProps: t } = He(), n = M(
|
|
1045
1045
|
(N) => N.actions.applyResolvedCalendarPreferences
|
|
1046
|
-
), r = e.enabled ?? !0, l = (a == null ? void 0 : a.accessToken) ?? null, s = (t == null ? void 0 : t.apiServiceUrl) ?? null, [i, m] = L(!1), [u, y] = L(!1), [c, v] = L(!1), [f, w] = L(null), [b, S] = L(null), C =
|
|
1046
|
+
), r = e.enabled ?? !0, l = (a == null ? void 0 : a.accessToken) ?? null, s = (t == null ? void 0 : t.apiServiceUrl) ?? null, [i, m] = L(!1), [u, y] = L(!1), [c, v] = L(!1), [f, w] = L(null), [b, S] = L(null), C = $(l);
|
|
1047
1047
|
C.current = l, J(() => {
|
|
1048
1048
|
S(null), w(null), m(!1), y(!1), v(!1);
|
|
1049
1049
|
}, [l]);
|
|
@@ -1232,7 +1232,7 @@ function tn({
|
|
|
1232
1232
|
), g = ee(() => ht(b), [b]), E = t != null && t.inherited ? ht(t.inherited.tz) : "UTC", R = t != null && t.inherited ? en(t.inherited.weekStart) : "Monday", I = Qr(
|
|
1233
1233
|
t == null ? void 0 : t.inheritedSources
|
|
1234
1234
|
);
|
|
1235
|
-
|
|
1235
|
+
$t.useEffect(() => {
|
|
1236
1236
|
if (!e) {
|
|
1237
1237
|
w(!1);
|
|
1238
1238
|
return;
|
|
@@ -1371,7 +1371,7 @@ function tn({
|
|
|
1371
1371
|
/* @__PURE__ */ o(Ot, { placeholder: "Search timezones…" }),
|
|
1372
1372
|
/* @__PURE__ */ h(Lt, { children: [
|
|
1373
1373
|
/* @__PURE__ */ o(zt, { children: "No timezone found." }),
|
|
1374
|
-
/* @__PURE__ */ o(
|
|
1374
|
+
/* @__PURE__ */ o(je, { heading: "Common", children: Ie.map((k) => /* @__PURE__ */ h(
|
|
1375
1375
|
Ve,
|
|
1376
1376
|
{
|
|
1377
1377
|
value: `${k.value} ${k.label}`,
|
|
@@ -1395,7 +1395,7 @@ function tn({
|
|
|
1395
1395
|
k.value
|
|
1396
1396
|
)) }),
|
|
1397
1397
|
/* @__PURE__ */ o(Ft, {}),
|
|
1398
|
-
/* @__PURE__ */ o(
|
|
1398
|
+
/* @__PURE__ */ o(je, { heading: "All timezones", children: N.map((k) => /* @__PURE__ */ h(
|
|
1399
1399
|
Ve,
|
|
1400
1400
|
{
|
|
1401
1401
|
value: k,
|
|
@@ -1486,14 +1486,14 @@ function tn({
|
|
|
1486
1486
|
function an(e = {}) {
|
|
1487
1487
|
const { authToken: a, tokenProps: t } = He(), n = M(
|
|
1488
1488
|
(g) => g.actions.applyResolvedValueFormatPreferences
|
|
1489
|
-
), r = e.enabled ?? !0, l = (a == null ? void 0 : a.accessToken) ?? null, s = (t == null ? void 0 : t.apiServiceUrl) ?? null, i =
|
|
1489
|
+
), r = e.enabled ?? !0, l = (a == null ? void 0 : a.accessToken) ?? null, s = (t == null ? void 0 : t.apiServiceUrl) ?? null, i = $(l);
|
|
1490
1490
|
i.current = l;
|
|
1491
1491
|
const [m, u] = L(null), [y, c] = L(!1), [v, f] = L(!1), [w, b] = L(!1), [S, C] = L(null);
|
|
1492
1492
|
J(() => {
|
|
1493
1493
|
u(null), C(null), c(!1), f(!1), b(!1);
|
|
1494
1494
|
}, [l]);
|
|
1495
1495
|
const _ = K(async (g) => {
|
|
1496
|
-
const E =
|
|
1496
|
+
const E = $a(await g.json());
|
|
1497
1497
|
if (!E.ok)
|
|
1498
1498
|
throw new Error("Value format preferences response is invalid");
|
|
1499
1499
|
return E.value;
|
|
@@ -1596,7 +1596,7 @@ const We = [
|
|
|
1596
1596
|
"INR",
|
|
1597
1597
|
"BRL",
|
|
1598
1598
|
"KWD"
|
|
1599
|
-
]), rn =
|
|
1599
|
+
]), rn = ja(), nn = rn.filter(
|
|
1600
1600
|
(e) => !Ut.has(e)
|
|
1601
1601
|
), Bt = [
|
|
1602
1602
|
{ value: "short", label: "Short" },
|
|
@@ -2092,7 +2092,7 @@ export {
|
|
|
2092
2092
|
Ot as b,
|
|
2093
2093
|
Lt as c,
|
|
2094
2094
|
zt as d,
|
|
2095
|
-
|
|
2095
|
+
je as e,
|
|
2096
2096
|
Ve as f,
|
|
2097
2097
|
ur as g,
|
|
2098
2098
|
Dn as h,
|
package/dist/chunks/{report-runtime-context-CohdtiMg.js → report-runtime-context-BZQh9ywy.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { parseValueFormatPreferences as _, isReportPreferenceSource as C } from "../value-format-preferences/index.js";
|
|
2
|
-
import { r as g } from "./validators-
|
|
3
|
-
import { i as k } from "./analytics-base-schemas-
|
|
2
|
+
import { r as g } from "./validators-CXTneCA4.js";
|
|
3
|
+
import { i as k } from "./analytics-base-schemas-CHLxsPfX.js";
|
|
4
4
|
const D = {
|
|
5
5
|
tz: "UTC",
|
|
6
6
|
weekStart: 1,
|