react-semaphor 0.1.568 → 0.1.570
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/appearance/index.js +6 -3
- package/dist/appearance-runtime/index.js +1 -1
- package/dist/assistant-context/index.js +1 -1
- package/dist/brand-studio/index.js +572 -436
- package/dist/briefings/index.js +4 -4
- package/dist/chunks/appearance-context-BwBp25ZG.js +162 -0
- package/dist/chunks/appearance-runtime-provider-BRHYELkC.js +80 -0
- package/dist/chunks/assistant-chat-B-Ddyy8b.js +5940 -0
- package/dist/chunks/{bookmark-impact-CJ-65omV.js → bookmark-impact-DCYD-6Fr.js} +2 -2
- package/dist/chunks/{bookmark-state-Du3s13_V.js → bookmark-state-CflS88gq.js} +251 -250
- package/dist/chunks/brand-B4BdpAB_.js +54 -0
- package/dist/chunks/{card-filter-builder-BBuB99GZ.js → card-filter-builder-0VvKmRst.js} +992 -991
- package/dist/chunks/{comparison-window-caption-CMLb3mut.js → comparison-window-caption-PtcDWvkN.js} +252 -253
- package/dist/chunks/{dashboard-YnWZC4dK.js → dashboard-DxGIr1vZ.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BF89TU2h.js → dashboard-briefing-launcher-B-quOOOQ.js} +253 -253
- package/dist/chunks/{dashboard-controls-atHc1EjP.js → dashboard-controls-Caodx80b.js} +288 -285
- package/dist/chunks/dashboard-json-Ct-AGDHF.js +66 -0
- package/dist/chunks/{dates-CKO05ino.js → dates-B9mL8BHE.js} +16 -15
- package/dist/chunks/edit-Bpdh_P_a.js +226 -0
- package/dist/chunks/{edit-dashboard-visual-DdmTfn-J.js → edit-dashboard-visual-DeDTuYB5.js} +2257 -2270
- package/dist/chunks/{filter-reach-copy-jZGzK_IH.js → filter-reach-copy-BSY33ro5.js} +1440 -1301
- package/dist/chunks/filter-value-text-DvvSNlho.js +146 -0
- package/dist/chunks/index-BVKzKl5d.js +90 -0
- package/dist/chunks/{index-RNaTnE3m.js → index-CV_Kzou0.js} +233 -223
- package/dist/chunks/{index-CPNZW0mu.js → index-y3HUzRNk.js} +76 -77
- package/dist/chunks/{layout-grid-0hIlqEtk.js → layout-grid-8rR-LPTk.js} +1 -1
- package/dist/chunks/{list-filter-DkgoCeBm.js → list-filter-C1-uTgjR.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/paintbrush-aR17Z3C9.js +27 -0
- package/dist/chunks/{palette-4vf2BEEg.js → palette-a5FCZKFI.js} +1 -1
- package/dist/chunks/{_commonjsHelpers-DimLPMtv.js → pickers-DkqmtnTL.js} +352 -290
- package/dist/chunks/pivot-result-contract-expectations-C-HnUKYe.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-Yvhv3WX2.js} +95 -97
- 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-Lkbwycwe.js} +5491 -5683
- package/dist/chunks/resolver-DG_tfEpt.js +156 -0
- package/dist/chunks/{save-D6pHmSSP.js → save-D985VvYp.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-y8N6RvjS.js → saved-dashboard-context-DC_TEd6y.js} +6 -6
- package/dist/chunks/schema-C9NPiIru.js +2568 -0
- package/dist/chunks/{semaphor-ready-indicator-BSEdUq40.js → semaphor-ready-indicator-ByFvqHEO.js} +35916 -36001
- package/dist/chunks/{shelf-drop-preview-context-D7QqPl36.js → shelf-drop-preview-context-CjoVaK6J.js} +64 -66
- package/dist/chunks/{stored-dashboard-d3xQYxBD.js → stored-dashboard-C0hekXiI.js} +332 -333
- package/dist/chunks/{code-editor-DJNOsgJH.js → style-sheet-parts-C7qGZuH1.js} +2402 -2040
- package/dist/chunks/{table-export-sheet--DUKWk6o.js → table-export-sheet-CP8zSOhj.js} +1 -1
- package/dist/chunks/{temporal-input-presentation--2r9BLr0.js → temporal-input-presentation-CqbJjIuu.js} +18 -18
- package/dist/chunks/{token-types-C8JymO8s.js → token-types-iKMplaBL.js} +1 -1
- package/dist/chunks/{upload-Cf3wXZT8.js → upload-CiGNKJ_0.js} +1 -1
- package/dist/chunks/validators-B8fpdinG.js +3651 -0
- package/dist/chunks/{variable-draft-DOX03R4A.js → variable-draft-9-huI1h4.js} +4 -4
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1888 -1826
- package/dist/format-utils/index.js +230 -231
- package/dist/index.js +349 -353
- package/dist/layouts/index.js +1 -1
- 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/appearance/index.d.ts +1 -0
- package/dist/types/brand-studio/brand-studio-draft.d.ts +7 -0
- package/dist/types/brand-studio/index.d.ts +1 -1
- package/dist/types/components/briefings/briefing-author/run-model.d.ts +1 -2
- package/dist/types/components/providers/appearance-runtime-provider.d.ts +4 -1
- package/dist/types/components/sharing-and-management/hooks/use-resource-management.d.ts +0 -2
- package/dist/types/components/sharing-and-management/utils/types.d.ts +0 -72
- 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/components/visual/data-table/hooks/use-data-table-logic.d.ts +0 -1
- package/dist/types/components/visual/data-table/types/data-table.d.ts +0 -9
- package/dist/types/components/visual/data-table/utils/pagination-utils.d.ts +0 -19
- package/dist/types/components/visual/shared/utils/table-column-order.d.ts +0 -1
- package/dist/types/index.js +9 -9
- package/dist/types/lib/appearance/aliases.d.ts +42 -0
- package/dist/types/lib/appearance/compiler.d.ts +6 -0
- package/dist/types/lib/appearance/defaults.d.ts +6 -0
- package/dist/types/lib/appearance/index.d.ts +2 -0
- package/dist/types/lib/appearance/normalize-organization.d.ts +17 -0
- package/dist/types/lib/appearance/resolver.d.ts +2 -2
- package/dist/types/lib/appearance/types.d.ts +38 -1
- package/dist/types/lib/charts/types.d.ts +6 -2
- package/dist/types/lib/dashboard/semantic-dataset-references.d.ts +0 -1
- package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +0 -2
- package/dist/types/lib/dashboard-variables/types.d.ts +1 -6
- package/dist/types/lib/download-pdf.d.ts +0 -1
- package/dist/types/lib/hooks/use-dashboard.d.ts +3 -4
- 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/stores/dashboard-store.d.ts +15 -6
- package/dist/types/lib/stores/editor-store.d.ts +0 -1
- package/dist/types/lib/stores/table-actions.d.ts +0 -1
- package/dist/types/lib/table-formatting/table-formatting-css.d.ts +0 -5
- package/dist/types/lib/types/common-types.d.ts +3 -2
- 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/types/summary-types.d.ts +0 -5
- 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/analytics-base-schemas.d.ts +4 -4
- 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/execution-input-schemas.d.ts +10 -10
- 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 +72 -72
- 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 +30 -30
- 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 +344 -1772
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +4 -1
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +8 -4
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +9 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +104 -104
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +20 -20
- package/dist/types/shared/dashboard-authoring/dashboard-style/bounds.d.ts +17 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/brand.d.ts +20 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/edit-words.d.ts +7 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/edit.d.ts +19 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/index.d.ts +15 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/layers.d.ts +19 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/legacy.d.ts +21 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/parse.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/pickers.d.ts +12 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/types.d.ts +122 -0
- package/dist/types/shared/dashboard-authoring/dashboard-style/view.d.ts +10 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +11 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +23 -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 +10 -10
- 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 +7 -26
- package/DATA_APP_SDK.md +0 -339
- package/dist/chunks/appearance-context-DEYtWinQ.js +0 -126
- package/dist/chunks/appearance-runtime-provider-B-M8gwlZ.js +0 -81
- package/dist/chunks/assistant-chat-BN5I8KuN.js +0 -8849
- package/dist/chunks/color-CJvdlFM_.js +0 -2162
- package/dist/chunks/dashboard-json-Cxp3inxd.js +0 -68
- package/dist/chunks/filter-value-text-7zhmth1S.js +0 -163
- package/dist/chunks/index-CLIro-EG.js +0 -425
- 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/components/sharing-and-management/utils/group-types.d.ts +0 -105
- 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
|
@@ -1,20 +1,19 @@
|
|
|
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-CqbJjIuu.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 "./
|
|
16
|
-
import "./
|
|
17
|
-
import "./index-RNaTnE3m.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-Lkbwycwe.js";
|
|
13
|
+
import { H as ot, I as at } from "./bookmark-state-CflS88gq.js";
|
|
14
|
+
import "./pickers-DkqmtnTL.js";
|
|
15
|
+
import "./schema-C9NPiIru.js";
|
|
16
|
+
import "./index-CV_Kzou0.js";
|
|
18
17
|
import "./context-R31TSL5V.js";
|
|
19
18
|
const it = /* @__PURE__ */ new Set(["table", "detailTable"]), ct = /* @__PURE__ */ new Set([
|
|
20
19
|
"bar",
|
|
@@ -44,16 +43,16 @@ const it = /* @__PURE__ */ new Set(["table", "detailTable"]), ct = /* @__PURE__
|
|
|
44
43
|
"treemap",
|
|
45
44
|
"custom"
|
|
46
45
|
]);
|
|
47
|
-
function
|
|
46
|
+
function Xn(e) {
|
|
48
47
|
var o, a, i;
|
|
49
48
|
const n = ct.has(e.type) && (e.type !== "custom" || !!((o = e.customCardPreferences) != null && o.url));
|
|
50
49
|
let t = !1;
|
|
51
50
|
try {
|
|
52
|
-
t = !!
|
|
51
|
+
t = !!Ke(e);
|
|
53
52
|
} catch {
|
|
54
53
|
return { formats: [], defaultFormat: null };
|
|
55
54
|
}
|
|
56
|
-
return e.type === "text" || !n || !t &&
|
|
55
|
+
return e.type === "text" || !n || !t && Ge(e) ? { formats: [], defaultFormat: null } : {
|
|
57
56
|
formats: dt({
|
|
58
57
|
cardType: e.type,
|
|
59
58
|
allowDownload: (a = e.preferences) == null ? void 0 : a.allowDownload
|
|
@@ -82,7 +81,7 @@ function lt(e) {
|
|
|
82
81
|
return n || Z((r = e.settings) == null ? void 0 : r.cardType) ? { kind: "export_job", format: e.format } : { kind: "rendered", format: "csv" };
|
|
83
82
|
}
|
|
84
83
|
}
|
|
85
|
-
function
|
|
84
|
+
function Zn(e) {
|
|
86
85
|
return lt(e).kind === "export_job";
|
|
87
86
|
}
|
|
88
87
|
function st(e) {
|
|
@@ -92,13 +91,13 @@ function st(e) {
|
|
|
92
91
|
function dt(e) {
|
|
93
92
|
return e.allowDownload === !1 ? ["pdf", "png"] : e.cardType === "matrixTable" || Z(e.cardType) ? ["pdf", "png", "csv", "xlsx"] : ["pdf", "png", "csv"];
|
|
94
93
|
}
|
|
95
|
-
function
|
|
94
|
+
function Yn(e) {
|
|
96
95
|
return st(e).label;
|
|
97
96
|
}
|
|
98
97
|
function mt(e) {
|
|
99
98
|
return it.has(e.cardType) && e.allowDownload !== !1 ? "csv" : "pdf";
|
|
100
99
|
}
|
|
101
|
-
function
|
|
100
|
+
function Jn(e) {
|
|
102
101
|
const { config: n } = e, t = Ne({
|
|
103
102
|
spec: n.spec,
|
|
104
103
|
presentation: n.presentation,
|
|
@@ -134,7 +133,7 @@ const ut = y.object({
|
|
|
134
133
|
semanticDomainId: y.string().optional()
|
|
135
134
|
}).passthrough(),
|
|
136
135
|
active_filters: y.array(y.unknown()).default([])
|
|
137
|
-
}).passthrough(),
|
|
136
|
+
}).passthrough(), Qn = ut.extend({
|
|
138
137
|
dashboardId: y.string().min(1),
|
|
139
138
|
cardId: y.string().min(1),
|
|
140
139
|
formatOptions: y.object({
|
|
@@ -149,7 +148,7 @@ const ut = y.object({
|
|
|
149
148
|
});
|
|
150
149
|
})
|
|
151
150
|
});
|
|
152
|
-
function
|
|
151
|
+
function er(e) {
|
|
153
152
|
return {
|
|
154
153
|
...e.controls,
|
|
155
154
|
type: "card",
|
|
@@ -184,7 +183,7 @@ function tr(e) {
|
|
|
184
183
|
}
|
|
185
184
|
};
|
|
186
185
|
}
|
|
187
|
-
const z = y.number().int().nonnegative(),
|
|
186
|
+
const z = y.number().int().nonnegative(), tr = y.discriminatedUnion("status", [
|
|
188
187
|
y.object({
|
|
189
188
|
status: y.literal("ok"),
|
|
190
189
|
request: X,
|
|
@@ -221,7 +220,7 @@ function de(e) {
|
|
|
221
220
|
var n;
|
|
222
221
|
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
222
|
}
|
|
224
|
-
function
|
|
223
|
+
function nr(e) {
|
|
225
224
|
var t;
|
|
226
225
|
const n = (e == null ? void 0 : e.frameObject) ?? ((t = e == null ? void 0 : e.visual) == null ? void 0 : t.frameObject);
|
|
227
226
|
return de(ft(n));
|
|
@@ -283,25 +282,25 @@ function ht(e, n) {
|
|
|
283
282
|
var i;
|
|
284
283
|
const t = n ? (i = e.cards) == null ? void 0 : i.find((c) => c.id === n) : de(e);
|
|
285
284
|
if (!t) return [];
|
|
286
|
-
const r =
|
|
285
|
+
const r = et(e, t), o = (e.cards || []).filter(
|
|
287
286
|
(c) => {
|
|
288
287
|
var l;
|
|
289
288
|
return typeof ((l = c.customCardPreferences) == null ? void 0 : l.slotIndex) == "number";
|
|
290
289
|
}
|
|
291
|
-
).length > 1, a = r != null && (
|
|
292
|
-
return !r || !a ? [t] :
|
|
293
|
-
|
|
290
|
+
).length > 1, a = r != null && (tt(r) === "multiple" || o);
|
|
291
|
+
return !r || !a ? [t] : nt(
|
|
292
|
+
rt({
|
|
294
293
|
frame: e,
|
|
295
294
|
configCard: r,
|
|
296
295
|
isMultiInputVisual: !0
|
|
297
296
|
})
|
|
298
297
|
).filter((c) => c !== null);
|
|
299
298
|
}
|
|
300
|
-
function
|
|
299
|
+
function rr(e) {
|
|
301
300
|
return pt(e.dashboard, e.selections).flatMap(
|
|
302
301
|
({ card: n, attachmentIndex: t }) => {
|
|
303
302
|
var d, f;
|
|
304
|
-
const r = ((d = e.resolveCardConfig) == null ? void 0 : d.call(e, n)) ?? n.config, o =
|
|
303
|
+
const r = ((d = e.resolveCardConfig) == null ? void 0 : d.call(e, n)) ?? n.config, o = He({
|
|
305
304
|
card: n,
|
|
306
305
|
cardConfig: r
|
|
307
306
|
}), a = {
|
|
@@ -315,7 +314,7 @@ function or(e) {
|
|
|
315
314
|
fieldId: p.id,
|
|
316
315
|
role: p.role
|
|
317
316
|
},
|
|
318
|
-
format:
|
|
317
|
+
format: We(
|
|
319
318
|
p,
|
|
320
319
|
{
|
|
321
320
|
dateStyle: e.valueFormatPreferences.dateStyle,
|
|
@@ -323,7 +322,7 @@ function or(e) {
|
|
|
323
322
|
},
|
|
324
323
|
e.valueFormatPreferences.locale
|
|
325
324
|
)
|
|
326
|
-
})) : [], c = [], l =
|
|
325
|
+
})) : [], c = [], l = Xe(n, r), m = Ze(
|
|
327
326
|
n.python || ""
|
|
328
327
|
);
|
|
329
328
|
if (n.type === "detailTable" && l === "config") {
|
|
@@ -343,7 +342,7 @@ function or(e) {
|
|
|
343
342
|
target: { kind: "column", columnKey: N },
|
|
344
343
|
format: oe({
|
|
345
344
|
// What the table draws: the stored format, or Automatic (ledger P7-07).
|
|
346
|
-
format:
|
|
345
|
+
format: Ye(v),
|
|
347
346
|
preferences: e.valueFormatPreferences,
|
|
348
347
|
calendar: e.calendar
|
|
349
348
|
})
|
|
@@ -351,10 +350,10 @@ function or(e) {
|
|
|
351
350
|
}
|
|
352
351
|
} else if (l === "freeform" && ((f = n.sql) != null && f.trim()) && !m.trim())
|
|
353
352
|
for (const [p, g] of Object.entries(
|
|
354
|
-
|
|
353
|
+
Je(n)
|
|
355
354
|
)) {
|
|
356
355
|
if (g.type !== "date") continue;
|
|
357
|
-
const v =
|
|
356
|
+
const v = Qe(
|
|
358
357
|
g.dateFormat
|
|
359
358
|
);
|
|
360
359
|
v && c.push({
|
|
@@ -612,7 +611,7 @@ const B = [
|
|
|
612
611
|
3: "third",
|
|
613
612
|
4: "fourth",
|
|
614
613
|
[-1]: "last"
|
|
615
|
-
},
|
|
614
|
+
}, or = {
|
|
616
615
|
frequency: "weekly",
|
|
617
616
|
hour: 9,
|
|
618
617
|
minute: 0,
|
|
@@ -658,7 +657,7 @@ function Ct(e, n) {
|
|
|
658
657
|
function ye(e, n) {
|
|
659
658
|
return e.every((t) => Dt(t, n));
|
|
660
659
|
}
|
|
661
|
-
function
|
|
660
|
+
function ar(e) {
|
|
662
661
|
if (!$t(e))
|
|
663
662
|
throw new Error("Choose a valid schedule time.");
|
|
664
663
|
const n = `${e.minute} ${e.hour}`;
|
|
@@ -813,7 +812,7 @@ function wt(e, n, t) {
|
|
|
813
812
|
const o = O(e, n).map((a) => r(a, "short")).join(", ");
|
|
814
813
|
return e === 3 ? `each quarter (${o})` : `every ${e} months (${o})`;
|
|
815
814
|
}
|
|
816
|
-
function
|
|
815
|
+
function ir(e, n, t = "en-US") {
|
|
817
816
|
const r = ge(e);
|
|
818
817
|
if (!r.ok) return null;
|
|
819
818
|
try {
|
|
@@ -846,7 +845,7 @@ const be = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
|
846
845
|
function Dt(e, n) {
|
|
847
846
|
return e === "last" || n.some((t) => e <= be[t]);
|
|
848
847
|
}
|
|
849
|
-
function
|
|
848
|
+
function cr(e) {
|
|
850
849
|
if (e.frequency !== "monthly" || e.on.type !== "days") return null;
|
|
851
850
|
const n = e.on.days.filter((o) => o !== "last");
|
|
852
851
|
if (n.length === 0) return null;
|
|
@@ -875,7 +874,7 @@ function Nt(e, n, t, r) {
|
|
|
875
874
|
}
|
|
876
875
|
}
|
|
877
876
|
}
|
|
878
|
-
function
|
|
877
|
+
function lr(e, n, t, r) {
|
|
879
878
|
const o = ge(e);
|
|
880
879
|
if (!o.ok || !vt(n)) return [];
|
|
881
880
|
const a = o.value, i = new Intl.DateTimeFormat("en-US", {
|
|
@@ -938,7 +937,7 @@ function Lt(e) {
|
|
|
938
937
|
diagnostic: n.diagnostic
|
|
939
938
|
};
|
|
940
939
|
}
|
|
941
|
-
function
|
|
940
|
+
function sr(e) {
|
|
942
941
|
if (!e || typeof e != "object" || Array.isArray(e)) return [];
|
|
943
942
|
const n = e.omittedAttachments;
|
|
944
943
|
return Array.isArray(n) ? n.flatMap((t) => {
|
|
@@ -946,7 +945,7 @@ function dr(e) {
|
|
|
946
945
|
return r ? [r] : [];
|
|
947
946
|
}) : [];
|
|
948
947
|
}
|
|
949
|
-
const
|
|
948
|
+
const dr = "Briefing run cancelled by user", Bt = [
|
|
950
949
|
"sent",
|
|
951
950
|
"partly_sent",
|
|
952
951
|
"failed",
|
|
@@ -1008,7 +1007,7 @@ function zt(e) {
|
|
|
1008
1007
|
})
|
|
1009
1008
|
} : null;
|
|
1010
1009
|
}
|
|
1011
|
-
function
|
|
1010
|
+
function mr(e) {
|
|
1012
1011
|
return R(e) ? R(e.deliveryOutcome) && Array.isArray(e.deliveryOutcome.channels) ? {
|
|
1013
1012
|
channels: e.deliveryOutcome.channels.flatMap((n) => {
|
|
1014
1013
|
const t = Pt(n);
|
|
@@ -1016,10 +1015,10 @@ function ur(e) {
|
|
|
1016
1015
|
})
|
|
1017
1016
|
} : zt(e.deliveryResult) : null;
|
|
1018
1017
|
}
|
|
1019
|
-
function
|
|
1018
|
+
function ur(e) {
|
|
1020
1019
|
return e != null && e.role ? e.type === "tenant" ? e.role === "POWER_USER" : ["AUTHOR", "ADMIN", "SUPER_ADMIN"].includes(e.role) : !1;
|
|
1021
1020
|
}
|
|
1022
|
-
function
|
|
1021
|
+
function fr(e) {
|
|
1023
1022
|
return e.canCreate ? [
|
|
1024
1023
|
...e.scheduledReportAvailable ? ["scheduled_report"] : [],
|
|
1025
1024
|
...e.analyticalBriefingsEnabled ? ["analytical_briefing"] : []
|
|
@@ -1032,7 +1031,7 @@ function jt(e) {
|
|
|
1032
1031
|
function qt(e) {
|
|
1033
1032
|
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
1033
|
}
|
|
1035
|
-
function
|
|
1034
|
+
function pr(e) {
|
|
1036
1035
|
const n = qt(e), t = n === "Scheduled report" || n === "On-demand report" ? "report" : "briefing";
|
|
1037
1036
|
return {
|
|
1038
1037
|
typeLabel: n,
|
|
@@ -1084,7 +1083,7 @@ function Gt(e) {
|
|
|
1084
1083
|
function Ht(e) {
|
|
1085
1084
|
return e == null ? "" : Gt(e) ? Re(e.value, e.format) : String(e);
|
|
1086
1085
|
}
|
|
1087
|
-
function
|
|
1086
|
+
function hr(e) {
|
|
1088
1087
|
return [e.delta, e.percentChange].filter(
|
|
1089
1088
|
(n) => n != null
|
|
1090
1089
|
).map(Ht).filter(Boolean).join(" / ");
|
|
@@ -1893,7 +1892,7 @@ function gn(e) {
|
|
|
1893
1892
|
blocks: i
|
|
1894
1893
|
};
|
|
1895
1894
|
}
|
|
1896
|
-
function
|
|
1895
|
+
function yr(e) {
|
|
1897
1896
|
try {
|
|
1898
1897
|
return {
|
|
1899
1898
|
valid: !0,
|
|
@@ -2299,7 +2298,7 @@ function _e(e) {
|
|
|
2299
2298
|
...l ? { limits: l } : {}
|
|
2300
2299
|
};
|
|
2301
2300
|
}
|
|
2302
|
-
function
|
|
2301
|
+
function gr(e) {
|
|
2303
2302
|
return _e({
|
|
2304
2303
|
...e,
|
|
2305
2304
|
kind: H
|
|
@@ -2675,13 +2674,13 @@ function ee(e) {
|
|
|
2675
2674
|
deliveryConfig: g
|
|
2676
2675
|
};
|
|
2677
2676
|
}
|
|
2678
|
-
function
|
|
2677
|
+
function br(e) {
|
|
2679
2678
|
return ee(e);
|
|
2680
2679
|
}
|
|
2681
|
-
function
|
|
2680
|
+
function Er(e) {
|
|
2682
2681
|
return ee(e);
|
|
2683
2682
|
}
|
|
2684
|
-
function
|
|
2683
|
+
function Ir(e) {
|
|
2685
2684
|
try {
|
|
2686
2685
|
return { valid: !0, value: ee(e), issues: [] };
|
|
2687
2686
|
} catch (n) {
|
|
@@ -2690,7 +2689,7 @@ function vr(e) {
|
|
|
2690
2689
|
throw n;
|
|
2691
2690
|
}
|
|
2692
2691
|
}
|
|
2693
|
-
function
|
|
2692
|
+
function vr(e) {
|
|
2694
2693
|
try {
|
|
2695
2694
|
return { valid: !0, value: _e(e), issues: [] };
|
|
2696
2695
|
} catch (n) {
|
|
@@ -2699,7 +2698,7 @@ function $r(e) {
|
|
|
2699
2698
|
throw n;
|
|
2700
2699
|
}
|
|
2701
2700
|
}
|
|
2702
|
-
function
|
|
2701
|
+
function $r(e) {
|
|
2703
2702
|
return typeof e == "string" && Ie.has(e);
|
|
2704
2703
|
}
|
|
2705
2704
|
function we(e) {
|
|
@@ -2708,33 +2707,33 @@ function we(e) {
|
|
|
2708
2707
|
export {
|
|
2709
2708
|
lt as $,
|
|
2710
2709
|
Kt as A,
|
|
2711
|
-
|
|
2710
|
+
dr as B,
|
|
2712
2711
|
W as C,
|
|
2713
|
-
|
|
2712
|
+
or as D,
|
|
2714
2713
|
u as E,
|
|
2715
2714
|
$ as F,
|
|
2716
2715
|
Gt as G,
|
|
2717
2716
|
Ht as H,
|
|
2718
|
-
|
|
2717
|
+
hr as I,
|
|
2719
2718
|
Ee as J,
|
|
2720
2719
|
V as K,
|
|
2721
2720
|
gn as L,
|
|
2722
2721
|
j as M,
|
|
2723
|
-
|
|
2722
|
+
yr as N,
|
|
2724
2723
|
_e as O,
|
|
2725
|
-
|
|
2724
|
+
gr as P,
|
|
2726
2725
|
ee as Q,
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2726
|
+
br as R,
|
|
2727
|
+
Er as S,
|
|
2728
|
+
Ir as T,
|
|
2729
|
+
vr as U,
|
|
2730
|
+
$r as V,
|
|
2732
2731
|
we as W,
|
|
2733
|
-
|
|
2732
|
+
Qn as X,
|
|
2734
2733
|
ut as Y,
|
|
2735
2734
|
st as Z,
|
|
2736
|
-
|
|
2737
|
-
|
|
2735
|
+
Zn as _,
|
|
2736
|
+
fr as a,
|
|
2738
2737
|
mt as a0,
|
|
2739
2738
|
Z as a1,
|
|
2740
2739
|
Ft as a2,
|
|
@@ -2743,28 +2742,28 @@ export {
|
|
|
2743
2742
|
Ut as a5,
|
|
2744
2743
|
qt as a6,
|
|
2745
2744
|
dt as b,
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2745
|
+
Jn as c,
|
|
2746
|
+
ir as d,
|
|
2747
|
+
er as e,
|
|
2748
|
+
rr as f,
|
|
2749
|
+
pr as g,
|
|
2750
|
+
Xn as h,
|
|
2751
|
+
Yn as i,
|
|
2753
2752
|
vt as j,
|
|
2754
|
-
|
|
2753
|
+
ar as k,
|
|
2755
2754
|
O as l,
|
|
2756
|
-
|
|
2755
|
+
cr as m,
|
|
2757
2756
|
Dt as n,
|
|
2758
|
-
|
|
2757
|
+
lr as o,
|
|
2759
2758
|
ge as p,
|
|
2760
2759
|
he as q,
|
|
2761
2760
|
jt as r,
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2761
|
+
mr as s,
|
|
2762
|
+
sr as t,
|
|
2763
|
+
ur as u,
|
|
2765
2764
|
ft as v,
|
|
2766
2765
|
de as w,
|
|
2767
|
-
|
|
2768
|
-
|
|
2766
|
+
nr as x,
|
|
2767
|
+
tr as y,
|
|
2769
2768
|
H as z
|
|
2770
2769
|
};
|