react-semaphor 0.1.559 → 0.1.560
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-protocol/index.js +368 -361
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +9 -9
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/analytics-base-schemas-CHLxsPfX.js +630 -0
- package/dist/chunks/{assistant-chat-B_4bVE6I.js → assistant-chat-Bu2fFm_I.js} +206 -207
- package/dist/chunks/{bookmark-state-ssqrs5oP.js → bookmark-state-BFY9oNmr.js} +3 -3
- package/dist/chunks/{braces-Rdxa3H-s.js → braces-Da41xfUd.js} +1 -1
- package/dist/chunks/{comparison-window-caption-CKzQ5LcF.js → comparison-window-caption-4FNkMrzE.js} +166 -166
- package/dist/chunks/{context-DVy4HOU0.js → context-BgPDzLHZ.js} +1 -1
- package/dist/chunks/{custom-visual-inputs-zVa9wX_o.js → custom-visual-inputs-Dz-enUNR.js} +1 -1
- package/dist/chunks/{dashboard-BziwOVpZ.js → dashboard-_MeBuy67.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CbeNR-YI.js → dashboard-briefing-launcher-CEi4Pr_v.js} +1152 -1166
- package/dist/chunks/{dashboard-controls-RD6UJs1r.js → dashboard-controls-Bi7fyG-4.js} +98 -98
- package/dist/chunks/{dashboard-json-DGpv17vL.js → dashboard-json-B1mU_OMa.js} +5 -5
- package/dist/chunks/{document-dashboard-inputs-ChVkcBuu.js → document-dashboard-inputs-CkWfDB8c.js} +64 -64
- package/dist/chunks/{edit-dashboard-visual-AQ2pQkFp.js → edit-dashboard-visual-0CJN31Y3.js} +8375 -8615
- package/dist/chunks/filter-reach-copy-BF4w4kI2.js +3738 -0
- package/dist/chunks/{filter-value-text-B4l-xqJT.js → filter-value-text-CRC-K_l_.js} +3 -3
- package/dist/chunks/{global-date-filter-utils-DBzEOX9M.js → global-date-filter-utils-D8365uPH.js} +4068 -3401
- package/dist/chunks/{index-B1Xr7W24.js → index-DtHidOPV.js} +579 -604
- package/dist/chunks/{layout-grid-Bbz3zKif.js → layout-grid-BvsH4RY2.js} +1 -1
- package/dist/chunks/{list-filter-3sbH0Uy1.js → list-filter-Dg0otx5E.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-CEe3PGEo.js → matrix-analytical-definition-CM18W8w6.js} +4 -4
- package/dist/chunks/{matrix-card-BRNGb1C4.js → matrix-card-HPskLaPy.js} +3 -3
- package/dist/chunks/{matrix-member-presentation-CEegvTqg.js → matrix-member-presentation-Bbrfrke4.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-COxrfQTS.js → matrix-operation-contract-WPv4R-H_.js} +110 -110
- package/dist/chunks/{metric-comparison-DQx-uX__.js → metric-comparison-ljMKYZKa.js} +2 -2
- package/dist/chunks/{model-change-CJEj3ZD6.js → model-change-Ccn1zaxl.js} +1 -1
- package/dist/chunks/{palette-DMJtp3Vn.js → palette-Bsh376zO.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-DOYhqeZb.js → pivot-result-contract-expectations-Bl5suy4-.js} +602 -696
- package/dist/chunks/{pivot-result-identity-CAj8SiRL.js → pivot-result-identity-vS9TSh4f.js} +1 -1
- package/dist/chunks/{raw-temporal-presentation-BmT7z6NH.js → raw-temporal-presentation-BHm7s-hz.js} +230 -274
- package/dist/chunks/{report-preferences-dialog-0sc8B1lh.js → report-preferences-dialog-BV8L0SeS.js} +55 -55
- package/dist/chunks/{report-runtime-context-bYoExeWr.js → report-runtime-context-BZQh9ywy.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-B_C_VAJH.js → resolve-dashboard-input-context-CAMiWvyR.js} +1749 -1989
- package/dist/chunks/{save-DSb1jTtG.js → save-B5EAsgQF.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-BQWM3ldX.js → saved-dashboard-context-n2Wn11cV.js} +57 -57
- package/dist/chunks/{selection-reducer-DSzMWb4x.js → selection-reducer-D0YnaAD9.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator-Bz14Oma5.js → semaphor-ready-indicator-XLBLOJ2V.js} +38374 -39104
- package/dist/chunks/{shelf-drop-preview-context-DBHAkgch.js → shelf-drop-preview-context-DHMa54a-.js} +570 -570
- package/dist/chunks/{source-entity-resolution-BOrmNCEM.js → source-entity-resolution-dUG5VWRm.js} +1 -1
- package/dist/chunks/{switch-Dq8XPFpT.js → switch-ByxH4M7t.js} +3 -3
- package/dist/chunks/{table-export-sheet-C_RvEUyO.js → table-export-sheet-C_GdeTYU.js} +1 -1
- package/dist/chunks/{table-settings-DXj_zXwS.js → table-settings-Imz0FgWi.js} +6 -6
- package/dist/chunks/{temporal-input-presentation-AhLSkGPf.js → temporal-input-presentation-uvNK_tM0.js} +1109 -820
- package/dist/chunks/{token-types-LCYMJ3pa.js → token-types-CQtXUVMy.js} +1 -1
- package/dist/chunks/{upload-Dr_WAxHQ.js → upload-wbR-NVzq.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-BK3YFkfc.js → use-create-flow-overlay-state-CEBaLOKC.js} +6 -6
- package/dist/chunks/{validators-C87JPd-_.js → validators-CXTneCA4.js} +1206 -1579
- package/dist/chunks/{zoned-wall-clock-E35Frf9v.js → zoned-wall-clock-B1n_WjW3.js} +1 -1
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +2207 -1497
- package/dist/data-app-sdk/index.js +5 -5
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +6 -6
- package/dist/format-utils/index.js +181 -176
- package/dist/index.js +22 -22
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/editor/editor-aside/utils.d.ts +1 -1
- package/dist/types/components/visual/data-table/types/data-table.d.ts +5 -20
- package/dist/types/index.js +6 -6
- package/dist/types/lib/formatters/canonical-format-adapter.d.ts +2 -29
- package/dist/types/lib/formatters/raw-temporal-presentation.d.ts +0 -2
- package/dist/types/lib/formatters/table-column-settings.d.ts +47 -0
- package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +10 -188
- package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +1 -1
- package/dist/types/lib/matrix-table/matrix-delivery.d.ts +16 -372
- package/dist/types/lib/stores/dashboard-store.d.ts +0 -1
- package/dist/types/lib/stores/editor-store.d.ts +39 -9
- package/dist/types/lib/stores/table-actions.d.ts +9 -3
- package/dist/types/lib/table-formatting/index.d.ts +0 -2
- package/dist/types/lib/table-formatting/table-conditional-formatting-range-source.d.ts +3 -2
- package/dist/types/lib/table-formatting/table-conditional-formatting-range.d.ts +3 -2
- package/dist/types/lib/table-formatting/table-formatting-normalize.d.ts +1 -2
- package/dist/types/lib/table-formatting/table-formatting-render-model.d.ts +9 -0
- package/dist/types/lib/table-formatting/table-formatting-types.d.ts +5 -95
- package/dist/types/lib/table-formatting/table-presentation-fields.d.ts +35 -0
- package/dist/types/lib/types/common-types.d.ts +40 -47
- package/dist/types/lib/types/explorer-types.d.ts +11 -43
- package/dist/types/lib/utils/card-config-utils.d.ts +8 -0
- package/dist/types/lib/utils/card-definition.d.ts +9 -187
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +159 -513
- package/dist/types/shared/analytics-protocol/contracts.d.ts +32 -9
- package/dist/types/shared/analytics-protocol/execution-input-schemas.d.ts +108 -980
- package/dist/types/shared/analytics-protocol/field-validation.d.ts +1 -0
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +281 -4624
- package/dist/types/shared/analytics-protocol/matrix-operation-contract.d.ts +20 -20
- package/dist/types/shared/analytics-protocol/matrix-operation-request.d.ts +18 -18
- package/dist/types/shared/analytics-protocol/matrix-path-contract.d.ts +40 -40
- package/dist/types/shared/analytics-protocol/matrix-window-contract.d.ts +3 -203
- package/dist/types/shared/analytics-protocol/scalar-value.d.ts +8 -8
- package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +8 -0
- package/dist/types/shared/assistant-protocol/context.d.ts +69 -69
- package/dist/types/shared/dashboard-authoring/canonical-result-keys.d.ts +13 -0
- package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +4 -1
- package/dist/types/shared/dashboard-authoring/card-formats/sql-date-pattern.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/card-formats/upgrade-card-formats.d.ts +57 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +24 -24
- package/dist/types/shared/dashboard-authoring/conditional-formatting/editable.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/evaluate.d.ts +16 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/index.d.ts +9 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/kpi.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/resolve-card-column-ref.d.ts +17 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/retain.d.ts +14 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +4499 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/store.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/types.d.ts +151 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/upgrade.d.ts +35 -0
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +62 -62
- package/dist/types/shared/dashboard-authoring/index.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/matrix-authoring.d.ts +4 -5
- package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +24 -736
- package/dist/types/shared/dashboard-authoring/retired-presentation-fields.d.ts +31 -0
- package/dist/types/shared/dashboard-authoring/upgrade-card-presentation.d.ts +14 -0
- package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +5 -1
- package/dist/types/shared/format-utils/formatters/number-formatter.d.ts +16 -0
- package/dist/types/shared/format-utils/index.d.ts +2 -0
- package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +10 -366
- package/dist/types/shared/format-utils/raw-temporal.d.ts +15 -1
- package/dist/types/shared/format-utils/resolve-column-format.d.ts +43 -0
- package/dist/types/shared/format-utils/retired-format-adapters.d.ts +68 -0
- package/dist/types/shared/format-utils/semantic-format.d.ts +5 -1
- package/dist/types/shared/format-utils/stored-value-format.d.ts +16 -0
- package/dist/types/shared/format-utils/types/format-types.d.ts +10 -12
- package/package.json +1 -1
- package/dist/chunks/analytics-base-schemas-BUFUoO6G.js +0 -472
- package/dist/chunks/editor-draft-sync-BN5qYHPF.js +0 -15
- package/dist/chunks/filter-reach-copy-B5Y7FHzg.js +0 -3411
- package/dist/types/lib/table-formatting/table-conditional-formatting-evaluator.d.ts +0 -9
- package/dist/types/lib/table-formatting/table-formatting-validation.d.ts +0 -12
package/dist/chunks/{saved-dashboard-context-BQWM3ldX.js → saved-dashboard-context-n2Wn11cV.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var Z = Object.defineProperty;
|
|
2
2
|
var G = (e, t, r) => t in e ? Z(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var k = (e, t, r) => G(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { c as Q, e as M, r as U, l as H, b as K, p as E, a as W } from "./resolve-dashboard-input-context-
|
|
5
|
-
import { r as X, a as Y, b as L, c as ee, d as te, g as re } from "./document-dashboard-inputs-
|
|
6
|
-
import { w as v } from "./table-settings-
|
|
7
|
-
import { s as ae, n as ne, g as se, d as oe,
|
|
8
|
-
import { f as g, A as P, c as ce, d as ue, e as D } from "./context-
|
|
9
|
-
import { a as me, T as fe, P as pe, o as I, d as O, b as _ } from "./filter-value-text-
|
|
10
|
-
import { v as he, al as ge } from "./validators-
|
|
11
|
-
import { b as be } from "./metric-comparison-
|
|
12
|
-
import { i as Ce } from "./custom-visual-inputs-
|
|
4
|
+
import { c as Q, e as M, r as U, l as H, b as K, p as E, a as W } from "./resolve-dashboard-input-context-CAMiWvyR.js";
|
|
5
|
+
import { r as X, a as Y, b as L, c as ee, d as te, g as re } from "./document-dashboard-inputs-CkWfDB8c.js";
|
|
6
|
+
import { w as v } from "./table-settings-Imz0FgWi.js";
|
|
7
|
+
import { s as ae, n as ne, g as se, d as oe, b as ie, i as de, c as le } from "./global-date-filter-utils-D8365uPH.js";
|
|
8
|
+
import { f as g, A as P, c as ce, d as ue, e as D } from "./context-BgPDzLHZ.js";
|
|
9
|
+
import { a as me, T as fe, P as pe, o as I, d as O, b as _ } from "./filter-value-text-CRC-K_l_.js";
|
|
10
|
+
import { v as he, al as ge } from "./validators-CXTneCA4.js";
|
|
11
|
+
import { b as be } from "./metric-comparison-ljMKYZKa.js";
|
|
12
|
+
import { i as Ce } from "./custom-visual-inputs-Dz-enUNR.js";
|
|
13
13
|
function Ie(e) {
|
|
14
14
|
const t = e.qualifiedFieldName || e.name;
|
|
15
15
|
return e.label && e.label !== t ? `${e.label} (field ${t})` : t;
|
|
@@ -77,44 +77,44 @@ function w(e, t) {
|
|
|
77
77
|
}
|
|
78
78
|
return r = Math.imul(r ^ r >>> 16, 2246822507) ^ Math.imul(a ^ a >>> 13, 3266489909), a = Math.imul(a ^ a >>> 16, 2246822507) ^ Math.imul(r ^ r >>> 13, 3266489909), 4294967296 * (2097151 & a) + (r >>> 0);
|
|
79
79
|
}
|
|
80
|
-
const
|
|
80
|
+
const u = P;
|
|
81
81
|
function $e(e, t, r) {
|
|
82
82
|
var q;
|
|
83
83
|
const a = t !== "pending" && (t == null ? void 0 : t.status) === "ready" ? t : void 0, n = _e(e, t);
|
|
84
84
|
if (n) {
|
|
85
|
-
const y = t !== "pending" && (t == null ? void 0 : t.status) === "blocked" ? qe(t) : void 0, V = y ? g(y,
|
|
85
|
+
const y = t !== "pending" && (t == null ? void 0 : t.status) === "blocked" ? qe(t) : void 0, V = y ? g(y, u.textChars) : void 0;
|
|
86
86
|
return {
|
|
87
87
|
// A card that runs but is not described still changes when it runs differently.
|
|
88
88
|
fingerprint: $(a ? F(a, r.calendar) : { reason: n, message: V }),
|
|
89
89
|
description: { status: "not_described", reason: n, ...V ? { message: V } : {} }
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
|
-
const s = a, d = s.queryContext,
|
|
92
|
+
const s = a, d = s.queryContext, c = De(s), o = Ae(s, r), f = Me(s), i = we(s), l = d.drillSteps.map((y) => g(
|
|
93
93
|
`${JSON.stringify(y.label)} (then by ${y.toField.label || y.toField.name})`,
|
|
94
|
-
|
|
94
|
+
u.textChars
|
|
95
95
|
)), m = (q = s.card.sql) == null ? void 0 : q.trim(), h = m ? Ee(s) : [], b = {
|
|
96
|
-
fields: I(
|
|
97
|
-
filters: I(o.length,
|
|
98
|
-
controls: I(f.length,
|
|
99
|
-
drillSteps: I(l.length,
|
|
100
|
-
sqlParameters: I(h.length,
|
|
101
|
-
comparisons: I(i.length,
|
|
96
|
+
fields: I(c.length, u.cardFields),
|
|
97
|
+
filters: I(o.length, u.cardFilters),
|
|
98
|
+
controls: I(f.length, u.cardControls),
|
|
99
|
+
drillSteps: I(l.length, u.drillSteps),
|
|
100
|
+
sqlParameters: I(h.length, u.sqlParameters),
|
|
101
|
+
comparisons: I(i.length, u.cardFields)
|
|
102
102
|
}, p = Object.fromEntries(Object.entries(b).filter(([, y]) => y > 0));
|
|
103
103
|
return {
|
|
104
104
|
fingerprint: $(F(s, r.calendar)),
|
|
105
105
|
description: {
|
|
106
106
|
status: "described",
|
|
107
|
-
fields:
|
|
108
|
-
filters: o.slice(0,
|
|
109
|
-
controls: f.slice(0,
|
|
110
|
-
drillPath: l.slice(0,
|
|
107
|
+
fields: c.slice(0, u.cardFields),
|
|
108
|
+
filters: o.slice(0, u.cardFilters),
|
|
109
|
+
controls: f.slice(0, u.cardControls),
|
|
110
|
+
drillPath: l.slice(0, u.drillSteps),
|
|
111
111
|
...m ? {
|
|
112
112
|
sql: {
|
|
113
|
-
text: g(m,
|
|
114
|
-
parameters: h.slice(0,
|
|
113
|
+
text: g(m, u.sqlChars),
|
|
114
|
+
parameters: h.slice(0, u.sqlParameters)
|
|
115
115
|
}
|
|
116
116
|
} : {},
|
|
117
|
-
...i.length ? { comparisons: i.slice(0,
|
|
117
|
+
...i.length ? { comparisons: i.slice(0, u.cardFields) } : {},
|
|
118
118
|
...Object.keys(p).length ? { omitted: p } : {}
|
|
119
119
|
}
|
|
120
120
|
};
|
|
@@ -149,8 +149,8 @@ function De(e) {
|
|
|
149
149
|
const s = n.aggregate, d = n.granularity;
|
|
150
150
|
return {
|
|
151
151
|
role: r,
|
|
152
|
-
label: g(n.label || n.name,
|
|
153
|
-
name: g(n.name,
|
|
152
|
+
label: g(n.label || n.name, u.labelChars),
|
|
153
|
+
name: g(n.name, u.labelChars),
|
|
154
154
|
...s ? { aggregate: s } : {},
|
|
155
155
|
...d ? { granularity: d } : {}
|
|
156
156
|
};
|
|
@@ -163,28 +163,28 @@ function we(e) {
|
|
|
163
163
|
metricComparison: r.comparison,
|
|
164
164
|
globalDateComparison: t.globalDateComparison
|
|
165
165
|
});
|
|
166
|
-
return a ? [g(Ve(Fe(r.label || r.name), a),
|
|
166
|
+
return a ? [g(Ve(Fe(r.label || r.name), a), u.textChars)] : [];
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
function Fe(e) {
|
|
170
170
|
return JSON.stringify(e);
|
|
171
171
|
}
|
|
172
172
|
function Ae(e, { calendar: t }) {
|
|
173
|
-
const r = e.queryContext, a = { maxListedValues:
|
|
173
|
+
const r = e.queryContext, a = { maxListedValues: u.inputValues, timeZone: t.tz }, n = e.card.inlineFilters ?? [], s = new Set(n.map((i) => i.id)), d = new Map(
|
|
174
174
|
[...r.queryFilterDefinitions, ...n].map((i) => [i.id, i.title])
|
|
175
|
-
),
|
|
175
|
+
), c = r.cardFilterValues.map((i) => {
|
|
176
176
|
const l = d.get(i.filterId) || i.name, m = i.dateOwner === "global_date" ? `${l} (the dashboard date, on this card's field ${i.name})` : `${l} (field ${i.name})`, h = O(i, m, a);
|
|
177
177
|
return {
|
|
178
178
|
origin: s.has(i.filterId) ? "card_input" : "dashboard_input",
|
|
179
|
-
text: g(h.text,
|
|
179
|
+
text: g(h.text, u.textChars),
|
|
180
180
|
...h.omittedValues ? { omittedValues: h.omittedValues } : {}
|
|
181
181
|
};
|
|
182
182
|
}), o = r.resolvedFilterParts, f = [["card", o.authored], ["drill", o.drill], ["selection", o.selections]].flatMap(([i, l]) => ye(l, a).map((m) => ({
|
|
183
183
|
origin: i,
|
|
184
|
-
text: g(m.text,
|
|
184
|
+
text: g(m.text, u.textChars),
|
|
185
185
|
...m.omittedValues ? { omittedValues: m.omittedValues } : {}
|
|
186
186
|
})));
|
|
187
|
-
return [...
|
|
187
|
+
return [...c, ...f];
|
|
188
188
|
}
|
|
189
189
|
function Te(e) {
|
|
190
190
|
const t = e.queryContext, r = M({
|
|
@@ -206,15 +206,15 @@ function Me(e) {
|
|
|
206
206
|
);
|
|
207
207
|
return Te(e).map(({ id: a, bindings: n, sqlParameterIds: s }) => {
|
|
208
208
|
var o;
|
|
209
|
-
const d = t.controlValues[a],
|
|
209
|
+
const d = t.controlValues[a], c = /* @__PURE__ */ new Set([
|
|
210
210
|
...n.filter((f) => f.target !== "sql_param").map((f) => Le(f, d)),
|
|
211
211
|
...s.map((f) => `SQL parameter ${f}`)
|
|
212
212
|
]);
|
|
213
213
|
return {
|
|
214
|
-
label: g(((o = r.get(a)) == null ? void 0 : o.label) || a,
|
|
214
|
+
label: g(((o = r.get(a)) == null ? void 0 : o.label) || a, u.labelChars),
|
|
215
215
|
valueText: g(
|
|
216
|
-
`${_(d, { maxListedValues:
|
|
217
|
-
|
|
216
|
+
`${_(d, { maxListedValues: u.inputValues }).text}${c.size ? `; ${[...c].join("; ")}` : ""}`,
|
|
217
|
+
u.textChars
|
|
218
218
|
)
|
|
219
219
|
};
|
|
220
220
|
});
|
|
@@ -222,10 +222,10 @@ function Me(e) {
|
|
|
222
222
|
function Ee(e) {
|
|
223
223
|
const t = e.queryContext;
|
|
224
224
|
return M({ sql: e.card.sql, controlBindings: t.controlBindings }).map((r) => ({
|
|
225
|
-
name: g(r.paramId,
|
|
225
|
+
name: g(r.paramId, u.labelChars),
|
|
226
226
|
valueText: g(
|
|
227
|
-
_(t.controlValues[r.controlId], { maxListedValues:
|
|
228
|
-
|
|
227
|
+
_(t.controlValues[r.controlId], { maxListedValues: u.inputValues }).text,
|
|
228
|
+
u.textChars
|
|
229
229
|
)
|
|
230
230
|
}));
|
|
231
231
|
}
|
|
@@ -271,16 +271,16 @@ function Oe(e) {
|
|
|
271
271
|
const { dashboard: t, sheetId: r, calendar: a } = e, n = t.sheets ?? [], s = n.find((p) => p.id === r);
|
|
272
272
|
if (r !== null && !s)
|
|
273
273
|
throw new S("sheet_not_found", `sheet ${r} is not on dashboard ${t.id}`);
|
|
274
|
-
const d = n.filter((p) => p.id !== r),
|
|
274
|
+
const d = n.filter((p) => p.id !== r), c = s ? v(t).filter((p) => p.sheetId === r) : [], o = c.slice(0, C.summaryCards), f = e.selectedCard ? c.find((p) => p.cardId === e.selectedCard.cardId) : void 0, i = ((b = e.selectedCard) == null ? void 0 : b.card) ?? (f == null ? void 0 : f.card);
|
|
275
275
|
if (e.selectedCard && !i)
|
|
276
276
|
throw new S(
|
|
277
277
|
"card_not_on_sheet",
|
|
278
278
|
`card ${e.selectedCard.cardId} is not on sheet ${r}`
|
|
279
279
|
);
|
|
280
|
-
const l = s ? Be(e, s,
|
|
280
|
+
const l = s ? Be(e, s, c) : [], m = {
|
|
281
281
|
otherSheets: I(d.length, C.otherSheets),
|
|
282
282
|
activeInputs: I(l.length, C.activeInputs),
|
|
283
|
-
cards: I(
|
|
283
|
+
cards: I(c.length, C.summaryCards)
|
|
284
284
|
}, h = Object.fromEntries(Object.entries(m).filter(([, p]) => p > 0));
|
|
285
285
|
return A({
|
|
286
286
|
version: D,
|
|
@@ -331,7 +331,7 @@ function je(e) {
|
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
function Be(e, t, r) {
|
|
334
|
-
const { dashboard: a } = e, n = t.kind === "document" ? "document" : "dashboard", s = n === "document" ? void 0 : e.transientContexts, { shouldApplyDashboardFilters: d } = X(s),
|
|
334
|
+
const { dashboard: a } = e, n = t.kind === "document" ? "document" : "dashboard", s = n === "document" ? void 0 : e.transientContexts, { shouldApplyDashboardFilters: d } = X(s), c = (l, m) => U({
|
|
335
335
|
dashboard: a,
|
|
336
336
|
sheetId: t.id,
|
|
337
337
|
card: l,
|
|
@@ -346,7 +346,7 @@ function Be(e, t, r) {
|
|
|
346
346
|
!p.resolved && b && Ne(b) && (p.resolved = b), o.set(m.id, p);
|
|
347
347
|
});
|
|
348
348
|
};
|
|
349
|
-
f(
|
|
349
|
+
f(c(null));
|
|
350
350
|
let i = H(a).filter((l) => {
|
|
351
351
|
var m;
|
|
352
352
|
return !T(l) && !((m = o.get(l.id)) != null && m.resolved);
|
|
@@ -356,7 +356,7 @@ function Be(e, t, r) {
|
|
|
356
356
|
const m = l.kind === "documentSectionCard" ? l.sectionId : void 0, h = { sheetId: t.id, sheetKind: n, cardId: l.cardId, sectionId: m };
|
|
357
357
|
if (i.some((b) => oe(b, h))) {
|
|
358
358
|
try {
|
|
359
|
-
f(
|
|
359
|
+
f(c(l.card, m));
|
|
360
360
|
} catch {
|
|
361
361
|
continue;
|
|
362
362
|
}
|
|
@@ -390,12 +390,12 @@ function ze(e, t, r) {
|
|
|
390
390
|
};
|
|
391
391
|
if (a.runtimeScope === "perCard" || a.runtimeScope === "perDocumentSection")
|
|
392
392
|
return { ...d, value: { kind: "varies" } };
|
|
393
|
-
const
|
|
393
|
+
const c = { maxListedValues: C.inputValues, timeZone: t };
|
|
394
394
|
let o;
|
|
395
395
|
if ((n == null ? void 0 : n.kind) === "filter" && n.filterValue)
|
|
396
|
-
o = O(n.filterValue, s,
|
|
396
|
+
o = O(n.filterValue, s, c);
|
|
397
397
|
else if ((n == null ? void 0 : n.kind) === "control") {
|
|
398
|
-
const i = _(n.controlValue,
|
|
398
|
+
const i = _(n.controlValue, c);
|
|
399
399
|
o = { text: `${s} is set to ${i.text}`, omittedValues: i.omittedValues };
|
|
400
400
|
}
|
|
401
401
|
if (!o) return;
|
|
@@ -422,7 +422,7 @@ function Je(e) {
|
|
|
422
422
|
const { place: t, calendar: r } = e, a = E(e.dashboard), n = ee({ dashboard: a, host: {}, calendar: r, materializeInputs: !1 }), s = {
|
|
423
423
|
...L({ dashboard: a, capture: {}, calendar: r }).runtimeValues,
|
|
424
424
|
cardViewState: t.cardViewState ?? {}
|
|
425
|
-
}, d = t.cardId ? Ge(a, t.cardId) : void 0,
|
|
425
|
+
}, d = t.cardId ? Ge(a, t.cardId) : void 0, c = d ? z({
|
|
426
426
|
dashboard: a,
|
|
427
427
|
location: d,
|
|
428
428
|
runtimeValues: s,
|
|
@@ -437,13 +437,13 @@ function Je(e) {
|
|
|
437
437
|
unsavedEdits: !1,
|
|
438
438
|
runtimeValues: s,
|
|
439
439
|
transientContexts: void 0,
|
|
440
|
-
...d &&
|
|
440
|
+
...d && c !== void 0 ? { selectedCard: { cardId: d.cardId, snapshot: c } } : {},
|
|
441
441
|
calendar: r
|
|
442
442
|
});
|
|
443
443
|
return {
|
|
444
444
|
context: o,
|
|
445
445
|
openDashboard: a,
|
|
446
|
-
...o.selectedCard &&
|
|
446
|
+
...o.selectedCard && c !== void 0 ? { cardReplay: Ze({ dashboard: a, cardId: o.selectedCard.id, snapshot: c }) } : {}
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
449
|
function Ze(e) {
|
|
@@ -521,7 +521,7 @@ function st(e) {
|
|
|
521
521
|
dashboard: a,
|
|
522
522
|
capture: r,
|
|
523
523
|
calendar: t
|
|
524
|
-
}),
|
|
524
|
+
}), c = z({
|
|
525
525
|
dashboard: a,
|
|
526
526
|
location: n,
|
|
527
527
|
runtimeValues: s,
|
|
@@ -530,9 +530,9 @@ function st(e) {
|
|
|
530
530
|
transientContexts: d,
|
|
531
531
|
withRequest: !0
|
|
532
532
|
});
|
|
533
|
-
if (!
|
|
534
|
-
const o = J({ card: n.card, snapshot:
|
|
535
|
-
return o.status === "ready" ? o : o.reason === "pending" ? { status: "refused", reason: "blocked" } : {
|
|
533
|
+
if (!c) return { status: "refused", reason: "card_not_found" };
|
|
534
|
+
const o = J({ card: n.card, snapshot: c, documentSection: !1 });
|
|
535
|
+
return o.status === "ready" ? { ...o, renderConfig: c.queryContext.finalConfig } : o.reason === "pending" ? { status: "refused", reason: "blocked" } : {
|
|
536
536
|
status: "refused",
|
|
537
537
|
reason: o.reason,
|
|
538
538
|
...o.message ? { message: o.message } : {}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as p, S as h } from "./matrix-operation-contract-
|
|
1
|
+
import { s as p, S as h } from "./matrix-operation-contract-WPv4R-H_.js";
|
|
2
2
|
function f(e, l, t) {
|
|
3
3
|
return e.length === 1 && t(e[0]) === t(l) ? { tuples: [], outcome: "cleared" } : { tuples: [l], outcome: "selected" };
|
|
4
4
|
}
|