@burdenoff/microfe-bigconsole 2026.1030.4 → 2026.1031.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/README.md +5 -0
- package/dist/bigconsole/BigConsoleRoot.js +6 -4
- package/dist/bigconsole/assistant/assistantApi.js +1 -1
- package/dist/bigconsole/assistant/assistantProduct.js +70 -70
- package/dist/bigconsole/assistant/assistantRunPersistence.js +1 -1
- package/dist/bigconsole/assistant/assistantRuntime.js +1 -1
- package/dist/bigconsole/assistant/attachmentExtract.js +1 -1
- package/dist/bigconsole/assistant/conversationHistoryApi.js +1 -1
- package/dist/bigconsole/assistant/createSandboxAssistantTransport.js +5 -4
- package/dist/bigconsole/assistant/pageContext.js +1 -1
- package/dist/bigconsole/assistant/pageControls.js +1 -1
- package/dist/bigconsole/assistant/previewController.js +1 -1
- package/dist/bigconsole/assistant/recordAdapters.js +1 -1
- package/dist/bigconsole/components/DrilldownDashboardRenderer.js +2 -2
- package/dist/bigconsole/components/DrilldownModal.js +1 -1
- package/dist/bigconsole/components/builder/WidgetInspector.js +1 -1
- package/dist/bigconsole/components/builder/index.js +5 -4
- package/dist/bigconsole/components/builder/inspector/AppearanceSection.js +7 -7
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +2 -2
- package/dist/bigconsole/components/builder/inspector/LayoutSection.js +1 -1
- package/dist/bigconsole/components/builder/inspector/index.js +6 -5
- package/dist/bigconsole/components/common/index.js +4 -3
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +3 -3
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +9 -9
- package/dist/bigconsole/components/dashboard/DashboardGrid.js +2 -2
- package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +1 -1
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +2 -2
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +4 -3
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +4 -4
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/index.js +2 -1
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +1 -1
- package/dist/bigconsole/components/dashboard/LiveBoardBanner.js +1 -1
- package/dist/bigconsole/components/dashboard/LiveCanvasToggle.js +1 -1
- package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.js +1 -1
- package/dist/bigconsole/components/dashboard/PageTabsManager/index.js +2 -1
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +1 -1
- package/dist/bigconsole/components/dashboard/QuotaLimitNotice.js +1 -1
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +1 -1
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/index.js +2 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +152 -152
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +2 -2
- package/dist/bigconsole/components/dashboard/ShareDialog/index.js +2 -1
- package/dist/bigconsole/components/dashboard/StoreTemplatePicker.js +1 -1
- package/dist/bigconsole/components/dashboard/TemplateSetupBanner.js +1 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +2 -2
- package/dist/bigconsole/components/dashboard/index.js +6 -5
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +2 -2
- package/dist/bigconsole/components/datasink/DataSinkCard.js +2 -2
- package/dist/bigconsole/components/datasink/DataSinkDataViewer.js +1 -1
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +1 -1
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +1 -1
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +1 -1
- package/dist/bigconsole/components/datasink/DataSinkTableViewer.js +1 -1
- package/dist/bigconsole/components/datasink/ExportDataSinkDialog.js +1 -1
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +1 -1
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +1 -1
- package/dist/bigconsole/components/datasink/LinkedParsersPanel.js +1 -1
- package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.js +1 -1
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +1 -1
- package/dist/bigconsole/components/datasink/SetupStateBadge.js +1 -1
- package/dist/bigconsole/components/datasink/WorkflowStatusPanel.js +1 -1
- package/dist/bigconsole/components/embed/widgets/CalendarEmbed.js +1 -1
- package/dist/bigconsole/components/embed/widgets/ChartEmbed.js +9 -9
- package/dist/bigconsole/components/embed/widgets/FormEmbed.js +2 -2
- package/dist/bigconsole/components/embed/widgets/GaugeEmbed.js +1 -1
- package/dist/bigconsole/components/embed/widgets/HeatmapEmbed.js +1 -1
- package/dist/bigconsole/components/embed/widgets/KanbanEmbed.js +2 -2
- package/dist/bigconsole/components/embed/widgets/ProgressEmbed.js +1 -1
- package/dist/bigconsole/components/embed/widgets/RetentionEmbed.js +1 -1
- package/dist/bigconsole/components/embed/widgets/TimelineEmbed.js +1 -1
- package/dist/bigconsole/components/overview/DashboardGuide.js +1 -1
- package/dist/bigconsole/components/overview/DataHealthCard.js +2 -2
- package/dist/bigconsole/components/overview/OverviewQuickActions.js +1 -1
- package/dist/bigconsole/components/overview/OverviewStatCard.js +1 -1
- package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +2 -2
- package/dist/bigconsole/components/overview/index.js +9 -8
- package/dist/bigconsole/components/overview/overviewModel.js +1 -1
- package/dist/bigconsole/components/parser/DataSinkSelector.js +2 -2
- package/dist/bigconsole/components/parser/ExportParserDialog.js +1 -1
- package/dist/bigconsole/components/parser/ExpressionEditor.js +1 -1
- package/dist/bigconsole/components/parser/ImportParserDialog.js +10 -10
- package/dist/bigconsole/components/parser/ParserCard.js +3 -3
- package/dist/bigconsole/components/parser/ParserSelector.js +3 -3
- package/dist/bigconsole/components/parser/ParserStatusBadge.js +1 -1
- package/dist/bigconsole/components/parser/ParserTypeBadge.js +1 -1
- package/dist/bigconsole/components/pipeline/PipelineCard.js +2 -2
- package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.js +1 -1
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +1 -1
- package/dist/bigconsole/components/preview/AiPreviewContent.js +3 -3
- package/dist/bigconsole/components/preview/confirmedPreviewWidgets.js +10 -12
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +314 -314
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +3 -2
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +37 -22
- package/dist/bigconsole/components/widgets/WidgetErrorBoundary.js +1 -1
- package/dist/bigconsole/components/widgets/WidgetHeader.js +2 -2
- package/dist/bigconsole/components/widgets/WidgetMenu.js +1 -1
- package/dist/bigconsole/components/widgets/WidgetRegistry.js +1 -1
- package/dist/bigconsole/components/widgets/WidgetWrapper.js +16 -16
- package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.js +1 -1
- package/dist/bigconsole/components/widgets/adaptive-card/index.js +1 -1
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgets.js +1 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarView.js +1 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +9 -9
- package/dist/bigconsole/components/widgets/calendar/index.js +1 -1
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +1 -1
- package/dist/bigconsole/components/widgets/chart/ChartLegend.js +1 -1
- package/dist/bigconsole/components/widgets/chart/ChartTooltip.js +1 -1
- package/dist/bigconsole/components/widgets/chart/ChartWidget.js +10 -10
- package/dist/bigconsole/components/widgets/chart/charts/AreaChart.js +2 -2
- package/dist/bigconsole/components/widgets/chart/charts/BarChart.js +2 -2
- package/dist/bigconsole/components/widgets/chart/charts/ComboChart.js +2 -2
- package/dist/bigconsole/components/widgets/chart/charts/FunnelChart.js +2 -2
- package/dist/bigconsole/components/widgets/chart/charts/LineChart.js +2 -2
- package/dist/bigconsole/components/widgets/chart/charts/PieChart.js +2 -2
- package/dist/bigconsole/components/widgets/chart/charts/ScatterChart.js +2 -2
- package/dist/bigconsole/components/widgets/chart/charts/WaterfallChart.js +1 -1
- package/dist/bigconsole/components/widgets/chart/charts/index.js +6 -5
- package/dist/bigconsole/components/widgets/chart/charts/numericSeries.js +4 -2
- package/dist/bigconsole/components/widgets/chart/index.js +9 -9
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +1 -1
- package/dist/bigconsole/components/widgets/custom/CustomWidget.js +1 -1
- package/dist/bigconsole/components/widgets/custom/index.js +1 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +1 -1
- package/dist/bigconsole/components/widgets/event-logs/index.js +2 -1
- package/dist/bigconsole/components/widgets/form/FormWidget.js +2 -2
- package/dist/bigconsole/components/widgets/form/index.js +1 -1
- package/dist/bigconsole/components/widgets/funnel/index.js +1 -1
- package/dist/bigconsole/components/widgets/gauge/CircularGauge.js +1 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +1 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeWidget.js +3 -3
- package/dist/bigconsole/components/widgets/gauge/LinearGauge.js +1 -1
- package/dist/bigconsole/components/widgets/gauge/index.js +4 -4
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +1 -1
- package/dist/bigconsole/components/widgets/heatmap/HeatmapWidget.js +1 -1
- package/dist/bigconsole/components/widgets/heatmap/index.js +2 -2
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js +1 -1
- package/dist/bigconsole/components/widgets/iframe-widget/index.js +1 -1
- package/dist/bigconsole/components/widgets/index.js +2 -1
- package/dist/bigconsole/components/widgets/kanban/KanbanView.js +1 -1
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +2 -2
- package/dist/bigconsole/components/widgets/kanban/index.js +1 -1
- package/dist/bigconsole/components/widgets/kpi/KPIWidget.js +1 -1
- package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.js +3 -3
- package/dist/bigconsole/components/widgets/kpi-comparison/index.js +1 -1
- package/dist/bigconsole/components/widgets/list/ListConfig.js +1 -1
- package/dist/bigconsole/components/widgets/list/ListItem.js +1 -1
- package/dist/bigconsole/components/widgets/list/ListWidget.js +2 -2
- package/dist/bigconsole/components/widgets/list/index.js +3 -3
- package/dist/bigconsole/components/widgets/map-widget/MapWidget.js +1 -1
- package/dist/bigconsole/components/widgets/map-widget/index.js +1 -1
- package/dist/bigconsole/components/widgets/metric-card/ComparisonBadge.js +2 -2
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +1 -1
- package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js +4 -4
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +1 -1
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +1 -1
- package/dist/bigconsole/components/widgets/metric-card/index.js +5 -5
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +3 -3
- package/dist/bigconsole/components/widgets/pivot-table/index.js +1 -1
- package/dist/bigconsole/components/widgets/progress/ProgressBar.js +1 -1
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +6 -4
- package/dist/bigconsole/components/widgets/progress/ProgressWidget.js +2 -2
- package/dist/bigconsole/components/widgets/progress/index.js +3 -3
- package/dist/bigconsole/components/widgets/retention/RetentionWidget.js +1 -1
- package/dist/bigconsole/components/widgets/retention/index.js +1 -1
- package/dist/bigconsole/components/widgets/states/EmptyState.js +1 -1
- package/dist/bigconsole/components/widgets/states/ErrorState.js +1 -1
- package/dist/bigconsole/components/widgets/states/LoadingState.js +1 -1
- package/dist/bigconsole/components/widgets/table/TableCell.js +2 -2
- package/dist/bigconsole/components/widgets/table/TableConfig.js +12 -8
- package/dist/bigconsole/components/widgets/table/TableHeader.js +1 -1
- package/dist/bigconsole/components/widgets/table/TablePagination.js +1 -1
- package/dist/bigconsole/components/widgets/table/TableWidget.js +12 -10
- package/dist/bigconsole/components/widgets/table/index.js +5 -5
- package/dist/bigconsole/components/widgets/text-widget/TextWidget.js +1 -1
- package/dist/bigconsole/components/widgets/text-widget/index.js +1 -1
- package/dist/bigconsole/components/widgets/text-widget/textData.js +2 -2
- package/dist/bigconsole/components/widgets/timeline/TimelineWidget.js +1 -1
- package/dist/bigconsole/components/widgets/timeline/index.js +1 -1
- package/dist/bigconsole/components/widgets/utils/conditionalFormat.js +1 -1
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +1 -1
- package/dist/bigconsole/components/widgets/webhook-config/index.js +2 -1
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +1 -1
- package/dist/bigconsole/components/widgets/widget-actions/index.js +2 -1
- package/dist/bigconsole/components/workflow/WorkflowCard.js +2 -2
- package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.js +1 -1
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +1 -1
- package/dist/bigconsole/context/BigConsoleContext.js +2 -1
- package/dist/bigconsole/context/index.js +2 -1
- package/dist/bigconsole/contexts/CrossFilterContext.js +1 -1
- package/dist/bigconsole/contexts/NavigationContext.js +2 -1
- package/dist/bigconsole/contexts/index.js +3 -2
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +2 -2
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +6 -5
- package/dist/bigconsole/customWidget/index.js +2 -1
- package/dist/bigconsole/customWidget/proposalContract.js +1 -1
- package/dist/bigconsole/graphql/storeTemplates.js +5 -5
- package/dist/bigconsole/graphql/widgetCapabilities.js +1 -1
- package/dist/bigconsole/hooks/index.js +24 -23
- package/dist/bigconsole/hooks/useActivePage.js +1 -1
- package/dist/bigconsole/hooks/useAutoRefresh.js +1 -1
- package/dist/bigconsole/hooks/useBigConsoleAnalytics.js +1 -1
- package/dist/bigconsole/hooks/useCrossFilter.js +1 -1
- package/dist/bigconsole/hooks/useDashboardEmbedPolicy.js +1 -1
- package/dist/bigconsole/hooks/useDashboardImageExport.js +1 -1
- package/dist/bigconsole/hooks/useDashboardOperations.js +14 -6
- package/dist/bigconsole/hooks/useDashboardSharing.js +15 -8
- package/dist/bigconsole/hooks/useDashboardViews.js +15 -8
- package/dist/bigconsole/hooks/useDataSinkAlerts.js +11 -8
- package/dist/bigconsole/hooks/useDataSinkOperations.js +19 -10
- package/dist/bigconsole/hooks/useDataSinkSubscription.js +1 -1
- package/dist/bigconsole/hooks/useDrilldown.js +2 -2
- package/dist/bigconsole/hooks/useDrilldownOperations.js +1 -1
- package/dist/bigconsole/hooks/useEventLogs.js +1 -1
- package/dist/bigconsole/hooks/useEventWebhooks.js +1 -1
- package/dist/bigconsole/hooks/useExportDashboard.js +7 -3
- package/dist/bigconsole/hooks/useExportDataSink.js +5 -3
- package/dist/bigconsole/hooks/useExportParser.js +5 -3
- package/dist/bigconsole/hooks/useFilterPresets.js +1 -1
- package/dist/bigconsole/hooks/useFilterUrlSync.js +1 -1
- package/dist/bigconsole/hooks/useGlobalFilters.js +11 -6
- package/dist/bigconsole/hooks/useImportDashboard.js +4 -2
- package/dist/bigconsole/hooks/useImportDataSink.js +3 -2
- package/dist/bigconsole/hooks/useImportParser.js +3 -2
- package/dist/bigconsole/hooks/useInstalledWidgets.js +1 -1
- package/dist/bigconsole/hooks/useModalFocusTrap.js +1 -1
- package/dist/bigconsole/hooks/usePageOperations.js +9 -5
- package/dist/bigconsole/hooks/useParserOperations.js +15 -8
- package/dist/bigconsole/hooks/usePipelineOperations.js +25 -13
- package/dist/bigconsole/hooks/useStoreDashboardTemplates.js +1 -1
- package/dist/bigconsole/hooks/useWidgetActions.js +1 -1
- package/dist/bigconsole/hooks/useWidgetCatalog.js +5 -5
- package/dist/bigconsole/hooks/useWidgetComments.js +1 -1
- package/dist/bigconsole/hooks/useWidgetConfigPersist.js +1 -1
- package/dist/bigconsole/hooks/useWidgetData.js +1 -1
- package/dist/bigconsole/hooks/useWidgetEvents.js +1 -1
- package/dist/bigconsole/hooks/useWidgetExport.js +1 -1
- package/dist/bigconsole/hooks/useWidgetOperations.js +28 -16
- package/dist/bigconsole/hooks/useWorkflowOperations.js +19 -10
- package/dist/bigconsole/index.js +9 -8
- package/dist/bigconsole/pages/DashboardBuilderPage.js +44 -35
- package/dist/bigconsole/pages/DashboardViewPage.js +23 -16
- package/dist/bigconsole/pages/DashboardsPage.js +4 -4
- package/dist/bigconsole/pages/DataParsersPage.js +2 -2
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +12 -7
- package/dist/bigconsole/pages/DataSinkViewPage.js +8 -8
- package/dist/bigconsole/pages/DataSinksPage.js +6 -6
- package/dist/bigconsole/pages/OverviewPage.js +5 -5
- package/dist/bigconsole/pages/ParserBuilderPage.js +5 -5
- package/dist/bigconsole/pages/ParserViewPage.js +4 -4
- package/dist/bigconsole/pages/PipelineBuilderPage.js +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +7 -3
- package/dist/bigconsole/pages/PipelinesPage.js +2 -2
- package/dist/bigconsole/pages/WidgetDemoPage.js +1 -1
- package/dist/bigconsole/pages/WorkflowViewPage.js +7 -14
- package/dist/bigconsole/pages/WorkflowsPage.js +3 -3
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +4 -4
- package/dist/bigconsole/renderers/adapters/BigConsoleRenderer.js +1 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +1 -1
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +13 -12
- package/dist/bigconsole/renderers/factory/WidgetRendererFactory.js +1 -1
- package/dist/bigconsole/renderers/registry/RendererRegistry.js +5 -5
- package/dist/bigconsole/store/drilldownStore.js +1 -1
- package/dist/bigconsole/store/index.js +4 -3
- package/dist/bigconsole/store/parserStore.js +1 -1
- package/dist/bigconsole/store/pipelineStore.js +1 -1
- package/dist/bigconsole/utils/advancedWidgetCapabilities.js +1 -1
- package/dist/bigconsole/utils/backendError.js +21 -22
- package/dist/bigconsole/utils/createDialogParam.js +2 -2
- package/dist/bigconsole/utils/csv.js +34 -36
- package/dist/bigconsole/utils/dataSinkPayload.js +12 -14
- package/dist/bigconsole/utils/drilldownParams.js +1 -1
- package/dist/bigconsole/utils/formDirty.js +3 -3
- package/dist/bigconsole/utils/layoutBaseline.js +1 -1
- package/dist/bigconsole/utils/quota.js +4 -4
- package/dist/bigconsole/utils/safeUrl.js +35 -33
- package/dist/bigconsole/utils/sanitizeHtml.js +2 -2
- package/dist/bigconsole/utils/templateGalleryFilter.js +2 -2
- package/dist/bigconsole/utils/widgetBinding.js +2 -2
- package/dist/bigconsole/utils/widgetDisplayData.js +1 -1
- package/dist/bigconsole/utils/widgetTypeMapping.js +3 -3
- package/dist/bigconsole/workflowOpen.js +2 -2
- package/dist/index.js +1 -1
- package/dist/node_modules/@e965/xlsx/xlsx.js +19 -19
- package/dist/node_modules/dompurify/dist/purify.es.js +454 -361
- package/dist/node_modules/pdfjs-dist/build/pdf.js +16 -16
- package/dist/shared/hooks/useTr.js +1 -1
- package/package.json +14 -12
|
@@ -56,7 +56,9 @@ function l() {
|
|
|
56
56
|
}
|
|
57
57
|
throw Error("Export returned empty content");
|
|
58
58
|
} catch (e) {
|
|
59
|
-
|
|
59
|
+
if (!i()) return null;
|
|
60
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to export dashboard");
|
|
61
|
+
return f(t), null;
|
|
60
62
|
} finally {
|
|
61
63
|
i() && u(!1);
|
|
62
64
|
}
|
|
@@ -81,7 +83,9 @@ function l() {
|
|
|
81
83
|
}
|
|
82
84
|
return s(r, `${c(i || "dashboard")}-export-${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}.json`), !0;
|
|
83
85
|
} catch (e) {
|
|
84
|
-
|
|
86
|
+
if (_.current !== g) return !1;
|
|
87
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to download dashboard");
|
|
88
|
+
return f(t), !1;
|
|
85
89
|
}
|
|
86
90
|
}, [
|
|
87
91
|
b,
|
|
@@ -94,4 +98,4 @@ function l() {
|
|
|
94
98
|
};
|
|
95
99
|
}
|
|
96
100
|
//#endregion
|
|
97
|
-
export { l as default };
|
|
101
|
+
export { l as default, l as useExportDashboard };
|
|
@@ -52,7 +52,8 @@ function c() {
|
|
|
52
52
|
let i = s(r, n);
|
|
53
53
|
return n.prettyPrint ?? !0 ? JSON.stringify(i, null, 2) : JSON.stringify(i);
|
|
54
54
|
} catch (e) {
|
|
55
|
-
|
|
55
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to export DataSink");
|
|
56
|
+
return u(t), null;
|
|
56
57
|
} finally {
|
|
57
58
|
c(!1);
|
|
58
59
|
}
|
|
@@ -74,7 +75,8 @@ function c() {
|
|
|
74
75
|
}
|
|
75
76
|
return a(r, `${o(i || "datasink")}-datasink-export-${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}.json`), !0;
|
|
76
77
|
} catch (e) {
|
|
77
|
-
|
|
78
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to download DataSink");
|
|
79
|
+
return u(t), !1;
|
|
78
80
|
}
|
|
79
81
|
}, [f]),
|
|
80
82
|
clearError: t(() => {
|
|
@@ -83,4 +85,4 @@ function c() {
|
|
|
83
85
|
};
|
|
84
86
|
}
|
|
85
87
|
//#endregion
|
|
86
|
-
export { c as default };
|
|
88
|
+
export { c as default, c as useExportDataSink };
|
|
@@ -45,7 +45,8 @@ function c() {
|
|
|
45
45
|
let i = s(r);
|
|
46
46
|
return n.prettyPrint ?? !0 ? JSON.stringify(i, null, 2) : JSON.stringify(i);
|
|
47
47
|
} catch (e) {
|
|
48
|
-
|
|
48
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to export parser");
|
|
49
|
+
return u(t), null;
|
|
49
50
|
} finally {
|
|
50
51
|
c(!1);
|
|
51
52
|
}
|
|
@@ -67,7 +68,8 @@ function c() {
|
|
|
67
68
|
}
|
|
68
69
|
return a(r, `${o(i || "parser")}-parser-export-${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}.json`), !0;
|
|
69
70
|
} catch (e) {
|
|
70
|
-
|
|
71
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to download parser");
|
|
72
|
+
return u(t), !1;
|
|
71
73
|
}
|
|
72
74
|
}, [f]),
|
|
73
75
|
clearError: t(() => {
|
|
@@ -76,4 +78,4 @@ function c() {
|
|
|
76
78
|
};
|
|
77
79
|
}
|
|
78
80
|
//#endregion
|
|
79
|
-
export { c as default };
|
|
81
|
+
export { c as default, c as useExportParser };
|
|
@@ -204,4 +204,4 @@ function v(n = {}) {
|
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
206
|
//#endregion
|
|
207
|
-
export { v as default, g as parseUrlToGlobalFilterValues };
|
|
207
|
+
export { d as decodeFilterValue, v as default, v as useFilterUrlSync, u as encodeFilterValue, _ as filtersToUrlParams, p as parseUrlToFilters, g as parseUrlToGlobalFilterValues };
|
|
@@ -52,7 +52,8 @@ function f() {
|
|
|
52
52
|
...e
|
|
53
53
|
})), t;
|
|
54
54
|
} catch (e) {
|
|
55
|
-
|
|
55
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to fetch filters");
|
|
56
|
+
return y(t), [];
|
|
56
57
|
} finally {
|
|
57
58
|
_(!1);
|
|
58
59
|
}
|
|
@@ -79,7 +80,8 @@ function f() {
|
|
|
79
80
|
}
|
|
80
81
|
return null;
|
|
81
82
|
} catch (e) {
|
|
82
|
-
|
|
83
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to create filter");
|
|
84
|
+
return y(t), null;
|
|
83
85
|
} finally {
|
|
84
86
|
_(!1);
|
|
85
87
|
}
|
|
@@ -101,7 +103,8 @@ function f() {
|
|
|
101
103
|
}
|
|
102
104
|
return null;
|
|
103
105
|
} catch (e) {
|
|
104
|
-
|
|
106
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to update filter");
|
|
107
|
+
return y(t), null;
|
|
105
108
|
} finally {
|
|
106
109
|
_(!1);
|
|
107
110
|
}
|
|
@@ -117,7 +120,8 @@ function f() {
|
|
|
117
120
|
variables: { id: e }
|
|
118
121
|
})).data?.deleteGlobalFilter ? (p((t) => t.filter((t) => t.id !== e)), h((t) => Object.fromEntries(Object.entries(t).filter(([t]) => t !== e))), !0) : !1;
|
|
119
122
|
} catch (e) {
|
|
120
|
-
|
|
123
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to delete filter");
|
|
124
|
+
return y(t), !1;
|
|
121
125
|
} finally {
|
|
122
126
|
_(!1);
|
|
123
127
|
}
|
|
@@ -138,7 +142,8 @@ function f() {
|
|
|
138
142
|
}
|
|
139
143
|
return [];
|
|
140
144
|
} catch (e) {
|
|
141
|
-
|
|
145
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to reorder filters");
|
|
146
|
+
return y(t), [];
|
|
142
147
|
} finally {
|
|
143
148
|
_(!1);
|
|
144
149
|
}
|
|
@@ -159,4 +164,4 @@ function f() {
|
|
|
159
164
|
};
|
|
160
165
|
}
|
|
161
166
|
//#endregion
|
|
162
|
-
export { f as default };
|
|
167
|
+
export { f as default, f as useGlobalFilters };
|
|
@@ -48,7 +48,9 @@ function d() {
|
|
|
48
48
|
if (a) return g(a), a;
|
|
49
49
|
throw Error("Validation returned empty result");
|
|
50
50
|
} catch (e) {
|
|
51
|
-
|
|
51
|
+
if (!r()) return null;
|
|
52
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to validate import");
|
|
53
|
+
return m(t), null;
|
|
52
54
|
} finally {
|
|
53
55
|
r() && f(!1);
|
|
54
56
|
}
|
|
@@ -125,4 +127,4 @@ function d() {
|
|
|
125
127
|
};
|
|
126
128
|
}
|
|
127
129
|
//#endregion
|
|
128
|
-
export { d as default };
|
|
130
|
+
export { d as default, d as useImportDashboard };
|
|
@@ -237,7 +237,8 @@ function _() {
|
|
|
237
237
|
return await E(n, t);
|
|
238
238
|
} catch (e) {
|
|
239
239
|
if (a(e)) throw e;
|
|
240
|
-
|
|
240
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to import from file");
|
|
241
|
+
return v(t), null;
|
|
241
242
|
}
|
|
242
243
|
}, [E]),
|
|
243
244
|
extractDataSinkId: T,
|
|
@@ -247,4 +248,4 @@ function _() {
|
|
|
247
248
|
};
|
|
248
249
|
}
|
|
249
250
|
//#endregion
|
|
250
|
-
export { _ as default };
|
|
251
|
+
export { _ as default, _ as useImportDataSink };
|
|
@@ -207,7 +207,8 @@ function l() {
|
|
|
207
207
|
}
|
|
208
208
|
return await b(n, t);
|
|
209
209
|
} catch (e) {
|
|
210
|
-
|
|
210
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to import from file");
|
|
211
|
+
return f(t), null;
|
|
211
212
|
}
|
|
212
213
|
}, [b]),
|
|
213
214
|
extractParserId: y,
|
|
@@ -217,4 +218,4 @@ function l() {
|
|
|
217
218
|
};
|
|
218
219
|
}
|
|
219
220
|
//#endregion
|
|
220
|
-
export { l as default };
|
|
221
|
+
export { l as default, l as useImportParser };
|
|
@@ -36,7 +36,8 @@ function c() {
|
|
|
36
36
|
}), i = r?.createDashboardPage;
|
|
37
37
|
return i ? s(i) : null;
|
|
38
38
|
} catch (e) {
|
|
39
|
-
|
|
39
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to create page");
|
|
40
|
+
return f(t), null;
|
|
40
41
|
} finally {
|
|
41
42
|
u(!1);
|
|
42
43
|
}
|
|
@@ -52,7 +53,8 @@ function c() {
|
|
|
52
53
|
}), i = n?.updateDashboardPage;
|
|
53
54
|
return i ? s(i) : null;
|
|
54
55
|
} catch (e) {
|
|
55
|
-
|
|
56
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to update page");
|
|
57
|
+
return f(t), null;
|
|
56
58
|
} finally {
|
|
57
59
|
u(!1);
|
|
58
60
|
}
|
|
@@ -66,7 +68,8 @@ function c() {
|
|
|
66
68
|
});
|
|
67
69
|
return n?.deleteDashboardPage === !0;
|
|
68
70
|
} catch (e) {
|
|
69
|
-
|
|
71
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to delete page");
|
|
72
|
+
return f(t), !1;
|
|
70
73
|
} finally {
|
|
71
74
|
u(!1);
|
|
72
75
|
}
|
|
@@ -83,7 +86,8 @@ function c() {
|
|
|
83
86
|
}), i = r?.reorderDashboardPages;
|
|
84
87
|
return i ? i.map(s) : null;
|
|
85
88
|
} catch (e) {
|
|
86
|
-
|
|
89
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to reorder pages");
|
|
90
|
+
return f(t), null;
|
|
87
91
|
} finally {
|
|
88
92
|
u(!1);
|
|
89
93
|
}
|
|
@@ -91,4 +95,4 @@ function c() {
|
|
|
91
95
|
};
|
|
92
96
|
}
|
|
93
97
|
//#endregion
|
|
94
|
-
export { c as default };
|
|
98
|
+
export { c as default, c as usePageOperations };
|
|
@@ -20,7 +20,8 @@ function p(p = {}) {
|
|
|
20
20
|
})).data?.listParsers?.edges || []).map((e) => e.node);
|
|
21
21
|
return S(t), t;
|
|
22
22
|
} catch (e) {
|
|
23
|
-
|
|
23
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to fetch parsers");
|
|
24
|
+
return y(t), [];
|
|
24
25
|
} finally {
|
|
25
26
|
_(!1);
|
|
26
27
|
}
|
|
@@ -38,7 +39,8 @@ function p(p = {}) {
|
|
|
38
39
|
})).data?.parser;
|
|
39
40
|
return t ? (C(t), t) : null;
|
|
40
41
|
} catch (e) {
|
|
41
|
-
|
|
42
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to fetch parser");
|
|
43
|
+
return y(t), null;
|
|
42
44
|
} finally {
|
|
43
45
|
_(!1);
|
|
44
46
|
}
|
|
@@ -51,7 +53,8 @@ function p(p = {}) {
|
|
|
51
53
|
})).data?.createParser;
|
|
52
54
|
return n ? (C(n), n) : null;
|
|
53
55
|
} catch (e) {
|
|
54
|
-
|
|
56
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to create parser");
|
|
57
|
+
return y(t), null;
|
|
55
58
|
} finally {
|
|
56
59
|
_(!1);
|
|
57
60
|
}
|
|
@@ -68,7 +71,8 @@ function p(p = {}) {
|
|
|
68
71
|
})).data?.updateParser;
|
|
69
72
|
return r ? (w(e, r), r) : null;
|
|
70
73
|
} catch (e) {
|
|
71
|
-
|
|
74
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to update parser");
|
|
75
|
+
return y(t), null;
|
|
72
76
|
} finally {
|
|
73
77
|
_(!1);
|
|
74
78
|
}
|
|
@@ -79,7 +83,8 @@ function p(p = {}) {
|
|
|
79
83
|
variables: { id: e }
|
|
80
84
|
}), T(e), !0;
|
|
81
85
|
} catch (e) {
|
|
82
|
-
|
|
86
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to delete parser");
|
|
87
|
+
return y(t), !1;
|
|
83
88
|
} finally {
|
|
84
89
|
_(!1);
|
|
85
90
|
}
|
|
@@ -99,7 +104,8 @@ function p(p = {}) {
|
|
|
99
104
|
cachedAt: t.cachedAt
|
|
100
105
|
} : null;
|
|
101
106
|
} catch (e) {
|
|
102
|
-
|
|
107
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to execute parser");
|
|
108
|
+
return y(t), null;
|
|
103
109
|
} finally {
|
|
104
110
|
_(!1), E(e, !1);
|
|
105
111
|
}
|
|
@@ -121,7 +127,8 @@ function p(p = {}) {
|
|
|
121
127
|
totalRows: t.totalRows
|
|
122
128
|
} : null;
|
|
123
129
|
} catch (e) {
|
|
124
|
-
|
|
130
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to test expression");
|
|
131
|
+
return y(t), null;
|
|
125
132
|
} finally {
|
|
126
133
|
_(!1);
|
|
127
134
|
}
|
|
@@ -149,4 +156,4 @@ function p(p = {}) {
|
|
|
149
156
|
};
|
|
150
157
|
}
|
|
151
158
|
//#endregion
|
|
152
|
-
export { p as default };
|
|
159
|
+
export { p as default, p as useParserOperations };
|
|
@@ -39,7 +39,8 @@ function g(g = {}) {
|
|
|
39
39
|
})).data?.pipeline;
|
|
40
40
|
return t ? (E(t), t) : null;
|
|
41
41
|
} catch (e) {
|
|
42
|
-
|
|
42
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to fetch pipeline");
|
|
43
|
+
return S(t), null;
|
|
43
44
|
} finally {
|
|
44
45
|
b(!1);
|
|
45
46
|
}
|
|
@@ -52,7 +53,8 @@ function g(g = {}) {
|
|
|
52
53
|
})).data?.createPipeline;
|
|
53
54
|
return n ? (E(n), n) : null;
|
|
54
55
|
} catch (e) {
|
|
55
|
-
|
|
56
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to create pipeline");
|
|
57
|
+
return S(t), null;
|
|
56
58
|
} finally {
|
|
57
59
|
b(!1);
|
|
58
60
|
}
|
|
@@ -69,7 +71,8 @@ function g(g = {}) {
|
|
|
69
71
|
})).data?.updatePipeline;
|
|
70
72
|
return r ? (D(e, r), r) : null;
|
|
71
73
|
} catch (e) {
|
|
72
|
-
|
|
74
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to update pipeline");
|
|
75
|
+
return S(t), null;
|
|
73
76
|
} finally {
|
|
74
77
|
b(!1);
|
|
75
78
|
}
|
|
@@ -80,7 +83,8 @@ function g(g = {}) {
|
|
|
80
83
|
variables: { id: e }
|
|
81
84
|
}), O(e), !0;
|
|
82
85
|
} catch (e) {
|
|
83
|
-
|
|
86
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to delete pipeline");
|
|
87
|
+
return S(t), !1;
|
|
84
88
|
} finally {
|
|
85
89
|
b(!1);
|
|
86
90
|
}
|
|
@@ -97,7 +101,8 @@ function g(g = {}) {
|
|
|
97
101
|
})).data?.addPipelineStage;
|
|
98
102
|
return i ? (D(e, i), i) : null;
|
|
99
103
|
} catch (e) {
|
|
100
|
-
|
|
104
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to add stage");
|
|
105
|
+
return S(t), null;
|
|
101
106
|
} finally {
|
|
102
107
|
b(!1);
|
|
103
108
|
}
|
|
@@ -122,7 +127,8 @@ function g(g = {}) {
|
|
|
122
127
|
}
|
|
123
128
|
return null;
|
|
124
129
|
} catch (e) {
|
|
125
|
-
|
|
130
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to update stage");
|
|
131
|
+
return S(t), null;
|
|
126
132
|
} finally {
|
|
127
133
|
b(!1);
|
|
128
134
|
}
|
|
@@ -146,7 +152,8 @@ function g(g = {}) {
|
|
|
146
152
|
}
|
|
147
153
|
return !0;
|
|
148
154
|
} catch (e) {
|
|
149
|
-
|
|
155
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to remove stage");
|
|
156
|
+
return S(t), !1;
|
|
150
157
|
} finally {
|
|
151
158
|
b(!1);
|
|
152
159
|
}
|
|
@@ -167,7 +174,8 @@ function g(g = {}) {
|
|
|
167
174
|
})).data?.reorderPipelineStages;
|
|
168
175
|
return r ? (D(e, r), r) : null;
|
|
169
176
|
} catch (e) {
|
|
170
|
-
|
|
177
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to reorder stages");
|
|
178
|
+
return S(t), null;
|
|
171
179
|
} finally {
|
|
172
180
|
b(!1);
|
|
173
181
|
}
|
|
@@ -180,7 +188,8 @@ function g(g = {}) {
|
|
|
180
188
|
})).data?.testPipeline;
|
|
181
189
|
return t ? (M(t), t) : null;
|
|
182
190
|
} catch (e) {
|
|
183
|
-
|
|
191
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to test pipeline");
|
|
192
|
+
return S(t), null;
|
|
184
193
|
} finally {
|
|
185
194
|
b(!1), N(!1), j(e.pipelineId, !1);
|
|
186
195
|
}
|
|
@@ -196,7 +205,8 @@ function g(g = {}) {
|
|
|
196
205
|
variables: { input: e }
|
|
197
206
|
})).data?.executePipeline || null;
|
|
198
207
|
} catch (e) {
|
|
199
|
-
|
|
208
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to execute pipeline");
|
|
209
|
+
return S(t), null;
|
|
200
210
|
} finally {
|
|
201
211
|
b(!1), j(e.pipelineId, !1);
|
|
202
212
|
}
|
|
@@ -208,7 +218,8 @@ function g(g = {}) {
|
|
|
208
218
|
fetchPolicy: "network-only"
|
|
209
219
|
})).data?.pipelineExecution || null;
|
|
210
220
|
} catch (e) {
|
|
211
|
-
|
|
221
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to get execution");
|
|
222
|
+
return S(t), null;
|
|
212
223
|
} finally {
|
|
213
224
|
b(!1);
|
|
214
225
|
}
|
|
@@ -223,7 +234,8 @@ function g(g = {}) {
|
|
|
223
234
|
fetchPolicy: "network-only"
|
|
224
235
|
})).data?.listPipelineExecutions || [];
|
|
225
236
|
} catch (e) {
|
|
226
|
-
|
|
237
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to list executions");
|
|
238
|
+
return S(t), [];
|
|
227
239
|
} finally {
|
|
228
240
|
b(!1);
|
|
229
241
|
}
|
|
@@ -257,4 +269,4 @@ function g(g = {}) {
|
|
|
257
269
|
};
|
|
258
270
|
}
|
|
259
271
|
//#endregion
|
|
260
|
-
export { g as default };
|
|
272
|
+
export { g as default, g as usePipelineOperations };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { loadNativeWidgetCatalog as e } from "../graphql/widgetCapabilities.js";
|
|
2
2
|
import { isFederationAccessible as t, mapFromFederationWidgetType as n } from "../utils/widgetTypeMapping.js";
|
|
3
3
|
import { filterAdvancedWidgetDefinitions as r, nativeFederationTypes as i } from "../utils/advancedWidgetCapabilities.js";
|
|
4
|
-
import
|
|
4
|
+
import { WIDGET_CATEGORY_LABELS as a, WIDGET_DEFINITIONS as o, getAllWidgetDefinitions as s, getWidgetDefinition as c } from "../components/widgets/WidgetRegistry.js";
|
|
5
5
|
import { useEffect as l, useLayoutEffect as u, useMemo as d, useRef as f } from "react";
|
|
6
6
|
import { useApolloClient as p } from "@apollo/client/react";
|
|
7
7
|
import { useQuery as m } from "@tanstack/react-query";
|
|
8
8
|
//#region src/bigconsole/hooks/useWidgetCatalog.ts
|
|
9
|
-
var h = new Set(Object.keys(
|
|
9
|
+
var h = new Set(Object.keys(a)), g = "Puzzle", _ = "Installed";
|
|
10
10
|
function v(e) {
|
|
11
11
|
let n = String(e).toLowerCase();
|
|
12
|
-
return Object.prototype.hasOwnProperty.call(
|
|
12
|
+
return Object.prototype.hasOwnProperty.call(o, n) || t(e);
|
|
13
13
|
}
|
|
14
14
|
function y(e) {
|
|
15
15
|
let t = String(e).toLowerCase();
|
|
16
|
-
return Object.prototype.hasOwnProperty.call(
|
|
16
|
+
return Object.prototype.hasOwnProperty.call(o, t) ? t : n(e);
|
|
17
17
|
}
|
|
18
18
|
function b(e) {
|
|
19
19
|
return {
|
|
@@ -124,4 +124,4 @@ function S(t = {}) {
|
|
|
124
124
|
]);
|
|
125
125
|
}
|
|
126
126
|
//#endregion
|
|
127
|
-
export { S as default };
|
|
127
|
+
export { S as default, S as useWidgetCatalog };
|
|
@@ -64,17 +64,24 @@ function C(d, C, w = {}) {
|
|
|
64
64
|
}), [j]);
|
|
65
65
|
let N = m(), P = e((e) => e.widgets), F = e((e) => e.setWidgets), I = e((e) => e.addWidget), L = e((e) => e.updateWidget), R = e((e) => e.removeWidget), z = v(() => Array.from(P.values()), [P]), B = h(async () => {
|
|
66
66
|
if (!(!d && !C)) try {
|
|
67
|
-
D(!0), k(null), C
|
|
68
|
-
query
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
67
|
+
if (D(!0), k(null), C) {
|
|
68
|
+
let e = (await A.query({
|
|
69
|
+
query: a,
|
|
70
|
+
variables: { dashboardId: C },
|
|
71
|
+
fetchPolicy: "network-only"
|
|
72
|
+
})).data?.listWidgetsByDashboard || [];
|
|
73
|
+
F(e.map(S));
|
|
74
|
+
} else if (d) {
|
|
75
|
+
let e = ((await A.query({
|
|
76
|
+
query: o,
|
|
77
|
+
variables: { pageId: d },
|
|
78
|
+
fetchPolicy: "network-only"
|
|
79
|
+
})).data?.listWidgets?.edges || []).map((e) => e.node);
|
|
80
|
+
F(e.map(S));
|
|
81
|
+
}
|
|
76
82
|
} catch (e) {
|
|
77
|
-
|
|
83
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to fetch widgets");
|
|
84
|
+
k(t);
|
|
78
85
|
} finally {
|
|
79
86
|
D(!1);
|
|
80
87
|
}
|
|
@@ -157,7 +164,8 @@ function C(d, C, w = {}) {
|
|
|
157
164
|
}
|
|
158
165
|
return null;
|
|
159
166
|
} catch (e) {
|
|
160
|
-
|
|
167
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to create widget");
|
|
168
|
+
return k(t), null;
|
|
161
169
|
} finally {
|
|
162
170
|
D(!1);
|
|
163
171
|
}
|
|
@@ -195,7 +203,8 @@ function C(d, C, w = {}) {
|
|
|
195
203
|
}
|
|
196
204
|
return null;
|
|
197
205
|
} catch (e) {
|
|
198
|
-
|
|
206
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to update widget");
|
|
207
|
+
return k(t), null;
|
|
199
208
|
} finally {
|
|
200
209
|
D(!1);
|
|
201
210
|
}
|
|
@@ -207,7 +216,8 @@ function C(d, C, w = {}) {
|
|
|
207
216
|
variables: { id: e }
|
|
208
217
|
})).data?.deleteBigConsoleWidget ? (R(e), !0) : !1;
|
|
209
218
|
} catch (e) {
|
|
210
|
-
|
|
219
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to delete widget");
|
|
220
|
+
return k(t), !1;
|
|
211
221
|
} finally {
|
|
212
222
|
D(!1);
|
|
213
223
|
}
|
|
@@ -250,7 +260,8 @@ function C(d, C, w = {}) {
|
|
|
250
260
|
}
|
|
251
261
|
return null;
|
|
252
262
|
} catch (e) {
|
|
253
|
-
|
|
263
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to duplicate widget");
|
|
264
|
+
return k(t), null;
|
|
254
265
|
} finally {
|
|
255
266
|
D(!1);
|
|
256
267
|
}
|
|
@@ -284,7 +295,8 @@ function C(d, C, w = {}) {
|
|
|
284
295
|
});
|
|
285
296
|
}), !0) : !1;
|
|
286
297
|
} catch (e) {
|
|
287
|
-
|
|
298
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to batch update positions");
|
|
299
|
+
return k(t), !1;
|
|
288
300
|
} finally {
|
|
289
301
|
D(!1);
|
|
290
302
|
}
|
|
@@ -303,4 +315,4 @@ function C(d, C, w = {}) {
|
|
|
303
315
|
};
|
|
304
316
|
}
|
|
305
317
|
//#endregion
|
|
306
|
-
export { C as default, S as normalizeWidget };
|
|
318
|
+
export { C as default, C as useWidgetOperations, S as normalizeWidget };
|