@burdenoff/microfe-bigconsole 2026.805.2 → 2026.812.1
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 +145 -111
- 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 +269 -251
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +214 -223
- 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 +110 -102
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +81 -68
- 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 +147 -144
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +154 -153
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +82 -79
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +171 -284
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +250 -273
- 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/PublishToStoreDialog.js +75 -83
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +167 -161
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +181 -190
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js.map +1 -1
- package/dist/bigconsole/components/dashboard/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/TemplatePicker/TemplatePicker.js +1 -0
- 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 -229
- package/dist/bigconsole/components/dashboard/WidgetPalette.js.map +1 -1
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +128 -129
- 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 -61
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +75 -64
- 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/ImportDataGuideDialog.js +113 -117
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +312 -307
- 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 +194 -189
- 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 +163 -131
- 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 +205 -260
- 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 +193 -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 -103
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js.map +1 -1
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +193 -148
- 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 +405 -364
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +265 -237
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +764 -821
- 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/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 +46 -49
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +154 -147
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +118 -101
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js.map +1 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +244 -191
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js.map +1 -1
- package/dist/bigconsole/components/widgets/form/FormWidget.js +167 -159
- package/dist/bigconsole/components/widgets/form/FormWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +92 -76
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeWidget.js +1 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +89 -86
- 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 +64 -63
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.js +2 -2
- package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/list/ListConfig.js +65 -58
- 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 +79 -72
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +35 -34
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +20 -19
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js.map +1 -1
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +181 -180
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +100 -90
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.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 +193 -172
- 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/webhook-config/WebhookConfigPanel.js +283 -249
- 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 +46 -42
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js.map +1 -1
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +372 -348
- 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 +153 -142
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +230 -220
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +832 -790
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataParsersPage.js +249 -304
- package/dist/bigconsole/pages/DataParsersPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +324 -349
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +336 -323
- 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 +14 -8
- 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 +901 -724
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.js +769 -675
- package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserViewPage.js +382 -354
- package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +540 -420
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +416 -384
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.js +260 -309
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +177 -172
- package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
- package/dist/bigconsole/pages/WidgetDemoPage.js +278 -142
- package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowViewPage.js +382 -366
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +202 -316
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +111 -109
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +127 -126
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +103 -103
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js.map +1 -1
- package/package.json +2 -1
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Section as e } from "../common/Section.js";
|
|
2
|
+
import "../common/index.js";
|
|
3
|
+
import { reportBigConsoleQuotaError as t } from "../../utils/quota.js";
|
|
4
|
+
import n from "../../hooks/useBigConsoleAnalytics.js";
|
|
5
|
+
import r from "../../hooks/useImportDashboard.js";
|
|
4
6
|
import "../../hooks/index.js";
|
|
5
|
-
import { memo as
|
|
6
|
-
import { AlertTriangle as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { memo as i, useCallback as a, useEffect as o, useRef as s, useState as c } from "react";
|
|
8
|
+
import { AlertTriangle as ee, ArrowLeft as l, Check as u, FileJson as te, Info as d, RefreshCw as ne, Upload as f, XCircle as p } from "lucide-react";
|
|
9
|
+
import { useI18n as m } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
10
|
+
import { Badge as h, Button as g, Card as _, CardContent as v, Checkbox as y, Dialog as b, DialogContent as x, DialogDescription as S, DialogFooter as re, DialogHeader as ie, DialogTitle as ae, Input as C, Label as w, Spinner as T } from "@burdenoff/fe-libs/ui";
|
|
11
|
+
import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
9
12
|
//#region src/bigconsole/components/dashboard/ImportDashboardDialog.tsx
|
|
10
|
-
function
|
|
13
|
+
function k(e) {
|
|
11
14
|
if (!e) return null;
|
|
12
15
|
try {
|
|
13
16
|
let t = JSON.parse(e);
|
|
@@ -16,16 +19,16 @@ function A(e) {
|
|
|
16
19
|
return null;
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
|
-
var
|
|
20
|
-
let [N, P] =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}, [
|
|
24
|
-
let
|
|
22
|
+
var A = i(function({ isOpen: i, onClose: A, onSuccess: j }) {
|
|
23
|
+
let { t: M } = m(), [N, P] = c("select"), [, F] = c(null), [I, L] = c(null), [R, z] = c(""), [B, V] = c("PRIVATE"), [H, U] = c(!1), W = s(null), { loading: G, error: K, validationResult: q, importResult: J, validateImport: Y, importDashboard: X, clearState: Z } = r(), Q = n();
|
|
24
|
+
o(() => {
|
|
25
|
+
i && (P("select"), F(null), L(null), z(""), V("PRIVATE"), U(!1), Z());
|
|
26
|
+
}, [i, Z]);
|
|
27
|
+
let oe = a(async (e) => {
|
|
25
28
|
let t = e.target.files?.[0];
|
|
26
29
|
if (!t) return;
|
|
27
30
|
if (!t.name.endsWith(".json")) {
|
|
28
|
-
alert("Please select a JSON file");
|
|
31
|
+
alert(M("bigconsole.dashboards.import.selectJsonFile", "Please select a JSON file"));
|
|
29
32
|
return;
|
|
30
33
|
}
|
|
31
34
|
F(t);
|
|
@@ -36,34 +39,34 @@ var j = r(function({ isOpen: r, onClose: j, onSuccess: M }) {
|
|
|
36
39
|
let n = await Y(t);
|
|
37
40
|
n && (P("preview"), n.dashboardInfo?.name && z(n.dashboardInfo.name));
|
|
38
41
|
}, n.onerror = () => {
|
|
39
|
-
alert("Failed to read file");
|
|
42
|
+
alert(M("bigconsole.dashboards.import.failedToReadFile", "Failed to read file"));
|
|
40
43
|
}, n.readAsText(t);
|
|
41
|
-
}, [Y]),
|
|
44
|
+
}, [Y, M]), se = a((e) => {
|
|
42
45
|
e.preventDefault();
|
|
43
46
|
let t = e.dataTransfer.files?.[0];
|
|
44
47
|
if (t) {
|
|
45
48
|
let e = new DataTransfer();
|
|
46
49
|
e.items.add(t), W.current && (W.current.files = e.files, W.current.dispatchEvent(new Event("change", { bubbles: !0 })));
|
|
47
50
|
}
|
|
48
|
-
}, []),
|
|
51
|
+
}, []), ce = a(async () => {
|
|
49
52
|
if (!I) return;
|
|
50
53
|
P("importing");
|
|
51
|
-
let
|
|
54
|
+
let e = {
|
|
52
55
|
name: R.trim() || void 0,
|
|
53
56
|
visibility: B,
|
|
54
57
|
skipWarnings: H
|
|
55
58
|
};
|
|
56
59
|
Q("bigconsole.dashboard.import_clicked", { source: "import" });
|
|
57
60
|
try {
|
|
58
|
-
let
|
|
59
|
-
|
|
60
|
-
dashboardId:
|
|
61
|
+
let t = await X(I, e);
|
|
62
|
+
t?.success && t.dashboard ? (P("complete"), Q("bigconsole.dashboard.imported", {
|
|
63
|
+
dashboardId: t.dashboard.id,
|
|
61
64
|
source: "import",
|
|
62
|
-
originalUpdated:
|
|
63
|
-
}),
|
|
64
|
-
} catch (
|
|
65
|
-
if (e
|
|
66
|
-
|
|
65
|
+
originalUpdated: t.originalUpdated ?? !1
|
|
66
|
+
}), j?.(t.dashboard.id, t.dashboard.name, t.originalUpdated ?? !1)) : P("preview");
|
|
67
|
+
} catch (e) {
|
|
68
|
+
if (t(e, "project")) {
|
|
69
|
+
A();
|
|
67
70
|
return;
|
|
68
71
|
}
|
|
69
72
|
P("preview");
|
|
@@ -73,238 +76,230 @@ var j = r(function({ isOpen: r, onClose: j, onSuccess: M }) {
|
|
|
73
76
|
I,
|
|
74
77
|
X,
|
|
75
78
|
R,
|
|
79
|
+
A,
|
|
76
80
|
j,
|
|
77
|
-
M,
|
|
78
81
|
H,
|
|
79
82
|
B
|
|
80
83
|
]), $ = !G && N !== "importing";
|
|
81
|
-
return /* @__PURE__ */
|
|
82
|
-
open:
|
|
83
|
-
onOpenChange: (e) => !e && $ &&
|
|
84
|
-
children: /* @__PURE__ */
|
|
84
|
+
return /* @__PURE__ */ D(b, {
|
|
85
|
+
open: i,
|
|
86
|
+
onOpenChange: (e) => !e && $ && A(),
|
|
87
|
+
children: /* @__PURE__ */ O(x, {
|
|
85
88
|
className: "sm:max-w-lg max-h-[85vh] flex flex-col",
|
|
86
89
|
children: [
|
|
87
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ O(ie, { children: [/* @__PURE__ */ O("div", {
|
|
88
91
|
className: "flex items-center gap-3",
|
|
89
|
-
children: [/* @__PURE__ */
|
|
92
|
+
children: [/* @__PURE__ */ D("div", {
|
|
90
93
|
className: "flex size-10 items-center justify-center rounded-lg bg-action-primary-bg/10",
|
|
91
|
-
children: /* @__PURE__ */
|
|
92
|
-
}), /* @__PURE__ */
|
|
93
|
-
}), /* @__PURE__ */
|
|
94
|
-
/* @__PURE__ */
|
|
94
|
+
children: /* @__PURE__ */ D(f, { className: "size-5 text-primary" })
|
|
95
|
+
}), /* @__PURE__ */ D(ae, { children: M("bigconsole.dashboards.import.title", "Import Dashboard") })]
|
|
96
|
+
}), /* @__PURE__ */ D(S, { children: M("bigconsole.dashboards.import.description", "Upload a Dashboard export file to restore it into this workspace.") })] }),
|
|
97
|
+
/* @__PURE__ */ O("div", {
|
|
95
98
|
className: "flex-1 overflow-y-auto py-4 space-y-4",
|
|
96
99
|
children: [
|
|
97
|
-
N === "select" && /* @__PURE__ */
|
|
100
|
+
N === "select" && /* @__PURE__ */ O("div", {
|
|
98
101
|
onDragOver: (e) => e.preventDefault(),
|
|
99
|
-
onDrop:
|
|
102
|
+
onDrop: se,
|
|
100
103
|
className: "border-2 border-dashed rounded-lg p-8 text-center hover:border-primary transition-colors",
|
|
101
104
|
children: [
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
-
/* @__PURE__ */
|
|
105
|
+
/* @__PURE__ */ D(te, { className: "size-12 mx-auto text-text-secondary mb-4" }),
|
|
106
|
+
/* @__PURE__ */ D("p", {
|
|
104
107
|
className: "text-sm mb-2",
|
|
105
|
-
children: "Drag and drop a dashboard export file here"
|
|
108
|
+
children: M("bigconsole.dashboards.import.dropzoneTitle", "Drag and drop a dashboard export file here")
|
|
106
109
|
}),
|
|
107
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ D("p", {
|
|
108
111
|
className: "text-xs text-text-secondary mb-4",
|
|
109
|
-
children: "or"
|
|
112
|
+
children: M("bigconsole.dashboards.import.or", "or")
|
|
110
113
|
}),
|
|
111
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ D("input", {
|
|
112
115
|
ref: W,
|
|
113
116
|
type: "file",
|
|
114
117
|
accept: ".json",
|
|
115
|
-
onChange:
|
|
118
|
+
onChange: oe,
|
|
116
119
|
className: "hidden"
|
|
117
120
|
}),
|
|
118
|
-
/* @__PURE__ */
|
|
121
|
+
/* @__PURE__ */ D(g, {
|
|
119
122
|
onClick: () => W.current?.click(),
|
|
120
123
|
disabled: G,
|
|
121
|
-
children: "Browse Files"
|
|
124
|
+
children: M("bigconsole.dashboards.import.browseFiles", "Browse Files")
|
|
122
125
|
}),
|
|
123
|
-
/* @__PURE__ */
|
|
126
|
+
/* @__PURE__ */ D("p", {
|
|
124
127
|
className: "text-xs text-text-secondary mt-4",
|
|
125
|
-
children: "Only .json files exported from BigConsole are supported"
|
|
128
|
+
children: M("bigconsole.dashboards.import.supportedFilesHint", "Only .json files exported from BigConsole are supported")
|
|
126
129
|
})
|
|
127
130
|
]
|
|
128
131
|
}),
|
|
129
|
-
(N === "preview" || N === "importing") && q && /* @__PURE__ */
|
|
130
|
-
/* @__PURE__ */ O(
|
|
131
|
-
|
|
132
|
+
(N === "preview" || N === "importing") && q && /* @__PURE__ */ O(E, { children: [
|
|
133
|
+
/* @__PURE__ */ O(e, {
|
|
134
|
+
headingLevel: 3,
|
|
135
|
+
emphasis: "muted",
|
|
136
|
+
padding: "compact",
|
|
137
|
+
title: "What's in this file",
|
|
138
|
+
"data-testid": "import-summary",
|
|
139
|
+
bodyClassName: "space-y-2",
|
|
132
140
|
children: [
|
|
133
|
-
/* @__PURE__ */
|
|
141
|
+
/* @__PURE__ */ O("div", {
|
|
134
142
|
className: "flex items-center justify-between",
|
|
135
|
-
children: [/* @__PURE__ */
|
|
143
|
+
children: [/* @__PURE__ */ D("span", {
|
|
136
144
|
className: "text-sm text-text-secondary",
|
|
137
|
-
children: "Dashboard"
|
|
138
|
-
}), /* @__PURE__ */
|
|
145
|
+
children: M("bigconsole.dashboards.import.fieldDashboard", "Dashboard")
|
|
146
|
+
}), /* @__PURE__ */ D("span", {
|
|
139
147
|
className: "text-sm font-medium",
|
|
140
148
|
children: q.dashboardInfo.name
|
|
141
149
|
})]
|
|
142
150
|
}),
|
|
143
|
-
q.dashboardInfo.description && /* @__PURE__ */
|
|
151
|
+
q.dashboardInfo.description && /* @__PURE__ */ O("div", {
|
|
144
152
|
className: "flex items-start justify-between",
|
|
145
|
-
children: [/* @__PURE__ */
|
|
153
|
+
children: [/* @__PURE__ */ D("span", {
|
|
146
154
|
className: "text-sm text-text-secondary",
|
|
147
|
-
children: "Description"
|
|
148
|
-
}), /* @__PURE__ */
|
|
155
|
+
children: M("bigconsole.dashboards.import.fieldDescription", "Description")
|
|
156
|
+
}), /* @__PURE__ */ D("span", {
|
|
149
157
|
className: "text-sm text-right max-w-[60%] truncate",
|
|
150
158
|
children: q.dashboardInfo.description
|
|
151
159
|
})]
|
|
152
160
|
}),
|
|
153
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ O("div", {
|
|
154
162
|
className: "flex items-center justify-between",
|
|
155
|
-
children: [/* @__PURE__ */
|
|
163
|
+
children: [/* @__PURE__ */ D("span", {
|
|
156
164
|
className: "text-sm text-text-secondary",
|
|
157
|
-
children: "Pages"
|
|
158
|
-
}), /* @__PURE__ */
|
|
165
|
+
children: M("bigconsole.dashboards.import.fieldPages", "Pages")
|
|
166
|
+
}), /* @__PURE__ */ D(h, {
|
|
159
167
|
variant: "secondary",
|
|
160
168
|
children: q.dashboardInfo.pageCount
|
|
161
169
|
})]
|
|
162
170
|
}),
|
|
163
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ O("div", {
|
|
164
172
|
className: "flex items-center justify-between",
|
|
165
|
-
children: [/* @__PURE__ */
|
|
173
|
+
children: [/* @__PURE__ */ D("span", {
|
|
166
174
|
className: "text-sm text-text-secondary",
|
|
167
|
-
children: "Widgets"
|
|
168
|
-
}), /* @__PURE__ */
|
|
175
|
+
children: M("bigconsole.dashboards.import.fieldWidgets", "Widgets")
|
|
176
|
+
}), /* @__PURE__ */ D(h, {
|
|
169
177
|
variant: "secondary",
|
|
170
178
|
children: q.dashboardInfo.widgetCount
|
|
171
179
|
})]
|
|
172
180
|
}),
|
|
173
|
-
q.dashboardInfo.exportedFrom && /* @__PURE__ */
|
|
181
|
+
q.dashboardInfo.exportedFrom && /* @__PURE__ */ O("div", {
|
|
174
182
|
className: "flex items-center justify-between",
|
|
175
|
-
children: [/* @__PURE__ */
|
|
183
|
+
children: [/* @__PURE__ */ D("span", {
|
|
176
184
|
className: "text-sm text-text-secondary",
|
|
177
|
-
children: "Source ID"
|
|
178
|
-
}), /* @__PURE__ */
|
|
185
|
+
children: M("bigconsole.dashboards.import.fieldSourceId", "Source ID")
|
|
186
|
+
}), /* @__PURE__ */ D("span", {
|
|
179
187
|
className: "text-xs text-text-secondary font-mono truncate max-w-[180px]",
|
|
180
188
|
children: q.dashboardInfo.exportedFrom
|
|
181
189
|
})]
|
|
182
190
|
}),
|
|
183
|
-
/* @__PURE__ */
|
|
184
|
-
className: "flex items-center justify-between",
|
|
185
|
-
children: [/* @__PURE__ */
|
|
191
|
+
/* @__PURE__ */ O("div", {
|
|
192
|
+
className: "flex flex-wrap items-center justify-between gap-x-4",
|
|
193
|
+
children: [/* @__PURE__ */ D("span", {
|
|
186
194
|
className: "text-sm text-text-secondary",
|
|
187
|
-
children: "Schema Version"
|
|
188
|
-
}), /* @__PURE__ */
|
|
195
|
+
children: M("bigconsole.dashboards.import.fieldSchemaVersion", "Schema Version")
|
|
196
|
+
}), /* @__PURE__ */ D("span", {
|
|
189
197
|
className: "text-xs text-text-secondary",
|
|
190
198
|
children: q.dashboardInfo.schemaVersion
|
|
191
199
|
})]
|
|
192
200
|
})
|
|
193
201
|
]
|
|
194
|
-
})
|
|
195
|
-
q.errors.length > 0 && /* @__PURE__ */
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
202
|
+
}),
|
|
203
|
+
q.errors.length > 0 && /* @__PURE__ */ D(e, {
|
|
204
|
+
headingLevel: 3,
|
|
205
|
+
tone: "danger",
|
|
206
|
+
padding: "compact",
|
|
207
|
+
icon: /* @__PURE__ */ D(p, { className: "size-4" }),
|
|
208
|
+
title: M("bigconsole.dashboards.import.errorsCount", "Errors ({{count}})", { count: q.errors.length }),
|
|
209
|
+
description: "These must be fixed in the export file before it can be imported.",
|
|
210
|
+
"data-testid": "import-errors",
|
|
211
|
+
children: /* @__PURE__ */ D("ul", {
|
|
212
|
+
className: "space-y-1 text-xs text-status-error-text",
|
|
213
|
+
children: q.errors.map((e) => /* @__PURE__ */ O("li", { children: [
|
|
214
|
+
/* @__PURE__ */ O("span", {
|
|
215
|
+
className: "font-mono",
|
|
203
216
|
children: [
|
|
204
|
-
"
|
|
205
|
-
|
|
206
|
-
"
|
|
217
|
+
"[",
|
|
218
|
+
e.code,
|
|
219
|
+
"]"
|
|
207
220
|
]
|
|
208
|
-
})
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
/* @__PURE__ */ k("span", {
|
|
213
|
-
className: "font-mono",
|
|
214
|
-
children: [
|
|
215
|
-
"[",
|
|
216
|
-
e.code,
|
|
217
|
-
"]"
|
|
218
|
-
]
|
|
219
|
-
}),
|
|
220
|
-
" ",
|
|
221
|
-
e.message
|
|
222
|
-
] }, t))
|
|
223
|
-
})]
|
|
221
|
+
}),
|
|
222
|
+
" ",
|
|
223
|
+
e.message
|
|
224
|
+
] }, `${e.code}-${e.message}`))
|
|
224
225
|
})
|
|
225
226
|
}),
|
|
226
|
-
q.warnings.length > 0 && /* @__PURE__ */
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
227
|
+
q.warnings.length > 0 && /* @__PURE__ */ D(e, {
|
|
228
|
+
headingLevel: 3,
|
|
229
|
+
tone: "warning",
|
|
230
|
+
padding: "compact",
|
|
231
|
+
icon: /* @__PURE__ */ D(ee, { className: "size-4" }),
|
|
232
|
+
title: M("bigconsole.dashboards.import.warningsCount", "Warnings ({{count}})", { count: q.warnings.length }),
|
|
233
|
+
description: "Advisory only — acknowledge them below to continue.",
|
|
234
|
+
"data-testid": "import-warnings",
|
|
235
|
+
children: /* @__PURE__ */ D("ul", {
|
|
236
|
+
className: "space-y-1 text-xs text-[var(--color-status-warning-text)]",
|
|
237
|
+
children: q.warnings.map((e) => /* @__PURE__ */ O("li", { children: [
|
|
238
|
+
/* @__PURE__ */ O("span", {
|
|
239
|
+
className: "font-mono",
|
|
234
240
|
children: [
|
|
235
|
-
"
|
|
236
|
-
|
|
237
|
-
"
|
|
241
|
+
"[",
|
|
242
|
+
e.code,
|
|
243
|
+
"]"
|
|
238
244
|
]
|
|
239
|
-
})
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
/* @__PURE__ */ k("span", {
|
|
244
|
-
className: "font-mono",
|
|
245
|
-
children: [
|
|
246
|
-
"[",
|
|
247
|
-
e.code,
|
|
248
|
-
"]"
|
|
249
|
-
]
|
|
250
|
-
}),
|
|
251
|
-
" ",
|
|
252
|
-
e.message
|
|
253
|
-
] }, t))
|
|
254
|
-
})]
|
|
245
|
+
}),
|
|
246
|
+
" ",
|
|
247
|
+
e.message
|
|
248
|
+
] }, `${e.code}-${e.message}`))
|
|
255
249
|
})
|
|
256
250
|
}),
|
|
257
|
-
q.isValid && /* @__PURE__ */
|
|
258
|
-
|
|
251
|
+
q.isValid && /* @__PURE__ */ O(e, {
|
|
252
|
+
headingLevel: 3,
|
|
253
|
+
title: M("bigconsole.dashboards.import.optionsTitle", "Import Options"),
|
|
254
|
+
description: "How this file lands in the workspace.",
|
|
255
|
+
"data-testid": "import-options",
|
|
256
|
+
bodyClassName: "space-y-4",
|
|
259
257
|
children: [
|
|
260
|
-
/* @__PURE__ */
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
children: /* @__PURE__ */ O(
|
|
267
|
-
className: "
|
|
268
|
-
children: /* @__PURE__ */
|
|
269
|
-
className: "
|
|
270
|
-
children:
|
|
271
|
-
|
|
272
|
-
children: A(I) ? /* @__PURE__ */ k(D, { children: [
|
|
273
|
-
/* @__PURE__ */ O("p", {
|
|
274
|
-
className: "font-medium mb-1",
|
|
275
|
-
children: "Import will check for existing dashboard"
|
|
276
|
-
}),
|
|
277
|
-
/* @__PURE__ */ k("p", { children: [
|
|
278
|
-
"If the original dashboard (ID:",
|
|
279
|
-
" ",
|
|
280
|
-
/* @__PURE__ */ k("code", {
|
|
281
|
-
className: "font-mono bg-blue-200/50 px-1 rounded",
|
|
282
|
-
children: [A(I)?.slice(0, 8), "..."]
|
|
283
|
-
}),
|
|
284
|
-
") exists:"
|
|
285
|
-
] }),
|
|
286
|
-
/* @__PURE__ */ k("ul", {
|
|
287
|
-
className: "list-disc list-inside mt-1 space-y-0.5",
|
|
288
|
-
children: [/* @__PURE__ */ O("li", { children: "With changes → Update the existing dashboard" }), /* @__PURE__ */ O("li", { children: "No changes → Show \"already exists\" message" })]
|
|
289
|
-
}),
|
|
290
|
-
/* @__PURE__ */ O("p", {
|
|
291
|
-
className: "mt-1",
|
|
292
|
-
children: "If original doesn't exist → Create a new dashboard"
|
|
293
|
-
})
|
|
294
|
-
] }) : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O("p", {
|
|
258
|
+
/* @__PURE__ */ D(e, {
|
|
259
|
+
headingLevel: 4,
|
|
260
|
+
tone: "info",
|
|
261
|
+
"aria-label": M("bigconsole.dashboards.import.infoRegionLabel", "What this import will do"),
|
|
262
|
+
padding: "compact",
|
|
263
|
+
"data-testid": "import-info",
|
|
264
|
+
children: /* @__PURE__ */ O("div", {
|
|
265
|
+
className: "flex items-start gap-2",
|
|
266
|
+
children: [/* @__PURE__ */ D(d, { className: "size-4 mt-0.5 shrink-0 text-[var(--color-status-info-text)]" }), /* @__PURE__ */ D("div", {
|
|
267
|
+
className: "text-xs text-[var(--color-status-info-text)]",
|
|
268
|
+
children: k(I) ? /* @__PURE__ */ O(E, { children: [
|
|
269
|
+
/* @__PURE__ */ D("p", {
|
|
295
270
|
className: "font-medium mb-1",
|
|
296
|
-
children: "
|
|
297
|
-
}),
|
|
298
|
-
|
|
299
|
-
|
|
271
|
+
children: M("bigconsole.dashboards.import.checkExistingTitle", "Import will check for existing dashboard")
|
|
272
|
+
}),
|
|
273
|
+
/* @__PURE__ */ O("p", { children: [
|
|
274
|
+
M("bigconsole.dashboards.import.checkExistingIdPrefix", "If the original dashboard (ID:"),
|
|
275
|
+
" ",
|
|
276
|
+
/* @__PURE__ */ O("code", {
|
|
277
|
+
className: "rounded bg-bg-surface px-1 font-mono",
|
|
278
|
+
children: [k(I)?.slice(0, 8), "..."]
|
|
279
|
+
}),
|
|
280
|
+
M("bigconsole.dashboards.import.checkExistingIdSuffix", ") exists:")
|
|
281
|
+
] }),
|
|
282
|
+
/* @__PURE__ */ O("ul", {
|
|
283
|
+
className: "list-disc list-inside mt-1 space-y-0.5",
|
|
284
|
+
children: [/* @__PURE__ */ D("li", { children: M("bigconsole.dashboards.import.checkExistingWithChanges", "With changes → Update the existing dashboard") }), /* @__PURE__ */ D("li", { children: M("bigconsole.dashboards.import.checkExistingNoChanges", "No changes → Show \"already exists\" message") })]
|
|
285
|
+
}),
|
|
286
|
+
/* @__PURE__ */ D("p", {
|
|
287
|
+
className: "mt-1",
|
|
288
|
+
children: M("bigconsole.dashboards.import.checkExistingNotFound", "If original doesn't exist → Create a new dashboard")
|
|
289
|
+
})
|
|
290
|
+
] }) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D("p", {
|
|
291
|
+
className: "font-medium mb-1",
|
|
292
|
+
children: M("bigconsole.dashboards.import.newDashboardTitle", "A new dashboard will be created")
|
|
293
|
+
}), /* @__PURE__ */ D("p", { children: M("bigconsole.dashboards.import.newDashboardBody", "Import as a new dashboard with the specified configuration.") })] })
|
|
294
|
+
})]
|
|
300
295
|
})
|
|
301
296
|
}),
|
|
302
|
-
/* @__PURE__ */
|
|
297
|
+
/* @__PURE__ */ O("div", {
|
|
303
298
|
className: "space-y-2",
|
|
304
|
-
children: [/* @__PURE__ */
|
|
299
|
+
children: [/* @__PURE__ */ D(w, {
|
|
305
300
|
htmlFor: "import-name",
|
|
306
|
-
children: "Dashboard Name"
|
|
307
|
-
}), /* @__PURE__ */
|
|
301
|
+
children: M("bigconsole.dashboards.import.dashboardNameLabel", "Dashboard Name")
|
|
302
|
+
}), /* @__PURE__ */ D(C, {
|
|
308
303
|
id: "import-name",
|
|
309
304
|
type: "text",
|
|
310
305
|
value: R,
|
|
@@ -313,124 +308,112 @@ var j = r(function({ isOpen: r, onClose: j, onSuccess: M }) {
|
|
|
313
308
|
disabled: N === "importing"
|
|
314
309
|
})]
|
|
315
310
|
}),
|
|
316
|
-
/* @__PURE__ */
|
|
311
|
+
/* @__PURE__ */ O("div", {
|
|
317
312
|
className: "space-y-2",
|
|
318
|
-
children: [/* @__PURE__ */
|
|
313
|
+
children: [/* @__PURE__ */ D(w, { children: M("bigconsole.dashboards.import.visibilityLabel", "Visibility") }), /* @__PURE__ */ D("div", {
|
|
319
314
|
className: "flex gap-2",
|
|
320
315
|
children: [
|
|
321
316
|
"PRIVATE",
|
|
322
317
|
"TEAM",
|
|
323
318
|
"PUBLIC"
|
|
324
|
-
].map((e) => /* @__PURE__ */
|
|
319
|
+
].map((e) => /* @__PURE__ */ D(g, {
|
|
325
320
|
type: "button",
|
|
326
321
|
variant: B === e ? "default" : "outline",
|
|
327
322
|
size: "sm",
|
|
328
323
|
onClick: () => V(e),
|
|
329
324
|
disabled: N === "importing",
|
|
330
|
-
children: e.
|
|
325
|
+
children: e === "PRIVATE" ? M("bigconsole.dashboards.import.visibilityPrivate", "Private") : e === "TEAM" ? M("bigconsole.dashboards.import.visibilityTeam", "Team") : M("bigconsole.dashboards.import.visibilityPublic", "Public")
|
|
331
326
|
}, e))
|
|
332
327
|
})]
|
|
333
328
|
}),
|
|
334
|
-
q.warnings.length > 0 && /* @__PURE__ */
|
|
329
|
+
q.warnings.length > 0 && /* @__PURE__ */ O("div", {
|
|
335
330
|
className: "flex items-start space-x-3",
|
|
336
|
-
children: [/* @__PURE__ */
|
|
331
|
+
children: [/* @__PURE__ */ D(y, {
|
|
337
332
|
id: "skipWarnings",
|
|
338
333
|
checked: H,
|
|
339
334
|
onCheckedChange: (e) => U(e === !0),
|
|
340
335
|
disabled: N === "importing"
|
|
341
|
-
}), /* @__PURE__ */
|
|
336
|
+
}), /* @__PURE__ */ D("div", {
|
|
342
337
|
className: "grid gap-1.5 leading-none",
|
|
343
|
-
children: /* @__PURE__ */
|
|
338
|
+
children: /* @__PURE__ */ D(w, {
|
|
344
339
|
htmlFor: "skipWarnings",
|
|
345
340
|
className: "cursor-pointer",
|
|
346
|
-
children: "Acknowledge warnings and proceed"
|
|
341
|
+
children: M("bigconsole.dashboards.import.acknowledgeWarnings", "Acknowledge warnings and proceed")
|
|
347
342
|
})
|
|
348
343
|
})]
|
|
349
344
|
})
|
|
350
345
|
]
|
|
351
346
|
})
|
|
352
347
|
] }),
|
|
353
|
-
N === "complete" && J?.success && /* @__PURE__ */
|
|
348
|
+
N === "complete" && J?.success && /* @__PURE__ */ O("div", {
|
|
354
349
|
className: "text-center py-6",
|
|
355
350
|
children: [
|
|
356
|
-
J.alreadyExists && /* @__PURE__ */
|
|
357
|
-
/* @__PURE__ */
|
|
358
|
-
className: "
|
|
359
|
-
children: /* @__PURE__ */
|
|
351
|
+
J.alreadyExists && /* @__PURE__ */ O(E, { children: [
|
|
352
|
+
/* @__PURE__ */ D("div", {
|
|
353
|
+
className: "mx-auto mb-4 flex size-16 items-center justify-center rounded-full bg-[var(--color-status-info-bgSubtle)]",
|
|
354
|
+
children: /* @__PURE__ */ D(d, { className: "size-8 text-[var(--color-status-info-text)]" })
|
|
360
355
|
}),
|
|
361
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ D("h3", {
|
|
362
357
|
className: "text-lg font-medium mb-2",
|
|
363
|
-
children: "Dashboard Already Exists"
|
|
358
|
+
children: M("bigconsole.dashboards.import.alreadyExistsTitle", "Dashboard Already Exists")
|
|
364
359
|
}),
|
|
365
|
-
/* @__PURE__ */
|
|
360
|
+
/* @__PURE__ */ D("p", {
|
|
366
361
|
className: "text-sm text-text-secondary mb-4",
|
|
367
|
-
children:
|
|
368
|
-
"Dashboard \"",
|
|
369
|
-
J.dashboard?.name,
|
|
370
|
-
"\" already exists with the same data. No changes were made."
|
|
371
|
-
]
|
|
362
|
+
children: M("bigconsole.dashboards.import.alreadyExistsBody", "Dashboard \"{{name}}\" already exists with the same data. No changes were made.", { name: J.dashboard?.name ?? "" })
|
|
372
363
|
})
|
|
373
364
|
] }),
|
|
374
|
-
J.originalUpdated && !J.alreadyExists && /* @__PURE__ */
|
|
375
|
-
/* @__PURE__ */
|
|
376
|
-
className: "
|
|
377
|
-
children: /* @__PURE__ */
|
|
365
|
+
J.originalUpdated && !J.alreadyExists && /* @__PURE__ */ O(E, { children: [
|
|
366
|
+
/* @__PURE__ */ D("div", {
|
|
367
|
+
className: "mx-auto mb-4 flex size-16 items-center justify-center rounded-full bg-[var(--color-status-success-bgSubtle)]",
|
|
368
|
+
children: /* @__PURE__ */ D(ne, { className: "size-8 text-status-success-text" })
|
|
378
369
|
}),
|
|
379
|
-
/* @__PURE__ */
|
|
370
|
+
/* @__PURE__ */ D("h3", {
|
|
380
371
|
className: "text-lg font-medium mb-2",
|
|
381
|
-
children: "Dashboard Updated!"
|
|
372
|
+
children: M("bigconsole.dashboards.import.updatedTitle", "Dashboard Updated!")
|
|
382
373
|
}),
|
|
383
|
-
/* @__PURE__ */
|
|
374
|
+
/* @__PURE__ */ D("p", {
|
|
384
375
|
className: "text-sm text-text-secondary mb-4",
|
|
385
|
-
children:
|
|
386
|
-
"Dashboard \"",
|
|
387
|
-
J.dashboard?.name,
|
|
388
|
-
"\" has been updated with the imported data."
|
|
389
|
-
]
|
|
376
|
+
children: M("bigconsole.dashboards.import.updatedBody", "Dashboard \"{{name}}\" has been updated with the imported data.", { name: J.dashboard?.name ?? "" })
|
|
390
377
|
})
|
|
391
378
|
] }),
|
|
392
|
-
!J.originalUpdated && !J.alreadyExists && /* @__PURE__ */
|
|
393
|
-
/* @__PURE__ */
|
|
394
|
-
className: "
|
|
395
|
-
children: /* @__PURE__ */
|
|
379
|
+
!J.originalUpdated && !J.alreadyExists && /* @__PURE__ */ O(E, { children: [
|
|
380
|
+
/* @__PURE__ */ D("div", {
|
|
381
|
+
className: "mx-auto mb-4 flex size-16 items-center justify-center rounded-full bg-[var(--color-status-success-bgSubtle)]",
|
|
382
|
+
children: /* @__PURE__ */ D(u, { className: "size-8 text-status-success-text" })
|
|
396
383
|
}),
|
|
397
|
-
/* @__PURE__ */
|
|
384
|
+
/* @__PURE__ */ D("h3", {
|
|
398
385
|
className: "text-lg font-medium mb-2",
|
|
399
|
-
children: "Import Successful!"
|
|
386
|
+
children: M("bigconsole.dashboards.import.successTitle", "Import Successful!")
|
|
400
387
|
}),
|
|
401
|
-
/* @__PURE__ */
|
|
388
|
+
/* @__PURE__ */ D("p", {
|
|
402
389
|
className: "text-sm text-text-secondary mb-4",
|
|
403
|
-
children:
|
|
404
|
-
"Dashboard \"",
|
|
405
|
-
J.dashboard?.name,
|
|
406
|
-
"\" has been created."
|
|
407
|
-
]
|
|
390
|
+
children: M("bigconsole.dashboards.import.successBody", "Dashboard \"{{name}}\" has been created.", { name: J.dashboard?.name ?? "" })
|
|
408
391
|
}),
|
|
409
|
-
J.stats && /* @__PURE__ */
|
|
392
|
+
J.stats && /* @__PURE__ */ D(_, {
|
|
410
393
|
className: "inline-block text-left",
|
|
411
|
-
children: /* @__PURE__ */
|
|
394
|
+
children: /* @__PURE__ */ O(v, {
|
|
412
395
|
className: "p-4",
|
|
413
|
-
children: [/* @__PURE__ */
|
|
396
|
+
children: [/* @__PURE__ */ D("p", {
|
|
414
397
|
className: "text-xs font-medium text-text-secondary mb-2",
|
|
415
|
-
children: "Import Summary"
|
|
416
|
-
}), /* @__PURE__ */
|
|
398
|
+
children: M("bigconsole.dashboards.import.summaryTitle", "Import Summary")
|
|
399
|
+
}), /* @__PURE__ */ O("div", {
|
|
417
400
|
className: "grid grid-cols-2 gap-x-6 gap-y-1 text-xs",
|
|
418
401
|
children: [
|
|
419
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ D("span", {
|
|
420
403
|
className: "text-text-secondary",
|
|
421
|
-
children: "Pages:"
|
|
404
|
+
children: M("bigconsole.dashboards.import.summaryPages", "Pages:")
|
|
422
405
|
}),
|
|
423
|
-
/* @__PURE__ */
|
|
424
|
-
/* @__PURE__ */
|
|
406
|
+
/* @__PURE__ */ D("span", { children: J.stats.pagesCreated }),
|
|
407
|
+
/* @__PURE__ */ D("span", {
|
|
425
408
|
className: "text-text-secondary",
|
|
426
|
-
children: "Widgets:"
|
|
409
|
+
children: M("bigconsole.dashboards.import.summaryWidgets", "Widgets:")
|
|
427
410
|
}),
|
|
428
|
-
/* @__PURE__ */
|
|
429
|
-
/* @__PURE__ */
|
|
411
|
+
/* @__PURE__ */ D("span", { children: J.stats.widgetsCreated }),
|
|
412
|
+
/* @__PURE__ */ D("span", {
|
|
430
413
|
className: "text-text-secondary",
|
|
431
|
-
children: "Actions:"
|
|
414
|
+
children: M("bigconsole.dashboards.import.summaryActions", "Actions:")
|
|
432
415
|
}),
|
|
433
|
-
/* @__PURE__ */
|
|
416
|
+
/* @__PURE__ */ D("span", { children: J.stats.actionsCreated })
|
|
434
417
|
]
|
|
435
418
|
})]
|
|
436
419
|
})
|
|
@@ -438,58 +421,52 @@ var j = r(function({ isOpen: r, onClose: j, onSuccess: M }) {
|
|
|
438
421
|
] })
|
|
439
422
|
]
|
|
440
423
|
}),
|
|
441
|
-
K && /* @__PURE__ */
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
children: K.message
|
|
448
|
-
})
|
|
449
|
-
})
|
|
424
|
+
K && /* @__PURE__ */ D(e, {
|
|
425
|
+
headingLevel: 3,
|
|
426
|
+
tone: "danger",
|
|
427
|
+
padding: "compact",
|
|
428
|
+
title: "Import failed",
|
|
429
|
+
description: K.message
|
|
450
430
|
}),
|
|
451
|
-
J && !J.success && J.errorMessage && /* @__PURE__ */
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
children: J.errorMessage
|
|
458
|
-
})
|
|
459
|
-
})
|
|
431
|
+
J && !J.success && J.errorMessage && /* @__PURE__ */ D(e, {
|
|
432
|
+
headingLevel: 3,
|
|
433
|
+
tone: "danger",
|
|
434
|
+
padding: "compact",
|
|
435
|
+
title: "Import failed",
|
|
436
|
+
description: J.errorMessage
|
|
460
437
|
})
|
|
461
438
|
]
|
|
462
439
|
}),
|
|
463
|
-
/* @__PURE__ */
|
|
440
|
+
/* @__PURE__ */ O(re, {
|
|
464
441
|
className: "flex-row justify-between sm:justify-between",
|
|
465
|
-
children: [/* @__PURE__ */
|
|
442
|
+
children: [/* @__PURE__ */ D("div", { children: N === "preview" && /* @__PURE__ */ O(g, {
|
|
466
443
|
variant: "ghost",
|
|
467
444
|
onClick: () => {
|
|
468
445
|
P("select"), F(null), L(null), Z();
|
|
469
446
|
},
|
|
470
447
|
disabled: G,
|
|
471
|
-
children: [/* @__PURE__ */
|
|
472
|
-
}) }), /* @__PURE__ */
|
|
448
|
+
children: [/* @__PURE__ */ D(l, { className: "size-4" }), M("bigconsole.dashboards.import.back", "Back")]
|
|
449
|
+
}) }), /* @__PURE__ */ O("div", {
|
|
473
450
|
className: "flex items-center gap-2",
|
|
474
451
|
children: [
|
|
475
|
-
N !== "complete" && /* @__PURE__ */
|
|
452
|
+
N !== "complete" && /* @__PURE__ */ D(g, {
|
|
476
453
|
variant: "outline",
|
|
477
|
-
onClick:
|
|
454
|
+
onClick: A,
|
|
478
455
|
disabled: !$,
|
|
479
|
-
children: "Cancel"
|
|
456
|
+
children: M("bigconsole.dashboards.import.cancel", "Cancel")
|
|
480
457
|
}),
|
|
481
|
-
N === "preview" && q?.isValid && /* @__PURE__ */
|
|
482
|
-
onClick:
|
|
458
|
+
N === "preview" && q?.isValid && /* @__PURE__ */ O(g, {
|
|
459
|
+
onClick: ce,
|
|
483
460
|
disabled: G || q.warnings.length > 0 && !H,
|
|
484
|
-
children: [/* @__PURE__ */
|
|
461
|
+
children: [/* @__PURE__ */ D(f, { className: "size-4" }), M("bigconsole.dashboards.import.importButton", "Import Dashboard")]
|
|
485
462
|
}),
|
|
486
|
-
N === "importing" && /* @__PURE__ */
|
|
463
|
+
N === "importing" && /* @__PURE__ */ O("div", {
|
|
487
464
|
className: "flex items-center gap-2 text-sm text-text-secondary",
|
|
488
|
-
children: [/* @__PURE__ */
|
|
465
|
+
children: [/* @__PURE__ */ D(T, { className: "size-4" }), M("bigconsole.dashboards.import.importing", "Importing...")]
|
|
489
466
|
}),
|
|
490
|
-
N === "complete" && /* @__PURE__ */
|
|
491
|
-
onClick:
|
|
492
|
-
children: "Done"
|
|
467
|
+
N === "complete" && /* @__PURE__ */ D(g, {
|
|
468
|
+
onClick: A,
|
|
469
|
+
children: M("bigconsole.dashboards.import.done", "Done")
|
|
493
470
|
})
|
|
494
471
|
]
|
|
495
472
|
})]
|
|
@@ -499,6 +476,6 @@ var j = r(function({ isOpen: r, onClose: j, onSuccess: M }) {
|
|
|
499
476
|
});
|
|
500
477
|
});
|
|
501
478
|
//#endregion
|
|
502
|
-
export {
|
|
479
|
+
export { A as default };
|
|
503
480
|
|
|
504
481
|
//# sourceMappingURL=ImportDashboardDialog.js.map
|