@vertesia/ui 1.0.0-dev.20260305.083323Z → 1.0.0-dev.20260331.091034Z
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/lib/esm/core/components/SelectList.js +3 -1
- package/lib/esm/core/components/SelectList.js.map +1 -1
- package/lib/esm/core/components/SidePanel.js +2 -2
- package/lib/esm/core/components/SidePanel.js.map +1 -1
- package/lib/esm/core/components/index.js +0 -5
- package/lib/esm/core/components/index.js.map +1 -1
- package/lib/esm/core/components/shadcn/breadcrumb.js +11 -7
- package/lib/esm/core/components/shadcn/breadcrumb.js.map +1 -1
- package/lib/esm/core/components/shadcn/button.js +5 -3
- package/lib/esm/core/components/shadcn/button.js.map +1 -1
- package/lib/esm/core/components/shadcn/collaspible.js +14 -0
- package/lib/esm/core/components/shadcn/collaspible.js.map +1 -0
- package/lib/esm/core/components/shadcn/dropdown.js +64 -0
- package/lib/esm/core/components/shadcn/dropdown.js.map +1 -0
- package/lib/esm/core/components/shadcn/filters/comboBox/DateCombobox.js +3 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/DateCombobox.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/SelectCombobox.js +3 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/SelectCombobox.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/StringListCombobox.js +1 -1
- package/lib/esm/core/components/shadcn/filters/comboBox/StringListCombobox.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/filter/StringListFilter.js +1 -1
- package/lib/esm/core/components/shadcn/filters/filter/StringListFilter.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/filter/dateFilter.js +4 -2
- package/lib/esm/core/components/shadcn/filters/filter/dateFilter.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/filterBar.js +7 -4
- package/lib/esm/core/components/shadcn/filters/filterBar.js.map +1 -1
- package/lib/esm/core/components/shadcn/index.js +4 -0
- package/lib/esm/core/components/shadcn/index.js.map +1 -1
- package/lib/esm/core/components/shadcn/modal/ConfirmModal.js +4 -2
- package/lib/esm/core/components/shadcn/modal/ConfirmModal.js.map +1 -1
- package/lib/esm/core/components/shadcn/modal/DeleteModal.js +5 -3
- package/lib/esm/core/components/shadcn/modal/DeleteModal.js.map +1 -1
- package/lib/esm/core/components/shadcn/popover.js +11 -7
- package/lib/esm/core/components/shadcn/popover.js.map +1 -1
- package/lib/esm/core/components/shadcn/radioGroup.js +29 -0
- package/lib/esm/core/components/shadcn/radioGroup.js.map +1 -0
- package/lib/esm/core/components/shadcn/switch.js +19 -0
- package/lib/esm/core/components/shadcn/switch.js.map +1 -0
- package/lib/esm/core/components/shadcn/tabs.js +6 -6
- package/lib/esm/core/components/shadcn/tabs.js.map +1 -1
- package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js +7 -4
- package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js.map +1 -1
- package/lib/esm/core/components/toast/NotificationPanel.js +3 -3
- package/lib/esm/core/components/toast/NotificationPanel.js.map +1 -1
- package/lib/esm/core/hooks/PortalContainerProvider.js +9 -3
- package/lib/esm/core/hooks/PortalContainerProvider.js.map +1 -1
- package/lib/esm/env/index.js +16 -9
- package/lib/esm/env/index.js.map +1 -1
- package/lib/esm/features/agent/PayloadBuilder.js +87 -15
- package/lib/esm/features/agent/PayloadBuilder.js.map +1 -1
- package/lib/esm/features/agent/chat/AgentRightPanel.js +159 -0
- package/lib/esm/features/agent/chat/AgentRightPanel.js.map +1 -0
- package/lib/esm/features/agent/chat/ArtifactsTab.js +69 -0
- package/lib/esm/features/agent/chat/ArtifactsTab.js.map +1 -0
- package/lib/esm/features/agent/chat/AskUserWidget.js +12 -6
- package/lib/esm/features/agent/chat/AskUserWidget.js.map +1 -1
- package/lib/esm/features/agent/chat/DocumentPanel.js +6 -3
- package/lib/esm/features/agent/chat/DocumentPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ImageLightbox.js +3 -1
- package/lib/esm/features/agent/chat/ImageLightbox.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentConversation.js +241 -113
- package/lib/esm/features/agent/chat/ModernAgentConversation.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +122 -52
- package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/BatchProgressPanel.js +5 -3
- package/lib/esm/features/agent/chat/ModernAgentOutput/BatchProgressPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js +76 -33
- package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js +82 -83
- package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js +16 -14
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js +20 -5
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js +8 -6
- package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js +12 -10
- package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/StreamingMessage.js +5 -3
- package/lib/esm/features/agent/chat/ModernAgentOutput/StreamingMessage.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/ToolCallGroup.js +104 -13
- package/lib/esm/features/agent/chat/ModernAgentOutput/ToolCallGroup.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js +9 -5
- package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js.map +1 -1
- package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js +160 -76
- package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js.map +1 -1
- package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js +3 -1
- package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js.map +1 -1
- package/lib/esm/features/agent/chat/VegaLiteChart.js +14 -2
- package/lib/esm/features/agent/chat/VegaLiteChart.js.map +1 -1
- package/lib/esm/features/agent/chat/hooks/useAgentPlans.js +3 -8
- package/lib/esm/features/agent/chat/hooks/useAgentPlans.js.map +1 -1
- package/lib/esm/features/agent/chat/hooks/useAgentStream.js +79 -16
- package/lib/esm/features/agent/chat/hooks/useAgentStream.js.map +1 -1
- package/lib/esm/features/agent/chat/hooks/useArtifacts.js +108 -0
- package/lib/esm/features/agent/chat/hooks/useArtifacts.js.map +1 -0
- package/lib/esm/features/agent/chat/hooks/useDocumentPanel.js +56 -5
- package/lib/esm/features/agent/chat/hooks/useDocumentPanel.js.map +1 -1
- package/lib/esm/features/agent/chat/hooks/useFileProcessing.js +12 -10
- package/lib/esm/features/agent/chat/hooks/useFileProcessing.js.map +1 -1
- package/lib/esm/features/errors/PanelErrorBoundary.js +3 -1
- package/lib/esm/features/errors/PanelErrorBoundary.js.map +1 -1
- package/lib/esm/features/facets/AgentRunnerFacetsNav.js +45 -33
- package/lib/esm/features/facets/AgentRunnerFacetsNav.js.map +1 -1
- package/lib/esm/features/facets/RunsFacetsNav.js +9 -2
- package/lib/esm/features/facets/RunsFacetsNav.js.map +1 -1
- package/lib/esm/features/facets/index.js +1 -1
- package/lib/esm/features/facets/index.js.map +1 -1
- package/lib/esm/features/layout/GenericPageNavHeader.js +40 -28
- package/lib/esm/features/layout/GenericPageNavHeader.js.map +1 -1
- package/lib/esm/features/layout/NotFoundView.js +3 -1
- package/lib/esm/features/layout/NotFoundView.js.map +1 -1
- package/lib/esm/features/magic-pdf/AnnotatedImageSlider.js +9 -5
- package/lib/esm/features/magic-pdf/AnnotatedImageSlider.js.map +1 -1
- package/lib/esm/features/magic-pdf/DownloadPopover.js +5 -4
- package/lib/esm/features/magic-pdf/DownloadPopover.js.map +1 -1
- package/lib/esm/features/magic-pdf/MagicPdfView.js +8 -5
- package/lib/esm/features/magic-pdf/MagicPdfView.js.map +1 -1
- package/lib/esm/features/pdf-viewer/PdfPageSlider.js +9 -5
- package/lib/esm/features/pdf-viewer/PdfPageSlider.js.map +1 -1
- package/lib/esm/features/pdf-viewer/SimplePdfViewer.js +5 -3
- package/lib/esm/features/pdf-viewer/SimplePdfViewer.js.map +1 -1
- package/lib/esm/features/permissions/UserPermissionsProvider.js +3 -1
- package/lib/esm/features/permissions/UserPermissionsProvider.js.map +1 -1
- package/lib/esm/features/store/collections/BrowseCollectionView.js +9 -1
- package/lib/esm/features/store/collections/BrowseCollectionView.js.map +1 -1
- package/lib/esm/features/store/collections/CollectionsTable.js +14 -7
- package/lib/esm/features/store/collections/CollectionsTable.js.map +1 -1
- package/lib/esm/features/store/collections/CreateCollection.js +12 -9
- package/lib/esm/features/store/collections/CreateCollection.js.map +1 -1
- package/lib/esm/features/store/collections/EditCollectionView.js +23 -19
- package/lib/esm/features/store/collections/EditCollectionView.js.map +1 -1
- package/lib/esm/features/store/collections/SelectCollection.js +25 -10
- package/lib/esm/features/store/collections/SelectCollection.js.map +1 -1
- package/lib/esm/features/store/collections/SharedPropsEditor.js +5 -3
- package/lib/esm/features/store/collections/SharedPropsEditor.js.map +1 -1
- package/lib/esm/features/store/collections/SyncMemberHeadsToggle.js +5 -3
- package/lib/esm/features/store/collections/SyncMemberHeadsToggle.js.map +1 -1
- package/lib/esm/features/store/objects/DocumentPreviewPanel.js +14 -12
- package/lib/esm/features/store/objects/DocumentPreviewPanel.js.map +1 -1
- package/lib/esm/features/store/objects/DocumentSearchResults.js +15 -5
- package/lib/esm/features/store/objects/DocumentSearchResults.js.map +1 -1
- package/lib/esm/features/store/objects/DocumentTable.js +10 -7
- package/lib/esm/features/store/objects/DocumentTable.js.map +1 -1
- package/lib/esm/features/store/objects/ExportPropertiesModal.js +5 -2
- package/lib/esm/features/store/objects/ExportPropertiesModal.js.map +1 -1
- package/lib/esm/features/store/objects/components/ContentDispositionButton.js +3 -1
- package/lib/esm/features/store/objects/components/ContentDispositionButton.js.map +1 -1
- package/lib/esm/features/store/objects/components/ContentOverview.js +55 -40
- package/lib/esm/features/store/objects/components/ContentOverview.js.map +1 -1
- package/lib/esm/features/store/objects/components/DocumentIcon.js +4 -3
- package/lib/esm/features/store/objects/components/DocumentIcon.js.map +1 -1
- package/lib/esm/features/store/objects/components/PropertiesEditorModal.js +13 -11
- package/lib/esm/features/store/objects/components/PropertiesEditorModal.js.map +1 -1
- package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js +15 -18
- package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js.map +1 -1
- package/lib/esm/features/store/objects/components/SelectDocument.js +9 -6
- package/lib/esm/features/store/objects/components/SelectDocument.js.map +1 -1
- package/lib/esm/features/store/objects/components/TextEditorPanel.js +97 -0
- package/lib/esm/features/store/objects/components/TextEditorPanel.js.map +1 -0
- package/lib/esm/features/store/objects/components/VectorSearchWidget.js +3 -1
- package/lib/esm/features/store/objects/components/VectorSearchWidget.js.map +1 -1
- package/lib/esm/features/store/objects/components/useContentPanelHooks.js +4 -2
- package/lib/esm/features/store/objects/components/useContentPanelHooks.js.map +1 -1
- package/lib/esm/features/store/objects/components/useDownloadFile.js +12 -10
- package/lib/esm/features/store/objects/components/useDownloadFile.js.map +1 -1
- package/lib/esm/features/store/objects/layout/documentLayout.js +10 -6
- package/lib/esm/features/store/objects/layout/documentLayout.js.map +1 -1
- package/lib/esm/features/store/objects/layout/renderers.js +10 -1
- package/lib/esm/features/store/objects/layout/renderers.js.map +1 -1
- package/lib/esm/features/store/objects/search/DocumentSearchContext.js +3 -2
- package/lib/esm/features/store/objects/search/DocumentSearchContext.js.map +1 -1
- package/lib/esm/features/store/objects/search/DocumentSearchProvider.js +3 -0
- package/lib/esm/features/store/objects/search/DocumentSearchProvider.js.map +1 -1
- package/lib/esm/features/store/objects/selection/ObjectsActionContext.js +22 -109
- package/lib/esm/features/store/objects/selection/ObjectsActionContext.js.map +1 -1
- package/lib/esm/features/store/objects/selection/ObjectsActionContextClass.js +50 -0
- package/lib/esm/features/store/objects/selection/ObjectsActionContextClass.js.map +1 -0
- package/lib/esm/features/store/objects/selection/ObjectsActionHooks.js +27 -0
- package/lib/esm/features/store/objects/selection/ObjectsActionHooks.js.map +1 -0
- package/lib/esm/features/store/objects/selection/SelectionActions.js +10 -6
- package/lib/esm/features/store/objects/selection/SelectionActions.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js +17 -12
- package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js +9 -5
- package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js +4 -2
- package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js +24 -23
- package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js +10 -5
- package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js +13 -9
- package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js.map +1 -1
- package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js +14 -8
- package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js.map +1 -1
- package/lib/esm/features/store/objects/upload/DocumentUploadModal.js +42 -39
- package/lib/esm/features/store/objects/upload/DocumentUploadModal.js.map +1 -1
- package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js +4 -2
- package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js.map +1 -1
- package/lib/esm/features/store/objects/upload/useUploadHandler.js +9 -7
- package/lib/esm/features/store/objects/upload/useUploadHandler.js.map +1 -1
- package/lib/esm/features/store/types/ContentObjectTypesSearch.js +6 -4
- package/lib/esm/features/store/types/ContentObjectTypesSearch.js.map +1 -1
- package/lib/esm/features/store/types/ContentObjectTypesTable.js +3 -1
- package/lib/esm/features/store/types/ContentObjectTypesTable.js.map +1 -1
- package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js +6 -7
- package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js.map +1 -1
- package/lib/esm/features/store/types/ObjectSchemaEditor.js +9 -7
- package/lib/esm/features/store/types/ObjectSchemaEditor.js.map +1 -1
- package/lib/esm/features/store/types/SelectContentType.js +9 -7
- package/lib/esm/features/store/types/SelectContentType.js.map +1 -1
- package/lib/esm/features/store/types/SelectContentTypeModal.js +5 -2
- package/lib/esm/features/store/types/SelectContentTypeModal.js.map +1 -1
- package/lib/esm/features/store/types/TableLayoutEditor.js +6 -4
- package/lib/esm/features/store/types/TableLayoutEditor.js.map +1 -1
- package/lib/esm/features/user/UserInfo.js +40 -50
- package/lib/esm/features/user/UserInfo.js.map +1 -1
- package/lib/esm/i18n/index.js +31 -0
- package/lib/esm/i18n/index.js.map +1 -0
- package/lib/esm/i18n/instance.js +46 -0
- package/lib/esm/i18n/instance.js.map +1 -0
- package/lib/esm/i18n/locales/ar.json +696 -0
- package/lib/esm/i18n/locales/de.json +664 -0
- package/lib/esm/i18n/locales/en.json +665 -0
- package/lib/esm/i18n/locales/es.json +670 -0
- package/lib/esm/i18n/locales/fr.json +672 -0
- package/lib/esm/i18n/locales/it.json +670 -0
- package/lib/esm/i18n/locales/ja.json +664 -0
- package/lib/esm/i18n/locales/ko.json +664 -0
- package/lib/esm/i18n/locales/pt.json +670 -0
- package/lib/esm/i18n/locales/ru.json +680 -0
- package/lib/esm/i18n/locales/tr.json +664 -0
- package/lib/esm/i18n/locales/zh-TW.json +664 -0
- package/lib/esm/i18n/locales/zh.json +664 -0
- package/lib/esm/layout/FullHeightLayout.js +3 -0
- package/lib/esm/layout/FullHeightLayout.js.map +1 -1
- package/lib/esm/layout/Navbar.js +3 -1
- package/lib/esm/layout/Navbar.js.map +1 -1
- package/lib/esm/layout/RegionTag.js +15 -0
- package/lib/esm/layout/RegionTag.js.map +1 -0
- package/lib/esm/layout/Sidebar.js +2 -2
- package/lib/esm/layout/Sidebar.js.map +1 -1
- package/lib/esm/layout/index.js +1 -0
- package/lib/esm/layout/index.js.map +1 -1
- package/lib/esm/router/HistoryNavigator.js +1 -1
- package/lib/esm/router/HistoryNavigator.js.map +1 -1
- package/lib/esm/router/Nav.js +5 -3
- package/lib/esm/router/Nav.js.map +1 -1
- package/lib/esm/router/NestedNavigationContext.js +4 -0
- package/lib/esm/router/NestedNavigationContext.js.map +1 -1
- package/lib/esm/router/NestedRouterProvider.js +3 -1
- package/lib/esm/router/NestedRouterProvider.js.map +1 -1
- package/lib/esm/router/Router.js +21 -6
- package/lib/esm/router/Router.js.map +1 -1
- package/lib/esm/session/UserSession.js +25 -4
- package/lib/esm/session/UserSession.js.map +1 -1
- package/lib/esm/session/UserSessionProvider.js +6 -13
- package/lib/esm/session/UserSessionProvider.js.map +1 -1
- package/lib/esm/session/auth/composable.js +1 -1
- package/lib/esm/session/auth/composable.js.map +1 -1
- package/lib/esm/session/auth/domainRouting.js +17 -0
- package/lib/esm/session/auth/domainRouting.js.map +1 -0
- package/lib/esm/session/auth/firebase.js +1 -1
- package/lib/esm/session/auth/firebase.js.map +1 -1
- package/lib/esm/session/auth/useCurrentTenant.js +3 -1
- package/lib/esm/session/auth/useCurrentTenant.js.map +1 -1
- package/lib/esm/shell/SplashScreen.js +3 -7
- package/lib/esm/shell/SplashScreen.js.map +1 -1
- package/lib/esm/shell/apps/StandaloneApp.js +5 -2
- package/lib/esm/shell/apps/StandaloneApp.js.map +1 -1
- package/lib/esm/shell/login/EnterpriseSigninButton.js +5 -3
- package/lib/esm/shell/login/EnterpriseSigninButton.js.map +1 -1
- package/lib/esm/shell/login/GitHubSignInButton.js +3 -7
- package/lib/esm/shell/login/GitHubSignInButton.js.map +1 -1
- package/lib/esm/shell/login/GoogleSignInButton.js +3 -1
- package/lib/esm/shell/login/GoogleSignInButton.js.map +1 -1
- package/lib/esm/shell/login/InviteAcceptModal.js +5 -2
- package/lib/esm/shell/login/InviteAcceptModal.js.map +1 -1
- package/lib/esm/shell/login/MicrosoftSigninButton.js +4 -6
- package/lib/esm/shell/login/MicrosoftSigninButton.js.map +1 -1
- package/lib/esm/shell/login/SigninScreen.js +6 -2
- package/lib/esm/shell/login/SigninScreen.js.map +1 -1
- package/lib/esm/shell/login/SignupForm.js +36 -34
- package/lib/esm/shell/login/SignupForm.js.map +1 -1
- package/lib/esm/shell/login/TerminalLogin.js +28 -21
- package/lib/esm/shell/login/TerminalLogin.js.map +1 -1
- package/lib/esm/shell/login/UserInfo.js +6 -4
- package/lib/esm/shell/login/UserInfo.js.map +1 -1
- package/lib/esm/shell/login/UserSessionMenu.js +3 -4
- package/lib/esm/shell/login/UserSessionMenu.js.map +1 -1
- package/lib/esm/widgets/index.js +0 -1
- package/lib/esm/widgets/index.js.map +1 -1
- package/lib/esm/widgets/json-view/JSONCode.js +1 -1
- package/lib/esm/widgets/json-view/JSONCode.js.map +1 -1
- package/lib/esm/widgets/json-view/JSONDisplay.js +6 -2
- package/lib/esm/widgets/json-view/JSONDisplay.js.map +1 -1
- package/lib/esm/widgets/json-view/JSONSwitcher.js +6 -0
- package/lib/esm/widgets/json-view/JSONSwitcher.js.map +1 -0
- package/lib/esm/widgets/json-view/JSONView.js +1 -1
- package/lib/esm/widgets/json-view/JSONView.js.map +1 -1
- package/lib/esm/widgets/json-view/index.js +1 -0
- package/lib/esm/widgets/json-view/index.js.map +1 -1
- package/lib/esm/widgets/markdown/ArtifactContentRenderer.js +6 -5
- package/lib/esm/widgets/markdown/ArtifactContentRenderer.js.map +1 -1
- package/lib/esm/widgets/markdown/CodeBlockContext.js +11 -0
- package/lib/esm/widgets/markdown/CodeBlockContext.js.map +1 -0
- package/lib/esm/widgets/markdown/MarkdownRenderer.js +11 -10
- package/lib/esm/widgets/markdown/MarkdownRenderer.js.map +1 -1
- package/lib/esm/widgets/markdown/codeBlockHandlers.js +11 -12
- package/lib/esm/widgets/markdown/codeBlockHandlers.js.map +1 -1
- package/lib/esm/widgets/markdown/index.js +10 -9
- package/lib/esm/widgets/markdown/index.js.map +1 -1
- package/lib/esm/widgets/markdown/remarkDirectiveHandler.js +0 -1
- package/lib/esm/widgets/markdown/remarkDirectiveHandler.js.map +1 -1
- package/lib/esm/widgets/schema-editor/ManagedSchema.js +6 -5
- package/lib/esm/widgets/schema-editor/ManagedSchema.js.map +1 -1
- package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js +7 -3
- package/lib/esm/widgets/schema-editor/editor/PropertyEditor.js.map +1 -1
- package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js +3 -1
- package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js.map +1 -1
- package/lib/esm/widgets/upload/DropZone.js +9 -11
- package/lib/esm/widgets/upload/DropZone.js.map +1 -1
- package/lib/esm/widgets/upload/UploadResultCategory.js +3 -1
- package/lib/esm/widgets/upload/UploadResultCategory.js.map +1 -1
- package/lib/esm/widgets/upload/UploadSummary.js +3 -1
- package/lib/esm/widgets/upload/UploadSummary.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/core/components/SelectList.d.ts.map +1 -1
- package/lib/types/core/components/SidePanel.d.ts +4 -2
- package/lib/types/core/components/SidePanel.d.ts.map +1 -1
- package/lib/types/core/components/index.d.ts +0 -5
- package/lib/types/core/components/index.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/badge.d.ts +2 -2
- package/lib/types/core/components/shadcn/breadcrumb.d.ts +1 -1
- package/lib/types/core/components/shadcn/breadcrumb.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/button.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/collaspible.d.ts +6 -0
- package/lib/types/core/components/shadcn/collaspible.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/dropdown.d.ts +51 -0
- package/lib/types/core/components/shadcn/dropdown.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/filters/comboBox/DateCombobox.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/filters/comboBox/SelectCombobox.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/filters/filter/dateFilter.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/filters/filterBar.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/index.d.ts +4 -0
- package/lib/types/core/components/shadcn/index.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/input.d.ts +1 -1
- package/lib/types/core/components/shadcn/modal/ConfirmModal.d.ts +2 -1
- package/lib/types/core/components/shadcn/modal/ConfirmModal.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/modal/DeleteModal.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/popover.d.ts +11 -3
- package/lib/types/core/components/shadcn/popover.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/radioGroup.d.ts +26 -0
- package/lib/types/core/components/shadcn/radioGroup.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/switch.d.ts +12 -0
- package/lib/types/core/components/shadcn/switch.d.ts.map +1 -0
- package/lib/types/core/components/shadcn/tabs.d.ts +4 -2
- package/lib/types/core/components/shadcn/tabs.d.ts.map +1 -1
- package/lib/types/core/components/shadcn/theme/ThemeSwitcher.d.ts +3 -2
- package/lib/types/core/components/shadcn/theme/ThemeSwitcher.d.ts.map +1 -1
- package/lib/types/core/components/toast/NotificationPanel.d.ts.map +1 -1
- package/lib/types/core/hooks/PortalContainerProvider.d.ts +1 -0
- package/lib/types/core/hooks/PortalContainerProvider.d.ts.map +1 -1
- package/lib/types/env/index.d.ts +12 -3
- package/lib/types/env/index.d.ts.map +1 -1
- package/lib/types/features/agent/PayloadBuilder.d.ts +31 -3
- package/lib/types/features/agent/PayloadBuilder.d.ts.map +1 -1
- package/lib/types/features/agent/chat/AgentRightPanel.d.ts +50 -0
- package/lib/types/features/agent/chat/AgentRightPanel.d.ts.map +1 -0
- package/lib/types/features/agent/chat/ArtifactsTab.d.ts +9 -0
- package/lib/types/features/agent/chat/ArtifactsTab.d.ts.map +1 -0
- package/lib/types/features/agent/chat/AskUserWidget.d.ts.map +1 -1
- package/lib/types/features/agent/chat/DocumentPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ImageLightbox.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentConversation.d.ts +22 -9
- package/lib/types/features/agent/chat/ModernAgentConversation.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts +3 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/BatchProgressPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts +13 -4
- package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/PlanPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/StreamingMessage.d.ts +3 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/StreamingMessage.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/ToolCallGroup.d.ts +5 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/ToolCallGroup.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/WorkstreamTabs.d.ts.map +1 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts +16 -1
- package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts.map +1 -1
- package/lib/types/features/agent/chat/SlidingThinkingIndicator.d.ts.map +1 -1
- package/lib/types/features/agent/chat/VegaLiteChart.d.ts.map +1 -1
- package/lib/types/features/agent/chat/hooks/useAgentPlans.d.ts.map +1 -1
- package/lib/types/features/agent/chat/hooks/useAgentStream.d.ts +5 -3
- package/lib/types/features/agent/chat/hooks/useAgentStream.d.ts.map +1 -1
- package/lib/types/features/agent/chat/hooks/useArtifacts.d.ts +18 -0
- package/lib/types/features/agent/chat/hooks/useArtifacts.d.ts.map +1 -0
- package/lib/types/features/agent/chat/hooks/useDocumentPanel.d.ts.map +1 -1
- package/lib/types/features/agent/chat/hooks/useFileProcessing.d.ts +4 -4
- package/lib/types/features/agent/chat/hooks/useFileProcessing.d.ts.map +1 -1
- package/lib/types/features/agent/chat/types/document.d.ts +2 -0
- package/lib/types/features/agent/chat/types/document.d.ts.map +1 -1
- package/lib/types/features/errors/PanelErrorBoundary.d.ts.map +1 -1
- package/lib/types/features/facets/AgentRunnerFacetsNav.d.ts +2 -1
- package/lib/types/features/facets/AgentRunnerFacetsNav.d.ts.map +1 -1
- package/lib/types/features/facets/RunsFacetsNav.d.ts.map +1 -1
- package/lib/types/features/facets/index.d.ts +1 -1
- package/lib/types/features/facets/index.d.ts.map +1 -1
- package/lib/types/features/layout/GenericPageNavHeader.d.ts +2 -2
- package/lib/types/features/layout/GenericPageNavHeader.d.ts.map +1 -1
- package/lib/types/features/layout/NotFoundView.d.ts.map +1 -1
- package/lib/types/features/magic-pdf/AnnotatedImageSlider.d.ts.map +1 -1
- package/lib/types/features/magic-pdf/DownloadPopover.d.ts.map +1 -1
- package/lib/types/features/magic-pdf/MagicPdfView.d.ts.map +1 -1
- package/lib/types/features/pdf-viewer/PdfPageSlider.d.ts.map +1 -1
- package/lib/types/features/pdf-viewer/SimplePdfViewer.d.ts.map +1 -1
- package/lib/types/features/permissions/UserPermissionsProvider.d.ts.map +1 -1
- package/lib/types/features/store/collections/BrowseCollectionView.d.ts.map +1 -1
- package/lib/types/features/store/collections/CollectionsTable.d.ts +4 -0
- package/lib/types/features/store/collections/CollectionsTable.d.ts.map +1 -1
- package/lib/types/features/store/collections/CreateCollection.d.ts.map +1 -1
- package/lib/types/features/store/collections/EditCollectionView.d.ts.map +1 -1
- package/lib/types/features/store/collections/SelectCollection.d.ts.map +1 -1
- package/lib/types/features/store/collections/SharedPropsEditor.d.ts.map +1 -1
- package/lib/types/features/store/collections/SyncMemberHeadsToggle.d.ts.map +1 -1
- package/lib/types/features/store/objects/DocumentPreviewPanel.d.ts.map +1 -1
- package/lib/types/features/store/objects/DocumentSearchResults.d.ts.map +1 -1
- package/lib/types/features/store/objects/DocumentTable.d.ts.map +1 -1
- package/lib/types/features/store/objects/ExportPropertiesModal.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/ContentDispositionButton.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/ContentOverview.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/DocumentIcon.d.ts +2 -1
- package/lib/types/features/store/objects/components/DocumentIcon.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/PropertiesEditorModal.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/SaveVersionConfirmModal.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/SelectDocument.d.ts +3 -1
- package/lib/types/features/store/objects/components/SelectDocument.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/TextEditorPanel.d.ts +10 -0
- package/lib/types/features/store/objects/components/TextEditorPanel.d.ts.map +1 -0
- package/lib/types/features/store/objects/components/VectorSearchWidget.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/useContentPanelHooks.d.ts.map +1 -1
- package/lib/types/features/store/objects/components/useDownloadFile.d.ts.map +1 -1
- package/lib/types/features/store/objects/layout/documentLayout.d.ts +3 -2
- package/lib/types/features/store/objects/layout/documentLayout.d.ts.map +1 -1
- package/lib/types/features/store/objects/layout/renderers.d.ts.map +1 -1
- package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts.map +1 -1
- package/lib/types/features/store/objects/search/DocumentSearchProvider.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts +3 -20
- package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/ObjectsActionContextClass.d.ts +16 -0
- package/lib/types/features/store/objects/selection/ObjectsActionContextClass.d.ts.map +1 -0
- package/lib/types/features/store/objects/selection/ObjectsActionHooks.d.ts +7 -0
- package/lib/types/features/store/objects/selection/ObjectsActionHooks.d.ts.map +1 -0
- package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts +4 -1
- package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/SelectionActions.d.ts +6 -1
- package/lib/types/features/store/objects/selection/SelectionActions.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/AddToCollectionAction.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/ChangeTypeAction.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts +1 -1
- package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/DeleteObjectsAction.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/ExportPropertiesAction.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/RemoveFromCollectionAction.d.ts.map +1 -1
- package/lib/types/features/store/objects/selection/actions/StartWorkflowComponent.d.ts.map +1 -1
- package/lib/types/features/store/objects/upload/DocumentUploadModal.d.ts.map +1 -1
- package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts.map +1 -1
- package/lib/types/features/store/objects/upload/useUploadHandler.d.ts.map +1 -1
- package/lib/types/features/store/types/ContentObjectTypesSearch.d.ts.map +1 -1
- package/lib/types/features/store/types/ContentObjectTypesTable.d.ts.map +1 -1
- package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts +2 -1
- package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts.map +1 -1
- package/lib/types/features/store/types/ObjectSchemaEditor.d.ts.map +1 -1
- package/lib/types/features/store/types/SelectContentType.d.ts.map +1 -1
- package/lib/types/features/store/types/SelectContentTypeModal.d.ts.map +1 -1
- package/lib/types/features/store/types/TableLayoutEditor.d.ts.map +1 -1
- package/lib/types/features/user/UserInfo.d.ts +2 -2
- package/lib/types/features/user/UserInfo.d.ts.map +1 -1
- package/lib/types/i18n/index.d.ts +14 -0
- package/lib/types/i18n/index.d.ts.map +1 -0
- package/lib/types/i18n/instance.d.ts +5 -0
- package/lib/types/i18n/instance.d.ts.map +1 -0
- package/lib/types/layout/FullHeightLayout.d.ts +3 -0
- package/lib/types/layout/FullHeightLayout.d.ts.map +1 -1
- package/lib/types/layout/Navbar.d.ts.map +1 -1
- package/lib/types/layout/RegionTag.d.ts +4 -0
- package/lib/types/layout/RegionTag.d.ts.map +1 -0
- package/lib/types/layout/Sidebar.d.ts +2 -1
- package/lib/types/layout/Sidebar.d.ts.map +1 -1
- package/lib/types/layout/index.d.ts +1 -0
- package/lib/types/layout/index.d.ts.map +1 -1
- package/lib/types/router/Nav.d.ts +5 -1
- package/lib/types/router/Nav.d.ts.map +1 -1
- package/lib/types/router/NestedNavigationContext.d.ts.map +1 -1
- package/lib/types/router/NestedRouterProvider.d.ts.map +1 -1
- package/lib/types/router/Router.d.ts +2 -0
- package/lib/types/router/Router.d.ts.map +1 -1
- package/lib/types/session/UserSession.d.ts +1 -0
- package/lib/types/session/UserSession.d.ts.map +1 -1
- package/lib/types/session/UserSessionProvider.d.ts +0 -1
- package/lib/types/session/UserSessionProvider.d.ts.map +1 -1
- package/lib/types/session/auth/domainRouting.d.ts +3 -0
- package/lib/types/session/auth/domainRouting.d.ts.map +1 -0
- package/lib/types/session/auth/useCurrentTenant.d.ts.map +1 -1
- package/lib/types/shell/SplashScreen.d.ts.map +1 -1
- package/lib/types/shell/apps/StandaloneApp.d.ts.map +1 -1
- package/lib/types/shell/login/EnterpriseSigninButton.d.ts.map +1 -1
- package/lib/types/shell/login/GitHubSignInButton.d.ts.map +1 -1
- package/lib/types/shell/login/GoogleSignInButton.d.ts.map +1 -1
- package/lib/types/shell/login/InviteAcceptModal.d.ts.map +1 -1
- package/lib/types/shell/login/MicrosoftSigninButton.d.ts +1 -1
- package/lib/types/shell/login/MicrosoftSigninButton.d.ts.map +1 -1
- package/lib/types/shell/login/SigninScreen.d.ts.map +1 -1
- package/lib/types/shell/login/SignupForm.d.ts.map +1 -1
- package/lib/types/shell/login/TerminalLogin.d.ts.map +1 -1
- package/lib/types/shell/login/UserInfo.d.ts.map +1 -1
- package/lib/types/shell/login/UserSessionMenu.d.ts.map +1 -1
- package/lib/types/widgets/index.d.ts +0 -1
- package/lib/types/widgets/index.d.ts.map +1 -1
- package/lib/types/widgets/json-view/JSONDisplay.d.ts.map +1 -1
- package/lib/types/widgets/json-view/JSONSwitcher.d.ts +6 -0
- package/lib/types/widgets/json-view/JSONSwitcher.d.ts.map +1 -0
- package/lib/types/widgets/json-view/index.d.ts +1 -0
- package/lib/types/widgets/json-view/index.d.ts.map +1 -1
- package/lib/types/widgets/markdown/ArtifactContentRenderer.d.ts.map +1 -1
- package/lib/types/widgets/markdown/CodeBlockContext.d.ts +21 -0
- package/lib/types/widgets/markdown/CodeBlockContext.d.ts.map +1 -0
- package/lib/types/widgets/markdown/MarkdownRenderer.d.ts.map +1 -1
- package/lib/types/widgets/markdown/codeBlockHandlers.d.ts +0 -12
- package/lib/types/widgets/markdown/codeBlockHandlers.d.ts.map +1 -1
- package/lib/types/widgets/markdown/index.d.ts +10 -9
- package/lib/types/widgets/markdown/index.d.ts.map +1 -1
- package/lib/types/widgets/schema-editor/ManagedSchema.d.ts +1 -1
- package/lib/types/widgets/schema-editor/ManagedSchema.d.ts.map +1 -1
- package/lib/types/widgets/schema-editor/editor/PropertyEditor.d.ts.map +1 -1
- package/lib/types/widgets/schema-editor/editor/SchemaEditor.d.ts.map +1 -1
- package/lib/types/widgets/upload/DropZone.d.ts.map +1 -1
- package/lib/types/widgets/upload/UploadResultCategory.d.ts.map +1 -1
- package/lib/types/widgets/upload/UploadSummary.d.ts.map +1 -1
- package/lib/vertesia-ui-core.js +1 -1
- package/lib/vertesia-ui-core.js.map +1 -1
- package/lib/vertesia-ui-env.js +1 -1
- package/lib/vertesia-ui-env.js.map +1 -1
- package/lib/vertesia-ui-features.js +1 -1
- package/lib/vertesia-ui-features.js.map +1 -1
- package/lib/vertesia-ui-i18n.js +2 -0
- package/lib/vertesia-ui-i18n.js.map +1 -0
- package/lib/vertesia-ui-layout.js +1 -1
- package/lib/vertesia-ui-layout.js.map +1 -1
- package/lib/vertesia-ui-router.js +1 -1
- package/lib/vertesia-ui-router.js.map +1 -1
- package/lib/vertesia-ui-session.js +1 -1
- package/lib/vertesia-ui-session.js.map +1 -1
- package/lib/vertesia-ui-shell.js +1 -1
- package/lib/vertesia-ui-shell.js.map +1 -1
- package/lib/vertesia-ui-widgets.js +1 -1
- package/lib/vertesia-ui-widgets.js.map +1 -1
- package/package.json +36 -22
- package/src/core/components/SelectList.tsx +3 -1
- package/src/core/components/SidePanel.tsx +5 -4
- package/src/core/components/index.ts +0 -5
- package/src/core/components/shadcn/breadcrumb.tsx +16 -9
- package/src/core/components/shadcn/button.tsx +5 -3
- package/src/core/components/shadcn/collaspible.tsx +33 -0
- package/src/core/components/shadcn/dropdown.tsx +325 -0
- package/src/core/components/shadcn/filters/comboBox/DateCombobox.tsx +3 -1
- package/src/core/components/shadcn/filters/comboBox/SelectCombobox.tsx +3 -1
- package/src/core/components/shadcn/filters/comboBox/StringListCombobox.tsx +1 -1
- package/src/core/components/shadcn/filters/filter/StringListFilter.tsx +1 -1
- package/src/core/components/shadcn/filters/filter/dateFilter.tsx +5 -3
- package/src/core/components/shadcn/filters/filterBar.tsx +8 -5
- package/src/core/components/shadcn/index.ts +5 -1
- package/src/core/components/shadcn/modal/ConfirmModal.tsx +7 -3
- package/src/core/components/shadcn/modal/DeleteModal.tsx +5 -3
- package/src/core/components/shadcn/popover.tsx +12 -7
- package/src/core/components/shadcn/radioGroup.tsx +100 -0
- package/src/core/components/shadcn/switch.tsx +60 -0
- package/src/core/components/shadcn/tabs.tsx +29 -27
- package/src/core/components/shadcn/theme/ThemeSwitcher.tsx +13 -9
- package/src/core/components/toast/NotificationPanel.tsx +38 -44
- package/src/core/hooks/PortalContainerProvider.tsx +11 -3
- package/src/env/index.ts +24 -13
- package/src/features/agent/PayloadBuilder.tsx +100 -13
- package/src/features/agent/chat/AgentRightPanel.tsx +424 -0
- package/src/features/agent/chat/ArtifactsTab.tsx +197 -0
- package/src/features/agent/chat/AskUserWidget.tsx +14 -8
- package/src/features/agent/chat/DocumentPanel.tsx +24 -9
- package/src/features/agent/chat/ImageLightbox.tsx +6 -3
- package/src/features/agent/chat/ModernAgentConversation.tsx +460 -279
- package/src/features/agent/chat/ModernAgentOutput/AllMessagesMixed.tsx +151 -55
- package/src/features/agent/chat/ModernAgentOutput/BatchProgressPanel.tsx +6 -4
- package/src/features/agent/chat/ModernAgentOutput/Header.tsx +183 -105
- package/src/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.tsx +21 -31
- package/src/features/agent/chat/ModernAgentOutput/MessageInput.tsx +119 -114
- package/src/features/agent/chat/ModernAgentOutput/MessageItem.tsx +26 -9
- package/src/features/agent/chat/ModernAgentOutput/PlanPanel.tsx +9 -7
- package/src/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.tsx +15 -13
- package/src/features/agent/chat/ModernAgentOutput/StreamingMessage.tsx +8 -3
- package/src/features/agent/chat/ModernAgentOutput/ToolCallGroup.tsx +149 -49
- package/src/features/agent/chat/ModernAgentOutput/WorkstreamTabs.tsx +9 -5
- package/src/features/agent/chat/ModernAgentOutput/utils.test.ts +229 -0
- package/src/features/agent/chat/ModernAgentOutput/utils.ts +202 -97
- package/src/features/agent/chat/SlidingThinkingIndicator.tsx +5 -3
- package/src/features/agent/chat/VegaLiteChart.tsx +20 -8
- package/src/features/agent/chat/hooks/useAgentPlans.ts +3 -9
- package/src/features/agent/chat/hooks/useAgentStream.ts +86 -19
- package/src/features/agent/chat/hooks/useArtifacts.ts +151 -0
- package/src/features/agent/chat/hooks/useDocumentPanel.ts +65 -5
- package/src/features/agent/chat/hooks/useFileProcessing.ts +14 -13
- package/src/features/agent/chat/types/document.ts +2 -0
- package/src/features/errors/PanelErrorBoundary.tsx +5 -3
- package/src/features/facets/AgentRunnerFacetsNav.tsx +54 -35
- package/src/features/facets/RunsFacetsNav.tsx +15 -7
- package/src/features/facets/index.ts +1 -1
- package/src/features/layout/GenericPageNavHeader.tsx +64 -41
- package/src/features/layout/NotFoundView.tsx +4 -1
- package/src/features/magic-pdf/AnnotatedImageSlider.tsx +12 -8
- package/src/features/magic-pdf/DownloadPopover.tsx +11 -10
- package/src/features/magic-pdf/MagicPdfView.tsx +10 -7
- package/src/features/pdf-viewer/PdfPageSlider.tsx +10 -6
- package/src/features/pdf-viewer/SimplePdfViewer.tsx +5 -3
- package/src/features/permissions/UserPermissionsProvider.tsx +3 -1
- package/src/features/store/collections/BrowseCollectionView.tsx +11 -1
- package/src/features/store/collections/CollectionsTable.tsx +20 -12
- package/src/features/store/collections/CreateCollection.tsx +14 -11
- package/src/features/store/collections/EditCollectionView.tsx +31 -28
- package/src/features/store/collections/SelectCollection.tsx +50 -14
- package/src/features/store/collections/SharedPropsEditor.tsx +7 -5
- package/src/features/store/collections/SyncMemberHeadsToggle.tsx +6 -4
- package/src/features/store/objects/DocumentPreviewPanel.tsx +30 -28
- package/src/features/store/objects/DocumentSearchResults.tsx +31 -21
- package/src/features/store/objects/DocumentTable.tsx +11 -5
- package/src/features/store/objects/ExportPropertiesModal.tsx +8 -5
- package/src/features/store/objects/components/ContentDispositionButton.tsx +3 -1
- package/src/features/store/objects/components/ContentOverview.tsx +96 -50
- package/src/features/store/objects/components/DocumentIcon.tsx +11 -3
- package/src/features/store/objects/components/PropertiesEditorModal.tsx +14 -12
- package/src/features/store/objects/components/SaveVersionConfirmModal.tsx +24 -37
- package/src/features/store/objects/components/SelectDocument.tsx +15 -6
- package/src/features/store/objects/components/TextEditorPanel.tsx +143 -0
- package/src/features/store/objects/components/VectorSearchWidget.tsx +11 -8
- package/src/features/store/objects/components/useContentPanelHooks.ts +4 -2
- package/src/features/store/objects/components/useDownloadFile.ts +12 -10
- package/src/features/store/objects/layout/documentLayout.tsx +16 -6
- package/src/features/store/objects/layout/renderers.tsx +27 -1
- package/src/features/store/objects/search/DocumentSearchContext.ts +3 -2
- package/src/features/store/objects/search/DocumentSearchProvider.tsx +3 -0
- package/src/features/store/objects/selection/ObjectsActionContext.tsx +26 -128
- package/src/features/store/objects/selection/ObjectsActionContextClass.ts +59 -0
- package/src/features/store/objects/selection/ObjectsActionHooks.ts +33 -0
- package/src/features/store/objects/selection/ObjectsActionSpec.ts +4 -1
- package/src/features/store/objects/selection/SelectionActions.tsx +14 -6
- package/src/features/store/objects/selection/actions/AddToCollectionAction.tsx +19 -14
- package/src/features/store/objects/selection/actions/ChangeTypeAction.tsx +9 -5
- package/src/features/store/objects/selection/actions/ConfirmAction.tsx +4 -3
- package/src/features/store/objects/selection/actions/DeleteObjectsAction.tsx +24 -23
- package/src/features/store/objects/selection/actions/ExportPropertiesAction.tsx +10 -5
- package/src/features/store/objects/selection/actions/RemoveFromCollectionAction.tsx +13 -9
- package/src/features/store/objects/selection/actions/StartWorkflowComponent.tsx +14 -8
- package/src/features/store/objects/upload/DocumentUploadModal.tsx +56 -55
- package/src/features/store/objects/upload/useSmartFileUploadProcessing.ts +4 -2
- package/src/features/store/objects/upload/useUploadHandler.ts +9 -7
- package/src/features/store/types/ContentObjectTypesSearch.tsx +10 -8
- package/src/features/store/types/ContentObjectTypesTable.tsx +6 -4
- package/src/features/store/types/CreateOrUpdateTypeModal.tsx +11 -12
- package/src/features/store/types/ObjectSchemaEditor.tsx +11 -9
- package/src/features/store/types/SelectContentType.tsx +15 -13
- package/src/features/store/types/SelectContentTypeModal.tsx +16 -13
- package/src/features/store/types/TableLayoutEditor.tsx +16 -12
- package/src/features/user/UserInfo.tsx +47 -56
- package/src/i18n/index.tsx +45 -0
- package/src/i18n/instance.ts +49 -0
- package/src/i18n/locales/ar.json +696 -0
- package/src/i18n/locales/de.json +664 -0
- package/src/i18n/locales/en.json +665 -0
- package/src/i18n/locales/es.json +670 -0
- package/src/i18n/locales/fr.json +672 -0
- package/src/i18n/locales/it.json +670 -0
- package/src/i18n/locales/ja.json +664 -0
- package/src/i18n/locales/ko.json +664 -0
- package/src/i18n/locales/pt.json +670 -0
- package/src/i18n/locales/ru.json +680 -0
- package/src/i18n/locales/tr.json +664 -0
- package/src/i18n/locales/zh-TW.json +664 -0
- package/src/i18n/locales/zh.json +664 -0
- package/src/layout/FullHeightLayout.tsx +8 -0
- package/src/layout/Navbar.tsx +4 -2
- package/src/layout/RegionTag.tsx +25 -0
- package/src/layout/Sidebar.tsx +4 -3
- package/src/layout/index.ts +2 -1
- package/src/router/HistoryNavigator.ts +10 -10
- package/src/router/Nav.tsx +9 -3
- package/src/router/NestedNavigationContext.tsx +4 -0
- package/src/router/NestedRouterProvider.tsx +3 -1
- package/src/router/Router.tsx +23 -7
- package/src/session/UserSession.ts +26 -5
- package/src/session/UserSessionProvider.tsx +6 -14
- package/src/session/auth/composable.ts +1 -1
- package/src/session/auth/domainRouting.test.ts +110 -0
- package/src/session/auth/domainRouting.ts +22 -0
- package/src/session/auth/firebase.ts +1 -1
- package/src/session/auth/useCurrentTenant.ts +3 -1
- package/src/shell/SplashScreen.tsx +22 -26
- package/src/shell/apps/StandaloneApp.tsx +9 -6
- package/src/shell/login/EnterpriseSigninButton.tsx +6 -4
- package/src/shell/login/GitHubSignInButton.tsx +3 -7
- package/src/shell/login/GoogleSignInButton.tsx +3 -1
- package/src/shell/login/InviteAcceptModal.tsx +5 -2
- package/src/shell/login/MicrosoftSigninButton.tsx +4 -6
- package/src/shell/login/SigninScreen.tsx +18 -13
- package/src/shell/login/SignupForm.tsx +46 -46
- package/src/shell/login/TerminalLogin.tsx +35 -31
- package/src/shell/login/UserInfo.tsx +15 -13
- package/src/shell/login/UserSessionMenu.tsx +28 -31
- package/src/widgets/index.ts +0 -1
- package/src/widgets/json-view/JSONCode.tsx +1 -1
- package/src/widgets/json-view/JSONDisplay.tsx +8 -3
- package/src/widgets/json-view/JSONSwitcher.tsx +24 -0
- package/src/widgets/json-view/JSONView.tsx +1 -1
- package/src/widgets/json-view/index.ts +1 -0
- package/src/widgets/markdown/ArtifactContentRenderer.tsx +15 -7
- package/src/widgets/markdown/CodeBlockContext.tsx +34 -0
- package/src/widgets/markdown/MarkdownRenderer.tsx +14 -13
- package/src/widgets/markdown/codeBlockHandlers.tsx +17 -36
- package/src/widgets/markdown/index.ts +27 -34
- package/src/widgets/markdown/remarkDirectiveHandler.ts +1 -1
- package/src/widgets/schema-editor/ManagedSchema.ts +6 -5
- package/src/widgets/schema-editor/editor/PropertyEditor.tsx +7 -3
- package/src/widgets/schema-editor/editor/SchemaEditor.tsx +3 -1
- package/src/widgets/upload/DropZone.tsx +10 -13
- package/src/widgets/upload/UploadResultCategory.tsx +3 -1
- package/src/widgets/upload/UploadSummary.tsx +13 -11
- package/tsconfig.dist.json +1 -1
- package/lib/esm/core/components/Dropdown.js +0 -16
- package/lib/esm/core/components/Dropdown.js.map +0 -1
- package/lib/esm/core/components/DropdownList.js +0 -9
- package/lib/esm/core/components/DropdownList.js.map +0 -1
- package/lib/esm/core/components/RadioGroup.js +0 -34
- package/lib/esm/core/components/RadioGroup.js.map +0 -1
- package/lib/esm/core/components/SelectStack.js +0 -8
- package/lib/esm/core/components/SelectStack.js.map +0 -1
- package/lib/esm/core/components/Switch.js +0 -12
- package/lib/esm/core/components/Switch.js.map +0 -1
- package/lib/esm/widgets/popover/Popover.js +0 -73
- package/lib/esm/widgets/popover/Popover.js.map +0 -1
- package/lib/esm/widgets/popover/context.js +0 -7
- package/lib/esm/widgets/popover/context.js.map +0 -1
- package/lib/esm/widgets/popover/index.js +0 -3
- package/lib/esm/widgets/popover/index.js.map +0 -1
- package/lib/esm/widgets/popover/slots.js +0 -22
- package/lib/esm/widgets/popover/slots.js.map +0 -1
- package/lib/types/core/components/Dropdown.d.ts +0 -15
- package/lib/types/core/components/Dropdown.d.ts.map +0 -1
- package/lib/types/core/components/DropdownList.d.ts +0 -13
- package/lib/types/core/components/DropdownList.d.ts.map +0 -1
- package/lib/types/core/components/RadioGroup.d.ts +0 -26
- package/lib/types/core/components/RadioGroup.d.ts.map +0 -1
- package/lib/types/core/components/SelectStack.d.ts +0 -13
- package/lib/types/core/components/SelectStack.d.ts.map +0 -1
- package/lib/types/core/components/Switch.d.ts +0 -11
- package/lib/types/core/components/Switch.d.ts.map +0 -1
- package/lib/types/widgets/popover/Popover.d.ts +0 -38
- package/lib/types/widgets/popover/Popover.d.ts.map +0 -1
- package/lib/types/widgets/popover/context.d.ts +0 -8
- package/lib/types/widgets/popover/context.d.ts.map +0 -1
- package/lib/types/widgets/popover/index.d.ts +0 -3
- package/lib/types/widgets/popover/index.d.ts.map +0 -1
- package/lib/types/widgets/popover/slots.d.ts +0 -5
- package/lib/types/widgets/popover/slots.d.ts.map +0 -1
- package/src/core/components/Dropdown.tsx +0 -63
- package/src/core/components/DropdownList.tsx +0 -72
- package/src/core/components/RadioGroup.tsx +0 -100
- package/src/core/components/SelectStack.tsx +0 -63
- package/src/core/components/Switch.tsx +0 -30
- package/src/widgets/popover/Popover.tsx +0 -171
- package/src/widgets/popover/context.ts +0 -15
- package/src/widgets/popover/index.ts +0 -2
- package/src/widgets/popover/slots.ts +0 -24
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { Table, TBody } from "@vertesia/ui/core";
|
|
3
|
+
import { useUITranslation } from '../../../../i18n/index.js';
|
|
4
|
+
import { CheckIcon } from "lucide-react";
|
|
3
5
|
import { DocumentIcon, DocumentIconSkeleton } from "../components/DocumentIcon";
|
|
4
|
-
export function DocumentTableView({ objects, selection, isLoading, columns, onRowClick, selectedObject, toggleAll, onSelectionChange }) {
|
|
6
|
+
export function DocumentTableView({ objects, selection, isLoading, columns, onRowClick, highlightRow, selectedObject, toggleAll, onSelectionChange }) {
|
|
7
|
+
const { t } = useUITranslation();
|
|
5
8
|
return (_jsxs(Table, { className: "w-full border-t", children: [_jsx("thead", { children: _jsxs("tr", { children: [selection && _jsx("th", { children: _jsx("input", { type: "checkbox", onChange: toggleAll }) }), columns.map((col) => (_jsx("th", { children: col.name }, col.name)))] }) }), _jsxs(TBody, { isLoading: isLoading, columns: columns.length + 1, children: [objects?.map((obj) => {
|
|
6
|
-
|
|
9
|
+
const isHighlighted = highlightRow?.(obj);
|
|
10
|
+
return (_jsxs("tr", { className: `cursor-pointer hover:bg-muted group ${selectedObject?.id === obj.id ? 'bg-muted' : ''} ${isHighlighted ? 'bg-blue-50 dark:bg-blue-900/20' : ''}`, onClick: () => {
|
|
7
11
|
onRowClick && onRowClick(obj);
|
|
8
12
|
}, children: [selection &&
|
|
9
|
-
_jsx("td", { onClick: ev => ev.stopPropagation(), children: _jsx("input", { checked: selection.isSelected(obj.id), type: "checkbox", className: `${!selection.isSelected(obj.id) ? 'hidden group-hover:block' : ''}`, onChange: (ev) => onSelectionChange(obj, ev) }) }), columns.map((col, index) => col.render(obj, index))] }, obj.id));
|
|
10
|
-
}), objects.length === 0 && _jsx("tr", { children: _jsx("td", { colSpan: columns.length + (selection ? 1 : 0), className: "text-center", children:
|
|
13
|
+
_jsx("td", { onClick: ev => ev.stopPropagation(), children: _jsx("input", { checked: selection.isSelected(obj.id), type: "checkbox", className: `${!selection.isSelected(obj.id) ? 'hidden group-hover:block' : ''}`, onChange: (ev) => onSelectionChange(obj, ev) }) }), columns.map((col, index) => col.render(obj, index)), _jsx("td", { className: "w-8 text-center", children: isHighlighted && (_jsx(CheckIcon, { className: "size-4 text-blue-600 dark:text-blue-400 inline-block" })) })] }, obj.id));
|
|
14
|
+
}), objects.length === 0 && _jsx("tr", { children: _jsx("td", { colSpan: columns.length + (selection ? 1 : 0), className: "text-center", children: t('store.noObjectsDragAndDrop') }) })] })] }));
|
|
11
15
|
}
|
|
12
|
-
export function DocumentGridView({ objects, selection, isLoading, onSelectionChange, onRowClick, previewObject, selectedObject }) {
|
|
13
|
-
return (_jsxs(_Fragment, { children: [_jsx(DocumentIconSkeleton, { isLoading: isLoading }), _jsx("div", { className: "w-full gap-2 grid xs:grid-cols-1 sm:grid-cols-2 md:grid-cols-4 lg:grid-cols-6 @xs:grid-cols-1 @sm:grid-cols-2 @md:grid-cols-3 @lg:grid-cols-4", children: objects.map((document) => (_jsx(DocumentIcon, { document: document, selection: selection, onSelectionChange: onSelectionChange, onRowClick: onRowClick, previewObject: previewObject, selectedObject: selectedObject }, document.id))) })] }));
|
|
16
|
+
export function DocumentGridView({ objects, selection, isLoading, onSelectionChange, onRowClick, highlightRow, previewObject, selectedObject }) {
|
|
17
|
+
return (_jsxs(_Fragment, { children: [_jsx(DocumentIconSkeleton, { isLoading: isLoading }), _jsx("div", { className: "w-full gap-2 grid xs:grid-cols-1 sm:grid-cols-2 md:grid-cols-4 lg:grid-cols-6 @xs:grid-cols-1 @sm:grid-cols-2 @md:grid-cols-3 @lg:grid-cols-4", children: objects.map((document) => (_jsx(DocumentIcon, { document: document, selection: selection, onSelectionChange: onSelectionChange, onRowClick: onRowClick, highlightRow: highlightRow, previewObject: previewObject, selectedObject: selectedObject }, document.id))) })] }));
|
|
14
18
|
}
|
|
15
19
|
//# sourceMappingURL=documentLayout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentLayout.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/layout/documentLayout.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"documentLayout.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/layout/documentLayout.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAkBhF,MAAM,UAAU,iBAAiB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,iBAAiB,EAAa;IAC3J,MAAM,EAAE,CAAC,EAAE,GAAG,gBAAgB,EAAE,CAAC;IACjC,OAAO,CACH,MAAC,KAAK,IAAC,SAAS,EAAC,iBAAiB,aAC9B,0BACI,yBACK,SAAS,IAAI,uBAAI,gBAAO,IAAI,EAAC,UAAU,EAAC,QAAQ,EAAE,SAAS,GAAI,GAAK,EACpE,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAClB,uBAAoB,GAAG,CAAC,IAAI,IAAnB,GAAG,CAAC,IAAI,CAAiB,CACrC,CAAC,IACD,GACD,EACR,MAAC,KAAK,IAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,GAAG,CAAC,aAEhD,OAAO,EAAE,GAAG,CAAC,CAAC,GAAsB,EAAE,EAAE;wBACpC,MAAM,aAAa,GAAG,YAAY,EAAE,CAAC,GAAG,CAAC,CAAC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GAAK,IAC/I,IACJ,CACX,CAAA;AACL,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,iBAAiB,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAa;IACrJ,OAAO,CACH,8BACI,KAAC,oBAAoB,IAAC,SAAS,EAAE,SAAS,GAAI,EAC9C,cAAK,SAAS,EAAC,+IAA+I,YAEtJ,OAAO,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CACtB,KAAC,YAAY,IAAmB,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,IAA7M,QAAQ,CAAC,EAAE,CAAsM,CACvO,CAAC,GAEJ,IACP,CACN,CAAA;AACL,CAAC"}
|
|
@@ -3,7 +3,7 @@ import dayjs from "dayjs";
|
|
|
3
3
|
import LocalizedFormat from "dayjs/plugin/localizedFormat";
|
|
4
4
|
import RelativeTime from "dayjs/plugin/relativeTime";
|
|
5
5
|
import { shortId } from "../../../utils";
|
|
6
|
-
import { Eye } from "lucide-react";
|
|
6
|
+
import { ExternalLink, Eye } from "lucide-react";
|
|
7
7
|
import { Button } from "@vertesia/ui/core";
|
|
8
8
|
dayjs.extend(RelativeTime);
|
|
9
9
|
dayjs.extend(LocalizedFormat);
|
|
@@ -132,6 +132,15 @@ const renderers = {
|
|
|
132
132
|
return _jsx("td", { children: value?.name || "n/a" }, index);
|
|
133
133
|
};
|
|
134
134
|
},
|
|
135
|
+
revision(_params, _onClick) {
|
|
136
|
+
return (value, index) => {
|
|
137
|
+
const rev = value?.revision;
|
|
138
|
+
if (!rev)
|
|
139
|
+
return _jsx("td", {}, index);
|
|
140
|
+
return (_jsx("td", { children: _jsxs("div", { className: "flex flex-col gap-0.5", children: [rev.root &&
|
|
141
|
+
_jsxs("div", { className: "flex items-center gap-1", children: [_jsxs("span", { className: "text-xs text-muted font-mono", children: ["root: ~", rev.root.slice(-7)] }), _jsx("a", { href: `/store/objects/${rev.root}`, onClick: (e) => e.stopPropagation(), children: _jsx(ExternalLink, { className: "size-3 text-muted" }) })] }), rev.label && _jsxs("span", { className: "text-xs text-muted", children: ["label: ", rev.label] })] }) }, index));
|
|
142
|
+
};
|
|
143
|
+
},
|
|
135
144
|
date(params, _onClick) {
|
|
136
145
|
let method = "format";
|
|
137
146
|
let arg = "LLL";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderers.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/layout/renderers.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"renderers.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/layout/renderers.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AAC3B,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;AAE9B,MAAM,SAAS,GAAiI;IAC5I,MAAM,CAAC,MAAwB,EAAE,QAA+B;QAC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AC,MAAM,CAAC,CAAC,GAAG,CAAC,IAA1C,KAAK,CAA2C,CAAC;QACrE,CAAC,CAAC;IACN,CAAC;CACJ,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -41,7 +41,7 @@ export class DocumentSearch {
|
|
|
41
41
|
}
|
|
42
42
|
clearFilters(autoSearch = true) {
|
|
43
43
|
// Preserve search-related fields when clearing filters
|
|
44
|
-
const { parent, full_text, vector, weights, score_aggregation, dynamic_scaling, limit } = this.query;
|
|
44
|
+
const { parent, full_text, vector, weights, score_aggregation, dynamic_scaling, limit, all_revisions } = this.query;
|
|
45
45
|
this.query = {
|
|
46
46
|
parent,
|
|
47
47
|
...(full_text !== undefined && { full_text }),
|
|
@@ -49,7 +49,8 @@ export class DocumentSearch {
|
|
|
49
49
|
...(weights !== undefined && { weights }),
|
|
50
50
|
...(score_aggregation !== undefined && { score_aggregation }),
|
|
51
51
|
...(dynamic_scaling !== undefined && { dynamic_scaling }),
|
|
52
|
-
...(limit !== undefined && { limit })
|
|
52
|
+
...(limit !== undefined && { limit }),
|
|
53
|
+
...(all_revisions !== undefined && { all_revisions })
|
|
53
54
|
};
|
|
54
55
|
if (autoSearch) {
|
|
55
56
|
this.search();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentSearchContext.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/search/DocumentSearchContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAarE,MAAM,OAAO,cAAc;IASJ;IAA2B;IAP9C,YAAY,CAAU;IACtB,MAAM,GAAG,IAAI,WAAW,CAAwB,EAAE,CAAC,CAAC;IACpD,MAAM,GAAG,IAAI,WAAW,CAAuB,EAAE,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC;IAElF,UAAU,GAAgB,EAAE,CAAC;IAC7B,KAAK,GAAuB,EAAE,CAAC;IAE/B,YAAmB,MAAkB,EAAS,QAAQ,GAAG;QAAtC,WAAM,GAAN,MAAM,CAAY;QAAS,UAAK,GAAL,KAAK,CAAM;IAAI,CAAC;IAE9D,UAAU,CAAC,MAAmB;QAC1B,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC;IACrC,CAAC;IAED,IAAI,KAAK;QACL,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC;IACnC,CAAC;IAED,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC;IACvC,CAAC;IAED,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC;IAC9C,CAAC;IAED,cAAc,CAAC,IAAY;QACvB,OAAQ,IAAI,CAAC,KAAa,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;IAED,cAAc,CAAC,IAAY,EAAE,KAAU;QAClC,IAAI,CAAC,KAAa,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;QAClC,aAAa;QACb,IAAI,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;IAED,cAAc,CAAC,IAAW;QACtB,KAAK,IAAI,CAAC;IACd,CAAC;IAED,YAAY,CAAC,aAAsB,IAAI;QACnC,uDAAuD;QACvD,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"DocumentSearchContext.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/search/DocumentSearchContext.ts"],"names":[],"mappings":"AAAA,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E,QAAQ,CAAC,CAAC;IACxC,CAAC;CACJ;AAED,MAAM,qBAAqB,GAAG,aAAa,CAA6B,SAAS,CAAC,CAAC;AAEnF,MAAM,UAAU,iBAAiB;IAC7B,OAAO,UAAU,CAAC,qBAAqB,CAAE,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,4BAA4B;IACxC,OAAO,mBAAmB,CAAC,iBAAiB,EAAE,CAAC,MAAM,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,4BAA4B;IACxC,MAAM,MAAM,GAAG,iBAAiB,EAAE,CAAC;IACnC,MAAM,MAAM,GAAG,mBAAmB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAClD,OAAO,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,CAAC;AACjC,CAAC;AAED,MAAM,UAAU,sBAAsB;IAClC,MAAM,MAAM,GAAG,iBAAiB,EAAE,CAAC;IACnC,MAAM,MAAM,GAAG,mBAAmB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAClD,OAAO,MAAM,CAAC,KAAK,CAAC;AACxB,CAAC;AAGD,OAAO,EAAE,qBAAqB,IAAI,aAAa,EAAE,CAAC"}
|
|
@@ -32,6 +32,9 @@ export function DocumentSearchProvider({ children, limit, parent, typeId, facets
|
|
|
32
32
|
search.query.type = typeId;
|
|
33
33
|
search.query.parent = parent;
|
|
34
34
|
search.query.name = name;
|
|
35
|
+
if (collectionId) {
|
|
36
|
+
search.query.all_revisions = true;
|
|
37
|
+
}
|
|
35
38
|
return search;
|
|
36
39
|
}, [typeId, limit, collectionId]);
|
|
37
40
|
return (_jsx(SearchContext.Provider, { value: search, children: children }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentSearchProvider.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/search/DocumentSearchProvider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAc,EAAE,OAAO,E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E,CAAA;AACL,CAAC"}
|
|
1
|
+
{"version":3,"file":"DocumentSearchProvider.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/search/DocumentSearchProvider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAWxE,MAAM,UAAU,sBAAsB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAA+B;IAC/H,MAAM,EAAE,KAAK,EAAE,GAAG,cAAc,EAAE,CAAC;IACnC,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE;QACxB,IAAI,UAAuB,CAAC;QAC5B,IAAI,MAAM,EAAE,CAAC;YACT,UAAU,GAAG,MAAM,CAAC;QACxB,CAAC;aAAM,CAAC;YACJ,UAAU,GAAG;gBACT;oBACI,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,QAAQ;iBAClB;gBACD;oBACI,IAAI,EAAE,UAAU;oBAChB,KAAK,EAAE,UAAU;iBACpB;aACJ,CAAA;YACD,IAAI,CAAC,MAAM,EAAE,CAAC;gBACV,UAAU,CAAC,OAAO,CAAC;oBACf,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,MAAM;iBAChB,CAAC,CAAA;YACN,CAAC;QACL,CAAC;QACD,MAAM,MAAM,GAAG,IAAI,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;QACvE,MAAM,CAAC,YAAY,GAAG,YAAY,CAAC;QACnC,MAAM,CAAC,KAAK,CAAC,IAAI,GAAG,MAAM,CAAC;QAC3B,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;QAC7B,MAAM,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;QACzB,IAAI,YAAY,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,aAAa,GAAG,IAAI,CAAC;QACtC,CAAC;QACD,OAAO,MAAM,CAAC;IAClB,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC;IAElC,OAAO,CACH,KAAC,aAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,MAAM,YAAG,QAAQ,GAA0B,CAC7E,CAAA;AACL,CAAC"}
|
|
@@ -1,93 +1,29 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
3
|
import { ErrorBox, useFetch, useToast } from '@vertesia/ui/core';
|
|
4
4
|
import { useUserSession } from '@vertesia/ui/session';
|
|
5
|
-
import {
|
|
5
|
+
import { useUITranslation } from '../../../../i18n/index.js';
|
|
6
|
+
import { useDocumentSelection } from '../DocumentSelectionProvider';
|
|
7
|
+
import { useDocumentSearch } from '../search/DocumentSearchContext';
|
|
6
8
|
import { AddToCollectionAction } from './actions/AddToCollectionAction';
|
|
7
9
|
import { ChangeTypeAction } from './actions/ChangeTypeAction';
|
|
8
10
|
import { DeleteObjectsAction, DeleteObjectsFromCollectionsAction } from './actions/DeleteObjectsAction';
|
|
9
11
|
import { ExportPropertiesAction } from './actions/ExportPropertiesAction';
|
|
10
12
|
import { RemoveFromCollectionAction } from './actions/RemoveFromCollectionAction';
|
|
11
13
|
import { StartWorkflowAction, StartWorkflowComponent } from './actions/StartWorkflowComponent';
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
startWorkflow;
|
|
26
|
-
constructor(params) {
|
|
27
|
-
this.params = params;
|
|
28
|
-
}
|
|
29
|
-
get actions() {
|
|
30
|
-
const isInCollection = !!this.params.selection?.collectionId;
|
|
31
|
-
if (isInCollection) {
|
|
32
|
-
return this.allActions.filter(action => action.id !== 'addToCollection' && action.id !== 'delete');
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
return this.allActions.filter(action => action.id !== 'removeFromCollection' && action.id !== 'deleteFromCollections');
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
async loadWorkflows() {
|
|
39
|
-
this.params.client.workflows.rules.list().then((rules) => {
|
|
40
|
-
this.wfRules = rules.map(rule => ({
|
|
41
|
-
id: rule.id,
|
|
42
|
-
name: rule.name,
|
|
43
|
-
description: rule.description,
|
|
44
|
-
confirm: false,
|
|
45
|
-
isWorkflow: true,
|
|
46
|
-
component: StartWorkflowComponent
|
|
47
|
-
})).sort((a, b) => a.name.localeCompare(b.name));
|
|
48
|
-
});
|
|
49
|
-
return this.wfRules;
|
|
50
|
-
}
|
|
51
|
-
registerCallback(name, cb) {
|
|
52
|
-
this.callbacks[name] = cb;
|
|
53
|
-
return () => {
|
|
54
|
-
delete this.callbacks[name];
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
unregisterCallback(name) {
|
|
58
|
-
delete this.callbacks[name];
|
|
59
|
-
}
|
|
60
|
-
findAction(actionId) {
|
|
61
|
-
let action = this.allActions.find(a => a.id === actionId);
|
|
62
|
-
if (!action) {
|
|
63
|
-
action = this.wfRules.find(a => a.id === actionId);
|
|
64
|
-
}
|
|
65
|
-
return action;
|
|
66
|
-
}
|
|
67
|
-
async run(actionId) {
|
|
68
|
-
const action = this.findAction(actionId);
|
|
69
|
-
if (!action) {
|
|
70
|
-
throw new Error(`Action ${actionId} not found`);
|
|
71
|
-
}
|
|
72
|
-
const params = { ...this.params, action };
|
|
73
|
-
// if (action.isWorkflow) {
|
|
74
|
-
// if (!this.startWorkflow) {
|
|
75
|
-
// throw new Error("No startWorkflow callback set");
|
|
76
|
-
// }
|
|
77
|
-
// return this.startWorkflow(params);
|
|
78
|
-
// } else {
|
|
79
|
-
const cb = this.callbacks[actionId];
|
|
80
|
-
if (cb) {
|
|
81
|
-
return cb(params);
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
throw new Error("No action callback set");
|
|
85
|
-
}
|
|
86
|
-
// }
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
const ObjectsActionContextReact = createContext(undefined);
|
|
90
|
-
export function ObjectsActionContextProvider({ children }) {
|
|
14
|
+
import { ObjectsActionContext } from './ObjectsActionContextClass';
|
|
15
|
+
import { ObjectsActionContextReact, useObjectsActionContext } from './ObjectsActionHooks';
|
|
16
|
+
const DEFAULT_ACTIONS = [
|
|
17
|
+
ExportPropertiesAction,
|
|
18
|
+
ChangeTypeAction,
|
|
19
|
+
StartWorkflowAction,
|
|
20
|
+
AddToCollectionAction,
|
|
21
|
+
DeleteObjectsAction,
|
|
22
|
+
RemoveFromCollectionAction,
|
|
23
|
+
DeleteObjectsFromCollectionsAction,
|
|
24
|
+
];
|
|
25
|
+
export function ObjectsActionContextProvider({ children, table_layout }) {
|
|
26
|
+
const { t } = useUITranslation();
|
|
91
27
|
const selection = useDocumentSelection();
|
|
92
28
|
const toast = useToast();
|
|
93
29
|
const { client } = useUserSession();
|
|
@@ -106,45 +42,22 @@ export function ObjectsActionContextProvider({ children }) {
|
|
|
106
42
|
}, []);
|
|
107
43
|
const context = useMemo(() => {
|
|
108
44
|
const context = new ObjectsActionContext({
|
|
109
|
-
selection, toast, client, search
|
|
45
|
+
selection, toast, client, search, table_layout
|
|
110
46
|
});
|
|
47
|
+
context.allActions = DEFAULT_ACTIONS;
|
|
111
48
|
context.wfRules = rules;
|
|
112
49
|
return context;
|
|
113
|
-
}, [selection, rules]);
|
|
50
|
+
}, [selection, rules, table_layout]);
|
|
114
51
|
if (error) {
|
|
115
|
-
return _jsx(ErrorBox, { title:
|
|
52
|
+
return _jsx(ErrorBox, { title: t('store.failedToFetchWorkflows'), children: error.message });
|
|
116
53
|
}
|
|
117
54
|
return (context && (_jsxs(ObjectsActionContextReact.Provider, { value: context, children: [_jsx(Actions, {}), children] })));
|
|
118
55
|
}
|
|
119
|
-
function Actions(
|
|
56
|
+
function Actions() {
|
|
120
57
|
const context = useObjectsActionContext();
|
|
121
58
|
const selection = context.params.selection;
|
|
122
59
|
const objectId = selection.getObjectId();
|
|
123
60
|
const objectIds = selection.isSingleSelection() && objectId ? [objectId] : selection.getObjectIds();
|
|
124
61
|
return (_jsx("div", { style: { display: 'none' }, children: context.allActions.map(action => (_jsx(action.component, { action: action, objectIds: objectIds, collectionId: selection.collectionId }, action.id))) }));
|
|
125
62
|
}
|
|
126
|
-
export function useObjectsActionContext() {
|
|
127
|
-
const ctx = useContext(ObjectsActionContextReact);
|
|
128
|
-
if (!ctx) {
|
|
129
|
-
throw new Error("You cannot use useActionContext outside an ActionProvider");
|
|
130
|
-
}
|
|
131
|
-
return ctx;
|
|
132
|
-
}
|
|
133
|
-
export function useObjectsActionCallback(name, cb) {
|
|
134
|
-
const ctx = useObjectsActionContext();
|
|
135
|
-
useEffect(() => {
|
|
136
|
-
return ctx.registerCallback(name, cb);
|
|
137
|
-
}, [ctx, name, cb]);
|
|
138
|
-
return ctx;
|
|
139
|
-
}
|
|
140
|
-
export function useStartWorkflowCallback(cb) {
|
|
141
|
-
const ctx = useObjectsActionContext();
|
|
142
|
-
useEffect(() => {
|
|
143
|
-
ctx.startWorkflow = cb;
|
|
144
|
-
return () => {
|
|
145
|
-
ctx.startWorkflow = undefined;
|
|
146
|
-
};
|
|
147
|
-
}, [cb, ctx]);
|
|
148
|
-
return ctx;
|
|
149
|
-
}
|
|
150
63
|
//# sourceMappingURL=ObjectsActionContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectsActionContext.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/selection/ObjectsActionContext.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ObjectsActionContext.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/selection/ObjectsActionContext.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAa,OAAO,EAAE,MAAM,OAAO,CAAC;AAG3C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,kCAAkC,EAAE,MAAM,+BAA+B,CAAC;AACxG,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/F,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAG1F,MAAM,eAAe,GAAwB;IACzC,sBAAsB;IACtB,gBAAgB;IAChB,mBAAmB;IACnB,qBAAqB;IACrB,mBAAmB;IACnB,0BAA0B;IAC1B,kCAAkC;CACrC,CAAC;AAMF,MAAM,UAAU,4BAA4B,CAAC,EAAE,QAAQ,EAAE,YAAY,EAA6B;IAC9F,MAAM,EAAE,CAAC,EAAE,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,SAAS,GAAG,oBAAoB,EAAE,CAAC;IACzC,MAAM,KAAK,GAAG,QAA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C,OAAO,GAAY,CAAA;IACzF,CAAC;IAED,OAAO,CACH,OAAO,IAAI,CACP,MAAC,yBAAyB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO,aAC9C,KAAC,OAAO,KAAG,EACV,QAAQ,IACwB,CACxC,CACJ,CAAA;AACL,CAAC;AAED,SAAS,OAAO;IACZ,MAAM,OAAO,GAAG,uBAAuB,EAAE,CAAC;IAE1C,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC;IAC3C,MAAM,QAAQ,GAAG,SAAS,CAAC,WAAW,EAAE,CAAC;IACzC,MAAM,SAAS,GAAG,SAAS,CAAC,iBAAiB,EAAE,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,YAAY,EAAE,CAAC;IAEpG,OAAO,CACH,cAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,YAEvB,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAC7B,KAAC,MAAM,CAAC,SAAS,IAAiB,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,CAAC,YAAY,IAArF,MAAM,CAAC,EAAE,CAAgF,CACnH,CAAC,GAEJ,CACT,CAAA;AACL,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export class ObjectsActionContext {
|
|
2
|
+
params;
|
|
3
|
+
allActions = [];
|
|
4
|
+
wfRules = [];
|
|
5
|
+
callbacks = {};
|
|
6
|
+
startWorkflow;
|
|
7
|
+
constructor(params) {
|
|
8
|
+
this.params = params;
|
|
9
|
+
}
|
|
10
|
+
get actions() {
|
|
11
|
+
const isInCollection = !!this.params.selection?.collectionId;
|
|
12
|
+
if (isInCollection) {
|
|
13
|
+
return this.allActions.filter(action => action.id !== 'addToCollection' && action.id !== 'delete');
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
return this.allActions.filter(action => action.id !== 'removeFromCollection' && action.id !== 'deleteFromCollections');
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
registerCallback(name, cb) {
|
|
20
|
+
this.callbacks[name] = cb;
|
|
21
|
+
return () => {
|
|
22
|
+
delete this.callbacks[name];
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
unregisterCallback(name) {
|
|
26
|
+
delete this.callbacks[name];
|
|
27
|
+
}
|
|
28
|
+
findAction(actionId) {
|
|
29
|
+
let action = this.allActions.find(a => a.id === actionId);
|
|
30
|
+
if (!action) {
|
|
31
|
+
action = this.wfRules.find(a => a.id === actionId);
|
|
32
|
+
}
|
|
33
|
+
return action;
|
|
34
|
+
}
|
|
35
|
+
async run(actionId) {
|
|
36
|
+
const action = this.findAction(actionId);
|
|
37
|
+
if (!action) {
|
|
38
|
+
throw new Error(`Action ${actionId} not found`);
|
|
39
|
+
}
|
|
40
|
+
const params = { ...this.params, action };
|
|
41
|
+
const cb = this.callbacks[actionId];
|
|
42
|
+
if (cb) {
|
|
43
|
+
return cb(params);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
throw new Error("No action callback set");
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=ObjectsActionContextClass.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObjectsActionContextClass.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/selection/ObjectsActionContextClass.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,oBAAoB;IAMV;IALnB,UAAU,GAAwB,EAAE,CAAC;IACrC,OAAO,GAAwB,EAAE,CAAC;IAClC,SAAS,GAA0C,EAAE,CAAC;IACtD,aAAa,CAAyB;IAEtC,YAAmB,MAA2C;QAA3C,WAAM,GAAN,MAAM,CAAqC;IAAI,CAAC;IAEnE,IAAI,OAAO;QACP,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,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,KAAK,CAAC,UAAU,QAAQ,YAAY,CAAC,CAAC;QACpD,CAAC;QACD,MAAM,MAAM,GAAG,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;QAC1C,MAAM,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QACpC,IAAI,EAAE,EAAE,CAAC;YACL,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;QACtB,CAAC;aAAM,CAAC;YACJ,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;QAC9C,CAAC;IACL,CAAC;CACJ"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createContext, useContext, useEffect } from 'react';
|
|
2
|
+
export const ObjectsActionContextReact = createContext(undefined);
|
|
3
|
+
export function useObjectsActionContext() {
|
|
4
|
+
const ctx = useContext(ObjectsActionContextReact);
|
|
5
|
+
if (!ctx) {
|
|
6
|
+
throw new Error("You cannot use useActionContext outside an ActionProvider");
|
|
7
|
+
}
|
|
8
|
+
return ctx;
|
|
9
|
+
}
|
|
10
|
+
export function useObjectsActionCallback(name, cb) {
|
|
11
|
+
const ctx = useObjectsActionContext();
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
return ctx.registerCallback(name, cb);
|
|
14
|
+
}, [ctx, name, cb]);
|
|
15
|
+
return ctx;
|
|
16
|
+
}
|
|
17
|
+
export function useStartWorkflowCallback(cb) {
|
|
18
|
+
const ctx = useObjectsActionContext();
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
ctx.startWorkflow = cb;
|
|
21
|
+
return () => {
|
|
22
|
+
ctx.startWorkflow = undefined;
|
|
23
|
+
};
|
|
24
|
+
}, [cb, ctx]);
|
|
25
|
+
return ctx;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=ObjectsActionHooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObjectsActionHooks.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/selection/ObjectsActionHooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAK7D,MAAM,CAAC,MAAM,yBAAyB,GAAG,aAAa,CAAuB,SAAgB,CAAC,CAAC;AAE/F,MAAM,UAAU,uBAAuB;IACnC,MAAM,GAAG,GAAG,UAAU,CAAC,yBAAyB,CAAC,CAAC;IAClD,IAAI,CAAC,GAAG,EAAE,CAAC;QACP,MAAM,IAAI,KAAK,CAAC,2DAA2D,CAAC,CAAC;IACjF,CAAC;IACD,OAAO,GAAG,CAAC;AACf,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,IAAY,EAAE,EAAyB;IAC5E,MAAM,GAAG,GAAG,uBAAuB,EAAE,CAAC;IACtC,SAAS,CAAC,GAAG,EAAE;QACX,OAAO,GAAG,CAAC,gBAAgB,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAC1C,CAAC,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;IACpB,OAAO,GAAG,CAAC;AACf,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,EAAyB;IAC9D,MAAM,GAAG,GAAG,uBAAuB,EAAE,CAAC;IACtC,SAAS,CAAC,GAAG,EAAE;QACX,GAAG,CAAC,aAAa,GAAG,EAAE,CAAC;QACvB,OAAO,GAAG,EAAE;YACR,GAAG,CAAC,aAAa,GAAG,SAAS,CAAC;QAClC,CAAC,CAAA;IACL,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC;IACd,OAAO,GAAG,CAAC;AACf,CAAC"}
|
|
@@ -3,11 +3,13 @@ import { Button, Popover, PopoverContent, PopoverTrigger, SelectList } from '@ve
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { EllipsisVertical, X } from 'lucide-react';
|
|
5
5
|
import { useState } from "react";
|
|
6
|
+
import { useUITranslation } from '../../../../i18n/index.js';
|
|
6
7
|
import { DocumentUploadModal, useDocumentSelection } from "../../../store";
|
|
7
8
|
import { ExportPropertiesAction } from "./actions/ExportPropertiesAction";
|
|
8
9
|
import { StartWorkflowAction } from "./actions/StartWorkflowComponent";
|
|
9
|
-
import { ObjectsActionContextProvider
|
|
10
|
-
|
|
10
|
+
import { ObjectsActionContextProvider } from "./ObjectsActionContext";
|
|
11
|
+
import { useObjectsActionContext } from "./ObjectsActionHooks";
|
|
12
|
+
export function SelectionActions({ table_layout }) {
|
|
11
13
|
const selection = useDocumentSelection();
|
|
12
14
|
const size = selection.size();
|
|
13
15
|
const plural = size > 1 ? "s" : "";
|
|
@@ -16,20 +18,21 @@ export function SelectionActions() {
|
|
|
16
18
|
const onClearSelection = () => {
|
|
17
19
|
selection?.removeAll();
|
|
18
20
|
};
|
|
19
|
-
return (_jsx(ObjectsActionContextProvider, { children: _jsxs("div", { className: "flex items-center gap-x-2", children: [hasSelection && !hasSingleSelection &&
|
|
21
|
+
return (_jsx(ObjectsActionContextProvider, { table_layout: table_layout, children: _jsxs("div", { className: "flex items-center gap-x-2", children: [hasSelection && !hasSingleSelection &&
|
|
20
22
|
_jsxs("div", { className: "flex items-center gap-x-1 shrink-0", children: [_jsxs("div", { className: 'text-sm nowrap', children: [size, " document", plural, " selected"] }), _jsx(Button, { title: "Clear selection", variant: "ghost", onClick: onClearSelection, children: _jsx(X, { className: "size-4" }) })] }), _jsx(SelectionActionsPopover, { selection: selection, children: _jsx(Button, { variant: "ghost", alt: "More action", size: "sm", children: _jsx(EllipsisVertical, { size: 16 }) }) }), hasSelection && _jsx(ActionsWrapper, { selection: selection })] }) }));
|
|
21
23
|
}
|
|
22
24
|
function ActionsWrapper({}) {
|
|
23
25
|
return _jsx(StartWorkflowButton, {});
|
|
24
26
|
}
|
|
25
27
|
export function UploadObjectsButton({ collectionId, allowFolders = true }) {
|
|
28
|
+
const { t } = useUITranslation();
|
|
26
29
|
const [files, setFiles] = useState([]);
|
|
27
30
|
const [isOpen, setIsOpen] = useState(false);
|
|
28
31
|
const onClose = () => {
|
|
29
32
|
setIsOpen(false);
|
|
30
33
|
setFiles([]);
|
|
31
34
|
};
|
|
32
|
-
return (_jsxs(_Fragment, { children: [_jsx(Button, { onClick: () => setIsOpen(true), children:
|
|
35
|
+
return (_jsxs(_Fragment, { children: [_jsx(Button, { onClick: () => setIsOpen(true), children: t('store.upload') }), _jsx(DocumentUploadModal, { collectionId: collectionId ?? '', isOpen: isOpen, onClose: onClose, files: files, title: "Upload Files", onUploadComplete: (result) => {
|
|
33
36
|
if (result && result.success) {
|
|
34
37
|
setFiles([]);
|
|
35
38
|
}
|
|
@@ -37,10 +40,11 @@ export function UploadObjectsButton({ collectionId, allowFolders = true }) {
|
|
|
37
40
|
}
|
|
38
41
|
function StartWorkflowButton() {
|
|
39
42
|
const ctx = useObjectsActionContext();
|
|
43
|
+
const { t } = useUITranslation();
|
|
40
44
|
const selection = ctx.params.selection;
|
|
41
45
|
const hasSelection = selection.hasSelection();
|
|
42
46
|
return (hasSelection &&
|
|
43
|
-
_jsx(Button, { onClick: () => ctx.run(StartWorkflowAction.id), children:
|
|
47
|
+
_jsx(Button, { onClick: () => ctx.run(StartWorkflowAction.id), children: t('store.actions.startWorkflow') }));
|
|
44
48
|
}
|
|
45
49
|
function optionLayout(option) {
|
|
46
50
|
return {
|
|
@@ -60,7 +64,7 @@ function PopoverBody({ executeAction, selection }) {
|
|
|
60
64
|
const _executeAction = (action) => {
|
|
61
65
|
executeAction(action);
|
|
62
66
|
};
|
|
63
|
-
const _selection = selection?.hasSelection() ? context.actions.filter(action => !action.hideInList) : [ExportPropertiesAction];
|
|
67
|
+
const _selection = selection?.hasSelection() ? context.actions.filter((action) => !action.hideInList) : [ExportPropertiesAction];
|
|
64
68
|
return (_jsx("div", { className: "rounded-md shadow-md py-2", children: _jsx("div", { className: "px-1 text-sm", children: _jsx(SelectList, { options: _selection, optionLayout: optionLayout, onChange: _executeAction, noCheck: true }) }) }));
|
|
65
69
|
}
|
|
66
70
|
//# sourceMappingURL=SelectionActions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectionActions.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/selection/SelectionActions.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SelectionActions.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/selection/SelectionActions.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAChG,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAqB,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC9F,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAM/D,MAAM,UAAU,gBAAgB,CAAC,EAAE,YAAY,EAAyB;IACpE,MAAM,SAAS,GAAG,oBAAoB,EAAE,CAAC;IACzC,MAAM,IAAI,GAAG,SAAS,CAAC,IAAI,EAAE,CAAC;IAC9B,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAEnC,MAAM,YAAY,GAAG,SAAS,EAAE,YAAY,EAAE,CAAC;IAC/C,MAAM,kBAAkB,GAAG,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAE1D,MAAM,gBAAg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,MAAM,OAAO,GAAG,uBAAuB,EAAE,CAAC;IAC1C,MAAM,aAAa,GAAG,CAAC,MAAyB,EAAE,EAAE;QAChD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC3B,CAAC,CAAC;IAEF,OAAO,CACH,MAAC,OAAO,IAAC,KAAK,mBACV,KAAC,cAAc,cACV,QAAQ,GACK,EAClB,KAAC,cAAc,IAAC,SAAS,EAAC,UAAU,EAAC,KAAK,EAAC,KAAK,EAAC,UAAU,EAAE,CAAC,YAC1D,KAAC,WAAW,IAAC,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS,GAAI,GACtD,IACV,CACd,CAAA;AACL,CAAC;AAMD,SAAS,WAAW,CAAC,EAAE,aAAa,EAAE,SAAS,EAAoB;IAC/D,MAAM,OAAO,GAAG,uBAAuB,EAAE,CAAC;IAE1C,MAAM,cAAc,GAAG,CAAC,MAAyB,EAAE,EAAE;QACjD,aAAa,CAAC,MAAM,CAAC,CAAC;IAC1B,CAAC,CAAA;IAED,MAAM,UAAU,GAAG,SAAS,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAyB,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC;IAEpJ,OAAO,CACH,cAAK,SAAS,EAAC,2BAA2B,YACtC,cAAK,SAAS,EAAC,cAAc,YACzB,KAAC,UAAU,IAAC,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,OAAO,SAAG,GAC/F,GACJ,CACT,CAAC;AACN,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button, DialogDescription, Heading,
|
|
2
|
+
import { Button, DialogDescription, Heading, Modal, ModalBody, ModalFooter, ModalTitle, Portal, Tabs, TabsBar, TabsPanel, useToast } from "@vertesia/ui/core";
|
|
3
3
|
import { useUserSession } from "@vertesia/ui/session";
|
|
4
4
|
import { useCallback, useState } from "react";
|
|
5
|
+
import { useUITranslation } from '../../../../../i18n/index.js';
|
|
6
|
+
import { i18nInstance, NAMESPACE } from '../../../../../i18n/instance.js';
|
|
5
7
|
import { CreateCollectionForm, SelectCollection } from "../../../collections";
|
|
6
|
-
import { useObjectsActionCallback } from "../
|
|
8
|
+
import { useObjectsActionCallback } from "../ObjectsActionHooks";
|
|
7
9
|
export function AddToCollectionActionComponent({ action, objectIds }) {
|
|
8
10
|
const [showModal, setShowModal] = useState(false);
|
|
9
11
|
const callback = useCallback(() => {
|
|
@@ -18,17 +20,20 @@ export function AddToCollectionActionComponent({ action, objectIds }) {
|
|
|
18
20
|
useObjectsActionCallback(action.id, callback);
|
|
19
21
|
return showModal && _jsx(Portal, { children: _jsx(SelectCollectionModal, { objectIds: objectIds, isOpen: showModal, onClose: onClose }) });
|
|
20
22
|
}
|
|
23
|
+
const t = i18nInstance.getFixedT(null, NAMESPACE);
|
|
21
24
|
export const AddToCollectionAction = {
|
|
22
25
|
id: "addToCollection",
|
|
23
|
-
name: '
|
|
24
|
-
description: '
|
|
26
|
+
name: t('store.actions.addToCollection'),
|
|
27
|
+
description: t('store.actions.addToCollectionDesc'),
|
|
25
28
|
confirm: false,
|
|
26
29
|
component: AddToCollectionActionComponent,
|
|
27
30
|
};
|
|
28
31
|
function SelectCollectionModal({ isOpen, onClose, objectIds }) {
|
|
29
|
-
|
|
32
|
+
const { t } = useUITranslation();
|
|
33
|
+
return (_jsxs(Modal, { isOpen: isOpen, onClose: onClose, className: "max-w-lg w-full min-w-0 overflow-hidden", children: [_jsx(ModalTitle, { className: "flex flex-col min-w-0 overflow-hidden", children: t('store.actions.addToCollectionTitle') }), _jsx(DialogDescription, { className: "min-w-0 overflow-hidden", children: t('store.actions.addToCollectionBody') }), _jsx("div", { className: "min-w-0 max-w-full overflow-hidden", children: _jsx(AddToCollectionForm, { onClose: onClose, objectIds: objectIds }) })] }));
|
|
30
34
|
}
|
|
31
35
|
function AddToCollectionForm({ onClose, objectIds }) {
|
|
36
|
+
const { t } = useUITranslation();
|
|
32
37
|
const toast = useToast();
|
|
33
38
|
const { client } = useUserSession();
|
|
34
39
|
const [selectedCollectionId, setSelectedCollectionId] = useState();
|
|
@@ -38,17 +43,17 @@ function AddToCollectionForm({ onClose, objectIds }) {
|
|
|
38
43
|
}
|
|
39
44
|
client.store.collections.addMembers(collectionId, objectIds).then(() => {
|
|
40
45
|
toast({
|
|
41
|
-
title: '
|
|
46
|
+
title: t('store.actions.addToCollectionSuccess'),
|
|
42
47
|
status: 'success',
|
|
43
|
-
description:
|
|
48
|
+
description: t('store.actions.addToCollectionSuccessDesc', { count: objectIds.length }),
|
|
44
49
|
duration: 3000
|
|
45
50
|
});
|
|
46
51
|
onClose();
|
|
47
52
|
}).catch(() => {
|
|
48
53
|
toast({
|
|
49
|
-
title: '
|
|
54
|
+
title: t('store.actions.addToCollectionFailure'),
|
|
50
55
|
status: 'error',
|
|
51
|
-
description:
|
|
56
|
+
description: t('store.actions.addToCollectionFailureDesc'),
|
|
52
57
|
duration: 5000
|
|
53
58
|
});
|
|
54
59
|
});
|
|
@@ -67,12 +72,12 @@ function AddToCollectionForm({ onClose, objectIds }) {
|
|
|
67
72
|
const tabs = [
|
|
68
73
|
{
|
|
69
74
|
name: 'select',
|
|
70
|
-
label: '
|
|
71
|
-
content: (_jsxs("div", { className: "p-4 min-w-0 max-w-full overflow-hidden", children: [_jsx(Heading, { level: 5, children:
|
|
75
|
+
label: t('store.actions.selectCollection'),
|
|
76
|
+
content: (_jsxs("div", { className: "p-4 min-w-0 max-w-full overflow-hidden", children: [_jsx(Heading, { level: 5, children: t('store.actions.chooseExistingCollections') }), _jsx(ModalBody, { className: "min-w-0 max-w-full overflow-hidden", children: _jsx("div", { className: "mb-4 min-w-0 max-w-full overflow-hidden", children: _jsx(SelectCollection, { onChange: onCollectionChange, value: selectedCollectionId }) }) }), _jsx(ModalFooter, { children: _jsx(Button, { isDisabled: !selectedCollectionId, onClick: () => selectedCollectionId && onAddToCollection({ collectionId: selectedCollectionId }), children: t('store.actions.addToCollectionButton') }) })] }))
|
|
72
77
|
},
|
|
73
78
|
{
|
|
74
79
|
name: 'create',
|
|
75
|
-
label: '
|
|
80
|
+
label: t('store.actions.createNew'),
|
|
76
81
|
content: _jsx("div", { className: "p-4", children: _jsx(CreateCollectionForm, { onClose: onClose, onAddToCollection: (id) => onAddToCollection({ collectionId: id }), redirect: false }) })
|
|
77
82
|
}
|
|
78
83
|
];
|