react-semaphor 0.1.546 → 0.1.548
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 +71 -68
- package/dist/assistant-context/index.js +1 -1
- package/dist/briefings/index.js +1 -1
- package/dist/chunks/applied-constraints-DU-wndZ7.js +47 -0
- package/dist/chunks/{assistant-chat-BPXhulAx.js → assistant-chat-DCcWsoGm.js} +106 -106
- package/dist/chunks/{bookmark-state-C4vetoa0.js → bookmark-state-Cu-a5ie_.js} +2 -8
- package/dist/chunks/{custom-visual-inputs-CkJW9pBS.js → custom-visual-inputs-BTRnwsfd.js} +1 -1
- package/dist/chunks/{dashboard-C3CoKbGY.js → dashboard-BZHL9a-z.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-Be4h-7My.js → dashboard-briefing-launcher-DML-cAzB.js} +528 -528
- package/dist/chunks/{dashboard-controls-bxPrlSyp.js → dashboard-controls-BGoBTPS7.js} +45 -45
- package/dist/chunks/{dashboard-json-BrjxIiRt.js → dashboard-json-iHPsdn3j.js} +1 -1
- package/dist/chunks/{document-dashboard-inputs-CRVHpIHp.js → document-dashboard-inputs-B2AqPfrq.js} +94 -94
- package/dist/chunks/{edit-dashboard-visual-DYYYDjY6.js → edit-dashboard-visual-CLEFFf2T.js} +281 -281
- package/dist/chunks/{column-catalog-BYnochWQ.js → filter-reach-copy-ByzGadUk.js} +978 -861
- package/dist/chunks/{global-date-filter-utils-9d6m9-FE.js → global-date-filter-utils-CeeFJ1CP.js} +4070 -3792
- package/dist/chunks/{index-DkQkMKa1.js → index-DeDHr3iz.js} +30 -30
- package/dist/chunks/{raw-temporal-presentation-CBzrDOjM.js → raw-temporal-presentation-CrUM2I_o.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-4QEZWe5U.js → report-preferences-dialog-CM7kXmXp.js} +59 -59
- package/dist/chunks/{resolve-dashboard-input-context-UpK_LBpL.js → resolve-dashboard-input-context-BmWF9hSl.js} +1511 -1612
- package/dist/chunks/{saved-dashboard-context-D_I3Lxk0.js → saved-dashboard-context-qtfzl9Eb.js} +5 -5
- package/dist/chunks/{semaphor-ready-indicator-4zpRHE-X.js → semaphor-ready-indicator-Ol6VcaR7.js} +36548 -35855
- package/dist/chunks/{shelf-drop-preview-context-Cfw7TRAx.js → shelf-drop-preview-context-C2SEC3I9.js} +80 -80
- package/dist/chunks/{source-entity-resolution-BIGRvtbG.js → source-entity-resolution-D195CrYS.js} +221 -192
- package/dist/chunks/{table-settings-CunhoDUi.js → table-settings-WysCBj62.js} +133 -124
- package/dist/chunks/{use-create-flow-overlay-state-DZBZiiD-.js → use-create-flow-overlay-state-CbGIjaVD.js} +2 -2
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1419 -1340
- package/dist/data-app-sdk-validation/index.js +1 -1
- package/dist/index.js +14 -14
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/surfboard/filter/types.d.ts +7 -0
- package/dist/types/components/surfboard/screen-size-preview-button.d.ts +7 -4
- package/dist/types/components/visual/matrix-table/matrix-card-view.d.ts +3 -0
- package/dist/types/index.js +2 -2
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-authoring.d.ts +383 -22
- package/dist/types/lib/dashboard-inputs/dashboard-filter-value-identity.d.ts +65 -0
- package/dist/types/lib/dashboard-inputs/resolve-selection-input.d.ts +3 -3
- package/dist/types/lib/hooks/use-dashboard-card.d.ts +2 -0
- package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +1 -1
- package/dist/types/lib/matrix-table/matrix-runtime-types.d.ts +9 -1
- package/dist/types/lib/matrix-table/matrix-runtime.d.ts +5 -1
- package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +83 -13
- package/dist/types/lib/stores/dashboard-store.d.ts +12 -0
- package/dist/types/shared/analytics-protocol/applied-constraints.d.ts +57 -1
- package/dist/types/shared/assistant-protocol/context.d.ts +8 -8
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/click-to-filter-settings.d.ts +3 -3
- package/dist/types/shared/dashboard-authoring/dashboard-filter-automatic-target.d.ts +4 -4
- package/dist/types/shared/dashboard-authoring/dashboard-filter-mapping-contract.d.ts +3 -1
- package/dist/types/shared/dashboard-authoring/dashboard-filter-mapping-types.d.ts +27 -1
- package/dist/types/shared/dashboard-authoring/dashboard-filter-value-compatibility.d.ts +12 -3
- package/dist/types/shared/dashboard-authoring/filter-reach-copy.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/filter-reach-preview.d.ts +97 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +5 -1
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +26 -4
- package/dist/types/shared/dashboard-authoring/semantic-auto-join-card.d.ts +22 -0
- package/package.json +1 -1
package/dist/chunks/{document-dashboard-inputs-CRVHpIHp.js → document-dashboard-inputs-B2AqPfrq.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { cV as vt, cW as Se, cX as M, cY as R, cZ as Ve, d as W, c_ as Dt, c$ as yt, d0 as St, d1 as Vt, d2 as Ft, d3 as Fe, d4 as kt, d5 as ne, d6 as Y, d7 as oe, d8 as Mt, Y as se, i as z, d9 as Tt, da as Ot, db as j, dc as ie, dd as $, de as ke, df as xt, dg as Pt, dh as wt, v as Me, di as Et, dj as Rt, dk as Bt, bY as Te, dl as Oe, V as xe, dm as Pe, n as we, a as Ee, dn as qt, bp as At, _ as Nt, as as Re, bo as Be, dp as jt, ba as zt, a3 as qe, a2 as _t, dq as Ae } from "./global-date-filter-utils-CeeFJ1CP.js";
|
|
2
|
+
import { K as Gt, r as re, S as Lt, T as Ht, U as Kt, V as Qt, W as $t, l as ae, X as Ut, D as Ne, Y as Wt, L as Yt, x as Zt, Z as Jt, _ as Xt, $ as en, a0 as tn, a1 as nn, a2 as on, a3 as sn, H as rn, a4 as an, c as ln, a5 as je, a6 as dn, a7 as cn, y as un, a8 as fn, E as pn, a9 as ze, aa as mn, ab as In } from "./resolve-dashboard-input-context-BmWF9hSl.js";
|
|
3
3
|
import { ao as bn } from "./validators-C-aOQlTB.js";
|
|
4
4
|
import { b as le } from "./matrix-operation-contract-D6vYkZK4.js";
|
|
5
5
|
import "./analytics-base-schemas-BKs3flFS.js";
|
|
@@ -8,11 +8,11 @@ import "./index-CuHybtft.js";
|
|
|
8
8
|
import "../value-format-preferences/index.js";
|
|
9
9
|
import "./_commonjsHelpers-DimLPMtv.js";
|
|
10
10
|
import "./pivot-result-lifecycle-pwq3b7LC.js";
|
|
11
|
-
import { I as hn, z as de, J as B, H as
|
|
11
|
+
import { I as hn, z as de, J as B, H as X, q as gn, j as Cn, o as vn, K as G, A as Dn } from "./table-settings-WysCBj62.js";
|
|
12
12
|
import "./index-CtoK1Lgu.js";
|
|
13
|
-
import { r as _e, B as ce } from "./bookmark-state-
|
|
13
|
+
import { r as _e, B as ce } from "./bookmark-state-Cu-a5ie_.js";
|
|
14
14
|
import { n as he } from "./matrix-formatter-DWEeC0_c.js";
|
|
15
|
-
import { r as
|
|
15
|
+
import { r as yn, i as Ge } from "./matrix-card-LiMEipvq.js";
|
|
16
16
|
import { D as Sn } from "./report-runtime-context-hWiTCzFV.js";
|
|
17
17
|
import { c as Vn } from "./selection-filter-compiler-BKXmyLrS.js";
|
|
18
18
|
function ue(e, t) {
|
|
@@ -335,7 +335,7 @@ function Bn({
|
|
|
335
335
|
}
|
|
336
336
|
function qn(e, t) {
|
|
337
337
|
var o;
|
|
338
|
-
const n =
|
|
338
|
+
const n = X(e, t);
|
|
339
339
|
if (n)
|
|
340
340
|
return {
|
|
341
341
|
sheetId: n.sheet.id,
|
|
@@ -385,8 +385,8 @@ function is({
|
|
|
385
385
|
continue;
|
|
386
386
|
const p = ((l = f.filter) == null ? void 0 : l.id) || ((u = f.filterReference) == null ? void 0 : u.filterId);
|
|
387
387
|
if (!p) continue;
|
|
388
|
-
const m = a.get(p), I = m ?
|
|
389
|
-
c =
|
|
388
|
+
const m = a.get(p), I = m ? Dt(m) : void 0, b = (I == null ? void 0 : I.status) === "set" ? I : { status: "cleared" };
|
|
389
|
+
c = yt(
|
|
390
390
|
c,
|
|
391
391
|
f,
|
|
392
392
|
{ sheetId: o, cardId: s, sectionId: i },
|
|
@@ -499,7 +499,7 @@ function Nn(e, t) {
|
|
|
499
499
|
i(c);
|
|
500
500
|
return o;
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function jn({
|
|
503
503
|
sectionIds: e,
|
|
504
504
|
...t
|
|
505
505
|
}) {
|
|
@@ -508,7 +508,7 @@ function zn({
|
|
|
508
508
|
...t,
|
|
509
509
|
sectionId: i
|
|
510
510
|
})
|
|
511
|
-
), s =
|
|
511
|
+
), s = zn(
|
|
512
512
|
t.dashboard,
|
|
513
513
|
t.sheetId,
|
|
514
514
|
e
|
|
@@ -535,7 +535,7 @@ function zn({
|
|
|
535
535
|
}
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function zn(e, t, n) {
|
|
539
539
|
var i, r;
|
|
540
540
|
const o = new Set(n), s = (i = e.sheets) == null ? void 0 : i.find((a) => a.id === t);
|
|
541
541
|
return (((r = s == null ? void 0 : s.document) == null ? void 0 : r.sections) || []).flatMap(
|
|
@@ -622,14 +622,14 @@ function $e(...e) {
|
|
|
622
622
|
n.shared && (t.shared = {
|
|
623
623
|
...t.shared,
|
|
624
624
|
...n.shared
|
|
625
|
-
}),
|
|
625
|
+
}), J(t, "bySheetId", n.bySheetId), J(t, "byCardId", n.byCardId), J(
|
|
626
626
|
t,
|
|
627
627
|
"byDocumentSectionId",
|
|
628
628
|
n.byDocumentSectionId
|
|
629
629
|
);
|
|
630
630
|
return M(t);
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function J(e, t, n) {
|
|
633
633
|
if (n) {
|
|
634
634
|
e[t] || (e[t] = {});
|
|
635
635
|
for (const [o, s] of Object.entries(n))
|
|
@@ -696,7 +696,7 @@ function We(e, t, n) {
|
|
|
696
696
|
var d;
|
|
697
697
|
return oe(
|
|
698
698
|
a,
|
|
699
|
-
|
|
699
|
+
jn({
|
|
700
700
|
dashboard: e,
|
|
701
701
|
sheetId: c.id,
|
|
702
702
|
sheetKind: "document",
|
|
@@ -843,20 +843,20 @@ function as(e) {
|
|
|
843
843
|
)
|
|
844
844
|
};
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function Je(e) {
|
|
847
847
|
const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
848
848
|
for (const s of ae(e))
|
|
849
849
|
s.kind === "filter" && s.filter ? t.set(s.id, s.filter) : s.kind === "control" && n.add(s.id), s.compatibility && o.set(s.id, s.compatibility);
|
|
850
850
|
return { filterInputs: t, controlInputIds: n, compatibility: o };
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function Xe(e, t) {
|
|
853
853
|
const n = le(t);
|
|
854
854
|
if (!n) return;
|
|
855
855
|
const o = G(e, n);
|
|
856
856
|
return o ? Ut(o, e) ? "applies" : "not-eligible" : "removed";
|
|
857
857
|
}
|
|
858
858
|
function ls(e, t) {
|
|
859
|
-
const n =
|
|
859
|
+
const n = Xe(e, t);
|
|
860
860
|
return n ? n === "applies" : ae(e).some(
|
|
861
861
|
(o) => o.id === t
|
|
862
862
|
);
|
|
@@ -872,7 +872,7 @@ function et(e, t, n, o) {
|
|
|
872
872
|
for (const [f, p] of Object.entries(d)) {
|
|
873
873
|
const m = t.filterInputs.has(f) || t.controlInputIds.has(f) ? f : ((u = r.findFilterInput({ inputId: f })) == null ? void 0 : u.input.id) ?? f;
|
|
874
874
|
if (m !== f && d[m]) continue;
|
|
875
|
-
const I =
|
|
875
|
+
const I = Xe(e, m);
|
|
876
876
|
if (I) {
|
|
877
877
|
if (I !== "applies") {
|
|
878
878
|
o.push({
|
|
@@ -1012,7 +1012,7 @@ function ge(e, t, n, o) {
|
|
|
1012
1012
|
const { dashboard: s, baseline: i } = e, r = [], a = _e(t.state, ce), c = a.ok ? a.value : {};
|
|
1013
1013
|
for (const m of a.ok ? a.issues : [])
|
|
1014
1014
|
r.push(Zn(m));
|
|
1015
|
-
const d =
|
|
1015
|
+
const d = Je(s), l = Ye(
|
|
1016
1016
|
d.compatibility,
|
|
1017
1017
|
et(s, d, c.inputs, r)
|
|
1018
1018
|
), u = Yn(s, c.selectedSheetId, r) ?? i.selectedSheetId, f = F(
|
|
@@ -1213,7 +1213,7 @@ function cs(e) {
|
|
|
1213
1213
|
const c = _e(
|
|
1214
1214
|
e.appliedBookmark.state,
|
|
1215
1215
|
ce
|
|
1216
|
-
), d =
|
|
1216
|
+
), d = Je(t), l = Ye(
|
|
1217
1217
|
d.compatibility,
|
|
1218
1218
|
et(
|
|
1219
1219
|
t,
|
|
@@ -1284,13 +1284,13 @@ function fs(e) {
|
|
|
1284
1284
|
...Object.keys(i).length ? { tableSettings: i } : {}
|
|
1285
1285
|
};
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1287
|
+
function Jn(e) {
|
|
1288
1288
|
const t = /* @__PURE__ */ new Map();
|
|
1289
1289
|
for (const n of ae(e))
|
|
1290
1290
|
n.label && t.set(n.id, n.label);
|
|
1291
1291
|
return t;
|
|
1292
1292
|
}
|
|
1293
|
-
function
|
|
1293
|
+
function Xn(e, t, n) {
|
|
1294
1294
|
var s, i;
|
|
1295
1295
|
const o = le(n);
|
|
1296
1296
|
if (o) {
|
|
@@ -1301,14 +1301,14 @@ function Jn(e, t, n) {
|
|
|
1301
1301
|
}
|
|
1302
1302
|
function ps(e) {
|
|
1303
1303
|
var d, l;
|
|
1304
|
-
const { dashboard: t, opened: n, current: o } = e, s = [], i =
|
|
1304
|
+
const { dashboard: t, opened: n, current: o } = e, s = [], i = Jn(t), r = /* @__PURE__ */ new Set();
|
|
1305
1305
|
for (const u of _(
|
|
1306
1306
|
st(n.inputs, o.inputs)
|
|
1307
1307
|
))
|
|
1308
1308
|
r.has(u.inputId) || (r.add(u.inputId), s.push({
|
|
1309
1309
|
target: "input",
|
|
1310
1310
|
inputId: u.inputId,
|
|
1311
|
-
label:
|
|
1311
|
+
label: Xn(t, i, u.inputId)
|
|
1312
1312
|
}));
|
|
1313
1313
|
(n.selectedSheetId ?? null) !== (o.selectedSheetId ?? null) && s.push({ target: "sheet" });
|
|
1314
1314
|
const a = F(
|
|
@@ -1368,8 +1368,8 @@ function Is(e) {
|
|
|
1368
1368
|
...c != null && c.length ? { transientContexts: c } : {}
|
|
1369
1369
|
};
|
|
1370
1370
|
}
|
|
1371
|
-
function
|
|
1372
|
-
const t =
|
|
1371
|
+
function De(e) {
|
|
1372
|
+
const t = z(e.filter);
|
|
1373
1373
|
return {
|
|
1374
1374
|
inputId: e.inputId,
|
|
1375
1375
|
filterId: e.filterId,
|
|
@@ -1390,7 +1390,7 @@ function eo(e) {
|
|
|
1390
1390
|
fieldCandidates: [],
|
|
1391
1391
|
resolution: { status: "none" }
|
|
1392
1392
|
};
|
|
1393
|
-
const t = e.inputs.filter((r) => !
|
|
1393
|
+
const t = e.inputs.filter((r) => !z(r.filter)).map((r) => ({
|
|
1394
1394
|
input: r,
|
|
1395
1395
|
resolution: Tt({
|
|
1396
1396
|
filter: r.filter,
|
|
@@ -1404,7 +1404,7 @@ function eo(e) {
|
|
|
1404
1404
|
if (!e.temporalBinding)
|
|
1405
1405
|
return { inputs: e.inputs, fieldCandidates: t, resolution: { status: "none" } };
|
|
1406
1406
|
const n = e.inputs.find(
|
|
1407
|
-
(r) =>
|
|
1407
|
+
(r) => z(r.filter)
|
|
1408
1408
|
);
|
|
1409
1409
|
if (n && ((i = n.filterValue) == null ? void 0 : i.filterId) === n.filterId && n.effectiveFilterValue.filterId === n.filterId && Ot(n.effectiveFilterValue))
|
|
1410
1410
|
return {
|
|
@@ -1412,7 +1412,7 @@ function eo(e) {
|
|
|
1412
1412
|
fieldCandidates: t,
|
|
1413
1413
|
resolution: {
|
|
1414
1414
|
status: "resolved",
|
|
1415
|
-
resolvedOwner:
|
|
1415
|
+
resolvedOwner: De(n)
|
|
1416
1416
|
}
|
|
1417
1417
|
};
|
|
1418
1418
|
const o = t.filter(
|
|
@@ -1423,7 +1423,7 @@ function eo(e) {
|
|
|
1423
1423
|
fieldCandidates: t,
|
|
1424
1424
|
resolution: {
|
|
1425
1425
|
status: "resolved",
|
|
1426
|
-
resolvedOwner:
|
|
1426
|
+
resolvedOwner: De(o[0].input)
|
|
1427
1427
|
}
|
|
1428
1428
|
} : o.length > 1 ? {
|
|
1429
1429
|
inputs: e.inputs,
|
|
@@ -1527,7 +1527,7 @@ function at(e) {
|
|
|
1527
1527
|
};
|
|
1528
1528
|
}
|
|
1529
1529
|
function io(e) {
|
|
1530
|
-
const t =
|
|
1530
|
+
const t = j(e.filters);
|
|
1531
1531
|
if (!t)
|
|
1532
1532
|
return e.filterValues;
|
|
1533
1533
|
const n = rt(e);
|
|
@@ -1599,7 +1599,7 @@ function ro(e) {
|
|
|
1599
1599
|
}
|
|
1600
1600
|
function ao(e) {
|
|
1601
1601
|
var c, d, l, u, f;
|
|
1602
|
-
if (
|
|
1602
|
+
if (z(e) || (c = e.sql) != null && c.trim())
|
|
1603
1603
|
return null;
|
|
1604
1604
|
const t = ro(e), n = P((d = e.semanticContext) == null ? void 0 : d.semanticDomainId), o = P((l = e.fieldMeta) == null ? void 0 : l.entityId), s = P((u = e.fieldMeta) == null ? void 0 : u.entityName), i = P((f = e.fieldMeta) == null ? void 0 : f.entityType) === "dataset", r = t.find(
|
|
1605
1605
|
(p) => o && p.selectedEntityId === o
|
|
@@ -1623,17 +1623,17 @@ function lo(e) {
|
|
|
1623
1623
|
return o && ((i = (s = n.domainsById[o.domainId]) == null ? void 0 : s.datasetsByName[o.datasetName]) == null ? void 0 : i.primaryDateField) || null;
|
|
1624
1624
|
}
|
|
1625
1625
|
function dt(e) {
|
|
1626
|
-
const t =
|
|
1626
|
+
const t = j(e.filters);
|
|
1627
1627
|
return t ? e.filterValues.filter(
|
|
1628
1628
|
(n) => n.filterId !== t.id
|
|
1629
1629
|
) : e.filterValues;
|
|
1630
1630
|
}
|
|
1631
1631
|
function hs(e) {
|
|
1632
|
-
const t =
|
|
1632
|
+
const t = j(e.filters), n = dt({
|
|
1633
1633
|
filters: e.filters,
|
|
1634
1634
|
filterValues: e.filterValues
|
|
1635
1635
|
});
|
|
1636
|
-
if (!t ||
|
|
1636
|
+
if (!t || z(e.filter))
|
|
1637
1637
|
return n;
|
|
1638
1638
|
const o = e.filterValues.find(
|
|
1639
1639
|
(r) => r.filterId === t.id
|
|
@@ -1652,7 +1652,7 @@ function hs(e) {
|
|
|
1652
1652
|
}
|
|
1653
1653
|
function co(e) {
|
|
1654
1654
|
var l;
|
|
1655
|
-
const t =
|
|
1655
|
+
const t = j(e.filters), n = t ? e.cardFilterValues.find(
|
|
1656
1656
|
(u) => u.filterId === t.id
|
|
1657
1657
|
) : void 0, o = t ? e.cardFilterValues.filter(
|
|
1658
1658
|
(u) => u.filterId !== t.id
|
|
@@ -1694,7 +1694,7 @@ function co(e) {
|
|
|
1694
1694
|
};
|
|
1695
1695
|
}
|
|
1696
1696
|
function gs(e) {
|
|
1697
|
-
const t =
|
|
1697
|
+
const t = j(e.filters), n = rt(e), o = t ? e.filterValues.find(
|
|
1698
1698
|
(r) => r.filterId === t.id
|
|
1699
1699
|
) : void 0, s = dt(e);
|
|
1700
1700
|
return !t || !o || !me(o.operation) ? s : [
|
|
@@ -1721,7 +1721,7 @@ function Cs(e, t) {
|
|
|
1721
1721
|
});
|
|
1722
1722
|
}
|
|
1723
1723
|
function fo(e, t, n) {
|
|
1724
|
-
const o =
|
|
1724
|
+
const o = yn(e);
|
|
1725
1725
|
if (!o) throw new Error("Matrix card definition is required.");
|
|
1726
1726
|
const s = n && Yt({
|
|
1727
1727
|
...n,
|
|
@@ -1802,7 +1802,7 @@ function Io(e, t) {
|
|
|
1802
1802
|
const a = n.map(
|
|
1803
1803
|
(c) => {
|
|
1804
1804
|
var u;
|
|
1805
|
-
const d =
|
|
1805
|
+
const d = Jt(c);
|
|
1806
1806
|
if (d === "none")
|
|
1807
1807
|
return c;
|
|
1808
1808
|
let l = c;
|
|
@@ -1838,7 +1838,7 @@ function bo(e, t, n) {
|
|
|
1838
1838
|
) : o;
|
|
1839
1839
|
}
|
|
1840
1840
|
function ho(e) {
|
|
1841
|
-
const t =
|
|
1841
|
+
const t = Xt(e);
|
|
1842
1842
|
return {
|
|
1843
1843
|
contextMode: t,
|
|
1844
1844
|
shouldApplyDashboardFilters: !t || t === "full"
|
|
@@ -1924,7 +1924,7 @@ function Co({
|
|
|
1924
1924
|
(V) => V.status === "apply"
|
|
1925
1925
|
),
|
|
1926
1926
|
drill: o == null ? void 0 : o.drill
|
|
1927
|
-
}),
|
|
1927
|
+
}), D = ct(b), g = f === !1 ? nn(D, !0) : D, h = bo(
|
|
1928
1928
|
e,
|
|
1929
1929
|
o == null ? void 0 : o.drill,
|
|
1930
1930
|
g
|
|
@@ -1998,10 +1998,10 @@ function vo(e) {
|
|
|
1998
1998
|
e.resolution.resolvedOwner.owner
|
|
1999
1999
|
);
|
|
2000
2000
|
}
|
|
2001
|
-
function
|
|
2001
|
+
function Do(e) {
|
|
2002
2002
|
return `Set ${e.join(", ")} to run this card.`;
|
|
2003
2003
|
}
|
|
2004
|
-
function
|
|
2004
|
+
function yo({
|
|
2005
2005
|
dashboardInputContext: e,
|
|
2006
2006
|
shouldApplyDashboardFilters: t
|
|
2007
2007
|
}) {
|
|
@@ -2046,7 +2046,7 @@ function ee(e, t) {
|
|
|
2046
2046
|
return l.kind === "filter" && ((u = l.compatibility) == null ? void 0 : u.source) === "cardInlineFilter" ? [l.filter.id] : [];
|
|
2047
2047
|
}
|
|
2048
2048
|
)
|
|
2049
|
-
), r =
|
|
2049
|
+
), r = yo({
|
|
2050
2050
|
dashboardInputContext: t.dashboardInputContext,
|
|
2051
2051
|
shouldApplyDashboardFilters: t.shouldApplyDashboardFilters
|
|
2052
2052
|
}).filter((l) => !s.has(l.filterId)), a = r.filter(
|
|
@@ -2141,7 +2141,7 @@ function Fo({
|
|
|
2141
2141
|
(b) => b.status === "apply" ? [[b.inputId, b.filterValue]] : []
|
|
2142
2142
|
)
|
|
2143
2143
|
)
|
|
2144
|
-
}), f =
|
|
2144
|
+
}), f = j(c), p = !!(f && u.cardFilterValues.some(
|
|
2145
2145
|
(b) => b.filterId === f.id
|
|
2146
2146
|
)), m = u.resolvedPrimaryDateField && !((I = e.sql) != null && I.trim()) ? u.dateComparisonPlan.inputs.length ? vo({
|
|
2147
2147
|
card: e,
|
|
@@ -2230,15 +2230,15 @@ function ko(e, t, n) {
|
|
|
2230
2230
|
}
|
|
2231
2231
|
};
|
|
2232
2232
|
}
|
|
2233
|
-
const
|
|
2234
|
-
function
|
|
2233
|
+
const ye = [], Mo = [], To = {};
|
|
2234
|
+
function Ds(e, t) {
|
|
2235
2235
|
return {
|
|
2236
2236
|
sheetId: e.sheetId,
|
|
2237
2237
|
sectionId: e.sectionId,
|
|
2238
|
-
documentFilterValues: e.documentFilterValues ??
|
|
2238
|
+
documentFilterValues: e.documentFilterValues ?? ye,
|
|
2239
2239
|
documentControlDefinitions: e.documentControlDefinitions ?? Mo,
|
|
2240
2240
|
documentControlValues: e.documentControlValues ?? To,
|
|
2241
|
-
editorFilterValues: t ??
|
|
2241
|
+
editorFilterValues: t ?? ye
|
|
2242
2242
|
};
|
|
2243
2243
|
}
|
|
2244
2244
|
function Oo({
|
|
@@ -2248,7 +2248,7 @@ function Oo({
|
|
|
2248
2248
|
dashboardRuntimeValues: o,
|
|
2249
2249
|
calendar: s
|
|
2250
2250
|
}) {
|
|
2251
|
-
const i =
|
|
2251
|
+
const i = je({
|
|
2252
2252
|
dashboard: t,
|
|
2253
2253
|
dashboardInputValues: o.dashboardInputValues,
|
|
2254
2254
|
transientContexts: void 0
|
|
@@ -2300,7 +2300,7 @@ function xo(e, t) {
|
|
|
2300
2300
|
controls: Array.from(n.values())
|
|
2301
2301
|
};
|
|
2302
2302
|
}
|
|
2303
|
-
function
|
|
2303
|
+
function ys({
|
|
2304
2304
|
card: e,
|
|
2305
2305
|
place: t,
|
|
2306
2306
|
source: n
|
|
@@ -2352,14 +2352,14 @@ function Eo({
|
|
|
2352
2352
|
withRequest: i = !1
|
|
2353
2353
|
}) {
|
|
2354
2354
|
var I, b;
|
|
2355
|
-
const { dashboard: r } = n, a = e.id, c = (
|
|
2355
|
+
const { dashboard: r } = n, a = e.id, c = (D, g) => {
|
|
2356
2356
|
var v;
|
|
2357
2357
|
let h;
|
|
2358
2358
|
try {
|
|
2359
|
-
const C = Ge(
|
|
2359
|
+
const C = Ge(D);
|
|
2360
2360
|
if (C.status === "invalid") throw C.error;
|
|
2361
2361
|
const k = te(
|
|
2362
|
-
|
|
2362
|
+
D,
|
|
2363
2363
|
g,
|
|
2364
2364
|
n,
|
|
2365
2365
|
C.status === "absent"
|
|
@@ -2374,14 +2374,14 @@ function Eo({
|
|
|
2374
2374
|
context: h
|
|
2375
2375
|
};
|
|
2376
2376
|
const H = un(C.config.spec, h), T = s.filter(
|
|
2377
|
-
(
|
|
2378
|
-
(O) => bn(O,
|
|
2377
|
+
(y) => y.field.source && H.some(
|
|
2378
|
+
(O) => bn(O, y.field.source)
|
|
2379
2379
|
)
|
|
2380
|
-
), V = fo(
|
|
2380
|
+
), V = fo(D, T, h), { params: w } = k, x = w.dashboardInputContext;
|
|
2381
2381
|
V.config = {
|
|
2382
2382
|
...V.config,
|
|
2383
2383
|
presentation: fn(
|
|
2384
|
-
|
|
2384
|
+
D,
|
|
2385
2385
|
V.config,
|
|
2386
2386
|
{
|
|
2387
2387
|
controls: x ? [
|
|
@@ -2393,14 +2393,14 @@ function Eo({
|
|
|
2393
2393
|
],
|
|
2394
2394
|
values: (x == null ? void 0 : x.controlValues) ?? {
|
|
2395
2395
|
...w.dashboardControlValues,
|
|
2396
|
-
...(v = w.cardControlValuesMap) == null ? void 0 : v[
|
|
2396
|
+
...(v = w.cardControlValuesMap) == null ? void 0 : v[D.id]
|
|
2397
2397
|
}
|
|
2398
2398
|
},
|
|
2399
2399
|
T
|
|
2400
2400
|
)
|
|
2401
2401
|
};
|
|
2402
2402
|
const q = {
|
|
2403
|
-
...
|
|
2403
|
+
...D,
|
|
2404
2404
|
config: { matrix: V.config }
|
|
2405
2405
|
}, S = te(q, g, n, !1);
|
|
2406
2406
|
return {
|
|
@@ -2438,38 +2438,38 @@ function Eo({
|
|
|
2438
2438
|
n.calendar
|
|
2439
2439
|
), p = l.context.filterCompilationInput, m = At(r);
|
|
2440
2440
|
try {
|
|
2441
|
-
const
|
|
2441
|
+
const D = ee(l.card, p), g = u && m && D.status === "ready" && D.filterValues.some((k) => k.filterId === m.id);
|
|
2442
2442
|
let h = f.allowGlobalDateMinutePrecision;
|
|
2443
2443
|
if (g) {
|
|
2444
2444
|
const k = (I = p.dashboardInputContext) == null ? void 0 : I.inputs.find(
|
|
2445
2445
|
(S) => S.kind === "filter" && S.filter.id === m.id
|
|
2446
2446
|
), T = Nt(r, m).filter(
|
|
2447
|
-
({ card: S, sheet:
|
|
2447
|
+
({ card: S, sheet: y }) => !k || W(k, {
|
|
2448
2448
|
cardId: S.id,
|
|
2449
|
-
sheetId:
|
|
2450
|
-
sheetKind: Re(
|
|
2449
|
+
sheetId: y.id,
|
|
2450
|
+
sheetKind: Re(y) ? "document" : "dashboard"
|
|
2451
2451
|
})
|
|
2452
|
-
).map(({ card: S, sheet:
|
|
2452
|
+
).map(({ card: S, sheet: y }) => ({
|
|
2453
2453
|
card: S,
|
|
2454
|
-
value: S.id === a ? d : c(S, { kind: "sheet", sheetId:
|
|
2454
|
+
value: S.id === a ? d : c(S, { kind: "sheet", sheetId: y.id })
|
|
2455
2455
|
})), V = new Map(
|
|
2456
|
-
T.map(({ card: S, value:
|
|
2456
|
+
T.map(({ card: S, value: y }) => [
|
|
2457
2457
|
S.id,
|
|
2458
|
-
|
|
2458
|
+
y.status === "ready" ? y.value.assembled.card : null
|
|
2459
2459
|
])
|
|
2460
2460
|
), w = new Map(
|
|
2461
|
-
T.map(({ card: S, value:
|
|
2461
|
+
T.map(({ card: S, value: y }) => {
|
|
2462
2462
|
var O;
|
|
2463
2463
|
return [
|
|
2464
2464
|
S.id,
|
|
2465
|
-
|
|
2465
|
+
y.status === "ready" ? (O = y.value.matrix) == null ? void 0 : O.fields : void 0
|
|
2466
2466
|
];
|
|
2467
2467
|
})
|
|
2468
2468
|
), x = T.flatMap(
|
|
2469
|
-
({ card: S, value:
|
|
2470
|
-
const O = S.id, Ie =
|
|
2469
|
+
({ card: S, value: y }) => {
|
|
2470
|
+
const O = S.id, Ie = y.status === "ready" ? y.value.assembled.context : y.context;
|
|
2471
2471
|
if (!Ie) return [O];
|
|
2472
|
-
const gt =
|
|
2472
|
+
const gt = y.status === "ready" ? y.value.assembled.card : S;
|
|
2473
2473
|
try {
|
|
2474
2474
|
const be = ee(
|
|
2475
2475
|
gt,
|
|
@@ -2507,7 +2507,7 @@ function Eo({
|
|
|
2507
2507
|
mappingDispositions: v.mappingDispositions,
|
|
2508
2508
|
reason: v.reason,
|
|
2509
2509
|
missingRequiredLabels: v.missingRequiredLabels,
|
|
2510
|
-
...v.reason === "requiredInput" ? { message:
|
|
2510
|
+
...v.reason === "requiredInput" ? { message: Do(v.missingRequiredLabels) } : {}
|
|
2511
2511
|
};
|
|
2512
2512
|
const C = i && !u ? wo(l, f) : void 0;
|
|
2513
2513
|
return {
|
|
@@ -2528,14 +2528,14 @@ function Eo({
|
|
|
2528
2528
|
}
|
|
2529
2529
|
} : {}
|
|
2530
2530
|
};
|
|
2531
|
-
} catch (
|
|
2531
|
+
} catch (D) {
|
|
2532
2532
|
return {
|
|
2533
2533
|
status: "blocked",
|
|
2534
2534
|
cardId: a,
|
|
2535
2535
|
mappingDispositions: [],
|
|
2536
2536
|
reason: "configuration",
|
|
2537
2537
|
missingRequiredLabels: [],
|
|
2538
|
-
message:
|
|
2538
|
+
message: D instanceof Error ? D.message : "Card filter configuration is invalid."
|
|
2539
2539
|
};
|
|
2540
2540
|
}
|
|
2541
2541
|
}
|
|
@@ -2577,7 +2577,7 @@ function te(e, t, n, o) {
|
|
|
2577
2577
|
}
|
|
2578
2578
|
function Bo(e, t, n, o, s) {
|
|
2579
2579
|
var c, d;
|
|
2580
|
-
const { dashboard: i, transientContexts: r } = n, a =
|
|
2580
|
+
const { dashboard: i, transientContexts: r } = n, a = je({
|
|
2581
2581
|
dashboard: i,
|
|
2582
2582
|
dashboardInputValues: o.dashboardInputValues,
|
|
2583
2583
|
transientContexts: r
|
|
@@ -2667,10 +2667,10 @@ function Vs({
|
|
|
2667
2667
|
) : [];
|
|
2668
2668
|
for (const g of I)
|
|
2669
2669
|
Object.assign(m, (a == null ? void 0 : a[g.card.id]) || {});
|
|
2670
|
-
const b =
|
|
2670
|
+
const b = jt({
|
|
2671
2671
|
filterDefinitions: l,
|
|
2672
2672
|
filterValues: p
|
|
2673
|
-
}),
|
|
2673
|
+
}), D = io({
|
|
2674
2674
|
filters: l,
|
|
2675
2675
|
filterValues: b,
|
|
2676
2676
|
dashboard: e,
|
|
@@ -2679,7 +2679,7 @@ function Vs({
|
|
|
2679
2679
|
});
|
|
2680
2680
|
return {
|
|
2681
2681
|
selectedSheetId: u,
|
|
2682
|
-
filterValues:
|
|
2682
|
+
filterValues: D,
|
|
2683
2683
|
controlValues: m
|
|
2684
2684
|
};
|
|
2685
2685
|
}
|
|
@@ -2701,13 +2701,13 @@ function Fs({
|
|
|
2701
2701
|
sheetId: m,
|
|
2702
2702
|
documentSection: I,
|
|
2703
2703
|
editor: b,
|
|
2704
|
-
withRequest:
|
|
2704
|
+
withRequest: D
|
|
2705
2705
|
}) {
|
|
2706
2706
|
var v;
|
|
2707
2707
|
if (!e)
|
|
2708
2708
|
return null;
|
|
2709
|
-
p && !
|
|
2710
|
-
const g =
|
|
2709
|
+
p && !X(e, t) && m && (e = { ...e, sheets: (v = e.sheets) == null ? void 0 : v.map((C) => C.id === m ? { ...C, cards: [...C.cards ?? [], p] } : C) });
|
|
2710
|
+
const g = X(e, t);
|
|
2711
2711
|
if (!g)
|
|
2712
2712
|
return null;
|
|
2713
2713
|
const h = Eo({
|
|
@@ -2732,7 +2732,7 @@ function Fs({
|
|
|
2732
2732
|
},
|
|
2733
2733
|
semanticExecutionPayload: i,
|
|
2734
2734
|
matrixCatalog: f,
|
|
2735
|
-
withRequest:
|
|
2735
|
+
withRequest: D
|
|
2736
2736
|
});
|
|
2737
2737
|
return h.status === "blocked" ? h : {
|
|
2738
2738
|
status: "ready",
|
|
@@ -2744,7 +2744,7 @@ function Fs({
|
|
|
2744
2744
|
};
|
|
2745
2745
|
}
|
|
2746
2746
|
function qo(e, t) {
|
|
2747
|
-
const n =
|
|
2747
|
+
const n = zt({
|
|
2748
2748
|
inputs: e.inputs,
|
|
2749
2749
|
dashboardFilters: [...Be(e)]
|
|
2750
2750
|
}), o = ht(e, t);
|
|
@@ -2808,7 +2808,7 @@ function Ms({
|
|
|
2808
2808
|
runtimeScope: "perSheet",
|
|
2809
2809
|
presentation: { placement: "toolbar" },
|
|
2810
2810
|
control: i,
|
|
2811
|
-
exports:
|
|
2811
|
+
exports: ze(i)
|
|
2812
2812
|
};
|
|
2813
2813
|
}
|
|
2814
2814
|
function Ts({
|
|
@@ -2850,14 +2850,14 @@ function Ts({
|
|
|
2850
2850
|
variableName: i,
|
|
2851
2851
|
requiredAtExecution: r.requiredAtExecution,
|
|
2852
2852
|
control: r,
|
|
2853
|
-
exports:
|
|
2853
|
+
exports: ze(r)
|
|
2854
2854
|
};
|
|
2855
2855
|
}
|
|
2856
2856
|
function Os(e, t, n) {
|
|
2857
2857
|
return !t || !n || t === n ? e : {
|
|
2858
2858
|
...e,
|
|
2859
2859
|
sections: e.sections.map(
|
|
2860
|
-
(o) =>
|
|
2860
|
+
(o) => Dn(
|
|
2861
2861
|
o,
|
|
2862
2862
|
(s) => No(s, t, n)
|
|
2863
2863
|
)
|
|
@@ -2956,9 +2956,9 @@ export {
|
|
|
2956
2956
|
On as B,
|
|
2957
2957
|
bo as C,
|
|
2958
2958
|
vs as D,
|
|
2959
|
-
|
|
2959
|
+
ys as E,
|
|
2960
2960
|
wo as F,
|
|
2961
|
-
|
|
2961
|
+
Ds as G,
|
|
2962
2962
|
gs as H,
|
|
2963
2963
|
Eo as I,
|
|
2964
2964
|
kn as J,
|
|
@@ -2985,26 +2985,26 @@ export {
|
|
|
2985
2985
|
Is as b,
|
|
2986
2986
|
as as c,
|
|
2987
2987
|
Fs as d,
|
|
2988
|
-
|
|
2988
|
+
Xn as e,
|
|
2989
2989
|
Ms as f,
|
|
2990
2990
|
qo as g,
|
|
2991
2991
|
ls as h,
|
|
2992
2992
|
Ss as i,
|
|
2993
2993
|
Po as j,
|
|
2994
2994
|
ds as k,
|
|
2995
|
-
|
|
2995
|
+
Jn as l,
|
|
2996
2996
|
us as m,
|
|
2997
2997
|
Ue as n,
|
|
2998
2998
|
cs as o,
|
|
2999
2999
|
os as p,
|
|
3000
3000
|
ns as q,
|
|
3001
3001
|
ho as r,
|
|
3002
|
-
|
|
3002
|
+
jn as s,
|
|
3003
3003
|
An as t,
|
|
3004
3004
|
ss as u,
|
|
3005
3005
|
Tn as v,
|
|
3006
3006
|
Le as w,
|
|
3007
3007
|
is as x,
|
|
3008
|
-
|
|
3008
|
+
Do as y,
|
|
3009
3009
|
Vs as z
|
|
3010
3010
|
};
|