react-semaphor 0.1.540 → 0.1.542
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 +75 -75
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +3 -3
- package/dist/briefings/index.js +50 -45
- package/dist/chunks/apply-dashboard-operations-Btbp2-6v.js +2260 -0
- package/dist/chunks/{assistant-chat-ya7xopaC.js → assistant-chat-oHF5lTjA.js} +12 -12
- package/dist/chunks/bookmark-state-CXw7lZ50.js +118 -0
- package/dist/chunks/{calendar-day-equality-Bpl15IBo.js → calendar-day-equality-BmJAWduY.js} +180 -207
- package/dist/chunks/comparison-window-caption-ChIyd_-L.js +1618 -0
- package/dist/chunks/custom-visual-inputs-DUtpYZOk.js +323 -0
- package/dist/chunks/{dashboard-briefing-launcher-DJI-zfEq.js → dashboard-briefing-launcher-B-cm719R.js} +18 -18
- package/dist/chunks/{dashboard-controls-Dh7HqoKy.js → dashboard-controls-CIn22Qgp.js} +69 -70
- package/dist/chunks/{dashboard-filter-value-compatibility-D95O4nd7.js → dashboard-filter-value-compatibility-CwQ_iSNb.js} +2 -2
- package/dist/chunks/{dashboard-json-BnmlB71h.js → dashboard-json-ZUYsIExq.js} +4 -4
- package/dist/chunks/{dashboard-B6Bithfl.js → dashboard-s5WJBcK8.js} +1 -1
- package/dist/chunks/{document-dashboard-inputs-BrYYlRVo.js → document-dashboard-inputs-C6MJVyoI.js} +2357 -4948
- package/dist/chunks/document-sheet-utils-BsZUnHRl.js +3619 -0
- package/dist/chunks/{edit-dashboard-visual-CydOkSko.js → edit-dashboard-visual-DLdereA7.js} +728 -728
- package/dist/chunks/{filter-value-text-BhWugPWE.js → filter-value-text-CYsVYPuD.js} +18 -19
- package/dist/chunks/index-CV5rHq5D.js +2673 -0
- package/dist/chunks/{matrix-analytical-definition-bcprSe4u.js → matrix-analytical-definition-C7Gb0e12.js} +1 -1
- package/dist/chunks/{matrix-card-CJn1hB5V.js → matrix-card-DjwWcCo8.js} +2 -2
- package/dist/chunks/{matrix-formatter-DQ8avoIQ.js → matrix-formatter-BnsTX90d.js} +430 -417
- package/dist/chunks/{matrix-member-presentation-BNPSDKBG.js → matrix-member-presentation-CQGdVks6.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-B8PBF1Gd.js → matrix-operation-contract-8OIO4gob.js} +65 -65
- package/dist/chunks/metric-comparison-DEwi9uc2.js +498 -0
- package/dist/chunks/numeric-presentation-BSAqPpHt.js +5227 -0
- package/dist/chunks/{pivot-header-presentation-MkcKnjn3.js → pivot-header-presentation-DHcx1XGQ.js} +1 -1
- package/dist/chunks/{pivot-result-identity-D6hhcRXi.js → pivot-result-identity-DJhXXcns.js} +1 -1
- package/dist/chunks/pivot-result-lifecycle-BBlAfBA0.js +1155 -0
- package/dist/chunks/raw-temporal-presentation-CZ2r0Vb_.js +585 -0
- package/dist/chunks/{report-preferences-dialog-neMDolLg.js → report-preferences-dialog-MRUWpMcJ.js} +75 -75
- package/dist/chunks/{report-runtime-context-B984Nq1E.js → report-runtime-context-Dq8XyODK.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-CCrLpfSQ.js → saved-dashboard-context-DjPqgFly.js} +233 -206
- package/dist/chunks/{selection-reducer-vKIb_jS6.js → selection-reducer-Dj_8xD69.js} +1 -1
- package/dist/chunks/{semaphor-ready-indicator--4DWtVBu.js → semaphor-ready-indicator-BWSpRsPj.js} +38555 -40449
- package/dist/chunks/{shelf-drop-preview-context-CpdB5ois.js → shelf-drop-preview-context-CQbFLm3q.js} +6 -6
- package/dist/chunks/sort-target-MT1WK1vX.js +29 -0
- package/dist/chunks/{source-entity-resolution-CVA1a85c.js → source-entity-resolution-BYn9giz3.js} +1 -1
- package/dist/chunks/{switch-DWEWiv1J.js → switch-C3jLxlG0.js} +2 -2
- package/dist/chunks/table-export-sheet-BHSnuZHd.js +949 -0
- package/dist/chunks/table-settings-CLZocegs.js +501 -0
- package/dist/chunks/temporal-bucket-D7NBrrtL.js +2071 -0
- package/dist/chunks/{token-types-bxUxXDX2.js → token-types-DBbZVQsm.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-8g6Zhphh.js → use-create-flow-overlay-state-BJDNqdOh.js} +151 -151
- package/dist/chunks/{validators-Ej1DdCXa.js → validators-DMHTpf7a.js} +73 -73
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +399 -380
- package/dist/data-app-sdk/index.js +5 -5
- package/dist/data-app-sdk-adapters/index.js +2 -2
- package/dist/data-app-sdk-validation/index.js +9 -9
- package/dist/format-utils/index.js +346 -238
- package/dist/index.js +174 -175
- package/dist/pdf-export-policy/index.js +20 -10
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/briefings/attachment-outcomes.d.ts +23 -0
- package/dist/types/briefings/attachments.d.ts +17 -1
- package/dist/types/briefings/index.d.ts +6 -3
- package/dist/types/index.js +48 -48
- package/dist/types/lib/api/exports-api.d.ts +11 -65
- package/dist/types/lib/dashboard-inputs/control-contract-overrides.d.ts +17 -0
- package/dist/types/lib/dashboard-viewer/export-table-view.d.ts +2 -0
- package/dist/types/lib/hooks/use-dashboard-card.d.ts +2 -0
- package/dist/types/lib/hooks/use-dashboard.d.ts +3 -6
- package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +8 -2
- package/dist/types/lib/matrix-table/matrix-delivery.d.ts +8 -6
- package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +50 -0
- package/dist/types/lib/query-context/card-server-request.d.ts +5 -1
- package/dist/types/lib/types/common-types.d.ts +7 -0
- package/dist/types/lib/types/explorer-types.d.ts +8 -2
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +3 -3
- package/dist/types/shared/assistant-context/index.d.ts +1 -1
- package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +23 -6
- package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +173 -0
- package/dist/types/shared/dashboard-authoring/card-query-request.d.ts +20 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +4 -3
- package/dist/types/shared/format-utils/attachment-filter-line.d.ts +14 -0
- package/dist/types/shared/format-utils/exporters/export-cells.d.ts +90 -0
- package/dist/types/shared/format-utils/exporters/export-file-format.d.ts +44 -0
- package/dist/types/shared/format-utils/exporters/index.d.ts +6 -0
- package/dist/types/shared/format-utils/exporters/xlsx-file.d.ts +90 -0
- package/dist/types/shared/format-utils/filter-line.d.ts +7 -0
- package/dist/types/shared/format-utils/formatters/date-formatter.d.ts +8 -12
- package/dist/types/shared/format-utils/formatters/index.d.ts +1 -1
- package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +2 -0
- package/dist/types/shared/format-utils/index.d.ts +3 -0
- package/dist/types/shared/format-utils/matrix-continuation.d.ts +55 -9
- package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +21 -1
- package/dist/types/shared/format-utils/matrix-export-xlsx.d.ts +27 -0
- package/dist/types/shared/format-utils/pdf-export-policy.d.ts +9 -0
- package/dist/types/shared/format-utils/presentation-execution.d.ts +27 -2
- package/dist/types/shared/format-utils/raw-temporal.d.ts +8 -0
- package/dist/types/shared/format-utils/table-export/index.d.ts +8 -0
- package/dist/types/shared/format-utils/table-export/prepare-table-export.d.ts +50 -0
- package/dist/types/shared/format-utils/table-export/table-export-formatting.d.ts +47 -0
- package/dist/types/shared/format-utils/table-export/table-export-raw-temporal.d.ts +40 -0
- package/dist/types/shared/format-utils/table-export/table-export-result.d.ts +31 -0
- package/dist/types/shared/format-utils/table-export/table-export-sheet.d.ts +38 -0
- package/dist/types/shared/format-utils/temporal-bucket.d.ts +9 -0
- package/package.json +2 -1
- package/dist/chunks/aggregate-table-row-presentation-BjK9YfMI.js +0 -979
- package/dist/chunks/apply-dashboard-operations-C-iahGka.js +0 -402
- package/dist/chunks/bookmark-state-k7y5SNGf.js +0 -331
- package/dist/chunks/calculated-field-identity-DcBS2NPP.js +0 -2161
- package/dist/chunks/canonical-result-keys-CEQefvdO.js +0 -33
- package/dist/chunks/common-types-CUf03Htv.js +0 -288
- package/dist/chunks/csv-utils-GUfKyT1J.js +0 -56
- package/dist/chunks/custom-visual-inputs-BrUOIwln.js +0 -3288
- package/dist/chunks/document-sheet-utils-C1eEldxs.js +0 -1076
- package/dist/chunks/index-CqMiAkay.js +0 -3164
- package/dist/chunks/matrix-definition-DQDI2okF.js +0 -206
- package/dist/chunks/metric-comparison-CojWeLqx.js +0 -392
- package/dist/chunks/pivot-result-lifecycle-8qCDmpKc.js +0 -804
- package/dist/chunks/raw-temporal-D61lr48Y.js +0 -1464
- package/dist/chunks/temporal-bucket-D8JF7zKz.js +0 -575
- package/dist/chunks/temporal-bucket-contract-DaOajRC7.js +0 -108
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
let T;
|
|
2
|
+
const E = new Uint8Array(16);
|
|
3
|
+
function F() {
|
|
4
|
+
if (!T && (T = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !T))
|
|
5
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
6
|
+
return T(E);
|
|
7
|
+
}
|
|
8
|
+
const a = [];
|
|
9
|
+
for (let e = 0; e < 256; ++e)
|
|
10
|
+
a.push((e + 256).toString(16).slice(1));
|
|
11
|
+
function A(e, t = 0) {
|
|
12
|
+
return a[e[t + 0]] + a[e[t + 1]] + a[e[t + 2]] + a[e[t + 3]] + "-" + a[e[t + 4]] + a[e[t + 5]] + "-" + a[e[t + 6]] + a[e[t + 7]] + "-" + a[e[t + 8]] + a[e[t + 9]] + "-" + a[e[t + 10]] + a[e[t + 11]] + a[e[t + 12]] + a[e[t + 13]] + a[e[t + 14]] + a[e[t + 15]];
|
|
13
|
+
}
|
|
14
|
+
const M = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), N = {
|
|
15
|
+
randomUUID: M
|
|
16
|
+
};
|
|
17
|
+
function R(e, t, r) {
|
|
18
|
+
if (N.randomUUID && !e)
|
|
19
|
+
return N.randomUUID();
|
|
20
|
+
e = e || {};
|
|
21
|
+
const n = e.random || (e.rng || F)();
|
|
22
|
+
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, A(n);
|
|
23
|
+
}
|
|
24
|
+
function S(e) {
|
|
25
|
+
if (!(e != null && e.expectedType)) return "table";
|
|
26
|
+
const t = Array.isArray(e.expectedType) ? e.expectedType[0] : e.expectedType;
|
|
27
|
+
return w(t) ? t : "table";
|
|
28
|
+
}
|
|
29
|
+
const v = [
|
|
30
|
+
"bar",
|
|
31
|
+
"horizontalBar",
|
|
32
|
+
"line",
|
|
33
|
+
"area",
|
|
34
|
+
"stackedArea",
|
|
35
|
+
"combo",
|
|
36
|
+
"pie",
|
|
37
|
+
"doughnut",
|
|
38
|
+
"radar",
|
|
39
|
+
"polarArea",
|
|
40
|
+
"bubble",
|
|
41
|
+
"scatter",
|
|
42
|
+
"stackedBar",
|
|
43
|
+
"stackedLine",
|
|
44
|
+
"table",
|
|
45
|
+
"pivotTable",
|
|
46
|
+
"aggregateTable",
|
|
47
|
+
"detailTable",
|
|
48
|
+
"kpi",
|
|
49
|
+
"pyramid",
|
|
50
|
+
"tornado",
|
|
51
|
+
"range",
|
|
52
|
+
"text",
|
|
53
|
+
"map",
|
|
54
|
+
"funnel",
|
|
55
|
+
"bullet",
|
|
56
|
+
"heatmap",
|
|
57
|
+
"treemap",
|
|
58
|
+
"custom"
|
|
59
|
+
];
|
|
60
|
+
function w(e) {
|
|
61
|
+
return v.includes(e);
|
|
62
|
+
}
|
|
63
|
+
function x(e) {
|
|
64
|
+
const t = e.position;
|
|
65
|
+
if (typeof t == "number") return t;
|
|
66
|
+
if (typeof t == "string") {
|
|
67
|
+
const r = t.match(/\d+/);
|
|
68
|
+
if (r) {
|
|
69
|
+
const n = Number(r[0]);
|
|
70
|
+
if (!Number.isNaN(n)) return n;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return Number.POSITIVE_INFINITY;
|
|
74
|
+
}
|
|
75
|
+
function g(e) {
|
|
76
|
+
if (typeof e == "number")
|
|
77
|
+
return { kind: "number", start: e, end: e };
|
|
78
|
+
if (typeof e == "string") {
|
|
79
|
+
const t = e.match(/^(\d+)$/);
|
|
80
|
+
if (t) {
|
|
81
|
+
const s = Number(t[1]);
|
|
82
|
+
return { kind: "number", start: s, end: s };
|
|
83
|
+
}
|
|
84
|
+
const r = e.match(/^(\d+)-(\d+)$/);
|
|
85
|
+
if (r) {
|
|
86
|
+
const s = Number(r[1]), d = Number(r[2]);
|
|
87
|
+
return { kind: "range", start: s, end: d };
|
|
88
|
+
}
|
|
89
|
+
const n = e.match(/^(\d+)\+$/);
|
|
90
|
+
if (n)
|
|
91
|
+
return { kind: "dynamic", start: Number(n[1]), end: Number.POSITIVE_INFINITY };
|
|
92
|
+
}
|
|
93
|
+
return null;
|
|
94
|
+
}
|
|
95
|
+
function V(e) {
|
|
96
|
+
return !e || e.length === 0 ? void 0 : [...e].sort(
|
|
97
|
+
(r, n) => x(r) - x(n)
|
|
98
|
+
)[0];
|
|
99
|
+
}
|
|
100
|
+
function U(e, t) {
|
|
101
|
+
if (!e || e.length === 0) return;
|
|
102
|
+
const r = [], n = [], s = [];
|
|
103
|
+
e.forEach((c) => {
|
|
104
|
+
const u = g(c.position);
|
|
105
|
+
u && (u.kind === "number" ? r.push(c) : u.kind === "range" ? n.push(c) : u.kind === "dynamic" && s.push(c));
|
|
106
|
+
});
|
|
107
|
+
const d = r.find((c) => {
|
|
108
|
+
const u = g(c.position);
|
|
109
|
+
return (u == null ? void 0 : u.kind) === "number" && u.start === t;
|
|
110
|
+
});
|
|
111
|
+
if (d) return d;
|
|
112
|
+
const I = n.sort(
|
|
113
|
+
(c, u) => x(c) - x(u)
|
|
114
|
+
).find((c) => {
|
|
115
|
+
const u = g(c.position);
|
|
116
|
+
return (u == null ? void 0 : u.kind) === "range" && t >= u.start && t <= u.end;
|
|
117
|
+
});
|
|
118
|
+
if (I) return I;
|
|
119
|
+
const l = s.map((c) => ({
|
|
120
|
+
slot: c,
|
|
121
|
+
parsed: g(c.position)
|
|
122
|
+
})).filter((c) => {
|
|
123
|
+
var u;
|
|
124
|
+
return ((u = c.parsed) == null ? void 0 : u.kind) === "dynamic";
|
|
125
|
+
}).sort(
|
|
126
|
+
(c, u) => {
|
|
127
|
+
var o, f;
|
|
128
|
+
return (((o = c.parsed) == null ? void 0 : o.start) ?? 0) - (((f = u.parsed) == null ? void 0 : f.start) ?? 0);
|
|
129
|
+
}
|
|
130
|
+
).filter((c) => {
|
|
131
|
+
var u;
|
|
132
|
+
return t >= (((u = c.parsed) == null ? void 0 : u.start) ?? 0);
|
|
133
|
+
}).sort(
|
|
134
|
+
(c, u) => {
|
|
135
|
+
var o, f;
|
|
136
|
+
return (((o = u.parsed) == null ? void 0 : o.start) ?? 0) - (((f = c.parsed) == null ? void 0 : f.start) ?? 0);
|
|
137
|
+
}
|
|
138
|
+
)[0];
|
|
139
|
+
return l == null ? void 0 : l.slot;
|
|
140
|
+
}
|
|
141
|
+
function O(e, t) {
|
|
142
|
+
const r = U(e, t);
|
|
143
|
+
if (r)
|
|
144
|
+
return S(r);
|
|
145
|
+
}
|
|
146
|
+
function $(e, t) {
|
|
147
|
+
var n;
|
|
148
|
+
const r = (n = e == null ? void 0 : e.customCardPreferences) == null ? void 0 : n.slotIndex;
|
|
149
|
+
return typeof r == "number" ? r : t;
|
|
150
|
+
}
|
|
151
|
+
function D(e, t) {
|
|
152
|
+
var r;
|
|
153
|
+
if (!((r = e == null ? void 0 : e.customCardPreferences) != null && r.url))
|
|
154
|
+
return !1;
|
|
155
|
+
if (e.type === "custom" || e.customCardPreferences.visualType === "multiple" || e.customCardPreferences.dataInputCardIds || (e.customCardPreferences.minInputs || 0) > 1 || (e.customCardPreferences.maxInputs || 0) > 1)
|
|
156
|
+
return !0;
|
|
157
|
+
if (t && t.length > 1) {
|
|
158
|
+
const n = t.filter(
|
|
159
|
+
(s) => {
|
|
160
|
+
var d;
|
|
161
|
+
return typeof ((d = s.customCardPreferences) == null ? void 0 : d.slotIndex) == "number";
|
|
162
|
+
}
|
|
163
|
+
);
|
|
164
|
+
if (n.length > 1 && n.some((s) => s.id !== e.id))
|
|
165
|
+
return !0;
|
|
166
|
+
}
|
|
167
|
+
return !1;
|
|
168
|
+
}
|
|
169
|
+
function j(e) {
|
|
170
|
+
const t = [];
|
|
171
|
+
let r = -1;
|
|
172
|
+
e.forEach((n, s) => {
|
|
173
|
+
const d = $(n, s);
|
|
174
|
+
d > r && (r = d), t[d] = n ?? null;
|
|
175
|
+
});
|
|
176
|
+
for (let n = 0; n <= r; n += 1)
|
|
177
|
+
n in t || (t[n] = null);
|
|
178
|
+
return t;
|
|
179
|
+
}
|
|
180
|
+
function Y(e) {
|
|
181
|
+
return e.map((t, r) => !t.customCardPreferences || t.customCardPreferences.slotIndex === r ? t : {
|
|
182
|
+
...t,
|
|
183
|
+
customCardPreferences: {
|
|
184
|
+
...t.customCardPreferences,
|
|
185
|
+
slotIndex: r
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
function _(e) {
|
|
190
|
+
const t = V(e);
|
|
191
|
+
if (t)
|
|
192
|
+
return S(t);
|
|
193
|
+
}
|
|
194
|
+
function q(e, t, r) {
|
|
195
|
+
if (!e) return;
|
|
196
|
+
const n = O(r, t);
|
|
197
|
+
return e.type === "custom" && n ? n : e.type;
|
|
198
|
+
}
|
|
199
|
+
function z(e, t, r) {
|
|
200
|
+
var P;
|
|
201
|
+
const n = {
|
|
202
|
+
dataSource: r.dataSource,
|
|
203
|
+
connectionId: r.connectionId,
|
|
204
|
+
lastSelectedDatabase: r.lastSelectedDatabase,
|
|
205
|
+
lastSelectedSchema: r.lastSelectedSchema,
|
|
206
|
+
lastSelectedTable: r.lastSelectedTable,
|
|
207
|
+
lastSelectedDatamodelId: r.lastSelectedDatamodelId,
|
|
208
|
+
datamodelId: r.datamodelId
|
|
209
|
+
}, s = {
|
|
210
|
+
type: "component",
|
|
211
|
+
visualType: "multiple",
|
|
212
|
+
url: t.url,
|
|
213
|
+
componentName: t.name,
|
|
214
|
+
icon: t.icon,
|
|
215
|
+
pluginChartType: t.chartType,
|
|
216
|
+
minInputs: t.minInputs,
|
|
217
|
+
maxInputs: t.maxInputs
|
|
218
|
+
}, d = t.minInputs || 1, I = e.map((i) => ({ slot: i, parsed: g(i.position) })).filter((i) => i.parsed !== null).reduce((i, p) => {
|
|
219
|
+
const h = p.parsed.end;
|
|
220
|
+
return Number.isFinite(h) ? Math.max(i, h) : i;
|
|
221
|
+
}, -1), b = Math.max(d, I + 1), l = V(e), c = l ? x(l) : 0;
|
|
222
|
+
let u = !1;
|
|
223
|
+
const o = [];
|
|
224
|
+
for (let i = 0; i < b; i += 1) {
|
|
225
|
+
const p = U(e, i), h = S(p), m = !u && i === c, k = i, C = {
|
|
226
|
+
...n,
|
|
227
|
+
id: R(),
|
|
228
|
+
title: (m ? l == null ? void 0 : l.label : p == null ? void 0 : p.label) || `Tab ${i + 1}`,
|
|
229
|
+
tabTitle: (m ? l == null ? void 0 : l.label : p == null ? void 0 : p.label) || `Tab ${i + 1}`,
|
|
230
|
+
description: (m ? l == null ? void 0 : l.description : p == null ? void 0 : p.description) || "",
|
|
231
|
+
type: h,
|
|
232
|
+
sql: "",
|
|
233
|
+
preferences: {
|
|
234
|
+
onClickFilter: [{ columnIndex: 0, expression: "" }]
|
|
235
|
+
},
|
|
236
|
+
...m && {
|
|
237
|
+
customCardPreferences: {
|
|
238
|
+
...s,
|
|
239
|
+
slotIndex: k
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
...!m && {
|
|
243
|
+
customCardPreferences: {
|
|
244
|
+
slotIndex: k
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
m && (u = !0), o.push(C);
|
|
249
|
+
}
|
|
250
|
+
if (!u && o.length > 0) {
|
|
251
|
+
const i = ((P = o[0].customCardPreferences) == null ? void 0 : P.slotIndex) ?? 0;
|
|
252
|
+
o[0] = {
|
|
253
|
+
...o[0],
|
|
254
|
+
type: o[0].type,
|
|
255
|
+
customCardPreferences: {
|
|
256
|
+
...s,
|
|
257
|
+
slotIndex: i
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
const f = o.findIndex(
|
|
262
|
+
(i) => {
|
|
263
|
+
var p;
|
|
264
|
+
return !!((p = i.customCardPreferences) != null && p.url);
|
|
265
|
+
}
|
|
266
|
+
);
|
|
267
|
+
if (f > 0) {
|
|
268
|
+
const [i] = o.splice(f, 1);
|
|
269
|
+
o.unshift(i);
|
|
270
|
+
}
|
|
271
|
+
return o;
|
|
272
|
+
}
|
|
273
|
+
function B({
|
|
274
|
+
frame: e,
|
|
275
|
+
configCard: t,
|
|
276
|
+
isMultiInputVisual: r
|
|
277
|
+
}) {
|
|
278
|
+
var s;
|
|
279
|
+
if (!r || !t)
|
|
280
|
+
return e.cards;
|
|
281
|
+
const n = (s = t.customCardPreferences) == null ? void 0 : s.dataInputCardIds;
|
|
282
|
+
return n ? Object.keys(n).sort((d, y) => Number(d) - Number(y)).map((d) => {
|
|
283
|
+
var I;
|
|
284
|
+
const y = (I = n[d]) == null ? void 0 : I.cardId;
|
|
285
|
+
return e.cards.find((b) => b.id === y) || null;
|
|
286
|
+
}) : e.cards;
|
|
287
|
+
}
|
|
288
|
+
function H(e, t) {
|
|
289
|
+
return t && D(t, e.cards) ? t : e.cards.find((r) => D(r, e.cards)) || null;
|
|
290
|
+
}
|
|
291
|
+
function L(e, t) {
|
|
292
|
+
var s, d;
|
|
293
|
+
if (!e) return null;
|
|
294
|
+
const r = t == null ? void 0 : t.visualType;
|
|
295
|
+
if (r) return r;
|
|
296
|
+
if (t != null && t.slots && t.slots.length > 0 || ((t == null ? void 0 : t.minInputs) || 0) > 1 || ((t == null ? void 0 : t.maxInputs) || 0) > 1 || ((t == null ? void 0 : t.dataInputs) || []).length > 1)
|
|
297
|
+
return "multiple";
|
|
298
|
+
const n = (s = e.customCardPreferences) == null ? void 0 : s.visualType;
|
|
299
|
+
return n || ((d = e.customCardPreferences) != null && d.dataInputCardIds ? "multiple" : null);
|
|
300
|
+
}
|
|
301
|
+
function G(e) {
|
|
302
|
+
return e.visualType === "multiple" || e.slots && e.slots.length > 0 || (e.minInputs || 0) > 1 || (e.maxInputs || 0) > 1 || (e.dataInputs || []).length > 1 ? "multiple" : "single";
|
|
303
|
+
}
|
|
304
|
+
function J(e) {
|
|
305
|
+
return Array.isArray(e) ? { records: e } : e;
|
|
306
|
+
}
|
|
307
|
+
export {
|
|
308
|
+
$ as a,
|
|
309
|
+
j as b,
|
|
310
|
+
q as c,
|
|
311
|
+
G as d,
|
|
312
|
+
z as e,
|
|
313
|
+
H as f,
|
|
314
|
+
B as g,
|
|
315
|
+
U as h,
|
|
316
|
+
D as i,
|
|
317
|
+
Y as j,
|
|
318
|
+
S as k,
|
|
319
|
+
_ as l,
|
|
320
|
+
J as n,
|
|
321
|
+
L as r,
|
|
322
|
+
R as v
|
|
323
|
+
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { jsx as t, jsxs as i, Fragment as $ } from "react/jsx-runtime";
|
|
2
2
|
import * as ue from "react";
|
|
3
3
|
import _t, { useState as F, useEffect as J, useCallback as j, useMemo as oe, useLayoutEffect as Pt, useRef as ge, useContext as pr } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { B as U, l as Le, q as dt, L as ie, j as Ot, c as ut, i as gr, Z as br, P as qe, a as He, b as Ge, S as $t } from "./switch-
|
|
6
|
-
import { cr as ht, bu as Ue, bv as Ve, bx as Re, cs as vr, ct as xr, aX as Be, aV as Je, cu as yr, cv as et, cw as mt, _ as tt, X as pe, u as T, cx as Cr, cy as wr, cz as Nr, Z as ee, b6 as Sr, cA as Dr, cB as Er, aR as Se, cg as zt, aI as Qe, l as kr, h as Ar, cC as Ir, cj as pt, ck as ft, cl as gt, cm as bt, cn as vt, co as xt, cp as yt, cq as jt, aG as Ct, cD as Fr, cE as Pr, c8 as ot, c5 as rt, c6 as at, cF as Wt, c7 as nt, bR as X, ch as Tr, cf as Ke, cG as Lr, bP as Ur, bw as wt, by as Nt, cH as Vr, bt as Rr, cI as qt, cJ as St, cK as Br, bV as Mr, f as _r, cL as Or, J as xe, aB as Te, ax as Ht, ay as Xe, cM as G, K as Gt, aw as $r, cN as zr, aD as jr, R as Qt, cO as Wr, az as
|
|
4
|
+
import { ae as V, ap as fr } from "./numeric-presentation-BSAqPpHt.js";
|
|
5
|
+
import { B as U, l as Le, q as dt, L as ie, j as Ot, c as ut, i as gr, Z as br, P as qe, a as He, b as Ge, S as $t } from "./switch-C3jLxlG0.js";
|
|
6
|
+
import { cr as ht, bu as Ue, bv as Ve, bx as Re, cs as vr, ct as xr, aX as Be, aV as Je, cu as yr, cv as et, cw as mt, _ as tt, X as pe, u as T, cx as Cr, cy as wr, cz as Nr, Z as ee, b6 as Sr, cA as Dr, cB as Er, aR as Se, cg as zt, aI as Qe, l as kr, h as Ar, cC as Ir, cj as pt, ck as ft, cl as gt, cm as bt, cn as vt, co as xt, cp as yt, cq as jt, aG as Ct, cD as Fr, cE as Pr, c8 as ot, c5 as rt, c6 as at, cF as Wt, c7 as nt, bR as X, ch as Tr, cf as Ke, cG as Lr, bP as Ur, bw as wt, by as Nt, cH as Vr, bt as Rr, cI as qt, cJ as St, cK as Br, bV as Mr, f as _r, cL as Or, J as xe, aB as Te, ax as Ht, ay as Xe, cM as G, K as Gt, aw as $r, cN as zr, aD as jr, R as Qt, cO as Wr, az as Tt, N as qr, cP as Hr, cQ as Gr, cR as Qr, cS as Kr, cT as Kt, cU as Xr, cV as Zr, cW as Yr, cX as Xt, cY as Jr, cZ as ze, c_ as ea, c$ as ta, d0 as ra, as as aa, at as na, a8 as sa, a7 as oa, a6 as ia, a5 as la, a2 as ca, a0 as da, d1 as ua, d2 as ha, d3 as ma, d4 as pa, d5 as fa, aq as ga, d6 as ba, d7 as va, ae as xa, d8 as ya, d9 as Ca, da as wa } from "./semaphor-ready-indicator-BWSpRsPj.js";
|
|
7
7
|
import { L as Dt } from "./layout-grid-Bgzth8vd.js";
|
|
8
8
|
import { c as De, X as Me, C as Zt } from "./x-4f5U2XwU.js";
|
|
9
9
|
import "./index-CuHybtft.js";
|
|
10
|
-
import { t as Na } from "./validators-
|
|
11
|
-
import "./matrix-operation-contract-
|
|
10
|
+
import { t as Na } from "./validators-DMHTpf7a.js";
|
|
11
|
+
import "./matrix-operation-contract-8OIO4gob.js";
|
|
12
12
|
import "./analytics-base-schemas-BFAoRlkU.js";
|
|
13
13
|
import "zod";
|
|
14
14
|
import "../value-format-preferences/index.js";
|
|
15
15
|
import { c as Z } from "./class-utils-Df1OVOT1.js";
|
|
16
|
-
import { S as Sa } from "./selection-reducer-
|
|
16
|
+
import { S as Sa } from "./selection-reducer-Dj_8xD69.js";
|
|
17
17
|
import { s as je } from "./normalize-dashboard-for-dirty-check-Bk3VYv_q.js";
|
|
18
18
|
import { f as Da } from "./editor-draft-sync-BN5qYHPF.js";
|
|
19
|
-
import {
|
|
19
|
+
import { ad as Ze, ae as Ea, m as ka, af as Aa, ag as Ia, ah as Fa, ai as Pa, aj as Ta } from "./document-dashboard-inputs-C6MJVyoI.js";
|
|
20
20
|
import "react-dom";
|
|
21
|
-
import "./pivot-result-lifecycle-
|
|
22
|
-
import "./
|
|
23
|
-
import { o as La } from "./bookmark-state-k7y5SNGf.js";
|
|
21
|
+
import "./pivot-result-lifecycle-BBlAfBA0.js";
|
|
22
|
+
import { F as La } from "./table-settings-CLZocegs.js";
|
|
24
23
|
import { S as Yt } from "./save-CfJpQQ68.js";
|
|
25
|
-
import { V as Ua, L as Va, a as Ra, u as Jt, C as er, F as Ba, b as Ma } from "./use-create-flow-overlay-state-
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
24
|
+
import { V as Ua, L as Va, a as Ra, u as Jt, C as er, F as Ba, b as Ma } from "./use-create-flow-overlay-state-BJDNqdOh.js";
|
|
25
|
+
import { v as Lt } from "./custom-visual-inputs-DUtpYZOk.js";
|
|
26
|
+
import { w as Ut } from "./matrix-formatter-BnsTX90d.js";
|
|
27
|
+
import { x as _a } from "./document-sheet-utils-BsZUnHRl.js";
|
|
28
|
+
import { g as me, d as Oa, a as $a } from "./index-CV5rHq5D.js";
|
|
29
29
|
/**
|
|
30
30
|
* @license lucide-react v0.453.0 - ISC
|
|
31
31
|
*
|
|
@@ -1572,7 +1572,7 @@ function pn() {
|
|
|
1572
1572
|
try {
|
|
1573
1573
|
const x = {
|
|
1574
1574
|
...n,
|
|
1575
|
-
id:
|
|
1575
|
+
id: Lt(),
|
|
1576
1576
|
visualId: S.id
|
|
1577
1577
|
// Link to the newly created library visual
|
|
1578
1578
|
};
|
|
@@ -1635,7 +1635,7 @@ function pn() {
|
|
|
1635
1635
|
const W = {
|
|
1636
1636
|
...I,
|
|
1637
1637
|
// Card title already synced
|
|
1638
|
-
id:
|
|
1638
|
+
id: Lt(),
|
|
1639
1639
|
visualId: void 0
|
|
1640
1640
|
// Explicitly no visualId for local visuals
|
|
1641
1641
|
};
|
|
@@ -2393,7 +2393,7 @@ function Bn() {
|
|
|
2393
2393
|
const E = p.filter(
|
|
2394
2394
|
(y) => y.status === "completed" || y.status === "failed" || y.status === "cancelled"
|
|
2395
2395
|
), N = await Promise.allSettled(
|
|
2396
|
-
E.map(async (y) => (await
|
|
2396
|
+
E.map(async (y) => (await Tt(v, D, y.id), y.id))
|
|
2397
2397
|
);
|
|
2398
2398
|
for (const y of N)
|
|
2399
2399
|
y.status === "fulfilled" ? n(y.value) : console.error("Failed to delete export:", y.reason);
|
|
@@ -2411,7 +2411,7 @@ function Bn() {
|
|
|
2411
2411
|
const D = r == null ? void 0 : r.apiServiceUrl, E = e == null ? void 0 : e.accessToken;
|
|
2412
2412
|
if (D && E)
|
|
2413
2413
|
try {
|
|
2414
|
-
await
|
|
2414
|
+
await Tt(D, E, v), n(v);
|
|
2415
2415
|
return;
|
|
2416
2416
|
} catch (N) {
|
|
2417
2417
|
console.error(`Failed to cancel export ${v}:`, N);
|