react-semaphor 0.1.567 → 0.1.568
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/briefings/index.js +1 -1
- package/dist/chunks/{assistant-chat-D-IuHHwh.js → assistant-chat-BN5I8KuN.js} +5 -5
- package/dist/chunks/{bookmark-impact-B0estCHn.js → bookmark-impact-CJ-65omV.js} +1 -1
- package/dist/chunks/{card-filter-builder-DbSmzvem.js → card-filter-builder-BBuB99GZ.js} +51 -51
- package/dist/chunks/{dashboard-f8J9DHh5.js → dashboard-YnWZC4dK.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DunvZYsU.js → dashboard-briefing-launcher-BF89TU2h.js} +184 -184
- package/dist/chunks/{dashboard-controls-B09cN2Dz.js → dashboard-controls-atHc1EjP.js} +7 -7
- package/dist/chunks/{dashboard-json-BNNCaKEc.js → dashboard-json-Cxp3inxd.js} +1 -1
- package/dist/chunks/{dates-BsJcyoC_.js → dates-CKO05ino.js} +4 -4
- package/dist/chunks/{edit-dashboard-visual-Cwzbpty8.js → edit-dashboard-visual-DdmTfn-J.js} +7 -7
- package/dist/chunks/{filter-reach-copy-P-kDwUpY.js → filter-reach-copy-jZGzK_IH.js} +840 -826
- package/dist/chunks/{index-BcXw0CpM.js → index-CPNZW0mu.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-CbgmdWeZ.js → report-preferences-dialog-Mbd-I0wV.js} +7 -7
- package/dist/chunks/{resolve-dashboard-input-context-DPKSF3qj.js → resolve-dashboard-input-context-Du0fjN3h.js} +4604 -4548
- package/dist/chunks/{saved-dashboard-context-CNudmm9U.js → saved-dashboard-context-y8N6RvjS.js} +2 -2
- package/dist/chunks/{semaphor-ready-indicator-CQd-PCCZ.js → semaphor-ready-indicator-BSEdUq40.js} +21211 -21061
- package/dist/chunks/{shelf-drop-preview-context-CWS3e20y.js → shelf-drop-preview-context-D7QqPl36.js} +2 -2
- package/dist/chunks/{stored-dashboard-CrQFT27O.js → stored-dashboard-d3xQYxBD.js} +46 -46
- package/dist/chunks/{variable-draft-BDxlD0dM.js → variable-draft-DOX03R4A.js} +2 -2
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.js +1545 -1518
- package/dist/index.js +11 -11
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/lib/document/document-edits.d.ts +8 -3
- package/dist/types/lib/document/document-text-style.d.ts +54 -0
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +21 -3
- package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +5 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as t, b as r, c as d, d as o, p as i, e as n, f as p } from "../chunks/saved-dashboard-context-
|
|
1
|
+
import { A as e, a as t, b as r, c as d, d as o, p as i, e as n, f as p } from "../chunks/saved-dashboard-context-y8N6RvjS.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AssistantContextSourceError,
|
|
4
4
|
t as assistantCardReplayFields,
|
package/dist/briefings/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import "zod";
|
|
|
5
5
|
import "../chunks/matrix-operation-contract-Eb6elidS.js";
|
|
6
6
|
import "../chunks/analytics-base-schemas-BaIQrEzX.js";
|
|
7
7
|
import "../value-format-preferences/index.js";
|
|
8
|
-
import { A as g, J as l, a2 as B, F as m, a4 as E, z as c, B as I, E as T, K as d, C, D as u, M as A, Z as h, i as p, _ as D, $ as _, a5 as b, n as F, l as S, m as R, P as N, k as y, R as M, f as O, e as G, S as v, u as x, q as L, c as U, d as V, I as z, H, h as J, b as P, a as q, a6 as X, g as K, a0 as Q, V as Y, a3 as j, W as k, G as W, a1 as Z, r as $, j as w, X as ee, Y as ie, o as ae, L as re, Q as te, O as se, p as ne, s as oe, t as fe, N as ge, T as le, U as Be } from "../chunks/index-
|
|
8
|
+
import { A as g, J as l, a2 as B, F as m, a4 as E, z as c, B as I, E as T, K as d, C, D as u, M as A, Z as h, i as p, _ as D, $ as _, a5 as b, n as F, l as S, m as R, P as N, k as y, R as M, f as O, e as G, S as v, u as x, q as L, c as U, d as V, I as z, H, h as J, b as P, a as q, a6 as X, g as K, a0 as Q, V as Y, a3 as j, W as k, G as W, a1 as Z, r as $, j as w, X as ee, Y as ie, o as ae, L as re, Q as te, O as se, p as ne, s as oe, t as fe, N as ge, T as le, U as Be } from "../chunks/index-CPNZW0mu.js";
|
|
9
9
|
export {
|
|
10
10
|
g as BRIEFING_ARTIFACT_FORMATS,
|
|
11
11
|
l as BRIEFING_ATTACHMENT_FORMATS,
|
|
@@ -5,7 +5,7 @@ var Or = (e, t, r) => t.has(e) || $r("Cannot " + r);
|
|
|
5
5
|
var L = (e, t, r) => (Or(e, t, "read from private field"), r ? r.call(e) : t.get(e)), me = (e, t, r) => t.has(e) ? $r("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), ee = (e, t, r, n) => (Or(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r);
|
|
6
6
|
import { jsx as p, jsxs as k, Fragment as Le } from "react/jsx-runtime";
|
|
7
7
|
import { useCallback as te, useRef as ie, useMemo as it, useEffect as ke, useState as D, useLayoutEffect as Ue, useId as As } from "react";
|
|
8
|
-
import { u as X, e6 as Cs, aW as $s, be as Os, Y as zs, e7 as Ms, e8 as Ps, Z as zr, aT as Rs, e9 as Zs, bT as js, b9 as Ds, ea as dr, dm as Fs, eb as Ls, ec as Mt, ed as Cn, ee as Us, bN as Pt, c9 as Mr, ef as $n, $ as Bs, c3 as On, bh as Vs, bY as qs, bM as zn, dQ as Mn, eg as Js, cw as Ws, bn as Ks, eh as Gs, ei as Ys, ej as Hs, c6 as Qs, c7 as Xs, dn as eo, c8 as to, ce as ro, ek as no, bV as Lt, cd as ao, ci as so, bX as Pn, aR as Rn, aU as oo, b8 as xt, aP as Zn, el as io, em as lo, en as co, eo as uo, a6 as jn, ep as po } from "./semaphor-ready-indicator-
|
|
8
|
+
import { u as X, e6 as Cs, aW as $s, be as Os, Y as zs, e7 as Ms, e8 as Ps, Z as zr, aT as Rs, e9 as Zs, bT as js, b9 as Ds, ea as dr, dm as Fs, eb as Ls, ec as Mt, ed as Cn, ee as Us, bN as Pt, c9 as Mr, ef as $n, $ as Bs, c3 as On, bh as Vs, bY as qs, bM as zn, dQ as Mn, eg as Js, cw as Ws, bn as Ks, eh as Gs, ei as Ys, ej as Hs, c6 as Qs, c7 as Xs, dn as eo, c8 as to, ce as ro, ek as no, bV as Lt, cd as ao, ci as so, bX as Pn, aR as Rn, aU as oo, b8 as xt, aP as Zn, el as io, em as lo, en as co, eo as uo, a6 as jn, ep as po } from "./semaphor-ready-indicator-BSEdUq40.js";
|
|
9
9
|
import { c as qe, B as Y, X as lt, k as Dn, l as fo, e as mt, L as Be, I as Fn, R as Ln, P as Un, a as Bn, d as Vn } from "./code-editor-DJNOsgJH.js";
|
|
10
10
|
import "./index-CuHybtft.js";
|
|
11
11
|
import "./validators-wtjw0aw6.js";
|
|
@@ -16,10 +16,10 @@ import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as mo } from "../value-format
|
|
|
16
16
|
import { g as ho, c as B } from "./_commonjsHelpers-DimLPMtv.js";
|
|
17
17
|
import { az as go } from "./bookmark-state-Du3s13_V.js";
|
|
18
18
|
import { l as bo, m as ct, c as Xt, A as et, d as qn } from "./context-R31TSL5V.js";
|
|
19
|
-
import { p as Pr, a as vo, A as Jn } from "./saved-dashboard-context-
|
|
20
|
-
import {
|
|
21
|
-
import { o as Wn, p as wo } from "./report-preferences-dialog-
|
|
22
|
-
import { m as _o } from "./stored-dashboard-
|
|
19
|
+
import { p as Pr, a as vo, A as Jn } from "./saved-dashboard-context-y8N6RvjS.js";
|
|
20
|
+
import { gw as yo, o as xo, g7 as Rr } from "./resolve-dashboard-input-context-Du0fjN3h.js";
|
|
21
|
+
import { o as Wn, p as wo } from "./report-preferences-dialog-Mbd-I0wV.js";
|
|
22
|
+
import { m as _o } from "./stored-dashboard-d3xQYxBD.js";
|
|
23
23
|
import { w as Io, c as Kn } from "./visual-choice-JiJ-_3bi.js";
|
|
24
24
|
import { m as So, v as Gn, t as No, n as ko, k as ve, d as Eo, b as To, l as pr, w as Ao, h as Co, s as er, f as $o, a as Oo } from "./model-change-T1cRkh3m.js";
|
|
25
25
|
import { aL as zo, aM as Mo, aN as Po, aO as wt, aP as Ro, aQ as Zr, aR as jr, aS as Dr, aT as Fr, aU as Lr, aV as Zo, ad as jo, ab as Do } from "./temporal-input-presentation--2r9BLr0.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { x as g, z as $ } from "./bookmark-state-Du3s13_V.js";
|
|
2
|
-
import { l as F, h as C, a as O, b as v, i as S, f as T } from "./stored-dashboard-
|
|
2
|
+
import { l as F, h as C, a as O, b as v, i as S, f as T } from "./stored-dashboard-d3xQYxBD.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);
|
|
@@ -2,9 +2,9 @@ import { c as Ue, B as j, X as ce, s as Ne, l as un, a3 as mn, o as at, p 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 hn, Fragment as xn } from "react";
|
|
5
|
-
import { aU as ct, u as ut, a6 as se, bX as _t, cs as X, ct as gn, bT as Ie, cu as Ge, cv as Vt, cw as bn, bN as Ve, cx as vn, a7 as Rt, bu as yn, bv as Nn, bx as Cn, bn as wn, cy as kn, i as Sn, cz as Dn, cA as yt, bM as Et, cB as In, cC as Mt, cD as zt, cE as Tn, cF as Ln, cG as An, cH as $n, cI as Fn, cJ as On, cK as _n, bo as Vn, cL as Nt, cM as qt, cN as Rn, br as En, cO as Mn, cP as zn, cQ as qn, cR as ye, cS as jt, cT as jn, cU as Un, cV as Gn, cW as Bn, cX as Wn, cY as Kn, cZ as
|
|
5
|
+
import { aU as ct, u as ut, a6 as se, bX as _t, cs as X, ct as gn, bT as Ie, cu as Ge, cv as Vt, cw as bn, bN as Ve, cx as vn, a7 as Rt, bu as yn, bv as Nn, bx as Cn, bn as wn, cy as kn, i as Sn, cz as Dn, cA as yt, bM as Et, cB as In, cC as Mt, cD as zt, cE as Tn, cF as Ln, cG as An, cH as $n, cI as Fn, cJ as On, cK as _n, bo as Vn, cL as Nt, cM as qt, cN as Rn, br as En, cO as Mn, cP as zn, cQ as qn, cR as ye, cS as jt, cT as jn, cU as Un, cV as Gn, cW as Bn, cX as Wn, cY as Kn, cZ as Ze, c_ as he, c$ as et, d0 as tt, d1 as nt, d2 as Qn, d3 as Re, d4 as Ee, d5 as Me, d6 as ze, d7 as Ut, d8 as Gt, d9 as Bt } from "./semaphor-ready-indicator-BSEdUq40.js";
|
|
6
6
|
import { D as Hn } from "./token-types-C8JymO8s.js";
|
|
7
|
-
import {
|
|
7
|
+
import { f0 as Wt, f1 as Pn, f2 as Yn, f3 as Xn, f4 as Jn, f5 as Zn, f6 as $e, f7 as Ct, f8 as wt, f9 as Qe, fa as He, fb as ea, fc as ta, fd as kt, fe as na, ff as aa, fg as Fe, fh as ra, fi as St, fj as Kt, fk as Qt, fl as Ht, fm as Pt, fn as sa, fo as oa, fp as Dt, fq as ia, fr as It, fs as la, ft as da, fu as ca, fv as ua, fw as Pe, a as qe, fx as Ye, fy as ma, fz as pa, fA as fa, fB as ha } from "./resolve-dashboard-input-context-Du0fjN3h.js";
|
|
8
8
|
import "./index-CuHybtft.js";
|
|
9
9
|
import { u as Yt } from "./validators-wtjw0aw6.js";
|
|
10
10
|
import "./matrix-operation-contract-Eb6elidS.js";
|
|
@@ -13,7 +13,7 @@ import "zod";
|
|
|
13
13
|
import "../value-format-preferences/index.js";
|
|
14
14
|
import { c as M } from "./_commonjsHelpers-DimLPMtv.js";
|
|
15
15
|
import { U as xa } from "./upload-Cf3wXZT8.js";
|
|
16
|
-
import { P as Xt } from "./filter-reach-copy-
|
|
16
|
+
import { P as Xt } from "./filter-reach-copy-jZGzK_IH.js";
|
|
17
17
|
/**
|
|
18
18
|
* @license lucide-react v0.453.0 - ISC
|
|
19
19
|
*
|
|
@@ -107,7 +107,7 @@ function Na({
|
|
|
107
107
|
}) {
|
|
108
108
|
return e === "all" ? !1 : e === "none" ? !!n || o : n ? !ya(e, n, a) : o;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Jt(e) {
|
|
111
111
|
const { tokenProps: n } = ct(), a = ut((r) => r.authToken) || e;
|
|
112
112
|
se(
|
|
113
113
|
(r) => r.selectedConnectionId
|
|
@@ -142,7 +142,7 @@ function Zt(e) {
|
|
|
142
142
|
refetchSemanticDomains: o
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function Zt(e) {
|
|
146
146
|
const n = mt(e);
|
|
147
147
|
return n.size === 1 ? [...n][0] : void 0;
|
|
148
148
|
}
|
|
@@ -165,7 +165,7 @@ function Ca(e, n) {
|
|
|
165
165
|
) || [...o].some((d) => d !== n.domainId) ? [n] : [...e, n];
|
|
166
166
|
}
|
|
167
167
|
function wa(e, n) {
|
|
168
|
-
const a =
|
|
168
|
+
const a = Zt(n), o = mt(e), u = e.some(
|
|
169
169
|
(c) => !("domainId" in c)
|
|
170
170
|
);
|
|
171
171
|
if (a && (u || [...o].some(
|
|
@@ -184,7 +184,7 @@ function ka({
|
|
|
184
184
|
selectedEntities: o,
|
|
185
185
|
onSelectionChange: u
|
|
186
186
|
}) {
|
|
187
|
-
const { semanticDomains: d, isSemanticDomainsLoading: c } =
|
|
187
|
+
const { semanticDomains: d, isSemanticDomainsLoading: c } = Jt(), i = Q(() => Da(d, e), [d, e]), r = Q(() => a ? i.filter((f) => f.id === a) : i, [i, a]);
|
|
188
188
|
if (c && r.length === 0)
|
|
189
189
|
return /* @__PURE__ */ t("div", { className: "px-3 py-4 text-[11px] text-muted-foreground", children: "Loading semantic domains…" });
|
|
190
190
|
if (r.length === 0)
|
|
@@ -300,7 +300,7 @@ function Sa({
|
|
|
300
300
|
] }),
|
|
301
301
|
y && /* @__PURE__ */ t("ul", { className: "space-y-px pb-1", children: p && r.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) => {
|
|
302
302
|
const T = Le(O), P = o.some(
|
|
303
|
-
(
|
|
303
|
+
(J) => X(J, T)
|
|
304
304
|
);
|
|
305
305
|
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: [
|
|
306
306
|
/* @__PURE__ */ t(
|
|
@@ -1060,7 +1060,7 @@ function Cr({
|
|
|
1060
1060
|
var Se, me;
|
|
1061
1061
|
const { tokenProps: d } = ct(), c = d.config, i = d.semanticDomainAccess || Hn, [r, p] = H([]), [f, k] = H(""), [y, h] = H("all"), [N, S] = H(
|
|
1062
1062
|
void 0
|
|
1063
|
-
), w = Ae(!1), { updateDataSource: V } = Rt(), U = u ?? V, O = i.mode, T = (c == null ? void 0 : c.showDirectSource) !== !1, P = O === "include" || O === "exclude" || !T,
|
|
1063
|
+
), w = Ae(!1), { updateDataSource: V } = Rt(), U = u ?? V, O = i.mode, T = (c == null ? void 0 : c.showDirectSource) !== !1, P = O === "include" || O === "exclude" || !T, J = O !== "all", m = T && !P, I = P ? "semanticDomain" : a.mode, A = !T, D = O === "include" && (((Se = i.domainIds) == null ? void 0 : Se.length) || 0) === 1 ? (me = i.domainIds) == null ? void 0 : me[0] : void 0, b = ne(
|
|
1064
1064
|
($) => {
|
|
1065
1065
|
w.current = !0, U({
|
|
1066
1066
|
...a,
|
|
@@ -1087,7 +1087,7 @@ function Cr({
|
|
|
1087
1087
|
b("semanticDomain");
|
|
1088
1088
|
return;
|
|
1089
1089
|
}
|
|
1090
|
-
if (!
|
|
1090
|
+
if (!J || I !== "semanticDomain") return;
|
|
1091
1091
|
const $ = i.domainIds ?? [], ae = (((v = a.selectedEntities) == null ? void 0 : v.length) ?? 0) > 0, s = ((r == null ? void 0 : r.length) ?? 0) > 0;
|
|
1092
1092
|
Na({
|
|
1093
1093
|
mode: O,
|
|
@@ -1100,7 +1100,7 @@ function Cr({
|
|
|
1100
1100
|
}), s && p([]));
|
|
1101
1101
|
}, [
|
|
1102
1102
|
P,
|
|
1103
|
-
|
|
1103
|
+
J,
|
|
1104
1104
|
I,
|
|
1105
1105
|
a.mode,
|
|
1106
1106
|
a.semanticDomainId,
|
|
@@ -1136,7 +1136,7 @@ function Cr({
|
|
|
1136
1136
|
var ae, s;
|
|
1137
1137
|
const $ = Xe(r) ?? N ?? I;
|
|
1138
1138
|
if ($ === "semanticDomain") {
|
|
1139
|
-
const g =
|
|
1139
|
+
const g = Zt(r) || a.semanticDomainId, v = ((ae = r == null ? void 0 : r[0]) == null ? void 0 : ae.connectionId) || a.connectionId, L = ((s = r == null ? void 0 : r[0]) == null ? void 0 : s.connectionType) || a.connectionType;
|
|
1140
1140
|
U({
|
|
1141
1141
|
...a,
|
|
1142
1142
|
mode: "semanticDomain",
|
|
@@ -1167,7 +1167,7 @@ function Cr({
|
|
|
1167
1167
|
});
|
|
1168
1168
|
}
|
|
1169
1169
|
n(!1);
|
|
1170
|
-
}, { semanticDomains: _ } =
|
|
1170
|
+
}, { semanticDomains: _ } = Jt(), { connections: K } = Vt(), ee = Q(
|
|
1171
1171
|
() => new Map(
|
|
1172
1172
|
_.map(($) => [
|
|
1173
1173
|
$.id,
|
|
@@ -1177,7 +1177,7 @@ function Cr({
|
|
|
1177
1177
|
[_]
|
|
1178
1178
|
), q = ($) => {
|
|
1179
1179
|
h($), $ === "semantic" || $.startsWith("domain:") ? a.mode !== "semanticDomain" && b("semanticDomain") : ($ === "direct" || $.startsWith("conn:")) && a.mode === "semanticDomain" && b("database");
|
|
1180
|
-
},
|
|
1180
|
+
}, Z = y.startsWith("domain:"), te = y.startsWith("conn:"), We = Z ? y.slice(7) : void 0, Ke = te ? y.slice(5) : void 0, oe = !m || y === "all" || y === "semantic" || Z, Te = T && !P && (y === "all" || y === "direct" || te), ue = ((o == null ? void 0 : o.length) ?? 0) > 0, Ce = r.length === 0 && !ue, we = r.length === 0 && ue ? "Clear" : "Add", ke = A ? "Select dataset" : "Add data";
|
|
1181
1181
|
return /* @__PURE__ */ t(yn, { open: e, onOpenChange: n, children: /* @__PURE__ */ l(
|
|
1182
1182
|
Nn,
|
|
1183
1183
|
{
|
|
@@ -1522,7 +1522,7 @@ function Ma(e, n) {
|
|
|
1522
1522
|
connectionType: (p = n.dataSource) == null ? void 0 : p.connectionType
|
|
1523
1523
|
},
|
|
1524
1524
|
e
|
|
1525
|
-
), i =
|
|
1525
|
+
), i = Jn(n.dataSource, c, e) || "";
|
|
1526
1526
|
return {
|
|
1527
1527
|
column: a,
|
|
1528
1528
|
title: Xt(e),
|
|
@@ -1825,9 +1825,9 @@ function Sr({
|
|
|
1825
1825
|
const w = Q(
|
|
1826
1826
|
() => new Set(a || []),
|
|
1827
1827
|
[a]
|
|
1828
|
-
), V = sa(e), U =
|
|
1828
|
+
), V = sa(e), U = Zn(e), [O, T] = H(
|
|
1829
1829
|
null
|
|
1830
|
-
), [P,
|
|
1830
|
+
), [P, J] = H(
|
|
1831
1831
|
null
|
|
1832
1832
|
), [m, I] = H(
|
|
1833
1833
|
() => c ? {
|
|
@@ -1902,7 +1902,7 @@ function Sr({
|
|
|
1902
1902
|
b.current = c, s && (I({
|
|
1903
1903
|
step: 1,
|
|
1904
1904
|
control: $e(e, n, Array.from(w))
|
|
1905
|
-
}),
|
|
1905
|
+
}), J(null), T(null));
|
|
1906
1906
|
}, [n, c, w, e]);
|
|
1907
1907
|
const K = (s) => {
|
|
1908
1908
|
if (!C(s.type))
|
|
@@ -1970,7 +1970,7 @@ function Sr({
|
|
|
1970
1970
|
u(L, g, v);
|
|
1971
1971
|
},
|
|
1972
1972
|
[o, u]
|
|
1973
|
-
),
|
|
1973
|
+
), Z = (s, g) => {
|
|
1974
1974
|
const v = n.find(
|
|
1975
1975
|
(W) => W.id === s
|
|
1976
1976
|
);
|
|
@@ -2054,7 +2054,7 @@ function Sr({
|
|
|
2054
2054
|
D.current = void 0, I({
|
|
2055
2055
|
step: 1,
|
|
2056
2056
|
control: $e(e, n, Array.from(w))
|
|
2057
|
-
}),
|
|
2057
|
+
}), J(null), T(null);
|
|
2058
2058
|
}, [n, w, e]), oe = (s) => {
|
|
2059
2059
|
I(
|
|
2060
2060
|
(g) => g && (() => {
|
|
@@ -2175,7 +2175,7 @@ function Sr({
|
|
|
2175
2175
|
cardBindingsById: m.cardBindingsById
|
|
2176
2176
|
}
|
|
2177
2177
|
);
|
|
2178
|
-
|
|
2178
|
+
J(g), I(null), S == null || S();
|
|
2179
2179
|
}, [n, m, o, q, S]), gt = m ? C(m.control.type) ? ["Choose type", "Select cards", "Configure", "Finish"] : ["Choose type", "Configure", "Finish"] : [], Se = m != null && m.createdControlId ? `[[param.${m.createdControlId}]]` : m ? `[[param.${ra(m.control.label) || m.control.id}]]` : "", me = St({
|
|
2180
2180
|
controls: n,
|
|
2181
2181
|
defaultValues: o
|
|
@@ -2470,7 +2470,7 @@ function Sr({
|
|
|
2470
2470
|
{
|
|
2471
2471
|
type: "button",
|
|
2472
2472
|
className: "flex min-w-0 flex-1 items-start gap-2 rounded-control text-left focus:outline-none focus-visible:bg-muted/40",
|
|
2473
|
-
onClick: () =>
|
|
2473
|
+
onClick: () => J(
|
|
2474
2474
|
(F) => F === s.id ? null : s.id
|
|
2475
2475
|
),
|
|
2476
2476
|
children: [
|
|
@@ -2512,7 +2512,7 @@ function Sr({
|
|
|
2512
2512
|
size: "xs",
|
|
2513
2513
|
value: s.label,
|
|
2514
2514
|
placeholder: "Control label",
|
|
2515
|
-
onChange: (F) =>
|
|
2515
|
+
onChange: (F) => Z(s.id, (B) => ({
|
|
2516
2516
|
...B,
|
|
2517
2517
|
label: F.target.value
|
|
2518
2518
|
}))
|
|
@@ -2556,7 +2556,7 @@ function Sr({
|
|
|
2556
2556
|
xe,
|
|
2557
2557
|
{
|
|
2558
2558
|
value: s.placement || U,
|
|
2559
|
-
onValueChange: (F) =>
|
|
2559
|
+
onValueChange: (F) => Z(s.id, (B) => ({
|
|
2560
2560
|
...B,
|
|
2561
2561
|
placement: F
|
|
2562
2562
|
})),
|
|
@@ -2626,7 +2626,7 @@ function Sr({
|
|
|
2626
2626
|
previewControlDefinitions: n,
|
|
2627
2627
|
previewControlValues: me,
|
|
2628
2628
|
controlLifecycle: "edit",
|
|
2629
|
-
onChange: (F) =>
|
|
2629
|
+
onChange: (F) => Z(s.id, () => F)
|
|
2630
2630
|
}
|
|
2631
2631
|
),
|
|
2632
2632
|
s.initialValueStrategy === "saved_default" && /* @__PURE__ */ t(
|
|
@@ -2689,7 +2689,7 @@ function Sr({
|
|
|
2689
2689
|
xe,
|
|
2690
2690
|
{
|
|
2691
2691
|
value: s.initialValueStrategy,
|
|
2692
|
-
onValueChange: (F) =>
|
|
2692
|
+
onValueChange: (F) => Z(s.id, (B) => ({
|
|
2693
2693
|
...B,
|
|
2694
2694
|
initialValueStrategy: F
|
|
2695
2695
|
})),
|
|
@@ -2712,7 +2712,7 @@ function Sr({
|
|
|
2712
2712
|
Fn,
|
|
2713
2713
|
{
|
|
2714
2714
|
control: s,
|
|
2715
|
-
onChange: (F) =>
|
|
2715
|
+
onChange: (F) => Z(s.id, () => F)
|
|
2716
2716
|
}
|
|
2717
2717
|
)
|
|
2718
2718
|
] })
|
|
@@ -2945,7 +2945,7 @@ function Wa({
|
|
|
2945
2945
|
groups: x.groups.map(b)
|
|
2946
2946
|
};
|
|
2947
2947
|
d(b(o));
|
|
2948
|
-
},
|
|
2948
|
+
}, J = (I) => {
|
|
2949
2949
|
if (!I || I.conditions.length === 0 && I.groups.length === 0)
|
|
2950
2950
|
return "-- No filters defined";
|
|
2951
2951
|
const A = (b) => {
|
|
@@ -3021,7 +3021,7 @@ function Wa({
|
|
|
3021
3021
|
updateGroupNegate: O,
|
|
3022
3022
|
reorderConditions: T,
|
|
3023
3023
|
reorderGroups: P,
|
|
3024
|
-
generateSQLPreview:
|
|
3024
|
+
generateSQLPreview: J,
|
|
3025
3025
|
hasAnyFilters: m
|
|
3026
3026
|
};
|
|
3027
3027
|
}
|
|
@@ -3375,7 +3375,7 @@ const Xa = (e) => e.conditions.length > 0 || e.groups.length > 0, ht = [
|
|
|
3375
3375
|
"endsWith",
|
|
3376
3376
|
"like",
|
|
3377
3377
|
"not like"
|
|
3378
|
-
],
|
|
3378
|
+
], Ja = [
|
|
3379
3379
|
"=",
|
|
3380
3380
|
"!=",
|
|
3381
3381
|
">",
|
|
@@ -3387,7 +3387,7 @@ const Xa = (e) => e.conditions.length > 0 || e.groups.length > 0, ht = [
|
|
|
3387
3387
|
"not in",
|
|
3388
3388
|
"isNull",
|
|
3389
3389
|
"isNotNull"
|
|
3390
|
-
],
|
|
3390
|
+
], Za = [
|
|
3391
3391
|
"=",
|
|
3392
3392
|
"!=",
|
|
3393
3393
|
...ht,
|
|
@@ -3436,13 +3436,13 @@ const Xa = (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 Je(e) {
|
|
3440
3440
|
return ar[e] || ha(e);
|
|
3441
3441
|
}
|
|
3442
3442
|
function rr(e) {
|
|
3443
3443
|
switch (e) {
|
|
3444
3444
|
case "string":
|
|
3445
|
-
return
|
|
3445
|
+
return Za;
|
|
3446
3446
|
case "number":
|
|
3447
3447
|
return er;
|
|
3448
3448
|
case "boolean":
|
|
@@ -3450,7 +3450,7 @@ function rr(e) {
|
|
|
3450
3450
|
case "date":
|
|
3451
3451
|
return nr;
|
|
3452
3452
|
default:
|
|
3453
|
-
return
|
|
3453
|
+
return Ja;
|
|
3454
3454
|
}
|
|
3455
3455
|
}
|
|
3456
3456
|
const on = "w-[68px] shrink-0", $t = "group-data-[inline]/filters:w-auto group-data-[inline]/filters:min-w-0 group-data-[inline]/filters:flex-1 group-data-[inline]/filters:shrink", xt = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";
|
|
@@ -3566,10 +3566,10 @@ function dn({
|
|
|
3566
3566
|
size: "xs",
|
|
3567
3567
|
"aria-label": "Operator",
|
|
3568
3568
|
className: M("w-40 shrink-0", $t),
|
|
3569
|
-
children: /* @__PURE__ */ t(be, { children: e.operator ?
|
|
3569
|
+
children: /* @__PURE__ */ t(be, { children: e.operator ? Je(e.operator) : "" })
|
|
3570
3570
|
}
|
|
3571
3571
|
),
|
|
3572
|
-
/* @__PURE__ */ t(ve, { children: rr(V).map((T) => /* @__PURE__ */ t(re, { value: T, children:
|
|
3572
|
+
/* @__PURE__ */ t(ve, { children: rr(V).map((T) => /* @__PURE__ */ t(re, { value: T, children: Je(T) }, T)) })
|
|
3573
3573
|
]
|
|
3574
3574
|
}
|
|
3575
3575
|
),
|
|
@@ -3594,7 +3594,7 @@ function dn({
|
|
|
3594
3594
|
value: T.target.value
|
|
3595
3595
|
}),
|
|
3596
3596
|
className: "min-w-0 flex-1",
|
|
3597
|
-
placeholder: `${
|
|
3597
|
+
placeholder: `${Je(e.operator)}…`
|
|
3598
3598
|
}
|
|
3599
3599
|
) : /* @__PURE__ */ t(
|
|
3600
3600
|
Pa,
|
|
@@ -3729,7 +3729,7 @@ function sr({
|
|
|
3729
3729
|
transform: O,
|
|
3730
3730
|
transition: T,
|
|
3731
3731
|
isDragging: P
|
|
3732
|
-
} = Ut({ id: e.id }),
|
|
3732
|
+
} = Ut({ id: e.id }), J = {
|
|
3733
3733
|
transform: Gt.Transform.toString(O),
|
|
3734
3734
|
transition: T
|
|
3735
3735
|
}, m = (A) => {
|
|
@@ -3753,7 +3753,7 @@ function sr({
|
|
|
3753
3753
|
"div",
|
|
3754
3754
|
{
|
|
3755
3755
|
ref: U,
|
|
3756
|
-
style:
|
|
3756
|
+
style: J,
|
|
3757
3757
|
className: M(
|
|
3758
3758
|
n > 0 && "mt-2 overflow-hidden rounded-[6px] border border-border/60",
|
|
3759
3759
|
P && "z-50 opacity-50"
|
|
@@ -3811,7 +3811,7 @@ function sr({
|
|
|
3811
3811
|
/* @__PURE__ */ t(
|
|
3812
3812
|
Re,
|
|
3813
3813
|
{
|
|
3814
|
-
sensors:
|
|
3814
|
+
sensors: Ze(
|
|
3815
3815
|
he(nt),
|
|
3816
3816
|
he(tt, {
|
|
3817
3817
|
coordinateGetter: et
|
|
@@ -3847,7 +3847,7 @@ function sr({
|
|
|
3847
3847
|
/* @__PURE__ */ t(
|
|
3848
3848
|
Re,
|
|
3849
3849
|
{
|
|
3850
|
-
sensors:
|
|
3850
|
+
sensors: Ze(
|
|
3851
3851
|
he(nt),
|
|
3852
3852
|
he(tt, {
|
|
3853
3853
|
coordinateGetter: et
|
|
@@ -3904,14 +3904,14 @@ function Ir({
|
|
|
3904
3904
|
reorderConditions: O,
|
|
3905
3905
|
reorderGroups: T,
|
|
3906
3906
|
generateSQLPreview: P,
|
|
3907
|
-
hasAnyFilters:
|
|
3907
|
+
hasAnyFilters: J
|
|
3908
3908
|
} = Wa({
|
|
3909
3909
|
initialFilters: e,
|
|
3910
3910
|
availableFields: n,
|
|
3911
3911
|
...c ? {
|
|
3912
3912
|
onChange: (x) => c(Xa(x) ? x : null)
|
|
3913
3913
|
} : {}
|
|
3914
|
-
}), m =
|
|
3914
|
+
}), m = Ze(
|
|
3915
3915
|
he(nt),
|
|
3916
3916
|
he(tt, {
|
|
3917
3917
|
coordinateGetter: et
|
|
@@ -3930,10 +3930,10 @@ function Ir({
|
|
|
3930
3930
|
if (ee && K.id !== ee.id) {
|
|
3931
3931
|
const q = x.conditions.findIndex(
|
|
3932
3932
|
(te) => te.id === K.id
|
|
3933
|
-
),
|
|
3933
|
+
), Z = x.conditions.findIndex(
|
|
3934
3934
|
(te) => te.id === ee.id
|
|
3935
3935
|
);
|
|
3936
|
-
q !== -1 &&
|
|
3936
|
+
q !== -1 && Z !== -1 && O(x.id, q, Z);
|
|
3937
3937
|
}
|
|
3938
3938
|
},
|
|
3939
3939
|
children: /* @__PURE__ */ t(
|
|
@@ -3971,10 +3971,10 @@ function Ir({
|
|
|
3971
3971
|
if (ee && K.id !== ee.id) {
|
|
3972
3972
|
const q = x.groups.findIndex(
|
|
3973
3973
|
(te) => te.id === K.id
|
|
3974
|
-
),
|
|
3974
|
+
), Z = x.groups.findIndex(
|
|
3975
3975
|
(te) => te.id === ee.id
|
|
3976
3976
|
);
|
|
3977
|
-
q !== -1 &&
|
|
3977
|
+
q !== -1 && Z !== -1 && T(x.id, q, Z);
|
|
3978
3978
|
}
|
|
3979
3979
|
},
|
|
3980
3980
|
children: /* @__PURE__ */ t(
|
|
@@ -4052,7 +4052,7 @@ function Ir({
|
|
|
4052
4052
|
),
|
|
4053
4053
|
/* @__PURE__ */ t("span", { className: "text-[11px] text-muted-foreground", children: "Nest conditions in groups" })
|
|
4054
4054
|
] }),
|
|
4055
|
-
|
|
4055
|
+
J && !i && /* @__PURE__ */ l("div", { className: "mt-3 border-t border-border/60 pt-3", children: [
|
|
4056
4056
|
/* @__PURE__ */ t("div", { className: M("mb-1.5", xt), children: "Where clause" }),
|
|
4057
4057
|
/* @__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(r) })
|
|
4058
4058
|
] })
|
|
@@ -4074,7 +4074,7 @@ function Ir({
|
|
|
4074
4074
|
j,
|
|
4075
4075
|
{
|
|
4076
4076
|
size: "xs",
|
|
4077
|
-
onClick: () => o == null ? void 0 : o(
|
|
4077
|
+
onClick: () => o == null ? void 0 : o(J ? r : null),
|
|
4078
4078
|
children: "Apply filters"
|
|
4079
4079
|
}
|
|
4080
4080
|
)
|
|
@@ -4092,9 +4092,9 @@ export {
|
|
|
4092
4092
|
va as a,
|
|
4093
4093
|
wr as b,
|
|
4094
4094
|
Ir as c,
|
|
4095
|
-
|
|
4095
|
+
Jt as d,
|
|
4096
4096
|
Ma as e,
|
|
4097
4097
|
_a as g,
|
|
4098
|
-
|
|
4098
|
+
Zt as i,
|
|
4099
4099
|
Dr as u
|
|
4100
4100
|
};
|
|
@@ -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-BSEdUq40.js";
|
|
3
3
|
function u(e) {
|
|
4
4
|
if (typeof window > "u")
|
|
5
5
|
return null;
|