@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,189 +2,186 @@ import e from "../../hooks/useImportParser.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 { useI18n as ee } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
6
|
+
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";
|
|
7
|
+
import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
7
8
|
//#region src/bigconsole/components/parser/ImportParserDialog.tsx
|
|
8
|
-
var
|
|
9
|
-
let [
|
|
9
|
+
var k = t(function({ isOpen: t, onClose: k, consoleId: A, onSuccess: j }) {
|
|
10
|
+
let { t: M } = ee(), [N, P] = a("select"), [, F] = a(null), [I, L] = a(null), [R, z] = a(""), [B, V] = a(""), [H, U] = a(""), W = i(null), { loading: G, error: K, validationResult: q, importResult: J, validateImport: Y, importParser: X, extractParserId: te, clearState: Z } = e();
|
|
10
11
|
r(() => {
|
|
11
|
-
t && (
|
|
12
|
-
}, [t,
|
|
13
|
-
let
|
|
12
|
+
t && (P("select"), F(null), L(null), z(""), V(""), U(""), Z());
|
|
13
|
+
}, [t, Z]);
|
|
14
|
+
let ne = n(async (e) => {
|
|
14
15
|
let t = e.target.files?.[0];
|
|
15
16
|
if (!t) return;
|
|
16
17
|
if (!t.name.endsWith(".json")) {
|
|
17
|
-
alert("Please select a JSON file");
|
|
18
|
+
alert(M("bigconsole.parsers.import.selectJsonFile", "Please select a JSON file"));
|
|
18
19
|
return;
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
+
F(t);
|
|
21
22
|
let n = new FileReader();
|
|
22
23
|
n.onload = async (e) => {
|
|
23
24
|
let t = e.target?.result;
|
|
24
|
-
|
|
25
|
-
let n =
|
|
26
|
-
n.isValid && n.parserInfo ? (
|
|
25
|
+
L(t);
|
|
26
|
+
let n = Y(t);
|
|
27
|
+
n.isValid && n.parserInfo ? (P("preview"), z(n.parserInfo.name || ""), V(n.parserInfo.inputSinkKey || ""), U(n.parserInfo.outputKey || "")) : P("preview");
|
|
27
28
|
}, n.onerror = () => {
|
|
28
|
-
alert("Failed to read file");
|
|
29
|
+
alert(M("bigconsole.parsers.import.readFileFailed", "Failed to read file"));
|
|
29
30
|
}, n.readAsText(t);
|
|
30
|
-
}, [
|
|
31
|
+
}, [Y, M]), re = n((e) => {
|
|
31
32
|
e.preventDefault();
|
|
32
33
|
let t = e.dataTransfer.files?.[0];
|
|
33
34
|
if (t) {
|
|
34
35
|
let e = new DataTransfer();
|
|
35
|
-
e.items.add(t),
|
|
36
|
+
e.items.add(t), W.current && (W.current.files = e.files, W.current.dispatchEvent(new Event("change", { bubbles: !0 })));
|
|
36
37
|
}
|
|
37
|
-
}, []),
|
|
38
|
-
if (!
|
|
39
|
-
|
|
40
|
-
let e = await
|
|
41
|
-
consoleId:
|
|
42
|
-
name:
|
|
43
|
-
inputSinkKey:
|
|
44
|
-
outputKey:
|
|
38
|
+
}, []), ie = n(async () => {
|
|
39
|
+
if (!I) return;
|
|
40
|
+
P("importing");
|
|
41
|
+
let e = await X(I, {
|
|
42
|
+
consoleId: A,
|
|
43
|
+
name: R.trim() || void 0,
|
|
44
|
+
inputSinkKey: B.trim() || void 0,
|
|
45
|
+
outputKey: H.trim() || void 0
|
|
45
46
|
});
|
|
46
|
-
e?.success && e.parser ? (
|
|
47
|
+
e?.success && e.parser ? (P("complete"), j?.(e.parser.id, e.parser.name, e.originalUpdated ?? !1)) : P("preview");
|
|
47
48
|
}, [
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
]), Q = !
|
|
56
|
-
return /* @__PURE__ */
|
|
49
|
+
I,
|
|
50
|
+
A,
|
|
51
|
+
R,
|
|
52
|
+
B,
|
|
53
|
+
H,
|
|
54
|
+
X,
|
|
55
|
+
j
|
|
56
|
+
]), Q = !G && N !== "importing", $ = I ? te(I) : null;
|
|
57
|
+
return /* @__PURE__ */ D(_, {
|
|
57
58
|
open: t,
|
|
58
|
-
onOpenChange: (e) => !e && Q &&
|
|
59
|
-
children: /* @__PURE__ */
|
|
59
|
+
onOpenChange: (e) => !e && Q && k(),
|
|
60
|
+
children: /* @__PURE__ */ O(v, {
|
|
60
61
|
className: "sm:max-w-lg max-h-[85vh] flex flex-col",
|
|
61
62
|
children: [
|
|
62
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ O(x, { children: [/* @__PURE__ */ O("div", {
|
|
63
64
|
className: "flex items-center gap-3",
|
|
64
|
-
children: [/* @__PURE__ */
|
|
65
|
+
children: [/* @__PURE__ */ D("div", {
|
|
65
66
|
className: "flex size-10 items-center justify-center rounded-lg bg-action-primary-bg/10",
|
|
66
|
-
children: /* @__PURE__ */
|
|
67
|
-
}), /* @__PURE__ */
|
|
68
|
-
}), /* @__PURE__ */
|
|
69
|
-
/* @__PURE__ */
|
|
67
|
+
children: /* @__PURE__ */ D(d, { className: "size-5 text-primary" })
|
|
68
|
+
}), /* @__PURE__ */ D(S, { children: M("bigconsole.parsers.import.title", "Import Parser") })]
|
|
69
|
+
}), /* @__PURE__ */ D(y, { children: M("bigconsole.parsers.import.description", "Upload a Parser export file to restore it into this workspace.") })] }),
|
|
70
|
+
/* @__PURE__ */ O("div", {
|
|
70
71
|
className: "flex-1 overflow-y-auto py-4 space-y-4",
|
|
71
72
|
children: [
|
|
72
|
-
|
|
73
|
+
N === "select" && /* @__PURE__ */ O("div", {
|
|
73
74
|
onDragOver: (e) => e.preventDefault(),
|
|
74
|
-
onDrop:
|
|
75
|
+
onDrop: re,
|
|
75
76
|
className: "border-2 border-dashed rounded-lg p-8 text-center hover:border-primary transition-colors",
|
|
76
77
|
children: [
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ D(c, { className: "size-12 mx-auto text-text-secondary mb-4" }),
|
|
79
|
+
/* @__PURE__ */ D("p", {
|
|
79
80
|
className: "text-sm mb-2",
|
|
80
|
-
children: "Drag and drop a parser export file here"
|
|
81
|
+
children: M("bigconsole.parsers.import.dropzoneTitle", "Drag and drop a parser export file here")
|
|
81
82
|
}),
|
|
82
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ D("p", {
|
|
83
84
|
className: "text-xs text-text-secondary mb-4",
|
|
84
|
-
children: "or"
|
|
85
|
+
children: M("bigconsole.parsers.import.or", "or")
|
|
85
86
|
}),
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
ref:
|
|
87
|
+
/* @__PURE__ */ D("input", {
|
|
88
|
+
ref: W,
|
|
88
89
|
type: "file",
|
|
89
90
|
accept: ".json",
|
|
90
|
-
onChange:
|
|
91
|
+
onChange: ne,
|
|
91
92
|
className: "hidden"
|
|
92
93
|
}),
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
-
onClick: () =>
|
|
95
|
-
disabled:
|
|
96
|
-
children: "Browse Files"
|
|
94
|
+
/* @__PURE__ */ D(m, {
|
|
95
|
+
onClick: () => W.current?.click(),
|
|
96
|
+
disabled: G,
|
|
97
|
+
children: M("bigconsole.parsers.import.browseFiles", "Browse Files")
|
|
97
98
|
}),
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ D("p", {
|
|
99
100
|
className: "text-xs text-text-secondary mt-4",
|
|
100
|
-
children: "Only .json files exported from BigConsole are supported"
|
|
101
|
+
children: M("bigconsole.parsers.import.supportedHint", "Only .json files exported from BigConsole are supported")
|
|
101
102
|
})
|
|
102
103
|
]
|
|
103
104
|
}),
|
|
104
|
-
(
|
|
105
|
-
|
|
105
|
+
(N === "preview" || N === "importing") && q && /* @__PURE__ */ O(E, { children: [
|
|
106
|
+
q.parserInfo && /* @__PURE__ */ D(h, { children: /* @__PURE__ */ O(g, {
|
|
106
107
|
className: "p-4 space-y-2",
|
|
107
108
|
children: [
|
|
108
|
-
/* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ O("div", {
|
|
109
110
|
className: "flex items-center justify-between",
|
|
110
|
-
children: [/* @__PURE__ */
|
|
111
|
+
children: [/* @__PURE__ */ D("span", {
|
|
111
112
|
className: "text-sm text-text-secondary",
|
|
112
|
-
children: "Parser"
|
|
113
|
-
}), /* @__PURE__ */
|
|
113
|
+
children: M("bigconsole.parsers.import.fieldParser", "Parser")
|
|
114
|
+
}), /* @__PURE__ */ D("span", {
|
|
114
115
|
className: "text-sm font-medium",
|
|
115
|
-
children:
|
|
116
|
+
children: q.parserInfo.name
|
|
116
117
|
})]
|
|
117
118
|
}),
|
|
118
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ O("div", {
|
|
119
120
|
className: "flex items-center justify-between",
|
|
120
|
-
children: [/* @__PURE__ */
|
|
121
|
+
children: [/* @__PURE__ */ D("span", {
|
|
121
122
|
className: "text-sm text-text-secondary",
|
|
122
|
-
children: "Type"
|
|
123
|
-
}), /* @__PURE__ */
|
|
123
|
+
children: M("bigconsole.parsers.import.fieldType", "Type")
|
|
124
|
+
}), /* @__PURE__ */ D(p, {
|
|
124
125
|
variant: "secondary",
|
|
125
|
-
children:
|
|
126
|
+
children: q.parserInfo.type
|
|
126
127
|
})]
|
|
127
128
|
}),
|
|
128
|
-
/* @__PURE__ */
|
|
129
|
+
/* @__PURE__ */ O("div", {
|
|
129
130
|
className: "flex items-center justify-between",
|
|
130
|
-
children: [/* @__PURE__ */
|
|
131
|
+
children: [/* @__PURE__ */ D("span", {
|
|
131
132
|
className: "text-sm text-text-secondary",
|
|
132
|
-
children: "Input Sink"
|
|
133
|
-
}), /* @__PURE__ */
|
|
133
|
+
children: M("bigconsole.parsers.import.fieldInputSink", "Input Sink")
|
|
134
|
+
}), /* @__PURE__ */ D("span", {
|
|
134
135
|
className: "text-xs font-mono",
|
|
135
|
-
children:
|
|
136
|
+
children: q.parserInfo.inputSinkKey
|
|
136
137
|
})]
|
|
137
138
|
}),
|
|
138
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ O("div", {
|
|
139
140
|
className: "flex items-center justify-between",
|
|
140
|
-
children: [/* @__PURE__ */
|
|
141
|
+
children: [/* @__PURE__ */ D("span", {
|
|
141
142
|
className: "text-sm text-text-secondary",
|
|
142
|
-
children: "Output Key"
|
|
143
|
-
}), /* @__PURE__ */
|
|
143
|
+
children: M("bigconsole.parsers.import.fieldOutputKey", "Output Key")
|
|
144
|
+
}), /* @__PURE__ */ D("span", {
|
|
144
145
|
className: "text-xs font-mono",
|
|
145
|
-
children:
|
|
146
|
+
children: q.parserInfo.outputKey
|
|
146
147
|
})]
|
|
147
148
|
}),
|
|
148
|
-
|
|
149
|
+
q.parserInfo.exportedFrom && /* @__PURE__ */ O("div", {
|
|
149
150
|
className: "flex items-center justify-between",
|
|
150
|
-
children: [/* @__PURE__ */
|
|
151
|
+
children: [/* @__PURE__ */ D("span", {
|
|
151
152
|
className: "text-sm text-text-secondary",
|
|
152
|
-
children: "Source ID"
|
|
153
|
-
}), /* @__PURE__ */
|
|
153
|
+
children: M("bigconsole.parsers.import.fieldSourceId", "Source ID")
|
|
154
|
+
}), /* @__PURE__ */ D("span", {
|
|
154
155
|
className: "text-xs text-text-secondary font-mono truncate max-w-[180px]",
|
|
155
|
-
children:
|
|
156
|
+
children: q.parserInfo.exportedFrom
|
|
156
157
|
})]
|
|
157
158
|
}),
|
|
158
|
-
/* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ O("div", {
|
|
159
160
|
className: "flex items-center justify-between",
|
|
160
|
-
children: [/* @__PURE__ */
|
|
161
|
+
children: [/* @__PURE__ */ D("span", {
|
|
161
162
|
className: "text-sm text-text-secondary",
|
|
162
|
-
children: "Schema Version"
|
|
163
|
-
}), /* @__PURE__ */
|
|
163
|
+
children: M("bigconsole.parsers.import.fieldSchemaVersion", "Schema Version")
|
|
164
|
+
}), /* @__PURE__ */ D("span", {
|
|
164
165
|
className: "text-xs text-text-secondary",
|
|
165
|
-
children:
|
|
166
|
+
children: q.parserInfo.schemaVersion
|
|
166
167
|
})]
|
|
167
168
|
})
|
|
168
169
|
]
|
|
169
170
|
}) }),
|
|
170
|
-
|
|
171
|
+
q.errors.length > 0 && /* @__PURE__ */ D(h, {
|
|
171
172
|
className: "border-status-error-border/50 bg-status-error-bg/5",
|
|
172
|
-
children: /* @__PURE__ */
|
|
173
|
+
children: /* @__PURE__ */ O(g, {
|
|
173
174
|
className: "p-3",
|
|
174
|
-
children: [/* @__PURE__ */
|
|
175
|
+
children: [/* @__PURE__ */ O("div", {
|
|
175
176
|
className: "flex items-center gap-2 mb-2",
|
|
176
|
-
children: [/* @__PURE__ */
|
|
177
|
+
children: [/* @__PURE__ */ D(f, { className: "size-4 text-status-error-text" }), /* @__PURE__ */ D("span", {
|
|
177
178
|
className: "text-sm font-medium text-status-error-text",
|
|
178
|
-
children:
|
|
179
|
-
"Errors (",
|
|
180
|
-
W.errors.length,
|
|
181
|
-
")"
|
|
182
|
-
]
|
|
179
|
+
children: M("bigconsole.parsers.import.errorsCount", "Errors ({{count}})", { count: q.errors.length })
|
|
183
180
|
})]
|
|
184
|
-
}), /* @__PURE__ */
|
|
181
|
+
}), /* @__PURE__ */ D("ul", {
|
|
185
182
|
className: "text-xs text-status-error-text space-y-1",
|
|
186
|
-
children:
|
|
187
|
-
/* @__PURE__ */
|
|
183
|
+
children: q.errors.map((e, t) => /* @__PURE__ */ O("li", { children: [
|
|
184
|
+
/* @__PURE__ */ O("span", {
|
|
188
185
|
className: "font-mono",
|
|
189
186
|
children: [
|
|
190
187
|
"[",
|
|
@@ -198,221 +195,209 @@ var D = t(function({ isOpen: t, onClose: D, consoleId: O, onSuccess: k }) {
|
|
|
198
195
|
})]
|
|
199
196
|
})
|
|
200
197
|
}),
|
|
201
|
-
|
|
198
|
+
q.isValid && /* @__PURE__ */ O("div", {
|
|
202
199
|
className: "space-y-4",
|
|
203
200
|
children: [
|
|
204
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ D("p", {
|
|
205
202
|
className: "text-sm font-medium",
|
|
206
|
-
children: "Import Options"
|
|
203
|
+
children: M("bigconsole.parsers.import.optionsHeading", "Import Options")
|
|
207
204
|
}),
|
|
208
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ D(h, {
|
|
209
206
|
className: "border-blue-500/50 bg-blue-500/5",
|
|
210
|
-
children: /* @__PURE__ */
|
|
207
|
+
children: /* @__PURE__ */ D(g, {
|
|
211
208
|
className: "p-3",
|
|
212
|
-
children: /* @__PURE__ */
|
|
209
|
+
children: /* @__PURE__ */ O("div", {
|
|
213
210
|
className: "flex items-start gap-2",
|
|
214
|
-
children: [/* @__PURE__ */
|
|
211
|
+
children: [/* @__PURE__ */ D(l, { className: "size-4 text-blue-600 mt-0.5 shrink-0" }), /* @__PURE__ */ D("div", {
|
|
215
212
|
className: "text-xs text-blue-700 dark:text-blue-400",
|
|
216
|
-
children: $ ? /* @__PURE__ */ E
|
|
217
|
-
/* @__PURE__ */
|
|
213
|
+
children: $ ? /* @__PURE__ */ O(E, { children: [
|
|
214
|
+
/* @__PURE__ */ D("p", {
|
|
218
215
|
className: "font-medium mb-1",
|
|
219
|
-
children: "Import will check for existing parser"
|
|
216
|
+
children: M("bigconsole.parsers.import.checkExistingTitle", "Import will check for existing parser")
|
|
220
217
|
}),
|
|
221
|
-
/* @__PURE__ */
|
|
222
|
-
"If the original parser (ID:",
|
|
218
|
+
/* @__PURE__ */ O("p", { children: [
|
|
219
|
+
M("bigconsole.parsers.import.ifOriginalExistsPrefix", "If the original parser (ID:"),
|
|
223
220
|
" ",
|
|
224
|
-
/* @__PURE__ */
|
|
221
|
+
/* @__PURE__ */ O("code", {
|
|
225
222
|
className: "font-mono bg-blue-200/50 px-1 rounded",
|
|
226
223
|
children: [$.slice(0, 8), "..."]
|
|
227
224
|
}),
|
|
228
|
-
") exists:"
|
|
225
|
+
M("bigconsole.parsers.import.ifOriginalExistsSuffix", ") exists:")
|
|
229
226
|
] }),
|
|
230
|
-
/* @__PURE__ */
|
|
227
|
+
/* @__PURE__ */ O("ul", {
|
|
231
228
|
className: "list-disc list-inside mt-1 space-y-0.5",
|
|
232
|
-
children: [/* @__PURE__ */
|
|
229
|
+
children: [/* @__PURE__ */ D("li", { children: M("bigconsole.parsers.import.withChanges", "With changes → Update the existing parser") }), /* @__PURE__ */ D("li", { children: M("bigconsole.parsers.import.noChanges", "No changes → Show \"already exists\" message") })]
|
|
233
230
|
}),
|
|
234
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ D("p", {
|
|
235
232
|
className: "mt-1",
|
|
236
|
-
children: "If original doesn't exist → Create a new parser"
|
|
233
|
+
children: M("bigconsole.parsers.import.ifOriginalMissing", "If original doesn't exist → Create a new parser")
|
|
237
234
|
})
|
|
238
|
-
] }) : /* @__PURE__ */ E
|
|
235
|
+
] }) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("p", {
|
|
239
236
|
className: "font-medium mb-1",
|
|
240
|
-
children: "A new parser will be created"
|
|
241
|
-
}), /* @__PURE__ */
|
|
237
|
+
children: M("bigconsole.parsers.import.newParserTitle", "A new parser will be created")
|
|
238
|
+
}), /* @__PURE__ */ D("p", { children: M("bigconsole.parsers.import.newParserBody", "Import as a new parser with the specified configuration.") })] })
|
|
242
239
|
})]
|
|
243
240
|
})
|
|
244
241
|
})
|
|
245
242
|
}),
|
|
246
|
-
/* @__PURE__ */
|
|
243
|
+
/* @__PURE__ */ O("div", {
|
|
247
244
|
className: "space-y-2",
|
|
248
|
-
children: [/* @__PURE__ */
|
|
245
|
+
children: [/* @__PURE__ */ D(w, {
|
|
249
246
|
htmlFor: "import-name",
|
|
250
|
-
children: "Parser Name"
|
|
251
|
-
}), /* @__PURE__ */
|
|
247
|
+
children: M("bigconsole.parsers.import.parserNameLabel", "Parser Name")
|
|
248
|
+
}), /* @__PURE__ */ D(C, {
|
|
252
249
|
id: "import-name",
|
|
253
250
|
type: "text",
|
|
254
|
-
value:
|
|
255
|
-
onChange: (e) =>
|
|
256
|
-
placeholder:
|
|
257
|
-
disabled:
|
|
251
|
+
value: R,
|
|
252
|
+
onChange: (e) => z(e.target.value),
|
|
253
|
+
placeholder: q.parserInfo?.name || M("bigconsole.parsers.import.parserNamePlaceholder", "Parser name"),
|
|
254
|
+
disabled: N === "importing"
|
|
258
255
|
})]
|
|
259
256
|
}),
|
|
260
|
-
/* @__PURE__ */
|
|
257
|
+
/* @__PURE__ */ O("div", {
|
|
261
258
|
className: "space-y-2",
|
|
262
259
|
children: [
|
|
263
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ D(w, {
|
|
264
261
|
htmlFor: "import-input-sink",
|
|
265
|
-
children: "Input Sink Key"
|
|
262
|
+
children: M("bigconsole.parsers.import.inputSinkKeyLabel", "Input Sink Key")
|
|
266
263
|
}),
|
|
267
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ D(C, {
|
|
268
265
|
id: "import-input-sink",
|
|
269
266
|
type: "text",
|
|
270
|
-
value:
|
|
271
|
-
onChange: (e) =>
|
|
272
|
-
placeholder:
|
|
273
|
-
disabled:
|
|
267
|
+
value: B,
|
|
268
|
+
onChange: (e) => V(e.target.value),
|
|
269
|
+
placeholder: q.parserInfo?.inputSinkKey || M("bigconsole.parsers.import.inputSinkKeyPlaceholder", "Input sink key"),
|
|
270
|
+
disabled: N === "importing"
|
|
274
271
|
}),
|
|
275
|
-
/* @__PURE__ */
|
|
272
|
+
/* @__PURE__ */ D("p", {
|
|
276
273
|
className: "text-xs text-text-secondary",
|
|
277
|
-
children: "The DataSink key to read input data from."
|
|
274
|
+
children: M("bigconsole.parsers.import.inputSinkKeyHelp", "The DataSink key to read input data from.")
|
|
278
275
|
})
|
|
279
276
|
]
|
|
280
277
|
}),
|
|
281
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ O("div", {
|
|
282
279
|
className: "space-y-2",
|
|
283
280
|
children: [
|
|
284
|
-
/* @__PURE__ */
|
|
281
|
+
/* @__PURE__ */ D(w, {
|
|
285
282
|
htmlFor: "import-output-key",
|
|
286
|
-
children: "Output Key"
|
|
283
|
+
children: M("bigconsole.parsers.import.outputKeyLabel", "Output Key")
|
|
287
284
|
}),
|
|
288
|
-
/* @__PURE__ */
|
|
285
|
+
/* @__PURE__ */ D(C, {
|
|
289
286
|
id: "import-output-key",
|
|
290
287
|
type: "text",
|
|
291
|
-
value:
|
|
292
|
-
onChange: (e) =>
|
|
293
|
-
placeholder:
|
|
294
|
-
disabled:
|
|
288
|
+
value: H,
|
|
289
|
+
onChange: (e) => U(e.target.value),
|
|
290
|
+
placeholder: q.parserInfo?.outputKey || M("bigconsole.parsers.import.outputKeyPlaceholder", "Output key"),
|
|
291
|
+
disabled: N === "importing"
|
|
295
292
|
}),
|
|
296
|
-
/* @__PURE__ */
|
|
293
|
+
/* @__PURE__ */ D("p", {
|
|
297
294
|
className: "text-xs text-text-secondary",
|
|
298
|
-
children: "The key to store parsed output data under."
|
|
295
|
+
children: M("bigconsole.parsers.import.outputKeyHelp", "The key to store parsed output data under.")
|
|
299
296
|
})
|
|
300
297
|
]
|
|
301
298
|
})
|
|
302
299
|
]
|
|
303
300
|
})
|
|
304
301
|
] }),
|
|
305
|
-
|
|
302
|
+
N === "complete" && J?.success && /* @__PURE__ */ O("div", {
|
|
306
303
|
className: "text-center py-6",
|
|
307
304
|
children: [
|
|
308
|
-
|
|
309
|
-
/* @__PURE__ */
|
|
305
|
+
J.alreadyExists && /* @__PURE__ */ O(E, { children: [
|
|
306
|
+
/* @__PURE__ */ D("div", {
|
|
310
307
|
className: "size-16 mx-auto mb-4 rounded-full bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center",
|
|
311
|
-
children: /* @__PURE__ */
|
|
308
|
+
children: /* @__PURE__ */ D(l, { className: "size-8 text-blue-600" })
|
|
312
309
|
}),
|
|
313
|
-
/* @__PURE__ */
|
|
310
|
+
/* @__PURE__ */ D("h3", {
|
|
314
311
|
className: "text-lg font-medium mb-2",
|
|
315
|
-
children: "Parser Already Exists"
|
|
312
|
+
children: M("bigconsole.parsers.import.alreadyExistsTitle", "Parser Already Exists")
|
|
316
313
|
}),
|
|
317
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ D("p", {
|
|
318
315
|
className: "text-sm text-text-secondary mb-4",
|
|
319
|
-
children:
|
|
320
|
-
"Parser \"",
|
|
321
|
-
G.parser?.name,
|
|
322
|
-
"\" already exists with the same data. No changes were made."
|
|
323
|
-
]
|
|
316
|
+
children: M("bigconsole.parsers.import.alreadyExistsBody", "Parser \"{{name}}\" already exists with the same data. No changes were made.", { name: J.parser?.name ?? "" })
|
|
324
317
|
})
|
|
325
318
|
] }),
|
|
326
|
-
|
|
327
|
-
/* @__PURE__ */
|
|
319
|
+
J.originalUpdated && !J.alreadyExists && /* @__PURE__ */ O(E, { children: [
|
|
320
|
+
/* @__PURE__ */ D("div", {
|
|
328
321
|
className: "size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",
|
|
329
|
-
children: /* @__PURE__ */
|
|
322
|
+
children: /* @__PURE__ */ D(u, { className: "size-8 text-green-600" })
|
|
330
323
|
}),
|
|
331
|
-
/* @__PURE__ */
|
|
324
|
+
/* @__PURE__ */ D("h3", {
|
|
332
325
|
className: "text-lg font-medium mb-2",
|
|
333
|
-
children: "Parser Updated!"
|
|
326
|
+
children: M("bigconsole.parsers.import.updatedTitle", "Parser Updated!")
|
|
334
327
|
}),
|
|
335
|
-
/* @__PURE__ */
|
|
328
|
+
/* @__PURE__ */ D("p", {
|
|
336
329
|
className: "text-sm text-text-secondary mb-4",
|
|
337
|
-
children:
|
|
338
|
-
"Parser \"",
|
|
339
|
-
G.parser?.name,
|
|
340
|
-
"\" has been updated with the imported data."
|
|
341
|
-
]
|
|
330
|
+
children: M("bigconsole.parsers.import.updatedBody", "Parser \"{{name}}\" has been updated with the imported data.", { name: J.parser?.name ?? "" })
|
|
342
331
|
})
|
|
343
332
|
] }),
|
|
344
|
-
!
|
|
345
|
-
/* @__PURE__ */
|
|
333
|
+
!J.originalUpdated && !J.alreadyExists && /* @__PURE__ */ O(E, { children: [
|
|
334
|
+
/* @__PURE__ */ D("div", {
|
|
346
335
|
className: "size-16 mx-auto mb-4 rounded-full bg-green-100 dark:bg-green-900/30 flex items-center justify-center",
|
|
347
|
-
children: /* @__PURE__ */
|
|
336
|
+
children: /* @__PURE__ */ D(s, { className: "size-8 text-green-600" })
|
|
348
337
|
}),
|
|
349
|
-
/* @__PURE__ */
|
|
338
|
+
/* @__PURE__ */ D("h3", {
|
|
350
339
|
className: "text-lg font-medium mb-2",
|
|
351
|
-
children: "Import Successful!"
|
|
340
|
+
children: M("bigconsole.parsers.import.createdTitle", "Import Successful!")
|
|
352
341
|
}),
|
|
353
|
-
/* @__PURE__ */
|
|
342
|
+
/* @__PURE__ */ D("p", {
|
|
354
343
|
className: "text-sm text-text-secondary mb-4",
|
|
355
|
-
children:
|
|
356
|
-
"Parser \"",
|
|
357
|
-
G.parser?.name,
|
|
358
|
-
"\" has been created."
|
|
359
|
-
]
|
|
344
|
+
children: M("bigconsole.parsers.import.createdBody", "Parser \"{{name}}\" has been created.", { name: J.parser?.name ?? "" })
|
|
360
345
|
})
|
|
361
346
|
] })
|
|
362
347
|
]
|
|
363
348
|
}),
|
|
364
|
-
|
|
349
|
+
K && /* @__PURE__ */ D(h, {
|
|
365
350
|
className: "border-status-error-border/50 bg-status-error-bg/5",
|
|
366
|
-
children: /* @__PURE__ */
|
|
351
|
+
children: /* @__PURE__ */ D(g, {
|
|
367
352
|
className: "p-3",
|
|
368
|
-
children: /* @__PURE__ */
|
|
353
|
+
children: /* @__PURE__ */ D("p", {
|
|
369
354
|
className: "text-sm text-status-error-text",
|
|
370
|
-
children:
|
|
355
|
+
children: K.message
|
|
371
356
|
})
|
|
372
357
|
})
|
|
373
358
|
}),
|
|
374
|
-
|
|
359
|
+
J && !J.success && J.errorMessage && /* @__PURE__ */ D(h, {
|
|
375
360
|
className: "border-status-error-border/50 bg-status-error-bg/5",
|
|
376
|
-
children: /* @__PURE__ */
|
|
361
|
+
children: /* @__PURE__ */ D(g, {
|
|
377
362
|
className: "p-3",
|
|
378
|
-
children: /* @__PURE__ */
|
|
363
|
+
children: /* @__PURE__ */ D("p", {
|
|
379
364
|
className: "text-sm text-status-error-text",
|
|
380
|
-
children:
|
|
365
|
+
children: J.errorMessage
|
|
381
366
|
})
|
|
382
367
|
})
|
|
383
368
|
})
|
|
384
369
|
]
|
|
385
370
|
}),
|
|
386
|
-
/* @__PURE__ */
|
|
371
|
+
/* @__PURE__ */ O(b, {
|
|
387
372
|
className: "flex-row justify-between sm:justify-between",
|
|
388
|
-
children: [/* @__PURE__ */
|
|
373
|
+
children: [/* @__PURE__ */ D("div", { children: N === "preview" && /* @__PURE__ */ O(m, {
|
|
389
374
|
variant: "ghost",
|
|
390
375
|
onClick: () => {
|
|
391
|
-
|
|
376
|
+
P("select"), F(null), L(null), Z();
|
|
392
377
|
},
|
|
393
|
-
disabled:
|
|
394
|
-
children: [/* @__PURE__ */
|
|
395
|
-
}) }), /* @__PURE__ */
|
|
378
|
+
disabled: G,
|
|
379
|
+
children: [/* @__PURE__ */ D(o, { className: "size-4" }), M("bigconsole.parsers.import.back", "Back")]
|
|
380
|
+
}) }), /* @__PURE__ */ O("div", {
|
|
396
381
|
className: "flex items-center gap-2",
|
|
397
382
|
children: [
|
|
398
|
-
|
|
383
|
+
N !== "complete" && /* @__PURE__ */ D(m, {
|
|
399
384
|
variant: "outline",
|
|
400
|
-
onClick:
|
|
385
|
+
onClick: k,
|
|
401
386
|
disabled: !Q,
|
|
402
|
-
children: "Cancel"
|
|
387
|
+
children: M("bigconsole.parsers.import.cancel", "Cancel")
|
|
403
388
|
}),
|
|
404
|
-
|
|
405
|
-
onClick:
|
|
406
|
-
disabled:
|
|
407
|
-
children: [/* @__PURE__ */
|
|
389
|
+
N === "preview" && q?.isValid && /* @__PURE__ */ O(m, {
|
|
390
|
+
onClick: ie,
|
|
391
|
+
disabled: G,
|
|
392
|
+
children: [/* @__PURE__ */ D(d, { className: "size-4" }), M("bigconsole.parsers.import.importButton", "Import Parser")]
|
|
408
393
|
}),
|
|
409
|
-
|
|
394
|
+
N === "importing" && /* @__PURE__ */ O("div", {
|
|
410
395
|
className: "flex items-center gap-2 text-sm text-text-secondary",
|
|
411
|
-
children: [/* @__PURE__ */ T
|
|
396
|
+
children: [/* @__PURE__ */ D(T, { className: "size-4" }), M("bigconsole.parsers.import.importing", "Importing...")]
|
|
412
397
|
}),
|
|
413
|
-
|
|
414
|
-
onClick:
|
|
415
|
-
children: "Done"
|
|
398
|
+
N === "complete" && /* @__PURE__ */ D(m, {
|
|
399
|
+
onClick: k,
|
|
400
|
+
children: M("bigconsole.parsers.import.done", "Done")
|
|
416
401
|
})
|
|
417
402
|
]
|
|
418
403
|
})]
|
|
@@ -422,6 +407,6 @@ var D = t(function({ isOpen: t, onClose: D, consoleId: O, onSuccess: k }) {
|
|
|
422
407
|
});
|
|
423
408
|
});
|
|
424
409
|
//#endregion
|
|
425
|
-
export {
|
|
410
|
+
export { k as default };
|
|
426
411
|
|
|
427
412
|
//# sourceMappingURL=ImportParserDialog.js.map
|