@burdenoff/microfe-bigconsole 2026.805.2 → 2026.805.3
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/components/builder/inspector/DataBindingSection.js +109 -113
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js.map +1 -1
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +115 -113
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +71 -62
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +90 -89
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +56 -54
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +126 -125
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +151 -150
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +77 -76
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +97 -96
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +172 -191
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +75 -83
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +151 -154
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +181 -190
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js.map +1 -1
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +110 -108
- package/dist/bigconsole/components/dashboard/WidgetPalette.js.map +1 -1
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +102 -103
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +36 -41
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +38 -37
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +113 -117
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +182 -197
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +166 -168
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js.map +1 -1
- package/dist/bigconsole/components/parser/DataSinkSelector.js +87 -86
- package/dist/bigconsole/components/parser/DataSinkSelector.js.map +1 -1
- package/dist/bigconsole/components/parser/ImportParserDialog.js +196 -211
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserSelector.js +130 -128
- package/dist/bigconsole/components/parser/ParserSelector.js.map +1 -1
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +66 -63
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js.map +1 -1
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +95 -91
- package/dist/bigconsole/components/preview/AiPreviewPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +222 -215
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +149 -145
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +504 -470
- package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +44 -47
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +143 -142
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +101 -88
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js.map +1 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +135 -134
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js.map +1 -1
- package/dist/bigconsole/components/widgets/form/FormWidget.js +167 -159
- package/dist/bigconsole/components/widgets/form/FormWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +69 -68
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +64 -72
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +60 -59
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/list/ListConfig.js +57 -56
- package/dist/bigconsole/components/widgets/list/ListConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +70 -69
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +35 -34
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +20 -19
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js.map +1 -1
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +178 -177
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +76 -75
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/table/TableConfig.js +183 -168
- package/dist/bigconsole/components/widgets/table/TableConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +187 -180
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js.map +1 -1
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +40 -38
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js.map +1 -1
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +150 -148
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
- package/dist/bigconsole/pages/DashboardBuilderPage.js +181 -176
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +196 -192
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +223 -219
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataParsersPage.js +167 -170
- package/dist/bigconsole/pages/DataParsersPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +204 -189
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +175 -169
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSourcesPage.js +8 -7
- package/dist/bigconsole/pages/DataSourcesPage.js.map +1 -1
- package/dist/bigconsole/pages/InsightsPage.js +238 -208
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.js +464 -412
- package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserViewPage.js +92 -90
- package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +221 -194
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +181 -184
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.js +128 -127
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +177 -172
- package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
- package/dist/bigconsole/pages/WidgetDemoPage.js +121 -83
- package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowViewPage.js +199 -193
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +129 -128
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +111 -109
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +127 -126
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +103 -103
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js.map +1 -1
- package/package.json +2 -1
|
@@ -2,193 +2,190 @@ import e from "../../hooks/useBigConsoleAnalytics.js";
|
|
|
2
2
|
import t from "../../hooks/useImportDataSink.js";
|
|
3
3
|
import "../../hooks/index.js";
|
|
4
4
|
import { memo as n, useCallback as r, useEffect as i, useRef as a, useState as o } from "react";
|
|
5
|
-
import { ArrowLeft as s, Check as c, FileJson as l, Info as u, RefreshCw as d, Upload as f, XCircle as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { ArrowLeft as s, Check as c, FileJson as l, Info as u, RefreshCw as d, Upload as f, XCircle as ee } from "lucide-react";
|
|
6
|
+
import { useI18n as te } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
7
|
+
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";
|
|
8
|
+
import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
8
9
|
//#region src/bigconsole/components/datasink/ImportDataSinkDialog.tsx
|
|
9
|
-
var
|
|
10
|
-
let [
|
|
10
|
+
var k = n(function({ isOpen: n, onClose: k, onSuccess: A }) {
|
|
11
|
+
let { t: j } = te(), [M, N] = o("select"), [, P] = o(null), [F, I] = o(null), [L, R] = o(""), [z, B] = o(""), V = a(null), { loading: H, error: U, validationResult: W, importResult: G, validateImport: K, importDataSink: q, extractDataSinkId: J, clearState: Y } = t(), X = e();
|
|
11
12
|
i(() => {
|
|
12
|
-
n && (
|
|
13
|
-
}, [n,
|
|
14
|
-
let
|
|
13
|
+
n && (N("select"), P(null), I(null), R(""), B(""), Y());
|
|
14
|
+
}, [n, Y]);
|
|
15
|
+
let Z = r(async (e) => {
|
|
15
16
|
let t = e.target.files?.[0];
|
|
16
17
|
if (!t) return;
|
|
17
18
|
if (!t.name.endsWith(".json")) {
|
|
18
|
-
alert("Please select a JSON file");
|
|
19
|
+
alert(j("bigconsole.dataSinks.import.selectJsonFile", "Please select a JSON file"));
|
|
19
20
|
return;
|
|
20
21
|
}
|
|
21
|
-
|
|
22
|
+
P(t);
|
|
22
23
|
let n = new FileReader();
|
|
23
24
|
n.onload = async (e) => {
|
|
24
25
|
let t = e.target?.result;
|
|
25
|
-
|
|
26
|
-
let n =
|
|
27
|
-
n.isValid && n.dataSinkInfo ? (
|
|
26
|
+
I(t);
|
|
27
|
+
let n = K(t);
|
|
28
|
+
n.isValid && n.dataSinkInfo ? (N("preview"), R(n.dataSinkInfo.name || ""), B(n.dataSinkInfo.key || "")) : N("preview");
|
|
28
29
|
}, n.onerror = () => {
|
|
29
|
-
alert("Failed to read file");
|
|
30
|
+
alert(j("bigconsole.dataSinks.import.readFileError", "Failed to read file"));
|
|
30
31
|
}, n.readAsText(t);
|
|
31
|
-
}, [
|
|
32
|
+
}, [K, j]), ne = r((e) => {
|
|
32
33
|
e.preventDefault();
|
|
33
34
|
let t = e.dataTransfer.files?.[0];
|
|
34
35
|
if (t) {
|
|
35
36
|
let e = new DataTransfer();
|
|
36
|
-
e.items.add(t),
|
|
37
|
+
e.items.add(t), V.current && (V.current.files = e.files, V.current.dispatchEvent(new Event("change", { bubbles: !0 })));
|
|
37
38
|
}
|
|
38
|
-
}, []),
|
|
39
|
-
if (!
|
|
40
|
-
|
|
39
|
+
}, []), re = r(async () => {
|
|
40
|
+
if (!F) return;
|
|
41
|
+
N("importing");
|
|
41
42
|
let e = {
|
|
42
|
-
name:
|
|
43
|
-
key:
|
|
43
|
+
name: L.trim() || void 0,
|
|
44
|
+
key: z.trim() || void 0
|
|
44
45
|
};
|
|
45
|
-
|
|
46
|
-
let t = await
|
|
47
|
-
t?.success && t.dataSink ? (
|
|
46
|
+
X("bigconsole.data_sink.import_clicked", { source: "import" });
|
|
47
|
+
let t = await q(F, e);
|
|
48
|
+
t?.success && t.dataSink ? (N("complete"), X("bigconsole.data_sink.imported", {
|
|
48
49
|
dataSinkId: t.dataSink.id,
|
|
49
50
|
source: "import",
|
|
50
51
|
originalUpdated: t.originalUpdated ?? !1
|
|
51
|
-
}),
|
|
52
|
+
}), A?.(t.dataSink.id, t.dataSink.name, t.originalUpdated ?? !1)) : N("preview");
|
|
52
53
|
}, [
|
|
53
|
-
|
|
54
|
-
N,
|
|
55
|
-
G,
|
|
56
|
-
L,
|
|
54
|
+
X,
|
|
57
55
|
F,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
q,
|
|
57
|
+
z,
|
|
58
|
+
L,
|
|
59
|
+
A
|
|
60
|
+
]), Q = !H && M !== "importing", $ = F ? J(F) : null;
|
|
61
|
+
return /* @__PURE__ */ D(_, {
|
|
61
62
|
open: n,
|
|
62
|
-
onOpenChange: (e) => !e && Q &&
|
|
63
|
-
children: /* @__PURE__ */
|
|
63
|
+
onOpenChange: (e) => !e && Q && k(),
|
|
64
|
+
children: /* @__PURE__ */ O(v, {
|
|
64
65
|
className: "sm:max-w-lg max-h-[85vh] flex flex-col",
|
|
65
66
|
children: [
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ O(x, { children: [/* @__PURE__ */ O("div", {
|
|
67
68
|
className: "flex items-center gap-3",
|
|
68
|
-
children: [/* @__PURE__ */
|
|
69
|
+
children: [/* @__PURE__ */ D("div", {
|
|
69
70
|
className: "flex size-10 items-center justify-center rounded-lg bg-action-primary-bg/10",
|
|
70
|
-
children: /* @__PURE__ */
|
|
71
|
-
}), /* @__PURE__ */
|
|
72
|
-
}), /* @__PURE__ */
|
|
73
|
-
/* @__PURE__ */
|
|
71
|
+
children: /* @__PURE__ */ D(f, { className: "size-5 text-primary" })
|
|
72
|
+
}), /* @__PURE__ */ D(S, { children: j("bigconsole.dataSinks.import.title", "Import DataSink") })]
|
|
73
|
+
}), /* @__PURE__ */ D(y, { children: j("bigconsole.dataSinks.import.description", "Upload a DataSink export file to restore it into this workspace.") })] }),
|
|
74
|
+
/* @__PURE__ */ O("div", {
|
|
74
75
|
className: "flex-1 overflow-y-auto py-4 space-y-4",
|
|
75
76
|
children: [
|
|
76
|
-
|
|
77
|
+
M === "select" && /* @__PURE__ */ O("div", {
|
|
77
78
|
onDragOver: (e) => e.preventDefault(),
|
|
78
|
-
onDrop:
|
|
79
|
+
onDrop: ne,
|
|
79
80
|
className: "border-2 border-dashed rounded-lg p-8 text-center hover:border-primary transition-colors",
|
|
80
81
|
children: [
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ D(l, { className: "size-12 mx-auto text-text-secondary mb-4" }),
|
|
83
|
+
/* @__PURE__ */ D("p", {
|
|
83
84
|
className: "text-sm mb-2",
|
|
84
|
-
children: "Drag and drop a DataSink export file here"
|
|
85
|
+
children: j("bigconsole.dataSinks.import.dropzoneText", "Drag and drop a DataSink export file here")
|
|
85
86
|
}),
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
+
/* @__PURE__ */ D("p", {
|
|
87
88
|
className: "text-xs text-text-secondary mb-4",
|
|
88
|
-
children: "or"
|
|
89
|
+
children: j("bigconsole.dataSinks.import.or", "or")
|
|
89
90
|
}),
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
ref:
|
|
91
|
+
/* @__PURE__ */ D("input", {
|
|
92
|
+
ref: V,
|
|
92
93
|
type: "file",
|
|
93
94
|
accept: ".json",
|
|
94
|
-
onChange:
|
|
95
|
+
onChange: Z,
|
|
95
96
|
className: "hidden"
|
|
96
97
|
}),
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
onClick: () =>
|
|
99
|
-
disabled:
|
|
100
|
-
children: "Browse Files"
|
|
98
|
+
/* @__PURE__ */ D(m, {
|
|
99
|
+
onClick: () => V.current?.click(),
|
|
100
|
+
disabled: H,
|
|
101
|
+
children: j("bigconsole.dataSinks.import.browseFiles", "Browse Files")
|
|
101
102
|
}),
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
+
/* @__PURE__ */ D("p", {
|
|
103
104
|
className: "text-xs text-text-secondary mt-4",
|
|
104
|
-
children: "Only .json files exported from BigConsole are supported"
|
|
105
|
+
children: j("bigconsole.dataSinks.import.supportedFilesHint", "Only .json files exported from BigConsole are supported")
|
|
105
106
|
})
|
|
106
107
|
]
|
|
107
108
|
}),
|
|
108
|
-
(
|
|
109
|
-
|
|
109
|
+
(M === "preview" || M === "importing") && W && /* @__PURE__ */ O(E, { children: [
|
|
110
|
+
W.dataSinkInfo && /* @__PURE__ */ D(h, { children: /* @__PURE__ */ O(g, {
|
|
110
111
|
className: "p-4 space-y-2",
|
|
111
112
|
children: [
|
|
112
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ O("div", {
|
|
113
114
|
className: "flex items-center justify-between",
|
|
114
|
-
children: [/* @__PURE__ */
|
|
115
|
+
children: [/* @__PURE__ */ D("span", {
|
|
115
116
|
className: "text-sm text-text-secondary",
|
|
116
|
-
children: "Name"
|
|
117
|
-
}), /* @__PURE__ */
|
|
117
|
+
children: j("bigconsole.dataSinks.import.nameLabel", "Name")
|
|
118
|
+
}), /* @__PURE__ */ D("span", {
|
|
118
119
|
className: "text-sm font-medium",
|
|
119
|
-
children:
|
|
120
|
+
children: W.dataSinkInfo.name || j("bigconsole.dataSinks.import.unnamed", "Unnamed")
|
|
120
121
|
})]
|
|
121
122
|
}),
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
+
/* @__PURE__ */ O("div", {
|
|
123
124
|
className: "flex items-center justify-between",
|
|
124
|
-
children: [/* @__PURE__ */
|
|
125
|
+
children: [/* @__PURE__ */ D("span", {
|
|
125
126
|
className: "text-sm text-text-secondary",
|
|
126
|
-
children: "Key"
|
|
127
|
-
}), /* @__PURE__ */
|
|
127
|
+
children: j("bigconsole.dataSinks.import.keyLabel", "Key")
|
|
128
|
+
}), /* @__PURE__ */ D("span", {
|
|
128
129
|
className: "text-xs font-mono",
|
|
129
|
-
children:
|
|
130
|
+
children: W.dataSinkInfo.key
|
|
130
131
|
})]
|
|
131
132
|
}),
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ O("div", {
|
|
133
134
|
className: "flex items-center justify-between",
|
|
134
|
-
children: [/* @__PURE__ */
|
|
135
|
+
children: [/* @__PURE__ */ D("span", {
|
|
135
136
|
className: "text-sm text-text-secondary",
|
|
136
|
-
children: "Status"
|
|
137
|
-
}), /* @__PURE__ */
|
|
137
|
+
children: j("bigconsole.dataSinks.import.statusLabel", "Status")
|
|
138
|
+
}), /* @__PURE__ */ D(p, {
|
|
138
139
|
variant: "secondary",
|
|
139
|
-
children:
|
|
140
|
+
children: W.dataSinkInfo.status
|
|
140
141
|
})]
|
|
141
142
|
}),
|
|
142
|
-
/* @__PURE__ */
|
|
143
|
+
/* @__PURE__ */ O("div", {
|
|
143
144
|
className: "flex items-center justify-between",
|
|
144
|
-
children: [/* @__PURE__ */
|
|
145
|
+
children: [/* @__PURE__ */ D("span", {
|
|
145
146
|
className: "text-sm text-text-secondary",
|
|
146
|
-
children: "Setup State"
|
|
147
|
-
}), /* @__PURE__ */
|
|
147
|
+
children: j("bigconsole.dataSinks.import.setupStateLabel", "Setup State")
|
|
148
|
+
}), /* @__PURE__ */ D(p, {
|
|
148
149
|
variant: "outline",
|
|
149
|
-
children:
|
|
150
|
+
children: W.dataSinkInfo.setupState
|
|
150
151
|
})]
|
|
151
152
|
}),
|
|
152
|
-
|
|
153
|
+
W.dataSinkInfo.exportedFrom && /* @__PURE__ */ O("div", {
|
|
153
154
|
className: "flex items-center justify-between",
|
|
154
|
-
children: [/* @__PURE__ */
|
|
155
|
+
children: [/* @__PURE__ */ D("span", {
|
|
155
156
|
className: "text-sm text-text-secondary",
|
|
156
|
-
children: "Source ID"
|
|
157
|
-
}), /* @__PURE__ */
|
|
157
|
+
children: j("bigconsole.dataSinks.import.sourceIdLabel", "Source ID")
|
|
158
|
+
}), /* @__PURE__ */ D("span", {
|
|
158
159
|
className: "text-xs text-text-secondary font-mono truncate max-w-[180px]",
|
|
159
|
-
children:
|
|
160
|
+
children: W.dataSinkInfo.exportedFrom
|
|
160
161
|
})]
|
|
161
162
|
}),
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
+
/* @__PURE__ */ O("div", {
|
|
163
164
|
className: "flex items-center justify-between",
|
|
164
|
-
children: [/* @__PURE__ */
|
|
165
|
+
children: [/* @__PURE__ */ D("span", {
|
|
165
166
|
className: "text-sm text-text-secondary",
|
|
166
|
-
children: "Schema Version"
|
|
167
|
-
}), /* @__PURE__ */
|
|
167
|
+
children: j("bigconsole.dataSinks.import.schemaVersionLabel", "Schema Version")
|
|
168
|
+
}), /* @__PURE__ */ D("span", {
|
|
168
169
|
className: "text-xs text-text-secondary",
|
|
169
|
-
children:
|
|
170
|
+
children: W.dataSinkInfo.schemaVersion
|
|
170
171
|
})]
|
|
171
172
|
})
|
|
172
173
|
]
|
|
173
174
|
}) }),
|
|
174
|
-
|
|
175
|
+
W.errors.length > 0 && /* @__PURE__ */ D(h, {
|
|
175
176
|
className: "border-status-error-border/50 bg-status-error-bg/5",
|
|
176
|
-
children: /* @__PURE__ */
|
|
177
|
+
children: /* @__PURE__ */ O(g, {
|
|
177
178
|
className: "p-3",
|
|
178
|
-
children: [/* @__PURE__ */
|
|
179
|
+
children: [/* @__PURE__ */ O("div", {
|
|
179
180
|
className: "flex items-center gap-2 mb-2",
|
|
180
|
-
children: [/* @__PURE__ */
|
|
181
|
+
children: [/* @__PURE__ */ D(ee, { className: "size-4 text-status-error-text" }), /* @__PURE__ */ D("span", {
|
|
181
182
|
className: "text-sm font-medium text-status-error-text",
|
|
182
|
-
children:
|
|
183
|
-
"Errors (",
|
|
184
|
-
H.errors.length,
|
|
185
|
-
")"
|
|
186
|
-
]
|
|
183
|
+
children: j("bigconsole.dataSinks.import.errorsHeading", "Errors ({{count}})", { count: W.errors.length })
|
|
187
184
|
})]
|
|
188
|
-
}), /* @__PURE__ */
|
|
185
|
+
}), /* @__PURE__ */ D("ul", {
|
|
189
186
|
className: "text-xs text-status-error-text space-y-1",
|
|
190
|
-
children:
|
|
191
|
-
/* @__PURE__ */
|
|
187
|
+
children: W.errors.map((e, t) => /* @__PURE__ */ O("li", { children: [
|
|
188
|
+
/* @__PURE__ */ O("span", {
|
|
192
189
|
className: "font-mono",
|
|
193
190
|
children: [
|
|
194
191
|
"[",
|
|
@@ -202,200 +199,188 @@ var O = n(function({ isOpen: n, onClose: O, onSuccess: k }) {
|
|
|
202
199
|
})]
|
|
203
200
|
})
|
|
204
201
|
}),
|
|
205
|
-
|
|
202
|
+
W.isValid && /* @__PURE__ */ O("div", {
|
|
206
203
|
className: "space-y-4",
|
|
207
204
|
children: [
|
|
208
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ D("p", {
|
|
209
206
|
className: "text-sm font-medium",
|
|
210
|
-
children: "Import Options"
|
|
207
|
+
children: j("bigconsole.dataSinks.import.optionsHeading", "Import Options")
|
|
211
208
|
}),
|
|
212
|
-
/* @__PURE__ */
|
|
209
|
+
/* @__PURE__ */ D(h, {
|
|
213
210
|
className: "border-blue-500/50 bg-blue-500/5",
|
|
214
|
-
children: /* @__PURE__ */
|
|
211
|
+
children: /* @__PURE__ */ D(g, {
|
|
215
212
|
className: "p-3",
|
|
216
|
-
children: /* @__PURE__ */
|
|
213
|
+
children: /* @__PURE__ */ O("div", {
|
|
217
214
|
className: "flex items-start gap-2",
|
|
218
|
-
children: [/* @__PURE__ */
|
|
215
|
+
children: [/* @__PURE__ */ D(u, { className: "size-4 text-blue-600 mt-0.5 shrink-0" }), /* @__PURE__ */ D("div", {
|
|
219
216
|
className: "text-xs text-blue-700 dark:text-blue-400",
|
|
220
|
-
children: $ ? /* @__PURE__ */
|
|
221
|
-
/* @__PURE__ */
|
|
217
|
+
children: $ ? /* @__PURE__ */ O(E, { children: [
|
|
218
|
+
/* @__PURE__ */ D("p", {
|
|
222
219
|
className: "font-medium mb-1",
|
|
223
|
-
children: "Import will check for existing DataSink"
|
|
220
|
+
children: j("bigconsole.dataSinks.import.checkExistingHeading", "Import will check for existing DataSink")
|
|
224
221
|
}),
|
|
225
|
-
/* @__PURE__ */
|
|
226
|
-
"If the original DataSink (ID:",
|
|
222
|
+
/* @__PURE__ */ O("p", { children: [
|
|
223
|
+
j("bigconsole.dataSinks.import.ifOriginalExistsPrefix", "If the original DataSink (ID:"),
|
|
227
224
|
" ",
|
|
228
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ O("code", {
|
|
229
226
|
className: "font-mono bg-blue-200/50 px-1 rounded",
|
|
230
227
|
children: [$.slice(0, 8), "..."]
|
|
231
228
|
}),
|
|
232
|
-
") exists:"
|
|
229
|
+
j("bigconsole.dataSinks.import.ifOriginalExistsSuffix", ") exists:")
|
|
233
230
|
] }),
|
|
234
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ O("ul", {
|
|
235
232
|
className: "list-disc list-inside mt-1 space-y-0.5",
|
|
236
|
-
children: [/* @__PURE__ */
|
|
233
|
+
children: [/* @__PURE__ */ D("li", { children: j("bigconsole.dataSinks.import.withChangesUpdate", "With changes → Update the existing DataSink") }), /* @__PURE__ */ D("li", { children: j("bigconsole.dataSinks.import.noChangesMessage", "No changes → Show \"already exists\" message") })]
|
|
237
234
|
}),
|
|
238
|
-
/* @__PURE__ */
|
|
235
|
+
/* @__PURE__ */ D("p", {
|
|
239
236
|
className: "mt-1",
|
|
240
|
-
children: "If original doesn't exist → Create a new DataSink"
|
|
237
|
+
children: j("bigconsole.dataSinks.import.ifNotExistsCreate", "If original doesn't exist → Create a new DataSink")
|
|
241
238
|
})
|
|
242
|
-
] }) : /* @__PURE__ */
|
|
239
|
+
] }) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("p", {
|
|
243
240
|
className: "font-medium mb-1",
|
|
244
|
-
children: "A new DataSink will be created"
|
|
245
|
-
}), /* @__PURE__ */
|
|
241
|
+
children: j("bigconsole.dataSinks.import.newWillBeCreatedHeading", "A new DataSink will be created")
|
|
242
|
+
}), /* @__PURE__ */ D("p", { children: j("bigconsole.dataSinks.import.newWillBeCreatedBody", "Import as a new DataSink with the specified configuration.") })] })
|
|
246
243
|
})]
|
|
247
244
|
})
|
|
248
245
|
})
|
|
249
246
|
}),
|
|
250
|
-
/* @__PURE__ */
|
|
247
|
+
/* @__PURE__ */ O("div", {
|
|
251
248
|
className: "space-y-2",
|
|
252
|
-
children: [/* @__PURE__ */
|
|
249
|
+
children: [/* @__PURE__ */ D(w, {
|
|
253
250
|
htmlFor: "import-name",
|
|
254
|
-
children: "DataSink Name"
|
|
255
|
-
}), /* @__PURE__ */
|
|
251
|
+
children: j("bigconsole.dataSinks.import.nameFieldLabel", "DataSink Name")
|
|
252
|
+
}), /* @__PURE__ */ D(C, {
|
|
256
253
|
id: "import-name",
|
|
257
254
|
type: "text",
|
|
258
|
-
value:
|
|
259
|
-
onChange: (e) =>
|
|
260
|
-
placeholder:
|
|
261
|
-
disabled:
|
|
255
|
+
value: L,
|
|
256
|
+
onChange: (e) => R(e.target.value),
|
|
257
|
+
placeholder: W.dataSinkInfo?.name || j("bigconsole.dataSinks.import.namePlaceholder", "DataSink name"),
|
|
258
|
+
disabled: M === "importing"
|
|
262
259
|
})]
|
|
263
260
|
}),
|
|
264
|
-
/* @__PURE__ */
|
|
261
|
+
/* @__PURE__ */ O("div", {
|
|
265
262
|
className: "space-y-2",
|
|
266
263
|
children: [
|
|
267
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ D(w, {
|
|
268
265
|
htmlFor: "import-key",
|
|
269
|
-
children: "DataSink Key"
|
|
266
|
+
children: j("bigconsole.dataSinks.import.keyFieldLabel", "DataSink Key")
|
|
270
267
|
}),
|
|
271
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ D(C, {
|
|
272
269
|
id: "import-key",
|
|
273
270
|
type: "text",
|
|
274
|
-
value:
|
|
275
|
-
onChange: (e) =>
|
|
276
|
-
placeholder:
|
|
277
|
-
disabled:
|
|
271
|
+
value: z,
|
|
272
|
+
onChange: (e) => B(e.target.value),
|
|
273
|
+
placeholder: W.dataSinkInfo?.key || j("bigconsole.dataSinks.import.keyPlaceholder", "datasink-key"),
|
|
274
|
+
disabled: M === "importing"
|
|
278
275
|
}),
|
|
279
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ D("p", {
|
|
280
277
|
className: "text-xs text-text-secondary",
|
|
281
|
-
children: "Use a unique key to avoid conflicts with existing DataSinks."
|
|
278
|
+
children: j("bigconsole.dataSinks.import.keyHelp", "Use a unique key to avoid conflicts with existing DataSinks.")
|
|
282
279
|
})
|
|
283
280
|
]
|
|
284
281
|
})
|
|
285
282
|
]
|
|
286
283
|
})
|
|
287
284
|
] }),
|
|
288
|
-
|
|
285
|
+
M === "complete" && G?.success && /* @__PURE__ */ O("div", {
|
|
289
286
|
className: "text-center py-6",
|
|
290
287
|
children: [
|
|
291
|
-
|
|
292
|
-
/* @__PURE__ */
|
|
288
|
+
G.alreadyExists && /* @__PURE__ */ O(E, { children: [
|
|
289
|
+
/* @__PURE__ */ D("div", {
|
|
293
290
|
className: "size-16 mx-auto mb-4 rounded-full bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center",
|
|
294
|
-
children: /* @__PURE__ */
|
|
291
|
+
children: /* @__PURE__ */ D(u, { className: "size-8 text-blue-600" })
|
|
295
292
|
}),
|
|
296
|
-
/* @__PURE__ */
|
|
293
|
+
/* @__PURE__ */ D("h3", {
|
|
297
294
|
className: "text-lg font-medium mb-2",
|
|
298
|
-
children: "DataSink Already Exists"
|
|
295
|
+
children: j("bigconsole.dataSinks.import.alreadyExistsTitle", "DataSink Already Exists")
|
|
299
296
|
}),
|
|
300
297
|
/* @__PURE__ */ D("p", {
|
|
301
298
|
className: "text-sm text-text-secondary mb-4",
|
|
302
|
-
children:
|
|
303
|
-
"DataSink \"",
|
|
304
|
-
U.dataSink?.name || U.dataSink?.key,
|
|
305
|
-
"\" already exists with the same data. No changes were made."
|
|
306
|
-
]
|
|
299
|
+
children: j("bigconsole.dataSinks.import.alreadyExistsBody", "DataSink \"{{name}}\" already exists with the same data. No changes were made.", { name: G.dataSink?.name || G.dataSink?.key || "" })
|
|
307
300
|
})
|
|
308
301
|
] }),
|
|
309
|
-
|
|
310
|
-
/* @__PURE__ */
|
|
302
|
+
G.originalUpdated && !G.alreadyExists && /* @__PURE__ */ O(E, { children: [
|
|
303
|
+
/* @__PURE__ */ D("div", {
|
|
311
304
|
className: "size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",
|
|
312
|
-
children: /* @__PURE__ */
|
|
305
|
+
children: /* @__PURE__ */ D(d, { className: "size-8 text-green-600" })
|
|
313
306
|
}),
|
|
314
|
-
/* @__PURE__ */
|
|
307
|
+
/* @__PURE__ */ D("h3", {
|
|
315
308
|
className: "text-lg font-medium mb-2",
|
|
316
|
-
children: "DataSink Updated!"
|
|
309
|
+
children: j("bigconsole.dataSinks.import.updatedTitle", "DataSink Updated!")
|
|
317
310
|
}),
|
|
318
311
|
/* @__PURE__ */ D("p", {
|
|
319
312
|
className: "text-sm text-text-secondary mb-4",
|
|
320
|
-
children:
|
|
321
|
-
"DataSink \"",
|
|
322
|
-
U.dataSink?.name || U.dataSink?.key,
|
|
323
|
-
"\" has been updated with the imported data."
|
|
324
|
-
]
|
|
313
|
+
children: j("bigconsole.dataSinks.import.updatedBody", "DataSink \"{{name}}\" has been updated with the imported data.", { name: G.dataSink?.name || G.dataSink?.key || "" })
|
|
325
314
|
})
|
|
326
315
|
] }),
|
|
327
|
-
!
|
|
328
|
-
/* @__PURE__ */
|
|
316
|
+
!G.originalUpdated && !G.alreadyExists && /* @__PURE__ */ O(E, { children: [
|
|
317
|
+
/* @__PURE__ */ D("div", {
|
|
329
318
|
className: "size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",
|
|
330
|
-
children: /* @__PURE__ */
|
|
319
|
+
children: /* @__PURE__ */ D(c, { className: "size-8 text-green-600" })
|
|
331
320
|
}),
|
|
332
|
-
/* @__PURE__ */
|
|
321
|
+
/* @__PURE__ */ D("h3", {
|
|
333
322
|
className: "text-lg font-medium mb-2",
|
|
334
|
-
children: "Import Successful!"
|
|
323
|
+
children: j("bigconsole.dataSinks.import.successTitle", "Import Successful!")
|
|
335
324
|
}),
|
|
336
325
|
/* @__PURE__ */ D("p", {
|
|
337
326
|
className: "text-sm text-text-secondary mb-4",
|
|
338
|
-
children:
|
|
339
|
-
"DataSink \"",
|
|
340
|
-
U.dataSink?.name || U.dataSink?.key,
|
|
341
|
-
"\" has been created."
|
|
342
|
-
]
|
|
327
|
+
children: j("bigconsole.dataSinks.import.successBody", "DataSink \"{{name}}\" has been created.", { name: G.dataSink?.name || G.dataSink?.key || "" })
|
|
343
328
|
})
|
|
344
329
|
] })
|
|
345
330
|
]
|
|
346
331
|
}),
|
|
347
|
-
|
|
332
|
+
U && /* @__PURE__ */ D(h, {
|
|
348
333
|
className: "border-status-error-border/50 bg-status-error-bg/5",
|
|
349
|
-
children: /* @__PURE__ */
|
|
334
|
+
children: /* @__PURE__ */ D(g, {
|
|
350
335
|
className: "p-3",
|
|
351
|
-
children: /* @__PURE__ */
|
|
336
|
+
children: /* @__PURE__ */ D("p", {
|
|
352
337
|
className: "text-sm text-status-error-text",
|
|
353
|
-
children:
|
|
338
|
+
children: U.message
|
|
354
339
|
})
|
|
355
340
|
})
|
|
356
341
|
}),
|
|
357
|
-
|
|
342
|
+
G && !G.success && G.errorMessage && /* @__PURE__ */ D(h, {
|
|
358
343
|
className: "border-status-error-border/50 bg-status-error-bg/5",
|
|
359
|
-
children: /* @__PURE__ */
|
|
344
|
+
children: /* @__PURE__ */ D(g, {
|
|
360
345
|
className: "p-3",
|
|
361
|
-
children: /* @__PURE__ */
|
|
346
|
+
children: /* @__PURE__ */ D("p", {
|
|
362
347
|
className: "text-sm text-status-error-text",
|
|
363
|
-
children:
|
|
348
|
+
children: G.errorMessage
|
|
364
349
|
})
|
|
365
350
|
})
|
|
366
351
|
})
|
|
367
352
|
]
|
|
368
353
|
}),
|
|
369
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ O(b, {
|
|
370
355
|
className: "flex-row justify-between sm:justify-between",
|
|
371
|
-
children: [/* @__PURE__ */
|
|
356
|
+
children: [/* @__PURE__ */ D("div", { children: M === "preview" && /* @__PURE__ */ O(m, {
|
|
372
357
|
variant: "ghost",
|
|
373
358
|
onClick: () => {
|
|
374
|
-
|
|
359
|
+
N("select"), P(null), I(null), Y();
|
|
375
360
|
},
|
|
376
|
-
disabled:
|
|
377
|
-
children: [/* @__PURE__ */
|
|
378
|
-
}) }), /* @__PURE__ */
|
|
361
|
+
disabled: H,
|
|
362
|
+
children: [/* @__PURE__ */ D(s, { className: "size-4" }), j("bigconsole.dataSinks.import.back", "Back")]
|
|
363
|
+
}) }), /* @__PURE__ */ O("div", {
|
|
379
364
|
className: "flex items-center gap-2",
|
|
380
365
|
children: [
|
|
381
|
-
|
|
366
|
+
M !== "complete" && /* @__PURE__ */ D(m, {
|
|
382
367
|
variant: "outline",
|
|
383
|
-
onClick:
|
|
368
|
+
onClick: k,
|
|
384
369
|
disabled: !Q,
|
|
385
|
-
children: "Cancel"
|
|
370
|
+
children: j("bigconsole.dataSinks.import.cancel", "Cancel")
|
|
386
371
|
}),
|
|
387
|
-
|
|
388
|
-
onClick:
|
|
389
|
-
disabled:
|
|
390
|
-
children: [/* @__PURE__ */
|
|
372
|
+
M === "preview" && W?.isValid && /* @__PURE__ */ O(m, {
|
|
373
|
+
onClick: re,
|
|
374
|
+
disabled: H,
|
|
375
|
+
children: [/* @__PURE__ */ D(f, { className: "size-4" }), j("bigconsole.dataSinks.import.importButton", "Import DataSink")]
|
|
391
376
|
}),
|
|
392
|
-
|
|
377
|
+
M === "importing" && /* @__PURE__ */ O("div", {
|
|
393
378
|
className: "flex items-center gap-2 text-sm text-text-secondary",
|
|
394
|
-
children: [/* @__PURE__ */
|
|
379
|
+
children: [/* @__PURE__ */ D(T, { className: "size-4" }), j("bigconsole.dataSinks.import.importing", "Importing...")]
|
|
395
380
|
}),
|
|
396
|
-
|
|
397
|
-
onClick:
|
|
398
|
-
children: "Done"
|
|
381
|
+
M === "complete" && /* @__PURE__ */ D(m, {
|
|
382
|
+
onClick: k,
|
|
383
|
+
children: j("bigconsole.dataSinks.import.done", "Done")
|
|
399
384
|
})
|
|
400
385
|
]
|
|
401
386
|
})]
|
|
@@ -405,6 +390,6 @@ var O = n(function({ isOpen: n, onClose: O, onSuccess: k }) {
|
|
|
405
390
|
});
|
|
406
391
|
});
|
|
407
392
|
//#endregion
|
|
408
|
-
export {
|
|
393
|
+
export { k as default };
|
|
409
394
|
|
|
410
395
|
//# sourceMappingURL=ImportDataSinkDialog.js.map
|