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