react-semaphor 0.1.568 → 0.1.570
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/README.md +0 -7
- package/dist/analytics-protocol/index.js +434 -454
- package/dist/appearance/index.js +6 -3
- package/dist/appearance-runtime/index.js +1 -1
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +572 -436
- package/dist/briefings/index.js +4 -4
- package/dist/chunks/appearance-context-BwBp25ZG.js +162 -0
- package/dist/chunks/appearance-runtime-provider-BRHYELkC.js +80 -0
- package/dist/chunks/assistant-chat-B-Ddyy8b.js +5940 -0
- package/dist/chunks/{bookmark-impact-CJ-65omV.js → bookmark-impact-DCYD-6Fr.js} +2 -2
- package/dist/chunks/{bookmark-state-Du3s13_V.js → bookmark-state-CflS88gq.js} +251 -250
- package/dist/chunks/brand-B4BdpAB_.js +54 -0
- package/dist/chunks/{card-filter-builder-BBuB99GZ.js → card-filter-builder-0VvKmRst.js} +992 -991
- package/dist/chunks/{comparison-window-caption-CMLb3mut.js → comparison-window-caption-PtcDWvkN.js} +252 -253
- package/dist/chunks/{dashboard-YnWZC4dK.js → dashboard-DxGIr1vZ.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BF89TU2h.js → dashboard-briefing-launcher-B-quOOOQ.js} +253 -253
- package/dist/chunks/{dashboard-controls-atHc1EjP.js → dashboard-controls-Caodx80b.js} +288 -285
- package/dist/chunks/dashboard-json-Ct-AGDHF.js +66 -0
- package/dist/chunks/{dates-CKO05ino.js → dates-B9mL8BHE.js} +16 -15
- package/dist/chunks/edit-Bpdh_P_a.js +226 -0
- package/dist/chunks/{edit-dashboard-visual-DdmTfn-J.js → edit-dashboard-visual-DeDTuYB5.js} +2257 -2270
- package/dist/chunks/{filter-reach-copy-jZGzK_IH.js → filter-reach-copy-BSY33ro5.js} +1440 -1301
- package/dist/chunks/filter-value-text-DvvSNlho.js +146 -0
- package/dist/chunks/index-BVKzKl5d.js +90 -0
- package/dist/chunks/{index-RNaTnE3m.js → index-CV_Kzou0.js} +233 -223
- package/dist/chunks/{index-CPNZW0mu.js → index-y3HUzRNk.js} +76 -77
- package/dist/chunks/{layout-grid-0hIlqEtk.js → layout-grid-8rR-LPTk.js} +1 -1
- package/dist/chunks/{list-filter-DkgoCeBm.js → list-filter-C1-uTgjR.js} +1 -1
- package/dist/chunks/matrix-analytical-definition-dkS8szLM.js +1253 -0
- package/dist/chunks/matrix-member-presentation-DRa-9e6Q.js +169 -0
- package/dist/chunks/{matrix-operation-contract-Eb6elidS.js → matrix-operation-contract-DCVinw1o.js} +122 -122
- package/dist/chunks/{metric-comparison-ChXUFaZu.js → metric-comparison-n9NsIa-2.js} +175 -128
- package/dist/chunks/paintbrush-aR17Z3C9.js +27 -0
- package/dist/chunks/{palette-4vf2BEEg.js → palette-a5FCZKFI.js} +1 -1
- package/dist/chunks/{_commonjsHelpers-DimLPMtv.js → pickers-DkqmtnTL.js} +352 -290
- package/dist/chunks/pivot-result-contract-expectations-C-HnUKYe.js +55 -0
- package/dist/chunks/{pivot-result-identity-BlbLrqaC.js → pivot-result-identity-B89X5xjb.js} +1 -1
- package/dist/chunks/raw-temporal-value-DdT0s47W.js +159 -0
- package/dist/chunks/{report-preferences-dialog-Mbd-I0wV.js → report-preferences-dialog-Yvhv3WX2.js} +95 -97
- package/dist/chunks/{report-runtime-context-DnA_PiKo.js → report-runtime-context-BhPzLTbS.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-Du0fjN3h.js → resolve-dashboard-input-context-Lkbwycwe.js} +5491 -5683
- package/dist/chunks/resolver-DG_tfEpt.js +156 -0
- package/dist/chunks/{save-D6pHmSSP.js → save-D985VvYp.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-y8N6RvjS.js → saved-dashboard-context-DC_TEd6y.js} +6 -6
- package/dist/chunks/schema-C9NPiIru.js +2568 -0
- package/dist/chunks/{semaphor-ready-indicator-BSEdUq40.js → semaphor-ready-indicator-ByFvqHEO.js} +35916 -36001
- package/dist/chunks/{shelf-drop-preview-context-D7QqPl36.js → shelf-drop-preview-context-CjoVaK6J.js} +64 -66
- package/dist/chunks/{stored-dashboard-d3xQYxBD.js → stored-dashboard-C0hekXiI.js} +332 -333
- package/dist/chunks/{code-editor-DJNOsgJH.js → style-sheet-parts-C7qGZuH1.js} +2402 -2040
- package/dist/chunks/{table-export-sheet--DUKWk6o.js → table-export-sheet-CP8zSOhj.js} +1 -1
- package/dist/chunks/{temporal-input-presentation--2r9BLr0.js → temporal-input-presentation-CqbJjIuu.js} +18 -18
- package/dist/chunks/{token-types-C8JymO8s.js → token-types-iKMplaBL.js} +1 -1
- package/dist/chunks/{upload-Cf3wXZT8.js → upload-CiGNKJ_0.js} +1 -1
- package/dist/chunks/validators-B8fpdinG.js +3651 -0
- package/dist/chunks/{variable-draft-DOX03R4A.js → variable-draft-9-huI1h4.js} +4 -4
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1888 -1826
- package/dist/format-utils/index.js +230 -231
- package/dist/index.js +349 -353
- package/dist/layouts/index.js +1 -1
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/appearance/index.d.ts +1 -0
- package/dist/types/brand-studio/brand-studio-draft.d.ts +7 -0
- package/dist/types/brand-studio/index.d.ts +1 -1
- package/dist/types/components/briefings/briefing-author/run-model.d.ts +1 -2
- package/dist/types/components/providers/appearance-runtime-provider.d.ts +4 -1
- package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -2
- package/dist/types/components/sharing-and-management/utils/types.d.ts +0 -72
- package/dist/types/components/surfboard/filter/types.d.ts +5 -4
- package/dist/types/components/ui-custom/date-range-presets.d.ts +1 -17
- package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +0 -1
- package/dist/types/components/visual/data-table/types/data-table.d.ts +0 -9
- package/dist/types/components/visual/data-table/utils/pagination-utils.d.ts +0 -19
- package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -1
- package/dist/types/index.js +9 -9
- package/dist/types/lib/appearance/aliases.d.ts +42 -0
- package/dist/types/lib/appearance/compiler.d.ts +6 -0
- package/dist/types/lib/appearance/defaults.d.ts +6 -0
- package/dist/types/lib/appearance/index.d.ts +2 -0
- package/dist/types/lib/appearance/normalize-organization.d.ts +17 -0
- package/dist/types/lib/appearance/resolver.d.ts +2 -2
- package/dist/types/lib/appearance/types.d.ts +38 -1
- package/dist/types/lib/charts/types.d.ts +6 -2
- package/dist/types/lib/dashboard/semantic-dataset-references.d.ts +0 -1
- package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +0 -2
- package/dist/types/lib/dashboard-variables/types.d.ts +1 -6
- package/dist/types/lib/download-pdf.d.ts +0 -1
- package/dist/types/lib/hooks/use-dashboard.d.ts +3 -4
- package/dist/types/lib/hooks/use-date-filter.d.ts +3 -3
- package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +1 -1
- package/dist/types/lib/stores/dashboard-store.d.ts +15 -6
- package/dist/types/lib/stores/editor-store.d.ts +0 -1
- package/dist/types/lib/stores/table-actions.d.ts +0 -1
- package/dist/types/lib/table-formatting/table-formatting-css.d.ts +0 -5
- package/dist/types/lib/types/common-types.d.ts +3 -2
- package/dist/types/lib/types/explorer-types.d.ts +2 -2
- package/dist/types/lib/types/index.d.ts +1 -1
- package/dist/types/lib/types/summary-types.d.ts +0 -5
- package/dist/types/lib/utils/card-definition.d.ts +7 -7
- package/dist/types/shared/analytics-protocol/agent-time-window.d.ts +84 -0
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +4 -4
- package/dist/types/shared/analytics-protocol/applied-constraints.d.ts +2 -2
- package/dist/types/shared/analytics-protocol/contracts.d.ts +8 -17
- package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +10 -10
- package/dist/types/shared/analytics-protocol/fixtures.d.ts +3 -2
- package/dist/types/shared/analytics-protocol/index.d.ts +2 -4
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +72 -72
- package/dist/types/shared/analytics-protocol/relative-date/describe.d.ts +18 -0
- package/dist/types/shared/analytics-protocol/relative-date/index.d.ts +7 -0
- package/dist/types/shared/analytics-protocol/relative-date/limits.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/relative-date/presets.d.ts +11 -0
- package/dist/types/shared/analytics-protocol/relative-date/resolve.d.ts +49 -0
- package/dist/types/shared/analytics-protocol/relative-date/schemas.d.ts +76 -0
- package/dist/types/shared/analytics-protocol/relative-date/traits.d.ts +51 -0
- package/dist/types/shared/analytics-protocol/relative-date/window.d.ts +111 -0
- package/dist/types/shared/analytics-protocol/selection-contract.d.ts +1 -1
- package/dist/types/shared/assistant-protocol/context.d.ts +30 -30
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +0 -2
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +344 -1772
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +4 -1
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +8 -4
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +9 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +104 -104
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +20 -20
- package/dist/types/shared/dashboard-authoring/dashboard-style/bounds.d.ts +17 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/brand.d.ts +20 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/edit-words.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/edit.d.ts +19 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/index.d.ts +15 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/layers.d.ts +19 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/legacy.d.ts +21 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/parse.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/pickers.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/types.d.ts +122 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/view.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +23 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +10 -2
- package/dist/types/shared/format-utils/filter-detail.d.ts +2 -8
- package/dist/types/shared/format-utils/filter-line.d.ts +2 -2
- package/dist/types/shared/format-utils/matrix-continuation.d.ts +10 -10
- package/dist/types/shared/temporal/index.d.ts +0 -2
- package/dist/types/shared/temporal/temporal-parity-fixtures.d.ts +2 -2
- package/package.json +7 -26
- package/DATA_APP_SDK.md +0 -339
- package/dist/chunks/appearance-context-DEYtWinQ.js +0 -126
- package/dist/chunks/appearance-runtime-provider-B-M8gwlZ.js +0 -81
- package/dist/chunks/assistant-chat-BN5I8KuN.js +0 -8849
- package/dist/chunks/color-CJvdlFM_.js +0 -2162
- package/dist/chunks/dashboard-json-Cxp3inxd.js +0 -68
- package/dist/chunks/filter-value-text-7zhmth1S.js +0 -163
- package/dist/chunks/index-CLIro-EG.js +0 -425
- package/dist/chunks/index-CuHybtft.js +0 -51
- package/dist/chunks/matrix-analytical-definition-C9xB_T84.js +0 -717
- package/dist/chunks/matrix-card-BSUeSXpD.js +0 -42
- package/dist/chunks/matrix-member-presentation-DZNgQpUq.js +0 -105
- package/dist/chunks/operators-B3zZoskU.js +0 -66
- package/dist/chunks/pivot-result-contract-expectations-Ddh1rNz5.js +0 -56
- package/dist/chunks/raw-temporal-value-Bqz8wc7L.js +0 -242
- package/dist/chunks/selection-reducer-OaJ-N5uN.js +0 -46
- package/dist/chunks/source-entity-resolution-DF6GulDn.js +0 -607
- package/dist/chunks/validators-wtjw0aw6.js +0 -3332
- package/dist/data-app-sdk/index.js +0 -1412
- package/dist/data-app-sdk-adapters/index.js +0 -361
- package/dist/data-app-sdk-validation/index.js +0 -1031
- package/dist/types/components/sharing-and-management/utils/group-types.d.ts +0 -105
- package/dist/types/data-app-sdk/adapters.d.ts +0 -35
- package/dist/types/data-app-sdk/builders.d.ts +0 -62
- package/dist/types/data-app-sdk/contracts.d.ts +0 -419
- package/dist/types/data-app-sdk/executor.d.ts +0 -5
- package/dist/types/data-app-sdk/field-catalog-validation.d.ts +0 -29
- package/dist/types/data-app-sdk/hooks.d.ts +0 -11
- package/dist/types/data-app-sdk/index.d.ts +0 -9
- package/dist/types/data-app-sdk/provider.d.ts +0 -8
- package/dist/types/data-app-sdk/relationship-aware-field-policy.d.ts +0 -21
- package/dist/types/data-app-sdk/selection.d.ts +0 -2
- package/dist/types/data-app-sdk/validation.d.ts +0 -58
- package/dist/types/data-app-sdk-adapters.d.ts +0 -2
- package/dist/types/data-app-sdk-validation.d.ts +0 -2
- package/dist/types/data-app-sdk.d.ts +0 -2
- package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +0 -68
- package/dist/types/shared/analytics-protocol/relative-date-label.d.ts +0 -20
- package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +0 -314
- package/dist/types/shared/analytics-protocol/time-window.d.ts +0 -52
- package/dist/types/shared/temporal/relative-date.d.ts +0 -21
- package/dist/types/shared/temporal/time-window-periods.d.ts +0 -21
- package/src/data-app-sdk/README.md +0 -402
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { S as
|
|
5
|
-
import
|
|
6
|
-
import "
|
|
7
|
-
import {
|
|
8
|
-
import "./
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import "./index-
|
|
1
|
+
import { gX as co, cB as uo, c1 as fo, aT as po, bd as mo, f as go, bV as yo, N as oe, gY as bo, gZ as Ne, e6 as Rt, e9 as ho, bM as Co, g_ as Io, au as vo, fO as Kt, fQ as Fo, bx as Le, g$ as qt, P as So, fS as To, d0 as Fe, s as _, fJ as Se, n as je, h0 as Do, cW as Nt, cY as Lt, cH as Mo, c$ as Vo, cZ as bt, c_ as ko, b as xo, cJ as Po, cV as wo, cT as Oo, bA as jt, a4 as q, gl as Ao, h1 as Te, h2 as zt, h3 as Eo, h4 as ze, gA as De, h5 as Bo, h6 as Ge, h7 as _o, h8 as Ro, h9 as Ko, ha as qo, hb as No, l as He, hc as Lo, k as ee, r as jo, h as zo, hd as U, gO as $e, he as ge, hf as Gt, hg as Go, J as Ho, hh as $o, hi as Uo, fI as Qo, hj as Wo, hk as Yo, e as Jo, hl as Zo, hm as Ht, a0 as $t, hn as Xo, ho as er, hp as tr, hq as Ut, j as Ue, cs as nr, a5 as or, o as Qt, cr as rr, gx as ir, q as sr, t as ht, C as ar, hr as lr, hs as cr, ct as ur, ht as dr } from "./resolve-dashboard-input-context-Lkbwycwe.js";
|
|
2
|
+
import { ak as fr, a5 as re, J as pr, v as mr, aw as Oe, w as gr, a7 as Ct, ay as Wt, U as yr, r as br } from "./validators-B8fpdinG.js";
|
|
3
|
+
import { q as Yt } from "./matrix-operation-contract-DCVinw1o.js";
|
|
4
|
+
import { S as Qe } from "./analytics-base-schemas-BaIQrEzX.js";
|
|
5
|
+
import "./pickers-DkqmtnTL.js";
|
|
6
|
+
import { canonicalizeSupportedCurrencyCode as Jt } from "../value-format-preferences/index.js";
|
|
7
|
+
import { ZodError as hr } from "zod";
|
|
8
|
+
import { b as ye, r as Cr, aW as Ir, i as vr, aD as Fr, aA as It } from "./temporal-input-presentation-CqbJjIuu.js";
|
|
9
|
+
import { aB as Zt, aC as Xt, aD as ke, $ as Sr, aE as en, aF as tn, aA as nn, aG as on, n as Tr, l as Dr, v as rn, t as j, aH as sn, k as an, C as Ae, aI as H, z as ie, i as ln, o as Mr, u as Vr, B as We, aJ as kr, ah as xr, F as cn, D as Pr, az as vt, N as un, O as dn, I as fn } from "./bookmark-state-CflS88gq.js";
|
|
10
|
+
import "./schema-C9NPiIru.js";
|
|
11
|
+
import "./index-CV_Kzou0.js";
|
|
12
12
|
import "./context-R31TSL5V.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { p as Ar, d as Er } from "./pivot-result-contract-expectations-Ddh1rNz5.js";
|
|
13
|
+
import { D as wr } from "./report-runtime-context-BhPzLTbS.js";
|
|
14
|
+
import { r as Q, C as Or } from "./metric-comparison-n9NsIa-2.js";
|
|
15
|
+
import { p as Ar, d as Er } from "./pivot-result-contract-expectations-C-HnUKYe.js";
|
|
17
16
|
import { isPdfTableCardType as Br, PDF_CAPACITY as _r } from "../pdf-export-policy/index.js";
|
|
18
17
|
import { c as Rr } from "./selection-filter-compiler-CUDRnUxc.js";
|
|
19
|
-
import { a as Kr,
|
|
20
|
-
import { r as Lr } from "./pivot-result-identity-
|
|
18
|
+
import { a as Kr, h as qr, s as Nr } from "./matrix-analytical-definition-dkS8szLM.js";
|
|
19
|
+
import { r as Lr } from "./pivot-result-identity-B89X5xjb.js";
|
|
21
20
|
const jr = (e, t) => {
|
|
22
21
|
const n = {};
|
|
23
22
|
if (e === null || t === null)
|
|
@@ -116,7 +115,7 @@ function Yr(e, t, n, o) {
|
|
|
116
115
|
return t ^ n ^ o;
|
|
117
116
|
}
|
|
118
117
|
}
|
|
119
|
-
function
|
|
118
|
+
function xe(e, t) {
|
|
120
119
|
return e << t | e >>> 32 - t;
|
|
121
120
|
}
|
|
122
121
|
function Jr(e) {
|
|
@@ -141,18 +140,18 @@ function Jr(e) {
|
|
|
141
140
|
for (let m = 0; m < 16; ++m)
|
|
142
141
|
a[m] = i[s][m];
|
|
143
142
|
for (let m = 16; m < 80; ++m)
|
|
144
|
-
a[m] =
|
|
143
|
+
a[m] = xe(a[m - 3] ^ a[m - 8] ^ a[m - 14] ^ a[m - 16], 1);
|
|
145
144
|
let c = n[0], l = n[1], u = n[2], d = n[3], f = n[4];
|
|
146
145
|
for (let m = 0; m < 80; ++m) {
|
|
147
|
-
const g = Math.floor(m / 20), p =
|
|
148
|
-
f = d, d = u, u =
|
|
146
|
+
const g = Math.floor(m / 20), p = xe(c, 5) + Yr(g, l, u, d) + f + t[g] + a[m] >>> 0;
|
|
147
|
+
f = d, d = u, u = xe(l, 30) >>> 0, l = c, c = p;
|
|
149
148
|
}
|
|
150
149
|
n[0] = n[0] + c >>> 0, n[1] = n[1] + l >>> 0, n[2] = n[2] + u >>> 0, n[3] = n[3] + d >>> 0, n[4] = n[4] + f >>> 0;
|
|
151
150
|
}
|
|
152
151
|
return [n[0] >> 24 & 255, n[0] >> 16 & 255, n[0] >> 8 & 255, n[0] & 255, n[1] >> 24 & 255, n[1] >> 16 & 255, n[1] >> 8 & 255, n[1] & 255, n[2] >> 24 & 255, n[2] >> 16 & 255, n[2] >> 8 & 255, n[2] & 255, n[3] >> 24 & 255, n[3] >> 16 & 255, n[3] >> 8 & 255, n[3] & 255, n[4] >> 24 & 255, n[4] >> 16 & 255, n[4] >> 8 & 255, n[4] & 255];
|
|
153
152
|
}
|
|
154
|
-
const
|
|
155
|
-
function
|
|
153
|
+
const Zr = Wr("v5", 80, Jr), St = /\[\[\s*param\.([A-Za-z0-9_.-]+)\s*\]\]/g, Tt = /\bparam\s*\(\s*(['"])([^'"]+)\1/g;
|
|
154
|
+
function Xr(e) {
|
|
156
155
|
const t = [];
|
|
157
156
|
let n = 0;
|
|
158
157
|
for (; n < e.length; ) {
|
|
@@ -179,7 +178,7 @@ function pn(e) {
|
|
|
179
178
|
const i = (o = n[1]) == null ? void 0 : o.trim();
|
|
180
179
|
i && t.add(i);
|
|
181
180
|
}
|
|
182
|
-
for (const i of
|
|
181
|
+
for (const i of Xr(e))
|
|
183
182
|
for (Tt.lastIndex = 0; (n = Tt.exec(i)) !== null; ) {
|
|
184
183
|
const s = (r = n[2]) == null ? void 0 : r.trim();
|
|
185
184
|
s && t.add(s);
|
|
@@ -249,9 +248,9 @@ function ni(e, t) {
|
|
|
249
248
|
o[i] = mn(s, t);
|
|
250
249
|
return Object.keys(o).length && (n.inputAliases = o), n;
|
|
251
250
|
}
|
|
252
|
-
function
|
|
251
|
+
function tl(e, t) {
|
|
253
252
|
var r, i, s, a;
|
|
254
|
-
const n = be(
|
|
253
|
+
const n = be(Zt(e));
|
|
255
254
|
n.controlBindings = ti(
|
|
256
255
|
e,
|
|
257
256
|
new Map(Object.entries(t.controlIds ?? {}))
|
|
@@ -291,25 +290,25 @@ function nl(e, t) {
|
|
|
291
290
|
const oi = "9677efdd-86ec-4afb-b9bb-5ead8b5442af";
|
|
292
291
|
function ri(e) {
|
|
293
292
|
let t = 0;
|
|
294
|
-
return () =>
|
|
293
|
+
return () => Zr(`${e}#${t++}`, oi);
|
|
295
294
|
}
|
|
296
295
|
const ii = [
|
|
297
296
|
{ code: "matrix_definition_incomplete", label: "Matrix definition" }
|
|
298
297
|
], si = [
|
|
299
298
|
{ code: "connection_type_unresolved", label: "Connection type" }
|
|
300
|
-
],
|
|
299
|
+
], X = (e) => !Array.isArray(e) || e.length === 0;
|
|
301
300
|
function ai(e) {
|
|
302
301
|
var i;
|
|
303
302
|
const t = e.config ?? {};
|
|
304
|
-
if ((i = e.sql) != null && i.trim() || !
|
|
305
|
-
const n = !
|
|
303
|
+
if ((i = e.sql) != null && i.trim() || !X(t.pivotByColumns)) return "matrixTable";
|
|
304
|
+
const n = !X(t.groupByColumns), o = !X(t.metricColumns), r = e.type === "pivotTable" && (n || o) && X(t.rowAggregates) && X(t.columnAggregates);
|
|
306
305
|
return n && !o || r ? "table" : "matrixTable";
|
|
307
306
|
}
|
|
308
307
|
function li(e) {
|
|
309
308
|
var r;
|
|
310
309
|
const t = e.dataSource;
|
|
311
310
|
if (!t || (r = t.connectionType) != null && r.trim()) return e;
|
|
312
|
-
const n =
|
|
311
|
+
const n = fr(yo(t.selectedEntities));
|
|
313
312
|
if (!n) return e;
|
|
314
313
|
const o = Array.isArray(t.selectedEntities) ? t.selectedEntities.map((i) => i && typeof i == "object" && "connectionType" in i && !String(i.connectionType ?? "").trim() ? { ...i, connectionType: n } : i) : t.selectedEntities;
|
|
315
314
|
return { ...e, dataSource: { ...t, connectionType: n, selectedEntities: o } };
|
|
@@ -331,14 +330,14 @@ function gn(e) {
|
|
|
331
330
|
]
|
|
332
331
|
};
|
|
333
332
|
}
|
|
334
|
-
function
|
|
333
|
+
function nl(e) {
|
|
335
334
|
if (!e.cards) return e;
|
|
336
335
|
const t = e.cards.map((n) => gn(n).card);
|
|
337
336
|
return t.every((n, o) => n === e.cards[o]) ? e : { ...e, cards: t };
|
|
338
337
|
}
|
|
339
338
|
function ci(e) {
|
|
340
339
|
const t = [];
|
|
341
|
-
return { dashboard:
|
|
340
|
+
return { dashboard: Sr(e, (o, r) => {
|
|
342
341
|
const i = gn(o);
|
|
343
342
|
return i.status === "routed" && i.gaps.length && t.push({ location: r, gaps: i.gaps }), i.card;
|
|
344
343
|
}), routedWithGaps: t };
|
|
@@ -373,7 +372,7 @@ function di(e, t, n) {
|
|
|
373
372
|
)
|
|
374
373
|
};
|
|
375
374
|
}
|
|
376
|
-
function
|
|
375
|
+
function ol(e) {
|
|
377
376
|
switch (e) {
|
|
378
377
|
case "previous_period":
|
|
379
378
|
return "Previous";
|
|
@@ -393,8 +392,8 @@ function yn(e, t, n) {
|
|
|
393
392
|
function fi(e, t) {
|
|
394
393
|
return `${e} Δ`;
|
|
395
394
|
}
|
|
396
|
-
function
|
|
397
|
-
return
|
|
395
|
+
function rl(e, t) {
|
|
396
|
+
return en(e, t);
|
|
398
397
|
}
|
|
399
398
|
function pi(e, t) {
|
|
400
399
|
return e.rawKey === t.rawKey && e.outputKey === t.outputKey;
|
|
@@ -414,7 +413,7 @@ function bn(e) {
|
|
|
414
413
|
});
|
|
415
414
|
return s.length === 1 ? s[0] : void 0;
|
|
416
415
|
}
|
|
417
|
-
function
|
|
416
|
+
function il(e, t) {
|
|
418
417
|
return t ? { ...e, config: t } : e;
|
|
419
418
|
}
|
|
420
419
|
function mi(e) {
|
|
@@ -434,7 +433,7 @@ function gi(e, t, n, o) {
|
|
|
434
433
|
const r = [...e], [i] = r.splice(t, 1), s = o === "before" ? n > t ? n - 1 : n : n > t ? n : n + 1;
|
|
435
434
|
return r.splice(s, 0, i), r;
|
|
436
435
|
}
|
|
437
|
-
function
|
|
436
|
+
function Pe(e, t, n) {
|
|
438
437
|
if (!(e != null && e.length)) return null;
|
|
439
438
|
const o = e.findIndex(
|
|
440
439
|
(i) => n(i).includes(t.draggingColumnId)
|
|
@@ -449,13 +448,13 @@ function we(e, t, n) {
|
|
|
449
448
|
[t]: n
|
|
450
449
|
} : null;
|
|
451
450
|
}
|
|
452
|
-
function
|
|
451
|
+
function sl(e, t, n) {
|
|
453
452
|
if (!W(e) || !n) return null;
|
|
454
453
|
const o = e.config;
|
|
455
454
|
return e.type === "detailTable" ? we(
|
|
456
455
|
o,
|
|
457
456
|
"detailColumns",
|
|
458
|
-
|
|
457
|
+
Pe(
|
|
459
458
|
o == null ? void 0 : o.detailColumns,
|
|
460
459
|
t,
|
|
461
460
|
(r) => me(r, "detail", n)
|
|
@@ -463,7 +462,7 @@ function al(e, t, n) {
|
|
|
463
462
|
) : we(
|
|
464
463
|
o,
|
|
465
464
|
"groupByColumns",
|
|
466
|
-
|
|
465
|
+
Pe(
|
|
467
466
|
o == null ? void 0 : o.groupByColumns,
|
|
468
467
|
t,
|
|
469
468
|
(r) => me(r, "groupby", n)
|
|
@@ -471,7 +470,7 @@ function al(e, t, n) {
|
|
|
471
470
|
) ?? we(
|
|
472
471
|
o,
|
|
473
472
|
"metricColumns",
|
|
474
|
-
|
|
473
|
+
Pe(
|
|
475
474
|
o == null ? void 0 : o.metricColumns,
|
|
476
475
|
t,
|
|
477
476
|
(r) => me(r, "metric", n)
|
|
@@ -482,7 +481,7 @@ function yi(e) {
|
|
|
482
481
|
var t, n, o, r, i, s;
|
|
483
482
|
return W(e) ? e.type === "detailTable" ? !!((n = (t = e.config) == null ? void 0 : t.detailColumns) != null && n.length) : !!((r = (o = e.config) == null ? void 0 : o.groupByColumns) != null && r.length || (s = (i = e.config) == null ? void 0 : i.metricColumns) != null && s.length) : !1;
|
|
484
483
|
}
|
|
485
|
-
function
|
|
484
|
+
function al(e, t) {
|
|
486
485
|
return yi(e) && !!t;
|
|
487
486
|
}
|
|
488
487
|
function me(e, t, n) {
|
|
@@ -574,7 +573,7 @@ function Je(e) {
|
|
|
574
573
|
columnKeyMap: e.columnKeyMap,
|
|
575
574
|
metricId: t.metricId,
|
|
576
575
|
metricAlias: t.metricAlias
|
|
577
|
-
}), i = o.length === 0 && t.metricId ===
|
|
576
|
+
}), i = o.length === 0 && t.metricId === Qe;
|
|
578
577
|
if (!(!r && !i))
|
|
579
578
|
return {
|
|
580
579
|
resultColumn: e.resultColumn,
|
|
@@ -719,7 +718,7 @@ function Fi(e) {
|
|
|
719
718
|
);
|
|
720
719
|
const s = /* @__PURE__ */ new Map();
|
|
721
720
|
(((c = n.config) == null ? void 0 : c.metricColumns) || []).forEach((l) => {
|
|
722
|
-
const { comparisonKind: u, metadata: d } =
|
|
721
|
+
const { comparisonKind: u, metadata: d } = tn(o, l);
|
|
723
722
|
if (u === "none") return;
|
|
724
723
|
const f = l.label || l.name, m = se(
|
|
725
724
|
l,
|
|
@@ -856,7 +855,7 @@ function ki(e) {
|
|
|
856
855
|
const t = (n = e == null ? void 0 : e.numberFormat) == null ? void 0 : n.style;
|
|
857
856
|
return t === void 0 || t === "decimal" || t === "currency";
|
|
858
857
|
}
|
|
859
|
-
function
|
|
858
|
+
function xi(e, t) {
|
|
860
859
|
const n = t == null ? void 0 : t.type;
|
|
861
860
|
if (n && n !== "none" && n !== "number")
|
|
862
861
|
return { currencyBindable: !1 };
|
|
@@ -870,7 +869,7 @@ function Pi(e, t) {
|
|
|
870
869
|
currencyBindable: Ie(a)
|
|
871
870
|
};
|
|
872
871
|
}
|
|
873
|
-
function
|
|
872
|
+
function Pi(e, t) {
|
|
874
873
|
const n = ye(t.format, {
|
|
875
874
|
preserveOmittedProperties: !0
|
|
876
875
|
}), o = re(t.dataType) === "number" ? { type: "number" } : void 0, r = n || o;
|
|
@@ -888,7 +887,7 @@ function Be(e, t = {}) {
|
|
|
888
887
|
kind: "column",
|
|
889
888
|
columnKey: t.resultColumnKey
|
|
890
889
|
} : void 0, f = ye(
|
|
891
|
-
|
|
890
|
+
Cr({ card: e, column: { kind: "sqlKpiValue" }, surface: "kpiValue" }).format,
|
|
892
891
|
{ preserveOmittedProperties: !0 }
|
|
893
892
|
);
|
|
894
893
|
return {
|
|
@@ -919,7 +918,7 @@ function vn(e, t, n) {
|
|
|
919
918
|
function Fn(e, t, n) {
|
|
920
919
|
return e.kind === "calculated" ? e.definition.format : vn(e.field, t, n);
|
|
921
920
|
}
|
|
922
|
-
function
|
|
921
|
+
function ll(e, t) {
|
|
923
922
|
const n = qt(t), o = (r, i) => Object.fromEntries(r.flatMap((s) => {
|
|
924
923
|
const a = i(s);
|
|
925
924
|
return a ? [[s.id, a]] : [];
|
|
@@ -930,13 +929,13 @@ function cl(e, t) {
|
|
|
930
929
|
};
|
|
931
930
|
}
|
|
932
931
|
function Sn(e, t = []) {
|
|
933
|
-
const n =
|
|
932
|
+
const n = Le(e);
|
|
934
933
|
if (n.status !== "ready") return [];
|
|
935
934
|
const { spec: o, presentation: r } = n.config, i = qt(t);
|
|
936
935
|
return o.measures.map((s) => {
|
|
937
936
|
var m;
|
|
938
|
-
const a = s.kind === "aggregate" ? i(s.field, o.source) : void 0, c =
|
|
939
|
-
return { measureId: s.id, label:
|
|
937
|
+
const a = s.kind === "aggregate" ? i(s.field, o.source) : void 0, c = Ir(r.measureFormats[s.id], Fn(s, o.source, i)), l = s.kind === "calculated" ? s.definition.dataType : ["MIN", "MAX"].includes(s.aggregate) ? ((m = s.field.derivedField) == null ? void 0 : m.dataType) ?? (a == null ? void 0 : a.resolvedField.dataType) ?? s.field.dataType : "number", u = re(l) === "number", d = s.kind === "calculated" || !!(a || s.field.derivedField || s.field.name === "*"), f = c && vr(c) ? c : !c && u && d ? { type: "number" } : void 0;
|
|
938
|
+
return { measureId: s.id, label: Fr(s, r), canonical: f };
|
|
940
939
|
});
|
|
941
940
|
}
|
|
942
941
|
function wi(e) {
|
|
@@ -945,7 +944,7 @@ function wi(e) {
|
|
|
945
944
|
}
|
|
946
945
|
function Tn(e) {
|
|
947
946
|
return new Set(
|
|
948
|
-
|
|
947
|
+
nn(e).flatMap(
|
|
949
948
|
(t) => (t.controlBindings || []).filter(Fe).map((n) => n.controlId)
|
|
950
949
|
)
|
|
951
950
|
);
|
|
@@ -1005,10 +1004,10 @@ function Ai(e, t = [], n) {
|
|
|
1005
1004
|
), m = e.type === "matrixTable" ? [] : e.type === "kpi" ? c.filter((C) => C.currencyBindable).flatMap(
|
|
1006
1005
|
(C) => C.target ? [C.target] : []
|
|
1007
1006
|
) : (o || !r ? [] : s).filter(
|
|
1008
|
-
(C) => (To(e.type) ?
|
|
1007
|
+
(C) => (To(e.type) ? xi(
|
|
1009
1008
|
C,
|
|
1010
1009
|
Oi(a, C)
|
|
1011
|
-
) :
|
|
1010
|
+
) : Pi(e, C)).currencyBindable
|
|
1012
1011
|
).map(
|
|
1013
1012
|
(C) => ({
|
|
1014
1013
|
kind: "metric",
|
|
@@ -1050,13 +1049,13 @@ function Ai(e, t = [], n) {
|
|
|
1050
1049
|
])
|
|
1051
1050
|
};
|
|
1052
1051
|
}
|
|
1053
|
-
function
|
|
1052
|
+
function cl(e, t) {
|
|
1054
1053
|
const n = Be(e, {
|
|
1055
1054
|
resultColumnKey: t
|
|
1056
1055
|
});
|
|
1057
1056
|
return n.currencyBindable ? n.target : void 0;
|
|
1058
1057
|
}
|
|
1059
|
-
function
|
|
1058
|
+
function ul(e) {
|
|
1060
1059
|
var t;
|
|
1061
1060
|
return (t = e.card.sql) != null && t.trim() ? { kind: "column", columnKey: e.columnKey } : e.metricId ? { kind: "metric", metricId: e.metricId } : void 0;
|
|
1062
1061
|
}
|
|
@@ -1075,7 +1074,7 @@ function Ei(e) {
|
|
|
1075
1074
|
return { kind: "matrix_measure", measureId: t.measureId };
|
|
1076
1075
|
}
|
|
1077
1076
|
function Vt(e) {
|
|
1078
|
-
const t =
|
|
1077
|
+
const t = Jt(e);
|
|
1079
1078
|
return typeof e == "string" && e === t ? t : void 0;
|
|
1080
1079
|
}
|
|
1081
1080
|
function Dn(e) {
|
|
@@ -1096,7 +1095,7 @@ function Dn(e) {
|
|
|
1096
1095
|
currencies: t
|
|
1097
1096
|
};
|
|
1098
1097
|
}
|
|
1099
|
-
function
|
|
1098
|
+
function dl(e) {
|
|
1100
1099
|
return "control" in Dn(e);
|
|
1101
1100
|
}
|
|
1102
1101
|
function Mn(e) {
|
|
@@ -1122,7 +1121,7 @@ function Mn(e) {
|
|
|
1122
1121
|
)
|
|
1123
1122
|
};
|
|
1124
1123
|
}
|
|
1125
|
-
function
|
|
1124
|
+
function fl(e) {
|
|
1126
1125
|
return Mn({
|
|
1127
1126
|
...e,
|
|
1128
1127
|
referencedControlIds: new Set(
|
|
@@ -1133,7 +1132,7 @@ function pl(e) {
|
|
|
1133
1132
|
)
|
|
1134
1133
|
});
|
|
1135
1134
|
}
|
|
1136
|
-
function
|
|
1135
|
+
function pl(e) {
|
|
1137
1136
|
var t;
|
|
1138
1137
|
return Mn({
|
|
1139
1138
|
...e,
|
|
@@ -1197,7 +1196,7 @@ function kn(e, t) {
|
|
|
1197
1196
|
}
|
|
1198
1197
|
};
|
|
1199
1198
|
}
|
|
1200
|
-
function
|
|
1199
|
+
function ml(e) {
|
|
1201
1200
|
const t = Vn(e);
|
|
1202
1201
|
return (e.bindings || []).flatMap((n) => {
|
|
1203
1202
|
const o = kn(n, t);
|
|
@@ -1217,7 +1216,7 @@ function Bi(e) {
|
|
|
1217
1216
|
if (!a || $(
|
|
1218
1217
|
a.presentationTarget
|
|
1219
1218
|
) !== n) continue;
|
|
1220
|
-
const l =
|
|
1219
|
+
const l = Jt(
|
|
1221
1220
|
(r = e.values) == null ? void 0 : r[a.control.id]
|
|
1222
1221
|
);
|
|
1223
1222
|
if (!(!l || !a.currencies.includes(l)))
|
|
@@ -1351,12 +1350,12 @@ function Li(e, t) {
|
|
|
1351
1350
|
controlBindings: Ni(e.controlBindings, t)
|
|
1352
1351
|
}) : "__none__";
|
|
1353
1352
|
}
|
|
1354
|
-
const ji = ["table", "detailTable"],
|
|
1353
|
+
const ji = ["table", "detailTable"], xt = (e) => ji.includes(e.type), zi = "calendar-context";
|
|
1355
1354
|
function Gi(e) {
|
|
1356
1355
|
const { id: t, label: n, field: o, ...r } = e;
|
|
1357
1356
|
return {
|
|
1358
1357
|
...r,
|
|
1359
|
-
field:
|
|
1358
|
+
field: Ze(
|
|
1360
1359
|
o
|
|
1361
1360
|
)
|
|
1362
1361
|
};
|
|
@@ -1371,7 +1370,7 @@ function Ve(e) {
|
|
|
1371
1370
|
groups: o.map((i) => Ve(i))
|
|
1372
1371
|
};
|
|
1373
1372
|
}
|
|
1374
|
-
function
|
|
1373
|
+
function Ze(e) {
|
|
1375
1374
|
var o, r;
|
|
1376
1375
|
const { label: t, ...n } = e;
|
|
1377
1376
|
return {
|
|
@@ -1380,7 +1379,7 @@ function Xe(e) {
|
|
|
1380
1379
|
calculatedFormula: {
|
|
1381
1380
|
...e.calculatedFormula,
|
|
1382
1381
|
inputFields: e.calculatedFormula.inputFields.map(
|
|
1383
|
-
|
|
1382
|
+
Ze
|
|
1384
1383
|
)
|
|
1385
1384
|
}
|
|
1386
1385
|
} : {},
|
|
@@ -1395,7 +1394,7 @@ function Xe(e) {
|
|
|
1395
1394
|
};
|
|
1396
1395
|
}
|
|
1397
1396
|
function Hi(e) {
|
|
1398
|
-
const t = (n) => n == null ? void 0 : n.map(
|
|
1397
|
+
const t = (n) => n == null ? void 0 : n.map(Ze);
|
|
1399
1398
|
return {
|
|
1400
1399
|
...e,
|
|
1401
1400
|
groupByColumns: t(e.groupByColumns),
|
|
@@ -1455,7 +1454,7 @@ function Wi(e, {
|
|
|
1455
1454
|
var D, C;
|
|
1456
1455
|
return (C = (D = e.queryConfig) == null ? void 0 : D.filters) == null ? void 0 : C.some((w) => w.filterColumnName === v.name);
|
|
1457
1456
|
}
|
|
1458
|
-
), g = (e == null ? void 0 : e.sql) || "", p =
|
|
1457
|
+
), g = (e == null ? void 0 : e.sql) || "", p = je((e == null ? void 0 : e.python) || ""), y = ["table", "detailTable", "matrixTable"].includes(
|
|
1459
1458
|
e.type
|
|
1460
1459
|
) ? "table" : e.type === "kpi" ? "kpi" : "chart", h = a || In(e.config, { cardType: e.type, dataSource: e.dataSource }), I = Do.includes(
|
|
1461
1460
|
e.type
|
|
@@ -1494,7 +1493,7 @@ function Wi(e, {
|
|
|
1494
1493
|
}
|
|
1495
1494
|
function Yi(e, t, n) {
|
|
1496
1495
|
var a, c, l;
|
|
1497
|
-
const o = Wi(e, t), r = _(o), i = ((a = n == null ? void 0 : n.resolvePaginationConfig) == null ? void 0 : a.call(n, r)) ?? e.paginationConfig, s =
|
|
1496
|
+
const o = Wi(e, t), r = _(o), i = ((a = n == null ? void 0 : n.resolvePaginationConfig) == null ? void 0 : a.call(n, r)) ?? e.paginationConfig, s = xt(e) && Se(e.config) || xt(e) && e.sql && ((l = (c = e.preferences) == null ? void 0 : c.tablePrefs) == null ? void 0 : l.enableDevModePagination);
|
|
1498
1497
|
return {
|
|
1499
1498
|
queryKey: [
|
|
1500
1499
|
...o,
|
|
@@ -1522,7 +1521,7 @@ function Ji(e, t, n, o) {
|
|
|
1522
1521
|
o
|
|
1523
1522
|
);
|
|
1524
1523
|
}
|
|
1525
|
-
function
|
|
1524
|
+
function xn(e) {
|
|
1526
1525
|
const t = {
|
|
1527
1526
|
...Or,
|
|
1528
1527
|
...e.presentation
|
|
@@ -1532,7 +1531,7 @@ function Pn(e) {
|
|
|
1532
1531
|
deltaColumnKeys: i,
|
|
1533
1532
|
percentChangeColumnKeys: s,
|
|
1534
1533
|
ratioColumnKeys: a
|
|
1535
|
-
} =
|
|
1534
|
+
} = on(e.comparisonMetadata), c = /* @__PURE__ */ new Set();
|
|
1536
1535
|
t.showComparison && (n === "difference" || n === "both") && i.forEach((f) => c.add(f)), t.showComparison && (n === "percent_change" || n === "both") && s.forEach((f) => c.add(f)), t.showComparison && n === "ratio" && a.forEach((f) => c.add(f));
|
|
1537
1536
|
const l = new Set(o);
|
|
1538
1537
|
t.showComparison || r.forEach((f) => l.add(f)), [i, s, a].forEach(
|
|
@@ -1585,9 +1584,9 @@ function Pn(e) {
|
|
|
1585
1584
|
columnPresentationOwners: d
|
|
1586
1585
|
};
|
|
1587
1586
|
}
|
|
1588
|
-
function
|
|
1587
|
+
function gl(e) {
|
|
1589
1588
|
var t, n;
|
|
1590
|
-
return
|
|
1589
|
+
return xn({
|
|
1591
1590
|
comparisonMetadata: e.comparisonMetadata,
|
|
1592
1591
|
presentation: (n = (t = e.card) == null ? void 0 : t.preferences) == null ? void 0 : n.comparisonPresentation,
|
|
1593
1592
|
resolveMetricName: ({ metricId: o, metricAlias: r }) => {
|
|
@@ -1601,7 +1600,7 @@ function yl(e) {
|
|
|
1601
1600
|
}
|
|
1602
1601
|
});
|
|
1603
1602
|
}
|
|
1604
|
-
function
|
|
1603
|
+
function yl(e) {
|
|
1605
1604
|
var n;
|
|
1606
1605
|
return (((n = e.card.config) == null ? void 0 : n.metricColumns) || []).filter(
|
|
1607
1606
|
(o) => {
|
|
@@ -1609,13 +1608,13 @@ function bl(e) {
|
|
|
1609
1608
|
return ((r = o.comparison) == null ? void 0 : r.mode) === "explicit";
|
|
1610
1609
|
}
|
|
1611
1610
|
).some(
|
|
1612
|
-
(o) => !
|
|
1611
|
+
(o) => !en(e.comparisonMetadata, o)
|
|
1613
1612
|
);
|
|
1614
1613
|
}
|
|
1615
|
-
function
|
|
1614
|
+
function Zi(e) {
|
|
1616
1615
|
return e.part === "base" && !!e.columnId;
|
|
1617
1616
|
}
|
|
1618
|
-
function
|
|
1617
|
+
function Xe(e) {
|
|
1619
1618
|
const t = e.config ?? {};
|
|
1620
1619
|
return e.type === "detailTable" ? [{ role: "detail", fields: t.detailColumns ?? [] }] : [
|
|
1621
1620
|
{ role: "groupby", fields: t.groupByColumns ?? [] },
|
|
@@ -1631,14 +1630,14 @@ function et(e, t) {
|
|
|
1631
1630
|
metricAlias: Q(e)
|
|
1632
1631
|
} : { kind: "dimension", role: t, fieldId: e.id };
|
|
1633
1632
|
}
|
|
1634
|
-
function
|
|
1633
|
+
function Pt(e) {
|
|
1635
1634
|
const t = /* @__PURE__ */ new Map();
|
|
1636
1635
|
for (const n of e) t.set(n, (t.get(n) ?? 0) + 1);
|
|
1637
1636
|
return t;
|
|
1638
1637
|
}
|
|
1639
|
-
function
|
|
1638
|
+
function Xi(e, t) {
|
|
1640
1639
|
var d, f;
|
|
1641
|
-
const n = [...t.keys], o = new Set(n), r = t.columnKeyMap, i =
|
|
1640
|
+
const n = [...t.keys], o = new Set(n), r = t.columnKeyMap, i = Xe(e).flatMap(
|
|
1642
1641
|
({ role: m, fields: g }) => g.flatMap((p) => {
|
|
1643
1642
|
const y = et(p, m);
|
|
1644
1643
|
return y ? [
|
|
@@ -1651,7 +1650,7 @@ function Zi(e, t) {
|
|
|
1651
1650
|
}
|
|
1652
1651
|
] : [];
|
|
1653
1652
|
})
|
|
1654
|
-
), s =
|
|
1653
|
+
), s = Pt(i.map((m) => m.columnId)), a = Pt(
|
|
1655
1654
|
i.flatMap(
|
|
1656
1655
|
(m) => m.outputKey ? [m.outputKey] : []
|
|
1657
1656
|
)
|
|
@@ -1690,7 +1689,7 @@ function Zi(e, t) {
|
|
|
1690
1689
|
if (!c.has(h))
|
|
1691
1690
|
continue;
|
|
1692
1691
|
} else {
|
|
1693
|
-
if (p.identity.metricId !==
|
|
1692
|
+
if (p.identity.metricId !== Qe)
|
|
1694
1693
|
continue;
|
|
1695
1694
|
c.has(h) || c.set(h, { columnId: h, identity: y, authorLabel: "Count" });
|
|
1696
1695
|
}
|
|
@@ -1732,7 +1731,7 @@ function es(e) {
|
|
|
1732
1731
|
}
|
|
1733
1732
|
return { entries: t, owners: n };
|
|
1734
1733
|
}
|
|
1735
|
-
function
|
|
1734
|
+
function bl(e) {
|
|
1736
1735
|
const t = /* @__PURE__ */ new Set();
|
|
1737
1736
|
for (const n of e ?? [])
|
|
1738
1737
|
if (n && typeof n == "object")
|
|
@@ -1749,12 +1748,12 @@ function ns(e, t, n, o) {
|
|
|
1749
1748
|
let r = [...t.keys], i = /* @__PURE__ */ new Map();
|
|
1750
1749
|
const s = t.comparisonMetadata;
|
|
1751
1750
|
if (n === "screen") {
|
|
1752
|
-
const f =
|
|
1751
|
+
const f = on(s);
|
|
1753
1752
|
r = r.filter((g) => !f.internalKeys.has(g));
|
|
1754
1753
|
const m = e.type === "table" ? (c = e.preferences) == null ? void 0 : c.comparisonPresentation : void 0;
|
|
1755
|
-
|
|
1754
|
+
sn(m) || (r = r.filter((g) => !f.comparisonColumnKeys.has(g)));
|
|
1756
1755
|
} else {
|
|
1757
|
-
const f =
|
|
1756
|
+
const f = xn({
|
|
1758
1757
|
comparisonMetadata: s,
|
|
1759
1758
|
presentation: (l = e.preferences) == null ? void 0 : l.comparisonPresentation,
|
|
1760
1759
|
resolveMetricName: o
|
|
@@ -1776,10 +1775,10 @@ function ns(e, t, n, o) {
|
|
|
1776
1775
|
function os(e, t, n) {
|
|
1777
1776
|
var r, i;
|
|
1778
1777
|
const o = /* @__PURE__ */ new Map();
|
|
1779
|
-
if (e.type !== "table" || !
|
|
1778
|
+
if (e.type !== "table" || !sn((r = e.preferences) == null ? void 0 : r.comparisonPresentation))
|
|
1780
1779
|
return o;
|
|
1781
1780
|
for (const s of ((i = e.config) == null ? void 0 : i.metricColumns) ?? []) {
|
|
1782
|
-
const { comparisonKind: a, metadata: c } =
|
|
1781
|
+
const { comparisonKind: a, metadata: c } = tn(
|
|
1783
1782
|
t.comparisonMetadata,
|
|
1784
1783
|
s
|
|
1785
1784
|
);
|
|
@@ -1799,7 +1798,7 @@ function os(e, t, n) {
|
|
|
1799
1798
|
return o;
|
|
1800
1799
|
}
|
|
1801
1800
|
function rs(e) {
|
|
1802
|
-
const t =
|
|
1801
|
+
const t = Xe(e);
|
|
1803
1802
|
return [
|
|
1804
1803
|
...t.filter((n) => n.role === "metric"),
|
|
1805
1804
|
...t.filter((n) => n.role !== "metric")
|
|
@@ -1824,12 +1823,12 @@ function is(e, t, n) {
|
|
|
1824
1823
|
function ss(e, t) {
|
|
1825
1824
|
return e ? "query" : t === "server" ? "page-only" : "browser";
|
|
1826
1825
|
}
|
|
1827
|
-
function
|
|
1826
|
+
function Pn(e, t) {
|
|
1828
1827
|
var n, o, r;
|
|
1829
1828
|
return !!t && ((r = (o = (n = e.preferences) == null ? void 0 : n.tablePrefs) == null ? void 0 : o.columnVisibility) == null ? void 0 : r[t]) === !1;
|
|
1830
1829
|
}
|
|
1831
1830
|
function as(e) {
|
|
1832
|
-
return e.type !== "table" && e.type !== "detailTable" ? "card-type" :
|
|
1831
|
+
return e.type !== "table" && e.type !== "detailTable" ? "card-type" : rn(e) ? void 0 : "author-disabled";
|
|
1833
1832
|
}
|
|
1834
1833
|
function _e(e, t) {
|
|
1835
1834
|
const n = [], o = /* @__PURE__ */ new Map();
|
|
@@ -1885,23 +1884,23 @@ function cs(e, t, n, o) {
|
|
|
1885
1884
|
...de(e.slice(i + 1), t, n)
|
|
1886
1885
|
];
|
|
1887
1886
|
}
|
|
1888
|
-
function
|
|
1887
|
+
function hl(e) {
|
|
1889
1888
|
if (oe(e) !== "config") return;
|
|
1890
1889
|
const t = /* @__PURE__ */ new Set();
|
|
1891
|
-
for (const { role: n, fields: o } of
|
|
1890
|
+
for (const { role: n, fields: o } of Xe(e))
|
|
1892
1891
|
for (const r of o) {
|
|
1893
1892
|
const i = et(r, n);
|
|
1894
1893
|
i && t.add(j(i));
|
|
1895
1894
|
}
|
|
1896
1895
|
return t;
|
|
1897
1896
|
}
|
|
1898
|
-
function
|
|
1899
|
-
const t =
|
|
1900
|
-
return (t == null ? void 0 : t.kind) === "metric" && t.metricId ===
|
|
1897
|
+
function Cl(e) {
|
|
1898
|
+
const t = an(e);
|
|
1899
|
+
return (t == null ? void 0 : t.kind) === "metric" && t.metricId === Qe;
|
|
1901
1900
|
}
|
|
1902
|
-
function
|
|
1901
|
+
function Il(e) {
|
|
1903
1902
|
var ut, dt, ft, pt, mt, gt, yt;
|
|
1904
|
-
const { card: t, result: n } = e, o = e.projection ?? "screen", r = oe(t) === "config", i = as(t), s = i === "card-type" ? void 0 : i === "author-disabled" ? (ut = e.settings) != null && ut.sort ? { sort: e.settings.sort } : void 0 : e.settings, a = ss(r, e.paginationMode), c = n.columnKeyMap, l = r ?
|
|
1903
|
+
const { card: t, result: n } = e, o = e.projection ?? "screen", r = oe(t) === "config", i = as(t), s = i === "card-type" ? void 0 : i === "author-disabled" ? (ut = e.settings) != null && ut.sort ? { sort: e.settings.sort } : void 0 : e.settings, a = ss(r, e.paginationMode), c = n.columnKeyMap, l = r ? Xi(t, n) : es(n), u = (b) => {
|
|
1905
1904
|
var S, V;
|
|
1906
1905
|
return b && ((V = (S = s == null ? void 0 : s.labels) == null ? void 0 : S[b]) == null ? void 0 : V.trim()) || void 0;
|
|
1907
1906
|
}, d = (b) => j({ kind: "metric", ...b }), { keys: f, exportLabels: m } = ns(
|
|
@@ -1913,7 +1912,7 @@ function vl(e) {
|
|
|
1913
1912
|
const S = d(b);
|
|
1914
1913
|
return u(l.entries.has(S) ? S : void 0) ?? ((V = l.entries.get(S)) == null ? void 0 : V.authorLabel);
|
|
1915
1914
|
}
|
|
1916
|
-
), g = (b) =>
|
|
1915
|
+
), g = (b) => Pn(t, b), p = (b) => {
|
|
1917
1916
|
const S = l.owners.get(b);
|
|
1918
1917
|
if (!S || i === "card-type") return;
|
|
1919
1918
|
const V = l.entries.get(S.columnId);
|
|
@@ -1941,7 +1940,7 @@ function vl(e) {
|
|
|
1941
1940
|
);
|
|
1942
1941
|
A = b.length || !s.sort.length ? b : void 0;
|
|
1943
1942
|
}
|
|
1944
|
-
const M =
|
|
1943
|
+
const M = Tr(
|
|
1945
1944
|
s ? {
|
|
1946
1945
|
order: (ft = s.order) == null ? void 0 : ft.filter(
|
|
1947
1946
|
(b) => v.has(b)
|
|
@@ -1961,14 +1960,14 @@ function vl(e) {
|
|
|
1961
1960
|
)
|
|
1962
1961
|
)
|
|
1963
1962
|
} : void 0
|
|
1964
|
-
), F = M == null ? void 0 : M.order, k = F ? cs(y, p, F, n.columns) : y, O = F ? [...k, ...f.filter(g)] : f,
|
|
1963
|
+
), F = M == null ? void 0 : M.order, k = F ? cs(y, p, F, n.columns) : y, O = F ? [...k, ...f.filter(g)] : f, P = _e(k, p).flatMap(
|
|
1965
1964
|
(b) => b.columnId ? [b.columnId] : []
|
|
1966
1965
|
), T = new Set((M == null ? void 0 : M.hidden) ?? []);
|
|
1967
|
-
|
|
1968
|
-
const
|
|
1966
|
+
P.length && P.every((b) => T.has(b)) && T.delete(P[0]);
|
|
1967
|
+
const x = o === "screen" ? os(t, n, f) : /* @__PURE__ */ new Map(), E = (b, S) => {
|
|
1969
1968
|
const V = u(S == null ? void 0 : S.columnId);
|
|
1970
1969
|
if ((S == null ? void 0 : S.part) === "base" && V) return V;
|
|
1971
|
-
const K =
|
|
1970
|
+
const K = x.get(b);
|
|
1972
1971
|
if (K)
|
|
1973
1972
|
return fi(
|
|
1974
1973
|
((S == null ? void 0 : S.part) === "comparison" ? V : void 0) ?? (K.metric.label || K.metric.name),
|
|
@@ -1976,7 +1975,7 @@ function vl(e) {
|
|
|
1976
1975
|
);
|
|
1977
1976
|
const J = m.get(b);
|
|
1978
1977
|
if (J) return J;
|
|
1979
|
-
const
|
|
1978
|
+
const Z = Ii({
|
|
1980
1979
|
columnId: b,
|
|
1981
1980
|
card: t,
|
|
1982
1981
|
columnKeyMap: c,
|
|
@@ -1985,7 +1984,7 @@ function vl(e) {
|
|
|
1985
1984
|
// as dates (its temporal activation covers group columns only).
|
|
1986
1985
|
metricLabelOverride: (S == null ? void 0 : S.part) === "pivot-member" ? V : void 0
|
|
1987
1986
|
});
|
|
1988
|
-
return
|
|
1987
|
+
return Z || (hn(b, t, c) ?? b);
|
|
1989
1988
|
}, R = O.map((b) => {
|
|
1990
1989
|
var K;
|
|
1991
1990
|
const S = p(b), V = (S == null ? void 0 : S.part) ?? ((K = l.owners.get(b)) == null ? void 0 : K.part) ?? "base";
|
|
@@ -1995,7 +1994,7 @@ function vl(e) {
|
|
|
1995
1994
|
part: V,
|
|
1996
1995
|
visible: !g(b) && !(S && T.has(S.columnId)),
|
|
1997
1996
|
label: E(b, S),
|
|
1998
|
-
resizable: !i &&
|
|
1997
|
+
resizable: !i && Zi({ part: V, columnId: S == null ? void 0 : S.columnId })
|
|
1999
1998
|
};
|
|
2000
1999
|
}), z = Object.fromEntries(
|
|
2001
2000
|
R.map((b) => [b.outputKey, b.label])
|
|
@@ -2012,21 +2011,21 @@ function vl(e) {
|
|
|
2012
2011
|
var V;
|
|
2013
2012
|
const S = (V = l.entries.get(b.columnId)) == null ? void 0 : V.baseKey;
|
|
2014
2013
|
return S && y.includes(S) ? [{ outputKey: S, desc: b.direction === "desc" }] : [];
|
|
2015
|
-
}), ct = !i &&
|
|
2014
|
+
}), ct = !i && Dr(M);
|
|
2016
2015
|
let ue;
|
|
2017
2016
|
if (i)
|
|
2018
2017
|
ue = { available: !1, reason: i };
|
|
2019
|
-
else if (!
|
|
2018
|
+
else if (!P.length)
|
|
2020
2019
|
ue = { available: !1, reason: "no-addressable-columns" };
|
|
2021
2020
|
else {
|
|
2022
|
-
const b = new Set(F ?? []), S =
|
|
2021
|
+
const b = new Set(F ?? []), S = P.filter(
|
|
2023
2022
|
(V) => !T.has(V)
|
|
2024
2023
|
).length;
|
|
2025
2024
|
ue = {
|
|
2026
2025
|
available: !0,
|
|
2027
2026
|
canReset: ct,
|
|
2028
|
-
items:
|
|
2029
|
-
const K = l.entries.get(V), J = T.has(V),
|
|
2027
|
+
items: P.map((V) => {
|
|
2028
|
+
const K = l.entries.get(V), J = T.has(V), Z = ao.get(V);
|
|
2030
2029
|
return {
|
|
2031
2030
|
columnId: V,
|
|
2032
2031
|
label: u(V) ?? K.authorLabel,
|
|
@@ -2034,7 +2033,7 @@ function vl(e) {
|
|
|
2034
2033
|
hidden: J,
|
|
2035
2034
|
isNew: F !== void 0 && !b.has(V),
|
|
2036
2035
|
canHide: !J && S > 1,
|
|
2037
|
-
...
|
|
2036
|
+
...Z ? { sort: Z } : {}
|
|
2038
2037
|
};
|
|
2039
2038
|
})
|
|
2040
2039
|
};
|
|
@@ -2054,12 +2053,12 @@ function vl(e) {
|
|
|
2054
2053
|
author: { order: I }
|
|
2055
2054
|
};
|
|
2056
2055
|
}
|
|
2057
|
-
function
|
|
2056
|
+
function vl(e, t) {
|
|
2058
2057
|
var n;
|
|
2059
2058
|
return (n = wn(e, t)) == null ? void 0 : n.field;
|
|
2060
2059
|
}
|
|
2061
2060
|
function wn(e, t) {
|
|
2062
|
-
const n =
|
|
2061
|
+
const n = an(t), o = e.config;
|
|
2063
2062
|
if (!n || !o) return;
|
|
2064
2063
|
let r = [], i;
|
|
2065
2064
|
if (n.kind === "dimension")
|
|
@@ -2080,7 +2079,7 @@ function us(e, t) {
|
|
|
2080
2079
|
const i = wn(e, r.columnId);
|
|
2081
2080
|
if (!i) return [];
|
|
2082
2081
|
const s = Nr(i.field, i.role);
|
|
2083
|
-
return
|
|
2082
|
+
return Pn(e, s) ? [] : [
|
|
2084
2083
|
{
|
|
2085
2084
|
...i.field,
|
|
2086
2085
|
alias: s,
|
|
@@ -2130,12 +2129,12 @@ function tt(e, t) {
|
|
|
2130
2129
|
...i.map((s) => ({ ...s, role: "metric" }))
|
|
2131
2130
|
].filter((s) => !!s.id);
|
|
2132
2131
|
}
|
|
2133
|
-
function
|
|
2132
|
+
function Fl(e, t) {
|
|
2134
2133
|
return t ? !ae(e).some(
|
|
2135
2134
|
(n) => t[n] === !1
|
|
2136
2135
|
) : !0;
|
|
2137
2136
|
}
|
|
2138
|
-
function
|
|
2137
|
+
function Sl(e, t) {
|
|
2139
2138
|
for (const n of ae(e))
|
|
2140
2139
|
if (t != null && t[n])
|
|
2141
2140
|
return n;
|
|
@@ -2160,7 +2159,7 @@ function fs(e, t, n) {
|
|
|
2160
2159
|
(r) => o.some((i) => i.has(r))
|
|
2161
2160
|
);
|
|
2162
2161
|
}
|
|
2163
|
-
function
|
|
2162
|
+
function Tl({
|
|
2164
2163
|
card: e,
|
|
2165
2164
|
effectiveCardConfig: t,
|
|
2166
2165
|
visibleColumnIds: n,
|
|
@@ -2182,7 +2181,7 @@ function Dl({
|
|
|
2182
2181
|
])
|
|
2183
2182
|
);
|
|
2184
2183
|
}
|
|
2185
|
-
function
|
|
2184
|
+
function Dl(e) {
|
|
2186
2185
|
var t, n, o, r, i, s;
|
|
2187
2186
|
return nt(e) ? {
|
|
2188
2187
|
...e,
|
|
@@ -2236,7 +2235,7 @@ function ps(e, t, n) {
|
|
|
2236
2235
|
columns: a
|
|
2237
2236
|
} : void 0;
|
|
2238
2237
|
}
|
|
2239
|
-
function
|
|
2238
|
+
function Ml(e) {
|
|
2240
2239
|
var t, n, o, r, i, s;
|
|
2241
2240
|
return {
|
|
2242
2241
|
...e,
|
|
@@ -2263,7 +2262,7 @@ function ys(e) {
|
|
|
2263
2262
|
var t, n, o;
|
|
2264
2263
|
return !!((t = e.sql) != null && t.trim() && Re(e) && ((o = (n = e.preferences) == null ? void 0 : n.tablePrefs) != null && o.enableDevModePagination));
|
|
2265
2264
|
}
|
|
2266
|
-
function
|
|
2265
|
+
function Vl(e) {
|
|
2267
2266
|
return e === "export-full-with-cap" ? ms : gs;
|
|
2268
2267
|
}
|
|
2269
2268
|
function bs({
|
|
@@ -2280,7 +2279,7 @@ function hs(e) {
|
|
|
2280
2279
|
var t, n, o;
|
|
2281
2280
|
return ((t = e.paginationConfig) == null ? void 0 : t.pageSize) || ((o = (n = e.preferences) == null ? void 0 : n.tablePrefs) == null ? void 0 : o.pageSize) || 50;
|
|
2282
2281
|
}
|
|
2283
|
-
function
|
|
2282
|
+
function kl({
|
|
2284
2283
|
current: e,
|
|
2285
2284
|
defaultPageSize: t,
|
|
2286
2285
|
queryInputIdentity: n
|
|
@@ -2296,7 +2295,7 @@ function Pl({
|
|
|
2296
2295
|
function xl(e, t, n) {
|
|
2297
2296
|
return (e == null ? void 0 : e.queryInputIdentity) === n && e.page === t.page && e.pageSize === t.pageSize;
|
|
2298
2297
|
}
|
|
2299
|
-
function
|
|
2298
|
+
function Pl(e, t) {
|
|
2300
2299
|
return !e || !t || e.page === t.page && e.pageSize === t.pageSize ? e : {
|
|
2301
2300
|
...e,
|
|
2302
2301
|
page: t.page,
|
|
@@ -2342,7 +2341,7 @@ function Fs(e, t) {
|
|
|
2342
2341
|
selectedEntities: []
|
|
2343
2342
|
};
|
|
2344
2343
|
}
|
|
2345
|
-
function
|
|
2344
|
+
function wl(e, t, n = {}) {
|
|
2346
2345
|
const o = vs(e, n);
|
|
2347
2346
|
if (!o)
|
|
2348
2347
|
throw new Error("No connection ID found for card");
|
|
@@ -2396,7 +2395,7 @@ function Ts(e) {
|
|
|
2396
2395
|
if (p.derivedField) return p.derivedField.dataType;
|
|
2397
2396
|
const h = l().refs.filter((v) => v.field.name === p.name && Oe(v.field.source ?? e.spec.source, p.source ?? e.spec.source));
|
|
2398
2397
|
return h.length > 1 ? u("The selected field is ambiguous in the authorized Matrix field catalog.", y) : re(((I = h[0]) == null ? void 0 : I.field.dataType) ?? p.dataType);
|
|
2399
|
-
}, f = (p, y) => Mo(p, y.target, (h) => d(h, y.controlId)), m =
|
|
2398
|
+
}, f = (p, y) => Mo(p, y.target, (h) => d(h, y.controlId)), m = pr.safeParse(t);
|
|
2400
2399
|
if (!m.success) return u(m.error.message);
|
|
2401
2400
|
t = m.data;
|
|
2402
2401
|
const g = [...r, ...i].map((p) => {
|
|
@@ -2415,9 +2414,9 @@ function Ts(e) {
|
|
|
2415
2414
|
const C = `${p.target}:${y}`;
|
|
2416
2415
|
s.has(C) && I("Multiple controls cannot replace the same Matrix target."), s.add(C);
|
|
2417
2416
|
const w = (F) => {
|
|
2418
|
-
const k = (l().byId.get(F.id) ?? []).filter((
|
|
2417
|
+
const k = (l().byId.get(F.id) ?? []).filter((P) => !F.source || Oe(F.source, P.field.source ?? e.spec.source));
|
|
2419
2418
|
if (k.length !== 1) return I(k.length ? "The selected field is ambiguous in the authorized Matrix field catalog." : "The selected field is not in the authorized Matrix field catalog.");
|
|
2420
|
-
const O =
|
|
2419
|
+
const O = gr.safeParse(k[0].field);
|
|
2421
2420
|
return O.success ? O.data : I(O.error.message);
|
|
2422
2421
|
}, A = p.target === "config_metric_selector" || p.target === "config_field_selector" ? p.mapping[h] : void 0, M = A && typeof A == "object" && "kind" in A && A.kind === "matrix_instance" ? A.id : void 0;
|
|
2423
2422
|
if (v) {
|
|
@@ -2426,15 +2425,15 @@ function Ts(e) {
|
|
|
2426
2425
|
(T) => T.id === M && T.kind === "aggregate"
|
|
2427
2426
|
);
|
|
2428
2427
|
M !== void 0 && !F && I("The selected Matrix aggregate measure is no longer available.");
|
|
2429
|
-
const k = p.target === "config_metric_selector" && !F ? Vo({ binding: p, selectedValue: h }) : void 0, O = ((F == null ? void 0 : F.kind) === "aggregate" ? F.aggregate : k == null ? void 0 : k.aggregate) ?? (p.target === "config_aggregation" ? bt({ binding: p, selectedValue: h }) : void 0),
|
|
2430
|
-
|
|
2428
|
+
const k = p.target === "config_metric_selector" && !F ? Vo({ binding: p, selectedValue: h }) : void 0, O = ((F == null ? void 0 : F.kind) === "aggregate" ? F.aggregate : k == null ? void 0 : k.aggregate) ?? (p.target === "config_aggregation" ? bt({ binding: p, selectedValue: h }) : void 0), P = O === void 0 ? void 0 : mr.safeParse(O);
|
|
2429
|
+
P && !P.success && I("This aggregation is not supported by Matrix."), t = {
|
|
2431
2430
|
...t,
|
|
2432
2431
|
measures: t.measures.map(
|
|
2433
2432
|
(T) => T.id !== y || T.kind !== "aggregate" ? T : {
|
|
2434
2433
|
...T,
|
|
2435
2434
|
...k ? { field: w(k) } : {},
|
|
2436
2435
|
...(F == null ? void 0 : F.kind) === "aggregate" ? { field: F.field } : {},
|
|
2437
|
-
aggregate:
|
|
2436
|
+
aggregate: P != null && P.success ? P.data : T.aggregate
|
|
2438
2437
|
}
|
|
2439
2438
|
)
|
|
2440
2439
|
};
|
|
@@ -2445,15 +2444,15 @@ function Ts(e) {
|
|
|
2445
2444
|
M !== void 0 && !F && I("The selected Matrix level is no longer available.");
|
|
2446
2445
|
const k = p.target === "config_field_selector" && !F ? ko({ binding: p, selectedValue: h }) : void 0, O = p.target === "config_grain" ? bt({ binding: p, selectedValue: h }) : F ? F.grain : k == null ? void 0 : k.granularity;
|
|
2447
2446
|
O !== void 0 && !Ss.has(O) && I("This time grain is not supported by Matrix.");
|
|
2448
|
-
const
|
|
2449
|
-
if (
|
|
2450
|
-
const E = (F == null ? void 0 : F.field) ?? (k ? w(k) :
|
|
2451
|
-
return z && !Ct(R) && I("A time grain requires a temporal Matrix level."), { ...
|
|
2447
|
+
const P = (T) => T.map((x) => {
|
|
2448
|
+
if (x.id !== y) return x;
|
|
2449
|
+
const E = (F == null ? void 0 : F.field) ?? (k ? w(k) : x.field), R = d(E, p.controlId), z = O ?? (k && Ct(R) ? x.grain : void 0);
|
|
2450
|
+
return z && !Ct(R) && I("A time grain requires a temporal Matrix level."), { ...x, field: E, grain: z };
|
|
2452
2451
|
});
|
|
2453
2452
|
t = {
|
|
2454
2453
|
...t,
|
|
2455
|
-
rows:
|
|
2456
|
-
columns:
|
|
2454
|
+
rows: P(t.rows),
|
|
2455
|
+
columns: P(t.columns)
|
|
2457
2456
|
};
|
|
2458
2457
|
}
|
|
2459
2458
|
}
|
|
@@ -2461,19 +2460,19 @@ function Ts(e) {
|
|
|
2461
2460
|
const h = t.measures.find((v) => v.id === p);
|
|
2462
2461
|
if (!h || h.kind !== "aggregate") continue;
|
|
2463
2462
|
const I = d(h.field, y);
|
|
2464
|
-
|
|
2463
|
+
xo(I).some((v) => v.value === h.aggregate) || u(`Aggregation '${h.aggregate}' is not eligible for this Matrix field datatype.`, y);
|
|
2465
2464
|
}
|
|
2466
2465
|
try {
|
|
2467
|
-
return
|
|
2466
|
+
return Po(m.data, t);
|
|
2468
2467
|
} catch (p) {
|
|
2469
|
-
if (p instanceof
|
|
2468
|
+
if (p instanceof hr) return u(p.message);
|
|
2470
2469
|
throw p;
|
|
2471
2470
|
}
|
|
2472
2471
|
}
|
|
2473
2472
|
function En(e, t) {
|
|
2474
2473
|
const n = [], o = (r) => {
|
|
2475
2474
|
if (r.source) {
|
|
2476
|
-
const i =
|
|
2475
|
+
const i = yr.safeParse(r.source);
|
|
2477
2476
|
if (i.success) n.push(i.data);
|
|
2478
2477
|
else if (t) throw i.error;
|
|
2479
2478
|
}
|
|
@@ -2488,11 +2487,11 @@ function En(e, t) {
|
|
|
2488
2487
|
return n;
|
|
2489
2488
|
}
|
|
2490
2489
|
function Ds(e, t = [], n = []) {
|
|
2491
|
-
return
|
|
2490
|
+
return Wt([...jt(e), ...En(t), ...n]);
|
|
2492
2491
|
}
|
|
2493
2492
|
function Ms(e, t = {}) {
|
|
2494
2493
|
const n = t.controlBindings ?? [], o = Nt(t.controlDefinitions ?? [], t.cardControlDefinitions ?? []), r = new Map(n.filter((i) => i.target === "config_field_selector" || i.target === "config_metric_selector").map((i) => [i, Lt({ binding: i, definitions: o, controlValues: t.controlValues })]));
|
|
2495
|
-
return
|
|
2494
|
+
return Wt([...jt(e), ...En(n, r)]);
|
|
2496
2495
|
}
|
|
2497
2496
|
function Vs(e, t) {
|
|
2498
2497
|
return {
|
|
@@ -2506,16 +2505,16 @@ function Vs(e, t) {
|
|
|
2506
2505
|
};
|
|
2507
2506
|
}
|
|
2508
2507
|
function ks(e, t) {
|
|
2509
|
-
return Ne(e) ?
|
|
2508
|
+
return Ne(e) ? xs(e, t) : e.config ?? {};
|
|
2510
2509
|
}
|
|
2511
|
-
function
|
|
2510
|
+
function xs(e, t) {
|
|
2512
2511
|
var o;
|
|
2513
2512
|
const n = (o = t == null ? void 0 : t.steps[t.steps.length - 1]) == null ? void 0 : o.toField;
|
|
2514
2513
|
return n ? di(e.config ?? {}, n, {
|
|
2515
2514
|
sortPolicy: "retargetDimensionSort"
|
|
2516
2515
|
}) : e.config ?? {};
|
|
2517
2516
|
}
|
|
2518
|
-
function
|
|
2517
|
+
function Ps(e, t) {
|
|
2519
2518
|
const n = (e == null ? void 0 : e.steps) ?? [];
|
|
2520
2519
|
if (n.length !== 0)
|
|
2521
2520
|
return {
|
|
@@ -2554,7 +2553,7 @@ function rt(e) {
|
|
|
2554
2553
|
function ws(e) {
|
|
2555
2554
|
return e === "exclude" ? "not in" : "in";
|
|
2556
2555
|
}
|
|
2557
|
-
function
|
|
2556
|
+
function Ol(e) {
|
|
2558
2557
|
var n;
|
|
2559
2558
|
const t = (n = e.liveValue) == null ? void 0 : n.operation;
|
|
2560
2559
|
return ot(t) ? rt(t) : e.pendingMode ?? e.authoredMode;
|
|
@@ -2588,13 +2587,13 @@ function Es(e, t) {
|
|
|
2588
2587
|
function Bs(e) {
|
|
2589
2588
|
return ot(e.operation) ? [rt(e.operation)] : [];
|
|
2590
2589
|
}
|
|
2591
|
-
function
|
|
2592
|
-
const t =
|
|
2590
|
+
function Al(e) {
|
|
2591
|
+
const t = Zt(e), o = q(t).issues.length ? t : Ba(t);
|
|
2593
2592
|
return ci(Os(o)).dashboard;
|
|
2594
2593
|
}
|
|
2595
2594
|
function it(e, t) {
|
|
2596
2595
|
const n = {};
|
|
2597
|
-
for (const o of
|
|
2596
|
+
for (const o of nn(e)) {
|
|
2598
2597
|
if (!o.inlineFilters || o.inlineFilters.length === 0)
|
|
2599
2598
|
continue;
|
|
2600
2599
|
const r = [];
|
|
@@ -2626,7 +2625,7 @@ function ve(e, t, n) {
|
|
|
2626
2625
|
r[t.target] = { ...r[t.target], [t.inputId]: n }, o[t.scope] = r;
|
|
2627
2626
|
}
|
|
2628
2627
|
function Bn(e, t, n) {
|
|
2629
|
-
const o =
|
|
2628
|
+
const o = zt(
|
|
2630
2629
|
e,
|
|
2631
2630
|
t.controlOverrides,
|
|
2632
2631
|
{ hasExplicitRuntimeOverrides: t.controlOverrides !== void 0 }
|
|
@@ -2646,7 +2645,7 @@ function st(e, t, n) {
|
|
|
2646
2645
|
n
|
|
2647
2646
|
);
|
|
2648
2647
|
}
|
|
2649
|
-
function
|
|
2648
|
+
function El(e, t, n) {
|
|
2650
2649
|
return _n(e, t, n);
|
|
2651
2650
|
}
|
|
2652
2651
|
function _n(e, t, n) {
|
|
@@ -2661,7 +2660,7 @@ function _n(e, t, n) {
|
|
|
2661
2660
|
return i.reduce(
|
|
2662
2661
|
(a, c) => {
|
|
2663
2662
|
var l;
|
|
2664
|
-
return
|
|
2663
|
+
return Ge(
|
|
2665
2664
|
a,
|
|
2666
2665
|
_o({
|
|
2667
2666
|
dashboard: e,
|
|
@@ -2715,7 +2714,7 @@ function _s(e, t) {
|
|
|
2715
2714
|
}
|
|
2716
2715
|
function Kn(e, t, n) {
|
|
2717
2716
|
if (!Object.keys(n).length) return t;
|
|
2718
|
-
const o =
|
|
2717
|
+
const o = zt(
|
|
2719
2718
|
e,
|
|
2720
2719
|
t,
|
|
2721
2720
|
{ hasExplicitRuntimeOverrides: t !== void 0 }
|
|
@@ -2751,13 +2750,13 @@ function Ks(e, t, n) {
|
|
|
2751
2750
|
for (const [s, a] of Object.entries(n)) {
|
|
2752
2751
|
const c = o.get(s), l = (a ?? []).filter((u) => {
|
|
2753
2752
|
const d = c == null ? void 0 : c.get(u.filterId);
|
|
2754
|
-
return d ?
|
|
2753
|
+
return d ? ze(d, u) : !1;
|
|
2755
2754
|
});
|
|
2756
2755
|
De(l, i[s] ?? []) || (r = !0), i[s] = l;
|
|
2757
2756
|
}
|
|
2758
2757
|
return r ? i : void 0;
|
|
2759
2758
|
}
|
|
2760
|
-
function
|
|
2759
|
+
function Bl(e) {
|
|
2761
2760
|
const { dashboard: t, capture: n, calendar: o } = e, r = so(t, n.filterValues, {
|
|
2762
2761
|
calendar: o
|
|
2763
2762
|
}), i = n.dashboardInputExecutionSnapshot, s = n.controlValues, a = {
|
|
@@ -2767,7 +2766,7 @@ function _l(e) {
|
|
|
2767
2766
|
adHocFilterValues: r.adHocFilterValues,
|
|
2768
2767
|
controlOverrides: s,
|
|
2769
2768
|
// The snapshot replays exactly over the listed values.
|
|
2770
|
-
dashboardInputValues: i ?
|
|
2769
|
+
dashboardInputValues: i ? Ge(
|
|
2771
2770
|
r.slots,
|
|
2772
2771
|
qo({
|
|
2773
2772
|
dashboard: t,
|
|
@@ -2787,7 +2786,7 @@ function _l(e) {
|
|
|
2787
2786
|
...c != null && c.length ? { transientContexts: c } : {}
|
|
2788
2787
|
};
|
|
2789
2788
|
}
|
|
2790
|
-
function
|
|
2789
|
+
function _l(e, t) {
|
|
2791
2790
|
const { controlContractOverrides: n, cardId: o } = t;
|
|
2792
2791
|
if (!n || (n.controlDefinitions !== void 0 && (e.controls = n.controlDefinitions), typeof o != "string" || o.trim().length === 0))
|
|
2793
2792
|
return e;
|
|
@@ -2804,7 +2803,7 @@ function Ns(e, t) {
|
|
|
2804
2803
|
var d;
|
|
2805
2804
|
if (l.status !== "set" || l.value.kind !== "filter") return !0;
|
|
2806
2805
|
const u = (d = n.findFilterInput({ inputId: c })) == null ? void 0 : d.input.filter;
|
|
2807
|
-
return !u ||
|
|
2806
|
+
return !u || ze(u, l.value.filterValue) ? !0 : (o = !0, !1);
|
|
2808
2807
|
});
|
|
2809
2808
|
return Object.fromEntries(a);
|
|
2810
2809
|
}, i = {
|
|
@@ -2827,7 +2826,7 @@ function le(e, t) {
|
|
|
2827
2826
|
var n;
|
|
2828
2827
|
return !!t && !!((n = e.sheets) != null && n.some((o) => o.id === t));
|
|
2829
2828
|
}
|
|
2830
|
-
function
|
|
2829
|
+
function Rl(e) {
|
|
2831
2830
|
const { dashboard: t, host: n, calendar: o } = e, r = so(t, n.filterValues, {
|
|
2832
2831
|
calendar: o
|
|
2833
2832
|
}).slots, i = n.controlValues, s = le(t, n.selectedSheetId) ? n.selectedSheetId : Ls(t);
|
|
@@ -2849,19 +2848,19 @@ function Kl(e) {
|
|
|
2849
2848
|
}
|
|
2850
2849
|
function qn(e) {
|
|
2851
2850
|
const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
2852
|
-
for (const r of
|
|
2851
|
+
for (const r of He(e))
|
|
2853
2852
|
r.kind === "filter" && r.filter ? t.set(r.id, r.filter) : r.kind === "control" && n.add(r.id), r.compatibility && o.set(r.id, r.compatibility);
|
|
2854
2853
|
return { filterInputs: t, controlInputIds: n, compatibility: o };
|
|
2855
2854
|
}
|
|
2856
2855
|
function Nn(e, t) {
|
|
2857
|
-
const n =
|
|
2856
|
+
const n = Yt(t);
|
|
2858
2857
|
if (!n) return;
|
|
2859
2858
|
const o = ie(e, n);
|
|
2860
2859
|
return o ? Lo(o, e) ? "applies" : "not-eligible" : "removed";
|
|
2861
2860
|
}
|
|
2862
|
-
function
|
|
2861
|
+
function Kl(e, t) {
|
|
2863
2862
|
const n = Nn(e, t);
|
|
2864
|
-
return n ? n === "applies" :
|
|
2863
|
+
return n ? n === "applies" : He(e).some(
|
|
2865
2864
|
(o) => o.id === t
|
|
2866
2865
|
);
|
|
2867
2866
|
}
|
|
@@ -2900,7 +2899,7 @@ function Ln(e, t, n, o) {
|
|
|
2900
2899
|
});
|
|
2901
2900
|
continue;
|
|
2902
2901
|
}
|
|
2903
|
-
if (y && m.status === "set" && m.value.kind === "filter" && !
|
|
2902
|
+
if (y && m.status === "set" && m.value.kind === "filter" && !ze(y, m.value.filterValue)) {
|
|
2904
2903
|
o.push({
|
|
2905
2904
|
kind: "setting-no-longer-applies",
|
|
2906
2905
|
target: "input",
|
|
@@ -2944,11 +2943,11 @@ function B(e, t, n, o = {}) {
|
|
|
2944
2943
|
), i = {};
|
|
2945
2944
|
for (const [s, a] of Object.entries(t ?? {})) {
|
|
2946
2945
|
const c = r.get(s);
|
|
2947
|
-
if (c &&
|
|
2948
|
-
|
|
2946
|
+
if (c && rn(c)) {
|
|
2947
|
+
Mr(a) || (i[s] = a);
|
|
2949
2948
|
continue;
|
|
2950
2949
|
}
|
|
2951
|
-
if (c && o.sessionSorts &&
|
|
2950
|
+
if (c && o.sessionSorts && Vr(c)) {
|
|
2952
2951
|
a.sort && (i[s] = { sort: a.sort });
|
|
2953
2952
|
continue;
|
|
2954
2953
|
}
|
|
@@ -3013,7 +3012,7 @@ function G(e, t) {
|
|
|
3013
3012
|
};
|
|
3014
3013
|
}
|
|
3015
3014
|
function wt(e, t, n, o) {
|
|
3016
|
-
const { dashboard: r, baseline: i } = e, s = [], a =
|
|
3015
|
+
const { dashboard: r, baseline: i } = e, s = [], a = ln(t.state, We), c = a.ok ? a.value : {};
|
|
3017
3016
|
for (const g of a.ok ? a.issues : [])
|
|
3018
3017
|
s.push(zs(g));
|
|
3019
3018
|
const l = qn(r), u = Rn(
|
|
@@ -3038,7 +3037,7 @@ function wt(e, t, n, o) {
|
|
|
3038
3037
|
u.controlValues
|
|
3039
3038
|
),
|
|
3040
3039
|
// Overlay, never replacement: the bookmark's slots over the host's.
|
|
3041
|
-
dashboardInputValues:
|
|
3040
|
+
dashboardInputValues: Ge(
|
|
3042
3041
|
i.hostInputValues,
|
|
3043
3042
|
u.runtime
|
|
3044
3043
|
),
|
|
@@ -3107,7 +3106,7 @@ function Ot(e, t, n) {
|
|
|
3107
3106
|
)
|
|
3108
3107
|
};
|
|
3109
3108
|
}
|
|
3110
|
-
function
|
|
3109
|
+
function ql(e) {
|
|
3111
3110
|
const { dashboard: t, baseline: n, event: o } = e, r = e.rememberedTableSettings;
|
|
3112
3111
|
switch (o.kind) {
|
|
3113
3112
|
case "initial-load":
|
|
@@ -3198,7 +3197,7 @@ function Nl(e) {
|
|
|
3198
3197
|
}
|
|
3199
3198
|
}
|
|
3200
3199
|
}
|
|
3201
|
-
function
|
|
3200
|
+
function Nl(e) {
|
|
3202
3201
|
const { dashboard: t, calendar: n } = e, o = e.hostControlValues, r = {
|
|
3203
3202
|
...e.baseline,
|
|
3204
3203
|
controlOverrides: o,
|
|
@@ -3214,9 +3213,9 @@ function Ll(e) {
|
|
|
3214
3213
|
};
|
|
3215
3214
|
let i = o;
|
|
3216
3215
|
if (e.appliedBookmark) {
|
|
3217
|
-
const c =
|
|
3216
|
+
const c = ln(
|
|
3218
3217
|
e.appliedBookmark.state,
|
|
3219
|
-
|
|
3218
|
+
We
|
|
3220
3219
|
), l = qn(t), u = Rn(
|
|
3221
3220
|
l.compatibility,
|
|
3222
3221
|
Ln(
|
|
@@ -3242,7 +3241,7 @@ function Ll(e) {
|
|
|
3242
3241
|
}
|
|
3243
3242
|
};
|
|
3244
3243
|
}
|
|
3245
|
-
function
|
|
3244
|
+
function Ll(e, t, n) {
|
|
3246
3245
|
const o = jn(n.values);
|
|
3247
3246
|
return {
|
|
3248
3247
|
...o,
|
|
@@ -3275,14 +3274,14 @@ function Hn(e, t) {
|
|
|
3275
3274
|
o.has(i) || pe(s.slot) || ve(r, s, { status: "cleared" });
|
|
3276
3275
|
return Te(r);
|
|
3277
3276
|
}
|
|
3278
|
-
function
|
|
3277
|
+
function jl(e) {
|
|
3279
3278
|
const { dashboard: t, baseline: n, current: o } = e, r = Hn(n.materializedInputs, o.inputs), i = B(
|
|
3280
3279
|
t,
|
|
3281
3280
|
o.tableSettings,
|
|
3282
3281
|
void 0
|
|
3283
3282
|
), s = o.selectedSheetId && o.selectedSheetId !== n.selectedSheetId && le(t, o.selectedSheetId) ? o.selectedSheetId : void 0;
|
|
3284
3283
|
return {
|
|
3285
|
-
version:
|
|
3284
|
+
version: We,
|
|
3286
3285
|
...s ? { selectedSheetId: s } : {},
|
|
3287
3286
|
...ne(r).length ? { inputs: r } : {},
|
|
3288
3287
|
...Object.keys(i).length ? { tableSettings: i } : {}
|
|
@@ -3290,20 +3289,20 @@ function zl(e) {
|
|
|
3290
3289
|
}
|
|
3291
3290
|
function Gs(e) {
|
|
3292
3291
|
const t = /* @__PURE__ */ new Map();
|
|
3293
|
-
for (const n of
|
|
3292
|
+
for (const n of He(e))
|
|
3294
3293
|
n.label && t.set(n.id, n.label);
|
|
3295
3294
|
return t;
|
|
3296
3295
|
}
|
|
3297
3296
|
function Hs(e, t, n) {
|
|
3298
3297
|
var r, i;
|
|
3299
|
-
const o =
|
|
3298
|
+
const o = Yt(n);
|
|
3300
3299
|
if (o) {
|
|
3301
3300
|
const s = (i = (r = ie(e, o)) == null ? void 0 : r.title) == null ? void 0 : i.trim();
|
|
3302
3301
|
return s ? `Selection in ${s}` : "Selection";
|
|
3303
3302
|
}
|
|
3304
3303
|
return t.get(n) ?? n;
|
|
3305
3304
|
}
|
|
3306
|
-
function
|
|
3305
|
+
function zl(e) {
|
|
3307
3306
|
var l, u;
|
|
3308
3307
|
const { dashboard: t, opened: n, current: o } = e, r = [], i = Gs(t), s = /* @__PURE__ */ new Set();
|
|
3309
3308
|
for (const d of ne(
|
|
@@ -3403,7 +3402,7 @@ function $s(e) {
|
|
|
3403
3402
|
}
|
|
3404
3403
|
} : { inputs: e.inputs, fieldCandidates: t, resolution: { status: "none" } };
|
|
3405
3404
|
}
|
|
3406
|
-
function
|
|
3405
|
+
function Gl(e) {
|
|
3407
3406
|
var n, o;
|
|
3408
3407
|
const t = {
|
|
3409
3408
|
ownerCardCount: 0,
|
|
@@ -3460,7 +3459,7 @@ function $n(e, t) {
|
|
|
3460
3459
|
) : e;
|
|
3461
3460
|
}
|
|
3462
3461
|
function Un(e) {
|
|
3463
|
-
return typeof e.allowMinutePrecision == "boolean" ? e.allowMinutePrecision :
|
|
3462
|
+
return typeof e.allowMinutePrecision == "boolean" ? e.allowMinutePrecision : $e(
|
|
3464
3463
|
e.dashboard,
|
|
3465
3464
|
e.semanticExecutionPayload
|
|
3466
3465
|
).allEligibleTargetsAreDateTime;
|
|
@@ -3479,7 +3478,7 @@ function Qn(e) {
|
|
|
3479
3478
|
...n,
|
|
3480
3479
|
filterId: t.id
|
|
3481
3480
|
};
|
|
3482
|
-
const i = n, s = i.temporalPrecision === "minute" || ge(i.relativeMeta), a = !r && s, c = i.operation === "is null" || i.operation === "is not null" ? [] : a ? $n(i.values, o) : i.values, l = r ||
|
|
3481
|
+
const i = n, s = i.temporalPrecision === "minute" || ge(i.relativeMeta) === "minute", a = !r && s, c = i.operation === "is null" || i.operation === "is not null" ? [] : a ? $n(i.values, o) : i.values, l = r || ge(i.relativeMeta) !== "minute" ? i.relativeMeta : void 0, u = r && i.temporalPrecision === "minute" ? i.temporalPrecision : void 0, {
|
|
3483
3482
|
relativeMeta: d,
|
|
3484
3483
|
temporalPrecision: f,
|
|
3485
3484
|
values: m,
|
|
@@ -3518,7 +3517,7 @@ function Wn(e) {
|
|
|
3518
3517
|
return null;
|
|
3519
3518
|
const a = n, c = Go(
|
|
3520
3519
|
o.dataType
|
|
3521
|
-
), l = s && c, u = a.temporalPrecision === "minute" || ge(a.relativeMeta), d = l && a.temporalPrecision === "minute" ? a.temporalPrecision : void 0, f = l ||
|
|
3520
|
+
), l = s && c, u = a.temporalPrecision === "minute" || ge(a.relativeMeta) === "minute", d = l && a.temporalPrecision === "minute" ? a.temporalPrecision : void 0, f = l || ge(a.relativeMeta) !== "minute" ? a.relativeMeta : void 0, m = !l && u;
|
|
3522
3521
|
return {
|
|
3523
3522
|
filterId: t.id,
|
|
3524
3523
|
dateOwner: "global_date",
|
|
@@ -3553,7 +3552,7 @@ function Wn(e) {
|
|
|
3553
3552
|
function N(e) {
|
|
3554
3553
|
return typeof e == "string" ? e.trim() : "";
|
|
3555
3554
|
}
|
|
3556
|
-
function
|
|
3555
|
+
function Zs(e) {
|
|
3557
3556
|
var t;
|
|
3558
3557
|
return (((t = e.semanticContext) == null ? void 0 : t.selectedEntities) || []).filter((n) => typeof n == "object" && n !== null).filter((n) => n.type === "dataset").map((n) => {
|
|
3559
3558
|
var o;
|
|
@@ -3564,11 +3563,11 @@ function Xs(e) {
|
|
|
3564
3563
|
};
|
|
3565
3564
|
}).filter((n) => n.domainId && n.datasetName);
|
|
3566
3565
|
}
|
|
3567
|
-
function
|
|
3566
|
+
function Xs(e) {
|
|
3568
3567
|
var c, l, u, d, f;
|
|
3569
3568
|
if (ee(e) || (c = e.sql) != null && c.trim())
|
|
3570
3569
|
return null;
|
|
3571
|
-
const t =
|
|
3570
|
+
const t = Zs(e), n = N((l = e.semanticContext) == null ? void 0 : l.semanticDomainId), o = N((u = e.fieldMeta) == null ? void 0 : u.entityId), r = N((d = e.fieldMeta) == null ? void 0 : d.entityName), i = N((f = e.fieldMeta) == null ? void 0 : f.entityType) === "dataset", s = t.find(
|
|
3572
3571
|
(m) => o && m.selectedEntityId === o
|
|
3573
3572
|
);
|
|
3574
3573
|
if (s)
|
|
@@ -3586,7 +3585,7 @@ function ea(e) {
|
|
|
3586
3585
|
const { filter: t, semanticExecutionPayload: n } = e;
|
|
3587
3586
|
if (!n)
|
|
3588
3587
|
return null;
|
|
3589
|
-
const o =
|
|
3588
|
+
const o = Xs(t);
|
|
3590
3589
|
return o && ((i = (r = n.domainsById[o.domainId]) == null ? void 0 : r.datasetsByName[o.datasetName]) == null ? void 0 : i.primaryDateField) || null;
|
|
3591
3590
|
}
|
|
3592
3591
|
function Yn(e) {
|
|
@@ -3595,7 +3594,7 @@ function Yn(e) {
|
|
|
3595
3594
|
(n) => n.filterId !== t.id
|
|
3596
3595
|
) : e.filterValues;
|
|
3597
3596
|
}
|
|
3598
|
-
function
|
|
3597
|
+
function Hl(e) {
|
|
3599
3598
|
const t = U(e.filters), n = Yn({
|
|
3600
3599
|
filters: e.filters,
|
|
3601
3600
|
filterValues: e.filterValues
|
|
@@ -3623,7 +3622,7 @@ function ta(e) {
|
|
|
3623
3622
|
(d) => d.filterId === t.id
|
|
3624
3623
|
) : void 0, o = t ? e.cardFilterValues.filter(
|
|
3625
3624
|
(d) => d.filterId !== t.id
|
|
3626
|
-
) : e.cardFilterValues, r = e.resolvedPrimaryDateField ??
|
|
3625
|
+
) : e.cardFilterValues, r = e.resolvedPrimaryDateField ?? Gt({
|
|
3627
3626
|
card: e.card,
|
|
3628
3627
|
cardConfig: e.cardConfig,
|
|
3629
3628
|
resolvedFields: e.resolvedFields,
|
|
@@ -3660,7 +3659,7 @@ function ta(e) {
|
|
|
3660
3659
|
dateComparisonPlan: l
|
|
3661
3660
|
};
|
|
3662
3661
|
}
|
|
3663
|
-
function
|
|
3662
|
+
function $l(e) {
|
|
3664
3663
|
const t = U(e.filters), n = Un(e), o = t ? e.filterValues.find(
|
|
3665
3664
|
(s) => s.filterId === t.id
|
|
3666
3665
|
) : void 0, r = Yn(e);
|
|
@@ -3680,21 +3679,21 @@ function Ul(e) {
|
|
|
3680
3679
|
}
|
|
3681
3680
|
class na extends Error {
|
|
3682
3681
|
}
|
|
3683
|
-
function
|
|
3682
|
+
function Ul(e, t) {
|
|
3684
3683
|
const n = new Map((e ? H(e) : []).map(({ card: o }) => [o.id, o]));
|
|
3685
3684
|
return t && n.set(t.id, t), [...n.values()].flatMap((o) => {
|
|
3686
|
-
const r =
|
|
3685
|
+
const r = Le(o);
|
|
3687
3686
|
return r.status === "ready" ? Ds(r.config.spec, o.controlBindings) : [];
|
|
3688
3687
|
});
|
|
3689
3688
|
}
|
|
3690
3689
|
function oa(e, t, n) {
|
|
3691
|
-
const o =
|
|
3690
|
+
const o = Ho(e);
|
|
3692
3691
|
if (!o) throw new Error("Matrix card definition is required.");
|
|
3693
3692
|
const r = n && Ts({
|
|
3694
3693
|
...n,
|
|
3695
3694
|
spec: o.spec,
|
|
3696
3695
|
catalog: t.map((u) => ({ ...u, id: u.resolvedField.id }))
|
|
3697
|
-
}), i = r ? { ...o, spec: r.spec } : o, s =
|
|
3696
|
+
}), i = r ? { ...o, spec: r.spec } : o, s = $o(t), a = Uo(t), c = (u) => {
|
|
3698
3697
|
const d = a(u, i.spec.source);
|
|
3699
3698
|
if (!(!d && u.derivedField)) {
|
|
3700
3699
|
if (!d) throw new na(`Matrix field metadata is unavailable: ${u.name}`);
|
|
@@ -3723,7 +3722,7 @@ function ra(e) {
|
|
|
3723
3722
|
const t = e.filter(Boolean);
|
|
3724
3723
|
if (t.length !== 0)
|
|
3725
3724
|
return t.length === 1 ? t[0] : {
|
|
3726
|
-
id:
|
|
3725
|
+
id: Qo(),
|
|
3727
3726
|
logicalOperator: "AND",
|
|
3728
3727
|
negate: !1,
|
|
3729
3728
|
conditions: [],
|
|
@@ -3752,9 +3751,9 @@ function ia(e) {
|
|
|
3752
3751
|
function sa(e, t, n = {}) {
|
|
3753
3752
|
const o = e.metricColumns || [];
|
|
3754
3753
|
if (o.length === 0) return e;
|
|
3755
|
-
const r =
|
|
3754
|
+
const r = Wo.includes(
|
|
3756
3755
|
t
|
|
3757
|
-
), i =
|
|
3756
|
+
), i = Yo.includes(
|
|
3758
3757
|
t
|
|
3759
3758
|
), s = (l) => {
|
|
3760
3759
|
var u;
|
|
@@ -3770,7 +3769,7 @@ function sa(e, t, n = {}) {
|
|
|
3770
3769
|
const c = o.map(
|
|
3771
3770
|
(l) => {
|
|
3772
3771
|
var f;
|
|
3773
|
-
const u =
|
|
3772
|
+
const u = kr(l);
|
|
3774
3773
|
if (u === "none")
|
|
3775
3774
|
return l;
|
|
3776
3775
|
let d = l;
|
|
@@ -3785,16 +3784,16 @@ function sa(e, t, n = {}) {
|
|
|
3785
3784
|
metricColumns: c
|
|
3786
3785
|
} : e;
|
|
3787
3786
|
}
|
|
3788
|
-
function
|
|
3789
|
-
return Jn(
|
|
3787
|
+
function Ql(e, t = {}) {
|
|
3788
|
+
return Jn(Zn(e, t));
|
|
3790
3789
|
}
|
|
3791
3790
|
function Jn(e) {
|
|
3792
3791
|
return ra([e.authored, e.drill, e.selections]);
|
|
3793
3792
|
}
|
|
3794
|
-
function
|
|
3793
|
+
function Zn(e, t = {}) {
|
|
3795
3794
|
return {
|
|
3796
|
-
authored: t.includeAuthoredFilters === !1 ? void 0 :
|
|
3797
|
-
drill:
|
|
3795
|
+
authored: t.includeAuthoredFilters === !1 ? void 0 : Jo(e),
|
|
3796
|
+
drill: Ps(t.drill, e.id),
|
|
3798
3797
|
selections: Rr(t.selections ?? [])
|
|
3799
3798
|
};
|
|
3800
3799
|
}
|
|
@@ -3804,11 +3803,11 @@ function aa(e, t, n) {
|
|
|
3804
3803
|
{ ...o, filters: n },
|
|
3805
3804
|
e.type,
|
|
3806
3805
|
// A data variable's card keeps its own period comparison (P3b-03).
|
|
3807
|
-
{ keepsPeriodComparison:
|
|
3806
|
+
{ keepsPeriodComparison: xr(e) }
|
|
3808
3807
|
) : o;
|
|
3809
3808
|
}
|
|
3810
3809
|
function la(e) {
|
|
3811
|
-
const t =
|
|
3810
|
+
const t = Zo(e);
|
|
3812
3811
|
return {
|
|
3813
3812
|
contextMode: t,
|
|
3814
3813
|
shouldApplyDashboardFilters: !t || t === "full"
|
|
@@ -3819,10 +3818,10 @@ function ca(e) {
|
|
|
3819
3818
|
...t.map((r) => r.id),
|
|
3820
3819
|
...n.map((r) => r.id)
|
|
3821
3820
|
]);
|
|
3822
|
-
return
|
|
3821
|
+
return Xn(
|
|
3823
3822
|
e.card,
|
|
3824
3823
|
{
|
|
3825
|
-
controlValues:
|
|
3824
|
+
controlValues: Ht({
|
|
3826
3825
|
relevantControlIds: o,
|
|
3827
3826
|
dashboardValues: e.dashboardControlValues,
|
|
3828
3827
|
cardValues: e.cardControlValues
|
|
@@ -3834,7 +3833,7 @@ function ca(e) {
|
|
|
3834
3833
|
e.presentationControlIds
|
|
3835
3834
|
);
|
|
3836
3835
|
}
|
|
3837
|
-
function
|
|
3836
|
+
function Xn(e, t, n) {
|
|
3838
3837
|
const r = t.controlBindings.filter(
|
|
3839
3838
|
(f) => !Fe(f)
|
|
3840
3839
|
), i = new Set(
|
|
@@ -3857,7 +3856,7 @@ function Zn(e, t, n) {
|
|
|
3857
3856
|
(f) => l.has(f.controlId)
|
|
3858
3857
|
);
|
|
3859
3858
|
return {
|
|
3860
|
-
controlValues:
|
|
3859
|
+
controlValues: Ht({
|
|
3861
3860
|
relevantControlIds: l,
|
|
3862
3861
|
dashboardValues: t.controlValues
|
|
3863
3862
|
}),
|
|
@@ -3885,7 +3884,7 @@ function ua({
|
|
|
3885
3884
|
const m = Tn(t);
|
|
3886
3885
|
for (const F of e.controlBindings || [])
|
|
3887
3886
|
Fe(F) && m.add(F.controlId);
|
|
3888
|
-
const { shouldApplyDashboardFilters: g } = la(n), p = d != null && d.inputs.length ? d : void 0, y =
|
|
3887
|
+
const { shouldApplyDashboardFilters: g } = la(n), p = d != null && d.inputs.length ? d : void 0, y = Zn(e, {
|
|
3889
3888
|
includeAuthoredFilters: f,
|
|
3890
3889
|
// Blocked and skipped conditions are already projected away, so a
|
|
3891
3890
|
// selection can only ever narrow this card on its own fields. Carried
|
|
@@ -3901,12 +3900,12 @@ function ua({
|
|
|
3901
3900
|
), D = us({ ...e, config: v }, r) ?? v, C = In(D, {
|
|
3902
3901
|
cardType: e.type,
|
|
3903
3902
|
dataSource: e.dataSource,
|
|
3904
|
-
temporalResultOwner:
|
|
3903
|
+
temporalResultOwner: $t({
|
|
3905
3904
|
hasExecutableConfig: Se(D, e.type),
|
|
3906
3905
|
sql: e.sql,
|
|
3907
|
-
normalizedPython:
|
|
3906
|
+
normalizedPython: je(e.python || "")
|
|
3908
3907
|
})
|
|
3909
|
-
}) || D, w = ia(I) || "", A = p ?
|
|
3908
|
+
}) || D, w = ia(I) || "", A = p ? Xn(
|
|
3910
3909
|
e,
|
|
3911
3910
|
{
|
|
3912
3911
|
controlValues: p.controlValues,
|
|
@@ -3987,7 +3986,7 @@ function ma({
|
|
|
3987
3986
|
return e.activeFilters;
|
|
3988
3987
|
const n = new Set(
|
|
3989
3988
|
e.inputs.flatMap(
|
|
3990
|
-
(o) => o.kind === "filter" &&
|
|
3989
|
+
(o) => o.kind === "filter" && cn(o) ? [o.filter.id] : []
|
|
3991
3990
|
)
|
|
3992
3991
|
);
|
|
3993
3992
|
return e.activeFilters.filter(
|
|
@@ -4031,7 +4030,7 @@ function Ke(e, t) {
|
|
|
4031
4030
|
(u) => !i.has(u.filterId)
|
|
4032
4031
|
), c = s.filter(
|
|
4033
4032
|
(u) => i.has(u.filterId)
|
|
4034
|
-
), l =
|
|
4033
|
+
), l = er({
|
|
4035
4034
|
card: e,
|
|
4036
4035
|
inputs: o,
|
|
4037
4036
|
resolvedInputs: t.dashboardInputContext.resolvedInputs,
|
|
@@ -4067,7 +4066,7 @@ function ya(e, t) {
|
|
|
4067
4066
|
return n.resolvedInputs.flatMap((i) => {
|
|
4068
4067
|
if (!i.missingRequiredValue) return [];
|
|
4069
4068
|
const s = r.get(i.id);
|
|
4070
|
-
return s ? s.kind === "filter" && (!e.shouldApplyDashboardFilters && !
|
|
4069
|
+
return s ? s.kind === "filter" && (!e.shouldApplyDashboardFilters && !cn(s) || o.has(s.id)) ? [] : [i.label] : [];
|
|
4071
4070
|
});
|
|
4072
4071
|
}
|
|
4073
4072
|
function ba({
|
|
@@ -4157,7 +4156,7 @@ function no(e, t, n) {
|
|
|
4157
4156
|
}, compiledFilters: o };
|
|
4158
4157
|
}
|
|
4159
4158
|
function ha(e, t, n) {
|
|
4160
|
-
const o =
|
|
4159
|
+
const o = tr(e), r = no(e, t, {
|
|
4161
4160
|
resolvedPrimaryDateField: n.resolvedPrimaryDateField,
|
|
4162
4161
|
timezone: n.calendarContext.tz,
|
|
4163
4162
|
allowMinutePrecision: n.allowGlobalDateMinutePrecision
|
|
@@ -4173,7 +4172,7 @@ function ha(e, t, n) {
|
|
|
4173
4172
|
r.queryContext,
|
|
4174
4173
|
n.calendarContext,
|
|
4175
4174
|
{ resolvePaginationConfig: n.resolvePaginationConfig }
|
|
4176
|
-
), f = t.queryRelevantConfig, m =
|
|
4175
|
+
), f = t.queryRelevantConfig, m = je(e.python || ""), g = $t({
|
|
4177
4176
|
hasExecutableConfig: Se(f, e.type),
|
|
4178
4177
|
sql: e.sql,
|
|
4179
4178
|
normalizedPython: m
|
|
@@ -4210,7 +4209,7 @@ function ha(e, t, n) {
|
|
|
4210
4209
|
};
|
|
4211
4210
|
}
|
|
4212
4211
|
const Bt = [], Ca = [], Ia = {};
|
|
4213
|
-
function
|
|
4212
|
+
function Wl(e, t) {
|
|
4214
4213
|
return {
|
|
4215
4214
|
sheetId: e.sheetId,
|
|
4216
4215
|
sectionId: e.sectionId,
|
|
@@ -4227,11 +4226,11 @@ function va({
|
|
|
4227
4226
|
dashboardRuntimeValues: o,
|
|
4228
4227
|
calendar: r
|
|
4229
4228
|
}) {
|
|
4230
|
-
const i =
|
|
4229
|
+
const i = Ut({
|
|
4231
4230
|
dashboard: t,
|
|
4232
4231
|
dashboardInputValues: o.dashboardInputValues,
|
|
4233
4232
|
transientContexts: void 0
|
|
4234
|
-
}) ?
|
|
4233
|
+
}) ? Ue({
|
|
4235
4234
|
transientContexts: void 0,
|
|
4236
4235
|
dashboard: t,
|
|
4237
4236
|
sheetId: n.sheetId,
|
|
@@ -4279,7 +4278,7 @@ function Fa(e, t) {
|
|
|
4279
4278
|
controls: Array.from(n.values())
|
|
4280
4279
|
};
|
|
4281
4280
|
}
|
|
4282
|
-
function
|
|
4281
|
+
function Yl({
|
|
4283
4282
|
card: e,
|
|
4284
4283
|
place: t,
|
|
4285
4284
|
source: n
|
|
@@ -4294,7 +4293,7 @@ function Jl({
|
|
|
4294
4293
|
function Sa(e, t, n) {
|
|
4295
4294
|
return {
|
|
4296
4295
|
calendarContext: n ?? wr,
|
|
4297
|
-
allowGlobalDateMinutePrecision:
|
|
4296
|
+
allowGlobalDateMinutePrecision: $e(
|
|
4298
4297
|
e,
|
|
4299
4298
|
t
|
|
4300
4299
|
).allEligibleTargetsAreDateTime,
|
|
@@ -4302,7 +4301,7 @@ function Sa(e, t, n) {
|
|
|
4302
4301
|
globalCacheConfig: e.globalCacheConfig
|
|
4303
4302
|
};
|
|
4304
4303
|
}
|
|
4305
|
-
function
|
|
4304
|
+
function Jl(e, t) {
|
|
4306
4305
|
return io(
|
|
4307
4306
|
e,
|
|
4308
4307
|
t,
|
|
@@ -4335,7 +4334,7 @@ function Da({
|
|
|
4335
4334
|
var D;
|
|
4336
4335
|
let v;
|
|
4337
4336
|
try {
|
|
4338
|
-
const C =
|
|
4337
|
+
const C = Le(h);
|
|
4339
4338
|
if (C.status === "invalid") throw C.error;
|
|
4340
4339
|
const w = qe(
|
|
4341
4340
|
h,
|
|
@@ -4353,8 +4352,8 @@ function Da({
|
|
|
4353
4352
|
context: v
|
|
4354
4353
|
};
|
|
4355
4354
|
const A = Ms(C.config.spec, v), M = r.filter(
|
|
4356
|
-
(
|
|
4357
|
-
(E) => Oe(E,
|
|
4355
|
+
(x) => x.field.source && A.some(
|
|
4356
|
+
(E) => Oe(E, x.field.source)
|
|
4358
4357
|
)
|
|
4359
4358
|
), F = oa(h, M, v), { params: k } = w, O = k.dashboardInputContext;
|
|
4360
4359
|
F.config = {
|
|
@@ -4378,15 +4377,15 @@ function Da({
|
|
|
4378
4377
|
M
|
|
4379
4378
|
)
|
|
4380
4379
|
};
|
|
4381
|
-
const
|
|
4380
|
+
const P = {
|
|
4382
4381
|
...h,
|
|
4383
4382
|
config: { matrix: F.config }
|
|
4384
|
-
}, T = qe(
|
|
4383
|
+
}, T = qe(P, I, n, !1);
|
|
4385
4384
|
return {
|
|
4386
4385
|
status: "ready",
|
|
4387
4386
|
value: {
|
|
4388
4387
|
assembled: {
|
|
4389
|
-
card:
|
|
4388
|
+
card: P,
|
|
4390
4389
|
context: { ...T.context, resolvedDateFields: F.fields },
|
|
4391
4390
|
inputContext: T.inputContext
|
|
4392
4391
|
},
|
|
@@ -4415,40 +4414,40 @@ function Da({
|
|
|
4415
4414
|
s,
|
|
4416
4415
|
o,
|
|
4417
4416
|
n.calendar
|
|
4418
|
-
), m = u.context.filterCompilationInput, g =
|
|
4417
|
+
), m = u.context.filterCompilationInput, g = nr(s);
|
|
4419
4418
|
try {
|
|
4420
4419
|
const h = Ke(u.card, m), I = d && g && h.status === "ready" && h.filterValues.some((w) => w.filterId === g.id);
|
|
4421
4420
|
let v = f.allowGlobalDateMinutePrecision;
|
|
4422
4421
|
if (I) {
|
|
4423
4422
|
const w = (p = m.dashboardInputContext) == null ? void 0 : p.inputs.find(
|
|
4424
4423
|
(T) => T.kind === "filter" && T.filter.id === g.id
|
|
4425
|
-
), M =
|
|
4426
|
-
({ card: T, sheet:
|
|
4424
|
+
), M = or(s, g).filter(
|
|
4425
|
+
({ card: T, sheet: x }) => !w || Pr(w, {
|
|
4427
4426
|
cardId: T.id,
|
|
4428
|
-
sheetId:
|
|
4429
|
-
sheetKind:
|
|
4427
|
+
sheetId: x.id,
|
|
4428
|
+
sheetKind: Qt(x) ? "document" : "dashboard"
|
|
4430
4429
|
})
|
|
4431
|
-
).map(({ card: T, sheet:
|
|
4430
|
+
).map(({ card: T, sheet: x }) => ({
|
|
4432
4431
|
card: T,
|
|
4433
|
-
value: T.id === a ? l : c(T, { kind: "sheet", sheetId:
|
|
4432
|
+
value: T.id === a ? l : c(T, { kind: "sheet", sheetId: x.id })
|
|
4434
4433
|
})), F = new Map(
|
|
4435
|
-
M.map(({ card: T, value:
|
|
4434
|
+
M.map(({ card: T, value: x }) => [
|
|
4436
4435
|
T.id,
|
|
4437
|
-
|
|
4436
|
+
x.status === "ready" ? x.value.assembled.card : null
|
|
4438
4437
|
])
|
|
4439
4438
|
), k = new Map(
|
|
4440
|
-
M.map(({ card: T, value:
|
|
4439
|
+
M.map(({ card: T, value: x }) => {
|
|
4441
4440
|
var E;
|
|
4442
4441
|
return [
|
|
4443
4442
|
T.id,
|
|
4444
|
-
|
|
4443
|
+
x.status === "ready" ? (E = x.value.matrix) == null ? void 0 : E.fields : void 0
|
|
4445
4444
|
];
|
|
4446
4445
|
})
|
|
4447
4446
|
), O = M.flatMap(
|
|
4448
|
-
({ card: T, value:
|
|
4449
|
-
const E = T.id, R =
|
|
4447
|
+
({ card: T, value: x }) => {
|
|
4448
|
+
const E = T.id, R = x.status === "ready" ? x.value.assembled.context : x.context;
|
|
4450
4449
|
if (!R) return [E];
|
|
4451
|
-
const z =
|
|
4450
|
+
const z = x.status === "ready" ? x.value.assembled.card : T;
|
|
4452
4451
|
try {
|
|
4453
4452
|
const Y = Ke(
|
|
4454
4453
|
z,
|
|
@@ -4459,7 +4458,7 @@ function Da({
|
|
|
4459
4458
|
return F.set(E, null), [E];
|
|
4460
4459
|
}
|
|
4461
4460
|
}
|
|
4462
|
-
),
|
|
4461
|
+
), P = $e(
|
|
4463
4462
|
s,
|
|
4464
4463
|
o,
|
|
4465
4464
|
g,
|
|
@@ -4467,16 +4466,16 @@ function Da({
|
|
|
4467
4466
|
k,
|
|
4468
4467
|
O
|
|
4469
4468
|
);
|
|
4470
|
-
if ((y =
|
|
4469
|
+
if ((y = P.unresolvedCardIds) != null && y.length)
|
|
4471
4470
|
return {
|
|
4472
4471
|
status: "blocked",
|
|
4473
4472
|
cardId: a,
|
|
4474
4473
|
mappingDispositions: [],
|
|
4475
4474
|
reason: "coverage",
|
|
4476
4475
|
missingRequiredLabels: [],
|
|
4477
|
-
message: `Date precision requires field metadata and valid inputs for: ${
|
|
4476
|
+
message: `Date precision requires field metadata and valid inputs for: ${P.unresolvedCardIds.join(", ")}.`
|
|
4478
4477
|
};
|
|
4479
|
-
v =
|
|
4478
|
+
v = P.allEligibleTargetsAreDateTime;
|
|
4480
4479
|
}
|
|
4481
4480
|
const D = io(u, f, v);
|
|
4482
4481
|
if (D.status === "blocked")
|
|
@@ -4561,11 +4560,11 @@ function oo(e, t) {
|
|
|
4561
4560
|
}
|
|
4562
4561
|
function Va(e, t, n, o, r) {
|
|
4563
4562
|
var l, u;
|
|
4564
|
-
const { dashboard: i } = n, s = oo(i, e.id), a = s ? void 0 : n.transientContexts, c =
|
|
4563
|
+
const { dashboard: i } = n, s = oo(i, e.id), a = s ? void 0 : n.transientContexts, c = Ut({
|
|
4565
4564
|
dashboard: i,
|
|
4566
4565
|
dashboardInputValues: o.dashboardInputValues,
|
|
4567
4566
|
transientContexts: a
|
|
4568
|
-
}) ?
|
|
4567
|
+
}) ? Ue({
|
|
4569
4568
|
transientContexts: a,
|
|
4570
4569
|
dashboard: i,
|
|
4571
4570
|
sheetId: t,
|
|
@@ -4591,7 +4590,7 @@ function Va(e, t, n, o, r) {
|
|
|
4591
4590
|
};
|
|
4592
4591
|
}
|
|
4593
4592
|
function ro({ card: e, context: t }, n) {
|
|
4594
|
-
return
|
|
4593
|
+
return Gt({
|
|
4595
4594
|
card: e,
|
|
4596
4595
|
cardConfig: t.queryRelevantConfig,
|
|
4597
4596
|
resolvedFields: t.resolvedDateFields,
|
|
@@ -4624,14 +4623,14 @@ function Zl({
|
|
|
4624
4623
|
semanticExecutionPayload: c,
|
|
4625
4624
|
timezone: l
|
|
4626
4625
|
}) {
|
|
4627
|
-
const u = e ? [...
|
|
4626
|
+
const u = e ? [...rr(e)] : void 0, d = r ?? null, f = (I) => {
|
|
4628
4627
|
var v;
|
|
4629
|
-
return e ?
|
|
4628
|
+
return e ? Pa({
|
|
4630
4629
|
dashboard: e,
|
|
4631
4630
|
runtimeValues: { dashboardInputValues: t },
|
|
4632
4631
|
adHocFilterValues: n,
|
|
4633
4632
|
sheetId: I,
|
|
4634
|
-
sheetKind:
|
|
4633
|
+
sheetKind: Qt(
|
|
4635
4634
|
(v = e.sheets) == null ? void 0 : v.find((D) => D.id === I)
|
|
4636
4635
|
) ? "document" : "dashboard",
|
|
4637
4636
|
calendar: o
|
|
@@ -4651,7 +4650,7 @@ function Zl({
|
|
|
4651
4650
|
) : [];
|
|
4652
4651
|
for (const I of p)
|
|
4653
4652
|
Object.assign(g, (a == null ? void 0 : a[I.card.id]) || {});
|
|
4654
|
-
const y =
|
|
4653
|
+
const y = ir({
|
|
4655
4654
|
filterDefinitions: u,
|
|
4656
4655
|
filterValues: m
|
|
4657
4656
|
}), h = Js({
|
|
@@ -4667,7 +4666,7 @@ function Zl({
|
|
|
4667
4666
|
controlValues: g
|
|
4668
4667
|
};
|
|
4669
4668
|
}
|
|
4670
|
-
function
|
|
4669
|
+
function Xl({
|
|
4671
4670
|
dashboard: e,
|
|
4672
4671
|
cardId: t,
|
|
4673
4672
|
transientContexts: n,
|
|
@@ -4730,18 +4729,18 @@ function ec({
|
|
|
4730
4729
|
};
|
|
4731
4730
|
}
|
|
4732
4731
|
function ka(e, t, n) {
|
|
4733
|
-
const o = t === "date" && "relativeMeta" in e ?
|
|
4732
|
+
const o = t === "date" && "relativeMeta" in e ? br(e.relativeMeta) : void 0;
|
|
4734
4733
|
if (!o) return { values: e.values };
|
|
4735
|
-
const r =
|
|
4734
|
+
const r = cr(o, n ?? void 0), i = e.operation === "between" || e.operation === "not between";
|
|
4736
4735
|
return {
|
|
4737
4736
|
values: r && i ? r : e.values,
|
|
4738
4737
|
relativeMeta: o,
|
|
4739
4738
|
..."temporalPrecision" in e && e.temporalPrecision === "minute" ? { temporalPrecision: "minute" } : {}
|
|
4740
4739
|
};
|
|
4741
4740
|
}
|
|
4742
|
-
function
|
|
4743
|
-
const o = t, r =
|
|
4744
|
-
return
|
|
4741
|
+
function xa(e, t, n) {
|
|
4742
|
+
const o = t, r = ar(e);
|
|
4743
|
+
return lr({
|
|
4745
4744
|
definition: e,
|
|
4746
4745
|
sourceValue: o,
|
|
4747
4746
|
value: {
|
|
@@ -4766,16 +4765,16 @@ function so(e, t, n) {
|
|
|
4766
4765
|
s.push(a.filterId);
|
|
4767
4766
|
continue;
|
|
4768
4767
|
}
|
|
4769
|
-
const u =
|
|
4770
|
-
|
|
4768
|
+
const u = sr(
|
|
4769
|
+
xa(l.filter, a, n.calendar)
|
|
4771
4770
|
);
|
|
4772
4771
|
if (u) {
|
|
4773
4772
|
if (l.runtimeScope === "shared") {
|
|
4774
4773
|
r = ht(r, l, {}, u);
|
|
4775
4774
|
continue;
|
|
4776
4775
|
}
|
|
4777
|
-
for (const d of
|
|
4778
|
-
|
|
4776
|
+
for (const d of un(e).values())
|
|
4777
|
+
dn(l, d) && (r = ht(
|
|
4779
4778
|
r,
|
|
4780
4779
|
l,
|
|
4781
4780
|
{ sheetId: d.sheetId },
|
|
@@ -4785,11 +4784,11 @@ function so(e, t, n) {
|
|
|
4785
4784
|
}
|
|
4786
4785
|
return { slots: r, adHocFilterValues: i, droppedFilterIds: s };
|
|
4787
4786
|
}
|
|
4788
|
-
function
|
|
4787
|
+
function Pa(e) {
|
|
4789
4788
|
const { dashboard: t, sheetId: n } = e, o = [];
|
|
4790
4789
|
if (n)
|
|
4791
|
-
for (const { input: r } of
|
|
4792
|
-
const i =
|
|
4790
|
+
for (const { input: r } of ur(t, n, e.sheetKind)) {
|
|
4791
|
+
const i = dr({
|
|
4793
4792
|
dashboard: t,
|
|
4794
4793
|
input: r,
|
|
4795
4794
|
runtimeValues: { dashboardInputValues: e.runtimeValues.dashboardInputValues },
|
|
@@ -4800,12 +4799,12 @@ function xa(e) {
|
|
|
4800
4799
|
}
|
|
4801
4800
|
return [...o, ...eo(e.adHocFilterValues, n)];
|
|
4802
4801
|
}
|
|
4803
|
-
function
|
|
4802
|
+
function ec(e, t) {
|
|
4804
4803
|
switch (t.runtimeScope) {
|
|
4805
4804
|
case "shared":
|
|
4806
4805
|
return [{}];
|
|
4807
4806
|
case "perSheet":
|
|
4808
|
-
return [...
|
|
4807
|
+
return [...un(e).values()].filter((n) => dn(t, n)).map((n) => ({ sheetId: n.sheetId }));
|
|
4809
4808
|
case "perCard": {
|
|
4810
4809
|
const n = q(e);
|
|
4811
4810
|
return [
|
|
@@ -4832,7 +4831,7 @@ function _t(e) {
|
|
|
4832
4831
|
...e.cards ?? [],
|
|
4833
4832
|
...(e.frames ?? []).flatMap((n) => n.cards),
|
|
4834
4833
|
...(((t = e.document) == null ? void 0 : t.sections) ?? []).flatMap(
|
|
4835
|
-
(n) =>
|
|
4834
|
+
(n) => fn(n)
|
|
4836
4835
|
)
|
|
4837
4836
|
];
|
|
4838
4837
|
}
|
|
@@ -4843,7 +4842,7 @@ function wa(e, t) {
|
|
|
4843
4842
|
cardId: t.id,
|
|
4844
4843
|
sheetKind: e.kind ?? "dashboard",
|
|
4845
4844
|
sectionId: (o = (n = e.document) == null ? void 0 : n.sections.find(
|
|
4846
|
-
(r) =>
|
|
4845
|
+
(r) => fn(r).some(({ id: i }) => i === t.id)
|
|
4847
4846
|
)) == null ? void 0 : o.id
|
|
4848
4847
|
};
|
|
4849
4848
|
}
|
|
@@ -4851,7 +4850,7 @@ function Oa(e, t, n, o) {
|
|
|
4851
4850
|
var l, u, d;
|
|
4852
4851
|
const r = {}, i = (l = e.preferences) == null ? void 0 : l.textVisualOptions;
|
|
4853
4852
|
if (!i) return r;
|
|
4854
|
-
const s =
|
|
4853
|
+
const s = Ue({
|
|
4855
4854
|
// Authoring: carried drill context never applies to a dashboard being edited.
|
|
4856
4855
|
transientContexts: void 0,
|
|
4857
4856
|
dashboard: n,
|
|
@@ -4918,128 +4917,128 @@ function Ba(e) {
|
|
|
4918
4917
|
export {
|
|
4919
4918
|
rt as $,
|
|
4920
4919
|
so as A,
|
|
4921
|
-
|
|
4922
|
-
|
|
4920
|
+
Pa as B,
|
|
4921
|
+
ec as C,
|
|
4923
4922
|
da as D,
|
|
4924
4923
|
eo as E,
|
|
4925
4924
|
ni as F,
|
|
4926
|
-
|
|
4925
|
+
tl as G,
|
|
4927
4926
|
di as H,
|
|
4928
4927
|
Ts as I,
|
|
4929
|
-
|
|
4930
|
-
|
|
4928
|
+
xt as J,
|
|
4929
|
+
Il as K,
|
|
4931
4930
|
oi as L,
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4931
|
+
bl as M,
|
|
4932
|
+
Pi as N,
|
|
4933
|
+
xi as O,
|
|
4935
4934
|
Vi as P,
|
|
4936
|
-
|
|
4935
|
+
ul as Q,
|
|
4937
4936
|
Sn as R,
|
|
4938
4937
|
Be as S,
|
|
4939
|
-
|
|
4938
|
+
il as T,
|
|
4940
4939
|
fs as U,
|
|
4941
4940
|
ps as V,
|
|
4942
4941
|
Ai as W,
|
|
4943
4942
|
$ as X,
|
|
4944
|
-
|
|
4943
|
+
gl as Y,
|
|
4945
4944
|
Bi as Z,
|
|
4946
|
-
|
|
4945
|
+
yl as _,
|
|
4947
4946
|
Hs as a,
|
|
4948
4947
|
tt as a$,
|
|
4949
4948
|
ot as a0,
|
|
4950
4949
|
jr as a1,
|
|
4951
|
-
|
|
4952
|
-
|
|
4950
|
+
dl as a2,
|
|
4951
|
+
ml as a3,
|
|
4953
4952
|
wi as a4,
|
|
4954
|
-
|
|
4953
|
+
ll as a5,
|
|
4955
4954
|
nt as a6,
|
|
4956
4955
|
An as a7,
|
|
4957
|
-
|
|
4956
|
+
Jl as a8,
|
|
4958
4957
|
Sa as a9,
|
|
4959
4958
|
On as aA,
|
|
4960
|
-
|
|
4961
|
-
|
|
4959
|
+
Wl as aB,
|
|
4960
|
+
$l as aC,
|
|
4962
4961
|
se as aD,
|
|
4963
4962
|
yn as aE,
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4963
|
+
rl as aF,
|
|
4964
|
+
ol as aG,
|
|
4965
|
+
al as aH,
|
|
4967
4966
|
Da as aI,
|
|
4968
4967
|
yi as aJ,
|
|
4969
|
-
|
|
4970
|
-
|
|
4968
|
+
sl as aK,
|
|
4969
|
+
Ul as aL,
|
|
4971
4970
|
pn as aM,
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4971
|
+
fl as aN,
|
|
4972
|
+
Hl as aO,
|
|
4973
|
+
Ol as aP,
|
|
4975
4974
|
ws as aQ,
|
|
4976
|
-
|
|
4975
|
+
Gl as aR,
|
|
4977
4976
|
Qn as aS,
|
|
4978
4977
|
Ke as aT,
|
|
4979
|
-
|
|
4978
|
+
cl as aU,
|
|
4980
4979
|
na as aV,
|
|
4981
4980
|
Wn as aW,
|
|
4982
4981
|
Ye as aX,
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4982
|
+
pl as aY,
|
|
4983
|
+
Dl as aZ,
|
|
4984
|
+
Ml as a_,
|
|
4986
4985
|
_t as aa,
|
|
4987
4986
|
wa as ab,
|
|
4988
4987
|
Oa as ac,
|
|
4989
4988
|
Aa as ad,
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4989
|
+
Zi as ae,
|
|
4990
|
+
Ll as af,
|
|
4991
|
+
ql as ag,
|
|
4993
4992
|
Bn as ah,
|
|
4994
|
-
|
|
4993
|
+
Nl as ai,
|
|
4995
4994
|
Li as aj,
|
|
4996
4995
|
pa as ak,
|
|
4997
4996
|
Zl as al,
|
|
4998
4997
|
aa as am,
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
4998
|
+
Ql as an,
|
|
4999
|
+
Tl as ao,
|
|
5000
|
+
Yl as ap,
|
|
5002
5001
|
bs as aq,
|
|
5003
5002
|
hs as ar,
|
|
5004
5003
|
Ta as as,
|
|
5005
|
-
|
|
5004
|
+
kl as at,
|
|
5006
5005
|
xl as au,
|
|
5007
5006
|
Is as av,
|
|
5008
5007
|
Re as aw,
|
|
5009
5008
|
ys as ax,
|
|
5010
5009
|
vs as ay,
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5010
|
+
Pl as az,
|
|
5011
|
+
hl as b,
|
|
5012
|
+
Fl as b0,
|
|
5013
|
+
Sl as b1,
|
|
5014
|
+
Vl as b2,
|
|
5016
5015
|
gs as b3,
|
|
5017
5016
|
ne as b4,
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5017
|
+
El as b5,
|
|
5018
|
+
zl as b6,
|
|
5019
|
+
jl as b7,
|
|
5021
5020
|
Ji as c,
|
|
5022
5021
|
la as d,
|
|
5023
5022
|
ei as e,
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5023
|
+
vl as f,
|
|
5024
|
+
wl as g,
|
|
5025
|
+
Kl as h,
|
|
5026
|
+
Cl as i,
|
|
5027
|
+
_l as j,
|
|
5029
5028
|
be as k,
|
|
5030
5029
|
Gs as l,
|
|
5031
|
-
|
|
5032
|
-
|
|
5030
|
+
Xl as m,
|
|
5031
|
+
Rl as n,
|
|
5033
5032
|
st as o,
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5033
|
+
Al as p,
|
|
5034
|
+
xa as q,
|
|
5035
|
+
Bl as r,
|
|
5037
5036
|
Ds as s,
|
|
5038
5037
|
Ms as t,
|
|
5039
5038
|
ri as u,
|
|
5040
5039
|
ai as v,
|
|
5041
5040
|
gn as w,
|
|
5042
|
-
|
|
5041
|
+
nl as x,
|
|
5043
5042
|
ci as y,
|
|
5044
5043
|
Ba as z
|
|
5045
5044
|
};
|