react-semaphor 0.1.602 → 0.1.603
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-protocol/index.js +415 -375
- package/dist/assistant-context/index.js +1 -1
- package/dist/assistant-protocol/index.js +5 -5
- package/dist/brand-studio/index.js +8 -8
- package/dist/briefings/index.js +5 -5
- package/dist/chunks/{add-to-dashboard-ClhEIFst.js → add-to-dashboard-CFF-wFU-.js} +1 -1
- package/dist/chunks/{analytics-base-schemas-DevrgqQb.js → analytics-base-schemas-DsUh5Q3C.js} +14 -12
- package/dist/chunks/{assistant-chat-BWF3GYip.js → assistant-chat-B6hNQI1t.js} +146 -146
- package/dist/chunks/{bookmark-impact-BF3iRx5a.js → bookmark-impact-Ba2PLcGp.js} +3 -3
- package/dist/chunks/{bookmark-state-CBSTdW6q.js → bookmark-state-n7AaNzR_.js} +517 -516
- package/dist/chunks/{card-filter-builder-B8XHwMY6.js → card-filter-builder-Y22HizVx.js} +104 -104
- package/dist/chunks/{comparison-window-caption-W83qB4V5.js → comparison-window-caption-Ck2TIbnR.js} +69 -69
- package/dist/chunks/{context-BJoEFgNl.js → context-UCQ7sere.js} +1 -1
- package/dist/chunks/{dashboard-DG5EIYYB.js → dashboard-BghI99oY.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-CBSrhyWZ.js → dashboard-briefing-launcher-DtBAnGiH.js} +103 -103
- package/dist/chunks/{dashboard-controls-D6ECO4N1.js → dashboard-controls-CtFXlyjV.js} +53 -53
- package/dist/chunks/{dashboard-json-DrJftBSL.js → dashboard-json-DfGBUtCd.js} +5 -5
- package/dist/chunks/dates-BnrXF4bb.js +185 -0
- package/dist/chunks/{edit-dashboard-visual-BDYAJIbb.js → edit-dashboard-visual-oxt3x1wb.js} +7976 -8184
- package/dist/chunks/{filter-line-BXT6y303.js → filter-line-Cy5YYqRL.js} +27 -27
- package/dist/chunks/{filter-reach-copy-BukhZmzm.js → filter-reach-copy-CE_ZX147.js} +1590 -1729
- package/dist/chunks/{filter-value-text-D3-bf3_b.js → filter-value-text-fWvSDwkl.js} +11 -11
- package/dist/chunks/{index-BW0yozjs.js → index-D5rxbtS4.js} +24 -24
- package/dist/chunks/{layout-grid-Ds0diMeY.js → layout-grid-9LndRoLa.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-CgQgVeeI.js → matrix-analytical-definition-CCp48UCw.js} +496 -425
- package/dist/chunks/matrix-member-presentation-zNehruXR.js +391 -0
- package/dist/chunks/{matrix-operation-contract--DkNCOzd.js → matrix-operation-contract-DPBj69D8.js} +3 -2
- package/dist/chunks/{metric-comparison-zMylnIkc.js → metric-comparison-B0FR-Q8I.js} +184 -125
- package/dist/chunks/{paintbrush-CX8pao1j.js → paintbrush-58FQYY-y.js} +1 -1
- package/dist/chunks/{palette-CuA0HlzF.js → palette-Be62Tkoa.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-C8KL7hPx.js → pivot-result-contract-expectations-BYqAmG9n.js} +1236 -1190
- package/dist/chunks/{pivot-result-identity-C1AOH1PS.js → pivot-result-identity-CAP4--iq.js} +1 -1
- package/dist/chunks/raw-temporal-value-Dg_MTFF7.js +3778 -0
- package/dist/chunks/{report-preferences-dialog-CbuVNDGi.js → report-preferences-dialog-uJp9GBTM.js} +219 -205
- package/dist/chunks/{report-runtime-context-E7USjN7E.js → report-runtime-context-c77_KF9v.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-CULCE_hM.js → resolve-dashboard-input-context-Rtl1ffmE.js} +7115 -6963
- package/dist/chunks/{save-BKHlDONy.js → save-C5A0JnEV.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-C1WlOx5z.js → saved-dashboard-context-tcyTU8jm.js} +193 -207
- package/dist/chunks/selection-filter-compiler-DNijjI5y.js +150 -0
- package/dist/chunks/{semaphor-ready-indicator-CBIRcDWs.js → semaphor-ready-indicator-FBvunj6S.js} +35550 -35273
- package/dist/chunks/{shelf-drop-preview-context-xR69SMA8.js → shelf-drop-preview-context-QKStrcK9.js} +6 -6
- package/dist/chunks/{stored-dashboard-BuM8vnWf.js → stored-dashboard-CHozcAY9.js} +621 -616
- package/dist/chunks/{style-sheet-parts-Bt9ZNre8.js → style-sheet-parts-CDCG-8Ej.js} +258 -251
- package/dist/chunks/{table-export-sheet-DVljtHkG.js → table-export-sheet-ZFIvs6Sj.js} +1 -1
- package/dist/chunks/{token-types-D_xKgyVS.js → token-types-XbM6QByy.js} +1 -1
- package/dist/chunks/{upload-Dll_M7XQ.js → upload-H15d7uHK.js} +1 -1
- package/dist/chunks/{validators-ClWHpYql.js → validators-Baf3VIf5.js} +3 -3
- package/dist/chunks/{variable-draft-CDGGl53R.js → variable-draft-C2y8Jp6Z.js} +3 -3
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +2466 -2343
- package/dist/format-utils/index.js +205 -204
- package/dist/index.js +20 -20
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/components/ui-custom/date-range-presets.d.ts +8 -0
- package/dist/types/index.js +5 -5
- package/dist/types/lib/document/document-edits.d.ts +0 -4
- package/dist/types/lib/stores/dashboard-store.d.ts +0 -1
- package/dist/types/lib/types/common-types.d.ts +0 -2
- package/dist/types/lib/types/explorer-types.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +18 -0
- package/dist/types/shared/analytics-protocol/analyze-result-types.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/comparison-choices.d.ts +92 -0
- package/dist/types/shared/analytics-protocol/comparison-placement.d.ts +30 -0
- package/dist/types/shared/analytics-protocol/contracts.d.ts +11 -5
- package/dist/types/shared/analytics-protocol/date-window.d.ts +105 -0
- package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +27 -0
- package/dist/types/shared/analytics-protocol/fixtures.d.ts +4 -2
- package/dist/types/shared/analytics-protocol/index.d.ts +3 -0
- package/dist/types/shared/analytics-protocol/metric-comparison.d.ts +93 -11
- package/dist/types/shared/assistant-protocol/context.d.ts +16 -16
- package/dist/types/shared/dashboard-authoring/calculations/calculated-column.d.ts +1 -1
- package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +8 -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 -1
- package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +0 -3
- package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +21 -358
- package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
- package/dist/types/shared/dashboard-authoring/dashboard-variable-card.d.ts +2 -4
- package/dist/types/shared/dashboard-authoring/kpi-date-context.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +18 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/comparison.d.ts +8 -7
- package/dist/types/shared/dashboard-authoring/measure-calculations/dates.d.ts +11 -1
- package/dist/types/shared/dashboard-authoring/measure-calculations/index.d.ts +2 -2
- package/dist/types/shared/dashboard-authoring/measure-calculations/options.d.ts +4 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/read.d.ts +18 -1
- package/dist/types/shared/dashboard-authoring/measure-calculations/resolve.d.ts +2 -0
- package/dist/types/shared/dashboard-authoring/measure-calculations/schemas.d.ts +46 -88
- package/dist/types/shared/dashboard-authoring/operations/calculated-field-operations.d.ts +33 -8
- package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +0 -2
- package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +3 -0
- package/dist/types/shared/format-utils/comparison-detail.d.ts +34 -0
- package/dist/types/shared/format-utils/index.d.ts +1 -0
- package/dist/types/shared/format-utils/partial-period.d.ts +4 -2
- package/dist/types/shared/temporal/calendar-periods.d.ts +11 -0
- package/dist/types/shared/temporal/index.d.ts +2 -0
- package/dist/types/shared/temporal/temporal-text.d.ts +33 -0
- package/dist/types/shared/temporal/temporal.d.ts +27 -0
- package/dist/types/shared/temporal/zoned-wall-clock.d.ts +4 -3
- package/dist/usage-events/index.js +1 -1
- package/package.json +3 -2
- package/dist/chunks/dates-Bz-qM5px.js +0 -164
- package/dist/chunks/matrix-member-presentation-DSBIIudt.js +0 -258
- package/dist/chunks/raw-temporal-value-E416F-0L.js +0 -454
- package/dist/chunks/selection-filter-compiler-ifT8JCXS.js +0 -131
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { c as nt, B as G, X as ce, x as Ne, q as fn, a3 as xn, t as at, u as rt, v as st, w as ot, a4 as Ft, F as _e, s as ie, y as xe, z as ge, A as be, D as ve, E as re, e as lt, f as it, h as dt, L as gn, d as bn } from "./style-sheet-parts-
|
|
1
|
+
import { c as nt, B as G, X as ce, x as Ne, q as fn, a3 as xn, t as at, u as rt, v as st, w as ot, a4 as Ft, F as _e, s as ie, y as xe, z as ge, A as be, D as ve, E as re, e as lt, f as it, h as dt, L as gn, d as bn } from "./style-sheet-parts-CDCG-8Ej.js";
|
|
2
2
|
import { jsx as t, jsxs as i, Fragment as he } from "react/jsx-runtime";
|
|
3
3
|
import * as Fe from "react";
|
|
4
4
|
import bt, { useMemo as P, useState as Y, useRef as $e, useCallback as ne, useEffect as de, forwardRef as vn, Fragment as yn } from "react";
|
|
5
|
-
import { b8 as ct, u as ut, am as se,
|
|
6
|
-
import { D as Xn } from "./token-types-
|
|
7
|
-
import {
|
|
5
|
+
import { b8 as ct, u as ut, am as se, bM as Vt, bN as Z, bO as Nn, bP as Te, bQ as Ue, bR as Rt, bS as Cn, bT as Ve, bU as wn, an as Et, bH as kn, bI as Sn, bK as Dn, bV as Tn, bW as In, o as Ln, bX as $n, bY as An, bZ as vt, b_ as zt, b$ as On, c0 as Mt, c1 as qt, c2 as _n, c3 as Fn, c4 as Vn, c5 as Rn, c6 as En, c7 as zn, c8 as Mn, bA as qn, c9 as yt, ca as jt, cb as Nt, bD as jn, cc as Un, cd as Gn, ce as Bn, cf as ye, cg as Ut, ch as Wn, ci as Kn, cj as Qn, ck as Pn, cl as Hn, cm as Ze, cn as fe, co as Je, cp as et, cq as tt, cr as Yn, cs as Re, ct as Ee, cu as ze, cv as Me, cw as Gt, cx as Bt, cy as Wt } from "./semaphor-ready-indicator-FBvunj6S.js";
|
|
6
|
+
import { D as Xn } from "./token-types-XbM6QByy.js";
|
|
7
|
+
import { hx as Kt, cP as Qt, cO as Pt, hy as Zn, hz as Jn, hA as Ae, hB as Ct, hC as wt, hD as Ke, hE as Qe, hF as ea, hG as ta, hH as kt, hI as na, hJ as aa, hK as Oe, hL as ra, hM as St, hN as Ht, hO as Yt, hP as Xt, hQ as Zt, hR as sa, hS as oa, hT as Dt, hU as la, hV as Tt, hW as ia, hX as da, hY as ca, hZ as ua, h_ as Pe, e as qe, h$ as ma, i0 as It, i1 as pa, i2 as He, aT as ha, i3 as fa, i4 as xa, i5 as ga, i6 as ba } from "./resolve-dashboard-input-context-Rtl1ffmE.js";
|
|
8
8
|
import { c as q } from "./pickers-DkqmtnTL.js";
|
|
9
|
-
import { k as
|
|
10
|
-
import "./matrix-operation-contract
|
|
11
|
-
import "./analytics-base-schemas-
|
|
9
|
+
import { k as Jt, r as va, aE as en, aF as tn } from "./validators-Baf3VIf5.js";
|
|
10
|
+
import "./matrix-operation-contract-DPBj69D8.js";
|
|
11
|
+
import "./analytics-base-schemas-DsUh5Q3C.js";
|
|
12
12
|
import "../value-format-preferences/index.js";
|
|
13
|
-
import { U as ya } from "./upload-
|
|
14
|
-
import { a as nn } from "./metric-comparison-
|
|
15
|
-
import { r as Na,
|
|
13
|
+
import { U as ya } from "./upload-H15d7uHK.js";
|
|
14
|
+
import { a as nn } from "./metric-comparison-B0FR-Q8I.js";
|
|
15
|
+
import { r as Na, m as Ca } from "./raw-temporal-value-Dg_MTFF7.js";
|
|
16
16
|
/**
|
|
17
17
|
* @license lucide-react v0.453.0 - ISC
|
|
18
18
|
*
|
|
@@ -113,7 +113,7 @@ function an(e) {
|
|
|
113
113
|
isError: l
|
|
114
114
|
} = Vt({
|
|
115
115
|
queryKey: ["semantic-domains"],
|
|
116
|
-
queryFn: () =>
|
|
116
|
+
queryFn: () => Kt(
|
|
117
117
|
`${n.apiServiceUrl}/v1/domains`,
|
|
118
118
|
(a == null ? void 0 : a.accessToken) || ""
|
|
119
119
|
),
|
|
@@ -132,10 +132,10 @@ function an(e) {
|
|
|
132
132
|
}
|
|
133
133
|
function Ta(e, n) {
|
|
134
134
|
if (e.some(
|
|
135
|
-
(d) =>
|
|
135
|
+
(d) => Z(d, n)
|
|
136
136
|
))
|
|
137
137
|
return e.filter(
|
|
138
|
-
(d) => !
|
|
138
|
+
(d) => !Z(d, n)
|
|
139
139
|
);
|
|
140
140
|
const o = Pt(e);
|
|
141
141
|
return e.some(
|
|
@@ -143,7 +143,7 @@ function Ta(e, n) {
|
|
|
143
143
|
) || [...o].some((d) => d !== n.domainId) ? [n] : [...e, n];
|
|
144
144
|
}
|
|
145
145
|
function Ia(e, n) {
|
|
146
|
-
const a =
|
|
146
|
+
const a = Qt(n), o = Pt(e), m = e.some(
|
|
147
147
|
(u) => !("domainId" in u)
|
|
148
148
|
);
|
|
149
149
|
if (a && (m || [...o].some(
|
|
@@ -152,7 +152,7 @@ function Ia(e, n) {
|
|
|
152
152
|
return n;
|
|
153
153
|
const d = [...e];
|
|
154
154
|
for (const u of n)
|
|
155
|
-
d.some((l) =>
|
|
155
|
+
d.some((l) => Z(l, u)) || d.push(u);
|
|
156
156
|
return d;
|
|
157
157
|
}
|
|
158
158
|
function La({
|
|
@@ -200,20 +200,20 @@ function $a({
|
|
|
200
200
|
);
|
|
201
201
|
}, [s, n]), k = n.length > 0 && x.length > 0, y = d || k || !!a, f = s.length, N = P(() => x.filter(
|
|
202
202
|
(C) => o.some(
|
|
203
|
-
(T) =>
|
|
203
|
+
(T) => Z(T, Le(C))
|
|
204
204
|
)
|
|
205
205
|
).length, [x, o]), S = P(
|
|
206
206
|
() => x.map(Le),
|
|
207
207
|
[x]
|
|
208
208
|
), V = S.length > 0 && S.every(
|
|
209
|
-
(C) => o.some((T) =>
|
|
209
|
+
(C) => o.some((T) => Z(T, C))
|
|
210
210
|
), F = () => {
|
|
211
211
|
if (S.length !== 0) {
|
|
212
212
|
if (V) {
|
|
213
213
|
m(
|
|
214
214
|
o.filter(
|
|
215
215
|
(C) => !S.some(
|
|
216
|
-
(T) =>
|
|
216
|
+
(T) => Z(C, T)
|
|
217
217
|
)
|
|
218
218
|
)
|
|
219
219
|
);
|
|
@@ -226,7 +226,7 @@ function $a({
|
|
|
226
226
|
)
|
|
227
227
|
);
|
|
228
228
|
}
|
|
229
|
-
},
|
|
229
|
+
}, Q = (C) => {
|
|
230
230
|
const T = Le(C);
|
|
231
231
|
m(
|
|
232
232
|
Ta(
|
|
@@ -278,14 +278,14 @@ function $a({
|
|
|
278
278
|
] }),
|
|
279
279
|
y && /* @__PURE__ */ t("ul", { className: "space-y-px pb-1", children: c && s.length === 0 ? /* @__PURE__ */ t("li", { className: "px-9 py-1.5 text-[11px] text-muted-foreground", children: "Loading datasets…" }) : x.length === 0 ? /* @__PURE__ */ t("li", { className: "px-9 py-1.5 text-[11px] text-muted-foreground", children: "No datasets in this domain." }) : x.map((C) => {
|
|
280
280
|
const T = Le(C), U = o.some(
|
|
281
|
-
(
|
|
281
|
+
(J) => Z(J, T)
|
|
282
282
|
);
|
|
283
283
|
return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ i("label", { className: "flex cursor-pointer items-start gap-2 rounded-[4px] px-9 py-1.5 transition-colors hover:bg-muted/40", children: [
|
|
284
284
|
/* @__PURE__ */ t(
|
|
285
285
|
Ue,
|
|
286
286
|
{
|
|
287
287
|
checked: U,
|
|
288
|
-
onCheckedChange: () =>
|
|
288
|
+
onCheckedChange: () => Q(C),
|
|
289
289
|
className: "mt-[3px] h-3.5 w-3.5 shrink-0"
|
|
290
290
|
}
|
|
291
291
|
),
|
|
@@ -761,13 +761,13 @@ function mt({
|
|
|
761
761
|
const c = l.map(
|
|
762
762
|
(f) => s(f.table_name, f.table_type)
|
|
763
763
|
), x = c.length > 0 && c.every(
|
|
764
|
-
(f) => m.some((N) =>
|
|
764
|
+
(f) => m.some((N) => Z(N, f))
|
|
765
765
|
), k = (f, N) => {
|
|
766
766
|
const S = s(f, N), V = m.some(
|
|
767
|
-
(F) =>
|
|
767
|
+
(F) => Z(F, S)
|
|
768
768
|
);
|
|
769
769
|
d(
|
|
770
|
-
V ? m.filter((F) => !
|
|
770
|
+
V ? m.filter((F) => !Z(F, S)) : [...m, S]
|
|
771
771
|
);
|
|
772
772
|
}, y = () => {
|
|
773
773
|
if (c.length === 0) return;
|
|
@@ -775,7 +775,7 @@ function mt({
|
|
|
775
775
|
d(
|
|
776
776
|
m.filter(
|
|
777
777
|
(N) => !c.some(
|
|
778
|
-
(S) =>
|
|
778
|
+
(S) => Z(N, S)
|
|
779
779
|
)
|
|
780
780
|
)
|
|
781
781
|
);
|
|
@@ -783,7 +783,7 @@ function mt({
|
|
|
783
783
|
}
|
|
784
784
|
const f = [...m];
|
|
785
785
|
for (const N of c)
|
|
786
|
-
f.some((S) =>
|
|
786
|
+
f.some((S) => Z(S, N)) || f.push(N);
|
|
787
787
|
d(f);
|
|
788
788
|
};
|
|
789
789
|
return /* @__PURE__ */ i("ul", { children: [
|
|
@@ -805,7 +805,7 @@ function mt({
|
|
|
805
805
|
] }),
|
|
806
806
|
l.map((f) => {
|
|
807
807
|
const N = s(f.table_name, f.table_type), S = m.some(
|
|
808
|
-
(V) =>
|
|
808
|
+
(V) => Z(V, N)
|
|
809
809
|
);
|
|
810
810
|
return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ i("label", { className: "flex cursor-pointer items-center gap-2.5 py-1.5 pl-12 pr-4 transition-colors hover:bg-muted/40", children: [
|
|
811
811
|
/* @__PURE__ */ t(
|
|
@@ -863,10 +863,10 @@ function Ea({
|
|
|
863
863
|
database: l.database || "",
|
|
864
864
|
schema: l.schema || ""
|
|
865
865
|
}, c = a.some(
|
|
866
|
-
(x) =>
|
|
866
|
+
(x) => Z(x, s)
|
|
867
867
|
);
|
|
868
868
|
o(
|
|
869
|
-
c ? a.filter((x) => !
|
|
869
|
+
c ? a.filter((x) => !Z(x, s)) : [...a, s]
|
|
870
870
|
);
|
|
871
871
|
};
|
|
872
872
|
return /* @__PURE__ */ i("div", { children: [
|
|
@@ -884,7 +884,7 @@ function Ea({
|
|
|
884
884
|
database: l.database || "",
|
|
885
885
|
schema: l.schema || ""
|
|
886
886
|
}, c = a.some(
|
|
887
|
-
(x) =>
|
|
887
|
+
(x) => Z(x, s)
|
|
888
888
|
);
|
|
889
889
|
return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ i("label", { className: "flex cursor-pointer items-start gap-2.5 py-1.5 pl-12 pr-4 transition-colors hover:bg-muted/40", children: [
|
|
890
890
|
/* @__PURE__ */ t(
|
|
@@ -957,7 +957,7 @@ function Ge(e, n, a, o = !0) {
|
|
|
957
957
|
);
|
|
958
958
|
return Vt({
|
|
959
959
|
queryKey: a,
|
|
960
|
-
queryFn: () =>
|
|
960
|
+
queryFn: () => Kt(
|
|
961
961
|
`${m.apiServiceUrl}${e}`,
|
|
962
962
|
(d == null ? void 0 : d.accessToken) || "",
|
|
963
963
|
u
|
|
@@ -1038,9 +1038,9 @@ function Sr({
|
|
|
1038
1038
|
var Se, me;
|
|
1039
1039
|
const { tokenProps: d } = ct(), u = d.config, l = d.semanticDomainAccess || Xn, [s, c] = Y([]), [x, k] = Y(""), [y, f] = Y("all"), [N, S] = Y(
|
|
1040
1040
|
void 0
|
|
1041
|
-
), V = $e(!1), { updateDataSource: F } = Et(),
|
|
1041
|
+
), V = $e(!1), { updateDataSource: F } = Et(), Q = m ?? F, C = l.mode, T = (u == null ? void 0 : u.showDirectSource) !== !1, U = C === "include" || C === "exclude" || !T, J = C !== "all", p = T && !U, I = U ? "semanticDomain" : a.mode, $ = !T, D = C === "include" && (((Se = l.domainIds) == null ? void 0 : Se.length) || 0) === 1 ? (me = l.domainIds) == null ? void 0 : me[0] : void 0, v = ne(
|
|
1042
1042
|
(A) => {
|
|
1043
|
-
V.current = !0,
|
|
1043
|
+
V.current = !0, Q({
|
|
1044
1044
|
...a,
|
|
1045
1045
|
connectionId: (a == null ? void 0 : a.connectionId) || "",
|
|
1046
1046
|
connectionType: (a == null ? void 0 : a.connectionType) || "",
|
|
@@ -1049,15 +1049,15 @@ function Sr({
|
|
|
1049
1049
|
...A !== "semanticDomain" && { semanticDomainId: void 0 }
|
|
1050
1050
|
});
|
|
1051
1051
|
},
|
|
1052
|
-
[a,
|
|
1052
|
+
[a, Q]
|
|
1053
1053
|
), h = ne(
|
|
1054
1054
|
(A) => {
|
|
1055
|
-
|
|
1055
|
+
Q({
|
|
1056
1056
|
...a,
|
|
1057
1057
|
...A
|
|
1058
1058
|
});
|
|
1059
1059
|
},
|
|
1060
|
-
[a,
|
|
1060
|
+
[a, Q]
|
|
1061
1061
|
);
|
|
1062
1062
|
de(() => {
|
|
1063
1063
|
var b;
|
|
@@ -1065,7 +1065,7 @@ function Sr({
|
|
|
1065
1065
|
v("semanticDomain");
|
|
1066
1066
|
return;
|
|
1067
1067
|
}
|
|
1068
|
-
if (!
|
|
1068
|
+
if (!J || I !== "semanticDomain") return;
|
|
1069
1069
|
const A = l.domainIds ?? [], ae = (((b = a.selectedEntities) == null ? void 0 : b.length) ?? 0) > 0, r = ((s == null ? void 0 : s.length) ?? 0) > 0;
|
|
1070
1070
|
Da({
|
|
1071
1071
|
mode: C,
|
|
@@ -1078,7 +1078,7 @@ function Sr({
|
|
|
1078
1078
|
}), r && c([]));
|
|
1079
1079
|
}, [
|
|
1080
1080
|
U,
|
|
1081
|
-
|
|
1081
|
+
J,
|
|
1082
1082
|
I,
|
|
1083
1083
|
a.mode,
|
|
1084
1084
|
a.semanticDomainId,
|
|
@@ -1101,7 +1101,7 @@ function Sr({
|
|
|
1101
1101
|
}, [e, o, U]);
|
|
1102
1102
|
const E = (A) => {
|
|
1103
1103
|
V.current = !0, c(
|
|
1104
|
-
s.filter((ae) => !
|
|
1104
|
+
s.filter((ae) => !Z(ae, A))
|
|
1105
1105
|
);
|
|
1106
1106
|
}, w = ne(
|
|
1107
1107
|
(A, ae) => {
|
|
@@ -1114,8 +1114,8 @@ function Sr({
|
|
|
1114
1114
|
var ae, r;
|
|
1115
1115
|
const A = Ye(s) ?? N ?? I;
|
|
1116
1116
|
if (A === "semanticDomain") {
|
|
1117
|
-
const g =
|
|
1118
|
-
|
|
1117
|
+
const g = Qt(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;
|
|
1118
|
+
Q({
|
|
1119
1119
|
...a,
|
|
1120
1120
|
mode: "semanticDomain",
|
|
1121
1121
|
semanticDomainId: g,
|
|
@@ -1125,7 +1125,7 @@ function Sr({
|
|
|
1125
1125
|
});
|
|
1126
1126
|
} else if (A === "upload" || A === "url") {
|
|
1127
1127
|
const g = s == null ? void 0 : s[0];
|
|
1128
|
-
|
|
1128
|
+
Q({
|
|
1129
1129
|
...a,
|
|
1130
1130
|
mode: A,
|
|
1131
1131
|
semanticDomainId: void 0,
|
|
@@ -1135,7 +1135,7 @@ function Sr({
|
|
|
1135
1135
|
});
|
|
1136
1136
|
} else {
|
|
1137
1137
|
const g = s == null ? void 0 : s[0];
|
|
1138
|
-
|
|
1138
|
+
Q({
|
|
1139
1139
|
...a,
|
|
1140
1140
|
mode: "database",
|
|
1141
1141
|
semanticDomainId: void 0,
|
|
@@ -1470,7 +1470,7 @@ const Ua = vn(
|
|
|
1470
1470
|
onClick: m,
|
|
1471
1471
|
...s,
|
|
1472
1472
|
...u,
|
|
1473
|
-
className: q(`${
|
|
1473
|
+
className: q(`${Zn}`, a),
|
|
1474
1474
|
children: n
|
|
1475
1475
|
}
|
|
1476
1476
|
) }),
|
|
@@ -1730,7 +1730,7 @@ function At(e) {
|
|
|
1730
1730
|
)
|
|
1731
1731
|
] });
|
|
1732
1732
|
}
|
|
1733
|
-
function
|
|
1733
|
+
function Ka(e) {
|
|
1734
1734
|
const n = Ae(
|
|
1735
1735
|
e.scope,
|
|
1736
1736
|
e.existingControls,
|
|
@@ -1739,7 +1739,7 @@ function Qa(e) {
|
|
|
1739
1739
|
...n,
|
|
1740
1740
|
label: Pe[e.type]
|
|
1741
1741
|
} : {
|
|
1742
|
-
...
|
|
1742
|
+
...Zt({
|
|
1743
1743
|
controls: [
|
|
1744
1744
|
{
|
|
1745
1745
|
...n,
|
|
@@ -1778,9 +1778,9 @@ function Ir({
|
|
|
1778
1778
|
const V = P(
|
|
1779
1779
|
() => new Set(a || []),
|
|
1780
1780
|
[a]
|
|
1781
|
-
), F = sa(e),
|
|
1781
|
+
), F = sa(e), Q = Jn(e), [C, T] = Y(
|
|
1782
1782
|
null
|
|
1783
|
-
), [U,
|
|
1783
|
+
), [U, J] = Y(
|
|
1784
1784
|
null
|
|
1785
1785
|
), [p, I] = Y(
|
|
1786
1786
|
() => u ? {
|
|
@@ -1826,7 +1826,7 @@ function Ir({
|
|
|
1826
1826
|
fields: s || [],
|
|
1827
1827
|
metrics: c || []
|
|
1828
1828
|
};
|
|
1829
|
-
const r = p.selectedCardIds || [], g =
|
|
1829
|
+
const r = p.selectedCardIds || [], g = Ke({
|
|
1830
1830
|
controlType: p.control.type,
|
|
1831
1831
|
participants: x || [],
|
|
1832
1832
|
selectedCardIds: r
|
|
@@ -1855,7 +1855,7 @@ function Ir({
|
|
|
1855
1855
|
v.current = u, r && (I({
|
|
1856
1856
|
step: 1,
|
|
1857
1857
|
control: Ae(e, n, Array.from(V))
|
|
1858
|
-
}),
|
|
1858
|
+
}), J(null), T(null));
|
|
1859
1859
|
}, [n, u, V, e]);
|
|
1860
1860
|
const z = (r) => {
|
|
1861
1861
|
if (!w(r.type))
|
|
@@ -1869,7 +1869,7 @@ function Ir({
|
|
|
1869
1869
|
fields: s || [],
|
|
1870
1870
|
metrics: c || []
|
|
1871
1871
|
};
|
|
1872
|
-
const b =
|
|
1872
|
+
const b = Ke({
|
|
1873
1873
|
controlType: r.type,
|
|
1874
1874
|
participants: x || [],
|
|
1875
1875
|
selectedCardIds: g
|
|
@@ -1890,7 +1890,7 @@ function Ir({
|
|
|
1890
1890
|
nextControl: r.control,
|
|
1891
1891
|
cardBindingsById: void 0
|
|
1892
1892
|
};
|
|
1893
|
-
const g = (k == null ? void 0 : k[r.control.id]) || [], b =
|
|
1893
|
+
const g = (k == null ? void 0 : k[r.control.id]) || [], b = Ke({
|
|
1894
1894
|
controlType: r.control.type,
|
|
1895
1895
|
participants: x || [],
|
|
1896
1896
|
selectedCardIds: r.nextSelectedCardIds
|
|
@@ -1914,7 +1914,7 @@ function Ir({
|
|
|
1914
1914
|
};
|
|
1915
1915
|
}, j = ne(
|
|
1916
1916
|
(r, g = o, b = { type: "update" }) => {
|
|
1917
|
-
const L = r.map((R) => (
|
|
1917
|
+
const L = r.map((R) => (Qe({
|
|
1918
1918
|
control: R,
|
|
1919
1919
|
defaultValues: g
|
|
1920
1920
|
}), ea(
|
|
@@ -1925,38 +1925,38 @@ function Ir({
|
|
|
1925
1925
|
[o, m]
|
|
1926
1926
|
), ee = (r, g) => {
|
|
1927
1927
|
const b = n.find(
|
|
1928
|
-
(
|
|
1928
|
+
(K) => K.id === r
|
|
1929
1929
|
);
|
|
1930
|
-
let L = n.map((
|
|
1930
|
+
let L = n.map((K) => K.id !== r ? K : g(K));
|
|
1931
1931
|
const R = L.find(
|
|
1932
|
-
(
|
|
1932
|
+
(K) => K.id === r
|
|
1933
1933
|
);
|
|
1934
1934
|
let M, O;
|
|
1935
1935
|
if (R && (!b || ia({ control: b }, { control: R })) && e === "dashboard" && (R.type === "field_selector" || R.type === "metric_selector")) {
|
|
1936
|
-
const
|
|
1936
|
+
const K = (k == null ? void 0 : k[R.id]) || [], pe = B({
|
|
1937
1937
|
control: R,
|
|
1938
|
-
nextSelectedCardIds:
|
|
1938
|
+
nextSelectedCardIds: K
|
|
1939
1939
|
});
|
|
1940
1940
|
L = L.map(
|
|
1941
1941
|
(le) => le.id === r ? pe.nextControl : le
|
|
1942
1942
|
), M = pe.cardBindingsById, O = [R.id];
|
|
1943
1943
|
} else if (b && (!R || !da(R.type)) && e === "dashboard" && (b.type === "field_selector" || b.type === "metric_selector")) {
|
|
1944
|
-
const
|
|
1944
|
+
const K = (k == null ? void 0 : k[b.id]) || [];
|
|
1945
1945
|
M = Object.fromEntries(
|
|
1946
|
-
|
|
1946
|
+
K.map((pe) => [pe, void 0])
|
|
1947
1947
|
), O = [b.id];
|
|
1948
1948
|
}
|
|
1949
1949
|
const W = L.find(
|
|
1950
|
-
(
|
|
1950
|
+
(K) => K.id === r
|
|
1951
1951
|
);
|
|
1952
1952
|
let X = o;
|
|
1953
1953
|
if (b && W) {
|
|
1954
|
-
const
|
|
1954
|
+
const K = Qe({
|
|
1955
1955
|
control: b,
|
|
1956
1956
|
defaultValues: o
|
|
1957
1957
|
});
|
|
1958
|
-
b.source.kind === "manual" && W.source.kind === "sql_query" && ($.current[r] =
|
|
1959
|
-
const pe =
|
|
1958
|
+
b.source.kind === "manual" && W.source.kind === "sql_query" && ($.current[r] = K);
|
|
1959
|
+
const pe = K === void 0 && b.source.kind === "sql_query" && W.source.kind === "manual" ? $.current[r] : K, le = Dt({
|
|
1960
1960
|
previousControl: b,
|
|
1961
1961
|
nextControl: W,
|
|
1962
1962
|
currentDefaultValue: pe
|
|
@@ -2007,7 +2007,7 @@ function Ir({
|
|
|
2007
2007
|
D.current = void 0, I({
|
|
2008
2008
|
step: 1,
|
|
2009
2009
|
control: Ae(e, n, Array.from(V))
|
|
2010
|
-
}),
|
|
2010
|
+
}), J(null), T(null);
|
|
2011
2011
|
}, [n, V, e]), oe = (r) => {
|
|
2012
2012
|
I(
|
|
2013
2013
|
(g) => g && (() => {
|
|
@@ -2128,7 +2128,7 @@ function Ir({
|
|
|
2128
2128
|
cardBindingsById: p.cardBindingsById
|
|
2129
2129
|
}
|
|
2130
2130
|
);
|
|
2131
|
-
|
|
2131
|
+
J(g), I(null), S == null || S();
|
|
2132
2132
|
}, [n, p, o, j, S]), xt = p ? w(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({
|
|
2133
2133
|
controls: n,
|
|
2134
2134
|
defaultValues: o
|
|
@@ -2172,7 +2172,7 @@ function Ir({
|
|
|
2172
2172
|
type: "button",
|
|
2173
2173
|
className: "rounded-control border border-border/60 bg-background px-3 py-2.5 text-left transition-colors hover:bg-muted/40 focus-visible:bg-muted/40 focus-visible:outline-none",
|
|
2174
2174
|
onClick: () => I(
|
|
2175
|
-
|
|
2175
|
+
Ka({
|
|
2176
2176
|
scope: e,
|
|
2177
2177
|
existingControls: n,
|
|
2178
2178
|
reservedIds: Array.from(V),
|
|
@@ -2408,7 +2408,7 @@ function Ir({
|
|
|
2408
2408
|
] }) : null,
|
|
2409
2409
|
!p && n.length === 0 ? /* @__PURE__ */ t("div", { className: "rounded-md border border-dashed p-3 text-sm text-muted-foreground", children: d }) : null,
|
|
2410
2410
|
!p && n.map((r) => {
|
|
2411
|
-
const g = z(r), b = l == null ? void 0 : l[r.id], L =
|
|
2411
|
+
const g = z(r), b = l == null ? void 0 : l[r.id], L = Qe({
|
|
2412
2412
|
control: r,
|
|
2413
2413
|
defaultValues: o
|
|
2414
2414
|
}), R = U === r.id, M = "inline-flex shrink-0 items-center rounded-[4px] border border-border/60 bg-muted/40 px-1.5 py-0.5 text-[11px] font-medium text-muted-foreground";
|
|
@@ -2423,7 +2423,7 @@ function Ir({
|
|
|
2423
2423
|
{
|
|
2424
2424
|
type: "button",
|
|
2425
2425
|
className: "flex min-w-0 flex-1 items-start gap-2 rounded-control text-left focus:outline-none focus-visible:bg-muted/40",
|
|
2426
|
-
onClick: () =>
|
|
2426
|
+
onClick: () => J(
|
|
2427
2427
|
(O) => O === r.id ? null : r.id
|
|
2428
2428
|
),
|
|
2429
2429
|
children: [
|
|
@@ -2479,7 +2479,7 @@ function Ir({
|
|
|
2479
2479
|
{
|
|
2480
2480
|
value: r.type,
|
|
2481
2481
|
onValueChange: (O) => {
|
|
2482
|
-
const W =
|
|
2482
|
+
const W = Zt({
|
|
2483
2483
|
controls: n,
|
|
2484
2484
|
controlId: r.id,
|
|
2485
2485
|
nextType: O,
|
|
@@ -2508,7 +2508,7 @@ function Ir({
|
|
|
2508
2508
|
/* @__PURE__ */ i(
|
|
2509
2509
|
xe,
|
|
2510
2510
|
{
|
|
2511
|
-
value: r.placement ||
|
|
2511
|
+
value: r.placement || Q,
|
|
2512
2512
|
onValueChange: (O) => ee(r.id, (W) => ({
|
|
2513
2513
|
...W,
|
|
2514
2514
|
placement: O
|
|
@@ -2540,7 +2540,7 @@ function Ir({
|
|
|
2540
2540
|
control: r,
|
|
2541
2541
|
nextSelectedCardIds: O
|
|
2542
2542
|
}), X = n.map(
|
|
2543
|
-
(
|
|
2543
|
+
(K) => K.id === r.id ? W.nextControl : K
|
|
2544
2544
|
);
|
|
2545
2545
|
j(X, o, {
|
|
2546
2546
|
type: "update",
|
|
@@ -2562,7 +2562,7 @@ function Ir({
|
|
|
2562
2562
|
matrixTargetIds: { [O]: W }
|
|
2563
2563
|
});
|
|
2564
2564
|
j(
|
|
2565
|
-
n.map((
|
|
2565
|
+
n.map((K) => K.id === r.id ? X.nextControl : K),
|
|
2566
2566
|
o,
|
|
2567
2567
|
{ type: "update", cardBindingsById: X.cardBindingsById }
|
|
2568
2568
|
);
|
|
@@ -2739,7 +2739,7 @@ function pt(e, n) {
|
|
|
2739
2739
|
const a = dn(e);
|
|
2740
2740
|
return n.relativeMeta ? { ...a, value: n.value, relativeMeta: n.relativeMeta } : { ...a, value: n.value };
|
|
2741
2741
|
}
|
|
2742
|
-
function
|
|
2742
|
+
function Qa(e, n) {
|
|
2743
2743
|
const a = n === "in" || n === "not in" || n === "between" || n === "not between" ? [] : n === "isNull" || n === "isNotNull" ? null : "";
|
|
2744
2744
|
return pt({ ...e, operator: n }, { value: a });
|
|
2745
2745
|
}
|
|
@@ -2862,7 +2862,7 @@ function Ha({
|
|
|
2862
2862
|
}, S = (I, $, D) => N(I, $, (v) => ({
|
|
2863
2863
|
..."value" in D || "operator" in D || "field" in D ? dn(v) : v,
|
|
2864
2864
|
...D
|
|
2865
|
-
})), V = (I, $, D) => N(I, $, () => D), F = qn(),
|
|
2865
|
+
})), V = (I, $, D) => N(I, $, () => D), F = qn(), Q = (I, $) => {
|
|
2866
2866
|
const D = (v) => v.id === I ? {
|
|
2867
2867
|
...v,
|
|
2868
2868
|
logicalOperator: $
|
|
@@ -2898,7 +2898,7 @@ function Ha({
|
|
|
2898
2898
|
groups: h.groups.map(v)
|
|
2899
2899
|
};
|
|
2900
2900
|
d(v(o));
|
|
2901
|
-
},
|
|
2901
|
+
}, J = (I) => {
|
|
2902
2902
|
if (!I || I.conditions.length === 0 && I.groups.length === 0)
|
|
2903
2903
|
return "-- No filters defined";
|
|
2904
2904
|
const $ = (v) => {
|
|
@@ -2908,7 +2908,7 @@ function Ha({
|
|
|
2908
2908
|
let w = v.value;
|
|
2909
2909
|
if (v.latestValue && E === "=")
|
|
2910
2910
|
return `${h} = ${jt} /* the latest value each time the card runs */`;
|
|
2911
|
-
const H =
|
|
2911
|
+
const H = Jt(v.relativeMeta);
|
|
2912
2912
|
if (H && va(E) && en(E, H)) {
|
|
2913
2913
|
const _ = Na(E, H), { label: z, range: B } = Nt(H, {
|
|
2914
2914
|
tz: (F == null ? void 0 : F.tz) ?? "UTC",
|
|
@@ -2983,11 +2983,11 @@ function Ha({
|
|
|
2983
2983
|
removeGroup: f,
|
|
2984
2984
|
updateConditionFields: S,
|
|
2985
2985
|
replaceCondition: V,
|
|
2986
|
-
updateGroupOperator:
|
|
2986
|
+
updateGroupOperator: Q,
|
|
2987
2987
|
updateGroupNegate: C,
|
|
2988
2988
|
reorderConditions: T,
|
|
2989
2989
|
reorderGroups: U,
|
|
2990
|
-
generateSQLPreview:
|
|
2990
|
+
generateSQLPreview: J,
|
|
2991
2991
|
hasAnyFilters: p
|
|
2992
2992
|
};
|
|
2993
2993
|
}
|
|
@@ -3087,7 +3087,7 @@ function cn(e, n) {
|
|
|
3087
3087
|
currentSelectionPolicy: "exclude"
|
|
3088
3088
|
});
|
|
3089
3089
|
}
|
|
3090
|
-
function
|
|
3090
|
+
function Za({
|
|
3091
3091
|
field: e,
|
|
3092
3092
|
source: n,
|
|
3093
3093
|
selected: a,
|
|
@@ -3185,7 +3185,7 @@ function Ja({
|
|
|
3185
3185
|
)
|
|
3186
3186
|
] }) });
|
|
3187
3187
|
}
|
|
3188
|
-
function
|
|
3188
|
+
function Ja({
|
|
3189
3189
|
field: e,
|
|
3190
3190
|
source: n,
|
|
3191
3191
|
value: a,
|
|
@@ -3263,12 +3263,12 @@ function er({
|
|
|
3263
3263
|
onChange: d,
|
|
3264
3264
|
className: u
|
|
3265
3265
|
}) {
|
|
3266
|
-
const l = Wn(), s =
|
|
3266
|
+
const l = Wn(), s = Kn(), c = n === "between" || n === "not between", x = en(n), k = x ? a : void 0, y = P(() => {
|
|
3267
3267
|
if (!c || !a) return;
|
|
3268
3268
|
const C = s(a);
|
|
3269
3269
|
return {
|
|
3270
3270
|
...C,
|
|
3271
|
-
tooltip: C.dates ? void 0 : nn(a).dataAnchored ?
|
|
3271
|
+
tooltip: C.dates ? void 0 : nn(a).dataAnchored ? Qn : Pn
|
|
3272
3272
|
};
|
|
3273
3273
|
}, [c, a, s]), f = P(() => {
|
|
3274
3274
|
if (c) {
|
|
@@ -3475,7 +3475,7 @@ function pn({
|
|
|
3475
3475
|
} = Gt({ id: e.id }), V = {
|
|
3476
3476
|
transform: Bt.Transform.toString(f),
|
|
3477
3477
|
transition: N
|
|
3478
|
-
}, F = qe(e.field.dataType),
|
|
3478
|
+
}, F = qe(e.field.dataType), Q = e.operator === "isNull" || e.operator === "isNotNull", C = e.operator === "in" || e.operator === "not in";
|
|
3479
3479
|
return /* @__PURE__ */ i(
|
|
3480
3480
|
"div",
|
|
3481
3481
|
{
|
|
@@ -3528,7 +3528,7 @@ function pn({
|
|
|
3528
3528
|
onValueChange: (T) => c(
|
|
3529
3529
|
a,
|
|
3530
3530
|
e.id,
|
|
3531
|
-
|
|
3531
|
+
Qa(e, T)
|
|
3532
3532
|
),
|
|
3533
3533
|
children: [
|
|
3534
3534
|
/* @__PURE__ */ t(
|
|
@@ -3544,8 +3544,8 @@ function pn({
|
|
|
3544
3544
|
]
|
|
3545
3545
|
}
|
|
3546
3546
|
),
|
|
3547
|
-
|
|
3548
|
-
|
|
3547
|
+
Q ? /* @__PURE__ */ t("div", { className: "min-w-0 flex-1" }) : F === "string" ? C ? /* @__PURE__ */ t(
|
|
3548
|
+
Za,
|
|
3549
3549
|
{
|
|
3550
3550
|
field: e.field,
|
|
3551
3551
|
source: l,
|
|
@@ -3568,7 +3568,7 @@ function pn({
|
|
|
3568
3568
|
placeholder: `${Xe(e.operator)}…`
|
|
3569
3569
|
}
|
|
3570
3570
|
) : /* @__PURE__ */ t(
|
|
3571
|
-
|
|
3571
|
+
Ja,
|
|
3572
3572
|
{
|
|
3573
3573
|
field: e.field,
|
|
3574
3574
|
source: l,
|
|
@@ -3602,7 +3602,7 @@ function pn({
|
|
|
3602
3602
|
{
|
|
3603
3603
|
value: e.value,
|
|
3604
3604
|
operator: e.operator,
|
|
3605
|
-
relativeMeta:
|
|
3605
|
+
relativeMeta: Jt(e.relativeMeta),
|
|
3606
3606
|
latestValue: e.latestValue === !0,
|
|
3607
3607
|
field: e.field,
|
|
3608
3608
|
onChange: (T) => c(
|
|
@@ -3697,11 +3697,11 @@ function dr({
|
|
|
3697
3697
|
const {
|
|
3698
3698
|
attributes: V,
|
|
3699
3699
|
listeners: F,
|
|
3700
|
-
setNodeRef:
|
|
3700
|
+
setNodeRef: Q,
|
|
3701
3701
|
transform: C,
|
|
3702
3702
|
transition: T,
|
|
3703
3703
|
isDragging: U
|
|
3704
|
-
} = Gt({ id: e.id }),
|
|
3704
|
+
} = Gt({ id: e.id }), J = {
|
|
3705
3705
|
transform: Bt.Transform.toString(C),
|
|
3706
3706
|
transition: T
|
|
3707
3707
|
}, p = ($) => {
|
|
@@ -3724,8 +3724,8 @@ function dr({
|
|
|
3724
3724
|
return /* @__PURE__ */ i(
|
|
3725
3725
|
"div",
|
|
3726
3726
|
{
|
|
3727
|
-
ref:
|
|
3728
|
-
style:
|
|
3727
|
+
ref: Q,
|
|
3728
|
+
style: J,
|
|
3729
3729
|
className: q(
|
|
3730
3730
|
n > 0 && "mt-2 overflow-hidden rounded-[6px] border border-border/60",
|
|
3731
3731
|
U && "z-50 opacity-50"
|
|
@@ -3783,10 +3783,10 @@ function dr({
|
|
|
3783
3783
|
/* @__PURE__ */ t(
|
|
3784
3784
|
Re,
|
|
3785
3785
|
{
|
|
3786
|
-
sensors:
|
|
3786
|
+
sensors: Ze(
|
|
3787
3787
|
fe(tt),
|
|
3788
3788
|
fe(et, {
|
|
3789
|
-
coordinateGetter:
|
|
3789
|
+
coordinateGetter: Je
|
|
3790
3790
|
})
|
|
3791
3791
|
),
|
|
3792
3792
|
collisionDetection: Ee,
|
|
@@ -3819,10 +3819,10 @@ function dr({
|
|
|
3819
3819
|
/* @__PURE__ */ t(
|
|
3820
3820
|
Re,
|
|
3821
3821
|
{
|
|
3822
|
-
sensors:
|
|
3822
|
+
sensors: Ze(
|
|
3823
3823
|
fe(tt),
|
|
3824
3824
|
fe(et, {
|
|
3825
|
-
coordinateGetter:
|
|
3825
|
+
coordinateGetter: Je
|
|
3826
3826
|
})
|
|
3827
3827
|
),
|
|
3828
3828
|
collisionDetection: Ee,
|
|
@@ -3872,21 +3872,21 @@ function $r({
|
|
|
3872
3872
|
updateConditionFields: S,
|
|
3873
3873
|
replaceCondition: V,
|
|
3874
3874
|
updateGroupOperator: F,
|
|
3875
|
-
updateGroupNegate:
|
|
3875
|
+
updateGroupNegate: Q,
|
|
3876
3876
|
reorderConditions: C,
|
|
3877
3877
|
reorderGroups: T,
|
|
3878
3878
|
generateSQLPreview: U,
|
|
3879
|
-
hasAnyFilters:
|
|
3879
|
+
hasAnyFilters: J
|
|
3880
3880
|
} = Ha({
|
|
3881
3881
|
initialFilters: e,
|
|
3882
3882
|
availableFields: n,
|
|
3883
3883
|
...u ? {
|
|
3884
3884
|
onChange: (h) => u(tr(h) ? h : null)
|
|
3885
3885
|
} : {}
|
|
3886
|
-
}), p =
|
|
3886
|
+
}), p = Ze(
|
|
3887
3887
|
fe(tt),
|
|
3888
3888
|
fe(et, {
|
|
3889
|
-
coordinateGetter:
|
|
3889
|
+
coordinateGetter: Je
|
|
3890
3890
|
})
|
|
3891
3891
|
), [I, $] = Y(!1), D = (h, E = 0, w) => {
|
|
3892
3892
|
if (E === 0) {
|
|
@@ -3982,7 +3982,7 @@ function $r({
|
|
|
3982
3982
|
depth: E,
|
|
3983
3983
|
parentGroupId: w,
|
|
3984
3984
|
onUpdateGroupOperator: F,
|
|
3985
|
-
onUpdateGroupNegate:
|
|
3985
|
+
onUpdateGroupNegate: Q,
|
|
3986
3986
|
onRemoveGroup: N,
|
|
3987
3987
|
onRemoveCondition: f,
|
|
3988
3988
|
onReorderConditions: C,
|
|
@@ -4024,7 +4024,7 @@ function $r({
|
|
|
4024
4024
|
),
|
|
4025
4025
|
/* @__PURE__ */ t("span", { className: "text-[11px] text-muted-foreground", children: "Nest conditions in groups" })
|
|
4026
4026
|
] }),
|
|
4027
|
-
|
|
4027
|
+
J && !l && /* @__PURE__ */ i("div", { className: "mt-3 border-t border-border/60 pt-3", children: [
|
|
4028
4028
|
/* @__PURE__ */ t("div", { className: q("mb-1.5", ft), children: "Where clause" }),
|
|
4029
4029
|
/* @__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: U(s) })
|
|
4030
4030
|
] })
|
|
@@ -4046,7 +4046,7 @@ function $r({
|
|
|
4046
4046
|
G,
|
|
4047
4047
|
{
|
|
4048
4048
|
size: "xs",
|
|
4049
|
-
onClick: () => o == null ? void 0 : o(
|
|
4049
|
+
onClick: () => o == null ? void 0 : o(J ? s : null),
|
|
4050
4050
|
children: "Apply filters"
|
|
4051
4051
|
}
|
|
4052
4052
|
)
|