@burdenoff/microfe-bigconsole 2026.1016.2 → 2026.1017.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/AdminRoot.d.ts +0 -1
- package/dist/bigconsole/AdminRoutes.d.ts +1 -1
- package/dist/bigconsole/BigConsoleRoot.d.ts +0 -1
- package/dist/bigconsole/BigConsoleRoutes.d.ts +1 -2
- package/dist/bigconsole/assistant/assistantApi.d.ts +0 -1
- package/dist/bigconsole/assistant/assistantProduct.d.ts +0 -1
- package/dist/bigconsole/assistant/assistantPrompt.d.ts +0 -1
- package/dist/bigconsole/assistant/assistantRunPersistence.d.ts +0 -1
- package/dist/bigconsole/assistant/assistantRuntime.d.ts +0 -1
- package/dist/bigconsole/assistant/conversationHistoryApi.d.ts +0 -1
- package/dist/bigconsole/assistant/displayCopy.d.ts +0 -1
- package/dist/bigconsole/assistant/modes.d.ts +0 -1
- package/dist/bigconsole/assistant/pageControls.d.ts +0 -1
- package/dist/bigconsole/assistant/previewControl.d.ts +0 -1
- package/dist/bigconsole/assistant/previewController.d.ts +0 -1
- package/dist/bigconsole/assistant/previewRunAction.d.ts +0 -1
- package/dist/bigconsole/assistant/recordAdapters.d.ts +0 -1
- package/dist/bigconsole/components/DrilldownDashboardRenderer.d.ts +0 -1
- package/dist/bigconsole/components/DrilldownModal.d.ts +0 -1
- package/dist/bigconsole/components/builder/BuilderCanvas.d.ts +0 -1
- package/dist/bigconsole/components/builder/BuilderTopbar.d.ts +0 -1
- package/dist/bigconsole/components/builder/DashboardEditorShell.d.ts +0 -1
- package/dist/bigconsole/components/builder/WidgetInspector.d.ts +0 -1
- package/dist/bigconsole/components/builder/inspector/AdvancedSection.d.ts +0 -1
- package/dist/bigconsole/components/builder/inspector/AppearanceSection.d.ts +0 -1
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.d.ts +0 -1
- package/dist/bigconsole/components/builder/inspector/GeneralSection.d.ts +0 -1
- package/dist/bigconsole/components/builder/inspector/LayoutSection.d.ts +0 -1
- package/dist/bigconsole/components/common/Section.d.ts +0 -1
- package/dist/bigconsole/components/common/SortBySelect.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +19 -19
- package/dist/bigconsole/components/dashboard/DashboardGrid.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/DashboardStatusPill.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/DashboardToolbar.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/LiveBoardBanner.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/LiveCanvasToggle.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/StoreTemplatePicker.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/TemplateInstallOptions.d.ts +1 -2
- package/dist/bigconsole/components/dashboard/TemplateLayoutPreview.d.ts +1 -2
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/TemplateSetupBanner.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +7 -7
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.d.ts +1 -2
- package/dist/bigconsole/components/datasink/AlertRuleEditor.d.ts +1 -2
- package/dist/bigconsole/components/datasink/ConfigurationForm.d.ts +0 -1
- package/dist/bigconsole/components/datasink/DataSinkCard.d.ts +0 -1
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.d.ts +0 -1
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.d.ts +0 -1
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.d.ts +0 -1
- package/dist/bigconsole/components/datasink/ExportDataSinkDialog.d.ts +0 -1
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.d.ts +0 -1
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.d.ts +0 -1
- package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.d.ts +0 -1
- package/dist/bigconsole/components/datasink/SetupStateBadge.d.ts +0 -1
- package/dist/bigconsole/components/datasink/WorkflowStatusPanel.d.ts +0 -1
- package/dist/bigconsole/components/embed/EmbedErrorBoundary.d.ts +0 -1
- package/dist/bigconsole/components/embed/EmbedWidgetRenderer.d.ts +1 -2
- package/dist/bigconsole/components/embed/ReadOnlyDashboardRenderer.d.ts +1 -2
- package/dist/bigconsole/components/embed/drilldown.d.ts +0 -1
- package/dist/bigconsole/components/embed/renderer-manifest.d.ts +0 -1
- package/dist/bigconsole/components/embed/types.d.ts +0 -1
- package/dist/bigconsole/components/embed/validate.d.ts +0 -1
- package/dist/bigconsole/components/embed/widgetShim.d.ts +0 -1
- package/dist/bigconsole/components/embed/widgets/CalendarEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/ChartEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/EmbedFrame.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/FormEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/GaugeEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/HeatmapEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/KanbanEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/KpiComparisonEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/ListEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/MetricCardEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/PivotEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/ProgressEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/RetentionEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/TableEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/TextEmbed.d.ts +1 -2
- package/dist/bigconsole/components/embed/widgets/TimelineEmbed.d.ts +1 -2
- package/dist/bigconsole/components/insights/GeneratedFormattingReview.d.ts +2 -2
- package/dist/bigconsole/components/overview/DashboardGuide.d.ts +0 -1
- package/dist/bigconsole/components/overview/DataHealthCard.d.ts +0 -1
- package/dist/bigconsole/components/overview/OverviewQuickActions.d.ts +0 -1
- package/dist/bigconsole/components/overview/OverviewStatCard.d.ts +0 -1
- package/dist/bigconsole/components/overview/RecentDashboardsPanel.d.ts +0 -1
- package/dist/bigconsole/components/overview/overviewModel.d.ts +0 -1
- package/dist/bigconsole/components/overview/useOverviewData.d.ts +0 -1
- package/dist/bigconsole/components/overview/useOverviewData.js +47 -42
- package/dist/bigconsole/components/parser/DataSinkSelector.d.ts +0 -1
- package/dist/bigconsole/components/parser/ExportParserDialog.d.ts +0 -1
- package/dist/bigconsole/components/parser/ExpressionEditor.d.ts +0 -1
- package/dist/bigconsole/components/parser/ImportParserDialog.d.ts +0 -1
- package/dist/bigconsole/components/parser/ParserBuilder.d.ts +0 -1
- package/dist/bigconsole/components/parser/ParserCard.d.ts +0 -1
- package/dist/bigconsole/components/parser/ParserFormDialog.d.ts +0 -1
- package/dist/bigconsole/components/parser/ParserSelector.d.ts +0 -1
- package/dist/bigconsole/components/parser/ParserStatusBadge.d.ts +0 -1
- package/dist/bigconsole/components/parser/ParserTypeBadge.d.ts +0 -1
- package/dist/bigconsole/components/parser/TestPanel.d.ts +0 -1
- package/dist/bigconsole/components/pipeline/PipelineCard.d.ts +0 -1
- package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.d.ts +0 -1
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.d.ts +1 -1
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.d.ts +0 -1
- package/dist/bigconsole/components/preview/AiPreviewContent.d.ts +4 -4
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.d.ts +1 -1
- package/dist/bigconsole/components/preview/AiPreviewPanel.d.ts +1 -1
- package/dist/bigconsole/components/preview/parserPreview.d.ts +6 -8
- package/dist/bigconsole/components/preview/previewShared.d.ts +1 -2
- package/dist/bigconsole/components/widgets/ActionConfigDialog.d.ts +0 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.d.ts +0 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.d.ts +0 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +307 -287
- package/dist/bigconsole/components/widgets/WidgetErrorBoundary.d.ts +0 -1
- package/dist/bigconsole/components/widgets/WidgetHeader.d.ts +0 -1
- package/dist/bigconsole/components/widgets/WidgetMenu.d.ts +0 -1
- package/dist/bigconsole/components/widgets/WidgetRegistry.d.ts +0 -1
- package/dist/bigconsole/components/widgets/WidgetTypeSelector.d.ts +0 -1
- package/dist/bigconsole/components/widgets/WidgetWrapper.d.ts +0 -1
- package/dist/bigconsole/components/widgets/actionConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.d.ts +1 -2
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgets.d.ts +0 -1
- package/dist/bigconsole/components/widgets/advanced/boxPlotDescription.d.ts +0 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarView.d.ts +0 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/ChartConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/ChartLegend.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/ChartTooltip.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/ChartWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/AreaChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/BarChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/ComboChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/FunnelChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/LineChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/PieChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/ScatterChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/WaterfallChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/numericSeries.d.ts +0 -1
- package/dist/bigconsole/components/widgets/chart/charts/referenceElements.d.ts +0 -1
- package/dist/bigconsole/components/widgets/comments/WidgetComments.d.ts +0 -1
- package/dist/bigconsole/components/widgets/custom/CustomWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.d.ts +0 -1
- package/dist/bigconsole/components/widgets/form/FormWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/funnel/index.d.ts +0 -1
- package/dist/bigconsole/components/widgets/gauge/CircularGauge.d.ts +0 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/gauge/LinearGauge.d.ts +0 -1
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/heatmap/HeatmapWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/kanban/KanbanView.d.ts +0 -1
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/kpi/KPIWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/list/ListConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/list/ListItem.d.ts +0 -1
- package/dist/bigconsole/components/widgets/list/ListWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/map-widget/MapWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/metric-card/ComparisonBadge.d.ts +0 -1
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.d.ts +0 -1
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.d.ts +0 -1
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/progress/ProgressBar.d.ts +0 -1
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/progress/ProgressWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/retention/RetentionWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/states/EmptyState.d.ts +0 -1
- package/dist/bigconsole/components/widgets/states/ErrorState.d.ts +0 -1
- package/dist/bigconsole/components/widgets/states/LoadingState.d.ts +0 -1
- package/dist/bigconsole/components/widgets/table/TableCell.d.ts +0 -1
- package/dist/bigconsole/components/widgets/table/TableConfig.d.ts +0 -1
- package/dist/bigconsole/components/widgets/table/TableHeader.d.ts +0 -1
- package/dist/bigconsole/components/widgets/table/TablePagination.d.ts +0 -1
- package/dist/bigconsole/components/widgets/table/TableWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/text-widget/TextWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/timeline/TimelineWidget.d.ts +0 -1
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.d.ts +0 -1
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +34 -25
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.d.ts +0 -1
- package/dist/bigconsole/components/workflow/WorkflowCard.d.ts +0 -1
- package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.d.ts +0 -1
- package/dist/bigconsole/components/workflow/WorkflowDesignPreview.d.ts +2 -4
- package/dist/bigconsole/components/workflow/WorkflowDesignPreview.js +20 -53
- package/dist/bigconsole/components/workflow/WorkflowOpenGuard.d.ts +0 -1
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.d.ts +1 -1
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.d.ts +0 -1
- package/dist/bigconsole/components/workflow/workflowDesignProjection.d.ts +12 -0
- package/dist/bigconsole/components/workflow/workflowDesignProjection.js +42 -0
- package/dist/bigconsole/context/BigConsoleContext.d.ts +1 -2
- package/dist/bigconsole/contexts/CrossFilterContext.d.ts +0 -1
- package/dist/bigconsole/contexts/NavigationContext.d.ts +1 -2
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.d.ts +0 -1
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.d.ts +0 -1
- package/dist/bigconsole/customWidget/proposalPreview.d.ts +1 -2
- package/dist/bigconsole/customWidget/proposalSource.d.ts +0 -1
- package/dist/bigconsole/graphql/widgetCapabilities.d.ts +0 -1
- package/dist/bigconsole/hooks/index.js +2 -2
- package/dist/bigconsole/hooks/mutationInputEnums.d.ts +5 -0
- package/dist/bigconsole/hooks/mutationInputEnums.js +32 -0
- package/dist/bigconsole/hooks/useDashboardEmbedPolicy.d.ts +0 -1
- package/dist/bigconsole/hooks/useDashboardImageExport.d.ts +0 -1
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +0 -1
- package/dist/bigconsole/hooks/useDashboardOperations.d.ts +0 -1
- package/dist/bigconsole/hooks/useDashboardTemplates.js +0 -1
- package/dist/bigconsole/hooks/useDataSinkAlerts.d.ts +16 -32
- package/dist/bigconsole/hooks/useDataSinkOperations.d.ts +0 -1
- package/dist/bigconsole/hooks/useDataSinkSubscription.d.ts +0 -1
- package/dist/bigconsole/hooks/useDrilldown.d.ts +0 -1
- package/dist/bigconsole/hooks/useDrilldownOperations.d.ts +0 -1
- package/dist/bigconsole/hooks/useEventLogs.d.ts +0 -6
- package/dist/bigconsole/hooks/useEventLogs.js +152 -60
- package/dist/bigconsole/hooks/useEventWebhooks.d.ts +0 -6
- package/dist/bigconsole/hooks/useEventWebhooks.js +132 -72
- package/dist/bigconsole/hooks/useInstalledWidgets.d.ts +0 -1
- package/dist/bigconsole/hooks/useModalFocusTrap.d.ts +0 -1
- package/dist/bigconsole/hooks/usePageOperations.d.ts +0 -1
- package/dist/bigconsole/hooks/useParserOperations.d.ts +0 -1
- package/dist/bigconsole/hooks/usePipelineOperations.d.ts +0 -1
- package/dist/bigconsole/hooks/useQueryLifecycle.d.ts +8 -0
- package/dist/bigconsole/hooks/useQueryLifecycle.js +71 -0
- package/dist/bigconsole/hooks/useShareRecipients.d.ts +0 -1
- package/dist/bigconsole/hooks/useStoreDashboardTemplates.js +45 -42
- package/dist/bigconsole/hooks/useWidgetActions.d.ts +0 -1
- package/dist/bigconsole/hooks/useWidgetActions.js +112 -65
- package/dist/bigconsole/hooks/useWidgetCatalog.d.ts +0 -1
- package/dist/bigconsole/hooks/useWidgetCatalog.js +17 -17
- package/dist/bigconsole/hooks/useWidgetComments.d.ts +0 -1
- package/dist/bigconsole/hooks/useWidgetComments.js +49 -46
- package/dist/bigconsole/hooks/useWidgetConfigPersist.d.ts +0 -1
- package/dist/bigconsole/hooks/useWidgetData.d.ts +0 -1
- package/dist/bigconsole/hooks/useWidgetData.js +57 -52
- package/dist/bigconsole/hooks/useWidgetExport.d.ts +0 -1
- package/dist/bigconsole/hooks/useWidgetOperations.d.ts +0 -1
- package/dist/bigconsole/hooks/useWorkflowOperations.d.ts +0 -1
- package/dist/bigconsole/pages/AdminPage.d.ts +0 -1
- package/dist/bigconsole/pages/DashboardBuilderPage.d.ts +0 -1
- package/dist/bigconsole/pages/DashboardViewPage.d.ts +0 -1
- package/dist/bigconsole/pages/DashboardsPage.d.ts +0 -1
- package/dist/bigconsole/pages/DataSinkAlertsPage.d.ts +1 -1
- package/dist/bigconsole/pages/DataSinksPage.d.ts +0 -1
- package/dist/bigconsole/pages/DataSourcesPage.d.ts +1 -1
- package/dist/bigconsole/pages/InsightsPage.d.ts +0 -1
- package/dist/bigconsole/pages/OverviewPage.d.ts +0 -1
- package/dist/bigconsole/pages/SettingsPage.d.ts +0 -1
- package/dist/bigconsole/pages/WidgetDemoPage.d.ts +0 -1
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.d.ts +1 -2
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.d.ts +0 -1
- package/dist/bigconsole/renderers/adapters/BigConsoleRenderer.d.ts +0 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.d.ts +0 -1
- package/dist/bigconsole/renderers/adapters/CustomRenderer.d.ts +0 -1
- package/dist/bigconsole/renderers/adapters/adaptiveCardContent.d.ts +0 -1
- package/dist/bigconsole/renderers/factory/WidgetRendererFactory.d.ts +0 -1
- package/dist/bigconsole/renderers/registry/RendererRegistry.d.ts +0 -1
- package/dist/bigconsole/renderers/types/renderer.d.ts +0 -1
- package/dist/bigconsole/store/dashboardStore.d.ts +0 -1
- package/dist/bigconsole/store/dataSinkStore.d.ts +0 -1
- package/dist/bigconsole/store/parserStore.d.ts +0 -1
- package/dist/bigconsole/store/pipelineStore.d.ts +0 -1
- package/dist/bigconsole/store/widgetStore.d.ts +0 -1
- package/dist/bigconsole/store/workflowStore.d.ts +0 -1
- package/dist/bigconsole/types/index.d.ts +0 -1
- package/dist/bigconsole/utils/advancedWidgetCapabilities.d.ts +0 -1
- package/dist/bigconsole/utils/alertRules.d.ts +0 -1
- package/dist/bigconsole/utils/dashboardList.d.ts +0 -1
- package/dist/bigconsole/utils/dashboardTemplateContent.d.ts +0 -1
- package/dist/bigconsole/utils/dataSinkList.d.ts +0 -1
- package/dist/bigconsole/utils/quota.d.ts +0 -1
- package/dist/bigconsole/utils/sanitizeHtml.d.ts +0 -1
- package/dist/bigconsole/utils/templateInstallInputs.d.ts +0 -1
- package/dist/bigconsole/utils/widgetBinding.d.ts +0 -1
- package/dist/bigconsole/utils/widgetDisplayData.d.ts +0 -1
- package/dist/bigconsole/utils/widgetPositioning.d.ts +0 -1
- package/dist/bigconsole/utils/widgetTypeMapping.d.ts +0 -1
- package/dist/bigconsole/workflowOpen.d.ts +0 -1
- package/dist/generated/global-operations.d.ts +177 -137
- package/dist/generated/global-operations.js +541 -63
- package/dist/generated/global-types.d.ts +2 -21
- package/dist/generated/wspace-operations.d.ts +3277 -6802
- package/dist/generated/wspace-operations.js +34725 -2582
- package/dist/generated/wspace-types.d.ts +10 -29
- package/dist/generated/wspace-types.js +14 -4
- package/package.json +16 -17
|
@@ -3,38 +3,38 @@ import { useIsEditMode as t } from "../../store/dashboardStore.js";
|
|
|
3
3
|
import "../../store/index.js";
|
|
4
4
|
import { Section as n, SectionStack as r } from "../common/Section.js";
|
|
5
5
|
import "../common/index.js";
|
|
6
|
-
import
|
|
7
|
-
import a from "
|
|
6
|
+
import i from "../../hooks/useWidgetOperations.js";
|
|
7
|
+
import { getWidgetDefinition as a } from "./WidgetRegistry.js";
|
|
8
8
|
import o from "../../hooks/useDrilldownOperations.js";
|
|
9
9
|
import s from "../../hooks/useWidgetActions.js";
|
|
10
10
|
import c from "../../hooks/useEventWebhooks.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
11
|
+
import ee from "../../hooks/useDataSinkOperations.js";
|
|
12
|
+
import te from "../../hooks/useParserOperations.js";
|
|
13
13
|
import "../../hooks/index.js";
|
|
14
|
-
import { getWidgetBinding as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
14
|
+
import { getWidgetBinding as l, getWidgetBindingStatus as ne, reconcilePanelConfig as re, serializeWidgetBinding as ie } from "../../utils/widgetBinding.js";
|
|
15
|
+
import ae from "./ActionConfigDialog.js";
|
|
16
|
+
import oe from "./webhook-config/WebhookConfigPanel.js";
|
|
17
17
|
import "./webhook-config/index.js";
|
|
18
|
-
import
|
|
18
|
+
import se from "./event-logs/EventLogViewer.js";
|
|
19
19
|
import "./event-logs/index.js";
|
|
20
|
-
import
|
|
21
|
-
import { AdvancedSection as
|
|
22
|
-
import { AppearanceSection as
|
|
23
|
-
import { GeneralSection as
|
|
24
|
-
import { DataBindingSection as
|
|
25
|
-
import
|
|
20
|
+
import ce from "./DrilldownConfigPanel.js";
|
|
21
|
+
import { AdvancedSection as le } from "../builder/inspector/AdvancedSection.js";
|
|
22
|
+
import { AppearanceSection as ue } from "../builder/inspector/AppearanceSection.js";
|
|
23
|
+
import { GeneralSection as de } from "../builder/inspector/GeneralSection.js";
|
|
24
|
+
import { DataBindingSection as fe } from "../builder/inspector/DataBindingSection.js";
|
|
25
|
+
import pe from "../builder/inspector/LayoutSection.js";
|
|
26
26
|
import "../builder/inspector/index.js";
|
|
27
|
-
import { DEFAULT_GRID_CONFIG as
|
|
28
|
-
import { isWidgetFormEdited as
|
|
29
|
-
import { memo as
|
|
27
|
+
import { DEFAULT_GRID_CONFIG as me } from "../../utils/widgetPositioning.js";
|
|
28
|
+
import { isWidgetFormEdited as he, withInferredDataSink as ge } from "../../utils/widgetFormDirty.js";
|
|
29
|
+
import { memo as u, useCallback as d, useEffect as f, useMemo as p, useRef as _e, useState as m } from "react";
|
|
30
30
|
import { Check as h, ChevronDown as ve, ChevronUp as ye, ExternalLink as be, Info as xe, Pencil as Se, Plus as Ce, Trash2 as we, X as Te } from "lucide-react";
|
|
31
|
-
import { Button as g, Card as Ee, CardContent as De, Input as _, Label as v, Select as Oe, SelectContent as ke, SelectItem as y, SelectTrigger as Ae, SelectValue as je, Sheet as Me, SheetContent as Ne, SheetDescription as Pe, SheetHeader as Fe, SheetTitle as Ie, Spinner as Le, Tabs as Re, TabsContent as
|
|
32
|
-
import { useUnsavedChanges as
|
|
33
|
-
import { useI18n as
|
|
34
|
-
import { jsx as
|
|
35
|
-
import { toast as
|
|
31
|
+
import { Button as g, Card as Ee, CardContent as De, Input as _, Label as v, Select as Oe, SelectContent as ke, SelectItem as y, SelectTrigger as Ae, SelectValue as je, Sheet as Me, SheetContent as Ne, SheetDescription as Pe, SheetHeader as Fe, SheetTitle as Ie, Spinner as Le, Tabs as Re, TabsContent as b, TabsList as ze, TabsTrigger as x, Textarea as S } from "@burdenoff/fe-libs/ui";
|
|
32
|
+
import { useUnsavedChanges as Be } from "@burdenoff/fe-libs/shared/hooks";
|
|
33
|
+
import { useI18n as Ve } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
34
|
+
import { jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
35
|
+
import { toast as He } from "sonner";
|
|
36
36
|
//#region src/bigconsole/components/widgets/PropertiesPanel.tsx
|
|
37
|
-
var
|
|
37
|
+
var Ue = [
|
|
38
38
|
{
|
|
39
39
|
value: "BIGCONSOLE",
|
|
40
40
|
labelKey: "bigconsole.widget.properties.renderer.bigconsole.label",
|
|
@@ -63,7 +63,7 @@ var We = [
|
|
|
63
63
|
descriptionKey: "bigconsole.widget.properties.renderer.custom.description",
|
|
64
64
|
description: "Custom React component"
|
|
65
65
|
}
|
|
66
|
-
],
|
|
66
|
+
], We = [
|
|
67
67
|
{
|
|
68
68
|
value: "DATASINK",
|
|
69
69
|
labelKey: "bigconsole.widget.properties.dataSourceType.datasink.label",
|
|
@@ -107,16 +107,16 @@ var We = [
|
|
|
107
107
|
description: "Manually enter sample JSON data"
|
|
108
108
|
}
|
|
109
109
|
];
|
|
110
|
-
function
|
|
110
|
+
function Ge(e) {
|
|
111
111
|
return `widget:${e.toLowerCase().replace(/\s+/g, "_")}:clicked`;
|
|
112
112
|
}
|
|
113
|
-
var
|
|
113
|
+
var Ke = {
|
|
114
114
|
PRIMARY: "bg-action-primary-bg",
|
|
115
115
|
SECONDARY: "bg-[var(--color-text-muted)]",
|
|
116
116
|
SUCCESS: "bg-status-success-bg",
|
|
117
117
|
WARNING: "bg-status-warning-bg",
|
|
118
118
|
DANGER: "bg-status-error-bg"
|
|
119
|
-
},
|
|
119
|
+
}, qe = "bg-[var(--color-text-muted)]", Je = {
|
|
120
120
|
fontWeight: "var(--font-weight-semibold)",
|
|
121
121
|
fontSize: "var(--font-size-body-sm)",
|
|
122
122
|
padding: "6px 10px",
|
|
@@ -167,16 +167,16 @@ function Ye(e) {
|
|
|
167
167
|
xAxisField: a
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
|
-
var Xe =
|
|
171
|
-
let { t: r } =
|
|
172
|
-
|
|
170
|
+
var Xe = u(function({ widget: e, onSave: t }) {
|
|
171
|
+
let { t: r } = Ve(), [i, a] = m(""), [o, s] = m(null), c = _e(!1);
|
|
172
|
+
f(() => {
|
|
173
173
|
try {
|
|
174
174
|
a(e.template && typeof e.template == "object" ? JSON.stringify(e.template, null, 2) : ""), s(null), c.current = !0;
|
|
175
175
|
} catch {
|
|
176
176
|
a("");
|
|
177
177
|
}
|
|
178
178
|
}, [e.id, e.template]);
|
|
179
|
-
let
|
|
179
|
+
let ee = d((e) => {
|
|
180
180
|
let n = e.target.value;
|
|
181
181
|
if (a(n), n.trim() === "") s(null), t({});
|
|
182
182
|
else try {
|
|
@@ -185,7 +185,7 @@ var Xe = d(function({ widget: e, onSave: t }) {
|
|
|
185
185
|
} catch (e) {
|
|
186
186
|
s(e.message);
|
|
187
187
|
}
|
|
188
|
-
}, [t]),
|
|
188
|
+
}, [t]), te = d(() => {
|
|
189
189
|
try {
|
|
190
190
|
let e = JSON.parse(i);
|
|
191
191
|
a(JSON.stringify(e, null, 2)), s(null), t(e);
|
|
@@ -193,23 +193,23 @@ var Xe = d(function({ widget: e, onSave: t }) {
|
|
|
193
193
|
s(e.message);
|
|
194
194
|
}
|
|
195
195
|
}, [i, t]);
|
|
196
|
-
return /* @__PURE__ */
|
|
196
|
+
return /* @__PURE__ */ w(n, {
|
|
197
197
|
emphasis: "muted",
|
|
198
198
|
padding: "compact",
|
|
199
199
|
headingLevel: 4,
|
|
200
200
|
title: r("bigconsole.widget.properties.template.label", "Template (JSON)"),
|
|
201
201
|
description: `The ${e.renderer} payload this widget renders.`,
|
|
202
202
|
tone: o ? "danger" : "neutral",
|
|
203
|
-
meta: o ? /* @__PURE__ */
|
|
203
|
+
meta: o ? /* @__PURE__ */ C("span", {
|
|
204
204
|
className: "text-xs font-medium text-[var(--color-status-error-text)]",
|
|
205
205
|
children: r("bigconsole.widget.properties.template.invalidJson", "Invalid JSON")
|
|
206
206
|
}) : void 0,
|
|
207
207
|
className: "mt-form-gap",
|
|
208
208
|
"data-testid": "widget-inspector-template",
|
|
209
209
|
children: [
|
|
210
|
-
/* @__PURE__ */ S
|
|
210
|
+
/* @__PURE__ */ C(S, {
|
|
211
211
|
value: i,
|
|
212
|
-
onChange:
|
|
212
|
+
onChange: ee,
|
|
213
213
|
spellCheck: !1,
|
|
214
214
|
placeholder: r("bigconsole.widget.properties.template.placeholder", "Enter {{renderer}} template JSON...", { renderer: e.renderer ?? "" }),
|
|
215
215
|
style: {
|
|
@@ -220,7 +220,7 @@ var Xe = d(function({ widget: e, onSave: t }) {
|
|
|
220
220
|
resize: "vertical"
|
|
221
221
|
}
|
|
222
222
|
}),
|
|
223
|
-
o && /* @__PURE__ */
|
|
223
|
+
o && /* @__PURE__ */ C("p", {
|
|
224
224
|
style: {
|
|
225
225
|
fontSize: "var(--font-size-body-sm)",
|
|
226
226
|
color: "var(--color-status-error-text)",
|
|
@@ -231,19 +231,19 @@ var Xe = d(function({ widget: e, onSave: t }) {
|
|
|
231
231
|
},
|
|
232
232
|
children: o
|
|
233
233
|
}),
|
|
234
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ w("div", {
|
|
235
235
|
className: "mt-control-gap flex flex-wrap items-center gap-control-gap",
|
|
236
|
-
children: [/* @__PURE__ */
|
|
236
|
+
children: [/* @__PURE__ */ C(g, {
|
|
237
237
|
variant: "outline",
|
|
238
238
|
size: "sm",
|
|
239
|
-
onClick:
|
|
239
|
+
onClick: te,
|
|
240
240
|
disabled: !!o || i.trim() === "",
|
|
241
241
|
style: {
|
|
242
242
|
height: "var(--size-controlHeight-sm)",
|
|
243
243
|
fontWeight: "var(--font-weight-semibold)"
|
|
244
244
|
},
|
|
245
245
|
children: r("bigconsole.widget.properties.template.format", "Format")
|
|
246
|
-
}), !o && i.trim() !== "" && /* @__PURE__ */
|
|
246
|
+
}), !o && i.trim() !== "" && /* @__PURE__ */ w("span", {
|
|
247
247
|
style: {
|
|
248
248
|
fontSize: "var(--font-size-body-sm)",
|
|
249
249
|
color: "var(--color-status-success-text)",
|
|
@@ -251,20 +251,20 @@ var Xe = d(function({ widget: e, onSave: t }) {
|
|
|
251
251
|
alignItems: "center",
|
|
252
252
|
gap: "4px"
|
|
253
253
|
},
|
|
254
|
-
children: [/* @__PURE__ */
|
|
254
|
+
children: [/* @__PURE__ */ C(h, { style: {
|
|
255
255
|
width: "12px",
|
|
256
256
|
height: "12px"
|
|
257
257
|
} }), r("bigconsole.widget.properties.template.validJson", "Valid JSON")]
|
|
258
258
|
})]
|
|
259
259
|
}),
|
|
260
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ w("div", {
|
|
261
261
|
className: "mt-control-gap flex flex-wrap items-center justify-between gap-x-4 gap-y-1 border-t border-[var(--color-border-subtle)] pt-control-gap text-xs text-text-muted",
|
|
262
262
|
children: [
|
|
263
|
-
/* @__PURE__ */
|
|
263
|
+
/* @__PURE__ */ C("span", {
|
|
264
264
|
className: "font-medium",
|
|
265
265
|
children: r("bigconsole.widget.properties.template.ctrlSToSave", "Ctrl+S to save")
|
|
266
266
|
}),
|
|
267
|
-
e.renderer === "ADAPTIVE_CARD" && /* @__PURE__ */
|
|
267
|
+
e.renderer === "ADAPTIVE_CARD" && /* @__PURE__ */ w("a", {
|
|
268
268
|
href: "https://adaptivecards.io/designer/",
|
|
269
269
|
target: "_blank",
|
|
270
270
|
rel: "noopener noreferrer",
|
|
@@ -277,12 +277,12 @@ var Xe = d(function({ widget: e, onSave: t }) {
|
|
|
277
277
|
fontWeight: "var(--font-weight-medium)",
|
|
278
278
|
textDecoration: "none"
|
|
279
279
|
},
|
|
280
|
-
children: [r("bigconsole.widget.properties.template.designer", "Designer"), /* @__PURE__ */
|
|
280
|
+
children: [r("bigconsole.widget.properties.template.designer", "Designer"), /* @__PURE__ */ C(be, { style: {
|
|
281
281
|
height: "var(--size-icon-sm)",
|
|
282
282
|
width: "var(--size-icon-sm)"
|
|
283
283
|
} })]
|
|
284
284
|
}),
|
|
285
|
-
e.renderer === "BLOCKKIT" && /* @__PURE__ */
|
|
285
|
+
e.renderer === "BLOCKKIT" && /* @__PURE__ */ w("a", {
|
|
286
286
|
href: "https://app.slack.com/block-kit-builder",
|
|
287
287
|
target: "_blank",
|
|
288
288
|
rel: "noopener noreferrer",
|
|
@@ -295,7 +295,7 @@ var Xe = d(function({ widget: e, onSave: t }) {
|
|
|
295
295
|
fontWeight: "var(--font-weight-medium)",
|
|
296
296
|
textDecoration: "none"
|
|
297
297
|
},
|
|
298
|
-
children: [r("bigconsole.widget.properties.template.blockKitBuilder", "Block Kit Builder"), /* @__PURE__ */
|
|
298
|
+
children: [r("bigconsole.widget.properties.template.blockKitBuilder", "Block Kit Builder"), /* @__PURE__ */ C(be, { style: {
|
|
299
299
|
height: "var(--size-icon-sm)",
|
|
300
300
|
width: "var(--size-icon-sm)"
|
|
301
301
|
} })]
|
|
@@ -306,7 +306,7 @@ var Xe = d(function({ widget: e, onSave: t }) {
|
|
|
306
306
|
});
|
|
307
307
|
});
|
|
308
308
|
function Ze(e) {
|
|
309
|
-
let t = e, n =
|
|
309
|
+
let t = e, n = l({
|
|
310
310
|
dataSinkId: t.dataSinkId,
|
|
311
311
|
parserId: t.parserId,
|
|
312
312
|
config: e.config || {}
|
|
@@ -333,24 +333,24 @@ function Ze(e) {
|
|
|
333
333
|
} : void 0
|
|
334
334
|
};
|
|
335
335
|
}
|
|
336
|
-
var T =
|
|
337
|
-
let { t: T } =
|
|
338
|
-
|
|
336
|
+
var T = u(function({ isOpen: u, onClose: be }) {
|
|
337
|
+
let { t: T } = Ve(), [Qe, $e] = m("general"), [E, D] = m("idle"), [O, k] = m(null), [A, j] = m(!1), [et, M] = m(null);
|
|
338
|
+
Be({
|
|
339
339
|
id: "dashboard-widget-properties",
|
|
340
340
|
label: T("bigconsole.assistant.unsaved.widgetProperties", "the widget properties"),
|
|
341
|
-
dirty:
|
|
341
|
+
dirty: he(O, et)
|
|
342
342
|
});
|
|
343
343
|
let N = e((e) => e.selectedWidgetId), tt = e((e) => e.widgets), P = e((e) => e.updateWidget), nt = e((e) => e.updateWidgetPosition), rt = t(), F = N ? tt.get(N) : void 0, it = F ? {
|
|
344
344
|
x: F.position?.x ?? F.positionX ?? 0,
|
|
345
345
|
y: F.position?.y ?? F.positionY ?? 0,
|
|
346
346
|
width: F.position?.width ?? F.positionWidth ?? 4,
|
|
347
347
|
height: F.position?.height ?? F.positionHeight ?? 4
|
|
348
|
-
} : null, at =
|
|
348
|
+
} : null, at = d((e) => {
|
|
349
349
|
N && nt(N, e);
|
|
350
|
-
}, [N, nt]), ot = _e(null), st = _e({}), ct = _e(0), I =
|
|
350
|
+
}, [N, nt]), ot = _e(null), st = _e({}), ct = _e(0), I = d(() => {
|
|
351
351
|
ct.current += 1, j(!0);
|
|
352
352
|
}, []);
|
|
353
|
-
|
|
353
|
+
f(() => {
|
|
354
354
|
if (!N) {
|
|
355
355
|
ot.current = null, k(null), M(null), j(!1), D("idle");
|
|
356
356
|
return;
|
|
@@ -366,13 +366,13 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
366
366
|
F,
|
|
367
367
|
A
|
|
368
368
|
]);
|
|
369
|
-
let { updateWidget: lt } =
|
|
369
|
+
let { updateWidget: lt } = i(F?.pageId, F?.dashboardId, { skipFetch: !0 }), { createDrilldown: ut, updateDrilldown: dt, deleteDrilldown: ft } = o(), { dataSinks: L } = ee({ skipFetch: !1 }), [pt, R] = m(null), { executeParser: mt, fetchParser: ht } = te({
|
|
370
370
|
consoleId: F?.dashboardId,
|
|
371
371
|
skipFetch: !0
|
|
372
372
|
}), [z, gt] = m(null), [_t, vt] = m(!1), yt = O?.parserId;
|
|
373
|
-
|
|
373
|
+
f(() => {
|
|
374
374
|
let e = !1;
|
|
375
|
-
if (gt(null), !
|
|
375
|
+
if (gt(null), !u || !yt) {
|
|
376
376
|
vt(!1);
|
|
377
377
|
return;
|
|
378
378
|
}
|
|
@@ -382,25 +382,26 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
382
382
|
e = !0;
|
|
383
383
|
};
|
|
384
384
|
}, [
|
|
385
|
-
|
|
385
|
+
u,
|
|
386
386
|
yt,
|
|
387
387
|
N,
|
|
388
388
|
ht
|
|
389
389
|
]);
|
|
390
390
|
let [bt, xt] = m(!1), [St, B] = m(void 0), [Ct, V] = m(!1), [wt, H] = m(null);
|
|
391
|
-
|
|
391
|
+
f(() => {
|
|
392
392
|
B(void 0), V(!1), H(null), xt(!1);
|
|
393
393
|
}, [N]);
|
|
394
|
-
let { actions: U, loading: Tt, createAction: Et, updateAction: Dt, deleteAction: Ot, reorderActions:
|
|
394
|
+
let { actions: U, loading: W, error: G, refetch: Tt, createAction: Et, updateAction: Dt, deleteAction: Ot, reorderActions: K } = s(N || void 0), { webhooks: kt, loading: At, error: q, createWebhook: jt, updateWebhook: Mt, deleteWebhook: Nt, refetch: Pt } = c({
|
|
395
395
|
widgetId: N || void 0,
|
|
396
396
|
skipFetch: !N
|
|
397
|
-
}),
|
|
398
|
-
let n =
|
|
397
|
+
}), Ft = d((e, t) => {
|
|
398
|
+
let n = Ge(t);
|
|
399
399
|
return e.find((e) => e.widgetId === N && e.eventPattern === n) ?? null;
|
|
400
|
-
}, [N]),
|
|
400
|
+
}, [N]), J = d((e) => Ft(kt, e), [Ft, kt]), It = d(async (e, t) => {
|
|
401
401
|
if (!N || t === void 0) return !0;
|
|
402
|
-
|
|
403
|
-
|
|
402
|
+
if (q) return !1;
|
|
403
|
+
let n = Ge(e), r = J(e);
|
|
404
|
+
return !r && At && (r = Ft((await Pt())?.data?.listEventWebhookMappings ?? [], e)), t && t.url ? r ? await Mt({
|
|
404
405
|
id: r.id,
|
|
405
406
|
eventPattern: n,
|
|
406
407
|
webhookUrl: t.url,
|
|
@@ -411,37 +412,46 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
411
412
|
eventPattern: n,
|
|
412
413
|
webhookUrl: t.url,
|
|
413
414
|
method: t.method
|
|
414
|
-
}) !== null : t === null && r ?
|
|
415
|
+
}) !== null : t === null && r ? Nt(r.id) : !0;
|
|
415
416
|
}, [
|
|
416
417
|
N,
|
|
417
|
-
|
|
418
|
+
J,
|
|
418
419
|
At,
|
|
419
|
-
|
|
420
|
-
|
|
420
|
+
q,
|
|
421
|
+
Pt,
|
|
422
|
+
Ft,
|
|
421
423
|
jt,
|
|
422
424
|
Mt,
|
|
423
|
-
|
|
424
|
-
]), [
|
|
425
|
-
if (!
|
|
426
|
-
let e =
|
|
425
|
+
Nt
|
|
426
|
+
]), [Lt, Rt] = m(!1), [zt, Y] = m(void 0), [Bt, Vt] = m(!1), [Ht, X] = m(void 0), [Ut, Z] = m(null), Wt = p(() => {
|
|
427
|
+
if (!zt) return null;
|
|
428
|
+
let e = J(zt.name);
|
|
427
429
|
return e ? {
|
|
428
430
|
url: e.webhookUrl,
|
|
429
431
|
method: e.method
|
|
430
432
|
} : null;
|
|
431
|
-
}, [
|
|
433
|
+
}, [zt, J]), Gt = Ht === void 0 ? Wt : Ht, Kt = p(() => {
|
|
432
434
|
let e = /* @__PURE__ */ new Map();
|
|
433
435
|
for (let t of U) {
|
|
434
|
-
let n =
|
|
436
|
+
let n = J(t.name);
|
|
435
437
|
n && e.set(t.name, n);
|
|
436
438
|
}
|
|
437
439
|
return e;
|
|
438
|
-
}, [U,
|
|
439
|
-
X(void 0), Z(null), Y(void 0),
|
|
440
|
-
}, []),
|
|
441
|
-
X(void 0), Z(null), Y(e),
|
|
442
|
-
}, []),
|
|
440
|
+
}, [U, J]), qt = d(() => {
|
|
441
|
+
X(void 0), Z(null), Y(void 0), Rt(!0);
|
|
442
|
+
}, []), Jt = d((e) => {
|
|
443
|
+
X(void 0), Z(null), Y(e), Rt(!0);
|
|
444
|
+
}, []), Yt = d(async (e, t) => {
|
|
443
445
|
if (N) {
|
|
444
|
-
|
|
446
|
+
if (G) {
|
|
447
|
+
Z(T("bigconsole.widget.properties.actions.readFailed", "Buttons could not be verified. Retry before saving."));
|
|
448
|
+
return;
|
|
449
|
+
}
|
|
450
|
+
if (q) {
|
|
451
|
+
Z(T("bigconsole.widget.properties.action.webhookReadFailed", "Webhook mappings could not be verified. Retry the webhook read before saving."));
|
|
452
|
+
return;
|
|
453
|
+
}
|
|
454
|
+
Vt(!0), Z(null);
|
|
445
455
|
try {
|
|
446
456
|
let n = "id" in e && !!e.id, r = null;
|
|
447
457
|
if (r = n ? await Dt(e) : await Et(e), r) {
|
|
@@ -450,32 +460,34 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
450
460
|
let t = e.findIndex((e) => e.id === r?.id);
|
|
451
461
|
t >= 0 && (e[t] = r);
|
|
452
462
|
} else e.push(r);
|
|
453
|
-
if (P(N, { actions: e.sort((e, t) => e.order - t.order) }), !await
|
|
463
|
+
if (P(N, { actions: e.sort((e, t) => e.order - t.order) }), !await It(r.name, t)) {
|
|
454
464
|
X(t), Z(t ? T("bigconsole.widget.properties.action.webhookSaveFailed", "The button was saved, but its webhook could not be saved. Check the URL and try again.") : T("bigconsole.widget.properties.action.webhookRemoveFailed", "The button was saved, but its old webhook could not be removed. Try again.")), Y(r);
|
|
455
465
|
return;
|
|
456
466
|
}
|
|
457
|
-
X(void 0), Z(null),
|
|
467
|
+
X(void 0), Z(null), Rt(!1), Y(void 0);
|
|
458
468
|
}
|
|
459
469
|
} catch (e) {
|
|
460
470
|
console.warn("Failed to save widget action:", e), Z(e instanceof Error ? e.message : T("bigconsole.widget.properties.action.saveFailed", "Could not save the button. Please try again."));
|
|
461
471
|
} finally {
|
|
462
|
-
|
|
472
|
+
Vt(!1);
|
|
463
473
|
}
|
|
464
474
|
}
|
|
465
475
|
}, [
|
|
466
476
|
N,
|
|
477
|
+
q,
|
|
478
|
+
G,
|
|
467
479
|
U,
|
|
468
480
|
Et,
|
|
469
481
|
Dt,
|
|
470
482
|
P,
|
|
471
|
-
|
|
483
|
+
It,
|
|
472
484
|
T
|
|
473
|
-
]),
|
|
485
|
+
]), Xt = d(async (e) => {
|
|
474
486
|
if (N && window.confirm(T("bigconsole.widget.properties.action.deleteConfirm", "Are you sure you want to delete this action?"))) {
|
|
475
487
|
let t = U.find((t) => t.id === e);
|
|
476
488
|
if (await Ot(e) && (P(N, { actions: U.filter((t) => t.id !== e) }), t)) {
|
|
477
|
-
let e =
|
|
478
|
-
e && await
|
|
489
|
+
let e = J(t.name);
|
|
490
|
+
e && await Nt(e.id);
|
|
479
491
|
}
|
|
480
492
|
}
|
|
481
493
|
}, [
|
|
@@ -483,56 +495,56 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
483
495
|
U,
|
|
484
496
|
Ot,
|
|
485
497
|
P,
|
|
486
|
-
|
|
487
|
-
|
|
498
|
+
J,
|
|
499
|
+
Nt,
|
|
488
500
|
T
|
|
489
|
-
]),
|
|
501
|
+
]), Zt = d(async (e) => {
|
|
490
502
|
if (!N || e === 0) return;
|
|
491
503
|
let t = [...U].sort((e, t) => e.order - t.order), n = t.map((e) => e.id);
|
|
492
|
-
[n[e - 1], n[e]] = [n[e], n[e - 1]], await
|
|
504
|
+
[n[e - 1], n[e]] = [n[e], n[e - 1]], await K(n) && P(N, { actions: t.map((e, t) => ({
|
|
493
505
|
...e,
|
|
494
506
|
order: n.indexOf(e.id)
|
|
495
507
|
})).sort((e, t) => e.order - t.order) });
|
|
496
508
|
}, [
|
|
497
509
|
N,
|
|
498
510
|
U,
|
|
499
|
-
|
|
511
|
+
K,
|
|
500
512
|
P
|
|
501
|
-
]),
|
|
513
|
+
]), Qt = d(async (e) => {
|
|
502
514
|
if (!N) return;
|
|
503
515
|
let t = [...U].sort((e, t) => e.order - t.order);
|
|
504
516
|
if (e === t.length - 1) return;
|
|
505
517
|
let n = t.map((e) => e.id);
|
|
506
|
-
[n[e], n[e + 1]] = [n[e + 1], n[e]], await
|
|
518
|
+
[n[e], n[e + 1]] = [n[e + 1], n[e]], await K(n) && P(N, { actions: t.map((e, t) => ({
|
|
507
519
|
...e,
|
|
508
520
|
order: n.indexOf(e.id)
|
|
509
521
|
})).sort((e, t) => e.order - t.order) });
|
|
510
522
|
}, [
|
|
511
523
|
N,
|
|
512
524
|
U,
|
|
513
|
-
|
|
525
|
+
K,
|
|
514
526
|
P
|
|
515
527
|
]);
|
|
516
|
-
|
|
517
|
-
N && U.length >= 0 && !
|
|
528
|
+
f(() => {
|
|
529
|
+
N && U.length >= 0 && !W && P(N, { actions: U });
|
|
518
530
|
}, [
|
|
519
531
|
N,
|
|
520
532
|
U,
|
|
521
|
-
|
|
533
|
+
W,
|
|
522
534
|
P
|
|
523
535
|
]);
|
|
524
|
-
let Q =
|
|
536
|
+
let Q = d((e, t) => {
|
|
525
537
|
k((n) => n && {
|
|
526
538
|
...n,
|
|
527
539
|
[e]: t
|
|
528
540
|
}), I();
|
|
529
|
-
}, [I]), $ =
|
|
541
|
+
}, [I]), $ = d((e) => {
|
|
530
542
|
k((t) => t && {
|
|
531
543
|
...t,
|
|
532
544
|
config: e
|
|
533
545
|
}), I();
|
|
534
546
|
}, [I]);
|
|
535
|
-
|
|
547
|
+
f(() => {
|
|
536
548
|
if (!O) {
|
|
537
549
|
R(null);
|
|
538
550
|
return;
|
|
@@ -541,17 +553,17 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
541
553
|
R(L.find((e) => e.id === O.dataSinkId)?.key ?? null);
|
|
542
554
|
return;
|
|
543
555
|
}
|
|
544
|
-
let e =
|
|
556
|
+
let e = l({
|
|
545
557
|
parserId: O.parserId,
|
|
546
558
|
config: O.config
|
|
547
559
|
}), t = z?.id === O.parserId ? z : null, n = e.source.kind === "DATASINK" && !e.source.ref && t ? L.find((e) => e.key === t.inputSinkKey) : void 0;
|
|
548
|
-
R(n?.key ?? null), n && t && (k((e) =>
|
|
560
|
+
R(n?.key ?? null), n && t && (k((e) => ge(e, t.id, n.id)), M((e) => ge(e, t.id, n.id)));
|
|
549
561
|
}, [
|
|
550
562
|
O,
|
|
551
563
|
L,
|
|
552
564
|
z
|
|
553
565
|
]);
|
|
554
|
-
let
|
|
566
|
+
let $t = d((e) => {
|
|
555
567
|
if (B(void 0), V(!1), H(null), R(e), e) {
|
|
556
568
|
let t = L.find((t) => t.key === e);
|
|
557
569
|
t && (Q("dataSinkId", t.id), k((t) => t && {
|
|
@@ -573,7 +585,7 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
573
585
|
L,
|
|
574
586
|
Q,
|
|
575
587
|
I
|
|
576
|
-
]),
|
|
588
|
+
]), en = d(async (e) => {
|
|
577
589
|
if (Q("parserId", e || void 0), B(void 0), V(!1), H(null), e && F) {
|
|
578
590
|
xt(!0);
|
|
579
591
|
try {
|
|
@@ -602,7 +614,7 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
602
614
|
F,
|
|
603
615
|
I,
|
|
604
616
|
T
|
|
605
|
-
]),
|
|
617
|
+
]), tn = d(async () => {
|
|
606
618
|
if (!F || !O) return;
|
|
607
619
|
let t = ct.current;
|
|
608
620
|
D("saving");
|
|
@@ -610,7 +622,7 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
610
622
|
let n = {
|
|
611
623
|
...F.metadata || {},
|
|
612
624
|
description: O.description || ""
|
|
613
|
-
}, r =
|
|
625
|
+
}, r = re(e.getState().widgets.get(F.id)?.config ?? {}, st.current, O.config), i = ie(l({
|
|
614
626
|
dataSinkId: O.dataSinkId,
|
|
615
627
|
parserId: O.parserId,
|
|
616
628
|
config: {
|
|
@@ -635,7 +647,7 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
635
647
|
let { enabled: e, targetDashboardId: t, targetPageId: n, navigationMode: r, parameterMapping: i, passGlobalFilters: a, maxDepth: s } = O.drilldownConfig;
|
|
636
648
|
if (c && !e) await ft(c), o = void 0;
|
|
637
649
|
else if (c) {
|
|
638
|
-
let
|
|
650
|
+
let ee = await dt({
|
|
639
651
|
id: c,
|
|
640
652
|
targetDashboardId: t,
|
|
641
653
|
targetPageId: n,
|
|
@@ -645,7 +657,7 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
645
657
|
passGlobalFilters: a,
|
|
646
658
|
maxDepth: s
|
|
647
659
|
});
|
|
648
|
-
|
|
660
|
+
ee && (o = ee);
|
|
649
661
|
} else if (e && t) {
|
|
650
662
|
let e = await ut({
|
|
651
663
|
sourceWidgetId: F.id,
|
|
@@ -677,7 +689,7 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
677
689
|
drilldown: o,
|
|
678
690
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
679
691
|
}), s) {
|
|
680
|
-
D("error"),
|
|
692
|
+
D("error"), He.error(T("bigconsole.widget.drilldown.saveFailed", "Drilldown not saved"), { description: s.message });
|
|
681
693
|
return;
|
|
682
694
|
}
|
|
683
695
|
D("saved"), M(O), ct.current === t && j(!1), setTimeout(() => D("idle"), 2e3);
|
|
@@ -694,30 +706,30 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
694
706
|
dt,
|
|
695
707
|
ft,
|
|
696
708
|
T
|
|
697
|
-
]),
|
|
709
|
+
]), nn = d(() => {
|
|
698
710
|
if (!F) return;
|
|
699
711
|
let e = Ze(F);
|
|
700
712
|
k(e), M(e), st.current = F.config || {}, j(!1), D("idle");
|
|
701
|
-
}, [F]),
|
|
713
|
+
}, [F]), rn = d((e) => {
|
|
702
714
|
$(e);
|
|
703
|
-
}, [$]),
|
|
715
|
+
}, [$]), an = d((e) => {
|
|
704
716
|
k((t) => t && {
|
|
705
717
|
...t,
|
|
706
718
|
drilldownConfig: e
|
|
707
719
|
}), I();
|
|
708
|
-
}, [I]),
|
|
720
|
+
}, [I]), on = F ? a(F.type) : null, sn = p(() => Ue.map((e) => ({
|
|
709
721
|
value: e.value,
|
|
710
722
|
label: T(e.labelKey, e.label),
|
|
711
723
|
description: T(e.descriptionKey, e.description)
|
|
712
|
-
})), [T]),
|
|
724
|
+
})), [T]), cn = p(() => We.map((e) => ({
|
|
713
725
|
value: e.value,
|
|
714
726
|
label: T(e.labelKey, e.label)
|
|
715
727
|
})), [T]);
|
|
716
|
-
return /* @__PURE__ */
|
|
717
|
-
open:
|
|
728
|
+
return /* @__PURE__ */ C(Me, {
|
|
729
|
+
open: u,
|
|
718
730
|
onOpenChange: (e) => !e && be(),
|
|
719
731
|
modal: !1,
|
|
720
|
-
children: /* @__PURE__ */
|
|
732
|
+
children: /* @__PURE__ */ w(Ne, {
|
|
721
733
|
style: {
|
|
722
734
|
width: "min(420px, 100vw)",
|
|
723
735
|
maxWidth: "100vw",
|
|
@@ -728,20 +740,20 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
728
740
|
overflow: "hidden"
|
|
729
741
|
},
|
|
730
742
|
children: [
|
|
731
|
-
/* @__PURE__ */
|
|
743
|
+
/* @__PURE__ */ C(Fe, {
|
|
732
744
|
style: {
|
|
733
745
|
padding: "var(--space-cardPadding)",
|
|
734
746
|
borderBottom: "1px solid var(--color-border-subtle)",
|
|
735
747
|
backgroundColor: "var(--color-bg-surface)",
|
|
736
748
|
flexShrink: 0
|
|
737
749
|
},
|
|
738
|
-
children: /* @__PURE__ */
|
|
750
|
+
children: /* @__PURE__ */ w("div", {
|
|
739
751
|
style: {
|
|
740
752
|
display: "flex",
|
|
741
753
|
alignItems: "center",
|
|
742
754
|
gap: "var(--space-controlGap)"
|
|
743
755
|
},
|
|
744
|
-
children: [/* @__PURE__ */
|
|
756
|
+
children: [/* @__PURE__ */ C("div", {
|
|
745
757
|
style: {
|
|
746
758
|
display: "flex",
|
|
747
759
|
height: "var(--size-controlHeight-lg)",
|
|
@@ -753,24 +765,24 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
753
765
|
boxShadow: "var(--shadow-elevation-2)",
|
|
754
766
|
flexShrink: 0
|
|
755
767
|
},
|
|
756
|
-
children: /* @__PURE__ */
|
|
768
|
+
children: /* @__PURE__ */ C(xe, { style: {
|
|
757
769
|
height: "var(--size-icon-md)",
|
|
758
770
|
width: "var(--size-icon-md)",
|
|
759
771
|
color: "var(--color-action-primary-text)"
|
|
760
772
|
} })
|
|
761
|
-
}), /* @__PURE__ */
|
|
773
|
+
}), /* @__PURE__ */ w("div", {
|
|
762
774
|
style: {
|
|
763
775
|
flex: 1,
|
|
764
776
|
minWidth: 0
|
|
765
777
|
},
|
|
766
|
-
children: [/* @__PURE__ */
|
|
778
|
+
children: [/* @__PURE__ */ w("div", {
|
|
767
779
|
style: {
|
|
768
780
|
display: "flex",
|
|
769
781
|
alignItems: "center",
|
|
770
782
|
gap: "var(--space-iconGap)"
|
|
771
783
|
},
|
|
772
784
|
children: [
|
|
773
|
-
/* @__PURE__ */
|
|
785
|
+
/* @__PURE__ */ C(Ie, {
|
|
774
786
|
style: {
|
|
775
787
|
fontSize: "var(--font-size-body-md)",
|
|
776
788
|
fontWeight: "var(--font-weight-bold)",
|
|
@@ -779,34 +791,34 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
779
791
|
},
|
|
780
792
|
children: F ? T("bigconsole.widget.properties.header.widgetProperties", "Widget Properties") : T("bigconsole.widget.properties.header.properties", "Properties")
|
|
781
793
|
}),
|
|
782
|
-
E === "saving" && /* @__PURE__ */
|
|
794
|
+
E === "saving" && /* @__PURE__ */ C(Le, { style: {
|
|
783
795
|
height: "var(--size-icon-sm)",
|
|
784
796
|
width: "var(--size-icon-sm)"
|
|
785
797
|
} }),
|
|
786
|
-
E === "saved" && /* @__PURE__ */
|
|
798
|
+
E === "saved" && /* @__PURE__ */ C(h, { style: {
|
|
787
799
|
height: "var(--size-icon-sm)",
|
|
788
800
|
width: "var(--size-icon-sm)",
|
|
789
801
|
color: "var(--color-status-success-bg)"
|
|
790
802
|
} }),
|
|
791
|
-
E === "error" && /* @__PURE__ */
|
|
803
|
+
E === "error" && /* @__PURE__ */ C(Te, { style: {
|
|
792
804
|
height: "var(--size-icon-sm)",
|
|
793
805
|
width: "var(--size-icon-sm)",
|
|
794
806
|
color: "var(--color-status-error-bg)"
|
|
795
807
|
} })
|
|
796
808
|
]
|
|
797
|
-
}),
|
|
809
|
+
}), on && /* @__PURE__ */ C(Pe, {
|
|
798
810
|
style: {
|
|
799
811
|
fontSize: "var(--font-size-body-sm)",
|
|
800
812
|
color: "var(--color-text-secondary)",
|
|
801
813
|
margin: "var(--space-controlGap) 0 0 0",
|
|
802
814
|
fontWeight: "var(--font-weight-medium)"
|
|
803
815
|
},
|
|
804
|
-
children:
|
|
816
|
+
children: on.name
|
|
805
817
|
})]
|
|
806
818
|
})]
|
|
807
819
|
})
|
|
808
820
|
}),
|
|
809
|
-
F ? /* @__PURE__ */
|
|
821
|
+
F ? /* @__PURE__ */ w(Re, {
|
|
810
822
|
value: Qe,
|
|
811
823
|
onValueChange: (e) => $e(e),
|
|
812
824
|
style: {
|
|
@@ -816,7 +828,7 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
816
828
|
minHeight: 0,
|
|
817
829
|
overflow: "hidden"
|
|
818
830
|
},
|
|
819
|
-
children: [/* @__PURE__ */
|
|
831
|
+
children: [/* @__PURE__ */ w(ze, {
|
|
820
832
|
style: {
|
|
821
833
|
width: "100%",
|
|
822
834
|
display: "flex",
|
|
@@ -832,28 +844,28 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
832
844
|
gap: "2px"
|
|
833
845
|
},
|
|
834
846
|
children: [
|
|
835
|
-
/* @__PURE__ */
|
|
847
|
+
/* @__PURE__ */ C(x, {
|
|
836
848
|
value: "general",
|
|
837
|
-
style:
|
|
849
|
+
style: Je,
|
|
838
850
|
children: T("bigconsole.widget.properties.tab.general", "General")
|
|
839
851
|
}),
|
|
840
|
-
/* @__PURE__ */
|
|
852
|
+
/* @__PURE__ */ C(x, {
|
|
841
853
|
value: "data",
|
|
842
|
-
style:
|
|
854
|
+
style: Je,
|
|
843
855
|
children: T("bigconsole.widget.properties.tab.data", "Data")
|
|
844
856
|
}),
|
|
845
|
-
/* @__PURE__ */
|
|
857
|
+
/* @__PURE__ */ C(x, {
|
|
846
858
|
value: "advanced",
|
|
847
|
-
style:
|
|
859
|
+
style: Je,
|
|
848
860
|
children: T("bigconsole.widget.properties.tab.advanced", "Advanced")
|
|
849
861
|
}),
|
|
850
|
-
/* @__PURE__ */
|
|
862
|
+
/* @__PURE__ */ C(x, {
|
|
851
863
|
value: "appearance",
|
|
852
|
-
style:
|
|
864
|
+
style: Je,
|
|
853
865
|
children: T("bigconsole.widget.properties.tab.style", "Style")
|
|
854
866
|
})
|
|
855
867
|
]
|
|
856
|
-
}), /* @__PURE__ */
|
|
868
|
+
}), /* @__PURE__ */ w("div", {
|
|
857
869
|
style: {
|
|
858
870
|
flex: 1,
|
|
859
871
|
overflow: "auto",
|
|
@@ -861,11 +873,11 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
861
873
|
minHeight: 0
|
|
862
874
|
},
|
|
863
875
|
children: [
|
|
864
|
-
/* @__PURE__ */
|
|
876
|
+
/* @__PURE__ */ C(b, {
|
|
865
877
|
value: "general",
|
|
866
878
|
className: "mt-0",
|
|
867
|
-
children: O && /* @__PURE__ */
|
|
868
|
-
/* @__PURE__ */
|
|
879
|
+
children: O && /* @__PURE__ */ w(r, { children: [
|
|
880
|
+
/* @__PURE__ */ C(de, {
|
|
869
881
|
title: O.title,
|
|
870
882
|
description: O.description,
|
|
871
883
|
refreshInterval: O.refreshInterval,
|
|
@@ -873,84 +885,92 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
873
885
|
onDescriptionChange: (e) => Q("description", e),
|
|
874
886
|
onRefreshIntervalChange: (e) => Q("refreshInterval", e)
|
|
875
887
|
}),
|
|
876
|
-
/* @__PURE__ */
|
|
888
|
+
/* @__PURE__ */ C(n, {
|
|
877
889
|
title: T("bigconsole.widget.properties.actions.heading", "Buttons"),
|
|
878
890
|
description: T("bigconsole.widget.properties.actions.subheading", "Configure buttons on this widget"),
|
|
879
891
|
headingLevel: 3,
|
|
880
|
-
meta: U.length > 0 ? /* @__PURE__ */
|
|
892
|
+
meta: U.length > 0 ? /* @__PURE__ */ C("span", {
|
|
881
893
|
className: "rounded-pill bg-bg-sunken px-2 py-0.5 text-xs font-medium text-text-secondary",
|
|
882
894
|
children: U.length
|
|
883
895
|
}) : void 0,
|
|
884
|
-
actions: /* @__PURE__ */
|
|
896
|
+
actions: !G && /* @__PURE__ */ w(g, {
|
|
885
897
|
size: "sm",
|
|
886
|
-
onClick:
|
|
887
|
-
children: [/* @__PURE__ */
|
|
898
|
+
onClick: qt,
|
|
899
|
+
children: [/* @__PURE__ */ C(Ce, { className: "size-4" }), T("bigconsole.widget.properties.actions.add", "Add button")]
|
|
888
900
|
}),
|
|
889
901
|
"data-testid": "widget-inspector-actions",
|
|
890
|
-
children:
|
|
902
|
+
children: G ? /* @__PURE__ */ w("div", {
|
|
903
|
+
role: "alert",
|
|
904
|
+
children: [/* @__PURE__ */ C("p", { children: T("bigconsole.widget.properties.actions.readFailed", "Buttons could not be verified. Retry before saving.") }), /* @__PURE__ */ C(g, {
|
|
905
|
+
size: "sm",
|
|
906
|
+
disabled: W,
|
|
907
|
+
onClick: () => void Promise.resolve(Tt()).catch(() => {}),
|
|
908
|
+
children: T("bigconsole.widget.properties.actions.retry", "Retry")
|
|
909
|
+
})]
|
|
910
|
+
}) : W ? /* @__PURE__ */ C("div", {
|
|
891
911
|
className: "flex justify-center py-8",
|
|
892
|
-
children: /* @__PURE__ */
|
|
893
|
-
}) : U.length === 0 ? /* @__PURE__ */
|
|
912
|
+
children: /* @__PURE__ */ C(Le, { className: "size-6" })
|
|
913
|
+
}) : U.length === 0 ? /* @__PURE__ */ C("p", {
|
|
894
914
|
className: "text-sm text-text-secondary",
|
|
895
915
|
children: T("bigconsole.widget.properties.actions.empty", "No buttons yet — add one to let viewers take an action.")
|
|
896
|
-
}) : /* @__PURE__ */
|
|
916
|
+
}) : /* @__PURE__ */ C("div", {
|
|
897
917
|
className: "space-y-2",
|
|
898
|
-
children: [...U].sort((e, t) => e.order - t.order).map((e, t) => /* @__PURE__ */
|
|
918
|
+
children: [...U].sort((e, t) => e.order - t.order).map((e, t) => /* @__PURE__ */ C(Ee, {
|
|
899
919
|
className: e.disabled ? "opacity-60" : "",
|
|
900
|
-
children: /* @__PURE__ */
|
|
920
|
+
children: /* @__PURE__ */ w(De, {
|
|
901
921
|
className: "p-3 flex items-center gap-2",
|
|
902
922
|
children: [
|
|
903
|
-
/* @__PURE__ */
|
|
923
|
+
/* @__PURE__ */ w("div", {
|
|
904
924
|
className: "flex flex-col gap-0.5",
|
|
905
|
-
children: [/* @__PURE__ */
|
|
925
|
+
children: [/* @__PURE__ */ C(g, {
|
|
906
926
|
variant: "ghost",
|
|
907
927
|
size: "icon-sm",
|
|
908
|
-
onClick: () =>
|
|
928
|
+
onClick: () => Zt(t),
|
|
909
929
|
disabled: t === 0,
|
|
910
930
|
className: "h-5 w-5",
|
|
911
|
-
children: /* @__PURE__ */
|
|
912
|
-
}), /* @__PURE__ */
|
|
931
|
+
children: /* @__PURE__ */ C(ye, { className: "size-3" })
|
|
932
|
+
}), /* @__PURE__ */ C(g, {
|
|
913
933
|
variant: "ghost",
|
|
914
934
|
size: "icon-sm",
|
|
915
|
-
onClick: () =>
|
|
935
|
+
onClick: () => Qt(t),
|
|
916
936
|
disabled: t === U.length - 1,
|
|
917
937
|
className: "h-5 w-5",
|
|
918
|
-
children: /* @__PURE__ */
|
|
938
|
+
children: /* @__PURE__ */ C(ve, { className: "size-3" })
|
|
919
939
|
})]
|
|
920
940
|
}),
|
|
921
|
-
/* @__PURE__ */
|
|
941
|
+
/* @__PURE__ */ w("div", {
|
|
922
942
|
className: "flex-1 min-w-0",
|
|
923
|
-
children: [/* @__PURE__ */
|
|
943
|
+
children: [/* @__PURE__ */ w("div", {
|
|
924
944
|
className: "flex items-center gap-2",
|
|
925
|
-
children: [/* @__PURE__ */
|
|
945
|
+
children: [/* @__PURE__ */ C("span", {
|
|
926
946
|
"aria-hidden": "true",
|
|
927
|
-
className: `size-2 shrink-0 rounded-full ${
|
|
928
|
-
}), /* @__PURE__ */
|
|
947
|
+
className: `size-2 shrink-0 rounded-full ${Ke[e.style] || qe}`
|
|
948
|
+
}), /* @__PURE__ */ C("span", {
|
|
929
949
|
className: "text-sm font-medium truncate",
|
|
930
950
|
children: e.label
|
|
931
951
|
})]
|
|
932
|
-
}), /* @__PURE__ */
|
|
952
|
+
}), /* @__PURE__ */ C("p", {
|
|
933
953
|
className: "text-xs text-text-secondary truncate",
|
|
934
|
-
children:
|
|
935
|
-
method:
|
|
936
|
-
url:
|
|
954
|
+
children: Kt.has(e.name) ? T("bigconsole.widget.properties.actions.webhookSummary", "→ {{method}} {{url}}", {
|
|
955
|
+
method: Kt.get(e.name)?.method ?? "",
|
|
956
|
+
url: Kt.get(e.name)?.webhookUrl ?? ""
|
|
937
957
|
}) : T("bigconsole.widget.properties.actions.emitsEvent", "Emits an event")
|
|
938
958
|
})]
|
|
939
959
|
}),
|
|
940
|
-
/* @__PURE__ */
|
|
960
|
+
/* @__PURE__ */ w("div", {
|
|
941
961
|
className: "flex shrink-0 gap-1",
|
|
942
|
-
children: [/* @__PURE__ */
|
|
962
|
+
children: [/* @__PURE__ */ C(g, {
|
|
943
963
|
variant: "ghost",
|
|
944
964
|
size: "icon-sm",
|
|
945
965
|
"aria-label": `Edit ${e.label}`,
|
|
946
|
-
onClick: () =>
|
|
947
|
-
children: /* @__PURE__ */
|
|
948
|
-
}), /* @__PURE__ */
|
|
966
|
+
onClick: () => Jt(e),
|
|
967
|
+
children: /* @__PURE__ */ C(Se, { className: "size-4" })
|
|
968
|
+
}), /* @__PURE__ */ C(g, {
|
|
949
969
|
variant: "ghost",
|
|
950
970
|
size: "icon-sm",
|
|
951
971
|
"aria-label": `Delete ${e.label}`,
|
|
952
|
-
onClick: () =>
|
|
953
|
-
children: /* @__PURE__ */
|
|
972
|
+
onClick: () => Xt(e.id),
|
|
973
|
+
children: /* @__PURE__ */ C(we, { className: "size-4" })
|
|
954
974
|
})]
|
|
955
975
|
})
|
|
956
976
|
]
|
|
@@ -958,32 +978,32 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
958
978
|
}, e.id))
|
|
959
979
|
})
|
|
960
980
|
}),
|
|
961
|
-
rt && it && /* @__PURE__ */
|
|
981
|
+
rt && it && /* @__PURE__ */ C(pe, {
|
|
962
982
|
position: it,
|
|
963
|
-
columns:
|
|
983
|
+
columns: me.cols,
|
|
964
984
|
onChange: at
|
|
965
985
|
})
|
|
966
986
|
] })
|
|
967
987
|
}),
|
|
968
|
-
/* @__PURE__ */
|
|
988
|
+
/* @__PURE__ */ C(b, {
|
|
969
989
|
value: "data",
|
|
970
990
|
className: "mt-0",
|
|
971
|
-
children: O && /* @__PURE__ */
|
|
972
|
-
let e =
|
|
991
|
+
children: O && /* @__PURE__ */ w(r, { children: [(() => {
|
|
992
|
+
let e = l({
|
|
973
993
|
dataSinkId: O.dataSinkId,
|
|
974
994
|
parserId: O.parserId,
|
|
975
995
|
config: {
|
|
976
996
|
...O.config,
|
|
977
997
|
binding: void 0
|
|
978
998
|
}
|
|
979
|
-
}), t =
|
|
999
|
+
}), t = ne({
|
|
980
1000
|
binding: e,
|
|
981
1001
|
loading: bt || _t,
|
|
982
1002
|
error: wt,
|
|
983
1003
|
preview: St,
|
|
984
1004
|
previewComplete: Ct
|
|
985
1005
|
});
|
|
986
|
-
return /* @__PURE__ */
|
|
1006
|
+
return /* @__PURE__ */ C(fe, {
|
|
987
1007
|
consoleId: F?.dashboardId || "",
|
|
988
1008
|
binding: e,
|
|
989
1009
|
resolvedParser: z ?? void 0,
|
|
@@ -994,37 +1014,37 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
994
1014
|
missingFields: t.missingFields,
|
|
995
1015
|
preview: St,
|
|
996
1016
|
error: wt,
|
|
997
|
-
onDataSinkChange:
|
|
998
|
-
onParserChange:
|
|
1017
|
+
onDataSinkChange: $t,
|
|
1018
|
+
onParserChange: en,
|
|
999
1019
|
onDataPathChange: (e) => $({
|
|
1000
1020
|
...O.config,
|
|
1001
1021
|
dataPath: e
|
|
1002
1022
|
})
|
|
1003
1023
|
});
|
|
1004
|
-
})(), /* @__PURE__ */
|
|
1024
|
+
})(), /* @__PURE__ */ C(n, {
|
|
1005
1025
|
emphasis: "muted",
|
|
1006
1026
|
title: T("bigconsole.widget.properties.data.alternativeSources", "Alternative Data Sources"),
|
|
1007
1027
|
description: "Skip the DataSink pipeline and fetch straight from an API, a GraphQL endpoint or sample JSON.",
|
|
1008
1028
|
headingLevel: 3,
|
|
1009
1029
|
"data-testid": "widget-inspector-alt-sources",
|
|
1010
|
-
children: /* @__PURE__ */
|
|
1030
|
+
children: /* @__PURE__ */ w("div", {
|
|
1011
1031
|
className: "flex flex-col gap-form-gap",
|
|
1012
1032
|
children: [
|
|
1013
|
-
/* @__PURE__ */
|
|
1033
|
+
/* @__PURE__ */ w("div", {
|
|
1014
1034
|
className: "space-y-2",
|
|
1015
|
-
children: [/* @__PURE__ */
|
|
1035
|
+
children: [/* @__PURE__ */ C(v, { children: T("bigconsole.widget.properties.data.sourceTypeLabel", "Data Source Type") }), /* @__PURE__ */ w(Oe, {
|
|
1016
1036
|
value: O.config?.dataSourceType || "",
|
|
1017
1037
|
onValueChange: (e) => $({
|
|
1018
1038
|
...O.config,
|
|
1019
1039
|
dataSourceType: e || void 0
|
|
1020
1040
|
}),
|
|
1021
|
-
children: [/* @__PURE__ */
|
|
1041
|
+
children: [/* @__PURE__ */ C(Ae, {
|
|
1022
1042
|
style: {
|
|
1023
1043
|
height: "var(--size-controlHeight-md)",
|
|
1024
1044
|
fontSize: "var(--font-size-body-sm)"
|
|
1025
1045
|
},
|
|
1026
|
-
children: /* @__PURE__ */
|
|
1027
|
-
}), /* @__PURE__ */
|
|
1046
|
+
children: /* @__PURE__ */ C(je, { placeholder: T("bigconsole.widget.properties.data.selectTypePlaceholder", "Select type...") })
|
|
1047
|
+
}), /* @__PURE__ */ C(ke, {
|
|
1028
1048
|
position: "popper",
|
|
1029
1049
|
side: "bottom",
|
|
1030
1050
|
sideOffset: 4,
|
|
@@ -1037,19 +1057,19 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
1037
1057
|
boxShadow: "var(--shadow-elevation-3)",
|
|
1038
1058
|
borderRadius: "var(--radius-button)"
|
|
1039
1059
|
},
|
|
1040
|
-
children:
|
|
1060
|
+
children: cn.map((e) => /* @__PURE__ */ C(y, {
|
|
1041
1061
|
value: e.value,
|
|
1042
1062
|
children: e.label
|
|
1043
1063
|
}, e.value))
|
|
1044
1064
|
})]
|
|
1045
1065
|
})]
|
|
1046
1066
|
}),
|
|
1047
|
-
O.config?.dataSourceType === "REST_API" && /* @__PURE__ */
|
|
1067
|
+
O.config?.dataSourceType === "REST_API" && /* @__PURE__ */ w("div", {
|
|
1048
1068
|
className: "space-y-3",
|
|
1049
1069
|
children: [
|
|
1050
|
-
/* @__PURE__ */
|
|
1070
|
+
/* @__PURE__ */ w("div", {
|
|
1051
1071
|
className: "space-y-2",
|
|
1052
|
-
children: [/* @__PURE__ */
|
|
1072
|
+
children: [/* @__PURE__ */ C(v, { children: T("bigconsole.widget.properties.rest.endpointUrlLabel", "Endpoint URL *") }), /* @__PURE__ */ C(_, {
|
|
1053
1073
|
value: O.config?.endpointUrl || "",
|
|
1054
1074
|
onChange: (e) => $({
|
|
1055
1075
|
...O.config,
|
|
@@ -1058,35 +1078,35 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
1058
1078
|
placeholder: "https://api.example.com/data"
|
|
1059
1079
|
})]
|
|
1060
1080
|
}),
|
|
1061
|
-
/* @__PURE__ */
|
|
1081
|
+
/* @__PURE__ */ w("div", {
|
|
1062
1082
|
className: "space-y-2",
|
|
1063
|
-
children: [/* @__PURE__ */
|
|
1083
|
+
children: [/* @__PURE__ */ C(v, { children: T("bigconsole.widget.properties.rest.httpMethodLabel", "HTTP Method") }), /* @__PURE__ */ w(Oe, {
|
|
1064
1084
|
value: O.config?.httpMethod || "GET",
|
|
1065
1085
|
onValueChange: (e) => $({
|
|
1066
1086
|
...O.config,
|
|
1067
1087
|
httpMethod: e
|
|
1068
1088
|
}),
|
|
1069
|
-
children: [/* @__PURE__ */
|
|
1089
|
+
children: [/* @__PURE__ */ C(Ae, {
|
|
1070
1090
|
style: { height: "var(--size-controlHeight-md)" },
|
|
1071
|
-
children: /* @__PURE__ */
|
|
1072
|
-
}), /* @__PURE__ */
|
|
1091
|
+
children: /* @__PURE__ */ C(je, {})
|
|
1092
|
+
}), /* @__PURE__ */ w(ke, {
|
|
1073
1093
|
position: "popper",
|
|
1074
1094
|
side: "bottom",
|
|
1075
1095
|
sideOffset: 4,
|
|
1076
1096
|
children: [
|
|
1077
|
-
/* @__PURE__ */
|
|
1097
|
+
/* @__PURE__ */ C(y, {
|
|
1078
1098
|
value: "GET",
|
|
1079
1099
|
children: "GET"
|
|
1080
1100
|
}),
|
|
1081
|
-
/* @__PURE__ */
|
|
1101
|
+
/* @__PURE__ */ C(y, {
|
|
1082
1102
|
value: "POST",
|
|
1083
1103
|
children: "POST"
|
|
1084
1104
|
}),
|
|
1085
|
-
/* @__PURE__ */
|
|
1105
|
+
/* @__PURE__ */ C(y, {
|
|
1086
1106
|
value: "PUT",
|
|
1087
1107
|
children: "PUT"
|
|
1088
1108
|
}),
|
|
1089
|
-
/* @__PURE__ */
|
|
1109
|
+
/* @__PURE__ */ C(y, {
|
|
1090
1110
|
value: "DELETE",
|
|
1091
1111
|
children: "DELETE"
|
|
1092
1112
|
})
|
|
@@ -1094,9 +1114,9 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
1094
1114
|
})]
|
|
1095
1115
|
})]
|
|
1096
1116
|
}),
|
|
1097
|
-
/* @__PURE__ */
|
|
1117
|
+
/* @__PURE__ */ w("div", {
|
|
1098
1118
|
className: "space-y-2",
|
|
1099
|
-
children: [/* @__PURE__ */
|
|
1119
|
+
children: [/* @__PURE__ */ C(v, { children: T("bigconsole.widget.properties.rest.headersLabel", "Headers (JSON)") }), /* @__PURE__ */ C(S, {
|
|
1100
1120
|
value: O.config?.headers || "",
|
|
1101
1121
|
onChange: (e) => $({
|
|
1102
1122
|
...O.config,
|
|
@@ -1107,35 +1127,35 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
1107
1127
|
className: "font-mono text-xs"
|
|
1108
1128
|
})]
|
|
1109
1129
|
}),
|
|
1110
|
-
/* @__PURE__ */
|
|
1130
|
+
/* @__PURE__ */ w("div", {
|
|
1111
1131
|
className: "space-y-2",
|
|
1112
|
-
children: [/* @__PURE__ */
|
|
1132
|
+
children: [/* @__PURE__ */ C(v, { children: T("bigconsole.widget.properties.rest.authenticationLabel", "Authentication") }), /* @__PURE__ */ w(Oe, {
|
|
1113
1133
|
value: O.config?.authType || "none",
|
|
1114
1134
|
onValueChange: (e) => $({
|
|
1115
1135
|
...O.config,
|
|
1116
1136
|
authType: e
|
|
1117
1137
|
}),
|
|
1118
|
-
children: [/* @__PURE__ */
|
|
1138
|
+
children: [/* @__PURE__ */ C(Ae, {
|
|
1119
1139
|
style: { height: "var(--size-controlHeight-md)" },
|
|
1120
|
-
children: /* @__PURE__ */
|
|
1121
|
-
}), /* @__PURE__ */
|
|
1140
|
+
children: /* @__PURE__ */ C(je, {})
|
|
1141
|
+
}), /* @__PURE__ */ w(ke, {
|
|
1122
1142
|
position: "popper",
|
|
1123
1143
|
side: "bottom",
|
|
1124
1144
|
sideOffset: 4,
|
|
1125
1145
|
children: [
|
|
1126
|
-
/* @__PURE__ */
|
|
1146
|
+
/* @__PURE__ */ C(y, {
|
|
1127
1147
|
value: "none",
|
|
1128
1148
|
children: T("bigconsole.widget.properties.rest.authNone", "None")
|
|
1129
1149
|
}),
|
|
1130
|
-
/* @__PURE__ */
|
|
1150
|
+
/* @__PURE__ */ C(y, {
|
|
1131
1151
|
value: "api_key",
|
|
1132
1152
|
children: T("bigconsole.widget.properties.rest.authApiKey", "API Key")
|
|
1133
1153
|
}),
|
|
1134
|
-
/* @__PURE__ */
|
|
1154
|
+
/* @__PURE__ */ C(y, {
|
|
1135
1155
|
value: "bearer",
|
|
1136
1156
|
children: T("bigconsole.widget.properties.rest.authBearer", "Bearer Token")
|
|
1137
1157
|
}),
|
|
1138
|
-
/* @__PURE__ */
|
|
1158
|
+
/* @__PURE__ */ C(y, {
|
|
1139
1159
|
value: "basic",
|
|
1140
1160
|
children: T("bigconsole.widget.properties.rest.authBasic", "Basic Auth")
|
|
1141
1161
|
})
|
|
@@ -1143,9 +1163,9 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
1143
1163
|
})]
|
|
1144
1164
|
})]
|
|
1145
1165
|
}),
|
|
1146
|
-
!!(O.config?.authType && O.config.authType !== "none") && /* @__PURE__ */
|
|
1166
|
+
!!(O.config?.authType && O.config.authType !== "none") && /* @__PURE__ */ w("div", {
|
|
1147
1167
|
className: "space-y-2",
|
|
1148
|
-
children: [/* @__PURE__ */
|
|
1168
|
+
children: [/* @__PURE__ */ C(v, { children: String(O.config.authType) === "basic" ? T("bigconsole.widget.properties.rest.credentialsLabel", "Credentials (user:pass)") : T("bigconsole.widget.properties.rest.tokenKeyLabel", "Token/Key") }), /* @__PURE__ */ C(_, {
|
|
1149
1169
|
type: "password",
|
|
1150
1170
|
value: O.config?.authValue || "",
|
|
1151
1171
|
onChange: (e) => $({
|
|
@@ -1155,9 +1175,9 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
1155
1175
|
placeholder: O.config.authType === "basic" ? T("bigconsole.widget.properties.rest.credentialsPlaceholder", "username:password") : T("bigconsole.widget.properties.rest.tokenKeyPlaceholder", "Enter token or API key")
|
|
1156
1176
|
})]
|
|
1157
1177
|
}),
|
|
1158
|
-
(O.config?.httpMethod === "POST" || O.config?.httpMethod === "PUT") && /* @__PURE__ */
|
|
1178
|
+
(O.config?.httpMethod === "POST" || O.config?.httpMethod === "PUT") && /* @__PURE__ */ w("div", {
|
|
1159
1179
|
className: "space-y-2",
|
|
1160
|
-
children: [/* @__PURE__ */
|
|
1180
|
+
children: [/* @__PURE__ */ C(v, { children: T("bigconsole.widget.properties.rest.requestBodyLabel", "Request Body (JSON)") }), /* @__PURE__ */ C(S, {
|
|
1161
1181
|
value: O.config?.requestBody || "",
|
|
1162
1182
|
onChange: (e) => $({
|
|
1163
1183
|
...O.config,
|
|
@@ -1168,11 +1188,11 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
1168
1188
|
className: "font-mono text-xs"
|
|
1169
1189
|
})]
|
|
1170
1190
|
}),
|
|
1171
|
-
/* @__PURE__ */
|
|
1191
|
+
/* @__PURE__ */ w("div", {
|
|
1172
1192
|
className: "space-y-2",
|
|
1173
1193
|
children: [
|
|
1174
|
-
/* @__PURE__ */
|
|
1175
|
-
/* @__PURE__ */
|
|
1194
|
+
/* @__PURE__ */ C(v, { children: T("bigconsole.widget.properties.dataPath.label", "Data Path (optional)") }),
|
|
1195
|
+
/* @__PURE__ */ C(_, {
|
|
1176
1196
|
value: O.config?.dataPath || "",
|
|
1177
1197
|
onChange: (e) => $({
|
|
1178
1198
|
...O.config,
|
|
@@ -1180,7 +1200,7 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
1180
1200
|
}),
|
|
1181
1201
|
placeholder: "$.data.items or .data.items"
|
|
1182
1202
|
}),
|
|
1183
|
-
/* @__PURE__ */
|
|
1203
|
+
/* @__PURE__ */ C("p", {
|
|
1184
1204
|
className: "text-xs text-text-secondary",
|
|
1185
1205
|
children: T("bigconsole.widget.properties.dataPath.restHelp", "JSONPath or dot notation to extract data from response")
|
|
1186
1206
|
})
|
|
@@ -1188,12 +1208,12 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
1188
1208
|
})
|
|
1189
1209
|
]
|
|
1190
1210
|
}),
|
|
1191
|
-
O.config?.dataSourceType === "GRAPHQL" && /* @__PURE__ */
|
|
1211
|
+
O.config?.dataSourceType === "GRAPHQL" && /* @__PURE__ */ w("div", {
|
|
1192
1212
|
className: "space-y-3",
|
|
1193
1213
|
children: [
|
|
1194
|
-
/* @__PURE__ */
|
|
1214
|
+
/* @__PURE__ */ w("div", {
|
|
1195
1215
|
className: "space-y-2",
|
|
1196
|
-
children: [/* @__PURE__ */
|
|
1216
|
+
children: [/* @__PURE__ */ C(v, { children: T("bigconsole.widget.properties.graphql.endpointLabel", "GraphQL Endpoint *") }), /* @__PURE__ */ C(_, {
|
|
1197
1217
|
value: O.config?.graphqlEndpoint || "",
|
|
1198
1218
|
onChange: (e) => $({
|
|
1199
1219
|
...O.config,
|
|
@@ -1202,9 +1222,9 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
1202
1222
|
placeholder: "https://api.example.com/graphql"
|
|
1203
1223
|
})]
|
|
1204
1224
|
}),
|
|
1205
|
-
/* @__PURE__ */
|
|
1225
|
+
/* @__PURE__ */ w("div", {
|
|
1206
1226
|
className: "space-y-2",
|
|
1207
|
-
children: [/* @__PURE__ */
|
|
1227
|
+
children: [/* @__PURE__ */ C(v, { children: T("bigconsole.widget.properties.graphql.queryLabel", "Query *") }), /* @__PURE__ */ C(S, {
|
|
1208
1228
|
value: O.config?.graphqlQuery || "",
|
|
1209
1229
|
onChange: (e) => $({
|
|
1210
1230
|
...O.config,
|
|
@@ -1215,9 +1235,9 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
1215
1235
|
className: "font-mono text-xs"
|
|
1216
1236
|
})]
|
|
1217
1237
|
}),
|
|
1218
|
-
/* @__PURE__ */
|
|
1238
|
+
/* @__PURE__ */ w("div", {
|
|
1219
1239
|
className: "space-y-2",
|
|
1220
|
-
children: [/* @__PURE__ */
|
|
1240
|
+
children: [/* @__PURE__ */ C(v, { children: T("bigconsole.widget.properties.graphql.variablesLabel", "Variables (JSON, optional)") }), /* @__PURE__ */ C(S, {
|
|
1221
1241
|
value: O.config?.graphqlVariables || "",
|
|
1222
1242
|
onChange: (e) => $({
|
|
1223
1243
|
...O.config,
|
|
@@ -1228,9 +1248,9 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
1228
1248
|
className: "font-mono text-xs"
|
|
1229
1249
|
})]
|
|
1230
1250
|
}),
|
|
1231
|
-
/* @__PURE__ */
|
|
1251
|
+
/* @__PURE__ */ w("div", {
|
|
1232
1252
|
className: "space-y-2",
|
|
1233
|
-
children: [/* @__PURE__ */
|
|
1253
|
+
children: [/* @__PURE__ */ C(v, { children: T("bigconsole.widget.properties.graphql.headersLabel", "Headers (JSON, optional)") }), /* @__PURE__ */ C(S, {
|
|
1234
1254
|
value: O.config?.headers || "",
|
|
1235
1255
|
onChange: (e) => $({
|
|
1236
1256
|
...O.config,
|
|
@@ -1241,11 +1261,11 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
1241
1261
|
className: "font-mono text-xs"
|
|
1242
1262
|
})]
|
|
1243
1263
|
}),
|
|
1244
|
-
/* @__PURE__ */
|
|
1264
|
+
/* @__PURE__ */ w("div", {
|
|
1245
1265
|
className: "space-y-2",
|
|
1246
1266
|
children: [
|
|
1247
|
-
/* @__PURE__ */
|
|
1248
|
-
/* @__PURE__ */
|
|
1267
|
+
/* @__PURE__ */ C(v, { children: T("bigconsole.widget.properties.dataPath.label", "Data Path (optional)") }),
|
|
1268
|
+
/* @__PURE__ */ C(_, {
|
|
1249
1269
|
value: O.config?.dataPath || "",
|
|
1250
1270
|
onChange: (e) => $({
|
|
1251
1271
|
...O.config,
|
|
@@ -1253,7 +1273,7 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
1253
1273
|
}),
|
|
1254
1274
|
placeholder: ".data.items"
|
|
1255
1275
|
}),
|
|
1256
|
-
/* @__PURE__ */
|
|
1276
|
+
/* @__PURE__ */ C("p", {
|
|
1257
1277
|
className: "text-xs text-text-secondary",
|
|
1258
1278
|
children: T("bigconsole.widget.properties.dataPath.graphqlHelp", "Path to extract data from GraphQL response")
|
|
1259
1279
|
})
|
|
@@ -1261,9 +1281,9 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
1261
1281
|
})
|
|
1262
1282
|
]
|
|
1263
1283
|
}),
|
|
1264
|
-
O.config?.dataSourceType === "MOCK" && /* @__PURE__ */
|
|
1284
|
+
O.config?.dataSourceType === "MOCK" && /* @__PURE__ */ w("div", {
|
|
1265
1285
|
className: "space-y-2",
|
|
1266
|
-
children: [/* @__PURE__ */
|
|
1286
|
+
children: [/* @__PURE__ */ C(v, { children: T("bigconsole.widget.properties.mock.sampleDataLabel", "Sample Data (JSON)") }), /* @__PURE__ */ C(S, {
|
|
1267
1287
|
value: O.config?.mockData || "",
|
|
1268
1288
|
onChange: (e) => $({
|
|
1269
1289
|
...O.config,
|
|
@@ -1278,17 +1298,17 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
1278
1298
|
})
|
|
1279
1299
|
})] })
|
|
1280
1300
|
}),
|
|
1281
|
-
/* @__PURE__ */
|
|
1301
|
+
/* @__PURE__ */ C(b, {
|
|
1282
1302
|
value: "advanced",
|
|
1283
1303
|
className: "mt-0",
|
|
1284
|
-
children: /* @__PURE__ */
|
|
1285
|
-
O && /* @__PURE__ */
|
|
1304
|
+
children: /* @__PURE__ */ w(r, { children: [
|
|
1305
|
+
O && /* @__PURE__ */ C(le, {
|
|
1286
1306
|
renderer: O.renderer,
|
|
1287
|
-
rendererOptions:
|
|
1307
|
+
rendererOptions: sn,
|
|
1288
1308
|
onRendererChange: (e) => {
|
|
1289
1309
|
Q("renderer", e), e === "BIGCONSOLE" && Q("template", void 0);
|
|
1290
1310
|
},
|
|
1291
|
-
templateEditor: O.renderer === "BIGCONSOLE" ? void 0 : /* @__PURE__ */
|
|
1311
|
+
templateEditor: O.renderer === "BIGCONSOLE" ? void 0 : /* @__PURE__ */ C(Xe, {
|
|
1292
1312
|
widget: {
|
|
1293
1313
|
...F,
|
|
1294
1314
|
template: O.template,
|
|
@@ -1297,33 +1317,33 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
1297
1317
|
onSave: (e) => Q("template", e)
|
|
1298
1318
|
})
|
|
1299
1319
|
}),
|
|
1300
|
-
/* @__PURE__ */
|
|
1320
|
+
/* @__PURE__ */ C(n, {
|
|
1301
1321
|
title: T("bigconsole.widget.properties.section.drilldown", "Drilldown"),
|
|
1302
1322
|
description: "Where a click on this widget's data takes the viewer.",
|
|
1303
1323
|
headingLevel: 3,
|
|
1304
1324
|
"data-testid": "widget-inspector-drilldown",
|
|
1305
|
-
children: /* @__PURE__ */
|
|
1325
|
+
children: /* @__PURE__ */ C(ce, {
|
|
1306
1326
|
widget: F,
|
|
1307
|
-
onChange:
|
|
1327
|
+
onChange: an
|
|
1308
1328
|
})
|
|
1309
1329
|
}),
|
|
1310
|
-
/* @__PURE__ */
|
|
1330
|
+
/* @__PURE__ */ C(n, {
|
|
1311
1331
|
title: T("bigconsole.widget.properties.section.webhooks", "Webhooks"),
|
|
1312
1332
|
description: "HTTP endpoints called when this widget emits an event.",
|
|
1313
1333
|
headingLevel: 3,
|
|
1314
1334
|
"data-testid": "widget-inspector-webhooks",
|
|
1315
|
-
children: /* @__PURE__ */
|
|
1335
|
+
children: /* @__PURE__ */ C(oe, {
|
|
1316
1336
|
dashboardId: F.dashboardId,
|
|
1317
1337
|
widgetId: F.id
|
|
1318
1338
|
})
|
|
1319
1339
|
}),
|
|
1320
|
-
/* @__PURE__ */
|
|
1340
|
+
/* @__PURE__ */ C(n, {
|
|
1321
1341
|
emphasis: "muted",
|
|
1322
1342
|
title: T("bigconsole.widget.properties.section.events", "Events"),
|
|
1323
1343
|
description: "Recent deliveries for this widget, newest first. Supporting detail — nothing here changes the widget.",
|
|
1324
1344
|
headingLevel: 3,
|
|
1325
1345
|
"data-testid": "widget-inspector-events",
|
|
1326
|
-
children: /* @__PURE__ */
|
|
1346
|
+
children: /* @__PURE__ */ C(se, {
|
|
1327
1347
|
dashboardId: F.dashboardId,
|
|
1328
1348
|
widgetId: F.id,
|
|
1329
1349
|
maxHeight: "min(50vh, 360px)"
|
|
@@ -1331,33 +1351,33 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
1331
1351
|
})
|
|
1332
1352
|
] })
|
|
1333
1353
|
}),
|
|
1334
|
-
/* @__PURE__ */
|
|
1354
|
+
/* @__PURE__ */ C(b, {
|
|
1335
1355
|
value: "appearance",
|
|
1336
1356
|
className: "mt-0",
|
|
1337
|
-
children: O && /* @__PURE__ */
|
|
1357
|
+
children: O && /* @__PURE__ */ C(ue, {
|
|
1338
1358
|
widgetType: F.type,
|
|
1339
1359
|
config: O.config || {},
|
|
1340
|
-
onChange:
|
|
1360
|
+
onChange: rn
|
|
1341
1361
|
})
|
|
1342
1362
|
})
|
|
1343
1363
|
]
|
|
1344
1364
|
})]
|
|
1345
|
-
}) : /* @__PURE__ */
|
|
1365
|
+
}) : /* @__PURE__ */ C("div", {
|
|
1346
1366
|
className: "flex min-h-0 flex-1 items-center justify-center p-card-padding",
|
|
1347
|
-
children: /* @__PURE__ */
|
|
1367
|
+
children: /* @__PURE__ */ C(n, {
|
|
1348
1368
|
tone: "info",
|
|
1349
1369
|
title: T("bigconsole.widget.properties.emptyState", "Select a widget to edit"),
|
|
1350
1370
|
headingLevel: 3,
|
|
1351
|
-
icon: /* @__PURE__ */
|
|
1371
|
+
icon: /* @__PURE__ */ C(xe, { className: "h-icon-md w-icon-md" }),
|
|
1352
1372
|
className: "w-full max-w-sm",
|
|
1353
1373
|
"data-testid": "widget-inspector-empty",
|
|
1354
|
-
children: /* @__PURE__ */
|
|
1374
|
+
children: /* @__PURE__ */ C("p", {
|
|
1355
1375
|
className: "text-sm text-text-secondary",
|
|
1356
1376
|
children: "Pick a widget on the canvas and its identity, data binding, actions and style options appear here."
|
|
1357
1377
|
})
|
|
1358
1378
|
})
|
|
1359
1379
|
}),
|
|
1360
|
-
F && /* @__PURE__ */
|
|
1380
|
+
F && /* @__PURE__ */ w("div", {
|
|
1361
1381
|
style: {
|
|
1362
1382
|
padding: "var(--space-cardPadding)",
|
|
1363
1383
|
borderTop: "1px solid var(--color-border-subtle)",
|
|
@@ -1365,7 +1385,7 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
1365
1385
|
flexShrink: 0
|
|
1366
1386
|
},
|
|
1367
1387
|
children: [
|
|
1368
|
-
A && /* @__PURE__ */
|
|
1388
|
+
A && /* @__PURE__ */ C(n, {
|
|
1369
1389
|
tone: "warning",
|
|
1370
1390
|
padding: "compact",
|
|
1371
1391
|
title: T("bigconsole.widget.properties.footer.unsavedChanges", "You have unsaved changes"),
|
|
@@ -1373,28 +1393,28 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
1373
1393
|
className: "mb-control-gap",
|
|
1374
1394
|
"data-testid": "widget-inspector-save-unsaved"
|
|
1375
1395
|
}),
|
|
1376
|
-
E === "saved" && !A && /* @__PURE__ */
|
|
1396
|
+
E === "saved" && !A && /* @__PURE__ */ C(n, {
|
|
1377
1397
|
tone: "success",
|
|
1378
1398
|
padding: "compact",
|
|
1379
1399
|
title: T("bigconsole.widget.properties.footer.allSaved", "All changes saved"),
|
|
1380
1400
|
headingLevel: 3,
|
|
1381
|
-
icon: /* @__PURE__ */
|
|
1401
|
+
icon: /* @__PURE__ */ C(h, { className: "h-icon-sm w-icon-sm" }),
|
|
1382
1402
|
className: "mb-control-gap",
|
|
1383
1403
|
"data-testid": "widget-inspector-save-saved"
|
|
1384
1404
|
}),
|
|
1385
|
-
E === "error" && /* @__PURE__ */
|
|
1405
|
+
E === "error" && /* @__PURE__ */ C(n, {
|
|
1386
1406
|
tone: "danger",
|
|
1387
1407
|
padding: "compact",
|
|
1388
1408
|
title: T("bigconsole.widget.properties.footer.saveFailed", "Failed to save changes"),
|
|
1389
1409
|
headingLevel: 3,
|
|
1390
|
-
icon: /* @__PURE__ */
|
|
1410
|
+
icon: /* @__PURE__ */ C(Te, { className: "h-icon-sm w-icon-sm" }),
|
|
1391
1411
|
className: "mb-control-gap",
|
|
1392
1412
|
"data-testid": "widget-inspector-save-error"
|
|
1393
1413
|
}),
|
|
1394
|
-
/* @__PURE__ */
|
|
1414
|
+
/* @__PURE__ */ w("div", {
|
|
1395
1415
|
className: "flex flex-wrap gap-control-gap",
|
|
1396
|
-
children: [/* @__PURE__ */
|
|
1397
|
-
onClick:
|
|
1416
|
+
children: [/* @__PURE__ */ C(g, {
|
|
1417
|
+
onClick: tn,
|
|
1398
1418
|
disabled: E === "saving" || !A,
|
|
1399
1419
|
style: {
|
|
1400
1420
|
flex: 1,
|
|
@@ -1402,36 +1422,36 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
1402
1422
|
backgroundColor: A ? "var(--color-action-primary-bg)" : void 0,
|
|
1403
1423
|
opacity: A ? 1 : .5
|
|
1404
1424
|
},
|
|
1405
|
-
children: E === "saving" ? /* @__PURE__ */
|
|
1425
|
+
children: E === "saving" ? /* @__PURE__ */ w("span", {
|
|
1406
1426
|
style: {
|
|
1407
1427
|
display: "flex",
|
|
1408
1428
|
alignItems: "center",
|
|
1409
1429
|
gap: "var(--space-iconGap)"
|
|
1410
1430
|
},
|
|
1411
|
-
children: [/* @__PURE__ */
|
|
1431
|
+
children: [/* @__PURE__ */ C(Le, { style: {
|
|
1412
1432
|
width: "var(--size-icon-sm)",
|
|
1413
1433
|
height: "var(--size-icon-sm)"
|
|
1414
1434
|
} }), T("bigconsole.widget.properties.footer.saving", "Saving...")]
|
|
1415
|
-
}) : /* @__PURE__ */
|
|
1435
|
+
}) : /* @__PURE__ */ w("span", {
|
|
1416
1436
|
style: {
|
|
1417
1437
|
display: "flex",
|
|
1418
1438
|
alignItems: "center",
|
|
1419
1439
|
gap: "var(--space-iconGap)"
|
|
1420
1440
|
},
|
|
1421
|
-
children: [/* @__PURE__ */
|
|
1441
|
+
children: [/* @__PURE__ */ C(h, { style: {
|
|
1422
1442
|
width: "var(--size-icon-sm)",
|
|
1423
1443
|
height: "var(--size-icon-sm)"
|
|
1424
1444
|
} }), T("bigconsole.widget.properties.footer.saveChanges", "Save Changes")]
|
|
1425
1445
|
})
|
|
1426
|
-
}), /* @__PURE__ */
|
|
1446
|
+
}), /* @__PURE__ */ w(g, {
|
|
1427
1447
|
variant: "outline",
|
|
1428
|
-
onClick:
|
|
1448
|
+
onClick: nn,
|
|
1429
1449
|
disabled: E === "saving" || !A,
|
|
1430
1450
|
style: {
|
|
1431
1451
|
height: "var(--size-controlHeight-md)",
|
|
1432
1452
|
opacity: A ? 1 : .5
|
|
1433
1453
|
},
|
|
1434
|
-
children: [/* @__PURE__ */
|
|
1454
|
+
children: [/* @__PURE__ */ C(Te, { style: {
|
|
1435
1455
|
width: "var(--size-icon-sm)",
|
|
1436
1456
|
height: "var(--size-icon-sm)"
|
|
1437
1457
|
} }), T("bigconsole.widget.properties.footer.discard", "Discard")]
|
|
@@ -1439,16 +1459,16 @@ var T = d(function({ isOpen: d, onClose: be }) {
|
|
|
1439
1459
|
})
|
|
1440
1460
|
]
|
|
1441
1461
|
}),
|
|
1442
|
-
/* @__PURE__ */
|
|
1443
|
-
isOpen:
|
|
1444
|
-
action:
|
|
1445
|
-
initialWebhook:
|
|
1446
|
-
isLoading:
|
|
1447
|
-
saveError:
|
|
1462
|
+
/* @__PURE__ */ C(ae, {
|
|
1463
|
+
isOpen: Lt,
|
|
1464
|
+
action: zt,
|
|
1465
|
+
initialWebhook: Gt,
|
|
1466
|
+
isLoading: Bt,
|
|
1467
|
+
saveError: Ut,
|
|
1448
1468
|
onClose: () => {
|
|
1449
|
-
|
|
1469
|
+
Rt(!1), Y(void 0), X(void 0), Z(null);
|
|
1450
1470
|
},
|
|
1451
|
-
onSave:
|
|
1471
|
+
onSave: Yt
|
|
1452
1472
|
})
|
|
1453
1473
|
]
|
|
1454
1474
|
})
|