react-semaphor 0.1.516 → 0.1.518
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/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +2 -2
- package/dist/briefings/index.cjs +1 -1
- package/dist/briefings/index.js +3 -3
- package/dist/chunks/{calculated-field-identity-DzJBs2J8.js → calculated-field-identity-Dy_WpDdo.js} +1 -1
- package/dist/chunks/{card-config-utils-Cxnq2R6z.js → card-config-utils-CAyjC5Tp.js} +2 -2
- package/dist/chunks/{dashboard-briefing-launcher-BCEHJ_eD.js → dashboard-briefing-launcher-D5HGRwtb.js} +7 -7
- package/dist/chunks/{dashboard-briefing-launcher-CjZ4aE34.cjs → dashboard-briefing-launcher-RpT4b0d5.cjs} +1 -1
- package/dist/chunks/{dashboard-controls-DFfit5KH.js → dashboard-controls-C0Aw74JP.js} +9 -9
- package/dist/chunks/{dashboard-controls-f9aJ70Zu.cjs → dashboard-controls-DidqEx0U.cjs} +1 -1
- package/dist/chunks/{dashboard-json-DVtcA02f.js → dashboard-json-B5LLO49G.js} +5 -5
- package/dist/chunks/{dashboard-json-deqQC-UR.cjs → dashboard-json-rY4lTftA.cjs} +1 -1
- package/dist/chunks/{edit-dashboard-visual-lJ6rDH3w.js → edit-dashboard-visual-D3TrgFMg.js} +364 -361
- package/dist/chunks/{edit-dashboard-visual-DK6lSC_p.cjs → edit-dashboard-visual-NABO8NBr.cjs} +3 -3
- package/dist/chunks/{editor-action-buttons-Bnxxa439.js → editor-action-buttons-BfWg6DdZ.js} +4 -4
- package/dist/chunks/{editor-action-buttons-CmDaQbPN.cjs → editor-action-buttons-xQ5aj-0q.cjs} +1 -1
- package/dist/chunks/{field-aggregations-Dl2A3rbV.js → field-aggregations-BQjogiI1.js} +1 -1
- package/dist/chunks/{index-ylOpKRDu.js → index-B0KwXM6P.js} +117 -116
- package/dist/chunks/index-CapO5Uw9.cjs +4 -0
- package/dist/chunks/{index-UNKSfi7s.cjs → index-Dgv9vzT0.cjs} +230 -230
- package/dist/chunks/{index-BVVl2JDK.js → index-DqTelnri.js} +27499 -27198
- package/dist/chunks/{matrix-control-sources-KbZe1gj_.js → matrix-control-sources-B1K7x0SL.js} +2 -2
- package/dist/chunks/matrix-formatter-Qk8xsR05.cjs +1 -0
- package/dist/chunks/{matrix-formatter-CCXNRt3s.js → matrix-formatter-WBgtebUT.js} +8 -8
- package/dist/chunks/numeric-presentation-VhMUHfrJ.js +537 -0
- package/dist/chunks/numeric-presentation-mY6wJMdB.cjs +1 -0
- package/dist/chunks/{pivot-header-presentation-BSZhB1g-.js → pivot-header-presentation-CGtudHo7.js} +4 -4
- package/dist/chunks/{pivot-header-presentation-EoUS5ze5.cjs → pivot-header-presentation-DV2aBB6p.cjs} +2 -2
- package/dist/chunks/{pivot-result-lifecycle-kRhiJkzg.js → pivot-result-lifecycle-BFO354lk.js} +7 -7
- package/dist/chunks/pivot-result-lifecycle-OXAgoIYm.cjs +1 -0
- package/dist/chunks/raw-temporal-7bFbXd2a.js +930 -0
- package/dist/chunks/raw-temporal-CYdOOyR5.cjs +1 -0
- package/dist/chunks/{report-preferences-dialog-CHXPEl7v.js → report-preferences-dialog-BzxqfcF8.js} +3 -3
- package/dist/chunks/{report-preferences-dialog-Cto0vDwI.cjs → report-preferences-dialog-DLnhOXXg.cjs} +1 -1
- package/dist/chunks/{semantic-format-DwqGYx4V.js → semantic-format-Baqp8kD_.js} +1 -1
- package/dist/chunks/semantic-format-Bd7HmLG_.cjs +1 -0
- package/dist/chunks/{switch-DNbWXEOP.cjs → switch-C0520nRt.cjs} +24 -24
- package/dist/chunks/{switch-DNv-hVmt.js → switch-evlnTA4t.js} +3180 -3092
- package/dist/chunks/{temporal-bucket-DlFuhCnT.js → temporal-bucket-PcLFSYWX.js} +6 -6
- package/dist/chunks/temporal-input-presentation-2RJrvmYL.js +222 -0
- package/dist/chunks/temporal-input-presentation-BIOSVWCL.cjs +1 -0
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +6 -6
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +2 -2
- package/dist/data-app-sdk/index.cjs +1 -1
- package/dist/data-app-sdk/index.js +1 -1
- package/dist/format-utils/index.cjs +3 -3
- package/dist/format-utils/index.js +77 -73
- package/dist/index.cjs +1 -1
- package/dist/index.js +10 -10
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/editor/editor-main/dashboard-variable-node.d.ts +7 -3
- package/dist/types/components/editor/editor-main/text-card-rich-editor.d.ts +4 -1
- package/dist/types/lib/charts/chart-availability.d.ts +6 -0
- package/dist/types/lib/dashboard-inputs/dashboard-input-display.d.ts +11 -0
- package/dist/types/lib/dashboard-inputs/dashboard-input-text.d.ts +2 -1
- package/dist/types/lib/dashboard-inputs/text-card-rich-content.d.ts +3 -2
- package/dist/types/lib/dashboard-inputs/text-variable-options.d.ts +5 -4
- package/dist/types/lib/document/document-variables.d.ts +8 -4
- package/dist/types/lib/text-variables/temporal-input-text.d.ts +28 -0
- package/dist/types/lib/text-variables/text-variable-types.d.ts +17 -1
- package/dist/types/lib/types/common-types.d.ts +11 -1
- package/dist/types/shared/format-utils/index.d.ts +1 -0
- package/dist/types/shared/format-utils/temporal-input-presentation.d.ts +46 -0
- package/package.json +1 -1
- package/dist/chunks/index-C8w91oj4.js +0 -328
- package/dist/chunks/index-Cw2ypaFl.cjs +0 -1
- package/dist/chunks/index-DfqMtR9S.cjs +0 -4
- package/dist/chunks/matrix-formatter-BJTO8ky9.cjs +0 -1
- package/dist/chunks/pivot-result-lifecycle-gl9cBfB-.cjs +0 -1
- package/dist/chunks/raw-temporal-BqOfk-xN.js +0 -1137
- package/dist/chunks/raw-temporal-eJXecCyJ.cjs +0 -1
- package/dist/chunks/semantic-format-mVI32OJH.cjs +0 -1
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
var rt = Object.defineProperty;
|
|
2
2
|
var nt = (e, r, t) => r in e ? rt(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
|
|
3
3
|
var F = (e, r, t) => nt(e, typeof r != "symbol" ? r + "" : r, t);
|
|
4
|
-
import {
|
|
5
|
-
import { al as Ee, a5 as
|
|
4
|
+
import { k as ke, g as ot } from "./numeric-presentation-VhMUHfrJ.js";
|
|
5
|
+
import { al as Ee, a5 as at, a7 as ce, $ as me, t as it } from "./validators-CsdOtZI6.js";
|
|
6
6
|
import "./matrix-continuation-C4sRcjZU.js";
|
|
7
|
-
import { $ as
|
|
7
|
+
import { $ as ct, a1 as lt } from "./matrix-operation-contract-D32U2CSw.js";
|
|
8
8
|
import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as ue } from "../value-format-preferences/index.js";
|
|
9
|
-
import { k as
|
|
9
|
+
import { k as st, i as dt, g as mt, j as ut, e as ft, M as pt, c as yt, b as ht, P as j } from "./pivot-result-lifecycle-BFO354lk.js";
|
|
10
10
|
import { z as C } from "zod";
|
|
11
|
-
import { r as
|
|
12
|
-
import { h as Se, i as fe, r as _e, a as Fe, v as
|
|
13
|
-
import { r as
|
|
14
|
-
import { a as Re, s as
|
|
11
|
+
import { r as gt } from "./matrix-definition-E5gXXSTZ.js";
|
|
12
|
+
import { h as Se, i as fe, r as _e, a as Fe, v as vt, b as bt } from "./card-config-utils-CAyjC5Tp.js";
|
|
13
|
+
import { r as It } from "./matrix-card-CIlz0Dnp.js";
|
|
14
|
+
import { a as Re, s as wt, i as Ct, o as Tt } from "./field-aggregations-BQjogiI1.js";
|
|
15
|
+
import { h as J, r as G, c as xt, R as $t, v as kt } from "./raw-temporal-7bFbXd2a.js";
|
|
15
16
|
import { r as L, b as Et, d as St, P as _t } from "./pivot-result-identity-BzUQiCEV.js";
|
|
16
17
|
import { v as Ft, a as Rt } from "./temporal-bucket-contract-DTLDRzgV.js";
|
|
17
|
-
import { f as At,
|
|
18
|
+
import { f as At, c as Pt, r as Ae, D as Mt } from "./temporal-bucket-PcLFSYWX.js";
|
|
18
19
|
import { v as Pe } from "./raw-temporal-contract-BQZIJ1fn.js";
|
|
19
20
|
import { r as Bt, a as Dt, b as Ot } from "./canonical-result-keys-CEQefvdO.js";
|
|
20
21
|
const Kt = `import pandas as pd
|
|
21
22
|
df = pd.DataFrame(data) # 'data' contains the query result
|
|
22
23
|
result = df.to_dict('records') # must return 'result' as [dict] type
|
|
23
24
|
`;
|
|
24
|
-
function
|
|
25
|
+
function On(e) {
|
|
25
26
|
return {
|
|
26
27
|
databaseName: (e == null ? void 0 : e.lastSelectedDatabase) || "",
|
|
27
28
|
schemaName: (e == null ? void 0 : e.lastSelectedSchema) || "",
|
|
@@ -57,7 +58,7 @@ function Lt(e) {
|
|
|
57
58
|
Ee(e.dataType)
|
|
58
59
|
))
|
|
59
60
|
return;
|
|
60
|
-
if (
|
|
61
|
+
if (at(e.granularity)) return e;
|
|
61
62
|
if (!zt(e)) return;
|
|
62
63
|
if (!_e({
|
|
63
64
|
fieldId: e.id,
|
|
@@ -97,7 +98,7 @@ function pe(e) {
|
|
|
97
98
|
})
|
|
98
99
|
};
|
|
99
100
|
}
|
|
100
|
-
function
|
|
101
|
+
function Kn(e) {
|
|
101
102
|
if (fe(e.card))
|
|
102
103
|
return pe({
|
|
103
104
|
...e,
|
|
@@ -105,12 +106,12 @@ function On(e) {
|
|
|
105
106
|
supportsCardType: (r) => r === "table"
|
|
106
107
|
});
|
|
107
108
|
}
|
|
108
|
-
function
|
|
109
|
+
function Nn(e) {
|
|
109
110
|
if (fe(e.card))
|
|
110
111
|
return pe({
|
|
111
112
|
...e,
|
|
112
113
|
card: e.card,
|
|
113
|
-
supportsCardType:
|
|
114
|
+
supportsCardType: Ct
|
|
114
115
|
});
|
|
115
116
|
}
|
|
116
117
|
function Vt(e) {
|
|
@@ -121,14 +122,14 @@ function Vt(e) {
|
|
|
121
122
|
// Raw detail-table presentation has its own result/adapter contract.
|
|
122
123
|
// This module remains grouped-only even though the shared producer
|
|
123
124
|
// registry now recognizes detailTable.
|
|
124
|
-
supportsCardType: (r) => r !== "detailTable" &&
|
|
125
|
+
supportsCardType: (r) => r !== "detailTable" && wt(r)
|
|
125
126
|
});
|
|
126
127
|
}
|
|
127
128
|
const we = /* @__PURE__ */ new WeakMap();
|
|
128
129
|
function qt(e) {
|
|
129
130
|
const r = we.get(e);
|
|
130
131
|
if (r) return r;
|
|
131
|
-
const t =
|
|
132
|
+
const t = st(e);
|
|
132
133
|
return we.set(e, t), t;
|
|
133
134
|
}
|
|
134
135
|
function q(e, r) {
|
|
@@ -136,7 +137,7 @@ function q(e, r) {
|
|
|
136
137
|
return t.length === n.length && t.every((o, a) => o === n[a]);
|
|
137
138
|
}
|
|
138
139
|
function jt(e, r) {
|
|
139
|
-
const t =
|
|
140
|
+
const t = dt({
|
|
140
141
|
groupByFields: r.groupByColumns,
|
|
141
142
|
metricFields: r.metricColumns,
|
|
142
143
|
pivotByFields: r.pivotByColumns,
|
|
@@ -213,7 +214,7 @@ function Ht(e) {
|
|
|
213
214
|
}
|
|
214
215
|
);
|
|
215
216
|
}
|
|
216
|
-
function
|
|
217
|
+
function zn(e, r) {
|
|
217
218
|
return !r || r.byColumnKey.size === 0 ? e.map((t) => ({ ...t })) : e.map((t) => {
|
|
218
219
|
const n = { ...t };
|
|
219
220
|
return r.byColumnKey.forEach((o, a) => {
|
|
@@ -224,7 +225,7 @@ function Nn(e, r) {
|
|
|
224
225
|
}), n;
|
|
225
226
|
});
|
|
226
227
|
}
|
|
227
|
-
function
|
|
228
|
+
function Ln(e) {
|
|
228
229
|
var p;
|
|
229
230
|
if (!e.result || typeof e.result != "object") return !1;
|
|
230
231
|
const r = e.result;
|
|
@@ -289,7 +290,7 @@ function zn(e) {
|
|
|
289
290
|
return ((E = T == null ? void 0 : T.temporalBucket) == null ? void 0 : E.granularity) === w.granularity;
|
|
290
291
|
});
|
|
291
292
|
} catch (s) {
|
|
292
|
-
if (s instanceof
|
|
293
|
+
if (s instanceof ut) return !1;
|
|
293
294
|
throw s;
|
|
294
295
|
}
|
|
295
296
|
if (n === 0)
|
|
@@ -437,7 +438,7 @@ function Yt(e, r = Mt, t = "en-US") {
|
|
|
437
438
|
presentation: a.presentation
|
|
438
439
|
};
|
|
439
440
|
}
|
|
440
|
-
function
|
|
441
|
+
function Vn(e) {
|
|
441
442
|
const r = e.activation;
|
|
442
443
|
if (!r)
|
|
443
444
|
return {
|
|
@@ -465,7 +466,7 @@ function Ln(e) {
|
|
|
465
466
|
`Result identity "${u}" declares ${d.granularity} buckets for active ${c.granularity} field "${c.id}".`,
|
|
466
467
|
{ cardId: e.card.id, fieldId: c.id, columnKey: u }
|
|
467
468
|
);
|
|
468
|
-
const p = e.executionSnapshot && e.dashboardId ?
|
|
469
|
+
const p = e.executionSnapshot && e.dashboardId ? mt({
|
|
469
470
|
snapshot: e.executionSnapshot,
|
|
470
471
|
scope: {
|
|
471
472
|
dashboardId: e.dashboardId,
|
|
@@ -596,7 +597,7 @@ function Ln(e) {
|
|
|
596
597
|
}
|
|
597
598
|
return { byColumnKey: n, byFieldId: o, byFieldRole: a };
|
|
598
599
|
}
|
|
599
|
-
function
|
|
600
|
+
function qn(e) {
|
|
600
601
|
var t, n;
|
|
601
602
|
const r = e.role ? Gt({
|
|
602
603
|
presentation: e.presentation,
|
|
@@ -722,11 +723,11 @@ function ye(e) {
|
|
|
722
723
|
presentation: { mode: "auto" }
|
|
723
724
|
};
|
|
724
725
|
}
|
|
725
|
-
function
|
|
726
|
+
function jn(e) {
|
|
726
727
|
return e === "instant" ? "yyyy-MM-dd'T'HH:mm:ssXXX" : e === "wall_datetime" ? "yyyy-MM-dd'T'HH:mm:ss" : "yyyy-MM-dd";
|
|
727
728
|
}
|
|
728
|
-
function
|
|
729
|
-
|
|
729
|
+
function Un(e) {
|
|
730
|
+
kt({
|
|
730
731
|
dialect: "date_fns",
|
|
731
732
|
pattern: e.pattern,
|
|
732
733
|
valueKind: e.valueKind
|
|
@@ -757,7 +758,7 @@ function Qt(e) {
|
|
|
757
758
|
);
|
|
758
759
|
return a.text;
|
|
759
760
|
}
|
|
760
|
-
function
|
|
761
|
+
function Gn(e) {
|
|
761
762
|
try {
|
|
762
763
|
return { ok: !0, text: Qt(e) };
|
|
763
764
|
} catch (r) {
|
|
@@ -783,7 +784,7 @@ function Jt(e) {
|
|
|
783
784
|
}
|
|
784
785
|
);
|
|
785
786
|
}
|
|
786
|
-
function
|
|
787
|
+
function Hn(e) {
|
|
787
788
|
var t, n, o;
|
|
788
789
|
if (!Jt(e)) return e;
|
|
789
790
|
const r = ((n = (t = e.preferences) == null ? void 0 : t.tablePrefs) == null ? void 0 : n.columnSettingsMap) || {};
|
|
@@ -824,7 +825,7 @@ function Xt() {
|
|
|
824
825
|
function le(e, r) {
|
|
825
826
|
return e === void 0 ? { kind: "invalid", error: r } : {
|
|
826
827
|
kind: "invalid",
|
|
827
|
-
error: e instanceof S ? e : e instanceof
|
|
828
|
+
error: e instanceof S ? e : e instanceof $t ? new S(
|
|
828
829
|
e.code,
|
|
829
830
|
e.message,
|
|
830
831
|
r.context
|
|
@@ -966,7 +967,7 @@ function tr(e) {
|
|
|
966
967
|
e
|
|
967
968
|
);
|
|
968
969
|
}
|
|
969
|
-
function
|
|
970
|
+
function Wn(e) {
|
|
970
971
|
var n, o, a;
|
|
971
972
|
const r = e.effectiveCardConfig ?? e.card.config, t = X(
|
|
972
973
|
e.card,
|
|
@@ -994,7 +995,7 @@ function Ce(e, r) {
|
|
|
994
995
|
};
|
|
995
996
|
const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
996
997
|
for (const o of e.presentation.activatedColumnKeys) {
|
|
997
|
-
const a =
|
|
998
|
+
const a = ft({
|
|
998
999
|
snapshot: r.executionSnapshot,
|
|
999
1000
|
scope: {
|
|
1000
1001
|
dashboardId: r.dashboardId,
|
|
@@ -1006,7 +1007,7 @@ function Ce(e, r) {
|
|
|
1006
1007
|
if (!a)
|
|
1007
1008
|
return {
|
|
1008
1009
|
kind: "invalid",
|
|
1009
|
-
error: new
|
|
1010
|
+
error: new pt(o)
|
|
1010
1011
|
};
|
|
1011
1012
|
const i = e.presentation.byColumnKey.get(o);
|
|
1012
1013
|
if (!i) continue;
|
|
@@ -1052,7 +1053,7 @@ function rr(e) {
|
|
|
1052
1053
|
d.dateFormat
|
|
1053
1054
|
);
|
|
1054
1055
|
if (!u) continue;
|
|
1055
|
-
const p =
|
|
1056
|
+
const p = xt({
|
|
1056
1057
|
columnKey: c,
|
|
1057
1058
|
values: e.records.map((b) => {
|
|
1058
1059
|
if (!Object.prototype.hasOwnProperty.call(b, c))
|
|
@@ -1132,7 +1133,7 @@ function rr(e) {
|
|
|
1132
1133
|
);
|
|
1133
1134
|
}
|
|
1134
1135
|
}
|
|
1135
|
-
function
|
|
1136
|
+
function Yn(e) {
|
|
1136
1137
|
if (e.value !== null && typeof e.value != "string")
|
|
1137
1138
|
return {
|
|
1138
1139
|
value: e.value,
|
|
@@ -1149,7 +1150,7 @@ function Wn(e) {
|
|
|
1149
1150
|
const r = e.presentation.formatValue(e.value);
|
|
1150
1151
|
return { value: e.value, label: r.text, result: r };
|
|
1151
1152
|
}
|
|
1152
|
-
function
|
|
1153
|
+
function Zn(e) {
|
|
1153
1154
|
if (!e.result || typeof e.result != "object") return !1;
|
|
1154
1155
|
const r = e.result;
|
|
1155
1156
|
if (e.expectedResultOwner !== void 0 && r.resultOwner !== e.expectedResultOwner || !Array.isArray(r.records)) return !1;
|
|
@@ -1183,7 +1184,7 @@ function Ne(e) {
|
|
|
1183
1184
|
var r;
|
|
1184
1185
|
return (r = e == null ? void 0 : e.cards) != null && r.length ? e.activeCardId && e.cards.find((t) => t.id === e.activeCardId) || e.cards[0] : null;
|
|
1185
1186
|
}
|
|
1186
|
-
function
|
|
1187
|
+
function Qn(e) {
|
|
1187
1188
|
var t;
|
|
1188
1189
|
const r = (e == null ? void 0 : e.frameObject) ?? ((t = e == null ? void 0 : e.visual) == null ? void 0 : t.frameObject);
|
|
1189
1190
|
return Ne(nr(r));
|
|
@@ -1345,7 +1346,7 @@ function lr(e) {
|
|
|
1345
1346
|
n in r || (r[n] = null);
|
|
1346
1347
|
return r;
|
|
1347
1348
|
}
|
|
1348
|
-
function
|
|
1349
|
+
function Jn(e) {
|
|
1349
1350
|
return e.map((r, t) => !r.customCardPreferences || r.customCardPreferences.slotIndex === t ? r : {
|
|
1350
1351
|
...r,
|
|
1351
1352
|
customCardPreferences: {
|
|
@@ -1354,17 +1355,17 @@ function Qn(e) {
|
|
|
1354
1355
|
}
|
|
1355
1356
|
});
|
|
1356
1357
|
}
|
|
1357
|
-
function
|
|
1358
|
+
function Xn(e) {
|
|
1358
1359
|
const r = ze(e);
|
|
1359
1360
|
if (r)
|
|
1360
1361
|
return he(r);
|
|
1361
1362
|
}
|
|
1362
|
-
function
|
|
1363
|
+
function eo(e, r, t) {
|
|
1363
1364
|
if (!e) return;
|
|
1364
1365
|
const n = ir(t, r);
|
|
1365
1366
|
return e.type === "custom" && n ? n : e.type;
|
|
1366
1367
|
}
|
|
1367
|
-
function
|
|
1368
|
+
function to(e, r, t) {
|
|
1368
1369
|
var v;
|
|
1369
1370
|
const n = {
|
|
1370
1371
|
dataSource: t.dataSource,
|
|
@@ -1392,7 +1393,7 @@ function eo(e, r, t) {
|
|
|
1392
1393
|
for (let h = 0; h < m; h += 1) {
|
|
1393
1394
|
const b = Le(e, h), w = he(b), g = !u && h === d, T = h, E = {
|
|
1394
1395
|
...n,
|
|
1395
|
-
id:
|
|
1396
|
+
id: vt(),
|
|
1396
1397
|
title: (g ? c == null ? void 0 : c.label : b == null ? void 0 : b.label) || `Tab ${h + 1}`,
|
|
1397
1398
|
tabTitle: (g ? c == null ? void 0 : c.label : b == null ? void 0 : b.label) || `Tab ${h + 1}`,
|
|
1398
1399
|
description: (g ? c == null ? void 0 : c.description : b == null ? void 0 : b.description) || "",
|
|
@@ -1466,10 +1467,10 @@ function mr(e, r) {
|
|
|
1466
1467
|
const n = (o = e.customCardPreferences) == null ? void 0 : o.visualType;
|
|
1467
1468
|
return n || ((a = e.customCardPreferences) != null && a.dataInputCardIds ? "multiple" : null);
|
|
1468
1469
|
}
|
|
1469
|
-
function
|
|
1470
|
+
function ro(e) {
|
|
1470
1471
|
return e.visualType === "multiple" || e.slots && e.slots.length > 0 || (e.minInputs || 0) > 1 || (e.maxInputs || 0) > 1 || (e.dataInputs || []).length > 1 ? "multiple" : "single";
|
|
1471
1472
|
}
|
|
1472
|
-
function
|
|
1473
|
+
function no(e) {
|
|
1473
1474
|
return Array.isArray(e) ? { records: e } : e;
|
|
1474
1475
|
}
|
|
1475
1476
|
class Y extends Error {
|
|
@@ -1497,7 +1498,7 @@ function ur(e, r) {
|
|
|
1497
1498
|
let l = !a.cardId;
|
|
1498
1499
|
for (const m of i) {
|
|
1499
1500
|
const c = (((o = m.document) == null ? void 0 : o.sections) || []).flatMap(
|
|
1500
|
-
(p) =>
|
|
1501
|
+
(p) => Tt(p)
|
|
1501
1502
|
), d = (m.frames || []).flatMap(
|
|
1502
1503
|
(p) => fr(p, a.cardId)
|
|
1503
1504
|
);
|
|
@@ -1543,7 +1544,7 @@ function fr(e, r) {
|
|
|
1543
1544
|
})
|
|
1544
1545
|
).filter((l) => l !== null);
|
|
1545
1546
|
}
|
|
1546
|
-
function
|
|
1547
|
+
function oo(e) {
|
|
1547
1548
|
return ur(e.dashboard, e.selections).flatMap(
|
|
1548
1549
|
({ card: r, attachmentIndex: t }) => {
|
|
1549
1550
|
var d, u, p, s;
|
|
@@ -1677,16 +1678,16 @@ const pr = /* @__PURE__ */ new Set([
|
|
|
1677
1678
|
"treemap",
|
|
1678
1679
|
"custom"
|
|
1679
1680
|
]);
|
|
1680
|
-
function
|
|
1681
|
+
function ao(e) {
|
|
1681
1682
|
var o, a, i;
|
|
1682
1683
|
const r = yr.has(e.type) && (e.type !== "custom" || !!((o = e.customCardPreferences) != null && o.url));
|
|
1683
1684
|
let t = !1;
|
|
1684
1685
|
try {
|
|
1685
|
-
t = !!
|
|
1686
|
+
t = !!It(e);
|
|
1686
1687
|
} catch {
|
|
1687
1688
|
return { formats: [], defaultFormat: null };
|
|
1688
1689
|
}
|
|
1689
|
-
return e.type === "text" || !r || !t &&
|
|
1690
|
+
return e.type === "text" || !r || !t && bt(e) ? { formats: [], defaultFormat: null } : {
|
|
1690
1691
|
formats: hr({
|
|
1691
1692
|
cardType: e.type,
|
|
1692
1693
|
allowDownload: (a = e.preferences) == null ? void 0 : a.allowDownload
|
|
@@ -1703,8 +1704,8 @@ function hr(e) {
|
|
|
1703
1704
|
function gr(e) {
|
|
1704
1705
|
return pr.has(e.cardType) && e.allowDownload !== !1 ? "csv" : "pdf";
|
|
1705
1706
|
}
|
|
1706
|
-
function
|
|
1707
|
-
const { config: r } = e, t =
|
|
1707
|
+
function io(e) {
|
|
1708
|
+
const { config: r } = e, t = gt({
|
|
1708
1709
|
spec: r.spec,
|
|
1709
1710
|
presentation: r.presentation,
|
|
1710
1711
|
defaults: r.defaultView,
|
|
@@ -1739,7 +1740,7 @@ const vr = C.object({
|
|
|
1739
1740
|
semanticDomainId: C.string().optional()
|
|
1740
1741
|
}).passthrough(),
|
|
1741
1742
|
active_filters: C.array(C.unknown()).default([])
|
|
1742
|
-
}).passthrough(),
|
|
1743
|
+
}).passthrough(), co = vr.extend({
|
|
1743
1744
|
dashboardId: C.string().min(1),
|
|
1744
1745
|
cardId: C.string().min(1),
|
|
1745
1746
|
formatOptions: C.object({
|
|
@@ -1754,7 +1755,7 @@ const vr = C.object({
|
|
|
1754
1755
|
});
|
|
1755
1756
|
})
|
|
1756
1757
|
});
|
|
1757
|
-
function
|
|
1758
|
+
function lo(e) {
|
|
1758
1759
|
return {
|
|
1759
1760
|
...e.controls,
|
|
1760
1761
|
type: "card",
|
|
@@ -1779,19 +1780,19 @@ function co(e) {
|
|
|
1779
1780
|
delimiter: e.delimiter,
|
|
1780
1781
|
includeHeaders: e.includeHeaders,
|
|
1781
1782
|
timezone: e.reportContext.calendar.tz,
|
|
1782
|
-
presentationExecutionSnapshot:
|
|
1783
|
+
presentationExecutionSnapshot: yt({
|
|
1783
1784
|
reportContext: e.reportContext,
|
|
1784
1785
|
resolvedFormats: []
|
|
1785
1786
|
})
|
|
1786
1787
|
}
|
|
1787
1788
|
};
|
|
1788
1789
|
}
|
|
1789
|
-
const re = C.number().int().nonnegative(),
|
|
1790
|
+
const re = C.number().int().nonnegative(), so = C.discriminatedUnion("status", [
|
|
1790
1791
|
C.object({
|
|
1791
1792
|
status: C.literal("ok"),
|
|
1792
1793
|
request: me,
|
|
1793
|
-
layout:
|
|
1794
|
-
rows: C.array(
|
|
1794
|
+
layout: ct,
|
|
1795
|
+
rows: C.array(lt).readonly(),
|
|
1795
1796
|
usage: C.object({ rows: re, cells: re, bytes: re }).strict()
|
|
1796
1797
|
}).strict(),
|
|
1797
1798
|
C.object({
|
|
@@ -2048,13 +2049,13 @@ const Ve = [
|
|
|
2048
2049
|
"SAT"
|
|
2049
2050
|
], xr = new Map(
|
|
2050
2051
|
Ve.map((e, r) => [e, r])
|
|
2051
|
-
),
|
|
2052
|
+
), mo = {
|
|
2052
2053
|
cadence: "weekly",
|
|
2053
2054
|
hour: 9,
|
|
2054
2055
|
minute: 0,
|
|
2055
2056
|
weekdays: [1]
|
|
2056
2057
|
};
|
|
2057
|
-
function
|
|
2058
|
+
function uo(e) {
|
|
2058
2059
|
if (typeof e != "string" || e.length === 0 || e !== e.trim() || /^(?:(?:UTC|GMT)[+-]|[+-]\d{2}:\d{2}$)/.test(e))
|
|
2059
2060
|
return !1;
|
|
2060
2061
|
try {
|
|
@@ -2073,7 +2074,7 @@ function qe(e) {
|
|
|
2073
2074
|
(t, n) => !Number.isInteger(t) || t < 0 || t > 6 || n > 0 && t === r[n - 1]
|
|
2074
2075
|
) ? null : r;
|
|
2075
2076
|
}
|
|
2076
|
-
function
|
|
2077
|
+
function fo(e) {
|
|
2077
2078
|
if (!$r(e))
|
|
2078
2079
|
throw new Error("Choose a valid schedule time.");
|
|
2079
2080
|
const r = `${e.minute} ${e.hour}`;
|
|
@@ -2147,7 +2148,7 @@ function Sr(e, r) {
|
|
|
2147
2148
|
return null;
|
|
2148
2149
|
}
|
|
2149
2150
|
}
|
|
2150
|
-
function
|
|
2151
|
+
function po(e, r, t = "en-US") {
|
|
2151
2152
|
const n = kr(e);
|
|
2152
2153
|
if (!n.ok) return null;
|
|
2153
2154
|
try {
|
|
@@ -2174,10 +2175,10 @@ function fo(e, r, t = "en-US") {
|
|
|
2174
2175
|
return null;
|
|
2175
2176
|
}
|
|
2176
2177
|
}
|
|
2177
|
-
function
|
|
2178
|
+
function yo(e) {
|
|
2178
2179
|
return e != null && e.role ? e.type === "tenant" ? e.role === "POWER_USER" : ["AUTHOR", "ADMIN", "SUPER_ADMIN"].includes(e.role) : !1;
|
|
2179
2180
|
}
|
|
2180
|
-
function
|
|
2181
|
+
function ho(e) {
|
|
2181
2182
|
return e.canCreate ? [
|
|
2182
2183
|
...e.scheduledReportAvailable ? ["scheduled_report"] : [],
|
|
2183
2184
|
...e.analyticalBriefingsEnabled ? ["analytical_briefing"] : []
|
|
@@ -2190,7 +2191,7 @@ function _r(e) {
|
|
|
2190
2191
|
function Fr(e) {
|
|
2191
2192
|
return e.body.type === "generated_analysis" ? "Analytical briefing" : e.body.type === "custom_message" && e.attachments.length > 0 && _r(e.deliveryConfig) ? e.scheduleExpr ? "Scheduled report" : "On-demand report" : "Plain briefing";
|
|
2192
2193
|
}
|
|
2193
|
-
function
|
|
2194
|
+
function go(e) {
|
|
2194
2195
|
const r = Fr(e), t = r === "Scheduled report" || r === "On-demand report" ? "report" : "briefing";
|
|
2195
2196
|
return {
|
|
2196
2197
|
typeLabel: r,
|
|
@@ -2240,9 +2241,9 @@ function Ar(e) {
|
|
|
2240
2241
|
return (n.kind === "metric" && typeof n.metricId == "string" && !!n.metricId.trim() || n.kind === "column" && typeof n.columnKey == "string" && !!n.columnKey.trim() || n.kind === "matrix_measure" && typeof n.measureId == "string" && !!n.measureId.trim()) && ke(r.format).ok;
|
|
2241
2242
|
}
|
|
2242
2243
|
function Pr(e) {
|
|
2243
|
-
return e == null ? "" : Ar(e) ?
|
|
2244
|
+
return e == null ? "" : Ar(e) ? ot(e.value, e.format) : String(e);
|
|
2244
2245
|
}
|
|
2245
|
-
function
|
|
2246
|
+
function vo(e) {
|
|
2246
2247
|
return [e.delta, e.percentChange].filter(
|
|
2247
2248
|
(r) => r != null
|
|
2248
2249
|
).map(Pr).filter(Boolean).join(" / ");
|
|
@@ -3047,7 +3048,7 @@ function tn(e) {
|
|
|
3047
3048
|
blocks: i
|
|
3048
3049
|
};
|
|
3049
3050
|
}
|
|
3050
|
-
function
|
|
3051
|
+
function bo(e) {
|
|
3051
3052
|
try {
|
|
3052
3053
|
return {
|
|
3053
3054
|
valid: !0,
|
|
@@ -3097,7 +3098,7 @@ function on(e, r, t) {
|
|
|
3097
3098
|
if (n.matrix !== void 0) {
|
|
3098
3099
|
const c = k(n.matrix, `${r}.matrix`, t);
|
|
3099
3100
|
I(c, `${r}.matrix`, ["config", "content"], t);
|
|
3100
|
-
const d =
|
|
3101
|
+
const d = it.safeParse(c.config);
|
|
3101
3102
|
d.success || f(t, `${r}.matrix.config`, "Expected a valid Matrix definition.");
|
|
3102
3103
|
const u = D(
|
|
3103
3104
|
c.content,
|
|
@@ -3397,7 +3398,7 @@ function Xe(e) {
|
|
|
3397
3398
|
), t.kind !== se && f(r, "kind", "Expected BRIEFING.");
|
|
3398
3399
|
let n;
|
|
3399
3400
|
try {
|
|
3400
|
-
n =
|
|
3401
|
+
n = ht(
|
|
3401
3402
|
t.presentationExecutionSnapshot
|
|
3402
3403
|
);
|
|
3403
3404
|
} catch (c) {
|
|
@@ -3424,7 +3425,7 @@ function Xe(e) {
|
|
|
3424
3425
|
...m ? { limits: m } : {}
|
|
3425
3426
|
};
|
|
3426
3427
|
}
|
|
3427
|
-
function
|
|
3428
|
+
function Io(e) {
|
|
3428
3429
|
return Xe({
|
|
3429
3430
|
...e,
|
|
3430
3431
|
kind: se
|
|
@@ -3800,13 +3801,13 @@ function Ie(e) {
|
|
|
3800
3801
|
deliveryConfig: s
|
|
3801
3802
|
};
|
|
3802
3803
|
}
|
|
3803
|
-
function Io(e) {
|
|
3804
|
-
return Ie(e);
|
|
3805
|
-
}
|
|
3806
3804
|
function wo(e) {
|
|
3807
3805
|
return Ie(e);
|
|
3808
3806
|
}
|
|
3809
3807
|
function Co(e) {
|
|
3808
|
+
return Ie(e);
|
|
3809
|
+
}
|
|
3810
|
+
function To(e) {
|
|
3810
3811
|
try {
|
|
3811
3812
|
return { valid: !0, value: Ie(e), issues: [] };
|
|
3812
3813
|
} catch (r) {
|
|
@@ -3815,7 +3816,7 @@ function Co(e) {
|
|
|
3815
3816
|
throw r;
|
|
3816
3817
|
}
|
|
3817
3818
|
}
|
|
3818
|
-
function
|
|
3819
|
+
function xo(e) {
|
|
3819
3820
|
try {
|
|
3820
3821
|
return { valid: !0, value: Xe(e), issues: [] };
|
|
3821
3822
|
} catch (r) {
|
|
@@ -3824,7 +3825,7 @@ function To(e) {
|
|
|
3824
3825
|
throw r;
|
|
3825
3826
|
}
|
|
3826
3827
|
}
|
|
3827
|
-
function
|
|
3828
|
+
function $o(e) {
|
|
3828
3829
|
return typeof e == "string" && je.has(e);
|
|
3829
3830
|
}
|
|
3830
3831
|
function et(e) {
|
|
@@ -3832,17 +3833,17 @@ function et(e) {
|
|
|
3832
3833
|
}
|
|
3833
3834
|
export {
|
|
3834
3835
|
kr as $,
|
|
3835
|
-
|
|
3836
|
-
|
|
3836
|
+
Hn as A,
|
|
3837
|
+
oo as B,
|
|
3837
3838
|
hr as C,
|
|
3838
|
-
|
|
3839
|
-
|
|
3839
|
+
io as D,
|
|
3840
|
+
lo as E,
|
|
3840
3841
|
X as F,
|
|
3841
3842
|
Gt as G,
|
|
3842
|
-
|
|
3843
|
-
|
|
3843
|
+
Kn as H,
|
|
3844
|
+
Yn as I,
|
|
3844
3845
|
N as J,
|
|
3845
|
-
|
|
3846
|
+
qn as K,
|
|
3846
3847
|
Nt as L,
|
|
3847
3848
|
qt as M,
|
|
3848
3849
|
jt as N,
|
|
@@ -3850,25 +3851,25 @@ export {
|
|
|
3850
3851
|
er as P,
|
|
3851
3852
|
ye as Q,
|
|
3852
3853
|
Yt as R,
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3854
|
+
Wn as S,
|
|
3855
|
+
zn as T,
|
|
3856
|
+
jn as U,
|
|
3857
|
+
Un as V,
|
|
3858
|
+
Gn as W,
|
|
3858
3859
|
Ke as X,
|
|
3859
3860
|
S as Y,
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3861
|
+
ao as Z,
|
|
3862
|
+
uo as _,
|
|
3863
|
+
ho as a,
|
|
3864
|
+
fo as a0,
|
|
3865
|
+
mo as a1,
|
|
3865
3866
|
_r as a2,
|
|
3866
|
-
|
|
3867
|
+
yo as a3,
|
|
3867
3868
|
Jt as a4,
|
|
3868
3869
|
nr as a5,
|
|
3869
3870
|
Ne as a6,
|
|
3870
|
-
|
|
3871
|
-
|
|
3871
|
+
Qn as a7,
|
|
3872
|
+
so as a8,
|
|
3872
3873
|
Kt as a9,
|
|
3873
3874
|
se as aa,
|
|
3874
3875
|
Rr as ab,
|
|
@@ -3878,46 +3879,46 @@ export {
|
|
|
3878
3879
|
R as af,
|
|
3879
3880
|
Ar as ag,
|
|
3880
3881
|
Pr as ah,
|
|
3881
|
-
|
|
3882
|
+
vo as ai,
|
|
3882
3883
|
ee as aj,
|
|
3883
3884
|
tn as ak,
|
|
3884
|
-
|
|
3885
|
+
bo as al,
|
|
3885
3886
|
Xe as am,
|
|
3886
|
-
|
|
3887
|
+
Io as an,
|
|
3887
3888
|
Ie as ao,
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3889
|
+
wo as ap,
|
|
3890
|
+
Co as aq,
|
|
3891
|
+
To as ar,
|
|
3892
|
+
xo as as,
|
|
3893
|
+
$o as at,
|
|
3893
3894
|
et as au,
|
|
3894
|
-
|
|
3895
|
+
co as av,
|
|
3895
3896
|
vr as aw,
|
|
3896
3897
|
gr as ax,
|
|
3897
3898
|
Fr as ay,
|
|
3898
3899
|
sr as b,
|
|
3899
3900
|
cr as c,
|
|
3900
|
-
|
|
3901
|
-
|
|
3901
|
+
po as d,
|
|
3902
|
+
eo as e,
|
|
3902
3903
|
dr as f,
|
|
3903
|
-
|
|
3904
|
-
|
|
3904
|
+
go as g,
|
|
3905
|
+
ro as h,
|
|
3905
3906
|
xe as i,
|
|
3906
|
-
|
|
3907
|
+
to as j,
|
|
3907
3908
|
lr as k,
|
|
3908
|
-
|
|
3909
|
+
no as l,
|
|
3909
3910
|
Le as m,
|
|
3910
3911
|
W as n,
|
|
3911
|
-
|
|
3912
|
+
Jn as o,
|
|
3912
3913
|
he as p,
|
|
3913
|
-
|
|
3914
|
+
Xn as q,
|
|
3914
3915
|
mr as r,
|
|
3915
3916
|
Lt as s,
|
|
3916
|
-
|
|
3917
|
-
|
|
3917
|
+
On as t,
|
|
3918
|
+
Vn as u,
|
|
3918
3919
|
Vt as v,
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3920
|
+
Ln as w,
|
|
3921
|
+
Zn as x,
|
|
3922
|
+
Nn as y,
|
|
3922
3923
|
Be as z
|
|
3923
3924
|
};
|