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