react-semaphor 0.1.543 → 0.1.544
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/activity/index.js +73 -0
- package/dist/assistant-context/index.js +1 -1
- package/dist/briefings/index.js +51 -50
- package/dist/chunks/{apply-dashboard-operations-CG9S7MGt.js → apply-dashboard-operations-Bz4n1Lq6.js} +44 -44
- package/dist/chunks/{assistant-chat-BFMRUYoB.js → assistant-chat-BNLkCDml.js} +288 -288
- package/dist/chunks/{comparison-window-caption-Bv18samq.js → comparison-window-caption-BTkrN3W4.js} +467 -462
- package/dist/chunks/dashboard-briefing-launcher-DQ_8O_e2.js +3725 -0
- package/dist/chunks/{dashboard-controls-UGpjOM2k.js → dashboard-controls-8RyBTQUO.js} +530 -525
- package/dist/chunks/dashboard-g5a4DKWq.js +14 -0
- package/dist/chunks/{dashboard-json-DG8dz0eX.js → dashboard-json-7qT9jmfL.js} +1 -1
- package/dist/chunks/{document-dashboard-inputs-OwqCbrVp.js → document-dashboard-inputs-BC6p-ESg.js} +4 -4
- package/dist/chunks/{document-sheet-utils-BTb3VZxV.js → document-sheet-utils-Duo9uLoH.js} +11 -11
- package/dist/chunks/{edit-dashboard-visual-CDpA4y5e.js → edit-dashboard-visual-BfJwnRIZ.js} +249 -248
- package/dist/chunks/export-file-format-C-tJsxsf.js +111 -0
- package/dist/chunks/{index-l5LclZvs.js → index-DkAyQvC6.js} +59 -58
- package/dist/chunks/{matrix-formatter-BnsTX90d.js → matrix-formatter-CxJLkztA.js} +1 -1
- package/dist/chunks/{numeric-presentation-F_-H6VAw.js → numeric-presentation-DESvLiu9.js} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-DupbRk-R.js → pivot-result-lifecycle-DM4CyGKs.js} +285 -393
- package/dist/chunks/{raw-temporal-presentation-D-azM_98.js → raw-temporal-presentation-CLiVi90c.js} +2 -2
- package/dist/chunks/{report-preferences-dialog-CPwRwEJx.js → report-preferences-dialog-Df7VpRVW.js} +195 -195
- package/dist/chunks/{saved-dashboard-context-BKvMfRfC.js → saved-dashboard-context-B-mQ--nV.js} +3 -3
- package/dist/chunks/{semaphor-ready-indicator-CN2AHm2x.js → semaphor-ready-indicator-DDAxk8us.js} +39892 -39380
- package/dist/chunks/{shelf-drop-preview-context-BGl_rxcW.js → shelf-drop-preview-context-BSRPwaED.js} +414 -371
- package/dist/chunks/{table-export-sheet-BDRXLLdq.js → table-export-sheet-CPfGAQ9X.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-BnclfB2k.js → use-create-flow-overlay-state-BxzFviM-.js} +67 -78
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +72 -72
- package/dist/data-app-sdk/index.js +1 -1
- package/dist/format-utils/index.js +226 -223
- package/dist/index.js +266 -271
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/activity.d.ts +2 -0
- package/dist/types/components/activity/activity-bell.d.ts +11 -0
- package/dist/types/components/activity/activity-instance.d.ts +50 -0
- package/dist/types/components/activity/activity-notices.d.ts +7 -0
- package/dist/types/components/activity/activity-provider.d.ts +21 -0
- package/dist/types/components/activity/activity-types.d.ts +177 -0
- package/dist/types/components/activity/index.d.ts +6 -0
- package/dist/types/components/activity/use-activity.d.ts +20 -0
- package/dist/types/components/briefings/briefing-author/run-model.d.ts +1 -2
- package/dist/types/components/briefings/briefing-author.d.ts +14 -12
- package/dist/types/components/briefings/dashboard-briefing-launcher.d.ts +5 -0
- package/dist/types/components/briefings/use-briefing-run-detail.d.ts +34 -0
- package/dist/types/components/index.d.ts +1 -4
- package/dist/types/lib/activity-identity.d.ts +21 -0
- package/dist/types/lib/api/exports-api.d.ts +4 -4
- package/dist/types/lib/hooks/index.d.ts +1 -3
- package/dist/types/lib/matrix-table/matrix-delivery.d.ts +4 -0
- package/dist/types/shared/activity/activity-contract.d.ts +84 -0
- package/dist/types/shared/activity/index.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +6 -0
- package/dist/types/shared/format-utils/export-policy.d.ts +12 -0
- package/package.json +5 -1
- package/dist/chunks/dashboard-B9mKTJoy.js +0 -14
- package/dist/chunks/dashboard-briefing-launcher-Bdmry_oG.js +0 -4248
- package/dist/types/components/briefings/briefing-author/run-ui.d.ts +0 -81
- package/dist/types/components/briefings/use-briefing-run-polling.d.ts +0 -34
- package/dist/types/components/notifications/export-notification-item.d.ts +0 -24
- package/dist/types/components/notifications/export-notification-list.d.ts +0 -8
- package/dist/types/components/notifications/index.d.ts +0 -3
- package/dist/types/components/notifications/notification-bell.d.ts +0 -13
- package/dist/types/lib/exports/bounded-request.d.ts +0 -12
- package/dist/types/lib/hooks/use-export-polling.d.ts +0 -32
- package/dist/types/lib/hooks/use-export-recovery.d.ts +0 -11
- package/dist/types/lib/stores/export-store.d.ts +0 -62
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { E as g } from "../chunks/export-file-format-C-tJsxsf.js";
|
|
2
|
+
const A = ["running", "ready", "failed", "cancelled"], y = 100, k = 50, R = 24 * 60 * 6e4, p = 20, s = (i) => !!i && typeof i == "object" && !Array.isArray(i), n = (i) => typeof i == "string", o = (i) => i === null || typeof i == "string", d = (i) => i === null || typeof i == "number";
|
|
3
|
+
function e(i) {
|
|
4
|
+
throw new Error(`Invalid activity response: ${i}`);
|
|
5
|
+
}
|
|
6
|
+
function I(i, t) {
|
|
7
|
+
if (i === null) return null;
|
|
8
|
+
switch (s(i) || e(t), i.kind) {
|
|
9
|
+
case "queued":
|
|
10
|
+
case "preparing":
|
|
11
|
+
case "finalizing":
|
|
12
|
+
return { kind: i.kind };
|
|
13
|
+
case "fetching":
|
|
14
|
+
return typeof i.rowsProcessed != "number" && e(`${t}.rowsProcessed`), { kind: "fetching", rowsProcessed: i.rowsProcessed };
|
|
15
|
+
case "processing":
|
|
16
|
+
return d(i.percent) || e(`${t}.percent`), { kind: "processing", percent: i.percent };
|
|
17
|
+
default:
|
|
18
|
+
return e(`${t}.kind`);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function m(i, t) {
|
|
22
|
+
return i === null ? null : (s(i) || e(t), i.kind === "briefing" ? { kind: "briefing" } : i.kind === "export" && n(i.reason) && n(i.message) ? { kind: "export", reason: i.reason, message: i.message } : e(t));
|
|
23
|
+
}
|
|
24
|
+
function T(i, t) {
|
|
25
|
+
s(i) || e(t), n(i.id) || e(`${t}.id`), n(i.title) || e(`${t}.title`), A.includes(i.status) || e(`${t}.status`), n(i.startedAt) || e(`${t}.startedAt`), o(i.finishedAt) || e(`${t}.finishedAt`);
|
|
26
|
+
const r = {
|
|
27
|
+
id: i.id,
|
|
28
|
+
title: i.title,
|
|
29
|
+
status: i.status,
|
|
30
|
+
startedAt: i.startedAt,
|
|
31
|
+
finishedAt: i.finishedAt,
|
|
32
|
+
failure: m(i.failure ?? null, `${t}.failure`)
|
|
33
|
+
};
|
|
34
|
+
return i.kind === "export" ? (n(i.exportRequestId) || e(`${t}.exportRequestId`), g.includes(i.format) || e(`${t}.format`), d(i.totalRows) || e(`${t}.totalRows`), d(i.fileSize) || e(`${t}.fileSize`), o(i.deadlineAt) || e(`${t}.deadlineAt`), {
|
|
35
|
+
...r,
|
|
36
|
+
kind: "export",
|
|
37
|
+
exportRequestId: i.exportRequestId,
|
|
38
|
+
format: i.format,
|
|
39
|
+
stage: I(i.stage ?? null, `${t}.stage`),
|
|
40
|
+
totalRows: i.totalRows,
|
|
41
|
+
fileSize: i.fileSize,
|
|
42
|
+
deadlineAt: i.deadlineAt
|
|
43
|
+
}) : i.kind === "briefing" ? (n(i.briefingId) || e(`${t}.briefingId`), o(i.stageLabel) || e(`${t}.stageLabel`), typeof i.omittedAttachmentCount != "number" && e(`${t}.omittedAttachmentCount`), {
|
|
44
|
+
...r,
|
|
45
|
+
kind: "briefing",
|
|
46
|
+
briefingId: i.briefingId,
|
|
47
|
+
stageLabel: i.stageLabel,
|
|
48
|
+
omittedAttachmentCount: i.omittedAttachmentCount
|
|
49
|
+
}) : e(`${t}.kind`);
|
|
50
|
+
}
|
|
51
|
+
function f(i, t) {
|
|
52
|
+
return Array.isArray(i) || e(t), i.map((r, c) => T(r, `${t}[${c}]`));
|
|
53
|
+
}
|
|
54
|
+
function $(i, t) {
|
|
55
|
+
return (!Array.isArray(i) || !i.every(n)) && e(t), i;
|
|
56
|
+
}
|
|
57
|
+
function S(i) {
|
|
58
|
+
return s(i) || e("response"), typeof i.activeTruncated != "boolean" && e("activeTruncated"), {
|
|
59
|
+
active: f(i.active, "active"),
|
|
60
|
+
activeTruncated: i.activeTruncated,
|
|
61
|
+
recent: f(i.recent, "recent"),
|
|
62
|
+
resolved: f(i.resolved, "resolved"),
|
|
63
|
+
missing: $(i.missing, "missing")
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
y as ACTIVITY_ACTIVE_LIMIT,
|
|
68
|
+
k as ACTIVITY_RECENT_LIMIT,
|
|
69
|
+
R as ACTIVITY_RECENT_WINDOW_MS,
|
|
70
|
+
p as ACTIVITY_RESOLVE_LIMIT,
|
|
71
|
+
A as ACTIVITY_STATUSES,
|
|
72
|
+
S as parseActivityListResponse
|
|
73
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as t, b as r, c as o, p as d, d as n, e as p } from "../chunks/saved-dashboard-context-
|
|
1
|
+
import { A as e, a as t, b as r, c as o, p as d, d as n, e as p } from "../chunks/saved-dashboard-context-B-mQ--nV.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AssistantContextSourceError,
|
|
4
4
|
t as assistantCardReplayFields,
|
package/dist/briefings/index.js
CHANGED
|
@@ -1,60 +1,61 @@
|
|
|
1
1
|
import "../chunks/temporal-bucket-D7NBrrtL.js";
|
|
2
2
|
import "../chunks/validators-DMHTpf7a.js";
|
|
3
|
-
import "../chunks/
|
|
3
|
+
import "../chunks/export-file-format-C-tJsxsf.js";
|
|
4
4
|
import "zod";
|
|
5
|
+
import "../chunks/pivot-result-lifecycle-DM4CyGKs.js";
|
|
5
6
|
import "../chunks/matrix-operation-contract-8OIO4gob.js";
|
|
6
7
|
import "../chunks/analytics-base-schemas-BFAoRlkU.js";
|
|
7
8
|
import "../value-format-preferences/index.js";
|
|
8
|
-
import { y as
|
|
9
|
+
import { y as l, Z as B, C as m, B as d, A as c, H as p, z as E, D as I, M as T, i as u, W as C, n as h, l as b, m as A, L as D, k as S, O as F, f as _, e as N, P as y, t as R, q as M, c as x, d as O, G as v, F as G, h as L, b as U, a as z, $ as J, g as V, X as H, S as q, _ as P, T as X, E as K, Y as Q, r as j, j as k, U as W, V as Y, o as Z, I as $, N as w, K as ii, p as ei, s as ai, J as ri, Q as ti, R as si } from "../chunks/index-DkAyQvC6.js";
|
|
9
10
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
l as BRIEFING_ARTIFACT_FORMATS,
|
|
12
|
+
B as BRIEFING_ATTACHMENT_OMISSION_CODES,
|
|
13
|
+
m as BRIEFING_CONTENT_LIMITS,
|
|
14
|
+
d as BRIEFING_KIND,
|
|
15
|
+
c as BRIEFING_TEXT_LIMITS,
|
|
16
|
+
p as BriefingContractError,
|
|
16
17
|
E as DEFAULT_BRIEFING_ARTIFACT_FORMATS,
|
|
17
18
|
I as DEFAULT_BRIEFING_SCHEDULE,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
19
|
+
T as MAX_BRIEFING_ATTACHMENTS,
|
|
20
|
+
u as briefingAttachmentFormatLabel,
|
|
21
|
+
C as briefingAttachmentNeedsExportJob,
|
|
22
|
+
h as briefingScheduleDayOccurs,
|
|
23
|
+
b as briefingScheduleMonths,
|
|
24
|
+
A as briefingScheduleShortMonths,
|
|
25
|
+
D as buildBriefingJobConfig,
|
|
26
|
+
S as buildBriefingScheduleExpr,
|
|
27
|
+
F as buildCreateBriefingRequest,
|
|
28
|
+
_ as buildDashboardTemporalSnapshotEntries,
|
|
29
|
+
N as buildMatrixDeliveryEnvelope,
|
|
30
|
+
y as buildUpdateBriefingRequest,
|
|
31
|
+
R as canCreateBriefingForUser,
|
|
32
|
+
M as canonicalBriefingMonthDays,
|
|
33
|
+
x as captureMatrixExport,
|
|
34
|
+
O as describeBriefingSchedule,
|
|
35
|
+
v as formatBriefingComparisonValues,
|
|
36
|
+
G as formatBriefingDisplayValue,
|
|
37
|
+
L as getBriefingCardAttachmentCapability,
|
|
38
|
+
U as getBriefingCardAttachmentFormats,
|
|
39
|
+
z as getBriefingCreationIntents,
|
|
40
|
+
J as getBriefingDisplayTypeLabel,
|
|
41
|
+
V as getBriefingPresentation,
|
|
42
|
+
H as getDefaultBriefingCardAttachmentFormat,
|
|
43
|
+
q as isBriefingArtifactFormat,
|
|
44
|
+
P as isBriefingAttachmentOmissionCode,
|
|
45
|
+
X as isBriefingDeliveryChannel,
|
|
46
|
+
K as isBriefingNumericValue,
|
|
47
|
+
Q as isBriefingTableExportCardType,
|
|
48
|
+
j as isEmailOnlyBriefingDelivery,
|
|
49
|
+
k as isValidBriefingTimezone,
|
|
50
|
+
W as matrixDeliveryPayloadSchema,
|
|
51
|
+
Y as matrixDeliveryQuerySchema,
|
|
52
|
+
Z as nextBriefingScheduleDates,
|
|
53
|
+
$ as normalizeBriefingContentDocument,
|
|
54
|
+
w as normalizeBriefingDraft,
|
|
55
|
+
ii as normalizeBriefingJobConfig,
|
|
56
|
+
ei as parseBriefingScheduleExpr,
|
|
57
|
+
ai as readBriefingOmittedAttachments,
|
|
58
|
+
ri as validateBriefingContentDocument,
|
|
59
|
+
ti as validateBriefingDraft,
|
|
60
|
+
si as validateBriefingJobConfig
|
|
60
61
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { e as Ue, a as Ge, y as $e, z as We, A as Ye, B as xe, C as Xe, E as T, F as Ie, G as Je, H as Qe, I as re, J as Ze, K as Me, L as et, M as tt, N as rt, O as nt, P as ot, Q as it, R as
|
|
1
|
+
import { e as Ue, a as Ge, y as $e, z as We, A as Ye, B as xe, C as Xe, E as T, F as Ie, G as Je, H as Qe, I as re, J as Ze, K as Me, L as et, M as tt, N as rt, O as nt, P as ot, Q as it, R as Pe, S as at, T as st, U as ct, V as Y, W as ut, X as lt, Y as dt, b as mt, x as ft } from "./document-sheet-utils-Duo9uLoH.js";
|
|
2
2
|
import { l as yt, f as gt, e as bt } from "./validators-DMHTpf7a.js";
|
|
3
3
|
import "./matrix-operation-contract-8OIO4gob.js";
|
|
4
4
|
import { r as Ft, C as pt } from "./metric-comparison-DEwi9uc2.js";
|
|
5
5
|
import "./analytics-base-schemas-BFAoRlkU.js";
|
|
6
6
|
import "zod";
|
|
7
|
-
import {
|
|
8
|
-
import { f as E } from "./matrix-formatter-
|
|
7
|
+
import { q as vt } from "./pivot-result-lifecycle-DM4CyGKs.js";
|
|
8
|
+
import { f as E } from "./matrix-formatter-CxJLkztA.js";
|
|
9
9
|
import { b as Te, m as ht, h as Ct, d as Z, e as xt, i as P, u as I, R as It, v as Mt, r as Pt } from "./temporal-bucket-D7NBrrtL.js";
|
|
10
10
|
import "../value-format-preferences/index.js";
|
|
11
11
|
import { B as Tt } from "./table-settings-CLZocegs.js";
|
|
12
|
-
import { af as Oe, ag as Se, ah as Ot, ai as St, ab as ne, aj as At, ac as Fe } from "./numeric-presentation-
|
|
12
|
+
import { af as Oe, ag as Se, ah as Ot, ai as St, ab as ne, aj as At, ac as Fe } from "./numeric-presentation-DESvLiu9.js";
|
|
13
13
|
import { r as wt } from "./pivot-result-identity-DJhXXcns.js";
|
|
14
14
|
import { g as Dt } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
15
|
-
import { e as Bt, d as Rt } from "./raw-temporal-presentation-
|
|
15
|
+
import { e as Bt, d as Rt } from "./raw-temporal-presentation-CLiVi90c.js";
|
|
16
16
|
import { duplicateLayoutItem as Kt, addToLayout as Et } from "../layouts/index.js";
|
|
17
17
|
const oe = { kind: "allSheets" }, B = (e, t) => (t == null ? void 0 : t[e]) ?? e;
|
|
18
18
|
function Ae(e, t) {
|
|
@@ -193,11 +193,11 @@ const gn = [
|
|
|
193
193
|
"xs",
|
|
194
194
|
"xxs"
|
|
195
195
|
], bn = 15, Vt = /\{\{-?\s*filters\s*\|\s*where\s*-?\}\}/i, kt = /\{\{-?\s*filters\s*\|\s*and\s*-?\}\}/i, Lt = /\bwhere\b/i;
|
|
196
|
-
function
|
|
196
|
+
function qt(e) {
|
|
197
197
|
return e != null && e.trim() ? Vt.test(e) || kt.test(e) : !1;
|
|
198
198
|
}
|
|
199
199
|
function Fn(e) {
|
|
200
|
-
return !(e != null && e.trim()) ||
|
|
200
|
+
return !(e != null && e.trim()) || qt(e) ? null : Lt.test(e) ? {
|
|
201
201
|
helper: "{{ filters | and }}",
|
|
202
202
|
description: "For queries with an existing WHERE clause."
|
|
203
203
|
} : {
|
|
@@ -205,9 +205,9 @@ function Fn(e) {
|
|
|
205
205
|
description: "For queries without a WHERE clause."
|
|
206
206
|
};
|
|
207
207
|
}
|
|
208
|
-
const pe = [10, 20, 50, 100, 500, 1e3],
|
|
208
|
+
const pe = [10, 20, 50, 100, 500, 1e3], jt = 50;
|
|
209
209
|
function zt(e) {
|
|
210
|
-
return e && e > 0 ? e :
|
|
210
|
+
return e && e > 0 ? e : jt;
|
|
211
211
|
}
|
|
212
212
|
function pn(e) {
|
|
213
213
|
const t = zt(e), r = [...pe];
|
|
@@ -612,7 +612,7 @@ var nr = function e(t, r) {
|
|
|
612
612
|
}
|
|
613
613
|
return t !== t && r !== r;
|
|
614
614
|
};
|
|
615
|
-
const
|
|
615
|
+
const q = /* @__PURE__ */ Dt(nr);
|
|
616
616
|
function or(e) {
|
|
617
617
|
if (typeof e == "number")
|
|
618
618
|
return Number.isFinite(e);
|
|
@@ -778,7 +778,7 @@ function z(e) {
|
|
|
778
778
|
{ preserveOmittedProperties: !0 }
|
|
779
779
|
);
|
|
780
780
|
const [c] = a;
|
|
781
|
-
if (a.some((u) => !
|
|
781
|
+
if (a.some((u) => !q(u, c))) {
|
|
782
782
|
const u = I(
|
|
783
783
|
{
|
|
784
784
|
...i,
|
|
@@ -908,11 +908,11 @@ function ke(e, t, r) {
|
|
|
908
908
|
n,
|
|
909
909
|
a
|
|
910
910
|
), u = o[a];
|
|
911
|
-
if (s &&
|
|
911
|
+
if (s && q(c, u)) {
|
|
912
912
|
i[a] = n[a];
|
|
913
913
|
continue;
|
|
914
914
|
}
|
|
915
|
-
if (!s &&
|
|
915
|
+
if (!s && q(c, u))
|
|
916
916
|
continue;
|
|
917
917
|
const l = ke(
|
|
918
918
|
n[a],
|
|
@@ -949,7 +949,7 @@ function gr(e) {
|
|
|
949
949
|
}
|
|
950
950
|
};
|
|
951
951
|
}
|
|
952
|
-
return e.next.type === "number" && !
|
|
952
|
+
return e.next.type === "number" && !q(e.next.numberFormat, e.baseline.numberFormat) && t.numberFormat ? {
|
|
953
953
|
...t,
|
|
954
954
|
type: "number",
|
|
955
955
|
inheritMetricFormat: e.next.inheritMetricFormat ?? !1
|
|
@@ -1149,7 +1149,7 @@ function H(e) {
|
|
|
1149
1149
|
source: "auto"
|
|
1150
1150
|
};
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1152
|
+
function qe(e) {
|
|
1153
1153
|
var s, u, l;
|
|
1154
1154
|
const { card: t, chartType: r, axis: n, preferences: o } = e, i = ((s = t == null ? void 0 : t.config) == null ? void 0 : s.metricColumns) || [], a = (o == null ? void 0 : o.datasetOptions) || [];
|
|
1155
1155
|
if (!i.length)
|
|
@@ -1175,7 +1175,7 @@ function je(e) {
|
|
|
1175
1175
|
return r === "radar" ? n === "y" ? i : [] : n !== c ? [] : i;
|
|
1176
1176
|
}
|
|
1177
1177
|
function se(e) {
|
|
1178
|
-
const { card: t, chartType: r, axis: n, preferences: o, axisConfig: i } = e, a =
|
|
1178
|
+
const { card: t, chartType: r, axis: n, preferences: o, axisConfig: i } = e, a = qe({
|
|
1179
1179
|
card: t,
|
|
1180
1180
|
chartType: r,
|
|
1181
1181
|
axis: n,
|
|
@@ -1196,7 +1196,7 @@ function se(e) {
|
|
|
1196
1196
|
})
|
|
1197
1197
|
};
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1199
|
+
function je(e, t) {
|
|
1200
1200
|
if (!e && (!t || t === "auto" || t === "none"))
|
|
1201
1201
|
return;
|
|
1202
1202
|
const r = {
|
|
@@ -1265,7 +1265,7 @@ function En(e) {
|
|
|
1265
1265
|
const { card: t, chartType: r, preferences: n, dataLabelsConfig: o } = e, i = r || (t == null ? void 0 : t.type), a = ue({
|
|
1266
1266
|
chartType: i,
|
|
1267
1267
|
preferences: n
|
|
1268
|
-
}), c =
|
|
1268
|
+
}), c = qe({
|
|
1269
1269
|
card: t,
|
|
1270
1270
|
chartType: i,
|
|
1271
1271
|
axis: a,
|
|
@@ -1273,7 +1273,7 @@ function En(e) {
|
|
|
1273
1273
|
}), s = H({
|
|
1274
1274
|
formatMode: o == null ? void 0 : o.formatMode,
|
|
1275
1275
|
legacyMode: o == null ? void 0 : o.format,
|
|
1276
|
-
overrideFormatOptions:
|
|
1276
|
+
overrideFormatOptions: je(
|
|
1277
1277
|
o == null ? void 0 : o.formatOptions,
|
|
1278
1278
|
o == null ? void 0 : o.format
|
|
1279
1279
|
),
|
|
@@ -1308,7 +1308,7 @@ function Or(e) {
|
|
|
1308
1308
|
const { preferences: t, dataLabelsConfig: r, metric: n } = e, o = H({
|
|
1309
1309
|
formatMode: r == null ? void 0 : r.formatMode,
|
|
1310
1310
|
legacyMode: r == null ? void 0 : r.format,
|
|
1311
|
-
overrideFormatOptions:
|
|
1311
|
+
overrideFormatOptions: je(
|
|
1312
1312
|
r == null ? void 0 : r.formatOptions,
|
|
1313
1313
|
r == null ? void 0 : r.format
|
|
1314
1314
|
),
|
|
@@ -1508,7 +1508,7 @@ function Ce(e, t, r, n) {
|
|
|
1508
1508
|
}
|
|
1509
1509
|
} : e;
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function j(e) {
|
|
1512
1512
|
if (!e.valueFormatPreferences)
|
|
1513
1513
|
return;
|
|
1514
1514
|
const t = He(e);
|
|
@@ -1531,7 +1531,7 @@ function wr(e) {
|
|
|
1531
1531
|
columnKeyMap: e.columnKeyMap
|
|
1532
1532
|
});
|
|
1533
1533
|
if (e.comparisonValueKind === "percent_change" || e.comparisonValueKind === "ratio") {
|
|
1534
|
-
const i =
|
|
1534
|
+
const i = j({
|
|
1535
1535
|
card: e.card,
|
|
1536
1536
|
columnId: e.columnId,
|
|
1537
1537
|
persistedSettings: e.persistedSettings,
|
|
@@ -1561,7 +1561,7 @@ function wr(e) {
|
|
|
1561
1561
|
columnKey: e.columnId,
|
|
1562
1562
|
metricId: e.metricId ?? (t && !((o = (n = e.card.config) == null ? void 0 : n.groupByColumns) != null && o.includes(t)) ? t.id : void 0)
|
|
1563
1563
|
});
|
|
1564
|
-
return
|
|
1564
|
+
return j({
|
|
1565
1565
|
card: e.card,
|
|
1566
1566
|
columnId: e.columnId,
|
|
1567
1567
|
persistedSettings: e.persistedSettings,
|
|
@@ -1631,7 +1631,7 @@ function Dr(e) {
|
|
|
1631
1631
|
columnId: F
|
|
1632
1632
|
})) == null ? void 0 : p.id) === n;
|
|
1633
1633
|
}
|
|
1634
|
-
) || n, a =
|
|
1634
|
+
) || n, a = j({
|
|
1635
1635
|
card: e.card,
|
|
1636
1636
|
columnId: i,
|
|
1637
1637
|
metricId: n,
|
|
@@ -1753,20 +1753,20 @@ function _r(e) {
|
|
|
1753
1753
|
const t = Pe(e.card, e.effectiveCardConfig), { cardId: r, ...n } = e.requestPayloadBase, o = e.formatOptions.visibleColumns ?? [], i = [
|
|
1754
1754
|
...o,
|
|
1755
1755
|
...Object.keys(e.formatOptions.columnSettings ?? {})
|
|
1756
|
-
], a =
|
|
1756
|
+
], a = at(
|
|
1757
1757
|
e.card,
|
|
1758
1758
|
o,
|
|
1759
1759
|
e.effectiveCardConfig
|
|
1760
|
-
), c =
|
|
1760
|
+
), c = st(
|
|
1761
1761
|
e.card,
|
|
1762
1762
|
e.effectiveCardConfig,
|
|
1763
1763
|
a
|
|
1764
|
-
), s =
|
|
1764
|
+
), s = ct(
|
|
1765
1765
|
t,
|
|
1766
1766
|
i
|
|
1767
1767
|
), u = new Set(
|
|
1768
1768
|
s.eligibleTargets.map(Y)
|
|
1769
|
-
), l = (y) => u.has(Y(y)) ?
|
|
1769
|
+
), l = (y) => u.has(Y(y)) ? lt({
|
|
1770
1770
|
bindings: n.controlBindings,
|
|
1771
1771
|
controls: [
|
|
1772
1772
|
...n.controlDefinitions ?? [],
|
|
@@ -1776,7 +1776,7 @@ function _r(e) {
|
|
|
1776
1776
|
target: y,
|
|
1777
1777
|
knownTargets: s.knownTargets,
|
|
1778
1778
|
eligibleTargets: s.eligibleTargets
|
|
1779
|
-
}).currency : void 0, m =
|
|
1779
|
+
}).currency : void 0, m = ut({
|
|
1780
1780
|
card: e.card,
|
|
1781
1781
|
comparisonMetadata: e.comparisonMetadata,
|
|
1782
1782
|
columnKeyMap: ((x = e.canonicalPivotResult) == null ? void 0 : x.columnKeyMap) ?? e.columnKeyMap
|
|
@@ -1894,7 +1894,7 @@ function _r(e) {
|
|
|
1894
1894
|
resultColumnKeys: i,
|
|
1895
1895
|
valueFormatPreferences: e.reportContext.valueFormat,
|
|
1896
1896
|
boundCurrency: le
|
|
1897
|
-
}) : void 0) ??
|
|
1897
|
+
}) : void 0) ?? j({
|
|
1898
1898
|
card: t,
|
|
1899
1899
|
columnId: y,
|
|
1900
1900
|
columnKeyMap: e.columnKeyMap,
|
|
@@ -1988,7 +1988,7 @@ function _r(e) {
|
|
|
1988
1988
|
};
|
|
1989
1989
|
}
|
|
1990
1990
|
function Nr(e) {
|
|
1991
|
-
const t =
|
|
1991
|
+
const t = mt(
|
|
1992
1992
|
e.card,
|
|
1993
1993
|
e.requestPayloadBase
|
|
1994
1994
|
), { cardId: r, ...n } = t.requestPayloadBase, o = _r(e);
|
|
@@ -2005,11 +2005,11 @@ function Nr(e) {
|
|
|
2005
2005
|
formatOptions: o.formatOptions
|
|
2006
2006
|
};
|
|
2007
2007
|
}
|
|
2008
|
-
function
|
|
2008
|
+
function qn(e) {
|
|
2009
2009
|
const { card: t, result: r } = e;
|
|
2010
2010
|
if (t.type !== "table" && t.type !== "detailTable")
|
|
2011
2011
|
return { status: "refused", reason: "not_a_table" };
|
|
2012
|
-
if (
|
|
2012
|
+
if (dt({ card: t, comparisonMetadata: r.comparisonMetadata }))
|
|
2013
2013
|
return { status: "refused", reason: "comparison_metadata_missing" };
|
|
2014
2014
|
const n = Kr({
|
|
2015
2015
|
card: t,
|
|
@@ -2063,7 +2063,7 @@ function kr(e, t, r) {
|
|
|
2063
2063
|
windowTransform: ((c = e.parameters) == null ? void 0 : c.windowTransform) ?? ((s = t.parameters) == null ? void 0 : s.windowTransform)
|
|
2064
2064
|
};
|
|
2065
2065
|
}
|
|
2066
|
-
function
|
|
2066
|
+
function jn(e, t, r) {
|
|
2067
2067
|
const n = e;
|
|
2068
2068
|
return {
|
|
2069
2069
|
id: e.id,
|
|
@@ -2116,11 +2116,11 @@ function Lr(e) {
|
|
|
2116
2116
|
return t;
|
|
2117
2117
|
}
|
|
2118
2118
|
}
|
|
2119
|
-
const
|
|
2119
|
+
const qr = "table";
|
|
2120
2120
|
function zn({ preferences: e, ...t }) {
|
|
2121
2121
|
return {
|
|
2122
2122
|
...t,
|
|
2123
|
-
type:
|
|
2123
|
+
type: qr,
|
|
2124
2124
|
preferences: e ?? { onClickFilter: [{ columnIndex: 0, expression: "" }] },
|
|
2125
2125
|
sql: "",
|
|
2126
2126
|
data: []
|
|
@@ -2129,14 +2129,14 @@ function zn({ preferences: e, ...t }) {
|
|
|
2129
2129
|
function Hn(e, t) {
|
|
2130
2130
|
let r = e;
|
|
2131
2131
|
for (const [n, o] of t.entries()) {
|
|
2132
|
-
const i =
|
|
2132
|
+
const i = jr(r, o);
|
|
2133
2133
|
if (!i.ok)
|
|
2134
2134
|
return { ok: !1, failedAt: { index: n, op: o.op, ...i.failure } };
|
|
2135
2135
|
r = i.dashboard;
|
|
2136
2136
|
}
|
|
2137
2137
|
return { ok: !0, dashboard: r };
|
|
2138
2138
|
}
|
|
2139
|
-
function
|
|
2139
|
+
function jr(e, t) {
|
|
2140
2140
|
const r = e.sheets ?? [], n = r.findIndex((s) => s.id === t.sheetId), o = r[n];
|
|
2141
2141
|
if (!o)
|
|
2142
2142
|
return Q("sheet_not_found", `No sheet ${t.sheetId} on this dashboard.`);
|
|
@@ -2191,7 +2191,7 @@ export {
|
|
|
2191
2191
|
Ve as K,
|
|
2192
2192
|
wr as L,
|
|
2193
2193
|
Ln as M,
|
|
2194
|
-
|
|
2194
|
+
qr as N,
|
|
2195
2195
|
Dn as O,
|
|
2196
2196
|
mr as P,
|
|
2197
2197
|
se as Q,
|
|
@@ -2224,7 +2224,7 @@ export {
|
|
|
2224
2224
|
pn as af,
|
|
2225
2225
|
Wt as ag,
|
|
2226
2226
|
Pn as ah,
|
|
2227
|
-
|
|
2227
|
+
j as ai,
|
|
2228
2228
|
N as aj,
|
|
2229
2229
|
vn as ak,
|
|
2230
2230
|
Rn as al,
|
|
@@ -2238,15 +2238,15 @@ export {
|
|
|
2238
2238
|
un as e,
|
|
2239
2239
|
ln as f,
|
|
2240
2240
|
Fn as g,
|
|
2241
|
-
|
|
2241
|
+
qt as h,
|
|
2242
2242
|
Kr as i,
|
|
2243
2243
|
_r as j,
|
|
2244
2244
|
Nr as k,
|
|
2245
|
-
|
|
2245
|
+
qn as l,
|
|
2246
2246
|
Vr as m,
|
|
2247
2247
|
mn as n,
|
|
2248
2248
|
kr as o,
|
|
2249
|
-
|
|
2249
|
+
jn as p,
|
|
2250
2250
|
Lr as q,
|
|
2251
2251
|
_t as r,
|
|
2252
2252
|
dn as s,
|
|
@@ -2254,7 +2254,7 @@ export {
|
|
|
2254
2254
|
Hn as u,
|
|
2255
2255
|
Dr as v,
|
|
2256
2256
|
Pr as w,
|
|
2257
|
-
|
|
2257
|
+
q as x,
|
|
2258
2258
|
Gt as y,
|
|
2259
2259
|
Ht as z
|
|
2260
2260
|
};
|