react-semaphor 0.1.555 → 0.1.557
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DATA_APP_SDK.md +6 -29
- package/dist/analytics-protocol/index.js +20 -21
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +426 -444
- package/dist/briefings/index.js +56 -57
- package/dist/chunks/{analytics-base-schemas-BKs3flFS.js → analytics-base-schemas-BUFUoO6G.js} +2 -2
- package/dist/chunks/{assistant-chat-8NZP6m-u.js → assistant-chat-WMTpYirZ.js} +79 -81
- package/dist/chunks/{bookmark-state-BAeGKd3s.js → bookmark-state-PjQpxbG7.js} +3 -3
- package/dist/chunks/{braces-o9UiRQes.js → braces-BOErQVyi.js} +1 -1
- package/dist/chunks/comparison-window-caption-Dc7BaCMz.js +1218 -0
- package/dist/chunks/{context-BerEBuFR.js → context-DVy4HOU0.js} +1 -1
- package/dist/chunks/{custom-visual-inputs-Gw-Ggg3O.js → custom-visual-inputs-CxYI-gFa.js} +31 -33
- package/dist/chunks/{dashboard-Ds68ckO3.js → dashboard-4D8Vy4pL.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DlTr-VGc.js → dashboard-briefing-launcher-C4EmOfxs.js} +149 -151
- package/dist/chunks/{dashboard-controls-oNXJZN6x.js → dashboard-controls-DBWykmvL.js} +171 -173
- package/dist/chunks/{dashboard-json-CW7Q_efH.js → dashboard-json-DiX-p0F7.js} +21 -22
- package/dist/chunks/{document-dashboard-inputs-C21mL3ib.js → document-dashboard-inputs-DP5hquBR.js} +32 -32
- package/dist/chunks/{edit-dashboard-visual-BnnT_oKR.js → edit-dashboard-visual-n1jLV_7V.js} +5842 -5955
- package/dist/chunks/{filter-reach-copy-DlNPHbE-.js → filter-reach-copy-BB9iakLA.js} +915 -986
- package/dist/chunks/{filter-value-text-DMrpj4h9.js → filter-value-text-CUBpotVN.js} +5 -5
- package/dist/chunks/{global-date-filter-utils-7OboTgrM.js → global-date-filter-utils-Cc5tqkoW.js} +2908 -3112
- package/dist/chunks/{index-B2k6KtUN.js → index-CgjhzkKM.js} +72 -80
- package/dist/chunks/{index-CtoK1Lgu.js → index-dIV-Gdsb.js} +159 -161
- package/dist/chunks/{layout-grid-Bgzth8vd.js → layout-grid-CcNklCwL.js} +1 -1
- package/dist/chunks/{list-filter-DsaTbM3J.js → list-filter-Ds_4UTpD.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-DPVGg1mU.js → matrix-analytical-definition-4GTUDheD.js} +22 -22
- package/dist/chunks/{matrix-card-D9bsdAye.js → matrix-card-fS_4O7zA.js} +3 -3
- package/dist/chunks/{matrix-member-presentation-DRWcJ8Mi.js → matrix-member-presentation-Dj7HaAHC.js} +1 -1
- package/dist/chunks/{matrix-operation-contract--lMaLlpV.js → matrix-operation-contract-CpgLZ7E5.js} +52 -52
- package/dist/chunks/{metric-comparison-CYIt2F5X.js → metric-comparison-C8LY7GG5.js} +4 -4
- package/dist/chunks/{model-change-B0rAK-5w.js → model-change-CJEj3ZD6.js} +1 -1
- package/dist/chunks/{palette-D10o_yYX.js → palette-DMkIhagj.js} +1 -1
- package/dist/chunks/{matrix-formatter-K2OVPJQI.js → pivot-result-contract-expectations-DMk-mKhG.js} +451 -402
- package/dist/chunks/pivot-result-identity-CrQ54Xbj.js +77 -0
- package/dist/chunks/{raw-temporal-presentation-CivONfcO.js → raw-temporal-presentation-DdEpgPRB.js} +25 -26
- package/dist/chunks/report-preferences-dialog-CFg5VFLk.js +2109 -0
- package/dist/chunks/{report-runtime-context-BaIKSaja.js → report-runtime-context-CohdtiMg.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-CIm9A8_j.js → resolve-dashboard-input-context-Djl3kCFL.js} +1396 -1550
- package/dist/chunks/{save-CfJpQQ68.js → save-D1EpMcwT.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-akb9JfOL.js → saved-dashboard-context-umlQFevH.js} +9 -9
- package/dist/chunks/selection-reducer-_d6aKJnj.js +46 -0
- package/dist/chunks/{semaphor-ready-indicator-Ba7dwP5_.js → semaphor-ready-indicator-4cOp6sla.js} +54479 -63899
- package/dist/chunks/{shelf-drop-preview-context-5rg3pJHW.js → shelf-drop-preview-context-DAtRuvR7.js} +7 -7
- package/dist/chunks/{source-entity-resolution-CGymm5td.js → source-entity-resolution-DXW1HpKf.js} +1 -1
- package/dist/chunks/{switch-B-UTI6v-.js → switch-9CJt5EF_.js} +1431 -1342
- package/dist/chunks/{table-export-sheet-CgO6gaSM.js → table-export-sheet-CTCTA_bd.js} +1 -1
- package/dist/chunks/{table-settings-DOT_Bv1m.js → table-settings-DF1gdVQR.js} +3 -3
- package/dist/chunks/temporal-input-presentation-DoSniQj1.js +2939 -0
- package/dist/chunks/{token-types-DYECHYGH.js → token-types-DFyLflLY.js} +1 -1
- package/dist/chunks/{upload-BFX7apKV.js → upload-LSNKpt0w.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-BHNs0wl7.js → use-create-flow-overlay-state-esyMT9vU.js} +125 -127
- package/dist/chunks/{validators-ClKLGDGZ.js → validators-hmfNNQz8.js} +305 -307
- package/dist/chunks/zoned-wall-clock-E35Frf9v.js +191 -0
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +168 -169
- package/dist/data-app-sdk/index.js +789 -4154
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +6 -6
- package/dist/format-utils/index.js +234 -253
- package/dist/index.js +233 -235
- package/dist/layouts/index.js +1 -1
- package/dist/pdf-export-policy/index.js +9 -11
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/brand-studio/brand-studio-draft.d.ts +0 -3
- package/dist/types/brand-studio/index.d.ts +1 -1
- package/dist/types/components/visual/data-table/types/data-table.d.ts +0 -1
- package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -6
- package/dist/types/data-app-sdk/contracts.d.ts +0 -146
- package/dist/types/data-app-sdk/index.d.ts +0 -2
- package/dist/types/index.js +27 -28
- package/dist/types/lib/api/exports-api.d.ts +1 -1
- package/dist/types/lib/charts/table-chart-types.d.ts +1 -1
- package/dist/types/lib/charts/types.d.ts +2 -2
- package/dist/types/lib/dashboard-viewer/export-table-view.d.ts +0 -3
- package/dist/types/lib/document/document-edits.d.ts +1 -1
- package/dist/types/lib/document/document-section-kinds.d.ts +2 -4
- package/dist/types/lib/document/document-table-data-policy.d.ts +1 -2
- package/dist/types/lib/formatters/grouped-temporal-activation.d.ts +3 -3
- package/dist/types/lib/formatters/grouped-temporal-presentation.d.ts +0 -6
- package/dist/types/lib/query-context/card-server-request.d.ts +0 -1
- package/dist/types/lib/table-formatting/table-formatting-types.d.ts +1 -1
- package/dist/types/lib/types/common-types.d.ts +0 -7
- package/dist/types/lib/types/explorer-types.d.ts +1 -14
- package/dist/types/lib/utils/card-config-utils.d.ts +11 -1
- package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +1 -2
- package/dist/types/shared/dashboard-authoring/filter-model/filter-definitions.d.ts +1 -7
- package/dist/types/shared/dashboard-authoring/legacy-table-routing.d.ts +9 -4
- package/dist/types/shared/format-utils/grouped-table-presentation.d.ts +0 -14
- package/dist/types/shared/format-utils/index.d.ts +0 -2
- package/dist/types/shared/format-utils/pdf-export-policy.d.ts +1 -1
- package/dist/types/shared/format-utils/pivot-result-contract-expectations.d.ts +2 -20
- package/dist/types/shared/format-utils/pivot-result-identity.d.ts +0 -20
- package/dist/types/shared/format-utils/table-export/prepare-table-export.d.ts +0 -1
- package/dist/types/shared/format-utils/table-export/table-export-result.d.ts +0 -4
- package/package.json +2 -4
- package/src/data-app-sdk/README.md +7 -31
- package/dist/chunks/comparison-window-caption-C2WNTlxK.js +0 -1433
- package/dist/chunks/pivot-header-presentation-CX4fkRuG.js +0 -42
- package/dist/chunks/pivot-result-identity-BHJGZwIc.js +0 -94
- package/dist/chunks/pivot-result-lifecycle-BygCpOhk.js +0 -1238
- package/dist/chunks/raw-temporal-contract-WuXA8jBP.js +0 -64
- package/dist/chunks/report-preferences-dialog-D_KyuEFx.js +0 -2261
- package/dist/chunks/selection-reducer-yw_JgICP.js +0 -111
- package/dist/chunks/temporal-bucket-C4rqmwaQ.js +0 -2071
- package/dist/chunks/x-4f5U2XwU.js +0 -100
- package/dist/chunks/zoned-wall-clock-MulfA26h.js +0 -129
- package/dist/types/components/visual/pivot-table/types.d.ts +0 -80
- package/dist/types/data-app-sdk/devtools/index.d.ts +0 -49
- package/dist/types/data-app-sdk/devtools.d.ts +0 -1
- package/dist/types/shared/format-utils/aggregate-table-row-presentation.d.ts +0 -85
- package/dist/types/shared/format-utils/pivot-result-lifecycle.d.ts +0 -55
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
import { al as
|
|
2
|
-
import {
|
|
3
|
-
import "./matrix-operation-contract
|
|
4
|
-
import { r as
|
|
5
|
-
import "./analytics-base-schemas-
|
|
1
|
+
import { al as oi, am as si, an as li, ao as dt, ap as ci, aq as K, ar as ft, as as ui, at as di, au as Se, av as fi, aw as mt, ax as mi, ay as pi, az as hi, aA as gi, aB as yi, aC as bi, aD as pt, aE as vi, aF as Fi, aG as Ci, aH as ge, aI as Ii, aJ as xi, aK as Si, b as Mi, aL as Di, v as Ti, z as wi, aM as Pi, aN as Oi } from "./resolve-dashboard-input-context-Djl3kCFL.js";
|
|
2
|
+
import { ab as ht, f as Ai, e as _i, a8 as gt, am as Ni, v as Ei } from "./validators-hmfNNQz8.js";
|
|
3
|
+
import "./matrix-operation-contract-CpgLZ7E5.js";
|
|
4
|
+
import { r as Ri, C as Vi } from "./metric-comparison-C8LY7GG5.js";
|
|
5
|
+
import "./analytics-base-schemas-BUFUoO6G.js";
|
|
6
6
|
import "zod";
|
|
7
|
-
import {
|
|
8
|
-
import { f as
|
|
9
|
-
import { b as vt, m as Li, h as qi, d as xe, e as $i, i as k, u as _, R as zi, v as ji, r as Ui, z as Hi } from "./temporal-bucket-C4rqmwaQ.js";
|
|
7
|
+
import { d as yt, n as ki, j as Bi, e as Fe, g as Ki, i as R, H as _, R as Li, v as qi, r as $i, L as zi, X as ji } from "./temporal-input-presentation-DoSniQj1.js";
|
|
8
|
+
import { f as W } from "./pivot-result-contract-expectations-DMk-mKhG.js";
|
|
10
9
|
import "../value-format-preferences/index.js";
|
|
11
|
-
import { L as
|
|
12
|
-
import {
|
|
13
|
-
import { r as
|
|
14
|
-
import { g as
|
|
15
|
-
import { e as
|
|
16
|
-
import "./index-
|
|
10
|
+
import { L as Hi, w as de } from "./table-settings-DF1gdVQR.js";
|
|
11
|
+
import { dm as bt, du as vt, dv as Ui, dw as Gi, cR as Me, dx as Wi, cS as Qi, dy as A, as as Yi, dz as Ft, dA as De, dB as Ji, dC as Xi, dD as Ue, dE as Zi, dF as Ge, dG as en, dH as tn, Q as Ct, dI as It, dJ as xt, v as St, dK as We, Y as $, dL as Te, c$ as Qe, d1 as we, cY as Ye, dM as Je, dq as nn, bb as Pe, dN as rn, dO as an, dP as on, cV as G, be as Xe, dQ as sn, a2 as Mt, a3 as Dt, d as ln, dR as z, bg as cn, dS as un, bh as dn, aA as Tt, dT as fn, dU as mn, dV as pn, dW as hn, b as wt, dp as gn, dX as yn, dY as bn, d6 as Ce, dZ as vn, d_ as ye, c7 as Pt, d$ as Ze, e0 as Fn, bH as Cn, ca as et, c9 as In, e1 as xn } from "./global-date-filter-utils-Cc5tqkoW.js";
|
|
12
|
+
import { r as Sn } from "./pivot-result-identity-CrQ54Xbj.js";
|
|
13
|
+
import { g as Mn } from "./_commonjsHelpers-DimLPMtv.js";
|
|
14
|
+
import { e as Dn, d as Tn } from "./raw-temporal-presentation-DdEpgPRB.js";
|
|
15
|
+
import "./index-dIV-Gdsb.js";
|
|
17
16
|
import "./index-CuHybtft.js";
|
|
18
|
-
import { i as
|
|
19
|
-
import { R as
|
|
20
|
-
import { r as
|
|
21
|
-
const
|
|
22
|
-
function
|
|
23
|
-
return e != null && e.trim() ?
|
|
24
|
-
}
|
|
25
|
-
function
|
|
26
|
-
return !(e != null && e.trim()) ||
|
|
17
|
+
import { i as wn } from "./source-entity-resolution-DXW1HpKf.js";
|
|
18
|
+
import { R as Pn } from "./matrix-analytical-definition-4GTUDheD.js";
|
|
19
|
+
import { r as Ot } from "./applied-constraints-DU-wndZ7.js";
|
|
20
|
+
const Ha = 15, On = /\{\{-?\s*filters\s*\|\s*where\s*-?\}\}/i, An = /\{\{-?\s*filters\s*\|\s*and\s*-?\}\}/i, _n = /\bwhere\b/i;
|
|
21
|
+
function Nn(e) {
|
|
22
|
+
return e != null && e.trim() ? On.test(e) || An.test(e) : !1;
|
|
23
|
+
}
|
|
24
|
+
function Ua(e) {
|
|
25
|
+
return !(e != null && e.trim()) || Nn(e) ? null : _n.test(e) ? {
|
|
27
26
|
helper: "{{ filters | and }}",
|
|
28
27
|
description: "For queries with an existing WHERE clause."
|
|
29
28
|
} : {
|
|
@@ -31,60 +30,60 @@ function Wa(e) {
|
|
|
31
30
|
description: "For queries without a WHERE clause."
|
|
32
31
|
};
|
|
33
32
|
}
|
|
34
|
-
const
|
|
35
|
-
function
|
|
36
|
-
return e && e > 0 ? e :
|
|
33
|
+
const tt = [10, 20, 50, 100, 500, 1e3], En = 50;
|
|
34
|
+
function Rn(e) {
|
|
35
|
+
return e && e > 0 ? e : En;
|
|
37
36
|
}
|
|
38
|
-
function
|
|
39
|
-
const t =
|
|
40
|
-
return
|
|
37
|
+
function Ga(e) {
|
|
38
|
+
const t = Rn(e), i = [...tt];
|
|
39
|
+
return tt.includes(
|
|
41
40
|
t
|
|
42
41
|
) || (i.push(t), i.sort((n, r) => n - r)), i;
|
|
43
42
|
}
|
|
44
|
-
function
|
|
43
|
+
function Wa(e) {
|
|
45
44
|
var t, i;
|
|
46
|
-
return !!((e.type === "table" || e.type === "detailTable") && e.sql && !
|
|
45
|
+
return !!((e.type === "table" || e.type === "detailTable") && e.sql && !bt(e.config) && !((i = (t = e.preferences) == null ? void 0 : t.tablePrefs) != null && i.forceClientPagination));
|
|
47
46
|
}
|
|
48
|
-
function
|
|
47
|
+
function Vn(e, t) {
|
|
49
48
|
var n, r, a, o;
|
|
50
49
|
if (t === "table-print")
|
|
51
50
|
return "disabled";
|
|
52
51
|
if ((r = (n = e.preferences) == null ? void 0 : n.tablePrefs) != null && r.forceClientPagination)
|
|
53
52
|
return "client";
|
|
54
|
-
const i =
|
|
55
|
-
return e.sql && !i ? (o = (a = e.preferences) == null ? void 0 : a.tablePrefs) != null && o.enableDevModePagination ? "server" : "client" : i &&
|
|
53
|
+
const i = bt(e.config);
|
|
54
|
+
return e.sql && !i ? (o = (a = e.preferences) == null ? void 0 : a.tablePrefs) != null && o.enableDevModePagination ? "server" : "client" : i && oi(e) ? "server" : "client";
|
|
56
55
|
}
|
|
57
|
-
const
|
|
56
|
+
const At = Object.freeze({}), Qa = {
|
|
58
57
|
access: "session-only",
|
|
59
58
|
printMode: !1,
|
|
60
59
|
baseline: null,
|
|
61
60
|
applied: null,
|
|
62
61
|
appliedBookmark: null,
|
|
63
|
-
tableSettings:
|
|
62
|
+
tableSettings: At,
|
|
64
63
|
notices: [],
|
|
65
64
|
isFavorite: !1,
|
|
66
65
|
fetchedAt: 0
|
|
67
66
|
};
|
|
68
|
-
function
|
|
67
|
+
function Ya(e) {
|
|
69
68
|
return !e.viewer.printMode && e.viewer.access !== "session-only" && !!e.viewer.baseline && !!e.viewerStateClient && !e.isDashboardEditing;
|
|
70
69
|
}
|
|
71
|
-
function
|
|
72
|
-
return e.isDashboardEditing ?
|
|
70
|
+
function kn(e) {
|
|
71
|
+
return e.isDashboardEditing ? At : e.viewer.tableSettings;
|
|
73
72
|
}
|
|
74
|
-
function
|
|
75
|
-
return
|
|
73
|
+
function Bn(e, t) {
|
|
74
|
+
return kn(e)[t];
|
|
76
75
|
}
|
|
77
|
-
function
|
|
78
|
-
if (!(i.isEditorPreview || e.isDashboardEditing) &&
|
|
79
|
-
return { settings:
|
|
76
|
+
function Ja(e, t, i) {
|
|
77
|
+
if (!(i.isEditorPreview || e.isDashboardEditing) && Hi(e.dashboard, t))
|
|
78
|
+
return { settings: Bn(e, t) };
|
|
80
79
|
}
|
|
81
|
-
function
|
|
80
|
+
function Kn(e) {
|
|
82
81
|
var t;
|
|
83
|
-
return
|
|
82
|
+
return si({
|
|
84
83
|
card: e.card,
|
|
85
|
-
paginationMode:
|
|
84
|
+
paginationMode: Vn(e.card) === "server" ? "server" : "client",
|
|
86
85
|
result: {
|
|
87
|
-
keys: e.keys ??
|
|
86
|
+
keys: e.keys ?? li(e.records),
|
|
88
87
|
rows: e.records,
|
|
89
88
|
columns: e.resultColumns,
|
|
90
89
|
columnKeyMap: e.columnKeyMap,
|
|
@@ -94,11 +93,7 @@ function Ln(e) {
|
|
|
94
93
|
projection: "export"
|
|
95
94
|
});
|
|
96
95
|
}
|
|
97
|
-
const
|
|
98
|
-
e = e.replace("#", "");
|
|
99
|
-
const t = Number.parseInt(e.substr(0, 2), 16), i = Number.parseInt(e.substr(2, 2), 16), n = Number.parseInt(e.substr(4, 2), 16);
|
|
100
|
-
return (0.299 * t + 0.587 * i + 0.114 * n) / 255 > 0.5 ? "#000000" : "#ffffff";
|
|
101
|
-
}, qn = () => ({
|
|
96
|
+
const Ln = () => ({
|
|
102
97
|
urlTemplate: "{value}",
|
|
103
98
|
// Default: use cell value as-is
|
|
104
99
|
labelType: "value",
|
|
@@ -107,7 +102,7 @@ const eo = (e) => {
|
|
|
107
102
|
labelColumn: "",
|
|
108
103
|
openInNewTab: !0
|
|
109
104
|
// Default: open in new tab (current behavior)
|
|
110
|
-
}),
|
|
105
|
+
}), Oe = () => ({
|
|
111
106
|
type: "none",
|
|
112
107
|
inheritMetricFormat: !0,
|
|
113
108
|
textAlign: "left",
|
|
@@ -142,13 +137,13 @@ const eo = (e) => {
|
|
|
142
137
|
sourceTimezone: "auto"
|
|
143
138
|
// Default to auto (use explicit timezone if present, otherwise assume UTC)
|
|
144
139
|
},
|
|
145
|
-
linkFormat:
|
|
140
|
+
linkFormat: Ln(),
|
|
146
141
|
colorRanges: []
|
|
147
142
|
});
|
|
148
|
-
function
|
|
143
|
+
function Xa(e, t, i, n) {
|
|
149
144
|
return t && t !== "auto" ? t : i;
|
|
150
145
|
}
|
|
151
|
-
const
|
|
146
|
+
const Za = (e) => !e || e === "auto" ? "local time" : {
|
|
152
147
|
"America/New_York": "Eastern Time",
|
|
153
148
|
"America/Chicago": "Central Time",
|
|
154
149
|
"America/Denver": "Mountain Time",
|
|
@@ -159,11 +154,11 @@ const io = (e) => !e || e === "auto" ? "local time" : {
|
|
|
159
154
|
"Asia/Shanghai": "China Time",
|
|
160
155
|
UTC: "UTC"
|
|
161
156
|
}[e] || e;
|
|
162
|
-
function
|
|
163
|
-
const t =
|
|
164
|
-
return !!(t &&
|
|
157
|
+
function qn(e) {
|
|
158
|
+
const t = W(e == null ? void 0 : e.format);
|
|
159
|
+
return !!(t && yt(t));
|
|
165
160
|
}
|
|
166
|
-
function
|
|
161
|
+
function $n(e, t) {
|
|
167
162
|
var o, s;
|
|
168
163
|
if (!(e != null && e.config) || e.type === "matrixTable" || (o = e.sql) != null && o.trim() || (s = e.python) != null && s.trim())
|
|
169
164
|
return;
|
|
@@ -201,16 +196,16 @@ function Me(e, t) {
|
|
|
201
196
|
t.metricAlias,
|
|
202
197
|
...t.columnIds || []
|
|
203
198
|
].filter((f) => f !== void 0), c = n.map((f) => {
|
|
204
|
-
var d,
|
|
199
|
+
var d, g;
|
|
205
200
|
return {
|
|
206
201
|
...f,
|
|
207
202
|
bindings: [
|
|
208
|
-
|
|
203
|
+
Sn(
|
|
209
204
|
t.columnKeyMap,
|
|
210
205
|
f.field.id,
|
|
211
206
|
f.role
|
|
212
207
|
),
|
|
213
|
-
f.role === "metric" && f.field.alias ? (
|
|
208
|
+
f.role === "metric" && f.field.alias ? (g = (d = t.columnKeyMap) == null ? void 0 : d.byMetricAlias) == null ? void 0 : g[f.field.alias] : void 0
|
|
214
209
|
]
|
|
215
210
|
};
|
|
216
211
|
}), u = c.filter(
|
|
@@ -243,46 +238,15 @@ function Me(e, t) {
|
|
|
243
238
|
)
|
|
244
239
|
);
|
|
245
240
|
}
|
|
246
|
-
function
|
|
247
|
-
return Me(e, {
|
|
248
|
-
fieldId: t.id,
|
|
249
|
-
fieldRole: "groupby"
|
|
250
|
-
}) ?? Me(
|
|
251
|
-
e,
|
|
252
|
-
i ? {
|
|
253
|
-
columnIds: [t.alias, t.name, t.id].filter(
|
|
254
|
-
(n) => !!n
|
|
255
|
-
),
|
|
256
|
-
columnKeyMap: i,
|
|
257
|
-
fieldRole: "groupby"
|
|
258
|
-
} : { fieldId: t.id, fieldRole: "groupby" }
|
|
259
|
-
);
|
|
260
|
-
}
|
|
261
|
-
function no(e, t, i) {
|
|
262
|
-
return e.map((n) => {
|
|
263
|
-
const r = zn(
|
|
264
|
-
t,
|
|
265
|
-
n,
|
|
266
|
-
i
|
|
267
|
-
);
|
|
268
|
-
if (!r) return n;
|
|
269
|
-
const { format: a, ...o } = n;
|
|
270
|
-
return {
|
|
271
|
-
...o,
|
|
272
|
-
...r.label ? { label: r.label } : {},
|
|
273
|
-
...r.format !== void 0 ? { format: r.format } : {}
|
|
274
|
-
};
|
|
275
|
-
});
|
|
276
|
-
}
|
|
277
|
-
function Et(e, t) {
|
|
241
|
+
function _t(e, t) {
|
|
278
242
|
const i = typeof e.decimalPlaces == "number", n = typeof e.minimumFractionDigits == "number" ? e.minimumFractionDigits : i ? e.decimalPlaces : t.min, r = typeof e.maximumFractionDigits == "number" ? e.maximumFractionDigits : i ? e.decimalPlaces : t.max;
|
|
279
243
|
return {
|
|
280
244
|
minimumFractionDigits: n,
|
|
281
245
|
maximumFractionDigits: Math.max(n, r)
|
|
282
246
|
};
|
|
283
247
|
}
|
|
284
|
-
function
|
|
285
|
-
const i =
|
|
248
|
+
function le(e, t) {
|
|
249
|
+
const i = _t(e, t), n = typeof e.suffix == "string" && e.suffix.length > 0;
|
|
286
250
|
return {
|
|
287
251
|
style: "decimal",
|
|
288
252
|
locale: e.locale,
|
|
@@ -299,42 +263,42 @@ function de(e, t) {
|
|
|
299
263
|
percentValueMode: e.percentValueMode
|
|
300
264
|
};
|
|
301
265
|
}
|
|
302
|
-
function
|
|
303
|
-
switch (t === "auto" && (t =
|
|
266
|
+
function Nt(e, t = "auto", i = {}) {
|
|
267
|
+
switch (t === "auto" && (t = Gn(e, i)), t) {
|
|
304
268
|
case "number":
|
|
305
|
-
return
|
|
269
|
+
return Et(e, i);
|
|
306
270
|
case "currency":
|
|
307
|
-
return
|
|
271
|
+
return Rt(e, i);
|
|
308
272
|
case "percent":
|
|
309
|
-
return
|
|
273
|
+
return zn(e, i);
|
|
310
274
|
case "date":
|
|
311
|
-
return
|
|
275
|
+
return jn(e, i);
|
|
312
276
|
case "scientific":
|
|
313
277
|
return Hn(e, i);
|
|
314
278
|
case "duration":
|
|
315
|
-
return
|
|
279
|
+
return Un(e, i);
|
|
316
280
|
default:
|
|
317
281
|
return String(e);
|
|
318
282
|
}
|
|
319
283
|
}
|
|
320
|
-
function
|
|
321
|
-
return e < 0 && !!t.prefix && !t.negativeInParentheses ? `-${
|
|
284
|
+
function Et(e, t = {}) {
|
|
285
|
+
return e < 0 && !!t.prefix && !t.negativeInParentheses ? `-${Fe(
|
|
322
286
|
Math.abs(e),
|
|
323
|
-
|
|
287
|
+
le(t, {
|
|
324
288
|
min: 0,
|
|
325
289
|
max: 0
|
|
326
290
|
})
|
|
327
|
-
)}` :
|
|
291
|
+
)}` : Fe(
|
|
328
292
|
e,
|
|
329
|
-
|
|
293
|
+
le(t, {
|
|
330
294
|
min: 0,
|
|
331
295
|
max: 0
|
|
332
296
|
})
|
|
333
297
|
);
|
|
334
298
|
}
|
|
335
|
-
function
|
|
336
|
-
return
|
|
337
|
-
...
|
|
299
|
+
function Rt(e, t = {}) {
|
|
300
|
+
return Ki(e, {
|
|
301
|
+
...le(t, {
|
|
338
302
|
min: 2,
|
|
339
303
|
max: 2
|
|
340
304
|
}),
|
|
@@ -342,9 +306,9 @@ function kt(e, t = {}) {
|
|
|
342
306
|
currency: t.currency || "USD"
|
|
343
307
|
});
|
|
344
308
|
}
|
|
345
|
-
function
|
|
346
|
-
const i =
|
|
347
|
-
return
|
|
309
|
+
function zn(e, t = {}) {
|
|
310
|
+
const i = _t(t, { min: 1, max: 1 }), r = typeof t.multiplyBy == "number" && Number.isFinite(t.multiplyBy) ? t.multiplyBy : t.percentValueMode === "whole" ? 1 : 100, a = e * r;
|
|
311
|
+
return Fe(a, {
|
|
348
312
|
locale: t.locale,
|
|
349
313
|
minimumFractionDigits: i.minimumFractionDigits,
|
|
350
314
|
maximumFractionDigits: i.maximumFractionDigits,
|
|
@@ -355,7 +319,7 @@ function jn(e, t = {}) {
|
|
|
355
319
|
useSuffix: !1
|
|
356
320
|
});
|
|
357
321
|
}
|
|
358
|
-
function
|
|
322
|
+
function jn(e, t = {}) {
|
|
359
323
|
const { locale: i = "en-US" } = t;
|
|
360
324
|
try {
|
|
361
325
|
const n = new Date(e);
|
|
@@ -367,13 +331,13 @@ function Un(e, t = {}) {
|
|
|
367
331
|
}
|
|
368
332
|
}
|
|
369
333
|
function Hn(e, t = {}) {
|
|
370
|
-
return
|
|
334
|
+
return Bi(
|
|
371
335
|
e,
|
|
372
|
-
|
|
336
|
+
le(t, { min: 2, max: 2 })
|
|
373
337
|
);
|
|
374
338
|
}
|
|
375
|
-
function
|
|
376
|
-
return
|
|
339
|
+
function Un(e, t = {}) {
|
|
340
|
+
return ki(e, {
|
|
377
341
|
inputUnit: t.durationInputUnit,
|
|
378
342
|
outputStyle: t.durationDisplayStyle,
|
|
379
343
|
largestUnit: t.durationLargestUnit,
|
|
@@ -384,13 +348,13 @@ function Gn(e, t = {}) {
|
|
|
384
348
|
negativeInParentheses: t.negativeInParentheses
|
|
385
349
|
});
|
|
386
350
|
}
|
|
387
|
-
function
|
|
351
|
+
function Gn(e, t) {
|
|
388
352
|
return t.currency ? "currency" : typeof e == "string" && !isNaN(Date.parse(e)) ? "date" : "number";
|
|
389
353
|
}
|
|
390
|
-
function
|
|
391
|
-
return (i) =>
|
|
354
|
+
function eo(e, t = {}) {
|
|
355
|
+
return (i) => Nt(i, e, t);
|
|
392
356
|
}
|
|
393
|
-
function
|
|
357
|
+
function Wn({
|
|
394
358
|
number: e,
|
|
395
359
|
decimalPlaces: t = 0,
|
|
396
360
|
useSuffix: i = !1,
|
|
@@ -399,7 +363,7 @@ function Qn({
|
|
|
399
363
|
locale: a = "en-US"
|
|
400
364
|
}) {
|
|
401
365
|
if (r) {
|
|
402
|
-
const o =
|
|
366
|
+
const o = Rt(e, {
|
|
403
367
|
currency: r,
|
|
404
368
|
decimalPlaces: t,
|
|
405
369
|
locale: a,
|
|
@@ -407,14 +371,14 @@ function Qn({
|
|
|
407
371
|
});
|
|
408
372
|
return i && n ? `${o}${n}` : o;
|
|
409
373
|
}
|
|
410
|
-
return
|
|
374
|
+
return Et(e, {
|
|
411
375
|
decimalPlaces: t,
|
|
412
376
|
useSuffix: i && !n,
|
|
413
377
|
suffix: n,
|
|
414
378
|
locale: a
|
|
415
379
|
});
|
|
416
380
|
}
|
|
417
|
-
var
|
|
381
|
+
var Qn = function e(t, i) {
|
|
418
382
|
if (t === i) return !0;
|
|
419
383
|
if (t && i && typeof t == "object" && typeof i == "object") {
|
|
420
384
|
if (t.constructor !== i.constructor) return !1;
|
|
@@ -440,8 +404,8 @@ var Yn = function e(t, i) {
|
|
|
440
404
|
}
|
|
441
405
|
return t !== t && i !== i;
|
|
442
406
|
};
|
|
443
|
-
const
|
|
444
|
-
function
|
|
407
|
+
const ce = /* @__PURE__ */ Mn(Qn);
|
|
408
|
+
function Yn(e) {
|
|
445
409
|
if (typeof e == "number")
|
|
446
410
|
return Number.isFinite(e);
|
|
447
411
|
if (typeof e != "string")
|
|
@@ -449,7 +413,7 @@ function Jn(e) {
|
|
|
449
413
|
const t = e.trim().replace(/,/g, "");
|
|
450
414
|
return t !== "" && Number.isFinite(Number(t));
|
|
451
415
|
}
|
|
452
|
-
function
|
|
416
|
+
function Jn(e) {
|
|
453
417
|
if (!(e != null && e.length))
|
|
454
418
|
return [];
|
|
455
419
|
const t = /* @__PURE__ */ new Set();
|
|
@@ -457,33 +421,33 @@ function Xn(e) {
|
|
|
457
421
|
Object.keys(i).forEach((n) => t.add(n));
|
|
458
422
|
}), [...t];
|
|
459
423
|
}
|
|
460
|
-
function
|
|
461
|
-
return
|
|
462
|
-
(i) => e == null ? void 0 : e.some((n) =>
|
|
424
|
+
function Xn(e) {
|
|
425
|
+
return Jn(e).filter(
|
|
426
|
+
(i) => e == null ? void 0 : e.some((n) => Yn(n[i]))
|
|
463
427
|
);
|
|
464
428
|
}
|
|
465
|
-
function
|
|
429
|
+
function Ae(e, t) {
|
|
466
430
|
var i;
|
|
467
431
|
if (t.id)
|
|
468
432
|
return (i = e.sql) != null && i.trim() ? { kind: "column", columnKey: t.id } : { kind: "metric", metricId: t.id };
|
|
469
433
|
}
|
|
470
|
-
function
|
|
434
|
+
function Vt(e) {
|
|
471
435
|
const t = e.context.preferences;
|
|
472
436
|
if (!t)
|
|
473
437
|
return e.authoredFormat;
|
|
474
|
-
const i =
|
|
438
|
+
const i = Ae(e.card, e.metric);
|
|
475
439
|
return _(
|
|
476
440
|
e.authoredFormat,
|
|
477
441
|
t,
|
|
478
442
|
i ? e.context.resolveBoundCurrency(i) : void 0
|
|
479
443
|
);
|
|
480
444
|
}
|
|
481
|
-
function
|
|
445
|
+
function Zn(e) {
|
|
482
446
|
var a, o, s;
|
|
483
|
-
const t = (s = (o = (a = e.card.preferences) == null ? void 0 : a.tablePrefs) == null ? void 0 : o.columnSettingsMap) == null ? void 0 : s[e.columnKey], i = (t == null ? void 0 : t.type) === "number" ?
|
|
447
|
+
const t = (s = (o = (a = e.card.preferences) == null ? void 0 : a.tablePrefs) == null ? void 0 : o.columnSettingsMap) == null ? void 0 : s[e.columnKey], i = (t == null ? void 0 : t.type) === "number" ? ci(
|
|
484
448
|
{ dataType: "number", format: void 0 },
|
|
485
449
|
t
|
|
486
|
-
) : void 0, n = i == null ? void 0 : i.authoredFormat, r =
|
|
450
|
+
) : void 0, n = i == null ? void 0 : i.authoredFormat, r = R(n) ? Vt({
|
|
487
451
|
card: e.card,
|
|
488
452
|
metric: {
|
|
489
453
|
id: e.columnKey
|
|
@@ -501,10 +465,10 @@ function er(e) {
|
|
|
501
465
|
format: r
|
|
502
466
|
};
|
|
503
467
|
}
|
|
504
|
-
function
|
|
468
|
+
function to(e) {
|
|
505
469
|
var r, a;
|
|
506
470
|
const t = new Set(
|
|
507
|
-
|
|
471
|
+
Xn(e.records)
|
|
508
472
|
), i = new Set(
|
|
509
473
|
e.renderedMetricKeys || e.resultKeys
|
|
510
474
|
), n = ((a = (r = e.card.preferences) == null ? void 0 : r.tablePrefs) == null ? void 0 : a.columnSettingsMap) || {};
|
|
@@ -515,29 +479,29 @@ function ao(e) {
|
|
|
515
479
|
}
|
|
516
480
|
);
|
|
517
481
|
}
|
|
518
|
-
function
|
|
482
|
+
function io(e) {
|
|
519
483
|
var a, o;
|
|
520
484
|
const { card: t, context: i } = e;
|
|
521
|
-
if (!(i != null && i.preferences) || !
|
|
485
|
+
if (!(i != null && i.preferences) || !vt(t.type))
|
|
522
486
|
return t;
|
|
523
487
|
const n = i.preferences, r = (a = t.sql) != null && a.trim() ? e.resultMetricKeys.map(
|
|
524
|
-
(s) =>
|
|
488
|
+
(s) => Zn({
|
|
525
489
|
card: t,
|
|
526
490
|
columnKey: s,
|
|
527
491
|
context: i
|
|
528
492
|
})
|
|
529
493
|
) : (((o = t.config) == null ? void 0 : o.metricColumns) || []).map((s) => {
|
|
530
|
-
const l =
|
|
531
|
-
if (!
|
|
494
|
+
const l = dt(t, s), c = l.authoredFormat;
|
|
495
|
+
if (!R(c))
|
|
532
496
|
return s;
|
|
533
|
-
const u =
|
|
497
|
+
const u = Ae(t, s), f = u ? i.resolveBoundCurrency(u) : void 0;
|
|
534
498
|
return l.source === "inferred" && !f ? s : {
|
|
535
499
|
...s,
|
|
536
500
|
format: l.source === "inferred" ? _(
|
|
537
501
|
c,
|
|
538
502
|
n,
|
|
539
503
|
f
|
|
540
|
-
) :
|
|
504
|
+
) : Vt({
|
|
541
505
|
card: t,
|
|
542
506
|
metric: s,
|
|
543
507
|
context: i,
|
|
@@ -553,16 +517,16 @@ function oo(e) {
|
|
|
553
517
|
}
|
|
554
518
|
};
|
|
555
519
|
}
|
|
556
|
-
function
|
|
520
|
+
function fe(e) {
|
|
557
521
|
var l;
|
|
558
522
|
const { card: t, context: i, formatOptions: n } = e, r = i == null ? void 0 : i.preferences;
|
|
559
|
-
if (!t || !r || !
|
|
523
|
+
if (!t || !r || !vt(t.type))
|
|
560
524
|
return n;
|
|
561
525
|
if (!n) {
|
|
562
526
|
const c = e.metrics.filter(
|
|
563
527
|
(f) => !!f
|
|
564
528
|
), u = c.some(
|
|
565
|
-
(f) =>
|
|
529
|
+
(f) => R(f.format)
|
|
566
530
|
);
|
|
567
531
|
return c.length < 2 || !u ? n : K(
|
|
568
532
|
_({ type: "number" }, r),
|
|
@@ -573,7 +537,7 @@ function he(e) {
|
|
|
573
537
|
const c = e.metrics.filter(
|
|
574
538
|
(f) => !!f
|
|
575
539
|
), u = c.filter(
|
|
576
|
-
(f) =>
|
|
540
|
+
(f) => R(f.format)
|
|
577
541
|
);
|
|
578
542
|
if (u.length === 0)
|
|
579
543
|
return n;
|
|
@@ -583,15 +547,15 @@ function he(e) {
|
|
|
583
547
|
{ preserveOmittedProperties: !0 }
|
|
584
548
|
);
|
|
585
549
|
}
|
|
586
|
-
const a =
|
|
550
|
+
const a = ft(n, {
|
|
587
551
|
preserveOmittedProperties: !0
|
|
588
552
|
});
|
|
589
|
-
if (!
|
|
553
|
+
if (!R(a))
|
|
590
554
|
return n;
|
|
591
555
|
const o = e.metrics.flatMap((c) => {
|
|
592
556
|
if (!c)
|
|
593
557
|
return [];
|
|
594
|
-
const u =
|
|
558
|
+
const u = Ae(t, c);
|
|
595
559
|
return [
|
|
596
560
|
_(
|
|
597
561
|
a,
|
|
@@ -606,7 +570,7 @@ function he(e) {
|
|
|
606
570
|
{ preserveOmittedProperties: !0 }
|
|
607
571
|
);
|
|
608
572
|
const [s] = o;
|
|
609
|
-
if (o.some((c) => !
|
|
573
|
+
if (o.some((c) => !ce(c, s))) {
|
|
610
574
|
const c = _(
|
|
611
575
|
{
|
|
612
576
|
...a,
|
|
@@ -623,84 +587,84 @@ function he(e) {
|
|
|
623
587
|
preserveOmittedProperties: !0
|
|
624
588
|
});
|
|
625
589
|
}
|
|
626
|
-
const
|
|
590
|
+
const er = /* @__PURE__ */ new Set([
|
|
627
591
|
"horizontalBar",
|
|
628
592
|
"tornado",
|
|
629
593
|
"pyramid",
|
|
630
594
|
"range"
|
|
631
|
-
]),
|
|
595
|
+
]), tr = /* @__PURE__ */ new Set([
|
|
632
596
|
"tornado",
|
|
633
597
|
"pyramid",
|
|
634
598
|
"range"
|
|
635
|
-
]),
|
|
599
|
+
]), ir = /* @__PURE__ */ new Set([
|
|
636
600
|
"tornado",
|
|
637
601
|
"pyramid",
|
|
638
602
|
"range"
|
|
639
603
|
]);
|
|
640
|
-
function
|
|
604
|
+
function nr(e) {
|
|
641
605
|
const { chartType: t, resultKeys: i, config: n } = e, r = 1 + (n != null && n.enableGrouping && (n.groupKey || i[1]) ? 1 : 0), a = i.slice(r), o = (n == null ? void 0 : n.xMetricKey) ?? a[0], s = (n == null ? void 0 : n.yMetricKey) ?? a[1] ?? a[0], l = t === "bubble" ? (n == null ? void 0 : n.radiusMetricKey) ?? a[2] ?? a[1] ?? a[0] : void 0, c = new Set(i);
|
|
642
606
|
return [o, s, l].filter((u) => !!u).filter((u) => c.has(u));
|
|
643
607
|
}
|
|
644
|
-
function
|
|
608
|
+
function no(e) {
|
|
645
609
|
const { chartType: t, resultKeys: i, preferences: n } = e;
|
|
646
610
|
return t === "scatter" || t === "bubble" ? [
|
|
647
611
|
...new Set(
|
|
648
|
-
|
|
612
|
+
nr({
|
|
649
613
|
chartType: t,
|
|
650
614
|
resultKeys: i,
|
|
651
615
|
config: n == null ? void 0 : n.bubbleScatterConfig
|
|
652
616
|
})
|
|
653
617
|
)
|
|
654
|
-
] :
|
|
618
|
+
] : ir.has(t || "") ? i.slice(2) : i.length === 1 ? [i[0]] : i.slice(1);
|
|
655
619
|
}
|
|
656
|
-
function
|
|
620
|
+
function te(e, t) {
|
|
657
621
|
var i;
|
|
658
|
-
return ((i = t == null ? void 0 : t.chartOptions) == null ? void 0 : i.indexAxis) === "y" ||
|
|
622
|
+
return ((i = t == null ? void 0 : t.chartOptions) == null ? void 0 : i.indexAxis) === "y" || er.has(e || "") ? "x" : "y";
|
|
659
623
|
}
|
|
660
|
-
function
|
|
661
|
-
return
|
|
624
|
+
function ro(e, t) {
|
|
625
|
+
return te(e, t) === "x";
|
|
662
626
|
}
|
|
663
|
-
function
|
|
664
|
-
return
|
|
627
|
+
function rr(e, t) {
|
|
628
|
+
return te(e, t) === "y" ? t == null ? void 0 : t.yAxisConfig : (t == null ? void 0 : t.xAxisConfig) || (tr.has(e || "") ? t == null ? void 0 : t.yAxisConfig : void 0);
|
|
665
629
|
}
|
|
666
|
-
function
|
|
630
|
+
function X(e) {
|
|
667
631
|
return e ? Object.entries(e).some(([t, i]) => i == null || i === "" ? !1 : t === "type" ? i !== "auto" : !0) : !1;
|
|
668
632
|
}
|
|
669
|
-
function
|
|
633
|
+
function kt(e) {
|
|
670
634
|
if (e)
|
|
671
635
|
return e.alias || e.label || e.name;
|
|
672
636
|
}
|
|
673
|
-
function
|
|
637
|
+
function Ie(e, t) {
|
|
674
638
|
var n;
|
|
675
639
|
return (((n = e == null ? void 0 : e.config) == null ? void 0 : n.metricColumns) || []).find((r) => {
|
|
676
|
-
const a =
|
|
640
|
+
const a = kt(r);
|
|
677
641
|
return t.metricId && r.id === t.metricId || t.metricAlias && a === t.metricAlias || t.metricAlias && r.alias === t.metricAlias || t.columnId && a === t.columnId || t.columnId && r.alias === t.columnId || t.columnId && r.label === t.columnId || t.columnId && r.name === t.columnId;
|
|
678
642
|
});
|
|
679
643
|
}
|
|
680
|
-
function
|
|
644
|
+
function ie(e, t) {
|
|
681
645
|
var n, r;
|
|
682
|
-
const i =
|
|
683
|
-
if (!(i && ((r = (n = e == null ? void 0 : e.config) == null ? void 0 : n.groupByColumns) != null && r.includes(i)) &&
|
|
646
|
+
const i = $n(e, t);
|
|
647
|
+
if (!(i && ((r = (n = e == null ? void 0 : e.config) == null ? void 0 : n.groupByColumns) != null && r.includes(i)) && !qn(i)))
|
|
684
648
|
return i;
|
|
685
649
|
}
|
|
686
|
-
function
|
|
687
|
-
return !!e && !(e != null && e.format) &&
|
|
650
|
+
function ar(e) {
|
|
651
|
+
return !!e && !(e != null && e.format) && ht(e == null ? void 0 : e.dataType) === "number";
|
|
688
652
|
}
|
|
689
|
-
const
|
|
653
|
+
const or = {
|
|
690
654
|
style: "decimal",
|
|
691
655
|
showDataBar: !1,
|
|
692
656
|
dataBarColor: "#3b82f6"
|
|
693
657
|
};
|
|
694
|
-
function
|
|
658
|
+
function Bt(e) {
|
|
695
659
|
if (!e)
|
|
696
660
|
return;
|
|
697
|
-
const t =
|
|
661
|
+
const t = Oe();
|
|
698
662
|
return {
|
|
699
663
|
...t,
|
|
700
664
|
...e,
|
|
701
665
|
inheritMetricFormat: e.numberFormat ? e.inheritMetricFormat : e.inheritMetricFormat ?? t.inheritMetricFormat,
|
|
702
666
|
numberFormat: {
|
|
703
|
-
...
|
|
667
|
+
...or,
|
|
704
668
|
...e.numberFormat
|
|
705
669
|
},
|
|
706
670
|
dateFormat: {
|
|
@@ -713,21 +677,21 @@ function Lt(e) {
|
|
|
713
677
|
}
|
|
714
678
|
};
|
|
715
679
|
}
|
|
716
|
-
function
|
|
680
|
+
function ao(e) {
|
|
717
681
|
return Object.fromEntries(
|
|
718
682
|
Object.entries(e || {}).map(([t, i]) => [
|
|
719
683
|
t,
|
|
720
|
-
|
|
684
|
+
Bt(i)
|
|
721
685
|
])
|
|
722
686
|
);
|
|
723
687
|
}
|
|
724
|
-
function
|
|
688
|
+
function ae(e) {
|
|
725
689
|
return !!(e && typeof e == "object" && !Array.isArray(e) && Object.getPrototypeOf(e) === Object.prototype);
|
|
726
690
|
}
|
|
727
|
-
function
|
|
728
|
-
if (!
|
|
691
|
+
function Kt(e, t, i) {
|
|
692
|
+
if (!ae(i))
|
|
729
693
|
return i;
|
|
730
|
-
const n =
|
|
694
|
+
const n = ae(e) ? e : {}, r = ae(t) ? t : {}, a = {};
|
|
731
695
|
for (const o of Object.keys(i)) {
|
|
732
696
|
const s = i[o];
|
|
733
697
|
if (s === void 0)
|
|
@@ -736,23 +700,23 @@ function qt(e, t, i) {
|
|
|
736
700
|
n,
|
|
737
701
|
o
|
|
738
702
|
), c = r[o];
|
|
739
|
-
if (l &&
|
|
703
|
+
if (l && ce(s, c)) {
|
|
740
704
|
a[o] = n[o];
|
|
741
705
|
continue;
|
|
742
706
|
}
|
|
743
|
-
if (!l &&
|
|
707
|
+
if (!l && ce(s, c))
|
|
744
708
|
continue;
|
|
745
|
-
const u =
|
|
709
|
+
const u = Kt(
|
|
746
710
|
n[o],
|
|
747
711
|
c,
|
|
748
712
|
s
|
|
749
713
|
);
|
|
750
|
-
|
|
714
|
+
ae(u) && Object.keys(u).length === 0 && !l || (a[o] = u);
|
|
751
715
|
}
|
|
752
716
|
return a;
|
|
753
717
|
}
|
|
754
|
-
function
|
|
755
|
-
let t =
|
|
718
|
+
function sr(e) {
|
|
719
|
+
let t = Kt(
|
|
756
720
|
e.persisted,
|
|
757
721
|
e.baseline,
|
|
758
722
|
e.next
|
|
@@ -760,11 +724,11 @@ function lr(e) {
|
|
|
760
724
|
if (e.enforceDeclaredSqlTemporalFormat && e.next.type === "date" && !e.next.dateFormat.useRelativeTime && e.next.dateFormat.useCustomFormat) {
|
|
761
725
|
const i = e.next.dateFormat.customFormat;
|
|
762
726
|
if (!(i != null && i.trim()))
|
|
763
|
-
throw new
|
|
727
|
+
throw new Li(
|
|
764
728
|
"invalid_raw_temporal_format",
|
|
765
729
|
"Custom table date formatting requires a non-empty pattern."
|
|
766
730
|
);
|
|
767
|
-
|
|
731
|
+
qi({
|
|
768
732
|
dialect: "date_fns",
|
|
769
733
|
pattern: i,
|
|
770
734
|
valueKind: e.rawTemporalValueKind
|
|
@@ -777,7 +741,7 @@ function lr(e) {
|
|
|
777
741
|
}
|
|
778
742
|
};
|
|
779
743
|
}
|
|
780
|
-
return e.next.type === "number" && !
|
|
744
|
+
return e.next.type === "number" && !ce(e.next.numberFormat, e.baseline.numberFormat) && t.numberFormat ? {
|
|
781
745
|
...t,
|
|
782
746
|
type: "number",
|
|
783
747
|
inheritMetricFormat: e.next.inheritMetricFormat ?? !1
|
|
@@ -790,10 +754,10 @@ function lr(e) {
|
|
|
790
754
|
type: "date"
|
|
791
755
|
} : t;
|
|
792
756
|
}
|
|
793
|
-
function
|
|
794
|
-
return e.reset ?
|
|
757
|
+
function oo(e) {
|
|
758
|
+
return e.reset ? lr(e.persisted, e.columnId) : {
|
|
795
759
|
...e.persisted,
|
|
796
|
-
[e.columnId]:
|
|
760
|
+
[e.columnId]: sr({
|
|
797
761
|
persisted: e.persisted[e.columnId],
|
|
798
762
|
baseline: e.baseline,
|
|
799
763
|
next: e.next,
|
|
@@ -803,14 +767,14 @@ function uo(e) {
|
|
|
803
767
|
})
|
|
804
768
|
};
|
|
805
769
|
}
|
|
806
|
-
function
|
|
770
|
+
function lr(e, t) {
|
|
807
771
|
if (!(t in e))
|
|
808
772
|
return e;
|
|
809
773
|
const i = { ...e };
|
|
810
774
|
return delete i[t], i;
|
|
811
775
|
}
|
|
812
|
-
function
|
|
813
|
-
const i = e ||
|
|
776
|
+
function cr(e, t) {
|
|
777
|
+
const i = e || Oe(), n = !t;
|
|
814
778
|
return {
|
|
815
779
|
...i,
|
|
816
780
|
type: "number",
|
|
@@ -828,25 +792,25 @@ function ur(e, t) {
|
|
|
828
792
|
}
|
|
829
793
|
};
|
|
830
794
|
}
|
|
831
|
-
function
|
|
795
|
+
function be(e) {
|
|
832
796
|
if (e)
|
|
833
797
|
return e.trim().toLowerCase();
|
|
834
798
|
}
|
|
835
|
-
const
|
|
836
|
-
function
|
|
799
|
+
const Lt = /\s*(?:\((?:previous|last year|start|target|comparison)\)|δ)\s*$/i;
|
|
800
|
+
function ur(e) {
|
|
837
801
|
const t = e == null ? void 0 : e.trim();
|
|
838
|
-
return t ? t.replace(
|
|
802
|
+
return t ? t.replace(Lt, "").trim() || t : void 0;
|
|
839
803
|
}
|
|
840
|
-
function
|
|
804
|
+
function dr(e) {
|
|
841
805
|
const t = e == null ? void 0 : e.trim();
|
|
842
|
-
return t ?
|
|
806
|
+
return t ? Lt.test(t) : !1;
|
|
843
807
|
}
|
|
844
|
-
function
|
|
808
|
+
function fr(e, t) {
|
|
845
809
|
return t.metricAlias ? e.find(
|
|
846
|
-
(i) =>
|
|
810
|
+
(i) => Ri(i) === t.metricAlias
|
|
847
811
|
) : t.metricId ? e.find((i) => i.id === t.metricId) : void 0;
|
|
848
812
|
}
|
|
849
|
-
function
|
|
813
|
+
function mr(e) {
|
|
850
814
|
var b;
|
|
851
815
|
const {
|
|
852
816
|
card: t,
|
|
@@ -857,26 +821,26 @@ function pr(e) {
|
|
|
857
821
|
metricKey: o
|
|
858
822
|
} = e, s = ((b = t == null ? void 0 : t.config) == null ? void 0 : b.metricColumns) || [];
|
|
859
823
|
if (n || i)
|
|
860
|
-
return
|
|
824
|
+
return fr(s, {
|
|
861
825
|
metricAlias: n,
|
|
862
826
|
metricId: i
|
|
863
827
|
});
|
|
864
828
|
const l = [o, a], c = l.some(
|
|
865
|
-
(m) =>
|
|
829
|
+
(m) => dr(m)
|
|
866
830
|
), u = l.filter(
|
|
867
831
|
(m) => !!m
|
|
868
832
|
);
|
|
869
833
|
for (const m of u) {
|
|
870
|
-
const y =
|
|
834
|
+
const y = Ie(t, {
|
|
871
835
|
columnId: m,
|
|
872
836
|
metricAlias: m
|
|
873
837
|
});
|
|
874
838
|
if (y)
|
|
875
839
|
return y;
|
|
876
840
|
}
|
|
877
|
-
const f = u.map((m) =>
|
|
841
|
+
const f = u.map((m) => be(m)).filter((m) => !!m), d = u.map((m) => ur(m)).filter((m) => !!m);
|
|
878
842
|
for (const m of d) {
|
|
879
|
-
const y =
|
|
843
|
+
const y = Ie(t, {
|
|
880
844
|
columnId: m,
|
|
881
845
|
metricAlias: m
|
|
882
846
|
});
|
|
@@ -887,9 +851,9 @@ function pr(e) {
|
|
|
887
851
|
return s[0];
|
|
888
852
|
if (!c && typeof r == "number" && r >= 0 && r < s.length)
|
|
889
853
|
return s[r];
|
|
890
|
-
const
|
|
854
|
+
const g = d.map((m) => be(m)).filter((m) => !!m), v = [
|
|
891
855
|
...f,
|
|
892
|
-
...
|
|
856
|
+
...g
|
|
893
857
|
];
|
|
894
858
|
if (v.length !== 0)
|
|
895
859
|
return s.find((m) => {
|
|
@@ -897,59 +861,59 @@ function pr(e) {
|
|
|
897
861
|
m.alias,
|
|
898
862
|
m.label,
|
|
899
863
|
m.name,
|
|
900
|
-
|
|
901
|
-
].map((C) =>
|
|
864
|
+
kt(m)
|
|
865
|
+
].map((C) => be(C)).filter((C) => !!C);
|
|
902
866
|
return v.some(
|
|
903
867
|
(C) => y.includes(C)
|
|
904
868
|
);
|
|
905
869
|
});
|
|
906
870
|
}
|
|
907
|
-
function
|
|
908
|
-
const t =
|
|
871
|
+
function pr(e) {
|
|
872
|
+
const t = W(e == null ? void 0 : e.format);
|
|
909
873
|
return K(t);
|
|
910
874
|
}
|
|
911
|
-
function
|
|
875
|
+
function it(e, t) {
|
|
912
876
|
if (t)
|
|
913
|
-
return
|
|
877
|
+
return Ie(e, {
|
|
914
878
|
columnId: t,
|
|
915
879
|
metricAlias: t
|
|
916
880
|
});
|
|
917
881
|
}
|
|
918
|
-
function
|
|
919
|
-
const t =
|
|
882
|
+
function nt(e) {
|
|
883
|
+
const t = ft(e);
|
|
920
884
|
if (t)
|
|
921
885
|
return JSON.stringify(t);
|
|
922
886
|
}
|
|
923
|
-
function
|
|
924
|
-
const i =
|
|
887
|
+
function hr(e, t) {
|
|
888
|
+
const i = nt(e), n = nt(t);
|
|
925
889
|
return !!(i && n && i === n);
|
|
926
890
|
}
|
|
927
891
|
function gr(e) {
|
|
928
892
|
if (e.length === 0)
|
|
929
893
|
return;
|
|
930
894
|
const t = e.map(
|
|
931
|
-
(o) =>
|
|
895
|
+
(o) => pr(o)
|
|
932
896
|
);
|
|
933
897
|
if (!t.every(
|
|
934
|
-
(o) =>
|
|
898
|
+
(o) => X(o)
|
|
935
899
|
))
|
|
936
900
|
return;
|
|
937
901
|
const n = t, [r] = n;
|
|
938
902
|
return n.every(
|
|
939
|
-
(o) =>
|
|
903
|
+
(o) => hr(r, o)
|
|
940
904
|
) ? r : void 0;
|
|
941
905
|
}
|
|
942
|
-
function
|
|
906
|
+
function yr(e) {
|
|
943
907
|
const t = e.formatMode || e.legacyMode;
|
|
944
|
-
return t === "override" ? "override" : t === "inherit" ? "inherit" : e.legacyMode && e.legacyMode !== "auto" && e.legacyMode !== "inherit" && e.legacyMode !== "override" ||
|
|
908
|
+
return t === "override" ? "override" : t === "inherit" ? "inherit" : e.legacyMode && e.legacyMode !== "auto" && e.legacyMode !== "inherit" && e.legacyMode !== "override" || X(e.formatOptions) ? "override" : "inherit";
|
|
945
909
|
}
|
|
946
|
-
function
|
|
947
|
-
const t =
|
|
910
|
+
function me(e) {
|
|
911
|
+
const t = yr({
|
|
948
912
|
formatMode: e.formatMode,
|
|
949
913
|
legacyMode: e.legacyMode,
|
|
950
914
|
formatOptions: e.overrideFormatOptions
|
|
951
915
|
});
|
|
952
|
-
if (t === "override" &&
|
|
916
|
+
if (t === "override" && X(e.overrideFormatOptions))
|
|
953
917
|
return {
|
|
954
918
|
formatOptions: e.overrideFormatOptions || void 0,
|
|
955
919
|
source: "override"
|
|
@@ -963,13 +927,13 @@ function ye(e) {
|
|
|
963
927
|
const i = gr(
|
|
964
928
|
e.metrics || []
|
|
965
929
|
);
|
|
966
|
-
if (
|
|
930
|
+
if (X(i))
|
|
967
931
|
return {
|
|
968
932
|
formatOptions: i,
|
|
969
933
|
source: "metric"
|
|
970
934
|
};
|
|
971
|
-
const n =
|
|
972
|
-
return
|
|
935
|
+
const n = Sr(e.preferences);
|
|
936
|
+
return X(n) ? {
|
|
973
937
|
formatOptions: n,
|
|
974
938
|
source: "legacy"
|
|
975
939
|
} : {
|
|
@@ -977,38 +941,38 @@ function ye(e) {
|
|
|
977
941
|
source: "auto"
|
|
978
942
|
};
|
|
979
943
|
}
|
|
980
|
-
function
|
|
944
|
+
function qt(e) {
|
|
981
945
|
var l, c, u;
|
|
982
946
|
const { card: t, chartType: i, axis: n, preferences: r } = e, a = ((l = t == null ? void 0 : t.config) == null ? void 0 : l.metricColumns) || [], o = (r == null ? void 0 : r.datasetOptions) || [];
|
|
983
947
|
if (!a.length)
|
|
984
948
|
return [];
|
|
985
949
|
if (i === "combo")
|
|
986
950
|
return n === "x" ? [] : a.filter((f, d) => {
|
|
987
|
-
const
|
|
988
|
-
return ((
|
|
951
|
+
const g = o.find((b) => b.idx === d);
|
|
952
|
+
return ((g == null ? void 0 : g.yAxisId) === "y2" ? "y2" : "y") === n;
|
|
989
953
|
});
|
|
990
954
|
if (i === "bubble" || i === "scatter") {
|
|
991
955
|
if (n === "y2")
|
|
992
956
|
return [];
|
|
993
|
-
const f =
|
|
957
|
+
const f = it(
|
|
994
958
|
t,
|
|
995
959
|
(c = r == null ? void 0 : r.bubbleScatterConfig) == null ? void 0 : c.xMetricKey
|
|
996
|
-
) || a[0], d =
|
|
960
|
+
) || a[0], d = it(
|
|
997
961
|
t,
|
|
998
962
|
(u = r == null ? void 0 : r.bubbleScatterConfig) == null ? void 0 : u.yMetricKey
|
|
999
963
|
) || a[1] || a[0];
|
|
1000
964
|
return n === "x" ? f ? [f] : [] : d ? [d] : [];
|
|
1001
965
|
}
|
|
1002
|
-
const s =
|
|
966
|
+
const s = te(i, r);
|
|
1003
967
|
return i === "radar" ? n === "y" ? a : [] : n !== s ? [] : a;
|
|
1004
968
|
}
|
|
1005
|
-
function
|
|
1006
|
-
const { card: t, chartType: i, axis: n, preferences: r, axisConfig: a } = e, o =
|
|
969
|
+
function _e(e) {
|
|
970
|
+
const { card: t, chartType: i, axis: n, preferences: r, axisConfig: a } = e, o = qt({
|
|
1007
971
|
card: t,
|
|
1008
972
|
chartType: i,
|
|
1009
973
|
axis: n,
|
|
1010
974
|
preferences: r
|
|
1011
|
-
}), s =
|
|
975
|
+
}), s = me({
|
|
1012
976
|
formatMode: a == null ? void 0 : a.formatMode,
|
|
1013
977
|
overrideFormatOptions: a == null ? void 0 : a.formatOptions,
|
|
1014
978
|
metrics: o,
|
|
@@ -1016,7 +980,7 @@ function Ve(e) {
|
|
|
1016
980
|
});
|
|
1017
981
|
return {
|
|
1018
982
|
...s,
|
|
1019
|
-
formatOptions:
|
|
983
|
+
formatOptions: fe({
|
|
1020
984
|
card: t,
|
|
1021
985
|
metrics: o,
|
|
1022
986
|
formatOptions: s.formatOptions,
|
|
@@ -1024,7 +988,7 @@ function Ve(e) {
|
|
|
1024
988
|
})
|
|
1025
989
|
};
|
|
1026
990
|
}
|
|
1027
|
-
function
|
|
991
|
+
function $t(e, t) {
|
|
1028
992
|
if (!e && (!t || t === "auto" || t === "none"))
|
|
1029
993
|
return;
|
|
1030
994
|
const i = {
|
|
@@ -1032,8 +996,8 @@ function jt(e, t) {
|
|
|
1032
996
|
};
|
|
1033
997
|
return t && t !== "auto" && t !== "none" && !i.type && (i.type = t), i;
|
|
1034
998
|
}
|
|
1035
|
-
function
|
|
1036
|
-
const { preferences: t, metric: i } = e, n = t == null ? void 0 : t.tooltipConfig, r =
|
|
999
|
+
function br(e) {
|
|
1000
|
+
const { preferences: t, metric: i } = e, n = t == null ? void 0 : t.tooltipConfig, r = me({
|
|
1037
1001
|
formatMode: n == null ? void 0 : n.formatMode,
|
|
1038
1002
|
legacyMode: n == null ? void 0 : n.mode,
|
|
1039
1003
|
overrideFormatOptions: n == null ? void 0 : n.formatOptions,
|
|
@@ -1042,7 +1006,7 @@ function vr(e) {
|
|
|
1042
1006
|
});
|
|
1043
1007
|
return {
|
|
1044
1008
|
...r,
|
|
1045
|
-
formatOptions:
|
|
1009
|
+
formatOptions: fe({
|
|
1046
1010
|
card: e.card,
|
|
1047
1011
|
metrics: e.metric ? [e.metric] : [],
|
|
1048
1012
|
formatOptions: r.formatOptions,
|
|
@@ -1050,14 +1014,14 @@ function vr(e) {
|
|
|
1050
1014
|
})
|
|
1051
1015
|
};
|
|
1052
1016
|
}
|
|
1053
|
-
function
|
|
1054
|
-
return t ===
|
|
1017
|
+
function Ne(e, t, i) {
|
|
1018
|
+
return t === te(i, e) ? rr(i, e) : t === "x" ? e == null ? void 0 : e.xAxisConfig : t === "y2" ? e == null ? void 0 : e.secondaryYAxisConfig : e == null ? void 0 : e.yAxisConfig;
|
|
1055
1019
|
}
|
|
1056
|
-
function
|
|
1020
|
+
function Ee(e) {
|
|
1057
1021
|
const { chartType: t, preferences: i } = e;
|
|
1058
|
-
return t === "bubble" || t === "scatter" ? "y" :
|
|
1022
|
+
return t === "bubble" || t === "scatter" ? "y" : te(t, i);
|
|
1059
1023
|
}
|
|
1060
|
-
function
|
|
1024
|
+
function zt(e) {
|
|
1061
1025
|
switch (e) {
|
|
1062
1026
|
case "pie":
|
|
1063
1027
|
case "doughnut":
|
|
@@ -1070,8 +1034,8 @@ function Ut(e) {
|
|
|
1070
1034
|
return !0;
|
|
1071
1035
|
}
|
|
1072
1036
|
}
|
|
1073
|
-
function
|
|
1074
|
-
const { card: t, chartType: i, preferences: n, metric: r } = e, a =
|
|
1037
|
+
function so(e) {
|
|
1038
|
+
const { card: t, chartType: i, preferences: n, metric: r } = e, a = br({
|
|
1075
1039
|
card: t,
|
|
1076
1040
|
preferences: n,
|
|
1077
1041
|
metric: r,
|
|
@@ -1079,29 +1043,29 @@ function fo(e) {
|
|
|
1079
1043
|
});
|
|
1080
1044
|
if (a.source === "override")
|
|
1081
1045
|
return a;
|
|
1082
|
-
const o = e.axis ||
|
|
1046
|
+
const o = e.axis || Ee({ chartType: i, preferences: n }), s = _e({
|
|
1083
1047
|
card: t,
|
|
1084
1048
|
chartType: i,
|
|
1085
1049
|
axis: o,
|
|
1086
1050
|
preferences: n,
|
|
1087
|
-
axisConfig:
|
|
1051
|
+
axisConfig: Ne(n, o, i),
|
|
1088
1052
|
numericPresentation: e.numericPresentation
|
|
1089
1053
|
});
|
|
1090
1054
|
return s.source === "override" ? s : a;
|
|
1091
1055
|
}
|
|
1092
|
-
function
|
|
1093
|
-
const { card: t, chartType: i, preferences: n, dataLabelsConfig: r } = e, a = i || (t == null ? void 0 : t.type), o =
|
|
1056
|
+
function lo(e) {
|
|
1057
|
+
const { card: t, chartType: i, preferences: n, dataLabelsConfig: r } = e, a = i || (t == null ? void 0 : t.type), o = Ee({
|
|
1094
1058
|
chartType: a,
|
|
1095
1059
|
preferences: n
|
|
1096
|
-
}), s =
|
|
1060
|
+
}), s = qt({
|
|
1097
1061
|
card: t,
|
|
1098
1062
|
chartType: a,
|
|
1099
1063
|
axis: o,
|
|
1100
1064
|
preferences: n
|
|
1101
|
-
}), l =
|
|
1065
|
+
}), l = me({
|
|
1102
1066
|
formatMode: r == null ? void 0 : r.formatMode,
|
|
1103
1067
|
legacyMode: r == null ? void 0 : r.format,
|
|
1104
|
-
overrideFormatOptions:
|
|
1068
|
+
overrideFormatOptions: $t(
|
|
1105
1069
|
r == null ? void 0 : r.formatOptions,
|
|
1106
1070
|
r == null ? void 0 : r.format
|
|
1107
1071
|
),
|
|
@@ -1109,21 +1073,21 @@ function mo(e) {
|
|
|
1109
1073
|
preferences: n
|
|
1110
1074
|
}), c = {
|
|
1111
1075
|
...l,
|
|
1112
|
-
formatOptions:
|
|
1076
|
+
formatOptions: fe({
|
|
1113
1077
|
card: t,
|
|
1114
1078
|
metrics: s,
|
|
1115
1079
|
formatOptions: l.formatOptions,
|
|
1116
1080
|
context: e.numericPresentation
|
|
1117
1081
|
})
|
|
1118
1082
|
};
|
|
1119
|
-
if (c.source === "override" || !
|
|
1083
|
+
if (c.source === "override" || !zt(a))
|
|
1120
1084
|
return c;
|
|
1121
|
-
const u =
|
|
1085
|
+
const u = _e({
|
|
1122
1086
|
card: t,
|
|
1123
1087
|
chartType: a,
|
|
1124
1088
|
axis: o,
|
|
1125
1089
|
preferences: n,
|
|
1126
|
-
axisConfig:
|
|
1090
|
+
axisConfig: Ne(
|
|
1127
1091
|
n,
|
|
1128
1092
|
o,
|
|
1129
1093
|
a
|
|
@@ -1132,11 +1096,11 @@ function mo(e) {
|
|
|
1132
1096
|
});
|
|
1133
1097
|
return u.source === "override" ? u : c;
|
|
1134
1098
|
}
|
|
1135
|
-
function
|
|
1136
|
-
const { preferences: t, dataLabelsConfig: i, metric: n } = e, r =
|
|
1099
|
+
function vr(e) {
|
|
1100
|
+
const { preferences: t, dataLabelsConfig: i, metric: n } = e, r = me({
|
|
1137
1101
|
formatMode: i == null ? void 0 : i.formatMode,
|
|
1138
1102
|
legacyMode: i == null ? void 0 : i.format,
|
|
1139
|
-
overrideFormatOptions:
|
|
1103
|
+
overrideFormatOptions: $t(
|
|
1140
1104
|
i == null ? void 0 : i.formatOptions,
|
|
1141
1105
|
i == null ? void 0 : i.format
|
|
1142
1106
|
),
|
|
@@ -1145,7 +1109,7 @@ function Fr(e) {
|
|
|
1145
1109
|
});
|
|
1146
1110
|
return {
|
|
1147
1111
|
...r,
|
|
1148
|
-
formatOptions:
|
|
1112
|
+
formatOptions: fe({
|
|
1149
1113
|
card: e.card,
|
|
1150
1114
|
metrics: e.metric ? [e.metric] : [],
|
|
1151
1115
|
formatOptions: r.formatOptions,
|
|
@@ -1153,16 +1117,16 @@ function Fr(e) {
|
|
|
1153
1117
|
})
|
|
1154
1118
|
};
|
|
1155
1119
|
}
|
|
1156
|
-
function
|
|
1120
|
+
function co(e) {
|
|
1157
1121
|
var o, s;
|
|
1158
|
-
const t =
|
|
1122
|
+
const t = mr({
|
|
1159
1123
|
card: e.card,
|
|
1160
1124
|
metricId: e.metricId,
|
|
1161
1125
|
metricAlias: e.metricAlias,
|
|
1162
1126
|
datasetIndex: e.datasetIndex,
|
|
1163
1127
|
datasetLabel: e.datasetLabel,
|
|
1164
1128
|
metricKey: e.metricKey
|
|
1165
|
-
}), i =
|
|
1129
|
+
}), i = vr({
|
|
1166
1130
|
card: e.card,
|
|
1167
1131
|
preferences: e.preferences,
|
|
1168
1132
|
dataLabelsConfig: e.dataLabelsConfig,
|
|
@@ -1172,9 +1136,9 @@ function po(e) {
|
|
|
1172
1136
|
if (i.source === "override")
|
|
1173
1137
|
return i;
|
|
1174
1138
|
const n = (o = e.card) == null ? void 0 : o.type;
|
|
1175
|
-
if (!
|
|
1139
|
+
if (!zt(n))
|
|
1176
1140
|
return i;
|
|
1177
|
-
let r =
|
|
1141
|
+
let r = Ee({
|
|
1178
1142
|
chartType: n,
|
|
1179
1143
|
preferences: e.preferences
|
|
1180
1144
|
});
|
|
@@ -1184,12 +1148,12 @@ function po(e) {
|
|
|
1184
1148
|
);
|
|
1185
1149
|
r = (c == null ? void 0 : c.yAxisId) === "y2" ? "y2" : "y";
|
|
1186
1150
|
}
|
|
1187
|
-
const a =
|
|
1151
|
+
const a = _e({
|
|
1188
1152
|
card: e.card,
|
|
1189
1153
|
chartType: n,
|
|
1190
1154
|
axis: r,
|
|
1191
1155
|
preferences: e.preferences,
|
|
1192
|
-
axisConfig:
|
|
1156
|
+
axisConfig: Ne(
|
|
1193
1157
|
e.preferences,
|
|
1194
1158
|
r,
|
|
1195
1159
|
n
|
|
@@ -1198,15 +1162,15 @@ function po(e) {
|
|
|
1198
1162
|
});
|
|
1199
1163
|
return a.source === "override" ? a : i;
|
|
1200
1164
|
}
|
|
1201
|
-
function
|
|
1165
|
+
function uo(e) {
|
|
1202
1166
|
return (e == null ? void 0 : e.rawValue) === !0;
|
|
1203
1167
|
}
|
|
1204
|
-
function
|
|
1168
|
+
function Fr(e) {
|
|
1205
1169
|
const t = e == null ? void 0 : e.numberFormat;
|
|
1206
1170
|
if (!t)
|
|
1207
1171
|
return;
|
|
1208
1172
|
if (t.style === "duration")
|
|
1209
|
-
return K(
|
|
1173
|
+
return K(Se(t), {
|
|
1210
1174
|
preserveOmittedProperties: !0
|
|
1211
1175
|
});
|
|
1212
1176
|
const i = t.style === "currency" ? "currency" : t.style === "percent" ? "percent" : t.style === "scientific" ? "scientific" : "number", n = t.minimumFractionDigits, r = t.maximumFractionDigits;
|
|
@@ -1226,14 +1190,14 @@ function Cr(e) {
|
|
|
1226
1190
|
suffix: t.suffix
|
|
1227
1191
|
};
|
|
1228
1192
|
}
|
|
1229
|
-
function
|
|
1230
|
-
const n = i ? { preserveOmittedProperties: !0 } : void 0, r =
|
|
1193
|
+
function Cr(e, t, i = !1) {
|
|
1194
|
+
const n = i ? { preserveOmittedProperties: !0 } : void 0, r = W(e == null ? void 0 : e.format, n), a = mt(
|
|
1231
1195
|
r,
|
|
1232
1196
|
n
|
|
1233
1197
|
);
|
|
1234
1198
|
if (!a)
|
|
1235
1199
|
return;
|
|
1236
|
-
const o = t ||
|
|
1200
|
+
const o = t || Oe(), s = i ? {
|
|
1237
1201
|
showDataBar: o.numberFormat.showDataBar,
|
|
1238
1202
|
showHeatmap: o.numberFormat.showHeatmap,
|
|
1239
1203
|
dataBarColor: o.numberFormat.dataBarColor,
|
|
@@ -1256,8 +1220,8 @@ function Ir(e, t, i = !1) {
|
|
|
1256
1220
|
}
|
|
1257
1221
|
};
|
|
1258
1222
|
}
|
|
1259
|
-
function
|
|
1260
|
-
var
|
|
1223
|
+
function jt(e) {
|
|
1224
|
+
var T, V, N, O;
|
|
1261
1225
|
const {
|
|
1262
1226
|
card: t,
|
|
1263
1227
|
columnId: i,
|
|
@@ -1271,56 +1235,56 @@ function Ht(e) {
|
|
|
1271
1235
|
columnKeyMap: u,
|
|
1272
1236
|
valueFormatPreferences: f,
|
|
1273
1237
|
boundCurrency: d,
|
|
1274
|
-
preserveOmittedProperties:
|
|
1275
|
-
} = e, v = n ?? ((
|
|
1238
|
+
preserveOmittedProperties: g
|
|
1239
|
+
} = e, v = n ?? ((N = (V = (T = t == null ? void 0 : t.preferences) == null ? void 0 : T.tablePrefs) == null ? void 0 : V.columnSettingsMap) == null ? void 0 : N[i]), b = !((O = t == null ? void 0 : t.sql) != null && O.trim()) || ui(v), m = b ? f : null, y = b ? d : void 0, C = di(
|
|
1276
1240
|
v == null ? void 0 : v.numberFormat
|
|
1277
|
-
),
|
|
1278
|
-
if (
|
|
1279
|
-
return
|
|
1280
|
-
|
|
1241
|
+
), S = r ?? Bt(v);
|
|
1242
|
+
if (S && S.inheritMetricFormat !== !0)
|
|
1243
|
+
return rt(
|
|
1244
|
+
S,
|
|
1281
1245
|
m,
|
|
1282
1246
|
y,
|
|
1283
1247
|
{
|
|
1284
1248
|
preserveHistoricalPersistedPrecision: C
|
|
1285
1249
|
}
|
|
1286
1250
|
);
|
|
1287
|
-
const w =
|
|
1251
|
+
const w = ie(t, {
|
|
1288
1252
|
columnId: i,
|
|
1289
1253
|
metricId: o,
|
|
1290
1254
|
metricAlias: s,
|
|
1291
1255
|
columnKeyMap: u,
|
|
1292
1256
|
fieldId: l,
|
|
1293
1257
|
fieldRole: c
|
|
1294
|
-
}),
|
|
1258
|
+
}), h = Cr(
|
|
1295
1259
|
w,
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
),
|
|
1299
|
-
|
|
1260
|
+
S || a,
|
|
1261
|
+
g ?? !!f
|
|
1262
|
+
), F = !h && m && ar(w) ? cr(
|
|
1263
|
+
S || a,
|
|
1300
1264
|
y
|
|
1301
1265
|
) : void 0;
|
|
1302
|
-
return
|
|
1303
|
-
|
|
1266
|
+
return rt(
|
|
1267
|
+
h || F || S || a,
|
|
1304
1268
|
m,
|
|
1305
1269
|
y,
|
|
1306
1270
|
{
|
|
1307
|
-
preserveHistoricalPersistedPrecision: !!(
|
|
1271
|
+
preserveHistoricalPersistedPrecision: !!(S && C && !h && !F)
|
|
1308
1272
|
}
|
|
1309
1273
|
);
|
|
1310
1274
|
}
|
|
1311
|
-
function
|
|
1275
|
+
function rt(e, t, i, n) {
|
|
1312
1276
|
if (!e || e.type !== "number" || !t)
|
|
1313
1277
|
return e;
|
|
1314
|
-
const r = e.numberFormat, a = r ? n != null && n.preserveHistoricalPersistedPrecision ?
|
|
1278
|
+
const r = e.numberFormat, a = r ? n != null && n.preserveHistoricalPersistedPrecision ? fi(r) : Se(r, {
|
|
1315
1279
|
preserveOmittedProperties: !0
|
|
1316
1280
|
}) : { type: "number" };
|
|
1317
|
-
if (!a || !
|
|
1281
|
+
if (!a || !R(a))
|
|
1318
1282
|
return e;
|
|
1319
1283
|
const o = _(
|
|
1320
1284
|
a,
|
|
1321
1285
|
t,
|
|
1322
1286
|
i
|
|
1323
|
-
), s =
|
|
1287
|
+
), s = mt(o, {
|
|
1324
1288
|
preserveOmittedProperties: !0
|
|
1325
1289
|
});
|
|
1326
1290
|
return s ? {
|
|
@@ -1336,30 +1300,30 @@ function ot(e, t, i, n) {
|
|
|
1336
1300
|
}
|
|
1337
1301
|
} : e;
|
|
1338
1302
|
}
|
|
1339
|
-
function
|
|
1303
|
+
function ue(e) {
|
|
1340
1304
|
if (!e.valueFormatPreferences)
|
|
1341
1305
|
return;
|
|
1342
|
-
const t =
|
|
1306
|
+
const t = jt(e);
|
|
1343
1307
|
if (!t || t.type !== "number")
|
|
1344
1308
|
return;
|
|
1345
|
-
const i =
|
|
1309
|
+
const i = Se(t.numberFormat, {
|
|
1346
1310
|
preserveOmittedProperties: !0
|
|
1347
1311
|
});
|
|
1348
|
-
if (!(!i || !
|
|
1312
|
+
if (!(!i || !yt(i)))
|
|
1349
1313
|
return i;
|
|
1350
1314
|
}
|
|
1351
|
-
function
|
|
1315
|
+
function Ir(e) {
|
|
1352
1316
|
var n, r;
|
|
1353
1317
|
if (!e.presentation.preferences)
|
|
1354
1318
|
return;
|
|
1355
|
-
const t =
|
|
1319
|
+
const t = ie(e.card, {
|
|
1356
1320
|
columnId: e.columnId,
|
|
1357
1321
|
metricId: e.metricId,
|
|
1358
1322
|
metricAlias: e.metricAlias,
|
|
1359
1323
|
columnKeyMap: e.columnKeyMap
|
|
1360
1324
|
});
|
|
1361
1325
|
if (e.comparisonValueKind === "percent_change" || e.comparisonValueKind === "ratio") {
|
|
1362
|
-
const a =
|
|
1326
|
+
const a = ue({
|
|
1363
1327
|
card: e.card,
|
|
1364
1328
|
columnId: e.columnId,
|
|
1365
1329
|
persistedSettings: e.persistedSettings,
|
|
@@ -1369,7 +1333,7 @@ function xr(e) {
|
|
|
1369
1333
|
columnKeyMap: e.columnKeyMap,
|
|
1370
1334
|
metricAlias: e.metricAlias ?? (t == null ? void 0 : t.alias),
|
|
1371
1335
|
valueFormatPreferences: e.presentation.preferences
|
|
1372
|
-
}), o =
|
|
1336
|
+
}), o = hi(e.comparisonPrecision) ?? (R(a) ? a.maximumFractionDigits : void 0) ?? (e.comparisonValueKind === "percent_change" ? 1 : 2);
|
|
1373
1337
|
return e.comparisonValueKind === "percent_change" ? {
|
|
1374
1338
|
type: "percent",
|
|
1375
1339
|
locale: e.presentation.preferences.locale,
|
|
@@ -1384,12 +1348,12 @@ function xr(e) {
|
|
|
1384
1348
|
suffix: "×"
|
|
1385
1349
|
};
|
|
1386
1350
|
}
|
|
1387
|
-
const i =
|
|
1351
|
+
const i = gi({
|
|
1388
1352
|
card: e.card,
|
|
1389
1353
|
columnKey: e.columnId,
|
|
1390
1354
|
metricId: e.metricId ?? (t && !((r = (n = e.card.config) == null ? void 0 : n.groupByColumns) != null && r.includes(t)) ? t.id : void 0)
|
|
1391
1355
|
});
|
|
1392
|
-
return
|
|
1356
|
+
return ue({
|
|
1393
1357
|
card: e.card,
|
|
1394
1358
|
columnId: e.columnId,
|
|
1395
1359
|
persistedSettings: e.persistedSettings,
|
|
@@ -1402,10 +1366,10 @@ function xr(e) {
|
|
|
1402
1366
|
boundCurrency: i ? e.presentation.resolveBoundCurrency(i) : void 0
|
|
1403
1367
|
});
|
|
1404
1368
|
}
|
|
1405
|
-
function
|
|
1406
|
-
var s, l, c, u, f, d,
|
|
1369
|
+
function xr(e) {
|
|
1370
|
+
var s, l, c, u, f, d, g;
|
|
1407
1371
|
if (e.card.type === "matrixTable" && e.target.kind === "matrix_measure") {
|
|
1408
|
-
const v = e.target, b =
|
|
1372
|
+
const v = e.target, b = yi(e.card, e.matrixCatalog).find(
|
|
1409
1373
|
(y) => y.measureId === v.measureId
|
|
1410
1374
|
), m = b == null ? void 0 : b.canonical;
|
|
1411
1375
|
return m && (m.type === "number" || m.type === "currency") ? _(
|
|
@@ -1422,44 +1386,44 @@ function Sr(e) {
|
|
|
1422
1386
|
)) ?? -1 : 0;
|
|
1423
1387
|
if (b < 0)
|
|
1424
1388
|
return;
|
|
1425
|
-
const m =
|
|
1389
|
+
const m = bi(e.card, {
|
|
1426
1390
|
metricIndex: b,
|
|
1427
1391
|
resultColumnKey: e.target.kind === "column" ? e.target.columnKey : void 0
|
|
1428
1392
|
}), y = m.authoredFormat;
|
|
1429
|
-
return m.currencyBindable && y &&
|
|
1393
|
+
return m.currencyBindable && y && R(y) ? _(
|
|
1430
1394
|
y,
|
|
1431
1395
|
e.valueFormatPreferences,
|
|
1432
1396
|
e.boundCurrency
|
|
1433
1397
|
) : void 0;
|
|
1434
1398
|
}
|
|
1435
|
-
if (!((c = e.card.sql) != null && c.trim()) && !
|
|
1399
|
+
if (!((c = e.card.sql) != null && c.trim()) && !Ui(e.card.type) && e.target.kind === "metric") {
|
|
1436
1400
|
const v = e.target.metricId, b = (f = (u = e.card.config) == null ? void 0 : u.metricColumns) == null ? void 0 : f.find(
|
|
1437
1401
|
(C) => C.id === v
|
|
1438
1402
|
);
|
|
1439
1403
|
if (!b)
|
|
1440
1404
|
return;
|
|
1441
|
-
const m =
|
|
1405
|
+
const m = dt(
|
|
1442
1406
|
e.card,
|
|
1443
1407
|
b
|
|
1444
1408
|
), y = m.authoredFormat;
|
|
1445
|
-
return m.currencyBindable && y &&
|
|
1409
|
+
return m.currencyBindable && y && R(y) ? _(
|
|
1446
1410
|
y,
|
|
1447
1411
|
e.valueFormatPreferences,
|
|
1448
1412
|
e.boundCurrency
|
|
1449
1413
|
) : void 0;
|
|
1450
1414
|
}
|
|
1451
|
-
const i = ((
|
|
1415
|
+
const i = ((g = (d = e.card.preferences) == null ? void 0 : d.tablePrefs) == null ? void 0 : g.columnSettingsMap) || {}, n = e.target.kind === "metric" ? e.target.metricId : void 0, r = e.target.kind === "column" ? [e.target.columnKey] : [
|
|
1452
1416
|
...e.resultColumnKeys || [],
|
|
1453
1417
|
...Object.keys(i),
|
|
1454
1418
|
e.target.metricId
|
|
1455
1419
|
], a = e.target.kind === "column" ? e.target.columnKey : r.find(
|
|
1456
1420
|
(v) => {
|
|
1457
1421
|
var b;
|
|
1458
|
-
return ((b =
|
|
1422
|
+
return ((b = ie(e.card, {
|
|
1459
1423
|
columnId: v
|
|
1460
1424
|
})) == null ? void 0 : b.id) === n;
|
|
1461
1425
|
}
|
|
1462
|
-
) || n, o =
|
|
1426
|
+
) || n, o = ue({
|
|
1463
1427
|
card: e.card,
|
|
1464
1428
|
columnId: a,
|
|
1465
1429
|
metricId: n,
|
|
@@ -1467,14 +1431,14 @@ function Sr(e) {
|
|
|
1467
1431
|
valueFormatPreferences: e.valueFormatPreferences,
|
|
1468
1432
|
boundCurrency: e.boundCurrency
|
|
1469
1433
|
});
|
|
1470
|
-
return
|
|
1434
|
+
return R(o) ? o : void 0;
|
|
1471
1435
|
}
|
|
1472
|
-
function
|
|
1436
|
+
function fo(e) {
|
|
1473
1437
|
var i, n, r, a, o, s;
|
|
1474
1438
|
const t = e.persistedSettings ?? ((a = (r = (n = (i = e.card) == null ? void 0 : i.preferences) == null ? void 0 : n.tablePrefs) == null ? void 0 : r.columnSettingsMap) == null ? void 0 : a[e.columnId]);
|
|
1475
1439
|
if (!t && !e.resolvedSettings || (t == null ? void 0 : t.inheritMetricFormat) === !0 || ((o = e.resolvedSettings) == null ? void 0 : o.inheritMetricFormat) === !0) {
|
|
1476
|
-
const l =
|
|
1477
|
-
(s =
|
|
1440
|
+
const l = W(
|
|
1441
|
+
(s = ie(e.card, {
|
|
1478
1442
|
columnId: e.columnId,
|
|
1479
1443
|
metricId: e.metricId,
|
|
1480
1444
|
metricAlias: e.metricAlias,
|
|
@@ -1487,33 +1451,33 @@ function yo(e) {
|
|
|
1487
1451
|
preserveOmittedProperties: !0
|
|
1488
1452
|
});
|
|
1489
1453
|
}
|
|
1490
|
-
return
|
|
1491
|
-
|
|
1454
|
+
return Fr(
|
|
1455
|
+
jt({
|
|
1492
1456
|
...e,
|
|
1493
1457
|
persistedSettings: t
|
|
1494
1458
|
})
|
|
1495
1459
|
);
|
|
1496
1460
|
}
|
|
1497
|
-
function
|
|
1498
|
-
var v, b, m, y, C,
|
|
1499
|
-
const t = (v = e == null ? void 0 : e.formatNumber) == null ? void 0 : v.enabled, i = typeof t == "string" ? t.trim().toLowerCase() !== "false" : t !== !1, n =
|
|
1461
|
+
function Sr(e) {
|
|
1462
|
+
var v, b, m, y, C, S, w;
|
|
1463
|
+
const t = (v = e == null ? void 0 : e.formatNumber) == null ? void 0 : v.enabled, i = typeof t == "string" ? t.trim().toLowerCase() !== "false" : t !== !1, n = mi(e == null ? void 0 : e.numberAxisFormat) || (i ? pi(e == null ? void 0 : e.formatNumber) : void 0), r = K(n);
|
|
1500
1464
|
if (!r || !r.type || r.type === "auto")
|
|
1501
1465
|
return r;
|
|
1502
|
-
const a = (b = e == null ? void 0 : e.numberAxisFormat) == null ? void 0 : b.decimalPlaces, o = i ? (m = e == null ? void 0 : e.formatNumber) == null ? void 0 : m.decimalPlaces : void 0, s = typeof a == "number" ? a : typeof o == "number" ? o : void 0, l = (y = e == null ? void 0 : e.numberAxisFormat) == null ? void 0 : y.minimumFractionDigits, c = (C = e == null ? void 0 : e.numberAxisFormat) == null ? void 0 : C.maximumFractionDigits, u = i ? (
|
|
1466
|
+
const a = (b = e == null ? void 0 : e.numberAxisFormat) == null ? void 0 : b.decimalPlaces, o = i ? (m = e == null ? void 0 : e.formatNumber) == null ? void 0 : m.decimalPlaces : void 0, s = typeof a == "number" ? a : typeof o == "number" ? o : void 0, l = (y = e == null ? void 0 : e.numberAxisFormat) == null ? void 0 : y.minimumFractionDigits, c = (C = e == null ? void 0 : e.numberAxisFormat) == null ? void 0 : C.maximumFractionDigits, u = i ? (S = e == null ? void 0 : e.formatNumber) == null ? void 0 : S.minimumFractionDigits : void 0, f = i ? (w = e == null ? void 0 : e.formatNumber) == null ? void 0 : w.maximumFractionDigits : void 0, d = typeof s == "number" ? s : typeof l == "number" ? l : typeof u == "number" ? u : 0, g = typeof s == "number" ? s : typeof c == "number" ? c : typeof f == "number" ? f : 0;
|
|
1503
1467
|
return {
|
|
1504
1468
|
...r,
|
|
1505
|
-
decimalPlaces: d ===
|
|
1469
|
+
decimalPlaces: d === g ? g : r.decimalPlaces,
|
|
1506
1470
|
minimumFractionDigits: d,
|
|
1507
1471
|
maximumFractionDigits: Math.max(
|
|
1508
1472
|
d,
|
|
1509
|
-
|
|
1473
|
+
g
|
|
1510
1474
|
)
|
|
1511
1475
|
};
|
|
1512
1476
|
}
|
|
1513
|
-
function
|
|
1477
|
+
function mo(e) {
|
|
1514
1478
|
var r, a, o, s, l;
|
|
1515
1479
|
const { value: t, formatOptions: i, preferences: n } = e;
|
|
1516
|
-
return i != null && i.type && i.type !== "auto" ?
|
|
1480
|
+
return i != null && i.type && i.type !== "auto" ? Nt(t, i.type, i) : Wn({
|
|
1517
1481
|
number: t,
|
|
1518
1482
|
decimalPlaces: ((r = n == null ? void 0 : n.numberAxisFormat) == null ? void 0 : r.decimalPlaces) ?? 0,
|
|
1519
1483
|
useSuffix: !!((a = n == null ? void 0 : n.numberAxisFormat) != null && a.suffix),
|
|
@@ -1522,18 +1486,18 @@ function go(e) {
|
|
|
1522
1486
|
currency: ((l = n == null ? void 0 : n.numberAxisFormat) == null ? void 0 : l.currency) || ""
|
|
1523
1487
|
});
|
|
1524
1488
|
}
|
|
1525
|
-
function
|
|
1526
|
-
return
|
|
1489
|
+
function Mr(e) {
|
|
1490
|
+
return Gi({
|
|
1527
1491
|
...e,
|
|
1528
|
-
activation:
|
|
1492
|
+
activation: Me({
|
|
1529
1493
|
card: e.card,
|
|
1530
1494
|
cardConfig: e.cardConfig
|
|
1531
1495
|
})
|
|
1532
1496
|
});
|
|
1533
1497
|
}
|
|
1534
|
-
function
|
|
1535
|
-
return
|
|
1536
|
-
activation:
|
|
1498
|
+
function po(e) {
|
|
1499
|
+
return Wi({
|
|
1500
|
+
activation: Me({
|
|
1537
1501
|
card: e.card,
|
|
1538
1502
|
cardConfig: e.cardConfig
|
|
1539
1503
|
}),
|
|
@@ -1541,9 +1505,9 @@ function bo(e) {
|
|
|
1541
1505
|
expectedResultOwner: e.expectedResultOwner
|
|
1542
1506
|
});
|
|
1543
1507
|
}
|
|
1544
|
-
function
|
|
1508
|
+
function Dr(e) {
|
|
1545
1509
|
var n, r;
|
|
1546
|
-
const t =
|
|
1510
|
+
const t = pt(e.card, e.effectiveCardConfig), i = Kn({
|
|
1547
1511
|
card: t,
|
|
1548
1512
|
records: e.rows,
|
|
1549
1513
|
keys: e.rows.length === 0 ? e.resultKeys : void 0,
|
|
@@ -1566,35 +1530,35 @@ function Tr(e) {
|
|
|
1566
1530
|
}
|
|
1567
1531
|
};
|
|
1568
1532
|
}
|
|
1569
|
-
function
|
|
1533
|
+
function Tr(e) {
|
|
1570
1534
|
var i;
|
|
1571
1535
|
const t = (i = e.preferences) == null ? void 0 : i.comparisonPresentation;
|
|
1572
1536
|
return {
|
|
1573
|
-
...
|
|
1537
|
+
...Vi,
|
|
1574
1538
|
...t,
|
|
1575
1539
|
...t != null && t.conditionalLabels ? { conditionalLabels: { ...t.conditionalLabels } } : {},
|
|
1576
1540
|
...t != null && t.colors ? { colors: { ...t.colors } } : {}
|
|
1577
1541
|
};
|
|
1578
1542
|
}
|
|
1579
|
-
function
|
|
1580
|
-
var
|
|
1581
|
-
const t =
|
|
1543
|
+
function wr(e) {
|
|
1544
|
+
var S, w;
|
|
1545
|
+
const t = pt(e.card, e.effectiveCardConfig), { cardId: i, ...n } = e.requestPayloadBase, r = e.formatOptions.visibleColumns ?? [], a = [
|
|
1582
1546
|
...r,
|
|
1583
1547
|
...Object.keys(e.formatOptions.columnSettings ?? {})
|
|
1584
|
-
], o =
|
|
1548
|
+
], o = vi(
|
|
1585
1549
|
e.card,
|
|
1586
1550
|
r,
|
|
1587
1551
|
e.effectiveCardConfig
|
|
1588
|
-
), s =
|
|
1552
|
+
), s = Fi(
|
|
1589
1553
|
e.card,
|
|
1590
1554
|
e.effectiveCardConfig,
|
|
1591
1555
|
o
|
|
1592
|
-
), l =
|
|
1556
|
+
), l = Ci(
|
|
1593
1557
|
t,
|
|
1594
1558
|
a
|
|
1595
1559
|
), c = new Set(
|
|
1596
|
-
l.eligibleTargets.map(
|
|
1597
|
-
), u = (p) => c.has(
|
|
1560
|
+
l.eligibleTargets.map(ge)
|
|
1561
|
+
), u = (p) => c.has(ge(p)) ? xi({
|
|
1598
1562
|
bindings: n.controlBindings,
|
|
1599
1563
|
controls: [
|
|
1600
1564
|
...n.controlDefinitions ?? [],
|
|
@@ -1604,23 +1568,18 @@ function Pr(e) {
|
|
|
1604
1568
|
target: p,
|
|
1605
1569
|
knownTargets: l.knownTargets,
|
|
1606
1570
|
eligibleTargets: l.eligibleTargets
|
|
1607
|
-
}).currency : void 0, f =
|
|
1571
|
+
}).currency : void 0, f = Ii({
|
|
1608
1572
|
card: e.card,
|
|
1609
1573
|
comparisonMetadata: e.comparisonMetadata,
|
|
1610
|
-
columnKeyMap:
|
|
1611
|
-
}), d =
|
|
1574
|
+
columnKeyMap: e.columnKeyMap
|
|
1575
|
+
}), d = Me({
|
|
1612
1576
|
card: e.card,
|
|
1613
1577
|
cardConfig: e.effectiveCardConfig
|
|
1614
|
-
})
|
|
1615
|
-
if (e.card.type === "pivotTable" && d && !e.canonicalPivotResult)
|
|
1616
|
-
throw new Error(
|
|
1617
|
-
"Canonical pivot export requires a parsed pivot result lifecycle."
|
|
1618
|
-
);
|
|
1619
|
-
const h = Dr({
|
|
1578
|
+
}), g = Mr({
|
|
1620
1579
|
card: e.card,
|
|
1621
1580
|
cardConfig: e.effectiveCardConfig,
|
|
1622
|
-
columns:
|
|
1623
|
-
columnKeyMap:
|
|
1581
|
+
columns: e.resultColumns,
|
|
1582
|
+
columnKeyMap: e.columnKeyMap,
|
|
1624
1583
|
resultRowCount: e.totalRows,
|
|
1625
1584
|
valueFormatPreferences: e.reportContext.valueFormat
|
|
1626
1585
|
}), v = (d == null ? void 0 : d.fields) ?? [], b = new Map(
|
|
@@ -1632,13 +1591,13 @@ function Pr(e) {
|
|
|
1632
1591
|
if (e.card.type === "detailTable" && n.resultOwner === "config") {
|
|
1633
1592
|
const p = e.resultColumns || [];
|
|
1634
1593
|
if (p.filter(
|
|
1635
|
-
(
|
|
1594
|
+
(F) => F.rawTemporal
|
|
1636
1595
|
).length > 0) {
|
|
1637
1596
|
if (!e.columnKeyMap)
|
|
1638
1597
|
throw new Error(
|
|
1639
1598
|
"Canonical raw temporal export requires an authoritative columnKeyMap."
|
|
1640
1599
|
);
|
|
1641
|
-
const
|
|
1600
|
+
const F = Dn({
|
|
1642
1601
|
cardType: e.card.type,
|
|
1643
1602
|
resultOwner: n.resultOwner,
|
|
1644
1603
|
effectiveCardConfig: e.effectiveCardConfig,
|
|
@@ -1650,21 +1609,21 @@ function Pr(e) {
|
|
|
1650
1609
|
preferences: e.reportContext.valueFormat,
|
|
1651
1610
|
calendar: e.reportContext.calendar
|
|
1652
1611
|
});
|
|
1653
|
-
if (
|
|
1654
|
-
if (
|
|
1655
|
-
for (const [
|
|
1656
|
-
m.set(
|
|
1612
|
+
if (F.kind === "invalid") throw F.error;
|
|
1613
|
+
if (F.kind === "loaded_empty" || F.kind === "loaded_valid")
|
|
1614
|
+
for (const [D, T] of F.presentation.byColumnKey)
|
|
1615
|
+
m.set(D, T.format);
|
|
1657
1616
|
}
|
|
1658
1617
|
} else if (n.resultOwner === "freeform" && n.sql.trim() && !n.python.trim())
|
|
1659
|
-
for (const [p,
|
|
1660
|
-
((
|
|
1618
|
+
for (const [p, h] of Object.entries(
|
|
1619
|
+
((w = (S = e.card.preferences) == null ? void 0 : S.tablePrefs) == null ? void 0 : w.columnSettingsMap) || {}
|
|
1661
1620
|
)) {
|
|
1662
|
-
if (
|
|
1663
|
-
const
|
|
1664
|
-
|
|
1621
|
+
if (h.type !== "date") continue;
|
|
1622
|
+
const F = Tn(h.dateFormat);
|
|
1623
|
+
F && m.set(
|
|
1665
1624
|
p,
|
|
1666
|
-
|
|
1667
|
-
format:
|
|
1625
|
+
$i({
|
|
1626
|
+
format: F,
|
|
1668
1627
|
preferences: e.reportContext.valueFormat,
|
|
1669
1628
|
calendar: e.reportContext.calendar
|
|
1670
1629
|
})
|
|
@@ -1673,66 +1632,66 @@ function Pr(e) {
|
|
|
1673
1632
|
const y = [
|
|
1674
1633
|
...new Set(a)
|
|
1675
1634
|
].flatMap((p) => {
|
|
1676
|
-
var
|
|
1677
|
-
if (
|
|
1635
|
+
var q, E, re, P, Y, J;
|
|
1636
|
+
if (g.byColumnKey.has(p) || m.has(p))
|
|
1678
1637
|
return [];
|
|
1679
|
-
const
|
|
1638
|
+
const h = f.columnPresentationOwners.get(p), F = (q = t.sql) != null && q.trim() ? void 0 : ie(t, {
|
|
1680
1639
|
columnId: p,
|
|
1681
1640
|
columnKeyMap: e.columnKeyMap,
|
|
1682
|
-
metricId:
|
|
1683
|
-
metricAlias:
|
|
1684
|
-
}),
|
|
1685
|
-
|
|
1686
|
-
),
|
|
1641
|
+
metricId: h == null ? void 0 : h.metricId,
|
|
1642
|
+
metricAlias: h == null ? void 0 : h.metricAlias
|
|
1643
|
+
}), D = F ? { kind: "metric", metricId: F.id } : { kind: "column", columnKey: p }, T = c.has(
|
|
1644
|
+
ge(D)
|
|
1645
|
+
), V = u(D), N = (P = (re = (E = t.preferences) == null ? void 0 : E.tablePrefs) == null ? void 0 : re.columnSettingsMap) == null ? void 0 : P[p], O = {
|
|
1687
1646
|
dashboardId: e.dashboardId,
|
|
1688
1647
|
cardId: t.id
|
|
1689
|
-
},
|
|
1648
|
+
}, U = { kind: "column", columnKey: p }, M = F && (!N || N.inheritMetricFormat === !0) ? W(F.format, {
|
|
1690
1649
|
preserveOmittedProperties: !0
|
|
1691
1650
|
}) : void 0;
|
|
1692
|
-
if ((
|
|
1651
|
+
if ((M == null ? void 0 : M.type) === "date")
|
|
1693
1652
|
return [
|
|
1694
1653
|
{
|
|
1695
|
-
scope:
|
|
1696
|
-
target:
|
|
1654
|
+
scope: O,
|
|
1655
|
+
target: U,
|
|
1697
1656
|
format: {
|
|
1698
1657
|
type: "date",
|
|
1699
|
-
locale:
|
|
1700
|
-
...
|
|
1701
|
-
...
|
|
1702
|
-
...
|
|
1658
|
+
locale: M.locale ?? e.reportContext.valueFormat.locale,
|
|
1659
|
+
...M.pattern ? { pattern: M.pattern } : {},
|
|
1660
|
+
...M.timezone ? { timezone: M.timezone } : {},
|
|
1661
|
+
...M.sourceTimezone ? { sourceTimezone: M.sourceTimezone } : {}
|
|
1703
1662
|
}
|
|
1704
1663
|
}
|
|
1705
1664
|
];
|
|
1706
|
-
const
|
|
1665
|
+
const k = (h ? Ir({
|
|
1707
1666
|
card: t,
|
|
1708
1667
|
columnId: p,
|
|
1709
1668
|
columnKeyMap: e.columnKeyMap,
|
|
1710
|
-
persistedSettings:
|
|
1711
|
-
metricId:
|
|
1712
|
-
metricAlias:
|
|
1713
|
-
comparisonValueKind:
|
|
1714
|
-
comparisonPrecision: (
|
|
1669
|
+
persistedSettings: N,
|
|
1670
|
+
metricId: h.metricId,
|
|
1671
|
+
metricAlias: h.metricAlias,
|
|
1672
|
+
comparisonValueKind: h.kind,
|
|
1673
|
+
comparisonPrecision: (J = (Y = t.preferences) == null ? void 0 : Y.comparisonPresentation) == null ? void 0 : J.precision,
|
|
1715
1674
|
presentation: {
|
|
1716
1675
|
preferences: e.reportContext.valueFormat,
|
|
1717
1676
|
resolveBoundCurrency: u
|
|
1718
1677
|
}
|
|
1719
|
-
}) : void 0) ?? (
|
|
1678
|
+
}) : void 0) ?? (T ? xr({
|
|
1720
1679
|
card: t,
|
|
1721
|
-
target:
|
|
1680
|
+
target: D,
|
|
1722
1681
|
resultColumnKeys: a,
|
|
1723
1682
|
valueFormatPreferences: e.reportContext.valueFormat,
|
|
1724
|
-
boundCurrency:
|
|
1725
|
-
}) : void 0) ??
|
|
1683
|
+
boundCurrency: V
|
|
1684
|
+
}) : void 0) ?? ue({
|
|
1726
1685
|
card: t,
|
|
1727
1686
|
columnId: p,
|
|
1728
1687
|
columnKeyMap: e.columnKeyMap,
|
|
1729
|
-
metricId:
|
|
1730
|
-
persistedSettings:
|
|
1688
|
+
metricId: h == null ? void 0 : h.metricId,
|
|
1689
|
+
persistedSettings: N,
|
|
1731
1690
|
valueFormatPreferences: e.reportContext.valueFormat
|
|
1732
|
-
}),
|
|
1733
|
-
|
|
1691
|
+
}), B = (k == null ? void 0 : k.type) === "duration" ? k : k ? _(
|
|
1692
|
+
k,
|
|
1734
1693
|
e.reportContext.valueFormat,
|
|
1735
|
-
|
|
1694
|
+
V
|
|
1736
1695
|
) : _(
|
|
1737
1696
|
{
|
|
1738
1697
|
type: "number",
|
|
@@ -1742,15 +1701,15 @@ function Pr(e) {
|
|
|
1742
1701
|
e.reportContext.valueFormat
|
|
1743
1702
|
);
|
|
1744
1703
|
return [
|
|
1745
|
-
|
|
1704
|
+
B.type === "duration" ? { scope: O, target: U, format: B } : { scope: O, target: U, format: B }
|
|
1746
1705
|
];
|
|
1747
1706
|
});
|
|
1748
1707
|
y.push(
|
|
1749
|
-
...[...
|
|
1750
|
-
const
|
|
1708
|
+
...[...g.byColumnKey.values()].map((p) => {
|
|
1709
|
+
const h = b.get(
|
|
1751
1710
|
`${p.role ?? "groupby"}:${p.fieldId}`
|
|
1752
1711
|
);
|
|
1753
|
-
if (!
|
|
1712
|
+
if (!h)
|
|
1754
1713
|
throw new Error(
|
|
1755
1714
|
`Unable to resolve temporal export field "${p.fieldId}".`
|
|
1756
1715
|
);
|
|
@@ -1760,8 +1719,8 @@ function Pr(e) {
|
|
|
1760
1719
|
cardId: e.card.id
|
|
1761
1720
|
},
|
|
1762
1721
|
target: { kind: "column", columnKey: p.columnKey },
|
|
1763
|
-
format:
|
|
1764
|
-
|
|
1722
|
+
format: Qi(
|
|
1723
|
+
h,
|
|
1765
1724
|
{
|
|
1766
1725
|
dateStyle: e.reportContext.valueFormat.dateStyle,
|
|
1767
1726
|
dateTime: { ...e.reportContext.valueFormat.dateTime }
|
|
@@ -1771,37 +1730,13 @@ function Pr(e) {
|
|
|
1771
1730
|
};
|
|
1772
1731
|
})
|
|
1773
1732
|
), y.push(
|
|
1774
|
-
...((
|
|
1775
|
-
(p) => p.role === "pivotby" ? [
|
|
1776
|
-
{
|
|
1777
|
-
scope: {
|
|
1778
|
-
dashboardId: e.dashboardId,
|
|
1779
|
-
cardId: e.card.id
|
|
1780
|
-
},
|
|
1781
|
-
target: {
|
|
1782
|
-
kind: "field",
|
|
1783
|
-
fieldId: p.id,
|
|
1784
|
-
role: p.role
|
|
1785
|
-
},
|
|
1786
|
-
format: Ge(
|
|
1787
|
-
p,
|
|
1788
|
-
{
|
|
1789
|
-
dateStyle: e.reportContext.valueFormat.dateStyle,
|
|
1790
|
-
dateTime: { ...e.reportContext.valueFormat.dateTime }
|
|
1791
|
-
},
|
|
1792
|
-
e.reportContext.valueFormat.locale
|
|
1793
|
-
)
|
|
1794
|
-
}
|
|
1795
|
-
] : []
|
|
1796
|
-
)
|
|
1797
|
-
), y.push(
|
|
1798
|
-
...[...m].map(([p, g]) => ({
|
|
1733
|
+
...[...m].map(([p, h]) => ({
|
|
1799
1734
|
scope: { dashboardId: e.dashboardId, cardId: e.card.id },
|
|
1800
1735
|
target: { kind: "column", columnKey: p },
|
|
1801
|
-
format:
|
|
1736
|
+
format: h
|
|
1802
1737
|
}))
|
|
1803
1738
|
);
|
|
1804
|
-
const C =
|
|
1739
|
+
const C = zi({
|
|
1805
1740
|
reportContext: e.reportContext,
|
|
1806
1741
|
resolvedFormats: y
|
|
1807
1742
|
});
|
|
@@ -1809,17 +1744,17 @@ function Pr(e) {
|
|
|
1809
1744
|
formatOptions: {
|
|
1810
1745
|
...e.formatOptions,
|
|
1811
1746
|
...o ? { tableTotalsLabelColumnKey: o } : {},
|
|
1812
|
-
comparisonPresentation:
|
|
1747
|
+
comparisonPresentation: Tr(e.card),
|
|
1813
1748
|
presentationExecutionSnapshot: C
|
|
1814
1749
|
},
|
|
1815
1750
|
...s ? { tableTotalsRequest: s } : {}
|
|
1816
1751
|
};
|
|
1817
1752
|
}
|
|
1818
|
-
function
|
|
1819
|
-
const t =
|
|
1753
|
+
function Pr(e) {
|
|
1754
|
+
const t = Mi(
|
|
1820
1755
|
e.card,
|
|
1821
1756
|
e.requestPayloadBase
|
|
1822
|
-
), { cardId: i, ...n } = t.requestPayloadBase, r =
|
|
1757
|
+
), { cardId: i, ...n } = t.requestPayloadBase, r = wr(e);
|
|
1823
1758
|
return {
|
|
1824
1759
|
type: "card",
|
|
1825
1760
|
dashboardId: e.dashboardId,
|
|
@@ -1833,13 +1768,13 @@ function Or(e) {
|
|
|
1833
1768
|
formatOptions: r.formatOptions
|
|
1834
1769
|
};
|
|
1835
1770
|
}
|
|
1836
|
-
function
|
|
1771
|
+
function ho(e) {
|
|
1837
1772
|
const { card: t, result: i } = e;
|
|
1838
1773
|
if (t.type !== "table" && t.type !== "detailTable")
|
|
1839
1774
|
return { status: "refused", reason: "not_a_table" };
|
|
1840
|
-
if (
|
|
1775
|
+
if (Si({ card: t, comparisonMetadata: i.comparisonMetadata }))
|
|
1841
1776
|
return { status: "refused", reason: "comparison_metadata_missing" };
|
|
1842
|
-
const n =
|
|
1777
|
+
const n = Dr({
|
|
1843
1778
|
card: t,
|
|
1844
1779
|
effectiveCardConfig: e.effectiveCardConfig,
|
|
1845
1780
|
rows: e.rows,
|
|
@@ -1850,7 +1785,7 @@ function vo(e) {
|
|
|
1850
1785
|
});
|
|
1851
1786
|
return n ? {
|
|
1852
1787
|
status: "ready",
|
|
1853
|
-
request:
|
|
1788
|
+
request: Pr({
|
|
1854
1789
|
card: t,
|
|
1855
1790
|
dashboardId: e.dashboardId,
|
|
1856
1791
|
title: e.title,
|
|
@@ -1866,9 +1801,9 @@ function vo(e) {
|
|
|
1866
1801
|
})
|
|
1867
1802
|
} : { status: "refused", reason: "columns_unresolved" };
|
|
1868
1803
|
}
|
|
1869
|
-
function
|
|
1870
|
-
if (
|
|
1871
|
-
|
|
1804
|
+
function Or(e, t, i) {
|
|
1805
|
+
if (Ai(
|
|
1806
|
+
_i(t),
|
|
1872
1807
|
e.aggregateOrigin
|
|
1873
1808
|
))
|
|
1874
1809
|
return { aggregate: void 0, aggregateOrigin: void 0 };
|
|
@@ -1878,7 +1813,7 @@ function Ar(e, t, i) {
|
|
|
1878
1813
|
aggregateOrigin: e.aggregate ? e.aggregateOrigin : n ? t.aggregateOrigin : void 0
|
|
1879
1814
|
};
|
|
1880
1815
|
}
|
|
1881
|
-
function
|
|
1816
|
+
function Ar(e, t, i) {
|
|
1882
1817
|
var n, r, a, o, s, l;
|
|
1883
1818
|
if (i === "domain")
|
|
1884
1819
|
return {
|
|
@@ -1891,7 +1826,7 @@ function Nr(e, t, i) {
|
|
|
1891
1826
|
windowTransform: ((s = e.parameters) == null ? void 0 : s.windowTransform) ?? ((l = t.parameters) == null ? void 0 : l.windowTransform)
|
|
1892
1827
|
};
|
|
1893
1828
|
}
|
|
1894
|
-
function
|
|
1829
|
+
function go(e, t, i) {
|
|
1895
1830
|
const n = e;
|
|
1896
1831
|
return {
|
|
1897
1832
|
id: e.id,
|
|
@@ -1903,13 +1838,13 @@ function Fo(e, t, i) {
|
|
|
1903
1838
|
dateFormat: e.dateFormat,
|
|
1904
1839
|
customFormat: e.customFormat,
|
|
1905
1840
|
semanticTemporalPresentation: t.semanticTemporalPresentation || e.semanticTemporalPresentation,
|
|
1906
|
-
...
|
|
1841
|
+
...Or(e, t, i),
|
|
1907
1842
|
...e.role === "metric" ? {
|
|
1908
1843
|
aliasTemplate: n.aliasTemplate,
|
|
1909
1844
|
valueAliases: n.valueAliases,
|
|
1910
1845
|
comparison: n.comparison,
|
|
1911
1846
|
comparisonPolarity: n.comparisonPolarity,
|
|
1912
|
-
parameters:
|
|
1847
|
+
parameters: Ar(
|
|
1913
1848
|
n,
|
|
1914
1849
|
t,
|
|
1915
1850
|
"domain"
|
|
@@ -1944,73 +1879,73 @@ function _r(e) {
|
|
|
1944
1879
|
return t;
|
|
1945
1880
|
}
|
|
1946
1881
|
}
|
|
1947
|
-
const
|
|
1948
|
-
function
|
|
1882
|
+
const Nr = "table";
|
|
1883
|
+
function yo({ preferences: e, ...t }) {
|
|
1949
1884
|
return {
|
|
1950
1885
|
...t,
|
|
1951
|
-
type:
|
|
1886
|
+
type: Nr,
|
|
1952
1887
|
preferences: e ?? { onClickFilter: [{ columnIndex: 0, expression: "" }] },
|
|
1953
1888
|
sql: "",
|
|
1954
1889
|
data: []
|
|
1955
1890
|
};
|
|
1956
1891
|
}
|
|
1957
|
-
function
|
|
1892
|
+
function Er(e, t) {
|
|
1958
1893
|
const i = e.sheets ?? [], n = i.findIndex((o) => o.id === t.sheetId), r = i[n];
|
|
1959
1894
|
if (!r)
|
|
1960
|
-
throw new
|
|
1961
|
-
if (
|
|
1962
|
-
throw new
|
|
1895
|
+
throw new A("sheet_not_found", `No sheet ${t.sheetId} on this dashboard.`);
|
|
1896
|
+
if (Yi(r))
|
|
1897
|
+
throw new A(
|
|
1963
1898
|
"sheet_not_a_grid",
|
|
1964
1899
|
"This sheet is a document: it has no grid to arrange.",
|
|
1965
1900
|
"Arrange a grid sheet; Document sheets are laid out in the editor."
|
|
1966
1901
|
);
|
|
1967
|
-
const a =
|
|
1902
|
+
const a = Ft(r, { kind: "arrange", keepOrder: t.keepOrder === !0 });
|
|
1968
1903
|
return {
|
|
1969
1904
|
dashboard: { ...e, sheets: i.map((o, s) => s === n ? a : o) },
|
|
1970
|
-
clauses: [
|
|
1905
|
+
clauses: [De.arranged(r.title || "the dashboard", t.keepOrder === !0, !(r.frames ?? []).length)]
|
|
1971
1906
|
};
|
|
1972
1907
|
}
|
|
1973
|
-
function
|
|
1908
|
+
function Rr(e) {
|
|
1974
1909
|
return !!(e && Object.prototype.hasOwnProperty.call(e, "calculatedFields"));
|
|
1975
1910
|
}
|
|
1976
|
-
function
|
|
1977
|
-
return
|
|
1911
|
+
function j(...e) {
|
|
1912
|
+
return Ji(e.flatMap((t) => t || []));
|
|
1978
1913
|
}
|
|
1979
|
-
function
|
|
1914
|
+
function Q(e, t) {
|
|
1980
1915
|
return {
|
|
1981
1916
|
...e,
|
|
1982
1917
|
fieldScope: t
|
|
1983
1918
|
};
|
|
1984
1919
|
}
|
|
1985
|
-
function
|
|
1986
|
-
return ((e == null ? void 0 : e.calculatedFields) || []).filter((t) => t.fieldScope === "sheet").map((t) =>
|
|
1920
|
+
function Re(e) {
|
|
1921
|
+
return ((e == null ? void 0 : e.calculatedFields) || []).filter((t) => t.fieldScope === "sheet").map((t) => Q(t, "sheet"));
|
|
1987
1922
|
}
|
|
1988
|
-
function
|
|
1989
|
-
return ((e == null ? void 0 : e.calculatedFields) || []).filter((t) => !t.fieldScope).map((t) =>
|
|
1923
|
+
function Ht(e) {
|
|
1924
|
+
return ((e == null ? void 0 : e.calculatedFields) || []).filter((t) => !t.fieldScope).map((t) => Q(t, "sheet"));
|
|
1990
1925
|
}
|
|
1991
|
-
function
|
|
1926
|
+
function Vr(e) {
|
|
1992
1927
|
return e ? [
|
|
1993
1928
|
...(e.calculatedFields || []).filter(
|
|
1994
1929
|
(t) => t.fieldScope === "dashboard"
|
|
1995
1930
|
),
|
|
1996
1931
|
...(e.frames || []).flatMap((t) => t.calculatedFields || [])
|
|
1997
|
-
].map((t) =>
|
|
1932
|
+
].map((t) => Q(t, "dashboard")) : [];
|
|
1998
1933
|
}
|
|
1999
|
-
function
|
|
1934
|
+
function kr(e) {
|
|
2000
1935
|
if (e !== void 0)
|
|
2001
|
-
return
|
|
2002
|
-
e.map((t) =>
|
|
1936
|
+
return j(
|
|
1937
|
+
e.map((t) => Q(t, "dashboard"))
|
|
2003
1938
|
);
|
|
2004
1939
|
}
|
|
2005
|
-
function
|
|
1940
|
+
function bo(e) {
|
|
2006
1941
|
var n;
|
|
2007
1942
|
const t = [], i = (e.sheets || []).map((r) => {
|
|
2008
1943
|
var a;
|
|
2009
|
-
return t.push(...
|
|
1944
|
+
return t.push(...Vr(r)), {
|
|
2010
1945
|
...r,
|
|
2011
|
-
calculatedFields:
|
|
2012
|
-
|
|
2013
|
-
|
|
1946
|
+
calculatedFields: j(
|
|
1947
|
+
Re(r),
|
|
1948
|
+
Ht(r)
|
|
2014
1949
|
),
|
|
2015
1950
|
frames: (a = r.frames) == null ? void 0 : a.map(
|
|
2016
1951
|
(o) => o.calculatedFields === void 0 ? o : { ...o, calculatedFields: void 0 }
|
|
@@ -2019,10 +1954,10 @@ function Io(e) {
|
|
|
2019
1954
|
});
|
|
2020
1955
|
return {
|
|
2021
1956
|
...e,
|
|
2022
|
-
calculatedFields:
|
|
2023
|
-
|
|
1957
|
+
calculatedFields: kr(
|
|
1958
|
+
j(
|
|
2024
1959
|
(n = e.calculatedFields) == null ? void 0 : n.map(
|
|
2025
|
-
(r) =>
|
|
1960
|
+
(r) => Q(r, "dashboard")
|
|
2026
1961
|
),
|
|
2027
1962
|
t
|
|
2028
1963
|
)
|
|
@@ -2030,42 +1965,42 @@ function Io(e) {
|
|
|
2030
1965
|
sheets: i
|
|
2031
1966
|
};
|
|
2032
1967
|
}
|
|
2033
|
-
function
|
|
1968
|
+
function at(e, t) {
|
|
2034
1969
|
var r;
|
|
2035
1970
|
if (!((r = e == null ? void 0 : e.frames) != null && r.length))
|
|
2036
1971
|
return [];
|
|
2037
1972
|
const i = t ? e.frames.find((a) => a.id === t) : void 0, n = e.frames.filter(
|
|
2038
1973
|
(a) => !t || a.id !== t
|
|
2039
1974
|
);
|
|
2040
|
-
return
|
|
1975
|
+
return j(
|
|
2041
1976
|
i == null ? void 0 : i.calculatedFields,
|
|
2042
1977
|
...n.map((a) => a.calculatedFields)
|
|
2043
1978
|
);
|
|
2044
1979
|
}
|
|
2045
|
-
function
|
|
2046
|
-
return e ?
|
|
1980
|
+
function vo(e, t) {
|
|
1981
|
+
return e ? Re(e) : [];
|
|
2047
1982
|
}
|
|
2048
|
-
function
|
|
1983
|
+
function Fo(e, t) {
|
|
2049
1984
|
if (!e)
|
|
2050
1985
|
return [];
|
|
2051
|
-
const i =
|
|
1986
|
+
const i = Re(e), n = Ht(e), r = j(
|
|
2052
1987
|
i,
|
|
2053
1988
|
n
|
|
2054
1989
|
);
|
|
2055
|
-
return
|
|
1990
|
+
return Rr(e) ? r.length === 0 ? [] : n.length === 0 ? r : j(
|
|
2056
1991
|
r,
|
|
2057
|
-
|
|
2058
|
-
) :
|
|
1992
|
+
at(e, t)
|
|
1993
|
+
) : at(e, t);
|
|
2059
1994
|
}
|
|
2060
|
-
function
|
|
1995
|
+
function Br(e) {
|
|
2061
1996
|
if (e !== void 0)
|
|
2062
|
-
return
|
|
2063
|
-
e.map((t) =>
|
|
1997
|
+
return j(
|
|
1998
|
+
e.map((t) => Q(t, "sheet"))
|
|
2064
1999
|
);
|
|
2065
2000
|
}
|
|
2066
|
-
function
|
|
2001
|
+
function Co(e) {
|
|
2067
2002
|
const { field: t, sheetFields: i = [], dashboardFields: n = [] } = e, r = (s) => s.find(
|
|
2068
|
-
(l) =>
|
|
2003
|
+
(l) => Xi(l, t, {
|
|
2069
2004
|
allowComparableFallback: !0
|
|
2070
2005
|
})
|
|
2071
2006
|
);
|
|
@@ -2079,48 +2014,48 @@ function Mo(e) {
|
|
|
2079
2014
|
const o = r(n);
|
|
2080
2015
|
return o ? { scope: "dashboard", matchedField: o } : { scope: "card" };
|
|
2081
2016
|
}
|
|
2082
|
-
function
|
|
2083
|
-
var C,
|
|
2084
|
-
const i = (e.sheets ?? []).findIndex((
|
|
2017
|
+
function Kr(e, t) {
|
|
2018
|
+
var C, S, w;
|
|
2019
|
+
const i = (e.sheets ?? []).findIndex((p) => p.id === t.sheetId), n = (C = e.sheets) == null ? void 0 : C[i];
|
|
2085
2020
|
if (!(n != null && n.frames))
|
|
2086
|
-
throw new
|
|
2087
|
-
const { frame: r } = t, a = n.frames.findIndex((
|
|
2021
|
+
throw new A("sheet_not_found", `No sheet ${t.sheetId} with frames on this dashboard.`);
|
|
2022
|
+
const { frame: r } = t, a = n.frames.findIndex((p) => p.id === r.id);
|
|
2088
2023
|
if (a === -1)
|
|
2089
|
-
throw new
|
|
2090
|
-
const o = n.frames[a], s =
|
|
2091
|
-
const
|
|
2092
|
-
return
|
|
2093
|
-
})() : [r], f = new Map(u.map((
|
|
2094
|
-
let
|
|
2095
|
-
const v =
|
|
2096
|
-
const
|
|
2097
|
-
d.layouts !== n.layouts && (
|
|
2098
|
-
const
|
|
2099
|
-
return
|
|
2024
|
+
throw new A("frame_not_found", `No frame ${r.id} on sheet ${t.sheetId}.`);
|
|
2025
|
+
const o = n.frames[a], s = Ue(n), l = (p) => p.calculatedFields === void 0 ? p : { ...p, calculatedFields: void 0 }, c = t.rewrittenFrames, u = c && c.length > 0 ? (() => {
|
|
2026
|
+
const p = c.map((h) => h.id === r.id ? r : h);
|
|
2027
|
+
return p.some((h) => h.id === r.id) ? p : [r, ...p];
|
|
2028
|
+
})() : [r], f = new Map(u.map((p) => [p.id, p])), d = Ft(n, { kind: "frame_updated", frame: r, resizeForNewKind: t.resizeLayouts });
|
|
2029
|
+
let g = /* @__PURE__ */ new Set();
|
|
2030
|
+
const v = Zi.produce(e, (p) => {
|
|
2031
|
+
const h = p.sheets[i];
|
|
2032
|
+
d.layouts !== n.layouts && (h.layouts = Ge(d.layouts)), d.customizedBreakpoints !== n.customizedBreakpoints && (h.customizedBreakpoints = d.customizedBreakpoints), t.sheetCalculatedFields !== void 0 && (h.calculatedFields = Br(t.sheetCalculatedFields)), h.frames = h.frames.map((D) => {
|
|
2033
|
+
const T = f.get(D.id);
|
|
2034
|
+
return T ? Ge(l(T)) : D.calculatedFields === void 0 ? D : { ...D, calculatedFields: void 0 };
|
|
2100
2035
|
});
|
|
2101
|
-
const
|
|
2102
|
-
|
|
2103
|
-
}), b = v.sheets[i].frames.find((
|
|
2104
|
-
...
|
|
2036
|
+
const F = Ue(h);
|
|
2037
|
+
g = new Set([...s].filter((D) => !F.has(D))), en(p, g), t.dashboardCalculatedFields && (p.calculatedFields = t.dashboardCalculatedFields);
|
|
2038
|
+
}), b = v.sheets[i].frames.find((p) => p.id === r.id), m = [
|
|
2039
|
+
...g.size ? [{ kind: "cards_removed", cardIds: [...g] }] : [],
|
|
2105
2040
|
{ kind: "frame_committed", sheetId: t.sheetId, before: o, after: b }
|
|
2106
|
-
], y = ((
|
|
2107
|
-
return { dashboard: v, runtimeEffects: m, clauses: [
|
|
2041
|
+
], y = ((S = r.cards) == null ? void 0 : S.find((p) => p.id === r.activeCardId)) ?? ((w = r.cards) == null ? void 0 : w[0]);
|
|
2042
|
+
return { dashboard: v, runtimeEffects: m, clauses: [De.committed(y == null ? void 0 : y.title)] };
|
|
2108
2043
|
}
|
|
2109
|
-
function
|
|
2044
|
+
function Lr(e, t, i) {
|
|
2110
2045
|
var a;
|
|
2111
2046
|
if (!e || !t || t.customFilterPreferences) return;
|
|
2112
2047
|
const n = t.defaultDateFilter;
|
|
2113
|
-
return (t.dateSelectionMode === "day" ?
|
|
2048
|
+
return (t.dateSelectionMode === "day" ? rn(n) : t.dateSelectionMode === "months" && (an(n) || on(n) && n.unit === "month" && (n.mode === "previous" || n.mode === "this" && !n.toDate && !n.boundary))) && ((a = G(t, i)) == null ? void 0 : a.valueType) === "date" ? !0 : void 0;
|
|
2114
2049
|
}
|
|
2115
|
-
function
|
|
2116
|
-
const t = e.createId ??
|
|
2050
|
+
function Io(e) {
|
|
2051
|
+
const t = e.createId ?? St, i = t(), n = Di({
|
|
2117
2052
|
field: e.field,
|
|
2118
2053
|
dataSource: e.dataSource,
|
|
2119
2054
|
connectionId: e.connectionId,
|
|
2120
2055
|
connectionType: e.connectionType,
|
|
2121
2056
|
filterId: t()
|
|
2122
2057
|
});
|
|
2123
|
-
return
|
|
2058
|
+
return qr({
|
|
2124
2059
|
filter: e.label ? { ...n, title: e.label } : n,
|
|
2125
2060
|
label: e.label || e.field.label || e.field.name,
|
|
2126
2061
|
scope: e.scope,
|
|
@@ -2128,11 +2063,11 @@ function Do(e) {
|
|
|
2128
2063
|
createId: () => i
|
|
2129
2064
|
});
|
|
2130
2065
|
}
|
|
2131
|
-
function
|
|
2132
|
-
const t = e.createId ??
|
|
2066
|
+
function qr(e) {
|
|
2067
|
+
const t = e.createId ?? St, i = e.label || e.filter.title || e.filter.column || e.filter.id, n = tn(i, [
|
|
2133
2068
|
...e.existingInputs
|
|
2134
2069
|
]), r = {
|
|
2135
|
-
...
|
|
2070
|
+
...Ct(e.filter),
|
|
2136
2071
|
variableName: n
|
|
2137
2072
|
};
|
|
2138
2073
|
return {
|
|
@@ -2143,22 +2078,22 @@ function $r(e) {
|
|
|
2143
2078
|
requiredAtExecution: !1,
|
|
2144
2079
|
scope: e.scope,
|
|
2145
2080
|
runtimeScope: "shared",
|
|
2146
|
-
presentation:
|
|
2081
|
+
presentation: xt(r),
|
|
2147
2082
|
filter: r,
|
|
2148
|
-
exports:
|
|
2083
|
+
exports: It(r)
|
|
2149
2084
|
};
|
|
2150
2085
|
}
|
|
2151
|
-
function
|
|
2152
|
-
var J,
|
|
2153
|
-
const r =
|
|
2086
|
+
function $r(e, t, i, n = { calendar: null }) {
|
|
2087
|
+
var Y, J, Be, Ke, Le, qe, $e, ze;
|
|
2088
|
+
const r = $(e), a = r.findFilterInput(t), o = (x, I) => ({
|
|
2154
2089
|
ok: !1,
|
|
2155
2090
|
issues: [
|
|
2156
2091
|
{
|
|
2157
2092
|
code: "invalidSettings",
|
|
2158
|
-
message:
|
|
2093
|
+
message: x,
|
|
2159
2094
|
ref: t,
|
|
2160
2095
|
...a ? { inputId: a.input.id } : {},
|
|
2161
|
-
...
|
|
2096
|
+
...I ? { contractIssue: I } : {}
|
|
2162
2097
|
}
|
|
2163
2098
|
]
|
|
2164
2099
|
});
|
|
@@ -2176,139 +2111,139 @@ function zr(e, t, i, n = { calendar: null }) {
|
|
|
2176
2111
|
if (a.origin !== "embeddedInput")
|
|
2177
2112
|
return o("This filter can not be edited here.");
|
|
2178
2113
|
const s = a.input, l = s.filter;
|
|
2179
|
-
if (((
|
|
2114
|
+
if (((Y = i.mapping) == null ? void 0 : Y.kind) === "save") {
|
|
2180
2115
|
if (!i.mapping.draft.acceptance.ok)
|
|
2181
2116
|
return { ok: !1, issues: i.mapping.draft.acceptance.issues };
|
|
2182
2117
|
if (i.mapping.draft.inputId !== s.id)
|
|
2183
2118
|
return o("The card mapping was prepared for another filter.");
|
|
2184
2119
|
}
|
|
2185
|
-
const c = i.definition ?
|
|
2186
|
-
if (c.kind === "global-date" && i.scope && !
|
|
2120
|
+
const c = i.definition ? Ct(i.definition) : l;
|
|
2121
|
+
if (c.kind === "global-date" && i.scope && !zr(i.scope))
|
|
2187
2122
|
return o("The Global Date filter applies to regular tabs only.");
|
|
2188
|
-
const u = (
|
|
2123
|
+
const u = (J = n.calendar) == null ? void 0 : J.tz, f = i.definition !== void 0, d = i.forceSelection !== void 0 || f ? Lr(
|
|
2189
2124
|
i.forceSelection ?? s.forceSelection,
|
|
2190
2125
|
c,
|
|
2191
2126
|
u
|
|
2192
|
-
) : s.forceSelection ? !0 : void 0,
|
|
2193
|
-
...
|
|
2194
|
-
...r.inputs.filter((
|
|
2195
|
-
]) : s.variableName, b = f && (l.title || l.column) !== (c.title || c.column), m = i.label ?? (b ? c.title || c.column || c.id : void 0), y = f && l.hide !== c.hide, C = f && l.toolbarWidth !== c.toolbarWidth,
|
|
2196
|
-
var
|
|
2197
|
-
const
|
|
2198
|
-
if (m !== void 0 && (
|
|
2199
|
-
const
|
|
2200
|
-
|
|
2127
|
+
) : s.forceSelection ? !0 : void 0, g = (Array.isArray(e.inputs) ? e.inputs : []).filter((x) => x.id !== s.id), v = i.variableName !== void 0 ? nn(i.variableName, [
|
|
2128
|
+
...g,
|
|
2129
|
+
...r.inputs.filter((x) => x.input.id !== s.id).map((x) => x.input)
|
|
2130
|
+
]) : s.variableName, b = f && (l.title || l.column) !== (c.title || c.column), m = i.label ?? (b ? c.title || c.column || c.id : void 0), y = f && l.hide !== c.hide, C = f && l.toolbarWidth !== c.toolbarWidth, S = (x) => {
|
|
2131
|
+
var je, He;
|
|
2132
|
+
const I = { ...x };
|
|
2133
|
+
if (m !== void 0 && (I.label = m), i.variableName !== void 0 && (I.variableName = v), i.scope && (I.scope = i.scope), y || C) {
|
|
2134
|
+
const he = xt(c);
|
|
2135
|
+
I.presentation = { ...x.presentation }, y && (I.presentation.placement = he.placement), C && (he.widthPx === void 0 ? delete I.presentation.widthPx : I.presentation.widthPx = he.widthPx);
|
|
2201
2136
|
}
|
|
2202
|
-
return (i.forceSelection !== void 0 || f) && (d ?
|
|
2203
|
-
}, w = i.label !== void 0 && i.label !== s.label && i.label !== c.title ? i.label : void 0,
|
|
2204
|
-
...
|
|
2137
|
+
return (i.forceSelection !== void 0 || f) && (d ? I.forceSelection = d : delete I.forceSelection), i.requiredAtExecution !== void 0 && (i.requiredAtExecution ? I.requiredAtExecution = !0 : delete I.requiredAtExecution), ve(I, "optionSource", i.optionSource), ve(I, "optionDependencies", i.optionDependencies), ve(I, "optionPopulation", i.optionPopulation), ((je = i.mapping) == null ? void 0 : je.kind) === "save" && i.mapping.draft.acceptance.ok ? I.application = i.mapping.draft.acceptance.application : ((He = i.mapping) == null ? void 0 : He.kind) === "remove" && delete I.application, I;
|
|
2138
|
+
}, w = i.label !== void 0 && i.label !== s.label && i.label !== c.title ? i.label : void 0, p = f || i.variableName !== void 0 || w !== void 0, h = (x) => ({
|
|
2139
|
+
...x,
|
|
2205
2140
|
...i.variableName !== void 0 ? { variableName: v } : {},
|
|
2206
2141
|
...w !== void 0 ? { title: w } : {}
|
|
2207
|
-
}),
|
|
2208
|
-
if (
|
|
2142
|
+
}), F = Array.isArray(e.inputs) ? [...e.inputs] : [], D = F.findIndex((x) => x.id === s.id), T = F[D];
|
|
2143
|
+
if (D < 0 || (T == null ? void 0 : T.kind) !== "filter" || !T.filter)
|
|
2209
2144
|
return o("This filter can not be edited here.");
|
|
2210
|
-
const
|
|
2211
|
-
|
|
2212
|
-
...
|
|
2213
|
-
filter:
|
|
2214
|
-
} :
|
|
2145
|
+
const V = S(
|
|
2146
|
+
p ? {
|
|
2147
|
+
...T,
|
|
2148
|
+
filter: h(c)
|
|
2149
|
+
} : T
|
|
2215
2150
|
);
|
|
2216
|
-
f && (
|
|
2217
|
-
const
|
|
2218
|
-
inputs: [
|
|
2151
|
+
f && (V.exports = It(c)), F[D] = V;
|
|
2152
|
+
const N = Pe({
|
|
2153
|
+
inputs: [V],
|
|
2219
2154
|
dashboardFilters: []
|
|
2220
2155
|
});
|
|
2221
|
-
if (!
|
|
2156
|
+
if (!N.ok)
|
|
2222
2157
|
return o(
|
|
2223
|
-
((
|
|
2224
|
-
|
|
2158
|
+
((Be = N.issues[0]) == null ? void 0 : Be.message) ?? "These settings could not be saved.",
|
|
2159
|
+
N.issues[0]
|
|
2225
2160
|
);
|
|
2226
|
-
let O = { ...e, inputs:
|
|
2227
|
-
const
|
|
2228
|
-
if (!
|
|
2161
|
+
let O = { ...e, inputs: F };
|
|
2162
|
+
const U = $(O), M = U.findFilterInput({ filterId: c.id });
|
|
2163
|
+
if (!M)
|
|
2229
2164
|
return o(
|
|
2230
|
-
((
|
|
2165
|
+
((Ke = U.issues[0]) == null ? void 0 : Ke.message) ?? "These settings could not be saved."
|
|
2231
2166
|
);
|
|
2232
|
-
const
|
|
2233
|
-
if (
|
|
2167
|
+
const k = i.variableName !== void 0 || i.scope !== void 0 ? jr(O, M.input) : void 0;
|
|
2168
|
+
if (k)
|
|
2234
2169
|
return o(
|
|
2235
|
-
`Another filter on the same cards is already named "${
|
|
2170
|
+
`Another filter on the same cards is already named "${k}". Choose another name.`
|
|
2236
2171
|
);
|
|
2237
|
-
const B = [],
|
|
2238
|
-
id:
|
|
2239
|
-
runtimeScope:
|
|
2172
|
+
const B = [], q = {
|
|
2173
|
+
id: M.input.id,
|
|
2174
|
+
runtimeScope: M.input.runtimeScope
|
|
2240
2175
|
};
|
|
2241
|
-
let
|
|
2176
|
+
let E = {
|
|
2242
2177
|
defaultInputValues: O.defaultInputValues,
|
|
2243
2178
|
dashboardInputValues: {}
|
|
2244
2179
|
};
|
|
2245
|
-
const
|
|
2180
|
+
const re = ((Le = i.values) == null ? void 0 : Le.target) ?? {}, P = Gr(
|
|
2246
2181
|
l,
|
|
2247
2182
|
c,
|
|
2248
2183
|
{
|
|
2249
|
-
defaultValueChanged: (
|
|
2250
|
-
selectionIdentityChanged: (
|
|
2251
|
-
...((
|
|
2184
|
+
defaultValueChanged: (qe = i.values) == null ? void 0 : qe.defaultChanged,
|
|
2185
|
+
selectionIdentityChanged: ($e = i.values) == null ? void 0 : $e.selectionIdentityChanged,
|
|
2186
|
+
...((ze = i.values) == null ? void 0 : ze.defaultComparisonSelection) !== void 0 ? {
|
|
2252
2187
|
defaultComparisonChanged: !0,
|
|
2253
2188
|
defaultComparisonSelection: i.values.defaultComparisonSelection ?? void 0
|
|
2254
2189
|
} : {}
|
|
2255
2190
|
},
|
|
2256
|
-
|
|
2191
|
+
re,
|
|
2257
2192
|
n.calendar ?? void 0
|
|
2258
2193
|
);
|
|
2259
2194
|
if (P.defaultValueChanged || P.selectionIdentityChanged || P.defaultComparisonChanged) {
|
|
2260
|
-
const
|
|
2261
|
-
state: { ...
|
|
2262
|
-
input:
|
|
2195
|
+
const x = Ut({
|
|
2196
|
+
state: { ...E, dashboardInputValues: {} },
|
|
2197
|
+
input: q,
|
|
2263
2198
|
settings: P
|
|
2264
2199
|
});
|
|
2265
|
-
|
|
2200
|
+
E = { ...E, defaultInputValues: x.defaultInputValues }, P.selectionIdentityChanged && B.push({
|
|
2266
2201
|
kind: "clear",
|
|
2267
|
-
inputId:
|
|
2202
|
+
inputId: q.id,
|
|
2268
2203
|
target: P.target
|
|
2269
2204
|
}), P.defaultValueChanged && B.push({
|
|
2270
2205
|
kind: "resetToDefault",
|
|
2271
|
-
inputId:
|
|
2206
|
+
inputId: q.id,
|
|
2272
2207
|
target: P.target,
|
|
2273
2208
|
...P.defaultFilterValue ? { filterValue: P.defaultFilterValue } : {}
|
|
2274
2209
|
}), P.defaultComparisonChanged && B.push({
|
|
2275
2210
|
kind: "setDefaultComparison",
|
|
2276
|
-
inputId:
|
|
2211
|
+
inputId: q.id,
|
|
2277
2212
|
target: P.target
|
|
2278
2213
|
});
|
|
2279
2214
|
}
|
|
2280
|
-
if (i.scope &&
|
|
2281
|
-
const
|
|
2215
|
+
if (i.scope && M.input.runtimeScope !== "shared") {
|
|
2216
|
+
const x = Hr(
|
|
2282
2217
|
O,
|
|
2283
2218
|
s,
|
|
2284
|
-
|
|
2285
|
-
|
|
2219
|
+
M.input,
|
|
2220
|
+
E.defaultInputValues
|
|
2286
2221
|
);
|
|
2287
|
-
|
|
2288
|
-
...
|
|
2289
|
-
defaultInputValues:
|
|
2222
|
+
E = {
|
|
2223
|
+
...E,
|
|
2224
|
+
defaultInputValues: x.defaultInputValues
|
|
2290
2225
|
}, B.push(
|
|
2291
|
-
...
|
|
2226
|
+
...x.dropped.map((I) => ({
|
|
2292
2227
|
kind: "dropTargetSlot",
|
|
2293
|
-
inputId:
|
|
2294
|
-
target:
|
|
2228
|
+
inputId: q.id,
|
|
2229
|
+
target: I
|
|
2295
2230
|
}))
|
|
2296
2231
|
);
|
|
2297
2232
|
}
|
|
2298
|
-
return O =
|
|
2233
|
+
return O = Ur(O, E), {
|
|
2299
2234
|
ok: !0,
|
|
2300
2235
|
dashboard: O,
|
|
2301
|
-
inputId:
|
|
2236
|
+
inputId: M.input.id,
|
|
2302
2237
|
valueEffects: B
|
|
2303
2238
|
};
|
|
2304
2239
|
}
|
|
2305
|
-
function
|
|
2306
|
-
let t =
|
|
2240
|
+
function xo(e) {
|
|
2241
|
+
let t = We({
|
|
2307
2242
|
dashboard: e.before,
|
|
2308
2243
|
runtimeValues: e.dashboardInputValues,
|
|
2309
2244
|
calendar: e.calendar
|
|
2310
2245
|
});
|
|
2311
|
-
const i =
|
|
2246
|
+
const i = $(e.after), n = (r) => {
|
|
2312
2247
|
var a;
|
|
2313
2248
|
return (a = i.findFilterInput({ inputId: r })) == null ? void 0 : a.input;
|
|
2314
2249
|
};
|
|
@@ -2319,7 +2254,7 @@ function To(e) {
|
|
|
2319
2254
|
case "setDefaultComparison": {
|
|
2320
2255
|
const a = n(r.inputId);
|
|
2321
2256
|
if (!a) break;
|
|
2322
|
-
t =
|
|
2257
|
+
t = Ut({
|
|
2323
2258
|
state: { dashboardInputValues: t },
|
|
2324
2259
|
input: a,
|
|
2325
2260
|
settings: {
|
|
@@ -2335,7 +2270,7 @@ function To(e) {
|
|
|
2335
2270
|
case "dropTargetSlot": {
|
|
2336
2271
|
const a = n(r.inputId);
|
|
2337
2272
|
if (!a) break;
|
|
2338
|
-
t =
|
|
2273
|
+
t = Te(
|
|
2339
2274
|
t,
|
|
2340
2275
|
a,
|
|
2341
2276
|
r.target
|
|
@@ -2343,22 +2278,22 @@ function To(e) {
|
|
|
2343
2278
|
break;
|
|
2344
2279
|
}
|
|
2345
2280
|
}
|
|
2346
|
-
return
|
|
2281
|
+
return We({
|
|
2347
2282
|
dashboard: e.after,
|
|
2348
2283
|
runtimeValues: t,
|
|
2349
2284
|
calendar: e.calendar
|
|
2350
2285
|
});
|
|
2351
2286
|
}
|
|
2352
|
-
function
|
|
2287
|
+
function zr(e) {
|
|
2353
2288
|
var t;
|
|
2354
2289
|
return e.kind !== "documentSections" && (e.kind !== "allSheets" || ((t = e.sheetKinds) == null ? void 0 : t.length) === 1 && e.sheetKinds[0] === "dashboard");
|
|
2355
2290
|
}
|
|
2356
|
-
function
|
|
2291
|
+
function ve(e, t, i) {
|
|
2357
2292
|
i !== void 0 && (i === null ? delete e[t] : e[t] = i);
|
|
2358
2293
|
}
|
|
2359
|
-
function
|
|
2294
|
+
function jr(e, t) {
|
|
2360
2295
|
const i = [
|
|
2361
|
-
|
|
2296
|
+
...$(e).inputs.map((r) => r.input),
|
|
2362
2297
|
...(Array.isArray(e.inputs) ? e.inputs : []).filter(
|
|
2363
2298
|
(r) => r.kind === "control"
|
|
2364
2299
|
)
|
|
@@ -2366,21 +2301,21 @@ function Ur(e, t) {
|
|
|
2366
2301
|
(r) => r.id !== t.id && r.variableName === t.variableName
|
|
2367
2302
|
);
|
|
2368
2303
|
if (!i.length) return;
|
|
2369
|
-
const n =
|
|
2304
|
+
const n = Xe(e, t);
|
|
2370
2305
|
return i.some(
|
|
2371
|
-
(r) => [...
|
|
2306
|
+
(r) => [...Xe(e, r)].some(
|
|
2372
2307
|
(a) => n.has(a)
|
|
2373
2308
|
)
|
|
2374
2309
|
) ? t.variableName : void 0;
|
|
2375
2310
|
}
|
|
2376
2311
|
function Hr(e, t, i, n) {
|
|
2377
2312
|
var u, f;
|
|
2378
|
-
const r = [], a =
|
|
2313
|
+
const r = [], a = Mt(e), o = (d) => ot(t, d, a), s = (d) => ot(i, d, a), l = [];
|
|
2379
2314
|
if (i.runtimeScope === "perSheet")
|
|
2380
2315
|
for (const d of a.values())
|
|
2381
2316
|
l.push({ sheetId: d.sheetId, sheetKind: d.sheetKind });
|
|
2382
2317
|
else if (i.runtimeScope === "perCard")
|
|
2383
|
-
for (const d of
|
|
2318
|
+
for (const d of de(e))
|
|
2384
2319
|
l.push({
|
|
2385
2320
|
sheetId: d.sheetId,
|
|
2386
2321
|
cardId: d.cardId,
|
|
@@ -2388,65 +2323,65 @@ function Hr(e, t, i, n) {
|
|
|
2388
2323
|
});
|
|
2389
2324
|
else if (i.runtimeScope === "perDocumentSection")
|
|
2390
2325
|
for (const d of e.sheets ?? [])
|
|
2391
|
-
for (const
|
|
2326
|
+
for (const g of ((f = d.document) == null ? void 0 : f.sections) ?? [])
|
|
2392
2327
|
l.push({
|
|
2393
2328
|
sheetId: d.id,
|
|
2394
|
-
sectionId:
|
|
2329
|
+
sectionId: g.id,
|
|
2395
2330
|
sheetKind: "document"
|
|
2396
2331
|
});
|
|
2397
2332
|
let c = n;
|
|
2398
2333
|
for (const d of l) {
|
|
2399
2334
|
if (s(d)) continue;
|
|
2400
|
-
const
|
|
2401
|
-
if (
|
|
2335
|
+
const g = !!(c && we(c, i, d));
|
|
2336
|
+
if (g && (c = Te(c, i, d)), g || o(d)) {
|
|
2402
2337
|
const { sheetKind: v, ...b } = d;
|
|
2403
2338
|
r.push(b);
|
|
2404
2339
|
}
|
|
2405
2340
|
}
|
|
2406
2341
|
return { defaultInputValues: c, dropped: r };
|
|
2407
2342
|
}
|
|
2408
|
-
function
|
|
2343
|
+
function ot(e, t, i) {
|
|
2409
2344
|
if (e.runtimeScope === "perSheet" && t.sheetId && !t.cardId && !t.sectionId) {
|
|
2410
2345
|
const n = i.get(t.sheetId);
|
|
2411
|
-
return n ?
|
|
2346
|
+
return n ? Dt(e, n) : !1;
|
|
2412
2347
|
}
|
|
2413
|
-
return
|
|
2348
|
+
return ln(e, t);
|
|
2414
2349
|
}
|
|
2415
|
-
function
|
|
2350
|
+
function Ur(e, t) {
|
|
2416
2351
|
const i = { ...e };
|
|
2417
2352
|
return t.defaultInputValues && Object.keys(t.defaultInputValues).length ? i.defaultInputValues = t.defaultInputValues : e.defaultInputValues !== void 0 && delete i.defaultInputValues, i;
|
|
2418
2353
|
}
|
|
2419
|
-
function
|
|
2420
|
-
const a = !!(i != null && i.defaultValueChanged || i != null && i.selectionIdentityChanged) ||
|
|
2354
|
+
function Gr(e, t, i, n, r) {
|
|
2355
|
+
const a = !!(i != null && i.defaultValueChanged || i != null && i.selectionIdentityChanged) || sn(e, t);
|
|
2421
2356
|
return {
|
|
2422
2357
|
...i,
|
|
2423
2358
|
target: (i == null ? void 0 : i.target) ?? n,
|
|
2424
2359
|
defaultValueChanged: a,
|
|
2425
|
-
defaultFilterValue: a ?
|
|
2360
|
+
defaultFilterValue: a ? G(t, r) : void 0
|
|
2426
2361
|
};
|
|
2427
2362
|
}
|
|
2428
|
-
function
|
|
2363
|
+
function Ut(e) {
|
|
2429
2364
|
const { settings: t } = e;
|
|
2430
2365
|
if (!t) return e.state;
|
|
2431
2366
|
const i = e.input;
|
|
2432
2367
|
let n = e.state.dashboardInputValues, r = e.state.defaultInputValues;
|
|
2433
|
-
if (t.selectionIdentityChanged && (n =
|
|
2368
|
+
if (t.selectionIdentityChanged && (n = Qe(
|
|
2434
2369
|
n,
|
|
2435
2370
|
i,
|
|
2436
2371
|
t.target,
|
|
2437
2372
|
{ status: "cleared" }
|
|
2438
2373
|
)), t.defaultValueChanged) {
|
|
2439
|
-
const a =
|
|
2374
|
+
const a = we(
|
|
2440
2375
|
r,
|
|
2441
2376
|
i,
|
|
2442
2377
|
t.target
|
|
2443
2378
|
);
|
|
2444
|
-
let o =
|
|
2379
|
+
let o = Te(
|
|
2445
2380
|
r || {},
|
|
2446
2381
|
i,
|
|
2447
2382
|
t.target
|
|
2448
2383
|
);
|
|
2449
|
-
t.defaultFilterValue ? o =
|
|
2384
|
+
t.defaultFilterValue ? o = Ye(
|
|
2450
2385
|
o,
|
|
2451
2386
|
i,
|
|
2452
2387
|
t.target,
|
|
@@ -2458,12 +2393,12 @@ function Wt(e) {
|
|
|
2458
2393
|
},
|
|
2459
2394
|
...a != null && a.comparisonSelection ? { comparisonSelection: a.comparisonSelection } : {}
|
|
2460
2395
|
}
|
|
2461
|
-
) : a != null && a.comparisonSelection && (o =
|
|
2396
|
+
) : a != null && a.comparisonSelection && (o = Ye(
|
|
2462
2397
|
o,
|
|
2463
2398
|
i,
|
|
2464
2399
|
t.target,
|
|
2465
2400
|
{ comparisonSelection: a.comparisonSelection }
|
|
2466
|
-
)), r = Object.keys(o).length ? o : void 0, n =
|
|
2401
|
+
)), r = Object.keys(o).length ? o : void 0, n = Qe(
|
|
2467
2402
|
n,
|
|
2468
2403
|
i,
|
|
2469
2404
|
t.target,
|
|
@@ -2476,12 +2411,12 @@ function Wt(e) {
|
|
|
2476
2411
|
} : { status: "cleared" }
|
|
2477
2412
|
);
|
|
2478
2413
|
}
|
|
2479
|
-
return t.defaultComparisonChanged && (r =
|
|
2414
|
+
return t.defaultComparisonChanged && (r = Je(
|
|
2480
2415
|
r || {},
|
|
2481
2416
|
i,
|
|
2482
2417
|
t.target,
|
|
2483
2418
|
t.defaultComparisonSelection
|
|
2484
|
-
), Object.keys(r).length || (r = void 0), n =
|
|
2419
|
+
), Object.keys(r).length || (r = void 0), n = Je(
|
|
2485
2420
|
n,
|
|
2486
2421
|
i,
|
|
2487
2422
|
t.target,
|
|
@@ -2492,57 +2427,57 @@ function Wt(e) {
|
|
|
2492
2427
|
defaultInputValues: r
|
|
2493
2428
|
};
|
|
2494
2429
|
}
|
|
2495
|
-
const
|
|
2496
|
-
function
|
|
2497
|
-
const i =
|
|
2430
|
+
const H = (e) => Array.isArray(e.inputs) ? e.inputs : [];
|
|
2431
|
+
function pe(e, t) {
|
|
2432
|
+
const i = H(e).find((n) => n.id === t);
|
|
2498
2433
|
if (!i || i.kind !== "filter")
|
|
2499
|
-
throw new
|
|
2434
|
+
throw new A("filter_not_found", `No filter ${t} on this dashboard.`, "Read the outline again and use its filter ids.");
|
|
2500
2435
|
return i;
|
|
2501
2436
|
}
|
|
2502
|
-
function
|
|
2437
|
+
function Gt(e, t) {
|
|
2503
2438
|
var i;
|
|
2504
|
-
return (i =
|
|
2439
|
+
return (i = de(e).find((n) => n.cardId === t)) == null ? void 0 : i.card.title;
|
|
2505
2440
|
}
|
|
2506
|
-
function
|
|
2507
|
-
const n =
|
|
2441
|
+
function Wr(e, t, i) {
|
|
2442
|
+
const n = $(e), r = n.findFilterInput({ inputId: t });
|
|
2508
2443
|
return r ? n.reachedCards({ inputId: t }).filter(
|
|
2509
2444
|
(a) => ["bound", "automatic", "sql", "relationshipApplied"].includes(
|
|
2510
|
-
|
|
2445
|
+
Ti(r.input, a.card, i).reach
|
|
2511
2446
|
)
|
|
2512
2447
|
).length : 0;
|
|
2513
2448
|
}
|
|
2514
|
-
function
|
|
2515
|
-
const i =
|
|
2516
|
-
return n ? i.reachedCards({ inputId: t }).filter((r) =>
|
|
2449
|
+
function Qr(e, t) {
|
|
2450
|
+
const i = $(e), n = i.findFilterInput({ inputId: t });
|
|
2451
|
+
return n ? i.reachedCards({ inputId: t }).filter((r) => wi(n.input, r.card) === "relationship").length : 0;
|
|
2517
2452
|
}
|
|
2518
|
-
function
|
|
2453
|
+
function Wt(e, t) {
|
|
2519
2454
|
if (t.scope.kind === "allSheets") return "every sheet";
|
|
2520
2455
|
if (t.scope.kind !== "sheets") return "its cards";
|
|
2521
|
-
const i = [...
|
|
2522
|
-
return
|
|
2456
|
+
const i = [...Mt(e).values()].filter((n) => Dt(t, n));
|
|
2457
|
+
return Tt(i.map((n) => {
|
|
2523
2458
|
var r, a;
|
|
2524
2459
|
return ((a = (r = e.sheets) == null ? void 0 : r.find((o) => o.id === n.sheetId)) == null ? void 0 : a.title) ?? n.sheetId;
|
|
2525
2460
|
}));
|
|
2526
2461
|
}
|
|
2527
|
-
const
|
|
2462
|
+
const Qt = (e) => {
|
|
2528
2463
|
var t;
|
|
2529
2464
|
return ((t = e.filter) == null ? void 0 : t.type) === "single" ? "single select" : "multi select";
|
|
2530
2465
|
};
|
|
2531
|
-
function
|
|
2466
|
+
function Yt(e) {
|
|
2532
2467
|
var t, i, n;
|
|
2533
2468
|
if ((i = (t = e.filter) == null ? void 0 : t.defaultValues) != null && i.length) return `default ${e.filter.defaultValues.join(", ")}`;
|
|
2534
2469
|
if ((n = e.filter) != null && n.defaultDateFilter) return "a default period";
|
|
2535
2470
|
}
|
|
2536
|
-
function
|
|
2537
|
-
return
|
|
2471
|
+
function ne(e) {
|
|
2472
|
+
return De.plain("filter", e);
|
|
2538
2473
|
}
|
|
2539
|
-
function
|
|
2540
|
-
const { input: i } = t, n =
|
|
2474
|
+
function Yr(e, t) {
|
|
2475
|
+
const { input: i } = t, n = H(e);
|
|
2541
2476
|
if (n.some((l) => l.id === i.id))
|
|
2542
|
-
throw new
|
|
2543
|
-
if (
|
|
2544
|
-
throw new
|
|
2545
|
-
const r = { ...e, inputs: [...n, i] }, a =
|
|
2477
|
+
throw new A("filter_id_taken", `A filter with id ${i.id} is already on this dashboard.`);
|
|
2478
|
+
if ($(e).findFilterInput({ filterId: i.filter.id }))
|
|
2479
|
+
throw new A("filter_id_taken", `A filter definition with id ${i.filter.id} is already on this dashboard.`);
|
|
2480
|
+
const r = { ...e, inputs: [...n, i] }, a = Wr(r, i.id), o = Qr(r, i.id), s = [Qt(i), Yt(i)].filter(Boolean).join(", ");
|
|
2546
2481
|
return {
|
|
2547
2482
|
dashboard: r,
|
|
2548
2483
|
created: [
|
|
@@ -2554,99 +2489,99 @@ function Jr(e, t) {
|
|
|
2554
2489
|
}
|
|
2555
2490
|
],
|
|
2556
2491
|
clauses: [
|
|
2557
|
-
|
|
2558
|
-
`adds the filter ${
|
|
2492
|
+
ne(
|
|
2493
|
+
`adds the filter ${z(i.label)} (${s}) to ${Wt(r, i)}; it filters ${a} card${a === 1 ? "" : "s"}${o ? ` and may filter ${o} more through the domain's relationships` : ""}`
|
|
2559
2494
|
)
|
|
2560
2495
|
]
|
|
2561
2496
|
};
|
|
2562
2497
|
}
|
|
2563
|
-
function
|
|
2564
|
-
const n =
|
|
2498
|
+
function Jr(e, t, i) {
|
|
2499
|
+
const n = $r(e, { inputId: t.filterId }, t.settings, {
|
|
2565
2500
|
calendar: i.calendar
|
|
2566
2501
|
});
|
|
2567
2502
|
if (!n.ok) {
|
|
2568
2503
|
const [o] = n.issues;
|
|
2569
|
-
throw new
|
|
2504
|
+
throw new A(
|
|
2570
2505
|
(o == null ? void 0 : o.code) === "inputNotFound" ? "filter_not_found" : "filter_invalid",
|
|
2571
2506
|
(o == null ? void 0 : o.message) ?? "These filter settings could not be saved.",
|
|
2572
2507
|
(o == null ? void 0 : o.code) === "inputNotFound" ? "Read the outline again and use its filter ids." : "Change the filter settings and propose again.",
|
|
2573
2508
|
{ issues: n.issues }
|
|
2574
2509
|
);
|
|
2575
2510
|
}
|
|
2576
|
-
const r =
|
|
2511
|
+
const r = H(e).find((o) => o.id === n.inputId), a = H(n.dashboard).find((o) => o.id === n.inputId);
|
|
2577
2512
|
return {
|
|
2578
2513
|
dashboard: n.dashboard,
|
|
2579
2514
|
runtimeEffects: [{ kind: "filter_value", effects: n.valueEffects }],
|
|
2580
|
-
clauses: [
|
|
2515
|
+
clauses: [ne(`changes the filter ${z((r == null ? void 0 : r.label) ?? a.label)}: ${Xr(n.dashboard, r, a)}`)]
|
|
2581
2516
|
};
|
|
2582
2517
|
}
|
|
2583
|
-
function
|
|
2518
|
+
function Xr(e, t, i) {
|
|
2584
2519
|
var o, s, l, c, u, f;
|
|
2585
2520
|
if (!t) return "updates its settings";
|
|
2586
2521
|
const n = [];
|
|
2587
|
-
t.label !== i.label && n.push(`renames it ${
|
|
2522
|
+
t.label !== i.label && n.push(`renames it ${z(i.label)}`), (((o = t.filter) == null ? void 0 : o.type) ?? "multiple") !== (((s = i.filter) == null ? void 0 : s.type) ?? "multiple") && n.push(`makes it ${Qt(i)}`);
|
|
2588
2523
|
const r = JSON.stringify([((l = t.filter) == null ? void 0 : l.defaultValues) ?? null, ((c = t.filter) == null ? void 0 : c.defaultDateFilter) ?? null]), a = JSON.stringify([((u = i.filter) == null ? void 0 : u.defaultValues) ?? null, ((f = i.filter) == null ? void 0 : f.defaultDateFilter) ?? null]);
|
|
2589
2524
|
if (r !== a) {
|
|
2590
|
-
const d =
|
|
2525
|
+
const d = Yt(i);
|
|
2591
2526
|
n.push(d ? `sets its ${d.replace(/^default /, "default to ").replace(/^a default period$/, "default period")}` : "removes its default");
|
|
2592
2527
|
}
|
|
2593
|
-
return JSON.stringify(t.scope) !== JSON.stringify(i.scope) && n.push(`applies it to ${
|
|
2528
|
+
return JSON.stringify(t.scope) !== JSON.stringify(i.scope) && n.push(`applies it to ${Wt(e, i)}`), n.length ? Tt(n) : "keeps its settings";
|
|
2594
2529
|
}
|
|
2595
|
-
function
|
|
2596
|
-
const i =
|
|
2530
|
+
function Zr(e, t) {
|
|
2531
|
+
const i = pe(e, t);
|
|
2597
2532
|
return {
|
|
2598
2533
|
dashboard: {
|
|
2599
2534
|
...e,
|
|
2600
|
-
inputs:
|
|
2601
|
-
defaultInputValues:
|
|
2535
|
+
inputs: H(e).filter((r) => r.id !== t),
|
|
2536
|
+
defaultInputValues: un(e.defaultInputValues, t)
|
|
2602
2537
|
},
|
|
2603
2538
|
runtimeEffects: [{ kind: "input_removed", inputId: t }],
|
|
2604
|
-
clauses: [
|
|
2539
|
+
clauses: [ne(`removes the filter ${z(i.label)}`)]
|
|
2605
2540
|
};
|
|
2606
2541
|
}
|
|
2607
|
-
function
|
|
2542
|
+
function ea(e, t, i) {
|
|
2608
2543
|
var o;
|
|
2609
|
-
if (!
|
|
2610
|
-
throw new
|
|
2611
|
-
const n =
|
|
2544
|
+
if (!de(e).some((s) => s.cardId === i))
|
|
2545
|
+
throw new A("card_not_found", `No card ${i} on this dashboard.`, "Read the outline again and use its card ids.");
|
|
2546
|
+
const n = dn(t.scope, i);
|
|
2612
2547
|
if (!n)
|
|
2613
|
-
throw new
|
|
2548
|
+
throw new A(
|
|
2614
2549
|
"filter_invalid",
|
|
2615
2550
|
"This filter applies to Document sections, so it can't leave out one card.",
|
|
2616
2551
|
"Change it in the editor."
|
|
2617
2552
|
);
|
|
2618
|
-
const r = { ...t, scope: n }, a =
|
|
2553
|
+
const r = { ...t, scope: n }, a = Pe({ inputs: [r], dashboardFilters: [] });
|
|
2619
2554
|
if (!a.ok)
|
|
2620
|
-
throw new
|
|
2555
|
+
throw new A("filter_invalid", ((o = a.issues[0]) == null ? void 0 : o.message) ?? "This filter could not be saved.", "Change it in the editor.");
|
|
2621
2556
|
return {
|
|
2622
2557
|
...e,
|
|
2623
|
-
inputs:
|
|
2558
|
+
inputs: H(e).map((s) => s.id === t.id ? r : s)
|
|
2624
2559
|
};
|
|
2625
2560
|
}
|
|
2626
|
-
function
|
|
2561
|
+
function Jt(e, t, i, n, r) {
|
|
2627
2562
|
var u, f;
|
|
2628
|
-
const a =
|
|
2629
|
-
if (!
|
|
2630
|
-
throw new
|
|
2563
|
+
const a = pe(e, t);
|
|
2564
|
+
if (!de(e).some((d) => d.cardId === i))
|
|
2565
|
+
throw new A("card_not_found", `No card ${i} on this dashboard.`, "Read the outline again and use its card ids.");
|
|
2631
2566
|
const o = [...((u = a.application) == null ? void 0 : u.cards) ?? []], s = o.findIndex((d) => d.cardId === i);
|
|
2632
2567
|
s >= 0 ? o[s] = n : o.push(n);
|
|
2633
2568
|
const l = {
|
|
2634
2569
|
...a,
|
|
2635
2570
|
...r ? { scope: r } : {},
|
|
2636
2571
|
application: { ...a.application ?? { kind: "cardMappings" }, cards: o }
|
|
2637
|
-
}, c =
|
|
2572
|
+
}, c = Pe({ inputs: [l], dashboardFilters: [] });
|
|
2638
2573
|
if (!c.ok)
|
|
2639
|
-
throw new
|
|
2574
|
+
throw new A(
|
|
2640
2575
|
"filter_invalid",
|
|
2641
2576
|
((f = c.issues[0]) == null ? void 0 : f.message) ?? "This filter mapping could not be saved.",
|
|
2642
2577
|
"Change the mapping and propose again."
|
|
2643
2578
|
);
|
|
2644
2579
|
return {
|
|
2645
2580
|
...e,
|
|
2646
|
-
inputs:
|
|
2581
|
+
inputs: H(e).map((d) => d.id === t ? l : d)
|
|
2647
2582
|
};
|
|
2648
2583
|
}
|
|
2649
|
-
function
|
|
2584
|
+
function ta(e) {
|
|
2650
2585
|
switch (e.kind) {
|
|
2651
2586
|
case "field":
|
|
2652
2587
|
return `by ${e.field.name}`;
|
|
@@ -2656,34 +2591,34 @@ function ia(e) {
|
|
|
2656
2591
|
return String(e.kind);
|
|
2657
2592
|
}
|
|
2658
2593
|
}
|
|
2659
|
-
function
|
|
2660
|
-
const i =
|
|
2594
|
+
function ia(e, t) {
|
|
2595
|
+
const i = pe(e, t.filterId), n = { ...t.binding, kind: "bound", cardId: t.cardId }, r = cn(i.scope, t.cardId), a = r !== i.scope;
|
|
2661
2596
|
return {
|
|
2662
|
-
dashboard:
|
|
2597
|
+
dashboard: Jt(e, t.filterId, t.cardId, n, a ? r : void 0),
|
|
2663
2598
|
clauses: [
|
|
2664
|
-
|
|
2665
|
-
`makes ${
|
|
2599
|
+
ne(
|
|
2600
|
+
`makes ${z(i.label)} filter ${z(Gt(e, t.cardId))} ${ta(n.target)}${a ? ", which it used to leave out" : ""}`
|
|
2666
2601
|
)
|
|
2667
2602
|
]
|
|
2668
2603
|
};
|
|
2669
2604
|
}
|
|
2670
|
-
function
|
|
2605
|
+
function na(e, t) {
|
|
2671
2606
|
var r;
|
|
2672
|
-
const i =
|
|
2607
|
+
const i = pe(e, t.filterId);
|
|
2673
2608
|
return {
|
|
2674
|
-
dashboard: ((r = i.filter) == null ? void 0 : r.kind) === "global-date" ?
|
|
2675
|
-
clauses: [
|
|
2609
|
+
dashboard: ((r = i.filter) == null ? void 0 : r.kind) === "global-date" ? ea(e, i, t.cardId) : Jt(e, t.filterId, t.cardId, { kind: "excluded", cardId: t.cardId }),
|
|
2610
|
+
clauses: [ne(`stops ${z(i.label)} from filtering ${z(Gt(e, t.cardId))}`)]
|
|
2676
2611
|
};
|
|
2677
2612
|
}
|
|
2678
|
-
function
|
|
2613
|
+
function So(e, t, i) {
|
|
2679
2614
|
let n = e;
|
|
2680
2615
|
const r = [], a = [], o = [];
|
|
2681
2616
|
for (const [s, l] of t.entries()) {
|
|
2682
2617
|
let c;
|
|
2683
2618
|
try {
|
|
2684
|
-
c =
|
|
2619
|
+
c = ra(n, l, i);
|
|
2685
2620
|
} catch (u) {
|
|
2686
|
-
if (!(u instanceof
|
|
2621
|
+
if (!(u instanceof A)) throw u;
|
|
2687
2622
|
return {
|
|
2688
2623
|
ok: !1,
|
|
2689
2624
|
failedAt: {
|
|
@@ -2698,33 +2633,33 @@ function wo(e, t, i) {
|
|
|
2698
2633
|
}
|
|
2699
2634
|
n = c.dashboard, r.push(...c.created ?? []), a.push(...c.runtimeEffects ?? []), o.push({ index: s, changeIndex: l.changeIndex, clauses: c.clauses });
|
|
2700
2635
|
}
|
|
2701
|
-
return { ok: !0, dashboard: n, created: r, descriptions:
|
|
2636
|
+
return { ok: !0, dashboard: n, created: r, descriptions: aa(o), runtimeEffects: a };
|
|
2702
2637
|
}
|
|
2703
|
-
function
|
|
2638
|
+
function ra(e, t, i) {
|
|
2704
2639
|
switch (t.op) {
|
|
2705
2640
|
case "card.add":
|
|
2706
|
-
return
|
|
2641
|
+
return pn(e, t);
|
|
2707
2642
|
case "card.remove":
|
|
2708
|
-
return
|
|
2643
|
+
return mn(e, t.cardId);
|
|
2709
2644
|
case "card.update":
|
|
2710
|
-
return
|
|
2645
|
+
return fn(e, t.cardId, t.update);
|
|
2711
2646
|
case "layout.arrange":
|
|
2712
|
-
return
|
|
2647
|
+
return Er(e, t);
|
|
2713
2648
|
case "frame.commit":
|
|
2714
|
-
return
|
|
2649
|
+
return Kr(e, t.commit);
|
|
2715
2650
|
case "filter.add":
|
|
2716
|
-
return
|
|
2651
|
+
return Yr(e, t);
|
|
2717
2652
|
case "filter.update":
|
|
2718
|
-
return
|
|
2653
|
+
return Jr(e, t, i);
|
|
2719
2654
|
case "filter.remove":
|
|
2720
|
-
return
|
|
2655
|
+
return Zr(e, t.filterId);
|
|
2721
2656
|
case "filter.bind":
|
|
2722
|
-
return
|
|
2657
|
+
return ia(e, t);
|
|
2723
2658
|
case "filter.exclude":
|
|
2724
|
-
return
|
|
2659
|
+
return na(e, t);
|
|
2725
2660
|
}
|
|
2726
2661
|
}
|
|
2727
|
-
function
|
|
2662
|
+
function aa(e) {
|
|
2728
2663
|
const t = [];
|
|
2729
2664
|
for (const i of e) {
|
|
2730
2665
|
const n = i.changeIndex === void 0 ? void 0 : t.find((r) => r.changeIndex === i.changeIndex);
|
|
@@ -2741,21 +2676,21 @@ function oa(e) {
|
|
|
2741
2676
|
}
|
|
2742
2677
|
return t.map(({ clauses: i, ...n }) => ({
|
|
2743
2678
|
...n,
|
|
2744
|
-
sentence:
|
|
2679
|
+
sentence: hn(oa(i))
|
|
2745
2680
|
}));
|
|
2746
2681
|
}
|
|
2747
|
-
function
|
|
2682
|
+
function oa(e) {
|
|
2748
2683
|
let t = !1;
|
|
2749
2684
|
return e.filter((i) => i.kind !== "detached" ? !0 : t ? !1 : (t = !0, !0));
|
|
2750
2685
|
}
|
|
2751
|
-
function
|
|
2686
|
+
function st(e) {
|
|
2752
2687
|
return Object.fromEntries(
|
|
2753
2688
|
Object.entries(e).filter(
|
|
2754
2689
|
(t) => typeof t[1] == "string" && t[1].length > 0
|
|
2755
2690
|
)
|
|
2756
2691
|
);
|
|
2757
2692
|
}
|
|
2758
|
-
function
|
|
2693
|
+
function ee(e) {
|
|
2759
2694
|
return e.kind === "semantic" ? [
|
|
2760
2695
|
e.kind,
|
|
2761
2696
|
e.domainId,
|
|
@@ -2770,18 +2705,18 @@ function re(e) {
|
|
|
2770
2705
|
e.tableName
|
|
2771
2706
|
].join(":");
|
|
2772
2707
|
}
|
|
2773
|
-
function
|
|
2708
|
+
function sa(e, t) {
|
|
2774
2709
|
if (e.kind === "semantic")
|
|
2775
2710
|
return {
|
|
2776
2711
|
status: "ready",
|
|
2777
|
-
request:
|
|
2712
|
+
request: st({
|
|
2778
2713
|
connection_id: e.connectionId,
|
|
2779
2714
|
domain_id: e.domainId,
|
|
2780
|
-
dataset_id:
|
|
2715
|
+
dataset_id: Ni(e),
|
|
2781
2716
|
dataset_name: e.datasetName
|
|
2782
2717
|
})
|
|
2783
2718
|
};
|
|
2784
|
-
const i =
|
|
2719
|
+
const i = wn({
|
|
2785
2720
|
source: e,
|
|
2786
2721
|
capabilities: t
|
|
2787
2722
|
});
|
|
@@ -2793,7 +2728,7 @@ function la(e, t) {
|
|
|
2793
2728
|
message: `Source is missing required field-metadata coordinates: ${i.missing.join(", ")}.`
|
|
2794
2729
|
} : {
|
|
2795
2730
|
status: "ready",
|
|
2796
|
-
request:
|
|
2731
|
+
request: st({
|
|
2797
2732
|
connection_id: e.connectionId,
|
|
2798
2733
|
datamodel_id: "",
|
|
2799
2734
|
database_name: i.coordinates.databaseName,
|
|
@@ -2802,14 +2737,14 @@ function la(e, t) {
|
|
|
2802
2737
|
})
|
|
2803
2738
|
};
|
|
2804
2739
|
}
|
|
2805
|
-
function
|
|
2740
|
+
function Mo(e, t = /* @__PURE__ */ new Map()) {
|
|
2806
2741
|
const i = /* @__PURE__ */ new Map();
|
|
2807
2742
|
for (const { card: n } of e) {
|
|
2808
|
-
const r =
|
|
2743
|
+
const r = wt(n), a = r.kind === "config" ? r.executableSources : r.kind === "sql" ? r.pinnedCatalogSources.map((o) => o.source) : [];
|
|
2809
2744
|
for (const o of a) {
|
|
2810
|
-
const s =
|
|
2745
|
+
const s = ee(o);
|
|
2811
2746
|
if (!i.has(s)) {
|
|
2812
|
-
const l =
|
|
2747
|
+
const l = sa(
|
|
2813
2748
|
o,
|
|
2814
2749
|
o.connectionId ? t.get(o.connectionId) : void 0
|
|
2815
2750
|
);
|
|
@@ -2823,7 +2758,7 @@ function Po(e, t = /* @__PURE__ */ new Map()) {
|
|
|
2823
2758
|
}
|
|
2824
2759
|
return Array.from(i.values());
|
|
2825
2760
|
}
|
|
2826
|
-
function
|
|
2761
|
+
function la(e, t) {
|
|
2827
2762
|
if (e.kind !== "semantic" || !e.connectionId) return;
|
|
2828
2763
|
const i = (t.qualifiedEntityName || "").split(".").map((r) => r.trim()).filter(Boolean), n = i.at(-1);
|
|
2829
2764
|
if (n)
|
|
@@ -2835,48 +2770,48 @@ function ca(e, t) {
|
|
|
2835
2770
|
...i.length > 2 ? { databaseName: i.at(-3) } : {}
|
|
2836
2771
|
};
|
|
2837
2772
|
}
|
|
2838
|
-
function
|
|
2773
|
+
function oe(e, t) {
|
|
2839
2774
|
let i = e.get(t);
|
|
2840
2775
|
return i || (i = { fields: /* @__PURE__ */ new Map(), fieldConflicts: /* @__PURE__ */ new Set() }, e.set(t, i)), i;
|
|
2841
2776
|
}
|
|
2842
|
-
function
|
|
2777
|
+
function Xt(e, t) {
|
|
2843
2778
|
e.sourceLabel === void 0 ? e.sourceLabel = t : e.sourceLabel !== t && (e.sourceLabelConflict = !0);
|
|
2844
2779
|
}
|
|
2845
|
-
function
|
|
2780
|
+
function xe(e, t, i) {
|
|
2846
2781
|
for (const n of t) {
|
|
2847
2782
|
const r = n == null ? void 0 : n.trim();
|
|
2848
2783
|
if (!r) continue;
|
|
2849
|
-
const a =
|
|
2784
|
+
const a = gt(r), o = e.fields.get(a);
|
|
2850
2785
|
o === void 0 ? e.fields.set(a, i) : o !== i && e.fieldConflicts.add(a);
|
|
2851
2786
|
}
|
|
2852
2787
|
}
|
|
2853
|
-
function
|
|
2854
|
-
t.sourceLabel &&
|
|
2788
|
+
function Zt(e, t) {
|
|
2789
|
+
t.sourceLabel && Xt(e, t.sourceLabel), t.sourceLabelConflict && (e.sourceLabelConflict = !0);
|
|
2855
2790
|
for (const [i, n] of t.fields)
|
|
2856
|
-
|
|
2791
|
+
xe(e, [i], n);
|
|
2857
2792
|
for (const i of t.fieldConflicts ?? [])
|
|
2858
2793
|
e.fieldConflicts.add(i);
|
|
2859
2794
|
}
|
|
2860
|
-
function
|
|
2795
|
+
function ei(e) {
|
|
2861
2796
|
return e.kind === "semantic" && (e.label || e.datasetName || "").trim() || void 0;
|
|
2862
2797
|
}
|
|
2863
|
-
function
|
|
2798
|
+
function Do(e, t) {
|
|
2864
2799
|
var n, r;
|
|
2865
2800
|
const i = /* @__PURE__ */ new Map();
|
|
2866
2801
|
for (const [a, o] of e) {
|
|
2867
2802
|
if (o.status !== "ready") continue;
|
|
2868
|
-
const s = t == null ? void 0 : t.get(a), l = s ?
|
|
2803
|
+
const s = t == null ? void 0 : t.get(a), l = s ? ei(s) : void 0;
|
|
2869
2804
|
for (const c of o.columns) {
|
|
2870
|
-
const u = (n = c.column_name) == null ? void 0 : n.trim(), f = (r = c.label) == null ? void 0 : r.trim(), d = s ?
|
|
2871
|
-
d && l &&
|
|
2872
|
-
|
|
2805
|
+
const u = (n = c.column_name) == null ? void 0 : n.trim(), f = (r = c.label) == null ? void 0 : r.trim(), d = s ? la(s, c) : void 0;
|
|
2806
|
+
d && l && Xt(
|
|
2807
|
+
oe(i, ee(d)),
|
|
2873
2808
|
l
|
|
2874
|
-
), !(!u || !f || f === u) && (
|
|
2875
|
-
|
|
2809
|
+
), !(!u || !f || f === u) && (xe(
|
|
2810
|
+
oe(i, a),
|
|
2876
2811
|
[u, c.sourceField],
|
|
2877
2812
|
f
|
|
2878
|
-
), d &&
|
|
2879
|
-
|
|
2813
|
+
), d && xe(
|
|
2814
|
+
oe(i, ee(d)),
|
|
2880
2815
|
[c.sourceField, u],
|
|
2881
2816
|
f
|
|
2882
2817
|
));
|
|
@@ -2884,56 +2819,56 @@ function Oo(e, t) {
|
|
|
2884
2819
|
}
|
|
2885
2820
|
return i;
|
|
2886
2821
|
}
|
|
2887
|
-
function
|
|
2822
|
+
function To(...e) {
|
|
2888
2823
|
const t = /* @__PURE__ */ new Map();
|
|
2889
2824
|
for (const i of e)
|
|
2890
2825
|
for (const [n, r] of i ?? [])
|
|
2891
|
-
|
|
2826
|
+
Zt(oe(t, n), r);
|
|
2892
2827
|
return t;
|
|
2893
2828
|
}
|
|
2894
|
-
function
|
|
2829
|
+
function Ve(e) {
|
|
2895
2830
|
return [e.databaseName, e.schemaName, e.tableName].filter(Boolean).join(".");
|
|
2896
2831
|
}
|
|
2897
|
-
function
|
|
2832
|
+
function ca(e) {
|
|
2898
2833
|
return e.split(":").slice(2).filter(Boolean).join(".");
|
|
2899
2834
|
}
|
|
2900
|
-
function
|
|
2901
|
-
const i =
|
|
2835
|
+
function ti(e, t) {
|
|
2836
|
+
const i = ee(t), n = e.get(i);
|
|
2902
2837
|
if (t.kind !== "physical") return n;
|
|
2903
|
-
const r = `physical:${t.connectionId}:`, a =
|
|
2838
|
+
const r = `physical:${t.connectionId}:`, a = Ve(t), o = {
|
|
2904
2839
|
fields: /* @__PURE__ */ new Map(),
|
|
2905
2840
|
fieldConflicts: /* @__PURE__ */ new Set()
|
|
2906
2841
|
};
|
|
2907
2842
|
let s = !1;
|
|
2908
2843
|
for (const [l, c] of e)
|
|
2909
|
-
l.startsWith(r) && (l !== i && !
|
|
2844
|
+
l.startsWith(r) && (l !== i && !Pn(a, ca(l)) || (Zt(o, c), s = !0));
|
|
2910
2845
|
return s ? o : void 0;
|
|
2911
2846
|
}
|
|
2912
|
-
function
|
|
2847
|
+
function ua(e, t) {
|
|
2913
2848
|
var r;
|
|
2914
2849
|
if (!e) return;
|
|
2915
|
-
const i =
|
|
2850
|
+
const i = gt(t.name), n = ti(e, t.source);
|
|
2916
2851
|
return n && !((r = n.fieldConflicts) != null && r.has(i)) ? n.fields.get(i) : void 0;
|
|
2917
2852
|
}
|
|
2918
|
-
function
|
|
2853
|
+
function da(e, t) {
|
|
2919
2854
|
if (t.kind === "semantic")
|
|
2920
|
-
return
|
|
2921
|
-
const i = e ?
|
|
2922
|
-
return i != null && i.sourceLabel && !i.sourceLabelConflict ? i.sourceLabel :
|
|
2855
|
+
return ei(t) || t.datasetId || "Dataset";
|
|
2856
|
+
const i = e ? ti(e, t) : void 0;
|
|
2857
|
+
return i != null && i.sourceLabel && !i.sourceLabelConflict ? i.sourceLabel : Ve(t);
|
|
2923
2858
|
}
|
|
2924
|
-
function
|
|
2925
|
-
const i =
|
|
2859
|
+
function wo(e, t) {
|
|
2860
|
+
const i = ua(e, t);
|
|
2926
2861
|
return {
|
|
2927
2862
|
name: t.name,
|
|
2928
2863
|
...i ? { label: i } : {},
|
|
2929
|
-
entityName:
|
|
2930
|
-
...t.source.kind === "physical" ? { qualifiedEntityName:
|
|
2864
|
+
entityName: da(e, t.source),
|
|
2865
|
+
...t.source.kind === "physical" ? { qualifiedEntityName: Ve(t.source) } : {},
|
|
2931
2866
|
dataType: t.dataType
|
|
2932
2867
|
};
|
|
2933
2868
|
}
|
|
2934
|
-
function
|
|
2869
|
+
function fa(e, t) {
|
|
2935
2870
|
var r, a;
|
|
2936
|
-
const i = (r = t.column_name) == null ? void 0 : r.trim(), n =
|
|
2871
|
+
const i = (r = t.column_name) == null ? void 0 : r.trim(), n = ht(t.data_type);
|
|
2937
2872
|
if (!(!i || n === "unknown"))
|
|
2938
2873
|
return {
|
|
2939
2874
|
kind: "field",
|
|
@@ -2945,23 +2880,23 @@ function ma(e, t) {
|
|
|
2945
2880
|
}
|
|
2946
2881
|
};
|
|
2947
2882
|
}
|
|
2948
|
-
function
|
|
2883
|
+
function Po(e) {
|
|
2949
2884
|
const t = {};
|
|
2950
2885
|
for (const { card: i } of e.cards) {
|
|
2951
|
-
const n =
|
|
2886
|
+
const n = wt(i), r = n.kind === "config" ? n.executableSources : n.kind === "sql" ? n.pinnedCatalogSources.map((s) => s.source) : [];
|
|
2952
2887
|
if (!r.length) continue;
|
|
2953
2888
|
const a = [];
|
|
2954
2889
|
let o;
|
|
2955
2890
|
for (const s of r) {
|
|
2956
2891
|
const l = e.metadataBySourceKey.get(
|
|
2957
|
-
|
|
2892
|
+
ee(s)
|
|
2958
2893
|
);
|
|
2959
2894
|
if (!l || l.status === "unavailable") {
|
|
2960
2895
|
o = (l == null ? void 0 : l.status) === "unavailable" ? l.message : "Field metadata is not available yet.";
|
|
2961
2896
|
break;
|
|
2962
2897
|
}
|
|
2963
2898
|
for (const c of l.columns) {
|
|
2964
|
-
const u =
|
|
2899
|
+
const u = fa(s, c);
|
|
2965
2900
|
u && a.push(u);
|
|
2966
2901
|
}
|
|
2967
2902
|
}
|
|
@@ -2969,20 +2904,20 @@ function _o(e) {
|
|
|
2969
2904
|
}
|
|
2970
2905
|
return t;
|
|
2971
2906
|
}
|
|
2972
|
-
function
|
|
2973
|
-
const { dashboard: t, target: i, calendar: n } = e, r =
|
|
2907
|
+
function Oo(e) {
|
|
2908
|
+
const { dashboard: t, target: i, calendar: n } = e, r = ni(i), a = ii(t, i, n);
|
|
2974
2909
|
return {
|
|
2975
2910
|
value: a,
|
|
2976
|
-
mode:
|
|
2977
|
-
|
|
2911
|
+
mode: Pi(
|
|
2912
|
+
Oi(a == null ? void 0 : a.operation) ? a.operation : r.operation
|
|
2978
2913
|
)
|
|
2979
2914
|
};
|
|
2980
2915
|
}
|
|
2981
|
-
function
|
|
2916
|
+
function ii(e, t, i) {
|
|
2982
2917
|
var n;
|
|
2983
2918
|
switch (t.kind) {
|
|
2984
2919
|
case "dashboardInput": {
|
|
2985
|
-
const r =
|
|
2920
|
+
const r = yn({
|
|
2986
2921
|
dashboard: e,
|
|
2987
2922
|
input: t.input,
|
|
2988
2923
|
target: t.scope,
|
|
@@ -2997,22 +2932,22 @@ function ri(e, t, i) {
|
|
|
2997
2932
|
return r ? gn({
|
|
2998
2933
|
filterDefinitions: [t.filter],
|
|
2999
2934
|
filterValues: [r]
|
|
3000
|
-
})[0] :
|
|
2935
|
+
})[0] : G(t.filter, i);
|
|
3001
2936
|
}
|
|
3002
2937
|
case "definition":
|
|
3003
|
-
return
|
|
2938
|
+
return G(t.filter, i);
|
|
3004
2939
|
}
|
|
3005
2940
|
}
|
|
3006
|
-
function
|
|
2941
|
+
function ni(e) {
|
|
3007
2942
|
return e.kind === "dashboardInput" ? e.input.filter : e.filter;
|
|
3008
2943
|
}
|
|
3009
|
-
function
|
|
2944
|
+
function Ao(e) {
|
|
3010
2945
|
var a;
|
|
3011
2946
|
const { dashboard: t, filter: i, input: n, scope: r } = e;
|
|
3012
|
-
return n && (t.inputs || []).some((o) => o.id === n.id) ? { kind: "dashboardInput", input: n, scope: r } : ((a =
|
|
2947
|
+
return n && (t.inputs || []).some((o) => o.id === n.id) ? { kind: "dashboardInput", input: n, scope: r } : ((a = $(t).findFilterInput({ filterId: i.id })) == null ? void 0 : a.origin) === "toolbarFilter" ? { kind: "dashboardFilter", filter: i } : { kind: "definition", filter: i };
|
|
3013
2948
|
}
|
|
3014
|
-
function
|
|
3015
|
-
const { dashboard: t, target: i, calendar: n } = e, r =
|
|
2949
|
+
function _o(e) {
|
|
2950
|
+
const { dashboard: t, target: i, calendar: n } = e, r = ni(i), a = bn(r), o = ma(t, i);
|
|
3016
2951
|
if (!o) return a;
|
|
3017
2952
|
if (o === "cleared")
|
|
3018
2953
|
return {
|
|
@@ -3020,13 +2955,13 @@ function Vo(e) {
|
|
|
3020
2955
|
defaultValues: void 0,
|
|
3021
2956
|
defaultDateFilter: void 0
|
|
3022
2957
|
};
|
|
3023
|
-
const s =
|
|
3024
|
-
if (!s ||
|
|
2958
|
+
const s = ii(t, i, n);
|
|
2959
|
+
if (!s || pa(s, G(r, n)))
|
|
3025
2960
|
return a;
|
|
3026
2961
|
if (s.valueType === "date") {
|
|
3027
|
-
const l =
|
|
2962
|
+
const l = Ei(
|
|
3028
2963
|
"relativeMeta" in s ? s.relativeMeta : void 0
|
|
3029
|
-
) ??
|
|
2964
|
+
) ?? ha(r, s, n);
|
|
3030
2965
|
return l ? {
|
|
3031
2966
|
operation: s.operation,
|
|
3032
2967
|
defaultValues: r.defaultValues,
|
|
@@ -3039,10 +2974,10 @@ function Vo(e) {
|
|
|
3039
2974
|
defaultDateFilter: r.defaultDateFilter
|
|
3040
2975
|
};
|
|
3041
2976
|
}
|
|
3042
|
-
function
|
|
2977
|
+
function ma(e, t) {
|
|
3043
2978
|
var i;
|
|
3044
2979
|
if (t.kind === "dashboardInput") {
|
|
3045
|
-
const n =
|
|
2980
|
+
const n = we(
|
|
3046
2981
|
e.defaultInputValues,
|
|
3047
2982
|
t.input,
|
|
3048
2983
|
t.scope
|
|
@@ -3054,19 +2989,19 @@ function pa(e, t) {
|
|
|
3054
2989
|
(n) => n.filterId === t.filter.id
|
|
3055
2990
|
) ? "set" : void 0;
|
|
3056
2991
|
}
|
|
3057
|
-
function
|
|
3058
|
-
return !!(t && e.operation === t.operation &&
|
|
2992
|
+
function pa(e, t) {
|
|
2993
|
+
return !!(t && e.operation === t.operation && Ce(lt(e), lt(t)) && Ce(
|
|
3059
2994
|
"relativeMeta" in e ? e.relativeMeta : void 0,
|
|
3060
2995
|
"relativeMeta" in t ? t.relativeMeta : void 0
|
|
3061
2996
|
));
|
|
3062
2997
|
}
|
|
3063
|
-
function
|
|
2998
|
+
function lt(e) {
|
|
3064
2999
|
return e.values.map(
|
|
3065
3000
|
(t) => t instanceof Date ? t.getTime() : t
|
|
3066
3001
|
);
|
|
3067
3002
|
}
|
|
3068
|
-
function
|
|
3069
|
-
const n =
|
|
3003
|
+
function ha(e, t, i) {
|
|
3004
|
+
const n = vn(i == null ? void 0 : i.tz), r = ye(t.values[0], n);
|
|
3070
3005
|
if (!r) return;
|
|
3071
3006
|
const [a, o, s] = new Intl.DateTimeFormat("en-CA", {
|
|
3072
3007
|
timeZone: n,
|
|
@@ -3083,19 +3018,19 @@ function ya(e, t, i) {
|
|
|
3083
3018
|
], c = t.values.map(
|
|
3084
3019
|
(u) => {
|
|
3085
3020
|
var f;
|
|
3086
|
-
return (f =
|
|
3021
|
+
return (f = ye(u, n)) == null ? void 0 : f.getTime();
|
|
3087
3022
|
}
|
|
3088
3023
|
);
|
|
3089
3024
|
return l.find((u) => {
|
|
3090
|
-
const f =
|
|
3025
|
+
const f = G(
|
|
3091
3026
|
{ ...e, defaultDateFilter: u },
|
|
3092
3027
|
i
|
|
3093
3028
|
);
|
|
3094
|
-
return (f == null ? void 0 : f.operation) === t.operation &&
|
|
3029
|
+
return (f == null ? void 0 : f.operation) === t.operation && Ce(
|
|
3095
3030
|
f.values.map(
|
|
3096
3031
|
(d) => {
|
|
3097
|
-
var
|
|
3098
|
-
return (
|
|
3032
|
+
var g;
|
|
3033
|
+
return (g = ye(d, n)) == null ? void 0 : g.getTime();
|
|
3099
3034
|
}
|
|
3100
3035
|
),
|
|
3101
3036
|
c
|
|
@@ -3103,10 +3038,10 @@ function ya(e, t, i) {
|
|
|
3103
3038
|
});
|
|
3104
3039
|
}
|
|
3105
3040
|
function ga(e) {
|
|
3106
|
-
const t =
|
|
3041
|
+
const t = W(e.format);
|
|
3107
3042
|
if ((t == null ? void 0 : t.type) === "temporal_bucket") {
|
|
3108
3043
|
if (!e.granularity) return {};
|
|
3109
|
-
const i =
|
|
3044
|
+
const i = ji(
|
|
3110
3045
|
t,
|
|
3111
3046
|
e.granularity
|
|
3112
3047
|
);
|
|
@@ -3123,34 +3058,34 @@ function ga(e) {
|
|
|
3123
3058
|
...t ? { format: t } : {}
|
|
3124
3059
|
};
|
|
3125
3060
|
}
|
|
3126
|
-
function
|
|
3061
|
+
function ya(e, t) {
|
|
3127
3062
|
var r, a;
|
|
3128
3063
|
const i = ((r = e.nativeDataType) == null ? void 0 : r.trim()) || ((a = e.native_data_type) == null ? void 0 : a.trim());
|
|
3129
3064
|
return i || ((e.dataTypeProvenance || t) === "physical" ? e.data_type : void 0);
|
|
3130
3065
|
}
|
|
3131
|
-
function
|
|
3066
|
+
function ri(e) {
|
|
3132
3067
|
const t = (e.label ?? "").trim();
|
|
3133
3068
|
return t ? e.derivedLabel === void 0 ? !0 : t !== e.derivedLabel.trim() : !1;
|
|
3134
3069
|
}
|
|
3135
|
-
function
|
|
3136
|
-
return
|
|
3070
|
+
function ke(e) {
|
|
3071
|
+
return ri(e) ? e.label.trim() : e.name || (e.label ?? "").trim();
|
|
3137
3072
|
}
|
|
3138
|
-
function
|
|
3139
|
-
return
|
|
3073
|
+
function ct(e) {
|
|
3074
|
+
return ke(e).toLowerCase().trim();
|
|
3140
3075
|
}
|
|
3141
|
-
function
|
|
3142
|
-
return
|
|
3076
|
+
function ba(e, t) {
|
|
3077
|
+
return ct(e).localeCompare(ct(t), void 0, {
|
|
3143
3078
|
numeric: !0,
|
|
3144
3079
|
sensitivity: "base"
|
|
3145
3080
|
});
|
|
3146
3081
|
}
|
|
3147
|
-
function
|
|
3082
|
+
function Z(e) {
|
|
3148
3083
|
return String(e ?? "").toLowerCase().replace(/[\s_\-.]+/g, "");
|
|
3149
3084
|
}
|
|
3150
|
-
function
|
|
3151
|
-
const i =
|
|
3085
|
+
function No(e, t) {
|
|
3086
|
+
const i = Z(t);
|
|
3152
3087
|
return i ? [
|
|
3153
|
-
|
|
3088
|
+
ke(e),
|
|
3154
3089
|
e.label,
|
|
3155
3090
|
e.name,
|
|
3156
3091
|
e.description,
|
|
@@ -3159,21 +3094,21 @@ function ko(e, t) {
|
|
|
3159
3094
|
e.entityName && e.name ? `${e.entityName}.${e.name}` : "",
|
|
3160
3095
|
e.dataType
|
|
3161
3096
|
].some(
|
|
3162
|
-
(r) => !!r &&
|
|
3097
|
+
(r) => !!r && Z(r).includes(i)
|
|
3163
3098
|
) : !0;
|
|
3164
3099
|
}
|
|
3165
|
-
function
|
|
3166
|
-
const i =
|
|
3100
|
+
function ut(e, t) {
|
|
3101
|
+
const i = Z(t);
|
|
3167
3102
|
if (!i) return 0;
|
|
3168
|
-
const n =
|
|
3169
|
-
return n.startsWith(i) ? 0 : n.includes(i) ? 1 : [e.label, e.name].filter(Boolean).map(
|
|
3103
|
+
const n = Z(ke(e));
|
|
3104
|
+
return n.startsWith(i) ? 0 : n.includes(i) ? 1 : [e.label, e.name].filter(Boolean).map(Z).some((a) => a.includes(i)) ? 2 : 3;
|
|
3170
3105
|
}
|
|
3171
|
-
function
|
|
3172
|
-
return
|
|
3106
|
+
function Eo(e, t, i) {
|
|
3107
|
+
return ut(e, i) - ut(t, i) || ba(e, t);
|
|
3173
3108
|
}
|
|
3174
|
-
function
|
|
3109
|
+
function va(e, t) {
|
|
3175
3110
|
var a;
|
|
3176
|
-
const i = e.type === "dataset" ? (a = t.find((o) => o.entityName)) == null ? void 0 : a.entityName : void 0, n = i || e.name, r =
|
|
3111
|
+
const i = e.type === "dataset" ? (a = t.find((o) => o.entityName)) == null ? void 0 : a.entityName : void 0, n = i || e.name, r = Ze(
|
|
3177
3112
|
e.type === "dataset" && i ? { ...e, name: i } : e
|
|
3178
3113
|
);
|
|
3179
3114
|
return {
|
|
@@ -3184,13 +3119,13 @@ function Fa(e, t) {
|
|
|
3184
3119
|
description: e.description,
|
|
3185
3120
|
qualifiedEntityName: r,
|
|
3186
3121
|
columns: t.map((o) => {
|
|
3187
|
-
var
|
|
3188
|
-
const s = e.type === "dataset" ? o.entityName || n : e.name, l = o.qualifiedEntityName || (e.type === "dataset" && s ?
|
|
3122
|
+
var g;
|
|
3123
|
+
const s = e.type === "dataset" ? o.entityName || n : e.name, l = o.qualifiedEntityName || (e.type === "dataset" && s ? Ze({ ...e, name: s }) : r), c = ya(
|
|
3189
3124
|
o,
|
|
3190
3125
|
e.type === "dataset" ? "semantic" : "physical"
|
|
3191
|
-
), u = (
|
|
3126
|
+
), u = (g = o.label) != null && g.trim() ? o.label : void 0, f = u ? void 0 : Fn(o.column_name);
|
|
3192
3127
|
return {
|
|
3193
|
-
id:
|
|
3128
|
+
id: Cn(s, o.column_name),
|
|
3194
3129
|
name: o.column_name,
|
|
3195
3130
|
qualifiedFieldName: o.qualifiedFieldName || o.column_name,
|
|
3196
3131
|
dataType: o.data_type,
|
|
@@ -3220,17 +3155,17 @@ function Fa(e, t) {
|
|
|
3220
3155
|
})
|
|
3221
3156
|
};
|
|
3222
3157
|
}
|
|
3223
|
-
function
|
|
3158
|
+
function Fa(e) {
|
|
3224
3159
|
return e.map((t) => ({
|
|
3225
3160
|
...t,
|
|
3226
|
-
id:
|
|
3161
|
+
id: Pt({ ...t }),
|
|
3227
3162
|
fieldScope: "domain"
|
|
3228
3163
|
}));
|
|
3229
3164
|
}
|
|
3230
|
-
function
|
|
3165
|
+
function Ca(e) {
|
|
3231
3166
|
return e.flatMap(
|
|
3232
3167
|
(t) => t.columns.map((i) => {
|
|
3233
|
-
const n =
|
|
3168
|
+
const n = ri(i) ? i.label : void 0, r = n ? void 0 : i.derivedLabel ?? xn(i.name), a = n ?? r ?? i.name;
|
|
3234
3169
|
return {
|
|
3235
3170
|
...i,
|
|
3236
3171
|
id: i.id || `${t.entityId}-${i.name}`,
|
|
@@ -3248,33 +3183,33 @@ function Ia(e) {
|
|
|
3248
3183
|
})
|
|
3249
3184
|
);
|
|
3250
3185
|
}
|
|
3251
|
-
function
|
|
3252
|
-
const t = e.map((n) =>
|
|
3186
|
+
function Ro(e) {
|
|
3187
|
+
const t = e.map((n) => va(n.target, n.columns || [])).filter((n) => {
|
|
3253
3188
|
var r;
|
|
3254
3189
|
return ((r = n == null ? void 0 : n.columns) == null ? void 0 : r.length) > 0;
|
|
3255
|
-
}), i =
|
|
3190
|
+
}), i = Fa(e.flatMap((n) => n.calculatedFields || []));
|
|
3256
3191
|
if (i.length > 0) {
|
|
3257
3192
|
const n = /* @__PURE__ */ new Map();
|
|
3258
3193
|
i.forEach((r) => {
|
|
3259
|
-
const a =
|
|
3194
|
+
const a = Pt(r);
|
|
3260
3195
|
n.has(a) || n.set(a, r);
|
|
3261
3196
|
}), t.unshift({
|
|
3262
|
-
entityId:
|
|
3197
|
+
entityId: In,
|
|
3263
3198
|
entityType: "dataset",
|
|
3264
|
-
entityName:
|
|
3199
|
+
entityName: et,
|
|
3265
3200
|
label: "Calculated Fields",
|
|
3266
3201
|
description: "Domain-level calculated metrics and dimensions",
|
|
3267
|
-
qualifiedEntityName:
|
|
3202
|
+
qualifiedEntityName: et,
|
|
3268
3203
|
columns: Array.from(n.values())
|
|
3269
3204
|
});
|
|
3270
3205
|
}
|
|
3271
|
-
return { columnGroups: t, columns:
|
|
3206
|
+
return { columnGroups: t, columns: Ca(t) };
|
|
3272
3207
|
}
|
|
3273
|
-
function
|
|
3208
|
+
function Vo(e, t) {
|
|
3274
3209
|
const i = e.answers.relationshipIds;
|
|
3275
3210
|
return !i || !t ? !i && !t : i.length === t.length && i.every((n, r) => t[r] === n);
|
|
3276
3211
|
}
|
|
3277
|
-
const
|
|
3212
|
+
const Ia = /* @__PURE__ */ new Set([
|
|
3278
3213
|
"dataset_not_reachable",
|
|
3279
3214
|
"field_not_resolvable",
|
|
3280
3215
|
"missing_metadata",
|
|
@@ -3286,15 +3221,15 @@ const xa = /* @__PURE__ */ new Set([
|
|
|
3286
3221
|
function L(e) {
|
|
3287
3222
|
return !!e && typeof e == "object" && !Array.isArray(e);
|
|
3288
3223
|
}
|
|
3289
|
-
function
|
|
3224
|
+
function xa(e) {
|
|
3290
3225
|
if (L(e))
|
|
3291
3226
|
switch (e.status) {
|
|
3292
3227
|
case "applied": {
|
|
3293
|
-
const t =
|
|
3228
|
+
const t = Ot(e.route);
|
|
3294
3229
|
return t ? { status: "applied", route: t } : void 0;
|
|
3295
3230
|
}
|
|
3296
3231
|
case "skipped":
|
|
3297
|
-
return typeof e.reason == "string" &&
|
|
3232
|
+
return typeof e.reason == "string" && Ia.has(e.reason) ? { status: "skipped", reason: e.reason } : void 0;
|
|
3298
3233
|
case "needsPath":
|
|
3299
3234
|
return { status: "needsPath" };
|
|
3300
3235
|
case "blocked":
|
|
@@ -3307,22 +3242,22 @@ function Sa(e) {
|
|
|
3307
3242
|
return;
|
|
3308
3243
|
}
|
|
3309
3244
|
}
|
|
3310
|
-
function
|
|
3245
|
+
function ai(e) {
|
|
3311
3246
|
if (e !== void 0)
|
|
3312
3247
|
return Array.isArray(e) && e.length > 0 && e.every((t) => typeof t == "string" && t.length > 0) ? e : null;
|
|
3313
3248
|
}
|
|
3314
|
-
function
|
|
3249
|
+
function Sa(e) {
|
|
3315
3250
|
if (!L(e)) return;
|
|
3316
|
-
const t =
|
|
3317
|
-
if (!(!t || !L(i) || i.kind !== "relationship" || !L(i.field) || typeof i.field.name != "string" || !L(i.field.source) || i.field.source.kind !== "semantic" || !
|
|
3251
|
+
const t = Ot(e.route), i = e.target;
|
|
3252
|
+
if (!(!t || !L(i) || i.kind !== "relationship" || !L(i.field) || typeof i.field.name != "string" || !L(i.field.source) || i.field.source.kind !== "semantic" || !ai(i.relationshipIds)))
|
|
3318
3253
|
return { route: t, target: i };
|
|
3319
3254
|
}
|
|
3320
|
-
function
|
|
3255
|
+
function ko(e) {
|
|
3321
3256
|
if (!L(e) || !Array.isArray(e.previews)) return { previews: [] };
|
|
3322
3257
|
const t = [];
|
|
3323
3258
|
for (const n of e.previews) {
|
|
3324
3259
|
if (!L(n) || typeof n.cardId != "string" || !n.cardId || !L(n.answers)) continue;
|
|
3325
|
-
const r =
|
|
3260
|
+
const r = ai(n.answers.relationshipIds), a = xa(n.outcome), o = Array.isArray(n.paths) ? n.paths.map(Sa) : [];
|
|
3326
3261
|
r === null || !a || !o.every(Boolean) || a.status === "needsPath" && o.length < 2 || t.push({
|
|
3327
3262
|
cardId: n.cardId,
|
|
3328
3263
|
answers: r ? { relationshipIds: r } : {},
|
|
@@ -3333,22 +3268,22 @@ function qo(e) {
|
|
|
3333
3268
|
const i = L(e.manageRelationships) && typeof e.manageRelationships.href == "string" ? { href: e.manageRelationships.href } : void 0;
|
|
3334
3269
|
return { previews: t, ...i ? { manageRelationships: i } : {} };
|
|
3335
3270
|
}
|
|
3336
|
-
const
|
|
3337
|
-
function
|
|
3271
|
+
const se = (e) => (e == null ? void 0 : e.label) || (e == null ? void 0 : e.name) || "";
|
|
3272
|
+
function Ma(e) {
|
|
3338
3273
|
return !e || /s$/i.test(e) ? e : /[^aeiou]y$/i.test(e) ? `${e.slice(0, -1)}ies` : `${e}s`;
|
|
3339
3274
|
}
|
|
3340
|
-
function
|
|
3275
|
+
function Bo(e) {
|
|
3341
3276
|
if (e.direction === "to_many") {
|
|
3342
|
-
const i =
|
|
3343
|
-
return `${e.base ?
|
|
3277
|
+
const i = se(e.matchingDataset ?? e.datasets[e.datasets.length - 1]);
|
|
3278
|
+
return `${e.base ? Ma(se(e.base)) : "Rows"} with at least one matching ${i}`;
|
|
3344
3279
|
}
|
|
3345
|
-
return `through ${(e.datasets.length > 1 ? e.datasets.slice(0, -1) : e.datasets).map(
|
|
3280
|
+
return `through ${(e.datasets.length > 1 ? e.datasets.slice(0, -1) : e.datasets).map(se).join(", ")}`;
|
|
3346
3281
|
}
|
|
3347
|
-
const
|
|
3348
|
-
function
|
|
3282
|
+
const Ko = "The relationship this card used changed; choose it again";
|
|
3283
|
+
function Lo(e, t) {
|
|
3349
3284
|
switch (e) {
|
|
3350
3285
|
case "relationship_missing":
|
|
3351
|
-
return t ? `Not related to ${
|
|
3286
|
+
return t ? `Not related to ${se(t)}` : "Not related to this card";
|
|
3352
3287
|
case "relationship_ambiguous":
|
|
3353
3288
|
return "Connects through more than one path";
|
|
3354
3289
|
case "relationship_unsupported":
|
|
@@ -3363,120 +3298,114 @@ function jo(e, t) {
|
|
|
3363
3298
|
}
|
|
3364
3299
|
}
|
|
3365
3300
|
export {
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
Pr as j,
|
|
3466
|
-
Or as k,
|
|
3467
|
-
vo as l,
|
|
3468
|
-
Ar as m,
|
|
3469
|
-
Nr as n,
|
|
3470
|
-
Fo as o,
|
|
3301
|
+
mr as $,
|
|
3302
|
+
ke as A,
|
|
3303
|
+
xr as B,
|
|
3304
|
+
yr as C,
|
|
3305
|
+
Ha as D,
|
|
3306
|
+
Co as E,
|
|
3307
|
+
vo as F,
|
|
3308
|
+
j as G,
|
|
3309
|
+
ce as H,
|
|
3310
|
+
Qa as I,
|
|
3311
|
+
kr as J,
|
|
3312
|
+
Br as K,
|
|
3313
|
+
bo as L,
|
|
3314
|
+
xo as M,
|
|
3315
|
+
Nr as N,
|
|
3316
|
+
Bn as O,
|
|
3317
|
+
Vn as P,
|
|
3318
|
+
kn as Q,
|
|
3319
|
+
Ko as R,
|
|
3320
|
+
po as S,
|
|
3321
|
+
ro as T,
|
|
3322
|
+
rr as U,
|
|
3323
|
+
_e as V,
|
|
3324
|
+
eo as W,
|
|
3325
|
+
lo as X,
|
|
3326
|
+
uo as Y,
|
|
3327
|
+
co as Z,
|
|
3328
|
+
Nt as _,
|
|
3329
|
+
So as a,
|
|
3330
|
+
Sr as a0,
|
|
3331
|
+
te as a1,
|
|
3332
|
+
so as a2,
|
|
3333
|
+
fo as a3,
|
|
3334
|
+
Wn as a4,
|
|
3335
|
+
nr as a5,
|
|
3336
|
+
br as a6,
|
|
3337
|
+
vr as a7,
|
|
3338
|
+
mo as a8,
|
|
3339
|
+
Ie as a9,
|
|
3340
|
+
da as aA,
|
|
3341
|
+
ee as aB,
|
|
3342
|
+
Ve as aC,
|
|
3343
|
+
Mo as aD,
|
|
3344
|
+
Po as aE,
|
|
3345
|
+
Do as aF,
|
|
3346
|
+
sa as aG,
|
|
3347
|
+
ya as aH,
|
|
3348
|
+
_o as aI,
|
|
3349
|
+
Ao as aJ,
|
|
3350
|
+
To as aK,
|
|
3351
|
+
ua as aL,
|
|
3352
|
+
Fo as aM,
|
|
3353
|
+
Rr as aN,
|
|
3354
|
+
fr as aO,
|
|
3355
|
+
Eo as aP,
|
|
3356
|
+
ut as aQ,
|
|
3357
|
+
ga as aR,
|
|
3358
|
+
Z as aS,
|
|
3359
|
+
Ya as aT,
|
|
3360
|
+
pr as aa,
|
|
3361
|
+
no as ab,
|
|
3362
|
+
to as ac,
|
|
3363
|
+
io as ad,
|
|
3364
|
+
Xn as ae,
|
|
3365
|
+
Jn as af,
|
|
3366
|
+
ao as ag,
|
|
3367
|
+
jt as ah,
|
|
3368
|
+
$n as ai,
|
|
3369
|
+
Ja as aj,
|
|
3370
|
+
Mr as ak,
|
|
3371
|
+
Rn as al,
|
|
3372
|
+
Ga as am,
|
|
3373
|
+
Ln as an,
|
|
3374
|
+
Oe as ao,
|
|
3375
|
+
Xa as ap,
|
|
3376
|
+
Za as aq,
|
|
3377
|
+
ue as ar,
|
|
3378
|
+
ie as as,
|
|
3379
|
+
Wa as at,
|
|
3380
|
+
oo as au,
|
|
3381
|
+
lr as av,
|
|
3382
|
+
Lr as aw,
|
|
3383
|
+
No as ax,
|
|
3384
|
+
ri as ay,
|
|
3385
|
+
wo as az,
|
|
3386
|
+
Io as b,
|
|
3387
|
+
yo as c,
|
|
3388
|
+
fa as d,
|
|
3389
|
+
qr as e,
|
|
3390
|
+
$r as f,
|
|
3391
|
+
Ua as g,
|
|
3392
|
+
Nn as h,
|
|
3393
|
+
Dr as i,
|
|
3394
|
+
wr as j,
|
|
3395
|
+
Pr as k,
|
|
3396
|
+
ho as l,
|
|
3397
|
+
Or as m,
|
|
3398
|
+
Ar as n,
|
|
3399
|
+
go as o,
|
|
3471
3400
|
_r as p,
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3401
|
+
va as q,
|
|
3402
|
+
Oo as r,
|
|
3403
|
+
Fa as s,
|
|
3404
|
+
Ca as t,
|
|
3405
|
+
Ro as u,
|
|
3406
|
+
Vo as v,
|
|
3407
|
+
ko as w,
|
|
3408
|
+
Ma as x,
|
|
3409
|
+
Bo as y,
|
|
3410
|
+
Lo as z
|
|
3482
3411
|
};
|