react-semaphor 0.1.522 → 0.1.523
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.js +1 -1
- package/dist/briefings/index.js +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BIRnsMqX.js → dashboard-briefing-launcher-CYiPCXQv.js} +4 -4
- package/dist/chunks/{dashboard-controls-D6Z6ws11.js → dashboard-controls-lzfI5yqq.js} +5 -5
- package/dist/chunks/{dashboard-json-Dq5ibJr2.js → dashboard-json-D_70142A.js} +3 -3
- package/dist/chunks/{edit-dashboard-visual-CYZLUQlx.js → edit-dashboard-visual-wlJKYkAf.js} +4 -4
- package/dist/chunks/{editor-action-buttons-DuxlCZYf.js → editor-action-buttons-CEw61v6F.js} +3 -3
- package/dist/chunks/{index-krDPPQuA.js → index-BBn_2FHm.js} +34805 -34462
- package/dist/chunks/{index-B0KwXM6P.js → index-BnZz-3jX.js} +186 -180
- package/dist/chunks/{report-preferences-dialog-BA9YJnPe.js → report-preferences-dialog-B7Ny-bLC.js} +2 -2
- package/dist/chunks/{switch-evlnTA4t.js → switch-BxOntwjd.js} +1625 -1626
- package/dist/dashboard/index.js +1 -1
- package/dist/data-app-builder/index.js +2 -2
- package/dist/index.js +7 -7
- package/dist/surfboard/index.js +2 -2
- package/dist/types/briefings/index.d.ts +5 -0
- package/dist/types/components/dashboard/dashboard-container.d.ts +1 -1
- package/dist/types/lib/dashboard-inputs/dashboard-input-snapshot.d.ts +26 -6
- package/dist/types/lib/document/document-generated-at.d.ts +13 -0
- package/dist/types/lib/download-pdf.d.ts +3 -0
- package/dist/types/lib/hooks/use-dashboard.d.ts +3 -1
- package/dist/types/lib/hooks/use-is-dashboard-ready.d.ts +3 -0
- package/dist/types/lib/matrix-table/matrix-runtime-types.d.ts +21 -0
- package/dist/types/lib/matrix-table/matrix-runtime.d.ts +8 -1
- package/dist/types/lib/matrix-table/use-matrix.d.ts +1 -0
- package/dist/types/lib/print/print-holds.d.ts +15 -0
- package/dist/types/lib/print/print-inputs.d.ts +104 -0
- package/dist/types/lib/print/print-sheets.d.ts +16 -0
- package/dist/types/lib/stores/dashboard-store.d.ts +8 -0
- package/dist/types/lib/types/common-types.d.ts +6 -0
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import { al as Ee, a5 as at, a7 as ce, $ as me, t as it } from "./validators-Csd
|
|
|
6
6
|
import "./matrix-continuation-C4sRcjZU.js";
|
|
7
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 dt, i as st, 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
11
|
import { r as gt } from "./matrix-definition-E5gXXSTZ.js";
|
|
12
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";
|
|
@@ -129,7 +129,7 @@ const we = /* @__PURE__ */ new WeakMap();
|
|
|
129
129
|
function qt(e) {
|
|
130
130
|
const r = we.get(e);
|
|
131
131
|
if (r) return r;
|
|
132
|
-
const t =
|
|
132
|
+
const t = dt(e);
|
|
133
133
|
return we.set(e, t), t;
|
|
134
134
|
}
|
|
135
135
|
function q(e, r) {
|
|
@@ -137,7 +137,7 @@ function q(e, r) {
|
|
|
137
137
|
return t.length === n.length && t.every((o, a) => o === n[a]);
|
|
138
138
|
}
|
|
139
139
|
function jt(e, r) {
|
|
140
|
-
const t =
|
|
140
|
+
const t = st({
|
|
141
141
|
groupByFields: r.groupByColumns,
|
|
142
142
|
metricFields: r.metricColumns,
|
|
143
143
|
pivotByFields: r.pivotByColumns,
|
|
@@ -234,18 +234,18 @@ function Ln(e) {
|
|
|
234
234
|
const t = e.activation;
|
|
235
235
|
if (!t || t.cardType !== "pivotTable" && t.fields.length === 0)
|
|
236
236
|
return !0;
|
|
237
|
-
const n = Array.isArray(r.records) ? r.records.length : void 0, o = (t.cardConfig.pivotByColumns || []).map((
|
|
237
|
+
const n = Array.isArray(r.records) ? r.records.length : void 0, o = (t.cardConfig.pivotByColumns || []).map((d) => d.id);
|
|
238
238
|
if (t.cardType === "pivotTable")
|
|
239
239
|
try {
|
|
240
|
-
const
|
|
240
|
+
const d = qt(r);
|
|
241
241
|
if (!jt(
|
|
242
|
-
|
|
242
|
+
d.pivotResultContract,
|
|
243
243
|
t.cardConfig
|
|
244
244
|
))
|
|
245
245
|
return !1;
|
|
246
|
-
if (
|
|
247
|
-
const v =
|
|
248
|
-
(w) =>
|
|
246
|
+
if (d.pivotResultState === "loaded_empty") return !0;
|
|
247
|
+
const v = d.columns.filter(
|
|
248
|
+
(w) => d.pivotResultContract.columnKinds[w.key] === "pivot_metric"
|
|
249
249
|
), h = v.filter(
|
|
250
250
|
(w) => {
|
|
251
251
|
var g;
|
|
@@ -256,14 +256,14 @@ function Ln(e) {
|
|
|
256
256
|
var g;
|
|
257
257
|
return ((g = w.pivotIdentity) == null ? void 0 : g.members.length) === 0 && Et({
|
|
258
258
|
expectedPivotFieldIds: o,
|
|
259
|
-
classification:
|
|
259
|
+
classification: d.pivotResultContract.columnClassifications[w.key]
|
|
260
260
|
});
|
|
261
261
|
}
|
|
262
262
|
);
|
|
263
263
|
return t.fields.every((w) => {
|
|
264
264
|
var E;
|
|
265
265
|
const g = L(
|
|
266
|
-
|
|
266
|
+
d.columnKeyMap,
|
|
267
267
|
w.id,
|
|
268
268
|
w.role
|
|
269
269
|
);
|
|
@@ -284,14 +284,14 @@ function Ln(e) {
|
|
|
284
284
|
}
|
|
285
285
|
);
|
|
286
286
|
}
|
|
287
|
-
const T =
|
|
287
|
+
const T = d.columns.find(
|
|
288
288
|
(_) => _.key === (g.outputKey || g.rawKey)
|
|
289
289
|
);
|
|
290
290
|
return ((E = T == null ? void 0 : T.temporalBucket) == null ? void 0 : E.granularity) === w.granularity;
|
|
291
291
|
});
|
|
292
|
-
} catch (
|
|
293
|
-
if (
|
|
294
|
-
throw
|
|
292
|
+
} catch (d) {
|
|
293
|
+
if (d instanceof ut) return !1;
|
|
294
|
+
throw d;
|
|
295
295
|
}
|
|
296
296
|
if (n === 0)
|
|
297
297
|
return !0;
|
|
@@ -299,26 +299,26 @@ function Ln(e) {
|
|
|
299
299
|
if (!a || !a.byRole || typeof a.byRole != "object" || Array.isArray(a.byRole))
|
|
300
300
|
return !1;
|
|
301
301
|
const i = [
|
|
302
|
-
...(t.cardConfig.groupByColumns || []).map((
|
|
303
|
-
field:
|
|
302
|
+
...(t.cardConfig.groupByColumns || []).map((d) => ({
|
|
303
|
+
field: d,
|
|
304
304
|
role: "groupby"
|
|
305
305
|
})),
|
|
306
|
-
...(t.cardConfig.metricColumns || []).map((
|
|
307
|
-
field:
|
|
306
|
+
...(t.cardConfig.metricColumns || []).map((d) => ({
|
|
307
|
+
field: d,
|
|
308
308
|
role: "metric"
|
|
309
309
|
})),
|
|
310
|
-
...(t.cardConfig.pivotByColumns || []).map((
|
|
311
|
-
field:
|
|
310
|
+
...(t.cardConfig.pivotByColumns || []).map((d) => ({
|
|
311
|
+
field: d,
|
|
312
312
|
role: "pivotby"
|
|
313
313
|
})),
|
|
314
|
-
...(t.cardConfig.detailColumns || []).map((
|
|
315
|
-
field:
|
|
314
|
+
...(t.cardConfig.detailColumns || []).map((d) => ({
|
|
315
|
+
field: d,
|
|
316
316
|
role: "detail"
|
|
317
317
|
}))
|
|
318
318
|
], l = new Set(
|
|
319
|
-
i.map(({ field:
|
|
319
|
+
i.map(({ field: d, role: v }) => `${v}:${d.id}`)
|
|
320
320
|
), m = new Map(
|
|
321
|
-
(r.columns || []).map((
|
|
321
|
+
(r.columns || []).map((d) => [d.key, d])
|
|
322
322
|
), c = L(
|
|
323
323
|
a,
|
|
324
324
|
ce,
|
|
@@ -333,38 +333,38 @@ function Ln(e) {
|
|
|
333
333
|
return !1;
|
|
334
334
|
l.add(`metric:${ce}`);
|
|
335
335
|
}
|
|
336
|
-
const
|
|
337
|
-
([
|
|
336
|
+
const s = Object.entries(a.byRole).flatMap(
|
|
337
|
+
([d, v]) => Object.keys(v || {}).map((h) => `${d}:${h}`)
|
|
338
338
|
);
|
|
339
|
-
if (
|
|
340
|
-
({ field:
|
|
339
|
+
if (s.length !== l.size || s.some((d) => !l.has(d)) || i.some(
|
|
340
|
+
({ field: d, role: v }) => !L(a, d.id, v)
|
|
341
341
|
))
|
|
342
342
|
return !1;
|
|
343
343
|
try {
|
|
344
344
|
St(
|
|
345
|
-
(r.columns || []).map((
|
|
346
|
-
key:
|
|
347
|
-
pivotIdentity:
|
|
345
|
+
(r.columns || []).map((d) => ({
|
|
346
|
+
key: d.key,
|
|
347
|
+
pivotIdentity: d.pivotIdentity
|
|
348
348
|
})),
|
|
349
349
|
{
|
|
350
350
|
expectedPivotFieldIds: o,
|
|
351
351
|
columnClassifications: r.columnMetadata
|
|
352
352
|
}
|
|
353
353
|
);
|
|
354
|
-
} catch (
|
|
355
|
-
if (
|
|
356
|
-
throw
|
|
354
|
+
} catch (d) {
|
|
355
|
+
if (d instanceof _t) return !1;
|
|
356
|
+
throw d;
|
|
357
357
|
}
|
|
358
|
-
const u = (r.columns || []).filter((
|
|
359
|
-
const v =
|
|
358
|
+
const u = (r.columns || []).filter((d) => {
|
|
359
|
+
const v = d.pivotIdentity;
|
|
360
360
|
return !!(v && v.members.length > 0);
|
|
361
361
|
});
|
|
362
|
-
return n !== 0 && ((p = t.cardConfig.pivotByColumns) != null && p.length) && u.length === 0 ? !1 : t.fields.every((
|
|
362
|
+
return n !== 0 && ((p = t.cardConfig.pivotByColumns) != null && p.length) && u.length === 0 ? !1 : t.fields.every((d) => {
|
|
363
363
|
var b;
|
|
364
364
|
const v = L(
|
|
365
365
|
a,
|
|
366
|
-
|
|
367
|
-
|
|
366
|
+
d.id,
|
|
367
|
+
d.role
|
|
368
368
|
);
|
|
369
369
|
if (!v) return !1;
|
|
370
370
|
if (v.role === "pivotby") {
|
|
@@ -373,16 +373,16 @@ function Ln(e) {
|
|
|
373
373
|
var E;
|
|
374
374
|
return ((E = T.pivotIdentity) == null ? void 0 : E.members) ?? [];
|
|
375
375
|
}
|
|
376
|
-
).filter((T) => T.fieldId ===
|
|
376
|
+
).filter((T) => T.fieldId === d.id);
|
|
377
377
|
return u.length === 0 ? n === 0 : g.length > 0 && g.every(
|
|
378
378
|
(T) => {
|
|
379
379
|
var E;
|
|
380
|
-
return ((E = T.temporalBucket) == null ? void 0 : E.granularity) ===
|
|
380
|
+
return ((E = T.temporalBucket) == null ? void 0 : E.granularity) === d.granularity;
|
|
381
381
|
}
|
|
382
382
|
);
|
|
383
383
|
}
|
|
384
384
|
const h = m.get(v.outputKey || v.rawKey);
|
|
385
|
-
return ((b = h == null ? void 0 : h.temporalBucket) == null ? void 0 : b.granularity) ===
|
|
385
|
+
return ((b = h == null ? void 0 : h.temporalBucket) == null ? void 0 : b.granularity) === d.granularity;
|
|
386
386
|
});
|
|
387
387
|
}
|
|
388
388
|
function Q(e, r) {
|
|
@@ -454,16 +454,16 @@ function Vn(e) {
|
|
|
454
454
|
};
|
|
455
455
|
const t = new Map(
|
|
456
456
|
(e.columns || []).map((c) => [c.key, c])
|
|
457
|
-
), n = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), i = r.fields.reduce((c,
|
|
457
|
+
), n = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), i = r.fields.reduce((c, s) => (c.set(s.id, (c.get(s.id) || 0) + 1), c), /* @__PURE__ */ new Map()), l = (c, s) => {
|
|
458
458
|
a.set(
|
|
459
459
|
Me(c.id, c.role),
|
|
460
|
-
|
|
461
|
-
), i.get(c.id) === 1 && o.set(c.id,
|
|
462
|
-
}, m = (c,
|
|
463
|
-
if (
|
|
460
|
+
s
|
|
461
|
+
), i.get(c.id) === 1 && o.set(c.id, s);
|
|
462
|
+
}, m = (c, s, u) => {
|
|
463
|
+
if (s.granularity !== c.granularity)
|
|
464
464
|
throw new N(
|
|
465
465
|
"invalid_temporal_bucket_metadata",
|
|
466
|
-
`Result identity "${u}" declares ${
|
|
466
|
+
`Result identity "${u}" declares ${s.granularity} buckets for active ${c.granularity} field "${c.id}".`,
|
|
467
467
|
{ cardId: e.card.id, fieldId: c.id, columnKey: u }
|
|
468
468
|
);
|
|
469
469
|
const p = e.executionSnapshot && e.dashboardId ? mt({
|
|
@@ -489,9 +489,9 @@ function Vn(e) {
|
|
|
489
489
|
columnKey: u,
|
|
490
490
|
fieldId: c.id,
|
|
491
491
|
role: c.role,
|
|
492
|
-
metadata:
|
|
492
|
+
metadata: s,
|
|
493
493
|
resolved: p ? Ae({
|
|
494
|
-
metadata:
|
|
494
|
+
metadata: s,
|
|
495
495
|
cardFormat: p,
|
|
496
496
|
locale: p.locale,
|
|
497
497
|
...p.presentation.mode === "auto" ? {
|
|
@@ -499,18 +499,18 @@ function Vn(e) {
|
|
|
499
499
|
} : {}
|
|
500
500
|
}) : Wt(
|
|
501
501
|
c,
|
|
502
|
-
|
|
502
|
+
s,
|
|
503
503
|
e.valueFormatPreferences ?? ue
|
|
504
504
|
)
|
|
505
505
|
};
|
|
506
506
|
};
|
|
507
507
|
for (const c of r.fields) {
|
|
508
|
-
const
|
|
508
|
+
const s = L(
|
|
509
509
|
e.columnKeyMap,
|
|
510
510
|
c.id,
|
|
511
511
|
c.role
|
|
512
512
|
);
|
|
513
|
-
if (!
|
|
513
|
+
if (!s) {
|
|
514
514
|
if (e.columns === void 0 && e.columnKeyMap === void 0 && (e.resultRowCount === void 0 || e.resultRowCount === 0))
|
|
515
515
|
continue;
|
|
516
516
|
throw new N(
|
|
@@ -519,7 +519,7 @@ function Vn(e) {
|
|
|
519
519
|
{ cardId: e.card.id, fieldId: c.id, columnKey: c.name }
|
|
520
520
|
);
|
|
521
521
|
}
|
|
522
|
-
if (
|
|
522
|
+
if (s.role === "pivotby") {
|
|
523
523
|
const h = (e.columns || []).filter(
|
|
524
524
|
(E) => E.pivotIdentity !== void 0
|
|
525
525
|
), b = h.flatMap(
|
|
@@ -534,7 +534,7 @@ function Vn(e) {
|
|
|
534
534
|
throw new te({
|
|
535
535
|
cardId: e.card.id,
|
|
536
536
|
fieldId: c.id,
|
|
537
|
-
columnKey:
|
|
537
|
+
columnKey: s.outputKey || s.rawKey
|
|
538
538
|
});
|
|
539
539
|
}
|
|
540
540
|
const w = b[0];
|
|
@@ -572,25 +572,25 @@ function Vn(e) {
|
|
|
572
572
|
l(c, T);
|
|
573
573
|
continue;
|
|
574
574
|
}
|
|
575
|
-
const u =
|
|
575
|
+
const u = s.outputKey || s.rawKey, p = t.get(u);
|
|
576
576
|
if (!(p != null && p.temporalBucket))
|
|
577
577
|
throw new te({
|
|
578
578
|
cardId: e.card.id,
|
|
579
579
|
fieldId: c.id,
|
|
580
580
|
columnKey: u
|
|
581
581
|
});
|
|
582
|
-
const
|
|
582
|
+
const d = Rt(p, {
|
|
583
583
|
metadataRequired: !0
|
|
584
584
|
});
|
|
585
|
-
if (!
|
|
585
|
+
if (!d.ok || !d.value)
|
|
586
586
|
throw new N(
|
|
587
587
|
"invalid_temporal_bucket_metadata",
|
|
588
|
-
|
|
588
|
+
d.ok ? `Result column "${u}" has no validated temporal bucket metadata.` : d.error.message,
|
|
589
589
|
{ cardId: e.card.id, fieldId: c.id, columnKey: u }
|
|
590
590
|
);
|
|
591
591
|
const v = m(
|
|
592
592
|
c,
|
|
593
|
-
|
|
593
|
+
d.value,
|
|
594
594
|
u
|
|
595
595
|
);
|
|
596
596
|
n.set(u, v), l(c, v);
|
|
@@ -851,15 +851,15 @@ function er(e) {
|
|
|
851
851
|
)
|
|
852
852
|
);
|
|
853
853
|
try {
|
|
854
|
-
const a = t.filter((
|
|
854
|
+
const a = t.filter((s) => s.rawTemporal);
|
|
855
855
|
if (a.length === 0) return { kind: "inactive" };
|
|
856
856
|
const i = new Map(
|
|
857
|
-
(((o = e.effectiveCardConfig) == null ? void 0 : o.detailColumns) || []).map((
|
|
858
|
-
|
|
859
|
-
|
|
857
|
+
(((o = e.effectiveCardConfig) == null ? void 0 : o.detailColumns) || []).map((s) => [
|
|
858
|
+
s.id,
|
|
859
|
+
s
|
|
860
860
|
])
|
|
861
861
|
), l = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map();
|
|
862
|
-
for (const
|
|
862
|
+
for (const s of a) {
|
|
863
863
|
const u = Array.from(i).flatMap(
|
|
864
864
|
([T, E]) => {
|
|
865
865
|
const _ = L(
|
|
@@ -867,30 +867,30 @@ function er(e) {
|
|
|
867
867
|
T,
|
|
868
868
|
"detail"
|
|
869
869
|
);
|
|
870
|
-
return _ && _.role === "detail" && (_.outputKey ?? _.rawKey) ===
|
|
870
|
+
return _ && _.role === "detail" && (_.outputKey ?? _.rawKey) === s.key ? [{ field: E, binding: _ }] : [];
|
|
871
871
|
}
|
|
872
872
|
), p = u.length === 1 ? u[0] : null;
|
|
873
873
|
if (!p || typeof p.binding.rawKey != "string" || p.binding.rawKey.trim().length === 0 || p.binding.outputKey !== void 0 && (typeof p.binding.outputKey != "string" || p.binding.outputKey.trim().length === 0))
|
|
874
874
|
throw new S(
|
|
875
875
|
"missing_raw_temporal_column_binding",
|
|
876
|
-
`Raw temporal result column "${
|
|
877
|
-
{ columnKey:
|
|
876
|
+
`Raw temporal result column "${s.key}" does not have one valid exact detail result binding.`,
|
|
877
|
+
{ columnKey: s.key }
|
|
878
878
|
);
|
|
879
|
-
const { field:
|
|
879
|
+
const { field: d, binding: v } = p, h = v.outputKey ?? v.rawKey, b = Pe(s, {
|
|
880
880
|
metadataRequired: !0
|
|
881
881
|
});
|
|
882
882
|
if (!b)
|
|
883
883
|
throw new S(
|
|
884
884
|
"invalid_raw_temporal_metadata",
|
|
885
885
|
`Raw temporal result column "${h}" has no metadata.`,
|
|
886
|
-
{ fieldId:
|
|
886
|
+
{ fieldId: d.id, columnKey: h }
|
|
887
887
|
);
|
|
888
888
|
const w = G({
|
|
889
|
-
format: Oe(
|
|
889
|
+
format: Oe(d),
|
|
890
890
|
preferences: e.preferences,
|
|
891
891
|
calendar: e.calendar
|
|
892
892
|
}), g = {
|
|
893
|
-
fieldId:
|
|
893
|
+
fieldId: d.id,
|
|
894
894
|
columnKey: h,
|
|
895
895
|
metadata: b,
|
|
896
896
|
format: w,
|
|
@@ -901,9 +901,9 @@ function er(e) {
|
|
|
901
901
|
throw new S(
|
|
902
902
|
"missing_raw_temporal_result_contract",
|
|
903
903
|
`Raw temporal result row ${T} is missing column "${h}".`,
|
|
904
|
-
{ fieldId:
|
|
904
|
+
{ fieldId: d.id, columnKey: h }
|
|
905
905
|
);
|
|
906
|
-
l.set(h, g), m.set(
|
|
906
|
+
l.set(h, g), m.set(d.id, g);
|
|
907
907
|
}
|
|
908
908
|
const c = {
|
|
909
909
|
activatedColumnKeys: new Set(l.keys()),
|
|
@@ -1048,9 +1048,9 @@ function rr(e) {
|
|
|
1048
1048
|
const o = /* @__PURE__ */ new Map(), a = new Set(
|
|
1049
1049
|
r.map(([c]) => c)
|
|
1050
1050
|
), i = /* @__PURE__ */ new Map(), l = [...e.columns || []];
|
|
1051
|
-
for (const [c,
|
|
1051
|
+
for (const [c, s] of r) {
|
|
1052
1052
|
const u = ye(
|
|
1053
|
-
|
|
1053
|
+
s.dateFormat
|
|
1054
1054
|
);
|
|
1055
1055
|
if (!u) continue;
|
|
1056
1056
|
const p = xt({
|
|
@@ -1067,16 +1067,16 @@ function rr(e) {
|
|
|
1067
1067
|
})
|
|
1068
1068
|
});
|
|
1069
1069
|
if (i.set(c, p), p.status !== "classified") continue;
|
|
1070
|
-
let
|
|
1070
|
+
let d = l.findIndex(
|
|
1071
1071
|
(b) => b.key === c
|
|
1072
1072
|
);
|
|
1073
|
-
if (e.columns &&
|
|
1073
|
+
if (e.columns && d < 0)
|
|
1074
1074
|
throw new S(
|
|
1075
1075
|
"missing_raw_temporal_result_contract",
|
|
1076
1076
|
`Classified SQL temporal column "${c}" is absent from result columns.`,
|
|
1077
1077
|
{ columnKey: c }
|
|
1078
1078
|
);
|
|
1079
|
-
|
|
1079
|
+
d < 0 && (d = l.length, l.push({
|
|
1080
1080
|
key: c,
|
|
1081
1081
|
name: c,
|
|
1082
1082
|
label: c,
|
|
@@ -1084,14 +1084,14 @@ function rr(e) {
|
|
|
1084
1084
|
dataType: "string"
|
|
1085
1085
|
}));
|
|
1086
1086
|
const v = {
|
|
1087
|
-
...l[
|
|
1087
|
+
...l[d],
|
|
1088
1088
|
role: "date",
|
|
1089
1089
|
dataType: p.metadata.valueKind === "date" ? "date" : "datetime",
|
|
1090
1090
|
rawTemporal: p.metadata
|
|
1091
1091
|
};
|
|
1092
1092
|
Pe(v, {
|
|
1093
1093
|
metadataRequired: !0
|
|
1094
|
-
}), l[
|
|
1094
|
+
}), l[d] = v;
|
|
1095
1095
|
const h = G({
|
|
1096
1096
|
format: u,
|
|
1097
1097
|
preferences: e.preferences,
|
|
@@ -1269,40 +1269,40 @@ function ze(e) {
|
|
|
1269
1269
|
function Le(e, r) {
|
|
1270
1270
|
if (!e || e.length === 0) return;
|
|
1271
1271
|
const t = [], n = [], o = [];
|
|
1272
|
-
e.forEach((
|
|
1273
|
-
const u = U(
|
|
1274
|
-
u && (u.kind === "number" ? t.push(
|
|
1272
|
+
e.forEach((s) => {
|
|
1273
|
+
const u = U(s.position);
|
|
1274
|
+
u && (u.kind === "number" ? t.push(s) : u.kind === "range" ? n.push(s) : u.kind === "dynamic" && o.push(s));
|
|
1275
1275
|
});
|
|
1276
|
-
const a = t.find((
|
|
1277
|
-
const u = U(
|
|
1276
|
+
const a = t.find((s) => {
|
|
1277
|
+
const u = U(s.position);
|
|
1278
1278
|
return (u == null ? void 0 : u.kind) === "number" && u.start === r;
|
|
1279
1279
|
});
|
|
1280
1280
|
if (a) return a;
|
|
1281
1281
|
const l = n.sort(
|
|
1282
|
-
(
|
|
1283
|
-
).find((
|
|
1284
|
-
const u = U(
|
|
1282
|
+
(s, u) => H(s) - H(u)
|
|
1283
|
+
).find((s) => {
|
|
1284
|
+
const u = U(s.position);
|
|
1285
1285
|
return (u == null ? void 0 : u.kind) === "range" && r >= u.start && r <= u.end;
|
|
1286
1286
|
});
|
|
1287
1287
|
if (l) return l;
|
|
1288
|
-
const c = o.map((
|
|
1289
|
-
slot:
|
|
1290
|
-
parsed: U(
|
|
1291
|
-
})).filter((
|
|
1288
|
+
const c = o.map((s) => ({
|
|
1289
|
+
slot: s,
|
|
1290
|
+
parsed: U(s.position)
|
|
1291
|
+
})).filter((s) => {
|
|
1292
1292
|
var u;
|
|
1293
|
-
return ((u =
|
|
1293
|
+
return ((u = s.parsed) == null ? void 0 : u.kind) === "dynamic";
|
|
1294
1294
|
}).sort(
|
|
1295
|
-
(
|
|
1296
|
-
var p,
|
|
1297
|
-
return (((p =
|
|
1295
|
+
(s, u) => {
|
|
1296
|
+
var p, d;
|
|
1297
|
+
return (((p = s.parsed) == null ? void 0 : p.start) ?? 0) - (((d = u.parsed) == null ? void 0 : d.start) ?? 0);
|
|
1298
1298
|
}
|
|
1299
|
-
).filter((
|
|
1299
|
+
).filter((s) => {
|
|
1300
1300
|
var u;
|
|
1301
|
-
return r >= (((u =
|
|
1301
|
+
return r >= (((u = s.parsed) == null ? void 0 : u.start) ?? 0);
|
|
1302
1302
|
}).sort(
|
|
1303
|
-
(
|
|
1304
|
-
var p,
|
|
1305
|
-
return (((p = u.parsed) == null ? void 0 : p.start) ?? 0) - (((
|
|
1303
|
+
(s, u) => {
|
|
1304
|
+
var p, d;
|
|
1305
|
+
return (((p = u.parsed) == null ? void 0 : p.start) ?? 0) - (((d = s.parsed) == null ? void 0 : d.start) ?? 0);
|
|
1306
1306
|
}
|
|
1307
1307
|
)[0];
|
|
1308
1308
|
return c == null ? void 0 : c.slot;
|
|
@@ -1387,11 +1387,11 @@ function to(e, r, t) {
|
|
|
1387
1387
|
}, a = r.minInputs || 1, l = e.map((h) => ({ slot: h, parsed: U(h.position) })).filter((h) => h.parsed !== null).reduce((h, b) => {
|
|
1388
1388
|
const w = b.parsed.end;
|
|
1389
1389
|
return Number.isFinite(w) ? Math.max(h, w) : h;
|
|
1390
|
-
}, -1), m = Math.max(a, l + 1), c = ze(e),
|
|
1390
|
+
}, -1), m = Math.max(a, l + 1), c = ze(e), s = c ? H(c) : 0;
|
|
1391
1391
|
let u = !1;
|
|
1392
1392
|
const p = [];
|
|
1393
1393
|
for (let h = 0; h < m; h += 1) {
|
|
1394
|
-
const b = Le(e, h), w = he(b), g = !u && h ===
|
|
1394
|
+
const b = Le(e, h), w = he(b), g = !u && h === s, T = h, E = {
|
|
1395
1395
|
...n,
|
|
1396
1396
|
id: vt(),
|
|
1397
1397
|
title: (g ? c == null ? void 0 : c.label : b == null ? void 0 : b.label) || `Tab ${h + 1}`,
|
|
@@ -1427,19 +1427,19 @@ function to(e, r, t) {
|
|
|
1427
1427
|
}
|
|
1428
1428
|
};
|
|
1429
1429
|
}
|
|
1430
|
-
const
|
|
1430
|
+
const d = p.findIndex(
|
|
1431
1431
|
(h) => {
|
|
1432
1432
|
var b;
|
|
1433
1433
|
return !!((b = h.customCardPreferences) != null && b.url);
|
|
1434
1434
|
}
|
|
1435
1435
|
);
|
|
1436
|
-
if (
|
|
1437
|
-
const [h] = p.splice(
|
|
1436
|
+
if (d > 0) {
|
|
1437
|
+
const [h] = p.splice(d, 1);
|
|
1438
1438
|
p.unshift(h);
|
|
1439
1439
|
}
|
|
1440
1440
|
return p;
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1442
|
+
function dr({
|
|
1443
1443
|
frame: e,
|
|
1444
1444
|
configCard: r,
|
|
1445
1445
|
isMultiInputVisual: t
|
|
@@ -1454,7 +1454,7 @@ function sr({
|
|
|
1454
1454
|
return e.cards.find((m) => m.id === i) || null;
|
|
1455
1455
|
}) : e.cards;
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function sr(e, r) {
|
|
1458
1458
|
return r && xe(r, e.cards) ? r : e.cards.find((t) => xe(t, e.cards)) || null;
|
|
1459
1459
|
}
|
|
1460
1460
|
function mr(e, r) {
|
|
@@ -1499,12 +1499,12 @@ function ur(e, r) {
|
|
|
1499
1499
|
for (const m of i) {
|
|
1500
1500
|
const c = (((o = m.document) == null ? void 0 : o.sections) || []).flatMap(
|
|
1501
1501
|
(p) => Tt(p)
|
|
1502
|
-
),
|
|
1502
|
+
), s = (m.frames || []).flatMap(
|
|
1503
1503
|
(p) => fr(p, a.cardId)
|
|
1504
1504
|
);
|
|
1505
|
-
|
|
1505
|
+
s.length > 0 && (l = !0);
|
|
1506
1506
|
const u = [
|
|
1507
|
-
...
|
|
1507
|
+
...s,
|
|
1508
1508
|
...(m.cards || []).filter(
|
|
1509
1509
|
(p) => !a.cardId || a.cardId === p.id
|
|
1510
1510
|
),
|
|
@@ -1514,8 +1514,8 @@ function ur(e, r) {
|
|
|
1514
1514
|
];
|
|
1515
1515
|
for (const p of u) {
|
|
1516
1516
|
l = !0;
|
|
1517
|
-
const
|
|
1518
|
-
|
|
1517
|
+
const d = n.get(a.attachmentIndex) ?? /* @__PURE__ */ new Set();
|
|
1518
|
+
d.has(p.id) || (d.add(p.id), n.set(a.attachmentIndex, d), t.push({
|
|
1519
1519
|
card: p,
|
|
1520
1520
|
...a.attachmentIndex !== void 0 ? { attachmentIndex: a.attachmentIndex } : {}
|
|
1521
1521
|
}));
|
|
@@ -1530,14 +1530,14 @@ function fr(e, r) {
|
|
|
1530
1530
|
var i;
|
|
1531
1531
|
const t = r ? (i = e.cards) == null ? void 0 : i.find((l) => l.id === r) : Ne(e);
|
|
1532
1532
|
if (!t) return [];
|
|
1533
|
-
const n =
|
|
1533
|
+
const n = sr(e, t), o = (e.cards || []).filter(
|
|
1534
1534
|
(l) => {
|
|
1535
1535
|
var m;
|
|
1536
1536
|
return typeof ((m = l.customCardPreferences) == null ? void 0 : m.slotIndex) == "number";
|
|
1537
1537
|
}
|
|
1538
1538
|
).length > 1, a = n != null && (mr(n) === "multiple" || o);
|
|
1539
1539
|
return !n || !a ? [t] : lr(
|
|
1540
|
-
|
|
1540
|
+
dr({
|
|
1541
1541
|
frame: e,
|
|
1542
1542
|
configCard: n,
|
|
1543
1543
|
isMultiInputVisual: !0
|
|
@@ -1547,8 +1547,8 @@ function fr(e, r) {
|
|
|
1547
1547
|
function oo(e) {
|
|
1548
1548
|
return ur(e.dashboard, e.selections).flatMap(
|
|
1549
1549
|
({ card: r, attachmentIndex: t }) => {
|
|
1550
|
-
var
|
|
1551
|
-
const n = ((
|
|
1550
|
+
var s, u, p, d;
|
|
1551
|
+
const n = ((s = e.resolveCardConfig) == null ? void 0 : s.call(e, r)) ?? r.config, o = Vt({
|
|
1552
1552
|
card: r,
|
|
1553
1553
|
cardConfig: n
|
|
1554
1554
|
}), a = {
|
|
@@ -1622,7 +1622,7 @@ function oo(e) {
|
|
|
1622
1622
|
}
|
|
1623
1623
|
} else if (m === "freeform" && ((u = r.sql) != null && u.trim()) && !c.trim())
|
|
1624
1624
|
for (const [v, h] of Object.entries(
|
|
1625
|
-
((
|
|
1625
|
+
((d = (p = r.preferences) == null ? void 0 : p.tablePrefs) == null ? void 0 : d.columnSettingsMap) || {}
|
|
1626
1626
|
)) {
|
|
1627
1627
|
if (h.type !== "date") continue;
|
|
1628
1628
|
const b = ye(
|
|
@@ -1893,14 +1893,14 @@ function $e(e, r, t) {
|
|
|
1893
1893
|
];
|
|
1894
1894
|
B(l, `${r}.tokens.color`, m, t);
|
|
1895
1895
|
const c = {};
|
|
1896
|
-
m.forEach((
|
|
1896
|
+
m.forEach((s) => {
|
|
1897
1897
|
const u = K(
|
|
1898
|
-
l[
|
|
1899
|
-
`${r}.tokens.color.${
|
|
1898
|
+
l[s],
|
|
1899
|
+
`${r}.tokens.color.${s}`,
|
|
1900
1900
|
120,
|
|
1901
1901
|
t
|
|
1902
1902
|
);
|
|
1903
|
-
u !== void 0 && (c[
|
|
1903
|
+
u !== void 0 && (c[s] = u);
|
|
1904
1904
|
}), i.color = c;
|
|
1905
1905
|
}
|
|
1906
1906
|
if (a.typography !== void 0) {
|
|
@@ -2112,11 +2112,11 @@ function kr(e) {
|
|
|
2112
2112
|
value: { cadence: "daily", hour: m, minute: l, weekdays: [] }
|
|
2113
2113
|
};
|
|
2114
2114
|
if (o === "*" && i !== "*") {
|
|
2115
|
-
const
|
|
2116
|
-
if (
|
|
2115
|
+
const s = i.split(",").map((d) => xr.get(d));
|
|
2116
|
+
if (s.some((d) => d === void 0))
|
|
2117
2117
|
return { ok: !1, issue: "Choose a supported schedule." };
|
|
2118
|
-
const u =
|
|
2119
|
-
return !p || p.some((
|
|
2118
|
+
const u = s, p = qe(u);
|
|
2119
|
+
return !p || p.some((d, v) => d !== u[v]) ? { ok: !1, issue: "Choose a supported schedule." } : {
|
|
2120
2120
|
ok: !0,
|
|
2121
2121
|
value: { cadence: "weekly", hour: m, minute: l, weekdays: p }
|
|
2122
2122
|
};
|
|
@@ -2199,7 +2199,7 @@ function go(e) {
|
|
|
2199
2199
|
pluralNoun: t === "report" ? "reports" : "briefings"
|
|
2200
2200
|
};
|
|
2201
2201
|
}
|
|
2202
|
-
const
|
|
2202
|
+
const de = "BRIEFING", Rr = ["markdown", "html"], se = ["markdown"], ne = 20, y = {
|
|
2203
2203
|
name: 500,
|
|
2204
2204
|
description: 2e3,
|
|
2205
2205
|
instruction: 5e4,
|
|
@@ -2313,6 +2313,7 @@ const je = new Set(Rr), Mr = /* @__PURE__ */ new Set([
|
|
|
2313
2313
|
"controlBindings",
|
|
2314
2314
|
"tablePreferences",
|
|
2315
2315
|
"dashboardInputExecutionSnapshot",
|
|
2316
|
+
"printInputCapture",
|
|
2316
2317
|
"selectedSheetId",
|
|
2317
2318
|
"cardType",
|
|
2318
2319
|
"allowDownload",
|
|
@@ -2441,9 +2442,9 @@ function He(e, r) {
|
|
|
2441
2442
|
}
|
|
2442
2443
|
function Wr(e, r) {
|
|
2443
2444
|
if (e == null)
|
|
2444
|
-
return [...
|
|
2445
|
+
return [...se];
|
|
2445
2446
|
if (!Array.isArray(e))
|
|
2446
|
-
return f(r, "presentation.artifactFormats", "Expected an array."), [...
|
|
2447
|
+
return f(r, "presentation.artifactFormats", "Expected an array."), [...se];
|
|
2447
2448
|
if (e.length === 0)
|
|
2448
2449
|
return f(
|
|
2449
2450
|
r,
|
|
@@ -2466,7 +2467,7 @@ function Wr(e, r) {
|
|
|
2466
2467
|
function We(e, r) {
|
|
2467
2468
|
if (e == null)
|
|
2468
2469
|
return {
|
|
2469
|
-
artifactFormats: [...
|
|
2470
|
+
artifactFormats: [...se],
|
|
2470
2471
|
includeEvidence: !0,
|
|
2471
2472
|
includeSql: !0
|
|
2472
2473
|
};
|
|
@@ -2651,7 +2652,7 @@ function Jr(e, r, t) {
|
|
|
2651
2652
|
`${i}.label`,
|
|
2652
2653
|
y.contentTitle,
|
|
2653
2654
|
t
|
|
2654
|
-
),
|
|
2655
|
+
), s = D(
|
|
2655
2656
|
l.kind,
|
|
2656
2657
|
`${i}.kind`,
|
|
2657
2658
|
Lr,
|
|
@@ -2667,7 +2668,7 @@ function Jr(e, r, t) {
|
|
|
2667
2668
|
return {
|
|
2668
2669
|
key: m,
|
|
2669
2670
|
label: c,
|
|
2670
|
-
...
|
|
2671
|
+
...s ? { kind: s } : {},
|
|
2671
2672
|
...u ? { align: u } : {}
|
|
2672
2673
|
};
|
|
2673
2674
|
});
|
|
@@ -2804,7 +2805,7 @@ function en(e, r, t) {
|
|
|
2804
2805
|
o.percentChange,
|
|
2805
2806
|
`${n}.percentChange`,
|
|
2806
2807
|
t
|
|
2807
|
-
),
|
|
2808
|
+
), s = $(
|
|
2808
2809
|
o.unit,
|
|
2809
2810
|
`${n}.unit`,
|
|
2810
2811
|
y.contentTitle,
|
|
@@ -2822,7 +2823,7 @@ function en(e, r, t) {
|
|
|
2822
2823
|
...l !== void 0 ? { previousValue: l } : {},
|
|
2823
2824
|
...m !== void 0 ? { delta: m } : {},
|
|
2824
2825
|
...c !== void 0 ? { percentChange: c } : {},
|
|
2825
|
-
...
|
|
2826
|
+
...s ? { unit: s } : {},
|
|
2826
2827
|
...u ? { evidenceIds: u } : {}
|
|
2827
2828
|
};
|
|
2828
2829
|
}
|
|
@@ -2839,10 +2840,10 @@ function en(e, r, t) {
|
|
|
2839
2840
|
`${n}.tiles`,
|
|
2840
2841
|
`Must have ${R.maxKpiTiles} tiles or fewer.`
|
|
2841
2842
|
);
|
|
2842
|
-
const m = l.slice(0, R.maxKpiTiles).map((
|
|
2843
|
-
const p = `${n}.tiles.${u}`,
|
|
2843
|
+
const m = l.slice(0, R.maxKpiTiles).map((s, u) => {
|
|
2844
|
+
const p = `${n}.tiles.${u}`, d = k(s, p, t);
|
|
2844
2845
|
I(
|
|
2845
|
-
|
|
2846
|
+
d,
|
|
2846
2847
|
p,
|
|
2847
2848
|
[
|
|
2848
2849
|
"label",
|
|
@@ -2856,7 +2857,7 @@ function en(e, r, t) {
|
|
|
2856
2857
|
t
|
|
2857
2858
|
);
|
|
2858
2859
|
const v = O(
|
|
2859
|
-
|
|
2860
|
+
d.value,
|
|
2860
2861
|
`${p}.value`,
|
|
2861
2862
|
t
|
|
2862
2863
|
) ?? "";
|
|
@@ -2865,31 +2866,31 @@ function en(e, r, t) {
|
|
|
2865
2866
|
`${p}.value`,
|
|
2866
2867
|
"Expected a non-empty string, number, or structured numeric value."
|
|
2867
2868
|
);
|
|
2868
|
-
const h =
|
|
2869
|
-
|
|
2869
|
+
const h = d.previousValue === void 0 || d.previousValue === null ? d.previousValue : O(
|
|
2870
|
+
d.previousValue,
|
|
2870
2871
|
`${p}.previousValue`,
|
|
2871
2872
|
t
|
|
2872
|
-
), b =
|
|
2873
|
-
|
|
2873
|
+
), b = d.delta === void 0 || d.delta === null ? d.delta : O(
|
|
2874
|
+
d.delta,
|
|
2874
2875
|
`${p}.delta`,
|
|
2875
2876
|
t
|
|
2876
|
-
), w =
|
|
2877
|
-
|
|
2877
|
+
), w = d.percentChange === void 0 || d.percentChange === null ? d.percentChange : O(
|
|
2878
|
+
d.percentChange,
|
|
2878
2879
|
`${p}.percentChange`,
|
|
2879
2880
|
t
|
|
2880
2881
|
), g = $(
|
|
2881
|
-
|
|
2882
|
+
d.unit,
|
|
2882
2883
|
`${p}.unit`,
|
|
2883
2884
|
y.contentTitle,
|
|
2884
2885
|
t
|
|
2885
2886
|
), T = A(
|
|
2886
|
-
|
|
2887
|
+
d.evidenceIds,
|
|
2887
2888
|
`${p}.evidenceIds`,
|
|
2888
2889
|
t
|
|
2889
2890
|
);
|
|
2890
2891
|
return {
|
|
2891
2892
|
label: x(
|
|
2892
|
-
|
|
2893
|
+
d.label,
|
|
2893
2894
|
`${p}.label`,
|
|
2894
2895
|
y.contentTitle,
|
|
2895
2896
|
t
|
|
@@ -2958,7 +2959,7 @@ function en(e, r, t) {
|
|
|
2958
2959
|
`${n}.caption`,
|
|
2959
2960
|
y.contentItem,
|
|
2960
2961
|
t
|
|
2961
|
-
),
|
|
2962
|
+
), s = Ur(
|
|
2962
2963
|
o.totalRows,
|
|
2963
2964
|
`${n}.totalRows`,
|
|
2964
2965
|
t
|
|
@@ -2970,7 +2971,7 @@ function en(e, r, t) {
|
|
|
2970
2971
|
columns: i,
|
|
2971
2972
|
rows: Xr(o.rows, `${n}.rows`, i, t),
|
|
2972
2973
|
...c ? { caption: c } : {},
|
|
2973
|
-
...
|
|
2974
|
+
...s !== void 0 ? { totalRows: s } : {},
|
|
2974
2975
|
...u ? { evidenceIds: u } : {}
|
|
2975
2976
|
};
|
|
2976
2977
|
}
|
|
@@ -3098,8 +3099,8 @@ function on(e, r, t) {
|
|
|
3098
3099
|
if (n.matrix !== void 0) {
|
|
3099
3100
|
const c = k(n.matrix, `${r}.matrix`, t);
|
|
3100
3101
|
I(c, `${r}.matrix`, ["config", "content"], t);
|
|
3101
|
-
const
|
|
3102
|
-
|
|
3102
|
+
const s = it.safeParse(c.config);
|
|
3103
|
+
s.success || f(t, `${r}.matrix.config`, "Expected a valid Matrix definition.");
|
|
3103
3104
|
const u = D(
|
|
3104
3105
|
c.content,
|
|
3105
3106
|
`${r}.matrix.content`,
|
|
@@ -3107,7 +3108,7 @@ function on(e, r, t) {
|
|
|
3107
3108
|
"current, all, or flat",
|
|
3108
3109
|
t
|
|
3109
3110
|
);
|
|
3110
|
-
u || f(t, `${r}.matrix.content`, "Choose Matrix export content."),
|
|
3111
|
+
u || f(t, `${r}.matrix.content`, "Choose Matrix export content."), s.success && u && (o.matrix = { config: s.data, content: u });
|
|
3111
3112
|
}
|
|
3112
3113
|
const a = D(
|
|
3113
3114
|
n.pageSize,
|
|
@@ -3157,13 +3158,13 @@ function on(e, r, t) {
|
|
|
3157
3158
|
"cardType",
|
|
3158
3159
|
"theme"
|
|
3159
3160
|
]) {
|
|
3160
|
-
const
|
|
3161
|
+
const s = $(
|
|
3161
3162
|
n[c],
|
|
3162
3163
|
`${r}.${c}`,
|
|
3163
3164
|
y.id,
|
|
3164
3165
|
t
|
|
3165
3166
|
);
|
|
3166
|
-
|
|
3167
|
+
s && (o[c] = s);
|
|
3167
3168
|
}
|
|
3168
3169
|
for (const c of [
|
|
3169
3170
|
"filterValues",
|
|
@@ -3173,16 +3174,17 @@ function on(e, r, t) {
|
|
|
3173
3174
|
"cardControlDefinitions",
|
|
3174
3175
|
"controlBindings"
|
|
3175
3176
|
]) {
|
|
3176
|
-
const
|
|
3177
|
-
|
|
3177
|
+
const s = rn(n[c], `${r}.${c}`, t);
|
|
3178
|
+
s && (o[c] = s);
|
|
3178
3179
|
}
|
|
3179
3180
|
for (const c of [
|
|
3180
3181
|
"controlValues",
|
|
3181
3182
|
"tablePreferences",
|
|
3182
|
-
"dashboardInputExecutionSnapshot"
|
|
3183
|
+
"dashboardInputExecutionSnapshot",
|
|
3184
|
+
"printInputCapture"
|
|
3183
3185
|
]) {
|
|
3184
|
-
const
|
|
3185
|
-
|
|
3186
|
+
const s = nn(n[c], `${r}.${c}`, t);
|
|
3187
|
+
s && (o[c] = s);
|
|
3186
3188
|
}
|
|
3187
3189
|
return Object.keys(o).length > 0 ? o : void 0;
|
|
3188
3190
|
}
|
|
@@ -3197,7 +3199,11 @@ function ae(e, r, t, n) {
|
|
|
3197
3199
|
}
|
|
3198
3200
|
function ie(e, r, t, n) {
|
|
3199
3201
|
const o = on(r, t, n);
|
|
3200
|
-
return o &&
|
|
3202
|
+
return o != null && o.printInputCapture && e.type !== "dashboard" && f(
|
|
3203
|
+
n,
|
|
3204
|
+
`${t}.printInputCapture`,
|
|
3205
|
+
"Only a full dashboard attachment can carry printInputCapture."
|
|
3206
|
+
), o && (e.settings = o), e;
|
|
3201
3207
|
}
|
|
3202
3208
|
function an(e, r, t) {
|
|
3203
3209
|
const n = `attachments.${r}`, o = k(e, n, t), a = o.type;
|
|
@@ -3395,7 +3401,7 @@ function Xe(e) {
|
|
|
3395
3401
|
"limits"
|
|
3396
3402
|
],
|
|
3397
3403
|
r
|
|
3398
|
-
), t.kind !==
|
|
3404
|
+
), t.kind !== de && f(r, "kind", "Expected BRIEFING.");
|
|
3399
3405
|
let n;
|
|
3400
3406
|
try {
|
|
3401
3407
|
n = ht(
|
|
@@ -3416,7 +3422,7 @@ function Xe(e) {
|
|
|
3416
3422
|
i,
|
|
3417
3423
|
"jobConfig.presentationExecutionSnapshot.resolvedFormats"
|
|
3418
3424
|
), ve(r), {
|
|
3419
|
-
kind:
|
|
3425
|
+
kind: de,
|
|
3420
3426
|
presentationExecutionSnapshot: n,
|
|
3421
3427
|
source: o,
|
|
3422
3428
|
body: a,
|
|
@@ -3428,7 +3434,7 @@ function Xe(e) {
|
|
|
3428
3434
|
function Io(e) {
|
|
3429
3435
|
return Xe({
|
|
3430
3436
|
...e,
|
|
3431
|
-
kind:
|
|
3437
|
+
kind: de
|
|
3432
3438
|
});
|
|
3433
3439
|
}
|
|
3434
3440
|
function be(e, r, t, n = "deliveryConfig.recipients") {
|
|
@@ -3482,12 +3488,12 @@ function be(e, r, t, n = "deliveryConfig.recipients") {
|
|
|
3482
3488
|
"Expected email, user, tenant_user, or group."
|
|
3483
3489
|
), { type: "email", address: "" });
|
|
3484
3490
|
}
|
|
3485
|
-
function
|
|
3491
|
+
function dn(e, r) {
|
|
3486
3492
|
return e == null ? [] : Array.isArray(e) ? e.map(
|
|
3487
3493
|
(t, n) => be(t, n, r)
|
|
3488
3494
|
) : (f(r, "deliveryConfig.recipients", "Expected an array."), []);
|
|
3489
3495
|
}
|
|
3490
|
-
function
|
|
3496
|
+
function sn(e, r) {
|
|
3491
3497
|
if (!Array.isArray(e))
|
|
3492
3498
|
return f(r, "deliveryConfig.channels", "Expected an array."), [];
|
|
3493
3499
|
const t = [];
|
|
@@ -3685,7 +3691,7 @@ function hn(e, r, t) {
|
|
|
3685
3691
|
n.webhookConfig,
|
|
3686
3692
|
`${r}.webhookConfig`,
|
|
3687
3693
|
t
|
|
3688
|
-
),
|
|
3694
|
+
), s = yn(
|
|
3689
3695
|
n.slackConfig,
|
|
3690
3696
|
`${r}.slackConfig`,
|
|
3691
3697
|
t
|
|
@@ -3696,7 +3702,7 @@ function hn(e, r, t) {
|
|
|
3696
3702
|
...i ? { titleOverride: i } : {},
|
|
3697
3703
|
...l ? { summaryOverride: l } : {},
|
|
3698
3704
|
...n.actionBlockVisible !== void 0 ? { actionBlockVisible: m } : {},
|
|
3699
|
-
...
|
|
3705
|
+
...s ? { slackConfig: s } : {},
|
|
3700
3706
|
...c ? { webhookConfig: c } : {}
|
|
3701
3707
|
};
|
|
3702
3708
|
}
|
|
@@ -3721,7 +3727,7 @@ function gn(e, r) {
|
|
|
3721
3727
|
}), Object.keys(n).length > 0 ? n : void 0;
|
|
3722
3728
|
}
|
|
3723
3729
|
function vn(e, r) {
|
|
3724
|
-
var m, c,
|
|
3730
|
+
var m, c, s;
|
|
3725
3731
|
if (e == null)
|
|
3726
3732
|
return null;
|
|
3727
3733
|
const t = k(e, "deliveryConfig", r);
|
|
@@ -3731,7 +3737,7 @@ function vn(e, r) {
|
|
|
3731
3737
|
["recipients", "channels", "channelConfigs"],
|
|
3732
3738
|
r
|
|
3733
3739
|
);
|
|
3734
|
-
const n = gn(t.channelConfigs, r), o =
|
|
3740
|
+
const n = gn(t.channelConfigs, r), o = dn(t.recipients, r), a = sn(t.channels, r), i = ((c = (m = n == null ? void 0 : n.SLACK) == null ? void 0 : m.slackConfig) == null ? void 0 : c.destination.type) === "channel" && !!n.SLACK.slackConfig.destination.channelId.trim();
|
|
3735
3741
|
return a.some(
|
|
3736
3742
|
(u) => u !== "SLACK"
|
|
3737
3743
|
) && o.length === 0 && f(
|
|
@@ -3746,7 +3752,7 @@ function vn(e, r) {
|
|
|
3746
3752
|
r,
|
|
3747
3753
|
"deliveryConfig.channelConfigs.SLACK.slackConfig.destination.channelId",
|
|
3748
3754
|
"Choose a Slack channel destination."
|
|
3749
|
-
), !a.includes("SLACK") && ((
|
|
3755
|
+
), !a.includes("SLACK") && ((s = n == null ? void 0 : n.SLACK) != null && s.slackConfig) && f(
|
|
3750
3756
|
r,
|
|
3751
3757
|
"deliveryConfig.channelConfigs.SLACK",
|
|
3752
3758
|
"Slack config requires SLACK in deliveryConfig.channels."
|
|
@@ -3786,8 +3792,8 @@ function Ie(e) {
|
|
|
3786
3792
|
"description",
|
|
3787
3793
|
y.description,
|
|
3788
3794
|
r
|
|
3789
|
-
) ?? null, a = $(t.scheduleExpr, "scheduleExpr", 500, r) ?? null, i = $(t.timezone, "timezone", 200, r) ?? "UTC", l = Gr(t.status, r), m = Ge(t.source, r), c = He(t.body, r),
|
|
3790
|
-
return Je(c,
|
|
3795
|
+
) ?? null, a = $(t.scheduleExpr, "scheduleExpr", 500, r) ?? null, i = $(t.timezone, "timezone", 200, r) ?? "UTC", l = Gr(t.status, r), m = Ge(t.source, r), c = He(t.body, r), s = Ze(t.attachments, r), u = We(t.presentation, r), p = Qe(t.limits, r), d = vn(t.deliveryConfig, r);
|
|
3796
|
+
return Je(c, s, r), ve(r), {
|
|
3791
3797
|
name: n,
|
|
3792
3798
|
description: o,
|
|
3793
3799
|
status: l,
|
|
@@ -3795,10 +3801,10 @@ function Ie(e) {
|
|
|
3795
3801
|
timezone: i,
|
|
3796
3802
|
source: m,
|
|
3797
3803
|
body: c,
|
|
3798
|
-
attachments:
|
|
3804
|
+
attachments: s,
|
|
3799
3805
|
presentation: u,
|
|
3800
3806
|
...p ? { limits: p } : {},
|
|
3801
|
-
deliveryConfig:
|
|
3807
|
+
deliveryConfig: d
|
|
3802
3808
|
};
|
|
3803
3809
|
}
|
|
3804
3810
|
function wo(e) {
|
|
@@ -3871,9 +3877,9 @@ export {
|
|
|
3871
3877
|
Qn as a7,
|
|
3872
3878
|
so as a8,
|
|
3873
3879
|
Kt as a9,
|
|
3874
|
-
|
|
3880
|
+
de as aa,
|
|
3875
3881
|
Rr as ab,
|
|
3876
|
-
|
|
3882
|
+
se as ac,
|
|
3877
3883
|
ne as ad,
|
|
3878
3884
|
y as ae,
|
|
3879
3885
|
R as af,
|
|
@@ -3896,11 +3902,11 @@ export {
|
|
|
3896
3902
|
vr as aw,
|
|
3897
3903
|
gr as ax,
|
|
3898
3904
|
Fr as ay,
|
|
3899
|
-
|
|
3905
|
+
dr as b,
|
|
3900
3906
|
cr as c,
|
|
3901
3907
|
po as d,
|
|
3902
3908
|
eo as e,
|
|
3903
|
-
|
|
3909
|
+
sr as f,
|
|
3904
3910
|
go as g,
|
|
3905
3911
|
ro as h,
|
|
3906
3912
|
xe as i,
|