@invect/ui 0.0.7 → 0.0.9
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/{Invect-BndIqK9R.js → Invect-DKeWRdqo.js} +30004 -29859
- package/dist/api/client.d.ts +5 -0
- package/dist/api/node-data.api.d.ts +1 -1
- package/dist/assets/provider-icons/index.d.ts +3 -4
- package/dist/{babel-C9OtljFZ.js → babel-BAnO5AO4.js} +5 -5
- package/dist/demo.js +31 -31
- package/dist/{estree-ClbRfS-1.js → estree-CKaJvoWR.js} +3 -3
- package/dist/index.css +1 -1
- package/dist/index.js +194 -194
- package/dist/stores/uiStore.d.ts +4 -0
- package/dist/svg-raw.d.ts +4 -0
- package/package.json +5 -5
- package/src/api/client.ts +11 -5
- package/src/api/use-flow-run-stream.ts +1 -5
- package/src/assets/provider-icons/cloudwatch.svg +14 -0
- package/src/assets/provider-icons/dropbox.svg +10 -0
- package/src/assets/provider-icons/facebook.svg +8 -0
- package/src/assets/provider-icons/google_analytics.svg +7 -0
- package/src/assets/provider-icons/index.ts +46 -43
- package/src/assets/provider-icons/jira.svg +18 -0
- package/src/assets/provider-icons/microsoft_teams.svg +27 -0
- package/src/assets/provider-icons/salesforce.svg +16 -0
- package/src/assets/provider-icons/shopify.svg +8 -0
- package/src/assets/provider-icons/trello.svg +16 -0
- package/src/assets/provider-icons/twitter.svg +7 -0
- package/src/components/chat/ChatMessageList.tsx +3 -27
- package/src/components/chat/ChatPanel.tsx +3 -3
- package/src/components/chat/InlineCredentialSetup.tsx +32 -19
- package/src/components/chat/use-chat.ts +1 -0
- package/src/components/credentials/CreateCredentialModal.tsx +89 -2
- package/src/components/credentials/EditCredentialModal.tsx +82 -2
- package/src/components/flow-editor/FlowHeader.tsx +1 -22
- package/src/components/flow-editor/FlowLayout.tsx +6 -27
- package/src/components/flow-editor/NodeSidebar.tsx +5 -12
- package/src/components/flow-editor/RunControls.tsx +12 -12
- package/src/components/flow-editor/node-config-panel/ConfigFieldWithTemplate.tsx +1 -2
- package/src/components/flow-editor/node-config-panel/panels/ConfigurationPanel.tsx +1 -12
- package/src/components/graph/LayoutSelector.tsx +2 -2
- package/src/components/shared/ProviderIcon.tsx +35 -1
- package/src/stores/uiStore.ts +23 -0
- package/src/svg-raw.d.ts +4 -0
package/dist/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as e, $t as t, A as n, At as r, Bt as i, C as a, Ct as o, D as s, Dt as c, E as l, Et as u, F as d,
|
|
3
|
-
import
|
|
4
|
-
import { useMutation as
|
|
5
|
-
import { Fragment as
|
|
6
|
-
import { ChevronRight as
|
|
7
|
-
import { createSlot as
|
|
8
|
-
import * as
|
|
2
|
+
import { $ as e, $t as t, A as n, At as r, Bt as i, C as a, Ct as o, D as s, Dt as c, E as l, Et as u, F as d, Ft as f, G as p, Gt as m, H as h, Ht as g, I as _, J as v, Jt as y, K as ee, Lt as te, M as ne, Mt as re, N as ie, Nt as ae, O as oe, Ot as se, P as ce, Qt as le, Rt as ue, S as de, St as fe, T as pe, Tt as me, U as he, Ut as ge, Vt as _e, W as ve, Wt as ye, X as be, Y as xe, Yt as Se, Z as Ce, Zt as we, _ as Te, _t as Ee, at as b, b as De, bt as Oe, c as ke, ct as Ae, d as x, dt as je, en as Me, et as Ne, f as Pe, ft as Fe, g as Ie, gt as Le, h as Re, ht as ze, i as Be, it as Ve, j as He, jt as Ue, k as We, kt as Ge, l as Ke, lt as qe, m as Je, mt as Ye, n as Xe, nt as Ze, ot as S, p as Qe, pt as $e, q as et, qt as C, r as tt, rt as nt, s as rt, st as w, t as it, tn as at, tt as ot, u as st, ut as ct, v as lt, vt as ut, w as dt, wt as ft, x as pt, xt as T, y as mt, yt as ht, zt as gt } from "./Invect-DKeWRdqo.js";
|
|
3
|
+
import E from "react";
|
|
4
|
+
import { useMutation as D, useQuery as O, useQueryClient as k } from "@tanstack/react-query";
|
|
5
|
+
import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
|
|
6
|
+
import { ChevronRight as _t, CircleIcon as vt } from "lucide-react";
|
|
7
|
+
import { createSlot as N } from "@radix-ui/react-slot";
|
|
8
|
+
import * as P from "@radix-ui/react-dropdown-menu";
|
|
9
9
|
//#region src/InvectShell.tsx
|
|
10
|
-
var
|
|
10
|
+
var F = E.memo(({ children: e, theme: t = "dark", className: n }) => /* @__PURE__ */ j(Se, {
|
|
11
11
|
defaultTheme: t,
|
|
12
12
|
storageKey: "invect-ui-theme",
|
|
13
13
|
className: n,
|
|
14
14
|
children: e
|
|
15
15
|
}));
|
|
16
|
-
|
|
16
|
+
F.displayName = "InvectShell";
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/stores/executionViewStore.ts
|
|
19
|
-
var
|
|
19
|
+
var I = {
|
|
20
20
|
activeFlowRunId: null,
|
|
21
21
|
activeFlowId: null,
|
|
22
22
|
selectedExecutionNodeId: null,
|
|
@@ -28,8 +28,8 @@ var P = {
|
|
|
28
28
|
sortOrder: "desc",
|
|
29
29
|
logsExpanded: !1,
|
|
30
30
|
selectedLogNodeId: null
|
|
31
|
-
},
|
|
32
|
-
...
|
|
31
|
+
}, L = Ze()(Ne(ot(e((e) => ({
|
|
32
|
+
...I,
|
|
33
33
|
setActiveExecution: (t, n) => e((e) => {
|
|
34
34
|
e.activeFlowId = t, e.activeFlowRunId = n, e.selectedExecutionNodeId = null, e.selectedLogNodeId = null;
|
|
35
35
|
}),
|
|
@@ -69,24 +69,24 @@ var P = {
|
|
|
69
69
|
selectLogNode: (t) => e((e) => {
|
|
70
70
|
e.selectedLogNodeId = t;
|
|
71
71
|
}),
|
|
72
|
-
reset: () => e(() => ({ ...
|
|
73
|
-
}))), { name: "execution-view" })),
|
|
72
|
+
reset: () => e(() => ({ ...I }))
|
|
73
|
+
}))), { name: "execution-view" })), yt = () => L((e) => e.activeFlowRunId), bt = () => L((e) => e.activeFlowId), xt = () => L((e) => e.selectedExecutionNodeId), St = () => L((e) => e.statusFilter), Ct = () => L((e) => ({
|
|
74
74
|
page: e.page,
|
|
75
75
|
limit: e.limit,
|
|
76
76
|
setPage: e.setPage,
|
|
77
77
|
setLimit: e.setLimit
|
|
78
|
-
})),
|
|
78
|
+
})), wt = () => L((e) => ({
|
|
79
79
|
sortBy: e.sortBy,
|
|
80
80
|
sortOrder: e.sortOrder,
|
|
81
81
|
setSortBy: e.setSortBy,
|
|
82
82
|
setSortOrder: e.setSortOrder
|
|
83
|
-
})),
|
|
83
|
+
})), Tt = () => L((e) => ({
|
|
84
84
|
logsExpanded: e.logsExpanded,
|
|
85
85
|
selectedLogNodeId: e.selectedLogNodeId,
|
|
86
86
|
toggleLogsExpanded: e.toggleLogsExpanded,
|
|
87
87
|
setLogsExpanded: e.setLogsExpanded,
|
|
88
88
|
selectLogNode: e.selectLogNode
|
|
89
|
-
})),
|
|
89
|
+
})), Et = () => L((e) => ({
|
|
90
90
|
statusFilter: e.statusFilter,
|
|
91
91
|
flowIdFilter: e.flowIdFilter,
|
|
92
92
|
setStatusFilter: e.setStatusFilter,
|
|
@@ -95,80 +95,80 @@ var P = {
|
|
|
95
95
|
}));
|
|
96
96
|
//#endregion
|
|
97
97
|
//#region src/api/triggers.api.ts
|
|
98
|
-
function
|
|
99
|
-
let
|
|
100
|
-
return
|
|
101
|
-
queryKey:
|
|
102
|
-
queryFn: () =>
|
|
98
|
+
function Dt(e) {
|
|
99
|
+
let n = t();
|
|
100
|
+
return O({
|
|
101
|
+
queryKey: y.triggers(e),
|
|
102
|
+
queryFn: () => n.listTriggersForFlow(e),
|
|
103
103
|
enabled: !!e,
|
|
104
104
|
staleTime: 1e3 * 30
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
let
|
|
109
|
-
return
|
|
110
|
-
queryKey:
|
|
111
|
-
queryFn: () =>
|
|
107
|
+
function Ot(e) {
|
|
108
|
+
let n = t();
|
|
109
|
+
return O({
|
|
110
|
+
queryKey: y.trigger(e),
|
|
111
|
+
queryFn: () => n.getTrigger(e),
|
|
112
112
|
enabled: !!e
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
let e =
|
|
117
|
-
return
|
|
115
|
+
function kt() {
|
|
116
|
+
let e = t(), n = k();
|
|
117
|
+
return D({
|
|
118
118
|
mutationFn: ({ flowId: t, input: n }) => e.createTrigger(t, n),
|
|
119
|
-
onSuccess: (e, { flowId:
|
|
120
|
-
|
|
119
|
+
onSuccess: (e, { flowId: t }) => {
|
|
120
|
+
n.invalidateQueries({ queryKey: y.triggers(t) });
|
|
121
121
|
},
|
|
122
122
|
onError: (e) => {
|
|
123
|
-
console.error("Error creating trigger:",
|
|
123
|
+
console.error("Error creating trigger:", C(e));
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
let e =
|
|
129
|
-
return
|
|
127
|
+
function At() {
|
|
128
|
+
let e = t(), n = k();
|
|
129
|
+
return D({
|
|
130
130
|
mutationFn: ({ triggerId: t, input: n }) => e.updateTrigger(t, n),
|
|
131
|
-
onSuccess: (e, { triggerId:
|
|
132
|
-
|
|
131
|
+
onSuccess: (e, { triggerId: t, flowId: r }) => {
|
|
132
|
+
n.invalidateQueries({ queryKey: y.trigger(t) }), n.invalidateQueries({ queryKey: y.triggers(r) });
|
|
133
133
|
},
|
|
134
134
|
onError: (e) => {
|
|
135
|
-
console.error("Error updating trigger:",
|
|
135
|
+
console.error("Error updating trigger:", C(e));
|
|
136
136
|
}
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
let e =
|
|
141
|
-
return
|
|
139
|
+
function jt() {
|
|
140
|
+
let e = t(), n = k();
|
|
141
|
+
return D({
|
|
142
142
|
mutationFn: ({ triggerId: t }) => e.deleteTrigger(t),
|
|
143
|
-
onSuccess: (e, { flowId:
|
|
144
|
-
|
|
143
|
+
onSuccess: (e, { flowId: t }) => {
|
|
144
|
+
n.invalidateQueries({ queryKey: y.triggers(t) });
|
|
145
145
|
},
|
|
146
146
|
onError: (e) => {
|
|
147
|
-
console.error("Error deleting trigger:",
|
|
147
|
+
console.error("Error deleting trigger:", C(e));
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
let e =
|
|
153
|
-
return
|
|
151
|
+
function Mt() {
|
|
152
|
+
let e = t(), n = k();
|
|
153
|
+
return D({
|
|
154
154
|
mutationFn: ({ flowId: t, definition: n }) => e.syncTriggersForFlow(t, n),
|
|
155
|
-
onSuccess: (e, { flowId:
|
|
156
|
-
|
|
155
|
+
onSuccess: (e, { flowId: t }) => {
|
|
156
|
+
n.invalidateQueries({ queryKey: y.triggers(t) });
|
|
157
157
|
},
|
|
158
158
|
onError: (e) => {
|
|
159
|
-
console.error("Error syncing triggers:",
|
|
159
|
+
console.error("Error syncing triggers:", C(e));
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
//#endregion
|
|
164
164
|
//#region ../../node_modules/.pnpm/@radix-ui+react-collection@1.1.7_@types+react-dom@18.3.7_@types+react@18.3.7__@types+re_9c54a6c78143ba4955bf0911e594a119/node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
165
|
-
function
|
|
166
|
-
let t = e + "CollectionProvider", [n, r] =
|
|
165
|
+
function Nt(e) {
|
|
166
|
+
let t = e + "CollectionProvider", [n, r] = b(t), [i, a] = n(t, {
|
|
167
167
|
collectionRef: { current: null },
|
|
168
168
|
itemMap: /* @__PURE__ */ new Map()
|
|
169
169
|
}), o = (e) => {
|
|
170
|
-
let { scope: t, children: n } = e, r =
|
|
171
|
-
return /* @__PURE__ */
|
|
170
|
+
let { scope: t, children: n } = e, r = E.useRef(null), a = E.useRef(/* @__PURE__ */ new Map()).current;
|
|
171
|
+
return /* @__PURE__ */ j(i, {
|
|
172
172
|
scope: t,
|
|
173
173
|
itemMap: a,
|
|
174
174
|
collectionRef: r,
|
|
@@ -176,29 +176,29 @@ function Pt(e) {
|
|
|
176
176
|
});
|
|
177
177
|
};
|
|
178
178
|
o.displayName = t;
|
|
179
|
-
let s = e + "CollectionSlot", c =
|
|
179
|
+
let s = e + "CollectionSlot", c = N(s), l = E.forwardRef((e, t) => {
|
|
180
180
|
let { scope: n, children: r } = e;
|
|
181
|
-
return /* @__PURE__ */
|
|
182
|
-
ref:
|
|
181
|
+
return /* @__PURE__ */ j(c, {
|
|
182
|
+
ref: S(t, a(s, n).collectionRef),
|
|
183
183
|
children: r
|
|
184
184
|
});
|
|
185
185
|
});
|
|
186
186
|
l.displayName = s;
|
|
187
|
-
let u = e + "CollectionItemSlot", d = "data-radix-collection-item",
|
|
188
|
-
let { scope: n, children: r, ...i } = e, o =
|
|
189
|
-
return
|
|
187
|
+
let u = e + "CollectionItemSlot", d = "data-radix-collection-item", f = N(u), p = E.forwardRef((e, t) => {
|
|
188
|
+
let { scope: n, children: r, ...i } = e, o = E.useRef(null), s = S(t, o), c = a(u, n);
|
|
189
|
+
return E.useEffect(() => (c.itemMap.set(o, {
|
|
190
190
|
ref: o,
|
|
191
191
|
...i
|
|
192
|
-
}), () => void c.itemMap.delete(o))), /* @__PURE__ */
|
|
192
|
+
}), () => void c.itemMap.delete(o))), /* @__PURE__ */ j(f, {
|
|
193
193
|
[d]: "",
|
|
194
194
|
ref: s,
|
|
195
195
|
children: r
|
|
196
196
|
});
|
|
197
197
|
});
|
|
198
|
-
|
|
199
|
-
function
|
|
198
|
+
p.displayName = u;
|
|
199
|
+
function m(t) {
|
|
200
200
|
let n = a(e + "CollectionConsumer", t);
|
|
201
|
-
return
|
|
201
|
+
return E.useCallback(() => {
|
|
202
202
|
let e = n.collectionRef.current;
|
|
203
203
|
if (!e) return [];
|
|
204
204
|
let t = Array.from(e.querySelectorAll(`[${d}]`));
|
|
@@ -209,80 +209,80 @@ function Pt(e) {
|
|
|
209
209
|
{
|
|
210
210
|
Provider: o,
|
|
211
211
|
Slot: l,
|
|
212
|
-
ItemSlot:
|
|
212
|
+
ItemSlot: p
|
|
213
213
|
},
|
|
214
|
-
|
|
214
|
+
m,
|
|
215
215
|
r
|
|
216
216
|
];
|
|
217
217
|
}
|
|
218
218
|
//#endregion
|
|
219
219
|
//#region ../../node_modules/.pnpm/@radix-ui+react-accordion@1.2.12_@types+react-dom@18.3.7_@types+react@18.3.7__@types+re_38986d0a8e303276d4d07a19b1e5d4a9/node_modules/@radix-ui/react-accordion/dist/index.mjs
|
|
220
|
-
var
|
|
220
|
+
var R = "Accordion", Pt = [
|
|
221
221
|
"Home",
|
|
222
222
|
"End",
|
|
223
223
|
"ArrowDown",
|
|
224
224
|
"ArrowUp",
|
|
225
225
|
"ArrowLeft",
|
|
226
226
|
"ArrowRight"
|
|
227
|
-
], [
|
|
227
|
+
], [z, Ft, It] = Nt(R), [B, Lt] = b(R, [It, x]), V = x(), H = E.forwardRef((e, t) => {
|
|
228
228
|
let { type: n, ...r } = e, i = r, a = r;
|
|
229
|
-
return /* @__PURE__ */
|
|
229
|
+
return /* @__PURE__ */ j(z.Provider, {
|
|
230
230
|
scope: e.__scopeAccordion,
|
|
231
|
-
children: n === "multiple" ? /* @__PURE__ */
|
|
231
|
+
children: n === "multiple" ? /* @__PURE__ */ j(Vt, {
|
|
232
232
|
...a,
|
|
233
233
|
ref: t
|
|
234
|
-
}) : /* @__PURE__ */
|
|
234
|
+
}) : /* @__PURE__ */ j(Bt, {
|
|
235
235
|
...i,
|
|
236
236
|
ref: t
|
|
237
237
|
})
|
|
238
238
|
});
|
|
239
239
|
});
|
|
240
|
-
|
|
241
|
-
var [
|
|
240
|
+
H.displayName = R;
|
|
241
|
+
var [U, Rt] = B(R), [W, zt] = B(R, { collapsible: !1 }), Bt = E.forwardRef((e, t) => {
|
|
242
242
|
let { value: n, defaultValue: r, onValueChange: i = () => {}, collapsible: a = !1, ...o } = e, [s, c] = d({
|
|
243
243
|
prop: n,
|
|
244
244
|
defaultProp: r ?? "",
|
|
245
245
|
onChange: i,
|
|
246
|
-
caller:
|
|
246
|
+
caller: R
|
|
247
247
|
});
|
|
248
|
-
return /* @__PURE__ */
|
|
248
|
+
return /* @__PURE__ */ j(U, {
|
|
249
249
|
scope: e.__scopeAccordion,
|
|
250
|
-
value:
|
|
250
|
+
value: E.useMemo(() => s ? [s] : [], [s]),
|
|
251
251
|
onItemOpen: c,
|
|
252
|
-
onItemClose:
|
|
253
|
-
children: /* @__PURE__ */
|
|
252
|
+
onItemClose: E.useCallback(() => a && c(""), [a, c]),
|
|
253
|
+
children: /* @__PURE__ */ j(W, {
|
|
254
254
|
scope: e.__scopeAccordion,
|
|
255
255
|
collapsible: a,
|
|
256
|
-
children: /* @__PURE__ */
|
|
256
|
+
children: /* @__PURE__ */ j(K, {
|
|
257
257
|
...o,
|
|
258
258
|
ref: t
|
|
259
259
|
})
|
|
260
260
|
})
|
|
261
261
|
});
|
|
262
|
-
}),
|
|
262
|
+
}), Vt = E.forwardRef((e, t) => {
|
|
263
263
|
let { value: n, defaultValue: r, onValueChange: i = () => {}, ...a } = e, [o, s] = d({
|
|
264
264
|
prop: n,
|
|
265
265
|
defaultProp: r ?? [],
|
|
266
266
|
onChange: i,
|
|
267
|
-
caller:
|
|
268
|
-
}), c =
|
|
269
|
-
return /* @__PURE__ */
|
|
267
|
+
caller: R
|
|
268
|
+
}), c = E.useCallback((e) => s((t = []) => [...t, e]), [s]), l = E.useCallback((e) => s((t = []) => t.filter((t) => t !== e)), [s]);
|
|
269
|
+
return /* @__PURE__ */ j(U, {
|
|
270
270
|
scope: e.__scopeAccordion,
|
|
271
271
|
value: o,
|
|
272
272
|
onItemOpen: c,
|
|
273
273
|
onItemClose: l,
|
|
274
|
-
children: /* @__PURE__ */
|
|
274
|
+
children: /* @__PURE__ */ j(W, {
|
|
275
275
|
scope: e.__scopeAccordion,
|
|
276
276
|
collapsible: !0,
|
|
277
|
-
children: /* @__PURE__ */
|
|
277
|
+
children: /* @__PURE__ */ j(K, {
|
|
278
278
|
...a,
|
|
279
279
|
ref: t
|
|
280
280
|
})
|
|
281
281
|
})
|
|
282
282
|
});
|
|
283
|
-
}), [
|
|
284
|
-
let { __scopeAccordion: n, disabled: r, dir: i, orientation: a = "vertical", ...o } = e, s =
|
|
285
|
-
if (!
|
|
283
|
+
}), [Ht, G] = B(R), K = E.forwardRef((e, t) => {
|
|
284
|
+
let { __scopeAccordion: n, disabled: r, dir: i, orientation: a = "vertical", ...o } = e, s = S(E.useRef(null), t), c = Ft(n), l = Ve(i) === "ltr", u = nt(e.onKeyDown, (e) => {
|
|
285
|
+
if (!Pt.includes(e.key)) return;
|
|
286
286
|
let t = e.target, n = c().filter((e) => !e.ref.current?.disabled), r = n.findIndex((e) => e.ref.current === t), i = n.length;
|
|
287
287
|
if (r === -1) return;
|
|
288
288
|
e.preventDefault();
|
|
@@ -313,14 +313,14 @@ var [V, zt] = R(I), [H, Bt] = R(I, { collapsible: !1 }), Vt = w.forwardRef((e, t
|
|
|
313
313
|
}
|
|
314
314
|
n[o % i].ref.current?.focus();
|
|
315
315
|
});
|
|
316
|
-
return /* @__PURE__ */
|
|
316
|
+
return /* @__PURE__ */ j(Ht, {
|
|
317
317
|
scope: n,
|
|
318
318
|
disabled: r,
|
|
319
319
|
direction: i,
|
|
320
320
|
orientation: a,
|
|
321
|
-
children: /* @__PURE__ */
|
|
321
|
+
children: /* @__PURE__ */ j(z.Slot, {
|
|
322
322
|
scope: n,
|
|
323
|
-
children: /* @__PURE__ */
|
|
323
|
+
children: /* @__PURE__ */ j(w.div, {
|
|
324
324
|
...o,
|
|
325
325
|
"data-orientation": a,
|
|
326
326
|
ref: s,
|
|
@@ -328,16 +328,16 @@ var [V, zt] = R(I), [H, Bt] = R(I, { collapsible: !1 }), Vt = w.forwardRef((e, t
|
|
|
328
328
|
})
|
|
329
329
|
})
|
|
330
330
|
});
|
|
331
|
-
}),
|
|
332
|
-
let { __scopeAccordion: n, value: r, ...i } = e, a =
|
|
333
|
-
return /* @__PURE__ */
|
|
331
|
+
}), q = "AccordionItem", [Ut, J] = B(q), Y = E.forwardRef((e, t) => {
|
|
332
|
+
let { __scopeAccordion: n, value: r, ...i } = e, a = G(q, n), o = Rt(q, n), s = V(n), c = _(), l = r && o.value.includes(r) || !1, u = a.disabled || e.disabled;
|
|
333
|
+
return /* @__PURE__ */ j(Ut, {
|
|
334
334
|
scope: n,
|
|
335
335
|
open: l,
|
|
336
336
|
disabled: u,
|
|
337
337
|
triggerId: c,
|
|
338
|
-
children: /* @__PURE__ */
|
|
338
|
+
children: /* @__PURE__ */ j(Ke, {
|
|
339
339
|
"data-orientation": a.orientation,
|
|
340
|
-
"data-state":
|
|
340
|
+
"data-state": Yt(l),
|
|
341
341
|
...s,
|
|
342
342
|
...i,
|
|
343
343
|
ref: t,
|
|
@@ -349,23 +349,23 @@ var [V, zt] = R(I), [H, Bt] = R(I, { collapsible: !1 }), Vt = w.forwardRef((e, t
|
|
|
349
349
|
})
|
|
350
350
|
});
|
|
351
351
|
});
|
|
352
|
-
|
|
353
|
-
var
|
|
354
|
-
let { __scopeAccordion: n, ...r } = e, i =
|
|
355
|
-
return /* @__PURE__ */
|
|
352
|
+
Y.displayName = q;
|
|
353
|
+
var Wt = "AccordionHeader", Gt = E.forwardRef((e, t) => {
|
|
354
|
+
let { __scopeAccordion: n, ...r } = e, i = G(R, n), a = J(Wt, n);
|
|
355
|
+
return /* @__PURE__ */ j(w.h3, {
|
|
356
356
|
"data-orientation": i.orientation,
|
|
357
|
-
"data-state":
|
|
357
|
+
"data-state": Yt(a.open),
|
|
358
358
|
"data-disabled": a.disabled ? "" : void 0,
|
|
359
359
|
...r,
|
|
360
360
|
ref: t
|
|
361
361
|
});
|
|
362
362
|
});
|
|
363
|
-
|
|
364
|
-
var X = "AccordionTrigger",
|
|
365
|
-
let { __scopeAccordion: n, ...r } = e, i =
|
|
366
|
-
return /* @__PURE__ */
|
|
363
|
+
Gt.displayName = Wt;
|
|
364
|
+
var X = "AccordionTrigger", Kt = E.forwardRef((e, t) => {
|
|
365
|
+
let { __scopeAccordion: n, ...r } = e, i = G(R, n), a = J(X, n), o = zt(X, n), s = V(n);
|
|
366
|
+
return /* @__PURE__ */ j(z.ItemSlot, {
|
|
367
367
|
scope: n,
|
|
368
|
-
children: /* @__PURE__ */
|
|
368
|
+
children: /* @__PURE__ */ j(st, {
|
|
369
369
|
"aria-disabled": a.open && !o.collapsible || void 0,
|
|
370
370
|
"data-orientation": i.orientation,
|
|
371
371
|
id: a.triggerId,
|
|
@@ -375,10 +375,10 @@ var X = "AccordionTrigger", Z = w.forwardRef((e, t) => {
|
|
|
375
375
|
})
|
|
376
376
|
});
|
|
377
377
|
});
|
|
378
|
-
|
|
379
|
-
var
|
|
380
|
-
let { __scopeAccordion: n, ...r } = e, i =
|
|
381
|
-
return /* @__PURE__ */
|
|
378
|
+
Kt.displayName = X;
|
|
379
|
+
var qt = "AccordionContent", Jt = E.forwardRef((e, t) => {
|
|
380
|
+
let { __scopeAccordion: n, ...r } = e, i = G(R, n), a = J(qt, n), o = V(n);
|
|
381
|
+
return /* @__PURE__ */ j(ke, {
|
|
382
382
|
role: "region",
|
|
383
383
|
"aria-labelledby": a.triggerId,
|
|
384
384
|
"data-orientation": i.orientation,
|
|
@@ -392,24 +392,24 @@ var Gt = "AccordionContent", Kt = w.forwardRef((e, t) => {
|
|
|
392
392
|
}
|
|
393
393
|
});
|
|
394
394
|
});
|
|
395
|
-
|
|
396
|
-
function
|
|
395
|
+
Jt.displayName = qt;
|
|
396
|
+
function Yt(e) {
|
|
397
397
|
return e ? "open" : "closed";
|
|
398
398
|
}
|
|
399
|
-
var
|
|
399
|
+
var Xt = H, Zt = Y, Qt = Gt, $t = Kt, en = Jt;
|
|
400
400
|
//#endregion
|
|
401
401
|
//#region src/components/ui/tree-view.tsx
|
|
402
|
-
function
|
|
402
|
+
function tn(e, t) {
|
|
403
403
|
return t ? { backgroundColor: "color-mix(in srgb, var(--imp-primary, #5B5BD6) 15%, transparent)" } : e ? { backgroundColor: "var(--imp-accent, #ededf7)" } : {};
|
|
404
404
|
}
|
|
405
|
-
var
|
|
406
|
-
let [d, f] =
|
|
405
|
+
var nn = "group relative rounded-md px-2 cursor-pointer transition-colors", Z = "imp-tree-item-hover", rn = "font-medium", an = E.forwardRef(({ data: e, initialSelectedItemId: t, onSelectChange: n, expandAll: r, defaultLeafIcon: i, defaultNodeIcon: a, className: o, onDocumentDrag: s, renderItem: c, ...l }, u) => {
|
|
406
|
+
let [d, f] = E.useState(t), [p, m] = E.useState(null), h = E.useCallback((e) => {
|
|
407
407
|
f(e?.id), n && n(e);
|
|
408
|
-
}, [n]), g =
|
|
408
|
+
}, [n]), g = E.useCallback((e) => {
|
|
409
409
|
m(e);
|
|
410
|
-
}, []), _ =
|
|
410
|
+
}, []), _ = E.useCallback((e) => {
|
|
411
411
|
p && s && p.id !== e.id && s(p, e), m(null);
|
|
412
|
-
}, [p, s]), v =
|
|
412
|
+
}, [p, s]), v = E.useMemo(() => {
|
|
413
413
|
if (!t) return [];
|
|
414
414
|
let n = [];
|
|
415
415
|
function i(e, t) {
|
|
@@ -426,9 +426,9 @@ var en = "group relative rounded-md px-2 cursor-pointer transition-colors", tn =
|
|
|
426
426
|
r,
|
|
427
427
|
t
|
|
428
428
|
]);
|
|
429
|
-
return /* @__PURE__ */
|
|
430
|
-
className:
|
|
431
|
-
children: [/* @__PURE__ */
|
|
429
|
+
return /* @__PURE__ */ M("div", {
|
|
430
|
+
className: T("overflow-hidden relative p-2", o),
|
|
431
|
+
children: [/* @__PURE__ */ j(Q, {
|
|
432
432
|
data: e,
|
|
433
433
|
ref: u,
|
|
434
434
|
selectedItemId: d,
|
|
@@ -442,7 +442,7 @@ var en = "group relative rounded-md px-2 cursor-pointer transition-colors", tn =
|
|
|
442
442
|
renderItem: c,
|
|
443
443
|
level: 0,
|
|
444
444
|
...l
|
|
445
|
-
}), /* @__PURE__ */
|
|
445
|
+
}), /* @__PURE__ */ j("div", {
|
|
446
446
|
className: "w-full h-12",
|
|
447
447
|
onDrop: () => {
|
|
448
448
|
_({
|
|
@@ -453,15 +453,15 @@ var en = "group relative rounded-md px-2 cursor-pointer transition-colors", tn =
|
|
|
453
453
|
})]
|
|
454
454
|
});
|
|
455
455
|
});
|
|
456
|
-
|
|
457
|
-
var Q =
|
|
456
|
+
an.displayName = "TreeView";
|
|
457
|
+
var Q = E.forwardRef(({ className: e, data: t, selectedItemId: n, handleSelectChange: r, expandedItemIds: i, defaultNodeIcon: a, defaultLeafIcon: o, handleDragStart: s, handleDrop: c, draggedItem: l, renderItem: u, level: d, onSelectChange: f, expandAll: p, initialSelectedItemId: m, onDocumentDrag: h, ...g }, _) => {
|
|
458
458
|
let v = t;
|
|
459
|
-
return Array.isArray(v) || (v = [v]), /* @__PURE__ */
|
|
459
|
+
return Array.isArray(v) || (v = [v]), /* @__PURE__ */ j("div", {
|
|
460
460
|
ref: _,
|
|
461
461
|
role: "tree",
|
|
462
462
|
className: e,
|
|
463
463
|
...g,
|
|
464
|
-
children: /* @__PURE__ */
|
|
464
|
+
children: /* @__PURE__ */ j("ul", { children: v.map((e) => /* @__PURE__ */ j("li", { children: e.children ? /* @__PURE__ */ j(on, {
|
|
465
465
|
item: e,
|
|
466
466
|
level: d ?? 0,
|
|
467
467
|
selectedItemId: n,
|
|
@@ -473,7 +473,7 @@ var Q = w.forwardRef(({ className: e, data: t, selectedItemId: n, handleSelectCh
|
|
|
473
473
|
handleDrop: c,
|
|
474
474
|
draggedItem: l,
|
|
475
475
|
renderItem: u
|
|
476
|
-
}) : /* @__PURE__ */
|
|
476
|
+
}) : /* @__PURE__ */ j(sn, {
|
|
477
477
|
item: e,
|
|
478
478
|
level: d ?? 0,
|
|
479
479
|
selectedItemId: n,
|
|
@@ -487,17 +487,17 @@ var Q = w.forwardRef(({ className: e, data: t, selectedItemId: n, handleSelectCh
|
|
|
487
487
|
});
|
|
488
488
|
});
|
|
489
489
|
Q.displayName = "TreeItem";
|
|
490
|
-
var
|
|
491
|
-
let [d, f] =
|
|
492
|
-
return /* @__PURE__ */
|
|
490
|
+
var on = ({ item: e, handleSelectChange: t, expandedItemIds: n, selectedItemId: r, defaultNodeIcon: i, defaultLeafIcon: a, handleDragStart: o, handleDrop: s, draggedItem: c, renderItem: l, level: u = 0 }) => {
|
|
491
|
+
let [d, f] = E.useState(n.includes(e.id) ? [e.id] : []), [p, m] = E.useState(!1), h = !!e.children?.length, g = r === e.id, _ = d.includes(e.id);
|
|
492
|
+
return /* @__PURE__ */ j(Xt, {
|
|
493
493
|
type: "multiple",
|
|
494
494
|
value: d,
|
|
495
495
|
onValueChange: (e) => f(e),
|
|
496
|
-
children: /* @__PURE__ */
|
|
496
|
+
children: /* @__PURE__ */ M(Zt, {
|
|
497
497
|
value: e.id,
|
|
498
|
-
children: [/* @__PURE__ */
|
|
499
|
-
className:
|
|
500
|
-
style:
|
|
498
|
+
children: [/* @__PURE__ */ j(cn, {
|
|
499
|
+
className: T(nn, Z, g && rn, e.className),
|
|
500
|
+
style: tn(g, p),
|
|
501
501
|
onClick: () => {
|
|
502
502
|
t(e), e.onClick?.();
|
|
503
503
|
},
|
|
@@ -525,30 +525,30 @@ var an = ({ item: e, handleSelectChange: t, expandedItemIds: n, selectedItemId:
|
|
|
525
525
|
isSelected: g,
|
|
526
526
|
isOpen: _,
|
|
527
527
|
hasChildren: h
|
|
528
|
-
}) : /* @__PURE__ */ A
|
|
529
|
-
/* @__PURE__ */
|
|
528
|
+
}) : /* @__PURE__ */ M(A, { children: [
|
|
529
|
+
/* @__PURE__ */ j(un, {
|
|
530
530
|
item: e,
|
|
531
531
|
isSelected: g,
|
|
532
532
|
isOpen: _,
|
|
533
533
|
default: i
|
|
534
534
|
}),
|
|
535
|
-
/* @__PURE__ */
|
|
535
|
+
/* @__PURE__ */ j("span", {
|
|
536
536
|
className: "min-w-0 flex-1 text-sm truncate",
|
|
537
537
|
title: e.name,
|
|
538
538
|
children: e.name
|
|
539
539
|
}),
|
|
540
|
-
e.trailingContent ? /* @__PURE__ */
|
|
540
|
+
e.trailingContent ? /* @__PURE__ */ j("span", {
|
|
541
541
|
className: "ml-2 shrink-0",
|
|
542
542
|
children: e.trailingContent
|
|
543
543
|
}) : null,
|
|
544
|
-
/* @__PURE__ */
|
|
544
|
+
/* @__PURE__ */ j($, {
|
|
545
545
|
isSelected: g,
|
|
546
546
|
children: e.actions
|
|
547
547
|
})
|
|
548
548
|
] })
|
|
549
|
-
}), /* @__PURE__ */
|
|
550
|
-
className:
|
|
551
|
-
children: /* @__PURE__ */
|
|
549
|
+
}), /* @__PURE__ */ j(ln, {
|
|
550
|
+
className: T("ml-4 pl-1 border-l border-imp-border", e.childContainerClassName),
|
|
551
|
+
children: /* @__PURE__ */ j(Q, {
|
|
552
552
|
data: e.children ? e.children : e,
|
|
553
553
|
selectedItemId: r,
|
|
554
554
|
handleSelectChange: t,
|
|
@@ -564,12 +564,12 @@ var an = ({ item: e, handleSelectChange: t, expandedItemIds: n, selectedItemId:
|
|
|
564
564
|
})]
|
|
565
565
|
})
|
|
566
566
|
});
|
|
567
|
-
},
|
|
568
|
-
let [f, p] =
|
|
569
|
-
return /* @__PURE__ */
|
|
567
|
+
}, sn = E.forwardRef(({ className: e, item: t, level: n, selectedItemId: r, handleSelectChange: i, defaultLeafIcon: a, handleDragStart: o, handleDrop: s, draggedItem: c, renderItem: l, ...u }, d) => {
|
|
568
|
+
let [f, p] = E.useState(!1), m = r === t.id;
|
|
569
|
+
return /* @__PURE__ */ j("div", {
|
|
570
570
|
ref: d,
|
|
571
|
-
className:
|
|
572
|
-
style:
|
|
571
|
+
className: T("ml-5 flex items-center py-2 text-left cursor-pointer", nn, Z, e, m && rn, t.disabled && "opacity-50 cursor-not-allowed pointer-events-none", t.className),
|
|
572
|
+
style: tn(m, f),
|
|
573
573
|
onClick: () => {
|
|
574
574
|
t.disabled || (i(t), t.onClick?.());
|
|
575
575
|
},
|
|
@@ -591,127 +591,127 @@ var an = ({ item: e, handleSelectChange: t, expandedItemIds: n, selectedItemId:
|
|
|
591
591
|
t.disabled || (e.preventDefault(), p(!1), s?.(t));
|
|
592
592
|
},
|
|
593
593
|
...u,
|
|
594
|
-
children: l ? /* @__PURE__ */ A
|
|
594
|
+
children: l ? /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ j("div", { className: "h-4 w-4 shrink-0 mr-1" }), l({
|
|
595
595
|
item: t,
|
|
596
596
|
level: n,
|
|
597
597
|
isLeaf: !0,
|
|
598
598
|
isSelected: m,
|
|
599
599
|
hasChildren: !1
|
|
600
|
-
})] }) : /* @__PURE__ */ A
|
|
601
|
-
/* @__PURE__ */
|
|
600
|
+
})] }) : /* @__PURE__ */ M(A, { children: [
|
|
601
|
+
/* @__PURE__ */ j(un, {
|
|
602
602
|
item: t,
|
|
603
603
|
isSelected: m,
|
|
604
604
|
default: a
|
|
605
605
|
}),
|
|
606
|
-
/* @__PURE__ */
|
|
606
|
+
/* @__PURE__ */ j("span", {
|
|
607
607
|
className: "grow min-w-0 text-sm truncate",
|
|
608
608
|
title: t.name,
|
|
609
609
|
children: t.name
|
|
610
610
|
}),
|
|
611
|
-
t.trailingContent ? /* @__PURE__ */
|
|
611
|
+
t.trailingContent ? /* @__PURE__ */ j("span", {
|
|
612
612
|
className: "ml-2 shrink-0",
|
|
613
613
|
children: t.trailingContent
|
|
614
614
|
}) : null,
|
|
615
|
-
/* @__PURE__ */
|
|
615
|
+
/* @__PURE__ */ j($, {
|
|
616
616
|
isSelected: m && !t.disabled,
|
|
617
617
|
children: t.actions
|
|
618
618
|
})
|
|
619
619
|
] })
|
|
620
620
|
});
|
|
621
621
|
});
|
|
622
|
-
|
|
623
|
-
var
|
|
622
|
+
sn.displayName = "TreeLeaf";
|
|
623
|
+
var cn = E.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ j(Qt, { children: /* @__PURE__ */ M($t, {
|
|
624
624
|
ref: r,
|
|
625
|
-
className:
|
|
625
|
+
className: T("flex w-full flex-1 items-center py-2 text-left transition-all first:[&[data-state=open]>svg]:first-of-type:rotate-90", e),
|
|
626
626
|
...n,
|
|
627
|
-
children: [/* @__PURE__ */
|
|
627
|
+
children: [/* @__PURE__ */ j(_t, { className: "mr-1 h-4 w-4 shrink-0 text-accent-foreground/50 transition-transform duration-200" }), t]
|
|
628
628
|
}) }));
|
|
629
|
-
|
|
630
|
-
var
|
|
629
|
+
cn.displayName = $t.displayName;
|
|
630
|
+
var ln = E.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ j(en, {
|
|
631
631
|
ref: r,
|
|
632
|
-
className:
|
|
632
|
+
className: T("overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down", e),
|
|
633
633
|
...n,
|
|
634
|
-
children: /* @__PURE__ */
|
|
634
|
+
children: /* @__PURE__ */ j("div", {
|
|
635
635
|
className: "pb-1 pt-0",
|
|
636
636
|
children: t
|
|
637
637
|
})
|
|
638
638
|
}));
|
|
639
|
-
|
|
640
|
-
var
|
|
639
|
+
ln.displayName = en.displayName;
|
|
640
|
+
var un = ({ item: e, isOpen: t, isSelected: n, default: r }) => {
|
|
641
641
|
let i = r;
|
|
642
|
-
return n && e.selectedIcon ? i = e.selectedIcon : t && e.openIcon ? i = e.openIcon : e.icon && (i = e.icon), i ? /* @__PURE__ */
|
|
643
|
-
}, $ = ({ children: e, isSelected: t }) => /* @__PURE__ */
|
|
644
|
-
className:
|
|
642
|
+
return n && e.selectedIcon ? i = e.selectedIcon : t && e.openIcon ? i = e.openIcon : e.icon && (i = e.icon), i ? /* @__PURE__ */ j(i, { className: "h-4 w-4 shrink-0 mr-2" }) : /* @__PURE__ */ j(A, {});
|
|
643
|
+
}, $ = ({ children: e, isSelected: t }) => /* @__PURE__ */ j("div", {
|
|
644
|
+
className: T(t ? "block" : "hidden", "absolute right-3 group-hover:block"),
|
|
645
645
|
children: e
|
|
646
646
|
});
|
|
647
647
|
//#endregion
|
|
648
648
|
//#region src/components/ui/dropdown-menu.tsx
|
|
649
|
-
function
|
|
650
|
-
return /* @__PURE__ */
|
|
649
|
+
function dn({ ...e }) {
|
|
650
|
+
return /* @__PURE__ */ j(P.Root, {
|
|
651
651
|
"data-slot": "dropdown-menu",
|
|
652
652
|
...e
|
|
653
653
|
});
|
|
654
654
|
}
|
|
655
|
-
function
|
|
656
|
-
return /* @__PURE__ */
|
|
655
|
+
function fn({ ...e }) {
|
|
656
|
+
return /* @__PURE__ */ j(P.Trigger, {
|
|
657
657
|
"data-slot": "dropdown-menu-trigger",
|
|
658
658
|
...e
|
|
659
659
|
});
|
|
660
660
|
}
|
|
661
|
-
function
|
|
662
|
-
let r =
|
|
663
|
-
return /* @__PURE__ */
|
|
661
|
+
function pn({ className: e, sideOffset: t = 4, ...n }) {
|
|
662
|
+
let r = Ae();
|
|
663
|
+
return /* @__PURE__ */ j(P.Portal, { children: /* @__PURE__ */ j("div", {
|
|
664
664
|
className: r,
|
|
665
|
-
children: /* @__PURE__ */
|
|
665
|
+
children: /* @__PURE__ */ j(P.Content, {
|
|
666
666
|
"data-slot": "dropdown-menu-content",
|
|
667
667
|
sideOffset: t,
|
|
668
|
-
className:
|
|
668
|
+
className: T("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", e),
|
|
669
669
|
...n
|
|
670
670
|
})
|
|
671
671
|
}) });
|
|
672
672
|
}
|
|
673
|
-
function
|
|
674
|
-
return /* @__PURE__ */
|
|
673
|
+
function mn({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
674
|
+
return /* @__PURE__ */ j(P.Item, {
|
|
675
675
|
"data-slot": "dropdown-menu-item",
|
|
676
676
|
"data-inset": t,
|
|
677
677
|
"data-variant": n,
|
|
678
|
-
className:
|
|
678
|
+
className: T("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
679
679
|
...r
|
|
680
680
|
});
|
|
681
681
|
}
|
|
682
|
-
function
|
|
683
|
-
return /* @__PURE__ */
|
|
682
|
+
function hn({ ...e }) {
|
|
683
|
+
return /* @__PURE__ */ j(P.RadioGroup, {
|
|
684
684
|
"data-slot": "dropdown-menu-radio-group",
|
|
685
685
|
...e
|
|
686
686
|
});
|
|
687
687
|
}
|
|
688
|
-
function
|
|
689
|
-
return /* @__PURE__ */
|
|
688
|
+
function gn({ className: e, children: t, ...n }) {
|
|
689
|
+
return /* @__PURE__ */ M(P.RadioItem, {
|
|
690
690
|
"data-slot": "dropdown-menu-radio-item",
|
|
691
|
-
className:
|
|
691
|
+
className: T("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
|
|
692
692
|
...n,
|
|
693
|
-
children: [/* @__PURE__ */
|
|
693
|
+
children: [/* @__PURE__ */ j("span", {
|
|
694
694
|
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
695
|
-
children: /* @__PURE__ */
|
|
695
|
+
children: /* @__PURE__ */ j(P.ItemIndicator, { children: /* @__PURE__ */ j(vt, { className: "size-2 fill-current" }) })
|
|
696
696
|
}), t]
|
|
697
697
|
});
|
|
698
698
|
}
|
|
699
|
-
function
|
|
700
|
-
return /* @__PURE__ */
|
|
699
|
+
function _n({ className: e, inset: t, ...n }) {
|
|
700
|
+
return /* @__PURE__ */ j(P.Label, {
|
|
701
701
|
"data-slot": "dropdown-menu-label",
|
|
702
702
|
"data-inset": t,
|
|
703
|
-
className:
|
|
703
|
+
className: T("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", e),
|
|
704
704
|
...n
|
|
705
705
|
});
|
|
706
706
|
}
|
|
707
|
-
function
|
|
708
|
-
return /* @__PURE__ */
|
|
707
|
+
function vn({ className: e, ...t }) {
|
|
708
|
+
return /* @__PURE__ */ j(P.Separator, {
|
|
709
709
|
"data-slot": "dropdown-menu-separator",
|
|
710
|
-
className:
|
|
710
|
+
className: T("bg-border -mx-1 my-1 h-px", e),
|
|
711
711
|
...t
|
|
712
712
|
});
|
|
713
713
|
}
|
|
714
714
|
//#endregion
|
|
715
|
-
export {
|
|
715
|
+
export { Me as ApiClient, we as ApiProvider, pe as Dialog, l as DialogClose, s as DialogContent, oe as DialogDescription, We as DialogFooter, n as DialogHeader, He as DialogOverlay, ne as DialogPortal, ie as DialogTitle, ce as DialogTrigger, dn as DropdownMenu, pn as DropdownMenuContent, mn as DropdownMenuItem, _n as DropdownMenuLabel, hn as DropdownMenuRadioGroup, gn as DropdownMenuRadioItem, vn as DropdownMenuSeparator, fn as DropdownMenuTrigger, tt as FlowEditor, it as Invect, qe as InvectLoader, Xe as InvectLogo, F as InvectShell, rt as OAuth2CallbackHandler, ae as PageLayout, an as TreeView, at as ValidationError, C as getErrorMessage, y as queryKeys, bt as useActiveFlowId, yt as useActiveFlowRunId, h as useActiveModal, he as useActiveSidebarTab, Be as useAgentTools, le as useApiBaseURL, t as useApiClient, te as useAvailableNodes, ct as useCancelFlowRun, Pe as useCreateCredential, fe as useCreateFlow, o as useCreateFlowVersion, ft as useCreateFlowWithVersion, kt as useCreateTrigger, Qe as useCredential, Je as useCredentialUsage, Re as useCredentials, me as useDashboardStats, Ie as useDeleteCredential, u as useDeleteFlow, jt as useDeleteTrigger, je as useExecuteFlow, Fe as useExecuteFlowToNode, ue as useExecuteModelPrompt, gt as useExecuteSqlQuery, Et as useExecutionFilters, Ct as useExecutionPagination, wt as useExecutionSorting, L as useExecutionViewStore, c as useFlow, se as useFlowReactFlowData, $e as useFlowRun, Ye as useFlowRuns, Dt as useFlowTriggers, Ge as useFlowVersions, r as useFlows, Te as useHandleOAuth2Callback, ze as useLatestFlowRun, i as useListAvailableModels, Le as useListFlowRuns, _e as useListQueryDatabases, g as useLoadFieldOptions, ve as useLogsPanelOpen, Tt as useLogsState, p as useModalData, ee as useModals, Ee as useNodeExecutions, et as useNodeSidebarExpandedGroups, v as useNodeSidebarOpen, lt as useOAuth2Provider, mt as useOAuth2Providers, ut as usePauseFlowRun, f as usePluginRegistry, De as useRefreshOAuth2Credential, ge as useResolveNodeDefinition, ht as useResumeFlowRun, xt as useSelectedExecutionNodeId, xe as useSidebarCollapsed, pt as useStartOAuth2Flow, St as useStatusFilter, Mt as useSyncTriggers, de as useTestCredential, a as useTestCredentialRequest, ye as useTestJsExpression, m as useTestMapper, Oe as useTestNode, Ot as useTrigger, be as useUIStore, dt as useUpdateCredential, Ue as useUpdateFlow, At as useUpdateTrigger, re as useValidateFlow, Ce as useValidationPanelOpen };
|
|
716
716
|
|
|
717
717
|
//# sourceMappingURL=index.js.map
|