@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
|
@@ -3,53 +3,57 @@ import { useDashboardStore as t } from "../../store/dashboardStore.js";
|
|
|
3
3
|
import "../../store/index.js";
|
|
4
4
|
import { CrossFilterProvider as n } from "../../contexts/CrossFilterContext.js";
|
|
5
5
|
import "../../contexts/index.js";
|
|
6
|
-
import {
|
|
6
|
+
import { Section as r } from "../common/Section.js";
|
|
7
|
+
import "../common/index.js";
|
|
8
|
+
import { useBigConsole as i } from "../../context/BigConsoleContext.js";
|
|
7
9
|
import "../../context/index.js";
|
|
8
|
-
import { getWidgetDefinition as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useInstalledWidgets as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
10
|
+
import { getWidgetDefinition as a } from "../widgets/WidgetRegistry.js";
|
|
11
|
+
import o from "../../hooks/useWidgetCatalog.js";
|
|
12
|
+
import s from "../../hooks/useWidgetOperations.js";
|
|
13
|
+
import c from "../../hooks/useDashboardImageExport.js";
|
|
14
|
+
import { useInstalledWidgets as l } from "../../hooks/useInstalledWidgets.js";
|
|
15
|
+
import u from "./DashboardGrid.js";
|
|
16
|
+
import d from "./DashboardToolbar.js";
|
|
17
|
+
import ee from "./GlobalFiltersBar/GlobalFiltersBar.js";
|
|
16
18
|
import "./GlobalFiltersBar/index.js";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
19
|
+
import te from "./LiveBoardBanner.js";
|
|
20
|
+
import ne from "./TemplateSetupBanner.js";
|
|
21
|
+
import re from "./PageTabsManager/PageTabsManager.js";
|
|
20
22
|
import "./PageTabsManager/index.js";
|
|
21
|
-
import
|
|
23
|
+
import ie from "./ShareDialog/ShareDialog.js";
|
|
22
24
|
import "./ShareDialog/index.js";
|
|
23
|
-
import
|
|
24
|
-
import { WidgetInspector as
|
|
25
|
+
import ae from "./WidgetPalette.js";
|
|
26
|
+
import { WidgetInspector as oe } from "../builder/WidgetInspector.js";
|
|
25
27
|
import "../builder/index.js";
|
|
26
|
-
import { calculatePositionFromDrop as
|
|
27
|
-
import { memo as f, useCallback as p, useEffect as
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
28
|
+
import { calculatePositionFromDrop as se, findNextAvailablePosition as ce } from "../../utils/widgetPositioning.js";
|
|
29
|
+
import { memo as f, useCallback as p, useEffect as le, useMemo as ue, useRef as m, useState as h } from "react";
|
|
30
|
+
import { Plus as de } from "lucide-react";
|
|
31
|
+
import { useI18n as fe } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
32
|
+
import { Button as g } from "@burdenoff/fe-libs/ui";
|
|
33
|
+
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
30
34
|
//#region src/bigconsole/components/dashboard/DashboardCanvas.tsx
|
|
31
|
-
var
|
|
32
|
-
let { t:
|
|
33
|
-
workspaceId:
|
|
34
|
-
apiGatewayUrl:
|
|
35
|
-
authToken:
|
|
36
|
-
enabled:
|
|
37
|
-
}), { definitions:
|
|
38
|
-
workspaceId:
|
|
39
|
-
apiGatewayUrl:
|
|
40
|
-
authToken:
|
|
41
|
-
enabled:
|
|
42
|
-
}),
|
|
43
|
-
|
|
44
|
-
}, [
|
|
45
|
-
let e = Array.from(
|
|
46
|
-
return
|
|
47
|
-
}, [
|
|
48
|
-
|
|
49
|
-
let e =
|
|
35
|
+
var y = f(function({ dashboardId: f, pageId: y, title: b, onPaste: pe, onSave: me, isSaving: he = !1, onExport: ge, onPublishTemplate: _e, pages: x = [], activePageId: ve, onPageChange: ye, onPagesReorder: S, onPageAdd: be, onPageRename: xe, onPageDuplicate: Se, onPageDelete: Ce, showFilters: we = !0, showPageTabs: Te = !0, enableCrossFilter: Ee = !0 }) {
|
|
36
|
+
let { t: C } = fe(), w = m(null), T = m(null), [E, De] = h(1200), [Oe, D] = h(!1), [O, k] = h(null), [A, j] = h(!1), [ke, M] = h(null), N = t((e) => e.viewMode === "edit"), { workspaceId: P, apiGatewayUrl: F, authToken: I } = i(), { installedWidgets: Ae, loading: je } = l({
|
|
37
|
+
workspaceId: P,
|
|
38
|
+
apiGatewayUrl: F,
|
|
39
|
+
authToken: I,
|
|
40
|
+
enabled: N
|
|
41
|
+
}), { definitions: Me } = o({
|
|
42
|
+
workspaceId: P,
|
|
43
|
+
apiGatewayUrl: F,
|
|
44
|
+
authToken: I,
|
|
45
|
+
enabled: N
|
|
46
|
+
}), L = t((e) => e.zoomLevel), R = t((e) => e.sidebarCollapsed), z = t((e) => e.toggleSidebar), B = !R, V = t((e) => e.setGlobalFilterValues), Ne = p((e) => {
|
|
47
|
+
V(e);
|
|
48
|
+
}, [V]), { createWidget: H } = s(y, f, { skipFetch: !0 }), U = e((e) => e.widgets), W = ue(() => {
|
|
49
|
+
let e = Array.from(U.values());
|
|
50
|
+
return y ? e.filter((e) => e.pageId === y) : e;
|
|
51
|
+
}, [U, y]), Pe = e((e) => e.selectedWidgetId), G = e((e) => e.selectWidget), K = e((e) => e.addWidget), q = e((e) => e.updateWidgetPosition), J = e((e) => e.configPanelOpen), Fe = e((e) => e.closeConfigPanel);
|
|
52
|
+
le(() => {
|
|
53
|
+
let e = w.current;
|
|
50
54
|
if (!e) return;
|
|
51
55
|
let t = () => {
|
|
52
|
-
|
|
56
|
+
De(e.offsetWidth);
|
|
53
57
|
};
|
|
54
58
|
if (t(), typeof ResizeObserver < "u") {
|
|
55
59
|
let n = new ResizeObserver(t);
|
|
@@ -57,27 +61,27 @@ var v = f(function({ dashboardId: f, pageId: v, title: y, onPaste: de, onSave: f
|
|
|
57
61
|
}
|
|
58
62
|
return window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
59
63
|
}, []);
|
|
60
|
-
let
|
|
64
|
+
let Ie = p((e) => {
|
|
61
65
|
e.forEach((e) => {
|
|
62
|
-
|
|
66
|
+
q(e.i, {
|
|
63
67
|
x: e.x,
|
|
64
68
|
y: e.y,
|
|
65
69
|
width: e.w,
|
|
66
70
|
height: e.h
|
|
67
71
|
});
|
|
68
72
|
});
|
|
69
|
-
}, [
|
|
70
|
-
|
|
71
|
-
}, [
|
|
72
|
-
|
|
73
|
-
let n = t?.definition || (e.type ?
|
|
73
|
+
}, [q]), Le = p((e) => {
|
|
74
|
+
G(e);
|
|
75
|
+
}, [G]), Y = p(async (e, t) => {
|
|
76
|
+
k(null);
|
|
77
|
+
let n = t?.definition || (e.type ? a(e.type) : null), r = {
|
|
74
78
|
width: n?.defaultSize?.width ?? 4,
|
|
75
79
|
height: n?.defaultSize?.height ?? 4
|
|
76
|
-
},
|
|
77
|
-
if (t?.position)
|
|
80
|
+
}, i;
|
|
81
|
+
if (t?.position) i = t.position;
|
|
78
82
|
else {
|
|
79
|
-
let { x: e, y: t } =
|
|
80
|
-
|
|
83
|
+
let { x: e, y: t } = ce(W, r, { cols: 12 });
|
|
84
|
+
i = {
|
|
81
85
|
x: e,
|
|
82
86
|
y: t,
|
|
83
87
|
width: r.width,
|
|
@@ -85,93 +89,93 @@ var v = f(function({ dashboardId: f, pageId: v, title: y, onPaste: de, onSave: f
|
|
|
85
89
|
};
|
|
86
90
|
}
|
|
87
91
|
let o = e;
|
|
88
|
-
if (
|
|
89
|
-
let t = await
|
|
90
|
-
pageId:
|
|
92
|
+
if (y) {
|
|
93
|
+
let t = await H({
|
|
94
|
+
pageId: y,
|
|
91
95
|
dashboardId: f,
|
|
92
96
|
type: e.type,
|
|
93
|
-
title: e.title ||
|
|
97
|
+
title: e.title || C("bigconsole.dashboards.canvas.untitledWidget", "Untitled Widget"),
|
|
94
98
|
description: e.description,
|
|
95
99
|
renderer: e.renderer,
|
|
96
100
|
template: e.template,
|
|
97
101
|
config: e.config || {},
|
|
98
|
-
position:
|
|
102
|
+
position: i,
|
|
99
103
|
refreshInterval: e.refreshInterval ?? void 0,
|
|
100
104
|
dataSinkId: o.dataSinkId,
|
|
101
105
|
parserId: o.parserId
|
|
102
106
|
});
|
|
103
107
|
if (t) {
|
|
104
|
-
|
|
108
|
+
G(t.id);
|
|
105
109
|
return;
|
|
106
110
|
}
|
|
107
|
-
|
|
111
|
+
k(C("bigconsole.dashboards.canvas.widgetCreateError", "Could not create the widget. Check the connection and try again."));
|
|
108
112
|
return;
|
|
109
113
|
}
|
|
110
114
|
let s = {
|
|
111
115
|
id: crypto.randomUUID(),
|
|
112
116
|
dashboardId: f,
|
|
113
|
-
pageId:
|
|
117
|
+
pageId: y || "local",
|
|
114
118
|
type: e.type,
|
|
115
|
-
title: e.title ||
|
|
119
|
+
title: e.title || C("bigconsole.dashboards.canvas.untitledWidget", "Untitled Widget"),
|
|
116
120
|
description: e.description,
|
|
117
121
|
renderer: e.renderer,
|
|
118
122
|
template: e.template,
|
|
119
123
|
refreshInterval: e.refreshInterval,
|
|
120
124
|
config: e.config || {},
|
|
121
|
-
position:
|
|
122
|
-
positionX:
|
|
123
|
-
positionY:
|
|
124
|
-
positionWidth:
|
|
125
|
-
positionHeight:
|
|
125
|
+
position: i,
|
|
126
|
+
positionX: i.x,
|
|
127
|
+
positionY: i.y,
|
|
128
|
+
positionWidth: i.width,
|
|
129
|
+
positionHeight: i.height,
|
|
126
130
|
dataSinkId: o.dataSinkId,
|
|
127
131
|
parserId: o.parserId,
|
|
128
132
|
translations: [],
|
|
129
133
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
130
134
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
131
135
|
};
|
|
132
|
-
|
|
136
|
+
K(s), G(s.id);
|
|
133
137
|
}, [
|
|
134
138
|
f,
|
|
135
|
-
|
|
136
|
-
|
|
139
|
+
y,
|
|
140
|
+
H,
|
|
141
|
+
K,
|
|
137
142
|
G,
|
|
138
143
|
W,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
e.preventDefault(), A(!1), j(null);
|
|
144
|
+
C
|
|
145
|
+
]), Re = p((e) => {
|
|
146
|
+
j(!0), M(e);
|
|
147
|
+
}, []), ze = p(() => {
|
|
148
|
+
j(!1), M(null);
|
|
149
|
+
}, []), Be = p((e) => {
|
|
150
|
+
e.preventDefault(), j(!1), M(null);
|
|
147
151
|
try {
|
|
148
152
|
let t = e.dataTransfer.getData("application/json");
|
|
149
153
|
if (!t) return;
|
|
150
154
|
let n = JSON.parse(t);
|
|
151
155
|
if (!n || typeof n != "object" || !("type" in n)) return;
|
|
152
|
-
let r = n,
|
|
156
|
+
let r = n, i = a(r.type), o = null;
|
|
153
157
|
r.defaultConfig && r.category && (o = {
|
|
154
|
-
...
|
|
155
|
-
name: r.name ||
|
|
158
|
+
...i,
|
|
159
|
+
name: r.name || i.name,
|
|
156
160
|
category: r.category,
|
|
157
161
|
defaultConfig: r.defaultConfig,
|
|
158
|
-
defaultSize: r.defaultSize ||
|
|
162
|
+
defaultSize: r.defaultSize || i.defaultSize
|
|
159
163
|
});
|
|
160
|
-
let s =
|
|
164
|
+
let s = w.current?.getBoundingClientRect();
|
|
161
165
|
if (!s) return;
|
|
162
166
|
let c = {
|
|
163
|
-
width:
|
|
164
|
-
height:
|
|
165
|
-
}, { x: l, y: u } =
|
|
167
|
+
width: i.defaultSize.width,
|
|
168
|
+
height: i.defaultSize.height
|
|
169
|
+
}, { x: l, y: u } = se(e.clientX, e.clientY, s, E, c, { cols: 12 }), d = {
|
|
166
170
|
x: l,
|
|
167
171
|
y: u,
|
|
168
172
|
width: c.width,
|
|
169
173
|
height: c.height
|
|
170
174
|
};
|
|
171
|
-
|
|
175
|
+
Y({
|
|
172
176
|
type: r.type,
|
|
173
|
-
title: r.name ||
|
|
174
|
-
config: r.defaultConfig ||
|
|
177
|
+
title: r.name || i.name,
|
|
178
|
+
config: r.defaultConfig || i.defaultConfig
|
|
175
179
|
}, {
|
|
176
180
|
position: d,
|
|
177
181
|
definition: o
|
|
@@ -179,119 +183,127 @@ var v = f(function({ dashboardId: f, pageId: v, title: y, onPaste: de, onSave: f
|
|
|
179
183
|
} catch (e) {
|
|
180
184
|
console.error("Failed to handle widget drop:", e);
|
|
181
185
|
}
|
|
182
|
-
}, [
|
|
186
|
+
}, [E, Y]), Ve = p((e) => {
|
|
183
187
|
e.preventDefault(), e.dataTransfer.dropEffect = "copy";
|
|
184
|
-
}, []),
|
|
185
|
-
let n = t ||
|
|
186
|
-
|
|
188
|
+
}, []), He = p((e, t) => {
|
|
189
|
+
let n = t || a(e);
|
|
190
|
+
Y({
|
|
187
191
|
type: e,
|
|
188
192
|
title: n.name,
|
|
189
193
|
config: n.defaultConfig
|
|
190
194
|
});
|
|
191
|
-
}, [
|
|
192
|
-
|
|
193
|
-
}, [
|
|
194
|
-
|
|
195
|
-
let e =
|
|
195
|
+
}, [Y]), X = p(() => {
|
|
196
|
+
z();
|
|
197
|
+
}, [z]), Z = p(() => {
|
|
198
|
+
R && z(), window.requestAnimationFrame(() => {
|
|
199
|
+
let e = C("bigconsole.dashboards.widgetPalette.searchPlaceholder", "Search widgets...");
|
|
196
200
|
document.querySelector(`input[placeholder="${e}"]`)?.focus();
|
|
197
201
|
});
|
|
198
202
|
}, [
|
|
199
|
-
L,
|
|
200
203
|
R,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
204
|
+
z,
|
|
205
|
+
C
|
|
206
|
+
]), { exportPNG: Q, exportPDF: $, isExporting: Ue } = c({
|
|
207
|
+
containerRef: T,
|
|
208
|
+
name: b || "dashboard"
|
|
205
209
|
});
|
|
206
|
-
return /* @__PURE__ */
|
|
210
|
+
return /* @__PURE__ */ v("div", {
|
|
207
211
|
className: "flex flex-col h-full min-w-0 overflow-hidden",
|
|
208
212
|
children: [
|
|
209
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ _(d, {
|
|
210
214
|
dashboardId: f,
|
|
211
|
-
title:
|
|
215
|
+
title: b,
|
|
212
216
|
onAddWidget: Z,
|
|
213
217
|
onTogglePalette: X,
|
|
214
|
-
isPaletteOpen:
|
|
215
|
-
onPaste:
|
|
216
|
-
onSave:
|
|
217
|
-
isSaving:
|
|
218
|
-
onExport:
|
|
219
|
-
onPublishTemplate:
|
|
218
|
+
isPaletteOpen: B,
|
|
219
|
+
onPaste: pe,
|
|
220
|
+
onSave: me,
|
|
221
|
+
isSaving: he,
|
|
222
|
+
onExport: ge,
|
|
223
|
+
onPublishTemplate: _e,
|
|
220
224
|
onExportImage: p(() => {
|
|
221
225
|
Q();
|
|
222
226
|
}, [Q]),
|
|
223
227
|
onExportPdf: p(() => {
|
|
224
228
|
$();
|
|
225
229
|
}, [$]),
|
|
226
|
-
isExportingImage:
|
|
227
|
-
onShare: () =>
|
|
230
|
+
isExportingImage: Ue,
|
|
231
|
+
onShare: () => D(!0)
|
|
228
232
|
}),
|
|
229
|
-
|
|
230
|
-
className: "flex items-center justify-between gap-3 border-b border-status-error-border bg-status-error-bg px-4 py-2 text-sm text-status-error-text",
|
|
233
|
+
O && /* @__PURE__ */ _("div", {
|
|
231
234
|
role: "alert",
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
235
|
+
className: "mx-card-padding mt-control-gap flex-shrink-0",
|
|
236
|
+
children: /* @__PURE__ */ _(r, {
|
|
237
|
+
tone: "danger",
|
|
238
|
+
padding: "compact",
|
|
239
|
+
headingLevel: 3,
|
|
240
|
+
"data-testid": "widget-create-error",
|
|
241
|
+
title: "Widget not created",
|
|
242
|
+
description: O,
|
|
243
|
+
actions: /* @__PURE__ */ _(g, {
|
|
244
|
+
variant: "outline",
|
|
245
|
+
size: "sm",
|
|
246
|
+
onClick: () => k(null),
|
|
247
|
+
children: C("bigconsole.dashboards.canvas.dismiss", "Dismiss")
|
|
248
|
+
})
|
|
249
|
+
})
|
|
238
250
|
}),
|
|
239
|
-
/* @__PURE__ */
|
|
240
|
-
widgets:
|
|
241
|
-
isEditMode:
|
|
251
|
+
/* @__PURE__ */ _(ne, {
|
|
252
|
+
widgets: W,
|
|
253
|
+
isEditMode: N
|
|
242
254
|
}),
|
|
243
|
-
/* @__PURE__ */
|
|
244
|
-
widgets:
|
|
245
|
-
isEditMode:
|
|
255
|
+
/* @__PURE__ */ _(te, {
|
|
256
|
+
widgets: W,
|
|
257
|
+
isEditMode: N
|
|
246
258
|
}),
|
|
247
|
-
|
|
259
|
+
we && /* @__PURE__ */ _(ee, {
|
|
248
260
|
dashboardId: f,
|
|
249
|
-
onFilterChange:
|
|
261
|
+
onFilterChange: Ne,
|
|
250
262
|
collapsible: !0
|
|
251
263
|
}),
|
|
252
|
-
|
|
253
|
-
pages:
|
|
254
|
-
activePageId:
|
|
255
|
-
editable:
|
|
256
|
-
onPageSelect:
|
|
257
|
-
onPagesReorder:
|
|
258
|
-
|
|
264
|
+
Te && (N || x.length > 0) && /* @__PURE__ */ _(re, {
|
|
265
|
+
pages: x,
|
|
266
|
+
activePageId: ve || x[0]?.id,
|
|
267
|
+
editable: N,
|
|
268
|
+
onPageSelect: ye || (() => {}),
|
|
269
|
+
onPagesReorder: S ? (e) => {
|
|
270
|
+
S(e.map((e) => x.find((t) => t.id === e)).filter(Boolean));
|
|
259
271
|
} : void 0,
|
|
260
|
-
onPageCreate:
|
|
261
|
-
onPageRename:
|
|
262
|
-
onPageDuplicate:
|
|
263
|
-
onPageDelete:
|
|
272
|
+
onPageCreate: be,
|
|
273
|
+
onPageRename: xe,
|
|
274
|
+
onPageDuplicate: Se,
|
|
275
|
+
onPageDelete: Ce
|
|
264
276
|
}),
|
|
265
|
-
/* @__PURE__ */
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
},
|
|
271
|
-
children: [M && /* @__PURE__ */ g(ie, {
|
|
272
|
-
isOpen: z,
|
|
277
|
+
/* @__PURE__ */ v("div", {
|
|
278
|
+
"data-testid": "dashboard-canvas-panes",
|
|
279
|
+
className: `flex flex-1 min-w-0 overflow-hidden ${J ? "lg:mr-[var(--bc-inspector-width,420px)]" : ""}`,
|
|
280
|
+
children: [N && /* @__PURE__ */ _(ae, {
|
|
281
|
+
isOpen: B,
|
|
273
282
|
onClose: X,
|
|
274
|
-
onWidgetSelect:
|
|
275
|
-
onDragStart:
|
|
276
|
-
onDragEnd:
|
|
277
|
-
installedWidgets:
|
|
278
|
-
installedWidgetsLoading:
|
|
279
|
-
definitions:
|
|
280
|
-
}), /* @__PURE__ */
|
|
281
|
-
ref:
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
283
|
+
onWidgetSelect: He,
|
|
284
|
+
onDragStart: Re,
|
|
285
|
+
onDragEnd: ze,
|
|
286
|
+
installedWidgets: Ae,
|
|
287
|
+
installedWidgetsLoading: je,
|
|
288
|
+
definitions: Me
|
|
289
|
+
}), /* @__PURE__ */ v("div", {
|
|
290
|
+
ref: w,
|
|
291
|
+
role: "region",
|
|
292
|
+
"aria-label": "Dashboard board",
|
|
293
|
+
"data-section-emphasis": "primary",
|
|
294
|
+
"data-testid": "dashboard-board",
|
|
295
|
+
className: "relative min-w-0 flex-1 overflow-auto border-2 border-transparent bg-bg-sunken motion-safe:transition-[border-color,background-color]",
|
|
296
|
+
onDrop: Be,
|
|
297
|
+
onDragOver: Ve,
|
|
285
298
|
onClick: () => {
|
|
286
|
-
|
|
287
|
-
},
|
|
288
|
-
style: {
|
|
289
|
-
position: "relative",
|
|
290
|
-
border: k ? "2px dashed var(--color-action-primary-bg)" : "none",
|
|
291
|
-
backgroundColor: k ? "var(--color-bg-hover)" : void 0,
|
|
292
|
-
transition: "border-color 0.2s, background-color 0.2s"
|
|
299
|
+
N && G(null);
|
|
293
300
|
},
|
|
294
|
-
|
|
301
|
+
style: A ? {
|
|
302
|
+
borderStyle: "dashed",
|
|
303
|
+
borderColor: "var(--color-action-primary-bg)",
|
|
304
|
+
backgroundColor: "var(--color-bg-accentSubtle)"
|
|
305
|
+
} : void 0,
|
|
306
|
+
children: [A && /* @__PURE__ */ _("div", {
|
|
295
307
|
style: {
|
|
296
308
|
position: "absolute",
|
|
297
309
|
top: "50%",
|
|
@@ -305,100 +317,70 @@ var v = f(function({ dashboardId: f, pageId: v, title: y, onPaste: de, onSave: f
|
|
|
305
317
|
pointerEvents: "none",
|
|
306
318
|
zIndex: 100
|
|
307
319
|
},
|
|
308
|
-
children: /* @__PURE__ */
|
|
320
|
+
children: /* @__PURE__ */ v("p", {
|
|
309
321
|
style: {
|
|
310
322
|
fontSize: "var(--font-size-body-md)",
|
|
311
323
|
color: "var(--color-text-primary)",
|
|
312
324
|
margin: 0
|
|
313
325
|
},
|
|
314
326
|
children: [
|
|
315
|
-
|
|
327
|
+
C("bigconsole.dashboards.canvas.dropToAddBefore", "Drop to add"),
|
|
316
328
|
" ",
|
|
317
|
-
/* @__PURE__ */
|
|
329
|
+
/* @__PURE__ */ _("strong", { children: ke }),
|
|
318
330
|
" ",
|
|
319
|
-
|
|
331
|
+
C("bigconsole.dashboards.canvas.dropToAddAfter", "widget")
|
|
320
332
|
]
|
|
321
333
|
})
|
|
322
|
-
}), /* @__PURE__ */
|
|
323
|
-
ref:
|
|
334
|
+
}), /* @__PURE__ */ _("div", {
|
|
335
|
+
ref: T,
|
|
324
336
|
className: "min-h-full origin-top-left transition-transform",
|
|
325
337
|
style: {
|
|
326
|
-
transform: `scale(${
|
|
327
|
-
width: `${100 / (
|
|
338
|
+
transform: `scale(${L / 100})`,
|
|
339
|
+
width: `${100 / (L / 100)}%`
|
|
328
340
|
},
|
|
329
|
-
children:
|
|
330
|
-
enabled:
|
|
341
|
+
children: W.length > 0 ? /* @__PURE__ */ _(n, {
|
|
342
|
+
enabled: Ee,
|
|
331
343
|
onCrossFilter: (e) => {},
|
|
332
|
-
children: /* @__PURE__ */
|
|
333
|
-
widgets:
|
|
334
|
-
isEditMode:
|
|
335
|
-
width:
|
|
336
|
-
onLayoutChange:
|
|
337
|
-
onWidgetSelect:
|
|
338
|
-
selectedWidgetId:
|
|
344
|
+
children: /* @__PURE__ */ _(u, {
|
|
345
|
+
widgets: W,
|
|
346
|
+
isEditMode: N,
|
|
347
|
+
width: E,
|
|
348
|
+
onLayoutChange: Ie,
|
|
349
|
+
onWidgetSelect: Le,
|
|
350
|
+
selectedWidgetId: Pe
|
|
339
351
|
})
|
|
340
352
|
}) : /* @__PURE__ */ _("div", {
|
|
341
|
-
className: "flex
|
|
342
|
-
children:
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
children: /* @__PURE__ */ g("path", {
|
|
351
|
-
strokeLinecap: "round",
|
|
352
|
-
strokeLinejoin: "round",
|
|
353
|
-
strokeWidth: 2,
|
|
354
|
-
d: "M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z"
|
|
355
|
-
})
|
|
356
|
-
})
|
|
357
|
-
}),
|
|
358
|
-
/* @__PURE__ */ g("h3", {
|
|
359
|
-
className: "text-lg font-medium text-text-primary mb-2",
|
|
360
|
-
children: S("bigconsole.dashboards.canvas.noWidgetsTitle", "No widgets yet")
|
|
361
|
-
}),
|
|
362
|
-
/* @__PURE__ */ g("p", {
|
|
363
|
-
className: "text-sm text-text-secondary mb-4 text-center max-w-[300px]",
|
|
364
|
-
children: S("bigconsole.dashboards.canvas.noWidgetsDescription", "Add widgets to build your dashboard. Click the \"Add Widget\" button to get started.")
|
|
365
|
-
}),
|
|
366
|
-
M && /* @__PURE__ */ _("button", {
|
|
367
|
-
type: "button",
|
|
353
|
+
className: "flex min-h-[min(400px,60vh)] items-center justify-center p-card-padding",
|
|
354
|
+
children: /* @__PURE__ */ _(r, {
|
|
355
|
+
headingLevel: 3,
|
|
356
|
+
className: "w-full max-w-md",
|
|
357
|
+
"data-testid": "dashboard-empty-board",
|
|
358
|
+
headerClassName: "mb-form-gap",
|
|
359
|
+
title: C("bigconsole.dashboards.canvas.noWidgetsTitle", "No widgets yet"),
|
|
360
|
+
description: C("bigconsole.dashboards.canvas.noWidgetsDescription", "Add widgets to build your dashboard. Click the \"Add Widget\" button to get started."),
|
|
361
|
+
children: N && /* @__PURE__ */ v(g, {
|
|
368
362
|
onClick: Z,
|
|
369
|
-
className: "
|
|
370
|
-
children: [/* @__PURE__ */ g("svg", {
|
|
371
|
-
className: "w-4 h-4",
|
|
372
|
-
fill: "none",
|
|
373
|
-
stroke: "currentColor",
|
|
374
|
-
viewBox: "0 0 24 24",
|
|
375
|
-
children: /* @__PURE__ */ g("path", {
|
|
376
|
-
strokeLinecap: "round",
|
|
377
|
-
strokeLinejoin: "round",
|
|
378
|
-
strokeWidth: 2,
|
|
379
|
-
d: "M12 4v16m8-8H4"
|
|
380
|
-
})
|
|
381
|
-
}), S("bigconsole.dashboards.canvas.addWidget", "Add Widget")]
|
|
363
|
+
children: [/* @__PURE__ */ _(de, { className: "size-4" }), C("bigconsole.dashboards.canvas.addWidget", "Add Widget")]
|
|
382
364
|
})
|
|
383
|
-
|
|
365
|
+
})
|
|
384
366
|
})
|
|
385
367
|
})]
|
|
386
368
|
})]
|
|
387
369
|
}),
|
|
388
|
-
/* @__PURE__ */
|
|
389
|
-
isOpen:
|
|
390
|
-
onClose:
|
|
370
|
+
/* @__PURE__ */ _(oe, {
|
|
371
|
+
isOpen: J,
|
|
372
|
+
onClose: Fe
|
|
391
373
|
}),
|
|
392
|
-
/* @__PURE__ */
|
|
374
|
+
/* @__PURE__ */ _(ie, {
|
|
393
375
|
dashboardId: f,
|
|
394
|
-
dashboardName:
|
|
395
|
-
isOpen:
|
|
396
|
-
onClose: () =>
|
|
376
|
+
dashboardName: b || C("bigconsole.dashboards.canvas.dashboardFallbackName", "Dashboard"),
|
|
377
|
+
isOpen: Oe,
|
|
378
|
+
onClose: () => D(!1)
|
|
397
379
|
})
|
|
398
380
|
]
|
|
399
381
|
});
|
|
400
382
|
});
|
|
401
383
|
//#endregion
|
|
402
|
-
export {
|
|
384
|
+
export { y as default };
|
|
403
385
|
|
|
404
386
|
//# sourceMappingURL=DashboardCanvas.js.map
|