react-semaphor 0.1.541 → 0.1.543
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 +75 -75
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +3 -3
- package/dist/briefings/index.js +51 -49
- package/dist/chunks/apply-dashboard-operations-CG9S7MGt.js +2260 -0
- package/dist/chunks/{assistant-chat-D1fDZD6O.js → assistant-chat-BFMRUYoB.js} +12 -12
- package/dist/chunks/bookmark-state-CXw7lZ50.js +118 -0
- package/dist/chunks/{calendar-day-equality-Bpl15IBo.js → calendar-day-equality-BmJAWduY.js} +180 -207
- package/dist/chunks/comparison-window-caption-Bv18samq.js +1618 -0
- package/dist/chunks/custom-visual-inputs-DUtpYZOk.js +323 -0
- package/dist/chunks/{dashboard-B6IrON_Q.js → dashboard-B9mKTJoy.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DwjFpewq.js → dashboard-briefing-launcher-Bdmry_oG.js} +18 -18
- package/dist/chunks/{dashboard-controls-C_BI28ME.js → dashboard-controls-UGpjOM2k.js} +69 -70
- package/dist/chunks/{dashboard-filter-value-compatibility-D95O4nd7.js → dashboard-filter-value-compatibility-CwQ_iSNb.js} +2 -2
- package/dist/chunks/{dashboard-json-DDY15Trn.js → dashboard-json-DG8dz0eX.js} +4 -4
- package/dist/chunks/{document-dashboard-inputs-DP_Op5mu.js → document-dashboard-inputs-OwqCbrVp.js} +2382 -4975
- package/dist/chunks/document-sheet-utils-BTb3VZxV.js +3619 -0
- package/dist/chunks/{edit-dashboard-visual-CH2dzWW-.js → edit-dashboard-visual-CDpA4y5e.js} +728 -728
- package/dist/chunks/{filter-value-text-BhWugPWE.js → filter-value-text-CYsVYPuD.js} +18 -19
- package/dist/chunks/{index-DaQlghLY.js → index-l5LclZvs.js} +824 -1351
- package/dist/chunks/{matrix-analytical-definition-bcprSe4u.js → matrix-analytical-definition-C7Gb0e12.js} +1 -1
- package/dist/chunks/{matrix-card-CJn1hB5V.js → matrix-card-DjwWcCo8.js} +2 -2
- package/dist/chunks/{matrix-formatter-DQ8avoIQ.js → matrix-formatter-BnsTX90d.js} +430 -417
- package/dist/chunks/{matrix-member-presentation-BNPSDKBG.js → matrix-member-presentation-CQGdVks6.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-B8PBF1Gd.js → matrix-operation-contract-8OIO4gob.js} +65 -65
- package/dist/chunks/metric-comparison-DEwi9uc2.js +498 -0
- package/dist/chunks/numeric-presentation-F_-H6VAw.js +5227 -0
- package/dist/chunks/{pivot-header-presentation-MkcKnjn3.js → pivot-header-presentation-DHcx1XGQ.js} +1 -1
- package/dist/chunks/{pivot-result-identity-D6hhcRXi.js → pivot-result-identity-DJhXXcns.js} +1 -1
- package/dist/chunks/pivot-result-lifecycle-DupbRk-R.js +1155 -0
- package/dist/chunks/raw-temporal-presentation-D-azM_98.js +585 -0
- package/dist/chunks/{report-preferences-dialog-DpNkFfQO.js → report-preferences-dialog-CPwRwEJx.js} +75 -75
- package/dist/chunks/{report-runtime-context-B984Nq1E.js → report-runtime-context-Dq8XyODK.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-CJ2WpoMF.js → saved-dashboard-context-BKvMfRfC.js} +233 -206
- package/dist/chunks/{selection-reducer-vKIb_jS6.js → selection-reducer-Dj_8xD69.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-KT598QJq.js → semaphor-ready-indicator-CN2AHm2x.js} +37489 -39476
- package/dist/chunks/{shelf-drop-preview-context-BxV3Fl8h.js → shelf-drop-preview-context-BGl_rxcW.js} +6 -6
- package/dist/chunks/sort-target-MT1WK1vX.js +29 -0
- package/dist/chunks/{source-entity-resolution-CVA1a85c.js → source-entity-resolution-BYn9giz3.js} +1 -1
- package/dist/chunks/{switch-DWEWiv1J.js → switch-C3jLxlG0.js} +2 -2
- package/dist/chunks/table-export-sheet-BDRXLLdq.js +949 -0
- package/dist/chunks/table-settings-CLZocegs.js +501 -0
- package/dist/chunks/temporal-bucket-D7NBrrtL.js +2071 -0
- package/dist/chunks/{token-types-bxUxXDX2.js → token-types-DBbZVQsm.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-DdD12SMY.js → use-create-flow-overlay-state-BnclfB2k.js} +151 -151
- package/dist/chunks/{validators-Ej1DdCXa.js → validators-DMHTpf7a.js} +73 -73
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +462 -457
- package/dist/data-app-sdk/index.js +5 -5
- package/dist/data-app-sdk-adapters/index.js +2 -2
- package/dist/data-app-sdk-validation/index.js +9 -9
- package/dist/format-utils/index.js +346 -241
- package/dist/index.js +174 -175
- 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 +17 -1
- package/dist/types/briefings/index.d.ts +5 -3
- package/dist/types/index.js +48 -48
- package/dist/types/lib/api/exports-api.d.ts +11 -65
- package/dist/types/lib/dashboard-inputs/control-contract-overrides.d.ts +17 -0
- package/dist/types/lib/dashboard-viewer/export-table-view.d.ts +2 -0
- package/dist/types/lib/hooks/use-dashboard.d.ts +3 -6
- package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +8 -2
- package/dist/types/lib/matrix-table/matrix-delivery.d.ts +8 -6
- package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +50 -0
- package/dist/types/lib/types/explorer-types.d.ts +6 -0
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +3 -3
- package/dist/types/shared/assistant-context/index.d.ts +1 -1
- package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +23 -6
- package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +173 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +4 -3
- package/dist/types/shared/format-utils/exporters/export-cells.d.ts +90 -0
- package/dist/types/shared/format-utils/exporters/export-file-format.d.ts +44 -0
- package/dist/types/shared/format-utils/exporters/index.d.ts +6 -0
- package/dist/types/shared/format-utils/exporters/xlsx-file.d.ts +90 -0
- package/dist/types/shared/format-utils/formatters/date-formatter.d.ts +8 -12
- package/dist/types/shared/format-utils/formatters/index.d.ts +1 -1
- package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +2 -0
- package/dist/types/shared/format-utils/index.d.ts +2 -0
- package/dist/types/shared/format-utils/matrix-continuation.d.ts +55 -9
- package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +21 -1
- package/dist/types/shared/format-utils/matrix-export-xlsx.d.ts +27 -0
- package/dist/types/shared/format-utils/presentation-execution.d.ts +27 -2
- package/dist/types/shared/format-utils/raw-temporal.d.ts +8 -0
- package/dist/types/shared/format-utils/table-export/index.d.ts +8 -0
- package/dist/types/shared/format-utils/table-export/prepare-table-export.d.ts +50 -0
- package/dist/types/shared/format-utils/table-export/table-export-formatting.d.ts +47 -0
- package/dist/types/shared/format-utils/table-export/table-export-raw-temporal.d.ts +40 -0
- package/dist/types/shared/format-utils/table-export/table-export-result.d.ts +31 -0
- package/dist/types/shared/format-utils/table-export/table-export-sheet.d.ts +38 -0
- package/dist/types/shared/format-utils/temporal-bucket.d.ts +9 -0
- package/package.json +2 -1
- package/dist/chunks/aggregate-table-row-presentation-B_vQjYR3.js +0 -996
- package/dist/chunks/apply-dashboard-operations-C-iahGka.js +0 -402
- package/dist/chunks/bookmark-state-k7y5SNGf.js +0 -331
- package/dist/chunks/calculated-field-identity-DcBS2NPP.js +0 -2161
- package/dist/chunks/canonical-result-keys-CEQefvdO.js +0 -33
- package/dist/chunks/common-types-CUf03Htv.js +0 -288
- package/dist/chunks/csv-utils-GUfKyT1J.js +0 -56
- package/dist/chunks/custom-visual-inputs-BrUOIwln.js +0 -3288
- package/dist/chunks/document-sheet-utils-C1eEldxs.js +0 -1076
- package/dist/chunks/matrix-definition-DQDI2okF.js +0 -206
- package/dist/chunks/metric-comparison-CojWeLqx.js +0 -392
- package/dist/chunks/pivot-result-lifecycle-8qCDmpKc.js +0 -804
- package/dist/chunks/raw-temporal-D61lr48Y.js +0 -1464
- package/dist/chunks/temporal-bucket-D8JF7zKz.js +0 -575
- package/dist/chunks/temporal-bucket-contract-DaOajRC7.js +0 -108
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
var we = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var z = (e, t,
|
|
4
|
-
import { D as B, a as
|
|
5
|
-
import { N as
|
|
6
|
-
import { c as ke,
|
|
7
|
-
import { A as
|
|
8
|
-
import { q as Me,
|
|
9
|
-
import "../chunks/matrix-operation-contract-
|
|
2
|
+
var xe = (e, t, a) => t in e ? we(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
|
+
var z = (e, t, a) => xe(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
|
+
import { D as B, a as Fe, r as H } from "../chunks/apply-dashboard-operations-CG9S7MGt.js";
|
|
5
|
+
import { N as ca, b as la, u as ua, e as fa, j as pa, l as ma, k as ha, f as ga, i as ba, c as Ia, t as Ca, m as ya, o as _a, q as Da, g as Sa, p as va, h as Ta, n as wa, d as xa, s as Fa } from "../chunks/apply-dashboard-operations-CG9S7MGt.js";
|
|
6
|
+
import { c as ke, a as Ae, v as Oe, f as Re, d as Ee, p as Ne } from "../chunks/numeric-presentation-F_-H6VAw.js";
|
|
7
|
+
import { A as Aa, Q as Oa, R as Ra, T as Ea, N as Na, O as Ma, P as Pa, J as $a, K as La, M as Ba, L as qa, U as Va, a4 as za, S as ja, V as Ua, b as Ga, a3 as Ha, a2 as Wa, o as Ka, x as Qa, q as Ya, u as Xa, w as Ja, a7 as Za, I as er, H as tr, C as ar, a8 as rr, h as nr, j as ir, $ as or, i as sr, a0 as dr, a1 as cr, B as lr, D as ur, z as fr, a5 as pr, a6 as mr, e as hr, a9 as gr, F as br, l as Ir, X as Cr, m as yr, Z as _r, _ as Dr, Y as Sr, k as vr, E as Tr, y as wr, s as xr, t as Fr, G as kr, W as Ar } from "../chunks/numeric-presentation-F_-H6VAw.js";
|
|
8
|
+
import { q as Me, A as X, au as Pe, B as fe, l as $e, ag as Le } from "../chunks/validators-DMHTpf7a.js";
|
|
9
|
+
import "../chunks/matrix-operation-contract-8OIO4gob.js";
|
|
10
10
|
import "../chunks/analytics-base-schemas-BFAoRlkU.js";
|
|
11
11
|
import "zod";
|
|
12
|
-
import { m as j } from "../chunks/document-sheet-utils-
|
|
13
|
-
import {
|
|
12
|
+
import { m as j } from "../chunks/document-sheet-utils-BTb3VZxV.js";
|
|
13
|
+
import { p as Rr, D as Er, l as Nr, v as Mr, b as Pr, k as $r, g as Lr, d as Br, f as qr, n as Vr, u as zr, j as jr, r as Ur, h as Gr, q as Hr, s as Wr, i as Kr, o as Qr, t as Yr, w as Xr } from "../chunks/document-sheet-utils-BTb3VZxV.js";
|
|
14
14
|
import { n as Be } from "../chunks/operators-B3zZoskU.js";
|
|
15
|
-
import { a as
|
|
16
|
-
import { D as
|
|
17
|
-
import { D as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { p as ze } from "../chunks/report-runtime-context-
|
|
21
|
-
import { m as
|
|
15
|
+
import { a as Zr, b as en, r as tn } from "../chunks/raw-temporal-presentation-D-azM_98.js";
|
|
16
|
+
import { D as rn, w as nn, z as on, x as sn, v as dn, y as cn } from "../chunks/table-settings-CLZocegs.js";
|
|
17
|
+
import { D as un, d as fn, i as pn, v as mn } from "../chunks/dashboard-filter-value-compatibility-CwQ_iSNb.js";
|
|
18
|
+
import { $ as gn, _ as bn, Y as In, Z as Cn, a0 as yn, a1 as _n } from "../chunks/pivot-result-lifecycle-DupbRk-R.js";
|
|
19
|
+
import { e as qe, w as Ve } from "../chunks/metric-comparison-DEwi9uc2.js";
|
|
20
|
+
import { p as ze } from "../chunks/report-runtime-context-Dq8XyODK.js";
|
|
21
|
+
import { m as Sn, a as vn, r as Tn } from "../chunks/matrix-card-DjwWcCo8.js";
|
|
22
22
|
function S(e) {
|
|
23
23
|
return e && typeof e == "object" ? e : null;
|
|
24
24
|
}
|
|
@@ -26,60 +26,60 @@ function T(e) {
|
|
|
26
26
|
return typeof e == "string" ? e : null;
|
|
27
27
|
}
|
|
28
28
|
function je(e) {
|
|
29
|
-
var t,
|
|
30
|
-
return !!(e && typeof e == "object") && (((t = S(e)) == null ? void 0 : t.kind) === "semantic" || ((
|
|
29
|
+
var t, a, r;
|
|
30
|
+
return !!(e && typeof e == "object") && (((t = S(e)) == null ? void 0 : t.kind) === "semantic" || ((a = S(e)) == null ? void 0 : a.kind) === "physical" || ((r = S(e)) == null ? void 0 : r.kind) === "sql");
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function R(e) {
|
|
33
33
|
return je(e) ? e.kind === "semantic" ? !!(e.domainId && e.datasetName) : e.kind === "physical" ? !!(e.connectionId && e.tableName) : !1 : !1;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Yt(e) {
|
|
36
36
|
return Me(e);
|
|
37
37
|
}
|
|
38
38
|
function pe(e, t) {
|
|
39
|
-
return
|
|
39
|
+
return X(e, t);
|
|
40
40
|
}
|
|
41
41
|
function Ue(e, t) {
|
|
42
42
|
return Pe(e, t);
|
|
43
43
|
}
|
|
44
44
|
function q(e) {
|
|
45
45
|
const t = [];
|
|
46
|
-
for (const
|
|
47
|
-
const
|
|
48
|
-
(n) => pe(n,
|
|
46
|
+
for (const a of e) {
|
|
47
|
+
const r = t.findIndex(
|
|
48
|
+
(n) => pe(n, a)
|
|
49
49
|
);
|
|
50
|
-
|
|
51
|
-
t[
|
|
52
|
-
|
|
50
|
+
r === -1 ? t.push(a) : t[r] = Ue(
|
|
51
|
+
t[r],
|
|
52
|
+
a
|
|
53
53
|
);
|
|
54
54
|
}
|
|
55
55
|
return t;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Xt(e) {
|
|
58
58
|
return q(e)[0];
|
|
59
59
|
}
|
|
60
60
|
function W(e, t) {
|
|
61
|
-
return e.kind !== "semantic" || e.connectionId || (t == null ? void 0 : t.kind) !== "semantic" || !
|
|
61
|
+
return e.kind !== "semantic" || e.connectionId || (t == null ? void 0 : t.kind) !== "semantic" || !X(e, t) || !t.connectionId ? e : { ...e, connectionId: t.connectionId };
|
|
62
62
|
}
|
|
63
63
|
function K(e) {
|
|
64
|
-
return
|
|
64
|
+
return R(e) ? e : void 0;
|
|
65
65
|
}
|
|
66
66
|
function le(e, t) {
|
|
67
67
|
if (!(e.kind !== "semantic" || e.connectionId))
|
|
68
68
|
return t.find(
|
|
69
|
-
(
|
|
69
|
+
(a) => (a == null ? void 0 : a.kind) === "semantic" && X(e, a) && !!a.connectionId
|
|
70
70
|
);
|
|
71
71
|
}
|
|
72
72
|
function v(e, t) {
|
|
73
|
-
const
|
|
74
|
-
return
|
|
73
|
+
const a = K(e == null ? void 0 : e.source);
|
|
74
|
+
return a ? W(a, t) : void 0;
|
|
75
75
|
}
|
|
76
76
|
function Ge({
|
|
77
77
|
explicitSource: e,
|
|
78
78
|
field: t,
|
|
79
|
-
defaultSource:
|
|
80
|
-
fallbackSources:
|
|
79
|
+
defaultSource: a,
|
|
80
|
+
fallbackSources: r
|
|
81
81
|
}) {
|
|
82
|
-
const n = [
|
|
82
|
+
const n = [a, ...r || []], i = K(e), o = i ? W(
|
|
83
83
|
i,
|
|
84
84
|
le(i, n)
|
|
85
85
|
) : void 0;
|
|
@@ -87,28 +87,28 @@ function Ge({
|
|
|
87
87
|
return o;
|
|
88
88
|
if (e !== void 0)
|
|
89
89
|
return;
|
|
90
|
-
const s = v(t,
|
|
90
|
+
const s = v(t, a), l = s ? W(
|
|
91
91
|
s,
|
|
92
92
|
le(s, n)
|
|
93
93
|
) : void 0;
|
|
94
94
|
if (l)
|
|
95
95
|
return l;
|
|
96
96
|
if ((t == null ? void 0 : t.source) === void 0)
|
|
97
|
-
return K(
|
|
97
|
+
return K(a);
|
|
98
98
|
}
|
|
99
99
|
function Jt(e, t) {
|
|
100
100
|
if (!(e != null && e.name) || !(t != null && t.name) || e.name !== t.name)
|
|
101
101
|
return !1;
|
|
102
|
-
const
|
|
103
|
-
return !
|
|
102
|
+
const a = v(e), r = v(t);
|
|
103
|
+
return !a || !r ? !0 : pe(a, r);
|
|
104
104
|
}
|
|
105
105
|
function k(e) {
|
|
106
106
|
var t;
|
|
107
107
|
return T((t = S(e)) == null ? void 0 : t.kind);
|
|
108
108
|
}
|
|
109
109
|
function me(e) {
|
|
110
|
-
var t,
|
|
111
|
-
return k(e) !== "semantic" ? null : ((
|
|
110
|
+
var t, a;
|
|
111
|
+
return k(e) !== "semantic" ? null : ((a = T((t = S(e)) == null ? void 0 : t.domainId)) == null ? void 0 : a.trim()) || null;
|
|
112
112
|
}
|
|
113
113
|
function He(e) {
|
|
114
114
|
var t;
|
|
@@ -126,11 +126,11 @@ function Qe(e) {
|
|
|
126
126
|
var t;
|
|
127
127
|
return k(e) !== "physical" ? null : T((t = S(e)) == null ? void 0 : t.tableName);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Ye(e) {
|
|
130
130
|
var t;
|
|
131
131
|
return k(e) !== "physical" ? "" : T((t = S(e)) == null ? void 0 : t.databaseName) || "";
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Xe(e) {
|
|
134
134
|
var t;
|
|
135
135
|
return k(e) !== "physical" ? "" : T((t = S(e)) == null ? void 0 : t.schemaName) || "";
|
|
136
136
|
}
|
|
@@ -146,47 +146,47 @@ function Ze({
|
|
|
146
146
|
return { ok: !1, issue: "invalid_dataset_count" };
|
|
147
147
|
if (e.length <= 1)
|
|
148
148
|
return { ok: !0 };
|
|
149
|
-
const
|
|
150
|
-
return
|
|
149
|
+
const a = e.map(me), r = new Set(a.filter(Boolean));
|
|
150
|
+
return a.some((n) => !n) || r.size !== 1 ? { ok: !1, issue: "invalid_multi_dataset_scope" } : { ok: !0 };
|
|
151
151
|
}
|
|
152
152
|
function J(e, t) {
|
|
153
153
|
if (!t)
|
|
154
154
|
return !1;
|
|
155
155
|
if (t.kind === "semantic") {
|
|
156
|
-
const
|
|
157
|
-
return me(e) === t.domainId ?
|
|
156
|
+
const a = We(e);
|
|
157
|
+
return me(e) === t.domainId ? a && t.datasetId ? a === t.datasetId : He(e) === t.datasetName : !1;
|
|
158
158
|
}
|
|
159
|
-
return t.kind === "physical" ? Ke(e) === t.connectionId && Qe(e) === t.tableName &&
|
|
159
|
+
return t.kind === "physical" ? Ke(e) === t.connectionId && Qe(e) === t.tableName && Ye(e) === (t.databaseName || "") && Xe(e) === (t.schemaName || "") : !1;
|
|
160
160
|
}
|
|
161
161
|
function Zt(e, t) {
|
|
162
162
|
return e.find(
|
|
163
|
-
(
|
|
163
|
+
(a) => J(a, t)
|
|
164
164
|
);
|
|
165
165
|
}
|
|
166
|
-
function f(e, t,
|
|
167
|
-
return
|
|
166
|
+
function f(e, t, a) {
|
|
167
|
+
return a ? { code: e, message: t, cardId: a } : { code: e, message: t };
|
|
168
168
|
}
|
|
169
169
|
function M(e) {
|
|
170
170
|
const t = /* @__PURE__ */ new Set();
|
|
171
|
-
for (const
|
|
172
|
-
if (t.has(
|
|
173
|
-
return
|
|
174
|
-
t.add(
|
|
171
|
+
for (const a of e) {
|
|
172
|
+
if (t.has(a))
|
|
173
|
+
return a;
|
|
174
|
+
t.add(a);
|
|
175
175
|
}
|
|
176
176
|
return null;
|
|
177
177
|
}
|
|
178
178
|
function he({
|
|
179
179
|
card: e,
|
|
180
180
|
datasets: t,
|
|
181
|
-
errors:
|
|
181
|
+
errors: a
|
|
182
182
|
}) {
|
|
183
183
|
if (e.type === "text")
|
|
184
184
|
return;
|
|
185
|
-
const
|
|
186
|
-
if (!
|
|
185
|
+
const r = Je(e);
|
|
186
|
+
if (!r) {
|
|
187
187
|
if (t.length <= 1)
|
|
188
188
|
return;
|
|
189
|
-
|
|
189
|
+
a.push(
|
|
190
190
|
f(
|
|
191
191
|
"missing_card_analytics_source",
|
|
192
192
|
"Multi-dataset dashboard cards must include analytics intent with a source so the materializer can choose the correct dataset.",
|
|
@@ -195,7 +195,7 @@ function he({
|
|
|
195
195
|
);
|
|
196
196
|
return;
|
|
197
197
|
}
|
|
198
|
-
t.some((n) => J(n,
|
|
198
|
+
t.some((n) => J(n, r)) || a.push(
|
|
199
199
|
f(
|
|
200
200
|
"invalid_card_analytics_source",
|
|
201
201
|
"Dashboard cards with an explicit analytics source must use one of the selected datasets.",
|
|
@@ -217,7 +217,7 @@ function ue(e) {
|
|
|
217
217
|
) : [];
|
|
218
218
|
}
|
|
219
219
|
function et(e) {
|
|
220
|
-
var
|
|
220
|
+
var a, r;
|
|
221
221
|
if (!e)
|
|
222
222
|
return [];
|
|
223
223
|
const t = [e.source];
|
|
@@ -233,10 +233,10 @@ function et(e) {
|
|
|
233
233
|
...P([
|
|
234
234
|
...U(e.fields),
|
|
235
235
|
e.dateField,
|
|
236
|
-
(
|
|
236
|
+
(a = e.orderBy) == null ? void 0 : a.field,
|
|
237
237
|
...ue(e.filters).map((n) => n.field)
|
|
238
238
|
])
|
|
239
|
-
) : e.kind === "inputOptions" ? (((
|
|
239
|
+
) : e.kind === "inputOptions" ? (((r = e.population) == null ? void 0 : r.kind) === "related_population" && t.push(e.population.baseSource), t.push(
|
|
240
240
|
...P([
|
|
241
241
|
e.labelField,
|
|
242
242
|
e.valueField,
|
|
@@ -248,14 +248,14 @@ function et(e) {
|
|
|
248
248
|
function ge({
|
|
249
249
|
card: e,
|
|
250
250
|
datasets: t,
|
|
251
|
-
errors:
|
|
251
|
+
errors: a
|
|
252
252
|
}) {
|
|
253
253
|
if (e.type !== "text") {
|
|
254
|
-
for (const
|
|
255
|
-
if (
|
|
256
|
-
(n) => J(n,
|
|
254
|
+
for (const r of et(e.analyticsIntent))
|
|
255
|
+
if (r && !t.some(
|
|
256
|
+
(n) => J(n, r)
|
|
257
257
|
)) {
|
|
258
|
-
|
|
258
|
+
a.push(
|
|
259
259
|
f(
|
|
260
260
|
"invalid_card_query_source",
|
|
261
261
|
"Dashboard card query field references must use one of the selected datasets.",
|
|
@@ -272,13 +272,13 @@ function be({
|
|
|
272
272
|
}) {
|
|
273
273
|
if (e.type === "text" || !e.analyticsIntent)
|
|
274
274
|
return;
|
|
275
|
-
const
|
|
276
|
-
if (!
|
|
277
|
-
for (const
|
|
275
|
+
const a = fe(e.analyticsIntent);
|
|
276
|
+
if (!a.ok)
|
|
277
|
+
for (const r of a.errors)
|
|
278
278
|
t.push(
|
|
279
279
|
f(
|
|
280
|
-
|
|
281
|
-
|
|
280
|
+
r.code,
|
|
281
|
+
r.path ? `${r.path}: ${r.message}` : r.message,
|
|
282
282
|
e.id
|
|
283
283
|
)
|
|
284
284
|
);
|
|
@@ -286,14 +286,14 @@ function be({
|
|
|
286
286
|
function Ie({
|
|
287
287
|
datasets: e,
|
|
288
288
|
errors: t,
|
|
289
|
-
requireAtLeastOne:
|
|
289
|
+
requireAtLeastOne: a
|
|
290
290
|
}) {
|
|
291
|
-
const
|
|
291
|
+
const r = Ze({
|
|
292
292
|
datasets: e,
|
|
293
|
-
requireAtLeastOne:
|
|
293
|
+
requireAtLeastOne: a
|
|
294
294
|
});
|
|
295
|
-
if (!
|
|
296
|
-
if (
|
|
295
|
+
if (!r.ok) {
|
|
296
|
+
if (r.issue === "invalid_dataset_count") {
|
|
297
297
|
t.push(
|
|
298
298
|
f(
|
|
299
299
|
"invalid_dataset_count",
|
|
@@ -314,8 +314,8 @@ function Ce({
|
|
|
314
314
|
input: e,
|
|
315
315
|
errors: t
|
|
316
316
|
}) {
|
|
317
|
-
var
|
|
318
|
-
(
|
|
317
|
+
var a;
|
|
318
|
+
(a = e.filter.sql) != null && a.trim() && t.push(
|
|
319
319
|
f(
|
|
320
320
|
"generated_filter_sql_out_of_scope",
|
|
321
321
|
`Generated dashboard filter "${e.label}" must use grounded filter configuration; custom SQL is outside the dashboard-authoring contract.`
|
|
@@ -360,9 +360,9 @@ function tt(e) {
|
|
|
360
360
|
],
|
|
361
361
|
warnings: []
|
|
362
362
|
};
|
|
363
|
-
const
|
|
364
|
-
|
|
365
|
-
const n = Array.isArray(
|
|
363
|
+
const a = e, r = [...a.warnings || []];
|
|
364
|
+
a.version !== 1 && t.push(f("invalid_version", "Dashboard plan version must be 1.")), (m = a.title) != null && m.trim() || t.push(f("missing_title", "Dashboard plan needs a title."));
|
|
365
|
+
const n = Array.isArray(a.datasets) ? a.datasets : [], i = Array.isArray(a.sheets) ? a.sheets : [];
|
|
366
366
|
Ie({ datasets: n, errors: t, requireAtLeastOne: !0 }), i.length !== 1 && t.push(
|
|
367
367
|
f(
|
|
368
368
|
"invalid_sheet_count",
|
|
@@ -398,14 +398,14 @@ function tt(e) {
|
|
|
398
398
|
"Whole-dashboard authoring supports built-in visual types only.",
|
|
399
399
|
u.id
|
|
400
400
|
)
|
|
401
|
-
), u.type !== "text" && !u.analyticsIntent &&
|
|
401
|
+
), u.type !== "text" && !u.analyticsIntent && r.push(
|
|
402
402
|
f(
|
|
403
403
|
"missing_analytics_intent",
|
|
404
404
|
"Non-text card has no analytics intent and may be skipped by the app layer.",
|
|
405
405
|
u.id
|
|
406
406
|
)
|
|
407
407
|
), he({ card: u, datasets: n, errors: t }), be({ card: u, errors: t }), ge({ card: u, datasets: n, errors: t }), Q({ card: u, errors: t });
|
|
408
|
-
const p = Array.isArray(
|
|
408
|
+
const p = Array.isArray(a.filterInputs) ? a.filterInputs : [], h = p.map((u) => u.id), y = M(h);
|
|
409
409
|
y && t.push(
|
|
410
410
|
f(
|
|
411
411
|
"duplicate_input_id",
|
|
@@ -421,7 +421,7 @@ function tt(e) {
|
|
|
421
421
|
);
|
|
422
422
|
for (const u of p)
|
|
423
423
|
Ce({ input: u, errors: t });
|
|
424
|
-
const c = Array.isArray(
|
|
424
|
+
const c = Array.isArray(a.calculatedFields) ? a.calculatedFields : [];
|
|
425
425
|
for (const u of c)
|
|
426
426
|
u.scope === "domain" && u.reuseOnly !== !0 && t.push(
|
|
427
427
|
f(
|
|
@@ -429,9 +429,9 @@ function tt(e) {
|
|
|
429
429
|
`Creating domain calculated field "${u.name}" is outside MVP.`
|
|
430
430
|
)
|
|
431
431
|
);
|
|
432
|
-
return { ok: t.length === 0, errors: t, warnings:
|
|
432
|
+
return { ok: t.length === 0, errors: t, warnings: r };
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function at(e) {
|
|
435
435
|
var o;
|
|
436
436
|
const t = [];
|
|
437
437
|
if (!e || typeof e != "object")
|
|
@@ -445,17 +445,17 @@ function rt(e) {
|
|
|
445
445
|
],
|
|
446
446
|
warnings: []
|
|
447
447
|
};
|
|
448
|
-
const
|
|
449
|
-
|
|
448
|
+
const a = e, r = [...a.warnings || []];
|
|
449
|
+
a.version !== 1 && t.push(
|
|
450
450
|
f("invalid_version", "Dashboard change plan version must be 1.")
|
|
451
|
-
), (o =
|
|
451
|
+
), (o = a.dashboardId) != null && o.trim() || t.push(
|
|
452
452
|
f("missing_dashboard_id", "Dashboard change plan needs a dashboard id.")
|
|
453
453
|
);
|
|
454
|
-
const n = Array.isArray(
|
|
454
|
+
const n = Array.isArray(a.datasets) ? a.datasets : [], i = Array.isArray(a.operations) ? a.operations : [];
|
|
455
455
|
Ie({ datasets: n, errors: t, requireAtLeastOne: !1 });
|
|
456
456
|
for (const s of i) {
|
|
457
457
|
if (s.kind === "unsupported") {
|
|
458
|
-
|
|
458
|
+
r.push(
|
|
459
459
|
f("unsupported_operation", s.reason || s.requestedAction)
|
|
460
460
|
);
|
|
461
461
|
continue;
|
|
@@ -505,9 +505,9 @@ function rt(e) {
|
|
|
505
505
|
)
|
|
506
506
|
);
|
|
507
507
|
}
|
|
508
|
-
return { ok: t.length === 0, errors: t, warnings:
|
|
508
|
+
return { ok: t.length === 0, errors: t, warnings: r };
|
|
509
509
|
}
|
|
510
|
-
const
|
|
510
|
+
const rt = {
|
|
511
511
|
lg: 48,
|
|
512
512
|
md: 36,
|
|
513
513
|
sm: 24,
|
|
@@ -515,96 +515,96 @@ const at = {
|
|
|
515
515
|
xxs: 6
|
|
516
516
|
};
|
|
517
517
|
function nt(e, t) {
|
|
518
|
-
let
|
|
518
|
+
let a = 0, r = 0, n = 0;
|
|
519
519
|
return e.map((i) => {
|
|
520
520
|
const o = Math.min(i.w, t);
|
|
521
|
-
|
|
521
|
+
a > 0 && a + o > t && (a = 0, r += n, n = 0);
|
|
522
522
|
const s = {
|
|
523
523
|
i: i.frameId,
|
|
524
|
-
x:
|
|
525
|
-
y:
|
|
524
|
+
x: a,
|
|
525
|
+
y: r,
|
|
526
526
|
w: o,
|
|
527
527
|
h: i.h,
|
|
528
528
|
minW: Math.min(i.minW, t),
|
|
529
529
|
minH: i.minH,
|
|
530
530
|
static: !1
|
|
531
531
|
};
|
|
532
|
-
return
|
|
532
|
+
return a += o, n = Math.max(n, i.h), s;
|
|
533
533
|
});
|
|
534
534
|
}
|
|
535
535
|
function it(e) {
|
|
536
|
-
const t = [...e].sort((l, d) => l.priority - d.priority),
|
|
537
|
-
return { kpis:
|
|
536
|
+
const t = [...e].sort((l, d) => l.priority - d.priority), a = t.filter((l) => l.role === "kpi"), r = t.filter((l) => l.role === "chart"), n = t.filter((l) => l.role === "table"), i = t.filter((l) => l.role === "text"), o = i.slice(0, 1), s = i.slice(o.length);
|
|
537
|
+
return { kpis: a, introText: o, charts: r, tables: n, supportingText: s };
|
|
538
538
|
}
|
|
539
|
-
function ot(e, t,
|
|
540
|
-
return t === "xxs" || t === "xs" ?
|
|
539
|
+
function ot(e, t, a) {
|
|
540
|
+
return t === "xxs" || t === "xs" ? a : t === "sm" ? Math.min(12, a) : t === "md" ? e <= 1 || e === 2 ? 18 : 12 : e <= 1 || e === 2 ? 24 : e === 3 ? 16 : 12;
|
|
541
541
|
}
|
|
542
|
-
function st(e, t,
|
|
543
|
-
return
|
|
542
|
+
function st(e, t, a, r) {
|
|
543
|
+
return a === "xxs" || a === "xs" || a === "sm" || a === "md" || t === 1 || t % 2 === 1 && e === 0 ? r : r / 2;
|
|
544
544
|
}
|
|
545
545
|
function dt(e) {
|
|
546
|
-
const { item: t, band:
|
|
547
|
-
return
|
|
546
|
+
const { item: t, band: a, index: r, bandCount: n, breakpoint: i, columns: o } = e;
|
|
547
|
+
return a === "kpi" ? {
|
|
548
548
|
...t,
|
|
549
|
-
band:
|
|
549
|
+
band: a,
|
|
550
550
|
w: ot(n, i, o),
|
|
551
551
|
h: 15,
|
|
552
552
|
minW: Math.min(6, o),
|
|
553
553
|
minH: 12
|
|
554
|
-
} :
|
|
554
|
+
} : a === "table" ? {
|
|
555
555
|
...t,
|
|
556
|
-
band:
|
|
556
|
+
band: a,
|
|
557
557
|
w: o,
|
|
558
558
|
h: i === "xxs" || i === "xs" ? 34 : 38,
|
|
559
559
|
minW: Math.min(12, o),
|
|
560
560
|
minH: 18
|
|
561
|
-
} :
|
|
561
|
+
} : a === "introText" ? {
|
|
562
562
|
...t,
|
|
563
|
-
band:
|
|
563
|
+
band: a,
|
|
564
564
|
w: o,
|
|
565
565
|
h: i === "xxs" || i === "xs" ? 12 : 10,
|
|
566
566
|
minW: Math.min(12, o),
|
|
567
567
|
minH: 8
|
|
568
|
-
} :
|
|
568
|
+
} : a === "supportingText" ? {
|
|
569
569
|
...t,
|
|
570
|
-
band:
|
|
570
|
+
band: a,
|
|
571
571
|
w: i === "lg" ? o / 2 : o,
|
|
572
572
|
h: i === "xxs" || i === "xs" ? 12 : 10,
|
|
573
573
|
minW: Math.min(12, o),
|
|
574
574
|
minH: 8
|
|
575
575
|
} : {
|
|
576
576
|
...t,
|
|
577
|
-
band:
|
|
578
|
-
w: st(
|
|
577
|
+
band: a,
|
|
578
|
+
w: st(r, n, i, o),
|
|
579
579
|
h: i === "xxs" || i === "xs" ? 28 : 30,
|
|
580
580
|
minW: Math.min(12, o),
|
|
581
581
|
minH: 16
|
|
582
582
|
};
|
|
583
583
|
}
|
|
584
|
-
function A(e, t,
|
|
584
|
+
function A(e, t, a, r) {
|
|
585
585
|
return e.map(
|
|
586
586
|
(n, i) => dt({
|
|
587
587
|
item: n,
|
|
588
588
|
band: t,
|
|
589
589
|
index: i,
|
|
590
590
|
bandCount: e.length,
|
|
591
|
-
breakpoint:
|
|
592
|
-
columns:
|
|
591
|
+
breakpoint: a,
|
|
592
|
+
columns: r
|
|
593
593
|
})
|
|
594
594
|
);
|
|
595
595
|
}
|
|
596
596
|
function Z(e) {
|
|
597
597
|
const t = it(e);
|
|
598
598
|
return Object.fromEntries(
|
|
599
|
-
|
|
600
|
-
const
|
|
601
|
-
...A(t.introText, "introText",
|
|
602
|
-
...A(t.kpis, "kpi",
|
|
603
|
-
...A(t.charts, "chart",
|
|
604
|
-
...A(t.tables, "table",
|
|
605
|
-
...A(t.supportingText, "supportingText",
|
|
599
|
+
Fe.map((a) => {
|
|
600
|
+
const r = rt[a], n = [
|
|
601
|
+
...A(t.introText, "introText", a, r),
|
|
602
|
+
...A(t.kpis, "kpi", a, r),
|
|
603
|
+
...A(t.charts, "chart", a, r),
|
|
604
|
+
...A(t.tables, "table", a, r),
|
|
605
|
+
...A(t.supportingText, "supportingText", a, r)
|
|
606
606
|
];
|
|
607
|
-
return [
|
|
607
|
+
return [a, nt(n, r)];
|
|
608
608
|
})
|
|
609
609
|
);
|
|
610
610
|
}
|
|
@@ -631,7 +631,7 @@ function pt(e) {
|
|
|
631
631
|
function ee(e, t) {
|
|
632
632
|
if (t === void 0)
|
|
633
633
|
return;
|
|
634
|
-
const
|
|
634
|
+
const a = ct(e.dataType), r = e.operation || "in";
|
|
635
635
|
if (ut(t))
|
|
636
636
|
return j({
|
|
637
637
|
definition: e,
|
|
@@ -640,35 +640,35 @@ function ee(e, t) {
|
|
|
640
640
|
...t,
|
|
641
641
|
filterId: e.id,
|
|
642
642
|
name: t.name || e.column,
|
|
643
|
-
valueType:
|
|
643
|
+
valueType: a,
|
|
644
644
|
dataType: e.dataType,
|
|
645
645
|
fieldMeta: e.fieldMeta,
|
|
646
646
|
semanticContext: e.semanticContext
|
|
647
647
|
}
|
|
648
648
|
});
|
|
649
|
-
if (
|
|
649
|
+
if (r === "is null" || r === "is not null")
|
|
650
650
|
return j({
|
|
651
651
|
definition: e,
|
|
652
652
|
value: {
|
|
653
653
|
filterId: e.id,
|
|
654
654
|
name: e.column,
|
|
655
|
-
operation:
|
|
656
|
-
valueType:
|
|
655
|
+
operation: r,
|
|
656
|
+
valueType: a,
|
|
657
657
|
values: [],
|
|
658
658
|
dataType: e.dataType,
|
|
659
659
|
fieldMeta: e.fieldMeta,
|
|
660
660
|
semanticContext: e.semanticContext
|
|
661
661
|
}
|
|
662
662
|
});
|
|
663
|
-
const n = Array.isArray(t) ? t : [t], i =
|
|
664
|
-
if (i.length !== 0 && !((
|
|
663
|
+
const n = Array.isArray(t) ? t : [t], i = a === "date" ? pt(n) : ft(n);
|
|
664
|
+
if (i.length !== 0 && !((r === "between" || r === "not between") && i.length < 2))
|
|
665
665
|
return j({
|
|
666
666
|
definition: e,
|
|
667
667
|
value: {
|
|
668
668
|
filterId: e.id,
|
|
669
669
|
name: e.column,
|
|
670
|
-
operation:
|
|
671
|
-
valueType:
|
|
670
|
+
operation: r,
|
|
671
|
+
valueType: a,
|
|
672
672
|
values: i,
|
|
673
673
|
dataType: e.dataType,
|
|
674
674
|
fieldMeta: e.fieldMeta,
|
|
@@ -676,57 +676,57 @@ function ee(e, t) {
|
|
|
676
676
|
}
|
|
677
677
|
});
|
|
678
678
|
}
|
|
679
|
-
function ye(e, t,
|
|
680
|
-
return
|
|
679
|
+
function ye(e, t, a) {
|
|
680
|
+
return a ? { code: e, message: t, cardId: a } : { code: e, message: t };
|
|
681
681
|
}
|
|
682
|
-
function mt(e, t,
|
|
683
|
-
const
|
|
684
|
-
(n) => n.scope === "card" && n.targetCardId ===
|
|
682
|
+
function mt(e, t, a) {
|
|
683
|
+
const r = (t || []).filter(
|
|
684
|
+
(n) => n.scope === "card" && n.targetCardId === a
|
|
685
685
|
).map((n) => n.field).filter(Boolean);
|
|
686
|
-
return
|
|
686
|
+
return r.length === 0 ? e : {
|
|
687
687
|
...e,
|
|
688
688
|
calculatedFields: [
|
|
689
689
|
...e.calculatedFields || [],
|
|
690
|
-
...
|
|
690
|
+
...r
|
|
691
691
|
]
|
|
692
692
|
};
|
|
693
693
|
}
|
|
694
|
-
function ht(e, t,
|
|
694
|
+
function ht(e, t, a) {
|
|
695
695
|
return t.clickToFilter === void 0 && t.respondsToSelections === void 0 ? e : {
|
|
696
696
|
...e,
|
|
697
697
|
...t.clickToFilter ? {
|
|
698
698
|
clickToFilter: H(
|
|
699
699
|
t.clickToFilter,
|
|
700
|
-
{ cardIds: Object.fromEntries(
|
|
700
|
+
{ cardIds: Object.fromEntries(a) }
|
|
701
701
|
)
|
|
702
702
|
} : {},
|
|
703
703
|
...t.respondsToSelections !== void 0 ? { respondsToSelections: t.respondsToSelections } : {}
|
|
704
704
|
};
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function Y(e, t) {
|
|
707
707
|
return Array.from(
|
|
708
708
|
new Set(
|
|
709
|
-
(e || []).map((
|
|
709
|
+
(e || []).map((a) => t.get(a)).filter((a) => !!a)
|
|
710
710
|
)
|
|
711
711
|
);
|
|
712
712
|
}
|
|
713
713
|
function gt(e, t) {
|
|
714
714
|
if ((e == null ? void 0 : e.kind) !== "cards")
|
|
715
715
|
return e;
|
|
716
|
-
const
|
|
717
|
-
return
|
|
716
|
+
const a = Y(e.cardIds, t);
|
|
717
|
+
return a.length > 0 ? { ...e, cardIds: a } : null;
|
|
718
718
|
}
|
|
719
719
|
function bt(e, t) {
|
|
720
720
|
return !e.applyToCardIds && !e.excludeCardIds ? e : {
|
|
721
721
|
...e,
|
|
722
722
|
...e.applyToCardIds ? {
|
|
723
|
-
applyToCardIds:
|
|
723
|
+
applyToCardIds: Y(
|
|
724
724
|
e.applyToCardIds,
|
|
725
725
|
t
|
|
726
726
|
)
|
|
727
727
|
} : {},
|
|
728
728
|
...e.excludeCardIds ? {
|
|
729
|
-
excludeCardIds:
|
|
729
|
+
excludeCardIds: Y(
|
|
730
730
|
e.excludeCardIds,
|
|
731
731
|
t
|
|
732
732
|
)
|
|
@@ -734,13 +734,13 @@ function bt(e, t) {
|
|
|
734
734
|
};
|
|
735
735
|
}
|
|
736
736
|
function It(e, t) {
|
|
737
|
-
const
|
|
737
|
+
const a = {}, r = [];
|
|
738
738
|
return {
|
|
739
739
|
inputs: (e.filterInputs || []).flatMap(
|
|
740
740
|
(i, o) => {
|
|
741
741
|
const s = gt(i.scope, t);
|
|
742
742
|
if (s === null)
|
|
743
|
-
return
|
|
743
|
+
return r.push(
|
|
744
744
|
ye(
|
|
745
745
|
"filter_input_scope_empty",
|
|
746
746
|
`Filter input "${i.label}" was skipped because all scoped cards were skipped during query validation.`
|
|
@@ -750,7 +750,7 @@ function It(e, t) {
|
|
|
750
750
|
i.filter,
|
|
751
751
|
i.defaultValue
|
|
752
752
|
);
|
|
753
|
-
return l && (
|
|
753
|
+
return l && (a.shared ?? (a.shared = {}), a.shared[i.id] = {
|
|
754
754
|
status: "set",
|
|
755
755
|
value: {
|
|
756
756
|
kind: "filter",
|
|
@@ -774,11 +774,11 @@ function It(e, t) {
|
|
|
774
774
|
];
|
|
775
775
|
}
|
|
776
776
|
),
|
|
777
|
-
warnings:
|
|
778
|
-
defaultInputValues:
|
|
777
|
+
warnings: r,
|
|
778
|
+
defaultInputValues: a.shared && Object.keys(a.shared).length > 0 ? a : void 0
|
|
779
779
|
};
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function ea(e) {
|
|
782
782
|
var g, b;
|
|
783
783
|
const t = tt(e.plan);
|
|
784
784
|
if (!t.ok)
|
|
@@ -786,7 +786,7 @@ function er(e) {
|
|
|
786
786
|
t.errors.map((c) => c.message).join(`
|
|
787
787
|
`) || "Dashboard plan is invalid."
|
|
788
788
|
);
|
|
789
|
-
const
|
|
789
|
+
const a = e.plan.sheets[0], r = [...t.warnings], n = [], i = new Map(
|
|
790
790
|
e.cardArtifacts.map((c) => [c.planCardId, c])
|
|
791
791
|
), o = new Map(
|
|
792
792
|
e.cardArtifacts.map((c) => [
|
|
@@ -794,7 +794,7 @@ function er(e) {
|
|
|
794
794
|
c.card.id
|
|
795
795
|
])
|
|
796
796
|
), s = [];
|
|
797
|
-
for (const c of
|
|
797
|
+
for (const c of a.cards) {
|
|
798
798
|
const m = i.get(c.id);
|
|
799
799
|
if (!m) {
|
|
800
800
|
const u = ye(
|
|
@@ -805,7 +805,7 @@ function er(e) {
|
|
|
805
805
|
n.push(u);
|
|
806
806
|
continue;
|
|
807
807
|
}
|
|
808
|
-
|
|
808
|
+
r.push(...m.warnings || []);
|
|
809
809
|
const C = ht(
|
|
810
810
|
mt(
|
|
811
811
|
m.card,
|
|
@@ -824,9 +824,9 @@ function er(e) {
|
|
|
824
824
|
if (s.length === 0)
|
|
825
825
|
throw new Error("Dashboard plan did not produce any persistable cards.");
|
|
826
826
|
const { inputs: l, defaultInputValues: d, warnings: p } = It(e.plan, o);
|
|
827
|
-
|
|
827
|
+
r.push(...p);
|
|
828
828
|
const h = Z(
|
|
829
|
-
|
|
829
|
+
a.cards.filter((c) => s.some((m) => m.id === c.frameId)).map((c) => ({
|
|
830
830
|
frameId: c.frameId,
|
|
831
831
|
priority: c.priority,
|
|
832
832
|
role: c.role
|
|
@@ -841,10 +841,10 @@ function er(e) {
|
|
|
841
841
|
interactionDefaults: { clickToFilter: "on" },
|
|
842
842
|
sheets: [
|
|
843
843
|
{
|
|
844
|
-
id:
|
|
844
|
+
id: a.id,
|
|
845
845
|
kind: "dashboard",
|
|
846
|
-
title:
|
|
847
|
-
description:
|
|
846
|
+
title: a.title,
|
|
847
|
+
description: a.description,
|
|
848
848
|
frames: s,
|
|
849
849
|
layouts: h,
|
|
850
850
|
calculatedFields: (g = e.plan.calculatedFields) == null ? void 0 : g.filter((c) => c.scope === "sheet" && c.field).map((c) => c.field)
|
|
@@ -853,10 +853,10 @@ function er(e) {
|
|
|
853
853
|
calculatedFields: (b = e.plan.calculatedFields) == null ? void 0 : b.filter((c) => c.scope === "dashboard" && c.field).map((c) => c.field),
|
|
854
854
|
inputs: l,
|
|
855
855
|
...d ? { defaultInputValues: d } : {}
|
|
856
|
-
}, warnings:
|
|
856
|
+
}, warnings: r, skippedOperations: n };
|
|
857
857
|
}
|
|
858
|
-
function w(e, t,
|
|
859
|
-
return
|
|
858
|
+
function w(e, t, a) {
|
|
859
|
+
return a ? { code: e, message: t, cardId: a } : { code: e, message: t };
|
|
860
860
|
}
|
|
861
861
|
function Ct(e) {
|
|
862
862
|
return JSON.parse(JSON.stringify(e));
|
|
@@ -864,39 +864,39 @@ function Ct(e) {
|
|
|
864
864
|
function yt(e) {
|
|
865
865
|
var t;
|
|
866
866
|
return (t = e.sheets) == null ? void 0 : t.find(
|
|
867
|
-
(
|
|
867
|
+
(a) => (a.kind || "dashboard") === "dashboard"
|
|
868
868
|
);
|
|
869
869
|
}
|
|
870
870
|
function $(e, t) {
|
|
871
|
-
var
|
|
872
|
-
for (const
|
|
873
|
-
for (const n of
|
|
874
|
-
const i = (
|
|
871
|
+
var a;
|
|
872
|
+
for (const r of e.sheets || [])
|
|
873
|
+
for (const n of r.frames || []) {
|
|
874
|
+
const i = (a = n.cards) == null ? void 0 : a.find((o) => o.id === t);
|
|
875
875
|
if (i)
|
|
876
|
-
return { sheet:
|
|
876
|
+
return { sheet: r, frame: n, card: i };
|
|
877
877
|
}
|
|
878
878
|
return null;
|
|
879
879
|
}
|
|
880
880
|
function _e(e) {
|
|
881
|
-
var
|
|
882
|
-
const t = (
|
|
881
|
+
var a, r;
|
|
882
|
+
const t = (r = (a = e.cards) == null ? void 0 : a[0]) == null ? void 0 : r.type;
|
|
883
883
|
return t === "kpi" ? "kpi" : t === "table" || t === "detailTable" || t === "pivotTable" ? "table" : t === "text" ? "text" : "chart";
|
|
884
884
|
}
|
|
885
885
|
function _t(e) {
|
|
886
886
|
var t;
|
|
887
887
|
return new Map(
|
|
888
|
-
(((t = e.layouts) == null ? void 0 : t.lg) || []).map((
|
|
888
|
+
(((t = e.layouts) == null ? void 0 : t.lg) || []).map((a, r) => [a.i, r])
|
|
889
889
|
);
|
|
890
890
|
}
|
|
891
891
|
function De(e, t = /* @__PURE__ */ new Map()) {
|
|
892
|
-
const
|
|
893
|
-
|
|
892
|
+
const a = _t(e), r = Math.max(
|
|
893
|
+
a.size,
|
|
894
894
|
t.size
|
|
895
895
|
), n = (e.frames || []).map(
|
|
896
896
|
(i, o) => ({
|
|
897
897
|
frameId: i.id,
|
|
898
898
|
role: _e(i),
|
|
899
|
-
priority: t.get(i.id) ??
|
|
899
|
+
priority: t.get(i.id) ?? a.get(i.id) ?? r + o
|
|
900
900
|
})
|
|
901
901
|
);
|
|
902
902
|
e.layouts = Z(n);
|
|
@@ -909,12 +909,12 @@ function St(e, t) {
|
|
|
909
909
|
De(e);
|
|
910
910
|
return;
|
|
911
911
|
}
|
|
912
|
-
const
|
|
912
|
+
const a = Z([
|
|
913
913
|
{ frameId: t.id, role: _e(t), priority: 0 }
|
|
914
914
|
]);
|
|
915
915
|
e.layouts ?? (e.layouts = {});
|
|
916
|
-
for (const [
|
|
917
|
-
const i = e.layouts[
|
|
916
|
+
for (const [r, n] of Object.entries(a)) {
|
|
917
|
+
const i = e.layouts[r] || [];
|
|
918
918
|
if (i.some((l) => l.i === t.id))
|
|
919
919
|
continue;
|
|
920
920
|
const o = n[0];
|
|
@@ -924,42 +924,42 @@ function St(e, t) {
|
|
|
924
924
|
(l, d) => Math.max(l, d.y + d.h),
|
|
925
925
|
0
|
|
926
926
|
);
|
|
927
|
-
e.layouts[
|
|
927
|
+
e.layouts[r] = [
|
|
928
928
|
...i,
|
|
929
929
|
{ ...o, y: s }
|
|
930
930
|
];
|
|
931
931
|
}
|
|
932
932
|
}
|
|
933
933
|
function vt(e, t) {
|
|
934
|
-
var
|
|
935
|
-
const
|
|
934
|
+
var r;
|
|
935
|
+
const a = ee(
|
|
936
936
|
t.filter,
|
|
937
937
|
t.defaultValue
|
|
938
938
|
);
|
|
939
|
-
|
|
939
|
+
a && (e.defaultInputValues ?? (e.defaultInputValues = {}), (r = e.defaultInputValues).shared ?? (r.shared = {}), e.defaultInputValues.shared[t.id] = {
|
|
940
940
|
status: "set",
|
|
941
941
|
value: {
|
|
942
942
|
kind: "filter",
|
|
943
|
-
filterValue:
|
|
943
|
+
filterValue: a
|
|
944
944
|
}
|
|
945
945
|
});
|
|
946
946
|
}
|
|
947
|
-
function
|
|
947
|
+
function ta(e) {
|
|
948
948
|
var l;
|
|
949
|
-
const t =
|
|
949
|
+
const t = at(e.changePlan);
|
|
950
950
|
if (!t.ok)
|
|
951
951
|
throw new Error(
|
|
952
952
|
t.errors.map((d) => d.message).join(`
|
|
953
953
|
`) || "Dashboard change plan is invalid."
|
|
954
954
|
);
|
|
955
|
-
const
|
|
955
|
+
const a = Ct(e.dashboard), r = [...t.warnings], n = [], i = new Map(
|
|
956
956
|
e.cardArtifacts.map((d) => [d.planCardId, d])
|
|
957
957
|
), o = new Map(
|
|
958
958
|
e.cardArtifacts.map((d) => [
|
|
959
959
|
d.planCardId,
|
|
960
960
|
d.card.id
|
|
961
961
|
])
|
|
962
|
-
), s = yt(
|
|
962
|
+
), s = yt(a);
|
|
963
963
|
if (!s)
|
|
964
964
|
throw new Error("Dashboard has no editable dashboard sheet.");
|
|
965
965
|
s.frames ?? (s.frames = []);
|
|
@@ -1013,7 +1013,7 @@ function tr(e) {
|
|
|
1013
1013
|
break;
|
|
1014
1014
|
}
|
|
1015
1015
|
case "addFilterInput": {
|
|
1016
|
-
|
|
1016
|
+
a.inputs ?? (a.inputs = []);
|
|
1017
1017
|
const p = {
|
|
1018
1018
|
id: d.input.id,
|
|
1019
1019
|
kind: "filter",
|
|
@@ -1026,21 +1026,21 @@ function tr(e) {
|
|
|
1026
1026
|
runtimeScope: "shared",
|
|
1027
1027
|
presentation: {
|
|
1028
1028
|
placement: "toolbar",
|
|
1029
|
-
order:
|
|
1029
|
+
order: a.inputs.length
|
|
1030
1030
|
},
|
|
1031
1031
|
exports: ["label", "value", "start", "end", "range"],
|
|
1032
1032
|
filter: d.input.filter
|
|
1033
1033
|
};
|
|
1034
|
-
|
|
1034
|
+
a.inputs.push(p), vt(a, d.input);
|
|
1035
1035
|
break;
|
|
1036
1036
|
}
|
|
1037
1037
|
case "addCalculatedField": {
|
|
1038
1038
|
if (d.field.scope === "dashboard" && d.field.field)
|
|
1039
|
-
|
|
1039
|
+
a.calculatedFields ?? (a.calculatedFields = []), a.calculatedFields.push(d.field.field);
|
|
1040
1040
|
else if (d.field.scope === "sheet" && d.field.field)
|
|
1041
1041
|
s.calculatedFields ?? (s.calculatedFields = []), s.calculatedFields.push(d.field.field);
|
|
1042
1042
|
else if (d.field.scope === "card" && d.field.field) {
|
|
1043
|
-
const p = d.field.targetCardId ? $(
|
|
1043
|
+
const p = d.field.targetCardId ? $(a, d.field.targetCardId) : null;
|
|
1044
1044
|
p ? ((l = p.card).calculatedFields ?? (l.calculatedFields = []), p.card.calculatedFields.push(d.field.field)) : n.push(
|
|
1045
1045
|
w(
|
|
1046
1046
|
"missing_calculated_field_target",
|
|
@@ -1051,7 +1051,7 @@ function tr(e) {
|
|
|
1051
1051
|
break;
|
|
1052
1052
|
}
|
|
1053
1053
|
case "renameCard": {
|
|
1054
|
-
const p = $(
|
|
1054
|
+
const p = $(a, d.cardId);
|
|
1055
1055
|
if (!p) {
|
|
1056
1056
|
n.push(
|
|
1057
1057
|
w(
|
|
@@ -1066,7 +1066,7 @@ function tr(e) {
|
|
|
1066
1066
|
break;
|
|
1067
1067
|
}
|
|
1068
1068
|
case "updateCardSelectionSettings": {
|
|
1069
|
-
const p = o.get(d.cardId) ?? d.cardId, h = $(
|
|
1069
|
+
const p = o.get(d.cardId) ?? d.cardId, h = $(a, p);
|
|
1070
1070
|
if (!h) {
|
|
1071
1071
|
n.push(
|
|
1072
1072
|
w(
|
|
@@ -1086,14 +1086,14 @@ function tr(e) {
|
|
|
1086
1086
|
case "reorderCards": {
|
|
1087
1087
|
const p = /* @__PURE__ */ new Map();
|
|
1088
1088
|
for (let h = 0; h < d.cardIds.length; h += 1) {
|
|
1089
|
-
const y = d.cardIds[h], g = $(
|
|
1089
|
+
const y = d.cardIds[h], g = $(a, y);
|
|
1090
1090
|
g && p.set(g.frame.id, h);
|
|
1091
1091
|
}
|
|
1092
1092
|
De(s, p);
|
|
1093
1093
|
break;
|
|
1094
1094
|
}
|
|
1095
1095
|
case "reuseCalculatedField":
|
|
1096
|
-
|
|
1096
|
+
r.push(
|
|
1097
1097
|
w(
|
|
1098
1098
|
"reused_calculated_field",
|
|
1099
1099
|
`Calculated field "${d.fieldId}" is reused by reference.`
|
|
@@ -1106,21 +1106,21 @@ function tr(e) {
|
|
|
1106
1106
|
);
|
|
1107
1107
|
break;
|
|
1108
1108
|
}
|
|
1109
|
-
return { dashboard:
|
|
1109
|
+
return { dashboard: a, warnings: r, skippedOperations: n };
|
|
1110
1110
|
}
|
|
1111
|
-
function _(e, t,
|
|
1112
|
-
return
|
|
1111
|
+
function _(e, t, a) {
|
|
1112
|
+
return a ? { code: e, message: t, cardId: a } : { code: e, message: t };
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1114
|
+
function O(e, t) {
|
|
1115
1115
|
return e.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || t;
|
|
1116
1116
|
}
|
|
1117
1117
|
function Se(e, t) {
|
|
1118
1118
|
if (!t.has(e))
|
|
1119
1119
|
return t.add(e), e;
|
|
1120
|
-
let
|
|
1121
|
-
for (; t.has(
|
|
1122
|
-
|
|
1123
|
-
return t.add(
|
|
1120
|
+
let a = 2, r = `${e}-${a}`;
|
|
1121
|
+
for (; t.has(r); )
|
|
1122
|
+
a += 1, r = `${e}-${a}`;
|
|
1123
|
+
return t.add(r), r;
|
|
1124
1124
|
}
|
|
1125
1125
|
function E(e) {
|
|
1126
1126
|
return !!(e && typeof e == "object");
|
|
@@ -1135,51 +1135,51 @@ function te(e) {
|
|
|
1135
1135
|
(t) => E(t)
|
|
1136
1136
|
) : [];
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1138
|
+
function ae(e) {
|
|
1139
1139
|
return Array.isArray(e.views) ? e.views.filter(
|
|
1140
1140
|
(t) => E(t)
|
|
1141
1141
|
) : [];
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function x(e) {
|
|
1144
1144
|
if (!Array.isArray(e))
|
|
1145
1145
|
return [];
|
|
1146
1146
|
const t = [];
|
|
1147
|
-
for (const
|
|
1148
|
-
const
|
|
1149
|
-
|
|
1147
|
+
for (const a of e) {
|
|
1148
|
+
const r = v(a);
|
|
1149
|
+
r && t.push(r);
|
|
1150
1150
|
}
|
|
1151
1151
|
return t;
|
|
1152
1152
|
}
|
|
1153
1153
|
function Tt(e) {
|
|
1154
|
-
var
|
|
1154
|
+
var r, n, i;
|
|
1155
1155
|
if (!e)
|
|
1156
1156
|
return [];
|
|
1157
1157
|
const t = [];
|
|
1158
|
-
if (
|
|
1159
|
-
t.push(...
|
|
1158
|
+
if (R(e.source) && t.push(e.source), e.kind === "metric") {
|
|
1159
|
+
t.push(...x(e.measures));
|
|
1160
1160
|
const o = v(e.dateField);
|
|
1161
|
-
o && t.push(o), t.push(...
|
|
1162
|
-
...
|
|
1163
|
-
(
|
|
1161
|
+
o && t.push(o), t.push(...x(e.dimensions)), t.push(
|
|
1162
|
+
...x(
|
|
1163
|
+
(r = e.filters) == null ? void 0 : r.map((s) => s.field)
|
|
1164
1164
|
)
|
|
1165
1165
|
);
|
|
1166
1166
|
} else if (e.kind === "records") {
|
|
1167
1167
|
const o = v(e.dateField);
|
|
1168
|
-
o && t.push(o), t.push(...
|
|
1169
|
-
...
|
|
1168
|
+
o && t.push(o), t.push(...x(e.fields)), t.push(
|
|
1169
|
+
...x(
|
|
1170
1170
|
(n = e.filters) == null ? void 0 : n.map((s) => s.field)
|
|
1171
1171
|
)
|
|
1172
1172
|
);
|
|
1173
|
-
} else e.kind === "inputOptions" ? (((i = e.population) == null ? void 0 : i.kind) === "related_population" &&
|
|
1174
|
-
...
|
|
1173
|
+
} else e.kind === "inputOptions" ? (((i = e.population) == null ? void 0 : i.kind) === "related_population" && R(e.population.baseSource) && t.push(e.population.baseSource), t.push(
|
|
1174
|
+
...x([
|
|
1175
1175
|
e.labelField,
|
|
1176
1176
|
e.valueField,
|
|
1177
1177
|
e.searchField,
|
|
1178
1178
|
...e.disambiguationFields || []
|
|
1179
1179
|
].filter((o) => !!o))
|
|
1180
|
-
)) : e.kind === "sql" && t.push(...
|
|
1181
|
-
const
|
|
1182
|
-
for (const o of
|
|
1180
|
+
)) : e.kind === "sql" && t.push(...x(e.fields));
|
|
1181
|
+
const a = "inputs" in e && Array.isArray(e.inputs) ? e.inputs : [];
|
|
1182
|
+
for (const o of a) {
|
|
1183
1183
|
const s = v(o.field);
|
|
1184
1184
|
s && t.push(s);
|
|
1185
1185
|
}
|
|
@@ -1187,61 +1187,61 @@ function Tt(e) {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
function wt(e) {
|
|
1189
1189
|
const t = [];
|
|
1190
|
-
for (const
|
|
1191
|
-
const
|
|
1192
|
-
|
|
1190
|
+
for (const a of ve(e)) {
|
|
1191
|
+
const r = v(a.field);
|
|
1192
|
+
r && t.push(r);
|
|
1193
1193
|
}
|
|
1194
|
-
for (const
|
|
1195
|
-
for (const
|
|
1196
|
-
t.push(...Tt(
|
|
1194
|
+
for (const a of te(e))
|
|
1195
|
+
for (const r of ae(a))
|
|
1196
|
+
t.push(...Tt(r.analytics));
|
|
1197
1197
|
return t;
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1200
|
-
var
|
|
1199
|
+
function xt(e) {
|
|
1200
|
+
var a;
|
|
1201
1201
|
const t = [];
|
|
1202
|
-
for (const
|
|
1203
|
-
for (const n of
|
|
1204
|
-
|
|
1202
|
+
for (const r of te(e))
|
|
1203
|
+
for (const n of ae(r))
|
|
1204
|
+
R((a = n.analytics) == null ? void 0 : a.source) && t.push(n.analytics.source);
|
|
1205
1205
|
return t;
|
|
1206
1206
|
}
|
|
1207
|
-
function
|
|
1208
|
-
const
|
|
1209
|
-
if (
|
|
1207
|
+
function Ft(e, t) {
|
|
1208
|
+
const a = q(e).filter(R);
|
|
1209
|
+
if (a.length === 0)
|
|
1210
1210
|
return t.push(
|
|
1211
1211
|
_(
|
|
1212
1212
|
"missing_materializable_dataset",
|
|
1213
1213
|
"No semantic or physical source could be converted into the current dashboard authoring dataset reference."
|
|
1214
1214
|
)
|
|
1215
1215
|
), [];
|
|
1216
|
-
const
|
|
1216
|
+
const r = a.every((i) => i.kind === "semantic"), n = Array.from(
|
|
1217
1217
|
new Set(
|
|
1218
|
-
|
|
1218
|
+
a.filter((i) => i.kind === "semantic").map((i) => i.domainId)
|
|
1219
1219
|
)
|
|
1220
1220
|
);
|
|
1221
|
-
return
|
|
1221
|
+
return a.length > 1 && (!r || n.length !== 1) ? (t.push(
|
|
1222
1222
|
_(
|
|
1223
1223
|
"multiple_datasets_out_of_scope",
|
|
1224
1224
|
"The dashboard authoring compiler supports multiple datasets only within one semantic domain; using the first source and deferring the rest."
|
|
1225
1225
|
)
|
|
1226
|
-
), [
|
|
1226
|
+
), [a[0]]) : a;
|
|
1227
1227
|
}
|
|
1228
1228
|
function kt(e, t) {
|
|
1229
|
-
const
|
|
1230
|
-
|
|
1229
|
+
const a = te(e), r = ve(e), n = q(wt(e)), i = q(
|
|
1230
|
+
xt(e)
|
|
1231
1231
|
);
|
|
1232
1232
|
return {
|
|
1233
|
-
sections:
|
|
1234
|
-
inputs:
|
|
1233
|
+
sections: a,
|
|
1234
|
+
inputs: r,
|
|
1235
1235
|
sources: n,
|
|
1236
1236
|
primarySources: i,
|
|
1237
1237
|
defaultSource: i.length === 1 ? i[0] : void 0,
|
|
1238
|
-
datasets:
|
|
1238
|
+
datasets: Ft(n, t)
|
|
1239
1239
|
};
|
|
1240
1240
|
}
|
|
1241
1241
|
function At(e) {
|
|
1242
1242
|
return e && fe(e).ok ? e : void 0;
|
|
1243
1243
|
}
|
|
1244
|
-
function
|
|
1244
|
+
function Ot(e) {
|
|
1245
1245
|
var t;
|
|
1246
1246
|
switch ((t = e.presentation) == null ? void 0 : t.kind) {
|
|
1247
1247
|
case "kpi":
|
|
@@ -1260,9 +1260,9 @@ function Rt(e) {
|
|
|
1260
1260
|
return null;
|
|
1261
1261
|
}
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1264
|
-
var t,
|
|
1265
|
-
return ((t = e.presentation) == null ? void 0 : t.kind) === "kpi" ? "kpi" : ((
|
|
1263
|
+
function Rt(e) {
|
|
1264
|
+
var t, a, r;
|
|
1265
|
+
return ((t = e.presentation) == null ? void 0 : t.kind) === "kpi" ? "kpi" : ((a = e.presentation) == null ? void 0 : a.kind) === "table" ? "table" : ((r = e.presentation) == null ? void 0 : r.kind) === "text" ? "text" : "chart";
|
|
1266
1266
|
}
|
|
1267
1267
|
function Et(e) {
|
|
1268
1268
|
const t = Be(e);
|
|
@@ -1286,7 +1286,7 @@ function Mt(e) {
|
|
|
1286
1286
|
if (!(!e || e.kind !== "physical"))
|
|
1287
1287
|
return [e.databaseName, e.schemaName, e.tableName].filter(Boolean).join(".");
|
|
1288
1288
|
}
|
|
1289
|
-
function Pt(e, t,
|
|
1289
|
+
function Pt(e, t, a, r, n, i) {
|
|
1290
1290
|
if (e.kind !== "filter")
|
|
1291
1291
|
return i.push(
|
|
1292
1292
|
_(
|
|
@@ -1305,7 +1305,7 @@ function Pt(e, t, r, a, n, i) {
|
|
|
1305
1305
|
explicitSource: void 0,
|
|
1306
1306
|
field: e.field,
|
|
1307
1307
|
defaultSource: t,
|
|
1308
|
-
fallbackSources:
|
|
1308
|
+
fallbackSources: a
|
|
1309
1309
|
}), s = (o == null ? void 0 : o.kind) === "semantic" || (o == null ? void 0 : o.kind) === "physical" ? o.connectionId : void 0;
|
|
1310
1310
|
if (!s)
|
|
1311
1311
|
return i.push(
|
|
@@ -1316,7 +1316,7 @@ function Pt(e, t, r, a, n, i) {
|
|
|
1316
1316
|
), null;
|
|
1317
1317
|
const p = {
|
|
1318
1318
|
id: `filter-${Se(
|
|
1319
|
-
|
|
1319
|
+
O(e.id, e.field.name),
|
|
1320
1320
|
n
|
|
1321
1321
|
)}`,
|
|
1322
1322
|
variableName: e.id,
|
|
@@ -1359,7 +1359,7 @@ function Pt(e, t, r, a, n, i) {
|
|
|
1359
1359
|
id: e.id,
|
|
1360
1360
|
label: e.label,
|
|
1361
1361
|
variableName: e.id,
|
|
1362
|
-
scope:
|
|
1362
|
+
scope: r,
|
|
1363
1363
|
filter: p,
|
|
1364
1364
|
defaultValue: ee(
|
|
1365
1365
|
p,
|
|
@@ -1368,26 +1368,26 @@ function Pt(e, t, r, a, n, i) {
|
|
|
1368
1368
|
};
|
|
1369
1369
|
}
|
|
1370
1370
|
function G(e) {
|
|
1371
|
-
const t = [],
|
|
1372
|
-
for (const
|
|
1373
|
-
const n = e.viewIdToCardId.get(
|
|
1374
|
-
n ? t.push(n) :
|
|
1371
|
+
const t = [], a = [];
|
|
1372
|
+
for (const r of e.viewIds) {
|
|
1373
|
+
const n = e.viewIdToCardId.get(r);
|
|
1374
|
+
n ? t.push(n) : a.push(r);
|
|
1375
1375
|
}
|
|
1376
|
-
return
|
|
1376
|
+
return a.length > 0 && e.warnings.push(
|
|
1377
1377
|
_(
|
|
1378
1378
|
"input_scope_view_not_found",
|
|
1379
|
-
`Filter "${e.inputLabel}" referenced unknown view ids: ${
|
|
1379
|
+
`Filter "${e.inputLabel}" referenced unknown view ids: ${a.join(", ")}.`
|
|
1380
1380
|
)
|
|
1381
1381
|
), Array.from(new Set(t));
|
|
1382
1382
|
}
|
|
1383
1383
|
function $t(e) {
|
|
1384
|
-
var
|
|
1384
|
+
var r, n;
|
|
1385
1385
|
if (!e.protocolScope) {
|
|
1386
1386
|
const i = Array.from(new Set(e.boundCardIds));
|
|
1387
1387
|
return i.length > 0 && i.length < e.allCardIds.length ? { kind: "cards", cardIds: i } : void 0;
|
|
1388
1388
|
}
|
|
1389
1389
|
if (e.protocolScope.level === "dashboard") {
|
|
1390
|
-
if (!((
|
|
1390
|
+
if (!((r = e.protocolScope.excludeViewIds) != null && r.length))
|
|
1391
1391
|
return;
|
|
1392
1392
|
const i = new Set(
|
|
1393
1393
|
G({
|
|
@@ -1426,7 +1426,7 @@ function $t(e) {
|
|
|
1426
1426
|
), null;
|
|
1427
1427
|
if (!((n = e.protocolScope.excludeViewIds) != null && n.length))
|
|
1428
1428
|
return { kind: "cards", cardIds: t };
|
|
1429
|
-
const
|
|
1429
|
+
const a = new Set(
|
|
1430
1430
|
G({
|
|
1431
1431
|
inputLabel: e.inputLabel,
|
|
1432
1432
|
viewIds: e.protocolScope.excludeViewIds,
|
|
@@ -1436,23 +1436,23 @@ function $t(e) {
|
|
|
1436
1436
|
);
|
|
1437
1437
|
return {
|
|
1438
1438
|
kind: "cards",
|
|
1439
|
-
cardIds: t.filter((i) => !
|
|
1439
|
+
cardIds: t.filter((i) => !a.has(i))
|
|
1440
1440
|
};
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1442
|
+
function aa(e) {
|
|
1443
1443
|
var g, b, c;
|
|
1444
|
-
const t = [],
|
|
1445
|
-
for (const m of
|
|
1444
|
+
const t = [], a = Le(e);
|
|
1445
|
+
for (const m of a.warnings)
|
|
1446
1446
|
t.push(_(m.code, m.message));
|
|
1447
|
-
for (const m of
|
|
1447
|
+
for (const m of a.errors)
|
|
1448
1448
|
t.push(_(m.code, m.message));
|
|
1449
|
-
const
|
|
1449
|
+
const r = kt(e, t), n = [], i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set();
|
|
1450
1450
|
let p = 0;
|
|
1451
|
-
for (const [m, C] of
|
|
1452
|
-
const u = typeof C.title == "string" ? C.title : `Section ${m + 1}`, ne = C.id ||
|
|
1451
|
+
for (const [m, C] of r.sections.entries()) {
|
|
1452
|
+
const u = typeof C.title == "string" ? C.title : `Section ${m + 1}`, ne = C.id || O(u, `section-${m + 1}`);
|
|
1453
1453
|
o.set(ne, []);
|
|
1454
|
-
for (const [ie, I] of
|
|
1455
|
-
const oe =
|
|
1454
|
+
for (const [ie, I] of ae(C).entries()) {
|
|
1455
|
+
const oe = Ot(I), V = O(
|
|
1456
1456
|
I.id || `${u}-${I.title || `View ${ie + 1}`}`,
|
|
1457
1457
|
`card-${m + 1}-${ie + 1}`
|
|
1458
1458
|
);
|
|
@@ -1489,7 +1489,7 @@ function rr(e) {
|
|
|
1489
1489
|
title: I.title,
|
|
1490
1490
|
description: I.description,
|
|
1491
1491
|
type: oe,
|
|
1492
|
-
role:
|
|
1492
|
+
role: Rt(I),
|
|
1493
1493
|
priority: p,
|
|
1494
1494
|
section: u,
|
|
1495
1495
|
analyticsIntent: At(I.analytics),
|
|
@@ -1497,7 +1497,7 @@ function rr(e) {
|
|
|
1497
1497
|
}), p += 1;
|
|
1498
1498
|
}
|
|
1499
1499
|
}
|
|
1500
|
-
const h =
|
|
1500
|
+
const h = r.inputs.map((m) => {
|
|
1501
1501
|
const C = $t({
|
|
1502
1502
|
protocolScope: m.scope,
|
|
1503
1503
|
inputLabel: m.label,
|
|
@@ -1509,8 +1509,8 @@ function rr(e) {
|
|
|
1509
1509
|
});
|
|
1510
1510
|
return C === null ? null : Pt(
|
|
1511
1511
|
m,
|
|
1512
|
-
|
|
1513
|
-
|
|
1512
|
+
r.defaultSource,
|
|
1513
|
+
r.sources,
|
|
1514
1514
|
C,
|
|
1515
1515
|
d,
|
|
1516
1516
|
t
|
|
@@ -1518,13 +1518,13 @@ function rr(e) {
|
|
|
1518
1518
|
}).filter((m) => !!m);
|
|
1519
1519
|
return { plan: {
|
|
1520
1520
|
version: 1,
|
|
1521
|
-
id: `plan-${
|
|
1521
|
+
id: `plan-${O(e.title, "dashboard")}`,
|
|
1522
1522
|
title: e.title,
|
|
1523
1523
|
description: e.description,
|
|
1524
|
-
datasets:
|
|
1524
|
+
datasets: r.datasets,
|
|
1525
1525
|
sheets: [
|
|
1526
1526
|
{
|
|
1527
|
-
id: `sheet-${
|
|
1527
|
+
id: `sheet-${O(e.title, "dashboard")}`,
|
|
1528
1528
|
title: e.title,
|
|
1529
1529
|
description: e.description,
|
|
1530
1530
|
kind: "dashboard",
|
|
@@ -1533,10 +1533,10 @@ function rr(e) {
|
|
|
1533
1533
|
],
|
|
1534
1534
|
filterInputs: h.length ? h : void 0,
|
|
1535
1535
|
warnings: t.length ? t : void 0,
|
|
1536
|
-
unresolvedRequests:
|
|
1536
|
+
unresolvedRequests: a.ok ? void 0 : a.errors.map((m) => m.message)
|
|
1537
1537
|
}, warnings: t };
|
|
1538
1538
|
}
|
|
1539
|
-
const
|
|
1539
|
+
const ra = [
|
|
1540
1540
|
"cardType",
|
|
1541
1541
|
"sql",
|
|
1542
1542
|
"python",
|
|
@@ -1551,7 +1551,7 @@ const ar = [
|
|
|
1551
1551
|
"resolvedPrimaryDateField",
|
|
1552
1552
|
"globalDateComparison",
|
|
1553
1553
|
"calendarContext"
|
|
1554
|
-
],
|
|
1554
|
+
], na = [
|
|
1555
1555
|
"cardId",
|
|
1556
1556
|
"cardTitle",
|
|
1557
1557
|
"cache_config",
|
|
@@ -1559,96 +1559,96 @@ const ar = [
|
|
|
1559
1559
|
"tableConfig"
|
|
1560
1560
|
];
|
|
1561
1561
|
class D extends Error {
|
|
1562
|
-
constructor(
|
|
1563
|
-
super(
|
|
1562
|
+
constructor(a, r, n) {
|
|
1563
|
+
super(a);
|
|
1564
1564
|
z(this, "field");
|
|
1565
1565
|
z(this, "details");
|
|
1566
|
-
Object.setPrototypeOf(this, D.prototype), this.name = "CardQueryRequestError", this.field =
|
|
1566
|
+
Object.setPrototypeOf(this, D.prototype), this.name = "CardQueryRequestError", this.field = r, this.details = n;
|
|
1567
1567
|
}
|
|
1568
1568
|
}
|
|
1569
|
-
function
|
|
1569
|
+
function re(e) {
|
|
1570
1570
|
return e.label ? `${e.label}.` : "";
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1572
|
+
function F(e) {
|
|
1573
1573
|
return !e || typeof e != "object" || Array.isArray(e) ? {} : { ...e };
|
|
1574
1574
|
}
|
|
1575
1575
|
function L(e) {
|
|
1576
1576
|
return typeof e == "string" ? e : "";
|
|
1577
1577
|
}
|
|
1578
1578
|
function Lt(e, t = {}) {
|
|
1579
|
-
const
|
|
1580
|
-
if (
|
|
1581
|
-
const o = ze(
|
|
1579
|
+
const a = F(e), r = re(t), n = {};
|
|
1580
|
+
if (a.calendarContext !== void 0) {
|
|
1581
|
+
const o = ze(a.calendarContext);
|
|
1582
1582
|
if (!o.ok)
|
|
1583
1583
|
throw new D(
|
|
1584
|
-
`${
|
|
1584
|
+
`${r}calendarContext: ${o.issues.map((s) => s.message).join("; ")}`,
|
|
1585
1585
|
"calendarContext",
|
|
1586
1586
|
o.issues
|
|
1587
1587
|
);
|
|
1588
1588
|
n.calendarContext = o.value;
|
|
1589
1589
|
}
|
|
1590
|
-
const i =
|
|
1590
|
+
const i = Oe(a.resolvedPrimaryDateField);
|
|
1591
1591
|
if (!i.ok)
|
|
1592
1592
|
throw new D(
|
|
1593
|
-
`${
|
|
1593
|
+
`${r}${Re(i.issues)}`,
|
|
1594
1594
|
"resolvedPrimaryDateField",
|
|
1595
1595
|
i.issues
|
|
1596
1596
|
);
|
|
1597
|
-
if (
|
|
1598
|
-
const o = qe(
|
|
1597
|
+
if (a.resolvedPrimaryDateField && (n.resolvedPrimaryDateField = a.resolvedPrimaryDateField), a.globalDateComparison !== void 0) {
|
|
1598
|
+
const o = qe(a.globalDateComparison);
|
|
1599
1599
|
if (!o.ok)
|
|
1600
1600
|
throw new D(
|
|
1601
|
-
`${
|
|
1601
|
+
`${r}Invalid globalDateComparison: ${o.errors.map((s) => `${s.path}: ${s.message}`).join("; ")}`,
|
|
1602
1602
|
"globalDateComparison",
|
|
1603
1603
|
o.errors
|
|
1604
1604
|
);
|
|
1605
1605
|
n.globalDateComparison = Ve(
|
|
1606
|
-
|
|
1606
|
+
a.globalDateComparison
|
|
1607
1607
|
);
|
|
1608
1608
|
}
|
|
1609
1609
|
return n;
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1612
|
-
const
|
|
1613
|
-
if (
|
|
1614
|
-
const i =
|
|
1611
|
+
function ia(e, t = {}) {
|
|
1612
|
+
const a = F(e), r = re(t), n = {};
|
|
1613
|
+
if (a.pagination !== void 0) {
|
|
1614
|
+
const i = F(a.pagination), o = i.page, s = i.pageSize;
|
|
1615
1615
|
if (!Number.isInteger(o) || o < 1 || !Number.isInteger(s) || s < 1)
|
|
1616
1616
|
throw new D(
|
|
1617
|
-
`${
|
|
1617
|
+
`${r}pagination must name a page and a page size of at least 1`,
|
|
1618
1618
|
"pagination"
|
|
1619
1619
|
);
|
|
1620
1620
|
n.pagination = { page: o, pageSize: s };
|
|
1621
1621
|
}
|
|
1622
|
-
if (
|
|
1623
|
-
if (!
|
|
1624
|
-
throw new D(`${
|
|
1625
|
-
n.tableTotalsRequest =
|
|
1622
|
+
if (a.tableTotalsRequest !== void 0) {
|
|
1623
|
+
if (!a.tableTotalsRequest || typeof a.tableTotalsRequest != "object" || Array.isArray(a.tableTotalsRequest))
|
|
1624
|
+
throw new D(`${r}tableTotalsRequest must be an object`, "tableTotalsRequest");
|
|
1625
|
+
n.tableTotalsRequest = a.tableTotalsRequest;
|
|
1626
1626
|
}
|
|
1627
|
-
if (
|
|
1628
|
-
const i =
|
|
1627
|
+
if (a.sourceRowProbe !== void 0) {
|
|
1628
|
+
const i = F(a.sourceRowProbe).limit;
|
|
1629
1629
|
if (!Number.isInteger(i) || i < 1)
|
|
1630
1630
|
throw new D(
|
|
1631
|
-
`${
|
|
1631
|
+
`${r}sourceRowProbe must name a limit of at least 1`,
|
|
1632
1632
|
"sourceRowProbe"
|
|
1633
1633
|
);
|
|
1634
1634
|
if (n.pagination)
|
|
1635
1635
|
throw new D(
|
|
1636
|
-
`${
|
|
1636
|
+
`${r}sourceRowProbe cannot be combined with pagination`,
|
|
1637
1637
|
"sourceRowProbe"
|
|
1638
1638
|
);
|
|
1639
1639
|
n.sourceRowProbe = { limit: i };
|
|
1640
1640
|
}
|
|
1641
1641
|
return n;
|
|
1642
1642
|
}
|
|
1643
|
-
function
|
|
1644
|
-
const
|
|
1643
|
+
function oa(e, t = {}) {
|
|
1644
|
+
const a = F(e), r = re(t), n = (c) => new D(`${r}${c} is required`, c), i = L(a.connection_id).trim();
|
|
1645
1645
|
if (!i) throw n("connection_id");
|
|
1646
|
-
const o = L(
|
|
1646
|
+
const o = L(a.cardType).trim();
|
|
1647
1647
|
if (!o) throw n("cardType");
|
|
1648
|
-
const s =
|
|
1648
|
+
const s = a.resultOwner;
|
|
1649
1649
|
if (s !== "config" && s !== "freeform" && s !== "none")
|
|
1650
1650
|
throw n("resultOwner");
|
|
1651
|
-
const l =
|
|
1651
|
+
const l = F(a.cardConfig), d = L(a.sql), p = L(a.python), h = !!t.configOptional || Object.keys(l).length > 0;
|
|
1652
1652
|
if (s === "config" && !h) throw n("cardConfig");
|
|
1653
1653
|
if (s === "freeform" && !d.trim()) throw n("sql");
|
|
1654
1654
|
const y = Ee({
|
|
@@ -1658,17 +1658,17 @@ function or(e, t = {}) {
|
|
|
1658
1658
|
});
|
|
1659
1659
|
if (s !== y)
|
|
1660
1660
|
throw new D(
|
|
1661
|
-
`${
|
|
1661
|
+
`${r}resultOwner must match the normalized execution owner "${y}"`,
|
|
1662
1662
|
"resultOwner"
|
|
1663
1663
|
);
|
|
1664
1664
|
if (s === "none") throw n("cardConfig");
|
|
1665
|
-
const g =
|
|
1665
|
+
const g = F(a.cardDataSource);
|
|
1666
1666
|
if (Object.keys(g).length === 0) throw n("cardDataSource");
|
|
1667
1667
|
const b = Ne({
|
|
1668
|
-
controlValues:
|
|
1669
|
-
controlDefinitions:
|
|
1670
|
-
cardControlDefinitions:
|
|
1671
|
-
controlBindings:
|
|
1668
|
+
controlValues: a.controlValues,
|
|
1669
|
+
controlDefinitions: a.controlDefinitions,
|
|
1670
|
+
cardControlDefinitions: a.cardControlDefinitions,
|
|
1671
|
+
controlBindings: a.controlBindings
|
|
1672
1672
|
});
|
|
1673
1673
|
return {
|
|
1674
1674
|
connection_id: i,
|
|
@@ -1678,160 +1678,165 @@ function or(e, t = {}) {
|
|
|
1678
1678
|
resultOwner: s,
|
|
1679
1679
|
cardConfig: l,
|
|
1680
1680
|
cardDataSource: g,
|
|
1681
|
-
active_filters: Array.isArray(
|
|
1681
|
+
active_filters: Array.isArray(a.active_filters) ? a.active_filters : [],
|
|
1682
1682
|
controlValues: b.controlValues,
|
|
1683
1683
|
controlDefinitions: b.controlDefinitions,
|
|
1684
1684
|
cardControlDefinitions: b.cardControlDefinitions,
|
|
1685
1685
|
controlBindings: b.controlBindings,
|
|
1686
|
-
...Lt(
|
|
1686
|
+
...Lt(a, t)
|
|
1687
1687
|
};
|
|
1688
1688
|
}
|
|
1689
1689
|
export {
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1690
|
+
Aa as AUTOMATIC_TEMPORAL_BUCKET_FORMAT,
|
|
1691
|
+
na as CARD_QUERY_REQUEST_DESCRIPTIVE_FIELDS,
|
|
1692
|
+
ra as CARD_QUERY_REQUEST_EXECUTED_FIELDS,
|
|
1693
|
+
Oa as CONTROL_BINDING_MAPPING_MISSING_ERROR_CODE,
|
|
1694
|
+
Ra as CONTROL_BINDING_TARGET_INVALID_ERROR_CODE,
|
|
1695
|
+
Ea as CONTROL_BINDING_VALUE_INVALID_ERROR_CODE,
|
|
1696
|
+
Na as CONTROL_CONTEXT_UNSUPPORTED_ERROR_CODE,
|
|
1697
|
+
Ma as CONTROL_DEFINITION_DUPLICATE_ERROR_CODE,
|
|
1698
|
+
Pa as CONTROL_DEFINITION_INVALID_ERROR_CODE,
|
|
1699
|
+
$a as CONTROL_PLACEHOLDER_QUOTED_ERROR_CODE,
|
|
1700
|
+
La as CONTROL_REFERENCE_MISSING_ERROR_CODE,
|
|
1701
|
+
Ba as CONTROL_VALUE_INVALID_ERROR_CODE,
|
|
1702
|
+
qa as CONTROL_VALUE_MISSING_ERROR_CODE,
|
|
1703
1703
|
D as CardQueryRequestError,
|
|
1704
|
-
|
|
1705
|
-
|
|
1704
|
+
Va as ControlResolutionError,
|
|
1705
|
+
Fe as DASHBOARD_AUTHORING_BREAKPOINTS,
|
|
1706
1706
|
B as DASHBOARD_AUTHORING_MAX_GENERATED_CARDS,
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1707
|
+
Rr as DASHBOARD_DEFAULT_OPTION_DEPENDENCIES,
|
|
1708
|
+
un as DASHBOARD_FILTER_OPERATIONS,
|
|
1709
|
+
rn as DOCUMENT_KPI_SECTION_MAX_CARDS,
|
|
1710
|
+
nn as DOCUMENT_KPI_SECTION_MAX_TILES,
|
|
1711
|
+
Er as DashboardFilterMappingContractError,
|
|
1712
|
+
za as ExecutionControlContractError,
|
|
1713
|
+
ca as NEW_CARD_TYPE,
|
|
1714
|
+
ja as SEMAPHOR_CARTESIAN_CHART_TYPES,
|
|
1715
|
+
la as applyCardReferenceRemapping,
|
|
1716
|
+
ta as applyDashboardChangePlan,
|
|
1717
|
+
ua as applyDashboardOperations,
|
|
1718
|
+
Nr as applyGroupByOverride,
|
|
1719
|
+
fa as applyLinkedClickToFilterOverrides,
|
|
1720
|
+
Mr as applyOptionDependencyOverride,
|
|
1721
|
+
pa as buildCardExportFormatOptions,
|
|
1722
|
+
Pr as buildCardExportQueryContext,
|
|
1723
|
+
ma as buildCardExportRequest,
|
|
1724
|
+
ha as buildCardExportRequestFromOptions,
|
|
1725
|
+
Ua as buildControlDefinitionIndex,
|
|
1726
|
+
Ga as buildDashboardCardSourceIndex,
|
|
1727
|
+
ga as buildLinkedClickToFilterOverrides,
|
|
1728
|
+
ba as buildTableExportFormatOptions,
|
|
1724
1729
|
ke as clickToFilterSettingsSchema,
|
|
1725
|
-
|
|
1730
|
+
ea as compileDashboardFromPlan,
|
|
1726
1731
|
Z as compileResponsiveDashboardLayouts,
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1732
|
+
Ia as composeCardReferenceRemapping,
|
|
1733
|
+
Ha as controlBindingExecutionSchema,
|
|
1734
|
+
Wa as controlDefinitionExecutionSchema,
|
|
1735
|
+
$r as createDashboardFilterBindingId,
|
|
1736
|
+
gn as createMatrixAuthoringDraft,
|
|
1737
|
+
bn as createMatrixConfig,
|
|
1738
|
+
Ca as createNewCard,
|
|
1734
1739
|
J as dashboardAuthoringDatasetMatchesSource,
|
|
1735
1740
|
Jt as dashboardAuthoringFieldsReferToSameTarget,
|
|
1736
1741
|
v as dashboardAuthoringSourceFromField,
|
|
1737
|
-
|
|
1742
|
+
Yt as dashboardAuthoringSourceKey,
|
|
1738
1743
|
pe as dashboardAuthoringSourcesReferToSameDataset,
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
+
Ka as dashboardCardFilterSourceInventoryContains,
|
|
1745
|
+
Lr as dashboardFilterTargetMatchesLogicalValue,
|
|
1746
|
+
fn as dashboardFilterValueTypeForDataType,
|
|
1747
|
+
aa as dashboardPlanFromSemaphorDashboardIntent,
|
|
1748
|
+
Qa as defaultClickToFilterSettings,
|
|
1744
1749
|
Zt as findDashboardAuthoringDatasetForSource,
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1750
|
+
Ya as findDashboardCardExecutableSource,
|
|
1751
|
+
Xa as findDashboardCardPinnedCatalogSource,
|
|
1752
|
+
Ja as findDashboardSqlPinnedCatalogSource,
|
|
1753
|
+
Re as formatResolvedPrimaryDateFieldIssues,
|
|
1754
|
+
ya as getCalculatedFieldAggregateOverrides,
|
|
1755
|
+
Za as getCalculatedFieldNamespace,
|
|
1756
|
+
_a as getCalculatedFieldParameters,
|
|
1757
|
+
Da as getCalculatedFieldShelfOverrides,
|
|
1758
|
+
er as getColumnCatalogFieldId,
|
|
1754
1759
|
Je as getDashboardAuthoringCardSource,
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1760
|
+
Sa as getDashboardFilterSubscriptionHint,
|
|
1761
|
+
on as getDocumentKpiSectionShapeIssues,
|
|
1762
|
+
sn as getDocumentSectionCards,
|
|
1763
|
+
va as getDomainCalculatedSelectionOverrides,
|
|
1764
|
+
tr as getFieldAggregationOptions,
|
|
1765
|
+
ar as getMatrixBindingTargets,
|
|
1766
|
+
In as getMatrixLevelLabel,
|
|
1767
|
+
Cn as getMatrixMeasureLabel,
|
|
1768
|
+
rr as getStableDomainCalculatedFieldId,
|
|
1769
|
+
nr as getTemporalBucketAuthoringOptions,
|
|
1770
|
+
ir as getTemporalBucketAuthoringSelection,
|
|
1771
|
+
Ta as hasDashboardFilterSubscription,
|
|
1772
|
+
pn as isDashboardFilterOperationCompatible,
|
|
1773
|
+
R as isMaterializableDashboardAuthoringSource,
|
|
1774
|
+
or as isPresentationCurrencyBinding,
|
|
1775
|
+
sr as isSemaphorCartesianChartType,
|
|
1771
1776
|
je as isSemaphorSourceRef,
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1777
|
+
dr as isStructuralControlBinding,
|
|
1778
|
+
cr as isValidControlOptionPresentation,
|
|
1779
|
+
lr as linkedClickToFilterOverridesSchema,
|
|
1780
|
+
dn as listDashboardCardLocations,
|
|
1781
|
+
cn as mapDocumentSectionCards,
|
|
1782
|
+
Br as matrixCatalogSources,
|
|
1783
|
+
Sn as matrixDefinitionFields,
|
|
1784
|
+
vn as matrixDefinitionSources,
|
|
1785
|
+
qr as matrixExecutionSources,
|
|
1781
1786
|
q as mergeDashboardAuthoringSources,
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1787
|
+
yn as mergeMatrixSorts,
|
|
1788
|
+
ur as moveMatrixLevel,
|
|
1789
|
+
fr as normalizeClickToFilterSettings,
|
|
1790
|
+
Vr as normalizeDashboardInputs,
|
|
1791
|
+
wa as normalizeLegacyLinkedTargetOverrides,
|
|
1792
|
+
oa as parseCardQueryRequest,
|
|
1788
1793
|
Lt as parseCardQueryRequestContext,
|
|
1789
|
-
|
|
1790
|
-
|
|
1794
|
+
ia as parseCardQueryRequestExtras,
|
|
1795
|
+
pr as parseExecutionControlBindingsShallow,
|
|
1791
1796
|
Ne as parseExecutionControlContext,
|
|
1792
|
-
|
|
1797
|
+
mr as parseExecutionControlContract,
|
|
1793
1798
|
Ue as preferDashboardAuthoringSourceMetadata,
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1799
|
+
Xt as preferredDashboardAuthoringSource,
|
|
1800
|
+
hr as previewTemporalBucketAuthoringFormat,
|
|
1801
|
+
gr as readExactDomainCalculatedFieldReference,
|
|
1802
|
+
Tn as readMatrixCardConfig,
|
|
1803
|
+
zr as rebindDashboardOptionDependencyInputId,
|
|
1804
|
+
br as reconcileMatrixSpecStructure,
|
|
1805
|
+
Ir as reconcileTemporalBucketAuthoringFormat,
|
|
1801
1806
|
H as remapClickToFilterReferences,
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1807
|
+
xa as remapLinkedClickToFilterOverrides,
|
|
1808
|
+
jr as requireNormalizedDashboardInputs,
|
|
1809
|
+
Cr as resolveBindingControlValue,
|
|
1810
|
+
Zr as resolveCanonicalDetailResultRawKey,
|
|
1811
|
+
en as resolveCanonicalResultOutputKey,
|
|
1812
|
+
tn as resolveCanonicalResultRawKey,
|
|
1808
1813
|
Ge as resolveDashboardAuthoringSource,
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1814
|
+
yr as resolveDashboardEntitySource,
|
|
1815
|
+
Ur as resolveDashboardFilterAutomaticTarget,
|
|
1816
|
+
Gr as resolveDashboardFilterInheritedTarget,
|
|
1817
|
+
Hr as resolveDashboardOptionDependencies,
|
|
1818
|
+
Wr as resolveDashboardOptionPopulation,
|
|
1819
|
+
Kr as resolveDashboardSqlFilterTarget,
|
|
1820
|
+
_r as resolveGroupByFieldTarget,
|
|
1821
|
+
Qr as resolveMatrixControlBindings,
|
|
1822
|
+
_n as resolveMatrixDefinition,
|
|
1823
|
+
Dr as resolveMetricFieldTarget,
|
|
1824
|
+
Sr as resolveScalarMappedValue,
|
|
1825
|
+
vr as resolveTemporalBucketAuthoringFormat,
|
|
1821
1826
|
Ee as resolveTemporalResultOwner,
|
|
1822
1827
|
Ae as respondsToSelectionsSchema,
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1828
|
+
Tr as retainMatrixConditionalFormatting,
|
|
1829
|
+
Yr as selectDashboardOptionDependencyInputIds,
|
|
1830
|
+
wr as selectionFieldFromExplorerField,
|
|
1831
|
+
Fa as stripInstanceTargetsForLibrarySave,
|
|
1832
|
+
xr as supportsCanonicalDashboardTemporalResult,
|
|
1833
|
+
Fr as transformComparisonDocument,
|
|
1834
|
+
kr as updateMatrixConfig,
|
|
1835
|
+
Ar as validateControlValue,
|
|
1831
1836
|
Ze as validateDashboardAuthoringDatasetScope,
|
|
1832
|
-
|
|
1833
|
-
|
|
1837
|
+
at as validateDashboardChangePlan,
|
|
1838
|
+
mn as validateDashboardFilterValues,
|
|
1834
1839
|
tt as validateDashboardPlan,
|
|
1835
|
-
|
|
1836
|
-
|
|
1840
|
+
Oe as validateResolvedPrimaryDateFieldShape,
|
|
1841
|
+
Xr as withDashboardOptionDependencyOverride
|
|
1837
1842
|
};
|