@vertesia/ui 1.0.0-dev.20260227.112605Z → 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/selectBox.js +1 -1
- 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 +8 -6
- package/lib/esm/core/components/shadcn/theme/ThemeSwitcher.js.map +1 -1
- package/lib/esm/core/components/shadcn/tooltip.js +1 -1
- package/lib/esm/core/components/shadcn/tooltip.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 +21 -18
- 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 +33 -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 +29 -22
- 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 +8 -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/llms.txt +124 -4
- package/package.json +50 -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/selectBox.tsx +1 -1
- 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 +19 -10
- package/src/core/components/shadcn/tooltip.tsx +1 -1
- package/src/core/components/toast/NotificationPanel.tsx +38 -44
- package/src/core/hooks/PortalContainerProvider.tsx +11 -3
- package/src/css/base.css +31 -0
- package/src/css/color.css +136 -0
- package/src/css/custom-tooltips.css +64 -0
- package/src/css/index.css +27 -0
- package/src/css/theme.css +86 -0
- package/src/css/typography.css +88 -0
- package/src/css/utilities.css +72 -0
- 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 +538 -364
- 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 +45 -40
- 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 +34 -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 +36 -33
- 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,40 +1,13 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
|
-
import type { CodeBlockRendererProps } from './CodeBlockRendering';
|
|
3
|
-
import { CodeBlockPlaceholder, CodeBlockErrorBoundary } from './CodeBlockPlaceholder';
|
|
4
2
|
import type { VegaLiteChartSpec } from '../../features/agent/chat/AgentChart';
|
|
3
|
+
import { AskUserWidget, type AskUserWidgetProps } from '../../features/agent/chat/AskUserWidget';
|
|
5
4
|
import { VegaLiteChart } from '../../features/agent/chat/VegaLiteChart';
|
|
5
|
+
import { ArtifactContentRenderer, type ExpandRenderType, makeSvgResponsive, sanitizeSvg } from './ArtifactContentRenderer';
|
|
6
|
+
import { useCodeBlockContext } from './CodeBlockContext';
|
|
7
|
+
import { CodeBlockErrorBoundary, CodeBlockPlaceholder } from './CodeBlockPlaceholder';
|
|
8
|
+
import type { CodeBlockRendererProps } from './CodeBlockRendering';
|
|
6
9
|
import { MermaidDiagram } from './MermaidDiagram';
|
|
7
|
-
import { AskUserWidget, type AskUserWidgetProps } from '../../features/agent/chat/AskUserWidget';
|
|
8
10
|
import { useArtifactContent } from './useArtifactContent';
|
|
9
|
-
import { ArtifactContentRenderer, type ExpandRenderType, sanitizeSvg, makeSvgResponsive } from './ArtifactContentRenderer';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Context for passing artifact run ID and callbacks to code block handlers
|
|
13
|
-
*/
|
|
14
|
-
export interface CodeBlockHandlerContext {
|
|
15
|
-
artifactRunId?: string;
|
|
16
|
-
onProposalSelect?: (optionId: string) => void;
|
|
17
|
-
onProposalSubmit?: (response: string) => void;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
const CodeBlockContext = React.createContext<CodeBlockHandlerContext>({});
|
|
21
|
-
|
|
22
|
-
export function CodeBlockHandlerProvider({
|
|
23
|
-
children,
|
|
24
|
-
artifactRunId,
|
|
25
|
-
onProposalSelect,
|
|
26
|
-
onProposalSubmit,
|
|
27
|
-
}: CodeBlockHandlerContext & { children: React.ReactNode }) {
|
|
28
|
-
const value = useMemo(
|
|
29
|
-
() => ({ artifactRunId, onProposalSelect, onProposalSubmit }),
|
|
30
|
-
[artifactRunId, onProposalSelect, onProposalSubmit]
|
|
31
|
-
);
|
|
32
|
-
return <CodeBlockContext.Provider value={value}>{children}</CodeBlockContext.Provider>;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export function useCodeBlockContext() {
|
|
36
|
-
return React.useContext(CodeBlockContext);
|
|
37
|
-
}
|
|
38
11
|
|
|
39
12
|
/**
|
|
40
13
|
* Check if JSON parsing failed due to incomplete content (streaming)
|
|
@@ -145,6 +118,10 @@ function detectChartLibrary(
|
|
|
145
118
|
export function VegaLiteCodeBlockHandler({ code }: CodeBlockRendererProps) {
|
|
146
119
|
const { artifactRunId } = useCodeBlockContext();
|
|
147
120
|
|
|
121
|
+
if (!artifactRunId) {
|
|
122
|
+
console.warn('[VegaLiteCodeBlockHandler] artifactRunId is missing from CodeBlockContext');
|
|
123
|
+
}
|
|
124
|
+
|
|
148
125
|
// Check if JSON is incomplete (streaming in progress)
|
|
149
126
|
const incomplete = useMemo(() => isIncompleteJson(code), [code]);
|
|
150
127
|
|
|
@@ -191,6 +168,10 @@ export function VegaLiteCodeBlockHandler({ code }: CodeBlockRendererProps) {
|
|
|
191
168
|
export function ChartCodeBlockHandler({ code }: CodeBlockRendererProps) {
|
|
192
169
|
const { artifactRunId } = useCodeBlockContext();
|
|
193
170
|
|
|
171
|
+
if (!artifactRunId) {
|
|
172
|
+
console.warn('[ChartCodeBlockHandler] artifactRunId is missing from CodeBlockContext');
|
|
173
|
+
}
|
|
174
|
+
|
|
194
175
|
// Check if JSON is incomplete (streaming in progress)
|
|
195
176
|
const incomplete = useMemo(() => isIncompleteJson(code), [code]);
|
|
196
177
|
|
|
@@ -285,10 +266,10 @@ export function ProposalCodeBlockHandler({ code }: CodeBlockRendererProps) {
|
|
|
285
266
|
description: spec.description,
|
|
286
267
|
options: Array.isArray(spec.options)
|
|
287
268
|
? spec.options.map((opt: any) => ({
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
269
|
+
id: opt.id || opt.value || '',
|
|
270
|
+
label: opt.label || '',
|
|
271
|
+
description: opt.description,
|
|
272
|
+
}))
|
|
292
273
|
: undefined,
|
|
293
274
|
allowFreeResponse: spec.allowFreeResponse ?? spec.multiple,
|
|
294
275
|
variant: spec.variant,
|
|
@@ -1,46 +1,39 @@
|
|
|
1
|
+
export {
|
|
2
|
+
ArtifactContentRenderer,
|
|
3
|
+
type ArtifactContentRendererProps,
|
|
4
|
+
type ExpandRenderType
|
|
5
|
+
} from './ArtifactContentRenderer';
|
|
6
|
+
export {
|
|
7
|
+
CodeBlockHandlerProvider,
|
|
8
|
+
useCodeBlockContext,
|
|
9
|
+
type CodeBlockHandlerContext
|
|
10
|
+
} from './CodeBlockContext';
|
|
11
|
+
export {
|
|
12
|
+
ChartCodeBlockHandler, ExpandCodeBlockHandler, MermaidCodeBlockHandler,
|
|
13
|
+
ProposalCodeBlockHandler, createDefaultCodeBlockHandlers,
|
|
14
|
+
isExpandLanguage
|
|
15
|
+
} from './codeBlockHandlers';
|
|
16
|
+
export {
|
|
17
|
+
CodeBlockErrorBoundary, CodeBlockPlaceholder, type CodeBlockPlaceholderProps,
|
|
18
|
+
type CodeBlockType
|
|
19
|
+
} from './CodeBlockPlaceholder';
|
|
1
20
|
export {
|
|
2
21
|
CodeBlockRendererProvider,
|
|
3
22
|
useCodeBlockComponent,
|
|
4
23
|
useCodeBlockRendererRegistry,
|
|
5
|
-
type CodeBlockRendererProps
|
|
24
|
+
type CodeBlockRendererProps
|
|
6
25
|
} from './CodeBlockRendering';
|
|
7
|
-
export { MarkdownRenderer, type MarkdownRendererProps } from './MarkdownRenderer';
|
|
8
|
-
export { MarkdownLink, type MarkdownLinkProps } from './MarkdownLink';
|
|
9
|
-
export { MarkdownImage, type MarkdownImageProps } from './MarkdownImage';
|
|
10
26
|
export { MarkdownFigure, type MarkdownFigureProps } from './MarkdownFigure';
|
|
11
|
-
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
mapSchemeToRoute,
|
|
15
|
-
type UrlScheme,
|
|
16
|
-
type ResolvedUrlState,
|
|
17
|
-
type UseResolvedUrlOptions,
|
|
18
|
-
} from './useResolvedUrl';
|
|
19
|
-
export {
|
|
20
|
-
CodeBlockPlaceholder,
|
|
21
|
-
CodeBlockErrorBoundary,
|
|
22
|
-
type CodeBlockPlaceholderProps,
|
|
23
|
-
type CodeBlockType,
|
|
24
|
-
} from './CodeBlockPlaceholder';
|
|
25
|
-
export {
|
|
26
|
-
ChartCodeBlockHandler,
|
|
27
|
-
MermaidCodeBlockHandler,
|
|
28
|
-
ProposalCodeBlockHandler,
|
|
29
|
-
ExpandCodeBlockHandler,
|
|
30
|
-
CodeBlockHandlerProvider,
|
|
31
|
-
useCodeBlockContext,
|
|
32
|
-
createDefaultCodeBlockHandlers,
|
|
33
|
-
isExpandLanguage,
|
|
34
|
-
type CodeBlockHandlerContext,
|
|
35
|
-
} from './codeBlockHandlers';
|
|
27
|
+
export { MarkdownImage, type MarkdownImageProps } from './MarkdownImage';
|
|
28
|
+
export { MarkdownLink, type MarkdownLinkProps } from './MarkdownLink';
|
|
29
|
+
export { MarkdownRenderer, type MarkdownRendererProps } from './MarkdownRenderer';
|
|
36
30
|
export { MermaidDiagram } from './MermaidDiagram';
|
|
37
31
|
export {
|
|
38
32
|
useArtifactContent,
|
|
39
33
|
type ArtifactContentState,
|
|
40
|
-
type UseArtifactContentOptions
|
|
34
|
+
type UseArtifactContentOptions
|
|
41
35
|
} from './useArtifactContent';
|
|
42
36
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
} from './ArtifactContentRenderer';
|
|
37
|
+
mapSchemeToRoute, parseUrlScheme, useResolvedUrl, type ResolvedUrlState, type UrlScheme, type UseResolvedUrlOptions
|
|
38
|
+
} from './useResolvedUrl';
|
|
39
|
+
|
|
@@ -175,18 +175,19 @@ export class SchemaNode {
|
|
|
175
175
|
|
|
176
176
|
loadChildren() {
|
|
177
177
|
this.children = [];
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
const itemProperties = (this.schema.items as JSONSchema)?.properties;
|
|
179
|
+
if (this.schema.items && itemProperties) {
|
|
180
|
+
this._loadChildren(itemProperties, this.children);
|
|
180
181
|
} else if (this.schema.properties) {
|
|
181
|
-
this._loadChildren(this.schema.properties);
|
|
182
|
+
this._loadChildren(this.schema.properties, this.children);
|
|
182
183
|
}
|
|
183
184
|
}
|
|
184
185
|
|
|
185
|
-
_loadChildren(properties: Record<string, JSONSchema
|
|
186
|
+
_loadChildren(properties: Record<string, JSONSchema>, children: SchemaNode[]) {
|
|
186
187
|
for (const name of Object.keys(properties)) {
|
|
187
188
|
const childSchema = properties[name];
|
|
188
189
|
const child = new SchemaNode(name, childSchema, this.loader, this);
|
|
189
|
-
|
|
190
|
+
children.push(child);
|
|
190
191
|
if (child.isParent) {
|
|
191
192
|
child.loadChildren();
|
|
192
193
|
}
|
|
@@ -3,6 +3,7 @@ import React, { ChangeEvent, useEffect, useRef, useState } from 'react';
|
|
|
3
3
|
import { AlignLeft } from 'lucide-react';
|
|
4
4
|
import { Button, Modal, ModalBody, ModalFooter, ModalTitle, Styles, SelectBox } from '@vertesia/ui/core';
|
|
5
5
|
|
|
6
|
+
import { useUITranslation } from '../../../i18n/index.js';
|
|
6
7
|
import { TypeNames } from '../type-signature.js';
|
|
7
8
|
import { DataEditorProps } from './Editable.js';
|
|
8
9
|
import { EditableSchemaProperty } from './EditableSchemaProperty.js';
|
|
@@ -20,6 +21,7 @@ function makeTypeOptions() {
|
|
|
20
21
|
const TYPE_OPTIONS = makeTypeOptions();
|
|
21
22
|
|
|
22
23
|
export function PropertyEditor({ value, onChange, onCancel, onSave }: DataEditorProps<EditableSchemaProperty>) {
|
|
24
|
+
const { t } = useUITranslation();
|
|
23
25
|
const [isModalOpen, setModalOpen] = useState(false);
|
|
24
26
|
|
|
25
27
|
if (!value) return null;
|
|
@@ -49,7 +51,7 @@ export function PropertyEditor({ value, onChange, onCancel, onSave }: DataEditor
|
|
|
49
51
|
<PropertyTypeEditor value={value.type} onChange={onTypeChange} onCancel={onCancel} onSave={onSave} />
|
|
50
52
|
</div>
|
|
51
53
|
<div>
|
|
52
|
-
<Button variant={"ghost"} size={"xs"} onClick={() => setModalOpen(true)} title=
|
|
54
|
+
<Button variant={"ghost"} size={"xs"} onClick={() => setModalOpen(true)} title={t('widgets.schema.editDescription')}>
|
|
53
55
|
<AlignLeft className="size-4" />
|
|
54
56
|
</Button>
|
|
55
57
|
<EditDescriptionModal value={value.description} isOpen={isModalOpen} onClose={onDescriptionChange} />
|
|
@@ -119,9 +121,10 @@ interface EditDescriptionModalProps {
|
|
|
119
121
|
onClose: (text?: string) => void;
|
|
120
122
|
}
|
|
121
123
|
function EditDescriptionModal({ value, isOpen, onClose }: EditDescriptionModalProps) {
|
|
124
|
+
const { t } = useUITranslation();
|
|
122
125
|
return (
|
|
123
126
|
<Modal isOpen={isOpen} onClose={onClose}>
|
|
124
|
-
<ModalTitle>
|
|
127
|
+
<ModalTitle>{t('widgets.schema.editDescription')}</ModalTitle>
|
|
125
128
|
<EditDescriptionModalForm value={value} onSave={onClose} />
|
|
126
129
|
</Modal>
|
|
127
130
|
)
|
|
@@ -132,6 +135,7 @@ interface EditDescriptionModalFormProps {
|
|
|
132
135
|
onSave: (text: string) => void;
|
|
133
136
|
}
|
|
134
137
|
function EditDescriptionModalForm({ value, onSave }: EditDescriptionModalFormProps) {
|
|
138
|
+
const { t } = useUITranslation();
|
|
135
139
|
const ref = useRef<HTMLTextAreaElement>(null);
|
|
136
140
|
const [currentValue, setCurrentValue] = useState(value || '');
|
|
137
141
|
useEffect(() => {
|
|
@@ -143,7 +147,7 @@ function EditDescriptionModalForm({ value, onSave }: EditDescriptionModalFormPro
|
|
|
143
147
|
<textarea ref={ref} className="dark:bg-gray-800 w-full h-full dark:text-white" value={currentValue} onChange={(e) => setCurrentValue(e.target.value)} />
|
|
144
148
|
</ModalBody>
|
|
145
149
|
<ModalFooter>
|
|
146
|
-
<Button onClick={() => onSave(currentValue)}>
|
|
150
|
+
<Button onClick={() => onSave(currentValue)}>{t('store.saveChanges')}</Button>
|
|
147
151
|
</ModalFooter>
|
|
148
152
|
</>
|
|
149
153
|
)
|
|
@@ -3,6 +3,7 @@ import { useState } from 'react';
|
|
|
3
3
|
import { ChevronDown, ChevronRight, Plus } from 'lucide-react';
|
|
4
4
|
import { Button, useToast } from '@vertesia/ui/core';
|
|
5
5
|
|
|
6
|
+
import { useUITranslation } from '../../../i18n/index.js';
|
|
6
7
|
import { ManagedSchema, SchemaNode } from '../ManagedSchema.js';
|
|
7
8
|
import { TypeNames } from '../type-signature.js';
|
|
8
9
|
import { Editable } from './Editable.js';
|
|
@@ -100,6 +101,7 @@ interface PropertyTitleBarProps {
|
|
|
100
101
|
readonly: boolean;
|
|
101
102
|
}
|
|
102
103
|
function PropertyTitleBar({ property, readonly }: PropertyTitleBarProps) {
|
|
104
|
+
const { t } = useUITranslation();
|
|
103
105
|
const toast = useToast();
|
|
104
106
|
|
|
105
107
|
const onChange = (value: EditableSchemaProperty) => {
|
|
@@ -116,7 +118,7 @@ function PropertyTitleBar({ property, readonly }: PropertyTitleBarProps) {
|
|
|
116
118
|
} catch (err: any) {
|
|
117
119
|
toast({
|
|
118
120
|
status: 'error',
|
|
119
|
-
title: '
|
|
121
|
+
title: t('widgets.schema.invalidPropertyDeclaration'),
|
|
120
122
|
description: err.message,
|
|
121
123
|
duration: 9000
|
|
122
124
|
})
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useState, useRef } from "react";
|
|
2
2
|
import { UploadIcon } from "lucide-react";
|
|
3
3
|
import { Button } from "@vertesia/ui/core";
|
|
4
|
+
import { useUITranslation } from "@vertesia/ui/i18n";
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Props for the DropZone component
|
|
@@ -46,10 +47,12 @@ export interface DropZoneProps {
|
|
|
46
47
|
export function DropZone({
|
|
47
48
|
onDrop,
|
|
48
49
|
message,
|
|
49
|
-
buttonLabel
|
|
50
|
+
buttonLabel,
|
|
50
51
|
allowFolders = true,
|
|
51
52
|
className = ""
|
|
52
53
|
}: DropZoneProps) {
|
|
54
|
+
const { t } = useUITranslation();
|
|
55
|
+
const resolvedButtonLabel = buttonLabel ?? t('upload.uploadFiles');
|
|
53
56
|
const [isDragging, setIsDragging] = useState(false);
|
|
54
57
|
const dropZoneRef = useRef<HTMLDivElement>(null);
|
|
55
58
|
|
|
@@ -147,12 +150,9 @@ export function DropZone({
|
|
|
147
150
|
|
|
148
151
|
let message = "";
|
|
149
152
|
if (folderCount > 0) {
|
|
150
|
-
message =
|
|
151
|
-
folderCount === 1
|
|
152
|
-
? `Preparing to upload 1 folder with ${fileCount} files...`
|
|
153
|
-
: `Preparing to upload ${folderCount} folders with ${fileCount} files...`;
|
|
153
|
+
message = t('upload.preparingFolder', { count: folderCount, folderCount, fileCount });
|
|
154
154
|
} else {
|
|
155
|
-
message =
|
|
155
|
+
message = t('upload.preparingFiles', { count: fileCount });
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
onDrop(files, { count: files.length, message });
|
|
@@ -191,10 +191,7 @@ export function DropZone({
|
|
|
191
191
|
const fileCount = fileArray.length;
|
|
192
192
|
|
|
193
193
|
// Create custom message with folder info
|
|
194
|
-
const formattedMessage =
|
|
195
|
-
folderCount === 1
|
|
196
|
-
? `Preparing to upload 1 folder with ${fileCount} files...`
|
|
197
|
-
: `Preparing to upload ${folderCount} folders with ${fileCount} files...`;
|
|
194
|
+
const formattedMessage = t('upload.preparingFolder', { count: folderCount, folderCount, fileCount });
|
|
198
195
|
|
|
199
196
|
const customMessage = {
|
|
200
197
|
count: fileArray.length,
|
|
@@ -206,7 +203,7 @@ export function DropZone({
|
|
|
206
203
|
// Regular file upload
|
|
207
204
|
const feedback = {
|
|
208
205
|
count: fileArray.length,
|
|
209
|
-
message:
|
|
206
|
+
message: t('upload.preparingFiles', { count: fileArray.length }),
|
|
210
207
|
};
|
|
211
208
|
onDrop(fileArray, feedback);
|
|
212
209
|
}
|
|
@@ -250,8 +247,8 @@ export function DropZone({
|
|
|
250
247
|
<p className="text-muted">{message}</p>
|
|
251
248
|
|
|
252
249
|
<div className="flex gap-2 justify-center mt-2">
|
|
253
|
-
<Button onClick={selectFile}>{
|
|
254
|
-
{allowFolders && (<Button onClick={selectFolder}>
|
|
250
|
+
<Button onClick={selectFile}>{resolvedButtonLabel}</Button>
|
|
251
|
+
{allowFolders && (<Button onClick={selectFolder}>{t('upload.selectFolder')}</Button>)}
|
|
255
252
|
</div>
|
|
256
253
|
|
|
257
254
|
</div>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CheckCircleIcon } from "lucide-react";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
+
import { useUITranslation } from "@vertesia/ui/i18n";
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Props for the UploadResultCategory component
|
|
@@ -32,6 +33,7 @@ export function UploadResultCategory({
|
|
|
32
33
|
icon = <CheckCircleIcon className="h-4 w-4 text-green-500" />,
|
|
33
34
|
items
|
|
34
35
|
}: UploadResultCategoryProps) {
|
|
36
|
+
const { t } = useUITranslation();
|
|
35
37
|
const [isExpanded, setIsExpanded] = useState(false);
|
|
36
38
|
|
|
37
39
|
return (
|
|
@@ -71,7 +73,7 @@ export function UploadResultCategory({
|
|
|
71
73
|
</ul>
|
|
72
74
|
) : (
|
|
73
75
|
<div className="text-sm text-muted py-2">
|
|
74
|
-
|
|
76
|
+
{t('upload.noItems')}
|
|
75
77
|
</div>
|
|
76
78
|
)}
|
|
77
79
|
</div>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CheckCircleIcon, AlertCircleIcon, XCircleIcon } from "lucide-react";
|
|
2
|
+
import { useUITranslation } from "@vertesia/ui/i18n";
|
|
2
3
|
import { UploadResultCategory } from "./UploadResultCategory";
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -40,6 +41,7 @@ export interface UploadSummaryProps {
|
|
|
40
41
|
* />
|
|
41
42
|
*/
|
|
42
43
|
export function UploadSummary({ files, className = "", location, collection }: UploadSummaryProps) {
|
|
44
|
+
const { t } = useUITranslation();
|
|
43
45
|
// Group files by status
|
|
44
46
|
const successFiles = files.filter(f => f.status === 'success');
|
|
45
47
|
const updatedFiles = files.filter(f => f.status === 'updated');
|
|
@@ -61,9 +63,9 @@ export function UploadSummary({ files, className = "", location, collection }: U
|
|
|
61
63
|
</div>
|
|
62
64
|
<div>
|
|
63
65
|
<p className="text-muted">
|
|
64
|
-
{
|
|
65
|
-
{collection ?
|
|
66
|
-
{location ?
|
|
66
|
+
{t('upload.filesProcessed', { count: totalCount })}
|
|
67
|
+
{collection ? t('upload.inCollection', { collection }) : ""}
|
|
68
|
+
{location ? t('upload.inFolder', { location }) : ""}
|
|
67
69
|
</p>
|
|
68
70
|
</div>
|
|
69
71
|
</div>
|
|
@@ -72,8 +74,8 @@ export function UploadSummary({ files, className = "", location, collection }: U
|
|
|
72
74
|
<div className="space-y-3 mt-2">
|
|
73
75
|
{/* Successful uploads */}
|
|
74
76
|
{successCount > 0 && (
|
|
75
|
-
<UploadResultCategory
|
|
76
|
-
title=
|
|
77
|
+
<UploadResultCategory
|
|
78
|
+
title={t('upload.successfullyUploaded')}
|
|
77
79
|
count={successCount}
|
|
78
80
|
icon={<CheckCircleIcon className="h-4 w-4 text-green-500" />}
|
|
79
81
|
items={successFiles.map(f => f.name)}
|
|
@@ -82,8 +84,8 @@ export function UploadSummary({ files, className = "", location, collection }: U
|
|
|
82
84
|
|
|
83
85
|
{/* Updated files */}
|
|
84
86
|
{updatedCount > 0 && (
|
|
85
|
-
<UploadResultCategory
|
|
86
|
-
title=
|
|
87
|
+
<UploadResultCategory
|
|
88
|
+
title={t('upload.successfullyUpdated')}
|
|
87
89
|
count={updatedCount}
|
|
88
90
|
icon={<CheckCircleIcon className="h-4 w-4 text-blue-500" />}
|
|
89
91
|
items={updatedFiles.map(f => f.name)}
|
|
@@ -92,8 +94,8 @@ export function UploadSummary({ files, className = "", location, collection }: U
|
|
|
92
94
|
|
|
93
95
|
{/* Skipped files */}
|
|
94
96
|
{skippedCount > 0 && (
|
|
95
|
-
<UploadResultCategory
|
|
96
|
-
title=
|
|
97
|
+
<UploadResultCategory
|
|
98
|
+
title={t('upload.skippedAlreadyExisted')}
|
|
97
99
|
count={skippedCount}
|
|
98
100
|
icon={<AlertCircleIcon className="h-4 w-4 text-amber-500" />}
|
|
99
101
|
items={skippedFiles.map(f => f.name)}
|
|
@@ -102,8 +104,8 @@ export function UploadSummary({ files, className = "", location, collection }: U
|
|
|
102
104
|
|
|
103
105
|
{/* Failed uploads */}
|
|
104
106
|
{failedCount > 0 && (
|
|
105
|
-
<UploadResultCategory
|
|
106
|
-
title=
|
|
107
|
+
<UploadResultCategory
|
|
108
|
+
title={t('upload.failedToUpload')}
|
|
107
109
|
count={failedCount}
|
|
108
110
|
icon={<XCircleIcon className="h-4 w-4 text-red-500" />}
|
|
109
111
|
items={failedFiles.map(f => f.name)}
|
package/tsconfig.dist.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Menu, MenuButton, MenuItems, MenuItem as _MenuItem, Transition } from '@headlessui/react';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import { Fragment } from 'react';
|
|
5
|
-
export function Dropdown({ trigger, children }) {
|
|
6
|
-
return (_jsxs(Menu, { as: "div", className: "relative", children: [_jsx(MenuButton, { as: "span", className: "-m-1.5 flex items-center p-1.5", children: trigger }), _jsx(Transition, { as: Fragment, enter: "transition ease-out duration-100", enterFrom: "transform opacity-0 scale-95", enterTo: "transform opacity-100 scale-100", leave: "transition ease-in duration-75", leaveFrom: "transform opacity-100 scale-100", leaveTo: "transform opacity-0 scale-95", children: _jsx(MenuItems, { className: "absolute right-0 z-10 mt-2.5 w-48 origin-top-right rounded-md bg-white dark:bg-slate-900 dark:border-slate-800 dark:border py-2 shadow-lg ring-1 ring-gray-900/5 dark:ring-slate-200/5 focus:outline-hidden", children: children }) })] }));
|
|
7
|
-
}
|
|
8
|
-
export function MenuItem({ children, href = '#', onClick, closeOnClick = true, isDisabled = false }) {
|
|
9
|
-
return (_jsx(_MenuItem, { disabled: isDisabled, children: ({ active, close }) => (_jsx("a", { href: href, onClick: (e) => {
|
|
10
|
-
e.preventDefault();
|
|
11
|
-
e.stopPropagation();
|
|
12
|
-
onClick && onClick(e);
|
|
13
|
-
closeOnClick && close();
|
|
14
|
-
}, className: clsx(active ? 'bg-gray-50 dark:bg-slate-800' : '', isDisabled ? 'opacity-50 cursor-not-allowed' : '', 'block px-3 py-1 text-sm leading-6 text-gray-900 dark:text-gray-200'), children: children })) }));
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=Dropdown.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.js","sourceRoot":"","sources":["../../../../src/core/components/Dropdown.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,IAAI,SAAS,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACnG,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAMjC,MAAM,UAAU,QAAQ,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAiB;IACzD,OAAO,CACH,MAAC,IAAI,IAAC,EAAE,EAAC,KAAK,EAAC,SAAS,EAAC,UAAU,aAC/B,KAAC,UAAU,IAAC,EAAE,EAAC,MAAM,EAAC,SAAS,EAAC,gCAAgC,YAC3D,OAAO,GACC,EACb,KAAC,UAAU,IACP,EAAE,EAAE,QAAQ,EACZ,KAAK,EAAC,kCAAkC,EACxC,SAAS,EAAC,8BAA8B,EACxC,OAAO,EAAC,iCAAiC,EACzC,KAAK,EAAC,gCAAgC,EACtC,SAAS,EAAC,iCAAiC,EAC3C,OAAO,EAAC,8BAA8B,YAEtC,KAAC,SAAS,IAAC,SAAS,EAAC,6MAA6M,YAC7N,QAAQ,GACD,GACH,IACV,CACV,CAAA;AACL,CAAC;AASD,MAAM,UAAU,QAAQ,CAAC,EAAE,QAAQ,EAAE,IAAI,GAAG,GAAG,EAAE,OAAO,EAAE,YAAY,GAAG,IAAI,EAAE,UAAU,GAAG,KAAK,EAAiB;IAC9G,OAAO,CACH,KAAC,SAAS,IAAC,QAAQ,EAAE,UAAU,YAEvB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACnB,YACI,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;gBACX,CAAC,CAAC,cAAc,EAAE,CAAC;gBACnB,CAAC,CAAC,eAAe,EAAE,CAAC;gBACpB,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC;gBACtB,YAAY,IAAI,KAAK,EAAE,CAAC;YAC5B,CAAC,EACD,SAAS,EAAE,IAAI,CACX,MAAM,CAAC,CAAC,CAAC,8BAA8B,CAAC,CAAC,CAAC,EAAE,EAC5C,UAAU,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,EAAE,EACjD,oEAAoE,CACvE,YAEA,QAAQ,GACT,CACP,GACG,CACf,CAAA;AACL,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Listbox, ListboxButton, ListboxOption, ListboxOptions, Transition } from "@headlessui/react";
|
|
3
|
-
import { Check, ChevronDown } from "lucide-react";
|
|
4
|
-
import clsx from "clsx";
|
|
5
|
-
import { Fragment } from "react";
|
|
6
|
-
export function DropdownList({ items, value, onChange }) {
|
|
7
|
-
return (_jsx(Listbox, { value: value, onChange: onChange, children: ({ open }) => (_jsxs("div", { className: "relative", children: [_jsxs("div", { className: "inline-flex divide-x divide-indigo-700 rounded-md shadow-2xs", children: [_jsxs("div", { className: "inline-flex items-center gap-x-1.5 rounded-l-md bg-indigo-600 px-3 py-2 text-white shadow-2xs", children: [value.name && _jsx(Check, { className: "-ml-0.5 size-5", "aria-hidden": "true" }), _jsx("p", { className: "text-sm font-semibold", children: value.name || "" })] }), _jsxs(ListboxButton, { className: "inline-flex items-center rounded-l-none rounded-r-md bg-indigo-600 p-2 hover:bg-indigo-700 focus:outline-hidden focus:ring-2 focus:ring-indigo-600 focus:ring-offset-2 focus:ring-offset-gray-50", children: [_jsx("span", { className: "sr-only", children: "Change selection" }), _jsx(ChevronDown, { className: "size-5 text-white", "aria-hidden": "true" })] })] }), _jsx(Transition, { show: open, as: Fragment, leave: "transition ease-in duration-100", leaveFrom: "opacity-100", leaveTo: "opacity-0", children: _jsx(ListboxOptions, { className: "absolute right-0 z-10 mt-2 w-72 origin-top-right divide-y divide-gray-200 overflow-hidden rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-hidden", children: items.map((option) => (_jsx(ListboxOption, { className: ({ active }) => clsx(active ? 'bg-indigo-600 text-white' : 'text-gray-900', 'cursor-default select-none p-4 text-sm'), value: option, children: ({ selected, active }) => (_jsxs("div", { className: "flex flex-col", children: [_jsxs("div", { className: "flex justify-between", children: [_jsx("p", { className: selected ? 'font-semibold' : 'font-normal', children: option.name }), selected ? (_jsx("span", { className: active ? 'text-white' : 'text-indigo-600', children: _jsx(Check, { className: "size-5", "aria-hidden": "true" }) })) : null] }), _jsx("p", { className: clsx(active ? 'text-indigo-200' : 'text-gray-500', 'mt-2'), children: option.description })] })) }, option.id))) }) })] })) }));
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=DropdownList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownList.js","sourceRoot":"","sources":["../../../../src/core/components/DropdownList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACtG,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAUjC,MAAM,UAAU,YAAY,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAqB;IACtE,OAAO,CACH,KAAC,OAAO,IAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,YACpC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CACX,eAAK,SAAS,EAAC,UAAU,aACrB,eAAK,SAAS,EAAC,8DAA8D,aACzE,eAAK,SAAS,EAAC,+FAA+F,aACzG,KAAK,CAAC,IAAI,IAAI,KAAC,KAAK,IAAC,SAAS,EAAC,gBAAgB,iBAAa,MAAM,GAAG,EACtE,YAAG,SAAS,EAAC,uBAAuB,YAAE,KAAK,CAAC,IAAI,IAAI,EAAE,GAAK,IACzD,EACN,MAAC,aAAa,IAAC,SAAS,EAAC,kMAAkM,aACvN,eAAM,SAAS,EAAC,SAAS,iCAAwB,EACjD,KAAC,WAAW,IAAC,SAAS,EAAC,mBAAmB,iBAAa,MAAM,GAAG,IACpD,IACd,EAEN,KAAC,UAAU,IACP,IAAI,EAAE,IAAI,EACV,EAAE,EAAE,QAAQ,EACZ,KAAK,EAAC,iCAAiC,EACvC,SAAS,EAAC,aAAa,EACvB,OAAO,EAAC,WAAW,YAEnB,KAAC,cAAc,IAAC,SAAS,EAAC,+KAA+K,YACpM,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACnB,KAAC,aAAa,IAEV,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CACtB,IAAI,CACA,MAAM,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC,eAAe,EACrD,wCAAwC,CAC3C,EAEL,KAAK,EAAE,MAAM,YAEZ,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CACvB,eAAK,SAAS,EAAC,eAAe,aAC1B,eAAK,SAAS,EAAC,sBAAsB,aACjC,YAAG,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,aAAa,YAAG,MAAM,CAAC,IAAI,GAAK,EAC1E,QAAQ,CAAC,CAAC,CAAC,CACR,eAAM,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,YACtD,KAAC,KAAK,IAAC,SAAS,EAAC,QAAQ,iBAAa,MAAM,GAAG,GAC5C,CACV,CAAC,CAAC,CAAC,IAAI,IACN,EACN,YAAG,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,eAAe,EAAE,MAAM,CAAC,YACnE,MAAM,CAAC,WAAW,GACnB,IACF,CACT,IAvBI,MAAM,CAAC,EAAE,CAwBF,CACnB,CAAC,GACW,GACR,IACX,CACT,GACK,CACb,CAAA;AACL,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import clsx from "clsx";
|
|
3
|
-
import { useState } from "react";
|
|
4
|
-
export class RadioOptionAdapter {
|
|
5
|
-
renderOption(item) {
|
|
6
|
-
return this.labelOf(item);
|
|
7
|
-
}
|
|
8
|
-
findById(items, id) {
|
|
9
|
-
return items.find(item => this.idOf(item) === id);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export function RadioGroup({ checkColor, cols = "grid-cols-1", gap = "gap-2", value, onChange, options, checkIcon: CheckIcon = DefaultCheckIcon, adapter }) {
|
|
13
|
-
const [selected, setSelected] = useState(value);
|
|
14
|
-
const onSelect = (option) => {
|
|
15
|
-
setSelected(option);
|
|
16
|
-
onChange(option);
|
|
17
|
-
};
|
|
18
|
-
const selectedId = selected ? adapter.idOf(selected) : undefined;
|
|
19
|
-
return (_jsx("div", { className: clsx("grid", cols, gap), children: options.map(option => {
|
|
20
|
-
const key = adapter.idOf(option);
|
|
21
|
-
return (_jsx(RadioOption, { checkColor: checkColor, isSelected: key === selectedId, option: option, adapter: adapter, onSelect: onSelect, CheckIcon: CheckIcon }, key));
|
|
22
|
-
}) }));
|
|
23
|
-
}
|
|
24
|
-
function RadioOption({ checkColor, CheckIcon, adapter, isSelected, option, onSelect }) {
|
|
25
|
-
const [isHighlighted, setIsHighlighted] = useState(false);
|
|
26
|
-
return (_jsxs("div", { className: "flex gap-1 cursor-pointer items-center", onClick: () => onSelect(option), onMouseEnter: () => setIsHighlighted(true), onMouseLeave: () => setIsHighlighted(false), children: [_jsx("div", { className: "", children: _jsx(CheckIcon, { size: 24, isChecked: isSelected, isHighlighted: isHighlighted, color: checkColor }) }), _jsx("div", { children: adapter.renderOption(option) })] }));
|
|
27
|
-
}
|
|
28
|
-
function DefaultCheckIcon({ size, isChecked, isHighlighted, color = "currentColor" }) {
|
|
29
|
-
//https://www.svgrepo.com/svg/309414/checkbox-checked
|
|
30
|
-
//https://www.svgrepo.com/svg/309415/checkbox-unchecked
|
|
31
|
-
const opacity = isHighlighted ? 1 : 0.6;
|
|
32
|
-
return isChecked ? (_jsx("svg", { width: `${size}px`, height: `${size}px`, viewBox: "0 0 24 24", version: "1.1", children: _jsx("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: _jsx("g", { id: "ic_fluent_checkbox_checked_24_regular", fill: color, fillRule: "nonzero", opacity: opacity, children: _jsx("path", { d: "M18.25,3 C19.7687831,3 21,4.23121694 21,5.75 L21,18.25 C21,19.7687831 19.7687831,21 18.25,21 L5.75,21 C4.23121694,21 3,19.7687831 3,18.25 L3,5.75 C3,4.23121694 4.23121694,3 5.75,3 L18.25,3 Z M18.25,4.5 L5.75,4.5 C5.05964406,4.5 4.5,5.05964406 4.5,5.75 L4.5,18.25 C4.5,18.9403559 5.05964406,19.5 5.75,19.5 L18.25,19.5 C18.9403559,19.5 19.5,18.9403559 19.5,18.25 L19.5,5.75 C19.5,5.05964406 18.9403559,4.5 18.25,4.5 Z M10,14.4393398 L16.4696699,7.96966991 C16.7625631,7.6767767 17.2374369,7.6767767 17.5303301,7.96966991 C17.7965966,8.23593648 17.8208027,8.65260016 17.6029482,8.94621165 L17.5303301,9.03033009 L10.5303301,16.0303301 C10.2640635,16.2965966 9.84739984,16.3208027 9.55378835,16.1029482 L9.46966991,16.0303301 L6.46966991,13.0303301 C6.1767767,12.7374369 6.1767767,12.2625631 6.46966991,11.9696699 C6.73593648,11.7034034 7.15260016,11.6791973 7.44621165,11.8970518 L7.53033009,11.9696699 L10,14.4393398 L16.4696699,7.96966991 L10,14.4393398 Z" }) }) }) })) : (_jsx("svg", { width: `${size}px`, height: `${size}px`, viewBox: "0 0 24 24", version: "1.1", children: _jsx("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: _jsx("g", { id: "ic_fluent_checkbox_unchecked_24_regular", fill: color, fillRule: "nonzero", opacity: opacity, children: _jsx("path", { d: "M5.75,3 L18.25,3 C19.7687831,3 21,4.23121694 21,5.75 L21,18.25 C21,19.7687831 19.7687831,21 18.25,21 L5.75,21 C4.23121694,21 3,19.7687831 3,18.25 L3,5.75 C3,4.23121694 4.23121694,3 5.75,3 Z M5.75,4.5 C5.05964406,4.5 4.5,5.05964406 4.5,5.75 L4.5,18.25 C4.5,18.9403559 5.05964406,19.5 5.75,19.5 L18.25,19.5 C18.9403559,19.5 19.5,18.9403559 19.5,18.25 L19.5,5.75 C19.5,5.05964406 18.9403559,4.5 18.25,4.5 L5.75,4.5 Z" }) }) }) }));
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=RadioGroup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.js","sourceRoot":"","sources":["../../../../src/core/components/RadioGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,OAAgB,kBAAkB;IAGpC,YAAY,CAAC,IAAO;QAChB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;IACD,QAAQ,CAAC,KAAU,EAAE,EAAU;QAC3B,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;IACtD,CAAC;CACJ;AAYD,MAAM,UAAU,UAAU,CAAU,EAAE,UAAU,EAAE,IAAI,GAAG,aAAa,EAAE,GAAG,GAAG,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,GAAG,gBAAgB,EAAE,OAAO,EAA4B;IACzL,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAChD,MAAM,QAAQ,GAAG,CAAC,MAAe,EAAE,EAAE;QACjC,WAAW,CAAC,MAAM,CAAC,CAAC;QACpB,QAAQ,CAAC,MAAM,CAAC,CAAC;IACrB,CAAC,CAAA;IACD,MAAM,UAAU,GAAG,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACjE,OAAO,CACH,cAAK,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,CAAC,YAE/B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;YACjB,MAAM,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACjC,OAAO,CACH,KAAC,WAAW,IACR,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,GAAG,KAAK,UAAU,EAC9B,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAChC,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,IAAO,GAAG,CAChC,CACL,CAAC;QACN,CAAC,CAAC,GAEJ,CACT,CAAA;AACL,CAAC;AAUD,SAAS,WAAW,CAAU,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAA6B;IACrH,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC1D,OAAO,CACH,eAAK,SAAS,EAAC,wCAAwC,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,EACnF,YAAY,EAAE,GAAG,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,gBAAgB,CAAC,KAAK,CAAC,aACvF,cAAK,SAAS,EAAC,EAAE,YACb,KAAC,SAAS,IAAC,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,GAAI,GAC7F,EACN,wBAAM,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,GAAO,IACvC,CACT,CAAA;AACL,CAAC;AAQD,SAAS,gBAAgB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,KAAK,GAAG,cAAc,EAAkB;IAChG,qDAAqD;IACrD,uDAAuD;IACvD,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;IACxC,OAAO,SAAS,CAAC,CAAC,CAAC,CACf,cAAK,KAAK,EAAE,GAAG,IAAI,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,IAAI,EAAE,OAAO,EAAC,WAAW,EAAC,OAAO,EAAC,KAAK,YAC3E,YAAG,MAAM,EAAC,MAAM,EAAC,WAAW,EAAC,GAAG,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAC,SAAS,YAC3D,YAAG,EAAE,EAAC,uCAAuC,EAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAC,SAAS,EAAC,OAAO,EAAE,OAAO,YAC1F,eAAM,CAAC,EAAC,47BAA47B,GAAG,GACv8B,GACJ,GACF,CACT,CAAC,CAAC,CAAC,CACA,cAAK,KAAK,EAAE,GAAG,IAAI,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,IAAI,EAAE,OAAO,EAAC,WAAW,EAAC,OAAO,EAAC,KAAK,YAC3E,YAAG,MAAM,EAAC,MAAM,EAAC,WAAW,EAAC,GAAG,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAC,SAAS,YAC3D,YAAG,EAAE,EAAC,yCAAyC,EAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAC,SAAS,EAAC,OAAO,EAAE,OAAO,YAC5F,eAAM,CAAC,EAAC,+ZAA+Z,GAAG,GAC1a,GACJ,GACF,CACT,CAAA;AACL,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { RadioGroup } from '@headlessui/react';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
export function SelectStack({ onSelect, selected, options }) {
|
|
5
|
-
return (_jsxs(RadioGroup, { value: selected, onChange: onSelect, children: [_jsx(RadioGroup.Label, { className: "sr-only", children: "Server size" }), _jsx("div", { className: "space-y-4", children: options.map((option) => (_jsx(RadioGroup.Option, { value: option, className: ({ active }) => clsx(active ? 'border-border ring-2 ring-ring' : 'border-border', 'relative block cursor-pointer rounded-lg border bg-accent px-6 py-4 shadow-2xs focus:outline-hidden sm:flex sm:justify-between'), children: ({ active, checked }) => (_jsxs(_Fragment, { children: [_jsx("span", { className: "flex items-center", children: _jsxs("span", { className: "flex flex-col text-sm", children: [_jsx(RadioGroup.Label, { as: "span", className: "font-medium text-text", children: option.label }), option.description &&
|
|
6
|
-
_jsx(RadioGroup.Description, { as: "span", className: "text-muted-foreground", children: option.description })] }) }), _jsx("span", { className: clsx(active ? 'border' : 'border-2', checked ? 'border-accent-foreground' : 'border-transparent', 'pointer-events-none absolute -inset-px rounded-lg'), "aria-hidden": "true" })] })) }, option.id))) })] }));
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=SelectStack.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SelectStack.js","sourceRoot":"","sources":["../../../../src/core/components/SelectStack.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,IAAI,MAAM,MAAM,CAAA;AAevB,MAAM,UAAU,WAAW,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAoB;IAEzE,OAAO,CACH,MAAC,UAAU,IAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,aAC3C,KAAC,UAAU,CAAC,KAAK,IAAC,SAAS,EAAC,SAAS,4BAA+B,EACpE,cAAK,SAAS,EAAC,WAAW,YACrB,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACrB,KAAC,UAAU,CAAC,MAAM,IAEd,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CACtB,IAAI,CACA,MAAM,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC,CAAC,eAAe,EAC3D,gIAAgI,CACnI,YAGJ,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACtB,8BACI,eAAM,SAAS,EAAC,mBAAmB,YAC/B,gBAAM,SAAS,EAAC,uBAAuB,aACnC,KAAC,UAAU,CAAC,KAAK,IAAC,EAAE,EAAC,MAAM,EAAC,SAAS,EAAC,uBAAuB,YACxD,MAAM,CAAC,KAAK,GACE,EAClB,MAAM,CAAC,WAAW;4CACf,KAAC,UAAU,CAAC,WAAW,IAAC,EAAE,EAAC,MAAM,EAAC,SAAS,EAAC,uBAAuB,YAC9D,MAAM,CAAC,WAAW,GACE,IAE1B,GACJ,EACP,eACI,SAAS,EAAE,IAAI,CACX,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,EAC9B,OAAO,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,CAAC,oBAAoB,EAC3D,mDAAmD,CACtD,iBACW,MAAM,GACpB,IACH,CACN,IAhCI,MAAM,CAAC,EAAE,CAiCE,CACvB,CAAC,GACA,IACG,CAChB,CAAA;AACL,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Switch as UISwitch } from "@headlessui/react";
|
|
3
|
-
const sizes = {
|
|
4
|
-
'sm': ['h-5 w-8', 'size-3', 'translate-x-4'],
|
|
5
|
-
'md': ['h-6 w-11', 'size-4', 'translate-x-6'],
|
|
6
|
-
'lg': ['h-8 w-16', 'size-6', 'translate-x-9'],
|
|
7
|
-
};
|
|
8
|
-
export function Switch({ value, onChange, size = 'md', children, className, disabled }) {
|
|
9
|
-
const sizeClass = sizes[size];
|
|
10
|
-
return (_jsxs(UISwitch, { checked: value, onChange: () => onChange(!value), disabled: disabled, className: `flex items-center ${className} ${disabled ? 'cursor-not-allowed opacity-50' : 'hover:cursor-pointer'}`, children: [_jsx("div", { className: `${value ? 'bg-primary' : 'bg-muted/50'} relative inline-flex ${sizeClass[0]} items-center rounded-full border-1`, children: _jsx("span", { className: `${value ? sizeClass[2] : 'translate-x-1'} inline-block ${sizeClass[1]} transform rounded-full bg-white transition` }) }), children && _jsx("span", { className: "px-2", children: children })] }));
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=Switch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.js","sourceRoot":"","sources":["../../../../src/core/components/Switch.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,KAAK,GAAG;IACV,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,eAAe,CAAC;IAC5C,IAAI,EAAE,CAAC,UAAU,EAAE,QAAQ,EAAE,eAAe,CAAC;IAC7C,IAAI,EAAE,CAAC,UAAU,EAAE,QAAQ,EAAE,eAAe,CAAC;CAChD,CAAA;AAUD,MAAM,UAAU,MAAM,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,GAAG,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAe;IAC/F,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;IAC9B,OAAO,CACH,MAAC,QAAQ,IAAC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,qBAAqB,SAAS,IAAI,QAAQ,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,sBAAsB,EAAE,aAC9L,cAAK,SAAS,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,yBAAyB,SAAS,CAAC,CAAC,CAAC,qCAAqC,YAC7H,eACI,SAAS,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,eACjC,iBAAiB,SAAS,CAAC,CAAC,CAAC,6CAA6C,GAChF,GACA,EACL,QAAQ,IAAI,eAAM,SAAS,EAAC,MAAM,YAAE,QAAQ,GAAQ,IAC9C,CACd,CAAA;AACL,CAAC"}
|