@uipath/apollo-wind 0.9.1 → 0.10.0-pr219.61d64eb
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/components/custom/canvas.cjs +44 -0
- package/dist/components/custom/canvas.d.ts +14 -0
- package/dist/components/custom/canvas.js +10 -0
- package/dist/components/custom/chat-composer.cjs +105 -0
- package/dist/components/custom/chat-composer.d.ts +15 -0
- package/dist/components/custom/chat-composer.js +71 -0
- package/dist/components/custom/chat-first-experience.cjs +87 -0
- package/dist/components/custom/chat-first-experience.d.ts +24 -0
- package/dist/components/custom/chat-first-experience.js +53 -0
- package/dist/components/custom/chat-prompt-suggestions.cjs +48 -0
- package/dist/components/custom/chat-prompt-suggestions.d.ts +18 -0
- package/dist/components/custom/chat-prompt-suggestions.js +14 -0
- package/dist/components/custom/chat-steps-view.cjs +307 -0
- package/dist/components/custom/chat-steps-view.d.ts +38 -0
- package/dist/components/custom/chat-steps-view.js +273 -0
- package/dist/components/custom/flow-node.cjs +76 -0
- package/dist/components/custom/flow-node.d.ts +20 -0
- package/dist/components/custom/flow-node.js +42 -0
- package/dist/components/custom/flow-properties-bar.cjs +101 -0
- package/dist/components/custom/flow-properties-bar.d.ts +21 -0
- package/dist/components/custom/flow-properties-bar.js +67 -0
- package/dist/components/custom/flow-properties-expanded.cjs +324 -0
- package/dist/components/custom/flow-properties-expanded.d.ts +19 -0
- package/dist/components/custom/flow-properties-expanded.js +290 -0
- package/dist/components/custom/flow-properties-simple.cjs +357 -0
- package/dist/components/custom/flow-properties-simple.d.ts +62 -0
- package/dist/components/custom/flow-properties-simple.js +323 -0
- package/dist/components/custom/flow-properties.cjs +56 -0
- package/dist/components/custom/flow-properties.d.ts +28 -0
- package/dist/components/custom/flow-properties.js +22 -0
- package/dist/components/custom/global-header.cjs +415 -0
- package/dist/components/custom/global-header.d.ts +38 -0
- package/dist/components/custom/global-header.js +381 -0
- package/dist/components/custom/grid-maestro.cjs +62 -0
- package/dist/components/custom/grid-maestro.d.ts +19 -0
- package/dist/components/custom/grid-maestro.js +22 -0
- package/dist/components/custom/panel-delegate.cjs +280 -0
- package/dist/components/custom/panel-delegate.d.ts +34 -0
- package/dist/components/custom/panel-delegate.js +246 -0
- package/dist/components/custom/panel-flow.cjs +260 -0
- package/dist/components/custom/panel-flow.d.ts +38 -0
- package/dist/components/custom/panel-flow.js +223 -0
- package/dist/components/custom/panel-maestro.cjs +73 -0
- package/dist/components/custom/panel-maestro.d.ts +30 -0
- package/dist/components/custom/panel-maestro.js +39 -0
- package/dist/components/custom/toolbar-canvas.cjs +121 -0
- package/dist/components/custom/toolbar-canvas.d.ts +15 -0
- package/dist/components/custom/toolbar-canvas.js +87 -0
- package/dist/components/custom/toolbar-view.cjs +119 -0
- package/dist/components/custom/toolbar-view.d.ts +14 -0
- package/dist/components/custom/toolbar-view.js +85 -0
- package/dist/components/custom/viewport-guard.cjs +92 -0
- package/dist/components/custom/viewport-guard.d.ts +23 -0
- package/dist/components/custom/viewport-guard.js +55 -0
- package/dist/components/ui/button.cjs +3 -3
- package/dist/components/ui/button.js +3 -3
- package/dist/components/ui/chart.cjs +218 -0
- package/dist/components/ui/chart.d.ts +40 -0
- package/dist/components/ui/chart.js +169 -0
- package/dist/components/ui/data-table.cjs +14 -2
- package/dist/components/ui/data-table.d.ts +4 -1
- package/dist/components/ui/data-table.js +15 -3
- package/dist/components/ui/empty-state.cjs +17 -6
- package/dist/components/ui/empty-state.d.ts +7 -0
- package/dist/components/ui/empty-state.js +17 -6
- package/dist/components/ui/file-upload.cjs +82 -42
- package/dist/components/ui/file-upload.d.ts +3 -1
- package/dist/components/ui/file-upload.js +82 -42
- package/dist/components/ui/index.cjs +289 -149
- package/dist/components/ui/index.d.ts +2 -3
- package/dist/components/ui/index.js +2 -3
- package/dist/components/ui/tree-view.cjs +1101 -0
- package/dist/components/ui/tree-view.d.ts +95 -0
- package/dist/components/ui/tree-view.js +1067 -0
- package/dist/foundation/Future/colors.cjs +92 -0
- package/dist/foundation/Future/colors.d.ts +132 -0
- package/dist/foundation/Future/colors.js +43 -0
- package/dist/foundation/Future/radius.cjs +46 -0
- package/dist/foundation/Future/radius.d.ts +33 -0
- package/dist/foundation/Future/radius.js +12 -0
- package/dist/foundation/Future/responsive.cjs +49 -0
- package/dist/foundation/Future/responsive.d.ts +40 -0
- package/dist/foundation/Future/responsive.js +12 -0
- package/dist/foundation/Future/shadows.cjs +48 -0
- package/dist/foundation/Future/shadows.d.ts +29 -0
- package/dist/foundation/Future/shadows.js +11 -0
- package/dist/foundation/Future/spacing.cjs +71 -0
- package/dist/foundation/Future/spacing.d.ts +80 -0
- package/dist/foundation/Future/spacing.js +31 -0
- package/dist/foundation/Future/strokes.cjs +59 -0
- package/dist/foundation/Future/strokes.d.ts +49 -0
- package/dist/foundation/Future/strokes.js +19 -0
- package/dist/foundation/Future/types.cjs +18 -0
- package/dist/foundation/Future/types.d.ts +18 -0
- package/dist/foundation/Future/types.js +0 -0
- package/dist/foundation/Future/typography.cjs +79 -0
- package/dist/foundation/Future/typography.d.ts +86 -0
- package/dist/foundation/Future/typography.js +33 -0
- package/dist/index.cjs +125 -219
- package/dist/index.d.ts +2 -3
- package/dist/index.js +2 -4
- package/dist/src/foundation/Future/themes.css +371 -0
- package/dist/styles.css +1704 -582
- package/dist/tailwind.css +4 -0
- package/dist/templates/Admin/settings-admin.d.ts +5 -0
- package/dist/templates/Admin/template-admin.d.ts +105 -0
- package/dist/templates/Delegate/template-delegate.d.ts +26 -0
- package/dist/templates/EmptyErrors/error-components.d.ts +3 -0
- package/dist/templates/Experiments/ideas-AnimatedGradientText.d.ts +23 -0
- package/dist/templates/Flow/template-flow.d.ts +52 -0
- package/dist/templates/Maestro/template-maestro.d.ts +52 -0
- package/dist/templates/{vscode-example.d.ts → VisualStudio/shell.d.ts} +1 -1
- package/package.json +10 -1
- package/dist/components/ui/menubar.cjs +0 -210
- package/dist/components/ui/menubar.d.ts +0 -28
- package/dist/components/ui/menubar.js +0 -131
- package/dist/components/ui/navigation-menu.cjs +0 -122
- package/dist/components/ui/navigation-menu.d.ts +0 -12
- package/dist/components/ui/navigation-menu.js +0 -64
- package/dist/examples/admin-layout-example.cjs +0 -490
- package/dist/examples/admin-layout-example.d.ts +0 -92
- package/dist/examples/admin-layout-example.js +0 -411
- package/dist/examples/app-shell-example.cjs +0 -452
- package/dist/examples/app-shell-example.d.ts +0 -52
- package/dist/examples/app-shell-example.js +0 -418
- package/dist/examples/dashboard-example.cjs +0 -590
- package/dist/examples/dashboard-example.d.ts +0 -11
- package/dist/examples/dashboard-example.js +0 -556
- package/dist/examples/data-management-example.cjs +0 -584
- package/dist/examples/data-management-example.d.ts +0 -1
- package/dist/examples/data-management-example.js +0 -550
- package/dist/examples/flow-editor-layout-example.cjs +0 -309
- package/dist/examples/flow-editor-layout-example.d.ts +0 -22
- package/dist/examples/flow-editor-layout-example.js +0 -269
- package/dist/examples/flow-start-example.cjs +0 -467
- package/dist/examples/flow-start-example.d.ts +0 -30
- package/dist/examples/flow-start-example.js +0 -433
- package/dist/examples/form-builder-example.cjs +0 -674
- package/dist/examples/form-builder-example.js +0 -640
- package/dist/examples/new-project-example.cjs +0 -550
- package/dist/examples/new-project-example.d.ts +0 -30
- package/dist/examples/new-project-example.js +0 -516
- package/dist/examples/settings-example.cjs +0 -864
- package/dist/examples/settings-example.d.ts +0 -1
- package/dist/examples/settings-example.js +0 -830
- package/dist/examples/vscode-example.cjs +0 -340
- package/dist/examples/vscode-example.d.ts +0 -80
- package/dist/examples/vscode-example.js +0 -270
- package/dist/templates/admin-layout-example.d.ts +0 -92
- package/dist/templates/app-shell-example.d.ts +0 -52
- package/dist/templates/dashboard-example.d.ts +0 -11
- package/dist/templates/data-management-example.d.ts +0 -1
- package/dist/templates/flow-editor-layout-example.d.ts +0 -22
- package/dist/templates/flow-start-example.d.ts +0 -30
- package/dist/templates/form-builder-example.d.ts +0 -1
- package/dist/templates/new-project-example.d.ts +0 -30
- package/dist/templates/settings-example.d.ts +0 -1
- /package/dist/{examples → templates/Forms}/form-builder-example.d.ts +0 -0
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Copy, FileJson, Folder, Redo2, RefreshCw, Settings2, Undo2, Variable, Webhook, X } from "lucide-react";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "../ui/accordion.js";
|
|
5
|
+
import { Input } from "../ui/input.js";
|
|
6
|
+
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../ui/select.js";
|
|
7
|
+
import { fontFamily } from "../../foundation/Future/typography.js";
|
|
8
|
+
import { cn } from "../../lib/index.js";
|
|
9
|
+
function FieldItem({ field, onGraphControl }) {
|
|
10
|
+
const [value, setValue] = useState(field.value ?? '');
|
|
11
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
12
|
+
className: "flex flex-col gap-1 pt-4",
|
|
13
|
+
children: [
|
|
14
|
+
/*#__PURE__*/ jsxs("div", {
|
|
15
|
+
className: "flex items-center justify-between",
|
|
16
|
+
children: [
|
|
17
|
+
/*#__PURE__*/ jsxs("span", {
|
|
18
|
+
className: "text-sm font-medium leading-5 text-foreground-muted",
|
|
19
|
+
children: [
|
|
20
|
+
field.label,
|
|
21
|
+
field.required && '*'
|
|
22
|
+
]
|
|
23
|
+
}),
|
|
24
|
+
field.showGraphControl && /*#__PURE__*/ jsx("button", {
|
|
25
|
+
className: "flex h-6 w-6 items-center justify-center rounded-lg bg-surface-overlay text-foreground-muted transition-colors hover:text-foreground",
|
|
26
|
+
onClick: ()=>onGraphControl?.(field.label),
|
|
27
|
+
"aria-label": "Graph control",
|
|
28
|
+
children: /*#__PURE__*/ jsx(Settings2, {
|
|
29
|
+
className: "h-4 w-4"
|
|
30
|
+
})
|
|
31
|
+
})
|
|
32
|
+
]
|
|
33
|
+
}),
|
|
34
|
+
'select' === field.type ? /*#__PURE__*/ jsxs(Select, {
|
|
35
|
+
value: value || void 0,
|
|
36
|
+
onValueChange: setValue,
|
|
37
|
+
children: [
|
|
38
|
+
/*#__PURE__*/ jsx(SelectTrigger, {
|
|
39
|
+
className: cn('h-10 rounded-xl border-0 shadow-sm', value ? 'bg-surface-hover text-foreground' : 'bg-surface-overlay text-foreground-muted'),
|
|
40
|
+
children: /*#__PURE__*/ jsx(SelectValue, {
|
|
41
|
+
placeholder: field.placeholder ?? 'Select...'
|
|
42
|
+
})
|
|
43
|
+
}),
|
|
44
|
+
/*#__PURE__*/ jsx(SelectContent, {
|
|
45
|
+
className: "border-border bg-surface-overlay text-foreground",
|
|
46
|
+
children: (field.options ?? []).map((opt)=>/*#__PURE__*/ jsx(SelectItem, {
|
|
47
|
+
value: opt.value,
|
|
48
|
+
className: "focus:bg-surface-hover focus:text-foreground",
|
|
49
|
+
children: opt.label
|
|
50
|
+
}, opt.value))
|
|
51
|
+
})
|
|
52
|
+
]
|
|
53
|
+
}) : 'url' === field.type ? /*#__PURE__*/ jsxs("div", {
|
|
54
|
+
className: "flex h-10 items-center overflow-hidden rounded-xl bg-surface-overlay shadow-sm",
|
|
55
|
+
children: [
|
|
56
|
+
/*#__PURE__*/ jsx(Input, {
|
|
57
|
+
value: value,
|
|
58
|
+
onChange: (e)=>setValue(e.target.value),
|
|
59
|
+
placeholder: field.placeholder,
|
|
60
|
+
className: "h-full flex-1 rounded-none border-0 bg-transparent text-sm font-medium text-foreground-muted shadow-none placeholder:text-foreground-subtle focus-visible:ring-0"
|
|
61
|
+
}),
|
|
62
|
+
/*#__PURE__*/ jsx("button", {
|
|
63
|
+
type: "button",
|
|
64
|
+
className: "flex h-full w-[50px] items-center justify-center border-l border-border text-foreground-muted transition-colors hover:text-foreground",
|
|
65
|
+
"aria-label": "Browse files",
|
|
66
|
+
children: /*#__PURE__*/ jsx(Folder, {
|
|
67
|
+
className: "h-5 w-5"
|
|
68
|
+
})
|
|
69
|
+
})
|
|
70
|
+
]
|
|
71
|
+
}) : /*#__PURE__*/ jsx(Input, {
|
|
72
|
+
value: value,
|
|
73
|
+
onChange: (e)=>setValue(e.target.value),
|
|
74
|
+
placeholder: field.placeholder,
|
|
75
|
+
className: cn('h-10 rounded-xl border-0 text-sm font-medium shadow-sm', value ? 'bg-surface-hover text-foreground' : 'bg-surface-overlay text-foreground-muted placeholder:text-foreground-subtle')
|
|
76
|
+
})
|
|
77
|
+
]
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
const sampleJsonLines = [
|
|
81
|
+
'{',
|
|
82
|
+
' "extracted": {',
|
|
83
|
+
' "vendor": "Acme Corp",',
|
|
84
|
+
' "amount": 1250,',
|
|
85
|
+
' "date": "2024-01-15",',
|
|
86
|
+
' "items": [',
|
|
87
|
+
' {',
|
|
88
|
+
' "description": "Professional',
|
|
89
|
+
' Services",',
|
|
90
|
+
' "amount": 1250',
|
|
91
|
+
' }',
|
|
92
|
+
' ]',
|
|
93
|
+
' },',
|
|
94
|
+
' "invoiceId": "INV-2024-001",',
|
|
95
|
+
' "timestamp": "2026-01-28T19:51:41.085Z"',
|
|
96
|
+
'}'
|
|
97
|
+
];
|
|
98
|
+
function EditorToolbarButton({ icon, label }) {
|
|
99
|
+
return /*#__PURE__*/ jsx("button", {
|
|
100
|
+
className: "flex h-8 w-8 items-center justify-center rounded-lg text-foreground-muted transition-colors hover:text-foreground",
|
|
101
|
+
"aria-label": label,
|
|
102
|
+
children: icon
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
function JsonEditorDrawer({ open, onClose }) {
|
|
106
|
+
if (!open) return null;
|
|
107
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
108
|
+
className: "flex h-full w-full flex-col rounded-2xl border border-border bg-surface-raised",
|
|
109
|
+
children: [
|
|
110
|
+
/*#__PURE__*/ jsxs("div", {
|
|
111
|
+
className: "flex items-center justify-between px-6 py-4",
|
|
112
|
+
children: [
|
|
113
|
+
/*#__PURE__*/ jsx("span", {
|
|
114
|
+
className: "text-base font-semibold leading-5 tracking-[-0.4px] text-foreground",
|
|
115
|
+
children: "JSON editor"
|
|
116
|
+
}),
|
|
117
|
+
/*#__PURE__*/ jsx("button", {
|
|
118
|
+
className: "flex h-10 w-10 items-center justify-center rounded-xl bg-surface-overlay text-foreground-muted transition-colors hover:text-foreground",
|
|
119
|
+
onClick: onClose,
|
|
120
|
+
"aria-label": "Close editor",
|
|
121
|
+
children: /*#__PURE__*/ jsx(X, {
|
|
122
|
+
className: "h-5 w-5"
|
|
123
|
+
})
|
|
124
|
+
})
|
|
125
|
+
]
|
|
126
|
+
}),
|
|
127
|
+
/*#__PURE__*/ jsxs("div", {
|
|
128
|
+
className: "flex items-center gap-2 px-6 pb-4",
|
|
129
|
+
children: [
|
|
130
|
+
/*#__PURE__*/ jsx(EditorToolbarButton, {
|
|
131
|
+
icon: /*#__PURE__*/ jsx(Undo2, {
|
|
132
|
+
className: "h-5 w-5"
|
|
133
|
+
}),
|
|
134
|
+
label: "Undo"
|
|
135
|
+
}),
|
|
136
|
+
/*#__PURE__*/ jsx(EditorToolbarButton, {
|
|
137
|
+
icon: /*#__PURE__*/ jsx(Redo2, {
|
|
138
|
+
className: "h-5 w-5"
|
|
139
|
+
}),
|
|
140
|
+
label: "Redo"
|
|
141
|
+
}),
|
|
142
|
+
/*#__PURE__*/ jsx(EditorToolbarButton, {
|
|
143
|
+
icon: /*#__PURE__*/ jsx(Variable, {
|
|
144
|
+
className: "h-5 w-5"
|
|
145
|
+
}),
|
|
146
|
+
label: "Variables"
|
|
147
|
+
}),
|
|
148
|
+
/*#__PURE__*/ jsx(EditorToolbarButton, {
|
|
149
|
+
icon: /*#__PURE__*/ jsx(Copy, {
|
|
150
|
+
className: "h-5 w-5"
|
|
151
|
+
}),
|
|
152
|
+
label: "Copy"
|
|
153
|
+
})
|
|
154
|
+
]
|
|
155
|
+
}),
|
|
156
|
+
/*#__PURE__*/ jsx("div", {
|
|
157
|
+
className: "flex flex-1 flex-col overflow-hidden px-6 pb-4",
|
|
158
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
159
|
+
className: "flex flex-1 flex-col overflow-hidden rounded-xl border border-border-subtle bg-surface shadow-sm",
|
|
160
|
+
children: [
|
|
161
|
+
/*#__PURE__*/ jsxs("div", {
|
|
162
|
+
className: "flex items-center justify-between px-3 py-2.5",
|
|
163
|
+
children: [
|
|
164
|
+
/*#__PURE__*/ jsxs("div", {
|
|
165
|
+
className: "flex items-center gap-2 text-foreground-muted",
|
|
166
|
+
children: [
|
|
167
|
+
/*#__PURE__*/ jsx(FileJson, {
|
|
168
|
+
className: "h-4 w-4"
|
|
169
|
+
}),
|
|
170
|
+
/*#__PURE__*/ jsx("span", {
|
|
171
|
+
className: "text-sm font-medium leading-none",
|
|
172
|
+
children: "script.js"
|
|
173
|
+
})
|
|
174
|
+
]
|
|
175
|
+
}),
|
|
176
|
+
/*#__PURE__*/ jsx("button", {
|
|
177
|
+
className: "flex h-5 w-5 items-center justify-center text-foreground-muted transition-colors hover:text-foreground",
|
|
178
|
+
"aria-label": "Refresh",
|
|
179
|
+
children: /*#__PURE__*/ jsx(RefreshCw, {
|
|
180
|
+
className: "h-4 w-4"
|
|
181
|
+
})
|
|
182
|
+
})
|
|
183
|
+
]
|
|
184
|
+
}),
|
|
185
|
+
/*#__PURE__*/ jsxs("div", {
|
|
186
|
+
className: "flex flex-1 gap-6 overflow-auto px-3 py-3 text-sm leading-6",
|
|
187
|
+
style: {
|
|
188
|
+
fontFamily: fontFamily.monospace
|
|
189
|
+
},
|
|
190
|
+
children: [
|
|
191
|
+
/*#__PURE__*/ jsx("div", {
|
|
192
|
+
className: "flex flex-col text-right text-foreground-subtle select-none",
|
|
193
|
+
children: sampleJsonLines.map((_, i)=>/*#__PURE__*/ jsx("span", {
|
|
194
|
+
children: i + 1
|
|
195
|
+
}, i))
|
|
196
|
+
}),
|
|
197
|
+
/*#__PURE__*/ jsx("div", {
|
|
198
|
+
className: "flex flex-col whitespace-pre text-foreground-muted",
|
|
199
|
+
children: sampleJsonLines.map((line, i)=>/*#__PURE__*/ jsx("span", {
|
|
200
|
+
children: line
|
|
201
|
+
}, i))
|
|
202
|
+
})
|
|
203
|
+
]
|
|
204
|
+
})
|
|
205
|
+
]
|
|
206
|
+
})
|
|
207
|
+
}),
|
|
208
|
+
/*#__PURE__*/ jsxs("div", {
|
|
209
|
+
className: "flex items-center justify-end gap-2 px-6 py-4",
|
|
210
|
+
children: [
|
|
211
|
+
/*#__PURE__*/ jsx("button", {
|
|
212
|
+
className: "flex h-10 items-center gap-2 rounded-xl border border-border px-4 py-2 text-sm font-medium leading-5 text-foreground-subtle transition-colors hover:text-foreground",
|
|
213
|
+
onClick: onClose,
|
|
214
|
+
children: /*#__PURE__*/ jsx("span", {
|
|
215
|
+
children: "Cancel"
|
|
216
|
+
})
|
|
217
|
+
}),
|
|
218
|
+
/*#__PURE__*/ jsx("button", {
|
|
219
|
+
className: "flex h-10 items-center gap-2 rounded-xl bg-brand px-4 py-2 text-sm font-semibold leading-5 text-foreground-inverse transition-colors hover:bg-brand/90",
|
|
220
|
+
onClick: onClose,
|
|
221
|
+
children: /*#__PURE__*/ jsx("span", {
|
|
222
|
+
children: "Save"
|
|
223
|
+
})
|
|
224
|
+
})
|
|
225
|
+
]
|
|
226
|
+
})
|
|
227
|
+
]
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
function PropertiesSimple({ className, icon, title = 'HTTP Request', fields = [], sections = [], onClose, onGraphControl }) {
|
|
231
|
+
const [editorOpen, setEditorOpen] = useState(false);
|
|
232
|
+
const handleGraphControl = (fieldLabel)=>{
|
|
233
|
+
onGraphControl?.(fieldLabel);
|
|
234
|
+
setEditorOpen(true);
|
|
235
|
+
};
|
|
236
|
+
const defaultExpandedKeys = sections.filter((s)=>s.defaultExpanded).map((s)=>s.label);
|
|
237
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
238
|
+
className: "relative h-full w-[360px] shrink-0",
|
|
239
|
+
children: [
|
|
240
|
+
/*#__PURE__*/ jsxs("div", {
|
|
241
|
+
className: cn('flex h-full w-full flex-col overflow-hidden rounded-2xl border border-border bg-surface-raised', className),
|
|
242
|
+
children: [
|
|
243
|
+
/*#__PURE__*/ jsxs("div", {
|
|
244
|
+
className: "flex items-center justify-between border-b border-border px-4 py-4",
|
|
245
|
+
children: [
|
|
246
|
+
/*#__PURE__*/ jsxs("div", {
|
|
247
|
+
className: "flex items-center gap-4",
|
|
248
|
+
children: [
|
|
249
|
+
/*#__PURE__*/ jsx("div", {
|
|
250
|
+
className: "flex h-10 w-10 items-center justify-center rounded-xl bg-brand-subtle",
|
|
251
|
+
children: icon ?? /*#__PURE__*/ jsx(Webhook, {
|
|
252
|
+
className: "h-6 w-6 text-brand-foreground"
|
|
253
|
+
})
|
|
254
|
+
}),
|
|
255
|
+
/*#__PURE__*/ jsx("span", {
|
|
256
|
+
className: "text-base font-semibold leading-5 tracking-[-0.4px] text-foreground",
|
|
257
|
+
children: title
|
|
258
|
+
})
|
|
259
|
+
]
|
|
260
|
+
}),
|
|
261
|
+
/*#__PURE__*/ jsx("button", {
|
|
262
|
+
className: "flex h-10 w-10 items-center justify-center rounded-xl bg-surface-overlay text-foreground-muted transition-colors hover:text-foreground",
|
|
263
|
+
onClick: onClose,
|
|
264
|
+
"aria-label": "Close properties",
|
|
265
|
+
children: /*#__PURE__*/ jsx(X, {
|
|
266
|
+
className: "h-5 w-5"
|
|
267
|
+
})
|
|
268
|
+
})
|
|
269
|
+
]
|
|
270
|
+
}),
|
|
271
|
+
/*#__PURE__*/ jsxs("div", {
|
|
272
|
+
className: "flex flex-1 flex-col overflow-y-auto",
|
|
273
|
+
children: [
|
|
274
|
+
fields.length > 0 && /*#__PURE__*/ jsx("div", {
|
|
275
|
+
className: "flex flex-col px-6 pb-2",
|
|
276
|
+
children: fields.map((field)=>/*#__PURE__*/ jsx(FieldItem, {
|
|
277
|
+
field: field,
|
|
278
|
+
onGraphControl: handleGraphControl
|
|
279
|
+
}, field.label))
|
|
280
|
+
}),
|
|
281
|
+
sections.length > 0 && /*#__PURE__*/ jsx(Accordion, {
|
|
282
|
+
type: "multiple",
|
|
283
|
+
defaultValue: defaultExpandedKeys,
|
|
284
|
+
className: "px-6",
|
|
285
|
+
children: sections.map((section)=>/*#__PURE__*/ jsxs(AccordionItem, {
|
|
286
|
+
value: section.label,
|
|
287
|
+
className: "border-b border-border-subtle",
|
|
288
|
+
children: [
|
|
289
|
+
/*#__PURE__*/ jsx(AccordionTrigger, {
|
|
290
|
+
className: "py-4 hover:no-underline [&>svg]:text-foreground-muted",
|
|
291
|
+
children: /*#__PURE__*/ jsx("span", {
|
|
292
|
+
className: "text-xs font-medium uppercase leading-6 tracking-wide text-foreground-muted",
|
|
293
|
+
children: section.label
|
|
294
|
+
})
|
|
295
|
+
}),
|
|
296
|
+
/*#__PURE__*/ jsx(AccordionContent, {
|
|
297
|
+
className: "pb-2 pt-0",
|
|
298
|
+
children: section.fields && section.fields.length > 0 && /*#__PURE__*/ jsx("div", {
|
|
299
|
+
className: "flex flex-col",
|
|
300
|
+
children: section.fields.map((field)=>/*#__PURE__*/ jsx(FieldItem, {
|
|
301
|
+
field: field,
|
|
302
|
+
onGraphControl: handleGraphControl
|
|
303
|
+
}, field.label))
|
|
304
|
+
})
|
|
305
|
+
})
|
|
306
|
+
]
|
|
307
|
+
}, section.label))
|
|
308
|
+
})
|
|
309
|
+
]
|
|
310
|
+
})
|
|
311
|
+
]
|
|
312
|
+
}),
|
|
313
|
+
editorOpen && /*#__PURE__*/ jsx("div", {
|
|
314
|
+
className: "absolute inset-y-0 right-0 z-20 w-[480px]",
|
|
315
|
+
children: /*#__PURE__*/ jsx(JsonEditorDrawer, {
|
|
316
|
+
open: editorOpen,
|
|
317
|
+
onClose: ()=>setEditorOpen(false)
|
|
318
|
+
})
|
|
319
|
+
})
|
|
320
|
+
]
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
export { PropertiesSimple };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
FlowProperties: ()=>FlowProperties
|
|
28
|
+
});
|
|
29
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
+
const external_flow_properties_bar_cjs_namespaceObject = require("./flow-properties-bar.cjs");
|
|
31
|
+
const external_flow_properties_expanded_cjs_namespaceObject = require("./flow-properties-expanded.cjs");
|
|
32
|
+
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
33
|
+
function FlowProperties({ className, expanded = false, flowName = 'Invoice processing', flowType = 'Workflow', nodeName = 'Validate invoice', nodeType = 'AI Agent', activeTab = 'properties', onTabChange, onExpand, onClose }) {
|
|
34
|
+
if (expanded) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_flow_properties_expanded_cjs_namespaceObject.PropertiesExpanded, {
|
|
35
|
+
className: (0, index_cjs_namespaceObject.cn)(className),
|
|
36
|
+
nodeName: nodeName,
|
|
37
|
+
nodeType: nodeType,
|
|
38
|
+
activeTab: activeTab,
|
|
39
|
+
onClose: onClose
|
|
40
|
+
});
|
|
41
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_flow_properties_bar_cjs_namespaceObject.PropertiesBar, {
|
|
42
|
+
className: className,
|
|
43
|
+
flowName: flowName,
|
|
44
|
+
flowType: flowType,
|
|
45
|
+
activeTab: activeTab,
|
|
46
|
+
onTabChange: onTabChange,
|
|
47
|
+
onExpand: onExpand
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
exports.FlowProperties = __webpack_exports__.FlowProperties;
|
|
51
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
52
|
+
"FlowProperties"
|
|
53
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
54
|
+
Object.defineProperty(exports, '__esModule', {
|
|
55
|
+
value: true
|
|
56
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface FlowPropertiesProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
/** When false, renders the collapsed bar; when true, renders the expanded panel */
|
|
4
|
+
expanded?: boolean;
|
|
5
|
+
/** Flow name (collapsed bar) */
|
|
6
|
+
flowName?: string;
|
|
7
|
+
/** Flow type label, e.g. "Workflow" (collapsed bar) */
|
|
8
|
+
flowType?: string;
|
|
9
|
+
/** Node name (expanded panel header) */
|
|
10
|
+
nodeName?: string;
|
|
11
|
+
/** Node type label, e.g. "AI Agent" (expanded panel header) */
|
|
12
|
+
nodeType?: string;
|
|
13
|
+
/** Active tab: 'properties' | 'variables' */
|
|
14
|
+
activeTab?: 'properties' | 'variables';
|
|
15
|
+
/** Callback when tab changes */
|
|
16
|
+
onTabChange?: (tab: 'properties' | 'variables') => void;
|
|
17
|
+
/** Callback when user expands (e.g. clicks Properties in the bar) */
|
|
18
|
+
onExpand?: () => void;
|
|
19
|
+
/** Callback when user closes the expanded panel */
|
|
20
|
+
onClose?: () => void;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Flow properties UI in one of two states: collapsed (bar on canvas) or expanded (full panel).
|
|
24
|
+
*
|
|
25
|
+
* Use `expanded` to switch. Collapsed shows flow name/type and Properties/Variables tabs;
|
|
26
|
+
* expanded shows the full node properties panel with header, toolbar, code, and input/output.
|
|
27
|
+
*/
|
|
28
|
+
export declare function FlowProperties({ className, expanded, flowName, flowType, nodeName, nodeType, activeTab, onTabChange, onExpand, onClose, }: FlowPropertiesProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { PropertiesBar } from "./flow-properties-bar.js";
|
|
3
|
+
import { PropertiesExpanded } from "./flow-properties-expanded.js";
|
|
4
|
+
import { cn } from "../../lib/index.js";
|
|
5
|
+
function FlowProperties({ className, expanded = false, flowName = 'Invoice processing', flowType = 'Workflow', nodeName = 'Validate invoice', nodeType = 'AI Agent', activeTab = 'properties', onTabChange, onExpand, onClose }) {
|
|
6
|
+
if (expanded) return /*#__PURE__*/ jsx(PropertiesExpanded, {
|
|
7
|
+
className: cn(className),
|
|
8
|
+
nodeName: nodeName,
|
|
9
|
+
nodeType: nodeType,
|
|
10
|
+
activeTab: activeTab,
|
|
11
|
+
onClose: onClose
|
|
12
|
+
});
|
|
13
|
+
return /*#__PURE__*/ jsx(PropertiesBar, {
|
|
14
|
+
className: className,
|
|
15
|
+
flowName: flowName,
|
|
16
|
+
flowType: flowType,
|
|
17
|
+
activeTab: activeTab,
|
|
18
|
+
onTabChange: onTabChange,
|
|
19
|
+
onExpand: onExpand
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export { FlowProperties };
|