@burdenoff/microfe-bigconsole 2026.510.54
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 +88 -0
- package/dist/bigconsole/BigConsoleRoot.d.ts +29 -0
- package/dist/bigconsole/BigConsoleRoot.d.ts.map +1 -0
- package/dist/bigconsole/BigConsoleRoot.js +215 -0
- package/dist/bigconsole/BigConsoleRoot.js.map +1 -0
- package/dist/bigconsole/BigConsoleRoutes.d.ts +6 -0
- package/dist/bigconsole/BigConsoleRoutes.d.ts.map +1 -0
- package/dist/bigconsole/BigConsoleRoutes.js +239 -0
- package/dist/bigconsole/BigConsoleRoutes.js.map +1 -0
- package/dist/bigconsole/components/DrilldownDashboardRenderer.d.ts +11 -0
- package/dist/bigconsole/components/DrilldownDashboardRenderer.d.ts.map +1 -0
- package/dist/bigconsole/components/DrilldownDashboardRenderer.js +199 -0
- package/dist/bigconsole/components/DrilldownDashboardRenderer.js.map +1 -0
- package/dist/bigconsole/components/DrilldownModal.d.ts +11 -0
- package/dist/bigconsole/components/DrilldownModal.d.ts.map +1 -0
- package/dist/bigconsole/components/DrilldownModal.js +117 -0
- package/dist/bigconsole/components/DrilldownModal.js.map +1 -0
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.d.ts +19 -0
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +430 -0
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -0
- package/dist/bigconsole/components/dashboard/DashboardCanvas.d.ts +44 -0
- package/dist/bigconsole/components/dashboard/DashboardCanvas.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +342 -0
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -0
- package/dist/bigconsole/components/dashboard/DashboardGrid.d.ts +25 -0
- package/dist/bigconsole/components/dashboard/DashboardGrid.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/DashboardGrid.js +88 -0
- package/dist/bigconsole/components/dashboard/DashboardGrid.js.map +1 -0
- package/dist/bigconsole/components/dashboard/DashboardToolbar.d.ts +27 -0
- package/dist/bigconsole/components/dashboard/DashboardToolbar.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +131 -0
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js.map +1 -0
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.d.ts +26 -0
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +107 -0
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js.map +1 -0
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.d.ts +17 -0
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +342 -0
- package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js.map +1 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.d.ts +12 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +449 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js.map +1 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.d.ts +16 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +415 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js.map +1 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.d.ts +13 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +315 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js.map +1 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.d.ts +19 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +365 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/index.d.ts +8 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/index.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/index.js +3 -0
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.d.ts +10 -0
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +486 -0
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -0
- package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.d.ts +26 -0
- package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.js +224 -0
- package/dist/bigconsole/components/dashboard/PageTabsManager/PageTabsManager.js.map +1 -0
- package/dist/bigconsole/components/dashboard/PageTabsManager/index.d.ts +6 -0
- package/dist/bigconsole/components/dashboard/PageTabsManager/index.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/PageTabsManager/index.js +1 -0
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.d.ts +12 -0
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +494 -0
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js.map +1 -0
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/index.d.ts +6 -0
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/index.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/index.js +1 -0
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.d.ts +11 -0
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +477 -0
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js.map +1 -0
- package/dist/bigconsole/components/dashboard/ShareDialog/index.d.ts +6 -0
- package/dist/bigconsole/components/dashboard/ShareDialog/index.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/ShareDialog/index.js +1 -0
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.d.ts +19 -0
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +905 -0
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js.map +1 -0
- package/dist/bigconsole/components/dashboard/TemplatePicker/index.d.ts +6 -0
- package/dist/bigconsole/components/dashboard/TemplatePicker/index.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/TemplatePicker/index.js +1 -0
- package/dist/bigconsole/components/dashboard/WidgetPalette.d.ts +23 -0
- package/dist/bigconsole/components/dashboard/WidgetPalette.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +462 -0
- package/dist/bigconsole/components/dashboard/WidgetPalette.js.map +1 -0
- package/dist/bigconsole/components/dashboard/index.d.ts +19 -0
- package/dist/bigconsole/components/dashboard/index.d.ts.map +1 -0
- package/dist/bigconsole/components/dashboard/index.js +20 -0
- package/dist/bigconsole/components/datasink/CacheTTLSelector.d.ts +18 -0
- package/dist/bigconsole/components/datasink/CacheTTLSelector.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +247 -0
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js.map +1 -0
- package/dist/bigconsole/components/datasink/ConfigurationForm.d.ts +21 -0
- package/dist/bigconsole/components/datasink/ConfigurationForm.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/DataPreviewPanel.d.ts +20 -0
- package/dist/bigconsole/components/datasink/DataPreviewPanel.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkCard.d.ts +23 -0
- package/dist/bigconsole/components/datasink/DataSinkCard.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkCard.js +137 -0
- package/dist/bigconsole/components/datasink/DataSinkCard.js.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkDataViewer.d.ts +18 -0
- package/dist/bigconsole/components/datasink/DataSinkDataViewer.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkDataViewer.js +43 -0
- package/dist/bigconsole/components/datasink/DataSinkDataViewer.js.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.d.ts +17 -0
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +87 -0
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkRefreshConfig.d.ts +22 -0
- package/dist/bigconsole/components/datasink/DataSinkRefreshConfig.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.d.ts +17 -0
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +88 -0
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.d.ts +13 -0
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +98 -0
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkTableViewer.d.ts +13 -0
- package/dist/bigconsole/components/datasink/DataSinkTableViewer.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/DataSinkTableViewer.js +174 -0
- package/dist/bigconsole/components/datasink/DataSinkTableViewer.js.map +1 -0
- package/dist/bigconsole/components/datasink/ExportDataSinkDialog.d.ts +17 -0
- package/dist/bigconsole/components/datasink/ExportDataSinkDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/ExportDataSinkDialog.js +322 -0
- package/dist/bigconsole/components/datasink/ExportDataSinkDialog.js.map +1 -0
- package/dist/bigconsole/components/datasink/FluidGridsPanel.d.ts +31 -0
- package/dist/bigconsole/components/datasink/FluidGridsPanel.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.d.ts +10 -0
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +402 -0
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -0
- package/dist/bigconsole/components/datasink/LinkedParsersPanel.d.ts +12 -0
- package/dist/bigconsole/components/datasink/LinkedParsersPanel.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/LinkedParsersPanel.js +128 -0
- package/dist/bigconsole/components/datasink/LinkedParsersPanel.js.map +1 -0
- package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.d.ts +11 -0
- package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.js +204 -0
- package/dist/bigconsole/components/datasink/LinkedWorkflowsPanel.js.map +1 -0
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.d.ts +26 -0
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +301 -0
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js.map +1 -0
- package/dist/bigconsole/components/datasink/SetupStateBadge.d.ts +13 -0
- package/dist/bigconsole/components/datasink/SetupStateBadge.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/SetupStateBadge.js +107 -0
- package/dist/bigconsole/components/datasink/SetupStateBadge.js.map +1 -0
- package/dist/bigconsole/components/datasink/WorkflowStatusPanel.d.ts +30 -0
- package/dist/bigconsole/components/datasink/WorkflowStatusPanel.d.ts.map +1 -0
- package/dist/bigconsole/components/datasink/WorkflowStatusPanel.js +163 -0
- package/dist/bigconsole/components/datasink/WorkflowStatusPanel.js.map +1 -0
- package/dist/bigconsole/components/datasink/index.d.ts +24 -0
- package/dist/bigconsole/components/datasink/index.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/DataSinkSelector.d.ts +21 -0
- package/dist/bigconsole/components/parser/DataSinkSelector.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/DataSinkSelector.js +174 -0
- package/dist/bigconsole/components/parser/DataSinkSelector.js.map +1 -0
- package/dist/bigconsole/components/parser/ExportParserDialog.d.ts +17 -0
- package/dist/bigconsole/components/parser/ExportParserDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/ExportParserDialog.js +322 -0
- package/dist/bigconsole/components/parser/ExportParserDialog.js.map +1 -0
- package/dist/bigconsole/components/parser/ExpressionEditor.d.ts +25 -0
- package/dist/bigconsole/components/parser/ExpressionEditor.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/ExpressionEditor.js +119 -0
- package/dist/bigconsole/components/parser/ExpressionEditor.js.map +1 -0
- package/dist/bigconsole/components/parser/ImportParserDialog.d.ts +12 -0
- package/dist/bigconsole/components/parser/ImportParserDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/ImportParserDialog.js +427 -0
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -0
- package/dist/bigconsole/components/parser/ParserBuilder.d.ts +41 -0
- package/dist/bigconsole/components/parser/ParserBuilder.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/ParserCard.d.ts +23 -0
- package/dist/bigconsole/components/parser/ParserCard.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/ParserCard.js +248 -0
- package/dist/bigconsole/components/parser/ParserCard.js.map +1 -0
- package/dist/bigconsole/components/parser/ParserFormDialog.d.ts +42 -0
- package/dist/bigconsole/components/parser/ParserFormDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/ParserSelector.d.ts +27 -0
- package/dist/bigconsole/components/parser/ParserSelector.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/ParserSelector.js +263 -0
- package/dist/bigconsole/components/parser/ParserSelector.js.map +1 -0
- package/dist/bigconsole/components/parser/ParserStatusBadge.d.ts +13 -0
- package/dist/bigconsole/components/parser/ParserStatusBadge.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/ParserStatusBadge.js +74 -0
- package/dist/bigconsole/components/parser/ParserStatusBadge.js.map +1 -0
- package/dist/bigconsole/components/parser/ParserTypeBadge.d.ts +11 -0
- package/dist/bigconsole/components/parser/ParserTypeBadge.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/ParserTypeBadge.js +48 -0
- package/dist/bigconsole/components/parser/ParserTypeBadge.js.map +1 -0
- package/dist/bigconsole/components/parser/TestPanel.d.ts +25 -0
- package/dist/bigconsole/components/parser/TestPanel.d.ts.map +1 -0
- package/dist/bigconsole/components/parser/index.d.ts +17 -0
- package/dist/bigconsole/components/parser/index.d.ts.map +1 -0
- package/dist/bigconsole/components/pipeline/PipelineCard.d.ts +12 -0
- package/dist/bigconsole/components/pipeline/PipelineCard.d.ts.map +1 -0
- package/dist/bigconsole/components/pipeline/PipelineCard.js +159 -0
- package/dist/bigconsole/components/pipeline/PipelineCard.js.map +1 -0
- package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.d.ts +11 -0
- package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.js +94 -0
- package/dist/bigconsole/components/pipeline/PipelineDeleteDialog.js.map +1 -0
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.d.ts +9 -0
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.d.ts.map +1 -0
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +36 -0
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js.map +1 -0
- package/dist/bigconsole/components/pipeline/index.d.ts +9 -0
- package/dist/bigconsole/components/pipeline/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/ActionConfigDialog.d.ts +13 -0
- package/dist/bigconsole/components/widgets/ActionConfigDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +671 -0
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -0
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.d.ts +26 -0
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +378 -0
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -0
- package/dist/bigconsole/components/widgets/PropertiesPanel.d.ts +9 -0
- package/dist/bigconsole/components/widgets/PropertiesPanel.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +1594 -0
- package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetConfigDialog.d.ts +25 -0
- package/dist/bigconsole/components/widgets/WidgetConfigDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetConfigDialog.js +882 -0
- package/dist/bigconsole/components/widgets/WidgetConfigDialog.js.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetErrorBoundary.d.ts +23 -0
- package/dist/bigconsole/components/widgets/WidgetErrorBoundary.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetErrorBoundary.js +75 -0
- package/dist/bigconsole/components/widgets/WidgetErrorBoundary.js.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetHeader.d.ts +31 -0
- package/dist/bigconsole/components/widgets/WidgetHeader.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetHeader.js +265 -0
- package/dist/bigconsole/components/widgets/WidgetHeader.js.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetMenu.d.ts +18 -0
- package/dist/bigconsole/components/widgets/WidgetMenu.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetMenu.js +296 -0
- package/dist/bigconsole/components/widgets/WidgetMenu.js.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetRegistry.d.ts +113 -0
- package/dist/bigconsole/components/widgets/WidgetRegistry.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetRegistry.js +836 -0
- package/dist/bigconsole/components/widgets/WidgetRegistry.js.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetTypeSelector.d.ts +16 -0
- package/dist/bigconsole/components/widgets/WidgetTypeSelector.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetTypeSelector.js +291 -0
- package/dist/bigconsole/components/widgets/WidgetTypeSelector.js.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetWrapper.d.ts +31 -0
- package/dist/bigconsole/components/widgets/WidgetWrapper.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/WidgetWrapper.js +516 -0
- package/dist/bigconsole/components/widgets/WidgetWrapper.js.map +1 -0
- package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.d.ts +38 -0
- package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.js +106 -0
- package/dist/bigconsole/components/widgets/adaptive-card/AdaptiveCardWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/adaptive-card/index.d.ts +7 -0
- package/dist/bigconsole/components/widgets/adaptive-card/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/adaptive-card/index.js +2 -0
- package/dist/bigconsole/components/widgets/area-chart/index.d.ts +12 -0
- package/dist/bigconsole/components/widgets/area-chart/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/bar-chart/index.d.ts +12 -0
- package/dist/bigconsole/components/widgets/bar-chart/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.d.ts +25 -0
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +113 -0
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/calendar/index.d.ts +3 -0
- package/dist/bigconsole/components/widgets/calendar/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/calendar/index.js +2 -0
- package/dist/bigconsole/components/widgets/chart/ChartConfig.d.ts +12 -0
- package/dist/bigconsole/components/widgets/chart/ChartConfig.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +254 -0
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js.map +1 -0
- package/dist/bigconsole/components/widgets/chart/ChartLegend.d.ts +25 -0
- package/dist/bigconsole/components/widgets/chart/ChartLegend.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/ChartLegend.js +40 -0
- package/dist/bigconsole/components/widgets/chart/ChartLegend.js.map +1 -0
- package/dist/bigconsole/components/widgets/chart/ChartTooltip.d.ts +24 -0
- package/dist/bigconsole/components/widgets/chart/ChartTooltip.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/ChartTooltip.js +34 -0
- package/dist/bigconsole/components/widgets/chart/ChartTooltip.js.map +1 -0
- package/dist/bigconsole/components/widgets/chart/ChartWidget.d.ts +17 -0
- package/dist/bigconsole/components/widgets/chart/ChartWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/ChartWidget.js +151 -0
- package/dist/bigconsole/components/widgets/chart/ChartWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/AreaChart.d.ts +16 -0
- package/dist/bigconsole/components/widgets/chart/charts/AreaChart.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/AreaChart.js +104 -0
- package/dist/bigconsole/components/widgets/chart/charts/AreaChart.js.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/BarChart.d.ts +16 -0
- package/dist/bigconsole/components/widgets/chart/charts/BarChart.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/BarChart.js +90 -0
- package/dist/bigconsole/components/widgets/chart/charts/BarChart.js.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/FunnelChart.d.ts +18 -0
- package/dist/bigconsole/components/widgets/chart/charts/FunnelChart.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/FunnelChart.js +70 -0
- package/dist/bigconsole/components/widgets/chart/charts/FunnelChart.js.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/LineChart.d.ts +16 -0
- package/dist/bigconsole/components/widgets/chart/charts/LineChart.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/LineChart.js +96 -0
- package/dist/bigconsole/components/widgets/chart/charts/LineChart.js.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/PieChart.d.ts +18 -0
- package/dist/bigconsole/components/widgets/chart/charts/PieChart.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/PieChart.js +98 -0
- package/dist/bigconsole/components/widgets/chart/charts/PieChart.js.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/index.d.ts +12 -0
- package/dist/bigconsole/components/widgets/chart/charts/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/charts/index.js +5 -0
- package/dist/bigconsole/components/widgets/chart/charts/types.d.ts +45 -0
- package/dist/bigconsole/components/widgets/chart/charts/types.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/index.d.ts +11 -0
- package/dist/bigconsole/components/widgets/chart/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/chart/index.js +11 -0
- package/dist/bigconsole/components/widgets/custom/CustomWidget.d.ts +13 -0
- package/dist/bigconsole/components/widgets/custom/CustomWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/custom/CustomWidget.js +201 -0
- package/dist/bigconsole/components/widgets/custom/CustomWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/custom/config.d.ts +9 -0
- package/dist/bigconsole/components/widgets/custom/config.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/custom/config.js +21 -0
- package/dist/bigconsole/components/widgets/custom/config.js.map +1 -0
- package/dist/bigconsole/components/widgets/custom/index.d.ts +8 -0
- package/dist/bigconsole/components/widgets/custom/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/custom/index.js +3 -0
- package/dist/bigconsole/components/widgets/custom/utils.d.ts +4 -0
- package/dist/bigconsole/components/widgets/custom/utils.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/custom/utils.js +13 -0
- package/dist/bigconsole/components/widgets/custom/utils.js.map +1 -0
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.d.ts +16 -0
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +377 -0
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js.map +1 -0
- package/dist/bigconsole/components/widgets/event-logs/index.d.ts +6 -0
- package/dist/bigconsole/components/widgets/event-logs/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/event-logs/index.js +1 -0
- package/dist/bigconsole/components/widgets/form/FormWidget.d.ts +27 -0
- package/dist/bigconsole/components/widgets/form/FormWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/form/FormWidget.js +486 -0
- package/dist/bigconsole/components/widgets/form/FormWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/form/index.d.ts +6 -0
- package/dist/bigconsole/components/widgets/form/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/form/index.js +2 -0
- package/dist/bigconsole/components/widgets/funnel/index.d.ts +12 -0
- package/dist/bigconsole/components/widgets/funnel/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/funnel/index.js +22 -0
- package/dist/bigconsole/components/widgets/funnel/index.js.map +1 -0
- package/dist/bigconsole/components/widgets/gauge/CircularGauge.d.ts +31 -0
- package/dist/bigconsole/components/widgets/gauge/CircularGauge.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/gauge/CircularGauge.js +77 -0
- package/dist/bigconsole/components/widgets/gauge/CircularGauge.js.map +1 -0
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.d.ts +12 -0
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +180 -0
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js.map +1 -0
- package/dist/bigconsole/components/widgets/gauge/GaugeWidget.d.ts +22 -0
- package/dist/bigconsole/components/widgets/gauge/GaugeWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/gauge/GaugeWidget.js +217 -0
- package/dist/bigconsole/components/widgets/gauge/GaugeWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/gauge/LinearGauge.d.ts +28 -0
- package/dist/bigconsole/components/widgets/gauge/LinearGauge.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/gauge/LinearGauge.js +92 -0
- package/dist/bigconsole/components/widgets/gauge/LinearGauge.js.map +1 -0
- package/dist/bigconsole/components/widgets/gauge/index.d.ts +10 -0
- package/dist/bigconsole/components/widgets/gauge/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/gauge/index.js +5 -0
- package/dist/bigconsole/components/widgets/heatmap/HeatmapWidget.d.ts +23 -0
- package/dist/bigconsole/components/widgets/heatmap/HeatmapWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/heatmap/HeatmapWidget.js +98 -0
- package/dist/bigconsole/components/widgets/heatmap/HeatmapWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/heatmap/index.d.ts +7 -0
- package/dist/bigconsole/components/widgets/heatmap/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/heatmap/index.js +2 -0
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.d.ts +17 -0
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js +45 -0
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/iframe-widget/index.d.ts +3 -0
- package/dist/bigconsole/components/widgets/iframe-widget/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/iframe-widget/index.js +2 -0
- package/dist/bigconsole/components/widgets/index.d.ts +34 -0
- package/dist/bigconsole/components/widgets/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/index.js +51 -0
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.d.ts +29 -0
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +92 -0
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/kanban/index.d.ts +3 -0
- package/dist/bigconsole/components/widgets/kanban/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/kanban/index.js +2 -0
- package/dist/bigconsole/components/widgets/kpi/KPIWidget.d.ts +23 -0
- package/dist/bigconsole/components/widgets/kpi/KPIWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/kpi/KPIWidget.js +83 -0
- package/dist/bigconsole/components/widgets/kpi/KPIWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/kpi/index.d.ts +7 -0
- package/dist/bigconsole/components/widgets/kpi/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/kpi/index.js +1 -0
- package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.d.ts +25 -0
- package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.js +188 -0
- package/dist/bigconsole/components/widgets/kpi-comparison/KPIComparisonWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/kpi-comparison/index.d.ts +3 -0
- package/dist/bigconsole/components/widgets/kpi-comparison/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/kpi-comparison/index.js +2 -0
- package/dist/bigconsole/components/widgets/line-chart/index.d.ts +12 -0
- package/dist/bigconsole/components/widgets/line-chart/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/list/ListConfig.d.ts +12 -0
- package/dist/bigconsole/components/widgets/list/ListConfig.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/list/ListConfig.js +131 -0
- package/dist/bigconsole/components/widgets/list/ListConfig.js.map +1 -0
- package/dist/bigconsole/components/widgets/list/ListItem.d.ts +39 -0
- package/dist/bigconsole/components/widgets/list/ListItem.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/list/ListItem.js +103 -0
- package/dist/bigconsole/components/widgets/list/ListItem.js.map +1 -0
- package/dist/bigconsole/components/widgets/list/ListWidget.d.ts +17 -0
- package/dist/bigconsole/components/widgets/list/ListWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/list/ListWidget.js +106 -0
- package/dist/bigconsole/components/widgets/list/ListWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/list/index.d.ts +9 -0
- package/dist/bigconsole/components/widgets/list/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/list/index.js +4 -0
- package/dist/bigconsole/components/widgets/map-widget/MapWidget.d.ts +29 -0
- package/dist/bigconsole/components/widgets/map-widget/MapWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/map-widget/MapWidget.js +125 -0
- package/dist/bigconsole/components/widgets/map-widget/MapWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/map-widget/index.d.ts +3 -0
- package/dist/bigconsole/components/widgets/map-widget/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/map-widget/index.js +2 -0
- package/dist/bigconsole/components/widgets/metric-card/ComparisonBadge.d.ts +15 -0
- package/dist/bigconsole/components/widgets/metric-card/ComparisonBadge.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/metric-card/ComparisonBadge.js +34 -0
- package/dist/bigconsole/components/widgets/metric-card/ComparisonBadge.js.map +1 -0
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.d.ts +12 -0
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +158 -0
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js.map +1 -0
- package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.d.ts +36 -0
- package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js +195 -0
- package/dist/bigconsole/components/widgets/metric-card/MetricCardWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.d.ts +23 -0
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +94 -0
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js.map +1 -0
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.d.ts +14 -0
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +55 -0
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js.map +1 -0
- package/dist/bigconsole/components/widgets/metric-card/index.d.ts +11 -0
- package/dist/bigconsole/components/widgets/metric-card/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/metric-card/index.js +6 -0
- package/dist/bigconsole/components/widgets/pie-chart/index.d.ts +12 -0
- package/dist/bigconsole/components/widgets/pie-chart/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.d.ts +26 -0
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +281 -0
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/pivot-table/index.d.ts +6 -0
- package/dist/bigconsole/components/widgets/pivot-table/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/pivot-table/index.js +2 -0
- package/dist/bigconsole/components/widgets/progress/ProgressBar.d.ts +29 -0
- package/dist/bigconsole/components/widgets/progress/ProgressBar.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/progress/ProgressBar.js +94 -0
- package/dist/bigconsole/components/widgets/progress/ProgressBar.js.map +1 -0
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.d.ts +12 -0
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +187 -0
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js.map +1 -0
- package/dist/bigconsole/components/widgets/progress/ProgressWidget.d.ts +28 -0
- package/dist/bigconsole/components/widgets/progress/ProgressWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/progress/ProgressWidget.js +201 -0
- package/dist/bigconsole/components/widgets/progress/ProgressWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/progress/index.d.ts +9 -0
- package/dist/bigconsole/components/widgets/progress/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/progress/index.js +4 -0
- package/dist/bigconsole/components/widgets/retention/RetentionWidget.d.ts +25 -0
- package/dist/bigconsole/components/widgets/retention/RetentionWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/retention/RetentionWidget.js +159 -0
- package/dist/bigconsole/components/widgets/retention/RetentionWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/retention/index.d.ts +7 -0
- package/dist/bigconsole/components/widgets/retention/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/retention/index.js +2 -0
- package/dist/bigconsole/components/widgets/states/EmptyState.d.ts +14 -0
- package/dist/bigconsole/components/widgets/states/EmptyState.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/states/EmptyState.js +61 -0
- package/dist/bigconsole/components/widgets/states/EmptyState.js.map +1 -0
- package/dist/bigconsole/components/widgets/states/ErrorState.d.ts +11 -0
- package/dist/bigconsole/components/widgets/states/ErrorState.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/states/ErrorState.js +56 -0
- package/dist/bigconsole/components/widgets/states/ErrorState.js.map +1 -0
- package/dist/bigconsole/components/widgets/states/LoadingState.d.ts +9 -0
- package/dist/bigconsole/components/widgets/states/LoadingState.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/states/LoadingState.js +21 -0
- package/dist/bigconsole/components/widgets/states/LoadingState.js.map +1 -0
- package/dist/bigconsole/components/widgets/states/index.d.ts +9 -0
- package/dist/bigconsole/components/widgets/states/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/states/index.js +3 -0
- package/dist/bigconsole/components/widgets/table/TableCell.d.ts +31 -0
- package/dist/bigconsole/components/widgets/table/TableCell.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/table/TableCell.js +65 -0
- package/dist/bigconsole/components/widgets/table/TableCell.js.map +1 -0
- package/dist/bigconsole/components/widgets/table/TableConfig.d.ts +12 -0
- package/dist/bigconsole/components/widgets/table/TableConfig.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/table/TableConfig.js +254 -0
- package/dist/bigconsole/components/widgets/table/TableConfig.js.map +1 -0
- package/dist/bigconsole/components/widgets/table/TableHeader.d.ts +32 -0
- package/dist/bigconsole/components/widgets/table/TableHeader.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/table/TableHeader.js +85 -0
- package/dist/bigconsole/components/widgets/table/TableHeader.js.map +1 -0
- package/dist/bigconsole/components/widgets/table/TablePagination.d.ts +23 -0
- package/dist/bigconsole/components/widgets/table/TablePagination.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/table/TablePagination.js +166 -0
- package/dist/bigconsole/components/widgets/table/TablePagination.js.map +1 -0
- package/dist/bigconsole/components/widgets/table/TableWidget.d.ts +16 -0
- package/dist/bigconsole/components/widgets/table/TableWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/table/TableWidget.js +258 -0
- package/dist/bigconsole/components/widgets/table/TableWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/table/index.d.ts +11 -0
- package/dist/bigconsole/components/widgets/table/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/table/index.js +6 -0
- package/dist/bigconsole/components/widgets/text-widget/TextWidget.d.ts +14 -0
- package/dist/bigconsole/components/widgets/text-widget/TextWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/text-widget/TextWidget.js +47 -0
- package/dist/bigconsole/components/widgets/text-widget/TextWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/text-widget/index.d.ts +3 -0
- package/dist/bigconsole/components/widgets/text-widget/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/text-widget/index.js +2 -0
- package/dist/bigconsole/components/widgets/timeline/TimelineWidget.d.ts +31 -0
- package/dist/bigconsole/components/widgets/timeline/TimelineWidget.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/timeline/TimelineWidget.js +147 -0
- package/dist/bigconsole/components/widgets/timeline/TimelineWidget.js.map +1 -0
- package/dist/bigconsole/components/widgets/timeline/index.d.ts +3 -0
- package/dist/bigconsole/components/widgets/timeline/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/timeline/index.js +2 -0
- package/dist/bigconsole/components/widgets/utils/inferFields.d.ts +45 -0
- package/dist/bigconsole/components/widgets/utils/inferFields.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/utils/inferFields.js +58 -0
- package/dist/bigconsole/components/widgets/utils/inferFields.js.map +1 -0
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.d.ts +16 -0
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +500 -0
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js.map +1 -0
- package/dist/bigconsole/components/widgets/webhook-config/index.d.ts +6 -0
- package/dist/bigconsole/components/widgets/webhook-config/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/webhook-config/index.js +1 -0
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.d.ts +26 -0
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +467 -0
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js.map +1 -0
- package/dist/bigconsole/components/widgets/widget-actions/index.d.ts +8 -0
- package/dist/bigconsole/components/widgets/widget-actions/index.d.ts.map +1 -0
- package/dist/bigconsole/components/widgets/widget-actions/index.js +1 -0
- package/dist/bigconsole/components/workflow/DataSinkMultiSelector.d.ts +19 -0
- package/dist/bigconsole/components/workflow/DataSinkMultiSelector.d.ts.map +1 -0
- package/dist/bigconsole/components/workflow/WorkflowCard.d.ts +11 -0
- package/dist/bigconsole/components/workflow/WorkflowCard.d.ts.map +1 -0
- package/dist/bigconsole/components/workflow/WorkflowCard.js +158 -0
- package/dist/bigconsole/components/workflow/WorkflowCard.js.map +1 -0
- package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.d.ts +11 -0
- package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.d.ts.map +1 -0
- package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.js +94 -0
- package/dist/bigconsole/components/workflow/WorkflowDeleteDialog.js.map +1 -0
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.d.ts +13 -0
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.d.ts.map +1 -0
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +115 -0
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js.map +1 -0
- package/dist/bigconsole/components/workflow/index.d.ts +10 -0
- package/dist/bigconsole/components/workflow/index.d.ts.map +1 -0
- package/dist/bigconsole/constants.d.ts +15 -0
- package/dist/bigconsole/constants.d.ts.map +1 -0
- package/dist/bigconsole/constants.js +6 -0
- package/dist/bigconsole/constants.js.map +1 -0
- package/dist/bigconsole/context/BigConsoleContext.d.ts +25 -0
- package/dist/bigconsole/context/BigConsoleContext.d.ts.map +1 -0
- package/dist/bigconsole/context/BigConsoleContext.js +53 -0
- package/dist/bigconsole/context/BigConsoleContext.js.map +1 -0
- package/dist/bigconsole/context/index.d.ts +2 -0
- package/dist/bigconsole/context/index.d.ts.map +1 -0
- package/dist/bigconsole/context/index.js +1 -0
- package/dist/bigconsole/contexts/CrossFilterContext.d.ts +48 -0
- package/dist/bigconsole/contexts/CrossFilterContext.d.ts.map +1 -0
- package/dist/bigconsole/contexts/CrossFilterContext.js +92 -0
- package/dist/bigconsole/contexts/CrossFilterContext.js.map +1 -0
- package/dist/bigconsole/contexts/NavigationContext.d.ts +45 -0
- package/dist/bigconsole/contexts/NavigationContext.d.ts.map +1 -0
- package/dist/bigconsole/contexts/NavigationContext.js +43 -0
- package/dist/bigconsole/contexts/NavigationContext.js.map +1 -0
- package/dist/bigconsole/contexts/index.d.ts +8 -0
- package/dist/bigconsole/contexts/index.d.ts.map +1 -0
- package/dist/bigconsole/contexts/index.js +2 -0
- package/dist/bigconsole/graphql/apollo-compat.d.ts +16 -0
- package/dist/bigconsole/graphql/apollo-compat.d.ts.map +1 -0
- package/dist/bigconsole/hooks/index.d.ts +35 -0
- package/dist/bigconsole/hooks/index.d.ts.map +1 -0
- package/dist/bigconsole/hooks/index.js +29 -0
- package/dist/bigconsole/hooks/useAutoRefresh.d.ts +51 -0
- package/dist/bigconsole/hooks/useAutoRefresh.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useAutoRefresh.js +93 -0
- package/dist/bigconsole/hooks/useAutoRefresh.js.map +1 -0
- package/dist/bigconsole/hooks/useCrossFilter.d.ts +79 -0
- package/dist/bigconsole/hooks/useCrossFilter.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useCrossFilter.js +63 -0
- package/dist/bigconsole/hooks/useCrossFilter.js.map +1 -0
- package/dist/bigconsole/hooks/useDashboardOperations.d.ts +43 -0
- package/dist/bigconsole/hooks/useDashboardOperations.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useDashboardOperations.js +187 -0
- package/dist/bigconsole/hooks/useDashboardOperations.js.map +1 -0
- package/dist/bigconsole/hooks/useDashboardSharing.d.ts +60 -0
- package/dist/bigconsole/hooks/useDashboardSharing.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useDashboardSharing.js +157 -0
- package/dist/bigconsole/hooks/useDashboardSharing.js.map +1 -0
- package/dist/bigconsole/hooks/useDashboardTemplates.d.ts +135 -0
- package/dist/bigconsole/hooks/useDashboardTemplates.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useDashboardTemplates.js +298 -0
- package/dist/bigconsole/hooks/useDashboardTemplates.js.map +1 -0
- package/dist/bigconsole/hooks/useDashboardViews.d.ts +58 -0
- package/dist/bigconsole/hooks/useDashboardViews.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useDashboardViews.js +170 -0
- package/dist/bigconsole/hooks/useDashboardViews.js.map +1 -0
- package/dist/bigconsole/hooks/useDataSinkOperations.d.ts +55 -0
- package/dist/bigconsole/hooks/useDataSinkOperations.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useDataSinkOperations.js +245 -0
- package/dist/bigconsole/hooks/useDataSinkOperations.js.map +1 -0
- package/dist/bigconsole/hooks/useDataSinkSubscription.d.ts +31 -0
- package/dist/bigconsole/hooks/useDataSinkSubscription.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useDataSinkSubscription.js +127 -0
- package/dist/bigconsole/hooks/useDataSinkSubscription.js.map +1 -0
- package/dist/bigconsole/hooks/useDrilldown.d.ts +63 -0
- package/dist/bigconsole/hooks/useDrilldown.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useDrilldown.js +192 -0
- package/dist/bigconsole/hooks/useDrilldown.js.map +1 -0
- package/dist/bigconsole/hooks/useDrilldownOperations.d.ts +42 -0
- package/dist/bigconsole/hooks/useDrilldownOperations.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useDrilldownOperations.js +62 -0
- package/dist/bigconsole/hooks/useDrilldownOperations.js.map +1 -0
- package/dist/bigconsole/hooks/useEventLogs.d.ts +94 -0
- package/dist/bigconsole/hooks/useEventLogs.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useEventLogs.js +116 -0
- package/dist/bigconsole/hooks/useEventLogs.js.map +1 -0
- package/dist/bigconsole/hooks/useEventWebhooks.d.ts +91 -0
- package/dist/bigconsole/hooks/useEventWebhooks.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useEventWebhooks.js +138 -0
- package/dist/bigconsole/hooks/useEventWebhooks.js.map +1 -0
- package/dist/bigconsole/hooks/useExportDashboard.d.ts +28 -0
- package/dist/bigconsole/hooks/useExportDashboard.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useExportDashboard.js +65 -0
- package/dist/bigconsole/hooks/useExportDashboard.js.map +1 -0
- package/dist/bigconsole/hooks/useExportDataSink.d.ts +27 -0
- package/dist/bigconsole/hooks/useExportDataSink.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useExportDataSink.js +87 -0
- package/dist/bigconsole/hooks/useExportDataSink.js.map +1 -0
- package/dist/bigconsole/hooks/useExportParser.d.ts +25 -0
- package/dist/bigconsole/hooks/useExportParser.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useExportParser.js +81 -0
- package/dist/bigconsole/hooks/useExportParser.js.map +1 -0
- package/dist/bigconsole/hooks/useFilterPresets.d.ts +47 -0
- package/dist/bigconsole/hooks/useFilterPresets.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useFilterPresets.js +157 -0
- package/dist/bigconsole/hooks/useFilterPresets.js.map +1 -0
- package/dist/bigconsole/hooks/useFilterUrlSync.d.ts +46 -0
- package/dist/bigconsole/hooks/useFilterUrlSync.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useFilterUrlSync.js +179 -0
- package/dist/bigconsole/hooks/useFilterUrlSync.js.map +1 -0
- package/dist/bigconsole/hooks/useGlobalFilters.d.ts +69 -0
- package/dist/bigconsole/hooks/useGlobalFilters.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useGlobalFilters.js +154 -0
- package/dist/bigconsole/hooks/useGlobalFilters.js.map +1 -0
- package/dist/bigconsole/hooks/useImportDashboard.d.ts +88 -0
- package/dist/bigconsole/hooks/useImportDashboard.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useImportDashboard.js +157 -0
- package/dist/bigconsole/hooks/useImportDashboard.js.map +1 -0
- package/dist/bigconsole/hooks/useImportDataSink.d.ts +74 -0
- package/dist/bigconsole/hooks/useImportDataSink.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useImportDataSink.js +219 -0
- package/dist/bigconsole/hooks/useImportDataSink.js.map +1 -0
- package/dist/bigconsole/hooks/useImportParser.d.ts +77 -0
- package/dist/bigconsole/hooks/useImportParser.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useImportParser.js +222 -0
- package/dist/bigconsole/hooks/useImportParser.js.map +1 -0
- package/dist/bigconsole/hooks/useInstalledWidgets.d.ts +15 -0
- package/dist/bigconsole/hooks/useInstalledWidgets.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useInstalledWidgets.js +81 -0
- package/dist/bigconsole/hooks/useInstalledWidgets.js.map +1 -0
- package/dist/bigconsole/hooks/usePageOperations.d.ts +35 -0
- package/dist/bigconsole/hooks/usePageOperations.d.ts.map +1 -0
- package/dist/bigconsole/hooks/usePageOperations.js +95 -0
- package/dist/bigconsole/hooks/usePageOperations.js.map +1 -0
- package/dist/bigconsole/hooks/useParserOperations.d.ts +64 -0
- package/dist/bigconsole/hooks/useParserOperations.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useParserOperations.js +151 -0
- package/dist/bigconsole/hooks/useParserOperations.js.map +1 -0
- package/dist/bigconsole/hooks/usePipelineOperations.d.ts +76 -0
- package/dist/bigconsole/hooks/usePipelineOperations.d.ts.map +1 -0
- package/dist/bigconsole/hooks/usePipelineOperations.js +260 -0
- package/dist/bigconsole/hooks/usePipelineOperations.js.map +1 -0
- package/dist/bigconsole/hooks/useWidgetActions.d.ts +69 -0
- package/dist/bigconsole/hooks/useWidgetActions.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useWidgetActions.js +114 -0
- package/dist/bigconsole/hooks/useWidgetActions.js.map +1 -0
- package/dist/bigconsole/hooks/useWidgetData.d.ts +45 -0
- package/dist/bigconsole/hooks/useWidgetData.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useWidgetData.js +83 -0
- package/dist/bigconsole/hooks/useWidgetData.js.map +1 -0
- package/dist/bigconsole/hooks/useWidgetEvents.d.ts +60 -0
- package/dist/bigconsole/hooks/useWidgetEvents.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useWidgetEvents.js +35 -0
- package/dist/bigconsole/hooks/useWidgetEvents.js.map +1 -0
- package/dist/bigconsole/hooks/useWidgetExport.d.ts +19 -0
- package/dist/bigconsole/hooks/useWidgetExport.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useWidgetExport.js +77 -0
- package/dist/bigconsole/hooks/useWidgetExport.js.map +1 -0
- package/dist/bigconsole/hooks/useWidgetOperations.d.ts +61 -0
- package/dist/bigconsole/hooks/useWidgetOperations.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useWidgetOperations.js +248 -0
- package/dist/bigconsole/hooks/useWidgetOperations.js.map +1 -0
- package/dist/bigconsole/hooks/useWorkflowOperations.d.ts +54 -0
- package/dist/bigconsole/hooks/useWorkflowOperations.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useWorkflowOperations.js +237 -0
- package/dist/bigconsole/hooks/useWorkflowOperations.js.map +1 -0
- package/dist/bigconsole/index.d.ts +30 -0
- package/dist/bigconsole/index.d.ts.map +1 -0
- package/dist/bigconsole/index.js +8 -0
- package/dist/bigconsole/modules/dashboard/index.d.ts +15 -0
- package/dist/bigconsole/modules/dashboard/index.d.ts.map +1 -0
- package/dist/bigconsole/modules/index.d.ts +15 -0
- package/dist/bigconsole/modules/index.d.ts.map +1 -0
- package/dist/bigconsole/modules/renderer/index.d.ts +8 -0
- package/dist/bigconsole/modules/renderer/index.d.ts.map +1 -0
- package/dist/bigconsole/modules/widget/index.d.ts +20 -0
- package/dist/bigconsole/modules/widget/index.d.ts.map +1 -0
- package/dist/bigconsole/pages/DashboardBuilderPage.d.ts +5 -0
- package/dist/bigconsole/pages/DashboardBuilderPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/DashboardBuilderPage.js +398 -0
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -0
- package/dist/bigconsole/pages/DashboardViewPage.d.ts +5 -0
- package/dist/bigconsole/pages/DashboardViewPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/DashboardViewPage.js +325 -0
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -0
- package/dist/bigconsole/pages/DashboardsPage.d.ts +5 -0
- package/dist/bigconsole/pages/DashboardsPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/DashboardsPage.js +555 -0
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -0
- package/dist/bigconsole/pages/DataParsersPage.d.ts +9 -0
- package/dist/bigconsole/pages/DataParsersPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/DataParsersPage.js +444 -0
- package/dist/bigconsole/pages/DataParsersPage.js.map +1 -0
- package/dist/bigconsole/pages/DataSinkBuilderPage.d.ts +10 -0
- package/dist/bigconsole/pages/DataSinkBuilderPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +538 -0
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -0
- package/dist/bigconsole/pages/DataSinkViewPage.d.ts +8 -0
- package/dist/bigconsole/pages/DataSinkViewPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/DataSinkViewPage.js +342 -0
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -0
- package/dist/bigconsole/pages/DataSinksPage.d.ts +5 -0
- package/dist/bigconsole/pages/DataSinksPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/DataSinksPage.js +835 -0
- package/dist/bigconsole/pages/DataSinksPage.js.map +1 -0
- package/dist/bigconsole/pages/DataSourcesPage.d.ts +10 -0
- package/dist/bigconsole/pages/DataSourcesPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/DataSourcesPage.js +18 -0
- package/dist/bigconsole/pages/DataSourcesPage.js.map +1 -0
- package/dist/bigconsole/pages/HomePage.d.ts +5 -0
- package/dist/bigconsole/pages/HomePage.d.ts.map +1 -0
- package/dist/bigconsole/pages/HomePage.js +338 -0
- package/dist/bigconsole/pages/HomePage.js.map +1 -0
- package/dist/bigconsole/pages/InsightsPage.d.ts +5 -0
- package/dist/bigconsole/pages/InsightsPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/InsightsPage.js +586 -0
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -0
- package/dist/bigconsole/pages/ParserBuilderPage.d.ts +9 -0
- package/dist/bigconsole/pages/ParserBuilderPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/ParserBuilderPage.js +727 -0
- package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -0
- package/dist/bigconsole/pages/ParserViewPage.d.ts +8 -0
- package/dist/bigconsole/pages/ParserViewPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/ParserViewPage.js +394 -0
- package/dist/bigconsole/pages/ParserViewPage.js.map +1 -0
- package/dist/bigconsole/pages/PipelineBuilderPage.d.ts +9 -0
- package/dist/bigconsole/pages/PipelineBuilderPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/PipelineBuilderPage.js +585 -0
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -0
- package/dist/bigconsole/pages/PipelineViewPage.d.ts +9 -0
- package/dist/bigconsole/pages/PipelineViewPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/PipelineViewPage.js +483 -0
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -0
- package/dist/bigconsole/pages/PipelinesPage.d.ts +9 -0
- package/dist/bigconsole/pages/PipelinesPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/PipelinesPage.js +375 -0
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -0
- package/dist/bigconsole/pages/SettingsPage.d.ts +5 -0
- package/dist/bigconsole/pages/SettingsPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/SettingsPage.js +478 -0
- package/dist/bigconsole/pages/SettingsPage.js.map +1 -0
- package/dist/bigconsole/pages/WidgetDemoPage.d.ts +5 -0
- package/dist/bigconsole/pages/WidgetDemoPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/WidgetDemoPage.js +257 -0
- package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -0
- package/dist/bigconsole/pages/WorkflowViewPage.d.ts +9 -0
- package/dist/bigconsole/pages/WorkflowViewPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/WorkflowViewPage.js +532 -0
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -0
- package/dist/bigconsole/pages/WorkflowsPage.d.ts +9 -0
- package/dist/bigconsole/pages/WorkflowsPage.d.ts.map +1 -0
- package/dist/bigconsole/pages/WorkflowsPage.js +384 -0
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -0
- package/dist/bigconsole/pages/index.d.ts +14 -0
- package/dist/bigconsole/pages/index.d.ts.map +1 -0
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.d.ts +6 -0
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.d.ts.map +1 -0
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +471 -0
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js.map +1 -0
- package/dist/bigconsole/renderers/adapters/BigConsoleRenderer.d.ts +9 -0
- package/dist/bigconsole/renderers/adapters/BigConsoleRenderer.d.ts.map +1 -0
- package/dist/bigconsole/renderers/adapters/BigConsoleRenderer.js +66 -0
- package/dist/bigconsole/renderers/adapters/BigConsoleRenderer.js.map +1 -0
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.d.ts +6 -0
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.d.ts.map +1 -0
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +384 -0
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js.map +1 -0
- package/dist/bigconsole/renderers/adapters/CustomRenderer.d.ts +46 -0
- package/dist/bigconsole/renderers/adapters/CustomRenderer.d.ts.map +1 -0
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +172 -0
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js.map +1 -0
- package/dist/bigconsole/renderers/adapters/index.d.ts +10 -0
- package/dist/bigconsole/renderers/adapters/index.d.ts.map +1 -0
- package/dist/bigconsole/renderers/factory/WidgetRendererFactory.d.ts +46 -0
- package/dist/bigconsole/renderers/factory/WidgetRendererFactory.d.ts.map +1 -0
- package/dist/bigconsole/renderers/factory/WidgetRendererFactory.js +55 -0
- package/dist/bigconsole/renderers/factory/WidgetRendererFactory.js.map +1 -0
- package/dist/bigconsole/renderers/index.d.ts +10 -0
- package/dist/bigconsole/renderers/index.d.ts.map +1 -0
- package/dist/bigconsole/renderers/registry/RendererRegistry.d.ts +42 -0
- package/dist/bigconsole/renderers/registry/RendererRegistry.d.ts.map +1 -0
- package/dist/bigconsole/renderers/registry/RendererRegistry.js +139 -0
- package/dist/bigconsole/renderers/registry/RendererRegistry.js.map +1 -0
- package/dist/bigconsole/renderers/types/index.d.ts +7 -0
- package/dist/bigconsole/renderers/types/index.d.ts.map +1 -0
- package/dist/bigconsole/renderers/types/renderer.d.ts +228 -0
- package/dist/bigconsole/renderers/types/renderer.d.ts.map +1 -0
- package/dist/bigconsole/store/dashboardStore.d.ts +132 -0
- package/dist/bigconsole/store/dashboardStore.d.ts.map +1 -0
- package/dist/bigconsole/store/dashboardStore.js +246 -0
- package/dist/bigconsole/store/dashboardStore.js.map +1 -0
- package/dist/bigconsole/store/dataSinkStore.d.ts +94 -0
- package/dist/bigconsole/store/dataSinkStore.d.ts.map +1 -0
- package/dist/bigconsole/store/dataSinkStore.js +138 -0
- package/dist/bigconsole/store/dataSinkStore.js.map +1 -0
- package/dist/bigconsole/store/drilldownStore.d.ts +63 -0
- package/dist/bigconsole/store/drilldownStore.d.ts.map +1 -0
- package/dist/bigconsole/store/drilldownStore.js +69 -0
- package/dist/bigconsole/store/drilldownStore.js.map +1 -0
- package/dist/bigconsole/store/index.d.ts +13 -0
- package/dist/bigconsole/store/index.d.ts.map +1 -0
- package/dist/bigconsole/store/index.js +7 -0
- package/dist/bigconsole/store/parserStore.d.ts +106 -0
- package/dist/bigconsole/store/parserStore.d.ts.map +1 -0
- package/dist/bigconsole/store/parserStore.js +175 -0
- package/dist/bigconsole/store/parserStore.js.map +1 -0
- package/dist/bigconsole/store/pipelineStore.d.ts +113 -0
- package/dist/bigconsole/store/pipelineStore.d.ts.map +1 -0
- package/dist/bigconsole/store/pipelineStore.js +231 -0
- package/dist/bigconsole/store/pipelineStore.js.map +1 -0
- package/dist/bigconsole/store/widgetStore.d.ts +106 -0
- package/dist/bigconsole/store/widgetStore.d.ts.map +1 -0
- package/dist/bigconsole/store/widgetStore.js +217 -0
- package/dist/bigconsole/store/widgetStore.js.map +1 -0
- package/dist/bigconsole/store/workflowStore.d.ts +120 -0
- package/dist/bigconsole/store/workflowStore.d.ts.map +1 -0
- package/dist/bigconsole/store/workflowStore.js +193 -0
- package/dist/bigconsole/store/workflowStore.js.map +1 -0
- package/dist/bigconsole/types/index.d.ts +1233 -0
- package/dist/bigconsole/types/index.d.ts.map +1 -0
- package/dist/bigconsole/utils/index.d.ts +9 -0
- package/dist/bigconsole/utils/index.d.ts.map +1 -0
- package/dist/bigconsole/utils/semanticTokens.d.ts +88 -0
- package/dist/bigconsole/utils/semanticTokens.d.ts.map +1 -0
- package/dist/bigconsole/utils/semanticTokens.js +41 -0
- package/dist/bigconsole/utils/semanticTokens.js.map +1 -0
- package/dist/bigconsole/utils/widgetPositioning.d.ts +81 -0
- package/dist/bigconsole/utils/widgetPositioning.d.ts.map +1 -0
- package/dist/bigconsole/utils/widgetPositioning.js +44 -0
- package/dist/bigconsole/utils/widgetPositioning.js.map +1 -0
- package/dist/bigconsole/utils/widgetTypeMapping.d.ts +34 -0
- package/dist/bigconsole/utils/widgetTypeMapping.d.ts.map +1 -0
- package/dist/bigconsole/utils/widgetTypeMapping.js +56 -0
- package/dist/bigconsole/utils/widgetTypeMapping.js.map +1 -0
- package/dist/generated/global-operations.d.ts +2 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-types.d.ts +20716 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +9514 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-operations.js +1993 -0
- package/dist/generated/wspace-operations.js.map +1 -0
- package/dist/generated/wspace-types.d.ts +53363 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/microfe-bigconsole.css +2 -0
- package/dist/utils/nativeBridge.d.ts +3 -0
- package/dist/utils/nativeBridge.d.ts.map +1 -0
- package/dist/utils/nativeBridge.js +2 -0
- package/package.json +118 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { CreateParserDocument as e, GetParserDocument as t, UpdateParserDocument as n } from "../../generated/wspace-operations.js";
|
|
2
|
+
import { useCallback as r, useState as i } from "react";
|
|
3
|
+
import { useApolloClient as a } from "@apollo/client/react";
|
|
4
|
+
//#region src/bigconsole/hooks/useImportParser.ts
|
|
5
|
+
function o(e) {
|
|
6
|
+
return new Promise((t, n) => {
|
|
7
|
+
let r = new FileReader();
|
|
8
|
+
r.onload = (e) => {
|
|
9
|
+
let r = e.target?.result;
|
|
10
|
+
typeof r == "string" ? t(r) : n(/* @__PURE__ */ Error("Failed to read file as text"));
|
|
11
|
+
}, r.onerror = () => n(/* @__PURE__ */ Error("Failed to read file")), r.readAsText(e);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function s(e) {
|
|
15
|
+
try {
|
|
16
|
+
let t = JSON.parse(e);
|
|
17
|
+
return t.exportedFrom?.parserId || t.parser?.id || null;
|
|
18
|
+
} catch {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function c(e) {
|
|
23
|
+
let t = [];
|
|
24
|
+
try {
|
|
25
|
+
let n = JSON.parse(e);
|
|
26
|
+
if (n.schemaVersion || t.push({
|
|
27
|
+
code: "MISSING_SCHEMA_VERSION",
|
|
28
|
+
message: "Missing schema version"
|
|
29
|
+
}), !n.parser) return t.push({
|
|
30
|
+
code: "MISSING_PARSER",
|
|
31
|
+
message: "Missing parser object in export file"
|
|
32
|
+
}), {
|
|
33
|
+
isValid: !1,
|
|
34
|
+
parserInfo: null,
|
|
35
|
+
errors: t
|
|
36
|
+
};
|
|
37
|
+
let r = n.parser;
|
|
38
|
+
r.name || t.push({
|
|
39
|
+
code: "MISSING_NAME",
|
|
40
|
+
message: "Parser name is required",
|
|
41
|
+
path: "parser.name"
|
|
42
|
+
}), r.type ? ["jq", "jsonata"].includes(r.type) || t.push({
|
|
43
|
+
code: "INVALID_TYPE",
|
|
44
|
+
message: `Invalid parser type: ${r.type}. Must be 'jq' or 'jsonata'`,
|
|
45
|
+
path: "parser.type"
|
|
46
|
+
}) : t.push({
|
|
47
|
+
code: "MISSING_TYPE",
|
|
48
|
+
message: "Parser type is required",
|
|
49
|
+
path: "parser.type"
|
|
50
|
+
}), r.expression || t.push({
|
|
51
|
+
code: "MISSING_EXPRESSION",
|
|
52
|
+
message: "Parser expression is required",
|
|
53
|
+
path: "parser.expression"
|
|
54
|
+
}), r.inputSinkKey || t.push({
|
|
55
|
+
code: "MISSING_INPUT_SINK_KEY",
|
|
56
|
+
message: "Input sink key is required",
|
|
57
|
+
path: "parser.inputSinkKey"
|
|
58
|
+
}), r.outputKey || t.push({
|
|
59
|
+
code: "MISSING_OUTPUT_KEY",
|
|
60
|
+
message: "Output key is required",
|
|
61
|
+
path: "parser.outputKey"
|
|
62
|
+
});
|
|
63
|
+
let i = {
|
|
64
|
+
name: r.name || "",
|
|
65
|
+
description: r.description,
|
|
66
|
+
type: r.type || "",
|
|
67
|
+
expression: r.expression || "",
|
|
68
|
+
inputSinkKey: r.inputSinkKey || "",
|
|
69
|
+
outputKey: r.outputKey || "",
|
|
70
|
+
exportedAt: n.exportedAt,
|
|
71
|
+
exportedFrom: n.exportedFrom?.parserId,
|
|
72
|
+
schemaVersion: n.schemaVersion || "unknown"
|
|
73
|
+
};
|
|
74
|
+
return {
|
|
75
|
+
isValid: t.length === 0,
|
|
76
|
+
parserInfo: i,
|
|
77
|
+
errors: t
|
|
78
|
+
};
|
|
79
|
+
} catch {
|
|
80
|
+
return {
|
|
81
|
+
isValid: !1,
|
|
82
|
+
parserInfo: null,
|
|
83
|
+
errors: [{
|
|
84
|
+
code: "INVALID_JSON",
|
|
85
|
+
message: "Invalid JSON format"
|
|
86
|
+
}]
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
function l() {
|
|
91
|
+
let [l, u] = i(!1), [d, f] = i(null), [p, m] = i(null), [h, g] = i(null), _ = a(), v = r((e) => {
|
|
92
|
+
let t = c(e);
|
|
93
|
+
return m(t), t;
|
|
94
|
+
}, []), y = r((e) => s(e), []), b = r(async (r, i) => {
|
|
95
|
+
try {
|
|
96
|
+
u(!0), f(null);
|
|
97
|
+
let a = c(r);
|
|
98
|
+
if (!a.isValid || !a.parserInfo) throw Error(a.errors[0]?.message || "Invalid import content");
|
|
99
|
+
let o = JSON.parse(r).parser, l = s(r), d = !1, p;
|
|
100
|
+
if (l) try {
|
|
101
|
+
let e = (await _.query({
|
|
102
|
+
query: t,
|
|
103
|
+
variables: { id: l },
|
|
104
|
+
fetchPolicy: "network-only"
|
|
105
|
+
})).data?.parser;
|
|
106
|
+
if (e) {
|
|
107
|
+
if (e.expression !== o.expression || e.inputSinkKey !== o.inputSinkKey || e.outputKey !== o.outputKey || (e.description || "") !== (o.description || "") || e.ttl !== o.ttl) {
|
|
108
|
+
let t = {
|
|
109
|
+
name: e.name,
|
|
110
|
+
expression: o.expression,
|
|
111
|
+
inputSinkKey: o.inputSinkKey,
|
|
112
|
+
outputKey: o.outputKey,
|
|
113
|
+
description: o.description || void 0,
|
|
114
|
+
ttl: o.ttl || void 0,
|
|
115
|
+
status: o.status || void 0
|
|
116
|
+
}, r = (await _.mutate({
|
|
117
|
+
mutation: n,
|
|
118
|
+
variables: {
|
|
119
|
+
id: l,
|
|
120
|
+
input: t,
|
|
121
|
+
version: e.version
|
|
122
|
+
}
|
|
123
|
+
})).data?.updateParser;
|
|
124
|
+
r && (d = !0, p = {
|
|
125
|
+
id: r.id,
|
|
126
|
+
name: r.name
|
|
127
|
+
});
|
|
128
|
+
} else {
|
|
129
|
+
p = {
|
|
130
|
+
id: e.id,
|
|
131
|
+
name: e.name
|
|
132
|
+
};
|
|
133
|
+
let t = {
|
|
134
|
+
success: !0,
|
|
135
|
+
parser: p,
|
|
136
|
+
originalUpdated: !1,
|
|
137
|
+
originalParser: p,
|
|
138
|
+
alreadyExists: !0
|
|
139
|
+
};
|
|
140
|
+
return g(t), t;
|
|
141
|
+
}
|
|
142
|
+
let t = {
|
|
143
|
+
success: !0,
|
|
144
|
+
parser: p,
|
|
145
|
+
originalUpdated: d,
|
|
146
|
+
originalParser: p,
|
|
147
|
+
alreadyExists: !1
|
|
148
|
+
};
|
|
149
|
+
return g(t), t;
|
|
150
|
+
}
|
|
151
|
+
} catch (e) {
|
|
152
|
+
console.warn("Could not fetch original parser:", e);
|
|
153
|
+
}
|
|
154
|
+
let m = {
|
|
155
|
+
consoleId: i.consoleId,
|
|
156
|
+
name: i.name || o.name,
|
|
157
|
+
type: o.type,
|
|
158
|
+
expression: o.expression,
|
|
159
|
+
inputSinkKey: i.inputSinkKey || o.inputSinkKey,
|
|
160
|
+
outputKey: i.outputKey || o.outputKey,
|
|
161
|
+
description: o.description || void 0,
|
|
162
|
+
ttl: o.ttl || void 0
|
|
163
|
+
}, h = (await _.mutate({
|
|
164
|
+
mutation: e,
|
|
165
|
+
variables: { input: m }
|
|
166
|
+
})).data?.createParser;
|
|
167
|
+
if (h) {
|
|
168
|
+
let e = {
|
|
169
|
+
success: !0,
|
|
170
|
+
parser: {
|
|
171
|
+
id: h.id,
|
|
172
|
+
name: h.name
|
|
173
|
+
},
|
|
174
|
+
originalUpdated: !1,
|
|
175
|
+
originalParser: void 0
|
|
176
|
+
};
|
|
177
|
+
return g(e), e;
|
|
178
|
+
}
|
|
179
|
+
throw Error("Import returned empty result");
|
|
180
|
+
} catch (e) {
|
|
181
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to import parser");
|
|
182
|
+
f(t);
|
|
183
|
+
let n = {
|
|
184
|
+
success: !1,
|
|
185
|
+
errorMessage: t.message
|
|
186
|
+
};
|
|
187
|
+
return g(n), n;
|
|
188
|
+
} finally {
|
|
189
|
+
u(!1);
|
|
190
|
+
}
|
|
191
|
+
}, [_]);
|
|
192
|
+
return {
|
|
193
|
+
loading: l,
|
|
194
|
+
error: d,
|
|
195
|
+
validationResult: p,
|
|
196
|
+
importResult: h,
|
|
197
|
+
validateImport: v,
|
|
198
|
+
importParser: b,
|
|
199
|
+
importFromFile: r(async (e, t) => {
|
|
200
|
+
try {
|
|
201
|
+
if (!e.name.endsWith(".json")) throw Error("Invalid file type. Please select a JSON file.");
|
|
202
|
+
let n = await o(e);
|
|
203
|
+
try {
|
|
204
|
+
JSON.parse(n);
|
|
205
|
+
} catch {
|
|
206
|
+
throw Error("Invalid JSON format. Please select a valid export file.");
|
|
207
|
+
}
|
|
208
|
+
return await b(n, t);
|
|
209
|
+
} catch (e) {
|
|
210
|
+
return f(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to import from file")), null;
|
|
211
|
+
}
|
|
212
|
+
}, [b]),
|
|
213
|
+
extractParserId: y,
|
|
214
|
+
clearState: r(() => {
|
|
215
|
+
f(null), m(null), g(null);
|
|
216
|
+
}, [])
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
//#endregion
|
|
220
|
+
export { l as default };
|
|
221
|
+
|
|
222
|
+
//# sourceMappingURL=useImportParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useImportParser.js","names":[],"sources":["../../../src/bigconsole/hooks/useImportParser.ts"],"sourcesContent":["/**\n * useImportParser Hook\n *\n * Provides parser import functionality with validation and conflict resolution.\n * Supports both creating new parsers and updating existing ones on re-import.\n */\n\nimport { useCallback, useState } from 'react';\nimport { useApolloClient } from '@apollo/client/react';\nimport { CreateParserDocument, UpdateParserDocument, GetParserDocument } from '../../generated/wspace-operations';\nimport type { Parser, ParserType, ParserStatus } from '../types';\n\n// ============================================================================\n// Types\n// ============================================================================\n\nexport interface ImportParserInfo {\n name: string;\n description?: string;\n type: string;\n expression: string;\n inputSinkKey: string;\n outputKey: string;\n exportedAt?: string;\n exportedFrom?: string;\n schemaVersion: string;\n}\n\nexport interface ImportParserValidationError {\n code: string;\n message: string;\n path?: string;\n}\n\nexport interface ImportParserValidationResult {\n isValid: boolean;\n parserInfo: ImportParserInfo | null;\n errors: ImportParserValidationError[];\n}\n\nexport interface ImportParserResult {\n success: boolean;\n parser?: {\n id: string;\n name: string;\n };\n errorMessage?: string;\n /** Whether the original parser was also updated */\n originalUpdated?: boolean;\n /** The original parser that was updated (if any) */\n originalParser?: {\n id: string;\n name: string;\n };\n /** Whether the entity already exists with no changes (show \"already exists\" popup) */\n alreadyExists?: boolean;\n}\n\nexport interface ImportParserOptions {\n /** Target console ID (required for new parsers) */\n consoleId: string;\n /** Override parser name (optional) */\n name?: string;\n /** Override input sink key (optional) */\n inputSinkKey?: string;\n /** Override output key (optional) */\n outputKey?: string;\n}\n\nexport interface UseImportParserResult {\n /** Loading state */\n loading: boolean;\n /** Error state */\n error: Error | null;\n /** Last validation result */\n validationResult: ImportParserValidationResult | null;\n /** Last import result */\n importResult: ImportParserResult | null;\n /** Validate import content without importing */\n validateImport: (content: string) => ImportParserValidationResult;\n /** Import parser from JSON content */\n importParser: (content: string, options: ImportParserOptions) => Promise<ImportParserResult | null>;\n /** Import parser from file */\n importFromFile: (file: File, options: ImportParserOptions) => Promise<ImportParserResult | null>;\n /** Extract parser ID from import content */\n extractParserId: (content: string) => string | null;\n /** Clear state */\n clearState: () => void;\n}\n\n// ============================================================================\n// Helper: Read file as text\n// ============================================================================\n\nfunction readFileAsText(file: File): Promise<string> {\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onload = (e) => {\n const result = e.target?.result;\n if (typeof result === 'string') {\n resolve(result);\n } else {\n reject(new Error('Failed to read file as text'));\n }\n };\n reader.onerror = () => reject(new Error('Failed to read file'));\n reader.readAsText(file);\n });\n}\n\n/**\n * Extract parser ID from imported JSON content\n * The ID is stored during export for re-import update support\n */\nfunction extractParserIdFromContent(content: string): string | null {\n try {\n const parsed = JSON.parse(content);\n // Check both locations where ID might be stored\n return parsed.exportedFrom?.parserId || parsed.parser?.id || null;\n } catch {\n return null;\n }\n}\n\n/**\n * Validate parser export content\n */\nfunction validateParserContent(content: string): ImportParserValidationResult {\n const errors: ImportParserValidationError[] = [];\n\n try {\n const parsed = JSON.parse(content);\n\n // Check schema version\n if (!parsed.schemaVersion) {\n errors.push({\n code: 'MISSING_SCHEMA_VERSION',\n message: 'Missing schema version',\n });\n }\n\n // Check parser object exists\n if (!parsed.parser) {\n errors.push({\n code: 'MISSING_PARSER',\n message: 'Missing parser object in export file',\n });\n return { isValid: false, parserInfo: null, errors };\n }\n\n const parser = parsed.parser;\n\n // Validate required fields\n if (!parser.name) {\n errors.push({\n code: 'MISSING_NAME',\n message: 'Parser name is required',\n path: 'parser.name',\n });\n }\n\n if (!parser.type) {\n errors.push({\n code: 'MISSING_TYPE',\n message: 'Parser type is required',\n path: 'parser.type',\n });\n } else if (!['jq', 'jsonata'].includes(parser.type)) {\n errors.push({\n code: 'INVALID_TYPE',\n message: `Invalid parser type: ${parser.type}. Must be 'jq' or 'jsonata'`,\n path: 'parser.type',\n });\n }\n\n if (!parser.expression) {\n errors.push({\n code: 'MISSING_EXPRESSION',\n message: 'Parser expression is required',\n path: 'parser.expression',\n });\n }\n\n if (!parser.inputSinkKey) {\n errors.push({\n code: 'MISSING_INPUT_SINK_KEY',\n message: 'Input sink key is required',\n path: 'parser.inputSinkKey',\n });\n }\n\n if (!parser.outputKey) {\n errors.push({\n code: 'MISSING_OUTPUT_KEY',\n message: 'Output key is required',\n path: 'parser.outputKey',\n });\n }\n\n const parserInfo: ImportParserInfo = {\n name: parser.name || '',\n description: parser.description,\n type: parser.type || '',\n expression: parser.expression || '',\n inputSinkKey: parser.inputSinkKey || '',\n outputKey: parser.outputKey || '',\n exportedAt: parsed.exportedAt,\n exportedFrom: parsed.exportedFrom?.parserId,\n schemaVersion: parsed.schemaVersion || 'unknown',\n };\n\n return {\n isValid: errors.length === 0,\n parserInfo,\n errors,\n };\n } catch (err) {\n return {\n isValid: false,\n parserInfo: null,\n errors: [\n {\n code: 'INVALID_JSON',\n message: 'Invalid JSON format',\n },\n ],\n };\n }\n}\n\n// ============================================================================\n// Hook\n// ============================================================================\n\nexport function useImportParser(): UseImportParserResult {\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState<Error | null>(null);\n const [validationResult, setValidationResult] = useState<ImportParserValidationResult | null>(null);\n const [importResult, setImportResult] = useState<ImportParserResult | null>(null);\n\n const apolloClient = useApolloClient();\n\n // Validate import content\n const validateImport = useCallback((content: string): ImportParserValidationResult => {\n const result = validateParserContent(content);\n setValidationResult(result);\n return result;\n }, []);\n\n // Extract parser ID from content\n const extractParserId = useCallback((content: string): string | null => {\n return extractParserIdFromContent(content);\n }, []);\n\n // Import parser from JSON content\n // Logic (DECLARATIVE - idempotent re-import):\n // 1. If original parser ID exists in JSON, check if original still exists\n // 2. If original exists → UPDATE it with the JSON data (no new copy created)\n // 3. If original doesn't exist → CREATE a new parser from the JSON\n // This ensures re-importing the same JSON is idempotent and updates the existing entity\n const importParser = useCallback(\n async (content: string, options: ImportParserOptions): Promise<ImportParserResult | null> => {\n try {\n setLoading(true);\n setError(null);\n\n // Validate content first\n const validation = validateParserContent(content);\n if (!validation.isValid || !validation.parserInfo) {\n throw new Error(validation.errors[0]?.message || 'Invalid import content');\n }\n\n // Parse the content to get parser data\n const parsed = JSON.parse(content);\n const parserData = parsed.parser;\n\n // Extract original parser ID from the JSON (if it was exported from an existing parser)\n const originalParserId = extractParserIdFromContent(content);\n let originalUpdated = false;\n let originalParserInfo: { id: string; name: string } | undefined;\n let originalExists = false;\n\n // Step 1: Check if original parser exists and update it\n if (originalParserId) {\n try {\n const getParserResult = await apolloClient.query<{ parser?: Parser }>({\n query: GetParserDocument,\n variables: { id: originalParserId },\n fetchPolicy: 'network-only',\n });\n\n const existingParser = getParserResult.data?.parser;\n\n if (existingParser) {\n originalExists = true;\n\n // Compare to detect changes (excluding name - we don't update the original's name)\n const hasChanges =\n existingParser.expression !== parserData.expression ||\n existingParser.inputSinkKey !== parserData.inputSinkKey ||\n existingParser.outputKey !== parserData.outputKey ||\n (existingParser.description || '') !== (parserData.description || '') ||\n existingParser.ttl !== parserData.ttl;\n\n // Update original if there are changes\n // Note: We intentionally do NOT update the name - the original keeps its name\n if (hasChanges) {\n const updateInput = {\n name: existingParser.name, // Keep original name\n expression: parserData.expression,\n inputSinkKey: parserData.inputSinkKey,\n outputKey: parserData.outputKey,\n description: parserData.description || undefined,\n ttl: parserData.ttl || undefined,\n status: (parserData.status as ParserStatus) || undefined,\n };\n\n const updateResult = await apolloClient.mutate<{ updateParser?: Parser }>({\n mutation: UpdateParserDocument,\n variables: {\n id: originalParserId,\n input: updateInput,\n version: existingParser.version,\n },\n });\n\n const updatedParser = updateResult.data?.updateParser;\n if (updatedParser) {\n originalUpdated = true;\n originalParserInfo = {\n id: updatedParser.id,\n name: updatedParser.name,\n };\n }\n } else {\n // No changes - entity already exists with same data\n // Return with alreadyExists flag so UI can show \"already exists\" popup\n originalParserInfo = {\n id: existingParser.id,\n name: existingParser.name,\n };\n const alreadyExistsResult: ImportParserResult = {\n success: true,\n parser: originalParserInfo,\n originalUpdated: false,\n originalParser: originalParserInfo,\n alreadyExists: true,\n };\n setImportResult(alreadyExistsResult);\n return alreadyExistsResult;\n }\n\n // If original was updated, return success with the updated parser info\n const finalResult: ImportParserResult = {\n success: true,\n parser: originalParserInfo,\n originalUpdated,\n originalParser: originalParserInfo,\n alreadyExists: false,\n };\n setImportResult(finalResult);\n return finalResult;\n }\n // If original doesn't exist, continue to create a new parser\n } catch (fetchErr) {\n // Original parser fetch failed (might not exist), continue with creating new\n console.warn('Could not fetch original parser:', fetchErr);\n }\n }\n\n // Step 2: Create a NEW parser only if original doesn't exist\n // (This happens when importing for the first time, or if original was deleted)\n const createInput = {\n consoleId: options.consoleId,\n name: options.name || parserData.name,\n type: parserData.type as ParserType,\n expression: parserData.expression,\n inputSinkKey: options.inputSinkKey || parserData.inputSinkKey,\n outputKey: options.outputKey || parserData.outputKey,\n description: parserData.description || undefined,\n ttl: parserData.ttl || undefined,\n };\n\n const result = await apolloClient.mutate<{ createParser?: Parser }>({\n mutation: CreateParserDocument,\n variables: { input: createInput },\n });\n\n const createdParser = result.data?.createParser;\n\n if (createdParser) {\n const finalResult: ImportParserResult = {\n success: true,\n parser: {\n id: createdParser.id,\n name: createdParser.name,\n },\n originalUpdated: false,\n originalParser: undefined,\n };\n setImportResult(finalResult);\n return finalResult;\n }\n\n throw new Error('Import returned empty result');\n } catch (err) {\n const importError = err instanceof Error ? err : new Error('Failed to import parser');\n setError(importError);\n const failResult: ImportParserResult = {\n success: false,\n errorMessage: importError.message,\n };\n setImportResult(failResult);\n return failResult;\n } finally {\n setLoading(false);\n }\n },\n [apolloClient]\n );\n\n // Import parser from file\n const importFromFile = useCallback(\n async (file: File, options: ImportParserOptions): Promise<ImportParserResult | null> => {\n try {\n // Validate file type\n if (!file.name.endsWith('.json')) {\n throw new Error('Invalid file type. Please select a JSON file.');\n }\n\n // Read file content\n const content = await readFileAsText(file);\n\n // Validate JSON format\n try {\n JSON.parse(content);\n } catch {\n throw new Error('Invalid JSON format. Please select a valid export file.');\n }\n\n // Perform import\n return await importParser(content, options);\n } catch (err) {\n const fileError = err instanceof Error ? err : new Error('Failed to import from file');\n setError(fileError);\n return null;\n }\n },\n [importParser]\n );\n\n // Clear state\n const clearState = useCallback(() => {\n setError(null);\n setValidationResult(null);\n setImportResult(null);\n }, []);\n\n return {\n loading,\n error,\n validationResult,\n importResult,\n validateImport,\n importParser,\n importFromFile,\n extractParserId,\n clearState,\n };\n}\n\nexport default useImportParser;\n"],"mappings":";;;;AA8FA,SAAS,EAAe,GAA6B;AACnD,QAAO,IAAI,SAAS,GAAS,MAAW;EACtC,IAAM,IAAS,IAAI,YAAY;AAU/B,EATA,EAAO,UAAU,MAAM;GACrB,IAAM,IAAS,EAAE,QAAQ;AACzB,GAAI,OAAO,KAAW,WACpB,EAAQ,EAAO,GAEf,EAAO,gBAAI,MAAM,8BAA8B,CAAC;KAGpD,EAAO,gBAAgB,EAAO,gBAAI,MAAM,sBAAsB,CAAC,EAC/D,EAAO,WAAW,EAAK;GACvB;;AAOJ,SAAS,EAA2B,GAAgC;AA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,EAAY;IAC3B;AAED,UADA,EAAgB,EAAW,EACpB;YACC;AACR,KAAW,GAAM;;IAGrB,CAAC,EAAa,CACf;AAuCD,QAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA,gBA3CqB,EACrB,OAAO,GAAY,MAAqE;AACtF,OAAI;AAEF,QAAI,CAAC,EAAK,KAAK,SAAS,QAAQ,CAC9B,OAAU,MAAM,gDAAgD;IAIlE,IAAM,IAAU,MAAM,EAAe,EAAK;AAG1C,QAAI;AACF,UAAK,MAAM,EAAQ;YACb;AACN,WAAU,MAAM,0DAA0D;;AAI5E,WAAO,MAAM,EAAa,GAAS,EAAQ;YACpC,GAAK;AAGZ,WADA,EADkB,aAAe,QAAQ,IAAM,gBAAI,MAAM,6BAA6B,CACnE,EACZ;;KAGX,CAAC,EAAa,CACf;EAiBC;EACA,YAfiB,QAAkB;AAGnC,GAFA,EAAS,KAAK,EACd,EAAoB,KAAK,EACzB,EAAgB,KAAK;KACpB,EAAE,CAAC;EAYL"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WidgetDefinition } from '../components/widgets/WidgetRegistry';
|
|
2
|
+
|
|
3
|
+
export interface UseInstalledWidgetsParams {
|
|
4
|
+
workspaceId?: string;
|
|
5
|
+
apiGatewayUrl?: string;
|
|
6
|
+
authToken?: string;
|
|
7
|
+
/** When false, the query is skipped entirely (e.g. in read-only/view mode). */
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function useInstalledWidgets(params?: UseInstalledWidgetsParams): {
|
|
11
|
+
installedWidgets: WidgetDefinition[];
|
|
12
|
+
loading: boolean;
|
|
13
|
+
error: Error | undefined;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=useInstalledWidgets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInstalledWidgets.d.ts","sourceRoot":"","sources":["../../../src/bigconsole/hooks/useInstalledWidgets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAOH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAK7E,MAAM,WAAW,yBAAyB;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,mBAAmB,CAAC,MAAM,GAAE,yBAA8B,GAAG;IAC3E,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;CAC1B,CAyFA"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { WorkspaceInstalledAppsDocument as e } from "../../generated/wspace-operations.js";
|
|
2
|
+
import { useEffect as t, useMemo as n } from "react";
|
|
3
|
+
import { useQuery as r } from "@tanstack/react-query";
|
|
4
|
+
import { print as i } from "graphql";
|
|
5
|
+
//#region src/bigconsole/hooks/useInstalledWidgets.ts
|
|
6
|
+
function a(a = {}) {
|
|
7
|
+
let { workspaceId: o, apiGatewayUrl: s, authToken: c, enabled: l = !0 } = a, { data: u, isLoading: d, error: f } = r({
|
|
8
|
+
queryKey: ["installedWidgets", o],
|
|
9
|
+
queryFn: async () => {
|
|
10
|
+
let t = {
|
|
11
|
+
"Content-Type": "application/json",
|
|
12
|
+
"x-workspace-id": o
|
|
13
|
+
};
|
|
14
|
+
c && (t.Authorization = `Bearer ${c}`);
|
|
15
|
+
let n = s ? `${s}/workspaces/graphql` : "/workspaces/graphql", r = await fetch(n, {
|
|
16
|
+
method: "POST",
|
|
17
|
+
headers: t,
|
|
18
|
+
body: JSON.stringify({ query: i(e) })
|
|
19
|
+
});
|
|
20
|
+
if (!r.ok) throw Error(`Failed to fetch installed apps: ${r.status}`);
|
|
21
|
+
let a = await r.json();
|
|
22
|
+
if (a.errors?.length) throw Error(a.errors[0].message);
|
|
23
|
+
return a.data?.workspaceInstalledApps ?? [];
|
|
24
|
+
},
|
|
25
|
+
enabled: l && !!o,
|
|
26
|
+
staleTime: 300 * 1e3
|
|
27
|
+
});
|
|
28
|
+
return t(() => {
|
|
29
|
+
f && console.warn("Failed to fetch installed widgets:", f.message);
|
|
30
|
+
}, [f]), {
|
|
31
|
+
installedWidgets: n(() => u ? u.filter((e) => e.type.toLowerCase() === "widget" && e.isEnabled).map((e) => {
|
|
32
|
+
let t = e.manifest ?? {};
|
|
33
|
+
return {
|
|
34
|
+
type: "custom",
|
|
35
|
+
name: e.displayName,
|
|
36
|
+
description: `Installed: ${e.displayName} v${e.version}`,
|
|
37
|
+
icon: "Puzzle",
|
|
38
|
+
category: "Installed",
|
|
39
|
+
component: null,
|
|
40
|
+
defaultConfig: {
|
|
41
|
+
componentId: e.appName,
|
|
42
|
+
storeProductId: t.productId ?? null,
|
|
43
|
+
storeIcon: t.icon ?? null,
|
|
44
|
+
isStoreWidget: !0
|
|
45
|
+
},
|
|
46
|
+
defaultSize: {
|
|
47
|
+
width: 4,
|
|
48
|
+
height: 4
|
|
49
|
+
},
|
|
50
|
+
defaultResponsive: {
|
|
51
|
+
xs: 12,
|
|
52
|
+
sm: 6,
|
|
53
|
+
md: 4,
|
|
54
|
+
lg: 4
|
|
55
|
+
},
|
|
56
|
+
minSize: {
|
|
57
|
+
width: 2,
|
|
58
|
+
height: 2
|
|
59
|
+
},
|
|
60
|
+
maxSize: {
|
|
61
|
+
width: 12,
|
|
62
|
+
height: 12
|
|
63
|
+
},
|
|
64
|
+
supportsDataBinding: !0,
|
|
65
|
+
supportsDrilldown: !1,
|
|
66
|
+
supportsAutoRefresh: !0,
|
|
67
|
+
tags: [
|
|
68
|
+
"installed",
|
|
69
|
+
"store",
|
|
70
|
+
e.appName
|
|
71
|
+
]
|
|
72
|
+
};
|
|
73
|
+
}) : [], [u]),
|
|
74
|
+
loading: d,
|
|
75
|
+
error: f ?? void 0
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
export { a as useInstalledWidgets };
|
|
80
|
+
|
|
81
|
+
//# sourceMappingURL=useInstalledWidgets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInstalledWidgets.js","names":[],"sources":["../../../src/bigconsole/hooks/useInstalledWidgets.ts"],"sourcesContent":["/**\n * Hook to fetch store-installed widgets for the dashboard WidgetPalette.\n *\n * Queries workspace installed apps via React Query and the generated\n * GraphQL document, filtering to only enabled widgets and mapping them\n * to WidgetDefinition shape.\n *\n * Accepts workspaceId, apiGatewayUrl, and authToken as parameters\n * (provided by BigConsoleProvider context) instead of parsing the URL.\n */\n\nimport { useEffect, useMemo } from 'react';\nimport { useQuery } from '@tanstack/react-query';\nimport { print } from 'graphql';\nimport { WorkspaceInstalledAppsDocument } from '../../generated/wspace-operations';\nimport type { WorkspaceInstalledAppsQuery } from '../../generated/wspace-operations';\nimport type { WidgetDefinition } from '../components/widgets/WidgetRegistry';\nimport type { WidgetType } from '../types';\n\ntype InstalledApp = WorkspaceInstalledAppsQuery['workspaceInstalledApps'][number];\n\nexport interface UseInstalledWidgetsParams {\n workspaceId?: string;\n apiGatewayUrl?: string;\n authToken?: string;\n /** When false, the query is skipped entirely (e.g. in read-only/view mode). */\n enabled?: boolean;\n}\n\nexport function useInstalledWidgets(params: UseInstalledWidgetsParams = {}): {\n installedWidgets: WidgetDefinition[];\n loading: boolean;\n error: Error | undefined;\n} {\n const { workspaceId, apiGatewayUrl, authToken, enabled = true } = params;\n\n const {\n data: apps,\n isLoading: loading,\n error,\n } = useQuery<InstalledApp[], Error>({\n // Only workspaceId is needed in the cache key. The authToken and apiGatewayUrl are\n // used inside queryFn but should not invalidate the cache on token rotation.\n queryKey: ['installedWidgets', workspaceId],\n queryFn: async () => {\n const headers: Record<string, string> = {\n 'Content-Type': 'application/json',\n 'x-workspace-id': workspaceId!,\n };\n\n if (authToken) {\n headers['Authorization'] = `Bearer ${authToken}`;\n }\n\n const url = apiGatewayUrl ? `${apiGatewayUrl}/workspaces/graphql` : '/workspaces/graphql';\n\n const response = await fetch(url, {\n method: 'POST',\n headers,\n body: JSON.stringify({ query: print(WorkspaceInstalledAppsDocument) }),\n });\n\n if (!response.ok) {\n throw new Error(`Failed to fetch installed apps: ${response.status}`);\n }\n\n const result: { data?: WorkspaceInstalledAppsQuery; errors?: { message: string }[] } = await response.json();\n\n if (result.errors?.length) {\n throw new Error(result.errors[0].message);\n }\n\n return result.data?.workspaceInstalledApps ?? [];\n },\n enabled: enabled && !!workspaceId,\n // Installed apps change rarely; avoid refetching on every remount.\n staleTime: 5 * 60 * 1000, // 5 minutes\n });\n\n useEffect(() => {\n if (error) {\n console.warn('Failed to fetch installed widgets:', error.message);\n }\n }, [error]);\n\n const installedWidgets = useMemo<WidgetDefinition[]>(() => {\n if (!apps) return [];\n return apps\n .filter((app) => app.type.toLowerCase() === 'widget' && app.isEnabled)\n .map((app) => {\n // manifest is a JSON field from the workspace service.\n // Expected shape: { productId?: string; icon?: string | null; slug?: string }\n const manifest = (app.manifest ?? {}) as Record<string, unknown>;\n return {\n type: 'custom' as WidgetType,\n name: app.displayName,\n description: `Installed: ${app.displayName} v${app.version}`,\n icon: 'Puzzle',\n category: 'Installed' as const,\n // component: null is safe because the render path uses WidgetRendererFactory\n // (which resolves renderers via RendererRegistry, not WidgetDefinition.component).\n // All built-in WIDGET_DEFINITIONS also set component: null for the same reason.\n component: null,\n defaultConfig: {\n componentId: app.appName,\n storeProductId: (manifest.productId as string) ?? null,\n storeIcon: (manifest.icon as string) ?? null,\n isStoreWidget: true,\n },\n defaultSize: { width: 4, height: 4 },\n defaultResponsive: { xs: 12, sm: 6, md: 4, lg: 4 },\n minSize: { width: 2, height: 2 },\n maxSize: { width: 12, height: 12 },\n supportsDataBinding: true,\n supportsDrilldown: false,\n supportsAutoRefresh: true,\n tags: ['installed', 'store', app.appName],\n };\n });\n }, [apps]);\n\n return { installedWid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,aAAa;KAAE,OAAO;KAAG,QAAQ;KAAG;IACpC,mBAAmB;KAAE,IAAI;KAAI,IAAI;KAAG,IAAI;KAAG,IAAI;KAAG;IAClD,SAAS;KAAE,OAAO;KAAG,QAAQ;KAAG;IAChC,SAAS;KAAE,OAAO;KAAI,QAAQ;KAAI;IAClC,qBAAqB;IACrB,mBAAmB;IACnB,qBAAqB;IACrB,MAAM;KAAC;KAAa;KAAS,EAAI;KAAQ;IAC1C;IACD,GAhCc,EAAE,EAiCnB,CAAC,EAAK,CAAC;EAEiB;EAAS,OAAO,KAAS,KAAA;EAAW"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DashboardPage } from '../types';
|
|
2
|
+
|
|
3
|
+
/** PageLayout enum values matching GraphQL schema */
|
|
4
|
+
export type PageLayout = 'GRID' | 'FLEX' | 'FREEFORM';
|
|
5
|
+
interface CreatePageInput {
|
|
6
|
+
dashboardId: string;
|
|
7
|
+
name: string;
|
|
8
|
+
/** PageLayout enum: GRID, FLEX, or FREEFORM (default: GRID) */
|
|
9
|
+
layout?: PageLayout;
|
|
10
|
+
gridColumns?: number;
|
|
11
|
+
metadata?: Record<string, unknown>;
|
|
12
|
+
context?: Record<string, unknown>;
|
|
13
|
+
}
|
|
14
|
+
interface UpdatePageInput {
|
|
15
|
+
id: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
/** PageLayout enum: GRID, FLEX, or FREEFORM */
|
|
18
|
+
layout?: PageLayout;
|
|
19
|
+
gridColumns?: number;
|
|
20
|
+
/** Display order (only for update, not create) */
|
|
21
|
+
order?: number;
|
|
22
|
+
metadata?: Record<string, unknown>;
|
|
23
|
+
context?: Record<string, unknown>;
|
|
24
|
+
}
|
|
25
|
+
interface PageOperationsResult {
|
|
26
|
+
loading: boolean;
|
|
27
|
+
error: Error | null;
|
|
28
|
+
createPage: (input: CreatePageInput) => Promise<DashboardPage | null>;
|
|
29
|
+
updatePage: (input: UpdatePageInput) => Promise<DashboardPage | null>;
|
|
30
|
+
deletePage: (id: string) => Promise<boolean>;
|
|
31
|
+
reorderPages: (dashboardId: string, pageIds: string[]) => Promise<DashboardPage[] | null>;
|
|
32
|
+
}
|
|
33
|
+
export declare function usePageOperations(): PageOperationsResult;
|
|
34
|
+
export default usePageOperations;
|
|
35
|
+
//# sourceMappingURL=usePageOperations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePageOperations.d.ts","sourceRoot":"","sources":["../../../src/bigconsole/hooks/usePageOperations.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAY9C,qDAAqD;AACrD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;AAEtD,UAAU,eAAe;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,+DAA+D;IAC/D,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED,UAAU,eAAe;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED,UAAU,oBAAoB;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,UAAU,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;IACtE,UAAU,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;IACtE,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7C,YAAY,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,aAAa,EAAE,GAAG,IAAI,CAAC,CAAC;CAC3F;AAyBD,wBAAgB,iBAAiB,IAAI,oBAAoB,CA8KxD;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { CreateDashboardPageDocument as e, DeleteDashboardPageDocument as t, ReorderDashboardPagesDocument as n, UpdateDashboardPageDocument as r } from "../../generated/wspace-operations.js";
|
|
2
|
+
import { useCallback as i, useState as a } from "react";
|
|
3
|
+
import { useApolloClient as o } from "@apollo/client/react";
|
|
4
|
+
//#region src/bigconsole/hooks/usePageOperations.ts
|
|
5
|
+
function s(e) {
|
|
6
|
+
let t = e.name;
|
|
7
|
+
return {
|
|
8
|
+
id: e.id,
|
|
9
|
+
dashboardId: e.dashboardId,
|
|
10
|
+
name: t,
|
|
11
|
+
slug: t?.toLowerCase().replace(/\s+/g, "-") || "",
|
|
12
|
+
order: e.order ?? 0,
|
|
13
|
+
layoutConfig: e.layout || {},
|
|
14
|
+
widgets: [],
|
|
15
|
+
createdAt: e.createdAt || (/* @__PURE__ */ new Date()).toISOString(),
|
|
16
|
+
updatedAt: e.updatedAt || (/* @__PURE__ */ new Date()).toISOString()
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function c() {
|
|
20
|
+
let c = o(), [l, u] = a(!1), [d, f] = a(null);
|
|
21
|
+
return {
|
|
22
|
+
loading: l,
|
|
23
|
+
error: d,
|
|
24
|
+
createPage: i(async (t) => {
|
|
25
|
+
u(!0), f(null);
|
|
26
|
+
try {
|
|
27
|
+
let n = {
|
|
28
|
+
dashboardId: t.dashboardId,
|
|
29
|
+
name: t.name
|
|
30
|
+
};
|
|
31
|
+
t.layout && (n.layout = t.layout), t.gridColumns !== void 0 && (n.gridColumns = t.gridColumns), t.metadata && (n.metadata = t.metadata), t.context && (n.context = t.context);
|
|
32
|
+
let { data: r } = await c.mutate({
|
|
33
|
+
mutation: e,
|
|
34
|
+
variables: { input: n }
|
|
35
|
+
}), i = r?.createDashboardPage;
|
|
36
|
+
return i ? s(i) : null;
|
|
37
|
+
} catch (e) {
|
|
38
|
+
return f(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to create page")), null;
|
|
39
|
+
} finally {
|
|
40
|
+
u(!1);
|
|
41
|
+
}
|
|
42
|
+
}, [c]),
|
|
43
|
+
updatePage: i(async (e) => {
|
|
44
|
+
u(!0), f(null);
|
|
45
|
+
try {
|
|
46
|
+
let t = { id: e.id };
|
|
47
|
+
e.name !== void 0 && (t.name = e.name), e.layout && (t.layout = e.layout), e.gridColumns !== void 0 && (t.gridColumns = e.gridColumns), e.order !== void 0 && (t.order = e.order), e.metadata && (t.metadata = e.metadata), e.context && (t.context = e.context);
|
|
48
|
+
let { data: n } = await c.mutate({
|
|
49
|
+
mutation: r,
|
|
50
|
+
variables: { input: t }
|
|
51
|
+
}), i = n?.updateDashboardPage;
|
|
52
|
+
return i ? s(i) : null;
|
|
53
|
+
} catch (e) {
|
|
54
|
+
return f(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to update page")), null;
|
|
55
|
+
} finally {
|
|
56
|
+
u(!1);
|
|
57
|
+
}
|
|
58
|
+
}, [c]),
|
|
59
|
+
deletePage: i(async (e) => {
|
|
60
|
+
u(!0), f(null);
|
|
61
|
+
try {
|
|
62
|
+
let { data: n } = await c.mutate({
|
|
63
|
+
mutation: t,
|
|
64
|
+
variables: { id: e }
|
|
65
|
+
});
|
|
66
|
+
return n?.deleteDashboardPage === !0;
|
|
67
|
+
} catch (e) {
|
|
68
|
+
return f(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to delete page")), !1;
|
|
69
|
+
} finally {
|
|
70
|
+
u(!1);
|
|
71
|
+
}
|
|
72
|
+
}, [c]),
|
|
73
|
+
reorderPages: i(async (e, t) => {
|
|
74
|
+
u(!0), f(null);
|
|
75
|
+
try {
|
|
76
|
+
let { data: r } = await c.mutate({
|
|
77
|
+
mutation: n,
|
|
78
|
+
variables: {
|
|
79
|
+
dashboardId: e,
|
|
80
|
+
pageIds: t
|
|
81
|
+
}
|
|
82
|
+
}), i = r?.reorderDashboardPages;
|
|
83
|
+
return i ? i.map(s) : null;
|
|
84
|
+
} catch (e) {
|
|
85
|
+
return f(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to reorder pages")), null;
|
|
86
|
+
} finally {
|
|
87
|
+
u(!1);
|
|
88
|
+
}
|
|
89
|
+
}, [c])
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
//#endregion
|
|
93
|
+
export { c as default };
|
|
94
|
+
|
|
95
|
+
//# sourceMappingURL=usePageOperations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePageOperations.js","names":[],"sources":["../../../src/bigconsole/hooks/usePageOperations.ts"],"sourcesContent":["/**\n * usePageOperations Hook\n *\n * Provides CRUD operations for dashboard pages using GraphQL.\n */\n\nimport { useCallback, useState } from 'react';\nimport { useApolloClient } from '@apollo/client/react';\nimport type { DashboardPage } from '../types';\nimport {\n CreateDashboardPageDocument,\n UpdateDashboardPageDocument,\n DeleteDashboardPageDocument,\n ReorderDashboardPagesDocument,\n} from '../../generated/wspace-operations';\n\n// ============================================================================\n// Types\n// ============================================================================\n\n/** PageLayout enum values matching GraphQL schema */\nexport type PageLayout = 'GRID' | 'FLEX' | 'FREEFORM';\n\ninterface CreatePageInput {\n dashboardId: string;\n name: string;\n /** PageLayout enum: GRID, FLEX, or FREEFORM (default: GRID) */\n layout?: PageLayout;\n gridColumns?: number;\n metadata?: Record<string, unknown>;\n context?: Record<string, unknown>;\n}\n\ninterface UpdatePageInput {\n id: string;\n name?: string;\n /** PageLayout enum: GRID, FLEX, or FREEFORM */\n layout?: PageLayout;\n gridColumns?: number;\n /** Display order (only for update, not create) */\n order?: number;\n metadata?: Record<string, unknown>;\n context?: Record<string, unknown>;\n}\n\ninterface PageOperationsResult {\n loading: boolean;\n error: Error | null;\n createPage: (input: CreatePageInput) => Promise<DashboardPage | null>;\n updatePage: (input: UpdatePageInput) => Promise<DashboardPage | null>;\n deletePage: (id: string) => Promise<boolean>;\n reorderPages: (dashboardId: string, pageIds: string[]) => Promise<DashboardPage[] | null>;\n}\n\n// ============================================================================\n// Helper: Normalize page from GraphQL response\n// ============================================================================\n\nfunction normalizePage(data: Record<string, unknown>): DashboardPage {\n const name = data.name as string | undefined;\n return {\n id: data.id as string,\n dashboardId: data.dashboardId as string,\n name,\n slug: name?.toLowerCase().replace(/\\s+/g, '-') || '',\n order: (data.order as number) ?? 0,\n layoutConfig: (data.layout as Record<string, unknown>) || {},\n widgets: [],\n createdAt: (data.createdAt as string) || new Date().toISOString(),\n updatedAt: (data.updatedAt as string) || new Date().toISOString(),\n };\n}\n\n// ============================================================================\n// Hook\n// ============================================================================\n\nexport function usePageOperations(): PageOperationsResult {\n const client = useApolloClient();\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState<Error | null>(null);\n\n // Create a new page\n const createPage = useCallback(\n async (input: CreatePageInput): Promise<DashboardPage | null> => {\n setLoading(true);\n setError(null);\n\n try {\n // Build input object - only include fields that exist in CreateDashboardPageInput schema\n // Note: 'order' is not available for create, only for update\n const createInput: Record<string, unknown> = {\n dashboardId: input.dashboardId,\n name: input.name,\n };\n\n // Only include optional fields if provided\n if (input.layout) {\n createInput.layout = input.layout;\n }\n if (input.gridColumns !== undefined) {\n createInput.gridColumns = input.gridColumns;\n }\n if (input.metadata) {\n createInput.metadata = input.metadata;\n }\n if (input.context) {\n createInput.context = input.context;\n }\n\n const { data } = await client.mutate<Record<string, unknown>>({\n mutation: CreateDashboardPageDocument,\n variables: {\n input: createInput,\n },\n });\n\n const createPageResult = data?.createDashboardPage as Record<string, unknown> | undefined;\n if (createPageResult) {\n return normalizePage(createPageResult);\n }\n return null;\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to create page');\n setError(error);\n return null;\n } finally {\n setLoading(false);\n }\n },\n [client]\n );\n\n // Update an existing page\n const updatePage = useCallback(\n async (input: UpdatePageInput): Promise<DashboardPage | null> => {\n setLoading(true);\n setError(null);\n\n try {\n // Build input object - only include fields that are provided\n const updateInput: Record<string, unknown> = {\n id: input.id,\n };\n\n // Only include optional fields if provided\n if (input.name !== undefined) {\n updateInput.name = input.name;\n }\n if (input.layout) {\n updateInput.layout = input.layout;\n }\n if (input.gridColumns !== undefined) {\n updateInput.gridColumns = input.gridColumns;\n }\n if (input.order !== undefined) {\n updateInput.order = input.order;\n }\n if (input.metadata) {\n updateInput.metadata = input.metadata;\n }\n if (input.context) {\n updateInput.context = input.context;\n }\n\n const { data } = await client.mutate<Record<string, unknown>>({\n mutation: UpdateDashboardPageDocument,\n variables: {\n input: updateInput,\n },\n });\n\n const updatePageResult = data?.updateDashboardPage as Record<string, unknown> | undefined;\n if (updatePageResult) {\n return normalizePage(updatePageResult);\n }\n return null;\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to update page');\n setError(error);\n return null;\n } finally {\n setLoading(false);\n }\n },\n [client]\n );\n\n // Delete a page\n const deletePage = useCallback(\n async (id: string): Promise<boolean> => {\n setLoading(true);\n setError(null);\n\n try {\n const { data } = await client.mutate<Record<string, unknown>>({\n mutation: DeleteDashboardPageDocument,\n variables: { id },\n });\n\n return data?.deleteDashboardPage === true;\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to delete page');\n setError(error);\n return false;\n } finally {\n setLoading(false);\n }\n },\n [client]\n );\n\n // Reorder pages\n const reorderPages = useCallback(\n async (dashboardId: string, pageIds: string[]): Promise<DashboardPage[] | null> => {\n setLoading(true);\n setError(null);\n\n try {\n const { data } = await client.mutate<Record<string, unknown>>({\n mutation: ReorderDashboardPagesDocument,\n variables: {\n dashboardId,\n pageIds,\n },\n });\n\n const reorderResult = data?.reorderDashboardPages as Record<string, unknown>[] | undefined;\n if (reorderResult) {\n return reorderResult.map(normalizePage);\n }\n return null;\n } catch (err) {\n const error = err instanceof Error ? err : new Error('Failed to reorder pages');\n setError(error);\n return null;\n } finally {\n setLoading(false);\n }\n },\n [client]\n );\n\n return {\n loading,\n error,\n createPage,\n updatePage,\n deletePage,\n reorderPages,\n };\n}\n\nexport default usePageOperations;\n"],"mappings":";;;;AA0DA,SAAS,EAAc,GAA8C;CACnE,IAAM,IAAO,EAAK;AAClB,QAAO;EACL,IAAI,EAAK;EACT,aAAa,EAAK;EAClB;EACA,MAAM,GAAM,aAAa,CAAC,QAAQ,QAAQ,IAAI,IAAI;EAClD,OAAQ,EAAK,SAAoB;EACjC,cAAe,EAAK,UAAsC,EAAE;EAC5D,SAAS,EAAE;EACX,WAAY,EAAK,8BAAwB,IAAI,MAAM,EAAC,aAAa;EACjE,WAAY,EAAK,8BAAwB,IAAI,MAAM,EAAC,aAAa;EAClE;;AAOH,SAAgB,IAA0C;CACxD,IAAM,IAAS,GAAiB,EAC1B,CAAC,GAAS,KAAc,EAAS,GAAM,EACvC,CAAC,GAAO,KAAY,EAAuB,KAAK;AAmKtD,QAAO;EACL;EACA;EACA,YAnKiB,EACjB,OAAO,MAA0D;AAE/D,GADA,EAAW,GAAK,EAChB,EAAS,KAAK;AAEd,OAAI;IAGF,IAAM,IAAuC;KAC3C,aAAa,EAAM;KACnB,MAAM,EAAM;KACb;AAYD,IATI,EAAM,WACR,EAAY,SAAS,EAAM,SAEzB,EAAM,gBAAgB,KAAA,MACxB,EAAY,cAAc,EAAM,cAE9B,EAAM,aACR,EAAY,WAAW,EAAM,WAE3B,EAAM,YAC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,gBAAI,MAAM,wBAAwB,CAC9D,EACR;aACC;AACR,MAAW,GAAM;;KAGrB,CAAC,EAAO,CACT;EAuCC,cApCmB,EACnB,OAAO,GAAqB,MAAuD;AAEjF,GADA,EAAW,GAAK,EAChB,EAAS,KAAK;AAEd,OAAI;IACF,IAAM,EAAE,YAAS,MAAM,EAAO,OAAgC;KAC5D,UAAU;KACV,WAAW;MACT;MACA;MACD;KACF,CAAC,EAEI,IAAgB,GAAM;AAI5B,WAHI,IACK,EAAc,IAAI,EAAc,GAElC;YACA,GAAK;AAGZ,WADA,EADc,aAAe,QAAQ,IAAM,gBAAI,MAAM,0BAA0B,CAChE,EACR;aACC;AACR,MAAW,GAAM;;KAGrB,CAAC,EAAO,CACT;EASA"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Parser, ParserType, ParserStatus } from '../types';
|
|
2
|
+
|
|
3
|
+
interface UseParserOperationsOptions {
|
|
4
|
+
consoleId?: string;
|
|
5
|
+
skipFetch?: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface ParserFilters {
|
|
8
|
+
type?: ParserType;
|
|
9
|
+
status?: ParserStatus;
|
|
10
|
+
}
|
|
11
|
+
interface CreateParserInput {
|
|
12
|
+
consoleId: string;
|
|
13
|
+
name: string;
|
|
14
|
+
type: ParserType;
|
|
15
|
+
expression: string;
|
|
16
|
+
inputSinkKey: string;
|
|
17
|
+
outputKey: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
ttl?: number;
|
|
20
|
+
}
|
|
21
|
+
interface UpdateParserInput {
|
|
22
|
+
name?: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
type?: ParserType;
|
|
25
|
+
expression?: string;
|
|
26
|
+
inputSinkKey?: string;
|
|
27
|
+
outputKey?: string;
|
|
28
|
+
ttl?: number | null;
|
|
29
|
+
status?: ParserStatus;
|
|
30
|
+
}
|
|
31
|
+
interface TestParserInput {
|
|
32
|
+
type: ParserType;
|
|
33
|
+
expression: string;
|
|
34
|
+
sampleData: unknown;
|
|
35
|
+
}
|
|
36
|
+
interface TestParserResult {
|
|
37
|
+
success: boolean;
|
|
38
|
+
output: unknown;
|
|
39
|
+
error: string | null;
|
|
40
|
+
executionTimeMs: number;
|
|
41
|
+
}
|
|
42
|
+
interface ExecuteParserResult {
|
|
43
|
+
parserId: string;
|
|
44
|
+
success: boolean;
|
|
45
|
+
output: unknown;
|
|
46
|
+
error: string | null;
|
|
47
|
+
executionTimeMs: number;
|
|
48
|
+
cachedAt: string | null;
|
|
49
|
+
}
|
|
50
|
+
export declare function useParserOperations(options?: UseParserOperationsOptions): {
|
|
51
|
+
loading: boolean;
|
|
52
|
+
error: Error | null;
|
|
53
|
+
parsers: Parser[];
|
|
54
|
+
fetchParsers: (filters?: ParserFilters) => Promise<Parser[]>;
|
|
55
|
+
fetchParser: (id: string) => Promise<Parser | null>;
|
|
56
|
+
createParser: (input: CreateParserInput) => Promise<Parser | null>;
|
|
57
|
+
updateParser: (id: string, input: UpdateParserInput, version: number) => Promise<Parser | null>;
|
|
58
|
+
deleteParser: (id: string) => Promise<boolean>;
|
|
59
|
+
executeParser: (id: string) => Promise<ExecuteParserResult | null>;
|
|
60
|
+
testParserExpression: (input: TestParserInput) => Promise<TestParserResult | null>;
|
|
61
|
+
refetch: () => Promise<void>;
|
|
62
|
+
};
|
|
63
|
+
export default useParserOperations;
|
|
64
|
+
//# sourceMappingURL=useParserOperations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useParserOperations.d.ts","sourceRoot":"","sources":["../../../src/bigconsole/hooks/useParserOperations.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAcH,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAMjE,UAAU,0BAA0B;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,UAAU,aAAa;IACrB,IAAI,CAAC,E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