@burdenoff/microfe-bigconsole 2026.624.2 → 2026.625.1
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/bigconsole/BigConsoleRoutes.js +93 -93
- package/dist/bigconsole/assistant/assistantApi.js +215 -0
- package/dist/bigconsole/assistant/assistantApi.js.map +1 -0
- package/dist/bigconsole/assistant/createSandboxAssistantTransport.js +119 -0
- package/dist/bigconsole/assistant/createSandboxAssistantTransport.js.map +1 -0
- package/dist/bigconsole/assistant/index.js +2 -0
- package/dist/bigconsole/assistant/pageContext.js +51 -0
- package/dist/bigconsole/assistant/pageContext.js.map +1 -0
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +48 -48
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +52 -52
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +33 -33
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +179 -179
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +38 -38
- package/dist/bigconsole/components/datasink/DataSinkTableViewer.js +32 -32
- package/dist/bigconsole/components/datasink/ExportDataSinkDialog.js +31 -31
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +98 -98
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
- package/dist/bigconsole/components/parser/ExportParserDialog.js +31 -31
- package/dist/bigconsole/components/parser/ImportParserDialog.js +162 -162
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +79 -79
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +307 -307
- package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetConfigDialog.js +222 -222
- package/dist/bigconsole/components/widgets/WidgetConfigDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetTypeSelector.js +23 -23
- package/dist/bigconsole/index.js +3 -0
- package/dist/bigconsole/pages/DashboardBuilderPage.js +74 -74
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +168 -189
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +266 -310
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataParsersPage.js +148 -194
- package/dist/bigconsole/pages/DataParsersPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +252 -246
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +256 -231
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinksPage.js +173 -219
- package/dist/bigconsole/pages/DataSinksPage.js.map +1 -1
- package/dist/bigconsole/pages/HomePage.js +125 -141
- package/dist/bigconsole/pages/HomePage.js.map +1 -1
- package/dist/bigconsole/pages/InsightsPage.js +159 -184
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.js +401 -393
- package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserViewPage.js +220 -201
- package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +212 -206
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +204 -181
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.js +107 -150
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +184 -171
- package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
- package/dist/bigconsole/pages/WidgetDemoPage.js +69 -81
- package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowViewPage.js +230 -216
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +106 -149
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/generated/wspace-operations.js +87 -36
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/index.js +3 -1
- package/package.json +6 -2
|
@@ -2,8 +2,8 @@ import e from "../../hooks/useExportDataSink.js";
|
|
|
2
2
|
import "../../hooks/index.js";
|
|
3
3
|
import { memo as t, useCallback as n, useEffect as r, useState as i } from "react";
|
|
4
4
|
import { Check as a, Download as o, FileJson as s } from "lucide-react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { Dialog as c, DialogContent as l, DialogDescription as u, DialogTitle as d, Spinner as f } from "@burdenoff/fe-libs/ui";
|
|
6
|
+
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
7
7
|
//#region src/bigconsole/components/datasink/ExportDataSinkDialog.tsx
|
|
8
8
|
var g = {
|
|
9
9
|
dialogContent: {
|
|
@@ -169,7 +169,7 @@ var g = {
|
|
|
169
169
|
cursor: "not-allowed"
|
|
170
170
|
}
|
|
171
171
|
}, _ = t(function({ checked: e, onChange: t, disabled: n, label: r, description: i }) {
|
|
172
|
-
return /* @__PURE__ */
|
|
172
|
+
return /* @__PURE__ */ h("div", {
|
|
173
173
|
style: {
|
|
174
174
|
...g.optionItem,
|
|
175
175
|
...e ? g.optionItemActive : {},
|
|
@@ -177,22 +177,22 @@ var g = {
|
|
|
177
177
|
cursor: n ? "not-allowed" : "pointer"
|
|
178
178
|
},
|
|
179
179
|
onClick: () => !n && t(!e),
|
|
180
|
-
children: [/* @__PURE__ */
|
|
180
|
+
children: [/* @__PURE__ */ m("div", {
|
|
181
181
|
style: {
|
|
182
182
|
...g.checkbox,
|
|
183
183
|
...e ? g.checkboxChecked : {}
|
|
184
184
|
},
|
|
185
|
-
children: e && /* @__PURE__ */
|
|
185
|
+
children: e && /* @__PURE__ */ m(a, { style: {
|
|
186
186
|
width: "14px",
|
|
187
187
|
height: "14px",
|
|
188
188
|
color: "var(--color-action-primary-text)"
|
|
189
189
|
} })
|
|
190
|
-
}), /* @__PURE__ */
|
|
190
|
+
}), /* @__PURE__ */ h("div", {
|
|
191
191
|
style: g.optionText,
|
|
192
|
-
children: [/* @__PURE__ */
|
|
192
|
+
children: [/* @__PURE__ */ m("p", {
|
|
193
193
|
style: g.optionLabel,
|
|
194
194
|
children: r
|
|
195
|
-
}), /* @__PURE__ */
|
|
195
|
+
}), /* @__PURE__ */ m("p", {
|
|
196
196
|
style: g.optionDescription,
|
|
197
197
|
children: i
|
|
198
198
|
})]
|
|
@@ -213,73 +213,73 @@ var g = {
|
|
|
213
213
|
b,
|
|
214
214
|
y
|
|
215
215
|
]);
|
|
216
|
-
return a ? /* @__PURE__ */
|
|
216
|
+
return a ? /* @__PURE__ */ m(c, {
|
|
217
217
|
open: t,
|
|
218
218
|
onOpenChange: (e) => !e && !C && y(),
|
|
219
|
-
children: /* @__PURE__ */
|
|
219
|
+
children: /* @__PURE__ */ h(l, {
|
|
220
220
|
style: g.dialogContent,
|
|
221
221
|
children: [
|
|
222
|
-
/* @__PURE__ */
|
|
222
|
+
/* @__PURE__ */ h("div", {
|
|
223
223
|
style: g.header,
|
|
224
|
-
children: [/* @__PURE__ */
|
|
224
|
+
children: [/* @__PURE__ */ m("div", {
|
|
225
225
|
style: g.iconWrapper,
|
|
226
|
-
children: /* @__PURE__ */
|
|
226
|
+
children: /* @__PURE__ */ m(s, { style: {
|
|
227
227
|
width: "22px",
|
|
228
228
|
height: "22px"
|
|
229
229
|
} })
|
|
230
|
-
}), /* @__PURE__ */
|
|
230
|
+
}), /* @__PURE__ */ h("div", {
|
|
231
231
|
style: g.headerText,
|
|
232
|
-
children: [/* @__PURE__ */
|
|
232
|
+
children: [/* @__PURE__ */ m(d, {
|
|
233
233
|
asChild: !0,
|
|
234
|
-
children: /* @__PURE__ */
|
|
234
|
+
children: /* @__PURE__ */ m("h2", {
|
|
235
235
|
style: g.title,
|
|
236
236
|
children: "Export DataSink"
|
|
237
237
|
})
|
|
238
|
-
}), /* @__PURE__ */
|
|
238
|
+
}), /* @__PURE__ */ m(u, {
|
|
239
239
|
asChild: !0,
|
|
240
|
-
children: /* @__PURE__ */
|
|
240
|
+
children: /* @__PURE__ */ m("p", {
|
|
241
241
|
style: g.description,
|
|
242
242
|
children: "Export your DataSink configuration to a JSON file."
|
|
243
243
|
})
|
|
244
244
|
})]
|
|
245
245
|
})]
|
|
246
246
|
}),
|
|
247
|
-
/* @__PURE__ */
|
|
247
|
+
/* @__PURE__ */ h("div", {
|
|
248
248
|
style: g.content,
|
|
249
249
|
children: [
|
|
250
|
-
v && /* @__PURE__ */
|
|
250
|
+
v && /* @__PURE__ */ h("div", {
|
|
251
251
|
style: g.dataSinkInfo,
|
|
252
|
-
children: [/* @__PURE__ */
|
|
252
|
+
children: [/* @__PURE__ */ m("p", {
|
|
253
253
|
style: g.dataSinkLabel,
|
|
254
254
|
children: "Exporting:"
|
|
255
|
-
}), /* @__PURE__ */
|
|
255
|
+
}), /* @__PURE__ */ m("p", {
|
|
256
256
|
style: g.dataSinkName,
|
|
257
257
|
children: v
|
|
258
258
|
})]
|
|
259
259
|
}),
|
|
260
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ m("p", {
|
|
261
261
|
style: g.optionsTitle,
|
|
262
262
|
children: "Export Options"
|
|
263
263
|
}),
|
|
264
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ m(_, {
|
|
265
265
|
checked: x,
|
|
266
266
|
onChange: S,
|
|
267
267
|
disabled: C,
|
|
268
268
|
label: "Format JSON (Pretty Print)",
|
|
269
269
|
description: "Makes the export file human-readable (larger file size)"
|
|
270
270
|
}),
|
|
271
|
-
w && /* @__PURE__ */
|
|
271
|
+
w && /* @__PURE__ */ m("div", {
|
|
272
272
|
style: g.error,
|
|
273
|
-
children: /* @__PURE__ */
|
|
273
|
+
children: /* @__PURE__ */ m("p", {
|
|
274
274
|
style: g.errorText,
|
|
275
275
|
children: w.message
|
|
276
276
|
})
|
|
277
277
|
})
|
|
278
278
|
]
|
|
279
279
|
}),
|
|
280
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ h("div", {
|
|
281
281
|
style: g.footer,
|
|
282
|
-
children: [/* @__PURE__ */
|
|
282
|
+
children: [/* @__PURE__ */ m("button", {
|
|
283
283
|
style: g.cancelButton,
|
|
284
284
|
onClick: y,
|
|
285
285
|
disabled: C,
|
|
@@ -290,7 +290,7 @@ var g = {
|
|
|
290
290
|
e.currentTarget.style.backgroundColor = "var(--color-bg-surface)";
|
|
291
291
|
},
|
|
292
292
|
children: "Cancel"
|
|
293
|
-
}), /* @__PURE__ */
|
|
293
|
+
}), /* @__PURE__ */ m("button", {
|
|
294
294
|
style: {
|
|
295
295
|
...g.exportButton,
|
|
296
296
|
...C ? g.exportButtonDisabled : {}
|
|
@@ -303,10 +303,10 @@ var g = {
|
|
|
303
303
|
onMouseLeave: (e) => {
|
|
304
304
|
C || (e.currentTarget.style.opacity = "1");
|
|
305
305
|
},
|
|
306
|
-
children: C ? /* @__PURE__ */
|
|
306
|
+
children: C ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(f, { style: {
|
|
307
307
|
width: "16px",
|
|
308
308
|
height: "16px"
|
|
309
|
-
} }), "Exporting..."] }) : /* @__PURE__ */
|
|
309
|
+
} }), "Exporting..."] }) : /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(o, { style: {
|
|
310
310
|
width: "16px",
|
|
311
311
|
height: "16px"
|
|
312
312
|
} }), "Download Export"] })
|
|
@@ -2,8 +2,8 @@ import e from "../../hooks/useImportDataSink.js";
|
|
|
2
2
|
import "../../hooks/index.js";
|
|
3
3
|
import { memo as t, useCallback as n, useEffect as r, useRef as i, useState as a } from "react";
|
|
4
4
|
import { ArrowLeft as o, Check as s, FileJson as c, Info as l, RefreshCw as u, Upload as d, XCircle as f } from "lucide-react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { Badge as p, Button as m, Card as h, CardContent as g, Dialog as _, DialogContent as v, DialogDescription as y, DialogFooter as b, DialogHeader as x, DialogTitle as S, Input as C, Label as w, Spinner as T } from "@burdenoff/fe-libs/ui";
|
|
6
|
+
import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
7
7
|
//#region src/bigconsole/components/datasink/ImportDataSinkDialog.tsx
|
|
8
8
|
var k = t(function({ isOpen: t, onClose: k, onSuccess: A }) {
|
|
9
9
|
let [j, M] = a("select"), [, N] = a(null), [P, F] = a(null), [I, L] = a(""), [R, z] = a(""), B = i(null), { loading: V, error: H, validationResult: U, importResult: W, validateImport: G, importDataSink: K, extractDataSinkId: q, clearState: J } = e();
|
|
@@ -49,127 +49,127 @@ var k = t(function({ isOpen: t, onClose: k, onSuccess: A }) {
|
|
|
49
49
|
K,
|
|
50
50
|
A
|
|
51
51
|
]), Q = !V && j !== "importing", $ = P ? q(P) : null;
|
|
52
|
-
return /* @__PURE__ */
|
|
52
|
+
return /* @__PURE__ */ D(_, {
|
|
53
53
|
open: t,
|
|
54
54
|
onOpenChange: (e) => !e && Q && k(),
|
|
55
|
-
children: /* @__PURE__ */
|
|
55
|
+
children: /* @__PURE__ */ O(v, {
|
|
56
56
|
className: "sm:max-w-lg max-h-[85vh] flex flex-col",
|
|
57
57
|
children: [
|
|
58
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ O(x, { children: [/* @__PURE__ */ O("div", {
|
|
59
59
|
className: "flex items-center gap-3",
|
|
60
|
-
children: [/* @__PURE__ */
|
|
60
|
+
children: [/* @__PURE__ */ D("div", {
|
|
61
61
|
className: "flex size-10 items-center justify-center rounded-lg bg-action-primary-bg/10",
|
|
62
|
-
children: /* @__PURE__ */
|
|
63
|
-
}), /* @__PURE__ */
|
|
64
|
-
}), /* @__PURE__ */
|
|
65
|
-
/* @__PURE__ */
|
|
62
|
+
children: /* @__PURE__ */ D(d, { className: "size-5 text-primary" })
|
|
63
|
+
}), /* @__PURE__ */ D(S, { children: "Import DataSink" })]
|
|
64
|
+
}), /* @__PURE__ */ D(y, { children: "Upload a DataSink export file to restore it into this workspace." })] }),
|
|
65
|
+
/* @__PURE__ */ O("div", {
|
|
66
66
|
className: "flex-1 overflow-y-auto py-4 space-y-4",
|
|
67
67
|
children: [
|
|
68
|
-
j === "select" && /* @__PURE__ */
|
|
68
|
+
j === "select" && /* @__PURE__ */ O("div", {
|
|
69
69
|
onDragOver: (e) => e.preventDefault(),
|
|
70
70
|
onDrop: X,
|
|
71
71
|
className: "border-2 border-dashed rounded-lg p-8 text-center hover:border-primary transition-colors",
|
|
72
72
|
children: [
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ D(c, { className: "size-12 mx-auto text-text-secondary mb-4" }),
|
|
74
|
+
/* @__PURE__ */ D("p", {
|
|
75
75
|
className: "text-sm mb-2",
|
|
76
76
|
children: "Drag and drop a DataSink export file here"
|
|
77
77
|
}),
|
|
78
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ D("p", {
|
|
79
79
|
className: "text-xs text-text-secondary mb-4",
|
|
80
80
|
children: "or"
|
|
81
81
|
}),
|
|
82
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ D("input", {
|
|
83
83
|
ref: B,
|
|
84
84
|
type: "file",
|
|
85
85
|
accept: ".json",
|
|
86
86
|
onChange: Y,
|
|
87
87
|
className: "hidden"
|
|
88
88
|
}),
|
|
89
|
-
/* @__PURE__ */ m
|
|
89
|
+
/* @__PURE__ */ D(m, {
|
|
90
90
|
onClick: () => B.current?.click(),
|
|
91
91
|
disabled: V,
|
|
92
92
|
children: "Browse Files"
|
|
93
93
|
}),
|
|
94
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ D("p", {
|
|
95
95
|
className: "text-xs text-text-secondary mt-4",
|
|
96
96
|
children: "Only .json files exported from BigConsole are supported"
|
|
97
97
|
})
|
|
98
98
|
]
|
|
99
99
|
}),
|
|
100
|
-
(j === "preview" || j === "importing") && U && /* @__PURE__ */
|
|
101
|
-
U.dataSinkInfo && /* @__PURE__ */
|
|
100
|
+
(j === "preview" || j === "importing") && U && /* @__PURE__ */ O(E, { children: [
|
|
101
|
+
U.dataSinkInfo && /* @__PURE__ */ D(h, { children: /* @__PURE__ */ O(g, {
|
|
102
102
|
className: "p-4 space-y-2",
|
|
103
103
|
children: [
|
|
104
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ O("div", {
|
|
105
105
|
className: "flex items-center justify-between",
|
|
106
|
-
children: [/* @__PURE__ */
|
|
106
|
+
children: [/* @__PURE__ */ D("span", {
|
|
107
107
|
className: "text-sm text-text-secondary",
|
|
108
108
|
children: "Name"
|
|
109
|
-
}), /* @__PURE__ */
|
|
109
|
+
}), /* @__PURE__ */ D("span", {
|
|
110
110
|
className: "text-sm font-medium",
|
|
111
111
|
children: U.dataSinkInfo.name || "Unnamed"
|
|
112
112
|
})]
|
|
113
113
|
}),
|
|
114
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ O("div", {
|
|
115
115
|
className: "flex items-center justify-between",
|
|
116
|
-
children: [/* @__PURE__ */
|
|
116
|
+
children: [/* @__PURE__ */ D("span", {
|
|
117
117
|
className: "text-sm text-text-secondary",
|
|
118
118
|
children: "Key"
|
|
119
|
-
}), /* @__PURE__ */
|
|
119
|
+
}), /* @__PURE__ */ D("span", {
|
|
120
120
|
className: "text-xs font-mono",
|
|
121
121
|
children: U.dataSinkInfo.key
|
|
122
122
|
})]
|
|
123
123
|
}),
|
|
124
|
-
/* @__PURE__ */
|
|
124
|
+
/* @__PURE__ */ O("div", {
|
|
125
125
|
className: "flex items-center justify-between",
|
|
126
|
-
children: [/* @__PURE__ */
|
|
126
|
+
children: [/* @__PURE__ */ D("span", {
|
|
127
127
|
className: "text-sm text-text-secondary",
|
|
128
128
|
children: "Status"
|
|
129
|
-
}), /* @__PURE__ */
|
|
129
|
+
}), /* @__PURE__ */ D(p, {
|
|
130
130
|
variant: "secondary",
|
|
131
131
|
children: U.dataSinkInfo.status
|
|
132
132
|
})]
|
|
133
133
|
}),
|
|
134
|
-
/* @__PURE__ */
|
|
134
|
+
/* @__PURE__ */ O("div", {
|
|
135
135
|
className: "flex items-center justify-between",
|
|
136
|
-
children: [/* @__PURE__ */
|
|
136
|
+
children: [/* @__PURE__ */ D("span", {
|
|
137
137
|
className: "text-sm text-text-secondary",
|
|
138
138
|
children: "Setup State"
|
|
139
|
-
}), /* @__PURE__ */
|
|
139
|
+
}), /* @__PURE__ */ D(p, {
|
|
140
140
|
variant: "outline",
|
|
141
141
|
children: U.dataSinkInfo.setupState
|
|
142
142
|
})]
|
|
143
143
|
}),
|
|
144
|
-
U.dataSinkInfo.exportedFrom && /* @__PURE__ */
|
|
144
|
+
U.dataSinkInfo.exportedFrom && /* @__PURE__ */ O("div", {
|
|
145
145
|
className: "flex items-center justify-between",
|
|
146
|
-
children: [/* @__PURE__ */
|
|
146
|
+
children: [/* @__PURE__ */ D("span", {
|
|
147
147
|
className: "text-sm text-text-secondary",
|
|
148
148
|
children: "Source ID"
|
|
149
|
-
}), /* @__PURE__ */
|
|
149
|
+
}), /* @__PURE__ */ D("span", {
|
|
150
150
|
className: "text-xs text-text-secondary font-mono truncate max-w-[180px]",
|
|
151
151
|
children: U.dataSinkInfo.exportedFrom
|
|
152
152
|
})]
|
|
153
153
|
}),
|
|
154
|
-
/* @__PURE__ */
|
|
154
|
+
/* @__PURE__ */ O("div", {
|
|
155
155
|
className: "flex items-center justify-between",
|
|
156
|
-
children: [/* @__PURE__ */
|
|
156
|
+
children: [/* @__PURE__ */ D("span", {
|
|
157
157
|
className: "text-sm text-text-secondary",
|
|
158
158
|
children: "Schema Version"
|
|
159
|
-
}), /* @__PURE__ */
|
|
159
|
+
}), /* @__PURE__ */ D("span", {
|
|
160
160
|
className: "text-xs text-text-secondary",
|
|
161
161
|
children: U.dataSinkInfo.schemaVersion
|
|
162
162
|
})]
|
|
163
163
|
})
|
|
164
164
|
]
|
|
165
165
|
}) }),
|
|
166
|
-
U.errors.length > 0 && /* @__PURE__ */
|
|
166
|
+
U.errors.length > 0 && /* @__PURE__ */ D(h, {
|
|
167
167
|
className: "border-status-error-border/50 bg-status-error-bg/5",
|
|
168
|
-
children: /* @__PURE__ */
|
|
168
|
+
children: /* @__PURE__ */ O(g, {
|
|
169
169
|
className: "p-3",
|
|
170
|
-
children: [/* @__PURE__ */
|
|
170
|
+
children: [/* @__PURE__ */ O("div", {
|
|
171
171
|
className: "flex items-center gap-2 mb-2",
|
|
172
|
-
children: [/* @__PURE__ */
|
|
172
|
+
children: [/* @__PURE__ */ D(f, { className: "size-4 text-status-error-text" }), /* @__PURE__ */ O("span", {
|
|
173
173
|
className: "text-sm font-medium text-status-error-text",
|
|
174
174
|
children: [
|
|
175
175
|
"Errors (",
|
|
@@ -177,10 +177,10 @@ var k = t(function({ isOpen: t, onClose: k, onSuccess: A }) {
|
|
|
177
177
|
")"
|
|
178
178
|
]
|
|
179
179
|
})]
|
|
180
|
-
}), /* @__PURE__ */
|
|
180
|
+
}), /* @__PURE__ */ D("ul", {
|
|
181
181
|
className: "text-xs text-status-error-text space-y-1",
|
|
182
|
-
children: U.errors.map((e, t) => /* @__PURE__ */
|
|
183
|
-
/* @__PURE__ */
|
|
182
|
+
children: U.errors.map((e, t) => /* @__PURE__ */ O("li", { children: [
|
|
183
|
+
/* @__PURE__ */ O("span", {
|
|
184
184
|
className: "font-mono",
|
|
185
185
|
children: [
|
|
186
186
|
"[",
|
|
@@ -194,57 +194,57 @@ var k = t(function({ isOpen: t, onClose: k, onSuccess: A }) {
|
|
|
194
194
|
})]
|
|
195
195
|
})
|
|
196
196
|
}),
|
|
197
|
-
U.isValid && /* @__PURE__ */
|
|
197
|
+
U.isValid && /* @__PURE__ */ O("div", {
|
|
198
198
|
className: "space-y-4",
|
|
199
199
|
children: [
|
|
200
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ D("p", {
|
|
201
201
|
className: "text-sm font-medium",
|
|
202
202
|
children: "Import Options"
|
|
203
203
|
}),
|
|
204
|
-
/* @__PURE__ */
|
|
204
|
+
/* @__PURE__ */ D(h, {
|
|
205
205
|
className: "border-blue-500/50 bg-blue-500/5",
|
|
206
|
-
children: /* @__PURE__ */
|
|
206
|
+
children: /* @__PURE__ */ D(g, {
|
|
207
207
|
className: "p-3",
|
|
208
|
-
children: /* @__PURE__ */
|
|
208
|
+
children: /* @__PURE__ */ O("div", {
|
|
209
209
|
className: "flex items-start gap-2",
|
|
210
|
-
children: [/* @__PURE__ */
|
|
210
|
+
children: [/* @__PURE__ */ D(l, { className: "size-4 text-blue-600 mt-0.5 shrink-0" }), /* @__PURE__ */ D("div", {
|
|
211
211
|
className: "text-xs text-blue-700 dark:text-blue-400",
|
|
212
|
-
children: $ ? /* @__PURE__ */
|
|
213
|
-
/* @__PURE__ */
|
|
212
|
+
children: $ ? /* @__PURE__ */ O(E, { children: [
|
|
213
|
+
/* @__PURE__ */ D("p", {
|
|
214
214
|
className: "font-medium mb-1",
|
|
215
215
|
children: "Import will check for existing DataSink"
|
|
216
216
|
}),
|
|
217
|
-
/* @__PURE__ */
|
|
217
|
+
/* @__PURE__ */ O("p", { children: [
|
|
218
218
|
"If the original DataSink (ID:",
|
|
219
219
|
" ",
|
|
220
|
-
/* @__PURE__ */
|
|
220
|
+
/* @__PURE__ */ O("code", {
|
|
221
221
|
className: "font-mono bg-blue-200/50 px-1 rounded",
|
|
222
222
|
children: [$.slice(0, 8), "..."]
|
|
223
223
|
}),
|
|
224
224
|
") exists:"
|
|
225
225
|
] }),
|
|
226
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ O("ul", {
|
|
227
227
|
className: "list-disc list-inside mt-1 space-y-0.5",
|
|
228
|
-
children: [/* @__PURE__ */
|
|
228
|
+
children: [/* @__PURE__ */ D("li", { children: "With changes → Update the existing DataSink" }), /* @__PURE__ */ D("li", { children: "No changes → Show \"already exists\" message" })]
|
|
229
229
|
}),
|
|
230
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ D("p", {
|
|
231
231
|
className: "mt-1",
|
|
232
232
|
children: "If original doesn't exist → Create a new DataSink"
|
|
233
233
|
})
|
|
234
|
-
] }) : /* @__PURE__ */
|
|
234
|
+
] }) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("p", {
|
|
235
235
|
className: "font-medium mb-1",
|
|
236
236
|
children: "A new DataSink will be created"
|
|
237
|
-
}), /* @__PURE__ */
|
|
237
|
+
}), /* @__PURE__ */ D("p", { children: "Import as a new DataSink with the specified configuration." })] })
|
|
238
238
|
})]
|
|
239
239
|
})
|
|
240
240
|
})
|
|
241
241
|
}),
|
|
242
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ O("div", {
|
|
243
243
|
className: "space-y-2",
|
|
244
|
-
children: [/* @__PURE__ */
|
|
244
|
+
children: [/* @__PURE__ */ D(w, {
|
|
245
245
|
htmlFor: "import-name",
|
|
246
246
|
children: "DataSink Name"
|
|
247
|
-
}), /* @__PURE__ */
|
|
247
|
+
}), /* @__PURE__ */ D(C, {
|
|
248
248
|
id: "import-name",
|
|
249
249
|
type: "text",
|
|
250
250
|
value: I,
|
|
@@ -253,14 +253,14 @@ var k = t(function({ isOpen: t, onClose: k, onSuccess: A }) {
|
|
|
253
253
|
disabled: j === "importing"
|
|
254
254
|
})]
|
|
255
255
|
}),
|
|
256
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ O("div", {
|
|
257
257
|
className: "space-y-2",
|
|
258
258
|
children: [
|
|
259
|
-
/* @__PURE__ */
|
|
259
|
+
/* @__PURE__ */ D(w, {
|
|
260
260
|
htmlFor: "import-key",
|
|
261
261
|
children: "DataSink Key"
|
|
262
262
|
}),
|
|
263
|
-
/* @__PURE__ */
|
|
263
|
+
/* @__PURE__ */ D(C, {
|
|
264
264
|
id: "import-key",
|
|
265
265
|
type: "text",
|
|
266
266
|
value: R,
|
|
@@ -268,7 +268,7 @@ var k = t(function({ isOpen: t, onClose: k, onSuccess: A }) {
|
|
|
268
268
|
placeholder: U.dataSinkInfo?.key || "datasink-key",
|
|
269
269
|
disabled: j === "importing"
|
|
270
270
|
}),
|
|
271
|
-
/* @__PURE__ */
|
|
271
|
+
/* @__PURE__ */ D("p", {
|
|
272
272
|
className: "text-xs text-text-secondary",
|
|
273
273
|
children: "Use a unique key to avoid conflicts with existing DataSinks."
|
|
274
274
|
})
|
|
@@ -277,19 +277,19 @@ var k = t(function({ isOpen: t, onClose: k, onSuccess: A }) {
|
|
|
277
277
|
]
|
|
278
278
|
})
|
|
279
279
|
] }),
|
|
280
|
-
j === "complete" && W?.success && /* @__PURE__ */
|
|
280
|
+
j === "complete" && W?.success && /* @__PURE__ */ O("div", {
|
|
281
281
|
className: "text-center py-6",
|
|
282
282
|
children: [
|
|
283
|
-
W.alreadyExists && /* @__PURE__ */
|
|
284
|
-
/* @__PURE__ */
|
|
283
|
+
W.alreadyExists && /* @__PURE__ */ O(E, { children: [
|
|
284
|
+
/* @__PURE__ */ D("div", {
|
|
285
285
|
className: "size-16 mx-auto mb-4 rounded-full bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center",
|
|
286
|
-
children: /* @__PURE__ */
|
|
286
|
+
children: /* @__PURE__ */ D(l, { className: "size-8 text-blue-600" })
|
|
287
287
|
}),
|
|
288
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ D("h3", {
|
|
289
289
|
className: "text-lg font-medium mb-2",
|
|
290
290
|
children: "DataSink Already Exists"
|
|
291
291
|
}),
|
|
292
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ O("p", {
|
|
293
293
|
className: "text-sm text-text-secondary mb-4",
|
|
294
294
|
children: [
|
|
295
295
|
"DataSink \"",
|
|
@@ -298,16 +298,16 @@ var k = t(function({ isOpen: t, onClose: k, onSuccess: A }) {
|
|
|
298
298
|
]
|
|
299
299
|
})
|
|
300
300
|
] }),
|
|
301
|
-
W.originalUpdated && !W.alreadyExists && /* @__PURE__ */
|
|
302
|
-
/* @__PURE__ */
|
|
301
|
+
W.originalUpdated && !W.alreadyExists && /* @__PURE__ */ O(E, { children: [
|
|
302
|
+
/* @__PURE__ */ D("div", {
|
|
303
303
|
className: "size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",
|
|
304
|
-
children: /* @__PURE__ */
|
|
304
|
+
children: /* @__PURE__ */ D(u, { className: "size-8 text-green-600" })
|
|
305
305
|
}),
|
|
306
|
-
/* @__PURE__ */
|
|
306
|
+
/* @__PURE__ */ D("h3", {
|
|
307
307
|
className: "text-lg font-medium mb-2",
|
|
308
308
|
children: "DataSink Updated!"
|
|
309
309
|
}),
|
|
310
|
-
/* @__PURE__ */
|
|
310
|
+
/* @__PURE__ */ O("p", {
|
|
311
311
|
className: "text-sm text-text-secondary mb-4",
|
|
312
312
|
children: [
|
|
313
313
|
"DataSink \"",
|
|
@@ -316,16 +316,16 @@ var k = t(function({ isOpen: t, onClose: k, onSuccess: A }) {
|
|
|
316
316
|
]
|
|
317
317
|
})
|
|
318
318
|
] }),
|
|
319
|
-
!W.originalUpdated && !W.alreadyExists && /* @__PURE__ */
|
|
320
|
-
/* @__PURE__ */
|
|
319
|
+
!W.originalUpdated && !W.alreadyExists && /* @__PURE__ */ O(E, { children: [
|
|
320
|
+
/* @__PURE__ */ D("div", {
|
|
321
321
|
className: "size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",
|
|
322
|
-
children: /* @__PURE__ */
|
|
322
|
+
children: /* @__PURE__ */ D(s, { className: "size-8 text-green-600" })
|
|
323
323
|
}),
|
|
324
|
-
/* @__PURE__ */
|
|
324
|
+
/* @__PURE__ */ D("h3", {
|
|
325
325
|
className: "text-lg font-medium mb-2",
|
|
326
326
|
children: "Import Successful!"
|
|
327
327
|
}),
|
|
328
|
-
/* @__PURE__ */
|
|
328
|
+
/* @__PURE__ */ O("p", {
|
|
329
329
|
className: "text-sm text-text-secondary mb-4",
|
|
330
330
|
children: [
|
|
331
331
|
"DataSink \"",
|
|
@@ -336,21 +336,21 @@ var k = t(function({ isOpen: t, onClose: k, onSuccess: A }) {
|
|
|
336
336
|
] })
|
|
337
337
|
]
|
|
338
338
|
}),
|
|
339
|
-
H && /* @__PURE__ */
|
|
339
|
+
H && /* @__PURE__ */ D(h, {
|
|
340
340
|
className: "border-status-error-border/50 bg-status-error-bg/5",
|
|
341
|
-
children: /* @__PURE__ */
|
|
341
|
+
children: /* @__PURE__ */ D(g, {
|
|
342
342
|
className: "p-3",
|
|
343
|
-
children: /* @__PURE__ */
|
|
343
|
+
children: /* @__PURE__ */ D("p", {
|
|
344
344
|
className: "text-sm text-status-error-text",
|
|
345
345
|
children: H.message
|
|
346
346
|
})
|
|
347
347
|
})
|
|
348
348
|
}),
|
|
349
|
-
W && !W.success && W.errorMessage && /* @__PURE__ */
|
|
349
|
+
W && !W.success && W.errorMessage && /* @__PURE__ */ D(h, {
|
|
350
350
|
className: "border-status-error-border/50 bg-status-error-bg/5",
|
|
351
|
-
children: /* @__PURE__ */
|
|
351
|
+
children: /* @__PURE__ */ D(g, {
|
|
352
352
|
className: "p-3",
|
|
353
|
-
children: /* @__PURE__ */
|
|
353
|
+
children: /* @__PURE__ */ D("p", {
|
|
354
354
|
className: "text-sm text-status-error-text",
|
|
355
355
|
children: W.errorMessage
|
|
356
356
|
})
|
|
@@ -358,34 +358,34 @@ var k = t(function({ isOpen: t, onClose: k, onSuccess: A }) {
|
|
|
358
358
|
})
|
|
359
359
|
]
|
|
360
360
|
}),
|
|
361
|
-
/* @__PURE__ */
|
|
361
|
+
/* @__PURE__ */ O(b, {
|
|
362
362
|
className: "flex-row justify-between sm:justify-between",
|
|
363
|
-
children: [/* @__PURE__ */
|
|
363
|
+
children: [/* @__PURE__ */ D("div", { children: j === "preview" && /* @__PURE__ */ O(m, {
|
|
364
364
|
variant: "ghost",
|
|
365
365
|
onClick: () => {
|
|
366
366
|
M("select"), N(null), F(null), J();
|
|
367
367
|
},
|
|
368
368
|
disabled: V,
|
|
369
|
-
children: [/* @__PURE__ */
|
|
370
|
-
}) }), /* @__PURE__ */
|
|
369
|
+
children: [/* @__PURE__ */ D(o, { className: "size-4" }), "Back"]
|
|
370
|
+
}) }), /* @__PURE__ */ O("div", {
|
|
371
371
|
className: "flex items-center gap-2",
|
|
372
372
|
children: [
|
|
373
|
-
j !== "complete" && /* @__PURE__ */ m
|
|
373
|
+
j !== "complete" && /* @__PURE__ */ D(m, {
|
|
374
374
|
variant: "outline",
|
|
375
375
|
onClick: k,
|
|
376
376
|
disabled: !Q,
|
|
377
377
|
children: "Cancel"
|
|
378
378
|
}),
|
|
379
|
-
j === "preview" && U?.isValid && /* @__PURE__ */
|
|
379
|
+
j === "preview" && U?.isValid && /* @__PURE__ */ O(m, {
|
|
380
380
|
onClick: Z,
|
|
381
381
|
disabled: V,
|
|
382
|
-
children: [/* @__PURE__ */
|
|
382
|
+
children: [/* @__PURE__ */ D(d, { className: "size-4" }), "Import DataSink"]
|
|
383
383
|
}),
|
|
384
|
-
j === "importing" && /* @__PURE__ */
|
|
384
|
+
j === "importing" && /* @__PURE__ */ O("div", {
|
|
385
385
|
className: "flex items-center gap-2 text-sm text-text-secondary",
|
|
386
|
-
children: [/* @__PURE__ */
|
|
386
|
+
children: [/* @__PURE__ */ D(T, { className: "size-4" }), "Importing..."]
|
|
387
387
|
}),
|
|
388
|
-
j === "complete" && /* @__PURE__ */ m
|
|
388
|
+
j === "complete" && /* @__PURE__ */ D(m, {
|
|
389
389
|
onClick: k,
|
|
390
390
|
children: "Done"
|
|
391
391
|
})
|