@burdenoff/microfe-bigconsole 2026.1004.3 → 2026.1004.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bigconsole/BigConsoleRoutes.d.ts +1 -1
- package/dist/bigconsole/BigConsoleRoutes.d.ts.map +1 -1
- package/dist/bigconsole/BigConsoleRoutes.js +15 -1
- package/dist/bigconsole/BigConsoleRoutes.js.map +1 -1
- package/dist/bigconsole/components/DrilldownModal.d.ts.map +1 -1
- package/dist/bigconsole/components/DrilldownModal.js +54 -53
- package/dist/bigconsole/components/DrilldownModal.js.map +1 -1
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.d.ts +3 -1
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.d.ts.map +1 -1
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +40 -39
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.d.ts.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +184 -177
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardGrid.d.ts.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardGrid.js +40 -22
- package/dist/bigconsole/components/dashboard/DashboardGrid.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.d.ts.map +1 -1
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +31 -25
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.d.ts +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.d.ts.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +115 -80
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.d.ts.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +177 -146
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.d.ts +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.d.ts.map +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +375 -325
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/CacheTTLSelector.d.ts.map +1 -1
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +7 -1
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserSelector.d.ts +3 -1
- package/dist/bigconsole/components/parser/ParserSelector.d.ts.map +1 -1
- package/dist/bigconsole/components/parser/ParserSelector.js +94 -94
- package/dist/bigconsole/components/parser/ParserSelector.js.map +1 -1
- package/dist/bigconsole/components/pipeline/PipelineCard.d.ts.map +1 -1
- package/dist/bigconsole/components/pipeline/PipelineCard.js +111 -89
- package/dist/bigconsole/components/pipeline/PipelineCard.js.map +1 -1
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.d.ts +8 -0
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.d.ts.map +1 -0
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +52 -0
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.js.map +1 -0
- package/dist/bigconsole/components/widgets/PropertiesPanel.d.ts.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +257 -221
- package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetHeader.d.ts +1 -0
- package/dist/bigconsole/components/widgets/WidgetHeader.d.ts.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetHeader.js +29 -29
- package/dist/bigconsole/components/widgets/WidgetHeader.js.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetWrapper.d.ts +2 -0
- package/dist/bigconsole/components/widgets/WidgetWrapper.d.ts.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetWrapper.js +247 -239
- package/dist/bigconsole/components/widgets/WidgetWrapper.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.d.ts.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js +6 -4
- package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/states/EmptyState.d.ts +1 -0
- package/dist/bigconsole/components/widgets/states/EmptyState.d.ts.map +1 -1
- package/dist/bigconsole/components/widgets/states/EmptyState.js +4 -4
- package/dist/bigconsole/components/widgets/states/EmptyState.js.map +1 -1
- package/dist/bigconsole/components/workflow/WorkflowDesignPreview.d.ts +7 -0
- package/dist/bigconsole/components/workflow/WorkflowDesignPreview.d.ts.map +1 -0
- package/dist/bigconsole/components/workflow/WorkflowDesignPreview.js +94 -0
- package/dist/bigconsole/components/workflow/WorkflowDesignPreview.js.map +1 -0
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.d.ts +7 -0
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.d.ts.map +1 -0
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +101 -0
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js.map +1 -0
- package/dist/bigconsole/hooks/useBigConsoleSettings.d.ts +16 -0
- package/dist/bigconsole/hooks/useBigConsoleSettings.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useBigConsoleSettings.js +57 -0
- package/dist/bigconsole/hooks/useBigConsoleSettings.js.map +1 -0
- package/dist/bigconsole/hooks/useDashboardOperations.d.ts.map +1 -1
- package/dist/bigconsole/hooks/useDashboardOperations.js +102 -79
- package/dist/bigconsole/hooks/useDashboardOperations.js.map +1 -1
- package/dist/bigconsole/hooks/useExportDashboard.d.ts +3 -1
- package/dist/bigconsole/hooks/useExportDashboard.d.ts.map +1 -1
- package/dist/bigconsole/hooks/useExportDashboard.js +23 -13
- package/dist/bigconsole/hooks/useExportDashboard.js.map +1 -1
- package/dist/bigconsole/hooks/useFilterUrlSync.d.ts +18 -0
- package/dist/bigconsole/hooks/useFilterUrlSync.d.ts.map +1 -1
- package/dist/bigconsole/hooks/useFilterUrlSync.js +87 -57
- package/dist/bigconsole/hooks/useFilterUrlSync.js.map +1 -1
- package/dist/bigconsole/hooks/useGlobalFilters.d.ts.map +1 -1
- package/dist/bigconsole/hooks/useGlobalFilters.js +39 -29
- package/dist/bigconsole/hooks/useGlobalFilters.js.map +1 -1
- package/dist/bigconsole/hooks/usePageOperations.d.ts.map +1 -1
- package/dist/bigconsole/hooks/usePageOperations.js +1 -0
- package/dist/bigconsole/hooks/usePageOperations.js.map +1 -1
- package/dist/bigconsole/hooks/usePipelineOperations.d.ts.map +1 -1
- package/dist/bigconsole/hooks/usePipelineOperations.js +114 -112
- package/dist/bigconsole/hooks/usePipelineOperations.js.map +1 -1
- package/dist/bigconsole/hooks/useShareRecipients.d.ts +22 -0
- package/dist/bigconsole/hooks/useShareRecipients.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useShareRecipients.js +198 -0
- package/dist/bigconsole/hooks/useShareRecipients.js.map +1 -0
- package/dist/bigconsole/pages/DashboardBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DashboardBuilderPage.js +198 -193
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +171 -167
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +313 -266
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +84 -79
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +267 -257
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
- package/dist/bigconsole/pages/InsightsPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/InsightsPage.js +465 -402
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +169 -157
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +370 -230
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.js +181 -151
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +188 -208
- package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
- package/dist/bigconsole/pages/WidgetDemoPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/WidgetDemoPage.js +134 -117
- package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowViewPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/WorkflowViewPage.js +315 -267
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +4 -3
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/bigconsole/types/index.d.ts +4 -0
- package/dist/bigconsole/types/index.d.ts.map +1 -1
- package/dist/generated/wspace-operations.d.ts +148 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -1
- package/dist/generated/wspace-operations.js +172 -133
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +21 -0
- package/dist/generated/wspace-types.d.ts.map +1 -1
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/microfe-bigconsole.css +1 -1
- package/dist/translations/en.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6,16 +6,17 @@ import "../components/common/index.js";
|
|
|
6
6
|
import i from "../hooks/useParserOperations.js";
|
|
7
7
|
import ee from "../hooks/usePipelineOperations.js";
|
|
8
8
|
import { BIGCONSOLE_PERMISSIONS as a } from "../../constants/permissions.js";
|
|
9
|
-
import te from "../components/pipeline/
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
9
|
+
import { PipelineScopePicker as te } from "../components/pipeline/PipelineScopePicker.js";
|
|
10
|
+
import ne from "../components/pipeline/PipelineStatusBadge.js";
|
|
11
|
+
import { memo as o, useCallback as s, useEffect as re, useId as ie, useMemo as c, useState as l } from "react";
|
|
12
|
+
import { useParams as ae, useSearchParams as oe } from "react-router";
|
|
13
|
+
import { AccessDenied as se } from "@burdenoff/fe-libs/shared/components";
|
|
14
|
+
import { usePermissions as ce } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
15
|
+
import { Button as u, IllustratedEmptyState as le, PagePurpose as ue, Spinner as de } from "@burdenoff/fe-libs/ui";
|
|
16
|
+
import { Fragment as fe, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
17
|
+
import { useI18n as pe } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
17
18
|
//#region src/bigconsole/pages/PipelineBuilderPage.tsx
|
|
18
|
-
var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-medium text-text-primary", h = "mt-1 text-xs text-text-secondary",
|
|
19
|
+
var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-medium text-text-primary", h = "mt-1 text-xs text-text-secondary", me = "mb-1 text-xs font-semibold uppercase tracking-wide text-text-muted", g = `w-full min-w-0 rounded-input border border-[var(--color-border-subtle)] bg-bg-canvas px-3 py-2 text-sm text-text-primary ${t}`, _ = `${g} font-mono`, v = `inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-button text-text-secondary motion-safe:transition-colors disabled:opacity-30 ${t}`, y = `${v} hover:bg-bg-surface hover:text-text-primary`, he = `${v} hover:bg-[var(--color-status-error-bgSubtle)] hover:text-status-error-text`, ge = ({ className: e }) => /* @__PURE__ */ d("svg", {
|
|
19
20
|
className: e,
|
|
20
21
|
fill: "none",
|
|
21
22
|
stroke: "currentColor",
|
|
@@ -26,7 +27,7 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
26
27
|
strokeWidth: 2,
|
|
27
28
|
d: "M10 19l-7-7m0 0l7-7m-7 7h18"
|
|
28
29
|
})
|
|
29
|
-
}),
|
|
30
|
+
}), b = ({ className: e }) => /* @__PURE__ */ d("svg", {
|
|
30
31
|
className: e,
|
|
31
32
|
fill: "none",
|
|
32
33
|
stroke: "currentColor",
|
|
@@ -37,7 +38,7 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
37
38
|
strokeWidth: 2,
|
|
38
39
|
d: "M12 4v16m8-8H4"
|
|
39
40
|
})
|
|
40
|
-
}),
|
|
41
|
+
}), _e = ({ className: e }) => /* @__PURE__ */ d("svg", {
|
|
41
42
|
className: e,
|
|
42
43
|
fill: "none",
|
|
43
44
|
stroke: "currentColor",
|
|
@@ -48,7 +49,7 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
48
49
|
strokeWidth: 2,
|
|
49
50
|
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"
|
|
50
51
|
})
|
|
51
|
-
}),
|
|
52
|
+
}), ve = ({ className: e }) => /* @__PURE__ */ d("svg", {
|
|
52
53
|
className: e,
|
|
53
54
|
fill: "none",
|
|
54
55
|
stroke: "currentColor",
|
|
@@ -59,7 +60,7 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
59
60
|
strokeWidth: 2,
|
|
60
61
|
d: "M5 15l7-7 7 7"
|
|
61
62
|
})
|
|
62
|
-
}),
|
|
63
|
+
}), ye = ({ className: e }) => /* @__PURE__ */ d("svg", {
|
|
63
64
|
className: e,
|
|
64
65
|
fill: "none",
|
|
65
66
|
stroke: "currentColor",
|
|
@@ -70,7 +71,7 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
70
71
|
strokeWidth: 2,
|
|
71
72
|
d: "M19 9l-7 7-7-7"
|
|
72
73
|
})
|
|
73
|
-
}),
|
|
74
|
+
}), x = ({ className: e }) => /* @__PURE__ */ d("svg", {
|
|
74
75
|
className: e,
|
|
75
76
|
fill: "none",
|
|
76
77
|
stroke: "currentColor",
|
|
@@ -81,7 +82,7 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
81
82
|
strokeWidth: 2,
|
|
82
83
|
d: "M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
83
84
|
})
|
|
84
|
-
}),
|
|
85
|
+
}), be = [
|
|
85
86
|
{
|
|
86
87
|
value: "draft",
|
|
87
88
|
label: "Draft"
|
|
@@ -94,7 +95,7 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
94
95
|
value: "inactive",
|
|
95
96
|
label: "Inactive"
|
|
96
97
|
}
|
|
97
|
-
],
|
|
98
|
+
], S = [
|
|
98
99
|
{
|
|
99
100
|
value: "fail",
|
|
100
101
|
label: "Fail",
|
|
@@ -110,7 +111,7 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
110
111
|
label: "Fallback",
|
|
111
112
|
description: "Use fallback value on error"
|
|
112
113
|
}
|
|
113
|
-
],
|
|
114
|
+
], xe = {
|
|
114
115
|
parserId: "",
|
|
115
116
|
parserName: "",
|
|
116
117
|
parserType: null,
|
|
@@ -120,14 +121,17 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
120
121
|
onError: "fail",
|
|
121
122
|
fallbackValue: "",
|
|
122
123
|
description: ""
|
|
123
|
-
},
|
|
124
|
-
let { t: o } =
|
|
125
|
-
consoleId:
|
|
124
|
+
}, C = o(function() {
|
|
125
|
+
let { t: o } = pe(), { pipelineId: v } = ae(), C = e(), w = !!v && v !== "new", [T, Se] = oe(), [E, Ce] = l(null), D = w ? E ?? "default" : T.get("consoleId") || "default", O = ie(), { hasPermission: k, isLoading: we } = ce(), Te = k(a.PIPELINE_READ), Ee = k(a.PIPELINE_CREATE), De = k(a.PIPELINE_UPDATE), A = w ? De : Ee, [j, M] = l(""), [N, P] = l(""), [F, I] = l("draft"), [L, R] = l([]), [z, Oe] = l(1), [B, V] = l(!1), [H, U] = l(null), { loading: ke, error: W, fetchPipeline: G, createPipeline: K, updatePipeline: q } = ee({
|
|
126
|
+
consoleId: D,
|
|
126
127
|
skipFetch: !0
|
|
127
|
-
}), { parsers:
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
}), { parsers: J } = i({
|
|
129
|
+
consoleId: D,
|
|
130
|
+
skipFetch: w && !E
|
|
131
|
+
});
|
|
132
|
+
re(() => {
|
|
133
|
+
w && v && G(v).then((e) => {
|
|
134
|
+
e && (Ce(e.consoleId), M(e.name), P(e.description || ""), I(e.status), Oe(e.version), R((e.stages || []).map((e) => ({
|
|
131
135
|
id: e.id,
|
|
132
136
|
parserId: e.parserId,
|
|
133
137
|
parserName: e.parserName || "",
|
|
@@ -141,47 +145,47 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
141
145
|
}))));
|
|
142
146
|
});
|
|
143
147
|
}, [
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
148
|
+
w,
|
|
149
|
+
v,
|
|
150
|
+
G
|
|
147
151
|
]);
|
|
148
|
-
let
|
|
152
|
+
let Ae = {
|
|
149
153
|
draft: o("bigconsole.pipelines.builder.status.draft", "Draft"),
|
|
150
154
|
active: o("bigconsole.pipelines.builder.status.active", "Active"),
|
|
151
155
|
inactive: o("bigconsole.pipelines.builder.status.inactive", "Inactive"),
|
|
152
156
|
error: o("bigconsole.pipelines.builder.status.error", "Error")
|
|
153
|
-
},
|
|
157
|
+
}, je = {
|
|
154
158
|
fail: o("bigconsole.pipelines.builder.onError.fail", "Fail"),
|
|
155
159
|
skip: o("bigconsole.pipelines.builder.onError.skip", "Skip"),
|
|
156
160
|
fallback: o("bigconsole.pipelines.builder.onError.fallback", "Fallback")
|
|
157
|
-
},
|
|
158
|
-
|
|
159
|
-
}, [
|
|
160
|
-
|
|
161
|
-
}, []),
|
|
162
|
-
|
|
163
|
-
}, []),
|
|
164
|
-
|
|
161
|
+
}, Y = c(() => !j.trim() || L.length === 0 ? !1 : L.every((e) => e.parserId && e.inputKey && e.outputKey), [j, L]), X = c(() => j.trim() ? L.length === 0 ? "Add at least one stage to save this pipeline." : L.every((e) => e.parserId && e.inputKey && e.outputKey) ? null : "Every stage needs a parser, an input key and an output key." : "Give the pipeline a name to save it.", [j, L]), Z = s(() => {
|
|
162
|
+
C(`/pipelines?consoleId=${encodeURIComponent(D)}`);
|
|
163
|
+
}, [C, D]), Q = s(() => {
|
|
164
|
+
R((e) => [...e, { ...xe }]);
|
|
165
|
+
}, []), Me = s((e) => {
|
|
166
|
+
R((t) => t.filter((t, n) => n !== e));
|
|
167
|
+
}, []), Ne = s((e, t) => {
|
|
168
|
+
R((n) => {
|
|
165
169
|
let r = [...n], i = t === "up" ? e - 1 : e + 1;
|
|
166
170
|
return i < 0 || i >= r.length ? n : ([r[e], r[i]] = [r[i], r[e]], r);
|
|
167
171
|
});
|
|
168
172
|
}, []), $ = s((e, t) => {
|
|
169
|
-
|
|
173
|
+
R((n) => n.map((n, r) => r === e ? {
|
|
170
174
|
...n,
|
|
171
175
|
...t
|
|
172
176
|
} : n));
|
|
173
|
-
}, []),
|
|
174
|
-
let n =
|
|
177
|
+
}, []), Pe = s((e, t) => {
|
|
178
|
+
let n = J.find((e) => e.id === t);
|
|
175
179
|
n && $(e, {
|
|
176
180
|
parserId: n.id,
|
|
177
181
|
parserName: n.name,
|
|
178
182
|
parserType: n.type
|
|
179
183
|
});
|
|
180
|
-
}, [
|
|
181
|
-
if (!(!
|
|
182
|
-
|
|
184
|
+
}, [J, $]), Fe = s(async () => {
|
|
185
|
+
if (!(!Y || !D || !A)) {
|
|
186
|
+
V(!0), U(null);
|
|
183
187
|
try {
|
|
184
|
-
let e =
|
|
188
|
+
let e = L.map((e) => ({
|
|
185
189
|
parserId: e.parserId,
|
|
186
190
|
parserName: e.parserName,
|
|
187
191
|
parserType: e.parserType || void 0,
|
|
@@ -192,49 +196,49 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
192
196
|
fallbackValue: e.fallbackValue ? JSON.parse(e.fallbackValue) : void 0,
|
|
193
197
|
description: e.description || void 0
|
|
194
198
|
}));
|
|
195
|
-
if (
|
|
196
|
-
name:
|
|
197
|
-
description:
|
|
198
|
-
status:
|
|
199
|
-
},
|
|
199
|
+
if (w && v) await q(v, {
|
|
200
|
+
name: j,
|
|
201
|
+
description: N || void 0,
|
|
202
|
+
status: F
|
|
203
|
+
}, z) && C(`/pipelines/${v}`);
|
|
200
204
|
else {
|
|
201
|
-
let t = await
|
|
202
|
-
consoleId:
|
|
203
|
-
name:
|
|
204
|
-
description:
|
|
205
|
-
status:
|
|
205
|
+
let t = await K({
|
|
206
|
+
consoleId: D,
|
|
207
|
+
name: j,
|
|
208
|
+
description: N || void 0,
|
|
209
|
+
status: F,
|
|
206
210
|
stages: e
|
|
207
211
|
});
|
|
208
|
-
t &&
|
|
212
|
+
t && C(`/pipelines/${t.id}`);
|
|
209
213
|
}
|
|
210
214
|
} catch (e) {
|
|
211
|
-
|
|
215
|
+
U(e instanceof Error ? e.message : o("bigconsole.pipelines.builder.errors.saveFailed", "Failed to save pipeline"));
|
|
212
216
|
} finally {
|
|
213
|
-
|
|
217
|
+
V(!1);
|
|
214
218
|
}
|
|
215
219
|
}
|
|
216
220
|
}, [
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
k,
|
|
220
|
-
T,
|
|
221
|
-
y,
|
|
221
|
+
Y,
|
|
222
|
+
D,
|
|
222
223
|
A,
|
|
223
|
-
M,
|
|
224
|
-
P,
|
|
225
|
-
I,
|
|
226
|
-
R,
|
|
227
|
-
G,
|
|
228
|
-
K,
|
|
229
224
|
w,
|
|
225
|
+
v,
|
|
226
|
+
j,
|
|
227
|
+
N,
|
|
228
|
+
F,
|
|
229
|
+
L,
|
|
230
|
+
z,
|
|
231
|
+
K,
|
|
232
|
+
q,
|
|
233
|
+
C,
|
|
230
234
|
o
|
|
231
235
|
]);
|
|
232
|
-
return
|
|
236
|
+
return ke && w ? /* @__PURE__ */ d("div", {
|
|
233
237
|
className: "p-card-padding",
|
|
234
238
|
children: /* @__PURE__ */ f("div", {
|
|
235
239
|
className: "flex flex-col items-center justify-center py-16",
|
|
236
240
|
role: "status",
|
|
237
|
-
children: [/* @__PURE__ */ d(
|
|
241
|
+
children: [/* @__PURE__ */ d(de, { style: {
|
|
238
242
|
height: "var(--size-icon-xl)",
|
|
239
243
|
width: "var(--size-icon-xl)"
|
|
240
244
|
} }), /* @__PURE__ */ d("p", {
|
|
@@ -242,19 +246,19 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
242
246
|
children: o("bigconsole.pipelines.builder.loading", "Loading Pipeline...")
|
|
243
247
|
})]
|
|
244
248
|
})
|
|
245
|
-
}) :
|
|
249
|
+
}) : w && !we && !Te ? /* @__PURE__ */ d(se, {
|
|
246
250
|
title: o("bigconsole.pipelines.builder.accessDenied.title", "Access Denied"),
|
|
247
251
|
description: o("bigconsole.pipelines.builder.accessDenied.description", "You don't have permission to view this pipeline.")
|
|
248
|
-
}) :
|
|
252
|
+
}) : W ? /* @__PURE__ */ d("div", {
|
|
249
253
|
className: "p-card-padding",
|
|
250
254
|
children: /* @__PURE__ */ d(n, {
|
|
251
255
|
tone: "danger",
|
|
252
256
|
headingLevel: 2,
|
|
253
257
|
title: o("bigconsole.pipelines.builder.errors.loadFailed", "Failed to load Pipeline"),
|
|
254
|
-
description:
|
|
255
|
-
icon: /* @__PURE__ */ d(
|
|
258
|
+
description: W.message,
|
|
259
|
+
icon: /* @__PURE__ */ d(x, { className: "h-icon-sm w-icon-sm" }),
|
|
256
260
|
actions: /* @__PURE__ */ d(u, {
|
|
257
|
-
onClick:
|
|
261
|
+
onClick: Z,
|
|
258
262
|
className: p,
|
|
259
263
|
children: o("bigconsole.pipelines.builder.actions.backToPipelines", "Back to Pipelines")
|
|
260
264
|
}),
|
|
@@ -274,17 +278,17 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
274
278
|
children: [/* @__PURE__ */ f(u, {
|
|
275
279
|
variant: "ghost",
|
|
276
280
|
size: "sm",
|
|
277
|
-
onClick:
|
|
281
|
+
onClick: Z,
|
|
278
282
|
className: "w-fit",
|
|
279
|
-
children: [/* @__PURE__ */ d(
|
|
283
|
+
children: [/* @__PURE__ */ d(ge, { className: "h-icon-sm w-icon-sm" }), o("bigconsole.pipelines.builder.actions.backToPipelines", "Back to Pipelines")]
|
|
280
284
|
}), /* @__PURE__ */ f("div", {
|
|
281
285
|
className: "min-w-0",
|
|
282
286
|
children: [/* @__PURE__ */ d("h1", {
|
|
283
287
|
className: "text-2xl font-bold leading-tight text-text-primary",
|
|
284
|
-
children:
|
|
288
|
+
children: w ? o("bigconsole.pipelines.builder.header.editTitle", "Edit Pipeline") : o("bigconsole.pipelines.builder.header.createTitle", "Create Pipeline")
|
|
285
289
|
}), /* @__PURE__ */ d("p", {
|
|
286
290
|
className: "mt-1 text-sm text-text-secondary",
|
|
287
|
-
children:
|
|
291
|
+
children: w ? o("bigconsole.pipelines.builder.header.editSubtitle", "Update pipeline settings and stages") : o("bigconsole.pipelines.builder.header.createSubtitle", "Create a new data transformation pipeline")
|
|
288
292
|
})]
|
|
289
293
|
})]
|
|
290
294
|
}), /* @__PURE__ */ f("div", {
|
|
@@ -293,33 +297,33 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
293
297
|
className: "flex flex-wrap items-center gap-control-gap",
|
|
294
298
|
children: [/* @__PURE__ */ d(u, {
|
|
295
299
|
variant: "secondary",
|
|
296
|
-
onClick:
|
|
300
|
+
onClick: Z,
|
|
297
301
|
className: p,
|
|
298
302
|
children: o("bigconsole.pipelines.builder.actions.cancel", "Cancel")
|
|
299
303
|
}), /* @__PURE__ */ d(u, {
|
|
300
|
-
onClick:
|
|
301
|
-
disabled: !
|
|
302
|
-
title:
|
|
304
|
+
onClick: Fe,
|
|
305
|
+
disabled: !Y || B || !A,
|
|
306
|
+
title: A ? void 0 : w ? o("bigconsole.pipelines.builder.actions.noUpdatePermission", "You don't have permission to update pipelines.") : o("bigconsole.pipelines.builder.actions.noCreatePermission", "You don't have permission to create pipelines."),
|
|
303
307
|
className: p,
|
|
304
|
-
children:
|
|
308
|
+
children: B ? o("bigconsole.pipelines.builder.actions.saving", "Saving...") : w ? o("bigconsole.pipelines.builder.actions.saveChanges", "Save Changes") : o("bigconsole.pipelines.builder.actions.createPipeline", "Create Pipeline")
|
|
305
309
|
})]
|
|
306
|
-
}),
|
|
310
|
+
}), X && /* @__PURE__ */ d("p", {
|
|
307
311
|
className: "text-xs text-text-secondary sm:text-right",
|
|
308
312
|
"data-testid": "pipeline-save-blocked-reason",
|
|
309
|
-
children:
|
|
313
|
+
children: X
|
|
310
314
|
})]
|
|
311
315
|
})]
|
|
312
316
|
}),
|
|
313
|
-
/* @__PURE__ */ d(
|
|
317
|
+
/* @__PURE__ */ d(ue, {
|
|
314
318
|
className: "max-w-[75ch]",
|
|
315
319
|
children: o("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.")
|
|
316
320
|
}),
|
|
317
|
-
|
|
321
|
+
H && /* @__PURE__ */ d(n, {
|
|
318
322
|
tone: "danger",
|
|
319
323
|
headingLevel: 2,
|
|
320
324
|
title: o("bigconsole.pipelines.builder.errors.saveFailed", "Failed to save pipeline"),
|
|
321
|
-
description:
|
|
322
|
-
icon: /* @__PURE__ */ d(
|
|
325
|
+
description: H,
|
|
326
|
+
icon: /* @__PURE__ */ d(x, { className: "h-icon-sm w-icon-sm" }),
|
|
323
327
|
"data-testid": "pipeline-save-error"
|
|
324
328
|
}),
|
|
325
329
|
/* @__PURE__ */ f("div", {
|
|
@@ -334,10 +338,18 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
334
338
|
children: /* @__PURE__ */ f("div", {
|
|
335
339
|
className: "flex flex-col gap-form-gap",
|
|
336
340
|
children: [
|
|
341
|
+
/* @__PURE__ */ d(te, {
|
|
342
|
+
value: D,
|
|
343
|
+
disabled: w,
|
|
344
|
+
onChange: (e) => {
|
|
345
|
+
let t = new URLSearchParams(T);
|
|
346
|
+
t.set("consoleId", e), Se(t), R([]);
|
|
347
|
+
}
|
|
348
|
+
}),
|
|
337
349
|
/* @__PURE__ */ f("div", {
|
|
338
350
|
className: "min-w-0",
|
|
339
351
|
children: [/* @__PURE__ */ f("label", {
|
|
340
|
-
htmlFor: `${
|
|
352
|
+
htmlFor: `${O}-name`,
|
|
341
353
|
className: m,
|
|
342
354
|
children: [
|
|
343
355
|
o("bigconsole.pipelines.builder.basicInfo.nameLabel", "Name"),
|
|
@@ -348,45 +360,45 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
348
360
|
})
|
|
349
361
|
]
|
|
350
362
|
}), /* @__PURE__ */ d("input", {
|
|
351
|
-
id: `${
|
|
363
|
+
id: `${O}-name`,
|
|
352
364
|
type: "text",
|
|
353
|
-
value:
|
|
354
|
-
onChange: (e) =>
|
|
365
|
+
value: j,
|
|
366
|
+
onChange: (e) => M(e.target.value),
|
|
355
367
|
placeholder: o("bigconsole.pipelines.builder.basicInfo.namePlaceholder", "My Pipeline"),
|
|
356
|
-
className:
|
|
368
|
+
className: g
|
|
357
369
|
})]
|
|
358
370
|
}),
|
|
359
371
|
/* @__PURE__ */ f("div", {
|
|
360
372
|
className: "min-w-0",
|
|
361
373
|
children: [/* @__PURE__ */ d("label", {
|
|
362
|
-
htmlFor: `${
|
|
374
|
+
htmlFor: `${O}-description`,
|
|
363
375
|
className: m,
|
|
364
376
|
children: o("bigconsole.pipelines.builder.basicInfo.descriptionLabel", "Description")
|
|
365
377
|
}), /* @__PURE__ */ d("textarea", {
|
|
366
|
-
id: `${
|
|
367
|
-
value:
|
|
368
|
-
onChange: (e) =>
|
|
378
|
+
id: `${O}-description`,
|
|
379
|
+
value: N,
|
|
380
|
+
onChange: (e) => P(e.target.value),
|
|
369
381
|
placeholder: o("bigconsole.pipelines.builder.basicInfo.descriptionPlaceholder", "What does this pipeline do?"),
|
|
370
382
|
rows: 3,
|
|
371
|
-
className: `${
|
|
383
|
+
className: `${g} resize-y`
|
|
372
384
|
})]
|
|
373
385
|
}),
|
|
374
386
|
/* @__PURE__ */ f("div", {
|
|
375
387
|
className: "min-w-0 border-t border-[var(--color-border-subtle)] pt-form-gap",
|
|
376
388
|
children: [
|
|
377
389
|
/* @__PURE__ */ d("label", {
|
|
378
|
-
htmlFor: `${
|
|
390
|
+
htmlFor: `${O}-status`,
|
|
379
391
|
className: m,
|
|
380
392
|
children: o("bigconsole.pipelines.builder.basicInfo.statusLabel", "Status")
|
|
381
393
|
}),
|
|
382
394
|
/* @__PURE__ */ d("select", {
|
|
383
|
-
id: `${
|
|
384
|
-
value:
|
|
385
|
-
onChange: (e) =>
|
|
386
|
-
className:
|
|
387
|
-
children:
|
|
395
|
+
id: `${O}-status`,
|
|
396
|
+
value: F,
|
|
397
|
+
onChange: (e) => I(e.target.value),
|
|
398
|
+
className: g,
|
|
399
|
+
children: be.map((e) => /* @__PURE__ */ d("option", {
|
|
388
400
|
value: e.value,
|
|
389
|
-
children:
|
|
401
|
+
children: Ae[e.value]
|
|
390
402
|
}, e.value))
|
|
391
403
|
}),
|
|
392
404
|
/* @__PURE__ */ d("p", {
|
|
@@ -400,27 +412,27 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
400
412
|
}), /* @__PURE__ */ d(n, {
|
|
401
413
|
emphasis: "primary",
|
|
402
414
|
headingLevel: 2,
|
|
403
|
-
title: o("bigconsole.pipelines.builder.stages.heading", "Stages ({{count}})", { count:
|
|
415
|
+
title: o("bigconsole.pipelines.builder.stages.heading", "Stages ({{count}})", { count: L.length }),
|
|
404
416
|
description: "Each stage reads an input key, runs a parser, and writes an output key for the next stage.",
|
|
405
417
|
actions: /* @__PURE__ */ f(u, {
|
|
406
418
|
size: "sm",
|
|
407
|
-
onClick:
|
|
419
|
+
onClick: Q,
|
|
408
420
|
className: p,
|
|
409
|
-
children: [/* @__PURE__ */ d(
|
|
421
|
+
children: [/* @__PURE__ */ d(b, { className: "h-icon-sm w-icon-sm" }), o("bigconsole.pipelines.builder.stages.addStage", "Add Stage")]
|
|
410
422
|
}),
|
|
411
423
|
"data-testid": "pipeline-stages-editor",
|
|
412
|
-
children:
|
|
424
|
+
children: L.length === 0 ? /* @__PURE__ */ d(le, {
|
|
413
425
|
illustration: "empty-generic",
|
|
414
426
|
title: o("bigconsole.pipelines.builder.stages.emptyTitle", "No stages yet"),
|
|
415
427
|
description: o("bigconsole.pipelines.builder.stages.emptyDescription", "Add a stage to start building your pipeline."),
|
|
416
428
|
action: /* @__PURE__ */ f(u, {
|
|
417
|
-
onClick:
|
|
429
|
+
onClick: Q,
|
|
418
430
|
className: p,
|
|
419
|
-
children: [/* @__PURE__ */ d(
|
|
431
|
+
children: [/* @__PURE__ */ d(b, { className: "h-icon-sm w-icon-sm" }), o("bigconsole.pipelines.builder.stages.addFirstStage", "Add First Stage")]
|
|
420
432
|
})
|
|
421
433
|
}) : /* @__PURE__ */ d("ol", {
|
|
422
434
|
className: "flex flex-col gap-form-gap",
|
|
423
|
-
children:
|
|
435
|
+
children: L.map((e, r) => /* @__PURE__ */ d("li", {
|
|
424
436
|
className: "min-w-0",
|
|
425
437
|
children: /* @__PURE__ */ d(n, {
|
|
426
438
|
emphasis: "muted",
|
|
@@ -437,29 +449,29 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
437
449
|
children: e.parserName || o("bigconsole.pipelines.builder.stages.defaultStageName", "Stage {{number}}", { number: r + 1 })
|
|
438
450
|
})]
|
|
439
451
|
}),
|
|
440
|
-
actions: /* @__PURE__ */ f(
|
|
452
|
+
actions: /* @__PURE__ */ f(fe, { children: [
|
|
441
453
|
/* @__PURE__ */ d("button", {
|
|
442
454
|
type: "button",
|
|
443
|
-
onClick: () =>
|
|
455
|
+
onClick: () => Ne(r, "up"),
|
|
444
456
|
disabled: r === 0,
|
|
445
|
-
className:
|
|
457
|
+
className: y,
|
|
446
458
|
"aria-label": `Move stage ${r + 1} up`,
|
|
447
|
-
children: /* @__PURE__ */ d(
|
|
459
|
+
children: /* @__PURE__ */ d(ve, { className: "h-icon-sm w-icon-sm" })
|
|
448
460
|
}),
|
|
449
461
|
/* @__PURE__ */ d("button", {
|
|
450
462
|
type: "button",
|
|
451
|
-
onClick: () =>
|
|
452
|
-
disabled: r ===
|
|
453
|
-
className:
|
|
463
|
+
onClick: () => Ne(r, "down"),
|
|
464
|
+
disabled: r === L.length - 1,
|
|
465
|
+
className: y,
|
|
454
466
|
"aria-label": `Move stage ${r + 1} down`,
|
|
455
|
-
children: /* @__PURE__ */ d(
|
|
467
|
+
children: /* @__PURE__ */ d(ye, { className: "h-icon-sm w-icon-sm" })
|
|
456
468
|
}),
|
|
457
469
|
/* @__PURE__ */ d("button", {
|
|
458
470
|
type: "button",
|
|
459
|
-
onClick: () =>
|
|
460
|
-
className:
|
|
471
|
+
onClick: () => Me(r),
|
|
472
|
+
className: he,
|
|
461
473
|
"aria-label": `Remove stage ${r + 1}`,
|
|
462
|
-
children: /* @__PURE__ */ d(
|
|
474
|
+
children: /* @__PURE__ */ d(_e, { className: "h-icon-sm w-icon-sm" })
|
|
463
475
|
})
|
|
464
476
|
] }),
|
|
465
477
|
"data-testid": "pipeline-stage-editor",
|
|
@@ -469,7 +481,7 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
469
481
|
/* @__PURE__ */ f("div", {
|
|
470
482
|
className: "min-w-0",
|
|
471
483
|
children: [/* @__PURE__ */ f("label", {
|
|
472
|
-
htmlFor: `${
|
|
484
|
+
htmlFor: `${O}-parser-${r}`,
|
|
473
485
|
className: m,
|
|
474
486
|
children: [
|
|
475
487
|
o("bigconsole.pipelines.builder.stages.parserLabel", "Parser"),
|
|
@@ -480,14 +492,14 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
480
492
|
})
|
|
481
493
|
]
|
|
482
494
|
}), /* @__PURE__ */ f("select", {
|
|
483
|
-
id: `${
|
|
495
|
+
id: `${O}-parser-${r}`,
|
|
484
496
|
value: e.parserId,
|
|
485
|
-
onChange: (e) =>
|
|
486
|
-
className:
|
|
497
|
+
onChange: (e) => Pe(r, e.target.value),
|
|
498
|
+
className: g,
|
|
487
499
|
children: [/* @__PURE__ */ d("option", {
|
|
488
500
|
value: "",
|
|
489
501
|
children: o("bigconsole.pipelines.builder.stages.parserPlaceholder", "Select a parser...")
|
|
490
|
-
}),
|
|
502
|
+
}), J.map((e) => /* @__PURE__ */ f("option", {
|
|
491
503
|
value: e.id,
|
|
492
504
|
children: [
|
|
493
505
|
e.name,
|
|
@@ -501,14 +513,14 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
501
513
|
/* @__PURE__ */ f("fieldset", {
|
|
502
514
|
className: "min-w-0",
|
|
503
515
|
children: [/* @__PURE__ */ d("legend", {
|
|
504
|
-
className:
|
|
516
|
+
className: me,
|
|
505
517
|
children: "Data contract"
|
|
506
518
|
}), /* @__PURE__ */ f("div", {
|
|
507
519
|
className: "grid grid-cols-1 gap-form-gap sm:grid-cols-2",
|
|
508
520
|
children: [/* @__PURE__ */ f("div", {
|
|
509
521
|
className: "min-w-0",
|
|
510
522
|
children: [/* @__PURE__ */ f("label", {
|
|
511
|
-
htmlFor: `${
|
|
523
|
+
htmlFor: `${O}-input-${r}`,
|
|
512
524
|
className: m,
|
|
513
525
|
children: [
|
|
514
526
|
o("bigconsole.pipelines.builder.stages.inputKeyLabel", "Input Key"),
|
|
@@ -519,17 +531,17 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
519
531
|
})
|
|
520
532
|
]
|
|
521
533
|
}), /* @__PURE__ */ d("input", {
|
|
522
|
-
id: `${
|
|
534
|
+
id: `${O}-input-${r}`,
|
|
523
535
|
type: "text",
|
|
524
536
|
value: e.inputKey,
|
|
525
537
|
onChange: (e) => $(r, { inputKey: e.target.value }),
|
|
526
538
|
placeholder: o("bigconsole.pipelines.builder.stages.inputKeyPlaceholder", "data"),
|
|
527
|
-
className:
|
|
539
|
+
className: _
|
|
528
540
|
})]
|
|
529
541
|
}), /* @__PURE__ */ f("div", {
|
|
530
542
|
className: "min-w-0",
|
|
531
543
|
children: [/* @__PURE__ */ f("label", {
|
|
532
|
-
htmlFor: `${
|
|
544
|
+
htmlFor: `${O}-output-${r}`,
|
|
533
545
|
className: m,
|
|
534
546
|
children: [
|
|
535
547
|
o("bigconsole.pipelines.builder.stages.outputKeyLabel", "Output Key"),
|
|
@@ -540,12 +552,12 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
540
552
|
})
|
|
541
553
|
]
|
|
542
554
|
}), /* @__PURE__ */ d("input", {
|
|
543
|
-
id: `${
|
|
555
|
+
id: `${O}-output-${r}`,
|
|
544
556
|
type: "text",
|
|
545
557
|
value: e.outputKey,
|
|
546
558
|
onChange: (e) => $(r, { outputKey: e.target.value }),
|
|
547
559
|
placeholder: o("bigconsole.pipelines.builder.stages.outputKeyPlaceholder", "result"),
|
|
548
|
-
className:
|
|
560
|
+
className: _
|
|
549
561
|
})]
|
|
550
562
|
})]
|
|
551
563
|
})]
|
|
@@ -553,7 +565,7 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
553
565
|
/* @__PURE__ */ f("fieldset", {
|
|
554
566
|
className: "min-w-0",
|
|
555
567
|
children: [/* @__PURE__ */ d("legend", {
|
|
556
|
-
className:
|
|
568
|
+
className: me,
|
|
557
569
|
children: "Failure policy"
|
|
558
570
|
}), /* @__PURE__ */ f("div", {
|
|
559
571
|
className: "grid grid-cols-1 gap-form-gap sm:grid-cols-2",
|
|
@@ -562,33 +574,33 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
562
574
|
className: "min-w-0",
|
|
563
575
|
children: [
|
|
564
576
|
/* @__PURE__ */ d("label", {
|
|
565
|
-
htmlFor: `${
|
|
577
|
+
htmlFor: `${O}-onerror-${r}`,
|
|
566
578
|
className: m,
|
|
567
579
|
children: o("bigconsole.pipelines.builder.stages.onErrorLabel", "On Error")
|
|
568
580
|
}),
|
|
569
581
|
/* @__PURE__ */ d("select", {
|
|
570
|
-
id: `${
|
|
582
|
+
id: `${O}-onerror-${r}`,
|
|
571
583
|
value: e.onError,
|
|
572
584
|
onChange: (e) => $(r, { onError: e.target.value }),
|
|
573
|
-
className:
|
|
574
|
-
children:
|
|
585
|
+
className: g,
|
|
586
|
+
children: S.map((e) => /* @__PURE__ */ d("option", {
|
|
575
587
|
value: e.value,
|
|
576
|
-
children:
|
|
588
|
+
children: je[e.value]
|
|
577
589
|
}, e.value))
|
|
578
590
|
}),
|
|
579
591
|
/* @__PURE__ */ d("p", {
|
|
580
592
|
className: h,
|
|
581
|
-
children:
|
|
593
|
+
children: S.find((t) => t.value === e.onError)?.description
|
|
582
594
|
})
|
|
583
595
|
]
|
|
584
596
|
}),
|
|
585
597
|
/* @__PURE__ */ d("div", {
|
|
586
598
|
className: "flex min-w-0 items-start",
|
|
587
599
|
children: /* @__PURE__ */ f("label", {
|
|
588
|
-
htmlFor: `${
|
|
600
|
+
htmlFor: `${O}-enabled-${r}`,
|
|
589
601
|
className: `flex cursor-pointer items-center gap-2 ${p}`,
|
|
590
602
|
children: [/* @__PURE__ */ d("input", {
|
|
591
|
-
id: `${
|
|
603
|
+
id: `${O}-enabled-${r}`,
|
|
592
604
|
type: "checkbox",
|
|
593
605
|
checked: e.enabled,
|
|
594
606
|
onChange: (e) => $(r, { enabled: e.target.checked }),
|
|
@@ -602,16 +614,16 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
602
614
|
e.onError === "fallback" && /* @__PURE__ */ f("div", {
|
|
603
615
|
className: "min-w-0 sm:col-span-2",
|
|
604
616
|
children: [/* @__PURE__ */ d("label", {
|
|
605
|
-
htmlFor: `${
|
|
617
|
+
htmlFor: `${O}-fallback-${r}`,
|
|
606
618
|
className: m,
|
|
607
619
|
children: o("bigconsole.pipelines.builder.stages.fallbackValueLabel", "Fallback Value (JSON)")
|
|
608
620
|
}), /* @__PURE__ */ d("input", {
|
|
609
|
-
id: `${
|
|
621
|
+
id: `${O}-fallback-${r}`,
|
|
610
622
|
type: "text",
|
|
611
623
|
value: e.fallbackValue,
|
|
612
624
|
onChange: (e) => $(r, { fallbackValue: e.target.value }),
|
|
613
625
|
placeholder: "{\"default\": true}",
|
|
614
|
-
className:
|
|
626
|
+
className: _
|
|
615
627
|
})]
|
|
616
628
|
})
|
|
617
629
|
]
|
|
@@ -641,7 +653,7 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
641
653
|
children: o("bigconsole.pipelines.builder.preview.nameLabel", "Name")
|
|
642
654
|
}), /* @__PURE__ */ d("dd", {
|
|
643
655
|
className: "break-words text-text-primary",
|
|
644
|
-
children:
|
|
656
|
+
children: j || o("bigconsole.pipelines.builder.preview.untitled", "Untitled")
|
|
645
657
|
})]
|
|
646
658
|
}),
|
|
647
659
|
/* @__PURE__ */ f("div", {
|
|
@@ -651,8 +663,8 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
651
663
|
children: o("bigconsole.pipelines.builder.preview.statusLabel", "Status")
|
|
652
664
|
}), /* @__PURE__ */ d("dd", {
|
|
653
665
|
className: "mt-1",
|
|
654
|
-
children: /* @__PURE__ */ d(
|
|
655
|
-
status:
|
|
666
|
+
children: /* @__PURE__ */ d(ne, {
|
|
667
|
+
status: F,
|
|
656
668
|
size: "sm"
|
|
657
669
|
})
|
|
658
670
|
})]
|
|
@@ -664,17 +676,17 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
664
676
|
children: o("bigconsole.pipelines.builder.preview.stagesLabel", "Stages")
|
|
665
677
|
}), /* @__PURE__ */ d("dd", {
|
|
666
678
|
className: "text-text-primary",
|
|
667
|
-
children:
|
|
679
|
+
children: L.length
|
|
668
680
|
})]
|
|
669
681
|
}),
|
|
670
|
-
|
|
682
|
+
L.length > 0 && /* @__PURE__ */ f("div", {
|
|
671
683
|
className: "min-w-0 border-t border-[var(--color-border-subtle)] pt-3",
|
|
672
684
|
children: [/* @__PURE__ */ d("dt", {
|
|
673
685
|
className: "text-xs text-text-muted",
|
|
674
686
|
children: o("bigconsole.pipelines.builder.preview.dataFlowLabel", "Data Flow")
|
|
675
687
|
}), /* @__PURE__ */ f("dd", {
|
|
676
688
|
className: "mt-1 flex flex-wrap items-center gap-1 text-xs",
|
|
677
|
-
children: [
|
|
689
|
+
children: [L.map((e, t) => /* @__PURE__ */ f("span", {
|
|
678
690
|
className: "flex items-center gap-1",
|
|
679
691
|
children: [/* @__PURE__ */ d("code", {
|
|
680
692
|
className: "rounded-button bg-bg-surface px-1.5 py-0.5 font-mono break-all text-text-primary",
|
|
@@ -686,7 +698,7 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
686
698
|
})]
|
|
687
699
|
}, t)), /* @__PURE__ */ d("code", {
|
|
688
700
|
className: "rounded-button bg-bg-surface px-1.5 py-0.5 font-mono break-all text-text-primary",
|
|
689
|
-
children:
|
|
701
|
+
children: L[L.length - 1].outputKey
|
|
690
702
|
})]
|
|
691
703
|
})]
|
|
692
704
|
})
|
|
@@ -714,6 +726,6 @@ var p = "min-h-[var(--size-controlHeight-md)]", m = "mb-1 block text-sm font-med
|
|
|
714
726
|
});
|
|
715
727
|
});
|
|
716
728
|
//#endregion
|
|
717
|
-
export {
|
|
729
|
+
export { C as PipelineBuilderPage, C as default };
|
|
718
730
|
|
|
719
731
|
//# sourceMappingURL=PipelineBuilderPage.js.map
|