@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
|
@@ -5,79 +5,80 @@ import n from "../hooks/usePipelineOperations.js";
|
|
|
5
5
|
import { BIGCONSOLE_PERMISSIONS as r } from "../../constants/permissions.js";
|
|
6
6
|
import i from "../components/pipeline/PipelineStatusBadge.js";
|
|
7
7
|
import { memo as a, useCallback as o, useEffect as s, useMemo as ee, useState as c } from "react";
|
|
8
|
-
import { useParams as
|
|
9
|
-
import { AccessDenied as
|
|
10
|
-
import { usePermissions as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
8
|
+
import { useParams as te } from "react-router";
|
|
9
|
+
import { AccessDenied as ne } from "@burdenoff/fe-libs/shared/components";
|
|
10
|
+
import { usePermissions as l } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
11
|
+
import { useI18n as u } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
12
|
+
import { GlassCard as d, IllustratedEmptyState as f, PagePurpose as re } from "@burdenoff/fe-libs/ui";
|
|
13
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
13
14
|
//#region src/bigconsole/pages/PipelineBuilderPage.tsx
|
|
14
|
-
var
|
|
15
|
+
var h = ({ className: e }) => /* @__PURE__ */ p("svg", {
|
|
15
16
|
className: e,
|
|
16
17
|
fill: "none",
|
|
17
18
|
stroke: "currentColor",
|
|
18
19
|
viewBox: "0 0 24 24",
|
|
19
|
-
children: /* @__PURE__ */
|
|
20
|
+
children: /* @__PURE__ */ p("path", {
|
|
20
21
|
strokeLinecap: "round",
|
|
21
22
|
strokeLinejoin: "round",
|
|
22
23
|
strokeWidth: 2,
|
|
23
24
|
d: "M10 19l-7-7m0 0l7-7m-7 7h18"
|
|
24
25
|
})
|
|
25
|
-
}),
|
|
26
|
+
}), g = ({ className: e }) => /* @__PURE__ */ p("svg", {
|
|
26
27
|
className: e,
|
|
27
28
|
fill: "none",
|
|
28
29
|
stroke: "currentColor",
|
|
29
30
|
viewBox: "0 0 24 24",
|
|
30
|
-
children: /* @__PURE__ */
|
|
31
|
+
children: /* @__PURE__ */ p("path", {
|
|
31
32
|
strokeLinecap: "round",
|
|
32
33
|
strokeLinejoin: "round",
|
|
33
34
|
strokeWidth: 2,
|
|
34
35
|
d: "M12 4v16m8-8H4"
|
|
35
36
|
})
|
|
36
|
-
}),
|
|
37
|
+
}), ie = ({ className: e }) => /* @__PURE__ */ p("svg", {
|
|
37
38
|
className: e,
|
|
38
39
|
fill: "none",
|
|
39
40
|
stroke: "currentColor",
|
|
40
41
|
viewBox: "0 0 24 24",
|
|
41
|
-
children: /* @__PURE__ */
|
|
42
|
+
children: /* @__PURE__ */ p("path", {
|
|
42
43
|
strokeLinecap: "round",
|
|
43
44
|
strokeLinejoin: "round",
|
|
44
45
|
strokeWidth: 2,
|
|
45
46
|
d: "M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"
|
|
46
47
|
})
|
|
47
|
-
}),
|
|
48
|
+
}), ae = ({ className: e }) => /* @__PURE__ */ p("svg", {
|
|
48
49
|
className: e,
|
|
49
50
|
fill: "none",
|
|
50
51
|
stroke: "currentColor",
|
|
51
52
|
viewBox: "0 0 24 24",
|
|
52
|
-
children: /* @__PURE__ */
|
|
53
|
+
children: /* @__PURE__ */ p("path", {
|
|
53
54
|
strokeLinecap: "round",
|
|
54
55
|
strokeLinejoin: "round",
|
|
55
56
|
strokeWidth: 2,
|
|
56
57
|
d: "M5 15l7-7 7 7"
|
|
57
58
|
})
|
|
58
|
-
}),
|
|
59
|
+
}), oe = ({ className: e }) => /* @__PURE__ */ p("svg", {
|
|
59
60
|
className: e,
|
|
60
61
|
fill: "none",
|
|
61
62
|
stroke: "currentColor",
|
|
62
63
|
viewBox: "0 0 24 24",
|
|
63
|
-
children: /* @__PURE__ */
|
|
64
|
+
children: /* @__PURE__ */ p("path", {
|
|
64
65
|
strokeLinecap: "round",
|
|
65
66
|
strokeLinejoin: "round",
|
|
66
67
|
strokeWidth: 2,
|
|
67
68
|
d: "M19 9l-7 7-7-7"
|
|
68
69
|
})
|
|
69
|
-
}),
|
|
70
|
+
}), _ = ({ className: e }) => /* @__PURE__ */ p("svg", {
|
|
70
71
|
className: e,
|
|
71
72
|
fill: "none",
|
|
72
73
|
stroke: "currentColor",
|
|
73
74
|
viewBox: "0 0 24 24",
|
|
74
|
-
children: /* @__PURE__ */
|
|
75
|
+
children: /* @__PURE__ */ p("path", {
|
|
75
76
|
strokeLinecap: "round",
|
|
76
77
|
strokeLinejoin: "round",
|
|
77
78
|
strokeWidth: 2,
|
|
78
79
|
d: "M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
79
80
|
})
|
|
80
|
-
}),
|
|
81
|
+
}), se = [
|
|
81
82
|
{
|
|
82
83
|
value: "draft",
|
|
83
84
|
label: "Draft"
|
|
@@ -90,7 +91,7 @@ var g = ({ className: e }) => /* @__PURE__ */ m("svg", {
|
|
|
90
91
|
value: "inactive",
|
|
91
92
|
label: "Inactive"
|
|
92
93
|
}
|
|
93
|
-
],
|
|
94
|
+
], ce = [
|
|
94
95
|
{
|
|
95
96
|
value: "fail",
|
|
96
97
|
label: "Fail",
|
|
@@ -106,7 +107,7 @@ var g = ({ className: e }) => /* @__PURE__ */ m("svg", {
|
|
|
106
107
|
label: "Fallback",
|
|
107
108
|
description: "Use fallback value on error"
|
|
108
109
|
}
|
|
109
|
-
],
|
|
110
|
+
], v = {
|
|
110
111
|
parserId: "",
|
|
111
112
|
parserName: "",
|
|
112
113
|
parserType: null,
|
|
@@ -116,13 +117,13 @@ var g = ({ className: e }) => /* @__PURE__ */ m("svg", {
|
|
|
116
117
|
onError: "fail",
|
|
117
118
|
fallbackValue: "",
|
|
118
119
|
description: ""
|
|
119
|
-
},
|
|
120
|
-
let {
|
|
120
|
+
}, y = a(function() {
|
|
121
|
+
let { t: a } = u(), { pipelineId: y } = te(), b = e(), x = !!y && y !== "new", S = "default", { hasPermission: C, isLoading: w } = l(), T = C(r.PIPELINE_READ), E = C(r.PIPELINE_CREATE), D = C(r.PIPELINE_UPDATE), O = x ? D : E, [k, A] = c(""), [j, M] = c(""), [N, P] = c("draft"), [F, I] = c([]), [L, R] = c(1), [z, B] = c(!1), [V, H] = c(null), { loading: U, error: W, fetchPipeline: G, createPipeline: K, updatePipeline: q } = n({
|
|
121
122
|
consoleId: S,
|
|
122
123
|
skipFetch: !0
|
|
123
124
|
}), { parsers: J } = t({ consoleId: S });
|
|
124
125
|
s(() => {
|
|
125
|
-
x &&
|
|
126
|
+
x && y && G(y).then((e) => {
|
|
126
127
|
e && (A(e.name), M(e.description || ""), P(e.status), R(e.version), I((e.stages || []).map((e) => ({
|
|
127
128
|
id: e.id,
|
|
128
129
|
parserId: e.parserId,
|
|
@@ -138,14 +139,23 @@ var g = ({ className: e }) => /* @__PURE__ */ m("svg", {
|
|
|
138
139
|
});
|
|
139
140
|
}, [
|
|
140
141
|
x,
|
|
141
|
-
|
|
142
|
+
y,
|
|
142
143
|
G
|
|
143
144
|
]);
|
|
144
|
-
let
|
|
145
|
+
let le = {
|
|
146
|
+
draft: a("bigconsole.pipelines.builder.status.draft", "Draft"),
|
|
147
|
+
active: a("bigconsole.pipelines.builder.status.active", "Active"),
|
|
148
|
+
inactive: a("bigconsole.pipelines.builder.status.inactive", "Inactive"),
|
|
149
|
+
error: a("bigconsole.pipelines.builder.status.error", "Error")
|
|
150
|
+
}, ue = {
|
|
151
|
+
fail: a("bigconsole.pipelines.builder.onError.fail", "Fail"),
|
|
152
|
+
skip: a("bigconsole.pipelines.builder.onError.skip", "Skip"),
|
|
153
|
+
fallback: a("bigconsole.pipelines.builder.onError.fallback", "Fallback")
|
|
154
|
+
}, Y = ee(() => !k.trim() || F.length === 0 ? !1 : F.every((e) => e.parserId && e.inputKey && e.outputKey), [k, F]), X = o(() => {
|
|
145
155
|
b("/pipelines");
|
|
146
156
|
}, [b]), Z = o(() => {
|
|
147
|
-
I((e) => [...e, { ...
|
|
148
|
-
}, []),
|
|
157
|
+
I((e) => [...e, { ...v }]);
|
|
158
|
+
}, []), de = o((e) => {
|
|
149
159
|
I((t) => t.filter((t, n) => n !== e));
|
|
150
160
|
}, []), Q = o((e, t) => {
|
|
151
161
|
I((n) => {
|
|
@@ -157,14 +167,14 @@ var g = ({ className: e }) => /* @__PURE__ */ m("svg", {
|
|
|
157
167
|
...n,
|
|
158
168
|
...t
|
|
159
169
|
} : n));
|
|
160
|
-
}, []),
|
|
170
|
+
}, []), fe = o((e, t) => {
|
|
161
171
|
let n = J.find((e) => e.id === t);
|
|
162
172
|
n && $(e, {
|
|
163
173
|
parserId: n.id,
|
|
164
174
|
parserName: n.name,
|
|
165
175
|
parserType: n.type
|
|
166
176
|
});
|
|
167
|
-
}, [J, $]),
|
|
177
|
+
}, [J, $]), pe = o(async () => {
|
|
168
178
|
if (!(!Y || !O)) {
|
|
169
179
|
B(!0), H(null);
|
|
170
180
|
try {
|
|
@@ -179,11 +189,11 @@ var g = ({ className: e }) => /* @__PURE__ */ m("svg", {
|
|
|
179
189
|
fallbackValue: e.fallbackValue ? JSON.parse(e.fallbackValue) : void 0,
|
|
180
190
|
description: e.description || void 0
|
|
181
191
|
}));
|
|
182
|
-
if (x &&
|
|
192
|
+
if (x && y) await q(y, {
|
|
183
193
|
name: k,
|
|
184
194
|
description: j || void 0,
|
|
185
195
|
status: N
|
|
186
|
-
}, L) && b(`/pipelines/${
|
|
196
|
+
}, L) && b(`/pipelines/${y}`);
|
|
187
197
|
else {
|
|
188
198
|
let t = await K({
|
|
189
199
|
consoleId: S,
|
|
@@ -195,7 +205,7 @@ var g = ({ className: e }) => /* @__PURE__ */ m("svg", {
|
|
|
195
205
|
t && b(`/pipelines/${t.id}`);
|
|
196
206
|
}
|
|
197
207
|
} catch (e) {
|
|
198
|
-
H(e instanceof Error ? e.message : "Failed to save pipeline");
|
|
208
|
+
H(e instanceof Error ? e.message : a("bigconsole.pipelines.builder.errors.saveFailed", "Failed to save pipeline"));
|
|
199
209
|
} finally {
|
|
200
210
|
B(!1);
|
|
201
211
|
}
|
|
@@ -205,7 +215,7 @@ var g = ({ className: e }) => /* @__PURE__ */ m("svg", {
|
|
|
205
215
|
S,
|
|
206
216
|
O,
|
|
207
217
|
x,
|
|
208
|
-
|
|
218
|
+
y,
|
|
209
219
|
k,
|
|
210
220
|
j,
|
|
211
221
|
N,
|
|
@@ -213,245 +223,250 @@ var g = ({ className: e }) => /* @__PURE__ */ m("svg", {
|
|
|
213
223
|
L,
|
|
214
224
|
K,
|
|
215
225
|
q,
|
|
216
|
-
b
|
|
226
|
+
b,
|
|
227
|
+
a
|
|
217
228
|
]);
|
|
218
|
-
return U && x ? /* @__PURE__ */
|
|
229
|
+
return U && x ? /* @__PURE__ */ p("div", {
|
|
219
230
|
className: "p-6",
|
|
220
|
-
children: /* @__PURE__ */
|
|
231
|
+
children: /* @__PURE__ */ m("div", {
|
|
221
232
|
className: "flex flex-col items-center justify-center py-16",
|
|
222
|
-
children: [/* @__PURE__ */
|
|
233
|
+
children: [/* @__PURE__ */ m("svg", {
|
|
223
234
|
className: "w-8 h-8 text-action-primary-bg animate-spin mb-4",
|
|
224
235
|
fill: "none",
|
|
225
236
|
viewBox: "0 0 24 24",
|
|
226
|
-
children: [/* @__PURE__ */
|
|
237
|
+
children: [/* @__PURE__ */ p("circle", {
|
|
227
238
|
className: "opacity-25",
|
|
228
239
|
cx: "12",
|
|
229
240
|
cy: "12",
|
|
230
241
|
r: "10",
|
|
231
242
|
stroke: "currentColor",
|
|
232
243
|
strokeWidth: "4"
|
|
233
|
-
}), /* @__PURE__ */
|
|
244
|
+
}), /* @__PURE__ */ p("path", {
|
|
234
245
|
className: "opacity-75",
|
|
235
246
|
fill: "currentColor",
|
|
236
247
|
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
237
248
|
})]
|
|
238
|
-
}), /* @__PURE__ */
|
|
249
|
+
}), /* @__PURE__ */ p("p", {
|
|
239
250
|
className: "text-sm text-text-secondary",
|
|
240
|
-
children: "Loading Pipeline..."
|
|
251
|
+
children: a("bigconsole.pipelines.builder.loading", "Loading Pipeline...")
|
|
241
252
|
})]
|
|
242
253
|
})
|
|
243
|
-
}) : x && !w && !T ? /* @__PURE__ */
|
|
244
|
-
title: "Access Denied",
|
|
245
|
-
description: "You don't have permission to view this pipeline."
|
|
246
|
-
}) : W ? /* @__PURE__ */
|
|
254
|
+
}) : x && !w && !T ? /* @__PURE__ */ p(ne, {
|
|
255
|
+
title: a("bigconsole.pipelines.builder.accessDenied.title", "Access Denied"),
|
|
256
|
+
description: a("bigconsole.pipelines.builder.accessDenied.description", "You don't have permission to view this pipeline.")
|
|
257
|
+
}) : W ? /* @__PURE__ */ p("div", {
|
|
247
258
|
className: "p-6",
|
|
248
|
-
children: /* @__PURE__ */
|
|
259
|
+
children: /* @__PURE__ */ m("div", {
|
|
249
260
|
className: "flex flex-col items-center justify-center py-16 text-center",
|
|
250
261
|
children: [
|
|
251
|
-
/* @__PURE__ */
|
|
262
|
+
/* @__PURE__ */ p("div", {
|
|
252
263
|
className: "p-3 rounded-full bg-status-error-bg/10 mb-4",
|
|
253
|
-
children: /* @__PURE__ */
|
|
264
|
+
children: /* @__PURE__ */ p(_, { className: "w-8 h-8 text-status-error-text" })
|
|
254
265
|
}),
|
|
255
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ p("h3", {
|
|
256
267
|
className: "text-lg font-medium text-text-primary mb-2",
|
|
257
|
-
children: "Failed to load Pipeline"
|
|
268
|
+
children: a("bigconsole.pipelines.builder.errors.loadFailed", "Failed to load Pipeline")
|
|
258
269
|
}),
|
|
259
|
-
/* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ p("p", {
|
|
260
271
|
className: "text-sm text-text-secondary mb-4",
|
|
261
272
|
children: W.message
|
|
262
273
|
}),
|
|
263
|
-
/* @__PURE__ */
|
|
274
|
+
/* @__PURE__ */ p("button", {
|
|
264
275
|
type: "button",
|
|
265
276
|
onClick: X,
|
|
266
277
|
className: "px-4 py-2 text-sm font-medium text-action-primary-fg bg-action-primary-bg hover:bg-action-primary-bgHover rounded-md transition-colors",
|
|
267
|
-
children: "Back to Pipelines"
|
|
278
|
+
children: a("bigconsole.pipelines.builder.actions.backToPipelines", "Back to Pipelines")
|
|
268
279
|
})
|
|
269
280
|
]
|
|
270
281
|
})
|
|
271
|
-
}) : /* @__PURE__ */
|
|
282
|
+
}) : /* @__PURE__ */ m("div", {
|
|
272
283
|
className: "p-6",
|
|
273
284
|
children: [
|
|
274
|
-
/* @__PURE__ */
|
|
285
|
+
/* @__PURE__ */ m("div", {
|
|
275
286
|
className: "flex items-center justify-between mb-6",
|
|
276
|
-
children: [/* @__PURE__ */
|
|
287
|
+
children: [/* @__PURE__ */ m("div", {
|
|
277
288
|
className: "flex items-center gap-4",
|
|
278
|
-
children: [/* @__PURE__ */
|
|
289
|
+
children: [/* @__PURE__ */ p("button", {
|
|
279
290
|
type: "button",
|
|
280
291
|
onClick: X,
|
|
281
292
|
className: "p-2 text-text-secondary hover:text-text-primary hover:bg-bg-sunken rounded-md transition-colors",
|
|
282
|
-
children: /* @__PURE__ */
|
|
283
|
-
}), /* @__PURE__ */
|
|
293
|
+
children: /* @__PURE__ */ p(h, { className: "w-5 h-5" })
|
|
294
|
+
}), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h1", {
|
|
284
295
|
className: "text-2xl font-bold text-text-primary",
|
|
285
|
-
children: x ? "Edit Pipeline" : "Create Pipeline"
|
|
286
|
-
}), /* @__PURE__ */
|
|
296
|
+
children: x ? a("bigconsole.pipelines.builder.header.editTitle", "Edit Pipeline") : a("bigconsole.pipelines.builder.header.createTitle", "Create Pipeline")
|
|
297
|
+
}), /* @__PURE__ */ p("p", {
|
|
287
298
|
className: "text-sm text-text-secondary mt-1",
|
|
288
|
-
children: x ? "Update pipeline settings and stages" : "Create a new data transformation pipeline"
|
|
299
|
+
children: x ? a("bigconsole.pipelines.builder.header.editSubtitle", "Update pipeline settings and stages") : a("bigconsole.pipelines.builder.header.createSubtitle", "Create a new data transformation pipeline")
|
|
289
300
|
})] })]
|
|
290
|
-
}), /* @__PURE__ */
|
|
301
|
+
}), /* @__PURE__ */ m("div", {
|
|
291
302
|
className: "flex items-center gap-2",
|
|
292
|
-
children: [/* @__PURE__ */
|
|
303
|
+
children: [/* @__PURE__ */ p("button", {
|
|
293
304
|
type: "button",
|
|
294
305
|
onClick: X,
|
|
295
306
|
className: "px-4 py-2 text-sm font-medium text-text-primary bg-bg-sunken hover:bg-border-default rounded-md transition-colors",
|
|
296
|
-
children: "Cancel"
|
|
297
|
-
}), /* @__PURE__ */
|
|
307
|
+
children: a("bigconsole.pipelines.builder.actions.cancel", "Cancel")
|
|
308
|
+
}), /* @__PURE__ */ p("button", {
|
|
298
309
|
type: "button",
|
|
299
|
-
onClick:
|
|
310
|
+
onClick: pe,
|
|
300
311
|
disabled: !Y || z || !O,
|
|
301
|
-
title: O ? void 0 :
|
|
312
|
+
title: O ? void 0 : x ? a("bigconsole.pipelines.builder.actions.noUpdatePermission", "You don't have permission to update pipelines.") : a("bigconsole.pipelines.builder.actions.noCreatePermission", "You don't have permission to create pipelines."),
|
|
302
313
|
className: "px-4 py-2 text-sm font-medium text-action-primary-fg bg-action-primary-bg hover:bg-action-primary-bgHover rounded-md transition-colors disabled:opacity-50 disabled:cursor-not-allowed",
|
|
303
|
-
children: z ? "Saving..." : x ? "Save Changes" : "Create Pipeline"
|
|
314
|
+
children: z ? a("bigconsole.pipelines.builder.actions.saving", "Saving...") : x ? a("bigconsole.pipelines.builder.actions.saveChanges", "Save Changes") : a("bigconsole.pipelines.builder.actions.createPipeline", "Create Pipeline")
|
|
304
315
|
})]
|
|
305
316
|
})]
|
|
306
317
|
}),
|
|
307
|
-
/* @__PURE__ */
|
|
318
|
+
/* @__PURE__ */ p(re, {
|
|
308
319
|
className: "mb-6",
|
|
309
|
-
children: "Build a pipeline by chaining parser stages — each stage reads an input key, runs a parser, and writes a structured output key that the next stage (or a data sink) can use. Name it, add your stages in order, then test it before saving so your data flows end to end."
|
|
320
|
+
children: a("bigconsole.pipelines.builder.header.purpose", "Build a pipeline by chaining parser stages — each stage reads an input key, runs a parser, and writes a structured output key that the next stage (or a data sink) can use. Name it, add your stages in order, then test it before saving so your data flows end to end.")
|
|
310
321
|
}),
|
|
311
|
-
V && /* @__PURE__ */
|
|
322
|
+
V && /* @__PURE__ */ p("div", {
|
|
312
323
|
className: "mb-6 p-4 bg-status-error-bg/10 border border-status-error-border/20 rounded-md",
|
|
313
|
-
children: /* @__PURE__ */
|
|
324
|
+
children: /* @__PURE__ */ p("p", {
|
|
314
325
|
className: "text-sm text-status-error-text",
|
|
315
326
|
children: V
|
|
316
327
|
})
|
|
317
328
|
}),
|
|
318
|
-
/* @__PURE__ */
|
|
329
|
+
/* @__PURE__ */ m("div", {
|
|
319
330
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
320
|
-
children: [/* @__PURE__ */
|
|
331
|
+
children: [/* @__PURE__ */ m("div", {
|
|
321
332
|
className: "lg:col-span-2 space-y-6",
|
|
322
|
-
children: [/* @__PURE__ */
|
|
333
|
+
children: [/* @__PURE__ */ m("div", {
|
|
323
334
|
className: "bg-bg-surface border border-border-default rounded-lg p-6",
|
|
324
|
-
children: [/* @__PURE__ */
|
|
335
|
+
children: [/* @__PURE__ */ p("h2", {
|
|
325
336
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
326
|
-
children: "Basic Information"
|
|
327
|
-
}), /* @__PURE__ */
|
|
337
|
+
children: a("bigconsole.pipelines.builder.basicInfo.heading", "Basic Information")
|
|
338
|
+
}), /* @__PURE__ */ m("div", {
|
|
328
339
|
className: "space-y-4",
|
|
329
340
|
children: [
|
|
330
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("label", {
|
|
331
342
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
332
|
-
children: [
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
343
|
+
children: [
|
|
344
|
+
a("bigconsole.pipelines.builder.basicInfo.nameLabel", "Name"),
|
|
345
|
+
" ",
|
|
346
|
+
/* @__PURE__ */ p("span", {
|
|
347
|
+
className: "text-status-error-text",
|
|
348
|
+
children: "*"
|
|
349
|
+
})
|
|
350
|
+
]
|
|
351
|
+
}), /* @__PURE__ */ p("input", {
|
|
337
352
|
type: "text",
|
|
338
353
|
value: k,
|
|
339
354
|
onChange: (e) => A(e.target.value),
|
|
340
|
-
placeholder: "My Pipeline",
|
|
355
|
+
placeholder: a("bigconsole.pipelines.builder.basicInfo.namePlaceholder", "My Pipeline"),
|
|
341
356
|
className: "w-full px-3 py-2 text-sm text-text-primary bg-bg-surface border border-border-default rounded-md focus:outline-none focus:ring-2 focus:ring-action-primary-bg"
|
|
342
357
|
})] }),
|
|
343
|
-
/* @__PURE__ */
|
|
358
|
+
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
344
359
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
345
|
-
children: "Description"
|
|
346
|
-
}), /* @__PURE__ */
|
|
360
|
+
children: a("bigconsole.pipelines.builder.basicInfo.descriptionLabel", "Description")
|
|
361
|
+
}), /* @__PURE__ */ p("textarea", {
|
|
347
362
|
value: j,
|
|
348
363
|
onChange: (e) => M(e.target.value),
|
|
349
|
-
placeholder: "What does this pipeline do?",
|
|
364
|
+
placeholder: a("bigconsole.pipelines.builder.basicInfo.descriptionPlaceholder", "What does this pipeline do?"),
|
|
350
365
|
rows: 3,
|
|
351
366
|
className: "w-full px-3 py-2 text-sm text-text-primary bg-bg-surface border border-border-default rounded-md focus:outline-none focus:ring-2 focus:ring-action-primary-bg resize-none"
|
|
352
367
|
})] }),
|
|
353
|
-
/* @__PURE__ */
|
|
368
|
+
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
354
369
|
className: "block text-sm font-medium text-text-primary mb-2",
|
|
355
|
-
children: "Status"
|
|
356
|
-
}), /* @__PURE__ */
|
|
370
|
+
children: a("bigconsole.pipelines.builder.basicInfo.statusLabel", "Status")
|
|
371
|
+
}), /* @__PURE__ */ p("select", {
|
|
357
372
|
value: N,
|
|
358
373
|
onChange: (e) => P(e.target.value),
|
|
359
374
|
className: "w-full px-3 py-2 text-sm text-text-primary bg-bg-surface border border-border-default rounded-md focus:outline-none focus:ring-2 focus:ring-action-primary-bg",
|
|
360
|
-
children:
|
|
375
|
+
children: se.map((e) => /* @__PURE__ */ p("option", {
|
|
361
376
|
value: e.value,
|
|
362
|
-
children: e.
|
|
377
|
+
children: le[e.value]
|
|
363
378
|
}, e.value))
|
|
364
379
|
})] })
|
|
365
380
|
]
|
|
366
381
|
})]
|
|
367
|
-
}), /* @__PURE__ */
|
|
382
|
+
}), /* @__PURE__ */ m(d, {
|
|
368
383
|
treatment: "glass",
|
|
369
384
|
glow: !0,
|
|
370
385
|
className: "p-6",
|
|
371
|
-
children: [/* @__PURE__ */
|
|
386
|
+
children: [/* @__PURE__ */ m("div", {
|
|
372
387
|
className: "flex items-center justify-between mb-4",
|
|
373
|
-
children: [/* @__PURE__ */
|
|
388
|
+
children: [/* @__PURE__ */ p("h2", {
|
|
374
389
|
className: "text-lg font-semibold text-text-primary",
|
|
375
|
-
children:
|
|
376
|
-
|
|
377
|
-
F.length,
|
|
378
|
-
")"
|
|
379
|
-
]
|
|
380
|
-
}), /* @__PURE__ */ h("button", {
|
|
390
|
+
children: a("bigconsole.pipelines.builder.stages.heading", "Stages ({{count}})", { count: F.length })
|
|
391
|
+
}), /* @__PURE__ */ m("button", {
|
|
381
392
|
type: "button",
|
|
382
393
|
onClick: Z,
|
|
383
394
|
className: "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium text-action-primary-fg bg-action-primary-bg hover:bg-action-primary-bgHover rounded-md transition-colors",
|
|
384
|
-
children: [/* @__PURE__ */
|
|
395
|
+
children: [/* @__PURE__ */ p(g, { className: "w-4 h-4" }), a("bigconsole.pipelines.builder.stages.addStage", "Add Stage")]
|
|
385
396
|
})]
|
|
386
|
-
}), F.length === 0 ? /* @__PURE__ */
|
|
397
|
+
}), F.length === 0 ? /* @__PURE__ */ p(f, {
|
|
387
398
|
illustration: "empty-generic",
|
|
388
|
-
title: "No stages yet",
|
|
389
|
-
description: "Add a stage to start building your pipeline.",
|
|
390
|
-
action: /* @__PURE__ */
|
|
399
|
+
title: a("bigconsole.pipelines.builder.stages.emptyTitle", "No stages yet"),
|
|
400
|
+
description: a("bigconsole.pipelines.builder.stages.emptyDescription", "Add a stage to start building your pipeline."),
|
|
401
|
+
action: /* @__PURE__ */ m("button", {
|
|
391
402
|
type: "button",
|
|
392
403
|
onClick: Z,
|
|
393
404
|
className: "inline-flex items-center gap-2 px-4 py-2 text-sm font-medium text-action-primary-fg bg-action-primary-bg hover:bg-action-primary-bgHover rounded-md transition-colors",
|
|
394
|
-
children: [/* @__PURE__ */
|
|
405
|
+
children: [/* @__PURE__ */ p(g, { className: "w-4 h-4" }), a("bigconsole.pipelines.builder.stages.addFirstStage", "Add First Stage")]
|
|
395
406
|
})
|
|
396
|
-
}) : /* @__PURE__ */
|
|
407
|
+
}) : /* @__PURE__ */ p("div", {
|
|
397
408
|
className: "space-y-4",
|
|
398
|
-
children: F.map((e, t) => /* @__PURE__ */
|
|
409
|
+
children: F.map((e, t) => /* @__PURE__ */ m("div", {
|
|
399
410
|
className: "p-4 bg-bg-sunken border border-border-default rounded-lg",
|
|
400
|
-
children: [/* @__PURE__ */
|
|
411
|
+
children: [/* @__PURE__ */ m("div", {
|
|
401
412
|
className: "flex items-center justify-between mb-4",
|
|
402
|
-
children: [/* @__PURE__ */
|
|
413
|
+
children: [/* @__PURE__ */ m("div", {
|
|
403
414
|
className: "flex items-center gap-2",
|
|
404
|
-
children: [/* @__PURE__ */
|
|
415
|
+
children: [/* @__PURE__ */ p("span", {
|
|
405
416
|
className: "w-6 h-6 flex items-center justify-center text-xs font-medium bg-action-primary-bg/10 text-action-primary-bg rounded-full",
|
|
406
417
|
children: t + 1
|
|
407
|
-
}), /* @__PURE__ */
|
|
418
|
+
}), /* @__PURE__ */ p("span", {
|
|
408
419
|
className: "font-medium text-text-primary",
|
|
409
|
-
children: e.parserName ||
|
|
420
|
+
children: e.parserName || a("bigconsole.pipelines.builder.stages.defaultStageName", "Stage {{number}}", { number: t + 1 })
|
|
410
421
|
})]
|
|
411
|
-
}), /* @__PURE__ */
|
|
422
|
+
}), /* @__PURE__ */ m("div", {
|
|
412
423
|
className: "flex items-center gap-1",
|
|
413
424
|
children: [
|
|
414
|
-
/* @__PURE__ */
|
|
425
|
+
/* @__PURE__ */ p("button", {
|
|
415
426
|
type: "button",
|
|
416
427
|
onClick: () => Q(t, "up"),
|
|
417
428
|
disabled: t === 0,
|
|
418
429
|
className: "p-1 text-text-secondary hover:text-text-primary hover:bg-bg-surface rounded disabled:opacity-30",
|
|
419
|
-
children: /* @__PURE__ */
|
|
430
|
+
children: /* @__PURE__ */ p(ae, { className: "w-4 h-4" })
|
|
420
431
|
}),
|
|
421
|
-
/* @__PURE__ */
|
|
432
|
+
/* @__PURE__ */ p("button", {
|
|
422
433
|
type: "button",
|
|
423
434
|
onClick: () => Q(t, "down"),
|
|
424
435
|
disabled: t === F.length - 1,
|
|
425
436
|
className: "p-1 text-text-secondary hover:text-text-primary hover:bg-bg-surface rounded disabled:opacity-30",
|
|
426
|
-
children: /* @__PURE__ */
|
|
437
|
+
children: /* @__PURE__ */ p(oe, { className: "w-4 h-4" })
|
|
427
438
|
}),
|
|
428
|
-
/* @__PURE__ */
|
|
439
|
+
/* @__PURE__ */ p("button", {
|
|
429
440
|
type: "button",
|
|
430
|
-
onClick: () =>
|
|
441
|
+
onClick: () => de(t),
|
|
431
442
|
className: "p-1 text-text-secondary hover:text-status-error-text hover:bg-status-error-bg/10 rounded",
|
|
432
|
-
children: /* @__PURE__ */
|
|
443
|
+
children: /* @__PURE__ */ p(ie, { className: "w-4 h-4" })
|
|
433
444
|
})
|
|
434
445
|
]
|
|
435
446
|
})]
|
|
436
|
-
}), /* @__PURE__ */
|
|
447
|
+
}), /* @__PURE__ */ m("div", {
|
|
437
448
|
className: "grid grid-cols-2 gap-4",
|
|
438
449
|
children: [
|
|
439
|
-
/* @__PURE__ */
|
|
450
|
+
/* @__PURE__ */ m("div", {
|
|
440
451
|
className: "col-span-2",
|
|
441
|
-
children: [/* @__PURE__ */
|
|
452
|
+
children: [/* @__PURE__ */ m("label", {
|
|
442
453
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
443
|
-
children: [
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
454
|
+
children: [
|
|
455
|
+
a("bigconsole.pipelines.builder.stages.parserLabel", "Parser"),
|
|
456
|
+
" ",
|
|
457
|
+
/* @__PURE__ */ p("span", {
|
|
458
|
+
className: "text-status-error-text",
|
|
459
|
+
children: "*"
|
|
460
|
+
})
|
|
461
|
+
]
|
|
462
|
+
}), /* @__PURE__ */ m("select", {
|
|
448
463
|
value: e.parserId,
|
|
449
|
-
onChange: (e) =>
|
|
464
|
+
onChange: (e) => fe(t, e.target.value),
|
|
450
465
|
className: "w-full px-3 py-2 text-sm text-text-primary bg-bg-surface border border-border-default rounded-md focus:outline-none focus:ring-2 focus:ring-action-primary-bg",
|
|
451
|
-
children: [/* @__PURE__ */
|
|
466
|
+
children: [/* @__PURE__ */ p("option", {
|
|
452
467
|
value: "",
|
|
453
|
-
children: "Select a parser..."
|
|
454
|
-
}), J.map((e) => /* @__PURE__ */
|
|
468
|
+
children: a("bigconsole.pipelines.builder.stages.parserPlaceholder", "Select a parser...")
|
|
469
|
+
}), J.map((e) => /* @__PURE__ */ m("option", {
|
|
455
470
|
value: e.id,
|
|
456
471
|
children: [
|
|
457
472
|
e.name,
|
|
@@ -462,65 +477,73 @@ var g = ({ className: e }) => /* @__PURE__ */ m("svg", {
|
|
|
462
477
|
}, e.id))]
|
|
463
478
|
})]
|
|
464
479
|
}),
|
|
465
|
-
/* @__PURE__ */
|
|
480
|
+
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("label", {
|
|
466
481
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
467
|
-
children: [
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
482
|
+
children: [
|
|
483
|
+
a("bigconsole.pipelines.builder.stages.inputKeyLabel", "Input Key"),
|
|
484
|
+
" ",
|
|
485
|
+
/* @__PURE__ */ p("span", {
|
|
486
|
+
className: "text-status-error-text",
|
|
487
|
+
children: "*"
|
|
488
|
+
})
|
|
489
|
+
]
|
|
490
|
+
}), /* @__PURE__ */ p("input", {
|
|
472
491
|
type: "text",
|
|
473
492
|
value: e.inputKey,
|
|
474
493
|
onChange: (e) => $(t, { inputKey: e.target.value }),
|
|
475
|
-
placeholder: "data",
|
|
494
|
+
placeholder: a("bigconsole.pipelines.builder.stages.inputKeyPlaceholder", "data"),
|
|
476
495
|
className: "w-full px-3 py-2 text-sm font-mono text-text-primary bg-bg-surface border border-border-default rounded-md focus:outline-none focus:ring-2 focus:ring-action-primary-bg"
|
|
477
496
|
})] }),
|
|
478
|
-
/* @__PURE__ */
|
|
497
|
+
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("label", {
|
|
479
498
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
480
|
-
children: [
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
499
|
+
children: [
|
|
500
|
+
a("bigconsole.pipelines.builder.stages.outputKeyLabel", "Output Key"),
|
|
501
|
+
" ",
|
|
502
|
+
/* @__PURE__ */ p("span", {
|
|
503
|
+
className: "text-status-error-text",
|
|
504
|
+
children: "*"
|
|
505
|
+
})
|
|
506
|
+
]
|
|
507
|
+
}), /* @__PURE__ */ p("input", {
|
|
485
508
|
type: "text",
|
|
486
509
|
value: e.outputKey,
|
|
487
510
|
onChange: (e) => $(t, { outputKey: e.target.value }),
|
|
488
|
-
placeholder: "result",
|
|
511
|
+
placeholder: a("bigconsole.pipelines.builder.stages.outputKeyPlaceholder", "result"),
|
|
489
512
|
className: "w-full px-3 py-2 text-sm font-mono text-text-primary bg-bg-surface border border-border-default rounded-md focus:outline-none focus:ring-2 focus:ring-action-primary-bg"
|
|
490
513
|
})] }),
|
|
491
|
-
/* @__PURE__ */
|
|
514
|
+
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("label", {
|
|
492
515
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
493
|
-
children: "On Error"
|
|
494
|
-
}), /* @__PURE__ */
|
|
516
|
+
children: a("bigconsole.pipelines.builder.stages.onErrorLabel", "On Error")
|
|
517
|
+
}), /* @__PURE__ */ p("select", {
|
|
495
518
|
value: e.onError,
|
|
496
519
|
onChange: (e) => $(t, { onError: e.target.value }),
|
|
497
520
|
className: "w-full px-3 py-2 text-sm text-text-primary bg-bg-surface border border-border-default rounded-md focus:outline-none focus:ring-2 focus:ring-action-primary-bg",
|
|
498
|
-
children:
|
|
521
|
+
children: ce.map((e) => /* @__PURE__ */ p("option", {
|
|
499
522
|
value: e.value,
|
|
500
|
-
children: e.
|
|
523
|
+
children: ue[e.value]
|
|
501
524
|
}, e.value))
|
|
502
525
|
})] }),
|
|
503
|
-
/* @__PURE__ */
|
|
526
|
+
/* @__PURE__ */ p("div", {
|
|
504
527
|
className: "flex items-center",
|
|
505
|
-
children: /* @__PURE__ */
|
|
528
|
+
children: /* @__PURE__ */ m("label", {
|
|
506
529
|
className: "flex items-center gap-2 cursor-pointer",
|
|
507
|
-
children: [/* @__PURE__ */
|
|
530
|
+
children: [/* @__PURE__ */ p("input", {
|
|
508
531
|
type: "checkbox",
|
|
509
532
|
checked: e.enabled,
|
|
510
533
|
onChange: (e) => $(t, { enabled: e.target.checked }),
|
|
511
534
|
className: "w-4 h-4 rounded border-border-default text-action-primary-bg focus:ring-action-primary-bg"
|
|
512
|
-
}), /* @__PURE__ */
|
|
535
|
+
}), /* @__PURE__ */ p("span", {
|
|
513
536
|
className: "text-sm text-text-primary",
|
|
514
|
-
children: "Enabled"
|
|
537
|
+
children: a("bigconsole.pipelines.builder.stages.enabledLabel", "Enabled")
|
|
515
538
|
})]
|
|
516
539
|
})
|
|
517
540
|
}),
|
|
518
|
-
e.onError === "fallback" && /* @__PURE__ */
|
|
541
|
+
e.onError === "fallback" && /* @__PURE__ */ m("div", {
|
|
519
542
|
className: "col-span-2",
|
|
520
|
-
children: [/* @__PURE__ */
|
|
543
|
+
children: [/* @__PURE__ */ p("label", {
|
|
521
544
|
className: "block text-xs font-medium text-text-secondary mb-1",
|
|
522
|
-
children: "Fallback Value (JSON)"
|
|
523
|
-
}), /* @__PURE__ */
|
|
545
|
+
children: a("bigconsole.pipelines.builder.stages.fallbackValueLabel", "Fallback Value (JSON)")
|
|
546
|
+
}), /* @__PURE__ */ p("input", {
|
|
524
547
|
type: "text",
|
|
525
548
|
value: e.fallbackValue,
|
|
526
549
|
onChange: (e) => $(t, { fallbackValue: e.target.value }),
|
|
@@ -533,58 +556,62 @@ var g = ({ className: e }) => /* @__PURE__ */ m("svg", {
|
|
|
533
556
|
}, t))
|
|
534
557
|
})]
|
|
535
558
|
})]
|
|
536
|
-
}), /* @__PURE__ */
|
|
559
|
+
}), /* @__PURE__ */ m("div", {
|
|
537
560
|
className: "space-y-6",
|
|
538
|
-
children: [/* @__PURE__ */
|
|
561
|
+
children: [/* @__PURE__ */ m("div", {
|
|
539
562
|
className: "bg-bg-surface border border-border-default rounded-lg p-6",
|
|
540
|
-
children: [/* @__PURE__ */
|
|
563
|
+
children: [/* @__PURE__ */ p("h2", {
|
|
541
564
|
className: "text-lg font-semibold text-text-primary mb-4",
|
|
542
|
-
children: "Preview"
|
|
543
|
-
}), /* @__PURE__ */
|
|
565
|
+
children: a("bigconsole.pipelines.builder.preview.heading", "Preview")
|
|
566
|
+
}), /* @__PURE__ */ m("div", {
|
|
544
567
|
className: "space-y-3",
|
|
545
568
|
children: [
|
|
546
|
-
/* @__PURE__ */
|
|
569
|
+
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("span", {
|
|
547
570
|
className: "text-xs text-text-secondary",
|
|
548
|
-
children: "Name"
|
|
549
|
-
}), /* @__PURE__ */
|
|
571
|
+
children: a("bigconsole.pipelines.builder.preview.nameLabel", "Name")
|
|
572
|
+
}), /* @__PURE__ */ p("p", {
|
|
550
573
|
className: "text-sm text-text-primary",
|
|
551
|
-
children: k || "Untitled"
|
|
574
|
+
children: k || a("bigconsole.pipelines.builder.preview.untitled", "Untitled")
|
|
552
575
|
})] }),
|
|
553
|
-
/* @__PURE__ */
|
|
576
|
+
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("span", {
|
|
554
577
|
className: "text-xs text-text-secondary",
|
|
555
|
-
children: "Status"
|
|
556
|
-
}), /* @__PURE__ */
|
|
578
|
+
children: a("bigconsole.pipelines.builder.preview.statusLabel", "Status")
|
|
579
|
+
}), /* @__PURE__ */ p("div", {
|
|
557
580
|
className: "mt-1",
|
|
558
|
-
children: /* @__PURE__ */
|
|
581
|
+
children: /* @__PURE__ */ p(i, { status: N })
|
|
559
582
|
})] }),
|
|
560
|
-
/* @__PURE__ */
|
|
583
|
+
/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("span", {
|
|
561
584
|
className: "text-xs text-text-secondary",
|
|
562
|
-
children: "Stages"
|
|
563
|
-
}), /* @__PURE__ */
|
|
585
|
+
children: a("bigconsole.pipelines.builder.preview.stagesLabel", "Stages")
|
|
586
|
+
}), /* @__PURE__ */ p("p", {
|
|
564
587
|
className: "text-sm text-text-primary",
|
|
565
588
|
children: F.length
|
|
566
589
|
})] }),
|
|
567
|
-
F.length > 0 && /* @__PURE__ */
|
|
590
|
+
F.length > 0 && /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("span", {
|
|
568
591
|
className: "text-xs text-text-secondary",
|
|
569
|
-
children: "Data Flow"
|
|
570
|
-
}), /* @__PURE__ */
|
|
592
|
+
children: a("bigconsole.pipelines.builder.preview.dataFlowLabel", "Data Flow")
|
|
593
|
+
}), /* @__PURE__ */ m("div", {
|
|
571
594
|
className: "mt-1 text-xs font-mono text-text-secondary",
|
|
572
|
-
children: [F.map((e, t) => /* @__PURE__ */
|
|
595
|
+
children: [F.map((e, t) => /* @__PURE__ */ m("span", { children: [e.inputKey, t < F.length - 1 && " → "] }, t)), F.length > 0 && ` → ${F[F.length - 1].outputKey}`]
|
|
573
596
|
})] })
|
|
574
597
|
]
|
|
575
598
|
})]
|
|
576
|
-
}), /* @__PURE__ */
|
|
599
|
+
}), /* @__PURE__ */ m("div", {
|
|
577
600
|
className: "bg-bg-sunken border border-border-default rounded-lg p-6",
|
|
578
|
-
children: [/* @__PURE__ */
|
|
601
|
+
children: [/* @__PURE__ */ p("h3", {
|
|
579
602
|
className: "text-sm font-semibold text-text-primary mb-2",
|
|
580
|
-
children: "Tips"
|
|
581
|
-
}), /* @__PURE__ */
|
|
603
|
+
children: a("bigconsole.pipelines.builder.tips.heading", "Tips")
|
|
604
|
+
}), /* @__PURE__ */ m("ul", {
|
|
582
605
|
className: "text-xs text-text-secondary space-y-2",
|
|
583
606
|
children: [
|
|
584
|
-
/* @__PURE__ */ m("li", { children:
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
607
|
+
/* @__PURE__ */ m("li", { children: [
|
|
608
|
+
"•",
|
|
609
|
+
" ",
|
|
610
|
+
a("bigconsole.pipelines.builder.tips.item1", "Each stage processes the output of the previous stage")
|
|
611
|
+
] }),
|
|
612
|
+
/* @__PURE__ */ m("li", { children: ["• ", a("bigconsole.pipelines.builder.tips.item2", "Use consistent input/output keys to chain data")] }),
|
|
613
|
+
/* @__PURE__ */ m("li", { children: ["• ", a("bigconsole.pipelines.builder.tips.item3", "Set error handling per stage for robustness")] }),
|
|
614
|
+
/* @__PURE__ */ m("li", { children: ["• ", a("bigconsole.pipelines.builder.tips.item4", "Disable stages to skip them during execution")] })
|
|
588
615
|
]
|
|
589
616
|
})]
|
|
590
617
|
})]
|
|
@@ -594,6 +621,6 @@ var g = ({ className: e }) => /* @__PURE__ */ m("svg", {
|
|
|
594
621
|
});
|
|
595
622
|
});
|
|
596
623
|
//#endregion
|
|
597
|
-
export {
|
|
624
|
+
export { y as PipelineBuilderPage, y as default };
|
|
598
625
|
|
|
599
626
|
//# sourceMappingURL=PipelineBuilderPage.js.map
|