react-semaphor 0.1.555 → 0.1.557
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DATA_APP_SDK.md +6 -29
- package/dist/analytics-protocol/index.js +20 -21
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +426 -444
- package/dist/briefings/index.js +56 -57
- package/dist/chunks/{analytics-base-schemas-BKs3flFS.js → analytics-base-schemas-BUFUoO6G.js} +2 -2
- package/dist/chunks/{assistant-chat-8NZP6m-u.js → assistant-chat-WMTpYirZ.js} +79 -81
- package/dist/chunks/{bookmark-state-BAeGKd3s.js → bookmark-state-PjQpxbG7.js} +3 -3
- package/dist/chunks/{braces-o9UiRQes.js → braces-BOErQVyi.js} +1 -1
- package/dist/chunks/comparison-window-caption-Dc7BaCMz.js +1218 -0
- package/dist/chunks/{context-BerEBuFR.js → context-DVy4HOU0.js} +1 -1
- package/dist/chunks/{custom-visual-inputs-Gw-Ggg3O.js → custom-visual-inputs-CxYI-gFa.js} +31 -33
- package/dist/chunks/{dashboard-Ds68ckO3.js → dashboard-4D8Vy4pL.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DlTr-VGc.js → dashboard-briefing-launcher-C4EmOfxs.js} +149 -151
- package/dist/chunks/{dashboard-controls-oNXJZN6x.js → dashboard-controls-DBWykmvL.js} +171 -173
- package/dist/chunks/{dashboard-json-CW7Q_efH.js → dashboard-json-DiX-p0F7.js} +21 -22
- package/dist/chunks/{document-dashboard-inputs-C21mL3ib.js → document-dashboard-inputs-DP5hquBR.js} +32 -32
- package/dist/chunks/{edit-dashboard-visual-BnnT_oKR.js → edit-dashboard-visual-n1jLV_7V.js} +5842 -5955
- package/dist/chunks/{filter-reach-copy-DlNPHbE-.js → filter-reach-copy-BB9iakLA.js} +915 -986
- package/dist/chunks/{filter-value-text-DMrpj4h9.js → filter-value-text-CUBpotVN.js} +5 -5
- package/dist/chunks/{global-date-filter-utils-7OboTgrM.js → global-date-filter-utils-Cc5tqkoW.js} +2908 -3112
- package/dist/chunks/{index-B2k6KtUN.js → index-CgjhzkKM.js} +72 -80
- package/dist/chunks/{index-CtoK1Lgu.js → index-dIV-Gdsb.js} +159 -161
- package/dist/chunks/{layout-grid-Bgzth8vd.js → layout-grid-CcNklCwL.js} +1 -1
- package/dist/chunks/{list-filter-DsaTbM3J.js → list-filter-Ds_4UTpD.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-DPVGg1mU.js → matrix-analytical-definition-4GTUDheD.js} +22 -22
- package/dist/chunks/{matrix-card-D9bsdAye.js → matrix-card-fS_4O7zA.js} +3 -3
- package/dist/chunks/{matrix-member-presentation-DRWcJ8Mi.js → matrix-member-presentation-Dj7HaAHC.js} +1 -1
- package/dist/chunks/{matrix-operation-contract--lMaLlpV.js → matrix-operation-contract-CpgLZ7E5.js} +52 -52
- package/dist/chunks/{metric-comparison-CYIt2F5X.js → metric-comparison-C8LY7GG5.js} +4 -4
- package/dist/chunks/{model-change-B0rAK-5w.js → model-change-CJEj3ZD6.js} +1 -1
- package/dist/chunks/{palette-D10o_yYX.js → palette-DMkIhagj.js} +1 -1
- package/dist/chunks/{matrix-formatter-K2OVPJQI.js → pivot-result-contract-expectations-DMk-mKhG.js} +451 -402
- package/dist/chunks/pivot-result-identity-CrQ54Xbj.js +77 -0
- package/dist/chunks/{raw-temporal-presentation-CivONfcO.js → raw-temporal-presentation-DdEpgPRB.js} +25 -26
- package/dist/chunks/report-preferences-dialog-CFg5VFLk.js +2109 -0
- package/dist/chunks/{report-runtime-context-BaIKSaja.js → report-runtime-context-CohdtiMg.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-CIm9A8_j.js → resolve-dashboard-input-context-Djl3kCFL.js} +1396 -1550
- package/dist/chunks/{save-CfJpQQ68.js → save-D1EpMcwT.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-akb9JfOL.js → saved-dashboard-context-umlQFevH.js} +9 -9
- package/dist/chunks/selection-reducer-_d6aKJnj.js +46 -0
- package/dist/chunks/{semaphor-ready-indicator-Ba7dwP5_.js → semaphor-ready-indicator-4cOp6sla.js} +54479 -63899
- package/dist/chunks/{shelf-drop-preview-context-5rg3pJHW.js → shelf-drop-preview-context-DAtRuvR7.js} +7 -7
- package/dist/chunks/{source-entity-resolution-CGymm5td.js → source-entity-resolution-DXW1HpKf.js} +1 -1
- package/dist/chunks/{switch-B-UTI6v-.js → switch-9CJt5EF_.js} +1431 -1342
- package/dist/chunks/{table-export-sheet-CgO6gaSM.js → table-export-sheet-CTCTA_bd.js} +1 -1
- package/dist/chunks/{table-settings-DOT_Bv1m.js → table-settings-DF1gdVQR.js} +3 -3
- package/dist/chunks/temporal-input-presentation-DoSniQj1.js +2939 -0
- package/dist/chunks/{token-types-DYECHYGH.js → token-types-DFyLflLY.js} +1 -1
- package/dist/chunks/{upload-BFX7apKV.js → upload-LSNKpt0w.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-BHNs0wl7.js → use-create-flow-overlay-state-esyMT9vU.js} +125 -127
- package/dist/chunks/{validators-ClKLGDGZ.js → validators-hmfNNQz8.js} +305 -307
- package/dist/chunks/zoned-wall-clock-E35Frf9v.js +191 -0
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +168 -169
- package/dist/data-app-sdk/index.js +789 -4154
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +6 -6
- package/dist/format-utils/index.js +234 -253
- package/dist/index.js +233 -235
- package/dist/layouts/index.js +1 -1
- package/dist/pdf-export-policy/index.js +9 -11
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/brand-studio/brand-studio-draft.d.ts +0 -3
- package/dist/types/brand-studio/index.d.ts +1 -1
- package/dist/types/components/visual/data-table/types/data-table.d.ts +0 -1
- package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -6
- package/dist/types/data-app-sdk/contracts.d.ts +0 -146
- package/dist/types/data-app-sdk/index.d.ts +0 -2
- package/dist/types/index.js +27 -28
- package/dist/types/lib/api/exports-api.d.ts +1 -1
- package/dist/types/lib/charts/table-chart-types.d.ts +1 -1
- package/dist/types/lib/charts/types.d.ts +2 -2
- package/dist/types/lib/dashboard-viewer/export-table-view.d.ts +0 -3
- package/dist/types/lib/document/document-edits.d.ts +1 -1
- package/dist/types/lib/document/document-section-kinds.d.ts +2 -4
- package/dist/types/lib/document/document-table-data-policy.d.ts +1 -2
- package/dist/types/lib/formatters/grouped-temporal-activation.d.ts +3 -3
- package/dist/types/lib/formatters/grouped-temporal-presentation.d.ts +0 -6
- package/dist/types/lib/query-context/card-server-request.d.ts +0 -1
- package/dist/types/lib/table-formatting/table-formatting-types.d.ts +1 -1
- package/dist/types/lib/types/common-types.d.ts +0 -7
- package/dist/types/lib/types/explorer-types.d.ts +1 -14
- package/dist/types/lib/utils/card-config-utils.d.ts +11 -1
- package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +1 -2
- package/dist/types/shared/dashboard-authoring/filter-model/filter-definitions.d.ts +1 -7
- package/dist/types/shared/dashboard-authoring/legacy-table-routing.d.ts +9 -4
- package/dist/types/shared/format-utils/grouped-table-presentation.d.ts +0 -14
- package/dist/types/shared/format-utils/index.d.ts +0 -2
- package/dist/types/shared/format-utils/pdf-export-policy.d.ts +1 -1
- package/dist/types/shared/format-utils/pivot-result-contract-expectations.d.ts +2 -20
- package/dist/types/shared/format-utils/pivot-result-identity.d.ts +0 -20
- package/dist/types/shared/format-utils/table-export/prepare-table-export.d.ts +0 -1
- package/dist/types/shared/format-utils/table-export/table-export-result.d.ts +0 -4
- package/package.json +2 -4
- package/src/data-app-sdk/README.md +7 -31
- package/dist/chunks/comparison-window-caption-C2WNTlxK.js +0 -1433
- package/dist/chunks/pivot-header-presentation-CX4fkRuG.js +0 -42
- package/dist/chunks/pivot-result-identity-BHJGZwIc.js +0 -94
- package/dist/chunks/pivot-result-lifecycle-BygCpOhk.js +0 -1238
- package/dist/chunks/raw-temporal-contract-WuXA8jBP.js +0 -64
- package/dist/chunks/report-preferences-dialog-D_KyuEFx.js +0 -2261
- package/dist/chunks/selection-reducer-yw_JgICP.js +0 -111
- package/dist/chunks/temporal-bucket-C4rqmwaQ.js +0 -2071
- package/dist/chunks/x-4f5U2XwU.js +0 -100
- package/dist/chunks/zoned-wall-clock-MulfA26h.js +0 -129
- package/dist/types/components/visual/pivot-table/types.d.ts +0 -80
- package/dist/types/data-app-sdk/devtools/index.d.ts +0 -49
- package/dist/types/data-app-sdk/devtools.d.ts +0 -1
- package/dist/types/shared/format-utils/aggregate-table-row-presentation.d.ts +0 -85
- package/dist/types/shared/format-utils/pivot-result-lifecycle.d.ts +0 -55
|
@@ -1,29 +1,23 @@
|
|
|
1
1
|
var Fe = Object.defineProperty;
|
|
2
2
|
var Re = (e, n, t) => n in e ? Fe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
3
|
var L = (e, n, t) => Re(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
-
import { r as ae,
|
|
5
|
-
import {
|
|
6
|
-
import { l as
|
|
4
|
+
import { ai as Ne, L as Be, r as ae, E as se, k as Me, K as Le, P as B } from "./temporal-input-presentation-DoSniQj1.js";
|
|
5
|
+
import { Y as J, ab as Ue, o as Pe } from "./validators-hmfNNQz8.js";
|
|
6
|
+
import { l as ze, C as Ve } from "./export-file-format-C-tJsxsf.js";
|
|
7
7
|
import { z as y } from "zod";
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import "./analytics-base-schemas-BKs3flFS.js";
|
|
8
|
+
import { af as je, ah as qe, U as Ke } from "./matrix-operation-contract-CpgLZ7E5.js";
|
|
9
|
+
import "./analytics-base-schemas-BUFUoO6G.js";
|
|
11
10
|
import "../value-format-preferences/index.js";
|
|
12
11
|
import { r as He } from "./rendered-file-D8xEuVVx.js";
|
|
13
|
-
import {
|
|
14
|
-
import { r as Je } from "./matrix-card-
|
|
15
|
-
import { z as Qe } from "./table-settings-
|
|
16
|
-
import { r as et, a as tt, b as nt, c as rt, d as ot } from "./raw-temporal-presentation-
|
|
17
|
-
import "./index-
|
|
12
|
+
import { cQ as Ge, cR as We, cS as Xe, r as Ze, n as Ye } from "./global-date-filter-utils-Cc5tqkoW.js";
|
|
13
|
+
import { r as Je } from "./matrix-card-fS_4O7zA.js";
|
|
14
|
+
import { z as Qe } from "./table-settings-DF1gdVQR.js";
|
|
15
|
+
import { r as et, a as tt, b as nt, c as rt, d as ot } from "./raw-temporal-presentation-DdEpgPRB.js";
|
|
16
|
+
import "./index-dIV-Gdsb.js";
|
|
18
17
|
import "./index-CuHybtft.js";
|
|
19
18
|
import "./_commonjsHelpers-DimLPMtv.js";
|
|
20
|
-
import { f as at, r as it, b as ct, g as lt } from "./custom-visual-inputs-
|
|
21
|
-
const dt = /* @__PURE__ */ new Set([
|
|
22
|
-
"table",
|
|
23
|
-
"aggregateTable",
|
|
24
|
-
"pivotTable",
|
|
25
|
-
"detailTable"
|
|
26
|
-
]), st = /* @__PURE__ */ new Set([
|
|
19
|
+
import { f as at, r as it, b as ct, g as lt } from "./custom-visual-inputs-CxYI-gFa.js";
|
|
20
|
+
const dt = /* @__PURE__ */ new Set(["table", "detailTable"]), st = /* @__PURE__ */ new Set([
|
|
27
21
|
"bar",
|
|
28
22
|
"horizontalBar",
|
|
29
23
|
"line",
|
|
@@ -39,8 +33,6 @@ const dt = /* @__PURE__ */ new Set([
|
|
|
39
33
|
"stackedBar",
|
|
40
34
|
"stackedLine",
|
|
41
35
|
"table",
|
|
42
|
-
"pivotTable",
|
|
43
|
-
"aggregateTable",
|
|
44
36
|
"matrixTable",
|
|
45
37
|
"detailTable",
|
|
46
38
|
"kpi",
|
|
@@ -54,7 +46,7 @@ const dt = /* @__PURE__ */ new Set([
|
|
|
54
46
|
"treemap",
|
|
55
47
|
"custom"
|
|
56
48
|
]);
|
|
57
|
-
function
|
|
49
|
+
function Xn(e) {
|
|
58
50
|
var o, a, i;
|
|
59
51
|
const n = st.has(e.type) && (e.type !== "custom" || !!((o = e.customCardPreferences) != null && o.url));
|
|
60
52
|
let t = !1;
|
|
@@ -92,24 +84,24 @@ function mt(e) {
|
|
|
92
84
|
return n || Q((r = e.settings) == null ? void 0 : r.cardType) ? { kind: "export_job", format: e.format } : { kind: "rendered", format: "csv" };
|
|
93
85
|
}
|
|
94
86
|
}
|
|
95
|
-
function
|
|
87
|
+
function Zn(e) {
|
|
96
88
|
return mt(e).kind === "export_job";
|
|
97
89
|
}
|
|
98
90
|
function ft(e) {
|
|
99
|
-
const { label: n, extension: t, contentType: r } = e === "pdf" || e === "png" ? He(e) :
|
|
91
|
+
const { label: n, extension: t, contentType: r } = e === "pdf" || e === "png" ? He(e) : ze(e);
|
|
100
92
|
return { label: n, extension: t, contentType: r };
|
|
101
93
|
}
|
|
102
94
|
function ut(e) {
|
|
103
95
|
return e.allowDownload === !1 ? ["pdf", "png"] : e.cardType === "matrixTable" || Q(e.cardType) ? ["pdf", "png", "csv", "xlsx"] : ["pdf", "png", "csv"];
|
|
104
96
|
}
|
|
105
|
-
function
|
|
97
|
+
function Yn(e) {
|
|
106
98
|
return ft(e).label;
|
|
107
99
|
}
|
|
108
100
|
function pt(e) {
|
|
109
101
|
return dt.has(e.cardType) && e.allowDownload !== !1 ? "csv" : "pdf";
|
|
110
102
|
}
|
|
111
|
-
function
|
|
112
|
-
const { config: n } = e, t =
|
|
103
|
+
function Jn(e) {
|
|
104
|
+
const { config: n } = e, t = Ne({
|
|
113
105
|
spec: n.spec,
|
|
114
106
|
presentation: n.presentation,
|
|
115
107
|
defaults: n.defaultView,
|
|
@@ -144,7 +136,7 @@ const ht = y.object({
|
|
|
144
136
|
semanticDomainId: y.string().optional()
|
|
145
137
|
}).passthrough(),
|
|
146
138
|
active_filters: y.array(y.unknown()).default([])
|
|
147
|
-
}).passthrough(),
|
|
139
|
+
}).passthrough(), Qn = ht.extend({
|
|
148
140
|
dashboardId: y.string().min(1),
|
|
149
141
|
cardId: y.string().min(1),
|
|
150
142
|
formatOptions: y.object({
|
|
@@ -159,7 +151,7 @@ const ht = y.object({
|
|
|
159
151
|
});
|
|
160
152
|
})
|
|
161
153
|
});
|
|
162
|
-
function
|
|
154
|
+
function er(e) {
|
|
163
155
|
return {
|
|
164
156
|
...e.controls,
|
|
165
157
|
type: "card",
|
|
@@ -187,14 +179,14 @@ function tr(e) {
|
|
|
187
179
|
delimiter: e.delimiter,
|
|
188
180
|
includeHeaders: e.includeHeaders,
|
|
189
181
|
timezone: e.reportContext.calendar.tz,
|
|
190
|
-
presentationExecutionSnapshot:
|
|
182
|
+
presentationExecutionSnapshot: Be({
|
|
191
183
|
reportContext: e.reportContext,
|
|
192
184
|
resolvedFormats: []
|
|
193
185
|
})
|
|
194
186
|
}
|
|
195
187
|
};
|
|
196
188
|
}
|
|
197
|
-
const K = y.number().int().nonnegative(),
|
|
189
|
+
const K = y.number().int().nonnegative(), tr = y.discriminatedUnion("status", [
|
|
198
190
|
y.object({
|
|
199
191
|
status: y.literal("ok"),
|
|
200
192
|
request: J,
|
|
@@ -231,7 +223,7 @@ function me(e) {
|
|
|
231
223
|
var n;
|
|
232
224
|
return (n = e == null ? void 0 : e.cards) != null && n.length ? e.activeCardId && e.cards.find((t) => t.id === e.activeCardId) || e.cards[0] : null;
|
|
233
225
|
}
|
|
234
|
-
function
|
|
226
|
+
function nr(e) {
|
|
235
227
|
var t;
|
|
236
228
|
const n = (e == null ? void 0 : e.frameObject) ?? ((t = e == null ? void 0 : e.visual) == null ? void 0 : t.frameObject);
|
|
237
229
|
return me(yt(n));
|
|
@@ -307,7 +299,7 @@ function bt(e, n) {
|
|
|
307
299
|
})
|
|
308
300
|
).filter((c) => c !== null);
|
|
309
301
|
}
|
|
310
|
-
function
|
|
302
|
+
function rr(e) {
|
|
311
303
|
return gt(e.dashboard, e.selections).flatMap(
|
|
312
304
|
({ card: n, attachmentIndex: t }) => {
|
|
313
305
|
var s, u, h, g;
|
|
@@ -364,7 +356,7 @@ function or(e) {
|
|
|
364
356
|
T && _.set(T, (_.get(T) || 0) + 1);
|
|
365
357
|
}
|
|
366
358
|
for (const $ of E) {
|
|
367
|
-
const T =
|
|
359
|
+
const T = Ue($.dataType);
|
|
368
360
|
if (T !== "date" && T !== "datetime") continue;
|
|
369
361
|
const Oe = tt($), q = $.label, oe = nt({
|
|
370
362
|
label: q,
|
|
@@ -646,7 +638,7 @@ const P = [
|
|
|
646
638
|
3: "third",
|
|
647
639
|
4: "fourth",
|
|
648
640
|
[-1]: "last"
|
|
649
|
-
},
|
|
641
|
+
}, or = {
|
|
650
642
|
frequency: "weekly",
|
|
651
643
|
hour: 9,
|
|
652
644
|
minute: 0,
|
|
@@ -692,7 +684,7 @@ function St(e, n) {
|
|
|
692
684
|
function ge(e, n) {
|
|
693
685
|
return e.every((t) => Rt(t, n));
|
|
694
686
|
}
|
|
695
|
-
function
|
|
687
|
+
function ar(e) {
|
|
696
688
|
if (!Tt(e))
|
|
697
689
|
throw new Error("Choose a valid schedule time.");
|
|
698
690
|
const n = `${e.minute} ${e.hour}`;
|
|
@@ -847,7 +839,7 @@ function Ft(e, n, t) {
|
|
|
847
839
|
const o = N(e, n).map((a) => r(a, "short")).join(", ");
|
|
848
840
|
return e === 3 ? `each quarter (${o})` : `every ${e} months (${o})`;
|
|
849
841
|
}
|
|
850
|
-
function
|
|
842
|
+
function ir(e, n, t = "en-US") {
|
|
851
843
|
const r = be(e);
|
|
852
844
|
if (!r.ok) return null;
|
|
853
845
|
try {
|
|
@@ -880,7 +872,7 @@ const Ie = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
|
880
872
|
function Rt(e, n) {
|
|
881
873
|
return e === "last" || n.some((t) => e <= Ie[t]);
|
|
882
874
|
}
|
|
883
|
-
function
|
|
875
|
+
function cr(e) {
|
|
884
876
|
if (e.frequency !== "monthly" || e.on.type !== "days") return null;
|
|
885
877
|
const n = e.on.days.filter((o) => o !== "last");
|
|
886
878
|
if (n.length === 0) return null;
|
|
@@ -909,7 +901,7 @@ function Bt(e, n, t, r) {
|
|
|
909
901
|
}
|
|
910
902
|
}
|
|
911
903
|
}
|
|
912
|
-
function
|
|
904
|
+
function lr(e, n, t, r) {
|
|
913
905
|
const o = be(e);
|
|
914
906
|
if (!o.ok || !Ct(n)) return [];
|
|
915
907
|
const a = o.value, i = new Intl.DateTimeFormat("en-US", {
|
|
@@ -962,7 +954,7 @@ function Pt(e) {
|
|
|
962
954
|
diagnostic: n.diagnostic
|
|
963
955
|
};
|
|
964
956
|
}
|
|
965
|
-
function
|
|
957
|
+
function dr(e) {
|
|
966
958
|
if (!e || typeof e != "object" || Array.isArray(e)) return [];
|
|
967
959
|
const n = e.omittedAttachments;
|
|
968
960
|
return Array.isArray(n) ? n.flatMap((t) => {
|
|
@@ -970,10 +962,10 @@ function sr(e) {
|
|
|
970
962
|
return r ? [r] : [];
|
|
971
963
|
}) : [];
|
|
972
964
|
}
|
|
973
|
-
function
|
|
965
|
+
function sr(e) {
|
|
974
966
|
return e != null && e.role ? e.type === "tenant" ? e.role === "POWER_USER" : ["AUTHOR", "ADMIN", "SUPER_ADMIN"].includes(e.role) : !1;
|
|
975
967
|
}
|
|
976
|
-
function
|
|
968
|
+
function mr(e) {
|
|
977
969
|
return e.canCreate ? [
|
|
978
970
|
...e.scheduledReportAvailable ? ["scheduled_report"] : [],
|
|
979
971
|
...e.analyticalBriefingsEnabled ? ["analytical_briefing"] : []
|
|
@@ -986,7 +978,7 @@ function zt(e) {
|
|
|
986
978
|
function Vt(e) {
|
|
987
979
|
return e.body.type === "generated_analysis" ? "Analytical briefing" : e.body.type === "custom_message" && e.attachments.length > 0 && zt(e.deliveryConfig) ? e.scheduleExpr ? "Scheduled report" : "On-demand report" : "Plain briefing";
|
|
988
980
|
}
|
|
989
|
-
function
|
|
981
|
+
function fr(e) {
|
|
990
982
|
const n = Vt(e), t = n === "Scheduled report" || n === "On-demand report" ? "report" : "briefing";
|
|
991
983
|
return {
|
|
992
984
|
typeLabel: n,
|
|
@@ -1036,9 +1028,9 @@ function qt(e) {
|
|
|
1036
1028
|
return (r.kind === "metric" && typeof r.metricId == "string" && !!r.metricId.trim() || r.kind === "column" && typeof r.columnKey == "string" && !!r.columnKey.trim() || r.kind === "matrix_measure" && typeof r.measureId == "string" && !!r.measureId.trim()) && se(n.format).ok;
|
|
1037
1029
|
}
|
|
1038
1030
|
function Kt(e) {
|
|
1039
|
-
return e == null ? "" : qt(e) ?
|
|
1031
|
+
return e == null ? "" : qt(e) ? Me(e.value, e.format) : String(e);
|
|
1040
1032
|
}
|
|
1041
|
-
function
|
|
1033
|
+
function ur(e) {
|
|
1042
1034
|
return [e.delta, e.percentChange].filter(
|
|
1043
1035
|
(n) => n != null
|
|
1044
1036
|
).map(Kt).filter(Boolean).join(" / ");
|
|
@@ -1063,7 +1055,7 @@ const ve = ["pdf", "png", "csv", "xlsx"], Ee = new Set(jt), Ht = /* @__PURE__ */
|
|
|
1063
1055
|
]), Wt = /* @__PURE__ */ new Set([
|
|
1064
1056
|
"portrait",
|
|
1065
1057
|
"landscape"
|
|
1066
|
-
]), Xt = /* @__PURE__ */ new Set([",", ";", " "]), Zt = new Set(
|
|
1058
|
+
]), Xt = /* @__PURE__ */ new Set([",", ";", " "]), Zt = new Set(Ve), Yt = /* @__PURE__ */ new Set([
|
|
1067
1059
|
"current",
|
|
1068
1060
|
"all"
|
|
1069
1061
|
]), Jt = /* @__PURE__ */ new Set([
|
|
@@ -1847,7 +1839,7 @@ function hn(e) {
|
|
|
1847
1839
|
blocks: i
|
|
1848
1840
|
};
|
|
1849
1841
|
}
|
|
1850
|
-
function
|
|
1842
|
+
function pr(e) {
|
|
1851
1843
|
try {
|
|
1852
1844
|
return {
|
|
1853
1845
|
valid: !0,
|
|
@@ -1897,7 +1889,7 @@ function bn(e, n, t) {
|
|
|
1897
1889
|
if (r.matrix !== void 0) {
|
|
1898
1890
|
const s = v(r.matrix, `${n}.matrix`, t);
|
|
1899
1891
|
p(s, `${n}.matrix`, ["config", "content"], t);
|
|
1900
|
-
const u =
|
|
1892
|
+
const u = Pe.safeParse(s.config);
|
|
1901
1893
|
u.success || d(t, `${n}.matrix.config`, "Expected a valid Matrix definition.");
|
|
1902
1894
|
const h = D(
|
|
1903
1895
|
s.content,
|
|
@@ -2226,7 +2218,7 @@ function De(e) {
|
|
|
2226
2218
|
), t.kind !== Z && d(n, "kind", "Expected BRIEFING.");
|
|
2227
2219
|
let r;
|
|
2228
2220
|
try {
|
|
2229
|
-
r =
|
|
2221
|
+
r = Le(
|
|
2230
2222
|
t.presentationExecutionSnapshot
|
|
2231
2223
|
);
|
|
2232
2224
|
} catch (m) {
|
|
@@ -2253,7 +2245,7 @@ function De(e) {
|
|
|
2253
2245
|
...l ? { limits: l } : {}
|
|
2254
2246
|
};
|
|
2255
2247
|
}
|
|
2256
|
-
function
|
|
2248
|
+
function hr(e) {
|
|
2257
2249
|
return De({
|
|
2258
2250
|
...e,
|
|
2259
2251
|
kind: Z
|
|
@@ -2629,13 +2621,13 @@ function re(e) {
|
|
|
2629
2621
|
deliveryConfig: g
|
|
2630
2622
|
};
|
|
2631
2623
|
}
|
|
2632
|
-
function
|
|
2624
|
+
function yr(e) {
|
|
2633
2625
|
return re(e);
|
|
2634
2626
|
}
|
|
2635
|
-
function
|
|
2627
|
+
function gr(e) {
|
|
2636
2628
|
return re(e);
|
|
2637
2629
|
}
|
|
2638
|
-
function
|
|
2630
|
+
function br(e) {
|
|
2639
2631
|
try {
|
|
2640
2632
|
return { valid: !0, value: re(e), issues: [] };
|
|
2641
2633
|
} catch (n) {
|
|
@@ -2644,7 +2636,7 @@ function Ir(e) {
|
|
|
2644
2636
|
throw n;
|
|
2645
2637
|
}
|
|
2646
2638
|
}
|
|
2647
|
-
function
|
|
2639
|
+
function Ir(e) {
|
|
2648
2640
|
try {
|
|
2649
2641
|
return { valid: !0, value: De(e), issues: [] };
|
|
2650
2642
|
} catch (n) {
|
|
@@ -2653,7 +2645,7 @@ function vr(e) {
|
|
|
2653
2645
|
throw n;
|
|
2654
2646
|
}
|
|
2655
2647
|
}
|
|
2656
|
-
function
|
|
2648
|
+
function vr(e) {
|
|
2657
2649
|
return typeof e == "string" && Ee.has(e);
|
|
2658
2650
|
}
|
|
2659
2651
|
function _e(e) {
|
|
@@ -2664,57 +2656,57 @@ export {
|
|
|
2664
2656
|
f as A,
|
|
2665
2657
|
Z as B,
|
|
2666
2658
|
x as C,
|
|
2667
|
-
|
|
2659
|
+
or as D,
|
|
2668
2660
|
qt as E,
|
|
2669
2661
|
Kt as F,
|
|
2670
|
-
|
|
2662
|
+
ur as G,
|
|
2671
2663
|
ve as H,
|
|
2672
2664
|
j as I,
|
|
2673
2665
|
hn as J,
|
|
2674
|
-
|
|
2666
|
+
pr as K,
|
|
2675
2667
|
De as L,
|
|
2676
2668
|
H as M,
|
|
2677
|
-
|
|
2669
|
+
hr as N,
|
|
2678
2670
|
re as O,
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2671
|
+
yr as P,
|
|
2672
|
+
gr as Q,
|
|
2673
|
+
br as R,
|
|
2674
|
+
Ir as S,
|
|
2675
|
+
vr as T,
|
|
2684
2676
|
_e as U,
|
|
2685
|
-
|
|
2677
|
+
Qn as V,
|
|
2686
2678
|
ht as W,
|
|
2687
2679
|
ft as X,
|
|
2688
|
-
|
|
2680
|
+
Zn as Y,
|
|
2689
2681
|
mt as Z,
|
|
2690
2682
|
pt as _,
|
|
2691
|
-
|
|
2683
|
+
mr as a,
|
|
2692
2684
|
Mt as a0,
|
|
2693
2685
|
Ut as a1,
|
|
2694
2686
|
Vt as a2,
|
|
2695
2687
|
ut as b,
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2688
|
+
Jn as c,
|
|
2689
|
+
ir as d,
|
|
2690
|
+
er as e,
|
|
2691
|
+
rr as f,
|
|
2692
|
+
fr as g,
|
|
2693
|
+
Xn as h,
|
|
2694
|
+
Yn as i,
|
|
2703
2695
|
Ct as j,
|
|
2704
|
-
|
|
2696
|
+
ar as k,
|
|
2705
2697
|
N as l,
|
|
2706
|
-
|
|
2698
|
+
cr as m,
|
|
2707
2699
|
Rt as n,
|
|
2708
|
-
|
|
2700
|
+
lr as o,
|
|
2709
2701
|
be as p,
|
|
2710
2702
|
ye as q,
|
|
2711
2703
|
zt as r,
|
|
2712
|
-
|
|
2713
|
-
|
|
2704
|
+
dr as s,
|
|
2705
|
+
sr as t,
|
|
2714
2706
|
yt as u,
|
|
2715
2707
|
me as v,
|
|
2716
|
-
|
|
2717
|
-
|
|
2708
|
+
nr as w,
|
|
2709
|
+
tr as x,
|
|
2718
2710
|
jt as y,
|
|
2719
2711
|
Y as z
|
|
2720
2712
|
};
|