react-semaphor 0.1.552 → 0.1.554
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 +228 -227
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +3 -3
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/{assistant-chat-sWQaBT61.js → assistant-chat-ngs5dTvo.js} +1275 -1296
- package/dist/chunks/{bookmark-state-Cu-a5ie_.js → bookmark-state-BAeGKd3s.js} +3 -3
- package/dist/chunks/{comparison-window-caption-CF90-I0i.js → comparison-window-caption-C2WNTlxK.js} +44 -44
- package/dist/chunks/{custom-visual-inputs-ByQUyWf4.js → custom-visual-inputs-cTHqcqPu.js} +1 -1
- package/dist/chunks/{dashboard-BjoJI7NN.js → dashboard-548YvEW5.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DUJQv719.js → dashboard-briefing-launcher-ptIRn5FS.js} +62 -62
- package/dist/chunks/{dashboard-controls-BjnvfcQp.js → dashboard-controls-CqyUTN6Q.js} +46 -46
- package/dist/chunks/{dashboard-json-BqcLekhd.js → dashboard-json-CvDFipA0.js} +4 -4
- package/dist/chunks/{document-dashboard-inputs-PoQihHLu.js → document-dashboard-inputs-DrA9m-5H.js} +119 -119
- package/dist/chunks/{edit-dashboard-visual-KNJQr60W.js → edit-dashboard-visual-BHL0AlIj.js} +4087 -3979
- package/dist/chunks/{filter-reach-copy-zdhUFn6t.js → filter-reach-copy-CyftKCZE.js} +48 -48
- package/dist/chunks/{filter-value-text-Ddf55Ku1.js → filter-value-text-DMrpj4h9.js} +2 -2
- package/dist/chunks/{global-date-filter-utils-C1jCNWdV.js → global-date-filter-utils-Or-3DL3k.js} +6033 -5772
- package/dist/chunks/{index-Dp0ta6KB.js → index-ClwmmbUH.js} +9 -9
- package/dist/chunks/{matrix-analytical-definition-B9vW-osb.js → matrix-analytical-definition-DPVGg1mU.js} +12 -12
- package/dist/chunks/{matrix-card-LiMEipvq.js → matrix-card-CVFVtqyo.js} +2 -2
- package/dist/chunks/{matrix-formatter-C_EpDP6o.js → matrix-formatter-K2OVPJQI.js} +30 -30
- package/dist/chunks/{matrix-member-presentation-DqzG-UhQ.js → matrix-member-presentation-DRWcJ8Mi.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-D6vYkZK4.js → matrix-operation-contract--lMaLlpV.js} +64 -61
- package/dist/chunks/{metric-comparison-zpGw4lD6.js → metric-comparison-CYIt2F5X.js} +1 -1
- package/dist/chunks/{pivot-header-presentation-CQnIDtUv.js → pivot-header-presentation-CX4fkRuG.js} +1 -1
- package/dist/chunks/{pivot-result-identity-C-Q1j1Wb.js → pivot-result-identity-BHJGZwIc.js} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-pwq3b7LC.js → pivot-result-lifecycle-BygCpOhk.js} +20 -20
- package/dist/chunks/{raw-temporal-presentation-D3i0mnUe.js → raw-temporal-presentation-gooAp93G.js} +6 -6
- package/dist/chunks/{report-preferences-dialog-C0uGI0v7.js → report-preferences-dialog-2tqY0BMQ.js} +49 -49
- package/dist/chunks/{report-runtime-context-hWiTCzFV.js → report-runtime-context-BaIKSaja.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-Cm0b7s-d.js → resolve-dashboard-input-context-bOKDTHfJ.js} +2062 -1986
- package/dist/chunks/{saved-dashboard-context-DCtGmAWe.js → saved-dashboard-context--Hq1juf9.js} +8 -8
- package/dist/chunks/{selection-reducer-CJzkTZio.js → selection-reducer-yw_JgICP.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-ChyotaWB.js → semaphor-ready-indicator-yM4wo-FH.js} +26 -26
- package/dist/chunks/{shelf-drop-preview-context-D09ATIXv.js → shelf-drop-preview-context-BuLzyT1T.js} +119 -119
- package/dist/chunks/{source-entity-resolution-D195CrYS.js → source-entity-resolution-CGymm5td.js} +1 -1
- package/dist/chunks/{switch-wJP6O7ZT.js → switch-B-UTI6v-.js} +2 -2
- package/dist/chunks/{table-export-sheet-DUS_s8Cj.js → table-export-sheet-CgO6gaSM.js} +1 -1
- package/dist/chunks/{table-settings-WysCBj62.js → table-settings-DOT_Bv1m.js} +224 -201
- package/dist/chunks/{temporal-bucket-CQOSbv9-.js → temporal-bucket-C4rqmwaQ.js} +24 -24
- package/dist/chunks/{token-types-BMqRmT-C.js → token-types-DYECHYGH.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-t7JLE_LV.js → use-create-flow-overlay-state-DSXC-LD7.js} +6 -6
- package/dist/chunks/{validators-C-aOQlTB.js → validators-ClKLGDGZ.js} +1077 -1054
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +273 -264
- 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 +5 -5
- package/dist/format-utils/index.js +15 -15
- package/dist/index.js +21 -21
- 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/index.js +6 -6
- package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +3 -0
- package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +3 -2
- package/dist/types/lib/matrix-table/matrix-delivery.d.ts +4 -2
- package/dist/types/lib/utils/card-config-utils.d.ts +61 -0
- package/dist/types/lib/utils/card-definition.d.ts +2 -1
- package/dist/types/lib/utils/card-type-change.d.ts +5 -1
- package/dist/types/shared/analytics-protocol/explorer-input-schemas.d.ts +2 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +2 -2
- package/dist/types/shared/analytics-protocol/matrix-analytical-definition.d.ts +1 -0
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +59 -21
- package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +12 -7
- package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +16 -9
- package/dist/types/shared/dashboard-authoring/document-section-cards.d.ts +6 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/legacy-table-routing.d.ts +62 -0
- package/dist/types/shared/dashboard-authoring/matrix-authoring.d.ts +4 -1
- package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +8 -4
- package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +4 -2
- package/package.json +2 -2
package/dist/chunks/{pivot-header-presentation-CQnIDtUv.js → pivot-header-presentation-CX4fkRuG.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var d = Object.defineProperty;
|
|
2
2
|
var c = (e, r, t) => r in e ? d(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
|
|
3
3
|
var i = (e, r, t) => c(e, typeof r != "symbol" ? r + "" : r, t);
|
|
4
|
-
import { f } from "./temporal-bucket-
|
|
4
|
+
import { f } from "./temporal-bucket-C4rqmwaQ.js";
|
|
5
5
|
class v extends Error {
|
|
6
6
|
constructor(t, a) {
|
|
7
7
|
super(`${t}: ${a}`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var y = Object.defineProperty;
|
|
2
2
|
var c = (t, e, r) => e in t ? y(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
3
|
var u = (t, e, r) => c(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
-
import { v as d } from "./metric-comparison-
|
|
4
|
+
import { v as d } from "./metric-comparison-CYIt2F5X.js";
|
|
5
5
|
function f(t) {
|
|
6
6
|
return !!(t != null && t.isSubtotal && t.subtotalScope === "pivot-value");
|
|
7
7
|
}
|
package/dist/chunks/{pivot-result-lifecycle-pwq3b7LC.js → pivot-result-lifecycle-BygCpOhk.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
var G = Object.defineProperty;
|
|
2
2
|
var Q = (e, t, o) => t in e ? G(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
|
|
3
3
|
var h = (e, t, o) => Q(e, typeof t != "symbol" ? t + "" : t, o);
|
|
4
|
-
import { N as q, O as L, P as y, q as ee, H as te, E as oe, i as re, Q as K, f as ne, F as ae, r as ie, M as se, v as ce } from "./temporal-bucket-
|
|
4
|
+
import { N as q, O as L, P as y, q as ee, H as te, E as oe, i as re, Q as K, f as ne, F as ae, r as ie, M as se, v as ce } from "./temporal-bucket-C4rqmwaQ.js";
|
|
5
5
|
import { z as d } from "zod";
|
|
6
6
|
import { E as B, l as Y } from "./export-file-format-C-tJsxsf.js";
|
|
7
|
-
import {
|
|
8
|
-
import { b as fe } from "./report-runtime-context-
|
|
7
|
+
import { aN as le, l as de, Y as me, Q as T, o as ue } from "./validators-ClKLGDGZ.js";
|
|
8
|
+
import { b as fe } from "./report-runtime-context-BaIKSaja.js";
|
|
9
9
|
import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as pe } from "../value-format-preferences/index.js";
|
|
10
10
|
import { z as ye } from "./zoned-wall-clock-MulfA26h.js";
|
|
11
11
|
import { S as he } from "./analytics-base-schemas-BKs3flFS.js";
|
|
12
|
-
import "./matrix-operation-contract
|
|
13
|
-
import { r as we, i as ge } from "./metric-comparison-
|
|
14
|
-
import { d as ve, P as be } from "./pivot-result-identity-
|
|
12
|
+
import "./matrix-operation-contract--lMaLlpV.js";
|
|
13
|
+
import { r as we, i as ge } from "./metric-comparison-CYIt2F5X.js";
|
|
14
|
+
import { d as ve, P as be } from "./pivot-result-identity-BHJGZwIc.js";
|
|
15
15
|
function Ot(e, t) {
|
|
16
16
|
const r = Ie(e);
|
|
17
17
|
let n;
|
|
@@ -284,7 +284,7 @@ class N extends Error {
|
|
|
284
284
|
this.name = "PresentationExecutionSnapshotError";
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
class
|
|
287
|
+
class Wt extends Error {
|
|
288
288
|
constructor(o) {
|
|
289
289
|
super(
|
|
290
290
|
`missing_resolved_raw_temporal_format: Column "${o}" has no captured presentation. Resave this report before running it again.`
|
|
@@ -363,7 +363,7 @@ function He(e) {
|
|
|
363
363
|
return e === "millisecond" || e === "second" || e === "minute" || e === "hour" || e === "day";
|
|
364
364
|
}
|
|
365
365
|
const Ve = ["type", "locale", "pattern", "timezone", "sourceTimezone"];
|
|
366
|
-
function
|
|
366
|
+
function We(e, t) {
|
|
367
367
|
if (w(e, Ve, t), typeof e.locale != "string" || !e.locale.trim())
|
|
368
368
|
throw new Error(`${t}.locale must be a non-empty string`);
|
|
369
369
|
for (const o of ["pattern", "timezone", "sourceTimezone"])
|
|
@@ -377,7 +377,7 @@ function Xe(e, t) {
|
|
|
377
377
|
...typeof e.sourceTimezone == "string" ? { sourceTimezone: e.sourceTimezone } : {}
|
|
378
378
|
};
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function Xe(e, t) {
|
|
381
381
|
w(e, Ze, t);
|
|
382
382
|
for (const a of ["inputUnit", "largestUnit", "smallestUnit"])
|
|
383
383
|
if (e[a] !== void 0 && !He(e[a]))
|
|
@@ -528,7 +528,7 @@ function et(e) {
|
|
|
528
528
|
i = {
|
|
529
529
|
scope: a,
|
|
530
530
|
target: u,
|
|
531
|
-
format:
|
|
531
|
+
format: We(o.format, `${n}.format`)
|
|
532
532
|
};
|
|
533
533
|
break;
|
|
534
534
|
}
|
|
@@ -536,7 +536,7 @@ function et(e) {
|
|
|
536
536
|
i = {
|
|
537
537
|
scope: a,
|
|
538
538
|
target: F(o.target, `${n}.target`),
|
|
539
|
-
format:
|
|
539
|
+
format: Xe(
|
|
540
540
|
o.format,
|
|
541
541
|
`${n}.format`
|
|
542
542
|
)
|
|
@@ -584,7 +584,7 @@ function tt(e) {
|
|
|
584
584
|
);
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function Xt(e) {
|
|
588
588
|
return tt({
|
|
589
589
|
version: 1,
|
|
590
590
|
reportContext: e.reportContext,
|
|
@@ -712,7 +712,7 @@ function ro(e) {
|
|
|
712
712
|
function ct(e, t, o, r) {
|
|
713
713
|
const [n, a = n] = e;
|
|
714
714
|
if ((t == null ? void 0 : t.mode) === "pattern")
|
|
715
|
-
return
|
|
715
|
+
return W(
|
|
716
716
|
e.map(
|
|
717
717
|
(c) => V(D(c), "date", t.pattern, o, r)
|
|
718
718
|
)
|
|
@@ -748,7 +748,7 @@ function ct(e, t, o, r) {
|
|
|
748
748
|
}
|
|
749
749
|
function lt(e, t, o, r) {
|
|
750
750
|
if ((t == null ? void 0 : t.mode) === "pattern")
|
|
751
|
-
return
|
|
751
|
+
return W(
|
|
752
752
|
e.map(
|
|
753
753
|
(s) => V(
|
|
754
754
|
s.toISOString(),
|
|
@@ -793,7 +793,7 @@ function V(e, t, o, r, n) {
|
|
|
793
793
|
function dt(e) {
|
|
794
794
|
return /HH|mm|ss/.test(e);
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function W(e) {
|
|
797
797
|
return e[1] === void 0 || e[0] === e[1] ? e[0] : e.join(j);
|
|
798
798
|
}
|
|
799
799
|
function mt(e, t) {
|
|
@@ -820,7 +820,7 @@ function ft(e, t, o) {
|
|
|
820
820
|
return t === "end" && i ? n : null;
|
|
821
821
|
}
|
|
822
822
|
function pt(e, t, o) {
|
|
823
|
-
return o.fiscalCalendar || e.day !== 1 || e.year !== t.year || t.day !==
|
|
823
|
+
return o.fiscalCalendar || e.day !== 1 || e.year !== t.year || t.day !== X(t.year, t.month) ? null : e.month === t.month ? "month" : e.month % 3 === 1 && t.month === e.month + 2 ? "quarter" : e.month === 1 && t.month === 12 ? "year" : null;
|
|
824
824
|
}
|
|
825
825
|
function D(e) {
|
|
826
826
|
return `${String(e.year).padStart(4, "0")}-${String(e.month).padStart(2, "0")}-${String(e.day).padStart(2, "0")}`;
|
|
@@ -840,11 +840,11 @@ function yt(e, t) {
|
|
|
840
840
|
function ht(e, t) {
|
|
841
841
|
return e.year === t.year && e.month === t.month && e.day === t.day;
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function X(e, t) {
|
|
844
844
|
return new Date(Date.UTC(e, t, 0)).getUTCDate();
|
|
845
845
|
}
|
|
846
846
|
function wt(e) {
|
|
847
|
-
return e.year >= 1 && e.month >= 1 && e.month <= 12 && e.day >= 1 && e.day <=
|
|
847
|
+
return e.year >= 1 && e.month >= 1 && e.month <= 12 && e.day >= 1 && e.day <= X(e.year, e.month);
|
|
848
848
|
}
|
|
849
849
|
function I(e) {
|
|
850
850
|
return Array.from(
|
|
@@ -1207,7 +1207,7 @@ export {
|
|
|
1207
1207
|
Be as H,
|
|
1208
1208
|
Vt as I,
|
|
1209
1209
|
Ot as J,
|
|
1210
|
-
|
|
1210
|
+
Wt as M,
|
|
1211
1211
|
N as P,
|
|
1212
1212
|
ot as a,
|
|
1213
1213
|
je as b,
|
|
@@ -1225,7 +1225,7 @@ export {
|
|
|
1225
1225
|
et as n,
|
|
1226
1226
|
tt as o,
|
|
1227
1227
|
v as p,
|
|
1228
|
-
|
|
1228
|
+
Xt as q,
|
|
1229
1229
|
Jt as r,
|
|
1230
1230
|
Gt as s,
|
|
1231
1231
|
eo as t,
|
package/dist/chunks/{raw-temporal-presentation-D3i0mnUe.js → raw-temporal-presentation-gooAp93G.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./analytics-base-schemas-BKs3flFS.js";
|
|
2
|
-
import { r as P } from "./pivot-result-identity-
|
|
3
|
-
import { r as R, n as M } from "./global-date-filter-utils-
|
|
4
|
-
import "./validators-
|
|
5
|
-
import "./matrix-operation-contract
|
|
2
|
+
import { r as P } from "./pivot-result-identity-BHJGZwIc.js";
|
|
3
|
+
import { r as R, n as M } from "./global-date-filter-utils-Or-3DL3k.js";
|
|
4
|
+
import "./validators-ClKLGDGZ.js";
|
|
5
|
+
import "./matrix-operation-contract--lMaLlpV.js";
|
|
6
6
|
import { v as S } from "./raw-temporal-contract-WuXA8jBP.js";
|
|
7
7
|
import "zod";
|
|
8
8
|
import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as A } from "../value-format-preferences/index.js";
|
|
9
|
-
import { f as E, M as O } from "./pivot-result-lifecycle-
|
|
10
|
-
import { p as g, r as b, c as q, R as z, v as L } from "./temporal-bucket-
|
|
9
|
+
import { f as E, M as O } from "./pivot-result-lifecycle-BygCpOhk.js";
|
|
10
|
+
import { p as g, r as b, c as q, R as z, v as L } from "./temporal-bucket-C4rqmwaQ.js";
|
|
11
11
|
const $ = "SEMAPHOR_CALCULATED_FIELD";
|
|
12
12
|
function j(e, a, t) {
|
|
13
13
|
if (t && (a === "groupby" || a === "pivotby"))
|
package/dist/chunks/{report-preferences-dialog-C0uGI0v7.js → report-preferences-dialog-2tqY0BMQ.js}
RENAMED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { jsxs as h, jsx as i, Fragment as te } from "react/jsx-runtime";
|
|
2
2
|
import * as v from "react";
|
|
3
|
-
import jt, { useRef as U, useState as z, useCallback as j, useEffect as
|
|
4
|
-
import { u as _, bh as
|
|
5
|
-
import "./validators-
|
|
6
|
-
import "./matrix-operation-contract
|
|
3
|
+
import jt, { useRef as U, useState as z, useCallback as j, useEffect as H, useMemo as J, createContext as $t, useContext as He, lazy as Ee, Suspense as Se, useLayoutEffect as Ie, Activity as Vt, useId as ce } from "react";
|
|
4
|
+
import { u as _, bh as Kt, bi as Ht, bj as gt, a4 as qt, bk as Gt, bl as Xt, bm as Jt, b as Yt, b5 as qe, bn as Zt, bo as Qt, bp as yt, x as ea, bq as ta, br as aa, bs as ra, bt as na, bu as ge, bv as wt, bw as tt, bx as sa, Z as ye, Y as la, by as ia, bz as oa, _ as at, $ as da, bA as ca, E as ua, F as fa, S as ma, B as ha, a as pa, U as ba, bB as va, D as ga, A as ya, C as wa, bC as Sa, bD as xa, bE as Ia, bF as Ca, bG as rt, bH as ke, bI as Ea, bJ as Ge, bK as X, bL as Na, bM as Ta, bN as ka, bO as Aa, bP as Da } from "./semaphor-ready-indicator-yM4wo-FH.js";
|
|
5
|
+
import "./validators-ClKLGDGZ.js";
|
|
6
|
+
import "./matrix-operation-contract--lMaLlpV.js";
|
|
7
7
|
import "./analytics-base-schemas-BKs3flFS.js";
|
|
8
8
|
import "zod";
|
|
9
|
-
import { Y as Ra,
|
|
9
|
+
import { Y as Ra, cW as _a, bs as Pa, bt as Oa, as as Fa, s as La } from "./global-date-filter-utils-Or-3DL3k.js";
|
|
10
10
|
import { j as za } from "./index-CuHybtft.js";
|
|
11
11
|
import { parseValueFormatPreferencesResponse as Ma, canonicalizeSupportedLocale as St, getSupportedCurrencyCodes as Ua, canonicalizeSupportedCurrencyCode as Wa } from "../value-format-preferences/index.js";
|
|
12
12
|
import { c as W } from "./_commonjsHelpers-DimLPMtv.js";
|
|
13
13
|
import "./index-CtoK1Lgu.js";
|
|
14
|
-
import "./pivot-result-lifecycle-
|
|
15
|
-
import {
|
|
16
|
-
import { l as oe, B as q, N as ja, O as $a, Q as Va, U as
|
|
14
|
+
import "./pivot-result-lifecycle-BygCpOhk.js";
|
|
15
|
+
import { I as Ba } from "./table-settings-DOT_Bv1m.js";
|
|
16
|
+
import { l as oe, B as q, N as ja, O as $a, Q as Va, U as Ka, V as Ha, W as qa, X as ie, z as ee, Y as pe, P as Ga, a as Xa, b as Ja, c as nt, L as xt, r as Le, s as ze, t as Me, u as Ue, v as Z, T as Ya, d as Za, e as st, g as lt } from "./switch-B-UTI6v-.js";
|
|
17
17
|
import { X as Qa } from "./x-4f5U2XwU.js";
|
|
18
18
|
import { r as er, a as It } from "./availability-Bp5Gfu1I.js";
|
|
19
|
-
import { a as tr } from "./filter-reach-copy-
|
|
20
|
-
import { S as ar } from "./selection-reducer-
|
|
21
|
-
import { a as rr } from "./report-runtime-context-
|
|
22
|
-
import { r as we, M as ue } from "./temporal-bucket-
|
|
19
|
+
import { a as tr } from "./filter-reach-copy-CyftKCZE.js";
|
|
20
|
+
import { S as ar } from "./selection-reducer-yw_JgICP.js";
|
|
21
|
+
import { a as rr } from "./report-runtime-context-BaIKSaja.js";
|
|
22
|
+
import { r as we, M as ue } from "./temporal-bucket-C4rqmwaQ.js";
|
|
23
23
|
function nr(e = []) {
|
|
24
24
|
const a = U(null), t = U(null), n = U(null), [r, l] = z(), s = j(() => {
|
|
25
25
|
var u, g, b;
|
|
26
26
|
const o = ((u = a.current) == null ? void 0 : u.clientWidth) ?? 0, m = ((g = n.current) == null ? void 0 : g.offsetWidth) ?? 0, c = ((b = t.current) == null ? void 0 : b.offsetWidth) ?? 0, d = o - m - c - 8, p = Math.max(d, 0);
|
|
27
27
|
l((y) => y === p ? y : p);
|
|
28
28
|
}, []);
|
|
29
|
-
return
|
|
29
|
+
return H(() => {
|
|
30
30
|
const o = a.current;
|
|
31
31
|
if (!o || typeof ResizeObserver > "u") return;
|
|
32
32
|
const m = new ResizeObserver(() => s());
|
|
@@ -43,7 +43,7 @@ function sr({ filter: e }) {
|
|
|
43
43
|
var y;
|
|
44
44
|
const a = _(
|
|
45
45
|
(w) => w.isDashboardEditing
|
|
46
|
-
), { preferences: t } =
|
|
46
|
+
), { preferences: t } = Kt(), n = Ht((y = t == null ? void 0 : t.cardDisplay) == null ? void 0 : y.mode), r = _((w) => w.dashboard), l = _(
|
|
47
47
|
(w) => w.dashboardInputValues
|
|
48
48
|
), s = _((w) => w.selectedSheetId), o = gt(), m = J(() => {
|
|
49
49
|
var O;
|
|
@@ -70,7 +70,7 @@ function sr({ filter: e }) {
|
|
|
70
70
|
m,
|
|
71
71
|
n
|
|
72
72
|
]);
|
|
73
|
-
return
|
|
73
|
+
return H(() => {
|
|
74
74
|
b();
|
|
75
75
|
}, [e.title, b]), /* @__PURE__ */ h(
|
|
76
76
|
"div",
|
|
@@ -233,7 +233,7 @@ function mr(e) {
|
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
function hr(e) {
|
|
236
|
-
|
|
236
|
+
H(() => {
|
|
237
237
|
const a = (n, r) => {
|
|
238
238
|
const l = e.store.getState().focus;
|
|
239
239
|
l && !pr(l, n, r) && e.clearFocus();
|
|
@@ -280,18 +280,18 @@ function qn() {
|
|
|
280
280
|
}, []), width: e };
|
|
281
281
|
}
|
|
282
282
|
function Sr() {
|
|
283
|
-
return
|
|
283
|
+
return He(Xe).width;
|
|
284
284
|
}
|
|
285
285
|
function Gn() {
|
|
286
|
-
return
|
|
286
|
+
return He(Xe).overflowItems;
|
|
287
287
|
}
|
|
288
288
|
function Xn(e, a, t) {
|
|
289
|
-
const n =
|
|
289
|
+
const n = He(Xe), r = n.hasOverflowMenu && !yr(a, n.width), { register: l, setOpenOverflowId: s } = n, o = t == null ? void 0 : t.label, m = t == null ? void 0 : t.hint, c = t == null ? void 0 : t.checked, S = (t == null ? void 0 : t.order) ?? 0, d = U(t == null ? void 0 : t.icon);
|
|
290
290
|
d.current = t == null ? void 0 : t.icon;
|
|
291
291
|
const p = U(t == null ? void 0 : t.onSelect);
|
|
292
292
|
p.current = t == null ? void 0 : t.onSelect;
|
|
293
293
|
const u = U(t == null ? void 0 : t.onOpen);
|
|
294
|
-
return u.current = t == null ? void 0 : t.onOpen,
|
|
294
|
+
return u.current = t == null ? void 0 : t.onOpen, H(() => {
|
|
295
295
|
if (!(!r || o === void 0))
|
|
296
296
|
return l({
|
|
297
297
|
id: e,
|
|
@@ -315,7 +315,7 @@ function Xn(e, a, t) {
|
|
|
315
315
|
anchorSlot: n.anchorSlot
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
|
-
const xr = Ee(() => import("./assistant-chat-
|
|
318
|
+
const xr = Ee(() => import("./assistant-chat-ngs5dTvo.js"));
|
|
319
319
|
function Jn() {
|
|
320
320
|
const e = ea(), a = Sr();
|
|
321
321
|
if (!e.available) return null;
|
|
@@ -418,13 +418,13 @@ function kr(e, a) {
|
|
|
418
418
|
middleware: [
|
|
419
419
|
$a(he),
|
|
420
420
|
Va({ padding: he }),
|
|
421
|
-
|
|
421
|
+
Ka({
|
|
422
422
|
padding: he,
|
|
423
423
|
apply: ({ availableWidth: b, availableHeight: y, elements: w }) => {
|
|
424
424
|
w.floating.style.setProperty("--assistant-beside-max-w", `${Math.max(0, b)}px`), w.floating.style.setProperty("--assistant-beside-max-h", `${Math.max(0, y)}px`);
|
|
425
425
|
}
|
|
426
426
|
}),
|
|
427
|
-
|
|
427
|
+
Ha()
|
|
428
428
|
],
|
|
429
429
|
whileElementsMounted: (b, y, w) => qa(b, y, () => {
|
|
430
430
|
const D = Ar(b, y);
|
|
@@ -623,9 +623,9 @@ function Fr({
|
|
|
623
623
|
}), l = _r(n), [s, o] = z(null), m = U(/* @__PURE__ */ new Map()), c = U(/* @__PURE__ */ new Map()), S = U(Promise.resolve()), d = U({ apply: l, onLifecycleEvent: a });
|
|
624
624
|
Ie(() => {
|
|
625
625
|
d.current = { apply: l, onLifecycleEvent: a };
|
|
626
|
-
}),
|
|
626
|
+
}), H(() => {
|
|
627
627
|
e.setScreenState({ eligible: t, ...r ? { dashboardId: r } : {} });
|
|
628
|
-
}, [e, t, r]),
|
|
628
|
+
}, [e, t, r]), H(
|
|
629
629
|
() => _.subscribe((u, g) => {
|
|
630
630
|
if (u.editSessionEpoch !== g.editSessionEpoch) {
|
|
631
631
|
m.current.clear(), o(null);
|
|
@@ -636,7 +636,7 @@ function Fr({
|
|
|
636
636
|
y !== u.dashboard && m.current.delete(b);
|
|
637
637
|
}),
|
|
638
638
|
[]
|
|
639
|
-
),
|
|
639
|
+
), H(() => {
|
|
640
640
|
const u = (b) => {
|
|
641
641
|
const y = _.getState().dashboard;
|
|
642
642
|
if (!y || y.id !== b.dashboardId) return;
|
|
@@ -761,9 +761,9 @@ function xe(e) {
|
|
|
761
761
|
function Mr() {
|
|
762
762
|
return globalThis.crypto.randomUUID();
|
|
763
763
|
}
|
|
764
|
-
const Ur = Ee(() => import("./dashboard-controls-
|
|
765
|
-
() => import("./edit-dashboard-visual-
|
|
766
|
-
), Br = Ee(() => import("./dashboard-json-
|
|
764
|
+
const Ur = Ee(() => import("./dashboard-controls-CqyUTN6Q.js")), Wr = Ee(
|
|
765
|
+
() => import("./edit-dashboard-visual-BHL0AlIj.js")
|
|
766
|
+
), Br = Ee(() => import("./dashboard-json-CvDFipA0.js"));
|
|
767
767
|
function Yn({
|
|
768
768
|
showControls: e = !1,
|
|
769
769
|
showFooter: a = !0,
|
|
@@ -808,12 +808,12 @@ function Yn({
|
|
|
808
808
|
] })
|
|
809
809
|
] }) }) });
|
|
810
810
|
}
|
|
811
|
-
var ct = 1, jr = 0.9, $r = 0.8, Vr = 0.17, Ae = 0.1, De = 0.999,
|
|
811
|
+
var ct = 1, jr = 0.9, $r = 0.8, Vr = 0.17, Ae = 0.1, De = 0.999, Kr = 0.9999, Hr = 0.99, qr = /[\\\/_+.#"@\[\(\{&]/, Gr = /[\\\/_+.#"@\[\(\{&]/g, Xr = /[\s-]/, Nt = /[\s-]/g;
|
|
812
812
|
function We(e, a, t, n, r, l, s) {
|
|
813
|
-
if (l === a.length) return r === e.length ? ct :
|
|
813
|
+
if (l === a.length) return r === e.length ? ct : Hr;
|
|
814
814
|
var o = `${r},${l}`;
|
|
815
815
|
if (s[o] !== void 0) return s[o];
|
|
816
|
-
for (var m = n.charAt(l), c = t.indexOf(m, r), S = 0, d, p, u, g; c >= 0; ) d = We(e, a, t, n, c + 1, l + 1, s), d > S && (c === r ? d *= ct : qr.test(e.charAt(c - 1)) ? (d *= $r, u = e.slice(r, c - 1).match(Gr), u && r > 0 && (d *= Math.pow(De, u.length))) : Xr.test(e.charAt(c - 1)) ? (d *= jr, g = e.slice(r, c - 1).match(Nt), g && r > 0 && (d *= Math.pow(De, g.length))) : (d *= Vr, r > 0 && (d *= Math.pow(De, c - r))), e.charAt(c) !== a.charAt(l) && (d *=
|
|
816
|
+
for (var m = n.charAt(l), c = t.indexOf(m, r), S = 0, d, p, u, g; c >= 0; ) d = We(e, a, t, n, c + 1, l + 1, s), d > S && (c === r ? d *= ct : qr.test(e.charAt(c - 1)) ? (d *= $r, u = e.slice(r, c - 1).match(Gr), u && r > 0 && (d *= Math.pow(De, u.length))) : Xr.test(e.charAt(c - 1)) ? (d *= jr, g = e.slice(r, c - 1).match(Nt), g && r > 0 && (d *= Math.pow(De, g.length))) : (d *= Vr, r > 0 && (d *= Math.pow(De, c - r))), e.charAt(c) !== a.charAt(l) && (d *= Kr)), (d < Ae && t.charAt(c - 1) === n.charAt(l + 1) || n.charAt(l + 1) === n.charAt(l) && t.charAt(c - 1) !== n.charAt(l)) && (p = We(e, a, t, n, c + 1, l + 2, s), p * Ae > d && (d = p * Ae)), d > S && (S = d), c = t.indexOf(m, c + 1);
|
|
817
817
|
return s[o] = S, S;
|
|
818
818
|
}
|
|
819
819
|
function ut(e) {
|
|
@@ -836,7 +836,7 @@ var me = '[cmdk-group=""]', Re = '[cmdk-group-items=""]', Yr = '[cmdk-group-head
|
|
|
836
836
|
N(6, re);
|
|
837
837
|
}, []);
|
|
838
838
|
let x = v.useMemo(() => ({ subscribe: (f) => (s.current.add(f), () => s.current.delete(f)), snapshot: () => t.current, setState: (f, T, A) => {
|
|
839
|
-
var I, P, L,
|
|
839
|
+
var I, P, L, K;
|
|
840
840
|
if (!Object.is(t.current[f], T)) {
|
|
841
841
|
if (t.current[f] = T, f === "search") V(), C(), N(1, G);
|
|
842
842
|
else if (f === "value") {
|
|
@@ -849,7 +849,7 @@ var me = '[cmdk-group=""]', Re = '[cmdk-group-items=""]', Yr = '[cmdk-group-head
|
|
|
849
849
|
t.current.selectedItemId = (B = Y()) == null ? void 0 : B.id, x.emit();
|
|
850
850
|
}), A || N(5, re), ((P = o.current) == null ? void 0 : P.value) !== void 0) {
|
|
851
851
|
let B = T ?? "";
|
|
852
|
-
(
|
|
852
|
+
(K = (L = o.current).onValueChange) == null || K.call(L, B);
|
|
853
853
|
return;
|
|
854
854
|
}
|
|
855
855
|
}
|
|
@@ -883,16 +883,16 @@ var me = '[cmdk-group=""]', Re = '[cmdk-group-items=""]', Yr = '[cmdk-group-head
|
|
|
883
883
|
let f = t.current.filtered.items, T = [];
|
|
884
884
|
t.current.filtered.groups.forEach((I) => {
|
|
885
885
|
let P = r.current.get(I), L = 0;
|
|
886
|
-
P.forEach((
|
|
887
|
-
let B = f.get(
|
|
886
|
+
P.forEach((K) => {
|
|
887
|
+
let B = f.get(K);
|
|
888
888
|
L = Math.max(B, L);
|
|
889
889
|
}), T.push([I, L]);
|
|
890
890
|
});
|
|
891
891
|
let A = F.current;
|
|
892
892
|
k().sort((I, P) => {
|
|
893
|
-
var L,
|
|
893
|
+
var L, K;
|
|
894
894
|
let B = I.getAttribute("id"), ve = P.getAttribute("id");
|
|
895
|
-
return ((L = f.get(ve)) != null ? L : 0) - ((
|
|
895
|
+
return ((L = f.get(ve)) != null ? L : 0) - ((K = f.get(B)) != null ? K : 0);
|
|
896
896
|
}).forEach((I) => {
|
|
897
897
|
let P = I.closest(Re);
|
|
898
898
|
P ? P.appendChild(I.parentElement === P ? I : I.closest(`${Re} > *`)) : A.appendChild(I.parentElement === A ? I : I.closest(`${Re} > *`));
|
|
@@ -915,10 +915,10 @@ var me = '[cmdk-group=""]', Re = '[cmdk-group-items=""]', Yr = '[cmdk-group-head
|
|
|
915
915
|
t.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
916
916
|
let P = 0;
|
|
917
917
|
for (let L of n.current) {
|
|
918
|
-
let
|
|
918
|
+
let K = (T = (f = l.current.get(L)) == null ? void 0 : f.value) != null ? T : "", B = (I = (A = l.current.get(L)) == null ? void 0 : A.keywords) != null ? I : [], ve = R(K, B);
|
|
919
919
|
t.current.filtered.items.set(L, ve), ve > 0 && P++;
|
|
920
920
|
}
|
|
921
|
-
for (let [L,
|
|
921
|
+
for (let [L, K] of r.current) for (let B of K) if (t.current.filtered.items.get(B) > 0) {
|
|
922
922
|
t.current.filtered.groups.add(L);
|
|
923
923
|
break;
|
|
924
924
|
}
|
|
@@ -943,7 +943,7 @@ var me = '[cmdk-group=""]', Re = '[cmdk-group-items=""]', Yr = '[cmdk-group-head
|
|
|
943
943
|
}
|
|
944
944
|
function Te(f) {
|
|
945
945
|
var T;
|
|
946
|
-
let A = Y(), I = k(), P = I.findIndex((
|
|
946
|
+
let A = Y(), I = k(), P = I.findIndex((K) => K === A), L = I[P + f];
|
|
947
947
|
(T = o.current) != null && T.loop && (L = P + f < 0 ? I[I.length - 1] : P + f === I.length ? I[0] : I[P + f]), L && x.setState("value", L.getAttribute(ne));
|
|
948
948
|
}
|
|
949
949
|
function Ye(f) {
|
|
@@ -1196,7 +1196,7 @@ function mn(e = {}) {
|
|
|
1196
1196
|
const { authToken: a, tokenProps: t } = qe(), n = _(
|
|
1197
1197
|
(N) => N.actions.applyResolvedCalendarPreferences
|
|
1198
1198
|
), r = e.enabled ?? !0, l = (a == null ? void 0 : a.accessToken) ?? null, s = (t == null ? void 0 : t.apiServiceUrl) ?? null, [o, m] = z(!1), [c, S] = z(!1), [d, p] = z(!1), [u, g] = z(null), [b, y] = z(null), w = U(l);
|
|
1199
|
-
w.current = l,
|
|
1199
|
+
w.current = l, H(() => {
|
|
1200
1200
|
y(null), g(null), m(!1), S(!1), p(!1);
|
|
1201
1201
|
}, [l]);
|
|
1202
1202
|
const D = j(async (N) => {
|
|
@@ -1228,7 +1228,7 @@ function mn(e = {}) {
|
|
|
1228
1228
|
w.current === N && m(!1);
|
|
1229
1229
|
}
|
|
1230
1230
|
}, [l, s, r, D]);
|
|
1231
|
-
|
|
1231
|
+
H(() => {
|
|
1232
1232
|
r && O();
|
|
1233
1233
|
}, [r, O]);
|
|
1234
1234
|
const M = j(
|
|
@@ -1641,7 +1641,7 @@ function gn(e = {}) {
|
|
|
1641
1641
|
), r = e.enabled ?? !0, l = (a == null ? void 0 : a.accessToken) ?? null, s = (t == null ? void 0 : t.apiServiceUrl) ?? null, o = U(l);
|
|
1642
1642
|
o.current = l;
|
|
1643
1643
|
const [m, c] = z(null), [S, d] = z(!1), [p, u] = z(!1), [g, b] = z(!1), [y, w] = z(null);
|
|
1644
|
-
|
|
1644
|
+
H(() => {
|
|
1645
1645
|
c(null), w(null), d(!1), u(!1), b(!1);
|
|
1646
1646
|
}, [l]);
|
|
1647
1647
|
const D = j(async (x) => {
|
|
@@ -1684,7 +1684,7 @@ function gn(e = {}) {
|
|
|
1684
1684
|
o.current === x && d(!1);
|
|
1685
1685
|
}
|
|
1686
1686
|
}, [l, s, r, O]);
|
|
1687
|
-
|
|
1687
|
+
H(() => {
|
|
1688
1688
|
r && M();
|
|
1689
1689
|
}, [r, M]);
|
|
1690
1690
|
const F = j(
|
|
@@ -1755,7 +1755,7 @@ const Ve = [
|
|
|
1755
1755
|
{ value: "medium", label: "Medium" },
|
|
1756
1756
|
{ value: "long", label: "Long" }
|
|
1757
1757
|
], pt = "2026-07-31", _e = "2026-07-31T14:30:45";
|
|
1758
|
-
function
|
|
1758
|
+
function Ke(e) {
|
|
1759
1759
|
switch (e) {
|
|
1760
1760
|
case "viewer_user":
|
|
1761
1761
|
return "user";
|
|
@@ -1813,7 +1813,7 @@ function Fe({
|
|
|
1813
1813
|
/* @__PURE__ */ i(Z, { 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: [
|
|
1814
1814
|
/* @__PURE__ */ h("span", { children: [
|
|
1815
1815
|
"Inherited from ",
|
|
1816
|
-
|
|
1816
|
+
Ke(r),
|
|
1817
1817
|
" ·",
|
|
1818
1818
|
" ",
|
|
1819
1819
|
Pe(n)
|
|
@@ -1935,7 +1935,7 @@ function xn({
|
|
|
1935
1935
|
/* @__PURE__ */ h(Ue, { children: [
|
|
1936
1936
|
/* @__PURE__ */ h(Z, { value: "inherit", children: [
|
|
1937
1937
|
"Inherited from ",
|
|
1938
|
-
|
|
1938
|
+
Ke(t.locale),
|
|
1939
1939
|
" ·",
|
|
1940
1940
|
" ",
|
|
1941
1941
|
a.locale
|
|
@@ -2024,7 +2024,7 @@ function xn({
|
|
|
2024
2024
|
/* @__PURE__ */ h(Ue, { children: [
|
|
2025
2025
|
/* @__PURE__ */ h(Z, { value: "inherit", children: [
|
|
2026
2026
|
"Inherited from ",
|
|
2027
|
-
|
|
2027
|
+
Ke(t.defaultCurrency),
|
|
2028
2028
|
" ·",
|
|
2029
2029
|
" ",
|
|
2030
2030
|
a.defaultCurrency
|
package/dist/chunks/{report-runtime-context-hWiTCzFV.js → report-runtime-context-BaIKSaja.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parseValueFormatPreferences as _, isReportPreferenceSource as C } from "../value-format-preferences/index.js";
|
|
2
|
-
import { r as g } from "./validators-
|
|
2
|
+
import { r as g } from "./validators-ClKLGDGZ.js";
|
|
3
3
|
import { i as k } from "./analytics-base-schemas-BKs3flFS.js";
|
|
4
4
|
const D = {
|
|
5
5
|
tz: "UTC",
|