react-semaphor 0.1.449 → 0.1.454
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.cjs +1 -1
- package/dist/analytics-protocol/index.js +119 -112
- package/dist/appearance/index.cjs +1 -1
- package/dist/appearance/index.js +1 -1
- package/dist/brand-studio/index.cjs +4 -4
- package/dist/brand-studio/index.js +15 -13
- package/dist/briefings/index.cjs +1 -1
- package/dist/briefings/index.js +39 -2131
- package/dist/chunks/{analyze-result-contract-T-0Ntzys.js → analyze-result-contract-BbRJ-C06.js} +1 -1
- package/dist/chunks/{analyze-result-contract-BHb7sUUW.cjs → analyze-result-contract-LPDNldic.cjs} +1 -1
- package/dist/chunks/canonical-result-keys-BA0HCP4e.cjs +1 -0
- package/dist/chunks/canonical-result-keys-D6avdjpA.js +467 -0
- package/dist/chunks/color-CJvdlFM_.js +2162 -0
- package/dist/chunks/color-CyB5o13F.cjs +4 -0
- package/dist/chunks/{common-types-CQ6SHfLk.cjs → common-types-C57kJ59w.cjs} +1 -1
- package/dist/chunks/{common-types-B7Jk3Rtj.js → common-types-H51FLKB7.js} +1 -1
- package/dist/chunks/contracts-CoCOpd_i.js +11 -0
- package/dist/chunks/contracts-CtB2VONT.cjs +1 -0
- package/dist/chunks/dashboard-briefing-launcher-Dwj1i7lr.cjs +26 -0
- package/dist/chunks/{dashboard-briefing-launcher-DCHiEkLE.js → dashboard-briefing-launcher-SYroFdae.js} +86 -84
- package/dist/chunks/{dashboard-controls-DwRFCcHV.js → dashboard-controls-1LpeU2sz.js} +15 -13
- package/dist/chunks/{dashboard-controls-CaFioayc.cjs → dashboard-controls-CpFoh7-A.cjs} +1 -1
- package/dist/chunks/dashboard-date-comparison-definition-Ces4alFm.cjs +1 -0
- package/dist/chunks/{dashboard-date-comparison-definition-Ba-clViK.js → dashboard-date-comparison-definition-DC3ekV2S.js} +1 -1
- package/dist/chunks/{dashboard-json-WoILbfTe.js → dashboard-json-D-T-sQxU.js} +25 -23
- package/dist/chunks/dashboard-json-DwSQopc_.cjs +1 -0
- package/dist/chunks/edit-dashboard-visual-BEmoQAET.cjs +172 -0
- package/dist/chunks/{edit-dashboard-visual-ciFhxqaI.js → edit-dashboard-visual-DqxUq4Bs.js} +6925 -6947
- package/dist/chunks/editor-action-buttons-18r2xwei.cjs +16 -0
- package/dist/chunks/{editor-action-buttons-BPo_45pM.js → editor-action-buttons-B2l3WIRC.js} +41 -39
- package/dist/chunks/format-types-CFHQoIuk.js +1350 -0
- package/dist/chunks/format-types-PSZZ7hG8.cjs +1 -0
- package/dist/chunks/index-Bn5wlkHt.cjs +4 -0
- package/dist/chunks/index-ByFbacH7.cjs +1 -0
- package/dist/chunks/index-CACdoqu3.js +318 -0
- package/dist/chunks/index-CLB_NGZ8.cjs +1392 -0
- package/dist/chunks/index-Ca784dpx.js +3714 -0
- package/dist/chunks/{index-CPuawpXJ.js → index-DAoS4BNU.js} +48514 -48484
- package/dist/chunks/index-DSKR3nKn.js +421 -0
- package/dist/chunks/index-F25jnH0p.cjs +1 -0
- package/dist/chunks/matrix-result-contract-CofATICL.js +437 -0
- package/dist/chunks/matrix-result-contract-zamd9euI.cjs +1 -0
- package/dist/chunks/pivot-header-presentation-DhyQXxKq.cjs +4 -0
- package/dist/chunks/pivot-header-presentation-ckYOQ4aZ.js +557 -0
- package/dist/chunks/{pivot-result-identity-CDLRT-YG.cjs → pivot-result-identity-Bb4EixVN.cjs} +1 -1
- package/dist/chunks/{pivot-result-identity-CwJWpKI7.js → pivot-result-identity-DU1v-5Xk.js} +1 -1
- package/dist/chunks/pivot-result-lifecycle-DmcF1ris.cjs +1 -0
- package/dist/chunks/pivot-result-lifecycle-sjzIOpvp.js +1641 -0
- package/dist/chunks/raw-temporal-contract-BtjH_G-d.cjs +1 -0
- package/dist/chunks/raw-temporal-contract-CxncLze5.js +64 -0
- package/dist/chunks/report-preferences-dialog-BgSvlDXa.cjs +1 -0
- package/dist/chunks/report-preferences-dialog-DDc2WUa0.js +723 -0
- package/dist/chunks/{report-runtime-context-C8LZFsqV.cjs → report-runtime-context-DqxS4wbi.cjs} +1 -1
- package/dist/chunks/{report-runtime-context-bCy3CVzK.js → report-runtime-context-SM6YO61_.js} +5 -5
- package/dist/chunks/saved-temporal-bucket-format-CFfWXRl9.cjs +1 -0
- package/dist/chunks/saved-temporal-bucket-format-SGAV0ivR.js +922 -0
- package/dist/chunks/{switch-BXet-Sno.js → switch-BeZW-HnS.js} +4350 -5249
- package/dist/chunks/switch-D-CCcfhc.cjs +138 -0
- package/dist/chunks/temporal-bucket-5UYEotyQ.js +810 -0
- package/dist/chunks/temporal-bucket-DHY1y9lq.cjs +1 -0
- package/dist/chunks/temporal-bucket-authoring-K1kE6R_z.js +222 -0
- package/dist/chunks/temporal-bucket-authoring-o3Emn05L.cjs +1 -0
- package/dist/chunks/{temporal-bucket-contract-ChDBWX8I.cjs → temporal-bucket-contract-D2-93DGr.cjs} +1 -1
- package/dist/chunks/{temporal-bucket-contract-_F6vNhhH.js → temporal-bucket-contract-D5d-xEl3.js} +1 -1
- package/dist/chunks/{token-types-BdQ8kHBm.cjs → token-types-D7CaaI80.cjs} +1 -1
- package/dist/chunks/{token-types-BHR58aTy.js → token-types-GbxRUozo.js} +1 -1
- package/dist/chunks/{update-policy-BxvYMYz0.cjs → update-policy-BmiOd0PB.cjs} +1 -1
- package/dist/chunks/{update-policy-g0rCQ9BM.js → update-policy-hednMF-0.js} +1 -1
- package/dist/chunks/validators-BDYprKI9.cjs +1 -0
- package/dist/chunks/{validators-Cs74WVie.js → validators-DEmd8Sin.js} +1561 -1197
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.cjs +3 -3
- package/dist/dashboard-authoring/index.js +35 -32
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +2 -2
- package/dist/data-app-codegen/index.cjs +1 -1
- package/dist/data-app-codegen/index.js +2 -2
- package/dist/data-app-codegen-node/index.cjs +1 -1
- package/dist/data-app-codegen-node/index.js +3 -3
- package/dist/data-app-sdk/index.cjs +1 -1
- package/dist/data-app-sdk/index.js +78 -77
- package/dist/data-app-sdk-adapters/index.cjs +1 -1
- package/dist/data-app-sdk-adapters/index.js +29 -30
- package/dist/data-app-sdk-validation/index.cjs +1 -1
- package/dist/data-app-sdk-validation/index.js +21 -21
- package/dist/format-utils/index.cjs +3 -3
- package/dist/format-utils/index.js +156 -140
- package/dist/index.cjs +1 -1
- package/dist/index.js +157 -155
- package/dist/report-runtime-context/index.cjs +1 -1
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +3 -3
- package/dist/types/analytics-protocol.d.ts +81 -11
- package/dist/types/briefings.d.ts +727 -19
- package/dist/types/dashboard-assistant.d.ts +37 -17
- package/dist/types/dashboard-authoring.d.ts +61 -14
- package/dist/types/dashboard.d.ts +137 -12
- package/dist/types/data-app-builder.d.ts +28 -2
- package/dist/types/data-app-codegen-node.d.ts +29 -3
- package/dist/types/data-app-codegen.d.ts +29 -3
- package/dist/types/data-app-sdk-adapters.d.ts +28 -2
- package/dist/types/data-app-sdk-validation.d.ts +51 -7
- package/dist/types/data-app-sdk.d.ts +55 -10
- package/dist/types/format-utils.d.ts +190 -3
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.js +4 -4
- package/dist/types/main.d.ts +128 -33
- package/dist/types/shared.d.ts +14 -12
- package/dist/types/surfboard.d.ts +138 -13
- package/dist/types/types.d.ts +117 -23
- package/dist/types/value-format-preferences.d.ts +3 -0
- package/package.json +2 -1
- package/dist/chunks/card-config-utils-15sRtebL.cjs +0 -1
- package/dist/chunks/card-config-utils-BYZ5MJOh.js +0 -16
- package/dist/chunks/catalog-field-grounding-Bnx-3tE0.cjs +0 -1
- package/dist/chunks/catalog-field-grounding-S2jKwKGD.js +0 -100
- package/dist/chunks/dashboard-briefing-launcher-DDgDr2s3.cjs +0 -26
- package/dist/chunks/dashboard-date-comparison-definition-DZq0htjG.cjs +0 -1
- package/dist/chunks/dashboard-input-contract-DSt8dGzP.js +0 -18
- package/dist/chunks/dashboard-input-contract-DV3cshjz.cjs +0 -1
- package/dist/chunks/dashboard-json-CYtvwtvj.cjs +0 -1
- package/dist/chunks/edit-dashboard-visual-DwKcvlsF.cjs +0 -177
- package/dist/chunks/editor-action-buttons-BVmsk0Aj.cjs +0 -16
- package/dist/chunks/format-types-CSv0V7mm.cjs +0 -1
- package/dist/chunks/format-types-DZGgYj39.js +0 -1663
- package/dist/chunks/index-CJdxSyQq.js +0 -2578
- package/dist/chunks/index-DPv8_Ild.cjs +0 -1395
- package/dist/chunks/index-DRlMUglg.cjs +0 -4
- package/dist/chunks/metric-comparison-97zHGEx5.js +0 -387
- package/dist/chunks/metric-comparison-CUAJ8n4y.cjs +0 -1
- package/dist/chunks/pivot-result-lifecycle-BBabQ_da.js +0 -914
- package/dist/chunks/pivot-result-lifecycle-DPc0ANwk.cjs +0 -4
- package/dist/chunks/presentation-execution-BLfPTGX_.js +0 -637
- package/dist/chunks/presentation-execution-BTV-Q43g.cjs +0 -1
- package/dist/chunks/report-preferences-dialog-D9ZCGh9l.js +0 -691
- package/dist/chunks/report-preferences-dialog-DaqTEcac.cjs +0 -1
- package/dist/chunks/switch-Cjk6G06r.cjs +0 -138
- package/dist/chunks/temporal-bucket-BnPxGrAi.js +0 -446
- package/dist/chunks/temporal-bucket-authoring-CPTwHzvs.cjs +0 -1
- package/dist/chunks/temporal-bucket-authoring-CgOuakGW.js +0 -205
- package/dist/chunks/temporal-bucket-pMnV-4Nj.cjs +0 -1
- package/dist/chunks/temporal-result-owner-6peubmhU.js +0 -443
- package/dist/chunks/temporal-result-owner-f6-i65Fb.cjs +0 -1
- package/dist/chunks/validators-9D4KBqKD.cjs +0 -1
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import { jsx as e, jsxs as r, Fragment as W } from "react/jsx-runtime";
|
|
2
2
|
import jt, { useState as E, useEffect as J, useMemo as ee, useContext as Wt, useRef as he, useCallback as q } from "react";
|
|
3
|
-
import { aH as Se, aI as De, aK as ke, bb as yt,
|
|
4
|
-
import { B, O as Ne, Z as
|
|
3
|
+
import { aH as Se, aI as De, aK as ke, bb as yt, bZ as Ht, cn as Gt, co as Kt, aZ as fe, cb as Ct, bl as Ve, s as qt, o as Xt, cp as Zt, aP as Je, aS as et, aT as tt, aU as rt, aV as at, aW as nt, aX as st, aY as wt, bk as ot, aG as O, cq as Qt, cr as Yt, cs as Ke, cc as Oe, cd as ze, ct as Nt, ce as _e, bX as K, b1 as Jt, bC as Re, cu as er, bW as tr, aJ as it, aL as lt, cv as rr, aF as ar, ba as nr, bx as St, cw as sr, b_ as or, u as ir, aM as lr, b3 as cr, az as $e, O as ue, aw as ct, as as Dt, at as dt, P as kt, ar as dr, ay as ur, ci as hr, cx as mr, bv as pr, au as pt, R as fr, T as gr, cy as br, cz as xr, cA as vr, cB as yr, cC as Cr, cD as wr, cE as Nr, cF as Sr, cG as At, cH as Dr, b4 as kr, cI as Ar, cf as Et, cJ as Er, cK as Ir, cL as Be, cM as Fr, cN as Lr, cO as Br, an as Tr, ap as Vr, a3 as Rr, a2 as Ur, a1 as Pr, a0 as Mr, Z as Or, X as zr, cP as _r, cQ as $r, cR as jr, cS as Wr, cT as Hr, al as Gr, cU as Kr, cV as qr, a9 as Xr, cW as Zr, cX as Qr, cY as Yr } from "./index-DAoS4BNU.js";
|
|
4
|
+
import { B, O as Ne, Z as Qe, L as te, M as It, d as Ft, c as X, K as Jr, D as ge, u as P, z as be, av as Lt, au as Ye, E as Bt, P as Ue, a as Pe, b as Me, aG as ea, aH as ta, S as Tt, aI as ra, aJ as aa, aK as na, aE as sa } from "./switch-BeZW-HnS.js";
|
|
5
5
|
import { L as ut } from "./layout-grid-CiubineE.js";
|
|
6
6
|
import { c as Ae, X as je, C as Vt } from "./x-CXDkqdur.js";
|
|
7
|
-
import { u as ht, V as oa, E as qe, a as Xe, b as ia, c as la, L as ca, d as da, e as Rt, C as Ut, F as ua, f as ha } from "./editor-action-buttons-
|
|
8
|
-
import "./
|
|
9
|
-
import "./
|
|
7
|
+
import { u as ht, V as oa, E as qe, a as Xe, b as ia, c as la, L as ca, d as da, e as Rt, C as Ut, F as ua, f as ha } from "./editor-action-buttons-B2l3WIRC.js";
|
|
8
|
+
import { v as ft } from "./saved-temporal-bucket-format-SGAV0ivR.js";
|
|
9
|
+
import "./validators-DEmd8Sin.js";
|
|
10
|
+
import "./analyze-result-contract-BbRJ-C06.js";
|
|
10
11
|
import "../value-format-preferences/index.js";
|
|
11
12
|
import { S as ma } from "./search-BHsQIWBV.js";
|
|
12
13
|
import { M as pa } from "./mouse-pointer-2-BZvGk45-.js";
|
|
13
|
-
import {
|
|
14
|
-
import "./index-
|
|
15
|
-
import "./temporal-bucket-authoring-
|
|
16
|
-
import "./
|
|
14
|
+
import { u as gt } from "./pivot-header-presentation-ckYOQ4aZ.js";
|
|
15
|
+
import "./index-DSKR3nKn.js";
|
|
16
|
+
import "./temporal-bucket-authoring-K1kE6R_z.js";
|
|
17
|
+
import "./canonical-result-keys-D6avdjpA.js";
|
|
18
|
+
import "./color-CJvdlFM_.js";
|
|
17
19
|
import "react-dom";
|
|
18
|
-
import {
|
|
20
|
+
import { g as se, d as fa, a as ga } from "./index-Ca784dpx.js";
|
|
19
21
|
/**
|
|
20
22
|
* @license lucide-react v0.453.0 - ISC
|
|
21
23
|
*
|
|
@@ -146,7 +148,7 @@ function wa({
|
|
|
146
148
|
/* @__PURE__ */ r("div", { className: "space-y-1.5", children: [
|
|
147
149
|
/* @__PURE__ */ e(Ne, { htmlFor: "visual-title", className: "text-[12px]", children: "Name" }),
|
|
148
150
|
/* @__PURE__ */ e(
|
|
149
|
-
|
|
151
|
+
Qe,
|
|
150
152
|
{
|
|
151
153
|
id: "visual-title",
|
|
152
154
|
size: "sm",
|
|
@@ -163,7 +165,7 @@ function wa({
|
|
|
163
165
|
/* @__PURE__ */ r("div", { className: "space-y-1.5", children: [
|
|
164
166
|
/* @__PURE__ */ e(Ne, { htmlFor: "visual-description", className: "text-[12px]", children: "Description" }),
|
|
165
167
|
/* @__PURE__ */ e(
|
|
166
|
-
|
|
168
|
+
Qe,
|
|
167
169
|
{
|
|
168
170
|
id: "visual-description",
|
|
169
171
|
size: "sm",
|
|
@@ -224,13 +226,13 @@ function Na(t, a) {
|
|
|
224
226
|
}
|
|
225
227
|
function Sa(t) {
|
|
226
228
|
const a = (t || "").toLowerCase();
|
|
227
|
-
return a.includes("table") ? It : a.includes("pie") || a.includes("donut") ?
|
|
229
|
+
return a.includes("table") ? It : a.includes("pie") || a.includes("donut") ? Qt : a.includes("line") ? Yt : a.includes("bar") ? Jr : ut;
|
|
228
230
|
}
|
|
229
231
|
function Da({ visual: t }) {
|
|
230
232
|
const a = t.ownership.status === "public" ? "Public" : t.ownership.status === "shared" || t.ownership.sharedCount > 0 ? "Shared" : "Private";
|
|
231
233
|
return /* @__PURE__ */ e("span", { className: "inline-flex items-center rounded-[4px] border border-border/60 px-1.5 py-px text-[11px] text-muted-foreground", children: a });
|
|
232
234
|
}
|
|
233
|
-
function
|
|
235
|
+
function $n({
|
|
234
236
|
open: t,
|
|
235
237
|
onOpenChange: a
|
|
236
238
|
}) {
|
|
@@ -261,19 +263,19 @@ function zn({
|
|
|
261
263
|
startUpdating: We,
|
|
262
264
|
stopUpdating: ve,
|
|
263
265
|
isUpdating: He
|
|
264
|
-
} = Kt(),
|
|
266
|
+
} = Kt(), Q = x, z = ee(() => {
|
|
265
267
|
const v = i.trim().toLowerCase();
|
|
266
|
-
return v ?
|
|
268
|
+
return v ? Q.filter(
|
|
267
269
|
(L) => {
|
|
268
270
|
var M, ae, oe;
|
|
269
271
|
return ((M = L.title) == null ? void 0 : M.toLowerCase().includes(v)) || ((ae = L.description) == null ? void 0 : ae.toLowerCase().includes(v)) || ((oe = L.kind) == null ? void 0 : oe.toLowerCase().includes(v));
|
|
270
272
|
}
|
|
271
|
-
) :
|
|
272
|
-
}, [i,
|
|
273
|
-
() =>
|
|
273
|
+
) : Q;
|
|
274
|
+
}, [i, Q]), re = ee(
|
|
275
|
+
() => Q.filter(
|
|
274
276
|
(v) => n.has(v.id)
|
|
275
277
|
),
|
|
276
|
-
[n,
|
|
278
|
+
[n, Q]
|
|
277
279
|
), ie = re.filter(
|
|
278
280
|
(v) => v.permissions.canDelete
|
|
279
281
|
), le = re.filter(
|
|
@@ -289,7 +291,7 @@ function zn({
|
|
|
289
291
|
ce((L) => {
|
|
290
292
|
L.has(v) ? L.delete(v) : L.add(v);
|
|
291
293
|
});
|
|
292
|
-
},
|
|
294
|
+
}, Y = () => {
|
|
293
295
|
c((v) => {
|
|
294
296
|
const L = new Set(v);
|
|
295
297
|
return ye ? z.forEach(
|
|
@@ -373,7 +375,7 @@ function zn({
|
|
|
373
375
|
);
|
|
374
376
|
}, de = (v) => {
|
|
375
377
|
a(v), v || N();
|
|
376
|
-
},
|
|
378
|
+
}, Z = C ? 1 : ie.length;
|
|
377
379
|
return /* @__PURE__ */ r(W, { children: [
|
|
378
380
|
/* @__PURE__ */ e(Se, { open: t, onOpenChange: de, children: /* @__PURE__ */ r(
|
|
379
381
|
De,
|
|
@@ -441,7 +443,7 @@ function zn({
|
|
|
441
443
|
selectedIds: n,
|
|
442
444
|
allFilteredSelected: ye,
|
|
443
445
|
someFilteredSelected: Ee,
|
|
444
|
-
onSelectAll:
|
|
446
|
+
onSelectAll: Y,
|
|
445
447
|
onToggleSelection: me,
|
|
446
448
|
onAddVisual: Ce,
|
|
447
449
|
onOpenVisual: $,
|
|
@@ -546,7 +548,7 @@ function zn({
|
|
|
546
548
|
}
|
|
547
549
|
),
|
|
548
550
|
o && /* @__PURE__ */ e(
|
|
549
|
-
|
|
551
|
+
Zt,
|
|
550
552
|
{
|
|
551
553
|
open: !!o,
|
|
552
554
|
resourceLabel: "Visual",
|
|
@@ -568,9 +570,9 @@ function zn({
|
|
|
568
570
|
/* @__PURE__ */ r(tt, { children: [
|
|
569
571
|
/* @__PURE__ */ r(rt, { children: [
|
|
570
572
|
"Delete ",
|
|
571
|
-
|
|
573
|
+
Z,
|
|
572
574
|
" visual",
|
|
573
|
-
|
|
575
|
+
Z === 1 ? "" : "s",
|
|
574
576
|
"?"
|
|
575
577
|
] }),
|
|
576
578
|
/* @__PURE__ */ e(at, { children: "This cannot be undone. Visuals already added to dashboards may need to be removed from those dashboards separately." })
|
|
@@ -583,7 +585,7 @@ function zn({
|
|
|
583
585
|
onClick: (v) => {
|
|
584
586
|
v.preventDefault(), Ie();
|
|
585
587
|
},
|
|
586
|
-
disabled: G ||
|
|
588
|
+
disabled: G || Z === 0,
|
|
587
589
|
children: [
|
|
588
590
|
G ? /* @__PURE__ */ e(te, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ e(Ve, { className: "h-3.5 w-3.5" }),
|
|
589
591
|
G ? "Deleting..." : "Delete"
|
|
@@ -903,7 +905,7 @@ function Ia({
|
|
|
903
905
|
/* @__PURE__ */ r("div", { className: "grid gap-2", children: [
|
|
904
906
|
/* @__PURE__ */ e(Ne, { htmlFor: "name", children: "Name" }),
|
|
905
907
|
/* @__PURE__ */ e(
|
|
906
|
-
|
|
908
|
+
Qe,
|
|
907
909
|
{
|
|
908
910
|
id: "name",
|
|
909
911
|
value: m,
|
|
@@ -998,7 +1000,7 @@ function Fa() {
|
|
|
998
1000
|
if (b.saveToCurrentDashboard)
|
|
999
1001
|
try {
|
|
1000
1002
|
A = await N(H, {
|
|
1001
|
-
previousFrame:
|
|
1003
|
+
previousFrame: Ye(h, H.id)
|
|
1002
1004
|
});
|
|
1003
1005
|
} catch (j) {
|
|
1004
1006
|
console.error(
|
|
@@ -1028,7 +1030,7 @@ function Fa() {
|
|
|
1028
1030
|
};
|
|
1029
1031
|
try {
|
|
1030
1032
|
const V = await N(H, {
|
|
1031
|
-
previousFrame:
|
|
1033
|
+
previousFrame: Ye(h, H.id)
|
|
1032
1034
|
});
|
|
1033
1035
|
y(f, A, {
|
|
1034
1036
|
position: "end",
|
|
@@ -1046,7 +1048,7 @@ function Fa() {
|
|
|
1046
1048
|
isSaving: k.isPending
|
|
1047
1049
|
};
|
|
1048
1050
|
}
|
|
1049
|
-
function
|
|
1051
|
+
function jn(t = {}) {
|
|
1050
1052
|
const { isInspectionMode: a } = or(), i = ge((A) => A.frame), s = ge((A) => A.editorContext), n = ir((A) => A.selectedVisual), c = P((A) => A.selectedFrameId), u = P((A) => A.selectedSheetId), m = P((A) => A.dashboard), { setIsVisualEditing: l, updateFrame: d } = be(), [o, f] = E(!1), [h, p] = E("both"), C = St(), y = (s == null ? void 0 : s.type) === "documentSection", D = !!(i != null && i.visualId || n != null && n.id), I = !!(i != null && i.visualId && c), N = D && !I, {
|
|
1051
1053
|
saveAsDialogOpen: g,
|
|
1052
1054
|
setSaveAsDialogOpen: S,
|
|
@@ -1086,7 +1088,7 @@ function _n(t = {}) {
|
|
|
1086
1088
|
const j = {
|
|
1087
1089
|
...A,
|
|
1088
1090
|
visualId: void 0
|
|
1089
|
-
}, xe =
|
|
1091
|
+
}, xe = Ye(m, j.id);
|
|
1090
1092
|
try {
|
|
1091
1093
|
const G = await C(j, {
|
|
1092
1094
|
previousFrame: xe
|
|
@@ -1198,7 +1200,7 @@ function _n(t = {}) {
|
|
|
1198
1200
|
)
|
|
1199
1201
|
] });
|
|
1200
1202
|
}
|
|
1201
|
-
function
|
|
1203
|
+
function Wn({ className: t }) {
|
|
1202
1204
|
const a = ge((d) => d.isDevMode), i = P((d) => d.isVisualEditing), { setIsDevMode: s } = Bt(), { config: n } = Wt(lr).tokenProps, c = (n == null ? void 0 : n.showAdvancedMode) !== !1;
|
|
1203
1205
|
if (!i || !c)
|
|
1204
1206
|
return null;
|
|
@@ -1221,7 +1223,7 @@ function $n({ className: t }) {
|
|
|
1221
1223
|
}
|
|
1222
1224
|
);
|
|
1223
1225
|
}
|
|
1224
|
-
function
|
|
1226
|
+
function Hn({
|
|
1225
1227
|
open: t,
|
|
1226
1228
|
onOpenChange: a,
|
|
1227
1229
|
onSave: i,
|
|
@@ -1266,7 +1268,7 @@ function Ua(t) {
|
|
|
1266
1268
|
const a = Date.now() - t.getTime();
|
|
1267
1269
|
return a < Va ? La : a < Ra ? Ba : Ta;
|
|
1268
1270
|
}
|
|
1269
|
-
function
|
|
1271
|
+
function Gn() {
|
|
1270
1272
|
const { authToken: t, tokenProps: a } = $e(), i = ue((h) => h.activeExports), [s, n] = E(
|
|
1271
1273
|
typeof document < "u" ? !document.hidden : !0
|
|
1272
1274
|
), c = he(null), u = he(!1), m = he(void 0), l = a == null ? void 0 : a.apiServiceUrl, d = t == null ? void 0 : t.accessToken, o = q(() => {
|
|
@@ -1380,7 +1382,7 @@ function Wn() {
|
|
|
1380
1382
|
inProgressCount: o().length
|
|
1381
1383
|
};
|
|
1382
1384
|
}
|
|
1383
|
-
function
|
|
1385
|
+
function Kn() {
|
|
1384
1386
|
const { authToken: t, tokenProps: a } = $e(), i = ue((m) => m.activeExports), { addExport: s } = kt(), n = he(!1), c = a == null ? void 0 : a.apiServiceUrl, u = t == null ? void 0 : t.accessToken;
|
|
1385
1387
|
J(() => {
|
|
1386
1388
|
if (n.current || !c || !u) return;
|
|
@@ -1664,7 +1666,7 @@ function Oa() {
|
|
|
1664
1666
|
)) }) })
|
|
1665
1667
|
] });
|
|
1666
1668
|
}
|
|
1667
|
-
function
|
|
1669
|
+
function qn({
|
|
1668
1670
|
variant: t
|
|
1669
1671
|
}) {
|
|
1670
1672
|
const a = ue((l) => l.activeExports), i = gr(), s = a.size > 0, n = Array.from(a.values()).some(
|
|
@@ -2125,7 +2127,7 @@ function Xa() {
|
|
|
2125
2127
|
hasEntities: !!(u != null && u.selectedEntities && u.selectedEntities.length > 0)
|
|
2126
2128
|
};
|
|
2127
2129
|
}
|
|
2128
|
-
function
|
|
2130
|
+
function Za() {
|
|
2129
2131
|
const t = P((l) => l.dashboard), a = P(
|
|
2130
2132
|
(l) => l.semanticExecutionPayload
|
|
2131
2133
|
), i = P((l) => l.actions.addFilter), { hasEntities: s } = Xa(), { isLoading: n } = Dr(), c = ee(
|
|
@@ -2158,7 +2160,7 @@ function Ya() {
|
|
|
2158
2160
|
] });
|
|
2159
2161
|
}
|
|
2160
2162
|
const vt = !1;
|
|
2161
|
-
function
|
|
2163
|
+
function Qa({
|
|
2162
2164
|
onAddFilter: t,
|
|
2163
2165
|
onAddControl: a,
|
|
2164
2166
|
onManageControls: i,
|
|
@@ -2172,7 +2174,7 @@ function Za({
|
|
|
2172
2174
|
return n == null || n.showDownloadButton, /* @__PURE__ */ r("div", { className: "w-[300px]", children: [
|
|
2173
2175
|
/* @__PURE__ */ r("div", { className: "p-1", children: [
|
|
2174
2176
|
/* @__PURE__ */ e(
|
|
2175
|
-
|
|
2177
|
+
Ze,
|
|
2176
2178
|
{
|
|
2177
2179
|
icon: At,
|
|
2178
2180
|
label: "Add filter",
|
|
@@ -2182,7 +2184,7 @@ function Za({
|
|
|
2182
2184
|
}
|
|
2183
2185
|
),
|
|
2184
2186
|
/* @__PURE__ */ e(
|
|
2185
|
-
|
|
2187
|
+
Ze,
|
|
2186
2188
|
{
|
|
2187
2189
|
icon: Tt,
|
|
2188
2190
|
label: "Add control",
|
|
@@ -2192,7 +2194,7 @@ function Za({
|
|
|
2192
2194
|
}
|
|
2193
2195
|
),
|
|
2194
2196
|
/* @__PURE__ */ e(
|
|
2195
|
-
|
|
2197
|
+
Ze,
|
|
2196
2198
|
{
|
|
2197
2199
|
icon: Et,
|
|
2198
2200
|
label: "Manage controls",
|
|
@@ -2207,7 +2209,7 @@ function Za({
|
|
|
2207
2209
|
/* @__PURE__ */ e("p", { className: "px-1 text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Display" }),
|
|
2208
2210
|
vt,
|
|
2209
2211
|
/* @__PURE__ */ e(
|
|
2210
|
-
|
|
2212
|
+
Ya,
|
|
2211
2213
|
{
|
|
2212
2214
|
id: "filter-display-wrap",
|
|
2213
2215
|
label: "Wrap to multiple lines",
|
|
@@ -2219,7 +2221,7 @@ function Za({
|
|
|
2219
2221
|
] })
|
|
2220
2222
|
] });
|
|
2221
2223
|
}
|
|
2222
|
-
function
|
|
2224
|
+
function Ze({
|
|
2223
2225
|
icon: t,
|
|
2224
2226
|
label: a,
|
|
2225
2227
|
onClick: i
|
|
@@ -2237,7 +2239,7 @@ function Ye({
|
|
|
2237
2239
|
}
|
|
2238
2240
|
);
|
|
2239
2241
|
}
|
|
2240
|
-
function
|
|
2242
|
+
function Ya({
|
|
2241
2243
|
id: t,
|
|
2242
2244
|
label: a,
|
|
2243
2245
|
checked: i,
|
|
@@ -2255,7 +2257,7 @@ function Qa({
|
|
|
2255
2257
|
)
|
|
2256
2258
|
] });
|
|
2257
2259
|
}
|
|
2258
|
-
function
|
|
2260
|
+
function Xn({
|
|
2259
2261
|
size: t,
|
|
2260
2262
|
className: a,
|
|
2261
2263
|
primaryButtonClassName: i,
|
|
@@ -2298,9 +2300,9 @@ function Kn({
|
|
|
2298
2300
|
{
|
|
2299
2301
|
showFilters: D ? !1 : o,
|
|
2300
2302
|
onShowFiltersChange: N,
|
|
2301
|
-
pickerContent: /* @__PURE__ */ e(
|
|
2303
|
+
pickerContent: /* @__PURE__ */ e(Za, {}),
|
|
2302
2304
|
settingsContent: (b) => /* @__PURE__ */ e(
|
|
2303
|
-
|
|
2305
|
+
Qa,
|
|
2304
2306
|
{
|
|
2305
2307
|
onAddFilter: g,
|
|
2306
2308
|
onAddControl: S,
|
|
@@ -3009,10 +3011,10 @@ function vn({
|
|
|
3009
3011
|
}
|
|
3010
3012
|
}), o = he(!1);
|
|
3011
3013
|
return J(() => {
|
|
3012
|
-
o.current || (o.current = !0,
|
|
3013
|
-
}, [a, n, d]), /* @__PURE__ */ e(
|
|
3014
|
+
o.current || (o.current = !0, Zr(a.status) ? d(a) : Qr(a.status) && n(a));
|
|
3015
|
+
}, [a, n, d]), /* @__PURE__ */ e(Yr, { run: m, onExpand: u });
|
|
3014
3016
|
}
|
|
3015
|
-
function
|
|
3017
|
+
function Zn(t) {
|
|
3016
3018
|
return /* @__PURE__ */ e(Tr, { children: /* @__PURE__ */ e(yn, { ...t }) });
|
|
3017
3019
|
}
|
|
3018
3020
|
function yn({
|
|
@@ -3037,7 +3039,7 @@ function yn({
|
|
|
3037
3039
|
o ?? "analytical_briefing"
|
|
3038
3040
|
), [x, T] = E("dashboard"), [F, H] = E(
|
|
3039
3041
|
[]
|
|
3040
|
-
), [A, V] = E(null), j = o && !y && !A ? "list" : S, [xe, G] = E(!1), [We, ve] = E(null), [He,
|
|
3042
|
+
), [A, V] = E(null), j = o && !y && !A ? "list" : S, [xe, G] = E(!1), [We, ve] = E(null), [He, Q] = E(null), [z, re] = E(
|
|
3041
3043
|
null
|
|
3042
3044
|
), [ie, le] = E(null), ye = he(null), Ee = he(N);
|
|
3043
3045
|
J(() => {
|
|
@@ -3046,7 +3048,7 @@ function yn({
|
|
|
3046
3048
|
}, [N, o]);
|
|
3047
3049
|
const [ce, me] = E(
|
|
3048
3050
|
null
|
|
3049
|
-
), [
|
|
3051
|
+
), [Y, Ce] = E(null), _ = i ?? (p == null ? void 0 : p.apiServiceUrl), $ = s ?? (h == null ? void 0 : h.accessToken), ne = ee(() => ({ ...xn, ...f }), [f]), pe = pn(a), Ie = ee(() => {
|
|
3050
3052
|
const w = gn(
|
|
3051
3053
|
F,
|
|
3052
3054
|
x,
|
|
@@ -3070,7 +3072,7 @@ function yn({
|
|
|
3070
3072
|
canCreate: C.canCreate,
|
|
3071
3073
|
analyticalBriefingsEnabled: C.analyticalBriefingsEnabled,
|
|
3072
3074
|
scheduledReportAvailable: x === "dashboard"
|
|
3073
|
-
}),
|
|
3075
|
+
}), Z = q(async () => {
|
|
3074
3076
|
if (!(!_ || !$)) {
|
|
3075
3077
|
G(!0), le(null);
|
|
3076
3078
|
try {
|
|
@@ -3091,8 +3093,8 @@ function yn({
|
|
|
3091
3093
|
}
|
|
3092
3094
|
}, [ne, _, $]);
|
|
3093
3095
|
J(() => {
|
|
3094
|
-
!N || j !== "list" || !we ||
|
|
3095
|
-
}, [we, j,
|
|
3096
|
+
!N || j !== "list" || !we || Z();
|
|
3097
|
+
}, [we, j, Z, N]);
|
|
3096
3098
|
const v = () => {
|
|
3097
3099
|
V(null), T("dashboard"), k("list"), g(!0);
|
|
3098
3100
|
}, L = (w) => {
|
|
@@ -3117,26 +3119,26 @@ function yn({
|
|
|
3117
3119
|
}
|
|
3118
3120
|
}, ae = async (w) => {
|
|
3119
3121
|
if (!(!_ || !$)) {
|
|
3120
|
-
|
|
3122
|
+
Q(w.id);
|
|
3121
3123
|
try {
|
|
3122
3124
|
await ne.runBriefingNow(
|
|
3123
3125
|
_,
|
|
3124
3126
|
$,
|
|
3125
3127
|
w.id,
|
|
3126
3128
|
{ requestId: Cn() }
|
|
3127
|
-
),
|
|
3129
|
+
), Z();
|
|
3128
3130
|
} catch (R) {
|
|
3129
3131
|
O.error(
|
|
3130
3132
|
R instanceof Error ? R.message : "Could not start the run."
|
|
3131
3133
|
);
|
|
3132
3134
|
} finally {
|
|
3133
|
-
|
|
3135
|
+
Q(null);
|
|
3134
3136
|
}
|
|
3135
3137
|
}
|
|
3136
3138
|
}, oe = async (w) => {
|
|
3137
3139
|
if (!_ || !$) return;
|
|
3138
3140
|
const { noun: R } = se(w), Fe = R === "report" ? "Report" : "Briefing";
|
|
3139
|
-
|
|
3141
|
+
Q(w.id);
|
|
3140
3142
|
try {
|
|
3141
3143
|
const Le = w.status === "PAUSED" ? await ne.resumeBriefing(
|
|
3142
3144
|
_,
|
|
@@ -3149,18 +3151,18 @@ function yn({
|
|
|
3149
3151
|
);
|
|
3150
3152
|
O.success(
|
|
3151
3153
|
Le.briefing.status === "PAUSED" ? `${Fe} paused` : `${Fe} resumed`
|
|
3152
|
-
),
|
|
3154
|
+
), Z();
|
|
3153
3155
|
} catch (Le) {
|
|
3154
3156
|
O.error(
|
|
3155
3157
|
Le instanceof Error ? Le.message : `Could not update the ${R} status.`
|
|
3156
3158
|
);
|
|
3157
3159
|
} finally {
|
|
3158
|
-
|
|
3160
|
+
Q(null);
|
|
3159
3161
|
}
|
|
3160
3162
|
}, _t = async () => {
|
|
3161
3163
|
if (!z || !_ || !$) return;
|
|
3162
3164
|
const w = z;
|
|
3163
|
-
|
|
3165
|
+
Q(w.id);
|
|
3164
3166
|
try {
|
|
3165
3167
|
await ne.deleteBriefing(
|
|
3166
3168
|
_,
|
|
@@ -3168,13 +3170,13 @@ function yn({
|
|
|
3168
3170
|
w.id
|
|
3169
3171
|
);
|
|
3170
3172
|
const { noun: R } = se(w);
|
|
3171
|
-
O.success(`${R === "report" ? "Report" : "Briefing"} deleted`), re(null),
|
|
3173
|
+
O.success(`${R === "report" ? "Report" : "Briefing"} deleted`), re(null), Z();
|
|
3172
3174
|
} catch (R) {
|
|
3173
3175
|
O.error(
|
|
3174
3176
|
R instanceof Error ? R.message : "Could not delete the briefing."
|
|
3175
3177
|
);
|
|
3176
3178
|
} finally {
|
|
3177
|
-
|
|
3179
|
+
Q(null);
|
|
3178
3180
|
}
|
|
3179
3181
|
}, $t = Ie.length;
|
|
3180
3182
|
return C.surfaceVisible ? /* @__PURE__ */ r(_r, { open: N, onOpenChange: g, children: [
|
|
@@ -3306,12 +3308,12 @@ function yn({
|
|
|
3306
3308
|
onCancel: () => g(!1),
|
|
3307
3309
|
onDeleted: () => {
|
|
3308
3310
|
const w = A ? se(A).noun : "briefing";
|
|
3309
|
-
O.success(`${w === "report" ? "Report" : "Briefing"} deleted`), V(null), k("list"),
|
|
3311
|
+
O.success(`${w === "report" ? "Report" : "Briefing"} deleted`), V(null), k("list"), Z();
|
|
3310
3312
|
},
|
|
3311
3313
|
onRunStarted: () => {
|
|
3312
3314
|
},
|
|
3313
3315
|
onSaved: (w) => {
|
|
3314
|
-
V(w),
|
|
3316
|
+
V(w), Z();
|
|
3315
3317
|
},
|
|
3316
3318
|
onMinimizeRun: ({ briefing: w, run: R }) => {
|
|
3317
3319
|
me({ briefing: w, run: R }), g(!1);
|
|
@@ -3332,29 +3334,29 @@ function yn({
|
|
|
3332
3334
|
Ce({
|
|
3333
3335
|
briefing: ce.briefing,
|
|
3334
3336
|
run: w
|
|
3335
|
-
}), me(null),
|
|
3337
|
+
}), me(null), Z();
|
|
3336
3338
|
},
|
|
3337
3339
|
onTimeout: () => {
|
|
3338
|
-
me(null),
|
|
3340
|
+
me(null), Z();
|
|
3339
3341
|
},
|
|
3340
3342
|
onExpand: () => {
|
|
3341
3343
|
V(ce.briefing), k("author"), me(null), g(!0);
|
|
3342
3344
|
}
|
|
3343
3345
|
}
|
|
3344
3346
|
) : null,
|
|
3345
|
-
|
|
3347
|
+
Y ? /* @__PURE__ */ e("div", { className: "fixed bottom-4 right-4 z-50 w-[360px]", children: /* @__PURE__ */ e(
|
|
3346
3348
|
Kr,
|
|
3347
3349
|
{
|
|
3348
|
-
title:
|
|
3349
|
-
durationSeconds:
|
|
3350
|
+
title: Y.run.status === "SUCCESS" ? `${Y.briefing.name} is ready` : `${Y.briefing.name} run failed`,
|
|
3351
|
+
durationSeconds: Y.run.startedAt && Y.run.completedAt ? Math.max(
|
|
3350
3352
|
0,
|
|
3351
3353
|
Math.floor(
|
|
3352
|
-
(new Date(
|
|
3354
|
+
(new Date(Y.run.completedAt).getTime() - new Date(Y.run.startedAt).getTime()) / 1e3
|
|
3353
3355
|
)
|
|
3354
3356
|
) : null,
|
|
3355
|
-
status:
|
|
3357
|
+
status: Y.run.status === "SUCCESS" ? "success" : "failed",
|
|
3356
3358
|
onView: () => {
|
|
3357
|
-
V(
|
|
3359
|
+
V(Y.briefing), k("author"), Ce(null), g(!0);
|
|
3358
3360
|
},
|
|
3359
3361
|
onDismiss: () => Ce(null)
|
|
3360
3362
|
}
|
|
@@ -3404,19 +3406,19 @@ function Cn() {
|
|
|
3404
3406
|
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `briefing-run-now-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
|
|
3405
3407
|
}
|
|
3406
3408
|
export {
|
|
3407
|
-
|
|
3409
|
+
Wn as A,
|
|
3408
3410
|
_a as D,
|
|
3409
3411
|
Oa as E,
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3412
|
+
qn as N,
|
|
3413
|
+
Hn as U,
|
|
3414
|
+
$n as V,
|
|
3413
3415
|
Ja as W,
|
|
3414
|
-
|
|
3416
|
+
jn as a,
|
|
3415
3417
|
Ma as b,
|
|
3416
|
-
|
|
3418
|
+
Kn as c,
|
|
3417
3419
|
ja as d,
|
|
3418
3420
|
qa as e,
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3421
|
+
Xn as f,
|
|
3422
|
+
Zn as g,
|
|
3423
|
+
Gn as u
|
|
3422
3424
|
};
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o, Fragment as T } from "react/jsx-runtime";
|
|
2
|
-
import { u as S, B as R, aw as mt, z as sr, O as na, Z as sa, c as be, ax as oa, ay as ia, az as ot, aA as xe, aB as pt, aC as or, L as Ge, aD as ir, aE as da, D as $t, Q as Bt, V as Gt, W as zt, Y as Ht, X as la, i as ca, aF as ua } from "./switch-
|
|
3
|
-
import {
|
|
2
|
+
import { u as S, B as R, aw as mt, z as sr, O as na, Z as sa, c as be, ax as oa, ay as ia, az as ot, aA as xe, aB as pt, aC as or, L as Ge, aD as ir, aE as da, D as $t, Q as Bt, V as Gt, W as zt, Y as Ht, X as la, i as ca, aF as ua } from "./switch-BeZW-HnS.js";
|
|
3
|
+
import { by as ma, bz as pa, az as q, aH as dr, bA as ha, aZ as K, aI as lr, aJ as fa, aK as it, aL as dt, aF as ga, bB as ge, bC as Be, bD as ba, bE as jt, bF as cr, bG as ur, bH as xa, bI as ht, bJ as va, bK as ya, bL as wa, bM as Na, bN as Sa, bO as Da, b8 as ve, bP as ye, aG as C, bQ as Ca, bR as mr, bl as ft, bS as ka, bT as Ea, bU as pr, bV as La, bW as hr, bX as V, bY as Ia, ap as Ma, bZ as Aa, b_ as Pa, b$ as Oa, c0 as _a, n as Ra, u as Fe, t as Ua, o as rt, c1 as Va, c2 as Ta, c3 as Fa, c4 as $a, N as Ba, c5 as Ga, c6 as za, I as qt, c7 as Ha, c8 as ja, c9 as qa, ca as Ka, cb as Wa, cc as Kt, cd as Wt, ce as Qt, cf as Qa, cg as Ja, ch as Ya, ci as Xa, b1 as Jt, cj as Za, ck as en, cl as tn, s as rn, cm as an, aP as nn, aS as sn, aT as on, aU as dn, aV as ln, aW as cn, aX as un, aY as Yt, g as lt } from "./index-DAoS4BNU.js";
|
|
4
4
|
import { c as ee, X as fr, C as mn } from "./x-CXDkqdur.js";
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
5
|
+
import "./saved-temporal-bucket-format-SGAV0ivR.js";
|
|
6
|
+
import "./validators-DEmd8Sin.js";
|
|
7
|
+
import "./analyze-result-contract-BbRJ-C06.js";
|
|
7
8
|
import "../value-format-preferences/index.js";
|
|
8
9
|
import * as I from "react";
|
|
9
10
|
import gr, { useState as N, useMemo as Z, useEffect as ze, useRef as Xt, useLayoutEffect as pn, useCallback as hn } from "react";
|
|
10
|
-
import "./index-
|
|
11
|
-
import "./temporal-bucket-authoring-
|
|
12
|
-
import "./
|
|
11
|
+
import "./index-DSKR3nKn.js";
|
|
12
|
+
import "./temporal-bucket-authoring-K1kE6R_z.js";
|
|
13
|
+
import "./canonical-result-keys-D6avdjpA.js";
|
|
14
|
+
import "./color-CJvdlFM_.js";
|
|
13
15
|
import { createPortal as fn } from "react-dom";
|
|
14
|
-
import "
|
|
15
|
-
import { c as gn, u as bn, A as xn, a as vn, f as yn, V as wn, N as Nn, g as Sn, U as Dn } from "./dashboard-briefing-launcher-
|
|
16
|
+
import "./index-Ca784dpx.js";
|
|
17
|
+
import { c as gn, u as bn, A as xn, a as vn, f as yn, V as wn, N as Nn, g as Sn, U as Dn } from "./dashboard-briefing-launcher-SYroFdae.js";
|
|
16
18
|
import { S as Cn, C as kn } from "./search-BHsQIWBV.js";
|
|
17
|
-
import { d as br } from "./format-types-
|
|
18
|
-
import { R as En } from "./report-preferences-dialog-
|
|
19
|
+
import { d as br } from "./format-types-CFHQoIuk.js";
|
|
20
|
+
import { R as En } from "./report-preferences-dialog-DDc2WUa0.js";
|
|
19
21
|
import { u as Ln } from "./use-debounced-dirty-check-BwAbnX_5.js";
|
|
20
22
|
import { s as at } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
|
|
21
23
|
import { S as Zt } from "./save-DgMfP0j8.js";
|
|
@@ -1677,7 +1679,7 @@ function nr(t, n) {
|
|
|
1677
1679
|
semanticExecutionPayload: lt(n)
|
|
1678
1680
|
};
|
|
1679
1681
|
}
|
|
1680
|
-
function
|
|
1682
|
+
function Ws() {
|
|
1681
1683
|
var _t, Rt, Ut, Vt, Tt;
|
|
1682
1684
|
gn(), bn();
|
|
1683
1685
|
const {
|
|
@@ -2405,5 +2407,5 @@ function Ss({
|
|
|
2405
2407
|
return h.searchParams.set("pdfMode", "document"), h.searchParams.set("pageSize", r || "letter"), h.searchParams.set("orientation", s || "portrait"), h.searchParams.set("url", p.toString()), h.toString();
|
|
2406
2408
|
}
|
|
2407
2409
|
export {
|
|
2408
|
-
|
|
2410
|
+
Ws as default
|
|
2409
2411
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("./switch-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("./switch-D-CCcfhc.cjs"),s=require("./index-CLB_NGZ8.cjs"),U=require("./x-B6ghREd2.cjs");require("./saved-temporal-bucket-format-CFfWXRl9.cjs");require("./validators-BDYprKI9.cjs");require("./analyze-result-contract-LPDNldic.cjs");require("../value-format-preferences/index.cjs");const y=require("react");require("./index-ByFbacH7.cjs");require("./temporal-bucket-authoring-o3Emn05L.cjs");require("./canonical-result-keys-BA0HCP4e.cjs");require("./color-CyB5o13F.cjs");const cs=require("react-dom");require("./index-Bn5wlkHt.cjs");const $=require("./dashboard-briefing-launcher-Dwj1i7lr.cjs"),wt=require("./search-BqqhaMx9.cjs"),St=require("./format-types-PSZZ7hG8.cjs"),us=require("./report-preferences-dialog-BgSvlDXa.cjs"),ms=require("./use-debounced-dirty-check-XHSwAefL.cjs"),qe=require("./normalize-dashboard-for-dirty-check-BXRUMVb2.cjs"),xt=require("./save-3dYRmehL.cjs"),hs=require("./palette-BN-jYtaK.cjs"),ps=require("./braces-v55uLCAK.cjs");function fs(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const M=fs(y);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const I=require("./validators-BDYprKI9.cjs");function b(e,n){const t=e.split(".").map(r=>r.trim()),i=n.split(".").map(r=>r.trim());if(t.length===0||i.length===0||t.some(r=>!r)||i.some(r=>!r))return!1;const[s,o]=t.length<=i.length?[t,i]:[i,t],a=o.length-s.length;return s.every((r,c)=>r===o[c+a])}function C(e,n){const t=e.split("."),i=n.split("."),s=t.pop(),o=i.pop();return!!(s&&s===o&&t.length>0&&i.length>0&&b(t.join("."),i.join(".")))}function N(e){const n=e.map(i=>i.trim()).filter(Boolean);if(n.every((i,s)=>n.slice(s+1).every(o=>b(i,o))))return[...n].sort((i,s)=>s.split(".").length-i.split(".").length)[0]}function u(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function D(e){if(typeof e!="string")return"";const n=e.split(".").map(t=>t.trim());return n.length>1&&n.every(Boolean)?n.join("."):""}function v(e){if(typeof e!="string")return"";const n=e.split(".").map(t=>t.trim());return n.length>0&&n.every(Boolean)?n.join("."):""}function d(e){return typeof e=="string"?e.trim():""}function S(e,n){return e.every((t,i)=>e.slice(i+1).every(s=>n(t,s)))}function q(e,n){const t=d(e.id),i=d(e.name),s=d(n.entityId),o=d(n.entityName);return!i||!s&&!o?!1:(!s||s===t||s===i)&&(!o||o===i)}function E(e){const n=u(e.semanticContext)?e.semanticContext:void 0,t=u(e.fieldMeta)?e.fieldMeta:void 0,i=d(n==null?void 0:n.semanticDomainId),s=Array.isArray(n==null?void 0:n.selectedEntities)?n.selectedEntities.filter(g=>u(g)&&g.type==="dataset"):[];if(!!!(i||s.length>0||(t==null?void 0:t.entityType)==="dataset"))return;if(!i)return{status:"unresolved",reason:"incomplete_source_identity"};const a=d(t==null?void 0:t.entityId),r=d(t==null?void 0:t.entityName),c=!!(a||r),f=c?s.filter(g=>q(g,{entityId:a,entityName:r})):s;if(f.length>1)return{status:"unresolved",reason:"incomplete_source_identity"};if(c&&s.length>0&&f.length===0)return{status:"unresolved",reason:"divergent_source_identity"};const l=f[0],m=d(l==null?void 0:l.domainId),p=d(l==null?void 0:l.id),y=d(l==null?void 0:l.name);if(m&&m!==i)return{status:"unresolved",reason:"divergent_source_identity"};const h=p,_=y||r;return _?{status:"resolved",source:{kind:"semantic",domainId:i,datasetName:_,...h?{datasetId:h}:{}}}:{status:"unresolved",reason:"incomplete_source_identity"}}function A(e,n){const t=d(e.connectionId),i=u(e.semanticContext)?e.semanticContext:void 0,s=d(i==null?void 0:i.connectionId);if(t&&s&&t!==s)return{status:"unresolved",reason:"divergent_source_identity"};const o=t||s,a=u(e.fieldMeta)?e.fieldMeta:void 0,r=n.split(".").slice(0,-1).join("."),c=v(e.qualifiedTableName),f=v(a==null?void 0:a.qualifiedEntityName),l=[c,f,r].filter(Boolean),m=N(l);return!m&&l.length>0?{status:"unresolved",reason:"divergent_source_identity"}:!o||!m?{status:"unresolved",reason:"incomplete_source_identity"}:{status:"resolved",source:{kind:"physical",connectionId:o,tableName:m}}}function B(e,n){const t=u(e.fieldMeta)?e.fieldMeta:void 0,i=typeof(t==null?void 0:t.qualifiedFieldName)=="string"?t.qualifiedFieldName.trim():"",s=D(t==null?void 0:t.qualifiedFieldName),o=typeof e.column=="string"?e.column.trim():"",a=D(o),r=typeof e.qualifiedTableName=="string"?e.qualifiedTableName.trim():"",c=v(e.qualifiedTableName);if(i&&!s||n&&r&&!c||o.includes(".")&&!a)return{status:"unresolved",reason:"incomplete_field_identity"};const f=a.split("."),l=a?f[f.length-1]:o,m=n&&c&&l?`${c}.${l}`:"",p=[s,a,m].filter(Boolean);if(!S(p,C))return{status:"unresolved",reason:"divergent_field_identity"};const y=a||s||m;return y?{status:"resolved",qualifiedFieldName:y}:{status:"unresolved",reason:"incomplete_field_identity"}}function F(e){if(!u(e))return{status:"ineligible",reason:"invalid_input"};if(e.kind==="global-date")return{status:"eligible",kind:"global_date"};const n=I.normalizeAnalyticsCatalogDataType(e.dataType);if(n!=="date"&&n!=="datetime")return{status:"ineligible",reason:"non_date_filter"};const t=u(e.fieldMeta)?e.fieldMeta:void 0,i=I.normalizeAnalyticsCatalogDataType(t==null?void 0:t.dataType);if((t==null?void 0:t.dataType)!==void 0&&i!=="date"&&i!=="datetime")return{status:"ineligible",reason:"non_date_filter"};if(e.customFilterPreferences)return{status:"ineligible",reason:"custom_filter"};if(e.targetColumns!==void 0&&(!Array.isArray(e.targetColumns)||e.targetColumns.length>0))return{status:"ineligible",reason:"multi_target_filter"};const s=E(e),o=B(e,s===void 0);if(o.status==="unresolved")return{status:"ineligible",reason:o.reason};const a=s||A(e,o.qualifiedFieldName);return a.status==="resolved"?{status:"eligible",kind:"field_date",qualifiedFieldName:o.qualifiedFieldName,source:a.source}:{status:"ineligible",reason:a.reason}}function T(e){if(!u(e)||e.kind!=="filter"||!u(e.filter))return{status:"ineligible",reason:"invalid_input"};const n=F(e.filter);return n.status==="ineligible"?n:n.kind==="field_date"&&u(e.compatibility)&&e.compatibility.source==="cardInlineFilter"?{status:"ineligible",reason:"card_inline_filter"}:n}function k(e){return T(e).status==="eligible"}exports.isComparisonCapableDashboardDateInputDefinition=k;exports.qualifiedEntityIdentitiesReferToSameEntity=b;exports.qualifiedFieldIdentitiesReferToSameField=C;exports.resolveDashboardDateComparisonFilterDefinition=F;exports.resolveDashboardDateComparisonInputDefinition=T;exports.selectMostQualifiedCompatibleEntityIdentity=N;exports.semanticDatasetMatchesFieldCoordinates=q;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as h } from "./
|
|
1
|
+
import { n as h } from "./validators-DEmd8Sin.js";
|
|
2
2
|
function N(e, n) {
|
|
3
3
|
const t = e.split(".").map((r) => r.trim()), i = n.split(".").map((r) => r.trim());
|
|
4
4
|
if (t.length === 0 || i.length === 0 || t.some((r) => !r) || i.some((r) => !r))
|