react-semaphor 0.1.571 → 0.1.573
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/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +62 -59
- package/dist/briefings/index.js +1 -1
- package/dist/chunks/{model-change-T1cRkh3m.js → add-to-dashboard-B6Ah8Lub.js} +121 -84
- package/dist/chunks/{assistant-chat-SkCraw2C.js → assistant-chat-D95DtCj7.js} +2398 -2300
- package/dist/chunks/{bookmark-impact-DCYD-6Fr.js → bookmark-impact-DUWw3wlA.js} +2 -2
- package/dist/chunks/{bookmark-state-CflS88gq.js → bookmark-state-BEl_G9vr.js} +54 -54
- package/dist/chunks/{card-filter-builder-D-aSYpyr.js → card-filter-builder-B3bEPylu.js} +54 -54
- package/dist/chunks/{dashboard-B_w_ekUz.js → dashboard-DdALjmc3.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-_g1m2tJ3.js → dashboard-briefing-launcher-D2vevpyl.js} +923 -956
- package/dist/chunks/{dashboard-controls-CY0gbcCt.js → dashboard-controls-DxrsGK9A.js} +103 -103
- package/dist/chunks/{dashboard-json-DsM79yem.js → dashboard-json-rwds0HjB.js} +1 -1
- package/dist/chunks/{dates-RSEzJ9N7.js → dates-DlYMDaF2.js} +5 -5
- package/dist/chunks/{edit-dashboard-visual-cX0FM-4i.js → edit-dashboard-visual-BCDz5HOb.js} +1354 -1317
- package/dist/chunks/{filter-reach-copy-thzt25Rc.js → filter-reach-copy-BTAXnbwQ.js} +9 -9
- package/dist/chunks/{index-y3HUzRNk.js → index-8BxDk8EP.js} +2 -2
- package/dist/chunks/{report-preferences-dialog-B_GXs91t.js → report-preferences-dialog-D9nBczmk.js} +725 -801
- package/dist/chunks/{resolve-dashboard-input-context-Lkbwycwe.js → resolve-dashboard-input-context-DBFuNhZo.js} +3961 -3923
- package/dist/chunks/{saved-dashboard-context-DC_TEd6y.js → saved-dashboard-context-AChHk4tw.js} +3 -3
- package/dist/chunks/{semaphor-ready-indicator-CBQamwQY.js → semaphor-ready-indicator-BdOAS4Uw.js} +25293 -24700
- package/dist/chunks/{shelf-drop-preview-context-Bkjf0XXw.js → shelf-drop-preview-context-B1goDUYE.js} +259 -259
- package/dist/chunks/{stored-dashboard-C0hekXiI.js → stored-dashboard-rpLzf4mk.js} +231 -231
- package/dist/chunks/{variable-draft-DvglU8yj.js → variable-draft-DPSMDwqt.js} +2 -2
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +1381 -1368
- package/dist/index.js +147 -147
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/dashboard/summary-card.d.ts +5 -0
- package/dist/types/index.js +1 -1
- package/dist/types/lib/formatters/kpi-number-formatter.d.ts +12 -0
- package/dist/types/lib/types/explorer-types.d.ts +6 -0
- package/dist/types/shared/assistant-protocol/model-change.d.ts +52 -1
- package/dist/types/shared/assistant-protocol/parts.d.ts +49 -2
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +5 -0
- package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +4 -0
- package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +38 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { x as g, z as $ } from "./bookmark-state-
|
|
2
|
-
import { l as F, h as C, a as O, b as v, i as S, f as T } from "./stored-dashboard-
|
|
1
|
+
import { x as g, z as $ } from "./bookmark-state-BEl_G9vr.js";
|
|
2
|
+
import { l as F, h as C, a as O, b as v, i as S, f as T } from "./stored-dashboard-rpLzf4mk.js";
|
|
3
3
|
function D(e) {
|
|
4
4
|
var d, c, f;
|
|
5
5
|
const { saved: s, draft: a, usage: l } = e, b = [], j = F(s);
|
|
@@ -1514,7 +1514,7 @@ function nr(e, t) {
|
|
|
1514
1514
|
return n.ok ? n.issues.some((r) => r.target === "card") ? { ok: !1, error: "The bookmark table settings are invalid." } : n.issues.length || n.unknownKeys.length ? { ok: !1, error: "The bookmark state is invalid." } : { ok: !0, value: n.value } : n;
|
|
1515
1515
|
}
|
|
1516
1516
|
export {
|
|
1517
|
-
|
|
1517
|
+
Zt as $,
|
|
1518
1518
|
_ as A,
|
|
1519
1519
|
$ as B,
|
|
1520
1520
|
Qn as C,
|
|
@@ -1524,35 +1524,35 @@ export {
|
|
|
1524
1524
|
xn as G,
|
|
1525
1525
|
An as H,
|
|
1526
1526
|
We as I,
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1527
|
+
wt as J,
|
|
1528
|
+
st as K,
|
|
1529
|
+
bt as L,
|
|
1530
|
+
mn as M,
|
|
1531
|
+
de as N,
|
|
1532
|
+
et as O,
|
|
1533
|
+
on as P,
|
|
1534
|
+
ge as Q,
|
|
1535
|
+
hn as R,
|
|
1536
|
+
Kn as S,
|
|
1537
|
+
In as T,
|
|
1538
|
+
J as U,
|
|
1539
1539
|
G as V,
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1540
|
+
wn as W,
|
|
1541
|
+
ct as X,
|
|
1542
|
+
ne as Y,
|
|
1543
|
+
re as Z,
|
|
1544
|
+
Ge as _,
|
|
1545
1545
|
$n as a,
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1546
|
+
Qe as a0,
|
|
1547
|
+
en as a1,
|
|
1548
|
+
cn as a2,
|
|
1549
|
+
dn as a3,
|
|
1550
|
+
ln as a4,
|
|
1551
|
+
fn as a5,
|
|
1552
|
+
pn as a6,
|
|
1553
|
+
yn as a7,
|
|
1554
|
+
Ae as a8,
|
|
1555
|
+
R as a9,
|
|
1556
1556
|
_n as aA,
|
|
1557
1557
|
nn as aB,
|
|
1558
1558
|
He as aC,
|
|
@@ -1572,32 +1572,32 @@ export {
|
|
|
1572
1572
|
Vn as aQ,
|
|
1573
1573
|
Ln as aR,
|
|
1574
1574
|
tn as aS,
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1575
|
+
ut as aa,
|
|
1576
|
+
S as ab,
|
|
1577
|
+
ve as ac,
|
|
1578
|
+
dt as ad,
|
|
1579
|
+
lt as ae,
|
|
1580
|
+
vn as af,
|
|
1581
|
+
H as ag,
|
|
1582
|
+
ft as ah,
|
|
1583
|
+
Tn as ai,
|
|
1584
|
+
En as aj,
|
|
1585
|
+
Nn as ak,
|
|
1586
|
+
On as al,
|
|
1587
|
+
Dn as am,
|
|
1588
|
+
rn as an,
|
|
1589
|
+
Ze as ao,
|
|
1590
|
+
sn as ap,
|
|
1591
|
+
an as aq,
|
|
1592
|
+
ke as ar,
|
|
1593
|
+
St as as,
|
|
1594
|
+
Ct as at,
|
|
1595
|
+
gt as au,
|
|
1596
|
+
Rn as av,
|
|
1597
|
+
Ot as aw,
|
|
1598
|
+
Yn as ax,
|
|
1599
|
+
Dt as ay,
|
|
1600
|
+
Rt as az,
|
|
1601
1601
|
Bn as b,
|
|
1602
1602
|
Ke as c,
|
|
1603
1603
|
Ee as d,
|
|
@@ -2,17 +2,17 @@ import { c as Ge, B as U, X as ce, x as Ne, q as mn, a8 as pn, t as at, u as rt,
|
|
|
2
2
|
import { jsx as t, jsxs as l, Fragment as fe } from "react/jsx-runtime";
|
|
3
3
|
import * as _e from "react";
|
|
4
4
|
import vt, { useMemo as Q, useState as H, useRef as Ae, useCallback as ne, useEffect as de, forwardRef as xn, Fragment as gn } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { b1 as ct, u as ut, af as se, c4 as _t, cB as J, cC as bn, c0 as Ie, cD as Ue, cE as Vt, cF as vn, bW as Ve, cG as yn, ag as Rt, bD as Nn, bE as Cn, bG as wn, bw as kn, cH as Sn, h as Dn, cI as In, cJ as yt, bV as Et, cK as Tn, cL as Mt, cM as zt, cN as Ln, cO as An, cP as $n, cQ as Fn, cR as On, cS as _n, cT as Vn, bx as Rn, cU as Nt, cV as qt, cW as En, bA as Mn, cX as zn, cY as qn, cZ as jn, c_ as ye, c$ as jt, d0 as Gn, d1 as Un, d2 as Bn, d3 as Wn, d4 as Kn, d5 as Ze, d6 as he, d7 as et, d8 as tt, d9 as nt, da as Qn, db as Re, dc as Ee, dd as Me, de as ze, df as Gt, dg as Ut, dh as Bt } from "./semaphor-ready-indicator-BdOAS4Uw.js";
|
|
6
6
|
import { D as Hn } from "./token-types-iKMplaBL.js";
|
|
7
|
-
import {
|
|
7
|
+
import { f9 as Wt, fa as Pn, fb as Yn, fc as Jn, fd as Xn, fe as Zn, ff as $e, fg as Ct, fh as wt, fi as Qe, fj as He, fk as ea, fl as ta, fm as kt, fn as na, fo as aa, fp as Fe, fq as ra, fr as St, fs as Kt, ft as Qt, fu as Ht, fv as Pt, fw as sa, fx as oa, fy as Dt, fz as ia, fA as It, fB as la, fC as da, fD as ca, fE as ua, fF as Pe, a as qe, fG as Ye, ba as ma, fH as pa, fI as fa, fJ as ha, fK as xa } from "./resolve-dashboard-input-context-DBFuNhZo.js";
|
|
8
8
|
import { c as z } from "./pickers-DkqmtnTL.js";
|
|
9
9
|
import { r as Yt } from "./validators-B8fpdinG.js";
|
|
10
10
|
import "./matrix-operation-contract-DCVinw1o.js";
|
|
11
11
|
import "./analytics-base-schemas-BaIQrEzX.js";
|
|
12
12
|
import "../value-format-preferences/index.js";
|
|
13
13
|
import { U as ga } from "./upload-CiGNKJ_0.js";
|
|
14
|
-
import { a as
|
|
15
|
-
import { S as
|
|
14
|
+
import { a as Jt } from "./metric-comparison-n9NsIa-2.js";
|
|
15
|
+
import { S as Xt } from "./filter-reach-copy-BTAXnbwQ.js";
|
|
16
16
|
/**
|
|
17
17
|
* @license lucide-react v0.453.0 - ISC
|
|
18
18
|
*
|
|
@@ -153,10 +153,10 @@ function mt(e) {
|
|
|
153
153
|
}
|
|
154
154
|
function wa(e, n) {
|
|
155
155
|
if (e.some(
|
|
156
|
-
(d) =>
|
|
156
|
+
(d) => J(d, n)
|
|
157
157
|
))
|
|
158
158
|
return e.filter(
|
|
159
|
-
(d) => !
|
|
159
|
+
(d) => !J(d, n)
|
|
160
160
|
);
|
|
161
161
|
const o = mt(e);
|
|
162
162
|
return e.some(
|
|
@@ -173,7 +173,7 @@ function ka(e, n) {
|
|
|
173
173
|
return n;
|
|
174
174
|
const d = [...e];
|
|
175
175
|
for (const c of n)
|
|
176
|
-
d.some((i) =>
|
|
176
|
+
d.some((i) => J(i, c)) || d.push(c);
|
|
177
177
|
return d;
|
|
178
178
|
}
|
|
179
179
|
function Sa({
|
|
@@ -221,20 +221,20 @@ function Da({
|
|
|
221
221
|
);
|
|
222
222
|
}, [s, n]), w = n.length > 0 && f.length > 0, y = d || w || !!a, h = s.length, N = Q(() => f.filter(
|
|
223
223
|
(O) => o.some(
|
|
224
|
-
(T) =>
|
|
224
|
+
(T) => J(T, Le(O))
|
|
225
225
|
)
|
|
226
226
|
).length, [f, o]), k = Q(
|
|
227
227
|
() => f.map(Le),
|
|
228
228
|
[f]
|
|
229
229
|
), _ = k.length > 0 && k.every(
|
|
230
|
-
(O) => o.some((T) =>
|
|
230
|
+
(O) => o.some((T) => J(T, O))
|
|
231
231
|
), D = () => {
|
|
232
232
|
if (k.length !== 0) {
|
|
233
233
|
if (_) {
|
|
234
234
|
u(
|
|
235
235
|
o.filter(
|
|
236
236
|
(O) => !k.some(
|
|
237
|
-
(T) =>
|
|
237
|
+
(T) => J(O, T)
|
|
238
238
|
)
|
|
239
239
|
)
|
|
240
240
|
);
|
|
@@ -299,7 +299,7 @@ function Da({
|
|
|
299
299
|
] }),
|
|
300
300
|
y && /* @__PURE__ */ t("ul", { className: "space-y-px pb-1", children: m && s.length === 0 ? /* @__PURE__ */ t("li", { className: "px-9 py-1.5 text-[11px] text-muted-foreground", children: "Loading datasets…" }) : f.length === 0 ? /* @__PURE__ */ t("li", { className: "px-9 py-1.5 text-[11px] text-muted-foreground", children: "No datasets in this domain." }) : f.map((O) => {
|
|
301
301
|
const T = Le(O), P = o.some(
|
|
302
|
-
(
|
|
302
|
+
(X) => J(X, T)
|
|
303
303
|
);
|
|
304
304
|
return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ l("label", { className: "flex cursor-pointer items-start gap-2 rounded-[4px] px-9 py-1.5 transition-colors hover:bg-muted/40", children: [
|
|
305
305
|
/* @__PURE__ */ t(
|
|
@@ -782,13 +782,13 @@ function pt({
|
|
|
782
782
|
const m = i.map(
|
|
783
783
|
(h) => s(h.table_name, h.table_type)
|
|
784
784
|
), f = m.length > 0 && m.every(
|
|
785
|
-
(h) => u.some((N) =>
|
|
785
|
+
(h) => u.some((N) => J(N, h))
|
|
786
786
|
), w = (h, N) => {
|
|
787
787
|
const k = s(h, N), _ = u.some(
|
|
788
|
-
(D) =>
|
|
788
|
+
(D) => J(D, k)
|
|
789
789
|
);
|
|
790
790
|
d(
|
|
791
|
-
_ ? u.filter((D) => !
|
|
791
|
+
_ ? u.filter((D) => !J(D, k)) : [...u, k]
|
|
792
792
|
);
|
|
793
793
|
}, y = () => {
|
|
794
794
|
if (m.length === 0) return;
|
|
@@ -796,7 +796,7 @@ function pt({
|
|
|
796
796
|
d(
|
|
797
797
|
u.filter(
|
|
798
798
|
(N) => !m.some(
|
|
799
|
-
(k) =>
|
|
799
|
+
(k) => J(N, k)
|
|
800
800
|
)
|
|
801
801
|
)
|
|
802
802
|
);
|
|
@@ -804,7 +804,7 @@ function pt({
|
|
|
804
804
|
}
|
|
805
805
|
const h = [...u];
|
|
806
806
|
for (const N of m)
|
|
807
|
-
h.some((k) =>
|
|
807
|
+
h.some((k) => J(k, N)) || h.push(N);
|
|
808
808
|
d(h);
|
|
809
809
|
};
|
|
810
810
|
return /* @__PURE__ */ l("ul", { children: [
|
|
@@ -826,7 +826,7 @@ function pt({
|
|
|
826
826
|
] }),
|
|
827
827
|
i.map((h) => {
|
|
828
828
|
const N = s(h.table_name, h.table_type), k = u.some(
|
|
829
|
-
(_) =>
|
|
829
|
+
(_) => J(_, N)
|
|
830
830
|
);
|
|
831
831
|
return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ l("label", { className: "flex cursor-pointer items-center gap-2.5 py-1.5 pl-12 pr-4 transition-colors hover:bg-muted/40", children: [
|
|
832
832
|
/* @__PURE__ */ t(
|
|
@@ -884,10 +884,10 @@ function Oa({
|
|
|
884
884
|
database: i.database || "",
|
|
885
885
|
schema: i.schema || ""
|
|
886
886
|
}, m = a.some(
|
|
887
|
-
(f) =>
|
|
887
|
+
(f) => J(f, s)
|
|
888
888
|
);
|
|
889
889
|
o(
|
|
890
|
-
m ? a.filter((f) => !
|
|
890
|
+
m ? a.filter((f) => !J(f, s)) : [...a, s]
|
|
891
891
|
);
|
|
892
892
|
};
|
|
893
893
|
return /* @__PURE__ */ l("div", { children: [
|
|
@@ -905,7 +905,7 @@ function Oa({
|
|
|
905
905
|
database: i.database || "",
|
|
906
906
|
schema: i.schema || ""
|
|
907
907
|
}, m = a.some(
|
|
908
|
-
(f) =>
|
|
908
|
+
(f) => J(f, s)
|
|
909
909
|
);
|
|
910
910
|
return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ l("label", { className: "flex cursor-pointer items-start gap-2.5 py-1.5 pl-12 pr-4 transition-colors hover:bg-muted/40", children: [
|
|
911
911
|
/* @__PURE__ */ t(
|
|
@@ -1043,7 +1043,7 @@ function Ea({
|
|
|
1043
1043
|
}
|
|
1044
1044
|
);
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1046
|
+
function Je(e) {
|
|
1047
1047
|
if (e != null && e.length)
|
|
1048
1048
|
return e.every((n) => n.type === "dataset") ? "semanticDomain" : e.every((n) => n.type === "url") ? "url" : e.every(
|
|
1049
1049
|
(n) => n.type === "upload" || n.type === "file"
|
|
@@ -1059,7 +1059,7 @@ function Cr({
|
|
|
1059
1059
|
var Se, me;
|
|
1060
1060
|
const { tokenProps: d } = ct(), c = d.config, i = d.semanticDomainAccess || Hn, [s, m] = H([]), [f, w] = H(""), [y, h] = H("all"), [N, k] = H(
|
|
1061
1061
|
void 0
|
|
1062
|
-
), _ = Ae(!1), { updateDataSource: D } = Rt(), j = u ?? D, O = i.mode, T = (c == null ? void 0 : c.showDirectSource) !== !1, P = O === "include" || O === "exclude" || !T,
|
|
1062
|
+
), _ = Ae(!1), { updateDataSource: D } = Rt(), j = u ?? D, O = i.mode, T = (c == null ? void 0 : c.showDirectSource) !== !1, P = O === "include" || O === "exclude" || !T, X = O !== "all", p = T && !P, I = P ? "semanticDomain" : a.mode, A = !T, S = O === "include" && (((Se = i.domainIds) == null ? void 0 : Se.length) || 0) === 1 ? (me = i.domainIds) == null ? void 0 : me[0] : void 0, v = ne(
|
|
1063
1063
|
($) => {
|
|
1064
1064
|
_.current = !0, j({
|
|
1065
1065
|
...a,
|
|
@@ -1086,7 +1086,7 @@ function Cr({
|
|
|
1086
1086
|
v("semanticDomain");
|
|
1087
1087
|
return;
|
|
1088
1088
|
}
|
|
1089
|
-
if (!
|
|
1089
|
+
if (!X || I !== "semanticDomain") return;
|
|
1090
1090
|
const $ = i.domainIds ?? [], ae = (((b = a.selectedEntities) == null ? void 0 : b.length) ?? 0) > 0, r = ((s == null ? void 0 : s.length) ?? 0) > 0;
|
|
1091
1091
|
Ca({
|
|
1092
1092
|
mode: O,
|
|
@@ -1099,7 +1099,7 @@ function Cr({
|
|
|
1099
1099
|
}), r && m([]));
|
|
1100
1100
|
}, [
|
|
1101
1101
|
P,
|
|
1102
|
-
|
|
1102
|
+
X,
|
|
1103
1103
|
I,
|
|
1104
1104
|
a.mode,
|
|
1105
1105
|
a.semanticDomainId,
|
|
@@ -1117,23 +1117,23 @@ function Cr({
|
|
|
1117
1117
|
return;
|
|
1118
1118
|
}
|
|
1119
1119
|
_.current || (m([...o || []]), k(
|
|
1120
|
-
|
|
1120
|
+
Je(o)
|
|
1121
1121
|
));
|
|
1122
1122
|
}, [e, o, P]);
|
|
1123
1123
|
const q = ($) => {
|
|
1124
1124
|
_.current = !0, m(
|
|
1125
|
-
s.filter((ae) => !
|
|
1125
|
+
s.filter((ae) => !J(ae, $))
|
|
1126
1126
|
);
|
|
1127
1127
|
}, C = ne(
|
|
1128
1128
|
($, ae) => {
|
|
1129
1129
|
_.current = !0, m($), k(
|
|
1130
|
-
ae ??
|
|
1130
|
+
ae ?? Je($)
|
|
1131
1131
|
);
|
|
1132
1132
|
},
|
|
1133
1133
|
[]
|
|
1134
1134
|
), Z = () => {
|
|
1135
1135
|
var ae, r;
|
|
1136
|
-
const $ =
|
|
1136
|
+
const $ = Je(s) ?? N ?? I;
|
|
1137
1137
|
if ($ === "semanticDomain") {
|
|
1138
1138
|
const g = en(s) || a.semanticDomainId, b = ((ae = s == null ? void 0 : s[0]) == null ? void 0 : ae.connectionId) || a.connectionId, L = ((r = s == null ? void 0 : s[0]) == null ? void 0 : r.connectionType) || a.connectionType;
|
|
1139
1139
|
j({
|
|
@@ -1514,17 +1514,17 @@ const Ma = xn(
|
|
|
1514
1514
|
Ma.displayName = "IconButton";
|
|
1515
1515
|
function za(e, n) {
|
|
1516
1516
|
var s, m;
|
|
1517
|
-
const a = e.qualifiedFieldName || e.name, o = e.qualifiedFieldName ? e.qualifiedFieldName.split(".").slice(0, -1).join(".") : e.qualifiedEntityName || e.entityName, u = n.connectionId || ((s = n.dataSource) == null ? void 0 : s.connectionId) || "", d = Yn(e), c =
|
|
1517
|
+
const a = e.qualifiedFieldName || e.name, o = e.qualifiedFieldName ? e.qualifiedFieldName.split(".").slice(0, -1).join(".") : e.qualifiedEntityName || e.entityName, u = n.connectionId || ((s = n.dataSource) == null ? void 0 : s.connectionId) || "", d = Yn(e), c = Jn(
|
|
1518
1518
|
n.dataSource,
|
|
1519
1519
|
{
|
|
1520
1520
|
connectionId: u,
|
|
1521
1521
|
connectionType: (m = n.dataSource) == null ? void 0 : m.connectionType
|
|
1522
1522
|
},
|
|
1523
1523
|
e
|
|
1524
|
-
), i =
|
|
1524
|
+
), i = Xn(n.dataSource, c, e) || "";
|
|
1525
1525
|
return {
|
|
1526
1526
|
column: a,
|
|
1527
|
-
title:
|
|
1527
|
+
title: Xt(e),
|
|
1528
1528
|
dataType: e.dataType,
|
|
1529
1529
|
...e.nativeDataType ? { nativeDataType: e.nativeDataType } : {},
|
|
1530
1530
|
table: e.entityName || "",
|
|
@@ -1826,7 +1826,7 @@ function Sr({
|
|
|
1826
1826
|
[a]
|
|
1827
1827
|
), D = sa(e), j = Zn(e), [O, T] = H(
|
|
1828
1828
|
null
|
|
1829
|
-
), [P,
|
|
1829
|
+
), [P, X] = H(
|
|
1830
1830
|
null
|
|
1831
1831
|
), [p, I] = H(
|
|
1832
1832
|
() => c ? {
|
|
@@ -1901,7 +1901,7 @@ function Sr({
|
|
|
1901
1901
|
v.current = c, r && (I({
|
|
1902
1902
|
step: 1,
|
|
1903
1903
|
control: $e(e, n, Array.from(_))
|
|
1904
|
-
}),
|
|
1904
|
+
}), X(null), T(null));
|
|
1905
1905
|
}, [n, c, _, e]);
|
|
1906
1906
|
const M = (r) => {
|
|
1907
1907
|
if (!C(r.type))
|
|
@@ -2053,7 +2053,7 @@ function Sr({
|
|
|
2053
2053
|
S.current = void 0, I({
|
|
2054
2054
|
step: 1,
|
|
2055
2055
|
control: $e(e, n, Array.from(_))
|
|
2056
|
-
}),
|
|
2056
|
+
}), X(null), T(null);
|
|
2057
2057
|
}, [n, _, e]), oe = (r) => {
|
|
2058
2058
|
I(
|
|
2059
2059
|
(g) => g && (() => {
|
|
@@ -2174,7 +2174,7 @@ function Sr({
|
|
|
2174
2174
|
cardBindingsById: p.cardBindingsById
|
|
2175
2175
|
}
|
|
2176
2176
|
);
|
|
2177
|
-
|
|
2177
|
+
X(g), I(null), k == null || k();
|
|
2178
2178
|
}, [n, p, o, G, k]), gt = p ? C(p.control.type) ? ["Choose type", "Select cards", "Configure", "Finish"] : ["Choose type", "Configure", "Finish"] : [], Se = p != null && p.createdControlId ? `[[param.${p.createdControlId}]]` : p ? `[[param.${ra(p.control.label) || p.control.id}]]` : "", me = St({
|
|
2179
2179
|
controls: n,
|
|
2180
2180
|
defaultValues: o
|
|
@@ -2469,7 +2469,7 @@ function Sr({
|
|
|
2469
2469
|
{
|
|
2470
2470
|
type: "button",
|
|
2471
2471
|
className: "flex min-w-0 flex-1 items-start gap-2 rounded-control text-left focus:outline-none focus-visible:bg-muted/40",
|
|
2472
|
-
onClick: () =>
|
|
2472
|
+
onClick: () => X(
|
|
2473
2473
|
(F) => F === r.id ? null : r.id
|
|
2474
2474
|
),
|
|
2475
2475
|
children: [
|
|
@@ -2944,7 +2944,7 @@ function Ka({
|
|
|
2944
2944
|
groups: x.groups.map(v)
|
|
2945
2945
|
};
|
|
2946
2946
|
d(v(o));
|
|
2947
|
-
},
|
|
2947
|
+
}, X = (I) => {
|
|
2948
2948
|
if (!I || I.conditions.length === 0 && I.groups.length === 0)
|
|
2949
2949
|
return "-- No filters defined";
|
|
2950
2950
|
const A = (v) => {
|
|
@@ -2961,7 +2961,7 @@ function Ka({
|
|
|
2961
2961
|
weekStart: (D == null ? void 0 : D.weekStart) ?? 1,
|
|
2962
2962
|
anchor: (D == null ? void 0 : D.anchor) ?? "now"
|
|
2963
2963
|
});
|
|
2964
|
-
return K ? `${x} ${V} '${K.start.toISOString()}' AND '${K.end.toISOString()}' /* ${M}: dates update each time the card runs */` :
|
|
2964
|
+
return K ? `${x} ${V} '${K.start.toISOString()}' AND '${K.end.toISOString()}' /* ${M}: dates update each time the card runs */` : Jt(Z).dataAnchored ? `${x} ${V} ${M} /* dates count back from the latest data each time the card runs */` : `${x} ${V} ${M} /* dates follow your calendar each time the card runs */`;
|
|
2965
2965
|
}
|
|
2966
2966
|
if (v.field.dataType === "string" && !["in", "not in"].includes(v.operator))
|
|
2967
2967
|
typeof C == "string" ? C = `'${C}'` : Array.isArray(C) && (C = `'${C.join(", ")}'`);
|
|
@@ -3021,7 +3021,7 @@ function Ka({
|
|
|
3021
3021
|
updateGroupNegate: O,
|
|
3022
3022
|
reorderConditions: T,
|
|
3023
3023
|
reorderGroups: P,
|
|
3024
|
-
generateSQLPreview:
|
|
3024
|
+
generateSQLPreview: X,
|
|
3025
3025
|
hasAnyFilters: p
|
|
3026
3026
|
};
|
|
3027
3027
|
}
|
|
@@ -3054,7 +3054,7 @@ function Ha({
|
|
|
3054
3054
|
const [d, c] = vt.useState(!1), i = vt.useMemo(
|
|
3055
3055
|
() => new Set(e ? [e.id] : []),
|
|
3056
3056
|
[e]
|
|
3057
|
-
), s = e ?
|
|
3057
|
+
), s = e ? Xt(e) : null;
|
|
3058
3058
|
return /* @__PURE__ */ l(it, { modal: !0, open: d, onOpenChange: c, children: [
|
|
3059
3059
|
/* @__PURE__ */ t(lt, { asChild: !0, children: /* @__PURE__ */ l(
|
|
3060
3060
|
U,
|
|
@@ -3289,7 +3289,7 @@ function Ya({
|
|
|
3289
3289
|
)
|
|
3290
3290
|
] });
|
|
3291
3291
|
}
|
|
3292
|
-
function
|
|
3292
|
+
function Ja({
|
|
3293
3293
|
value: e,
|
|
3294
3294
|
operator: n,
|
|
3295
3295
|
relativeMeta: a,
|
|
@@ -3303,7 +3303,7 @@ function Xa({
|
|
|
3303
3303
|
const D = s(a);
|
|
3304
3304
|
return {
|
|
3305
3305
|
...D,
|
|
3306
|
-
tooltip: D.dates ? void 0 :
|
|
3306
|
+
tooltip: D.dates ? void 0 : Jt(a).dataAnchored ? Bn : Wn
|
|
3307
3307
|
};
|
|
3308
3308
|
}, [m, a, s]), w = Q(() => {
|
|
3309
3309
|
if (m) {
|
|
@@ -3369,7 +3369,7 @@ function Xa({
|
|
|
3369
3369
|
}
|
|
3370
3370
|
);
|
|
3371
3371
|
}
|
|
3372
|
-
const
|
|
3372
|
+
const Xa = (e) => e.conditions.length > 0 || e.groups.length > 0, ht = [
|
|
3373
3373
|
"contains",
|
|
3374
3374
|
"startsWith",
|
|
3375
3375
|
"endsWith",
|
|
@@ -3436,7 +3436,7 @@ const Ja = (e) => e.conditions.length > 0 || e.groups.length > 0, ht = [
|
|
|
3436
3436
|
isNotNull: "Is not null",
|
|
3437
3437
|
"not between": "Not between"
|
|
3438
3438
|
};
|
|
3439
|
-
function
|
|
3439
|
+
function Xe(e) {
|
|
3440
3440
|
return rr[e] || xa(e);
|
|
3441
3441
|
}
|
|
3442
3442
|
function sr(e) {
|
|
@@ -3566,10 +3566,10 @@ function cn({
|
|
|
3566
3566
|
size: "xs",
|
|
3567
3567
|
"aria-label": "Operator",
|
|
3568
3568
|
className: z("w-40 shrink-0", $t),
|
|
3569
|
-
children: /* @__PURE__ */ t(be, { children: e.operator ?
|
|
3569
|
+
children: /* @__PURE__ */ t(be, { children: e.operator ? Xe(e.operator) : "" })
|
|
3570
3570
|
}
|
|
3571
3571
|
),
|
|
3572
|
-
/* @__PURE__ */ t(ve, { children: sr(D).map((T) => /* @__PURE__ */ t(re, { value: T, children:
|
|
3572
|
+
/* @__PURE__ */ t(ve, { children: sr(D).map((T) => /* @__PURE__ */ t(re, { value: T, children: Xe(T) }, T)) })
|
|
3573
3573
|
]
|
|
3574
3574
|
}
|
|
3575
3575
|
),
|
|
@@ -3594,7 +3594,7 @@ function cn({
|
|
|
3594
3594
|
value: T.target.value
|
|
3595
3595
|
}),
|
|
3596
3596
|
className: "min-w-0 flex-1",
|
|
3597
|
-
placeholder: `${
|
|
3597
|
+
placeholder: `${Xe(e.operator)}…`
|
|
3598
3598
|
}
|
|
3599
3599
|
) : /* @__PURE__ */ t(
|
|
3600
3600
|
Ya,
|
|
@@ -3627,7 +3627,7 @@ function cn({
|
|
|
3627
3627
|
// - Handles different operators (=, !=, >, <, between, in, etc.)
|
|
3628
3628
|
// - Saves relative choices ("This month") with the range
|
|
3629
3629
|
/* @__PURE__ */ t(
|
|
3630
|
-
|
|
3630
|
+
Ja,
|
|
3631
3631
|
{
|
|
3632
3632
|
value: e.value,
|
|
3633
3633
|
operator: e.operator,
|
|
@@ -3730,7 +3730,7 @@ function or({
|
|
|
3730
3730
|
transform: O,
|
|
3731
3731
|
transition: T,
|
|
3732
3732
|
isDragging: P
|
|
3733
|
-
} = Gt({ id: e.id }),
|
|
3733
|
+
} = Gt({ id: e.id }), X = {
|
|
3734
3734
|
transform: Ut.Transform.toString(O),
|
|
3735
3735
|
transition: T
|
|
3736
3736
|
}, p = (A) => {
|
|
@@ -3754,7 +3754,7 @@ function or({
|
|
|
3754
3754
|
"div",
|
|
3755
3755
|
{
|
|
3756
3756
|
ref: j,
|
|
3757
|
-
style:
|
|
3757
|
+
style: X,
|
|
3758
3758
|
className: z(
|
|
3759
3759
|
n > 0 && "mt-2 overflow-hidden rounded-[6px] border border-border/60",
|
|
3760
3760
|
P && "z-50 opacity-50"
|
|
@@ -3905,12 +3905,12 @@ function Ir({
|
|
|
3905
3905
|
reorderConditions: O,
|
|
3906
3906
|
reorderGroups: T,
|
|
3907
3907
|
generateSQLPreview: P,
|
|
3908
|
-
hasAnyFilters:
|
|
3908
|
+
hasAnyFilters: X
|
|
3909
3909
|
} = Ka({
|
|
3910
3910
|
initialFilters: e,
|
|
3911
3911
|
availableFields: n,
|
|
3912
3912
|
...c ? {
|
|
3913
|
-
onChange: (x) => c(
|
|
3913
|
+
onChange: (x) => c(Xa(x) ? x : null)
|
|
3914
3914
|
} : {}
|
|
3915
3915
|
}), p = Ze(
|
|
3916
3916
|
he(nt),
|
|
@@ -4053,7 +4053,7 @@ function Ir({
|
|
|
4053
4053
|
),
|
|
4054
4054
|
/* @__PURE__ */ t("span", { className: "text-[11px] text-muted-foreground", children: "Nest conditions in groups" })
|
|
4055
4055
|
] }),
|
|
4056
|
-
|
|
4056
|
+
X && !i && /* @__PURE__ */ l("div", { className: "mt-3 border-t border-border/60 pt-3", children: [
|
|
4057
4057
|
/* @__PURE__ */ t("div", { className: z("mb-1.5", xt), children: "Where clause" }),
|
|
4058
4058
|
/* @__PURE__ */ t("pre", { className: "overflow-x-auto whitespace-pre-wrap break-words rounded-[6px] border border-border bg-muted/40 px-3 py-2 font-mono text-[12px] leading-[1.55] text-foreground", children: P(s) })
|
|
4059
4059
|
] })
|
|
@@ -4075,7 +4075,7 @@ function Ir({
|
|
|
4075
4075
|
U,
|
|
4076
4076
|
{
|
|
4077
4077
|
size: "xs",
|
|
4078
|
-
onClick: () => o == null ? void 0 : o(
|
|
4078
|
+
onClick: () => o == null ? void 0 : o(X ? s : null),
|
|
4079
4079
|
children: "Apply filters"
|
|
4080
4080
|
}
|
|
4081
4081
|
)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { E as o, F as i, S as d, B as s, a as c, U as l, D as t, A as h, C as f, b } from "./semaphor-ready-indicator-
|
|
2
|
+
import { E as o, F as i, S as d, B as s, a as c, U as l, D as t, A as h, C as f, b } from "./semaphor-ready-indicator-BdOAS4Uw.js";
|
|
3
3
|
function u(e) {
|
|
4
4
|
if (typeof window > "u")
|
|
5
5
|
return null;
|