react-semaphor 0.1.599 → 0.1.601
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 +106 -105
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +7 -7
- package/dist/briefings/index.js +48 -45
- package/dist/chunks/{assistant-chat-f3XuzrAm.js → assistant-chat-BE0XXzZP.js} +12 -12
- package/dist/chunks/{bookmark-impact-B5hyttm2.js → bookmark-impact-DXDAN5AY.js} +3 -3
- package/dist/chunks/{bookmark-state-h1OLXVjE.js → bookmark-state-BMyB3Tb6.js} +4 -4
- package/dist/chunks/{card-filter-builder-DfLqD2RV.js → card-filter-builder-CE0-YVN5.js} +9 -9
- package/dist/chunks/comparison-window-caption-Dxj2CHOa.js +741 -0
- package/dist/chunks/{dashboard-briefing-launcher-RxYGtk-F.js → dashboard-briefing-launcher-CntwKyiZ.js} +13 -13
- package/dist/chunks/{dashboard-controls-DeaXrtLK.js → dashboard-controls-XO089DMg.js} +15 -15
- package/dist/chunks/{dashboard-json-DvxKpKd_.js → dashboard-json-CQRiydUv.js} +4 -4
- package/dist/chunks/{dashboard-CoI4aOUc.js → dashboard-mJKPFRbb.js} +1 -1
- package/dist/chunks/{dates-BhtO28Sn.js → dates-B-Urp5OD.js} +8 -8
- package/dist/chunks/{edit-dashboard-visual-C4f5hONA.js → edit-dashboard-visual-f-Dm-BLR.js} +176 -176
- package/dist/chunks/filter-line-CKNMyNTQ.js +703 -0
- package/dist/chunks/{filter-reach-copy-Cl5Od38Q.js → filter-reach-copy-B8GGyVuR.js} +1441 -1270
- package/dist/chunks/{filter-value-text-CXyuLW9Q.js → filter-value-text-CRtKecI5.js} +6 -6
- package/dist/chunks/{index-EKpTtkYF.js → index-DoPApnxg.js} +386 -360
- package/dist/chunks/{layout-grid-DSrBSfPM.js → layout-grid-CiSCZdIr.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-BuUSBDm7.js → matrix-analytical-definition-myf3D3Qx.js} +383 -362
- package/dist/chunks/{matrix-member-presentation-B_2beBc0.js → matrix-member-presentation-g0c_NpDW.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-DdK0J_KU.js → matrix-operation-contract-C1SuOHLZ.js} +35 -35
- package/dist/chunks/{metric-comparison-Bhz0V841.js → metric-comparison-Cm0G893W.js} +3 -3
- package/dist/chunks/{paintbrush-1UiU-uTz.js → paintbrush-DQIwqlck.js} +1 -1
- package/dist/chunks/{palette-DFIFf_-m.js → palette-Cun747Rg.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-Dk7WFR_u.js → pivot-result-contract-expectations-C1Dyx8du.js} +17 -17
- package/dist/chunks/{pivot-result-identity-CzzrJpEm.js → pivot-result-identity-CBS-ssEp.js} +1 -1
- package/dist/chunks/{raw-temporal-value-BLvdaMng.js → raw-temporal-value-DN_l-Tss.js} +16 -16
- package/dist/chunks/{report-preferences-dialog-CZaYsQLK.js → report-preferences-dialog-SDZEcG2x.js} +13 -13
- package/dist/chunks/{report-runtime-context-CEGluufW.js → report-runtime-context-BbedQdtc.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-vPtbuDDz.js → resolve-dashboard-input-context-DRBS0eRa.js} +553 -553
- package/dist/chunks/{save-CWQ02kHo.js → save-Dj5bjm7P.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-C6X5nP4C.js → saved-dashboard-context-DWVlJcsa.js} +15 -15
- package/dist/chunks/{selection-filter-compiler-Ce4BpjRX.js → selection-filter-compiler-DmAr7yqC.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-BUiaKY6O.js → semaphor-ready-indicator-OFOoAY-A.js} +16370 -16518
- package/dist/chunks/{shelf-drop-preview-context-CwxWJjBv.js → shelf-drop-preview-context-2swWypXu.js} +5 -5
- package/dist/chunks/{stored-dashboard-Bmct-STp.js → stored-dashboard-NtOuEX6a.js} +111 -111
- package/dist/chunks/{style-sheet-parts-BX7d7-2-.js → style-sheet-parts-Qv4UcLAo.js} +2 -2
- package/dist/chunks/{table-export-sheet-BWSVTclx.js → table-export-sheet-Do7ZB0_F.js} +1 -1
- package/dist/chunks/{token-types-CnlEiAdS.js → token-types-Dy_aXO-U.js} +1 -1
- package/dist/chunks/{upload-DsqUSS8l.js → upload-Bq-puSVy.js} +1 -1
- package/dist/chunks/{validators-D2Hm57lJ.js → validators-C7DFk3QK.js} +78 -78
- package/dist/chunks/{variable-draft-Bi-zUa_a.js → variable-draft-Cy03qnEi.js} +4 -4
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +80 -75
- package/dist/format-utils/index.js +238 -237
- package/dist/index.js +18 -18
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
- package/dist/types/briefings/attachments.d.ts +45 -4
- package/dist/types/briefings/index.d.ts +1 -1
- package/dist/types/index.js +5 -5
- package/dist/types/lib/export-utils.d.ts +72 -0
- package/dist/types/lib/formatters/dashboard-temporal-presentation.d.ts +10 -0
- package/dist/types/shared/analytics-protocol/catalog-source-address.d.ts +16 -0
- package/dist/types/shared/dashboard-authoring/card-data-file.d.ts +31 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +3 -0
- package/package.json +1 -1
- package/dist/chunks/comparison-window-caption-DJDwP9XO.js +0 -1309
- package/dist/chunks/filter-line-Dkg3yuOX.js +0 -134
package/dist/chunks/{matrix-operation-contract-DdK0J_KU.js → matrix-operation-contract-C1SuOHLZ.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z as t } from "zod";
|
|
2
|
-
import { z as Le, P as De, X as Ue, Y as qe, a0 as Me, a1 as Be, s as D, L as $, n as Ge, V as ze, W as ce, g as Ve, r as We, N as
|
|
3
|
-
import {
|
|
2
|
+
import { z as Le, P as De, X as Ue, Y as qe, a0 as Me, a1 as Be, s as D, L as $, n as Ge, V as ze, W as ce, g as Ve, r as We, N as Ke, E as Xe, F as $e, o as le, b as ue, I as Ze } from "./analytics-base-schemas-DevrgqQb.js";
|
|
3
|
+
import { B as k, v as de, K as G, b0 as ee, m as A, E as Ye, aV as Z, w as He, o as Qe, q as me, a3 as Je, p as et, a6 as tt, a$ as nt } from "./validators-C7DFk3QK.js";
|
|
4
4
|
const Y = {
|
|
5
5
|
answerSummary: "string",
|
|
6
6
|
responseDetail: "responseDetail",
|
|
@@ -579,7 +579,7 @@ function vt(e) {
|
|
|
579
579
|
case "boolean":
|
|
580
580
|
return t.boolean().optional();
|
|
581
581
|
case "compactExecutionFieldArray":
|
|
582
|
-
return t.array(
|
|
582
|
+
return t.array(Ke).optional();
|
|
583
583
|
case "coverage":
|
|
584
584
|
return Te.optional();
|
|
585
585
|
case "diagnosticFeedback":
|
|
@@ -637,7 +637,7 @@ function An(e) {
|
|
|
637
637
|
);
|
|
638
638
|
return Rt.parse(e);
|
|
639
639
|
}
|
|
640
|
-
const Ee = 100,
|
|
640
|
+
const Ee = 100, F = "selection:";
|
|
641
641
|
function Re(e) {
|
|
642
642
|
return [
|
|
643
643
|
me(e.source),
|
|
@@ -646,13 +646,13 @@ function Re(e) {
|
|
|
646
646
|
].join("::");
|
|
647
647
|
}
|
|
648
648
|
function In(e) {
|
|
649
|
-
return `${
|
|
649
|
+
return `${F}${e}`;
|
|
650
650
|
}
|
|
651
651
|
function Ot(e) {
|
|
652
|
-
return e.startsWith(
|
|
652
|
+
return e.startsWith(F) && e.length > F.length;
|
|
653
653
|
}
|
|
654
654
|
function _n(e) {
|
|
655
|
-
return Ot(e) ? e.slice(
|
|
655
|
+
return Ot(e) ? e.slice(F.length) : void 0;
|
|
656
656
|
}
|
|
657
657
|
function Ce(e) {
|
|
658
658
|
if (!e) return "";
|
|
@@ -726,17 +726,17 @@ const Pt = "(Blank)";
|
|
|
726
726
|
function Tn(e) {
|
|
727
727
|
return e.conditions.map((n) => n.label ? n.label : n.operator === "isNull" || n.value === null ? Pt : String(n.value)).join(" · ");
|
|
728
728
|
}
|
|
729
|
-
const
|
|
730
|
-
|
|
729
|
+
const jt = t.union([
|
|
730
|
+
Xe,
|
|
731
731
|
$e
|
|
732
|
-
]),
|
|
732
|
+
]), Ft = t.object({
|
|
733
733
|
name: t.string().min(1),
|
|
734
|
-
source:
|
|
734
|
+
source: jt,
|
|
735
735
|
dataType: t.enum(["string", "number", "boolean", "date", "datetime"]),
|
|
736
736
|
sourceField: t.string().min(1).optional(),
|
|
737
737
|
nativeDataType: t.string().min(1).optional()
|
|
738
738
|
}).strict(), Lt = t.object({
|
|
739
|
-
field:
|
|
739
|
+
field: Ft,
|
|
740
740
|
operator: t.enum(["=", "isNull"]),
|
|
741
741
|
value: t.union([t.string(), t.number().finite(), t.null()]),
|
|
742
742
|
label: t.string().optional(),
|
|
@@ -907,7 +907,7 @@ function P(e, n) {
|
|
|
907
907
|
}
|
|
908
908
|
return e.length;
|
|
909
909
|
}
|
|
910
|
-
function
|
|
910
|
+
function j(e, n) {
|
|
911
911
|
let a = n;
|
|
912
912
|
for (; a < e.length && /\s/.test(e[a]); ) a += 1;
|
|
913
913
|
return a;
|
|
@@ -918,7 +918,7 @@ function M(e, n) {
|
|
|
918
918
|
return a;
|
|
919
919
|
}
|
|
920
920
|
const Wt = /\{([A-Za-z_][A-Za-z0-9_]*)\}/g;
|
|
921
|
-
function
|
|
921
|
+
function Kt(e) {
|
|
922
922
|
return Array.from(e.matchAll(Wt), (n) => n[1]);
|
|
923
923
|
}
|
|
924
924
|
function W(e, n = /* @__PURE__ */ new Set()) {
|
|
@@ -940,7 +940,7 @@ function W(e, n = /* @__PURE__ */ new Set()) {
|
|
|
940
940
|
}
|
|
941
941
|
}
|
|
942
942
|
if (ie.test(m)) {
|
|
943
|
-
const o = M(e, l), d = e.slice(l, o), p =
|
|
943
|
+
const o = M(e, l), d = e.slice(l, o), p = j(e, o);
|
|
944
944
|
if (e[p] === "(" && Bt(d)) {
|
|
945
945
|
let g = P(e, p);
|
|
946
946
|
const I = g - 1;
|
|
@@ -953,11 +953,11 @@ function W(e, n = /* @__PURE__ */ new Set()) {
|
|
|
953
953
|
W(C ? v.replace(/^\s*DISTINCT\b/i, "") : v).calls.length > 0 && (s = !0);
|
|
954
954
|
let b = !1, _ = !1;
|
|
955
955
|
for (; ; ) {
|
|
956
|
-
const h =
|
|
956
|
+
const h = j(e, g);
|
|
957
957
|
if (!ie.test(e[h] || "")) break;
|
|
958
|
-
const N = M(e, h), E = e.slice(h, N).toUpperCase(), u =
|
|
958
|
+
const N = M(e, h), E = e.slice(h, N).toUpperCase(), u = j(e, N);
|
|
959
959
|
if (E === "WITHIN") {
|
|
960
|
-
const S = M(e, u), w =
|
|
960
|
+
const S = M(e, u), w = j(e, S);
|
|
961
961
|
if (e.slice(u, S).toUpperCase() === "GROUP" && e[w] === "(") {
|
|
962
962
|
g = P(e, w), R = g;
|
|
963
963
|
continue;
|
|
@@ -974,7 +974,7 @@ function W(e, n = /* @__PURE__ */ new Set()) {
|
|
|
974
974
|
kind: xe(d, C),
|
|
975
975
|
distinct: C,
|
|
976
976
|
windowed: b,
|
|
977
|
-
tokens:
|
|
977
|
+
tokens: Kt(e.slice(p, g)),
|
|
978
978
|
span: { start: l, end: R, argumentStart: p + 1, argumentEnd: I },
|
|
979
979
|
argumentCount: x,
|
|
980
980
|
filtered: _
|
|
@@ -991,11 +991,11 @@ function W(e, n = /* @__PURE__ */ new Set()) {
|
|
|
991
991
|
nestedAggregate: s,
|
|
992
992
|
windowed: a.some((m) => m.windowed),
|
|
993
993
|
tokensOutsideAggregates: r,
|
|
994
|
-
aggregateInputsComplete: i &&
|
|
994
|
+
aggregateInputsComplete: i && Xt(c, n),
|
|
995
995
|
skeleton: c
|
|
996
996
|
};
|
|
997
997
|
}
|
|
998
|
-
function
|
|
998
|
+
function Xt(e, n) {
|
|
999
999
|
var m;
|
|
1000
1000
|
const a = [];
|
|
1001
1001
|
let r = 0;
|
|
@@ -1158,11 +1158,11 @@ const Pe = /* @__PURE__ */ new Set([
|
|
|
1158
1158
|
"count_distinct",
|
|
1159
1159
|
"repeat_safe_other"
|
|
1160
1160
|
]);
|
|
1161
|
-
function
|
|
1161
|
+
function K(e) {
|
|
1162
1162
|
if (!(!e || !e.trim()))
|
|
1163
1163
|
return xe(e);
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1165
|
+
function je(e) {
|
|
1166
1166
|
switch (e) {
|
|
1167
1167
|
case "count":
|
|
1168
1168
|
case "sum":
|
|
@@ -1193,15 +1193,15 @@ const Q = {
|
|
|
1193
1193
|
outputType: "numeric",
|
|
1194
1194
|
identity: "unresolved",
|
|
1195
1195
|
unresolved: !0
|
|
1196
|
-
},
|
|
1197
|
-
function
|
|
1196
|
+
}, Fe = { ...Q, stage: "row" };
|
|
1197
|
+
function X(e) {
|
|
1198
1198
|
return {
|
|
1199
1199
|
stage: "row",
|
|
1200
1200
|
outer: e,
|
|
1201
1201
|
calls: [{ kind: e, distinct: e === "count_distinct" }],
|
|
1202
1202
|
windowed: !1,
|
|
1203
1203
|
repeatSafe: Pe.has(e),
|
|
1204
|
-
reaggregation:
|
|
1204
|
+
reaggregation: je(e),
|
|
1205
1205
|
outputType: e === "min" || e === "max" ? "input" : "numeric",
|
|
1206
1206
|
identity: e,
|
|
1207
1207
|
unresolved: !1
|
|
@@ -1218,8 +1218,8 @@ function Jt(e, n) {
|
|
|
1218
1218
|
const r = J(e, n + 1);
|
|
1219
1219
|
return r === "row_input" ? "raw" : r.unresolved || r.stage === "aggregate" || r.outer ? r : "raw";
|
|
1220
1220
|
}
|
|
1221
|
-
const a =
|
|
1222
|
-
return a ?
|
|
1221
|
+
const a = K(e.aggregate);
|
|
1222
|
+
return a ? X(a) : "raw";
|
|
1223
1223
|
}
|
|
1224
1224
|
const en = 12;
|
|
1225
1225
|
function J(e, n) {
|
|
@@ -1228,7 +1228,7 @@ function J(e, n) {
|
|
|
1228
1228
|
const a = typeof e.expression == "string" ? e.expression.trim() : "";
|
|
1229
1229
|
if (!a)
|
|
1230
1230
|
return B(
|
|
1231
|
-
K(
|
|
1231
|
+
X(K(e.aggregate) ?? "sum"),
|
|
1232
1232
|
e
|
|
1233
1233
|
);
|
|
1234
1234
|
const r = W(a), s = ((E = e.calculatedFormula) == null ? void 0 : E.inputFields) || [], c = (u) => {
|
|
@@ -1252,9 +1252,9 @@ function J(e, n) {
|
|
|
1252
1252
|
).map(([u]) => u)
|
|
1253
1253
|
), g = W(a, p).aggregateInputsComplete;
|
|
1254
1254
|
if (!d) {
|
|
1255
|
-
if (!g) return
|
|
1256
|
-
const u =
|
|
1257
|
-
return u ? B(
|
|
1255
|
+
if (!g) return Fe;
|
|
1256
|
+
const u = K(e.aggregate);
|
|
1257
|
+
return u ? B(X(u), e) : "row_input";
|
|
1258
1258
|
}
|
|
1259
1259
|
const I = !g || o || r.nestedAggregate || l || m.some((u) => u.unresolved) || r.calls.length === 0 && m.length === 0, R = [
|
|
1260
1260
|
...r.calls.map((u) => ({ kind: u.kind, distinct: u.distinct })),
|
|
@@ -1262,7 +1262,7 @@ function J(e, n) {
|
|
|
1262
1262
|
], v = r.windowed || m.some((u) => u.windowed), x = !I && !v && R.every((u) => Pe.has(u.kind)), C = (u) => {
|
|
1263
1263
|
if (u.kind === "call") {
|
|
1264
1264
|
const w = r.calls[u.index];
|
|
1265
|
-
return w ?
|
|
1265
|
+
return w ? je(w.kind) : { kind: "none", reason: "unresolved" };
|
|
1266
1266
|
}
|
|
1267
1267
|
const S = i.get(u.token);
|
|
1268
1268
|
return S && S !== "raw" ? S.reaggregation : { kind: "none", reason: "unresolved" };
|
|
@@ -1297,7 +1297,7 @@ function J(e, n) {
|
|
|
1297
1297
|
}
|
|
1298
1298
|
function tn(e) {
|
|
1299
1299
|
const n = J(e, 0);
|
|
1300
|
-
return n === "row_input" ?
|
|
1300
|
+
return n === "row_input" ? Fe : n;
|
|
1301
1301
|
}
|
|
1302
1302
|
function Nn(e) {
|
|
1303
1303
|
const n = tt((e == null ? void 0 : e.dataType) || "number");
|
|
@@ -1328,7 +1328,7 @@ const rn = {
|
|
|
1328
1328
|
export {
|
|
1329
1329
|
dt as $,
|
|
1330
1330
|
Tn as A,
|
|
1331
|
-
|
|
1331
|
+
Ft as B,
|
|
1332
1332
|
Lt as C,
|
|
1333
1333
|
Dt as D,
|
|
1334
1334
|
vn as E,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { T as p, a as g, b as k } from "./analytics-base-schemas-DevrgqQb.js";
|
|
2
|
-
import { p as C } from "./validators-
|
|
2
|
+
import { p as C } from "./validators-C7DFk3QK.js";
|
|
3
3
|
function N(e) {
|
|
4
4
|
switch (e.kind) {
|
|
5
5
|
case "monthDay":
|
|
@@ -524,7 +524,7 @@ function j(e) {
|
|
|
524
524
|
export {
|
|
525
525
|
I as C,
|
|
526
526
|
$ as D,
|
|
527
|
-
|
|
527
|
+
N as a,
|
|
528
528
|
B as b,
|
|
529
529
|
_ as c,
|
|
530
530
|
R as d,
|
|
@@ -535,7 +535,7 @@ export {
|
|
|
535
535
|
j as i,
|
|
536
536
|
f as j,
|
|
537
537
|
A as k,
|
|
538
|
-
|
|
538
|
+
P as r,
|
|
539
539
|
h as v,
|
|
540
540
|
O as w
|
|
541
541
|
};
|
|
@@ -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 { b2 as Qt, b3 as Xn, aX as Kn,
|
|
7
|
-
import "./matrix-operation-contract-
|
|
6
|
+
import { b2 as Qt, b3 as Xn, aX as Kn, a6 as Bn, m as mt, N as Vn, b4 as Gn, b5 as Qn, S as Jn, J as B, T as er } from "./validators-C7DFk3QK.js";
|
|
7
|
+
import "./matrix-operation-contract-C1SuOHLZ.js";
|
|
8
8
|
import { k as tr, i as pe } from "./analytics-base-schemas-DevrgqQb.js";
|
|
9
|
-
import { b as nr } from "./report-runtime-context-
|
|
9
|
+
import { b as nr } from "./report-runtime-context-BbedQdtc.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 {
|
|
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-DN_l-Tss.js";
|
|
12
|
+
import { r as ur } from "./metric-comparison-Cm0G893W.js";
|
|
13
13
|
function te(e) {
|
|
14
14
|
if (!e || typeof e != "object") return !1;
|
|
15
15
|
const t = e.type;
|
|
@@ -4957,15 +4957,15 @@ export {
|
|
|
4957
4957
|
Ns as aE,
|
|
4958
4958
|
Fc as aF,
|
|
4959
4959
|
Pc as aG,
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4960
|
+
Us as aH,
|
|
4961
|
+
Ko as aI,
|
|
4962
|
+
wc as aJ,
|
|
4963
|
+
Tc as aK,
|
|
4964
|
+
pc as aL,
|
|
4965
|
+
xc as aM,
|
|
4966
|
+
Tn as aN,
|
|
4967
|
+
js as aO,
|
|
4968
|
+
Sc as aP,
|
|
4969
4969
|
Dc as aQ,
|
|
4970
4970
|
bc as aR,
|
|
4971
4971
|
Qo as aS,
|
|
@@ -5009,9 +5009,9 @@ export {
|
|
|
5009
5009
|
ln as b2,
|
|
5010
5010
|
Er as b3,
|
|
5011
5011
|
za as b4,
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5012
|
+
Go as b5,
|
|
5013
|
+
Li as b6,
|
|
5014
|
+
br as b7,
|
|
5015
5015
|
zt as b8,
|
|
5016
5016
|
O as b9,
|
|
5017
5017
|
At as ba,
|
|
@@ -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-Cm0G893W.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,
|
|
4
|
+
import { j as U, r as W, aM as E } from "./validators-C7DFk3QK.js";
|
|
5
5
|
import { R as x } from "./analytics-base-schemas-DevrgqQb.js";
|
|
6
6
|
const k = /* @__PURE__ */ new Map();
|
|
7
7
|
function y(t, e) {
|
|
@@ -35,7 +35,7 @@ function s(t) {
|
|
|
35
35
|
const e = /* @__PURE__ */ new Date(0);
|
|
36
36
|
return e.setUTCFullYear(t.year, t.month - 1, t.day), e.setUTCHours(t.hour, t.minute, t.second, t.millisecond ?? 0), e.getTime();
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function l(t, e) {
|
|
39
39
|
const n = t - (t % 1e3 + 1e3) % 1e3;
|
|
40
40
|
return s(y(new Date(n), e)) - n;
|
|
41
41
|
}
|
|
@@ -44,11 +44,11 @@ function K(t, e) {
|
|
|
44
44
|
const n = F(t, e);
|
|
45
45
|
if (n.length) return n[0];
|
|
46
46
|
const r = s(t);
|
|
47
|
-
return new Date(r -
|
|
47
|
+
return new Date(r - l(r - v, e));
|
|
48
48
|
}
|
|
49
49
|
function F(t, e) {
|
|
50
|
-
const n = s(t), r =
|
|
51
|
-
return [.../* @__PURE__ */ new Set([r, o])].map((a) => n - a).filter((a) =>
|
|
50
|
+
const n = s(t), r = l(n - v, e), o = l(n + v, e);
|
|
51
|
+
return [.../* @__PURE__ */ new Set([r, o])].map((a) => n - a).filter((a) => l(a, e) === n - a).sort((a, i) => a - i).map((a) => new Date(a));
|
|
52
52
|
}
|
|
53
53
|
const D = 864e5, w = {
|
|
54
54
|
second: 1e3,
|
|
@@ -84,7 +84,7 @@ function m(t, e) {
|
|
|
84
84
|
const n = t.year * 12 + (t.month - 1) + e, r = Math.floor(n / 12), o = n - r * 12 + 1;
|
|
85
85
|
return { ...t, year: r, month: o, day: Math.min(t.day, S(r, o)) };
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function f(t, e, n) {
|
|
88
88
|
if (e === 0) return t;
|
|
89
89
|
switch (n) {
|
|
90
90
|
case "second":
|
|
@@ -121,7 +121,7 @@ function Y(t, e, n) {
|
|
|
121
121
|
case "day":
|
|
122
122
|
return r;
|
|
123
123
|
case "week":
|
|
124
|
-
return
|
|
124
|
+
return f(
|
|
125
125
|
r,
|
|
126
126
|
-((j(t) - n.weekStart + 7) % 7),
|
|
127
127
|
"day"
|
|
@@ -149,14 +149,14 @@ function _(t, e, n, r = 0) {
|
|
|
149
149
|
const u = g(t, n.tz), L = u.millisecond + (e === "second" ? 0 : u.second * 1e3) + (e === "hour" ? u.minute * 6e4 : 0), C = t.getTime() - L + r * o;
|
|
150
150
|
return { start: new Date(C), endExclusive: new Date(C + o) };
|
|
151
151
|
}
|
|
152
|
-
const a = e, i =
|
|
152
|
+
const a = e, i = f(
|
|
153
153
|
Y(g(t, n.tz), a, n),
|
|
154
154
|
r,
|
|
155
155
|
e
|
|
156
156
|
);
|
|
157
157
|
return {
|
|
158
158
|
start: d(i, n.tz),
|
|
159
|
-
endExclusive: d(
|
|
159
|
+
endExclusive: d(f(i, 1, e), n.tz)
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
162
|
function ct(t, e, n) {
|
|
@@ -165,13 +165,13 @@ function ct(t, e, n) {
|
|
|
165
165
|
function dt(t, e, n) {
|
|
166
166
|
return new Date(_(t, e, n).endExclusive.getTime() - 1);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function ft(t, e, n, r) {
|
|
169
169
|
return e === 0 ? t : d(
|
|
170
|
-
|
|
170
|
+
f(g(t, r.tz), e, n),
|
|
171
171
|
r.tz
|
|
172
172
|
);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function lt(t, e, n) {
|
|
175
175
|
const r = (o) => {
|
|
176
176
|
const { year: a, month: i, day: u } = y(o, n);
|
|
177
177
|
return s({ year: a, month: i, day: u, hour: 0, minute: 0, second: 0 });
|
|
@@ -195,7 +195,7 @@ function ht(t, e) {
|
|
|
195
195
|
const r = { ...n, hour: 0, minute: 0, second: 0, millisecond: 0 };
|
|
196
196
|
return {
|
|
197
197
|
start: d(r, e),
|
|
198
|
-
endExclusive: d(
|
|
198
|
+
endExclusive: d(f(r, 1, "day"), e)
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
201
|
const yt = {
|
|
@@ -419,8 +419,8 @@ export {
|
|
|
419
419
|
_ as F,
|
|
420
420
|
ct as G,
|
|
421
421
|
dt as H,
|
|
422
|
-
|
|
423
|
-
|
|
422
|
+
ft as I,
|
|
423
|
+
lt as J,
|
|
424
424
|
mt as K,
|
|
425
425
|
q as L,
|
|
426
426
|
ht as M,
|
|
@@ -443,7 +443,7 @@ export {
|
|
|
443
443
|
et as p,
|
|
444
444
|
pt as q,
|
|
445
445
|
G as r,
|
|
446
|
-
|
|
446
|
+
f as s,
|
|
447
447
|
Tt as t,
|
|
448
448
|
y as u,
|
|
449
449
|
Ct as v,
|
package/dist/chunks/{report-preferences-dialog-CZaYsQLK.js → report-preferences-dialog-SDZEcG2x.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-OFOoAY-A.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-BMyB3Tb6.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-DRBS0eRa.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-Qv4UcLAo.js";
|
|
9
|
+
import "./validators-C7DFk3QK.js";
|
|
10
|
+
import "./matrix-operation-contract-C1SuOHLZ.js";
|
|
11
11
|
import "./analytics-base-schemas-DevrgqQb.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-B8GGyVuR.js";
|
|
14
|
+
import { a as Jt } from "./report-runtime-context-BbedQdtc.js";
|
|
15
|
+
import { as as Z, az as H } from "./pivot-result-contract-expectations-C1Dyx8du.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-BE0XXzZP.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-XO089DMg.js")), xa = ae(
|
|
539
|
+
() => import("./edit-dashboard-visual-f-Dm-BLR.js")
|
|
540
|
+
), Ta = ae(() => import("./dashboard-json-CQRiydUv.js"));
|
|
541
541
|
function Qa({
|
|
542
542
|
showControls: e = !1,
|
|
543
543
|
showFooter: a = !0,
|
package/dist/chunks/{report-runtime-context-CEGluufW.js → report-runtime-context-BbedQdtc.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-C7DFk3QK.js";
|
|
3
3
|
import { i as k } from "./analytics-base-schemas-DevrgqQb.js";
|
|
4
4
|
const D = {
|
|
5
5
|
tz: "UTC",
|