react-semaphor 0.1.596 → 0.1.598
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 +329 -322
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +7 -7
- package/dist/briefings/index.js +4 -4
- package/dist/chunks/{aggregate-measure-field-DHlDj0Pc.js → aggregate-measure-field-DtKcEjG5.js} +2 -2
- package/dist/chunks/{assistant-chat-DodZKMI6.js → assistant-chat-DrI442Ld.js} +13 -13
- package/dist/chunks/{bookmark-impact-Dh-wiTs3.js → bookmark-impact-C6uWtNWF.js} +3 -3
- package/dist/chunks/{bookmark-state-Be2W3s6t.js → bookmark-state-BfeKmj5s.js} +4 -4
- package/dist/chunks/{card-filter-builder-BZIj-ib3.js → card-filter-builder-CSKCSpNo.js} +58 -58
- package/dist/chunks/{comparison-window-caption-DmMFtNP5.js → comparison-window-caption-3bum5j00.js} +5 -5
- package/dist/chunks/{dashboard-BCd8aKDN.js → dashboard-PYd63LbL.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CE_z5Gh1.js → dashboard-briefing-launcher-C2AuKs10.js} +1157 -1152
- package/dist/chunks/{dashboard-controls-IG2KRX1y.js → dashboard-controls-BSbhyIkY.js} +15 -15
- package/dist/chunks/{dashboard-json-o-XrNqNW.js → dashboard-json-Bd1rxD3y.js} +4 -4
- package/dist/chunks/{dates-B-bKEsiu.js → dates-DHMCf-F7.js} +8 -8
- package/dist/chunks/{edit-dashboard-visual-HPTVtWGk.js → edit-dashboard-visual-D_0ZiWev.js} +498 -496
- package/dist/chunks/{filter-line-BpdPq1D2.js → filter-line-BdLyPYjH.js} +5 -5
- package/dist/chunks/{filter-reach-copy-DoXmRmk-.js → filter-reach-copy-Dxn-mTuG.js} +1301 -1222
- package/dist/chunks/{filter-value-text-CDQCIREQ.js → filter-value-text-C6g-nDUW.js} +4 -4
- package/dist/chunks/{index-C0jX5wlM.js → index-BHSDE54O.js} +5 -5
- package/dist/chunks/{layout-grid-DoFIfQGd.js → layout-grid-CYR-LVpl.js} +1 -1
- package/dist/chunks/{list-filter-BeTQxjNy.js → list-filter-B67GsjTw.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-CyWOwLmE.js → matrix-analytical-definition-C0IGLTZH.js} +21 -21
- package/dist/chunks/matrix-member-presentation-D5BIYuy5.js +258 -0
- package/dist/chunks/{matrix-operation-contract-CAanJeCj.js → matrix-operation-contract-RckfqkQm.js} +15 -15
- package/dist/chunks/{metric-comparison-BeKnUD08.js → metric-comparison-DsE8wdRh.js} +1 -1
- package/dist/chunks/{paintbrush-KeaU1L1a.js → paintbrush-xDDRjIyF.js} +1 -1
- package/dist/chunks/{palette-BcFJLeXB.js → palette-CbOgFCy2.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-Dt0E1Wou.js → pivot-result-contract-expectations-Cnq55Uno.js} +44 -44
- package/dist/chunks/{pivot-result-identity-BKUjYO1u.js → pivot-result-identity-b4-ugQhm.js} +1 -1
- package/dist/chunks/{raw-temporal-value-BzdgeDa7.js → raw-temporal-value-B9W38mi3.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-CgskMwZJ.js → report-preferences-dialog-DTu3a7ce.js} +13 -13
- package/dist/chunks/{report-runtime-context-g4Zp_TU9.js → report-runtime-context-BvJkcbar.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-DfJshnw8.js → resolve-dashboard-input-context-Bw-DesV2.js} +4771 -4712
- package/dist/chunks/{save-C9CZAk6V.js → save-BgvAsp6X.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-DdhPU2Kq.js → saved-dashboard-context-BFh0oOnF.js} +7 -7
- package/dist/chunks/{selection-filter-compiler-BclSpK3P.js → selection-filter-compiler-DHYsq3yM.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-BuasVClR.js → semaphor-ready-indicator-WvgHMnj8.js} +33384 -32853
- package/dist/chunks/{shelf-drop-preview-context-DjOcz0mb.js → shelf-drop-preview-context-D6HgYFJp.js} +5 -5
- package/dist/chunks/{stored-dashboard-D6FtWx_3.js → stored-dashboard-vlG0Knxi.js} +94 -94
- package/dist/chunks/{style-sheet-parts-DM_Mw_sm.js → style-sheet-parts-ClmvtkSC.js} +2 -2
- package/dist/chunks/{table-export-sheet-DBlFMvE8.js → table-export-sheet-Bv6tVuMu.js} +1 -1
- package/dist/chunks/{token-types-BB2ImFx6.js → token-types-eMdcuB6j.js} +1 -1
- package/dist/chunks/{upload-CMTCg47S.js → upload-ClUeK8F0.js} +1 -1
- package/dist/chunks/{validators-BlEWWX9O.js → validators-DwhBEvnh.js} +1074 -1065
- package/dist/chunks/{variable-draft-CxdgKDCx.js → variable-draft-CauoSBN0.js} +4 -4
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1752 -1684
- package/dist/format-utils/index.js +13 -13
- package/dist/index.js +18 -18
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/shared/unsaved-changes/unsaved-changes-alert.d.ts +2 -1
- package/dist/types/components/sharing-and-management/hooks/paged-list.d.ts +22 -0
- package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +17 -2
- package/dist/types/index.js +5 -5
- package/dist/types/lib/hooks/use-dashboard-unsaved-changes-check.d.ts +9 -1
- package/dist/types/lib/utils/filter-default-value-utils.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/catalog-field-grounding.d.ts +7 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +1 -0
- package/dist/types/shared/analytics-protocol/numeric-range-options.d.ts +46 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +45 -0
- package/dist/types/shared/dashboard-authoring/filter-model/index.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/filter-model/number-condition-spec.d.ts +24 -0
- package/dist/types/shared/dashboard-authoring/filter-model/number-range-setting.d.ts +47 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +6 -2
- package/package.json +1 -1
- package/dist/chunks/matrix-member-presentation-Bj2YcHAP.js +0 -169
|
@@ -3,13 +3,13 @@ var Zn = (e, t, n) => t in e ? qn(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var k = (e, t, n) => Zn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { z as p } from "zod";
|
|
5
5
|
import { E as Vt, l as Gt } from "./export-file-format-C-tJsxsf.js";
|
|
6
|
-
import {
|
|
7
|
-
import "./matrix-operation-contract-
|
|
6
|
+
import { b2 as Qt, b3 as Xn, aX as Kn, m as mt, a7 as Bn, O as Vn, b4 as Gn, b5 as Qn, T as Jn, K as B, U as er } from "./validators-DwhBEvnh.js";
|
|
7
|
+
import "./matrix-operation-contract-RckfqkQm.js";
|
|
8
8
|
import { k as tr, i as pe } from "./analytics-base-schemas-8wz9vqn_.js";
|
|
9
|
-
import { b as nr } from "./report-runtime-context-
|
|
9
|
+
import { b as nr } from "./report-runtime-context-BvJkcbar.js";
|
|
10
10
|
import { canonicalizeSupportedLocale as ee, canonicalizeSupportedCurrencyCode as je, DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as rr } from "../value-format-preferences/index.js";
|
|
11
|
-
import { p as ar, a as ir, c as or, i as ft, s as Te, C as sr, u as cr } from "./raw-temporal-value-
|
|
12
|
-
import { a as ur } from "./metric-comparison-
|
|
11
|
+
import { p as ar, a as ir, c as or, i as ft, s as Te, C as sr, u as cr } from "./raw-temporal-value-B9W38mi3.js";
|
|
12
|
+
import { a as ur } from "./metric-comparison-DsE8wdRh.js";
|
|
13
13
|
function te(e) {
|
|
14
14
|
if (!e || typeof e != "object") return !1;
|
|
15
15
|
const t = e.type;
|
|
@@ -163,7 +163,7 @@ function yt(e) {
|
|
|
163
163
|
return t === "en-in" || t.startsWith("en-in-");
|
|
164
164
|
}
|
|
165
165
|
function wt(e, t) {
|
|
166
|
-
const n = V(e), r = (a) => typeof n == "number" ? n >= a :
|
|
166
|
+
const n = V(e), r = (a) => typeof n == "number" ? n >= a : Xn(n.value, String(a)) >= 0;
|
|
167
167
|
return r(1e12) ? { power: 12, suffix: "T" } : r(1e9) ? { power: 9, suffix: "B" } : yt(t) && r(1e7) ? { power: 7, suffix: "Cr" } : r(1e6) ? { power: 6, suffix: "M" } : yt(t) && r(1e5) ? { power: 5, suffix: "L" } : r(1e3) ? { power: 3, suffix: "K" } : { power: 0, suffix: "" };
|
|
168
168
|
}
|
|
169
169
|
function Ze(e, t) {
|
|
@@ -592,14 +592,14 @@ const Hr = {
|
|
|
592
592
|
formats: qr,
|
|
593
593
|
defaultWidth: "full"
|
|
594
594
|
})
|
|
595
|
-
},
|
|
595
|
+
}, Xr = {
|
|
596
596
|
lastWeek: "'last' eeee 'at' p",
|
|
597
597
|
yesterday: "'yesterday at' p",
|
|
598
598
|
today: "'today at' p",
|
|
599
599
|
tomorrow: "'tomorrow at' p",
|
|
600
600
|
nextWeek: "eeee 'at' p",
|
|
601
601
|
other: "P"
|
|
602
|
-
},
|
|
602
|
+
}, Kr = (e, t, n, r) => Xr[e];
|
|
603
603
|
function q(e) {
|
|
604
604
|
return (t, n) => {
|
|
605
605
|
const r = n != null && n.context ? String(n.context) : "standalone";
|
|
@@ -914,7 +914,7 @@ const oa = /^(\d+)(th|st|nd|rd)?/i, sa = /\d+/i, ca = {
|
|
|
914
914
|
code: "en-US",
|
|
915
915
|
formatDistance: Wr,
|
|
916
916
|
formatLong: Zr,
|
|
917
|
-
formatRelative:
|
|
917
|
+
formatRelative: Kr,
|
|
918
918
|
localize: na,
|
|
919
919
|
match: pa,
|
|
920
920
|
options: {
|
|
@@ -1675,10 +1675,10 @@ function js(e, t) {
|
|
|
1675
1675
|
return /* @__PURE__ */ new Date(NaN);
|
|
1676
1676
|
const i = a.getTime();
|
|
1677
1677
|
let o = 0, s;
|
|
1678
|
-
if (r.time && (o =
|
|
1678
|
+
if (r.time && (o = Xa(r.time), isNaN(o)))
|
|
1679
1679
|
return /* @__PURE__ */ new Date(NaN);
|
|
1680
1680
|
if (r.timezone) {
|
|
1681
|
-
if (s =
|
|
1681
|
+
if (s = Ka(r.timezone), isNaN(s))
|
|
1682
1682
|
return /* @__PURE__ */ new Date(NaN);
|
|
1683
1683
|
} else {
|
|
1684
1684
|
const c = new Date(i + o), u = /* @__PURE__ */ new Date(0);
|
|
@@ -1729,7 +1729,7 @@ function Za(e, t) {
|
|
|
1729
1729
|
if (t === null) return /* @__PURE__ */ new Date(NaN);
|
|
1730
1730
|
const n = e.match(La);
|
|
1731
1731
|
if (!n) return /* @__PURE__ */ new Date(NaN);
|
|
1732
|
-
const r = !!n[4], a =
|
|
1732
|
+
const r = !!n[4], a = X(n[1]), i = X(n[2]) - 1, o = X(n[3]), s = X(n[4]), c = X(n[5]) - 1;
|
|
1733
1733
|
if (r)
|
|
1734
1734
|
return Ja(t, s, c) ? Ba(t, s, c) : /* @__PURE__ */ new Date(NaN);
|
|
1735
1735
|
{
|
|
@@ -1737,10 +1737,10 @@ function Za(e, t) {
|
|
|
1737
1737
|
return !Ga(t, i, o) || !Qa(t, a) ? /* @__PURE__ */ new Date(NaN) : (u.setUTCFullYear(t, i, Math.max(a, o)), u);
|
|
1738
1738
|
}
|
|
1739
1739
|
}
|
|
1740
|
-
function
|
|
1740
|
+
function X(e) {
|
|
1741
1741
|
return e ? parseInt(e) : 1;
|
|
1742
1742
|
}
|
|
1743
|
-
function
|
|
1743
|
+
function Xa(e) {
|
|
1744
1744
|
const t = e.match(Wa);
|
|
1745
1745
|
if (!t) return NaN;
|
|
1746
1746
|
const n = Ce(t[1]), r = Ce(t[2]), a = Ce(t[3]);
|
|
@@ -1749,7 +1749,7 @@ function Ka(e) {
|
|
|
1749
1749
|
function Ce(e) {
|
|
1750
1750
|
return e && parseFloat(e.replace(",", ".")) || 0;
|
|
1751
1751
|
}
|
|
1752
|
-
function
|
|
1752
|
+
function Ka(e) {
|
|
1753
1753
|
if (e === "Z") return 0;
|
|
1754
1754
|
const t = e.match(Ha);
|
|
1755
1755
|
if (!t) return 0;
|
|
@@ -1894,7 +1894,7 @@ function Ee(e, t, n) {
|
|
|
1894
1894
|
}
|
|
1895
1895
|
if (hi(e)) {
|
|
1896
1896
|
t = new Date(t || Date.now());
|
|
1897
|
-
const o = n ? t : fi(t), s =
|
|
1897
|
+
const o = n ? t : fi(t), s = Xe(o, e);
|
|
1898
1898
|
return -(n ? s : di(t, s, e));
|
|
1899
1899
|
}
|
|
1900
1900
|
return NaN;
|
|
@@ -1902,7 +1902,7 @@ function Ee(e, t, n) {
|
|
|
1902
1902
|
function fi(e) {
|
|
1903
1903
|
return nt(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
1904
1904
|
}
|
|
1905
|
-
function
|
|
1905
|
+
function Xe(e, t) {
|
|
1906
1906
|
const n = ii(e, t), r = nt(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
|
|
1907
1907
|
let a = e.getTime();
|
|
1908
1908
|
const i = a % 1e3;
|
|
@@ -1910,11 +1910,11 @@ function Ke(e, t) {
|
|
|
1910
1910
|
}
|
|
1911
1911
|
function di(e, t, n) {
|
|
1912
1912
|
let a = e.getTime() - t;
|
|
1913
|
-
const i =
|
|
1913
|
+
const i = Xe(new Date(a), n);
|
|
1914
1914
|
if (t === i)
|
|
1915
1915
|
return t;
|
|
1916
1916
|
a -= i - t;
|
|
1917
|
-
const o =
|
|
1917
|
+
const o = Xe(new Date(a), n);
|
|
1918
1918
|
return i === o ? i : Math.max(i, o);
|
|
1919
1919
|
}
|
|
1920
1920
|
function _t(e, t) {
|
|
@@ -2238,7 +2238,7 @@ function Zs(e, t = /* @__PURE__ */ new Date()) {
|
|
|
2238
2238
|
return e;
|
|
2239
2239
|
}
|
|
2240
2240
|
}
|
|
2241
|
-
function
|
|
2241
|
+
function Xs(e) {
|
|
2242
2242
|
try {
|
|
2243
2243
|
const t = {
|
|
2244
2244
|
timeZone: e,
|
|
@@ -2278,7 +2278,7 @@ const Ei = "MM/dd/yyyy", Oi = (e, t, n, r = "auto") => {
|
|
|
2278
2278
|
return console.error("Date formatting error:", a), e;
|
|
2279
2279
|
}
|
|
2280
2280
|
};
|
|
2281
|
-
function
|
|
2281
|
+
function Ks(e, t, n = "auto") {
|
|
2282
2282
|
if (e)
|
|
2283
2283
|
try {
|
|
2284
2284
|
const r = rt(e, n);
|
|
@@ -2318,7 +2318,7 @@ function vn(e, t, n) {
|
|
|
2318
2318
|
var o, s;
|
|
2319
2319
|
if (e == null)
|
|
2320
2320
|
return e === null ? ((o = n.absence) == null ? void 0 : o.nullText) ?? "" : ((s = n.absence) == null ? void 0 : s.emptyText) ?? "";
|
|
2321
|
-
const r =
|
|
2321
|
+
const r = Kn(e) ? e : void 0, a = r ? r.value : e, i = r ?? (typeof e == "number" ? e : void 0);
|
|
2322
2322
|
if (!n.useFormattedValues || !t)
|
|
2323
2323
|
return String(a);
|
|
2324
2324
|
switch (t.type) {
|
|
@@ -2596,7 +2596,7 @@ function qi(e, t) {
|
|
|
2596
2596
|
return Rt(n);
|
|
2597
2597
|
}
|
|
2598
2598
|
const Zi = Object.freeze({ source: "automatic" });
|
|
2599
|
-
function
|
|
2599
|
+
function Xi(e, t) {
|
|
2600
2600
|
var r, a;
|
|
2601
2601
|
const n = e.preferences;
|
|
2602
2602
|
switch (t) {
|
|
@@ -2619,7 +2619,7 @@ function Ut(e, t) {
|
|
|
2619
2619
|
...n.pivotByColumns ?? []
|
|
2620
2620
|
].find((r) => r.id === t);
|
|
2621
2621
|
}
|
|
2622
|
-
function
|
|
2622
|
+
function Ki(e, t) {
|
|
2623
2623
|
if (t.kind === "field") return Ut(e, t.fieldId);
|
|
2624
2624
|
if (t.kind === "pivot") return Ut(e, t.metricId);
|
|
2625
2625
|
}
|
|
@@ -2650,9 +2650,9 @@ function at(e) {
|
|
|
2650
2650
|
}
|
|
2651
2651
|
function Gi(e) {
|
|
2652
2652
|
var o;
|
|
2653
|
-
const { card: t, column: n, surface: r } = e, a =
|
|
2653
|
+
const { card: t, column: n, surface: r } = e, a = Ki(t, n), i = n.kind === "field" ? n.fieldId : n.kind === "pivot" ? n.metricId : void 0;
|
|
2654
2654
|
return at({
|
|
2655
|
-
surface: r ?
|
|
2655
|
+
surface: r ? Xi(t, r) : void 0,
|
|
2656
2656
|
override: Bi(t, n, a),
|
|
2657
2657
|
model: (i !== void 0 ? (o = e.modelFormats) == null ? void 0 : o[i] : void 0) ?? e.catalogFormat,
|
|
2658
2658
|
snapshot: Vi(a)
|
|
@@ -2963,19 +2963,19 @@ function fo(e) {
|
|
|
2963
2963
|
function me(e, t) {
|
|
2964
2964
|
return e.filter((n) => t.includes(n)).length;
|
|
2965
2965
|
}
|
|
2966
|
-
function
|
|
2966
|
+
function K(e, t) {
|
|
2967
2967
|
return e.some((n) => t.includes(n));
|
|
2968
2968
|
}
|
|
2969
|
-
const bn = ["YYYY", "YY"], Sn = ["MMMM", "MMM", "MM"], ho = [...bn, ...Sn, "DD"],
|
|
2969
|
+
const bn = ["YYYY", "YY"], Sn = ["MMMM", "MMM", "MM"], ho = [...bn, ...Sn, "DD"], Ke = ["HH", "hh", "h"], go = ["hh", "h"], Be = ["a", "A"], yo = [...Ke, "mm", "ss", ...Be], fe = "A date needs its year, month and day.";
|
|
2970
2970
|
function wo(e, t) {
|
|
2971
2971
|
if (new Set(e).size !== e.length) return "Use each part once.";
|
|
2972
|
-
if (me(e,
|
|
2972
|
+
if (me(e, Ke) > 1)
|
|
2973
2973
|
return "Use one hour: HH for a 24-hour clock, or h with a for 12-hour.";
|
|
2974
2974
|
if (me(e, Be) > 1) return "Use a once to show AM or PM.";
|
|
2975
|
-
const n =
|
|
2975
|
+
const n = K(e, go), r = K(e, Be);
|
|
2976
2976
|
if (r && !n) return "a shows AM or PM: pair it with h or hh, not HH.";
|
|
2977
2977
|
if (n && !r) return "Add a after a 12-hour hour, so 2:30 reads 2:30 PM.";
|
|
2978
|
-
const a = me(e, bn) === 1, i = me(e, Sn) === 1, o = e.includes("DD"), s =
|
|
2978
|
+
const a = me(e, bn) === 1, i = me(e, Sn) === 1, o = e.includes("DD"), s = K(e, Ke), c = K(e, yo), u = !K(e, ho) || a && i && o;
|
|
2979
2979
|
switch (t) {
|
|
2980
2980
|
case "second":
|
|
2981
2981
|
return !s || !e.includes("mm") || !e.includes("ss") ? "A second shows hours, minutes and seconds, for example h:mm:ss a." : u ? void 0 : fe;
|
|
@@ -3940,7 +3940,7 @@ function J(e) {
|
|
|
3940
3940
|
const t = /* @__PURE__ */ new Date(0);
|
|
3941
3941
|
return t.setUTCFullYear(e.year, e.month - 1, e.day), t.setUTCHours(e.hour, e.minute, e.second, 0), t;
|
|
3942
3942
|
}
|
|
3943
|
-
function
|
|
3943
|
+
function Xt(e, t, n) {
|
|
3944
3944
|
return A(t, {
|
|
3945
3945
|
calendar: "gregory",
|
|
3946
3946
|
dateStyle: n,
|
|
@@ -3985,7 +3985,7 @@ function qo(e, t, n) {
|
|
|
3985
3985
|
function zn(e, t) {
|
|
3986
3986
|
return Math.floor((e.month - t + 12) % 12 / 3) + 1;
|
|
3987
3987
|
}
|
|
3988
|
-
function
|
|
3988
|
+
function Kt(e, t) {
|
|
3989
3989
|
return t === 1 || e.month < t ? e.year : e.year + 1;
|
|
3990
3990
|
}
|
|
3991
3991
|
function Rn(e) {
|
|
@@ -4032,12 +4032,12 @@ function Ge(e, t, n, r) {
|
|
|
4032
4032
|
case "quarter_long":
|
|
4033
4033
|
return `${Rn(i)} Quarter ${e.year}`;
|
|
4034
4034
|
case "fiscal_quarter_short":
|
|
4035
|
-
return `Q${i} FY${
|
|
4035
|
+
return `Q${i} FY${Kt(e, a)}`;
|
|
4036
4036
|
case "fiscal_year":
|
|
4037
|
-
return `FY${
|
|
4037
|
+
return `FY${Kt(e, a)}`;
|
|
4038
4038
|
}
|
|
4039
4039
|
}
|
|
4040
|
-
function
|
|
4040
|
+
function Xo(e, t, n, r) {
|
|
4041
4041
|
const a = Oe(t);
|
|
4042
4042
|
switch (t.granularity) {
|
|
4043
4043
|
case "second":
|
|
@@ -4045,9 +4045,9 @@ function Ko(e, t, n, r) {
|
|
|
4045
4045
|
case "hour":
|
|
4046
4046
|
return jo(e, n, r.dateTime);
|
|
4047
4047
|
case "day":
|
|
4048
|
-
return
|
|
4048
|
+
return Xt(e, n, r.dateStyle);
|
|
4049
4049
|
case "week":
|
|
4050
|
-
return `Week of ${
|
|
4050
|
+
return `Week of ${Xt(e, n, r.dateStyle)}`;
|
|
4051
4051
|
case "month":
|
|
4052
4052
|
return qo(e, n, r.dateStyle);
|
|
4053
4053
|
case "quarter":
|
|
@@ -4085,7 +4085,7 @@ function st(e) {
|
|
|
4085
4085
|
if (n.value === null) return "(Blank)";
|
|
4086
4086
|
const { presentation: r, locale: a } = t.value;
|
|
4087
4087
|
if (r.mode === "auto")
|
|
4088
|
-
return
|
|
4088
|
+
return Xo(
|
|
4089
4089
|
n.value,
|
|
4090
4090
|
e.metadata,
|
|
4091
4091
|
a,
|
|
@@ -4106,7 +4106,7 @@ function st(e) {
|
|
|
4106
4106
|
);
|
|
4107
4107
|
return Ho(n.value, i.segments, a);
|
|
4108
4108
|
}
|
|
4109
|
-
function
|
|
4109
|
+
function Ko(e, t) {
|
|
4110
4110
|
var a;
|
|
4111
4111
|
const n = e[e.length - 1];
|
|
4112
4112
|
if (!n) return "";
|
|
@@ -4120,7 +4120,7 @@ function Bo(e, t, n) {
|
|
|
4120
4120
|
function wc(e, t, n, r) {
|
|
4121
4121
|
var o;
|
|
4122
4122
|
const a = e[e.length - 1], i = t === "grand_total" ? n.grand.label : a ? (o = n.levels[a.levelId]) == null ? void 0 : o.label : void 0;
|
|
4123
|
-
return Bo(t,
|
|
4123
|
+
return Bo(t, Ko(e, r), i);
|
|
4124
4124
|
}
|
|
4125
4125
|
function pc(e, t, n) {
|
|
4126
4126
|
return e.kind === "value" ? (t == null ? void 0 : t(e.value)) ?? "" : e.kind === "null" ? n.nullText : n.emptyText;
|
|
@@ -4959,7 +4959,7 @@ export {
|
|
|
4959
4959
|
Pc as aG,
|
|
4960
4960
|
Sc as aH,
|
|
4961
4961
|
Us as aI,
|
|
4962
|
-
|
|
4962
|
+
Ko as aJ,
|
|
4963
4963
|
wc as aK,
|
|
4964
4964
|
Tc as aL,
|
|
4965
4965
|
pc as aM,
|
|
@@ -5035,10 +5035,10 @@ export {
|
|
|
5035
5035
|
at as p,
|
|
5036
5036
|
$i as q,
|
|
5037
5037
|
Gi as r,
|
|
5038
|
-
|
|
5038
|
+
Ks as s,
|
|
5039
5039
|
qs as t,
|
|
5040
5040
|
Zs as u,
|
|
5041
|
-
|
|
5041
|
+
Xs as v,
|
|
5042
5042
|
oc as w,
|
|
5043
5043
|
rt as x,
|
|
5044
5044
|
vn as y,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var y = Object.defineProperty;
|
|
2
2
|
var c = (i, t, e) => t in i ? y(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
3
|
var a = (i, t, e) => c(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { v as u } from "./metric-comparison-
|
|
4
|
+
import { v as u } from "./metric-comparison-DsE8wdRh.js";
|
|
5
5
|
class l extends Error {
|
|
6
6
|
constructor(e) {
|
|
7
7
|
super(`missing_pivot_member_identity: ${e}`);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var O = Object.defineProperty;
|
|
2
2
|
var P = (t, e, n) => e in t ? O(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var b = (t, e, n) => P(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import { j as U, l as W,
|
|
4
|
+
import { j as U, l as W, aM as E } from "./validators-DwhBEvnh.js";
|
|
5
5
|
import { R as x } from "./analytics-base-schemas-8wz9vqn_.js";
|
|
6
6
|
const k = /* @__PURE__ */ new Map();
|
|
7
7
|
function y(t, e) {
|
package/dist/chunks/{report-preferences-dialog-CgskMwZJ.js → report-preferences-dialog-DTu3a7ce.js}
RENAMED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as r, Fragment as M, jsxs as d } from "react/jsx-runtime";
|
|
2
2
|
import He, { useMemo as j, useState as I, useEffect as B, lazy as ae, Suspense as Y, useRef as L, useLayoutEffect as ee, useCallback as P, Activity as Ke, useId as $ } from "react";
|
|
3
|
-
import { b as qe, b8 as be, bk as Ge, bl as Je, u as D, bm as ze, Y as Xe, W as Ze, bn as Ye, bo as Qe, bp as et, bq as tt, br as J, bs as Le, bt as ge, bu as at, ad as X, ac as rt, bv as nt, bw as st, ae as ye, af as lt, bx as it, E as ot, F as dt, S as ct, B as ut, a as mt, U as ht, by as ft, D as bt, A as pt, C as gt, bz as yt, bA as ve, bB as ne, bC as vt, i as St, j as wt, k as xt, l as Tt, m as Se, n as we, bD as Ct, bE as pe, bF as F, bG as Nt, bH as Et, bI as It, bJ as At, bK as Dt } from "./semaphor-ready-indicator-
|
|
3
|
+
import { b as qe, b8 as be, bk as Ge, bl as Je, u as D, bm as ze, Y as Xe, W as Ze, bn as Ye, bo as Qe, bp as et, bq as tt, br as J, bs as Le, bt as ge, bu as at, ad as X, ac as rt, bv as nt, bw as st, ae as ye, af as lt, bx as it, E as ot, F as dt, S as ct, B as ut, a as mt, U as ht, by as ft, D as bt, A as pt, C as gt, bz as yt, bA as ve, bB as ne, bC as vt, i as St, j as wt, k as xt, l as Tt, m as Se, n as we, bD as Ct, bE as pe, bF as F, bG as Nt, bH as Et, bI as It, bJ as At, bK as Dt } from "./semaphor-ready-indicator-WvgHMnj8.js";
|
|
4
4
|
import { j as kt, c as U } from "./pickers-DkqmtnTL.js";
|
|
5
|
-
import { K as _t } from "./bookmark-state-
|
|
5
|
+
import { K as _t } from "./bookmark-state-BfeKmj5s.js";
|
|
6
6
|
import { r as Pt, a as Re } from "./availability-Bp5Gfu1I.js";
|
|
7
|
-
import { s as zt } from "./resolve-dashboard-input-context-
|
|
8
|
-
import { B as z, Z as Lt, _ as Rt, $ as Ut, a0 as Ft, a1 as Ot, a2 as Bt, s as G, e as jt, f as Mt, h as Vt, j as xe, L as Ue, y as de, z as ce, A as ue, D as me, E as O, T as Wt, k as $t, l as Te, n as Ce } from "./style-sheet-parts-
|
|
9
|
-
import "./validators-
|
|
10
|
-
import "./matrix-operation-contract-
|
|
7
|
+
import { s as zt } from "./resolve-dashboard-input-context-Bw-DesV2.js";
|
|
8
|
+
import { B as z, Z as Lt, _ as Rt, $ as Ut, a0 as Ft, a1 as Ot, a2 as Bt, s as G, e as jt, f as Mt, h as Vt, j as xe, L as Ue, y as de, z as ce, A as ue, D as me, E as O, T as Wt, k as $t, l as Te, n as Ce } from "./style-sheet-parts-ClmvtkSC.js";
|
|
9
|
+
import "./validators-DwhBEvnh.js";
|
|
10
|
+
import "./matrix-operation-contract-RckfqkQm.js";
|
|
11
11
|
import "./analytics-base-schemas-8wz9vqn_.js";
|
|
12
12
|
import { parseValueFormatPreferencesResponse as Ht, canonicalizeSupportedLocale as Fe, getSupportedCurrencyCodes as Kt, canonicalizeSupportedCurrencyCode as qt } from "../value-format-preferences/index.js";
|
|
13
|
-
import { f as Gt } from "./filter-reach-copy-
|
|
14
|
-
import { a as Jt } from "./report-runtime-context-
|
|
15
|
-
import { as as Z, az as H } from "./pivot-result-contract-expectations-
|
|
13
|
+
import { f as Gt } from "./filter-reach-copy-Dxn-mTuG.js";
|
|
14
|
+
import { a as Jt } from "./report-runtime-context-BvJkcbar.js";
|
|
15
|
+
import { as as Z, az as H } from "./pivot-result-contract-expectations-Cnq55Uno.js";
|
|
16
16
|
function Xt() {
|
|
17
17
|
return /* @__PURE__ */ r(
|
|
18
18
|
"div",
|
|
@@ -93,7 +93,7 @@ function na(e, a, t) {
|
|
|
93
93
|
const n = t ? _t(t, e.cardId) : void 0;
|
|
94
94
|
return !!n && n.sheet.id === e.sheetId;
|
|
95
95
|
}
|
|
96
|
-
const sa = ae(() => import("./assistant-chat-
|
|
96
|
+
const sa = ae(() => import("./assistant-chat-DrI442Ld.js"));
|
|
97
97
|
function Ya() {
|
|
98
98
|
const e = Xe(), a = Ze();
|
|
99
99
|
if (!e.available) return null;
|
|
@@ -535,9 +535,9 @@ function Q(e) {
|
|
|
535
535
|
function Sa() {
|
|
536
536
|
return globalThis.crypto.randomUUID();
|
|
537
537
|
}
|
|
538
|
-
const wa = ae(() => import("./dashboard-controls-
|
|
539
|
-
() => import("./edit-dashboard-visual-
|
|
540
|
-
), Ta = ae(() => import("./dashboard-json-
|
|
538
|
+
const wa = ae(() => import("./dashboard-controls-BSbhyIkY.js")), xa = ae(
|
|
539
|
+
() => import("./edit-dashboard-visual-D_0ZiWev.js")
|
|
540
|
+
), Ta = ae(() => import("./dashboard-json-Bd1rxD3y.js"));
|
|
541
541
|
function Qa({
|
|
542
542
|
showControls: e = !1,
|
|
543
543
|
showFooter: a = !0,
|
package/dist/chunks/{report-runtime-context-g4Zp_TU9.js → report-runtime-context-BvJkcbar.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parseValueFormatPreferences as _, isReportPreferenceSource as C } from "../value-format-preferences/index.js";
|
|
2
|
-
import { p as g } from "./validators-
|
|
2
|
+
import { p as g } from "./validators-DwhBEvnh.js";
|
|
3
3
|
import { i as k } from "./analytics-base-schemas-8wz9vqn_.js";
|
|
4
4
|
const D = {
|
|
5
5
|
tz: "UTC",
|