@solidxai/core-ui 0.1.18 → 0.1.19-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/dist/components/common/SolidPopupContainer.d.ts.map +1 -1
- package/dist/components/common/SolidPopupContainer.js +3 -2
- package/dist/components/common/SolidPopupContainer.js.map +1 -1
- package/dist/components/common/SolidPopupContainer.tsx +3 -2
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.d.ts.map +1 -1
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.js +4 -1
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.js.map +1 -1
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.tsx +11 -5
- package/dist/components/common/SolidThemeLink.d.ts.map +1 -1
- package/dist/components/common/SolidThemeLink.js +2 -2
- package/dist/components/common/SolidThemeLink.js.map +1 -1
- package/dist/components/common/SolidThemeLink.tsx +5 -2
- package/dist/components/core/chatter/SolidChatter.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidChatter.js +2 -1
- package/dist/components/core/chatter/SolidChatter.js.map +1 -1
- package/dist/components/core/chatter/SolidChatter.tsx +2 -0
- package/dist/components/core/chatter/SolidChatterHeader.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidChatterHeader.js +2 -1
- package/dist/components/core/chatter/SolidChatterHeader.js.map +1 -1
- package/dist/components/core/chatter/SolidChatterHeader.tsx +6 -4
- package/dist/components/core/chatter/SolidChatterMessageBox.d.ts +2 -0
- package/dist/components/core/chatter/SolidChatterMessageBox.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidChatterMessageBox.js +7 -4
- package/dist/components/core/chatter/SolidChatterMessageBox.js.map +1 -1
- package/dist/components/core/chatter/SolidChatterMessageBox.tsx +8 -3
- package/dist/components/core/chatter/SolidChatterMessageWidget.d.ts +5 -0
- package/dist/components/core/chatter/SolidChatterMessageWidget.d.ts.map +1 -0
- package/dist/components/core/chatter/SolidChatterMessageWidget.js +85 -0
- package/dist/components/core/chatter/SolidChatterMessageWidget.js.map +1 -0
- package/dist/components/core/chatter/SolidChatterMessageWidget.tsx +59 -0
- package/dist/components/core/common/SolidCollectionRowActionMenuItems.d.ts +2 -1
- package/dist/components/core/common/SolidCollectionRowActionMenuItems.d.ts.map +1 -1
- package/dist/components/core/common/SolidCollectionRowActionMenuItems.js +3 -2
- package/dist/components/core/common/SolidCollectionRowActionMenuItems.js.map +1 -1
- package/dist/components/core/common/SolidCollectionRowActionMenuItems.tsx +5 -3
- package/dist/components/core/common/SolidGlobalSearchElement.d.ts.map +1 -1
- package/dist/components/core/common/SolidGlobalSearchElement.js +35 -18
- package/dist/components/core/common/SolidGlobalSearchElement.js.map +1 -1
- package/dist/components/core/common/SolidGlobalSearchElement.tsx +40 -15
- package/dist/components/core/dashboard/widgets/DefaultDashboardTableWidget.d.ts.map +1 -1
- package/dist/components/core/dashboard/widgets/DefaultDashboardTableWidget.js +2 -2
- package/dist/components/core/dashboard/widgets/DefaultDashboardTableWidget.js.map +1 -1
- package/dist/components/core/dashboard/widgets/DefaultDashboardTableWidget.tsx +6 -6
- package/dist/components/core/extension/solid-core/agentEvent/list/AgentEventOutcomeListWidget.d.ts +11 -0
- package/dist/components/core/extension/solid-core/agentEvent/list/AgentEventOutcomeListWidget.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/agentEvent/list/AgentEventOutcomeListWidget.js +102 -0
- package/dist/components/core/extension/solid-core/agentEvent/list/AgentEventOutcomeListWidget.js.map +1 -0
- package/dist/components/core/extension/solid-core/agentEvent/list/AgentEventOutcomeListWidget.tsx +129 -0
- package/dist/components/core/extension/solid-core/agentRegistry/card/AgentRegistryCardWidget.d.ts +4 -0
- package/dist/components/core/extension/solid-core/agentRegistry/card/AgentRegistryCardWidget.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/agentRegistry/card/AgentRegistryCardWidget.js +29 -0
- package/dist/components/core/extension/solid-core/agentRegistry/card/AgentRegistryCardWidget.js.map +1 -0
- package/dist/components/core/extension/solid-core/agentRegistry/card/AgentRegistryCardWidget.module.css +226 -0
- package/dist/components/core/extension/solid-core/agentRegistry/card/AgentRegistryCardWidget.tsx +57 -0
- package/dist/components/core/extension/solid-core/agentRegistry/card/AgentResourceCardWidget.d.ts +4 -0
- package/dist/components/core/extension/solid-core/agentRegistry/card/AgentResourceCardWidget.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/agentRegistry/card/AgentResourceCardWidget.js +33 -0
- package/dist/components/core/extension/solid-core/agentRegistry/card/AgentResourceCardWidget.js.map +1 -0
- package/dist/components/core/extension/solid-core/agentRegistry/card/AgentResourceCardWidget.tsx +47 -0
- package/dist/components/core/extension/solid-core/agentToolRegistry/AgentProcessesPanel.d.ts +5 -0
- package/dist/components/core/extension/solid-core/agentToolRegistry/AgentProcessesPanel.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/agentToolRegistry/AgentProcessesPanel.js +59 -0
- package/dist/components/core/extension/solid-core/agentToolRegistry/AgentProcessesPanel.js.map +1 -0
- package/dist/components/core/extension/solid-core/agentToolRegistry/AgentProcessesPanel.tsx +82 -0
- package/dist/components/core/extension/solid-core/agentToolRegistry/AgentToolSessionsPanel.d.ts +17 -0
- package/dist/components/core/extension/solid-core/agentToolRegistry/AgentToolSessionsPanel.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/agentToolRegistry/AgentToolSessionsPanel.js +258 -0
- package/dist/components/core/extension/solid-core/agentToolRegistry/AgentToolSessionsPanel.js.map +1 -0
- package/dist/components/core/extension/solid-core/agentToolRegistry/AgentToolSessionsPanel.tsx +286 -0
- package/dist/components/core/extension/solid-core/modelMetadata/list/DeleteModelRowAction.d.ts.map +1 -1
- package/dist/components/core/extension/solid-core/modelMetadata/list/DeleteModelRowAction.js +102 -62
- package/dist/components/core/extension/solid-core/modelMetadata/list/DeleteModelRowAction.js.map +1 -1
- package/dist/components/core/extension/solid-core/modelMetadata/list/DeleteModelRowAction.tsx +116 -106
- package/dist/components/core/extension/solid-core/mqMessage/MqMessageSelectedRecordsSummaryHeaderAction.d.ts +6 -0
- package/dist/components/core/extension/solid-core/mqMessage/MqMessageSelectedRecordsSummaryHeaderAction.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/mqMessage/MqMessageSelectedRecordsSummaryHeaderAction.js +37 -0
- package/dist/components/core/extension/solid-core/mqMessage/MqMessageSelectedRecordsSummaryHeaderAction.js.map +1 -0
- package/dist/components/core/extension/solid-core/mqMessage/MqMessageSelectedRecordsSummaryHeaderAction.tsx +89 -0
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageDetailsKanbanCardAction.d.ts +3 -0
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageDetailsKanbanCardAction.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageDetailsKanbanCardAction.js +18 -0
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageDetailsKanbanCardAction.js.map +1 -0
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageDetailsKanbanCardAction.tsx +51 -0
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanQuickFilterHeaderAction.d.ts +10 -0
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanQuickFilterHeaderAction.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanQuickFilterHeaderAction.js +63 -0
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanQuickFilterHeaderAction.js.map +1 -0
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanQuickFilterHeaderAction.tsx +111 -0
- package/dist/components/core/field/FieldListViewData.d.ts.map +1 -1
- package/dist/components/core/field/FieldListViewData.js +29 -9
- package/dist/components/core/field/FieldListViewData.js.map +1 -1
- package/dist/components/core/field/FieldListViewData.tsx +7 -6
- package/dist/components/core/form/SolidFormView.d.ts +1 -0
- package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormView.js +49 -48
- package/dist/components/core/form/SolidFormView.js.map +1 -1
- package/dist/components/core/form/SolidFormView.tsx +4 -3
- package/dist/components/core/form/fields/SolidDecimalField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidDecimalField.js +12 -9
- package/dist/components/core/form/fields/SolidDecimalField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDecimalField.tsx +11 -8
- package/dist/components/core/form/fields/SolidIntegerField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidIntegerField.js +16 -14
- package/dist/components/core/form/fields/SolidIntegerField.js.map +1 -1
- package/dist/components/core/form/fields/SolidIntegerField.tsx +13 -10
- package/dist/components/core/form/fields/SolidPasswordField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidPasswordField.js +13 -1
- package/dist/components/core/form/fields/SolidPasswordField.js.map +1 -1
- package/dist/components/core/form/fields/SolidPasswordField.tsx +14 -3
- package/dist/components/core/kanban/KanbanBoard.d.ts +1 -1
- package/dist/components/core/kanban/KanbanBoard.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanBoard.js +2 -2
- package/dist/components/core/kanban/KanbanBoard.js.map +1 -1
- package/dist/components/core/kanban/KanbanBoard.tsx +5 -1
- package/dist/components/core/kanban/KanbanCard.d.ts +3 -0
- package/dist/components/core/kanban/KanbanCard.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanCard.js +5 -4
- package/dist/components/core/kanban/KanbanCard.js.map +1 -1
- package/dist/components/core/kanban/KanbanCard.tsx +31 -11
- package/dist/components/core/kanban/KanbanColumn.d.ts +5 -1
- package/dist/components/core/kanban/KanbanColumn.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanColumn.js +14 -3
- package/dist/components/core/kanban/KanbanColumn.js.map +1 -1
- package/dist/components/core/kanban/KanbanColumn.tsx +43 -3
- package/dist/components/core/kanban/SolidKanbanView.d.ts +2 -0
- package/dist/components/core/kanban/SolidKanbanView.d.ts.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.js +90 -52
- package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.tsx +93 -13
- package/dist/components/core/list/SolidDataTable.d.ts +2 -1
- package/dist/components/core/list/SolidDataTable.d.ts.map +1 -1
- package/dist/components/core/list/SolidDataTable.js +4 -2
- package/dist/components/core/list/SolidDataTable.js.map +1 -1
- package/dist/components/core/list/SolidDataTable.tsx +4 -0
- package/dist/components/core/list/SolidListView.d.ts.map +1 -1
- package/dist/components/core/list/SolidListView.js +197 -96
- package/dist/components/core/list/SolidListView.js.map +1 -1
- package/dist/components/core/list/SolidListView.tsx +96 -37
- package/dist/components/core/list/SolidListViewHeaderContextMenuButton.d.ts.map +1 -1
- package/dist/components/core/list/SolidListViewHeaderContextMenuButton.js +14 -0
- package/dist/components/core/list/SolidListViewHeaderContextMenuButton.js.map +1 -1
- package/dist/components/core/list/SolidListViewHeaderContextMenuButton.tsx +13 -0
- package/dist/components/core/list/SolidListViewRowActionMenuItem.d.ts.map +1 -1
- package/dist/components/core/list/SolidListViewRowActionMenuItem.js.map +1 -1
- package/dist/components/core/list/SolidListViewRowActionMenuItem.tsx +2 -1
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js +1 -0
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.tsx +1 -0
- package/dist/components/core/list/widgets/AgentProcessNeedsRestartListWidget.d.ts +3 -0
- package/dist/components/core/list/widgets/AgentProcessNeedsRestartListWidget.d.ts.map +1 -0
- package/dist/components/core/list/widgets/AgentProcessNeedsRestartListWidget.js +51 -0
- package/dist/components/core/list/widgets/AgentProcessNeedsRestartListWidget.js.map +1 -0
- package/dist/components/core/list/widgets/AgentProcessNeedsRestartListWidget.tsx +60 -0
- package/dist/components/core/list/widgets/SolidIconNameListViewWidget.d.ts +4 -0
- package/dist/components/core/list/widgets/SolidIconNameListViewWidget.d.ts.map +1 -0
- package/dist/components/core/list/widgets/SolidIconNameListViewWidget.js +24 -0
- package/dist/components/core/list/widgets/SolidIconNameListViewWidget.js.map +1 -0
- package/dist/components/core/list/widgets/SolidIconNameListViewWidget.tsx +32 -0
- package/dist/components/core/model/ModelListViewData.d.ts.map +1 -1
- package/dist/components/core/model/ModelListViewData.js +6 -23
- package/dist/components/core/model/ModelListViewData.js.map +1 -1
- package/dist/components/core/model/ModelListViewData.tsx +1 -48
- package/dist/components/core/module/CreateModule.css +42 -0
- package/dist/components/core/module/CreateModule.js +1 -1
- package/dist/components/core/module/CreateModule.js.map +1 -1
- package/dist/components/core/module/CreateModule.tsx +5 -5
- package/dist/components/core/solid-agent/AgentModelIndicator.d.ts +5 -0
- package/dist/components/core/solid-agent/AgentModelIndicator.d.ts.map +1 -0
- package/dist/components/core/solid-agent/AgentModelIndicator.js +14 -0
- package/dist/components/core/solid-agent/AgentModelIndicator.js.map +1 -0
- package/dist/components/core/solid-agent/AgentModelIndicator.tsx +40 -0
- package/dist/components/core/solid-agent/AgentSignIn.d.ts +12 -0
- package/dist/components/core/solid-agent/AgentSignIn.d.ts.map +1 -0
- package/dist/components/core/solid-agent/AgentSignIn.js +82 -0
- package/dist/components/core/solid-agent/AgentSignIn.js.map +1 -0
- package/dist/components/core/solid-agent/AgentSignIn.tsx +91 -0
- package/dist/components/core/solid-agent/SolidAgent.module.css +596 -0
- package/dist/components/core/solid-agent/SolidAgentChat.d.ts +30 -0
- package/dist/components/core/solid-agent/SolidAgentChat.d.ts.map +1 -0
- package/dist/components/core/solid-agent/SolidAgentChat.js +300 -0
- package/dist/components/core/solid-agent/SolidAgentChat.js.map +1 -0
- package/dist/components/core/solid-agent/SolidAgentChat.tsx +451 -0
- package/dist/components/core/solid-agent/SolidAgentEmbedded.d.ts +44 -0
- package/dist/components/core/solid-agent/SolidAgentEmbedded.d.ts.map +1 -0
- package/dist/components/core/solid-agent/SolidAgentEmbedded.js +46 -0
- package/dist/components/core/solid-agent/SolidAgentEmbedded.js.map +1 -0
- package/dist/components/core/solid-agent/SolidAgentEmbedded.tsx +87 -0
- package/dist/components/core/solid-agent/SolidAgentHost.d.ts +8 -0
- package/dist/components/core/solid-agent/SolidAgentHost.d.ts.map +1 -0
- package/dist/components/core/solid-agent/SolidAgentHost.js +152 -0
- package/dist/components/core/solid-agent/SolidAgentHost.js.map +1 -0
- package/dist/components/core/solid-agent/SolidAgentHost.tsx +164 -0
- package/dist/components/core/solid-agent/SolidAgentMarkdown.d.ts +16 -0
- package/dist/components/core/solid-agent/SolidAgentMarkdown.d.ts.map +1 -0
- package/dist/components/core/solid-agent/SolidAgentMarkdown.js +161 -0
- package/dist/components/core/solid-agent/SolidAgentMarkdown.js.map +1 -0
- package/dist/components/core/solid-agent/SolidAgentMarkdown.tsx +133 -0
- package/dist/components/core/solid-agent/SolidAgentMount.d.ts +3 -0
- package/dist/components/core/solid-agent/SolidAgentMount.d.ts.map +1 -0
- package/dist/components/core/solid-agent/SolidAgentMount.js +62 -0
- package/dist/components/core/solid-agent/SolidAgentMount.js.map +1 -0
- package/dist/components/core/solid-agent/SolidAgentMount.tsx +31 -0
- package/dist/components/core/solid-agent/SolidXAIIcon.d.ts +5 -0
- package/dist/components/core/solid-agent/SolidXAIIcon.d.ts.map +1 -0
- package/dist/components/core/solid-agent/SolidXAIIcon.js +7 -0
- package/dist/components/core/solid-agent/SolidXAIIcon.js.map +1 -0
- package/dist/components/core/solid-agent/SolidXAIIcon.tsx +6 -0
- package/dist/components/core/solid-agent/agentAttachments.d.ts +20 -0
- package/dist/components/core/solid-agent/agentAttachments.d.ts.map +1 -0
- package/dist/components/core/solid-agent/agentAttachments.js +184 -0
- package/dist/components/core/solid-agent/agentAttachments.js.map +1 -0
- package/dist/components/core/solid-agent/agentAttachments.ts +119 -0
- package/dist/components/core/solid-agent/agentEvents.d.ts +34 -0
- package/dist/components/core/solid-agent/agentEvents.d.ts.map +1 -0
- package/dist/components/core/solid-agent/agentEvents.js +282 -0
- package/dist/components/core/solid-agent/agentEvents.js.map +1 -0
- package/dist/components/core/solid-agent/agentEvents.ts +292 -0
- package/dist/components/core/solid-agent/agentFormat.d.ts +18 -0
- package/dist/components/core/solid-agent/agentFormat.d.ts.map +1 -0
- package/dist/components/core/solid-agent/agentFormat.js +179 -0
- package/dist/components/core/solid-agent/agentFormat.js.map +1 -0
- package/dist/components/core/solid-agent/agentFormat.ts +160 -0
- package/dist/components/core/solid-agent/client/agentAttachmentMedia.d.ts +9 -0
- package/dist/components/core/solid-agent/client/agentAttachmentMedia.d.ts.map +1 -0
- package/dist/components/core/solid-agent/client/agentAttachmentMedia.js +129 -0
- package/dist/components/core/solid-agent/client/agentAttachmentMedia.js.map +1 -0
- package/dist/components/core/solid-agent/client/agentAttachmentMedia.ts +69 -0
- package/dist/components/core/solid-agent/client/agentAuth.d.ts +63 -0
- package/dist/components/core/solid-agent/client/agentAuth.d.ts.map +1 -0
- package/dist/components/core/solid-agent/client/agentAuth.js +307 -0
- package/dist/components/core/solid-agent/client/agentAuth.js.map +1 -0
- package/dist/components/core/solid-agent/client/agentAuth.ts +222 -0
- package/dist/components/core/solid-agent/client/agentRest.d.ts +30 -0
- package/dist/components/core/solid-agent/client/agentRest.d.ts.map +1 -0
- package/dist/components/core/solid-agent/client/agentRest.js +178 -0
- package/dist/components/core/solid-agent/client/agentRest.js.map +1 -0
- package/dist/components/core/solid-agent/client/agentRest.ts +100 -0
- package/dist/components/core/solid-agent/client/agentRuntime.d.ts +48 -0
- package/dist/components/core/solid-agent/client/agentRuntime.d.ts.map +1 -0
- package/dist/components/core/solid-agent/client/agentRuntime.js +406 -0
- package/dist/components/core/solid-agent/client/agentRuntime.js.map +1 -0
- package/dist/components/core/solid-agent/client/agentRuntime.ts +226 -0
- package/dist/components/core/solid-agent/client/agentSocket.d.ts +46 -0
- package/dist/components/core/solid-agent/client/agentSocket.d.ts.map +1 -0
- package/dist/components/core/solid-agent/client/agentSocket.js +535 -0
- package/dist/components/core/solid-agent/client/agentSocket.js.map +1 -0
- package/dist/components/core/solid-agent/client/agentSocket.ts +276 -0
- package/dist/components/core/solid-agent/client/agentUrls.d.ts +11 -0
- package/dist/components/core/solid-agent/client/agentUrls.d.ts.map +1 -0
- package/dist/components/core/solid-agent/client/agentUrls.js +18 -0
- package/dist/components/core/solid-agent/client/agentUrls.js.map +1 -0
- package/dist/components/core/solid-agent/client/agentUrls.ts +19 -0
- package/dist/components/core/solid-agent/composer/AgentComposer.d.ts +21 -0
- package/dist/components/core/solid-agent/composer/AgentComposer.d.ts.map +1 -0
- package/dist/components/core/solid-agent/composer/AgentComposer.js +219 -0
- package/dist/components/core/solid-agent/composer/AgentComposer.js.map +1 -0
- package/dist/components/core/solid-agent/composer/AgentComposer.tsx +241 -0
- package/dist/components/core/solid-agent/embed/AgentEmbeddingPanel.d.ts +8 -0
- package/dist/components/core/solid-agent/embed/AgentEmbeddingPanel.d.ts.map +1 -0
- package/dist/components/core/solid-agent/embed/AgentEmbeddingPanel.js +87 -0
- package/dist/components/core/solid-agent/embed/AgentEmbeddingPanel.js.map +1 -0
- package/dist/components/core/solid-agent/embed/AgentEmbeddingPanel.tsx +58 -0
- package/dist/components/core/solid-agent/embed/agentEmbedProtocol.d.ts +20 -0
- package/dist/components/core/solid-agent/embed/agentEmbedProtocol.d.ts.map +1 -0
- package/dist/components/core/solid-agent/embed/agentEmbedProtocol.js +103 -0
- package/dist/components/core/solid-agent/embed/agentEmbedProtocol.js.map +1 -0
- package/dist/components/core/solid-agent/embed/agentEmbedProtocol.ts +60 -0
- package/dist/components/core/solid-agent/embed/agentEmbedSamples.d.ts +11 -0
- package/dist/components/core/solid-agent/embed/agentEmbedSamples.d.ts.map +1 -0
- package/dist/components/core/solid-agent/embed/agentEmbedSamples.js +21 -0
- package/dist/components/core/solid-agent/embed/agentEmbedSamples.js.map +1 -0
- package/dist/components/core/solid-agent/embed/agentEmbedSamples.ts +266 -0
- package/dist/components/core/solid-agent/processes/agentHubProcessApi.d.ts +15 -0
- package/dist/components/core/solid-agent/processes/agentHubProcessApi.d.ts.map +1 -0
- package/dist/components/core/solid-agent/processes/agentHubProcessApi.js +122 -0
- package/dist/components/core/solid-agent/processes/agentHubProcessApi.js.map +1 -0
- package/dist/components/core/solid-agent/processes/agentHubProcessApi.ts +64 -0
- package/dist/components/core/solid-agent/sdk/solidAgent.d.ts +39 -0
- package/dist/components/core/solid-agent/sdk/solidAgent.d.ts.map +1 -0
- package/dist/components/core/solid-agent/sdk/solidAgent.js +44 -0
- package/dist/components/core/solid-agent/sdk/solidAgent.js.map +1 -0
- package/dist/components/core/solid-agent/sdk/solidAgent.ts +56 -0
- package/dist/components/core/solid-agent/thread/AgentThread.d.ts +17 -0
- package/dist/components/core/solid-agent/thread/AgentThread.d.ts.map +1 -0
- package/dist/components/core/solid-agent/thread/AgentThread.js +166 -0
- package/dist/components/core/solid-agent/thread/AgentThread.js.map +1 -0
- package/dist/components/core/solid-agent/thread/AgentThread.tsx +248 -0
- package/dist/components/core/solid-agent/thread/SolidAgentChatItem.d.ts +36 -0
- package/dist/components/core/solid-agent/thread/SolidAgentChatItem.d.ts.map +1 -0
- package/dist/components/core/solid-agent/thread/SolidAgentChatItem.js +148 -0
- package/dist/components/core/solid-agent/thread/SolidAgentChatItem.js.map +1 -0
- package/dist/components/core/solid-agent/thread/SolidAgentChatItem.tsx +116 -0
- package/dist/components/core/solid-agent/thread/inlineWidget.d.ts +8 -0
- package/dist/components/core/solid-agent/thread/inlineWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/thread/inlineWidget.js +30 -0
- package/dist/components/core/solid-agent/thread/inlineWidget.js.map +1 -0
- package/dist/components/core/solid-agent/thread/inlineWidget.ts +27 -0
- package/dist/components/core/solid-agent/types.d.ts +155 -0
- package/dist/components/core/solid-agent/types.d.ts.map +1 -0
- package/dist/components/core/solid-agent/types.js +31 -0
- package/dist/components/core/solid-agent/types.js.map +1 -0
- package/dist/components/core/solid-agent/types.ts +148 -0
- package/dist/components/core/solid-agent/useAdminInputContext.d.ts +4 -0
- package/dist/components/core/solid-agent/useAdminInputContext.d.ts.map +1 -0
- package/dist/components/core/solid-agent/useAdminInputContext.js +49 -0
- package/dist/components/core/solid-agent/useAdminInputContext.js.map +1 -0
- package/dist/components/core/solid-agent/useAdminInputContext.ts +52 -0
- package/dist/components/core/solid-agent/useAgentAuth.d.ts +14 -0
- package/dist/components/core/solid-agent/useAgentAuth.d.ts.map +1 -0
- package/dist/components/core/solid-agent/useAgentAuth.js +88 -0
- package/dist/components/core/solid-agent/useAgentAuth.js.map +1 -0
- package/dist/components/core/solid-agent/useAgentAuth.ts +40 -0
- package/dist/components/core/solid-agent/useAgentAvailability.d.ts +19 -0
- package/dist/components/core/solid-agent/useAgentAvailability.d.ts.map +1 -0
- package/dist/components/core/solid-agent/useAgentAvailability.js +109 -0
- package/dist/components/core/solid-agent/useAgentAvailability.js.map +1 -0
- package/dist/components/core/solid-agent/useAgentAvailability.ts +80 -0
- package/dist/components/core/solid-agent/useAgentChat.d.ts +22 -0
- package/dist/components/core/solid-agent/useAgentChat.d.ts.map +1 -0
- package/dist/components/core/solid-agent/useAgentChat.js +45 -0
- package/dist/components/core/solid-agent/useAgentChat.js.map +1 -0
- package/dist/components/core/solid-agent/useAgentChat.ts +57 -0
- package/dist/components/core/solid-agent/widgets/DefaultAssistantMessageChatWidget.d.ts +7 -0
- package/dist/components/core/solid-agent/widgets/DefaultAssistantMessageChatWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultAssistantMessageChatWidget.js +15 -0
- package/dist/components/core/solid-agent/widgets/DefaultAssistantMessageChatWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultAssistantMessageChatWidget.tsx +24 -0
- package/dist/components/core/solid-agent/widgets/DefaultErrorChatWidget.d.ts +7 -0
- package/dist/components/core/solid-agent/widgets/DefaultErrorChatWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultErrorChatWidget.js +15 -0
- package/dist/components/core/solid-agent/widgets/DefaultErrorChatWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultErrorChatWidget.tsx +28 -0
- package/dist/components/core/solid-agent/widgets/DefaultNoticeChatWidget.d.ts +4 -0
- package/dist/components/core/solid-agent/widgets/DefaultNoticeChatWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultNoticeChatWidget.js +20 -0
- package/dist/components/core/solid-agent/widgets/DefaultNoticeChatWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultNoticeChatWidget.tsx +8 -0
- package/dist/components/core/solid-agent/widgets/DefaultThinkingChatWidget.d.ts +7 -0
- package/dist/components/core/solid-agent/widgets/DefaultThinkingChatWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultThinkingChatWidget.js +11 -0
- package/dist/components/core/solid-agent/widgets/DefaultThinkingChatWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultThinkingChatWidget.tsx +16 -0
- package/dist/components/core/solid-agent/widgets/DefaultToolCallChatWidget.d.ts +7 -0
- package/dist/components/core/solid-agent/widgets/DefaultToolCallChatWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultToolCallChatWidget.js +67 -0
- package/dist/components/core/solid-agent/widgets/DefaultToolCallChatWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultToolCallChatWidget.tsx +135 -0
- package/dist/components/core/solid-agent/widgets/DefaultUnknownChatWidget.d.ts +7 -0
- package/dist/components/core/solid-agent/widgets/DefaultUnknownChatWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultUnknownChatWidget.js +24 -0
- package/dist/components/core/solid-agent/widgets/DefaultUnknownChatWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultUnknownChatWidget.tsx +17 -0
- package/dist/components/core/solid-agent/widgets/DefaultUserMessageChatWidget.d.ts +8 -0
- package/dist/components/core/solid-agent/widgets/DefaultUserMessageChatWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultUserMessageChatWidget.js +30 -0
- package/dist/components/core/solid-agent/widgets/DefaultUserMessageChatWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/DefaultUserMessageChatWidget.tsx +77 -0
- package/dist/components/core/solid-agent/widgets/SolidChecklistChatWidget.d.ts +7 -0
- package/dist/components/core/solid-agent/widgets/SolidChecklistChatWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidChecklistChatWidget.js +40 -0
- package/dist/components/core/solid-agent/widgets/SolidChecklistChatWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidChecklistChatWidget.tsx +57 -0
- package/dist/components/core/solid-agent/widgets/SolidCodeChatWidget.d.ts +4 -0
- package/dist/components/core/solid-agent/widgets/SolidCodeChatWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidCodeChatWidget.js +13 -0
- package/dist/components/core/solid-agent/widgets/SolidCodeChatWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidCodeChatWidget.tsx +19 -0
- package/dist/components/core/solid-agent/widgets/SolidDiffListChatWidget.d.ts +7 -0
- package/dist/components/core/solid-agent/widgets/SolidDiffListChatWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidDiffListChatWidget.js +55 -0
- package/dist/components/core/solid-agent/widgets/SolidDiffListChatWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidDiffListChatWidget.tsx +81 -0
- package/dist/components/core/solid-agent/widgets/SolidGalleryChatWidget.d.ts +4 -0
- package/dist/components/core/solid-agent/widgets/SolidGalleryChatWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidGalleryChatWidget.js +15 -0
- package/dist/components/core/solid-agent/widgets/SolidGalleryChatWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidGalleryChatWidget.tsx +30 -0
- package/dist/components/core/solid-agent/widgets/SolidJsonChatWidget.d.ts +4 -0
- package/dist/components/core/solid-agent/widgets/SolidJsonChatWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidJsonChatWidget.js +15 -0
- package/dist/components/core/solid-agent/widgets/SolidJsonChatWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidJsonChatWidget.tsx +21 -0
- package/dist/components/core/solid-agent/widgets/SolidLinkCardChatWidget.d.ts +7 -0
- package/dist/components/core/solid-agent/widgets/SolidLinkCardChatWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidLinkCardChatWidget.js +21 -0
- package/dist/components/core/solid-agent/widgets/SolidLinkCardChatWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidLinkCardChatWidget.tsx +33 -0
- package/dist/components/core/solid-agent/widgets/SolidMarkdownChatWidget.d.ts +4 -0
- package/dist/components/core/solid-agent/widgets/SolidMarkdownChatWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidMarkdownChatWidget.js +11 -0
- package/dist/components/core/solid-agent/widgets/SolidMarkdownChatWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidMarkdownChatWidget.tsx +9 -0
- package/dist/components/core/solid-agent/widgets/SolidProgressChatWidget.d.ts +15 -0
- package/dist/components/core/solid-agent/widgets/SolidProgressChatWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidProgressChatWidget.js +26 -0
- package/dist/components/core/solid-agent/widgets/SolidProgressChatWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidProgressChatWidget.tsx +42 -0
- package/dist/components/core/solid-agent/widgets/SolidQuestionChatWidget.d.ts +7 -0
- package/dist/components/core/solid-agent/widgets/SolidQuestionChatWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidQuestionChatWidget.js +41 -0
- package/dist/components/core/solid-agent/widgets/SolidQuestionChatWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidQuestionChatWidget.tsx +69 -0
- package/dist/components/core/solid-agent/widgets/SolidStatusChatWidget.d.ts +7 -0
- package/dist/components/core/solid-agent/widgets/SolidStatusChatWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidStatusChatWidget.js +23 -0
- package/dist/components/core/solid-agent/widgets/SolidStatusChatWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidStatusChatWidget.tsx +40 -0
- package/dist/components/core/solid-agent/widgets/SolidTableChatWidget.d.ts +4 -0
- package/dist/components/core/solid-agent/widgets/SolidTableChatWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidTableChatWidget.js +32 -0
- package/dist/components/core/solid-agent/widgets/SolidTableChatWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidTableChatWidget.tsx +55 -0
- package/dist/components/core/solid-agent/widgets/SolidToolActivityChatWidget.d.ts +7 -0
- package/dist/components/core/solid-agent/widgets/SolidToolActivityChatWidget.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidToolActivityChatWidget.js +17 -0
- package/dist/components/core/solid-agent/widgets/SolidToolActivityChatWidget.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/SolidToolActivityChatWidget.tsx +31 -0
- package/dist/components/core/solid-agent/widgets/chatWidgetUtils.d.ts +12 -0
- package/dist/components/core/solid-agent/widgets/chatWidgetUtils.d.ts.map +1 -0
- package/dist/components/core/solid-agent/widgets/chatWidgetUtils.js +17 -0
- package/dist/components/core/solid-agent/widgets/chatWidgetUtils.js.map +1 -0
- package/dist/components/core/solid-agent/widgets/chatWidgetUtils.ts +19 -0
- package/dist/components/core/solid-agent/widgets/solidChatWidgets.module.css +909 -0
- package/dist/components/core/solid-ai/SolidAiChat.js +1 -1
- package/dist/components/core/solid-ai/SolidAiChat.js.map +1 -1
- package/dist/components/core/solid-ai/SolidAiChat.tsx +2 -2
- package/dist/components/core/tree/SolidTreeView.d.ts.map +1 -1
- package/dist/components/core/tree/SolidTreeView.js.map +1 -1
- package/dist/components/core/tree/SolidTreeView.tsx +3 -2
- package/dist/components/layout/AdminLayout.d.ts.map +1 -1
- package/dist/components/layout/AdminLayout.js +2 -1
- package/dist/components/layout/AdminLayout.js.map +1 -1
- package/dist/components/layout/AdminLayout.tsx +2 -0
- package/dist/components/layout/AdminTopHeader.d.ts.map +1 -1
- package/dist/components/layout/AdminTopHeader.js +7 -3
- package/dist/components/layout/AdminTopHeader.js.map +1 -1
- package/dist/components/layout/AdminTopHeader.tsx +8 -3
- package/dist/components/shad-cn-ui/SolidAutocomplete.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidAutocomplete.js +2 -2
- package/dist/components/shad-cn-ui/SolidAutocomplete.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidAutocomplete.tsx +19 -15
- package/dist/components/shad-cn-ui/SolidDialog.d.ts +2 -1
- package/dist/components/shad-cn-ui/SolidDialog.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidDialog.js +2 -2
- package/dist/components/shad-cn-ui/SolidDialog.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidDialog.tsx +3 -0
- package/dist/components/shad-cn-ui/SolidIconPicker.d.ts +7 -0
- package/dist/components/shad-cn-ui/SolidIconPicker.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidIconPicker.js +43 -0
- package/dist/components/shad-cn-ui/SolidIconPicker.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidIconPicker.tsx +73 -0
- package/dist/components/shad-cn-ui/index.d.ts +1 -0
- package/dist/components/shad-cn-ui/index.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/index.js +1 -0
- package/dist/components/shad-cn-ui/index.js.map +1 -1
- package/dist/components/shad-cn-ui/index.ts +1 -0
- package/dist/constants/allowed-ai-models.d.ts +8 -0
- package/dist/constants/allowed-ai-models.d.ts.map +1 -0
- package/dist/constants/allowed-ai-models.js +33 -0
- package/dist/constants/allowed-ai-models.js.map +1 -0
- package/dist/constants/allowed-ai-models.ts +39 -0
- package/dist/constants/error-messages.d.ts +2 -0
- package/dist/constants/error-messages.d.ts.map +1 -1
- package/dist/constants/error-messages.js +3 -0
- package/dist/constants/error-messages.js.map +1 -1
- package/dist/constants/error-messages.ts +4 -0
- package/dist/helpers/hydrateRelationRules.d.ts.map +1 -1
- package/dist/helpers/hydrateRelationRules.js +3 -1
- package/dist/helpers/hydrateRelationRules.js.map +1 -1
- package/dist/helpers/hydrateRelationRules.ts +5 -1
- package/dist/helpers/registry.d.ts +4 -2
- package/dist/helpers/registry.d.ts.map +1 -1
- package/dist/helpers/registry.js +75 -12
- package/dist/helpers/registry.js.map +1 -1
- package/dist/helpers/registry.ts +73 -16
- package/dist/helpers/updatePasswordField.d.ts.map +1 -1
- package/dist/helpers/updatePasswordField.js +21 -15
- package/dist/helpers/updatePasswordField.js.map +1 -1
- package/dist/helpers/updatePasswordField.ts +6 -1
- package/dist/index.d.ts +21 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -3
- package/dist/index.js.map +1 -1
- package/dist/index.ts +38 -3
- package/dist/redux/api/fieldApi.js +1 -1
- package/dist/redux/api/fieldApi.js.map +1 -1
- package/dist/redux/api/fieldApi.ts +2 -2
- package/dist/redux/api/modelApi.d.ts +13 -13
- package/dist/redux/api/modelApi.d.ts.map +1 -1
- package/dist/redux/api/modelApi.js +15 -15
- package/dist/redux/api/modelApi.js.map +1 -1
- package/dist/redux/api/modelApi.ts +12 -15
- package/dist/redux/features/agentSlice.d.ts +34 -0
- package/dist/redux/features/agentSlice.d.ts.map +1 -0
- package/dist/redux/features/agentSlice.js +92 -0
- package/dist/redux/features/agentSlice.js.map +1 -0
- package/dist/redux/features/agentSlice.ts +119 -0
- package/dist/redux/store/defaultStoreConfig.d.ts +11 -10
- package/dist/redux/store/defaultStoreConfig.d.ts.map +1 -1
- package/dist/redux/store/defaultStoreConfig.js +2 -0
- package/dist/redux/store/defaultStoreConfig.js.map +1 -1
- package/dist/redux/store/defaultStoreConfig.ts +2 -0
- package/dist/redux/store/solidEntityApiPool.d.ts.map +1 -1
- package/dist/redux/store/solidEntityApiPool.js +7 -0
- package/dist/redux/store/solidEntityApiPool.js.map +1 -1
- package/dist/redux/store/solidEntityApiPool.ts +6 -0
- package/dist/resources/globals.css +109 -1
- package/dist/resources/solid-custom.css +331 -12
- package/dist/resources/solid-tailwind-generated.css +1 -1
- package/dist/resources/themes/solid-light-modern/theme.css +2 -4
- package/dist/routes/pages/admin/core/AgentRegistryAuditPanel.css +47 -0
- package/dist/routes/pages/admin/core/AgentRegistryAuditPanel.d.ts +12 -0
- package/dist/routes/pages/admin/core/AgentRegistryAuditPanel.d.ts.map +1 -0
- package/dist/routes/pages/admin/core/AgentRegistryAuditPanel.js +80 -0
- package/dist/routes/pages/admin/core/AgentRegistryAuditPanel.js.map +1 -0
- package/dist/routes/pages/admin/core/AgentRegistryAuditPanel.tsx +123 -0
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.css +110 -0
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.d.ts +3 -0
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.d.ts.map +1 -0
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.js +702 -0
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.js.map +1 -0
- package/dist/routes/pages/admin/core/AgentRegistryEditorPage.tsx +630 -0
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.css +303 -0
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.d.ts +3 -0
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.d.ts.map +1 -0
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.js +330 -0
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.js.map +1 -0
- package/dist/routes/pages/admin/core/AgentSkillRegistryEditorPage.tsx +460 -0
- package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.css +125 -0
- package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.d.ts +3 -0
- package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.d.ts.map +1 -0
- package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.js +295 -0
- package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.js.map +1 -0
- package/dist/routes/pages/admin/core/AgentToolRegistryEditorPage.tsx +275 -0
- package/dist/routes/pages/admin/core/DatasourceIntrospectionPage.css +41 -0
- package/dist/routes/pages/admin/core/DatasourceIntrospectionPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/DatasourceIntrospectionPage.js +1 -1
- package/dist/routes/pages/admin/core/DatasourceIntrospectionPage.js.map +1 -1
- package/dist/routes/pages/admin/core/DatasourceIntrospectionPage.tsx +3 -1
- package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.js +11 -11
- package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.js.map +1 -1
- package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.tsx +15 -15
- package/dist/routes/pages/embed/AgentEmbedPage.d.ts +3 -0
- package/dist/routes/pages/embed/AgentEmbedPage.d.ts.map +1 -0
- package/dist/routes/pages/embed/AgentEmbedPage.js +170 -0
- package/dist/routes/pages/embed/AgentEmbedPage.js.map +1 -0
- package/dist/routes/pages/embed/AgentEmbedPage.module.css +195 -0
- package/dist/routes/pages/embed/AgentEmbedPage.tsx +169 -0
- package/dist/routes/solidRoutes.d.ts.map +1 -1
- package/dist/routes/solidRoutes.js +8 -0
- package/dist/routes/solidRoutes.js.map +1 -1
- package/dist/routes/solidRoutes.tsx +8 -0
- package/dist/types/dashboard.d.ts +4 -0
- package/dist/types/dashboard.d.ts.map +1 -1
- package/dist/types/dashboard.js.map +1 -1
- package/dist/types/dashboard.ts +5 -0
- package/dist/types/extension-registry.d.ts +4 -0
- package/dist/types/extension-registry.d.ts.map +1 -1
- package/dist/types/extension-registry.js +7 -0
- package/dist/types/extension-registry.js.map +1 -1
- package/dist/types/extension-registry.ts +7 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/list-row-action.d.ts +20 -0
- package/dist/types/list-row-action.d.ts.map +1 -0
- package/dist/types/list-row-action.js +2 -0
- package/dist/types/list-row-action.js.map +1 -0
- package/dist/types/list-row-action.ts +21 -0
- package/dist/types/solid-core.d.ts +36 -0
- package/package.json +1 -1
package/dist/components/core/extension/solid-core/modelMetadata/list/DeleteModelRowAction.tsx
CHANGED
|
@@ -1,139 +1,149 @@
|
|
|
1
1
|
import { closePopup } from "../../../../../../redux/features/popupSlice";
|
|
2
2
|
import { SolidListRowdataDynamicFunctionProps } from "../../../../../../types/solid-core";
|
|
3
|
-
import { useState } from "react";
|
|
3
|
+
import { useEffect, useState } from "react";
|
|
4
4
|
import { useDispatch } from "react-redux";
|
|
5
5
|
import { showToast } from "../../../../../../redux/features/toastSlice";
|
|
6
|
-
import {
|
|
7
|
-
import { createSolidEntityApi } from "../../../../../../redux/api/solidEntityApi";
|
|
6
|
+
import { useApplyDeleteModelMutation, usePreviewDeleteModelMutation } from "../../../../../../redux/api/modelApi";
|
|
8
7
|
import { ERROR_MESSAGES } from "../../../../../../constants/error-messages";
|
|
9
|
-
import { SolidButton, SolidCheckbox } from "../../../../../shad-cn-ui";
|
|
8
|
+
import { SolidButton, SolidCheckbox, SolidSpinner } from "../../../../../shad-cn-ui";
|
|
10
9
|
import { pingBackendAvailability } from "../../../../../../helpers/waitForBackendAvailability";
|
|
11
10
|
import { backendHealthMonitor } from "../../../../../../helpers/backendHealthMonitor";
|
|
11
|
+
import { Check, Copy } from "lucide-react";
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
type DeleteChange = { category: string; description: string; count: number; items: string[] };
|
|
14
|
+
type DeletePreview = { model: { id: number; singularName: string; displayName: string }; planHash: string; changes: DeleteChange[] };
|
|
15
|
+
|
|
16
|
+
const displayInventoryItem = (item: string) => {
|
|
17
|
+
if (!item.startsWith("/")) return item;
|
|
18
|
+
const sourceIndex = item.lastIndexOf("/src/");
|
|
19
|
+
if (sourceIndex >= 0) return item.slice(sourceIndex + 1);
|
|
20
|
+
return item.split("/").slice(-2).join("/");
|
|
21
|
+
};
|
|
14
22
|
|
|
15
23
|
const DeleteModelRowAction = (event: SolidListRowdataDynamicFunctionProps) => {
|
|
16
|
-
const [isConfirmed, setIsConfirmed] = useState(false);
|
|
17
|
-
const [isApplying, setIsApplying] = useState(false);
|
|
18
24
|
const dispatch = useDispatch();
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const [
|
|
25
|
+
const [preview, setPreview] = useState<DeletePreview | null>(null);
|
|
26
|
+
const [previewError, setPreviewError] = useState<string | null>(null);
|
|
27
|
+
const [isConfirmed, setIsConfirmed] = useState(false);
|
|
28
|
+
const [copiedDdl, setCopiedDdl] = useState(false);
|
|
29
|
+
const [loadPreview, { isLoading: isLoadingPreview }] = usePreviewDeleteModelMutation();
|
|
30
|
+
const [applyDelete, { isLoading: isApplying }] = useApplyDeleteModelMutation();
|
|
22
31
|
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
32
|
+
const refreshPreview = async () => {
|
|
33
|
+
setPreview(null);
|
|
34
|
+
setPreviewError(null);
|
|
35
|
+
setIsConfirmed(false);
|
|
36
|
+
try {
|
|
37
|
+
const result = await loadPreview(event.rowData.id).unwrap();
|
|
38
|
+
setPreview(result as DeletePreview);
|
|
39
|
+
} catch (error: any) {
|
|
40
|
+
setPreviewError(error?.data?.message || error?.error || ERROR_MESSAGES.ERROR_OCCURED);
|
|
26
41
|
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
useEffect(() => { void refreshPreview(); }, [event.rowData.id]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
27
45
|
|
|
28
|
-
|
|
46
|
+
const automaticChanges = preview?.changes.filter(change => change.category !== 'Manual follow-up' && change.count > 0) ?? [];
|
|
47
|
+
const automaticItemCount = automaticChanges.reduce((total, change) => total + change.count, 0);
|
|
48
|
+
const manualFollowUp = preview?.changes.find(change => change.category === 'Manual follow-up');
|
|
49
|
+
const tableName = manualFollowUp?.items[0]?.replace(/ database table$/, '') ?? '';
|
|
50
|
+
const quotedTableName = tableName.split('.').map(part => `"${part.replace(/"/g, '""')}"`).join('.');
|
|
51
|
+
const dropTableStatement = tableName ? `DROP TABLE IF EXISTS ${quotedTableName};` : '';
|
|
52
|
+
|
|
53
|
+
const copyDropStatement = async () => {
|
|
54
|
+
if (!dropTableStatement) return;
|
|
29
55
|
try {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
res.error?.error ||
|
|
38
|
-
ERROR_MESSAGES.ERROR_OCCURED;
|
|
39
|
-
dispatch(showToast({ severity: 'error', summary: ERROR_MESSAGES.DELETE_FAIELD, detail: message }));
|
|
40
|
-
} else {
|
|
41
|
-
dispatch(showToast({ severity: 'success', summary: ERROR_MESSAGES.MODEL_DELETE, detail: ERROR_MESSAGES.MODEL_DELETE_SUCCESSFULLY(event.rowData.singularName) }));
|
|
42
|
-
await new Promise((resolve) => window.setTimeout(resolve, DELETE_MODEL_DIALOG_DISMISS_DELAY_MS));
|
|
43
|
-
dispatch(closePopup());
|
|
56
|
+
await navigator.clipboard.writeText(dropTableStatement);
|
|
57
|
+
setCopiedDdl(true);
|
|
58
|
+
window.setTimeout(() => setCopiedDdl(false), 1800);
|
|
59
|
+
} catch {
|
|
60
|
+
setPreviewError('Unable to copy the DROP TABLE statement. Select and copy it manually.');
|
|
61
|
+
}
|
|
62
|
+
};
|
|
44
63
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
64
|
+
const deleteModelHandler = async () => {
|
|
65
|
+
if (!preview || !isConfirmed || isApplying) return;
|
|
66
|
+
try {
|
|
67
|
+
await applyDelete({ id: event.rowData.id, planHash: preview.planHash }).unwrap();
|
|
68
|
+
dispatch(showToast({ severity: 'success', summary: ERROR_MESSAGES.MODEL_DELETE, detail: ERROR_MESSAGES.MODEL_DELETE_SUCCESSFULLY(event.rowData.singularName) }));
|
|
69
|
+
dispatch(closePopup());
|
|
70
|
+
const isBackendAvailable = await pingBackendAvailability();
|
|
71
|
+
if (isBackendAvailable) backendHealthMonitor.reportSuccess();
|
|
72
|
+
else backendHealthMonitor.reportFailure({ status: "FETCH_ERROR", message: "Unable to reach the server. Reconnecting..." });
|
|
73
|
+
} catch (error: any) {
|
|
74
|
+
const updatedPreview = error?.data?.preview as DeletePreview | undefined;
|
|
75
|
+
if (updatedPreview) {
|
|
76
|
+
setPreview(updatedPreview);
|
|
77
|
+
setIsConfirmed(false);
|
|
78
|
+
setPreviewError('The inventory changed since it was reviewed. Please review the updated changes and confirm again.');
|
|
79
|
+
} else {
|
|
80
|
+
setPreviewError(error?.data?.message || error?.error || ERROR_MESSAGES.NETWORK_OR_SERVER_ERROR);
|
|
54
81
|
}
|
|
55
|
-
} catch (err: any) {
|
|
56
|
-
console.error("catch error", err);
|
|
57
|
-
dispatch(showToast({ severity: 'error', summary: ERROR_MESSAGES.ERROR, detail: ERROR_MESSAGES.NETWORK_OR_SERVER_ERROR }));
|
|
58
|
-
} finally {
|
|
59
|
-
setIsApplying(false);
|
|
60
82
|
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
const rows = [
|
|
64
|
-
{ file: `${kebabCase(event.rowData.singularName)}.entity.ts`, description: 'The TypeORM entity definition for this model. Deleting it removes the model’s schema mapping', intervention: 'Automatic' },
|
|
65
|
-
{ file: `${kebabCase(event.rowData.singularName)}.create.dto.ts`, description: 'DTO defining the payload for creating a new record of this model', intervention: 'Automatic' },
|
|
66
|
-
{ file: `${kebabCase(event.rowData.singularName)}.update.dto.ts`, description: 'DTO defining the payload for updating an existing record of this model', intervention: 'Automatic' },
|
|
67
|
-
{ file: `${kebabCase(event.rowData.singularName)}.repository.ts`, description: 'Custom repository encapsulating database operations for this model', intervention: 'Automatic' },
|
|
68
|
-
{ file: `${kebabCase(event.rowData.singularName)}.service.ts`, description: 'Service layer containing business logic and interactions for this model', intervention: 'Automatic' },
|
|
69
|
-
{ file: `${kebabCase(event.rowData.singularName)}.controller.ts`, description: 'Controller exposing API endpoints related to this model', intervention: 'Automatic' },
|
|
70
|
-
{ file: `${kebabCase(event.rowData.singularName)}.module.ts`, description: 'Module declaration that wires together the controller, service, and repository. All imports and references to the deleted model are removed automatically', intervention: 'Automatic' },
|
|
71
|
-
{ file: `${kebabCase(event.rowData.singularName)}-metadata.json`, description: 'Remove references to this model in the model metadata, menu, action & view sections', intervention: 'Automatic' },
|
|
72
|
-
{ file: '-', description: 'Drop database table. Removes the database table from the DB, this is a very risky step. Best to review all relations to other models etc and then do this manually', intervention: 'Manual (X)', manual: true },
|
|
73
|
-
];
|
|
74
|
-
|
|
75
|
-
|
|
83
|
+
};
|
|
76
84
|
|
|
77
85
|
return (
|
|
78
86
|
<div className="solid-delete-model-popup">
|
|
79
87
|
<div className="solid-filter-dialog-head solid-delete-model-popup__head">
|
|
80
88
|
<div>
|
|
81
|
-
<h3 className="solid-filter-dialog-title">Delete
|
|
82
|
-
<p className="solid-filter-dialog-subtitle m-0">
|
|
83
|
-
Review the impacted files carefully before applying this delete action.
|
|
84
|
-
</p>
|
|
89
|
+
<h3 className="solid-filter-dialog-title">Delete {event.rowData.displayName || event.rowData.singularName}</h3>
|
|
90
|
+
<p className="solid-filter-dialog-subtitle m-0">Review the automatic cleanup before deleting this model.</p>
|
|
85
91
|
</div>
|
|
86
92
|
</div>
|
|
87
93
|
<div className="solid-filter-dialog-sep" />
|
|
88
94
|
<div className="solid-filter-dialog-body solid-delete-model-popup__body">
|
|
89
|
-
<
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
<
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
<
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
</
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
95
|
+
{isLoadingPreview && <div className="flex justify-center p-4"><SolidSpinner /></div>}
|
|
96
|
+
{previewError && <div role="alert" className="text-sm text-destructive mb-3">{previewError}</div>}
|
|
97
|
+
{preview && (
|
|
98
|
+
<>
|
|
99
|
+
<div className="solid-delete-model-popup__summary" aria-label="Deletion impact summary">
|
|
100
|
+
<div><strong>{automaticItemCount}</strong><span>automatic changes</span></div>
|
|
101
|
+
<div><strong>{automaticChanges.length}</strong><span>areas affected</span></div>
|
|
102
|
+
</div>
|
|
103
|
+
<div className="solid-delete-model-popup__inventory" aria-label="Automatic deletion changes">
|
|
104
|
+
{automaticChanges.map((change, index) => (
|
|
105
|
+
<details className="solid-delete-model-popup__change" key={`${change.category}-${index}`}>
|
|
106
|
+
<summary>
|
|
107
|
+
<span className="solid-delete-model-popup__change-name">{change.category}</span>
|
|
108
|
+
<span className="solid-delete-model-popup__change-description">{change.description}</span>
|
|
109
|
+
<span className="solid-delete-model-popup__count">{change.count}</span>
|
|
110
|
+
</summary>
|
|
111
|
+
{change.items.length > 0 && (
|
|
112
|
+
<ul className="solid-delete-model-popup__items">
|
|
113
|
+
{change.items.map((item, itemIndex) => <li key={`${item}-${itemIndex}`} title={item}>{displayInventoryItem(item)}</li>)}
|
|
114
|
+
</ul>
|
|
115
|
+
)}
|
|
116
|
+
</details>
|
|
117
|
+
))}
|
|
118
|
+
{automaticChanges.length === 0 && <p className="solid-delete-model-popup__empty">No related automatic cleanup was found.</p>}
|
|
119
|
+
</div>
|
|
120
|
+
{manualFollowUp && manualFollowUp.count > 0 && (
|
|
121
|
+
<aside className="solid-delete-model-popup__manual">
|
|
122
|
+
<strong>Manual follow-up</strong>
|
|
123
|
+
<span>{manualFollowUp.description}</span>
|
|
124
|
+
{dropTableStatement && <div className="solid-delete-model-popup__ddl">
|
|
125
|
+
<code>{dropTableStatement}</code>
|
|
126
|
+
<button type="button" className="solid-delete-model-popup__copy-ddl" onClick={copyDropStatement} aria-label={copiedDdl ? 'DDL copied' : 'Copy DROP TABLE statement'} title={copiedDdl ? 'Copied' : 'Copy SQL'}>
|
|
127
|
+
{copiedDdl ? <Check size={13} /> : <Copy size={13} />}
|
|
128
|
+
</button>
|
|
129
|
+
</div>}
|
|
130
|
+
</aside>
|
|
131
|
+
)}
|
|
132
|
+
</>
|
|
133
|
+
)}
|
|
134
|
+
</div>
|
|
135
|
+
<div className="solid-filter-dialog-sep" />
|
|
136
|
+
<div className="solid-delete-model-popup__footer">
|
|
137
|
+
{preview && <div className="solid-delete-model-popup__confirm">
|
|
138
|
+
<SolidCheckbox id="delete-model-confirmation" name="confirm" checked={isConfirmed} onChange={() => setIsConfirmed(!isConfirmed)} label="I reviewed the automatic changes above and understand the database table drop is a separate manual step." />
|
|
139
|
+
</div>}
|
|
126
140
|
<div className="solid-delete-model-popup__actions">
|
|
127
|
-
<SolidButton size="small" disabled={!isConfirmed || isApplying} loading={isApplying} autoFocus onClick={deleteModelHandler}>
|
|
128
|
-
|
|
129
|
-
</SolidButton>
|
|
130
|
-
<SolidButton size="small" variant="outline" disabled={isApplying} onClick={() => dispatch(closePopup())}>
|
|
131
|
-
Cancel
|
|
132
|
-
</SolidButton>
|
|
141
|
+
<SolidButton size="small" variant="destructive" disabled={!preview || !isConfirmed || isApplying || isLoadingPreview} loading={isApplying} autoFocus onClick={deleteModelHandler}>Delete model</SolidButton>
|
|
142
|
+
<SolidButton size="small" variant="outline" disabled={isApplying} onClick={() => dispatch(closePopup())}>Cancel</SolidButton>
|
|
133
143
|
</div>
|
|
134
144
|
</div>
|
|
135
145
|
</div>
|
|
136
|
-
)
|
|
137
|
-
}
|
|
146
|
+
);
|
|
147
|
+
};
|
|
138
148
|
|
|
139
149
|
export default DeleteModelRowAction;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
selectedRecords?: any[];
|
|
3
|
+
};
|
|
4
|
+
export default function MqMessageSelectedRecordsSummaryHeaderAction({ selectedRecords }: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=MqMessageSelectedRecordsSummaryHeaderAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MqMessageSelectedRecordsSummaryHeaderAction.d.ts","sourceRoot":"","sources":["../../../../../../src/components/core/extension/solid-core/mqMessage/MqMessageSelectedRecordsSummaryHeaderAction.tsx"],"names":[],"mappings":"AAoBA,KAAK,KAAK,GAAG;IAAE,eAAe,CAAC,EAAE,GAAG,EAAE,CAAA;CAAE,CAAC;AAEzC,MAAM,CAAC,OAAO,UAAU,2CAA2C,CAAC,EAAE,eAAoB,EAAE,EAAE,KAAK,2CAkElG"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { useDispatch } from "react-redux";
|
|
4
|
+
import { closePopup } from "../../../../../redux/features/popupSlice";
|
|
5
|
+
import { SolidDialogBody, SolidDialogClose, SolidDialogHeader, SolidDialogSeparator, SolidDialogTitle, } from "../../../../shad-cn-ui";
|
|
6
|
+
var STAGES = ["pending", "scheduled", "started", "retry", "retrying", "failed", "succeeded"];
|
|
7
|
+
var formatDuration = function (milliseconds) {
|
|
8
|
+
if (milliseconds === null || !Number.isFinite(milliseconds))
|
|
9
|
+
return "—";
|
|
10
|
+
if (milliseconds < 1000)
|
|
11
|
+
return "".concat(Math.round(milliseconds), " ms");
|
|
12
|
+
if (milliseconds < 60000)
|
|
13
|
+
return "".concat((milliseconds / 1000).toFixed(2), " s");
|
|
14
|
+
return "".concat((milliseconds / 60000).toFixed(2), " min");
|
|
15
|
+
};
|
|
16
|
+
export default function MqMessageSelectedRecordsSummaryHeaderAction(_a) {
|
|
17
|
+
var _b = _a.selectedRecords, selectedRecords = _b === void 0 ? [] : _b;
|
|
18
|
+
var dispatch = useDispatch();
|
|
19
|
+
var stageSummaries = useMemo(function () { return STAGES.map(function (stage) {
|
|
20
|
+
var records = selectedRecords.filter(function (record) { return (record === null || record === void 0 ? void 0 : record.stage) === stage; });
|
|
21
|
+
var durations = records
|
|
22
|
+
.map(function (record) { return Number(record === null || record === void 0 ? void 0 : record.elapsedMillis); })
|
|
23
|
+
.filter(function (duration) { return Number.isFinite(duration) && duration >= 0; });
|
|
24
|
+
var average = durations.length
|
|
25
|
+
? durations.reduce(function (total, duration) { return total + duration; }, 0) / durations.length
|
|
26
|
+
: null;
|
|
27
|
+
return { stage: stage, count: records.length, average: average, measuredCount: durations.length };
|
|
28
|
+
}); }, [selectedRecords]);
|
|
29
|
+
var totalMeasured = stageSummaries.reduce(function (total, summary) { return total + summary.measuredCount; }, 0);
|
|
30
|
+
var totalDuration = stageSummaries.reduce(function (total, summary) { var _a; return total + ((_a = summary.average) !== null && _a !== void 0 ? _a : 0) * summary.measuredCount; }, 0);
|
|
31
|
+
var averageDuration = totalMeasured ? totalDuration / totalMeasured : null;
|
|
32
|
+
return (_jsxs(_Fragment, { children: [_jsxs(SolidDialogHeader, { children: [_jsx(SolidDialogTitle, { children: "Selected queue messages" }), _jsx(SolidDialogClose, { "aria-label": "Close", onClick: function () { return dispatch(closePopup()); } })] }), _jsx(SolidDialogSeparator, {}), _jsx(SolidDialogBody, { children: _jsxs("div", { className: "space-y-4", children: [_jsxs("div", { className: "grid grid-cols-2 gap-3", children: [_jsxs("div", { className: "rounded-lg border p-4", children: [_jsx("div", { className: "text-sm text-muted-foreground", children: "Selected messages" }), _jsx("div", { className: "mt-1 text-2xl font-semibold", children: selectedRecords.length })] }), _jsxs("div", { className: "rounded-lg border p-4", children: [_jsx("div", { className: "text-sm text-muted-foreground", children: "Average execution time" }), _jsx("div", { className: "mt-1 text-2xl font-semibold", children: formatDuration(averageDuration) })] })] }), _jsx("div", { className: "overflow-x-auto rounded-lg border", children: _jsxs("table", { className: "w-full text-left text-sm", children: [_jsx("thead", { className: "bg-muted/50", children: _jsxs("tr", { children: [_jsx("th", { className: "px-4 py-3 font-medium", children: "Status" }), _jsx("th", { className: "px-4 py-3 text-right font-medium", children: "Count" }), _jsx("th", { className: "px-4 py-3 text-right font-medium", children: "Avg. execution time" })] }) }), _jsx("tbody", { children: stageSummaries.map(function (_a) {
|
|
33
|
+
var stage = _a.stage, count = _a.count, average = _a.average;
|
|
34
|
+
return (_jsxs("tr", { className: "border-t", children: [_jsx("th", { scope: "row", className: "px-4 py-3 font-medium capitalize", children: stage }), _jsx("td", { className: "px-4 py-3 text-right tabular-nums", children: count }), _jsx("td", { className: "px-4 py-3 text-right tabular-nums", children: formatDuration(average) })] }, stage));
|
|
35
|
+
}) })] }) }), _jsx("p", { className: "text-xs text-muted-foreground", children: "Average execution time uses selected messages with an elapsed time recorded." })] }) })] }));
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=MqMessageSelectedRecordsSummaryHeaderAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MqMessageSelectedRecordsSummaryHeaderAction.js","sourceRoot":"","sources":["../../../../../../src/components/core/extension/solid-core/mqMessage/MqMessageSelectedRecordsSummaryHeaderAction.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACtE,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AAEhC,IAAM,MAAM,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;AAE/F,IAAM,cAAc,GAAG,UAAC,YAA2B;IACjD,IAAI,YAAY,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC;QAAE,OAAO,GAAG,CAAC;IACxE,IAAI,YAAY,GAAG,IAAI;QAAE,OAAO,UAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,QAAK,CAAC;IACjE,IAAI,YAAY,GAAG,KAAM;QAAE,OAAO,UAAG,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAI,CAAC;IAC1E,OAAO,UAAG,CAAC,YAAY,GAAG,KAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAM,CAAC;AACrD,CAAC,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,2CAA2C,CAAC,EAA+B;QAA7B,uBAAoB,EAApB,eAAe,mBAAG,EAAE,KAAA;IACxF,IAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,IAAM,cAAc,GAAG,OAAO,CAAC,cAAM,OAAA,MAAM,CAAC,GAAG,CAAC,UAAC,KAAK;QACpD,IAAM,OAAO,GAAG,eAAe,CAAC,MAAM,CAAC,UAAC,MAAM,IAAK,OAAA,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,MAAK,KAAK,EAAvB,CAAuB,CAAC,CAAC;QAC5E,IAAM,SAAS,GAAG,OAAO;aACtB,GAAG,CAAC,UAAC,MAAM,IAAK,OAAA,MAAM,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,aAAa,CAAC,EAA7B,CAA6B,CAAC;aAC9C,MAAM,CAAC,UAAC,QAAQ,IAAK,OAAA,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,QAAQ,IAAI,CAAC,EAA1C,CAA0C,CAAC,CAAC;QACpE,IAAM,OAAO,GAAG,SAAS,CAAC,MAAM;YAC9B,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,UAAC,KAAK,EAAE,QAAQ,IAAK,OAAA,KAAK,GAAG,QAAQ,EAAhB,CAAgB,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC,MAAM;YAC/E,CAAC,CAAC,IAAI,CAAC;QACT,OAAO,EAAE,KAAK,OAAA,EAAE,KAAK,EAAE,OAAO,CAAC,MAAM,EAAE,OAAO,SAAA,EAAE,aAAa,EAAE,SAAS,CAAC,MAAM,EAAE,CAAC;IACpF,CAAC,CAAC,EATmC,CASnC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAEvB,IAAM,aAAa,GAAG,cAAc,CAAC,MAAM,CAAC,UAAC,KAAK,EAAE,OAAO,IAAK,OAAA,KAAK,GAAG,OAAO,CAAC,aAAa,EAA7B,CAA6B,EAAE,CAAC,CAAC,CAAC;IAClG,IAAM,aAAa,GAAG,cAAc,CAAC,MAAM,CACzC,UAAC,KAAK,EAAE,OAAO,YAAK,OAAA,KAAK,GAAG,CAAC,MAAA,OAAO,CAAC,OAAO,mCAAI,CAAC,CAAC,GAAG,OAAO,CAAC,aAAa,CAAA,EAAA,EAC1E,CAAC,CACF,CAAC;IACF,IAAM,eAAe,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC;IAE7E,OAAO,CACL,8BACE,MAAC,iBAAiB,eAChB,KAAC,gBAAgB,0CAA2C,EAC5D,KAAC,gBAAgB,kBAAY,OAAO,EAAC,OAAO,EAAE,cAAM,OAAA,QAAQ,CAAC,UAAU,EAAE,CAAC,EAAtB,CAAsB,GAAI,IAC5D,EACpB,KAAC,oBAAoB,KAAG,EACxB,KAAC,eAAe,cACd,eAAK,SAAS,EAAC,WAAW,aACxB,eAAK,SAAS,EAAC,wBAAwB,aACrC,eAAK,SAAS,EAAC,uBAAuB,aACpC,cAAK,SAAS,EAAC,+BAA+B,kCAAwB,EACtE,cAAK,SAAS,EAAC,6BAA6B,YAAE,eAAe,CAAC,MAAM,GAAO,IACvE,EACN,eAAK,SAAS,EAAC,uBAAuB,aACpC,cAAK,SAAS,EAAC,+BAA+B,uCAA6B,EAC3E,cAAK,SAAS,EAAC,6BAA6B,YAAE,cAAc,CAAC,eAAe,CAAC,GAAO,IAChF,IACF,EACN,cAAK,SAAS,EAAC,mCAAmC,YAChD,iBAAO,SAAS,EAAC,0BAA0B,aACzC,gBAAO,SAAS,EAAC,aAAa,YAC5B,yBACE,aAAI,SAAS,EAAC,uBAAuB,uBAAY,EACjD,aAAI,SAAS,EAAC,kCAAkC,sBAAW,EAC3D,aAAI,SAAS,EAAC,kCAAkC,oCAAyB,IACtE,GACC,EACR,0BACG,cAAc,CAAC,GAAG,CAAC,UAAC,EAAyB;gDAAvB,KAAK,WAAA,EAAE,KAAK,WAAA,EAAE,OAAO,aAAA;4CAAO,OAAA,CACjD,cAAgB,SAAS,EAAC,UAAU,aAClC,aAAI,KAAK,EAAC,KAAK,EAAC,SAAS,EAAC,kCAAkC,YAAE,KAAK,GAAM,EACzE,aAAI,SAAS,EAAC,mCAAmC,YAAE,KAAK,GAAM,EAC9D,aAAI,SAAS,EAAC,mCAAmC,YAAE,cAAc,CAAC,OAAO,CAAC,GAAM,KAHzE,KAAK,CAIT,CACN;wCANkD,CAMlD,CAAC,GACI,IACF,GACJ,EACN,YAAG,SAAS,EAAC,+BAA+B,6FAExC,IACA,GACU,IACjB,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import { useMemo } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport { closePopup } from \"../../../../../redux/features/popupSlice\";\nimport {\n SolidDialogBody,\n SolidDialogClose,\n SolidDialogHeader,\n SolidDialogSeparator,\n SolidDialogTitle,\n} from \"../../../../shad-cn-ui\";\n\nconst STAGES = [\"pending\", \"scheduled\", \"started\", \"retry\", \"retrying\", \"failed\", \"succeeded\"];\n\nconst formatDuration = (milliseconds: number | null) => {\n if (milliseconds === null || !Number.isFinite(milliseconds)) return \"—\";\n if (milliseconds < 1000) return `${Math.round(milliseconds)} ms`;\n if (milliseconds < 60_000) return `${(milliseconds / 1000).toFixed(2)} s`;\n return `${(milliseconds / 60_000).toFixed(2)} min`;\n};\n\ntype Props = { selectedRecords?: any[] };\n\nexport default function MqMessageSelectedRecordsSummaryHeaderAction({ selectedRecords = [] }: Props) {\n const dispatch = useDispatch();\n const stageSummaries = useMemo(() => STAGES.map((stage) => {\n const records = selectedRecords.filter((record) => record?.stage === stage);\n const durations = records\n .map((record) => Number(record?.elapsedMillis))\n .filter((duration) => Number.isFinite(duration) && duration >= 0);\n const average = durations.length\n ? durations.reduce((total, duration) => total + duration, 0) / durations.length\n : null;\n return { stage, count: records.length, average, measuredCount: durations.length };\n }), [selectedRecords]);\n\n const totalMeasured = stageSummaries.reduce((total, summary) => total + summary.measuredCount, 0);\n const totalDuration = stageSummaries.reduce(\n (total, summary) => total + (summary.average ?? 0) * summary.measuredCount,\n 0,\n );\n const averageDuration = totalMeasured ? totalDuration / totalMeasured : null;\n\n return (\n <>\n <SolidDialogHeader>\n <SolidDialogTitle>Selected queue messages</SolidDialogTitle>\n <SolidDialogClose aria-label=\"Close\" onClick={() => dispatch(closePopup())} />\n </SolidDialogHeader>\n <SolidDialogSeparator />\n <SolidDialogBody>\n <div className=\"space-y-4\">\n <div className=\"grid grid-cols-2 gap-3\">\n <div className=\"rounded-lg border p-4\">\n <div className=\"text-sm text-muted-foreground\">Selected messages</div>\n <div className=\"mt-1 text-2xl font-semibold\">{selectedRecords.length}</div>\n </div>\n <div className=\"rounded-lg border p-4\">\n <div className=\"text-sm text-muted-foreground\">Average execution time</div>\n <div className=\"mt-1 text-2xl font-semibold\">{formatDuration(averageDuration)}</div>\n </div>\n </div>\n <div className=\"overflow-x-auto rounded-lg border\">\n <table className=\"w-full text-left text-sm\">\n <thead className=\"bg-muted/50\">\n <tr>\n <th className=\"px-4 py-3 font-medium\">Status</th>\n <th className=\"px-4 py-3 text-right font-medium\">Count</th>\n <th className=\"px-4 py-3 text-right font-medium\">Avg. execution time</th>\n </tr>\n </thead>\n <tbody>\n {stageSummaries.map(({ stage, count, average }) => (\n <tr key={stage} className=\"border-t\">\n <th scope=\"row\" className=\"px-4 py-3 font-medium capitalize\">{stage}</th>\n <td className=\"px-4 py-3 text-right tabular-nums\">{count}</td>\n <td className=\"px-4 py-3 text-right tabular-nums\">{formatDuration(average)}</td>\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n <p className=\"text-xs text-muted-foreground\">\n Average execution time uses selected messages with an elapsed time recorded.\n </p>\n </div>\n </SolidDialogBody>\n </>\n );\n}\n"]}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { useMemo } from "react";
|
|
2
|
+
import { useDispatch } from "react-redux";
|
|
3
|
+
import { closePopup } from "../../../../../redux/features/popupSlice";
|
|
4
|
+
import {
|
|
5
|
+
SolidDialogBody,
|
|
6
|
+
SolidDialogClose,
|
|
7
|
+
SolidDialogHeader,
|
|
8
|
+
SolidDialogSeparator,
|
|
9
|
+
SolidDialogTitle,
|
|
10
|
+
} from "../../../../shad-cn-ui";
|
|
11
|
+
|
|
12
|
+
const STAGES = ["pending", "scheduled", "started", "retry", "retrying", "failed", "succeeded"];
|
|
13
|
+
|
|
14
|
+
const formatDuration = (milliseconds: number | null) => {
|
|
15
|
+
if (milliseconds === null || !Number.isFinite(milliseconds)) return "—";
|
|
16
|
+
if (milliseconds < 1000) return `${Math.round(milliseconds)} ms`;
|
|
17
|
+
if (milliseconds < 60_000) return `${(milliseconds / 1000).toFixed(2)} s`;
|
|
18
|
+
return `${(milliseconds / 60_000).toFixed(2)} min`;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
type Props = { selectedRecords?: any[] };
|
|
22
|
+
|
|
23
|
+
export default function MqMessageSelectedRecordsSummaryHeaderAction({ selectedRecords = [] }: Props) {
|
|
24
|
+
const dispatch = useDispatch();
|
|
25
|
+
const stageSummaries = useMemo(() => STAGES.map((stage) => {
|
|
26
|
+
const records = selectedRecords.filter((record) => record?.stage === stage);
|
|
27
|
+
const durations = records
|
|
28
|
+
.map((record) => Number(record?.elapsedMillis))
|
|
29
|
+
.filter((duration) => Number.isFinite(duration) && duration >= 0);
|
|
30
|
+
const average = durations.length
|
|
31
|
+
? durations.reduce((total, duration) => total + duration, 0) / durations.length
|
|
32
|
+
: null;
|
|
33
|
+
return { stage, count: records.length, average, measuredCount: durations.length };
|
|
34
|
+
}), [selectedRecords]);
|
|
35
|
+
|
|
36
|
+
const totalMeasured = stageSummaries.reduce((total, summary) => total + summary.measuredCount, 0);
|
|
37
|
+
const totalDuration = stageSummaries.reduce(
|
|
38
|
+
(total, summary) => total + (summary.average ?? 0) * summary.measuredCount,
|
|
39
|
+
0,
|
|
40
|
+
);
|
|
41
|
+
const averageDuration = totalMeasured ? totalDuration / totalMeasured : null;
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<>
|
|
45
|
+
<SolidDialogHeader>
|
|
46
|
+
<SolidDialogTitle>Selected queue messages</SolidDialogTitle>
|
|
47
|
+
<SolidDialogClose aria-label="Close" onClick={() => dispatch(closePopup())} />
|
|
48
|
+
</SolidDialogHeader>
|
|
49
|
+
<SolidDialogSeparator />
|
|
50
|
+
<SolidDialogBody>
|
|
51
|
+
<div className="space-y-4">
|
|
52
|
+
<div className="grid grid-cols-2 gap-3">
|
|
53
|
+
<div className="rounded-lg border p-4">
|
|
54
|
+
<div className="text-sm text-muted-foreground">Selected messages</div>
|
|
55
|
+
<div className="mt-1 text-2xl font-semibold">{selectedRecords.length}</div>
|
|
56
|
+
</div>
|
|
57
|
+
<div className="rounded-lg border p-4">
|
|
58
|
+
<div className="text-sm text-muted-foreground">Average execution time</div>
|
|
59
|
+
<div className="mt-1 text-2xl font-semibold">{formatDuration(averageDuration)}</div>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
<div className="overflow-x-auto rounded-lg border">
|
|
63
|
+
<table className="w-full text-left text-sm">
|
|
64
|
+
<thead className="bg-muted/50">
|
|
65
|
+
<tr>
|
|
66
|
+
<th className="px-4 py-3 font-medium">Status</th>
|
|
67
|
+
<th className="px-4 py-3 text-right font-medium">Count</th>
|
|
68
|
+
<th className="px-4 py-3 text-right font-medium">Avg. execution time</th>
|
|
69
|
+
</tr>
|
|
70
|
+
</thead>
|
|
71
|
+
<tbody>
|
|
72
|
+
{stageSummaries.map(({ stage, count, average }) => (
|
|
73
|
+
<tr key={stage} className="border-t">
|
|
74
|
+
<th scope="row" className="px-4 py-3 font-medium capitalize">{stage}</th>
|
|
75
|
+
<td className="px-4 py-3 text-right tabular-nums">{count}</td>
|
|
76
|
+
<td className="px-4 py-3 text-right tabular-nums">{formatDuration(average)}</td>
|
|
77
|
+
</tr>
|
|
78
|
+
))}
|
|
79
|
+
</tbody>
|
|
80
|
+
</table>
|
|
81
|
+
</div>
|
|
82
|
+
<p className="text-xs text-muted-foreground">
|
|
83
|
+
Average execution time uses selected messages with an elapsed time recorded.
|
|
84
|
+
</p>
|
|
85
|
+
</div>
|
|
86
|
+
</SolidDialogBody>
|
|
87
|
+
</>
|
|
88
|
+
);
|
|
89
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { SolidKanbanCardActionProps } from "../../../../../../types/list-row-action";
|
|
2
|
+
export default function MqMessageDetailsKanbanCardAction({ rowData, closePopup: popupClose, }: SolidKanbanCardActionProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=MqMessageDetailsKanbanCardAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MqMessageDetailsKanbanCardAction.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/core/extension/solid-core/mqMessage/kanban/MqMessageDetailsKanbanCardAction.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAkB1F,MAAM,CAAC,OAAO,UAAU,gCAAgC,CAAC,EACvD,OAAO,EACP,UAAU,EAAE,UAAU,GACvB,EAAE,0BAA0B,2CA4B5B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useDispatch } from "react-redux";
|
|
3
|
+
import { closePopup } from "../../../../../../redux/features/popupSlice";
|
|
4
|
+
import { SolidButton, SolidDialogBody, SolidDialogClose, SolidDialogFooter, SolidDialogHeader, SolidDialogSeparator, SolidDialogTitle, } from "../../../../../shad-cn-ui";
|
|
5
|
+
var display = function (value) {
|
|
6
|
+
if (value === null || value === undefined || value === "")
|
|
7
|
+
return "—";
|
|
8
|
+
if (typeof value === "object")
|
|
9
|
+
return JSON.stringify(value);
|
|
10
|
+
return String(value);
|
|
11
|
+
};
|
|
12
|
+
export default function MqMessageDetailsKanbanCardAction(_a) {
|
|
13
|
+
var rowData = _a.rowData, popupClose = _a.closePopup;
|
|
14
|
+
var dispatch = useDispatch();
|
|
15
|
+
var close = function () { var _a; return (_a = popupClose === null || popupClose === void 0 ? void 0 : popupClose()) !== null && _a !== void 0 ? _a : dispatch(closePopup()); };
|
|
16
|
+
return (_jsxs(_Fragment, { children: [_jsxs(SolidDialogHeader, { children: [_jsx(SolidDialogTitle, { children: "Queue message details" }), _jsx(SolidDialogClose, { "aria-label": "Close" })] }), _jsx(SolidDialogSeparator, {}), _jsx(SolidDialogBody, { children: _jsxs("dl", { className: "grid grid-cols-[auto_1fr] gap-x-4 gap-y-2 text-sm", children: [_jsx("dt", { children: "Message ID" }), _jsx("dd", { className: "min-w-0 break-all", children: display(rowData === null || rowData === void 0 ? void 0 : rowData.messageId) }), _jsx("dt", { children: "Broker" }), _jsx("dd", { children: display(rowData === null || rowData === void 0 ? void 0 : rowData.messageBroker) }), _jsx("dt", { children: "Type" }), _jsx("dd", { children: display(rowData === null || rowData === void 0 ? void 0 : rowData.messageType) }), _jsx("dt", { children: "Stage" }), _jsx("dd", { children: display(rowData === null || rowData === void 0 ? void 0 : rowData.stage) }), _jsx("dt", { children: "Retries" }), _jsx("dd", { children: display(rowData === null || rowData === void 0 ? void 0 : rowData.retryCount) }), _jsx("dt", { children: "Started" }), _jsx("dd", { children: display(rowData === null || rowData === void 0 ? void 0 : rowData.startedAt) }), _jsx("dt", { children: "Finished" }), _jsx("dd", { children: display(rowData === null || rowData === void 0 ? void 0 : rowData.finishedAt) }), _jsx("dt", { children: "Error" }), _jsx("dd", { className: "min-w-0 whitespace-pre-wrap break-words", children: display(rowData === null || rowData === void 0 ? void 0 : rowData.error) })] }) }), _jsx(SolidDialogFooter, { children: _jsx(SolidButton, { type: "button", variant: "outline", onClick: close, children: "Close" }) })] }));
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=MqMessageDetailsKanbanCardAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MqMessageDetailsKanbanCardAction.js","sourceRoot":"","sources":["../../../../../../../src/components/core/extension/solid-core/mqMessage/kanban/MqMessageDetailsKanbanCardAction.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AACzE,OAAO,EACL,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AAEnC,IAAM,OAAO,GAAG,UAAC,KAAc;IAC7B,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,EAAE;QAAE,OAAO,GAAG,CAAC;IACtE,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5D,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,gCAAgC,CAAC,EAG5B;QAF3B,OAAO,aAAA,EACK,UAAU,gBAAA;IAEtB,IAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,IAAM,KAAK,GAAG,sBAAM,OAAA,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,EAAI,mCAAI,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAA,EAAA,CAAC;IAE7D,OAAO,CACL,8BACE,MAAC,iBAAiB,eAChB,KAAC,gBAAgB,wCAAyC,EAC1D,KAAC,gBAAgB,kBAAY,OAAO,GAAG,IACrB,EACpB,KAAC,oBAAoB,KAAG,EACxB,KAAC,eAAe,cACd,cAAI,SAAS,EAAC,mDAAmD,aAC/D,sCAAmB,EAAA,aAAI,SAAS,EAAC,mBAAmB,YAAE,OAAO,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,CAAC,GAAM,EACvF,kCAAe,EAAA,uBAAK,OAAO,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,CAAC,GAAM,EACzD,gCAAa,EAAA,uBAAK,OAAO,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,CAAC,GAAM,EACrD,iCAAc,EAAA,uBAAK,OAAO,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,CAAC,GAAM,EAChD,mCAAgB,EAAA,uBAAK,OAAO,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,CAAC,GAAM,EACvD,mCAAgB,EAAA,uBAAK,OAAO,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,CAAC,GAAM,EACtD,oCAAiB,EAAA,uBAAK,OAAO,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,CAAC,GAAM,EACxD,iCAAc,EAAA,aAAI,SAAS,EAAC,yCAAyC,YAAE,OAAO,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,CAAC,GAAM,IACjG,GACW,EAClB,KAAC,iBAAiB,cAChB,KAAC,WAAW,IAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,KAAK,sBAAqB,GAC9D,IACnB,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import { useDispatch } from \"react-redux\";\nimport type { SolidKanbanCardActionProps } from \"../../../../../../types/list-row-action\";\nimport { closePopup } from \"../../../../../../redux/features/popupSlice\";\nimport {\n SolidButton,\n SolidDialogBody,\n SolidDialogClose,\n SolidDialogFooter,\n SolidDialogHeader,\n SolidDialogSeparator,\n SolidDialogTitle,\n} from \"../../../../../shad-cn-ui\";\n\nconst display = (value: unknown): string => {\n if (value === null || value === undefined || value === \"\") return \"—\";\n if (typeof value === \"object\") return JSON.stringify(value);\n return String(value);\n};\n\nexport default function MqMessageDetailsKanbanCardAction({\n rowData,\n closePopup: popupClose,\n}: SolidKanbanCardActionProps) {\n const dispatch = useDispatch();\n const close = () => popupClose?.() ?? dispatch(closePopup());\n\n return (\n <>\n <SolidDialogHeader>\n <SolidDialogTitle>Queue message details</SolidDialogTitle>\n <SolidDialogClose aria-label=\"Close\" />\n </SolidDialogHeader>\n <SolidDialogSeparator />\n <SolidDialogBody>\n <dl className=\"grid grid-cols-[auto_1fr] gap-x-4 gap-y-2 text-sm\">\n <dt>Message ID</dt><dd className=\"min-w-0 break-all\">{display(rowData?.messageId)}</dd>\n <dt>Broker</dt><dd>{display(rowData?.messageBroker)}</dd>\n <dt>Type</dt><dd>{display(rowData?.messageType)}</dd>\n <dt>Stage</dt><dd>{display(rowData?.stage)}</dd>\n <dt>Retries</dt><dd>{display(rowData?.retryCount)}</dd>\n <dt>Started</dt><dd>{display(rowData?.startedAt)}</dd>\n <dt>Finished</dt><dd>{display(rowData?.finishedAt)}</dd>\n <dt>Error</dt><dd className=\"min-w-0 whitespace-pre-wrap break-words\">{display(rowData?.error)}</dd>\n </dl>\n </SolidDialogBody>\n <SolidDialogFooter>\n <SolidButton type=\"button\" variant=\"outline\" onClick={close}>Close</SolidButton>\n </SolidDialogFooter>\n </>\n );\n}\n"]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { useDispatch } from "react-redux";
|
|
2
|
+
import type { SolidKanbanCardActionProps } from "../../../../../../types/list-row-action";
|
|
3
|
+
import { closePopup } from "../../../../../../redux/features/popupSlice";
|
|
4
|
+
import {
|
|
5
|
+
SolidButton,
|
|
6
|
+
SolidDialogBody,
|
|
7
|
+
SolidDialogClose,
|
|
8
|
+
SolidDialogFooter,
|
|
9
|
+
SolidDialogHeader,
|
|
10
|
+
SolidDialogSeparator,
|
|
11
|
+
SolidDialogTitle,
|
|
12
|
+
} from "../../../../../shad-cn-ui";
|
|
13
|
+
|
|
14
|
+
const display = (value: unknown): string => {
|
|
15
|
+
if (value === null || value === undefined || value === "") return "—";
|
|
16
|
+
if (typeof value === "object") return JSON.stringify(value);
|
|
17
|
+
return String(value);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export default function MqMessageDetailsKanbanCardAction({
|
|
21
|
+
rowData,
|
|
22
|
+
closePopup: popupClose,
|
|
23
|
+
}: SolidKanbanCardActionProps) {
|
|
24
|
+
const dispatch = useDispatch();
|
|
25
|
+
const close = () => popupClose?.() ?? dispatch(closePopup());
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<>
|
|
29
|
+
<SolidDialogHeader>
|
|
30
|
+
<SolidDialogTitle>Queue message details</SolidDialogTitle>
|
|
31
|
+
<SolidDialogClose aria-label="Close" />
|
|
32
|
+
</SolidDialogHeader>
|
|
33
|
+
<SolidDialogSeparator />
|
|
34
|
+
<SolidDialogBody>
|
|
35
|
+
<dl className="grid grid-cols-[auto_1fr] gap-x-4 gap-y-2 text-sm">
|
|
36
|
+
<dt>Message ID</dt><dd className="min-w-0 break-all">{display(rowData?.messageId)}</dd>
|
|
37
|
+
<dt>Broker</dt><dd>{display(rowData?.messageBroker)}</dd>
|
|
38
|
+
<dt>Type</dt><dd>{display(rowData?.messageType)}</dd>
|
|
39
|
+
<dt>Stage</dt><dd>{display(rowData?.stage)}</dd>
|
|
40
|
+
<dt>Retries</dt><dd>{display(rowData?.retryCount)}</dd>
|
|
41
|
+
<dt>Started</dt><dd>{display(rowData?.startedAt)}</dd>
|
|
42
|
+
<dt>Finished</dt><dd>{display(rowData?.finishedAt)}</dd>
|
|
43
|
+
<dt>Error</dt><dd className="min-w-0 whitespace-pre-wrap break-words">{display(rowData?.error)}</dd>
|
|
44
|
+
</dl>
|
|
45
|
+
</SolidDialogBody>
|
|
46
|
+
<SolidDialogFooter>
|
|
47
|
+
<SolidButton type="button" variant="outline" onClick={close}>Close</SolidButton>
|
|
48
|
+
</SolidDialogFooter>
|
|
49
|
+
</>
|
|
50
|
+
);
|
|
51
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type HeaderActionContext = {
|
|
2
|
+
params?: {
|
|
3
|
+
moduleName?: string;
|
|
4
|
+
modelName?: string;
|
|
5
|
+
};
|
|
6
|
+
closePopup?: () => void;
|
|
7
|
+
};
|
|
8
|
+
export default function MqMessageKanbanQuickFilterHeaderAction({ params, closePopup: popupClose, }: HeaderActionContext): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=MqMessageKanbanQuickFilterHeaderAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MqMessageKanbanQuickFilterHeaderAction.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanQuickFilterHeaderAction.tsx"],"names":[],"mappings":"AAeA,KAAK,mBAAmB,GAAG;IACzB,MAAM,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACrD,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,sCAAsC,CAAC,EAC7D,MAAM,EACN,UAAU,EAAE,UAAU,GACvB,EAAE,mBAAmB,2CAqFrB"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
2
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
|
+
if (ar || !(i in from)) {
|
|
4
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
+
ar[i] = from[i];
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
|
+
};
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
|
+
import { useState } from "react";
|
|
12
|
+
import { useDispatch } from "react-redux";
|
|
13
|
+
import { closePopup } from "../../../../../../redux/features/popupSlice";
|
|
14
|
+
import { getKanbanView, getRegisteredKanbanViewIds } from "../../../../../../components/core/kanban/kanbanViewRegistry";
|
|
15
|
+
import { SolidButton, SolidDialogBody, SolidDialogClose, SolidDialogFooter, SolidDialogHeader, SolidDialogSeparator, SolidDialogTitle, SolidInput, } from "../../../../../shad-cn-ui";
|
|
16
|
+
var STAGES = ["pending", "scheduled", "started", "retry", "retrying", "failed", "succeeded"];
|
|
17
|
+
export default function MqMessageKanbanQuickFilterHeaderAction(_a) {
|
|
18
|
+
var params = _a.params, popupClose = _a.closePopup;
|
|
19
|
+
var dispatch = useDispatch();
|
|
20
|
+
var _b = useState([]), stages = _b[0], setStages = _b[1];
|
|
21
|
+
var _c = useState(""), messageBroker = _c[0], setMessageBroker = _c[1];
|
|
22
|
+
var _d = useState(""), messageType = _d[0], setMessageType = _d[1];
|
|
23
|
+
var close = function () {
|
|
24
|
+
if (popupClose)
|
|
25
|
+
popupClose();
|
|
26
|
+
else
|
|
27
|
+
dispatch(closePopup());
|
|
28
|
+
};
|
|
29
|
+
var getActiveKanbanView = function () {
|
|
30
|
+
var _a, _b;
|
|
31
|
+
var prefix = "page:".concat((_a = params === null || params === void 0 ? void 0 : params.moduleName) !== null && _a !== void 0 ? _a : "solid-core", ":").concat((_b = params === null || params === void 0 ? void 0 : params.modelName) !== null && _b !== void 0 ? _b : "mqMessage", ":");
|
|
32
|
+
var viewId = getRegisteredKanbanViewIds().find(function (id) { return id.startsWith(prefix); });
|
|
33
|
+
return viewId ? getKanbanView(viewId) : undefined;
|
|
34
|
+
};
|
|
35
|
+
var applyFilters = function () {
|
|
36
|
+
var predicate = {};
|
|
37
|
+
if (stages.length === 1)
|
|
38
|
+
predicate.stage = { $eq: stages[0] };
|
|
39
|
+
else if (stages.length > 1)
|
|
40
|
+
predicate.stage = { $in: stages };
|
|
41
|
+
if (messageBroker.trim())
|
|
42
|
+
predicate.messageBroker = { $eq: messageBroker.trim() };
|
|
43
|
+
if (messageType.trim())
|
|
44
|
+
predicate.messageType = { $eq: messageType.trim() };
|
|
45
|
+
var view = getActiveKanbanView();
|
|
46
|
+
if (!view)
|
|
47
|
+
return;
|
|
48
|
+
view.applyFilter({ custom_filter_predicate: predicate, replaceFilters: true });
|
|
49
|
+
close();
|
|
50
|
+
};
|
|
51
|
+
var clearFilters = function () {
|
|
52
|
+
var _a;
|
|
53
|
+
(_a = getActiveKanbanView()) === null || _a === void 0 ? void 0 : _a.applyFilter({ custom_filter_predicate: {}, replaceFilters: true });
|
|
54
|
+
close();
|
|
55
|
+
};
|
|
56
|
+
var toggleStage = function (stage) {
|
|
57
|
+
setStages(function (current) { return current.includes(stage)
|
|
58
|
+
? current.filter(function (value) { return value !== stage; })
|
|
59
|
+
: __spreadArray(__spreadArray([], current, true), [stage], false); });
|
|
60
|
+
};
|
|
61
|
+
return (_jsxs(_Fragment, { children: [_jsxs(SolidDialogHeader, { children: [_jsx(SolidDialogTitle, { children: "Quick filter queue messages" }), _jsx(SolidDialogClose, { "aria-label": "Close" })] }), _jsx(SolidDialogSeparator, {}), _jsx(SolidDialogBody, { children: _jsxs("div", { className: "space-y-5", children: [_jsxs("fieldset", { children: [_jsx("legend", { className: "mb-2 text-sm font-semibold", children: "Stage" }), _jsx("div", { className: "grid grid-cols-2 gap-2 sm:grid-cols-3", children: STAGES.map(function (stage) { return (_jsxs("label", { className: "flex items-center gap-2 text-sm capitalize", children: [_jsx("input", { type: "checkbox", checked: stages.includes(stage), onChange: function () { return toggleStage(stage); } }), stage] }, stage)); }) })] }), _jsxs("label", { className: "block space-y-1 text-sm", children: [_jsx("span", { className: "font-semibold", children: "Message broker" }), _jsx(SolidInput, { value: messageBroker, onChange: function (event) { return setMessageBroker(event.target.value); }, placeholder: "Exact broker name" })] }), _jsxs("label", { className: "block space-y-1 text-sm", children: [_jsx("span", { className: "font-semibold", children: "Message type" }), _jsx(SolidInput, { value: messageType, onChange: function (event) { return setMessageType(event.target.value); }, placeholder: "Exact message type" })] }), _jsx("p", { className: "text-xs text-muted-foreground", children: "Selected filters are combined. Leave a field empty to ignore it." })] }) }), _jsxs(SolidDialogFooter, { children: [_jsx(SolidButton, { type: "button", variant: "ghost", onClick: clearFilters, children: "Clear filters" }), _jsx(SolidButton, { type: "button", variant: "outline", onClick: close, children: "Cancel" }), _jsx(SolidButton, { type: "button", onClick: applyFilters, children: "Apply filters" })] })] }));
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=MqMessageKanbanQuickFilterHeaderAction.js.map
|