react-semaphor 0.1.556 → 0.1.558
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/DATA_APP_SDK.md +6 -29
- package/dist/analytics-protocol/index.js +19 -20
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +28 -29
- package/dist/briefings/index.js +55 -56
- package/dist/chunks/{assistant-chat-C7Acww1T.js → assistant-chat-BCWoP6Rf.js} +78 -80
- package/dist/chunks/{bookmark-state-7iZErWnR.js → bookmark-state-PjQpxbG7.js} +3 -3
- package/dist/chunks/{braces-o9UiRQes.js → braces-D5Ucy7q1.js} +1 -1
- package/dist/chunks/{comparison-window-caption-BseG5aOZ.js → comparison-window-caption-Dc7BaCMz.js} +186 -189
- package/dist/chunks/{custom-visual-inputs-ChuKjx27.js → custom-visual-inputs-B-DLRGrV.js} +1 -2
- package/dist/chunks/{dashboard-briefing-launcher-qrYd2zkN.js → dashboard-briefing-launcher-Coqghdn6.js} +148 -150
- package/dist/chunks/{dashboard-controls-BsapXI2H.js → dashboard-controls-BYWSM2RM.js} +170 -172
- package/dist/chunks/{dashboard-json-CJqPqYnI.js → dashboard-json-pPTB5gj0.js} +20 -21
- package/dist/chunks/{dashboard-BU6rE5kV.js → dashboard-wK6Bai4V.js} +1 -1
- package/dist/chunks/{document-dashboard-inputs-BNSprf5_.js → document-dashboard-inputs-PY_7Xm55.js} +31 -31
- package/dist/chunks/{edit-dashboard-visual-CjAdV-WG.js → edit-dashboard-visual-BODxuUeq.js} +7505 -7990
- package/dist/chunks/{filter-reach-copy-BTrqtFkh.js → filter-reach-copy-BvJH9JO-.js} +148 -149
- package/dist/chunks/{filter-value-text-CJTJDCym.js → filter-value-text-CUBpotVN.js} +3 -3
- package/dist/chunks/{global-date-filter-utils-CTVf3dG3.js → global-date-filter-utils-BsFqnnbA.js} +1396 -1391
- package/dist/chunks/{index-dIV-Gdsb.js → index-CJW5BdWT.js} +23 -24
- package/dist/chunks/{index-B_vIRa-q.js → index-DP_wQl0v.js} +70 -72
- package/dist/chunks/{layout-grid-Bgzth8vd.js → layout-grid-CkoXmv0L.js} +1 -1
- package/dist/chunks/{list-filter-DsaTbM3J.js → list-filter-B4i25kuc.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-Cg0ioFGQ.js → matrix-analytical-definition-4GTUDheD.js} +3 -3
- package/dist/chunks/{matrix-card-yYibXSw1.js → matrix-card-fS_4O7zA.js} +2 -2
- package/dist/chunks/{matrix-member-presentation-DEEauKXC.js → matrix-member-presentation-Dj7HaAHC.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-C1G6AJNh.js → matrix-operation-contract-CpgLZ7E5.js} +21 -21
- package/dist/chunks/{metric-comparison-BfcmwxM1.js → metric-comparison-C8LY7GG5.js} +1 -1
- package/dist/chunks/{palette-D10o_yYX.js → palette-stlpjVk4.js} +1 -1
- package/dist/chunks/{matrix-formatter-C2kjsCDf.js → pivot-result-contract-expectations-DMk-mKhG.js} +444 -395
- package/dist/chunks/{pivot-result-identity-CWi5WrrY.js → pivot-result-identity-CrQ54Xbj.js} +1 -1
- package/dist/chunks/{raw-temporal-presentation-DWzLIHc3.js → raw-temporal-presentation-BI2z2LlB.js} +24 -25
- package/dist/chunks/report-preferences-dialog-Dc-YyVwf.js +2109 -0
- package/dist/chunks/{report-runtime-context-BgM-iNWB.js → report-runtime-context-CohdtiMg.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-Df8V5QHW.js → resolve-dashboard-input-context-BZYI1hB0.js} +225 -227
- package/dist/chunks/{save-CfJpQQ68.js → save-C1dgxgAu.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-VvXI6r03.js → saved-dashboard-context-CIBoMq46.js} +8 -8
- package/dist/chunks/selection-reducer-_d6aKJnj.js +46 -0
- package/dist/chunks/{semaphor-ready-indicator-fejZmdq9.js → semaphor-ready-indicator-ERTLU7B4.js} +43497 -49629
- package/dist/chunks/{shelf-drop-preview-context-BuTCXe-S.js → shelf-drop-preview-context-fEnx6iL_.js} +6 -6
- package/dist/chunks/{source-entity-resolution-B46EZIzX.js → source-entity-resolution-DXW1HpKf.js} +1 -1
- package/dist/chunks/{switch-Bq92UGId.js → switch-BqUan2mN.js} +1430 -1341
- package/dist/chunks/{table-export-sheet-noKl8-en.js → table-export-sheet-CTCTA_bd.js} +1 -1
- package/dist/chunks/{table-settings-PpINOzw8.js → table-settings-DF1gdVQR.js} +2 -2
- package/dist/chunks/temporal-input-presentation-DoSniQj1.js +2939 -0
- package/dist/chunks/{token-types--0bgRCaO.js → token-types-DFyLflLY.js} +1 -1
- package/dist/chunks/{upload-BFX7apKV.js → upload-DcoyjkRV.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-Cz-ve64t.js → use-create-flow-overlay-state-xhb9YFg-.js} +124 -126
- package/dist/chunks/{validators-CZo_H4E6.js → validators-hmfNNQz8.js} +5 -5
- package/dist/chunks/zoned-wall-clock-E35Frf9v.js +191 -0
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +131 -132
- package/dist/data-app-sdk/index.js +788 -4153
- 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 +230 -233
- package/dist/index.js +217 -218
- package/dist/layouts/index.js +1 -1
- 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/data-app-sdk/contracts.d.ts +0 -146
- package/dist/types/data-app-sdk/index.d.ts +0 -2
- package/dist/types/index.js +6 -6
- package/dist/types/lib/charts/types.d.ts +1 -2
- package/dist/types/lib/types/common-types.d.ts +0 -10
- package/dist/types/shared/dashboard-authoring/filter-model/filter-definitions.d.ts +1 -7
- package/package.json +1 -4
- package/src/data-app-sdk/README.md +7 -31
- package/dist/chunks/pivot-result-contract-expectations-fKBHFPfz.js +0 -56
- package/dist/chunks/raw-temporal-contract-CjHaUIsE.js +0 -64
- package/dist/chunks/report-preferences-dialog-D_wrbIQt.js +0 -2261
- package/dist/chunks/selection-reducer-By4CSmEF.js +0 -111
- package/dist/chunks/temporal-bucket-DzyadxVY.js +0 -2071
- package/dist/chunks/temporal-input-presentation-CJWS4d0L.js +0 -879
- package/dist/chunks/x-4f5U2XwU.js +0 -100
- package/dist/chunks/zoned-wall-clock-MulfA26h.js +0 -129
- package/dist/types/data-app-sdk/devtools/index.d.ts +0 -49
- package/dist/types/data-app-sdk/devtools.d.ts +0 -1
|
@@ -38,7 +38,7 @@ function K(n) {
|
|
|
38
38
|
function J(n) {
|
|
39
39
|
return n === "kpi" || n === "text" ? "short" : "tall";
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const T = {
|
|
42
42
|
kpi: { h: 15, minH: 12, minW: 6 },
|
|
43
43
|
chart: { h: 30, minH: 16, minW: 12 },
|
|
44
44
|
table: { h: 38, minH: 18, minW: 12 },
|
|
@@ -120,7 +120,7 @@ function Ot(n) {
|
|
|
120
120
|
if (N(n[t], n[i])) return !0;
|
|
121
121
|
return !1;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function L(n, t) {
|
|
124
124
|
const i = (o) => t.get(o.i) ?? Number.MAX_SAFE_INTEGER;
|
|
125
125
|
return n.slice().sort((o, e) => o.y - e.y || o.x - e.x || i(o) - i(e));
|
|
126
126
|
}
|
|
@@ -141,7 +141,7 @@ function At(n) {
|
|
|
141
141
|
return new Map(n.map((t, i) => [t, i]));
|
|
142
142
|
}
|
|
143
143
|
function Et(n, t, i, o) {
|
|
144
|
-
const e = (c) => t.get(c) ?? "chart", r =
|
|
144
|
+
const e = (c) => t.get(c) ?? "chart", r = L(n, i).map((c) => c.i), s = r.find((c) => e(c) === "text"), a = o ? r : [
|
|
145
145
|
...s ? [s] : [],
|
|
146
146
|
...r.filter((c) => e(c) === "kpi"),
|
|
147
147
|
...r.filter((c) => e(c) === "chart"),
|
|
@@ -166,7 +166,7 @@ function Et(n, t, i, o) {
|
|
|
166
166
|
};
|
|
167
167
|
let l = 0, u = 0, d = 0;
|
|
168
168
|
const m = a.map((c, p) => {
|
|
169
|
-
const w =
|
|
169
|
+
const w = T[e(c)], h = Math.min(x(p), g);
|
|
170
170
|
l > 0 && l + h > g && (l = 0, u += d, d = 0);
|
|
171
171
|
const k = { i: c, x: l, y: u, w: h, h: w.h, minW: Math.min(w.minW, g), minH: w.minH };
|
|
172
172
|
return l += h, d = Math.max(d, w.h), k;
|
|
@@ -232,7 +232,7 @@ function tt(n, t, i) {
|
|
|
232
232
|
}
|
|
233
233
|
function at(n, t, i, o) {
|
|
234
234
|
if (n === "md") return st(t);
|
|
235
|
-
const e = v.columns[n], r = R(
|
|
235
|
+
const e = v.columns[n], r = R(L(t, o)), s = (a) => i.get(a.i) ?? "chart";
|
|
236
236
|
return n === "sm" ? j(tt(r, e, (a) => s(a) === "table" || s(a) === "text"), "sm", t) : n === "xs" ? j(tt(r, e, (a) => s(a) !== "kpi"), "xs", t) : j(
|
|
237
237
|
r.flatMap((a) => a.map((f) => [{ source: f, x: 0, w: e }])),
|
|
238
238
|
"xxs",
|
|
@@ -240,7 +240,7 @@ function at(n, t, i, o) {
|
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
function H(n, t, i) {
|
|
243
|
-
const o =
|
|
243
|
+
const o = T[t];
|
|
244
244
|
return { i: n, x: 0, y: 0, w: i, h: o.h, minW: Math.min(o.minW, i), minH: o.minH };
|
|
245
245
|
}
|
|
246
246
|
function P(n, t) {
|
|
@@ -249,7 +249,7 @@ function P(n, t) {
|
|
|
249
249
|
function G(n, t, i) {
|
|
250
250
|
return n.map((o) => o.y >= t ? { ...o, y: o.y + i } : o);
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function Bt(n, t, i) {
|
|
253
253
|
const o = (f, x) => !t.some((l) => N({ ...n, i: "\0", x: f, y: x }, l)), e = n.x + n.w;
|
|
254
254
|
if (e + n.w <= i && o(e, n.y)) return { x: e, y: n.y };
|
|
255
255
|
const r = Math.max(i - n.w, 0), s = n.y + n.h, a = [s, ...t.map((f) => f.y + f.h).filter((f) => f > s).sort((f, x) => f - x)];
|
|
@@ -268,10 +268,10 @@ function ft(n, t) {
|
|
|
268
268
|
};
|
|
269
269
|
}
|
|
270
270
|
function ct(n, t, i, o) {
|
|
271
|
-
const e = n.find((f) => f.i === t), r = ft(e, o), { x: s, y: a } =
|
|
271
|
+
const e = n.find((f) => f.i === t), r = ft(e, o), { x: s, y: a } = Bt(r, n.filter((f) => f.i !== t), o);
|
|
272
272
|
return [...n, { ...r, i, x: s, y: a }];
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function Lt(n, t, i, o, e) {
|
|
275
275
|
var u;
|
|
276
276
|
const r = o == null ? void 0 : o.position;
|
|
277
277
|
if (r && typeof r == "object" && "beside" in r)
|
|
@@ -286,7 +286,7 @@ function Bt(n, t, i, o, e) {
|
|
|
286
286
|
if (r === "end" || r === void 0 && s !== void 0)
|
|
287
287
|
return f({ ...H(t, i, s ?? E[i]), y: I(a) });
|
|
288
288
|
if (r && typeof r == "object" && "after" in r) {
|
|
289
|
-
const d = H(t, i, s ?? E[i]), c = R(
|
|
289
|
+
const d = H(t, i, s ?? E[i]), c = R(L(a, e.frameOrder)).find((W) => W.some((b) => b.i === r.after)), p = c.find((W) => W.i === r.after), w = c[c.length - 1];
|
|
290
290
|
if (g - (w.x + w.w) >= d.w) {
|
|
291
291
|
const W = new Set(c.filter((b) => b.x > p.x).map((b) => b.i));
|
|
292
292
|
return a = a.map((b) => W.has(b.i) ? { ...b, x: b.x + d.w } : b), f({ ...d, x: p.x + p.w, y: p.y });
|
|
@@ -294,7 +294,7 @@ function Bt(n, t, i, o, e) {
|
|
|
294
294
|
const k = Math.max(...c.map((W) => W.y + W.h));
|
|
295
295
|
return a = G(a, k, d.h), f({ ...d, x: 0, y: k });
|
|
296
296
|
}
|
|
297
|
-
const x = (d) => e.kinds.get(d.i) ?? "chart", l = R(
|
|
297
|
+
const x = (d) => e.kinds.get(d.i) ?? "chart", l = R(L(a, e.frameOrder));
|
|
298
298
|
if (i === "kpi") {
|
|
299
299
|
const d = ((u = l[0]) == null ? void 0 : u.length) === 1 && x(l[0][0]) === "text" ? 1 : 0;
|
|
300
300
|
let m = d;
|
|
@@ -336,14 +336,14 @@ function A(n) {
|
|
|
336
336
|
function _(n) {
|
|
337
337
|
return typeof n == "number" && Number.isFinite(n) ? Math.round(n) : void 0;
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function B(n, t, i) {
|
|
340
340
|
const o = new Set(i.ids), e = /* @__PURE__ */ new Map();
|
|
341
341
|
if (!Array.isArray(n)) return e;
|
|
342
342
|
for (const r of n) {
|
|
343
343
|
if (!r || typeof r != "object") continue;
|
|
344
344
|
const s = r, a = s.i;
|
|
345
345
|
if (typeof a != "string" || !o.has(a) || e.has(a)) continue;
|
|
346
|
-
const f = i.kinds.get(a) ?? "chart", x = _(s.minH), l = Math.max(1, Math.min(_(s.w) ?? Math.min(E[f], t), t)), u = Math.max(_(s.h) ??
|
|
346
|
+
const f = i.kinds.get(a) ?? "chart", x = _(s.minH), l = Math.max(1, Math.min(_(s.w) ?? Math.min(E[f], t), t)), u = Math.max(_(s.h) ?? T[f].h, x ?? 1, 1), d = {
|
|
347
347
|
i: a,
|
|
348
348
|
x: Math.max(0, Math.min(_(s.x) ?? 0, t - l)),
|
|
349
349
|
y: Math.max(0, _(s.y) ?? Number.MAX_SAFE_INTEGER),
|
|
@@ -358,7 +358,7 @@ function T(n, t, i) {
|
|
|
358
358
|
}
|
|
359
359
|
return e;
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Tt(n, t) {
|
|
362
362
|
return t.ids.every((i) => n.has(i));
|
|
363
363
|
}
|
|
364
364
|
function D(n, t) {
|
|
@@ -369,7 +369,7 @@ function X(n, t) {
|
|
|
369
369
|
let e = I(i);
|
|
370
370
|
for (const r of t.ids) {
|
|
371
371
|
if (o.has(r)) continue;
|
|
372
|
-
const s = t.kinds.get(r) ?? "chart", a =
|
|
372
|
+
const s = t.kinds.get(r) ?? "chart", a = T[s], f = E[s];
|
|
373
373
|
o.set(r, { i: r, x: 0, y: e, w: f, h: a.h, minW: Math.min(a.minW, f), minH: a.minH }), e += a.h;
|
|
374
374
|
}
|
|
375
375
|
return M(t.ids.map((r) => o.get(r)));
|
|
@@ -434,14 +434,14 @@ function ht(n, t, i) {
|
|
|
434
434
|
return o;
|
|
435
435
|
}
|
|
436
436
|
function jt(n, t) {
|
|
437
|
-
return R(
|
|
437
|
+
return R(L(n, t.frameOrder)).map((i) => ({
|
|
438
438
|
tiles: i.map((o) => ({ frameId: o.i, kind: t.kinds.get(o.i) ?? "chart", width: _t(o.w) }))
|
|
439
439
|
}));
|
|
440
440
|
}
|
|
441
441
|
function Pt(n) {
|
|
442
|
-
const t = A(n.frames ?? ut), i = X(
|
|
442
|
+
const t = A(n.frames ?? ut), i = X(B($t(n), g, t), t), o = Array.isArray(n.customizedBreakpoints), e = {}, r = [];
|
|
443
443
|
for (const f of V) {
|
|
444
|
-
const x = v.columns[f], l =
|
|
444
|
+
const x = v.columns[f], l = B(nt(n, f), x, t), u = Tt(l, t) && t.ids.length > 0;
|
|
445
445
|
if (q(f)) {
|
|
446
446
|
if (o && n.customizedBreakpoints.includes(f)) {
|
|
447
447
|
e[f] = mt(l, i, f, t), r.push(f);
|
|
@@ -462,7 +462,7 @@ function z(n) {
|
|
|
462
462
|
return { ok: !1, failure: n };
|
|
463
463
|
}
|
|
464
464
|
function it(n, t, i) {
|
|
465
|
-
const o =
|
|
465
|
+
const o = T[i];
|
|
466
466
|
return n.map((e) => e.i === t ? { ...e, h: o.h, minH: o.minH, minW: Math.min(o.minW, e.w) } : e);
|
|
467
467
|
}
|
|
468
468
|
function Gt(n, t) {
|
|
@@ -484,7 +484,7 @@ function Gt(n, t) {
|
|
|
484
484
|
e = [...o.slice(0, h + 1), u, ...o.slice(h + 1)];
|
|
485
485
|
} else e = [...o, u];
|
|
486
486
|
const p = A(e);
|
|
487
|
-
r =
|
|
487
|
+
r = Lt(r, u.id, p.kinds.get(u.id), d, p);
|
|
488
488
|
const w = r.find((h) => h.i === u.id);
|
|
489
489
|
for (const h of s) {
|
|
490
490
|
const k = v.columns[h], W = a[h], b = typeof m == "object" && "beside" in m ? ct(W, m.beside, u.id, k) : dt(W, w, k);
|
|
@@ -527,13 +527,13 @@ function Gt(n, t) {
|
|
|
527
527
|
return z({ code: "breakpoint_not_editable", breakpoint: String(t.breakpoint), message: `The ${String(t.breakpoint)} layout is derived; edit Desktop, Tablet or Phone.` });
|
|
528
528
|
const u = A(o);
|
|
529
529
|
if (t.breakpoint === "md") {
|
|
530
|
-
const d = [...
|
|
530
|
+
const d = [...B(t.items, v.columns.md, u).values()];
|
|
531
531
|
r = X(new Map(St(r, d).map((m) => [m.i, m])), u);
|
|
532
532
|
} else if (t.breakpoint === "lg")
|
|
533
|
-
r = X(
|
|
533
|
+
r = X(B(t.items, g, u), u);
|
|
534
534
|
else {
|
|
535
535
|
const d = t.breakpoint;
|
|
536
|
-
a[d] = mt(
|
|
536
|
+
a[d] = mt(B(t.items, v.columns[d], u), r, d, u), s.includes(d) || (s = Ft([...s, d]));
|
|
537
537
|
}
|
|
538
538
|
break;
|
|
539
539
|
}
|
|
@@ -576,7 +576,6 @@ function Kt(n, t) {
|
|
|
576
576
|
}
|
|
577
577
|
export {
|
|
578
578
|
v as D,
|
|
579
|
-
gt as T,
|
|
580
579
|
Gt as a,
|
|
581
580
|
Kt as b,
|
|
582
581
|
kt as i,
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
var Fe = Object.defineProperty;
|
|
2
2
|
var Re = (e, n, t) => n in e ? Fe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
3
|
var L = (e, n, t) => Re(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
-
import { r as ae,
|
|
5
|
-
import { Y as J, ab as
|
|
6
|
-
import { l as
|
|
4
|
+
import { ai as Ne, L as Be, r as ae, E as se, k as Me, K as Le, P as B } from "./temporal-input-presentation-DoSniQj1.js";
|
|
5
|
+
import { Y as J, ab as Ue, o as Pe } from "./validators-hmfNNQz8.js";
|
|
6
|
+
import { l as ze, C as Ve } from "./export-file-format-C-tJsxsf.js";
|
|
7
7
|
import { z as y } from "zod";
|
|
8
|
-
import {
|
|
9
|
-
import { af as je, ah as qe, U as Ke } from "./matrix-operation-contract-C1G6AJNh.js";
|
|
8
|
+
import { af as je, ah as qe, U as Ke } from "./matrix-operation-contract-CpgLZ7E5.js";
|
|
10
9
|
import "./analytics-base-schemas-BUFUoO6G.js";
|
|
11
10
|
import "../value-format-preferences/index.js";
|
|
12
11
|
import { r as He } from "./rendered-file-D8xEuVVx.js";
|
|
13
|
-
import {
|
|
14
|
-
import { r as Je } from "./matrix-card-
|
|
15
|
-
import { z as Qe } from "./table-settings-
|
|
16
|
-
import { r as et, a as tt, b as nt, c as rt, d as ot } from "./raw-temporal-presentation-
|
|
17
|
-
import "./index-
|
|
12
|
+
import { cQ as Ge, cR as We, cS as Xe, r as Ze, n as Ye } from "./global-date-filter-utils-BsFqnnbA.js";
|
|
13
|
+
import { r as Je } from "./matrix-card-fS_4O7zA.js";
|
|
14
|
+
import { z as Qe } from "./table-settings-DF1gdVQR.js";
|
|
15
|
+
import { r as et, a as tt, b as nt, c as rt, d as ot } from "./raw-temporal-presentation-BI2z2LlB.js";
|
|
16
|
+
import "./index-CJW5BdWT.js";
|
|
18
17
|
import "./index-CuHybtft.js";
|
|
19
18
|
import "./_commonjsHelpers-DimLPMtv.js";
|
|
20
|
-
import { f as at, r as it, b as ct, g as lt } from "./custom-visual-inputs-
|
|
19
|
+
import { f as at, r as it, b as ct, g as lt } from "./custom-visual-inputs-B-DLRGrV.js";
|
|
21
20
|
const dt = /* @__PURE__ */ new Set(["table", "detailTable"]), st = /* @__PURE__ */ new Set([
|
|
22
21
|
"bar",
|
|
23
22
|
"horizontalBar",
|
|
@@ -40,14 +39,13 @@ const dt = /* @__PURE__ */ new Set(["table", "detailTable"]), st = /* @__PURE__
|
|
|
40
39
|
"pyramid",
|
|
41
40
|
"tornado",
|
|
42
41
|
"range",
|
|
43
|
-
"map",
|
|
44
42
|
"funnel",
|
|
45
43
|
"bullet",
|
|
46
44
|
"heatmap",
|
|
47
45
|
"treemap",
|
|
48
46
|
"custom"
|
|
49
47
|
]);
|
|
50
|
-
function
|
|
48
|
+
function Xn(e) {
|
|
51
49
|
var o, a, i;
|
|
52
50
|
const n = st.has(e.type) && (e.type !== "custom" || !!((o = e.customCardPreferences) != null && o.url));
|
|
53
51
|
let t = !1;
|
|
@@ -85,24 +83,24 @@ function mt(e) {
|
|
|
85
83
|
return n || Q((r = e.settings) == null ? void 0 : r.cardType) ? { kind: "export_job", format: e.format } : { kind: "rendered", format: "csv" };
|
|
86
84
|
}
|
|
87
85
|
}
|
|
88
|
-
function
|
|
86
|
+
function Zn(e) {
|
|
89
87
|
return mt(e).kind === "export_job";
|
|
90
88
|
}
|
|
91
89
|
function ft(e) {
|
|
92
|
-
const { label: n, extension: t, contentType: r } = e === "pdf" || e === "png" ? He(e) :
|
|
90
|
+
const { label: n, extension: t, contentType: r } = e === "pdf" || e === "png" ? He(e) : ze(e);
|
|
93
91
|
return { label: n, extension: t, contentType: r };
|
|
94
92
|
}
|
|
95
93
|
function ut(e) {
|
|
96
94
|
return e.allowDownload === !1 ? ["pdf", "png"] : e.cardType === "matrixTable" || Q(e.cardType) ? ["pdf", "png", "csv", "xlsx"] : ["pdf", "png", "csv"];
|
|
97
95
|
}
|
|
98
|
-
function
|
|
96
|
+
function Yn(e) {
|
|
99
97
|
return ft(e).label;
|
|
100
98
|
}
|
|
101
99
|
function pt(e) {
|
|
102
100
|
return dt.has(e.cardType) && e.allowDownload !== !1 ? "csv" : "pdf";
|
|
103
101
|
}
|
|
104
|
-
function
|
|
105
|
-
const { config: n } = e, t =
|
|
102
|
+
function Jn(e) {
|
|
103
|
+
const { config: n } = e, t = Ne({
|
|
106
104
|
spec: n.spec,
|
|
107
105
|
presentation: n.presentation,
|
|
108
106
|
defaults: n.defaultView,
|
|
@@ -137,7 +135,7 @@ const ht = y.object({
|
|
|
137
135
|
semanticDomainId: y.string().optional()
|
|
138
136
|
}).passthrough(),
|
|
139
137
|
active_filters: y.array(y.unknown()).default([])
|
|
140
|
-
}).passthrough(),
|
|
138
|
+
}).passthrough(), Qn = ht.extend({
|
|
141
139
|
dashboardId: y.string().min(1),
|
|
142
140
|
cardId: y.string().min(1),
|
|
143
141
|
formatOptions: y.object({
|
|
@@ -152,7 +150,7 @@ const ht = y.object({
|
|
|
152
150
|
});
|
|
153
151
|
})
|
|
154
152
|
});
|
|
155
|
-
function
|
|
153
|
+
function er(e) {
|
|
156
154
|
return {
|
|
157
155
|
...e.controls,
|
|
158
156
|
type: "card",
|
|
@@ -180,14 +178,14 @@ function tr(e) {
|
|
|
180
178
|
delimiter: e.delimiter,
|
|
181
179
|
includeHeaders: e.includeHeaders,
|
|
182
180
|
timezone: e.reportContext.calendar.tz,
|
|
183
|
-
presentationExecutionSnapshot:
|
|
181
|
+
presentationExecutionSnapshot: Be({
|
|
184
182
|
reportContext: e.reportContext,
|
|
185
183
|
resolvedFormats: []
|
|
186
184
|
})
|
|
187
185
|
}
|
|
188
186
|
};
|
|
189
187
|
}
|
|
190
|
-
const K = y.number().int().nonnegative(),
|
|
188
|
+
const K = y.number().int().nonnegative(), tr = y.discriminatedUnion("status", [
|
|
191
189
|
y.object({
|
|
192
190
|
status: y.literal("ok"),
|
|
193
191
|
request: J,
|
|
@@ -224,7 +222,7 @@ function me(e) {
|
|
|
224
222
|
var n;
|
|
225
223
|
return (n = e == null ? void 0 : e.cards) != null && n.length ? e.activeCardId && e.cards.find((t) => t.id === e.activeCardId) || e.cards[0] : null;
|
|
226
224
|
}
|
|
227
|
-
function
|
|
225
|
+
function nr(e) {
|
|
228
226
|
var t;
|
|
229
227
|
const n = (e == null ? void 0 : e.frameObject) ?? ((t = e == null ? void 0 : e.visual) == null ? void 0 : t.frameObject);
|
|
230
228
|
return me(yt(n));
|
|
@@ -300,7 +298,7 @@ function bt(e, n) {
|
|
|
300
298
|
})
|
|
301
299
|
).filter((c) => c !== null);
|
|
302
300
|
}
|
|
303
|
-
function
|
|
301
|
+
function rr(e) {
|
|
304
302
|
return gt(e.dashboard, e.selections).flatMap(
|
|
305
303
|
({ card: n, attachmentIndex: t }) => {
|
|
306
304
|
var s, u, h, g;
|
|
@@ -357,7 +355,7 @@ function or(e) {
|
|
|
357
355
|
T && _.set(T, (_.get(T) || 0) + 1);
|
|
358
356
|
}
|
|
359
357
|
for (const $ of E) {
|
|
360
|
-
const T =
|
|
358
|
+
const T = Ue($.dataType);
|
|
361
359
|
if (T !== "date" && T !== "datetime") continue;
|
|
362
360
|
const Oe = tt($), q = $.label, oe = nt({
|
|
363
361
|
label: q,
|
|
@@ -639,7 +637,7 @@ const P = [
|
|
|
639
637
|
3: "third",
|
|
640
638
|
4: "fourth",
|
|
641
639
|
[-1]: "last"
|
|
642
|
-
},
|
|
640
|
+
}, or = {
|
|
643
641
|
frequency: "weekly",
|
|
644
642
|
hour: 9,
|
|
645
643
|
minute: 0,
|
|
@@ -685,7 +683,7 @@ function St(e, n) {
|
|
|
685
683
|
function ge(e, n) {
|
|
686
684
|
return e.every((t) => Rt(t, n));
|
|
687
685
|
}
|
|
688
|
-
function
|
|
686
|
+
function ar(e) {
|
|
689
687
|
if (!Tt(e))
|
|
690
688
|
throw new Error("Choose a valid schedule time.");
|
|
691
689
|
const n = `${e.minute} ${e.hour}`;
|
|
@@ -840,7 +838,7 @@ function Ft(e, n, t) {
|
|
|
840
838
|
const o = N(e, n).map((a) => r(a, "short")).join(", ");
|
|
841
839
|
return e === 3 ? `each quarter (${o})` : `every ${e} months (${o})`;
|
|
842
840
|
}
|
|
843
|
-
function
|
|
841
|
+
function ir(e, n, t = "en-US") {
|
|
844
842
|
const r = be(e);
|
|
845
843
|
if (!r.ok) return null;
|
|
846
844
|
try {
|
|
@@ -873,7 +871,7 @@ const Ie = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
|
873
871
|
function Rt(e, n) {
|
|
874
872
|
return e === "last" || n.some((t) => e <= Ie[t]);
|
|
875
873
|
}
|
|
876
|
-
function
|
|
874
|
+
function cr(e) {
|
|
877
875
|
if (e.frequency !== "monthly" || e.on.type !== "days") return null;
|
|
878
876
|
const n = e.on.days.filter((o) => o !== "last");
|
|
879
877
|
if (n.length === 0) return null;
|
|
@@ -902,7 +900,7 @@ function Bt(e, n, t, r) {
|
|
|
902
900
|
}
|
|
903
901
|
}
|
|
904
902
|
}
|
|
905
|
-
function
|
|
903
|
+
function lr(e, n, t, r) {
|
|
906
904
|
const o = be(e);
|
|
907
905
|
if (!o.ok || !Ct(n)) return [];
|
|
908
906
|
const a = o.value, i = new Intl.DateTimeFormat("en-US", {
|
|
@@ -955,7 +953,7 @@ function Pt(e) {
|
|
|
955
953
|
diagnostic: n.diagnostic
|
|
956
954
|
};
|
|
957
955
|
}
|
|
958
|
-
function
|
|
956
|
+
function dr(e) {
|
|
959
957
|
if (!e || typeof e != "object" || Array.isArray(e)) return [];
|
|
960
958
|
const n = e.omittedAttachments;
|
|
961
959
|
return Array.isArray(n) ? n.flatMap((t) => {
|
|
@@ -963,10 +961,10 @@ function sr(e) {
|
|
|
963
961
|
return r ? [r] : [];
|
|
964
962
|
}) : [];
|
|
965
963
|
}
|
|
966
|
-
function
|
|
964
|
+
function sr(e) {
|
|
967
965
|
return e != null && e.role ? e.type === "tenant" ? e.role === "POWER_USER" : ["AUTHOR", "ADMIN", "SUPER_ADMIN"].includes(e.role) : !1;
|
|
968
966
|
}
|
|
969
|
-
function
|
|
967
|
+
function mr(e) {
|
|
970
968
|
return e.canCreate ? [
|
|
971
969
|
...e.scheduledReportAvailable ? ["scheduled_report"] : [],
|
|
972
970
|
...e.analyticalBriefingsEnabled ? ["analytical_briefing"] : []
|
|
@@ -979,7 +977,7 @@ function zt(e) {
|
|
|
979
977
|
function Vt(e) {
|
|
980
978
|
return e.body.type === "generated_analysis" ? "Analytical briefing" : e.body.type === "custom_message" && e.attachments.length > 0 && zt(e.deliveryConfig) ? e.scheduleExpr ? "Scheduled report" : "On-demand report" : "Plain briefing";
|
|
981
979
|
}
|
|
982
|
-
function
|
|
980
|
+
function fr(e) {
|
|
983
981
|
const n = Vt(e), t = n === "Scheduled report" || n === "On-demand report" ? "report" : "briefing";
|
|
984
982
|
return {
|
|
985
983
|
typeLabel: n,
|
|
@@ -1029,9 +1027,9 @@ function qt(e) {
|
|
|
1029
1027
|
return (r.kind === "metric" && typeof r.metricId == "string" && !!r.metricId.trim() || r.kind === "column" && typeof r.columnKey == "string" && !!r.columnKey.trim() || r.kind === "matrix_measure" && typeof r.measureId == "string" && !!r.measureId.trim()) && se(n.format).ok;
|
|
1030
1028
|
}
|
|
1031
1029
|
function Kt(e) {
|
|
1032
|
-
return e == null ? "" : qt(e) ?
|
|
1030
|
+
return e == null ? "" : qt(e) ? Me(e.value, e.format) : String(e);
|
|
1033
1031
|
}
|
|
1034
|
-
function
|
|
1032
|
+
function ur(e) {
|
|
1035
1033
|
return [e.delta, e.percentChange].filter(
|
|
1036
1034
|
(n) => n != null
|
|
1037
1035
|
).map(Kt).filter(Boolean).join(" / ");
|
|
@@ -1056,7 +1054,7 @@ const ve = ["pdf", "png", "csv", "xlsx"], Ee = new Set(jt), Ht = /* @__PURE__ */
|
|
|
1056
1054
|
]), Wt = /* @__PURE__ */ new Set([
|
|
1057
1055
|
"portrait",
|
|
1058
1056
|
"landscape"
|
|
1059
|
-
]), Xt = /* @__PURE__ */ new Set([",", ";", " "]), Zt = new Set(
|
|
1057
|
+
]), Xt = /* @__PURE__ */ new Set([",", ";", " "]), Zt = new Set(Ve), Yt = /* @__PURE__ */ new Set([
|
|
1060
1058
|
"current",
|
|
1061
1059
|
"all"
|
|
1062
1060
|
]), Jt = /* @__PURE__ */ new Set([
|
|
@@ -1840,7 +1838,7 @@ function hn(e) {
|
|
|
1840
1838
|
blocks: i
|
|
1841
1839
|
};
|
|
1842
1840
|
}
|
|
1843
|
-
function
|
|
1841
|
+
function pr(e) {
|
|
1844
1842
|
try {
|
|
1845
1843
|
return {
|
|
1846
1844
|
valid: !0,
|
|
@@ -1890,7 +1888,7 @@ function bn(e, n, t) {
|
|
|
1890
1888
|
if (r.matrix !== void 0) {
|
|
1891
1889
|
const s = v(r.matrix, `${n}.matrix`, t);
|
|
1892
1890
|
p(s, `${n}.matrix`, ["config", "content"], t);
|
|
1893
|
-
const u =
|
|
1891
|
+
const u = Pe.safeParse(s.config);
|
|
1894
1892
|
u.success || d(t, `${n}.matrix.config`, "Expected a valid Matrix definition.");
|
|
1895
1893
|
const h = D(
|
|
1896
1894
|
s.content,
|
|
@@ -2219,7 +2217,7 @@ function De(e) {
|
|
|
2219
2217
|
), t.kind !== Z && d(n, "kind", "Expected BRIEFING.");
|
|
2220
2218
|
let r;
|
|
2221
2219
|
try {
|
|
2222
|
-
r =
|
|
2220
|
+
r = Le(
|
|
2223
2221
|
t.presentationExecutionSnapshot
|
|
2224
2222
|
);
|
|
2225
2223
|
} catch (m) {
|
|
@@ -2246,7 +2244,7 @@ function De(e) {
|
|
|
2246
2244
|
...l ? { limits: l } : {}
|
|
2247
2245
|
};
|
|
2248
2246
|
}
|
|
2249
|
-
function
|
|
2247
|
+
function hr(e) {
|
|
2250
2248
|
return De({
|
|
2251
2249
|
...e,
|
|
2252
2250
|
kind: Z
|
|
@@ -2622,13 +2620,13 @@ function re(e) {
|
|
|
2622
2620
|
deliveryConfig: g
|
|
2623
2621
|
};
|
|
2624
2622
|
}
|
|
2625
|
-
function
|
|
2623
|
+
function yr(e) {
|
|
2626
2624
|
return re(e);
|
|
2627
2625
|
}
|
|
2628
|
-
function
|
|
2626
|
+
function gr(e) {
|
|
2629
2627
|
return re(e);
|
|
2630
2628
|
}
|
|
2631
|
-
function
|
|
2629
|
+
function br(e) {
|
|
2632
2630
|
try {
|
|
2633
2631
|
return { valid: !0, value: re(e), issues: [] };
|
|
2634
2632
|
} catch (n) {
|
|
@@ -2637,7 +2635,7 @@ function Ir(e) {
|
|
|
2637
2635
|
throw n;
|
|
2638
2636
|
}
|
|
2639
2637
|
}
|
|
2640
|
-
function
|
|
2638
|
+
function Ir(e) {
|
|
2641
2639
|
try {
|
|
2642
2640
|
return { valid: !0, value: De(e), issues: [] };
|
|
2643
2641
|
} catch (n) {
|
|
@@ -2646,7 +2644,7 @@ function vr(e) {
|
|
|
2646
2644
|
throw n;
|
|
2647
2645
|
}
|
|
2648
2646
|
}
|
|
2649
|
-
function
|
|
2647
|
+
function vr(e) {
|
|
2650
2648
|
return typeof e == "string" && Ee.has(e);
|
|
2651
2649
|
}
|
|
2652
2650
|
function _e(e) {
|
|
@@ -2657,57 +2655,57 @@ export {
|
|
|
2657
2655
|
f as A,
|
|
2658
2656
|
Z as B,
|
|
2659
2657
|
x as C,
|
|
2660
|
-
|
|
2658
|
+
or as D,
|
|
2661
2659
|
qt as E,
|
|
2662
2660
|
Kt as F,
|
|
2663
|
-
|
|
2661
|
+
ur as G,
|
|
2664
2662
|
ve as H,
|
|
2665
2663
|
j as I,
|
|
2666
2664
|
hn as J,
|
|
2667
|
-
|
|
2665
|
+
pr as K,
|
|
2668
2666
|
De as L,
|
|
2669
2667
|
H as M,
|
|
2670
|
-
|
|
2668
|
+
hr as N,
|
|
2671
2669
|
re as O,
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2670
|
+
yr as P,
|
|
2671
|
+
gr as Q,
|
|
2672
|
+
br as R,
|
|
2673
|
+
Ir as S,
|
|
2674
|
+
vr as T,
|
|
2677
2675
|
_e as U,
|
|
2678
|
-
|
|
2676
|
+
Qn as V,
|
|
2679
2677
|
ht as W,
|
|
2680
2678
|
ft as X,
|
|
2681
|
-
|
|
2679
|
+
Zn as Y,
|
|
2682
2680
|
mt as Z,
|
|
2683
2681
|
pt as _,
|
|
2684
|
-
|
|
2682
|
+
mr as a,
|
|
2685
2683
|
Mt as a0,
|
|
2686
2684
|
Ut as a1,
|
|
2687
2685
|
Vt as a2,
|
|
2688
2686
|
ut as b,
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2687
|
+
Jn as c,
|
|
2688
|
+
ir as d,
|
|
2689
|
+
er as e,
|
|
2690
|
+
rr as f,
|
|
2691
|
+
fr as g,
|
|
2692
|
+
Xn as h,
|
|
2693
|
+
Yn as i,
|
|
2696
2694
|
Ct as j,
|
|
2697
|
-
|
|
2695
|
+
ar as k,
|
|
2698
2696
|
N as l,
|
|
2699
|
-
|
|
2697
|
+
cr as m,
|
|
2700
2698
|
Rt as n,
|
|
2701
|
-
|
|
2699
|
+
lr as o,
|
|
2702
2700
|
be as p,
|
|
2703
2701
|
ye as q,
|
|
2704
2702
|
zt as r,
|
|
2705
|
-
|
|
2706
|
-
|
|
2703
|
+
dr as s,
|
|
2704
|
+
sr as t,
|
|
2707
2705
|
yt as u,
|
|
2708
2706
|
me as v,
|
|
2709
|
-
|
|
2710
|
-
|
|
2707
|
+
nr as w,
|
|
2708
|
+
tr as x,
|
|
2711
2709
|
jt as y,
|
|
2712
2710
|
Y as z
|
|
2713
2711
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as G } from "./metric-comparison-
|
|
2
|
-
import { ab as E, aw as Y, av as V, ax as J, au as X, at as ee, a0 as $, P, x as te } from "./validators-
|
|
3
|
-
import {
|
|
1
|
+
import { r as G } from "./metric-comparison-C8LY7GG5.js";
|
|
2
|
+
import { ab as E, aw as Y, av as V, ax as J, au as X, at as ee, a0 as $, P, x as te } from "./validators-hmfNNQz8.js";
|
|
3
|
+
import { c as ne, w as h, z as F } from "./zoned-wall-clock-E35Frf9v.js";
|
|
4
4
|
import { z as u } from "zod";
|
|
5
5
|
import { c as ie } from "./analytics-base-schemas-BUFUoO6G.js";
|
|
6
6
|
function ae(e, t) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as s, o as f, q as u } from "./validators-
|
|
2
|
-
import "./matrix-operation-contract-
|
|
1
|
+
import { l as s, o as f, q as u } from "./validators-hmfNNQz8.js";
|
|
2
|
+
import "./matrix-operation-contract-CpgLZ7E5.js";
|
|
3
3
|
import "./analytics-base-schemas-BUFUoO6G.js";
|
|
4
4
|
import "zod";
|
|
5
5
|
function c(i, r = {}) {
|
package/dist/chunks/{matrix-operation-contract-C1G6AJNh.js → matrix-operation-contract-CpgLZ7E5.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z as t } from "zod";
|
|
2
2
|
import { z as je, E as Fe, F as Le, I as Ue, J as qe, s as U, x as Z, n as De, C as Me, D as ce, f as Be, r as Ge, y as ze, m as Ve, o as We, a as le, u as Xe } from "./analytics-base-schemas-BUFUoO6G.js";
|
|
3
|
-
import { I as w, A as ue, Q as G,
|
|
3
|
+
import { I as w, A as ue, Q as G, aM as ee, t as b, J as Ke, aG as $, aN as Ze, B as $e, s as Ye, x as de, a8 as He, r as Qe, m as Je } from "./validators-hmfNNQz8.js";
|
|
4
4
|
const Y = {
|
|
5
5
|
answerSummary: "string",
|
|
6
6
|
responseDetail: "responseDetail",
|
|
@@ -1326,7 +1326,7 @@ export {
|
|
|
1326
1326
|
nt as P,
|
|
1327
1327
|
at as Q,
|
|
1328
1328
|
sn as R,
|
|
1329
|
-
|
|
1329
|
+
Te as S,
|
|
1330
1330
|
on as T,
|
|
1331
1331
|
st as U,
|
|
1332
1332
|
cn as V,
|
|
@@ -1359,29 +1359,29 @@ export {
|
|
|
1359
1359
|
Tn as ak,
|
|
1360
1360
|
En as al,
|
|
1361
1361
|
Qt as am,
|
|
1362
|
-
|
|
1362
|
+
_n as b,
|
|
1363
1363
|
An as c,
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1364
|
+
Sn as d,
|
|
1365
|
+
Y as e,
|
|
1366
|
+
bt as f,
|
|
1367
1367
|
fn as g,
|
|
1368
|
-
|
|
1368
|
+
It as h,
|
|
1369
1369
|
Et as i,
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1370
|
+
_e as j,
|
|
1371
|
+
ke as k,
|
|
1372
|
+
we as l,
|
|
1373
|
+
ve as m,
|
|
1374
|
+
_t as n,
|
|
1375
|
+
wt as o,
|
|
1376
1376
|
gn as p,
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1377
|
+
vt as q,
|
|
1378
|
+
be as r,
|
|
1379
|
+
se as s,
|
|
1380
|
+
Ee as t,
|
|
1381
|
+
yn as u,
|
|
1382
|
+
Rt as v,
|
|
1383
|
+
Re as w,
|
|
1384
|
+
Ct as x,
|
|
1385
1385
|
z as y,
|
|
1386
1386
|
oe as z
|
|
1387
1387
|
};
|