react-semaphor 0.1.545 → 0.1.547
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-protocol/index.js +408 -442
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +100 -76
- package/dist/brand-studio/index.js +4 -4
- package/dist/briefings/index.js +6 -6
- package/dist/chunks/{add-to-dashboard-BuAqfA2Y.js → add-to-dashboard-BQRAAnc3.js} +55 -33
- package/dist/chunks/{analytics-base-schemas-BFAoRlkU.js → analytics-base-schemas-BKs3flFS.js} +2 -2
- package/dist/chunks/applied-constraints-DU-wndZ7.js +47 -0
- package/dist/chunks/{assistant-chat-D7sWTypJ.js → assistant-chat-CK84cPAB.js} +2826 -2595
- package/dist/chunks/{bookmark-state-CXw7lZ50.js → bookmark-state-Cu-a5ie_.js} +8 -15
- package/dist/chunks/comparison-window-caption-C2xF-eWw.js +1433 -0
- package/dist/chunks/{context-ClREvqCZ.js → context-BerEBuFR.js} +11 -6
- package/dist/chunks/custom-visual-inputs-ChL54gGm.js +295 -0
- package/dist/chunks/{dashboard-B1tMju0u.js → dashboard-DCk26-6i.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CePgIu0Z.js → dashboard-briefing-launcher-CQ1eYsGy.js} +1291 -1277
- package/dist/chunks/dashboard-controls-BMeZjF7r.js +2307 -0
- package/dist/chunks/{dashboard-json-CoYRPqxx.js → dashboard-json-BZqCoanC.js} +5 -5
- package/dist/chunks/{document-dashboard-inputs-BesAHZvB.js → document-dashboard-inputs-tYd7ao0o.js} +877 -979
- package/dist/chunks/{edit-dashboard-visual-JPtNfJRb.js → edit-dashboard-visual-Bv3MHM_G.js} +2157 -2243
- package/dist/chunks/filter-reach-copy-CGWsL_ez.js +3480 -0
- package/dist/chunks/{filter-value-text-ff7osJr7.js → filter-value-text-Ddf55Ku1.js} +9 -9
- package/dist/chunks/global-date-filter-utils-BhAu8zIM.js +12137 -0
- package/dist/chunks/index-CtoK1Lgu.js +586 -0
- package/dist/chunks/{index-DRWiuqyd.js → index-DmrLP5Ro.js} +105 -104
- package/dist/chunks/list-filter-DsaTbM3J.js +15 -0
- package/dist/chunks/matrix-analytical-definition-B9vW-osb.js +717 -0
- package/dist/chunks/{matrix-card-DjwWcCo8.js → matrix-card-LiMEipvq.js} +3 -3
- package/dist/chunks/{matrix-formatter-DnCyRXJE.js → matrix-formatter-DWEeC0_c.js} +44 -44
- package/dist/chunks/{matrix-member-presentation-CQGdVks6.js → matrix-member-presentation-DqzG-UhQ.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-8OIO4gob.js → matrix-operation-contract-D6vYkZK4.js} +72 -72
- package/dist/chunks/{metric-comparison-DEwi9uc2.js → metric-comparison-zpGw4lD6.js} +2 -2
- package/dist/chunks/normalize-dashboard-for-dirty-check-XKgH3GFX.js +119 -0
- package/dist/chunks/{pivot-header-presentation-DHcx1XGQ.js → pivot-header-presentation-CQnIDtUv.js} +1 -1
- package/dist/chunks/{pivot-result-identity-DJhXXcns.js → pivot-result-identity-C-Q1j1Wb.js} +1 -1
- package/dist/chunks/{pivot-result-lifecycle-DM4CyGKs.js → pivot-result-lifecycle-pwq3b7LC.js} +571 -380
- package/dist/chunks/{raw-temporal-contract-C51YG48G.js → raw-temporal-contract-WuXA8jBP.js} +1 -1
- package/dist/chunks/{raw-temporal-presentation-C3mUgnEx.js → raw-temporal-presentation-DypB7sMX.js} +8 -8
- package/dist/chunks/{report-preferences-dialog-DUtuUL_5.js → report-preferences-dialog-DoVyriYC.js} +154 -155
- package/dist/chunks/{report-runtime-context-Dq8XyODK.js → report-runtime-context-hWiTCzFV.js} +2 -2
- package/dist/chunks/resolve-dashboard-input-context-D0JDUa4h.js +5576 -0
- package/dist/chunks/{saved-dashboard-context-LrF_kW0l.js → saved-dashboard-context-BfAH5j4L.js} +34 -34
- package/dist/chunks/{selection-reducer-Dj_8xD69.js → selection-reducer-CJzkTZio.js} +15 -15
- package/dist/chunks/{semaphor-ready-indicator-BxF96Yhv.js → semaphor-ready-indicator-CRm17oIP.js} +51771 -52574
- package/dist/chunks/{shelf-drop-preview-context-CNaM_Gmh.js → shelf-drop-preview-context-vy6P9THz.js} +7 -7
- package/dist/chunks/{source-entity-resolution-BYn9giz3.js → source-entity-resolution-BIGRvtbG.js} +13 -13
- package/dist/chunks/{switch-uDtPgQlQ.js → switch-CEBOR4n7.js} +3 -3
- package/dist/chunks/{table-export-sheet-YzMioA7Y.js → table-export-sheet-4X9mAG3V.js} +1 -1
- package/dist/chunks/table-settings-WysCBj62.js +614 -0
- package/dist/chunks/{temporal-bucket-D7NBrrtL.js → temporal-bucket-CQOSbv9-.js} +26 -26
- package/dist/chunks/{token-types-DBbZVQsm.js → token-types-BMqRmT-C.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-CjB7ig1o.js → use-create-flow-overlay-state-Csx_Xjsh.js} +101 -101
- package/dist/chunks/{validators-DMHTpf7a.js → validators-C-aOQlTB.js} +713 -658
- package/dist/chunks/{relative-date-label-Bk2j94pA.js → zoned-wall-clock-MulfA26h.js} +64 -21
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1895 -1163
- package/dist/data-app-sdk/index.js +6 -6
- package/dist/data-app-sdk-adapters/index.js +3 -3
- package/dist/data-app-sdk-validation/index.js +14 -14
- package/dist/format-utils/index.js +133 -133
- package/dist/index.js +192 -186
- package/dist/layouts/index.js +5 -242
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/shared/index.js +4 -5
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/surfboard/arrange-layout-button.d.ts +8 -0
- package/dist/types/components/surfboard/filter/types.d.ts +7 -0
- package/dist/types/components/surfboard/screen-size-preview-button.d.ts +10 -0
- package/dist/types/components/visual/matrix-table/matrix-card-view.d.ts +3 -0
- package/dist/types/index.js +6 -6
- package/dist/types/lib/charts/table-chart-types.d.ts +4 -0
- package/dist/types/lib/charts/types.d.ts +2 -2
- package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-authoring.d.ts +346 -21
- package/dist/types/lib/dashboard-inputs/dashboard-filter-value-identity.d.ts +65 -0
- package/dist/types/lib/dashboard-inputs/dashboard-input-values.d.ts +6 -0
- package/dist/types/lib/dashboard-inputs/filter-settings.d.ts +2 -0
- package/dist/types/lib/dashboard-inputs/prepare-loaded-dashboard.d.ts +15 -0
- package/dist/types/lib/dashboard-inputs/resolve-selection-input.d.ts +3 -3
- package/dist/types/lib/hooks/use-dashboard-card.d.ts +2 -0
- package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +1 -1
- package/dist/types/lib/matrix-table/matrix-editor.d.ts +52 -0
- package/dist/types/lib/matrix-table/matrix-runtime-types.d.ts +9 -1
- package/dist/types/lib/matrix-table/matrix-runtime.d.ts +5 -1
- package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +149 -10
- package/dist/types/lib/stores/dashboard-store.d.ts +137 -6
- package/dist/types/lib/types/common-types.d.ts +8 -0
- package/dist/types/lib/types/explorer-types.d.ts +10 -0
- package/dist/types/lib/types/semantic-types.d.ts +84 -0
- package/dist/types/lib/utils/build-saved-editor-card.d.ts +20 -0
- package/dist/types/lib/utils/card-type-change.d.ts +16 -0
- package/dist/types/lib/utils/field-availability-context.d.ts +25 -0
- package/dist/types/lib/utils/field-placement.d.ts +96 -0
- package/dist/types/lib/utils/field-state-calculator.d.ts +161 -0
- package/dist/types/lib/utils/qualified-entity-name.d.ts +2 -0
- package/dist/types/shared/analytics-protocol/applied-constraints.d.ts +57 -1
- package/dist/types/shared/analytics-protocol/field-provenance.d.ts +89 -0
- package/dist/types/shared/analytics-protocol/index.d.ts +2 -0
- package/dist/types/shared/analytics-protocol/query-policies.d.ts +52 -0
- package/dist/types/shared/analytics-protocol/time-window-schema.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/time-window.d.ts +40 -1
- package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +4 -1
- package/dist/types/shared/assistant-protocol/answer-text.d.ts +20 -0
- package/dist/types/shared/assistant-protocol/context.d.ts +29 -29
- package/dist/types/shared/assistant-protocol/index.d.ts +1 -0
- package/dist/types/shared/assistant-protocol/limits.d.ts +6 -1
- package/dist/types/shared/assistant-protocol/parts.d.ts +43 -3
- package/dist/types/shared/assistant-protocol/request.d.ts +14 -2
- package/dist/types/shared/dashboard-authoring/calculated-field-identity.d.ts +3 -0
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +487 -0
- package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +34 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +7886 -0
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +45 -0
- package/dist/types/shared/dashboard-authoring/changes/read-card-query.d.ts +54 -0
- package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +96 -0
- package/dist/types/shared/dashboard-authoring/click-to-filter-settings.d.ts +3 -3
- package/dist/types/shared/dashboard-authoring/column-catalog.d.ts +32 -0
- package/dist/types/shared/dashboard-authoring/contracts.d.ts +0 -55
- package/dist/types/shared/dashboard-authoring/control-execution-contract.d.ts +24 -14
- package/dist/types/shared/dashboard-authoring/dashboard-card-source-index.d.ts +9 -1
- package/dist/types/shared/dashboard-authoring/dashboard-filter-automatic-target.d.ts +4 -4
- package/dist/types/shared/dashboard-authoring/dashboard-filter-mapping-contract.d.ts +3 -1
- package/dist/types/shared/dashboard-authoring/dashboard-filter-mapping-types.d.ts +27 -1
- package/dist/types/shared/dashboard-authoring/dashboard-filter-value-compatibility.d.ts +12 -3
- package/dist/types/shared/dashboard-authoring/dashboard-input-scope.d.ts +26 -0
- package/dist/types/shared/dashboard-authoring/filter-applicability.d.ts +75 -0
- package/dist/types/shared/dashboard-authoring/filter-reach-copy.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/filter-reach-preview.d.ts +97 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +22 -2
- package/dist/types/shared/dashboard-authoring/operations/apply-dashboard-operations.d.ts +10 -37
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +189 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +101 -0
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +100 -0
- package/dist/types/shared/dashboard-authoring/semantic-auto-join-card.d.ts +22 -0
- package/dist/types/shared/dashboard-authoring/validators.d.ts +1 -2
- package/dist/types/shared/layouts/engine/grid.d.ts +25 -0
- package/dist/types/shared/layouts/engine/index.d.ts +4 -0
- package/dist/types/shared/layouts/engine/sheet-layout.d.ts +7 -0
- package/dist/types/shared/layouts/engine/types.d.ts +125 -0
- package/dist/types/shared/layouts/index.d.ts +1 -2
- package/package.json +2 -2
- package/dist/chunks/apply-dashboard-operations-CZEMsx8E.js +0 -2080
- package/dist/chunks/calendar-day-equality-dvoQp1xW.js +0 -410
- package/dist/chunks/comparison-window-caption-D4E6IHPD.js +0 -1624
- package/dist/chunks/custom-visual-inputs-DLCD9Y5V.js +0 -329
- package/dist/chunks/dashboard-controls-Cq05n3e0.js +0 -2315
- package/dist/chunks/dashboard-filter-value-compatibility-CwQ_iSNb.js +0 -108
- package/dist/chunks/matrix-analytical-definition-C7Gb0e12.js +0 -117
- package/dist/chunks/normalize-dashboard-for-dirty-check-Bk3VYv_q.js +0 -67
- package/dist/chunks/numeric-presentation-7X_IrD58.js +0 -5226
- package/dist/chunks/resolve-dashboard-input-context-DJ2tICwz.js +0 -9415
- package/dist/chunks/stable-serialize-CfqXeiBP.js +0 -6
- package/dist/chunks/table-settings-CLZocegs.js +0 -501
- package/dist/chunks/use-debounced-dirty-check-BwAbnX_5.js +0 -59
- package/dist/chunks/zoned-wall-clock-BkxV9jS2.js +0 -46
- package/dist/types/shared/dashboard-authoring/change-compiler.d.ts +0 -7
- package/dist/types/shared/dashboard-authoring/layout-compiler.d.ts +0 -2
- package/dist/types/shared/layouts/create-frame-layouts.d.ts +0 -27
- package/dist/types/shared/layouts/frame-layouts.d.ts +0 -23
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
var Fe = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var L = (e, n, t) =>
|
|
4
|
-
import { r as ae, q as se, j as
|
|
5
|
-
import {
|
|
2
|
+
var Re = (e, n, t) => n in e ? Fe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
|
+
var L = (e, n, t) => Re(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
+
import { r as ae, q as se, j as Ne } from "./temporal-bucket-CQOSbv9-.js";
|
|
5
|
+
import { Y as J, ab as Be, o as Me } from "./validators-C-aOQlTB.js";
|
|
6
6
|
import { l as Le, C as Ue } from "./export-file-format-C-tJsxsf.js";
|
|
7
7
|
import { z as y } from "zod";
|
|
8
|
-
import {
|
|
9
|
-
import { af as je, ah as qe,
|
|
10
|
-
import "./analytics-base-schemas-
|
|
8
|
+
import { I as Pe, q as ze, o as Ve, P as B } from "./pivot-result-lifecycle-pwq3b7LC.js";
|
|
9
|
+
import { af as je, ah as qe, U as Ke } from "./matrix-operation-contract-D6vYkZK4.js";
|
|
10
|
+
import "./analytics-base-schemas-BKs3flFS.js";
|
|
11
11
|
import "../value-format-preferences/index.js";
|
|
12
12
|
import { r as He } from "./rendered-file-D8xEuVVx.js";
|
|
13
|
-
import {
|
|
14
|
-
import { r as Je } from "./matrix-card-
|
|
15
|
-
import {
|
|
16
|
-
import { r as et, a as tt, b as nt, c as rt, d as ot } from "./raw-temporal-presentation-
|
|
13
|
+
import { cP as Ge, cQ as We, cR as Xe, r as Ze, n as Ye } from "./global-date-filter-utils-BhAu8zIM.js";
|
|
14
|
+
import { r as Je } from "./matrix-card-LiMEipvq.js";
|
|
15
|
+
import { z as Qe } from "./table-settings-WysCBj62.js";
|
|
16
|
+
import { r as et, a as tt, b as nt, c as rt, d as ot } from "./raw-temporal-presentation-DypB7sMX.js";
|
|
17
|
+
import "./index-CtoK1Lgu.js";
|
|
17
18
|
import "./index-CuHybtft.js";
|
|
18
19
|
import "./_commonjsHelpers-DimLPMtv.js";
|
|
19
|
-
import { f as at, r as it, b as ct, g as lt } from "./custom-visual-inputs-
|
|
20
|
+
import { f as at, r as it, b as ct, g as lt } from "./custom-visual-inputs-ChL54gGm.js";
|
|
20
21
|
const dt = /* @__PURE__ */ new Set([
|
|
21
22
|
"table",
|
|
22
23
|
"aggregateTable",
|
|
@@ -53,7 +54,7 @@ const dt = /* @__PURE__ */ new Set([
|
|
|
53
54
|
"treemap",
|
|
54
55
|
"custom"
|
|
55
56
|
]);
|
|
56
|
-
function
|
|
57
|
+
function Zn(e) {
|
|
57
58
|
var o, a, i;
|
|
58
59
|
const n = st.has(e.type) && (e.type !== "custom" || !!((o = e.customCardPreferences) != null && o.url));
|
|
59
60
|
let t = !1;
|
|
@@ -91,7 +92,7 @@ function mt(e) {
|
|
|
91
92
|
return n || Q((r = e.settings) == null ? void 0 : r.cardType) ? { kind: "export_job", format: e.format } : { kind: "rendered", format: "csv" };
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
|
-
function
|
|
95
|
+
function Yn(e) {
|
|
95
96
|
return mt(e).kind === "export_job";
|
|
96
97
|
}
|
|
97
98
|
function ft(e) {
|
|
@@ -101,13 +102,13 @@ function ft(e) {
|
|
|
101
102
|
function ut(e) {
|
|
102
103
|
return e.allowDownload === !1 ? ["pdf", "png"] : e.cardType === "matrixTable" || Q(e.cardType) ? ["pdf", "png", "csv", "xlsx"] : ["pdf", "png", "csv"];
|
|
103
104
|
}
|
|
104
|
-
function
|
|
105
|
+
function Jn(e) {
|
|
105
106
|
return ft(e).label;
|
|
106
107
|
}
|
|
107
108
|
function pt(e) {
|
|
108
109
|
return dt.has(e.cardType) && e.allowDownload !== !1 ? "csv" : "pdf";
|
|
109
110
|
}
|
|
110
|
-
function
|
|
111
|
+
function Qn(e) {
|
|
111
112
|
const { config: n } = e, t = Pe({
|
|
112
113
|
spec: n.spec,
|
|
113
114
|
presentation: n.presentation,
|
|
@@ -143,7 +144,7 @@ const ht = y.object({
|
|
|
143
144
|
semanticDomainId: y.string().optional()
|
|
144
145
|
}).passthrough(),
|
|
145
146
|
active_filters: y.array(y.unknown()).default([])
|
|
146
|
-
}).passthrough(),
|
|
147
|
+
}).passthrough(), er = ht.extend({
|
|
147
148
|
dashboardId: y.string().min(1),
|
|
148
149
|
cardId: y.string().min(1),
|
|
149
150
|
formatOptions: y.object({
|
|
@@ -158,7 +159,7 @@ const ht = y.object({
|
|
|
158
159
|
});
|
|
159
160
|
})
|
|
160
161
|
});
|
|
161
|
-
function
|
|
162
|
+
function tr(e) {
|
|
162
163
|
return {
|
|
163
164
|
...e.controls,
|
|
164
165
|
type: "card",
|
|
@@ -186,14 +187,14 @@ function er(e) {
|
|
|
186
187
|
delimiter: e.delimiter,
|
|
187
188
|
includeHeaders: e.includeHeaders,
|
|
188
189
|
timezone: e.reportContext.calendar.tz,
|
|
189
|
-
presentationExecutionSnapshot:
|
|
190
|
+
presentationExecutionSnapshot: ze({
|
|
190
191
|
reportContext: e.reportContext,
|
|
191
192
|
resolvedFormats: []
|
|
192
193
|
})
|
|
193
194
|
}
|
|
194
195
|
};
|
|
195
196
|
}
|
|
196
|
-
const K = y.number().int().nonnegative(),
|
|
197
|
+
const K = y.number().int().nonnegative(), nr = y.discriminatedUnion("status", [
|
|
197
198
|
y.object({
|
|
198
199
|
status: y.literal("ok"),
|
|
199
200
|
request: J,
|
|
@@ -230,7 +231,7 @@ function me(e) {
|
|
|
230
231
|
var n;
|
|
231
232
|
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;
|
|
232
233
|
}
|
|
233
|
-
function
|
|
234
|
+
function rr(e) {
|
|
234
235
|
var t;
|
|
235
236
|
const n = (e == null ? void 0 : e.frameObject) ?? ((t = e == null ? void 0 : e.visual) == null ? void 0 : t.frameObject);
|
|
236
237
|
return me(yt(n));
|
|
@@ -306,7 +307,7 @@ function bt(e, n) {
|
|
|
306
307
|
})
|
|
307
308
|
).filter((c) => c !== null);
|
|
308
309
|
}
|
|
309
|
-
function
|
|
310
|
+
function or(e) {
|
|
310
311
|
return gt(e.dashboard, e.selections).flatMap(
|
|
311
312
|
({ card: n, attachmentIndex: t }) => {
|
|
312
313
|
var s, u, h, g;
|
|
@@ -639,13 +640,13 @@ const P = [
|
|
|
639
640
|
"SAT"
|
|
640
641
|
], fe = new Map(
|
|
641
642
|
P.map((e, n) => [e, n])
|
|
642
|
-
),
|
|
643
|
+
), V = [1, 2, 3, 4, 5], ue = [1, 2, 3, 6, 12], pe = {
|
|
643
644
|
1: "first",
|
|
644
645
|
2: "second",
|
|
645
646
|
3: "third",
|
|
646
647
|
4: "fourth",
|
|
647
648
|
[-1]: "last"
|
|
648
|
-
},
|
|
649
|
+
}, ar = {
|
|
649
650
|
frequency: "weekly",
|
|
650
651
|
hour: 9,
|
|
651
652
|
minute: 0,
|
|
@@ -679,25 +680,25 @@ function ye(e) {
|
|
|
679
680
|
const r = e.includes("last") ? [...t, "last"] : t;
|
|
680
681
|
return r.length > 0 ? r : null;
|
|
681
682
|
}
|
|
682
|
-
function
|
|
683
|
+
function N(e, n) {
|
|
683
684
|
const t = [];
|
|
684
685
|
for (let r = 0; r < 12 / e; r += 1)
|
|
685
686
|
t.push((n + r * e) % 12);
|
|
686
687
|
return t.sort((r, o) => r - o);
|
|
687
688
|
}
|
|
688
689
|
function St(e, n) {
|
|
689
|
-
return e === 1 ? "*" :
|
|
690
|
+
return e === 1 ? "*" : N(e, n).map((t) => t + 1).join(",");
|
|
690
691
|
}
|
|
691
692
|
function ge(e, n) {
|
|
692
|
-
return e.every((t) =>
|
|
693
|
+
return e.every((t) => Rt(t, n));
|
|
693
694
|
}
|
|
694
|
-
function
|
|
695
|
+
function ir(e) {
|
|
695
696
|
if (!Tt(e))
|
|
696
697
|
throw new Error("Choose a valid schedule time.");
|
|
697
698
|
const n = `${e.minute} ${e.hour}`;
|
|
698
699
|
switch (e.frequency) {
|
|
699
700
|
case "daily":
|
|
700
|
-
return e.weekdaysOnly ? `${n} * * ${
|
|
701
|
+
return e.weekdaysOnly ? `${n} * * ${V.map((t) => P[t]).join(",")}` : `${n} * * *`;
|
|
701
702
|
case "weekly": {
|
|
702
703
|
const t = he(e.weekdays);
|
|
703
704
|
if (!t) throw new Error("Choose at least one weekday.");
|
|
@@ -710,7 +711,7 @@ function ar(e) {
|
|
|
710
711
|
if (e.on.type === "days") {
|
|
711
712
|
const i = ye(e.on.days);
|
|
712
713
|
if (!i) throw new Error("Choose at least one day of the month.");
|
|
713
|
-
const c =
|
|
714
|
+
const c = N(e.interval, e.startMonth);
|
|
714
715
|
if (!ge(i, c))
|
|
715
716
|
throw new Error("Choose a day that occurs in the chosen months.");
|
|
716
717
|
const l = i.map((m) => m === "last" ? "L" : String(m)).join(",");
|
|
@@ -731,7 +732,7 @@ function kt(e) {
|
|
|
731
732
|
const t = n.map((i) => Number(i) - 1), r = 12 / t.length;
|
|
732
733
|
if (!ue.includes(r))
|
|
733
734
|
return null;
|
|
734
|
-
const o = t[0], a =
|
|
735
|
+
const o = t[0], a = N(
|
|
735
736
|
r,
|
|
736
737
|
o
|
|
737
738
|
);
|
|
@@ -773,7 +774,7 @@ function be(e) {
|
|
|
773
774
|
const u = i.split(",").map((E) => fe.get(E));
|
|
774
775
|
if (u.some((E) => E === void 0)) return S;
|
|
775
776
|
const h = u, g = he(h);
|
|
776
|
-
return !g || g.some((E, C) => E !== h[C]) ? S : g.length ===
|
|
777
|
+
return !g || g.some((E, C) => E !== h[C]) ? S : g.length === V.length && g.every((E, C) => E === V[C]) ? {
|
|
777
778
|
ok: !0,
|
|
778
779
|
value: { frequency: "daily", hour: l, minute: c, weekdaysOnly: !0 }
|
|
779
780
|
} : {
|
|
@@ -784,7 +785,7 @@ function be(e) {
|
|
|
784
785
|
const m = kt(a);
|
|
785
786
|
if (!m) return S;
|
|
786
787
|
if (o !== "*" && i === "*") {
|
|
787
|
-
const s = At(o), u =
|
|
788
|
+
const s = At(o), u = N(m.interval, m.startMonth);
|
|
788
789
|
return !s || !ge(s, u) ? S : {
|
|
789
790
|
ok: !0,
|
|
790
791
|
value: {
|
|
@@ -843,10 +844,10 @@ function Ft(e, n, t) {
|
|
|
843
844
|
);
|
|
844
845
|
if (e === 1) return "every month";
|
|
845
846
|
if (e === 12) return `${r(n, "long")} each year`;
|
|
846
|
-
const o =
|
|
847
|
+
const o = N(e, n).map((a) => r(a, "short")).join(", ");
|
|
847
848
|
return e === 3 ? `each quarter (${o})` : `every ${e} months (${o})`;
|
|
848
849
|
}
|
|
849
|
-
function
|
|
850
|
+
function cr(e, n, t = "en-US") {
|
|
850
851
|
const r = be(e);
|
|
851
852
|
if (!r.ok) return null;
|
|
852
853
|
try {
|
|
@@ -876,39 +877,39 @@ function ir(e, n, t = "en-US") {
|
|
|
876
877
|
}
|
|
877
878
|
}
|
|
878
879
|
const Ie = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
879
|
-
function
|
|
880
|
+
function Rt(e, n) {
|
|
880
881
|
return e === "last" || n.some((t) => e <= Ie[t]);
|
|
881
882
|
}
|
|
882
|
-
function
|
|
883
|
+
function lr(e) {
|
|
883
884
|
if (e.frequency !== "monthly" || e.on.type !== "days") return null;
|
|
884
885
|
const n = e.on.days.filter((o) => o !== "last");
|
|
885
886
|
if (n.length === 0) return null;
|
|
886
|
-
const t = Math.max(...n), r =
|
|
887
|
+
const t = Math.max(...n), r = N(e.interval, e.startMonth).filter(
|
|
887
888
|
(o) => t > (o === 1 ? 28 : Ie[o])
|
|
888
889
|
);
|
|
889
890
|
return r.length > 0 ? { day: t, months: r } : null;
|
|
890
891
|
}
|
|
891
|
-
function
|
|
892
|
+
function Nt(e, n) {
|
|
892
893
|
return new Date(Date.UTC(e, n + 1, 0)).getUTCDate();
|
|
893
894
|
}
|
|
894
895
|
function Bt(e, n, t, r) {
|
|
895
896
|
const o = new Date(Date.UTC(n, t, r)).getUTCDay();
|
|
896
897
|
switch (e.frequency) {
|
|
897
898
|
case "daily":
|
|
898
|
-
return !e.weekdaysOnly ||
|
|
899
|
+
return !e.weekdaysOnly || V.includes(o);
|
|
899
900
|
case "weekly":
|
|
900
901
|
return e.weekdays.includes(o);
|
|
901
902
|
case "monthly": {
|
|
902
|
-
if (!
|
|
903
|
+
if (!N(e.interval, e.startMonth).includes(t))
|
|
903
904
|
return !1;
|
|
904
|
-
const a =
|
|
905
|
+
const a = Nt(n, t);
|
|
905
906
|
return e.on.type === "days" ? e.on.days.some(
|
|
906
907
|
(i) => i === "last" ? r === a : i === r
|
|
907
908
|
) : o !== e.on.weekday ? !1 : e.on.ordinal === -1 ? r + 7 > a : Math.ceil(r / 7) === e.on.ordinal;
|
|
908
909
|
}
|
|
909
910
|
}
|
|
910
911
|
}
|
|
911
|
-
function
|
|
912
|
+
function dr(e, n, t, r) {
|
|
912
913
|
const o = be(e);
|
|
913
914
|
if (!o.ok || !Ct(n)) return [];
|
|
914
915
|
const a = o.value, i = new Intl.DateTimeFormat("en-US", {
|
|
@@ -961,7 +962,7 @@ function Pt(e) {
|
|
|
961
962
|
diagnostic: n.diagnostic
|
|
962
963
|
};
|
|
963
964
|
}
|
|
964
|
-
function
|
|
965
|
+
function sr(e) {
|
|
965
966
|
if (!e || typeof e != "object" || Array.isArray(e)) return [];
|
|
966
967
|
const n = e.omittedAttachments;
|
|
967
968
|
return Array.isArray(n) ? n.flatMap((t) => {
|
|
@@ -969,24 +970,24 @@ function dr(e) {
|
|
|
969
970
|
return r ? [r] : [];
|
|
970
971
|
}) : [];
|
|
971
972
|
}
|
|
972
|
-
function
|
|
973
|
+
function mr(e) {
|
|
973
974
|
return e != null && e.role ? e.type === "tenant" ? e.role === "POWER_USER" : ["AUTHOR", "ADMIN", "SUPER_ADMIN"].includes(e.role) : !1;
|
|
974
975
|
}
|
|
975
|
-
function
|
|
976
|
+
function fr(e) {
|
|
976
977
|
return e.canCreate ? [
|
|
977
978
|
...e.scheduledReportAvailable ? ["scheduled_report"] : [],
|
|
978
979
|
...e.analyticalBriefingsEnabled ? ["analytical_briefing"] : []
|
|
979
980
|
] : [];
|
|
980
981
|
}
|
|
981
|
-
function
|
|
982
|
+
function zt(e) {
|
|
982
983
|
const n = (e == null ? void 0 : e.channels) ?? [];
|
|
983
984
|
return n.length === 1 && n[0] === "EMAIL";
|
|
984
985
|
}
|
|
985
|
-
function
|
|
986
|
-
return e.body.type === "generated_analysis" ? "Analytical briefing" : e.body.type === "custom_message" && e.attachments.length > 0 &&
|
|
986
|
+
function Vt(e) {
|
|
987
|
+
return e.body.type === "generated_analysis" ? "Analytical briefing" : e.body.type === "custom_message" && e.attachments.length > 0 && zt(e.deliveryConfig) ? e.scheduleExpr ? "Scheduled report" : "On-demand report" : "Plain briefing";
|
|
987
988
|
}
|
|
988
|
-
function
|
|
989
|
-
const n =
|
|
989
|
+
function ur(e) {
|
|
990
|
+
const n = Vt(e), t = n === "Scheduled report" || n === "On-demand report" ? "report" : "briefing";
|
|
990
991
|
return {
|
|
991
992
|
typeLabel: n,
|
|
992
993
|
noun: t,
|
|
@@ -1035,9 +1036,9 @@ function qt(e) {
|
|
|
1035
1036
|
return (r.kind === "metric" && typeof r.metricId == "string" && !!r.metricId.trim() || r.kind === "column" && typeof r.columnKey == "string" && !!r.columnKey.trim() || r.kind === "matrix_measure" && typeof r.measureId == "string" && !!r.measureId.trim()) && se(n.format).ok;
|
|
1036
1037
|
}
|
|
1037
1038
|
function Kt(e) {
|
|
1038
|
-
return e == null ? "" : qt(e) ?
|
|
1039
|
+
return e == null ? "" : qt(e) ? Ne(e.value, e.format) : String(e);
|
|
1039
1040
|
}
|
|
1040
|
-
function
|
|
1041
|
+
function pr(e) {
|
|
1041
1042
|
return [e.delta, e.percentChange].filter(
|
|
1042
1043
|
(n) => n != null
|
|
1043
1044
|
).map(Kt).filter(Boolean).join(" / ");
|
|
@@ -1190,7 +1191,7 @@ function k(e, n, t, r = {}) {
|
|
|
1190
1191
|
c && !o.includes(c) && o.push(c);
|
|
1191
1192
|
}), r.required && o.length === 0 && d(t, n, "Expected at least one evidence id."), o.length > 0 || r.required ? o : void 0;
|
|
1192
1193
|
}
|
|
1193
|
-
function
|
|
1194
|
+
function R(e, n, t, r) {
|
|
1194
1195
|
return e == null ? n : typeof e != "boolean" ? (d(r, t, "Expected a boolean."), n) : e;
|
|
1195
1196
|
}
|
|
1196
1197
|
function an(e, n) {
|
|
@@ -1288,13 +1289,13 @@ function Te(e, n) {
|
|
|
1288
1289
|
);
|
|
1289
1290
|
const r = {
|
|
1290
1291
|
artifactFormats: ln(t.artifactFormats, n),
|
|
1291
|
-
includeEvidence:
|
|
1292
|
+
includeEvidence: R(
|
|
1292
1293
|
t.includeEvidence,
|
|
1293
1294
|
!0,
|
|
1294
1295
|
"presentation.includeEvidence",
|
|
1295
1296
|
n
|
|
1296
1297
|
),
|
|
1297
|
-
includeSql:
|
|
1298
|
+
includeSql: R(
|
|
1298
1299
|
t.includeSql,
|
|
1299
1300
|
!0,
|
|
1300
1301
|
"presentation.includeSql",
|
|
@@ -1846,7 +1847,7 @@ function hn(e) {
|
|
|
1846
1847
|
blocks: i
|
|
1847
1848
|
};
|
|
1848
1849
|
}
|
|
1849
|
-
function
|
|
1850
|
+
function hr(e) {
|
|
1850
1851
|
try {
|
|
1851
1852
|
return {
|
|
1852
1853
|
valid: !0,
|
|
@@ -1859,7 +1860,7 @@ function pr(e) {
|
|
|
1859
1860
|
throw n;
|
|
1860
1861
|
}
|
|
1861
1862
|
}
|
|
1862
|
-
function
|
|
1863
|
+
function z(e, n, t, r) {
|
|
1863
1864
|
return typeof e == "string" && t.includes(e) ? e : (d(r, n, `Expected ${t.join(" or ")}.`), t[0]);
|
|
1864
1865
|
}
|
|
1865
1866
|
function D(e, n, t, r, o) {
|
|
@@ -2025,7 +2026,7 @@ function In(e, n, t) {
|
|
|
2025
2026
|
f.id,
|
|
2026
2027
|
t
|
|
2027
2028
|
),
|
|
2028
|
-
format:
|
|
2029
|
+
format: z(o.format, `${r}.format`, ["pdf"], t)
|
|
2029
2030
|
},
|
|
2030
2031
|
o.title,
|
|
2031
2032
|
`${r}.title`,
|
|
@@ -2055,7 +2056,7 @@ function In(e, n, t) {
|
|
|
2055
2056
|
f.id,
|
|
2056
2057
|
t
|
|
2057
2058
|
),
|
|
2058
|
-
format:
|
|
2059
|
+
format: z(
|
|
2059
2060
|
o.format,
|
|
2060
2061
|
`${r}.format`,
|
|
2061
2062
|
a === "dashboard_sheet" ? ["pdf", "png"] : ["pdf"],
|
|
@@ -2092,7 +2093,7 @@ function In(e, n, t) {
|
|
|
2092
2093
|
f.id,
|
|
2093
2094
|
t
|
|
2094
2095
|
),
|
|
2095
|
-
format:
|
|
2096
|
+
format: z(
|
|
2096
2097
|
o.format,
|
|
2097
2098
|
`${r}.format`,
|
|
2098
2099
|
ve,
|
|
@@ -2225,7 +2226,7 @@ function De(e) {
|
|
|
2225
2226
|
), t.kind !== Z && d(n, "kind", "Expected BRIEFING.");
|
|
2226
2227
|
let r;
|
|
2227
2228
|
try {
|
|
2228
|
-
r =
|
|
2229
|
+
r = Ve(
|
|
2229
2230
|
t.presentationExecutionSnapshot
|
|
2230
2231
|
);
|
|
2231
2232
|
} catch (m) {
|
|
@@ -2252,7 +2253,7 @@ function De(e) {
|
|
|
2252
2253
|
...l ? { limits: l } : {}
|
|
2253
2254
|
};
|
|
2254
2255
|
}
|
|
2255
|
-
function
|
|
2256
|
+
function yr(e) {
|
|
2256
2257
|
return De({
|
|
2257
2258
|
...e,
|
|
2258
2259
|
kind: Z
|
|
@@ -2352,7 +2353,7 @@ function Tn(e, n, t) {
|
|
|
2352
2353
|
["url", "method", "headers", "secretEncrypted"],
|
|
2353
2354
|
t
|
|
2354
2355
|
);
|
|
2355
|
-
const o = r.method === void 0 || r.method === null ? void 0 :
|
|
2356
|
+
const o = r.method === void 0 || r.method === null ? void 0 : z(r.method, `${n}.method`, ["POST", "PUT"], t), a = Cn(r.headers, `${n}.headers`, t), i = I(
|
|
2356
2357
|
r.secretEncrypted,
|
|
2357
2358
|
`${n}.secretEncrypted`,
|
|
2358
2359
|
2e3,
|
|
@@ -2379,7 +2380,7 @@ function Sn(e, n, t) {
|
|
|
2379
2380
|
`${n}.channelName`,
|
|
2380
2381
|
f.attachmentTitle,
|
|
2381
2382
|
t
|
|
2382
|
-
), i = r.isPrivate === void 0 || r.isPrivate === null ? void 0 :
|
|
2383
|
+
), i = r.isPrivate === void 0 || r.isPrivate === null ? void 0 : R(
|
|
2383
2384
|
r.isPrivate,
|
|
2384
2385
|
!1,
|
|
2385
2386
|
`${n}.isPrivate`,
|
|
@@ -2438,17 +2439,17 @@ function An(e, n, t) {
|
|
|
2438
2439
|
r.threadMentions,
|
|
2439
2440
|
`${n}.threadMentions`,
|
|
2440
2441
|
t
|
|
2441
|
-
), a =
|
|
2442
|
+
), a = R(
|
|
2442
2443
|
r.postThreadDetail,
|
|
2443
2444
|
!0,
|
|
2444
2445
|
`${n}.postThreadDetail`,
|
|
2445
2446
|
t
|
|
2446
|
-
), i =
|
|
2447
|
+
), i = R(
|
|
2447
2448
|
r.includeDashboardLink,
|
|
2448
2449
|
!0,
|
|
2449
2450
|
`${n}.includeDashboardLink`,
|
|
2450
2451
|
t
|
|
2451
|
-
), c =
|
|
2452
|
+
), c = R(
|
|
2452
2453
|
r.includeBriefingLink,
|
|
2453
2454
|
!0,
|
|
2454
2455
|
`${n}.includeBriefingLink`,
|
|
@@ -2503,7 +2504,7 @@ function wn(e, n, t) {
|
|
|
2503
2504
|
`${n}.summaryOverride`,
|
|
2504
2505
|
2e3,
|
|
2505
2506
|
t
|
|
2506
|
-
), l =
|
|
2507
|
+
), l = R(
|
|
2507
2508
|
r.actionBlockVisible,
|
|
2508
2509
|
!0,
|
|
2509
2510
|
`${n}.actionBlockVisible`,
|
|
@@ -2628,13 +2629,13 @@ function re(e) {
|
|
|
2628
2629
|
deliveryConfig: g
|
|
2629
2630
|
};
|
|
2630
2631
|
}
|
|
2631
|
-
function yr(e) {
|
|
2632
|
-
return re(e);
|
|
2633
|
-
}
|
|
2634
2632
|
function gr(e) {
|
|
2635
2633
|
return re(e);
|
|
2636
2634
|
}
|
|
2637
2635
|
function br(e) {
|
|
2636
|
+
return re(e);
|
|
2637
|
+
}
|
|
2638
|
+
function Ir(e) {
|
|
2638
2639
|
try {
|
|
2639
2640
|
return { valid: !0, value: re(e), issues: [] };
|
|
2640
2641
|
} catch (n) {
|
|
@@ -2643,7 +2644,7 @@ function br(e) {
|
|
|
2643
2644
|
throw n;
|
|
2644
2645
|
}
|
|
2645
2646
|
}
|
|
2646
|
-
function
|
|
2647
|
+
function vr(e) {
|
|
2647
2648
|
try {
|
|
2648
2649
|
return { valid: !0, value: De(e), issues: [] };
|
|
2649
2650
|
} catch (n) {
|
|
@@ -2652,7 +2653,7 @@ function Ir(e) {
|
|
|
2652
2653
|
throw n;
|
|
2653
2654
|
}
|
|
2654
2655
|
}
|
|
2655
|
-
function
|
|
2656
|
+
function Er(e) {
|
|
2656
2657
|
return typeof e == "string" && Ee.has(e);
|
|
2657
2658
|
}
|
|
2658
2659
|
function _e(e) {
|
|
@@ -2663,57 +2664,57 @@ export {
|
|
|
2663
2664
|
f as A,
|
|
2664
2665
|
Z as B,
|
|
2665
2666
|
x as C,
|
|
2666
|
-
|
|
2667
|
+
ar as D,
|
|
2667
2668
|
qt as E,
|
|
2668
2669
|
Kt as F,
|
|
2669
|
-
|
|
2670
|
+
pr as G,
|
|
2670
2671
|
ve as H,
|
|
2671
2672
|
j as I,
|
|
2672
2673
|
hn as J,
|
|
2673
|
-
|
|
2674
|
+
hr as K,
|
|
2674
2675
|
De as L,
|
|
2675
2676
|
H as M,
|
|
2676
|
-
|
|
2677
|
+
yr as N,
|
|
2677
2678
|
re as O,
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2679
|
+
gr as P,
|
|
2680
|
+
br as Q,
|
|
2681
|
+
Ir as R,
|
|
2682
|
+
vr as S,
|
|
2683
|
+
Er as T,
|
|
2683
2684
|
_e as U,
|
|
2684
|
-
|
|
2685
|
+
er as V,
|
|
2685
2686
|
ht as W,
|
|
2686
2687
|
ft as X,
|
|
2687
|
-
|
|
2688
|
+
Yn as Y,
|
|
2688
2689
|
mt as Z,
|
|
2689
2690
|
pt as _,
|
|
2690
|
-
|
|
2691
|
+
fr as a,
|
|
2691
2692
|
Mt as a0,
|
|
2692
2693
|
Ut as a1,
|
|
2693
|
-
|
|
2694
|
+
Vt as a2,
|
|
2694
2695
|
ut as b,
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2696
|
+
Qn as c,
|
|
2697
|
+
cr as d,
|
|
2698
|
+
tr as e,
|
|
2699
|
+
or as f,
|
|
2700
|
+
ur as g,
|
|
2701
|
+
Zn as h,
|
|
2702
|
+
Jn as i,
|
|
2702
2703
|
Ct as j,
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2704
|
+
ir as k,
|
|
2705
|
+
N as l,
|
|
2706
|
+
lr as m,
|
|
2707
|
+
Rt as n,
|
|
2708
|
+
dr as o,
|
|
2708
2709
|
be as p,
|
|
2709
2710
|
ye as q,
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2711
|
+
zt as r,
|
|
2712
|
+
sr as s,
|
|
2713
|
+
mr as t,
|
|
2713
2714
|
yt as u,
|
|
2714
2715
|
me as v,
|
|
2715
|
-
|
|
2716
|
-
|
|
2716
|
+
rr as w,
|
|
2717
|
+
nr as x,
|
|
2717
2718
|
jt as y,
|
|
2718
2719
|
Y as z
|
|
2719
2720
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { c as t } from "./x-4f5U2XwU.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.453.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const i = t("ListFilter", [
|
|
9
|
+
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
10
|
+
["path", { d: "M7 12h10", key: "b7w52i" }],
|
|
11
|
+
["path", { d: "M10 18h4", key: "1ulq68" }]
|
|
12
|
+
]);
|
|
13
|
+
export {
|
|
14
|
+
i as L
|
|
15
|
+
};
|