react-semaphor 0.1.587 → 0.1.588
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 +341 -338
- 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-DhP8wVtM.js → add-to-dashboard-C86FsM8D.js} +1 -1
- package/dist/chunks/{aggregate-measure-field-DsFXETpI.js → aggregate-measure-field-BrkXsSJp.js} +2 -2
- package/dist/chunks/{analytics-base-schemas-BaIQrEzX.js → analytics-base-schemas-8wz9vqn_.js} +173 -165
- package/dist/chunks/{assistant-chat-pfJK-T0b.js → assistant-chat-BeM6joPc.js} +19 -18
- package/dist/chunks/{bookmark-impact-BSpGQL1M.js → bookmark-impact-B7pbMx2e.js} +2 -2
- package/dist/chunks/{bookmark-state-CL4WEpgB.js → bookmark-state-Bn7k3ttp.js} +5 -5
- package/dist/chunks/{card-filter-builder-C8PbhHjq.js → card-filter-builder-DmodrhyI.js} +81 -81
- package/dist/chunks/{comparison-window-caption-CoART8BC.js → comparison-window-caption-fqijZdVd.js} +451 -395
- package/dist/chunks/{context-BTLBjQNh.js → context-CVXTFljo.js} +1 -1
- package/dist/chunks/{dashboard-CVj1oMoW.js → dashboard-Tu5wT0Cw.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-TqA58rKz.js → dashboard-briefing-launcher-D8jMxIJo.js} +249 -265
- package/dist/chunks/{dashboard-controls-DQ8FsxAz.js → dashboard-controls-uzeAIEkM.js} +65 -65
- package/dist/chunks/{dashboard-json-DM88pmk2.js → dashboard-json-i5rpFNCg.js} +5 -5
- package/dist/chunks/dates-BunbHJH0.js +115 -0
- package/dist/chunks/{edit-dashboard-visual-BpRnU_6G.js → edit-dashboard-visual-BpEK_Sls.js} +2357 -2344
- package/dist/chunks/{filter-line-Cu2u1K36.js → filter-line-Dza3ee4w.js} +5 -5
- package/dist/chunks/{filter-reach-copy-0Xp97cLk.js → filter-reach-copy-D5AmDHda.js} +944 -942
- package/dist/chunks/{filter-value-text-xefXzZlf.js → filter-value-text-DQw4v3nC.js} +6 -6
- package/dist/chunks/{index-D_QSeVKy.js → index-dGxJTaP1.js} +39 -39
- package/dist/chunks/{layout-grid-9nSS2SL-.js → layout-grid-XCYphks2.js} +1 -1
- package/dist/chunks/{list-filter-CfMPI6v4.js → list-filter-DGV3fqqv.js} +1 -1
- package/dist/chunks/{matrix-analytical-definition-DOVSFFuf.js → matrix-analytical-definition-SN0JUJVk.js} +3 -3
- package/dist/chunks/{matrix-member-presentation-BKDyxJho.js → matrix-member-presentation-DVBJR0MA.js} +1 -1
- package/dist/chunks/{matrix-operation-contract-BM5TveR3.js → matrix-operation-contract-JSmproo9.js} +15 -15
- package/dist/chunks/{metric-comparison-ZmurmEIs.js → metric-comparison-xE_J6hkg.js} +2 -2
- package/dist/chunks/{paintbrush-LzAje2ff.js → paintbrush-DEEZXhDj.js} +1 -1
- package/dist/chunks/{palette-DicJG0TC.js → palette-Bgy0H-Nt.js} +1 -1
- package/dist/chunks/{pivot-header-presentation-CdeTU96P.js → pivot-header-presentation-D-DfPAjb.js} +1 -1
- package/dist/chunks/{pivot-result-contract-expectations-Bx_BCu-7.js → pivot-result-contract-expectations-DbBahmgc.js} +545 -536
- package/dist/chunks/{pivot-result-identity-Bvs6Uq3v.js → pivot-result-identity-CUsMt_4r.js} +1 -1
- package/dist/chunks/{raw-temporal-value-DH-feMc2.js → raw-temporal-value-BnGCWJAL.js} +1 -1
- package/dist/chunks/{report-preferences-dialog-CXKmWyLm.js → report-preferences-dialog-CTM0xfd0.js} +14 -14
- package/dist/chunks/{report-runtime-context-NlOXwyRB.js → report-runtime-context-CrOgmuxO.js} +2 -2
- package/dist/chunks/{resolve-dashboard-input-context-zEXuitoF.js → resolve-dashboard-input-context-DFBIngUZ.js} +5617 -5485
- package/dist/chunks/{save-0wu1Z1U7.js → save-xnRCvMeA.js} +1 -1
- package/dist/chunks/{saved-dashboard-context-Cll5LipJ.js → saved-dashboard-context-DKMTP9ib.js} +17 -17
- package/dist/chunks/selection-filter-compiler-DkIjp1yH.js +131 -0
- package/dist/chunks/{semaphor-ready-indicator-Bnj3H0Dm.js → semaphor-ready-indicator-zU9reNmX.js} +45952 -45617
- package/dist/chunks/{shelf-drop-preview-context-B8rmn6BD.js → shelf-drop-preview-context-R9sf4oDX.js} +6 -6
- package/dist/chunks/{stored-dashboard-CURqJgoa.js → stored-dashboard-CksluF2S.js} +1539 -1404
- package/dist/chunks/{style-sheet-parts-_dGSFzDi.js → style-sheet-parts-D7NbsFL0.js} +3 -3
- package/dist/chunks/{table-export-sheet-Dmtqi5NV.js → table-export-sheet-ClSgERQC.js} +1 -1
- package/dist/chunks/{token-types-DEe_FP4l.js → token-types-DTocOcwt.js} +1 -1
- package/dist/chunks/{upload-CtyOkU_B.js → upload-BXGgYS4g.js} +1 -1
- package/dist/chunks/{validators-CJ8Jh0E8.js → validators-CrYXNnNE.js} +51 -49
- package/dist/chunks/{variable-draft-DIv-9y6Q.js → variable-draft-rbtGPvmX.js} +16 -14
- package/dist/chunks/visual-choice-DDfHfHvY.js +172 -0
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +821 -791
- package/dist/format-utils/index.js +162 -158
- package/dist/index.js +21 -21
- 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/index.js +5 -5
- package/dist/types/lib/dashboard-view-state/card-view-state.d.ts +39 -2
- package/dist/types/lib/dashboard-view-state/date-zoom.d.ts +65 -0
- package/dist/types/lib/dashboard-view-state/grain-pick.d.ts +38 -0
- package/dist/types/lib/dashboard-view-state/index.d.ts +2 -0
- package/dist/types/lib/formatters/grouped-temporal-presentation.d.ts +6 -2
- package/dist/types/lib/hooks/interactions/use-drill-actions.d.ts +1 -1
- package/dist/types/lib/interactions/get-click-context-from-table.d.ts +2 -2
- package/dist/types/lib/query-context/assemble-card-query.d.ts +2 -1
- package/dist/types/lib/query-context/build-card-query-context.d.ts +15 -1
- package/dist/types/lib/query-context/describe-card-execution-snapshot.d.ts +3 -0
- package/dist/types/lib/query-context/resolve-runtime-card-filters.d.ts +14 -1
- package/dist/types/lib/stores/dashboard-store.d.ts +7 -1
- package/dist/types/lib/types/explorer-types.d.ts +13 -0
- package/dist/types/lib/utils/card-config-utils.d.ts +1 -1
- package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +32 -0
- package/dist/types/shared/analytics-protocol/contracts.d.ts +30 -0
- package/dist/types/shared/analytics-protocol/filter-field-ownership.d.ts +13 -0
- package/dist/types/shared/dashboard-authoring/automatic-grain.d.ts +77 -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 +13 -8
- package/dist/types/shared/dashboard-authoring/control-value-resolution.d.ts +24 -0
- package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
- package/dist/types/shared/dashboard-authoring/kpi-trend-rule.d.ts +6 -29
- package/dist/types/shared/dashboard-authoring/variable-draft.d.ts +1 -0
- package/dist/types/shared/format-utils/index.d.ts +1 -0
- package/dist/types/shared/format-utils/partial-period.d.ts +40 -0
- package/dist/types/shared/format-utils/temporal-bucket.d.ts +11 -0
- package/dist/types/shared/usage-events/details.d.ts +2 -2
- package/dist/usage-events/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/dates-5z3b9Loo.js +0 -136
- package/dist/chunks/selection-filter-compiler-BReJy-uv.js +0 -92
- package/dist/chunks/visual-choice-BBPizkRo.js +0 -206
|
@@ -5,26 +5,27 @@ var Qt = (e, t, a) => t.has(e) || Yt("Cannot " + a);
|
|
|
5
5
|
var B = (e, t, a) => (Qt(e, t, "read from private field"), a ? a.call(e) : t.get(e)), oe = (e, t, a) => t.has(e) ? Yt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, a), W = (e, t, a, s) => (Qt(e, t, "write to private field"), s ? s.call(e, a) : t.set(e, a), a);
|
|
6
6
|
import { jsx as d, jsxs as b, Fragment as xe } from "react/jsx-runtime";
|
|
7
7
|
import { useCallback as G, useRef as te, useMemo as We, useEffect as ve, useState as $, useLayoutEffect as _e, useId as Xs } from "react";
|
|
8
|
-
import { u as H, dk as er, b4 as tr, bo as ar, a6 as sr, dl as rr, dm as nr, a7 as Xt, b1 as or, dn as ir, c1 as lr, dp as dr, dq as Rt, dr as cr, ds as ur, dt, du as _a, dv as pr, bX as qe, cj as ea, dw as Oa, a9 as mr, cd as Ra, br as fr, c6 as Pt, bW as Pa, dx as Da, dy as Dt, cE as hr, dz as $a, dA as gr, cG as yr, bx as br, dB as vr, dC as xr, cg as wr, ch as Nr, dD as Ir, ci as Sr, co as Ar, dE as Cr, c3 as pt, cn as Er, cs as Tr, c5 as ja, a$ as Fa, b2 as kr, bi as tt, aZ as La, dF as Mr, dG as _r, dH as Or, dI as Rr, ag as Ba, dJ as Pr } from "./semaphor-ready-indicator-
|
|
9
|
-
import { c as Re, B as q, X as He, p as Ua, q as Dr, j as Pe, L as we, I as $t, R as $r, e as za, f as qa, h as Va } from "./style-sheet-parts-
|
|
8
|
+
import { u as H, dk as er, b4 as tr, bo as ar, a6 as sr, dl as rr, dm as nr, a7 as Xt, b1 as or, dn as ir, c1 as lr, dp as dr, dq as Rt, dr as cr, ds as ur, dt, du as _a, dv as pr, bX as qe, cj as ea, dw as Oa, a9 as mr, cd as Ra, br as fr, c6 as Pt, bW as Pa, dx as Da, dy as Dt, cE as hr, dz as $a, dA as gr, cG as yr, bx as br, dB as vr, dC as xr, cg as wr, ch as Nr, dD as Ir, ci as Sr, co as Ar, dE as Cr, c3 as pt, cn as Er, cs as Tr, c5 as ja, a$ as Fa, b2 as kr, bi as tt, aZ as La, dF as Mr, dG as _r, dH as Or, dI as Rr, ag as Ba, dJ as Pr } from "./semaphor-ready-indicator-zU9reNmX.js";
|
|
9
|
+
import { c as Re, B as q, X as He, p as Ua, q as Dr, j as Pe, L as we, I as $t, R as $r, e as za, f as qa, h as Va } from "./style-sheet-parts-D7NbsFL0.js";
|
|
10
10
|
import { g as jr, c as F } from "./pickers-DkqmtnTL.js";
|
|
11
|
-
import "./validators-
|
|
12
|
-
import "./matrix-operation-contract-
|
|
13
|
-
import "./analytics-base-schemas-
|
|
11
|
+
import "./validators-CrYXNnNE.js";
|
|
12
|
+
import "./matrix-operation-contract-JSmproo9.js";
|
|
13
|
+
import "./analytics-base-schemas-8wz9vqn_.js";
|
|
14
14
|
import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as Fr } from "../value-format-preferences/index.js";
|
|
15
|
-
import { J as Lr } from "./bookmark-state-
|
|
16
|
-
import { n as Br, o as Ge, c as It, A as ze, d as Za } from "./context-
|
|
17
|
-
import { p as ta, a as Ur, A as Ja } from "./saved-dashboard-context-
|
|
18
|
-
import {
|
|
19
|
-
import { u as Ka, i as Vr } from "./report-preferences-dialog-
|
|
20
|
-
import { m as Zr } from "./stored-dashboard-
|
|
21
|
-
import { w as Jr
|
|
22
|
-
import {
|
|
15
|
+
import { J as Lr } from "./bookmark-state-Bn7k3ttp.js";
|
|
16
|
+
import { n as Br, o as Ge, c as It, A as ze, d as Za } from "./context-CVXTFljo.js";
|
|
17
|
+
import { p as ta, a as Ur, A as Ja } from "./saved-dashboard-context-DKMTP9ib.js";
|
|
18
|
+
import { gj as zr, o as qr, gk as aa } from "./resolve-dashboard-input-context-DFBIngUZ.js";
|
|
19
|
+
import { u as Ka, i as Vr } from "./report-preferences-dialog-CTM0xfd0.js";
|
|
20
|
+
import { m as Zr } from "./stored-dashboard-CksluF2S.js";
|
|
21
|
+
import { w as Jr } from "./selection-filter-compiler-DkIjp1yH.js";
|
|
22
|
+
import { c as Wa } from "./visual-choice-DDfHfHvY.js";
|
|
23
|
+
import { n as Kr, v as Ha, o as Wr, t as Hr, x as jt, l as ce, d as Gr, b as Yr, m as Ft, M as mt, r as Qr, w as Xr, h as en, j as tn, s as St, f as an, a as sn } from "./add-to-dashboard-C86FsM8D.js";
|
|
23
24
|
import { safeParseAsync as rn, lazy as nn, unknown as on, union as ln, string as dn, record as cn, object as un, number as pn, null as mn, never as fn, looseObject as hn, literal as gn, instanceof as yn, enum as bn, discriminatedUnion as vn, custom as xn, boolean as wn, array as Nn } from "zod/v4";
|
|
24
25
|
import { toJSONSchema as In } from "zod/v4/core";
|
|
25
|
-
import {
|
|
26
|
-
import { L as _n } from "./list-filter-
|
|
27
|
-
import { L as la } from "./layout-grid-
|
|
26
|
+
import { aS as Sn, aT as An, aU as Cn, aV as at, aW as En, aX as sa, aY as ra, aZ as na, a_ as oa, a$ as ia, b0 as Tn, f as kn, am as Mn } from "./pivot-result-contract-expectations-DbBahmgc.js";
|
|
27
|
+
import { L as _n } from "./list-filter-DGV3fqqv.js";
|
|
28
|
+
import { L as la } from "./layout-grid-XCYphks2.js";
|
|
28
29
|
function On(e, t, a) {
|
|
29
30
|
const s = Sn(), r = (a == null ? void 0 : a.locale) ?? s.locale ?? An, l = Cn(e, t);
|
|
30
31
|
if (isNaN(l))
|
|
@@ -5620,7 +5621,7 @@ function hd(e, t) {
|
|
|
5620
5621
|
return { text: e.slice(0, s) + e.slice(t), caret: s };
|
|
5621
5622
|
}
|
|
5622
5623
|
const gd = [], yd = { withRequest: !0 };
|
|
5623
|
-
function
|
|
5624
|
+
function Yd({
|
|
5624
5625
|
instance: e,
|
|
5625
5626
|
surface: t = "dashboard",
|
|
5626
5627
|
placement: a
|
|
@@ -6111,5 +6112,5 @@ function Ad({
|
|
|
6111
6112
|
] });
|
|
6112
6113
|
}
|
|
6113
6114
|
export {
|
|
6114
|
-
|
|
6115
|
+
Yd as default
|
|
6115
6116
|
};
|
|
@@ -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-Bn7k3ttp.js";
|
|
2
|
+
import { l as F, h as C, a as O, b as v, i as S, f as T } from "./stored-dashboard-CksluF2S.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);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a5 as G, f as Ve, r as Pe } from "./validators-
|
|
1
|
+
import { a5 as G, f as Ve, r as Pe } from "./validators-CrYXNnNE.js";
|
|
2
2
|
import { z as l } from "zod";
|
|
3
|
-
import { Q as B, F as Le, r as $e } from "./matrix-operation-contract-
|
|
4
|
-
import { D as qe, C as Be, a as j, r as je, e as Ue } from "./metric-comparison-
|
|
5
|
-
import "./analytics-base-schemas-
|
|
3
|
+
import { Q as B, F as Le, r as $e } from "./matrix-operation-contract-JSmproo9.js";
|
|
4
|
+
import { D as qe, C as Be, a as j, r as je, e as Ue } from "./metric-comparison-xE_J6hkg.js";
|
|
5
|
+
import "./analytics-base-schemas-8wz9vqn_.js";
|
|
6
6
|
import { a as O } from "./applied-constraints-DU-wndZ7.js";
|
|
7
|
-
import { r as ze } from "./pivot-result-identity-
|
|
7
|
+
import { r as ze } from "./pivot-result-identity-CUsMt_4r.js";
|
|
8
8
|
const ne = 8, re = 6, V = Object.freeze([]);
|
|
9
9
|
function We(e) {
|
|
10
10
|
switch (e.type) {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { c as nt, B as G, X as ce, x as Ne, q as mn, a8 as pn, t as at, u as rt, v as st, w as ot, a9 as Ot, F as Oe, s as le, y as ge, z as xe, A as be, D as ve, E as re, e as it, f as lt, h as dt, L as fn, d as hn } from "./style-sheet-parts-
|
|
1
|
+
import { c as nt, B as G, X as ce, x as Ne, q as mn, a8 as pn, t as at, u as rt, v as st, w as ot, a9 as Ot, F as Oe, s as le, y as ge, z as xe, A as be, D as ve, E as re, e as it, f as lt, h as dt, L as fn, d as hn } from "./style-sheet-parts-D7NbsFL0.js";
|
|
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 gn, Fragment as xn } from "react";
|
|
5
|
-
import { b2 as ct, u as ut, ag as se, c5 as _t, cC as X, cD as bn, c1 as Ie, cE as Ue, cF as Vt, cG as vn, bX as Ve, cH as yn, ah as Rt, bE as Nn, bF as Cn, bH as wn, bx as kn, cI as Sn, i as Dn, cJ as In, cK as Tn, cL as yt, bW as Et, cM as Ln, cN as
|
|
6
|
-
import { D as Pn } from "./token-types-
|
|
7
|
-
import {
|
|
8
|
-
import { c as
|
|
9
|
-
import { r as Yt } from "./validators-
|
|
10
|
-
import "./matrix-operation-contract-
|
|
11
|
-
import "./analytics-base-schemas-
|
|
5
|
+
import { b2 as ct, u as ut, ag as se, c5 as _t, cC as X, cD as bn, c1 as Ie, cE as Ue, cF as Vt, cG as vn, bX as Ve, cH as yn, ah as Rt, bE as Nn, bF as Cn, bH as wn, bx as kn, cI as Sn, i as Dn, cJ as In, cK as Tn, cL as yt, bW as Et, cM as Ln, cN as Mt, cO as zt, cP as An, cQ as $n, cR as Fn, cS as On, cT as _n, cU as Vn, cV as Rn, by as En, cW as Nt, cX as qt, cY as Mn, bB as zn, cZ as qn, c_ as jn, c$ as Un, d0 as ye, d1 as jt, d2 as Gn, d3 as Bn, d4 as Wn, d5 as Kn, d6 as Qn, d7 as Je, d8 as he, d9 as Ze, da as et, db as tt, dc as Hn, dd as Re, de as Ee, df as Me, dg as ze, dh as Ut, di as Gt, dj as Bt } from "./semaphor-ready-indicator-zU9reNmX.js";
|
|
6
|
+
import { D as Pn } from "./token-types-DTocOcwt.js";
|
|
7
|
+
import { fJ as Wt, fK as Yn, fL as Xn, fM as Jn, fN as Zn, fO as ea, fP as $e, fQ as Ct, fR as wt, fS as Ke, fT as Qe, fU as ta, fV as na, fW as kt, fX as aa, fY as ra, fZ as Fe, f_ as sa, f$ as St, g0 as Kt, g1 as Qt, g2 as Ht, g3 as Pt, g4 as oa, g5 as ia, g6 as Dt, g7 as la, g8 as It, g9 as da, ga as ca, gb as ua, gc as ma, gd as He, a as qe, ge as Pe, bd as pa, gf as fa, gg as ha, gh as ga, gi as xa } from "./resolve-dashboard-input-context-DFBIngUZ.js";
|
|
8
|
+
import { c as z } from "./pickers-DkqmtnTL.js";
|
|
9
|
+
import { r as Yt } from "./validators-CrYXNnNE.js";
|
|
10
|
+
import "./matrix-operation-contract-JSmproo9.js";
|
|
11
|
+
import "./analytics-base-schemas-8wz9vqn_.js";
|
|
12
12
|
import "../value-format-preferences/index.js";
|
|
13
|
-
import { U as ba } from "./upload-
|
|
14
|
-
import { r as Xt } from "./metric-comparison-
|
|
15
|
-
import { a3 as Jt } from "./filter-reach-copy-
|
|
13
|
+
import { U as ba } from "./upload-BXGgYS4g.js";
|
|
14
|
+
import { r as Xt } from "./metric-comparison-xE_J6hkg.js";
|
|
15
|
+
import { a3 as Jt } from "./filter-reach-copy-D5AmDHda.js";
|
|
16
16
|
/**
|
|
17
17
|
* @license lucide-react v0.453.0 - ISC
|
|
18
18
|
*
|
|
@@ -257,7 +257,7 @@ function Da({
|
|
|
257
257
|
/* @__PURE__ */ t(
|
|
258
258
|
Ie,
|
|
259
259
|
{
|
|
260
|
-
className:
|
|
260
|
+
className: z(
|
|
261
261
|
"h-3 w-3 shrink-0 text-muted-foreground transition-transform",
|
|
262
262
|
y && "rotate-90"
|
|
263
263
|
),
|
|
@@ -387,7 +387,7 @@ function La({
|
|
|
387
387
|
/* @__PURE__ */ t(
|
|
388
388
|
Ie,
|
|
389
389
|
{
|
|
390
|
-
className:
|
|
390
|
+
className: z(
|
|
391
391
|
"h-3 w-3 shrink-0 text-muted-foreground transition-transform",
|
|
392
392
|
i && "rotate-90"
|
|
393
393
|
),
|
|
@@ -936,7 +936,7 @@ function an({
|
|
|
936
936
|
{
|
|
937
937
|
type: "button",
|
|
938
938
|
onClick: () => d((s) => !s),
|
|
939
|
-
className:
|
|
939
|
+
className: z(
|
|
940
940
|
"flex h-6 w-full items-center gap-1.5 pr-4 text-left transition-colors hover:bg-muted/40",
|
|
941
941
|
n === 1 ? "pl-8" : "pl-10"
|
|
942
942
|
),
|
|
@@ -944,7 +944,7 @@ function an({
|
|
|
944
944
|
/* @__PURE__ */ t(
|
|
945
945
|
Ie,
|
|
946
946
|
{
|
|
947
|
-
className:
|
|
947
|
+
className: z(
|
|
948
948
|
"h-2.5 w-2.5 shrink-0 text-muted-foreground transition-transform",
|
|
949
949
|
c && "rotate-90"
|
|
950
950
|
),
|
|
@@ -1155,7 +1155,7 @@ function Cr({
|
|
|
1155
1155
|
});
|
|
1156
1156
|
}
|
|
1157
1157
|
n(!1);
|
|
1158
|
-
}, { semanticDomains: V } = Zt(), { connections:
|
|
1158
|
+
}, { semanticDomains: V } = Zt(), { connections: M } = Vt(), K = Q(
|
|
1159
1159
|
() => new Map(
|
|
1160
1160
|
V.map(($) => [
|
|
1161
1161
|
$.id,
|
|
@@ -1225,7 +1225,7 @@ function Cr({
|
|
|
1225
1225
|
onClick: () => U("all")
|
|
1226
1226
|
}
|
|
1227
1227
|
),
|
|
1228
|
-
(V.length > 0 ||
|
|
1228
|
+
(V.length > 0 || M.length > 0) && /* @__PURE__ */ l(fe, { children: [
|
|
1229
1229
|
/* @__PURE__ */ t(
|
|
1230
1230
|
De,
|
|
1231
1231
|
{
|
|
@@ -1253,7 +1253,7 @@ function Cr({
|
|
|
1253
1253
|
},
|
|
1254
1254
|
`domain:${$.id}`
|
|
1255
1255
|
)),
|
|
1256
|
-
|
|
1256
|
+
M.map(($) => /* @__PURE__ */ t(
|
|
1257
1257
|
De,
|
|
1258
1258
|
{
|
|
1259
1259
|
label: $.name,
|
|
@@ -1310,7 +1310,7 @@ function Cr({
|
|
|
1310
1310
|
type: "button",
|
|
1311
1311
|
onClick: Z,
|
|
1312
1312
|
disabled: Ce,
|
|
1313
|
-
className:
|
|
1313
|
+
className: z(
|
|
1314
1314
|
"inline-flex h-7 items-center gap-1.5 rounded-control bg-primary px-2.5 text-[12px] font-medium text-primary-foreground transition-colors hover:bg-primary/90",
|
|
1315
1315
|
Ce && "cursor-not-allowed opacity-50 hover:bg-primary"
|
|
1316
1316
|
),
|
|
@@ -1349,7 +1349,7 @@ function De({
|
|
|
1349
1349
|
type: "button",
|
|
1350
1350
|
onClick: a,
|
|
1351
1351
|
"aria-pressed": n,
|
|
1352
|
-
className:
|
|
1352
|
+
className: z(
|
|
1353
1353
|
"inline-flex h-6 shrink-0 items-center whitespace-nowrap rounded-control px-2 text-[11px] font-medium transition-colors",
|
|
1354
1354
|
n ? "bg-primary text-primary-foreground hover:bg-primary/90" : "text-muted-foreground hover:bg-muted hover:text-foreground"
|
|
1355
1355
|
),
|
|
@@ -1434,7 +1434,7 @@ function kr({
|
|
|
1434
1434
|
In,
|
|
1435
1435
|
{
|
|
1436
1436
|
variant: "outline",
|
|
1437
|
-
className:
|
|
1437
|
+
className: z(
|
|
1438
1438
|
"cursor-help select-none transition-all",
|
|
1439
1439
|
m[s],
|
|
1440
1440
|
a
|
|
@@ -1449,7 +1449,7 @@ function kr({
|
|
|
1449
1449
|
ot,
|
|
1450
1450
|
{
|
|
1451
1451
|
side: "bottom",
|
|
1452
|
-
className:
|
|
1452
|
+
className: z("max-w-xs", w[s]),
|
|
1453
1453
|
children: [
|
|
1454
1454
|
/* @__PURE__ */ t(Ot, { className: y[s] }),
|
|
1455
1455
|
/* @__PURE__ */ t("p", { children: f[s] })
|
|
@@ -1458,7 +1458,7 @@ function kr({
|
|
|
1458
1458
|
)
|
|
1459
1459
|
] }) });
|
|
1460
1460
|
}
|
|
1461
|
-
const
|
|
1461
|
+
const Ma = gn(
|
|
1462
1462
|
({
|
|
1463
1463
|
side: e = "bottom",
|
|
1464
1464
|
children: n,
|
|
@@ -1480,7 +1480,7 @@ const za = gn(
|
|
|
1480
1480
|
onClick: u,
|
|
1481
1481
|
...s,
|
|
1482
1482
|
...c,
|
|
1483
|
-
className:
|
|
1483
|
+
className: z(`${Yn}`, a),
|
|
1484
1484
|
children: n
|
|
1485
1485
|
}
|
|
1486
1486
|
) }),
|
|
@@ -1489,7 +1489,7 @@ const za = gn(
|
|
|
1489
1489
|
{
|
|
1490
1490
|
side: e,
|
|
1491
1491
|
sideOffset: 10,
|
|
1492
|
-
className:
|
|
1492
|
+
className: z(
|
|
1493
1493
|
"border-foreground/20 bg-foreground text-background"
|
|
1494
1494
|
),
|
|
1495
1495
|
children: [
|
|
@@ -1500,8 +1500,8 @@ const za = gn(
|
|
|
1500
1500
|
)
|
|
1501
1501
|
] }) })
|
|
1502
1502
|
);
|
|
1503
|
-
|
|
1504
|
-
function
|
|
1503
|
+
Ma.displayName = "IconButton";
|
|
1504
|
+
function za(e, n) {
|
|
1505
1505
|
var s, m;
|
|
1506
1506
|
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 = Xn(e), c = Jn(
|
|
1507
1507
|
n.dataSource,
|
|
@@ -1550,7 +1550,7 @@ function qa(e) {
|
|
|
1550
1550
|
/* @__PURE__ */ t(
|
|
1551
1551
|
"span",
|
|
1552
1552
|
{
|
|
1553
|
-
className:
|
|
1553
|
+
className: z(
|
|
1554
1554
|
"flex h-5 w-5 items-center justify-center rounded-full border text-[10px] font-medium tabular-nums",
|
|
1555
1555
|
c ? "border-foreground bg-foreground text-background" : i ? "border-foreground/30 bg-foreground/10 text-foreground" : "border-border/60 bg-background text-muted-foreground"
|
|
1556
1556
|
),
|
|
@@ -1560,7 +1560,7 @@ function qa(e) {
|
|
|
1560
1560
|
/* @__PURE__ */ t(
|
|
1561
1561
|
"span",
|
|
1562
1562
|
{
|
|
1563
|
-
className:
|
|
1563
|
+
className: z(
|
|
1564
1564
|
"text-[12px]",
|
|
1565
1565
|
c ? "font-medium text-foreground" : "text-muted-foreground"
|
|
1566
1566
|
),
|
|
@@ -1623,7 +1623,7 @@ function Tt(e) {
|
|
|
1623
1623
|
return /* @__PURE__ */ l("div", { className: "space-y-3", children: [
|
|
1624
1624
|
/* @__PURE__ */ t(rn, { control: n, onChange: s }),
|
|
1625
1625
|
/* @__PURE__ */ t(
|
|
1626
|
-
|
|
1626
|
+
Mt,
|
|
1627
1627
|
{
|
|
1628
1628
|
control: n,
|
|
1629
1629
|
availableFieldChoices: o,
|
|
@@ -1635,7 +1635,7 @@ function Tt(e) {
|
|
|
1635
1635
|
}
|
|
1636
1636
|
),
|
|
1637
1637
|
/* @__PURE__ */ t(
|
|
1638
|
-
|
|
1638
|
+
zt,
|
|
1639
1639
|
{
|
|
1640
1640
|
control: n,
|
|
1641
1641
|
value: a,
|
|
@@ -1892,7 +1892,7 @@ function Sr({
|
|
|
1892
1892
|
control: $e(e, n, Array.from(_))
|
|
1893
1893
|
}), J(null), T(null));
|
|
1894
1894
|
}, [n, c, _, e]);
|
|
1895
|
-
const
|
|
1895
|
+
const M = (r) => {
|
|
1896
1896
|
if (!C(r.type))
|
|
1897
1897
|
return {
|
|
1898
1898
|
fields: s || [],
|
|
@@ -2443,7 +2443,7 @@ function Sr({
|
|
|
2443
2443
|
] }) : null,
|
|
2444
2444
|
!p && n.length === 0 ? /* @__PURE__ */ t("div", { className: "rounded-md border border-dashed p-3 text-sm text-muted-foreground", children: d }) : null,
|
|
2445
2445
|
!p && n.map((r) => {
|
|
2446
|
-
const x =
|
|
2446
|
+
const x = M(r), b = i == null ? void 0 : i[r.id], L = Qe({
|
|
2447
2447
|
control: r,
|
|
2448
2448
|
defaultValues: o
|
|
2449
2449
|
}), R = P === r.id, E = "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";
|
|
@@ -2606,7 +2606,7 @@ function Sr({
|
|
|
2606
2606
|
)
|
|
2607
2607
|
] }) : null,
|
|
2608
2608
|
/* @__PURE__ */ t(
|
|
2609
|
-
|
|
2609
|
+
Mt,
|
|
2610
2610
|
{
|
|
2611
2611
|
control: r,
|
|
2612
2612
|
availableFieldChoices: x.fields,
|
|
@@ -2618,7 +2618,7 @@ function Sr({
|
|
|
2618
2618
|
}
|
|
2619
2619
|
),
|
|
2620
2620
|
r.initialValueStrategy === "saved_default" && /* @__PURE__ */ t(
|
|
2621
|
-
|
|
2621
|
+
zt,
|
|
2622
2622
|
{
|
|
2623
2623
|
control: r,
|
|
2624
2624
|
value: L,
|
|
@@ -2945,29 +2945,29 @@ function Ka({
|
|
|
2945
2945
|
return `${g} = ${qt} /* the latest value each time the card runs */`;
|
|
2946
2946
|
const Z = Yt(v.relativeMeta);
|
|
2947
2947
|
if (Z && (q === "between" || q === "not between")) {
|
|
2948
|
-
const V = q === "between" ? "BETWEEN" : "NOT BETWEEN", { label:
|
|
2948
|
+
const V = q === "between" ? "BETWEEN" : "NOT BETWEEN", { label: M, range: K } = Mn(Z, {
|
|
2949
2949
|
tz: (D == null ? void 0 : D.tz) ?? "UTC",
|
|
2950
2950
|
weekStart: (D == null ? void 0 : D.weekStart) ?? 1,
|
|
2951
2951
|
anchor: (D == null ? void 0 : D.anchor) ?? "now"
|
|
2952
2952
|
});
|
|
2953
|
-
return K ? `${g} ${V} '${K.start.toISOString()}' AND '${K.end.toISOString()}' /* ${
|
|
2953
|
+
return K ? `${g} ${V} '${K.start.toISOString()}' AND '${K.end.toISOString()}' /* ${M}: dates update each time the card runs */` : Xt(Z).dataAnchored ? `${g} ${V} ${M} /* dates count back from the latest data each time the card runs */` : `${g} ${V} ${M} /* dates follow your calendar each time the card runs */`;
|
|
2954
2954
|
}
|
|
2955
2955
|
if (v.field.dataType === "string" && !["in", "not in"].includes(v.operator))
|
|
2956
2956
|
typeof C == "string" ? C = `'${C}'` : Array.isArray(C) && (C = `'${C.join(", ")}'`);
|
|
2957
2957
|
else if (v.field.dataType === "date" || v.field.dataType === "datetime" || v.field.dataType === "timestamp")
|
|
2958
2958
|
if (v.operator === "between" && Array.isArray(C) && C.length === 2) {
|
|
2959
|
-
const V = C[0] ? `'${C[0]}'` : "NULL",
|
|
2960
|
-
return `${g} BETWEEN ${V} AND ${
|
|
2959
|
+
const V = C[0] ? `'${C[0]}'` : "NULL", M = C[1] ? `'${C[1]}'` : "NULL";
|
|
2960
|
+
return `${g} BETWEEN ${V} AND ${M}`;
|
|
2961
2961
|
} else if ((v.operator === "in" || v.operator === "not in") && Array.isArray(C)) {
|
|
2962
|
-
const V = C.map((
|
|
2962
|
+
const V = C.map((M) => M ? `'${M}'` : "NULL").join(", ");
|
|
2963
2963
|
return `${g} ${q} (${V})`;
|
|
2964
2964
|
} else typeof C == "string" || C instanceof Date ? C = `'${C}'` : Array.isArray(C) && C.length > 0 && (C = `'${C[0]}'`);
|
|
2965
2965
|
else if (["in", "not in"].includes(v.operator)) {
|
|
2966
2966
|
let V = [];
|
|
2967
2967
|
Array.isArray(C) ? V = C.map(
|
|
2968
|
-
(
|
|
2969
|
-
) : typeof C == "string" ? V = C.split(",").map((
|
|
2970
|
-
const K =
|
|
2968
|
+
(M) => typeof M == "string" ? `'${M}'` : String(M)
|
|
2969
|
+
) : typeof C == "string" ? V = C.split(",").map((M) => {
|
|
2970
|
+
const K = M.trim();
|
|
2971
2971
|
return v.field.dataType === "string" ? `'${K}'` : K;
|
|
2972
2972
|
}) : typeof C == "number" && (V = [String(C)]), C = `(${V.join(", ")})`;
|
|
2973
2973
|
}
|
|
@@ -2987,7 +2987,7 @@ function Ka({
|
|
|
2987
2987
|
}
|
|
2988
2988
|
}, S = (v) => {
|
|
2989
2989
|
const g = v.conditions.map(A), q = v.groups.map(
|
|
2990
|
-
(
|
|
2990
|
+
(M) => S(M)
|
|
2991
2991
|
), C = [...g, ...q].filter(Boolean);
|
|
2992
2992
|
if (C.length === 0) return "";
|
|
2993
2993
|
const Z = C.join(` ${v.logicalOperator} `), V = C.length > 1 ? `(${Z})` : Z;
|
|
@@ -3023,7 +3023,7 @@ function Qa({
|
|
|
3023
3023
|
/* @__PURE__ */ t(st, { asChild: !0, children: /* @__PURE__ */ t(
|
|
3024
3024
|
"div",
|
|
3025
3025
|
{
|
|
3026
|
-
className:
|
|
3026
|
+
className: z(
|
|
3027
3027
|
"w-[200px] overflow-hidden text-ellipsis whitespace-nowrap text-sm",
|
|
3028
3028
|
n
|
|
3029
3029
|
),
|
|
@@ -3053,14 +3053,14 @@ function Ha({
|
|
|
3053
3053
|
role: "combobox",
|
|
3054
3054
|
"aria-expanded": d,
|
|
3055
3055
|
title: e ? `${e.entityName}.${e.name}` : void 0,
|
|
3056
|
-
className:
|
|
3056
|
+
className: z(
|
|
3057
3057
|
"min-w-0 justify-between gap-1.5 font-normal",
|
|
3058
3058
|
!e && "text-muted-foreground",
|
|
3059
3059
|
u
|
|
3060
3060
|
),
|
|
3061
3061
|
children: [
|
|
3062
3062
|
s ? /* @__PURE__ */ t(Qa, { className: "w-auto min-w-0 flex-1 text-left text-[12px]", children: s }) : /* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate text-left", children: o }),
|
|
3063
|
-
/* @__PURE__ */ t(
|
|
3063
|
+
/* @__PURE__ */ t(zn, { className: "h-3.5 w-3.5 shrink-0 opacity-50" })
|
|
3064
3064
|
]
|
|
3065
3065
|
}
|
|
3066
3066
|
) }),
|
|
@@ -3099,7 +3099,7 @@ function on(e, n) {
|
|
|
3099
3099
|
), d = n ? n.dataSource : a, c = n ? n.connectionId || ((m = n.dataSource) == null ? void 0 : m.connectionId) : u || (a == null ? void 0 : a.connectionId) || o, i = Q(
|
|
3100
3100
|
() => ({
|
|
3101
3101
|
id: `card-filter-option:${e.id}`,
|
|
3102
|
-
...
|
|
3102
|
+
...za(e, { dataSource: d, connectionId: c })
|
|
3103
3103
|
}),
|
|
3104
3104
|
[c, d, e]
|
|
3105
3105
|
), s = Q(
|
|
@@ -3130,7 +3130,7 @@ function Pa({
|
|
|
3130
3130
|
}, y = (h) => {
|
|
3131
3131
|
i(h), !h && s.query && s.setQuery("");
|
|
3132
3132
|
};
|
|
3133
|
-
return /* @__PURE__ */ t("div", { className:
|
|
3133
|
+
return /* @__PURE__ */ t("div", { className: z("w-full", d), children: /* @__PURE__ */ l(it, { open: c, onOpenChange: y, modal: !0, children: [
|
|
3134
3134
|
/* @__PURE__ */ t(lt, { asChild: !0, children: /* @__PURE__ */ l(
|
|
3135
3135
|
G,
|
|
3136
3136
|
{
|
|
@@ -3234,7 +3234,7 @@ function Ya({
|
|
|
3234
3234
|
size: "xs",
|
|
3235
3235
|
role: "combobox",
|
|
3236
3236
|
"aria-expanded": c,
|
|
3237
|
-
className:
|
|
3237
|
+
className: z(
|
|
3238
3238
|
"min-w-0 flex-1 justify-between gap-1.5 px-2 font-normal",
|
|
3239
3239
|
d
|
|
3240
3240
|
),
|
|
@@ -3242,7 +3242,7 @@ function Ya({
|
|
|
3242
3242
|
/* @__PURE__ */ t(
|
|
3243
3243
|
"span",
|
|
3244
3244
|
{
|
|
3245
|
-
className:
|
|
3245
|
+
className: z("truncate", !a && "text-muted-foreground"),
|
|
3246
3246
|
children: a ? f : u
|
|
3247
3247
|
}
|
|
3248
3248
|
),
|
|
@@ -3352,7 +3352,7 @@ function Xa({
|
|
|
3352
3352
|
enableTimePrecision: pa(u),
|
|
3353
3353
|
staticTimeInputs: !1,
|
|
3354
3354
|
showRelativeTab: m,
|
|
3355
|
-
className:
|
|
3355
|
+
className: z("min-w-0", c),
|
|
3356
3356
|
buttonClassName: "h-7 text-[12px] [&>span]:text-[12px]",
|
|
3357
3357
|
placeholder: "Select date…"
|
|
3358
3358
|
}
|
|
@@ -3459,7 +3459,7 @@ function dn({
|
|
|
3459
3459
|
{
|
|
3460
3460
|
size: "xs",
|
|
3461
3461
|
"aria-label": a,
|
|
3462
|
-
className:
|
|
3462
|
+
className: z(ln, "font-medium"),
|
|
3463
3463
|
children: /* @__PURE__ */ t(be, {})
|
|
3464
3464
|
}
|
|
3465
3465
|
),
|
|
@@ -3499,7 +3499,7 @@ function cn({
|
|
|
3499
3499
|
{
|
|
3500
3500
|
ref: y,
|
|
3501
3501
|
style: _,
|
|
3502
|
-
className:
|
|
3502
|
+
className: z(
|
|
3503
3503
|
"flex items-center gap-2 rounded-control px-1.5 py-1 transition-colors hover:bg-muted/40",
|
|
3504
3504
|
k && "z-50 opacity-50"
|
|
3505
3505
|
),
|
|
@@ -3522,7 +3522,7 @@ function cn({
|
|
|
3522
3522
|
onValueChange: (T) => d(a, T),
|
|
3523
3523
|
"aria-label": "Logical operator"
|
|
3524
3524
|
}
|
|
3525
|
-
) : /* @__PURE__ */ t("span", { className:
|
|
3525
|
+
) : /* @__PURE__ */ t("span", { className: z(ln, "text-center", gt), children: "Where" }),
|
|
3526
3526
|
/* @__PURE__ */ t(
|
|
3527
3527
|
Ha,
|
|
3528
3528
|
{
|
|
@@ -3536,7 +3536,7 @@ function cn({
|
|
|
3536
3536
|
},
|
|
3537
3537
|
availableFields: c,
|
|
3538
3538
|
placeholder: "Select field",
|
|
3539
|
-
className:
|
|
3539
|
+
className: z("w-60 shrink-0", $t)
|
|
3540
3540
|
}
|
|
3541
3541
|
),
|
|
3542
3542
|
/* @__PURE__ */ l(
|
|
@@ -3554,7 +3554,7 @@ function cn({
|
|
|
3554
3554
|
{
|
|
3555
3555
|
size: "xs",
|
|
3556
3556
|
"aria-label": "Operator",
|
|
3557
|
-
className:
|
|
3557
|
+
className: z("w-40 shrink-0", $t),
|
|
3558
3558
|
children: /* @__PURE__ */ t(be, { children: e.operator ? Xe(e.operator) : "" })
|
|
3559
3559
|
}
|
|
3560
3560
|
),
|
|
@@ -3670,7 +3670,7 @@ function un({
|
|
|
3670
3670
|
type: "button",
|
|
3671
3671
|
size: "xs",
|
|
3672
3672
|
variant: "outline",
|
|
3673
|
-
className:
|
|
3673
|
+
className: z("gap-1.5", Ft),
|
|
3674
3674
|
onClick: e,
|
|
3675
3675
|
children: [
|
|
3676
3676
|
/* @__PURE__ */ t(Ve, { className: "h-3 w-3" }),
|
|
@@ -3684,7 +3684,7 @@ function un({
|
|
|
3684
3684
|
type: "button",
|
|
3685
3685
|
size: "xs",
|
|
3686
3686
|
variant: "ghost",
|
|
3687
|
-
className:
|
|
3687
|
+
className: z("gap-1.5 text-muted-foreground hover:text-foreground", Ft),
|
|
3688
3688
|
onClick: n,
|
|
3689
3689
|
children: [
|
|
3690
3690
|
/* @__PURE__ */ t(Ve, { className: "h-3 w-3" }),
|
|
@@ -3744,7 +3744,7 @@ function or({
|
|
|
3744
3744
|
{
|
|
3745
3745
|
ref: j,
|
|
3746
3746
|
style: J,
|
|
3747
|
-
className:
|
|
3747
|
+
className: z(
|
|
3748
3748
|
n > 0 && "mt-2 overflow-hidden rounded-[6px] border border-border/60",
|
|
3749
3749
|
P && "z-50 opacity-50"
|
|
3750
3750
|
),
|
|
@@ -3797,7 +3797,7 @@ function or({
|
|
|
3797
3797
|
}
|
|
3798
3798
|
)
|
|
3799
3799
|
] }),
|
|
3800
|
-
/* @__PURE__ */ l("div", { className:
|
|
3800
|
+
/* @__PURE__ */ l("div", { className: z(n > 0 && "p-2"), children: [
|
|
3801
3801
|
/* @__PURE__ */ t(
|
|
3802
3802
|
Re,
|
|
3803
3803
|
{
|
|
@@ -3810,10 +3810,10 @@ function or({
|
|
|
3810
3810
|
collisionDetection: Ee,
|
|
3811
3811
|
onDragEnd: p,
|
|
3812
3812
|
children: /* @__PURE__ */ t(
|
|
3813
|
-
|
|
3813
|
+
Me,
|
|
3814
3814
|
{
|
|
3815
3815
|
items: e.conditions.map((A) => A.id),
|
|
3816
|
-
strategy:
|
|
3816
|
+
strategy: ze,
|
|
3817
3817
|
children: /* @__PURE__ */ t("div", { className: "space-y-0.5", children: e.conditions.map((A, S) => /* @__PURE__ */ t(
|
|
3818
3818
|
cn,
|
|
3819
3819
|
{
|
|
@@ -3846,10 +3846,10 @@ function or({
|
|
|
3846
3846
|
collisionDetection: Ee,
|
|
3847
3847
|
onDragEnd: I,
|
|
3848
3848
|
children: /* @__PURE__ */ t(
|
|
3849
|
-
|
|
3849
|
+
Me,
|
|
3850
3850
|
{
|
|
3851
3851
|
items: e.groups.map((A) => A.id),
|
|
3852
|
-
strategy:
|
|
3852
|
+
strategy: ze,
|
|
3853
3853
|
children: e.groups.map(
|
|
3854
3854
|
(A) => h(A, n + 1, e.id)
|
|
3855
3855
|
)
|
|
@@ -3916,10 +3916,10 @@ function Ir({
|
|
|
3916
3916
|
sensors: p,
|
|
3917
3917
|
collisionDetection: Ee,
|
|
3918
3918
|
onDragEnd: (V) => {
|
|
3919
|
-
const { active:
|
|
3920
|
-
if (K &&
|
|
3919
|
+
const { active: M, over: K } = V;
|
|
3920
|
+
if (K && M.id !== K.id) {
|
|
3921
3921
|
const U = g.conditions.findIndex(
|
|
3922
|
-
(te) => te.id ===
|
|
3922
|
+
(te) => te.id === M.id
|
|
3923
3923
|
), ee = g.conditions.findIndex(
|
|
3924
3924
|
(te) => te.id === K.id
|
|
3925
3925
|
);
|
|
@@ -3927,15 +3927,15 @@ function Ir({
|
|
|
3927
3927
|
}
|
|
3928
3928
|
},
|
|
3929
3929
|
children: /* @__PURE__ */ t(
|
|
3930
|
-
|
|
3930
|
+
Me,
|
|
3931
3931
|
{
|
|
3932
3932
|
items: g.conditions.map((V) => V.id),
|
|
3933
|
-
strategy:
|
|
3934
|
-
children: /* @__PURE__ */ t("div", { className: "space-y-0.5", children: g.conditions.map((V,
|
|
3933
|
+
strategy: ze,
|
|
3934
|
+
children: /* @__PURE__ */ t("div", { className: "space-y-0.5", children: g.conditions.map((V, M) => /* @__PURE__ */ t(
|
|
3935
3935
|
cn,
|
|
3936
3936
|
{
|
|
3937
3937
|
condition: V,
|
|
3938
|
-
index:
|
|
3938
|
+
index: M,
|
|
3939
3939
|
groupId: g.id,
|
|
3940
3940
|
groupLogicalOperator: g.logicalOperator,
|
|
3941
3941
|
onRemoveCondition: h,
|
|
@@ -3957,10 +3957,10 @@ function Ir({
|
|
|
3957
3957
|
sensors: p,
|
|
3958
3958
|
collisionDetection: Ee,
|
|
3959
3959
|
onDragEnd: (V) => {
|
|
3960
|
-
const { active:
|
|
3961
|
-
if (K &&
|
|
3960
|
+
const { active: M, over: K } = V;
|
|
3961
|
+
if (K && M.id !== K.id) {
|
|
3962
3962
|
const U = g.groups.findIndex(
|
|
3963
|
-
(te) => te.id ===
|
|
3963
|
+
(te) => te.id === M.id
|
|
3964
3964
|
), ee = g.groups.findIndex(
|
|
3965
3965
|
(te) => te.id === K.id
|
|
3966
3966
|
);
|
|
@@ -3968,10 +3968,10 @@ function Ir({
|
|
|
3968
3968
|
}
|
|
3969
3969
|
},
|
|
3970
3970
|
children: /* @__PURE__ */ t(
|
|
3971
|
-
|
|
3971
|
+
Me,
|
|
3972
3972
|
{
|
|
3973
3973
|
items: g.groups.map((V) => V.id),
|
|
3974
|
-
strategy:
|
|
3974
|
+
strategy: ze,
|
|
3975
3975
|
children: g.groups.map(
|
|
3976
3976
|
(V) => S(V, q + 1, g.id)
|
|
3977
3977
|
)
|
|
@@ -4016,7 +4016,7 @@ function Ir({
|
|
|
4016
4016
|
g.id
|
|
4017
4017
|
);
|
|
4018
4018
|
}, v = Hn(e);
|
|
4019
|
-
return /* @__PURE__ */ l("div", { className:
|
|
4019
|
+
return /* @__PURE__ */ l("div", { className: z("group/filters", i ? "flex flex-col" : "flex min-h-0 flex-1 flex-col"), "data-inline": i || void 0, children: [
|
|
4020
4020
|
/* @__PURE__ */ l("div", { className: i ? "" : "min-h-0 flex-1 overflow-y-auto px-3 py-3", children: [
|
|
4021
4021
|
f ? /* @__PURE__ */ l("div", { className: "flex items-center justify-center gap-2 py-6 text-[12px] text-muted-foreground", children: [
|
|
4022
4022
|
/* @__PURE__ */ t(fn, { className: "h-3.5 w-3.5 animate-spin" }),
|
|
@@ -4043,7 +4043,7 @@ function Ir({
|
|
|
4043
4043
|
/* @__PURE__ */ t("span", { className: "text-[11px] text-muted-foreground", children: "Nest conditions in groups" })
|
|
4044
4044
|
] }),
|
|
4045
4045
|
J && !i && /* @__PURE__ */ l("div", { className: "mt-3 border-t border-border/60 pt-3", children: [
|
|
4046
|
-
/* @__PURE__ */ t("div", { className:
|
|
4046
|
+
/* @__PURE__ */ t("div", { className: z("mb-1.5", gt), children: "Where clause" }),
|
|
4047
4047
|
/* @__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) })
|
|
4048
4048
|
] })
|
|
4049
4049
|
] }),
|
|
@@ -4076,13 +4076,13 @@ export {
|
|
|
4076
4076
|
Cr as A,
|
|
4077
4077
|
Sr as C,
|
|
4078
4078
|
Nr as F,
|
|
4079
|
-
|
|
4079
|
+
Ma as I,
|
|
4080
4080
|
ya as L,
|
|
4081
4081
|
kr as V,
|
|
4082
4082
|
wr as a,
|
|
4083
4083
|
Ir as b,
|
|
4084
4084
|
Zt as c,
|
|
4085
|
-
|
|
4085
|
+
za as d,
|
|
4086
4086
|
Va as g,
|
|
4087
4087
|
en as i,
|
|
4088
4088
|
Dr as u
|