react-semaphor 0.1.568 → 0.1.569
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/README.md +0 -7
- package/dist/analytics-protocol/index.js +434 -454
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +10 -12
- package/dist/briefings/index.js +4 -4
- package/dist/chunks/{_commonjsHelpers-DimLPMtv.js → _commonjsHelpers-Bid1ZNYj.js} +271 -222
- package/dist/chunks/{assistant-chat-BN5I8KuN.js → assistant-chat-Dzf2Mbph.js} +107 -109
- package/dist/chunks/{bookmark-impact-CJ-65omV.js → bookmark-impact-Czg6FGt5.js} +2 -2
- package/dist/chunks/{bookmark-state-Du3s13_V.js → bookmark-state-CflS88gq.js} +251 -250
- package/dist/chunks/{card-filter-builder-BBuB99GZ.js → card-filter-builder-BS982X7x.js} +986 -985
- package/dist/chunks/{code-editor-DJNOsgJH.js → code-editor-BsxHzm9u.js} +43 -45
- package/dist/chunks/{comparison-window-caption-CMLb3mut.js → comparison-window-caption-lLTgzOkM.js} +252 -253
- package/dist/chunks/{dashboard-YnWZC4dK.js → dashboard-BiYSbxZv.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BF89TU2h.js → dashboard-briefing-launcher-Bdj7luOr.js} +158 -159
- package/dist/chunks/{dashboard-controls-atHc1EjP.js → dashboard-controls-TViDsnb8.js} +17 -19
- package/dist/chunks/dashboard-json-Dg9dQd9U.js +66 -0
- package/dist/chunks/{dates-CKO05ino.js → dates-BsPrWZIP.js} +8 -8
- package/dist/chunks/{edit-dashboard-visual-DdmTfn-J.js → edit-dashboard-visual-C6hoIeEJ.js} +20 -21
- package/dist/chunks/{filter-reach-copy-jZGzK_IH.js → filter-reach-copy-hcQ4os0u.js} +695 -699
- package/dist/chunks/filter-value-text-CVxEEDVl.js +146 -0
- package/dist/chunks/{index-CPNZW0mu.js → index-G4q89J6O.js} +74 -76
- package/dist/chunks/{layout-grid-0hIlqEtk.js → layout-grid-BIcoFfdS.js} +1 -1
- package/dist/chunks/{list-filter-DkgoCeBm.js → list-filter-C6tYkHyv.js} +1 -1
- package/dist/chunks/matrix-analytical-definition-dkS8szLM.js +1253 -0
- package/dist/chunks/matrix-member-presentation-DRa-9e6Q.js +169 -0
- package/dist/chunks/{matrix-operation-contract-Eb6elidS.js → matrix-operation-contract-DCVinw1o.js} +122 -122
- package/dist/chunks/{metric-comparison-ChXUFaZu.js → metric-comparison-n9NsIa-2.js} +175 -128
- package/dist/chunks/{palette-4vf2BEEg.js → palette-NjHOE_6B.js} +1 -1
- package/dist/chunks/pivot-result-contract-expectations-DkmueDTW.js +55 -0
- package/dist/chunks/{pivot-result-identity-BlbLrqaC.js → pivot-result-identity-B89X5xjb.js} +1 -1
- package/dist/chunks/raw-temporal-value-DdT0s47W.js +159 -0
- package/dist/chunks/{report-preferences-dialog-Mbd-I0wV.js → report-preferences-dialog-Xc8_GFju.js} +26 -28
- package/dist/chunks/{report-runtime-context-DnA_PiKo.js → report-runtime-context-BhPzLTbS.js} +1 -1
- package/dist/chunks/{resolve-dashboard-input-context-Du0fjN3h.js → resolve-dashboard-input-context-KqvcLcTM.js} +4784 -4764
- package/dist/chunks/{save-D6pHmSSP.js → save-C6VmEJTA.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-y8N6RvjS.js → saved-dashboard-context-BeXXyoD4.js} +6 -6
- package/dist/chunks/{semaphor-ready-indicator-BSEdUq40.js → semaphor-ready-indicator-BNkaANsG.js} +28395 -28384
- package/dist/chunks/{shelf-drop-preview-context-D7QqPl36.js → shelf-drop-preview-context-C_issPBA.js} +18 -20
- package/dist/chunks/{stored-dashboard-d3xQYxBD.js → stored-dashboard-B6_StAty.js} +263 -265
- package/dist/chunks/{table-export-sheet--DUKWk6o.js → table-export-sheet-BWP2joD1.js} +1 -1
- package/dist/chunks/{temporal-input-presentation--2r9BLr0.js → temporal-input-presentation-scSWQXAB.js} +4 -4
- package/dist/chunks/{token-types-C8JymO8s.js → token-types-iKMplaBL.js} +1 -1
- package/dist/chunks/{upload-Cf3wXZT8.js → upload-BRW4Mwrd.js} +1 -1
- package/dist/chunks/validators-B8fpdinG.js +3651 -0
- package/dist/chunks/{variable-draft-DOX03R4A.js → variable-draft-BQ3OMjvy.js} +4 -4
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1527 -1517
- package/dist/format-utils/index.js +230 -231
- package/dist/index.js +236 -237
- package/dist/report-runtime-context/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/surfboard/filter/types.d.ts +5 -4
- package/dist/types/components/ui-custom/date-range-presets.d.ts +1 -17
- package/dist/types/index.js +9 -9
- package/dist/types/lib/hooks/use-date-filter.d.ts +3 -3
- package/dist/types/lib/matrix-table/matrix-card-adapter.d.ts +1 -1
- package/dist/types/lib/types/explorer-types.d.ts +2 -2
- package/dist/types/lib/types/index.d.ts +1 -1
- package/dist/types/lib/utils/card-definition.d.ts +7 -7
- package/dist/types/shared/analytics-protocol/agent-time-window.d.ts +84 -0
- package/dist/types/shared/analytics-protocol/applied-constraints.d.ts +2 -2
- package/dist/types/shared/analytics-protocol/contracts.d.ts +8 -17
- package/dist/types/shared/analytics-protocol/fixtures.d.ts +3 -2
- package/dist/types/shared/analytics-protocol/index.d.ts +2 -4
- package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +4 -4
- package/dist/types/shared/analytics-protocol/relative-date/describe.d.ts +18 -0
- package/dist/types/shared/analytics-protocol/relative-date/index.d.ts +7 -0
- package/dist/types/shared/analytics-protocol/relative-date/limits.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/relative-date/presets.d.ts +11 -0
- package/dist/types/shared/analytics-protocol/relative-date/resolve.d.ts +49 -0
- package/dist/types/shared/analytics-protocol/relative-date/schemas.d.ts +76 -0
- package/dist/types/shared/analytics-protocol/relative-date/traits.d.ts +51 -0
- package/dist/types/shared/analytics-protocol/relative-date/window.d.ts +111 -0
- package/dist/types/shared/analytics-protocol/selection-contract.d.ts +1 -1
- package/dist/types/shared/assistant-protocol/context.d.ts +12 -12
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +0 -2
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +155 -1753
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +8 -4
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +74 -74
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +20 -20
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +3 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +10 -2
- package/dist/types/shared/format-utils/filter-detail.d.ts +2 -8
- package/dist/types/shared/format-utils/filter-line.d.ts +2 -2
- package/dist/types/shared/format-utils/matrix-continuation.d.ts +3 -3
- package/dist/types/shared/temporal/index.d.ts +0 -2
- package/dist/types/shared/temporal/temporal-parity-fixtures.d.ts +2 -2
- package/package.json +2 -24
- package/DATA_APP_SDK.md +0 -339
- package/dist/chunks/dashboard-json-Cxp3inxd.js +0 -68
- package/dist/chunks/filter-value-text-7zhmth1S.js +0 -163
- package/dist/chunks/index-CuHybtft.js +0 -51
- package/dist/chunks/matrix-analytical-definition-C9xB_T84.js +0 -717
- package/dist/chunks/matrix-card-BSUeSXpD.js +0 -42
- package/dist/chunks/matrix-member-presentation-DZNgQpUq.js +0 -105
- package/dist/chunks/operators-B3zZoskU.js +0 -66
- package/dist/chunks/pivot-result-contract-expectations-Ddh1rNz5.js +0 -56
- package/dist/chunks/raw-temporal-value-Bqz8wc7L.js +0 -242
- package/dist/chunks/selection-reducer-OaJ-N5uN.js +0 -46
- package/dist/chunks/source-entity-resolution-DF6GulDn.js +0 -607
- package/dist/chunks/validators-wtjw0aw6.js +0 -3332
- package/dist/data-app-sdk/index.js +0 -1412
- package/dist/data-app-sdk-adapters/index.js +0 -361
- package/dist/data-app-sdk-validation/index.js +0 -1031
- package/dist/types/data-app-sdk/adapters.d.ts +0 -35
- package/dist/types/data-app-sdk/builders.d.ts +0 -62
- package/dist/types/data-app-sdk/contracts.d.ts +0 -419
- package/dist/types/data-app-sdk/executor.d.ts +0 -5
- package/dist/types/data-app-sdk/field-catalog-validation.d.ts +0 -29
- package/dist/types/data-app-sdk/hooks.d.ts +0 -11
- package/dist/types/data-app-sdk/index.d.ts +0 -9
- package/dist/types/data-app-sdk/provider.d.ts +0 -8
- package/dist/types/data-app-sdk/relationship-aware-field-policy.d.ts +0 -21
- package/dist/types/data-app-sdk/selection.d.ts +0 -2
- package/dist/types/data-app-sdk/validation.d.ts +0 -58
- package/dist/types/data-app-sdk-adapters.d.ts +0 -2
- package/dist/types/data-app-sdk-validation.d.ts +0 -2
- package/dist/types/data-app-sdk.d.ts +0 -2
- package/dist/types/shared/analytics-protocol/relative-date-filter.d.ts +0 -68
- package/dist/types/shared/analytics-protocol/relative-date-label.d.ts +0 -20
- package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +0 -314
- package/dist/types/shared/analytics-protocol/time-window.d.ts +0 -52
- package/dist/types/shared/temporal/relative-date.d.ts +0 -21
- package/dist/types/shared/temporal/time-window-periods.d.ts +0 -21
- package/src/data-app-sdk/README.md +0 -402
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { j as p, r as y } from "./validators-B8fpdinG.js";
|
|
2
|
+
import { a as I } from "./metric-comparison-n9NsIa-2.js";
|
|
3
|
+
import "../value-format-preferences/index.js";
|
|
4
|
+
import { c as N } from "./raw-temporal-value-DdT0s47W.js";
|
|
5
|
+
import { a9 as k, a8 as T } from "./temporal-input-presentation-scSWQXAB.js";
|
|
6
|
+
const d = { kind: "plain" }, g = { kind: "temporal" }, D = {
|
|
7
|
+
"=": "=",
|
|
8
|
+
"!=": "!=",
|
|
9
|
+
">": ">",
|
|
10
|
+
">=": ">=",
|
|
11
|
+
"<": "<",
|
|
12
|
+
"<=": "<=",
|
|
13
|
+
in: "in",
|
|
14
|
+
"not in": "not in",
|
|
15
|
+
between: "between",
|
|
16
|
+
"not between": "not between",
|
|
17
|
+
contains: "contains (ignoring case)",
|
|
18
|
+
startsWith: "starts with (ignoring case)",
|
|
19
|
+
endsWith: "ends with (ignoring case)",
|
|
20
|
+
like: "matches the LIKE pattern (ignoring case)",
|
|
21
|
+
"not like": "does not match the LIKE pattern (ignoring case)",
|
|
22
|
+
isNull: "is empty",
|
|
23
|
+
isNotNull: "is not empty"
|
|
24
|
+
}, L = { between: "in", "not between": "not in" };
|
|
25
|
+
function O(t, n = {}) {
|
|
26
|
+
const { operator: e, values: i, reading: r } = t, o = r.kind === "bucket" ? `${t.subject} (${k(r.bucket)})` : t.subject, s = D[e], l = t.shownAs ? ` (shown as ${JSON.stringify(t.shownAs)})` : "", u = (a, m = 0) => ({ text: a, omittedValues: m });
|
|
27
|
+
if (e === "isNull" || e === "isNotNull") return u(`${o} ${s}`);
|
|
28
|
+
if (t.latestValue)
|
|
29
|
+
return u(`${o} ${s} the latest value of this field (resolved at run time)`);
|
|
30
|
+
if (e === "between" || e === "not between") {
|
|
31
|
+
const a = i.length === 2 ? S(i[0], i[1], r, n.timeZone) : void 0;
|
|
32
|
+
if (t.relative)
|
|
33
|
+
return u(`${o} ${L[e]} ${V(t.relative, a)}`);
|
|
34
|
+
if (a) {
|
|
35
|
+
const m = a.wholeDaysIn ? ` (whole days in ${a.wholeDaysIn})` : "";
|
|
36
|
+
return u(`${o} ${s} ${a.from} and ${a.to}${m}${l}`);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return e === "in" || e === "not in" || i.length !== 1 ? u(
|
|
40
|
+
`${o} ${s} (${w(i, r, n.maxListedValues)})${l}`,
|
|
41
|
+
$(i.length, n.maxListedValues)
|
|
42
|
+
) : u(`${o} ${s} ${c(i[0], r)}${l}`);
|
|
43
|
+
}
|
|
44
|
+
function P(t, n = {}) {
|
|
45
|
+
return t == null ? { text: "no value", omittedValues: 0 } : Array.isArray(t) ? {
|
|
46
|
+
text: w(t, d, n.maxListedValues),
|
|
47
|
+
omittedValues: $(t.length, n.maxListedValues)
|
|
48
|
+
} : { text: c(t), omittedValues: 0 };
|
|
49
|
+
}
|
|
50
|
+
function c(t, n = d) {
|
|
51
|
+
if (n.kind !== "plain") {
|
|
52
|
+
const e = b(t, n);
|
|
53
|
+
if (e !== void 0) return e;
|
|
54
|
+
}
|
|
55
|
+
return t instanceof Date ? b(t, g) ?? JSON.stringify(String(t)) : t === void 0 ? "null" : typeof t == "number" || typeof t == "boolean" || t === null ? String(t) : JSON.stringify(t) ?? String(t);
|
|
56
|
+
}
|
|
57
|
+
function w(t, n = d, e = Number.POSITIVE_INFINITY) {
|
|
58
|
+
const i = t.slice(0, Number.isFinite(e) ? e : void 0).map((o) => c(o, n)).join(", "), r = $(t.length, e);
|
|
59
|
+
return r > 0 ? `${i}, and ${r} more values` : i;
|
|
60
|
+
}
|
|
61
|
+
function $(t, n = Number.POSITIVE_INFINITY) {
|
|
62
|
+
return Math.max(0, t - n);
|
|
63
|
+
}
|
|
64
|
+
function f(t) {
|
|
65
|
+
if (t instanceof Date)
|
|
66
|
+
return Number.isNaN(t.getTime()) ? void 0 : { kind: "instant", instant: t };
|
|
67
|
+
if (typeof t != "string") return;
|
|
68
|
+
const n = N(t);
|
|
69
|
+
return n === "instant" ? { kind: n, instant: new Date(t) } : n ? { kind: n, text: t } : void 0;
|
|
70
|
+
}
|
|
71
|
+
function b(t, n) {
|
|
72
|
+
if (n.kind === "bucket")
|
|
73
|
+
return typeof t == "string" && T(t, n.bucket).ok ? t : void 0;
|
|
74
|
+
const e = f(t);
|
|
75
|
+
if (e)
|
|
76
|
+
return e.kind === "instant" ? e.instant.toISOString() : e.text;
|
|
77
|
+
}
|
|
78
|
+
function S(t, n, e, i) {
|
|
79
|
+
const r = e.kind === "temporal" ? f(t) : void 0, o = e.kind === "temporal" ? f(n) : void 0;
|
|
80
|
+
if (i && (r == null ? void 0 : r.kind) === "instant" && (o == null ? void 0 : o.kind) === "instant") {
|
|
81
|
+
const s = h(r.instant, i), l = h(o.instant, i);
|
|
82
|
+
if (s && l && s.time === "00:00:00" && r.instant.getUTCMilliseconds() === 0 && l.time === "23:59:59" && [0, 999].includes(o.instant.getUTCMilliseconds()))
|
|
83
|
+
return { from: s.date, to: l.date, wholeDaysIn: i };
|
|
84
|
+
}
|
|
85
|
+
return { from: c(t, e), to: c(n, e) };
|
|
86
|
+
}
|
|
87
|
+
function h(t, n) {
|
|
88
|
+
try {
|
|
89
|
+
const e = Object.fromEntries(
|
|
90
|
+
new Intl.DateTimeFormat("en-CA", {
|
|
91
|
+
timeZone: n,
|
|
92
|
+
year: "numeric",
|
|
93
|
+
month: "2-digit",
|
|
94
|
+
day: "2-digit",
|
|
95
|
+
hour: "2-digit",
|
|
96
|
+
minute: "2-digit",
|
|
97
|
+
second: "2-digit",
|
|
98
|
+
hourCycle: "h23"
|
|
99
|
+
}).formatToParts(t).map((i) => [i.type, i.value])
|
|
100
|
+
);
|
|
101
|
+
return {
|
|
102
|
+
date: `${e.year}-${e.month}-${e.day}`,
|
|
103
|
+
time: `${e.hour}:${e.minute}:${e.second}`
|
|
104
|
+
};
|
|
105
|
+
} catch {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
function V(t, n) {
|
|
110
|
+
const { label: e, definition: i } = p(t), r = n && !I(t).dataAnchored ? `; last resolved here as ${n.from} to ${n.to}${n.wholeDaysIn ? `, whole days in ${n.wholeDaysIn}` : ""}` : "";
|
|
111
|
+
return `${e ? `${JSON.stringify(e)} ` : ""}(relative window: ${i}; resolved again at run time${r})`;
|
|
112
|
+
}
|
|
113
|
+
const A = {
|
|
114
|
+
"=": "=",
|
|
115
|
+
"!=": "!=",
|
|
116
|
+
">": ">",
|
|
117
|
+
">=": ">=",
|
|
118
|
+
"<": "<",
|
|
119
|
+
"<=": "<=",
|
|
120
|
+
in: "in",
|
|
121
|
+
"not in": "not in",
|
|
122
|
+
like: "like",
|
|
123
|
+
"not like": "not like",
|
|
124
|
+
between: "between",
|
|
125
|
+
"not between": "not between",
|
|
126
|
+
"is null": "isNull",
|
|
127
|
+
"is not null": "isNotNull"
|
|
128
|
+
};
|
|
129
|
+
function W(t, n, e = {}) {
|
|
130
|
+
const i = t.valueType === "date";
|
|
131
|
+
return O({
|
|
132
|
+
subject: n,
|
|
133
|
+
operator: A[t.operation],
|
|
134
|
+
values: t.values,
|
|
135
|
+
reading: i ? g : d,
|
|
136
|
+
...i ? { relative: y(t.relativeMeta) } : {}
|
|
137
|
+
}, e);
|
|
138
|
+
}
|
|
139
|
+
export {
|
|
140
|
+
d as P,
|
|
141
|
+
g as T,
|
|
142
|
+
O as a,
|
|
143
|
+
P as b,
|
|
144
|
+
W as d,
|
|
145
|
+
$ as o
|
|
146
|
+
};
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
var De = Object.defineProperty;
|
|
2
2
|
var Oe = (e, n, t) => n in e ? De(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
3
|
var M = (e, n, t) => Oe(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
-
import { at as Ne, W as Fe, ah as oe, N as se, j as Re, V as Me, R as F } from "./temporal-input-presentation
|
|
5
|
-
import {
|
|
4
|
+
import { at as Ne, W as Fe, ah as oe, N as se, j as Re, V as Me, R as F } from "./temporal-input-presentation-scSWQXAB.js";
|
|
5
|
+
import { T as X, a5 as Le, S as Be } from "./validators-B8fpdinG.js";
|
|
6
6
|
import { l as Ue, C as Pe } from "./export-file-format-C-tJsxsf.js";
|
|
7
7
|
import { z as y } from "zod";
|
|
8
|
-
import { ah as Ve, aj as ze,
|
|
8
|
+
import { ah as Ve, aj as ze, W as je } from "./matrix-operation-contract-DCVinw1o.js";
|
|
9
9
|
import "./analytics-base-schemas-BaIQrEzX.js";
|
|
10
10
|
import "../value-format-preferences/index.js";
|
|
11
11
|
import { r as qe } from "./rendered-file-D8xEuVVx.js";
|
|
12
|
-
import { J as Ke, K as Ge, L as He, M as We,
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import "./index-CuHybtft.js";
|
|
16
|
-
import "./_commonjsHelpers-DimLPMtv.js";
|
|
12
|
+
import { J as Ke, K as Ge, L as He, M as We, N as Xe, n as Ze, O as Ye, P as Je, Q as Qe, R as et, S as tt, T as nt, U as rt } from "./resolve-dashboard-input-context-KqvcLcTM.js";
|
|
13
|
+
import { H as ot, I as at } from "./bookmark-state-CflS88gq.js";
|
|
14
|
+
import "./_commonjsHelpers-Bid1ZNYj.js";
|
|
17
15
|
import "./index-RNaTnE3m.js";
|
|
18
16
|
import "./context-R31TSL5V.js";
|
|
19
17
|
const it = /* @__PURE__ */ new Set(["table", "detailTable"]), ct = /* @__PURE__ */ new Set([
|
|
@@ -44,16 +42,16 @@ const it = /* @__PURE__ */ new Set(["table", "detailTable"]), ct = /* @__PURE__
|
|
|
44
42
|
"treemap",
|
|
45
43
|
"custom"
|
|
46
44
|
]);
|
|
47
|
-
function
|
|
45
|
+
function Wn(e) {
|
|
48
46
|
var o, a, i;
|
|
49
47
|
const n = ct.has(e.type) && (e.type !== "custom" || !!((o = e.customCardPreferences) != null && o.url));
|
|
50
48
|
let t = !1;
|
|
51
49
|
try {
|
|
52
|
-
t = !!
|
|
50
|
+
t = !!Ke(e);
|
|
53
51
|
} catch {
|
|
54
52
|
return { formats: [], defaultFormat: null };
|
|
55
53
|
}
|
|
56
|
-
return e.type === "text" || !n || !t &&
|
|
54
|
+
return e.type === "text" || !n || !t && Ge(e) ? { formats: [], defaultFormat: null } : {
|
|
57
55
|
formats: dt({
|
|
58
56
|
cardType: e.type,
|
|
59
57
|
allowDownload: (a = e.preferences) == null ? void 0 : a.allowDownload
|
|
@@ -82,7 +80,7 @@ function lt(e) {
|
|
|
82
80
|
return n || Z((r = e.settings) == null ? void 0 : r.cardType) ? { kind: "export_job", format: e.format } : { kind: "rendered", format: "csv" };
|
|
83
81
|
}
|
|
84
82
|
}
|
|
85
|
-
function
|
|
83
|
+
function Xn(e) {
|
|
86
84
|
return lt(e).kind === "export_job";
|
|
87
85
|
}
|
|
88
86
|
function st(e) {
|
|
@@ -92,13 +90,13 @@ function st(e) {
|
|
|
92
90
|
function dt(e) {
|
|
93
91
|
return e.allowDownload === !1 ? ["pdf", "png"] : e.cardType === "matrixTable" || Z(e.cardType) ? ["pdf", "png", "csv", "xlsx"] : ["pdf", "png", "csv"];
|
|
94
92
|
}
|
|
95
|
-
function
|
|
93
|
+
function Zn(e) {
|
|
96
94
|
return st(e).label;
|
|
97
95
|
}
|
|
98
96
|
function mt(e) {
|
|
99
97
|
return it.has(e.cardType) && e.allowDownload !== !1 ? "csv" : "pdf";
|
|
100
98
|
}
|
|
101
|
-
function
|
|
99
|
+
function Yn(e) {
|
|
102
100
|
const { config: n } = e, t = Ne({
|
|
103
101
|
spec: n.spec,
|
|
104
102
|
presentation: n.presentation,
|
|
@@ -134,7 +132,7 @@ const ut = y.object({
|
|
|
134
132
|
semanticDomainId: y.string().optional()
|
|
135
133
|
}).passthrough(),
|
|
136
134
|
active_filters: y.array(y.unknown()).default([])
|
|
137
|
-
}).passthrough(),
|
|
135
|
+
}).passthrough(), Jn = ut.extend({
|
|
138
136
|
dashboardId: y.string().min(1),
|
|
139
137
|
cardId: y.string().min(1),
|
|
140
138
|
formatOptions: y.object({
|
|
@@ -149,7 +147,7 @@ const ut = y.object({
|
|
|
149
147
|
});
|
|
150
148
|
})
|
|
151
149
|
});
|
|
152
|
-
function
|
|
150
|
+
function Qn(e) {
|
|
153
151
|
return {
|
|
154
152
|
...e.controls,
|
|
155
153
|
type: "card",
|
|
@@ -184,7 +182,7 @@ function tr(e) {
|
|
|
184
182
|
}
|
|
185
183
|
};
|
|
186
184
|
}
|
|
187
|
-
const z = y.number().int().nonnegative(),
|
|
185
|
+
const z = y.number().int().nonnegative(), er = y.discriminatedUnion("status", [
|
|
188
186
|
y.object({
|
|
189
187
|
status: y.literal("ok"),
|
|
190
188
|
request: X,
|
|
@@ -221,7 +219,7 @@ function de(e) {
|
|
|
221
219
|
var n;
|
|
222
220
|
return (n = e == null ? void 0 : e.cards) != null && n.length ? e.activeCardId && e.cards.find((t) => t.id === e.activeCardId) || e.cards[0] : null;
|
|
223
221
|
}
|
|
224
|
-
function
|
|
222
|
+
function tr(e) {
|
|
225
223
|
var t;
|
|
226
224
|
const n = (e == null ? void 0 : e.frameObject) ?? ((t = e == null ? void 0 : e.visual) == null ? void 0 : t.frameObject);
|
|
227
225
|
return de(ft(n));
|
|
@@ -283,25 +281,25 @@ function ht(e, n) {
|
|
|
283
281
|
var i;
|
|
284
282
|
const t = n ? (i = e.cards) == null ? void 0 : i.find((c) => c.id === n) : de(e);
|
|
285
283
|
if (!t) return [];
|
|
286
|
-
const r =
|
|
284
|
+
const r = et(e, t), o = (e.cards || []).filter(
|
|
287
285
|
(c) => {
|
|
288
286
|
var l;
|
|
289
287
|
return typeof ((l = c.customCardPreferences) == null ? void 0 : l.slotIndex) == "number";
|
|
290
288
|
}
|
|
291
|
-
).length > 1, a = r != null && (
|
|
292
|
-
return !r || !a ? [t] :
|
|
293
|
-
|
|
289
|
+
).length > 1, a = r != null && (tt(r) === "multiple" || o);
|
|
290
|
+
return !r || !a ? [t] : nt(
|
|
291
|
+
rt({
|
|
294
292
|
frame: e,
|
|
295
293
|
configCard: r,
|
|
296
294
|
isMultiInputVisual: !0
|
|
297
295
|
})
|
|
298
296
|
).filter((c) => c !== null);
|
|
299
297
|
}
|
|
300
|
-
function
|
|
298
|
+
function nr(e) {
|
|
301
299
|
return pt(e.dashboard, e.selections).flatMap(
|
|
302
300
|
({ card: n, attachmentIndex: t }) => {
|
|
303
301
|
var d, f;
|
|
304
|
-
const r = ((d = e.resolveCardConfig) == null ? void 0 : d.call(e, n)) ?? n.config, o =
|
|
302
|
+
const r = ((d = e.resolveCardConfig) == null ? void 0 : d.call(e, n)) ?? n.config, o = He({
|
|
305
303
|
card: n,
|
|
306
304
|
cardConfig: r
|
|
307
305
|
}), a = {
|
|
@@ -315,7 +313,7 @@ function or(e) {
|
|
|
315
313
|
fieldId: p.id,
|
|
316
314
|
role: p.role
|
|
317
315
|
},
|
|
318
|
-
format:
|
|
316
|
+
format: We(
|
|
319
317
|
p,
|
|
320
318
|
{
|
|
321
319
|
dateStyle: e.valueFormatPreferences.dateStyle,
|
|
@@ -323,7 +321,7 @@ function or(e) {
|
|
|
323
321
|
},
|
|
324
322
|
e.valueFormatPreferences.locale
|
|
325
323
|
)
|
|
326
|
-
})) : [], c = [], l =
|
|
324
|
+
})) : [], c = [], l = Xe(n, r), m = Ze(
|
|
327
325
|
n.python || ""
|
|
328
326
|
);
|
|
329
327
|
if (n.type === "detailTable" && l === "config") {
|
|
@@ -343,7 +341,7 @@ function or(e) {
|
|
|
343
341
|
target: { kind: "column", columnKey: N },
|
|
344
342
|
format: oe({
|
|
345
343
|
// What the table draws: the stored format, or Automatic (ledger P7-07).
|
|
346
|
-
format:
|
|
344
|
+
format: Ye(v),
|
|
347
345
|
preferences: e.valueFormatPreferences,
|
|
348
346
|
calendar: e.calendar
|
|
349
347
|
})
|
|
@@ -351,10 +349,10 @@ function or(e) {
|
|
|
351
349
|
}
|
|
352
350
|
} else if (l === "freeform" && ((f = n.sql) != null && f.trim()) && !m.trim())
|
|
353
351
|
for (const [p, g] of Object.entries(
|
|
354
|
-
|
|
352
|
+
Je(n)
|
|
355
353
|
)) {
|
|
356
354
|
if (g.type !== "date") continue;
|
|
357
|
-
const v =
|
|
355
|
+
const v = Qe(
|
|
358
356
|
g.dateFormat
|
|
359
357
|
);
|
|
360
358
|
v && c.push({
|
|
@@ -612,7 +610,7 @@ const B = [
|
|
|
612
610
|
3: "third",
|
|
613
611
|
4: "fourth",
|
|
614
612
|
[-1]: "last"
|
|
615
|
-
},
|
|
613
|
+
}, rr = {
|
|
616
614
|
frequency: "weekly",
|
|
617
615
|
hour: 9,
|
|
618
616
|
minute: 0,
|
|
@@ -658,7 +656,7 @@ function Ct(e, n) {
|
|
|
658
656
|
function ye(e, n) {
|
|
659
657
|
return e.every((t) => Dt(t, n));
|
|
660
658
|
}
|
|
661
|
-
function
|
|
659
|
+
function or(e) {
|
|
662
660
|
if (!$t(e))
|
|
663
661
|
throw new Error("Choose a valid schedule time.");
|
|
664
662
|
const n = `${e.minute} ${e.hour}`;
|
|
@@ -813,7 +811,7 @@ function wt(e, n, t) {
|
|
|
813
811
|
const o = O(e, n).map((a) => r(a, "short")).join(", ");
|
|
814
812
|
return e === 3 ? `each quarter (${o})` : `every ${e} months (${o})`;
|
|
815
813
|
}
|
|
816
|
-
function
|
|
814
|
+
function ar(e, n, t = "en-US") {
|
|
817
815
|
const r = ge(e);
|
|
818
816
|
if (!r.ok) return null;
|
|
819
817
|
try {
|
|
@@ -846,7 +844,7 @@ const be = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
|
846
844
|
function Dt(e, n) {
|
|
847
845
|
return e === "last" || n.some((t) => e <= be[t]);
|
|
848
846
|
}
|
|
849
|
-
function
|
|
847
|
+
function ir(e) {
|
|
850
848
|
if (e.frequency !== "monthly" || e.on.type !== "days") return null;
|
|
851
849
|
const n = e.on.days.filter((o) => o !== "last");
|
|
852
850
|
if (n.length === 0) return null;
|
|
@@ -875,7 +873,7 @@ function Nt(e, n, t, r) {
|
|
|
875
873
|
}
|
|
876
874
|
}
|
|
877
875
|
}
|
|
878
|
-
function
|
|
876
|
+
function cr(e, n, t, r) {
|
|
879
877
|
const o = ge(e);
|
|
880
878
|
if (!o.ok || !vt(n)) return [];
|
|
881
879
|
const a = o.value, i = new Intl.DateTimeFormat("en-US", {
|
|
@@ -938,7 +936,7 @@ function Lt(e) {
|
|
|
938
936
|
diagnostic: n.diagnostic
|
|
939
937
|
};
|
|
940
938
|
}
|
|
941
|
-
function
|
|
939
|
+
function lr(e) {
|
|
942
940
|
if (!e || typeof e != "object" || Array.isArray(e)) return [];
|
|
943
941
|
const n = e.omittedAttachments;
|
|
944
942
|
return Array.isArray(n) ? n.flatMap((t) => {
|
|
@@ -946,7 +944,7 @@ function dr(e) {
|
|
|
946
944
|
return r ? [r] : [];
|
|
947
945
|
}) : [];
|
|
948
946
|
}
|
|
949
|
-
const
|
|
947
|
+
const sr = "Briefing run cancelled by user", Bt = [
|
|
950
948
|
"sent",
|
|
951
949
|
"partly_sent",
|
|
952
950
|
"failed",
|
|
@@ -1008,7 +1006,7 @@ function zt(e) {
|
|
|
1008
1006
|
})
|
|
1009
1007
|
} : null;
|
|
1010
1008
|
}
|
|
1011
|
-
function
|
|
1009
|
+
function dr(e) {
|
|
1012
1010
|
return R(e) ? R(e.deliveryOutcome) && Array.isArray(e.deliveryOutcome.channels) ? {
|
|
1013
1011
|
channels: e.deliveryOutcome.channels.flatMap((n) => {
|
|
1014
1012
|
const t = Pt(n);
|
|
@@ -1016,10 +1014,10 @@ function ur(e) {
|
|
|
1016
1014
|
})
|
|
1017
1015
|
} : zt(e.deliveryResult) : null;
|
|
1018
1016
|
}
|
|
1019
|
-
function
|
|
1017
|
+
function mr(e) {
|
|
1020
1018
|
return e != null && e.role ? e.type === "tenant" ? e.role === "POWER_USER" : ["AUTHOR", "ADMIN", "SUPER_ADMIN"].includes(e.role) : !1;
|
|
1021
1019
|
}
|
|
1022
|
-
function
|
|
1020
|
+
function ur(e) {
|
|
1023
1021
|
return e.canCreate ? [
|
|
1024
1022
|
...e.scheduledReportAvailable ? ["scheduled_report"] : [],
|
|
1025
1023
|
...e.analyticalBriefingsEnabled ? ["analytical_briefing"] : []
|
|
@@ -1032,7 +1030,7 @@ function jt(e) {
|
|
|
1032
1030
|
function qt(e) {
|
|
1033
1031
|
return e.body.type === "generated_analysis" ? "Analytical briefing" : e.body.type === "custom_message" && e.attachments.length > 0 && jt(e.deliveryConfig) ? e.scheduleExpr ? "Scheduled report" : "On-demand report" : "Plain briefing";
|
|
1034
1032
|
}
|
|
1035
|
-
function
|
|
1033
|
+
function fr(e) {
|
|
1036
1034
|
const n = qt(e), t = n === "Scheduled report" || n === "On-demand report" ? "report" : "briefing";
|
|
1037
1035
|
return {
|
|
1038
1036
|
typeLabel: n,
|
|
@@ -1084,7 +1082,7 @@ function Gt(e) {
|
|
|
1084
1082
|
function Ht(e) {
|
|
1085
1083
|
return e == null ? "" : Gt(e) ? Re(e.value, e.format) : String(e);
|
|
1086
1084
|
}
|
|
1087
|
-
function
|
|
1085
|
+
function pr(e) {
|
|
1088
1086
|
return [e.delta, e.percentChange].filter(
|
|
1089
1087
|
(n) => n != null
|
|
1090
1088
|
).map(Ht).filter(Boolean).join(" / ");
|
|
@@ -1893,7 +1891,7 @@ function gn(e) {
|
|
|
1893
1891
|
blocks: i
|
|
1894
1892
|
};
|
|
1895
1893
|
}
|
|
1896
|
-
function
|
|
1894
|
+
function hr(e) {
|
|
1897
1895
|
try {
|
|
1898
1896
|
return {
|
|
1899
1897
|
valid: !0,
|
|
@@ -2299,7 +2297,7 @@ function _e(e) {
|
|
|
2299
2297
|
...l ? { limits: l } : {}
|
|
2300
2298
|
};
|
|
2301
2299
|
}
|
|
2302
|
-
function
|
|
2300
|
+
function yr(e) {
|
|
2303
2301
|
return _e({
|
|
2304
2302
|
...e,
|
|
2305
2303
|
kind: H
|
|
@@ -2675,13 +2673,13 @@ function ee(e) {
|
|
|
2675
2673
|
deliveryConfig: g
|
|
2676
2674
|
};
|
|
2677
2675
|
}
|
|
2678
|
-
function
|
|
2676
|
+
function gr(e) {
|
|
2679
2677
|
return ee(e);
|
|
2680
2678
|
}
|
|
2681
|
-
function
|
|
2679
|
+
function br(e) {
|
|
2682
2680
|
return ee(e);
|
|
2683
2681
|
}
|
|
2684
|
-
function
|
|
2682
|
+
function Er(e) {
|
|
2685
2683
|
try {
|
|
2686
2684
|
return { valid: !0, value: ee(e), issues: [] };
|
|
2687
2685
|
} catch (n) {
|
|
@@ -2690,7 +2688,7 @@ function vr(e) {
|
|
|
2690
2688
|
throw n;
|
|
2691
2689
|
}
|
|
2692
2690
|
}
|
|
2693
|
-
function
|
|
2691
|
+
function Ir(e) {
|
|
2694
2692
|
try {
|
|
2695
2693
|
return { valid: !0, value: _e(e), issues: [] };
|
|
2696
2694
|
} catch (n) {
|
|
@@ -2699,7 +2697,7 @@ function $r(e) {
|
|
|
2699
2697
|
throw n;
|
|
2700
2698
|
}
|
|
2701
2699
|
}
|
|
2702
|
-
function
|
|
2700
|
+
function vr(e) {
|
|
2703
2701
|
return typeof e == "string" && Ie.has(e);
|
|
2704
2702
|
}
|
|
2705
2703
|
function we(e) {
|
|
@@ -2708,33 +2706,33 @@ function we(e) {
|
|
|
2708
2706
|
export {
|
|
2709
2707
|
lt as $,
|
|
2710
2708
|
Kt as A,
|
|
2711
|
-
|
|
2709
|
+
sr as B,
|
|
2712
2710
|
W as C,
|
|
2713
|
-
|
|
2711
|
+
rr as D,
|
|
2714
2712
|
u as E,
|
|
2715
2713
|
$ as F,
|
|
2716
2714
|
Gt as G,
|
|
2717
2715
|
Ht as H,
|
|
2718
|
-
|
|
2716
|
+
pr as I,
|
|
2719
2717
|
Ee as J,
|
|
2720
2718
|
V as K,
|
|
2721
2719
|
gn as L,
|
|
2722
2720
|
j as M,
|
|
2723
|
-
|
|
2721
|
+
hr as N,
|
|
2724
2722
|
_e as O,
|
|
2725
|
-
|
|
2723
|
+
yr as P,
|
|
2726
2724
|
ee as Q,
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2725
|
+
gr as R,
|
|
2726
|
+
br as S,
|
|
2727
|
+
Er as T,
|
|
2728
|
+
Ir as U,
|
|
2729
|
+
vr as V,
|
|
2732
2730
|
we as W,
|
|
2733
|
-
|
|
2731
|
+
Jn as X,
|
|
2734
2732
|
ut as Y,
|
|
2735
2733
|
st as Z,
|
|
2736
|
-
|
|
2737
|
-
|
|
2734
|
+
Xn as _,
|
|
2735
|
+
ur as a,
|
|
2738
2736
|
mt as a0,
|
|
2739
2737
|
Z as a1,
|
|
2740
2738
|
Ft as a2,
|
|
@@ -2743,28 +2741,28 @@ export {
|
|
|
2743
2741
|
Ut as a5,
|
|
2744
2742
|
qt as a6,
|
|
2745
2743
|
dt as b,
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2744
|
+
Yn as c,
|
|
2745
|
+
ar as d,
|
|
2746
|
+
Qn as e,
|
|
2747
|
+
nr as f,
|
|
2748
|
+
fr as g,
|
|
2749
|
+
Wn as h,
|
|
2750
|
+
Zn as i,
|
|
2753
2751
|
vt as j,
|
|
2754
|
-
|
|
2752
|
+
or as k,
|
|
2755
2753
|
O as l,
|
|
2756
|
-
|
|
2754
|
+
ir as m,
|
|
2757
2755
|
Dt as n,
|
|
2758
|
-
|
|
2756
|
+
cr as o,
|
|
2759
2757
|
ge as p,
|
|
2760
2758
|
he as q,
|
|
2761
2759
|
jt as r,
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2760
|
+
dr as s,
|
|
2761
|
+
lr as t,
|
|
2762
|
+
mr as u,
|
|
2765
2763
|
ft as v,
|
|
2766
2764
|
de as w,
|
|
2767
|
-
|
|
2768
|
-
|
|
2765
|
+
tr as x,
|
|
2766
|
+
er as y,
|
|
2769
2767
|
H as z
|
|
2770
2768
|
};
|