@vertesia/ui 0.59.0 → 0.61.0
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/FormItem.js +9 -0
- package/lib/esm/core/components/FormItem.js.map +1 -0
- package/lib/esm/core/components/InputList.js +4 -3
- package/lib/esm/core/components/InputList.js.map +1 -1
- package/lib/esm/core/components/index.js +3 -3
- package/lib/esm/core/components/index.js.map +1 -1
- package/lib/esm/core/components/shadcn/button.js +37 -7
- package/lib/esm/core/components/shadcn/button.js.map +1 -1
- package/lib/esm/core/components/shadcn/dialog.js +3 -3
- package/lib/esm/core/components/shadcn/dialog.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/DynamicLabel.js +38 -0
- package/lib/esm/core/components/shadcn/filters/DynamicLabel.js.map +1 -0
- package/lib/esm/core/components/shadcn/filters/comboBox.js +24 -26
- package/lib/esm/core/components/shadcn/filters/comboBox.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/dateFilter.js +12 -12
- package/lib/esm/core/components/shadcn/filters/dateFilter.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/filterBar.js +49 -36
- package/lib/esm/core/components/shadcn/filters/filterBar.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/filters.js +31 -23
- package/lib/esm/core/components/shadcn/filters/filters.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/selectFilter.js +33 -24
- package/lib/esm/core/components/shadcn/filters/selectFilter.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/textFilter.js +2 -2
- package/lib/esm/core/components/shadcn/filters/textFilter.js.map +1 -1
- package/lib/esm/core/components/shadcn/filters/types.js.map +1 -1
- package/lib/esm/core/components/shadcn/input.js +4 -4
- package/lib/esm/core/components/shadcn/input.js.map +1 -1
- package/lib/esm/core/components/shadcn/selectBox.js +72 -6
- package/lib/esm/core/components/shadcn/selectBox.js.map +1 -1
- package/lib/esm/core/components/styles.js +1 -1
- package/lib/esm/core/components/styles.js.map +1 -1
- package/lib/esm/core/components/table/index.js +3 -0
- package/lib/esm/core/components/table/index.js.map +1 -1
- package/lib/esm/core/index.js +2 -1
- package/lib/esm/core/index.js.map +1 -1
- package/lib/esm/core/utils/cn.js +6 -0
- package/lib/esm/core/utils/cn.js.map +1 -0
- package/lib/esm/core/utils/index.js +2 -0
- package/lib/esm/core/utils/index.js.map +1 -0
- package/lib/esm/features/agent/PayloadBuilder.js +174 -0
- package/lib/esm/features/agent/PayloadBuilder.js.map +1 -0
- package/lib/esm/features/agent/chat/AnimatedThinkingDots.js +207 -0
- package/lib/esm/features/agent/chat/AnimatedThinkingDots.js.map +1 -0
- package/lib/esm/features/agent/chat/JumpingDots.js +6 -0
- package/lib/esm/features/agent/chat/JumpingDots.js.map +1 -0
- package/lib/esm/features/agent/chat/ModernAgentConversation.js +409 -0
- package/lib/esm/features/agent/chat/ModernAgentConversation.js.map +1 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +129 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js.map +1 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js +66 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js.map +1 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.js +29 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.js.map +1 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js +97 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js.map +1 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js +46 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js.map +1 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js +352 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js.map +1 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessagesContainer.js +20 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/MessagesContainer.js.map +1 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js +62 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js.map +1 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/SlideInPanel.js +23 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/SlideInPanel.js.map +1 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingMessages.js +51 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingMessages.js.map +1 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js +82 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js.map +1 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/StackedMessages.js +13 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/StackedMessages.js.map +1 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js +105 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js.map +1 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js +154 -0
- package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js.map +1 -0
- package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js +266 -0
- package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js.map +1 -0
- package/lib/esm/features/agent/chat/WaitingMessages.js +60 -0
- package/lib/esm/features/agent/chat/WaitingMessages.js.map +1 -0
- package/lib/esm/features/agent/chat/index.js +5 -0
- package/lib/esm/features/agent/chat/index.js.map +1 -0
- package/lib/esm/features/agent/index.js +3 -0
- package/lib/esm/features/agent/index.js.map +1 -0
- package/lib/esm/features/errors/PanelErrorBoundary.js +11 -0
- package/lib/esm/features/errors/PanelErrorBoundary.js.map +1 -0
- package/lib/esm/features/errors/RowErrorBoundary.js +9 -0
- package/lib/esm/features/errors/RowErrorBoundary.js.map +1 -0
- package/lib/esm/features/errors/VertesiaErrorBoundary.js +15 -0
- package/lib/esm/features/errors/VertesiaErrorBoundary.js.map +1 -0
- package/lib/esm/features/errors/WidgetErrorBoundary.js +11 -0
- package/lib/esm/features/errors/WidgetErrorBoundary.js.map +1 -0
- package/lib/esm/features/errors/index.js +5 -0
- package/lib/esm/features/errors/index.js.map +1 -0
- package/lib/esm/features/facets/EnvironmentFacet.js +39 -0
- package/lib/esm/features/facets/EnvironmentFacet.js.map +1 -0
- package/lib/esm/features/facets/FacetsNav.js +8 -0
- package/lib/esm/features/facets/FacetsNav.js.map +1 -0
- package/lib/esm/features/facets/InteractionFacet.js +39 -0
- package/lib/esm/features/facets/InteractionFacet.js.map +1 -0
- package/lib/esm/features/facets/StringFacet.js +12 -0
- package/lib/esm/features/facets/StringFacet.js.map +1 -0
- package/lib/esm/features/facets/StringListFacet.js +11 -0
- package/lib/esm/features/facets/StringListFacet.js.map +1 -0
- package/lib/esm/features/facets/TypeFacet.js +42 -0
- package/lib/esm/features/facets/TypeFacet.js.map +1 -0
- package/lib/esm/features/facets/TypeOptions.js +19 -0
- package/lib/esm/features/facets/TypeOptions.js.map +1 -0
- package/lib/esm/features/facets/UserFacet.js +33 -0
- package/lib/esm/features/facets/UserFacet.js.map +1 -0
- package/lib/esm/features/facets/VFacetsNav.js +114 -0
- package/lib/esm/features/facets/VFacetsNav.js.map +1 -0
- package/lib/esm/features/facets/VStringFacet.js +17 -0
- package/lib/esm/features/facets/VStringFacet.js.map +1 -0
- package/lib/esm/features/facets/VTypeFacet.js +56 -0
- package/lib/esm/features/facets/VTypeFacet.js.map +1 -0
- package/lib/esm/features/facets/VUserFacet.js +31 -0
- package/lib/esm/features/facets/VUserFacet.js.map +1 -0
- package/lib/esm/features/facets/index.js +12 -0
- package/lib/esm/features/facets/index.js.map +1 -0
- package/lib/esm/features/facets/utils.js +7 -0
- package/lib/esm/features/facets/utils.js.map +1 -0
- package/lib/esm/features/index.js +9 -1
- package/lib/esm/features/index.js.map +1 -1
- package/lib/esm/features/layout/GenericPageNavHeader.js +11 -0
- package/lib/esm/features/layout/GenericPageNavHeader.js.map +1 -0
- package/lib/esm/features/layout/NotFoundView.js +5 -0
- package/lib/esm/features/layout/NotFoundView.js.map +1 -0
- package/lib/esm/features/layout/index.js +3 -0
- package/lib/esm/features/layout/index.js.map +1 -0
- package/lib/esm/features/magic-pdf/DownloadPopover.js +13 -0
- package/lib/esm/features/magic-pdf/DownloadPopover.js.map +1 -0
- package/lib/esm/features/magic-pdf/MagicPdfView.js +44 -0
- package/lib/esm/features/magic-pdf/MagicPdfView.js.map +1 -0
- package/lib/esm/features/magic-pdf/PageSlider.js +57 -0
- package/lib/esm/features/magic-pdf/PageSlider.js.map +1 -0
- package/lib/esm/features/magic-pdf/PdfPageProvider.js +133 -0
- package/lib/esm/features/magic-pdf/PdfPageProvider.js.map +1 -0
- package/lib/esm/features/magic-pdf/TextPageView.js +45 -0
- package/lib/esm/features/magic-pdf/TextPageView.js.map +1 -0
- package/lib/esm/features/magic-pdf/index.js +2 -0
- package/lib/esm/features/magic-pdf/index.js.map +1 -0
- package/lib/esm/features/magic-pdf/types.js +2 -0
- package/lib/esm/features/magic-pdf/types.js.map +1 -0
- package/lib/esm/features/magic-pdf/useResizeOnDrag.js +34 -0
- package/lib/esm/features/magic-pdf/useResizeOnDrag.js.map +1 -0
- package/lib/esm/features/store/collections/BrowseCollectionView.js +37 -0
- package/lib/esm/features/store/collections/BrowseCollectionView.js.map +1 -0
- package/lib/esm/features/store/collections/CollectionView.js +53 -0
- package/lib/esm/features/store/collections/CollectionView.js.map +1 -0
- package/lib/esm/features/store/collections/CollectionsTable.js +60 -0
- package/lib/esm/features/store/collections/CollectionsTable.js.map +1 -0
- package/lib/esm/features/store/collections/CollectionsView.js +94 -0
- package/lib/esm/features/store/collections/CollectionsView.js.map +1 -0
- package/lib/esm/features/store/collections/EditCollectionView.js +161 -0
- package/lib/esm/features/store/collections/EditCollectionView.js.map +1 -0
- package/lib/esm/features/store/collections/index.js +6 -0
- package/lib/esm/features/store/collections/index.js.map +1 -0
- package/lib/esm/features/store/index.js +4 -0
- package/lib/esm/features/store/index.js.map +1 -0
- package/lib/esm/features/store/objects/DocumentPreviewPanel.js +150 -0
- package/lib/esm/features/store/objects/DocumentPreviewPanel.js.map +1 -0
- package/lib/esm/features/store/objects/DocumentSearchResults.js +123 -0
- package/lib/esm/features/store/objects/DocumentSearchResults.js.map +1 -0
- package/lib/esm/features/store/objects/DocumentSelectionProvider.js +81 -0
- package/lib/esm/features/store/objects/DocumentSelectionProvider.js.map +1 -0
- package/lib/esm/features/store/objects/DocumentTable.js +278 -0
- package/lib/esm/features/store/objects/DocumentTable.js.map +1 -0
- package/lib/esm/features/store/objects/ExportPropertiesModal.js +31 -0
- package/lib/esm/features/store/objects/ExportPropertiesModal.js.map +1 -0
- package/lib/esm/features/store/objects/components/ContentDispositionButton.js +31 -0
- package/lib/esm/features/store/objects/components/ContentDispositionButton.js.map +1 -0
- package/lib/esm/features/store/objects/components/ContentOverview.js +195 -0
- package/lib/esm/features/store/objects/components/ContentOverview.js.map +1 -0
- package/lib/esm/features/store/objects/components/DocumentIcon.js +28 -0
- package/lib/esm/features/store/objects/components/DocumentIcon.js.map +1 -0
- package/lib/esm/features/store/objects/components/DocumentInput.js +52 -0
- package/lib/esm/features/store/objects/components/DocumentInput.js.map +1 -0
- package/lib/esm/features/store/objects/components/PropertiesEditorModal.js +169 -0
- package/lib/esm/features/store/objects/components/PropertiesEditorModal.js.map +1 -0
- package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js +45 -0
- package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js.map +1 -0
- package/lib/esm/features/store/objects/components/SelectDocument.js +39 -0
- package/lib/esm/features/store/objects/components/SelectDocument.js.map +1 -0
- package/lib/esm/features/store/objects/components/SelectDocumentModal.js +7 -0
- package/lib/esm/features/store/objects/components/SelectDocumentModal.js.map +1 -0
- package/lib/esm/features/store/objects/components/VectorSearchWidget.js +85 -0
- package/lib/esm/features/store/objects/components/VectorSearchWidget.js.map +1 -0
- package/lib/esm/features/store/objects/components/index.js +10 -0
- package/lib/esm/features/store/objects/components/index.js.map +1 -0
- package/lib/esm/features/store/objects/components/useDownloadObject.js +21 -0
- package/lib/esm/features/store/objects/components/useDownloadObject.js.map +1 -0
- package/lib/esm/features/store/objects/index.js +11 -0
- package/lib/esm/features/store/objects/index.js.map +1 -0
- package/lib/esm/features/store/objects/layout/DocumentTableColumn.js +74 -0
- package/lib/esm/features/store/objects/layout/DocumentTableColumn.js.map +1 -0
- package/lib/esm/features/store/objects/layout/documentLayout.js +16 -0
- package/lib/esm/features/store/objects/layout/documentLayout.js.map +1 -0
- package/lib/esm/features/store/objects/layout/index.js +3 -0
- package/lib/esm/features/store/objects/layout/index.js.map +1 -0
- package/lib/esm/features/store/objects/layout/renderers.js +128 -0
- package/lib/esm/features/store/objects/layout/renderers.js.map +1 -0
- package/lib/esm/features/store/objects/search/DocumentSearchContext.js +150 -0
- package/lib/esm/features/store/objects/search/DocumentSearchContext.js.map +1 -0
- package/lib/esm/features/store/objects/search/DocumentSearchProvider.js +41 -0
- package/lib/esm/features/store/objects/search/DocumentSearchProvider.js.map +1 -0
- package/lib/esm/features/store/objects/search/index.js +3 -0
- package/lib/esm/features/store/objects/search/index.js.map +1 -0
- package/lib/esm/features/store/objects/selection/ObjectsActionContext.js +149 -0
- package/lib/esm/features/store/objects/selection/ObjectsActionContext.js.map +1 -0
- package/lib/esm/features/store/objects/selection/ObjectsActionSpec.js +2 -0
- package/lib/esm/features/store/objects/selection/ObjectsActionSpec.js.map +1 -0
- package/lib/esm/features/store/objects/selection/SelectionActions.js +75 -0
- package/lib/esm/features/store/objects/selection/SelectionActions.js.map +1 -0
- package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js +64 -0
- package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js.map +1 -0
- package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js +53 -0
- package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js.map +1 -0
- package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js +30 -0
- package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js.map +1 -0
- package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js +66 -0
- package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js.map +1 -0
- package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js +106 -0
- package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js.map +1 -0
- package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js +64 -0
- package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js.map +1 -0
- package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js +72 -0
- package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js.map +1 -0
- package/lib/esm/features/store/objects/selection/actions/index.js +8 -0
- package/lib/esm/features/store/objects/selection/actions/index.js.map +1 -0
- package/lib/esm/features/store/objects/selection/index.js +5 -0
- package/lib/esm/features/store/objects/selection/index.js.map +1 -0
- package/lib/esm/features/store/objects/upload/DocumentUploadModal.js +476 -0
- package/lib/esm/features/store/objects/upload/DocumentUploadModal.js.map +1 -0
- package/lib/esm/features/store/objects/upload/index.js +4 -0
- package/lib/esm/features/store/objects/upload/index.js.map +1 -0
- package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js +201 -0
- package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js.map +1 -0
- package/lib/esm/features/store/objects/upload/useUploadHandler.js +230 -0
- package/lib/esm/features/store/objects/upload/useUploadHandler.js.map +1 -0
- package/lib/esm/features/store/types/ContentObjectTypeView.js +158 -0
- package/lib/esm/features/store/types/ContentObjectTypeView.js.map +1 -0
- package/lib/esm/features/store/types/ContentObjectTypesSearch.js +82 -0
- package/lib/esm/features/store/types/ContentObjectTypesSearch.js.map +1 -0
- package/lib/esm/features/store/types/ContentObjectTypesTable.js +11 -0
- package/lib/esm/features/store/types/ContentObjectTypesTable.js.map +1 -0
- package/lib/esm/features/store/types/ContentObjectTypesView.js +55 -0
- package/lib/esm/features/store/types/ContentObjectTypesView.js.map +1 -0
- package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js +26 -0
- package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js.map +1 -0
- package/lib/esm/features/store/types/ObjectSchemaEditor.js +89 -0
- package/lib/esm/features/store/types/ObjectSchemaEditor.js.map +1 -0
- package/lib/esm/features/store/types/SelectContentType.js +43 -0
- package/lib/esm/features/store/types/SelectContentType.js.map +1 -0
- package/lib/esm/features/store/types/SelectContentTypeModal.js +28 -0
- package/lib/esm/features/store/types/SelectContentTypeModal.js.map +1 -0
- package/lib/esm/features/store/types/TableLayoutEditor.js +78 -0
- package/lib/esm/features/store/types/TableLayoutEditor.js.map +1 -0
- package/lib/esm/features/store/types/index.js +11 -0
- package/lib/esm/features/store/types/index.js.map +1 -0
- package/lib/esm/features/store/types/search/ObjectTypeSearchContext.js +98 -0
- package/lib/esm/features/store/types/search/ObjectTypeSearchContext.js.map +1 -0
- package/lib/esm/features/store/types/search/ObjectTypeSearchProvider.js +15 -0
- package/lib/esm/features/store/types/search/ObjectTypeSearchProvider.js.map +1 -0
- package/lib/esm/features/store/types/search/index.js +3 -0
- package/lib/esm/features/store/types/search/index.js.map +1 -0
- package/lib/esm/features/user/UserAvatar.js +18 -0
- package/lib/esm/features/user/UserAvatar.js.map +1 -0
- package/lib/esm/features/user/UserInfo.js +88 -0
- package/lib/esm/features/user/UserInfo.js.map +1 -0
- package/lib/esm/features/user/index.js +3 -0
- package/lib/esm/features/user/index.js.map +1 -0
- package/lib/esm/features/utils/index.js +4 -0
- package/lib/esm/features/utils/index.js.map +1 -0
- package/lib/esm/features/utils/mimeType.js +9 -0
- package/lib/esm/features/utils/mimeType.js.map +1 -0
- package/lib/esm/features/utils/rendition.js +47 -0
- package/lib/esm/features/utils/rendition.js.map +1 -0
- package/lib/esm/features/utils/text.js +10 -0
- package/lib/esm/features/utils/text.js.map +1 -0
- package/lib/esm/layout/FullHeightLayout.js +1 -1
- package/lib/esm/layout/FullHeightLayout.js.map +1 -1
- package/lib/esm/layout/Sidebar.js +12 -2
- package/lib/esm/layout/Sidebar.js.map +1 -1
- package/lib/esm/widgets/Progress.js +5 -0
- package/lib/esm/widgets/Progress.js.map +1 -0
- package/lib/esm/widgets/codemirror/CodeMirrorEditor.js +1 -1
- package/lib/esm/widgets/codemirror/CodeMirrorEditor.js.map +1 -1
- package/lib/esm/widgets/form/Form.js +2 -2
- package/lib/esm/widgets/form/Form.js.map +1 -1
- package/lib/esm/widgets/form/schema.js +11 -5
- package/lib/esm/widgets/form/schema.js.map +1 -1
- package/lib/esm/widgets/index.js +4 -0
- package/lib/esm/widgets/index.js.map +1 -1
- package/lib/esm/widgets/popover/Popover.js +73 -0
- package/lib/esm/widgets/popover/Popover.js.map +1 -0
- package/lib/esm/widgets/popover/context.js +7 -0
- package/lib/esm/widgets/popover/context.js.map +1 -0
- package/lib/esm/widgets/popover/index.js +3 -0
- package/lib/esm/widgets/popover/index.js.map +1 -0
- package/lib/esm/widgets/popover/slots.js +22 -0
- package/lib/esm/widgets/popover/slots.js.map +1 -0
- package/lib/esm/widgets/properties/PropertiesView.js +6 -0
- package/lib/esm/widgets/properties/PropertiesView.js.map +1 -0
- package/lib/esm/widgets/properties/index.js +2 -0
- package/lib/esm/widgets/properties/index.js.map +1 -0
- package/lib/esm/widgets/schema-editor/JSONSchemaEditorModal.js +1 -2
- package/lib/esm/widgets/schema-editor/JSONSchemaEditorModal.js.map +1 -1
- package/lib/esm/widgets/schema-editor/editor/Editable.js +9 -10
- package/lib/esm/widgets/schema-editor/editor/Editable.js.map +1 -1
- package/lib/esm/widgets/schema-editor/editor/PropertyViewer.js +1 -1
- package/lib/esm/widgets/schema-editor/editor/PropertyViewer.js.map +1 -1
- package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js +2 -2
- package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js.map +1 -1
- package/lib/esm/widgets/upload/DropZone.js +162 -0
- package/lib/esm/widgets/upload/DropZone.js.map +1 -0
- package/lib/esm/widgets/upload/UploadResultCategory.js +19 -0
- package/lib/esm/widgets/upload/UploadResultCategory.js.map +1 -0
- package/lib/esm/widgets/upload/UploadSummary.js +30 -0
- package/lib/esm/widgets/upload/UploadSummary.js.map +1 -0
- package/lib/esm/widgets/upload/index.js +4 -0
- package/lib/esm/widgets/upload/index.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/core/components/FormItem.d.ts +11 -0
- package/lib/types/core/components/index.d.ts +3 -3
- package/lib/types/core/components/shadcn/button.d.ts +13 -2
- package/lib/types/core/components/shadcn/command.d.ts +7 -7
- package/lib/types/core/components/shadcn/filters/DynamicLabel.d.ts +8 -0
- package/lib/types/core/components/shadcn/filters/comboBox.d.ts +5 -5
- package/lib/types/core/components/shadcn/filters/dateFilter.d.ts +3 -4
- package/lib/types/core/components/shadcn/filters/types.d.ts +7 -1
- package/lib/types/core/components/shadcn/input.d.ts +4 -4
- package/lib/types/core/components/shadcn/selectBox.d.ts +13 -4
- package/lib/types/core/components/table/index.d.ts +1 -0
- package/lib/types/core/index.d.ts +2 -1
- package/lib/types/core/utils/cn.d.ts +2 -0
- package/lib/types/core/utils/index.d.ts +1 -0
- package/lib/types/features/agent/PayloadBuilder.d.ts +53 -0
- package/lib/types/features/agent/chat/AnimatedThinkingDots.d.ts +37 -0
- package/lib/types/features/agent/chat/JumpingDots.d.ts +6 -0
- package/lib/types/features/agent/chat/ModernAgentConversation.d.ts +24 -0
- package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts +21 -0
- package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts +18 -0
- package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.d.ts +10 -0
- package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts +15 -0
- package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts +12 -0
- package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts +7 -0
- package/lib/types/features/agent/chat/ModernAgentOutput/MessagesContainer.d.ts +9 -0
- package/lib/types/features/agent/chat/ModernAgentOutput/PlanPanel.d.ts +8 -0
- package/lib/types/features/agent/chat/ModernAgentOutput/SlideInPanel.d.ts +10 -0
- package/lib/types/features/agent/chat/ModernAgentOutput/SlidingMessages.d.ts +7 -0
- package/lib/types/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.d.ts +9 -0
- package/lib/types/features/agent/chat/ModernAgentOutput/StackedMessages.d.ts +7 -0
- package/lib/types/features/agent/chat/ModernAgentOutput/WorkstreamTabs.d.ts +21 -0
- package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts +23 -0
- package/lib/types/features/agent/chat/SlidingThinkingIndicator.d.ts +17 -0
- package/lib/types/features/agent/chat/WaitingMessages.d.ts +1 -0
- package/lib/types/features/agent/chat/index.d.ts +4 -0
- package/lib/types/features/agent/index.d.ts +2 -0
- package/lib/types/features/errors/PanelErrorBoundary.d.ts +4 -0
- package/lib/types/features/errors/RowErrorBoundary.d.ts +7 -0
- package/lib/types/features/errors/VertesiaErrorBoundary.d.ts +11 -0
- package/lib/types/features/errors/WidgetErrorBoundary.d.ts +4 -0
- package/lib/types/features/errors/index.d.ts +4 -0
- package/lib/types/features/facets/EnvironmentFacet.d.ts +9 -0
- package/lib/types/features/facets/FacetsNav.d.ts +6 -0
- package/lib/types/features/facets/InteractionFacet.d.ts +9 -0
- package/lib/types/features/facets/StringFacet.d.ts +10 -0
- package/lib/types/features/facets/StringListFacet.d.ts +10 -0
- package/lib/types/features/facets/TypeFacet.d.ts +15 -0
- package/lib/types/features/facets/TypeOptions.d.ts +3 -0
- package/lib/types/features/facets/UserFacet.d.ts +11 -0
- package/lib/types/features/facets/VFacetsNav.d.ts +7 -0
- package/lib/types/features/facets/VStringFacet.d.ts +15 -0
- package/lib/types/features/facets/VTypeFacet.d.ts +8 -0
- package/lib/types/features/facets/VUserFacet.d.ts +9 -0
- package/lib/types/features/facets/index.d.ts +11 -0
- package/lib/types/features/facets/utils.d.ts +3 -0
- package/lib/types/features/index.d.ts +9 -1
- package/lib/types/features/layout/GenericPageNavHeader.d.ts +12 -0
- package/lib/types/features/layout/NotFoundView.d.ts +4 -0
- package/lib/types/features/layout/index.d.ts +2 -0
- package/lib/types/features/magic-pdf/DownloadPopover.d.ts +6 -0
- package/lib/types/features/magic-pdf/MagicPdfView.d.ts +6 -0
- package/lib/types/features/magic-pdf/PageSlider.d.ts +7 -0
- package/lib/types/features/magic-pdf/PdfPageProvider.d.ts +28 -0
- package/lib/types/features/magic-pdf/TextPageView.d.ts +7 -0
- package/lib/types/features/magic-pdf/index.d.ts +1 -0
- package/lib/types/features/magic-pdf/types.d.ts +1 -0
- package/lib/types/features/magic-pdf/useResizeOnDrag.d.ts +8 -0
- package/lib/types/features/store/collections/BrowseCollectionView.d.ts +6 -0
- package/lib/types/features/store/collections/CollectionView.d.ts +5 -0
- package/lib/types/features/store/collections/CollectionsTable.d.ts +5 -0
- package/lib/types/features/store/collections/CollectionsView.d.ts +10 -0
- package/lib/types/features/store/collections/EditCollectionView.d.ts +7 -0
- package/lib/types/features/store/collections/index.d.ts +5 -0
- package/lib/types/features/store/index.d.ts +3 -0
- package/lib/types/features/store/objects/DocumentPreviewPanel.d.ts +7 -0
- package/lib/types/features/store/objects/DocumentSearchResults.d.ts +19 -0
- package/lib/types/features/store/objects/DocumentSelectionProvider.d.ts +32 -0
- package/lib/types/features/store/objects/DocumentTable.d.ts +20 -0
- package/lib/types/features/store/objects/ExportPropertiesModal.d.ts +11 -0
- package/lib/types/features/store/objects/components/ContentDispositionButton.d.ts +8 -0
- package/lib/types/features/store/objects/components/ContentOverview.d.ts +7 -0
- package/lib/types/features/store/objects/components/DocumentIcon.d.ts +10 -0
- package/lib/types/features/store/objects/components/DocumentInput.d.ts +7 -0
- package/lib/types/features/store/objects/components/PropertiesEditorModal.d.ts +7 -0
- package/lib/types/features/store/objects/components/SaveVersionConfirmModal.d.ts +8 -0
- package/lib/types/features/store/objects/components/SelectDocument.d.ts +8 -0
- package/lib/types/features/store/objects/components/SelectDocumentModal.d.ts +8 -0
- package/lib/types/features/store/objects/components/VectorSearchWidget.d.ts +10 -0
- package/lib/types/features/store/objects/components/index.d.ts +9 -0
- package/lib/types/features/store/objects/components/useDownloadObject.d.ts +3 -0
- package/lib/types/features/store/objects/index.d.ts +10 -0
- package/lib/types/features/store/objects/layout/DocumentTableColumn.d.ts +16 -0
- package/lib/types/features/store/objects/layout/documentLayout.d.ts +17 -0
- package/lib/types/features/store/objects/layout/index.d.ts +2 -0
- package/lib/types/features/store/objects/layout/renderers.d.ts +2 -0
- package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts +48 -0
- package/lib/types/features/store/objects/search/DocumentSearchProvider.d.ts +15 -0
- package/lib/types/features/store/objects/search/index.d.ts +2 -0
- package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts +25 -0
- package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts +27 -0
- package/lib/types/features/store/objects/selection/SelectionActions.d.ts +4 -0
- package/lib/types/features/store/objects/selection/actions/AddToCollectionAction.d.ts +3 -0
- package/lib/types/features/store/objects/selection/actions/ChangeTypeAction.d.ts +3 -0
- package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts +15 -0
- package/lib/types/features/store/objects/selection/actions/DeleteObjectsAction.d.ts +2 -0
- package/lib/types/features/store/objects/selection/actions/ExportPropertiesAction.d.ts +3 -0
- package/lib/types/features/store/objects/selection/actions/RemoveFromCollectionAction.d.ts +2 -0
- package/lib/types/features/store/objects/selection/actions/StartWorkflowComponent.d.ts +3 -0
- package/lib/types/features/store/objects/selection/actions/index.d.ts +7 -0
- package/lib/types/features/store/objects/selection/index.d.ts +4 -0
- package/lib/types/features/store/objects/upload/DocumentUploadModal.d.ts +37 -0
- package/lib/types/features/store/objects/upload/index.d.ts +3 -0
- package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts +29 -0
- package/lib/types/features/store/objects/upload/useUploadHandler.d.ts +49 -0
- package/lib/types/features/store/types/ContentObjectTypeView.d.ts +5 -0
- package/lib/types/features/store/types/ContentObjectTypesSearch.d.ts +5 -0
- package/lib/types/features/store/types/ContentObjectTypesTable.d.ts +7 -0
- package/lib/types/features/store/types/ContentObjectTypesView.d.ts +8 -0
- package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts +14 -0
- package/lib/types/features/store/types/ObjectSchemaEditor.d.ts +7 -0
- package/lib/types/features/store/types/SelectContentType.d.ts +10 -0
- package/lib/types/features/store/types/SelectContentTypeModal.d.ts +32 -0
- package/lib/types/features/store/types/TableLayoutEditor.d.ts +8 -0
- package/lib/types/features/store/types/index.d.ts +10 -0
- package/lib/types/features/store/types/search/ObjectTypeSearchContext.d.ts +35 -0
- package/lib/types/features/store/types/search/ObjectTypeSearchProvider.d.ts +10 -0
- package/lib/types/features/store/types/search/index.d.ts +2 -0
- package/lib/types/features/user/UserAvatar.d.ts +8 -0
- package/lib/types/features/user/UserInfo.d.ts +36 -0
- package/lib/types/features/user/index.d.ts +2 -0
- package/lib/types/features/utils/index.d.ts +3 -0
- package/lib/types/features/utils/mimeType.d.ts +4 -0
- package/lib/types/features/utils/rendition.d.ts +3 -0
- package/lib/types/features/utils/text.d.ts +2 -0
- package/lib/types/layout/Sidebar.d.ts +2 -1
- package/lib/types/widgets/Progress.d.ts +5 -0
- package/lib/types/widgets/form/schema.d.ts +4 -3
- package/lib/types/widgets/index.d.ts +4 -0
- package/lib/types/widgets/popover/Popover.d.ts +37 -0
- package/lib/types/widgets/popover/context.d.ts +7 -0
- package/lib/types/widgets/popover/index.d.ts +2 -0
- package/lib/types/widgets/popover/slots.d.ts +4 -0
- package/lib/types/widgets/properties/PropertiesView.d.ts +10 -0
- package/lib/types/widgets/properties/index.d.ts +1 -0
- package/lib/types/widgets/upload/DropZone.d.ts +40 -0
- package/lib/types/widgets/upload/UploadResultCategory.d.ts +25 -0
- package/lib/types/widgets/upload/UploadSummary.d.ts +37 -0
- package/lib/types/widgets/upload/index.d.ts +3 -0
- package/lib/vertesia-ui-core.js +1 -1
- package/lib/vertesia-ui-core.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-layout.js +1 -1
- package/lib/vertesia-ui-layout.js.map +1 -1
- package/lib/vertesia-ui-router.js.map +1 -1
- package/lib/vertesia-ui-session.js.map +1 -1
- package/lib/vertesia-ui-widgets.js +1 -1
- package/lib/vertesia-ui-widgets.js.map +1 -1
- package/package.json +13 -5
- package/src/core/components/FormItem.tsx +35 -0
- package/src/core/components/InputList.tsx +4 -3
- package/src/core/components/index.ts +3 -3
- package/src/core/components/shadcn/button.tsx +68 -8
- package/src/core/components/shadcn/dialog.tsx +3 -3
- package/src/core/components/shadcn/filters/DynamicLabel.tsx +45 -0
- package/src/core/components/shadcn/filters/comboBox.tsx +56 -52
- package/src/core/components/shadcn/filters/dateFilter.tsx +24 -25
- package/src/core/components/shadcn/filters/filterBar.tsx +53 -47
- package/src/core/components/shadcn/filters/filters.tsx +43 -30
- package/src/core/components/shadcn/filters/selectFilter.tsx +53 -34
- package/src/core/components/shadcn/filters/textFilter.tsx +6 -3
- package/src/core/components/shadcn/filters/types.ts +8 -1
- package/src/core/components/shadcn/input.tsx +5 -5
- package/src/core/components/shadcn/selectBox.tsx +138 -33
- package/src/core/components/styles.ts +1 -1
- package/src/core/components/table/index.tsx +8 -0
- package/src/core/index.ts +2 -1
- package/src/core/utils/cn.ts +6 -0
- package/src/core/utils/index.ts +1 -0
- package/src/features/agent/PayloadBuilder.tsx +208 -0
- package/src/features/agent/chat/AnimatedThinkingDots.tsx +350 -0
- package/src/features/agent/chat/JumpingDots.tsx +16 -0
- package/src/features/agent/chat/ModernAgentConversation.tsx +708 -0
- package/src/features/agent/chat/ModernAgentOutput/AllMessagesMixed.tsx +246 -0
- package/src/features/agent/chat/ModernAgentOutput/Header.tsx +231 -0
- package/src/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.tsx +66 -0
- package/src/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.tsx +282 -0
- package/src/features/agent/chat/ModernAgentOutput/MessageInput.tsx +125 -0
- package/src/features/agent/chat/ModernAgentOutput/MessageItem.tsx +562 -0
- package/src/features/agent/chat/ModernAgentOutput/MessagesContainer.tsx +51 -0
- package/src/features/agent/chat/ModernAgentOutput/PlanPanel.tsx +123 -0
- package/src/features/agent/chat/ModernAgentOutput/README-image-support.md +43 -0
- package/src/features/agent/chat/ModernAgentOutput/SlideInPanel.tsx +72 -0
- package/src/features/agent/chat/ModernAgentOutput/SlidingMessages.tsx +96 -0
- package/src/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.tsx +185 -0
- package/src/features/agent/chat/ModernAgentOutput/StackedMessages.tsx +33 -0
- package/src/features/agent/chat/ModernAgentOutput/WorkstreamTabs.tsx +167 -0
- package/src/features/agent/chat/ModernAgentOutput/utils.ts +195 -0
- package/src/features/agent/chat/ModernAgentOutput/with-types.d.ts +15 -0
- package/src/features/agent/chat/SlidingThinkingIndicator.tsx +459 -0
- package/src/features/agent/chat/WaitingMessages.ts +66 -0
- package/src/features/agent/chat/index.ts +4 -0
- package/src/features/agent/index.ts +2 -0
- package/src/features/errors/PanelErrorBoundary.tsx +30 -0
- package/src/features/errors/RowErrorBoundary.tsx +28 -0
- package/src/features/errors/VertesiaErrorBoundary.tsx +28 -0
- package/src/features/errors/WidgetErrorBoundary.tsx +27 -0
- package/src/features/errors/index.ts +4 -0
- package/src/features/facets/EnvironmentFacet.tsx +53 -0
- package/src/features/facets/FacetsNav.tsx +19 -0
- package/src/features/facets/InteractionFacet.tsx +53 -0
- package/src/features/facets/StringFacet.tsx +23 -0
- package/src/features/facets/StringListFacet.tsx +22 -0
- package/src/features/facets/TypeFacet.tsx +59 -0
- package/src/features/facets/TypeOptions.tsx +22 -0
- package/src/features/facets/UserFacet.tsx +61 -0
- package/src/features/facets/VFacetsNav.tsx +139 -0
- package/src/features/facets/VStringFacet.tsx +34 -0
- package/src/features/facets/VTypeFacet.tsx +72 -0
- package/src/features/facets/VUserFacet.tsx +47 -0
- package/src/features/facets/index.ts +11 -0
- package/src/features/facets/utils.tsx +9 -0
- package/src/features/index.ts +9 -1
- package/src/features/layout/GenericPageNavHeader.tsx +48 -0
- package/src/features/layout/NotFoundView.tsx +11 -0
- package/src/features/layout/index.ts +2 -0
- package/src/features/magic-pdf/DownloadPopover.tsx +32 -0
- package/src/features/magic-pdf/MagicPdfView.tsx +102 -0
- package/src/features/magic-pdf/PageSlider.tsx +112 -0
- package/src/features/magic-pdf/PdfPageProvider.tsx +229 -0
- package/src/features/magic-pdf/TextPageView.tsx +65 -0
- package/src/features/magic-pdf/index.ts +1 -0
- package/src/features/magic-pdf/types.ts +1 -0
- package/src/features/magic-pdf/useResizeOnDrag.ts +42 -0
- package/src/features/store/collections/BrowseCollectionView.tsx +45 -0
- package/src/features/store/collections/CollectionView.tsx +94 -0
- package/src/features/store/collections/CollectionsTable.tsx +115 -0
- package/src/features/store/collections/CollectionsView.tsx +166 -0
- package/src/features/store/collections/EditCollectionView.tsx +253 -0
- package/src/features/store/collections/index.ts +5 -0
- package/src/features/store/index.ts +3 -0
- package/src/features/store/objects/DocumentPreviewPanel.tsx +417 -0
- package/src/features/store/objects/DocumentSearchResults.tsx +209 -0
- package/src/features/store/objects/DocumentSelectionProvider.tsx +99 -0
- package/src/features/store/objects/DocumentTable.tsx +409 -0
- package/src/features/store/objects/ExportPropertiesModal.tsx +89 -0
- package/src/features/store/objects/components/ContentDispositionButton.tsx +45 -0
- package/src/features/store/objects/components/ContentOverview.tsx +466 -0
- package/src/features/store/objects/components/DocumentIcon.tsx +87 -0
- package/src/features/store/objects/components/DocumentInput.tsx +90 -0
- package/src/features/store/objects/components/PropertiesEditorModal.tsx +253 -0
- package/src/features/store/objects/components/SaveVersionConfirmModal.tsx +136 -0
- package/src/features/store/objects/components/SelectDocument.tsx +69 -0
- package/src/features/store/objects/components/SelectDocumentModal.tsx +20 -0
- package/src/features/store/objects/components/VectorSearchWidget.tsx +115 -0
- package/src/features/store/objects/components/index.ts +9 -0
- package/src/features/store/objects/components/useDownloadObject.ts +24 -0
- package/src/features/store/objects/index.ts +10 -0
- package/src/features/store/objects/layout/DocumentTableColumn.tsx +84 -0
- package/src/features/store/objects/layout/documentLayout.tsx +69 -0
- package/src/features/store/objects/layout/index.ts +2 -0
- package/src/features/store/objects/layout/knowledge.md +238 -0
- package/src/features/store/objects/layout/renderers.tsx +139 -0
- package/src/features/store/objects/search/DocumentSearchContext.ts +181 -0
- package/src/features/store/objects/search/DocumentSearchProvider.tsx +54 -0
- package/src/features/store/objects/search/index.ts +2 -0
- package/src/features/store/objects/selection/ObjectsActionContext.tsx +196 -0
- package/src/features/store/objects/selection/ObjectsActionSpec.ts +31 -0
- package/src/features/store/objects/selection/SelectionActions.tsx +160 -0
- package/src/features/store/objects/selection/actions/AddToCollectionAction.tsx +114 -0
- package/src/features/store/objects/selection/actions/ChangeTypeAction.tsx +76 -0
- package/src/features/store/objects/selection/actions/ConfirmAction.tsx +46 -0
- package/src/features/store/objects/selection/actions/DeleteObjectsAction.tsx +77 -0
- package/src/features/store/objects/selection/actions/ExportPropertiesAction.tsx +117 -0
- package/src/features/store/objects/selection/actions/RemoveFromCollectionAction.tsx +77 -0
- package/src/features/store/objects/selection/actions/StartWorkflowComponent.tsx +122 -0
- package/src/features/store/objects/selection/actions/index.ts +7 -0
- package/src/features/store/objects/selection/index.ts +4 -0
- package/src/features/store/objects/upload/DocumentUploadModal.tsx +970 -0
- package/src/features/store/objects/upload/index.ts +3 -0
- package/src/features/store/objects/upload/useSmartFileUploadProcessing.ts +250 -0
- package/src/features/store/objects/upload/useUploadHandler.ts +325 -0
- package/src/features/store/types/ContentObjectTypeView.tsx +244 -0
- package/src/features/store/types/ContentObjectTypesSearch.tsx +111 -0
- package/src/features/store/types/ContentObjectTypesTable.tsx +38 -0
- package/src/features/store/types/ContentObjectTypesView.tsx +71 -0
- package/src/features/store/types/CreateOrUpdateTypeModal.tsx +70 -0
- package/src/features/store/types/ObjectSchemaEditor.tsx +127 -0
- package/src/features/store/types/SelectContentType.tsx +88 -0
- package/src/features/store/types/SelectContentTypeModal.tsx +142 -0
- package/src/features/store/types/TableLayoutEditor.tsx +104 -0
- package/src/features/store/types/index.ts +10 -0
- package/src/features/store/types/search/ObjectTypeSearchContext.tsx +119 -0
- package/src/features/store/types/search/ObjectTypeSearchProvider.tsx +24 -0
- package/src/features/store/types/search/index.ts +2 -0
- package/src/features/user/UserAvatar.tsx +34 -0
- package/src/features/user/UserInfo.tsx +215 -0
- package/src/features/user/index.ts +2 -0
- package/src/features/utils/index.ts +3 -0
- package/src/features/utils/mimeType.ts +9 -0
- package/src/features/utils/rendition.ts +75 -0
- package/src/features/utils/text.ts +10 -0
- package/src/layout/FullHeightLayout.tsx +1 -1
- package/src/layout/Sidebar.tsx +12 -2
- package/src/widgets/Progress.tsx +10 -0
- package/src/widgets/codemirror/CodeMirrorEditor.tsx +1 -1
- package/src/widgets/form/Form.tsx +2 -2
- package/src/widgets/form/schema.ts +14 -7
- package/src/widgets/index.ts +5 -1
- package/src/widgets/popover/Popover.tsx +171 -0
- package/src/widgets/popover/context.ts +15 -0
- package/src/widgets/popover/index.ts +2 -0
- package/src/widgets/popover/slots.ts +24 -0
- package/src/widgets/properties/PropertiesView.tsx +26 -0
- package/src/widgets/properties/index.ts +1 -0
- package/src/widgets/schema-editor/JSONSchemaEditorModal.tsx +1 -2
- package/src/widgets/schema-editor/editor/Editable.tsx +12 -13
- package/src/widgets/schema-editor/editor/PropertyViewer.tsx +1 -1
- package/src/widgets/schema-editor/editor/SchemaEditor.tsx +4 -4
- package/src/widgets/upload/DropZone.tsx +257 -0
- package/src/widgets/upload/UploadResultCategory.tsx +81 -0
- package/src/widgets/upload/UploadSummary.tsx +116 -0
- package/src/widgets/upload/index.ts +3 -0
- package/lib/esm/code/index.js +0 -3
- package/lib/esm/code/index.js.map +0 -1
- package/lib/esm/core/components/Input.js +0 -16
- package/lib/esm/core/components/Input.js.map +0 -1
- package/lib/esm/form/index.js +0 -3
- package/lib/esm/form/index.js.map +0 -1
- package/lib/types/code/index.d.ts +0 -0
- package/lib/types/core/components/Input.d.ts +0 -8
- package/lib/types/form/index.d.ts +0 -0
- package/lib/vertesia-ui-code.js +0 -2
- package/lib/vertesia-ui-code.js.map +0 -1
- package/lib/vertesia-ui-form.js +0 -2
- package/lib/vertesia-ui-form.js.map +0 -1
- package/src/code/index.ts +0 -1
- package/src/core/components/Input.tsx +0 -43
- package/src/form/index.ts +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Children, FunctionComponent, ReactElement, ReactNode, isValidElement } from "react";
|
|
2
|
+
|
|
3
|
+
const __SLOT_NAME = Symbol('__SLOT_NAME')
|
|
4
|
+
|
|
5
|
+
export function processOneSlot(child: ReactNode, out: ReactNode[], slots: Record<string, ReactElement>) {
|
|
6
|
+
let slotName: string | undefined;
|
|
7
|
+
if (isValidElement(child) && (slotName = (child as any).type[__SLOT_NAME])) {
|
|
8
|
+
slots[slotName] = child;
|
|
9
|
+
} else {
|
|
10
|
+
out.push(child);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export function processSlots(children: ReactNode | Iterable<ReactNode>, slots: Record<string, ReactElement>): ReactNode | ReactNode[] {
|
|
14
|
+
const out: ReactNode[] = [];
|
|
15
|
+
|
|
16
|
+
Children.forEach(children, child => {
|
|
17
|
+
processOneSlot(child, out, slots);
|
|
18
|
+
})
|
|
19
|
+
return out.length > 1 ? out : out[0];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function defineSlot(name: string, component: FunctionComponent<any>) {
|
|
23
|
+
(component as any)[__SLOT_NAME] = name;
|
|
24
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Table } from "@vertesia/ui/core";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
interface PropertiesViewProps {
|
|
5
|
+
className?: string,
|
|
6
|
+
properties: { name: string, value: React.ReactNode, description?: string }[]
|
|
7
|
+
}
|
|
8
|
+
export function PropertiesView({ className, properties }: PropertiesViewProps) {
|
|
9
|
+
return (
|
|
10
|
+
<Table className={className}>
|
|
11
|
+
<tbody>
|
|
12
|
+
{
|
|
13
|
+
properties.map((property) => (
|
|
14
|
+
<tr key={property.name}>
|
|
15
|
+
<td className='w-1/3 font-semibold' >
|
|
16
|
+
<span>{property.name}</span>
|
|
17
|
+
</td>
|
|
18
|
+
<td className='w-2/3'>{property.value ?? 'undefined'}</td>
|
|
19
|
+
</tr>
|
|
20
|
+
))
|
|
21
|
+
}
|
|
22
|
+
</tbody>
|
|
23
|
+
|
|
24
|
+
</Table>
|
|
25
|
+
)
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./PropertiesView"
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { json } from "@codemirror/lang-json";
|
|
2
2
|
import { CodeMirrorEditor, EditorApi } from "../codemirror";
|
|
3
|
-
import { Button, VModal, VModalBody, VModalFooter, VModalTitle } from "@vertesia/ui/core";
|
|
4
|
-
import { useToast } from "@vertesia/ui/core";
|
|
3
|
+
import { Button, VModal, VModalBody, VModalFooter, VModalTitle, useToast } from "@vertesia/ui/core";
|
|
5
4
|
import { basicSetup } from "codemirror";
|
|
6
5
|
import { useMemo, useRef } from "react";
|
|
7
6
|
import { ManagedSchema } from "./ManagedSchema.js";
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import clsx from 'clsx';
|
|
2
2
|
import { ChangeEvent, ComponentType, KeyboardEvent, useEffect, useRef, useState } from 'react';
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
import { Styles } from '@vertesia/ui/core';
|
|
6
|
-
import { useClickOutside, useFlag } from '@vertesia/ui/core';
|
|
4
|
+
import { SquarePen, Trash2 } from 'lucide-react';
|
|
5
|
+
import { Button, Styles, useClickOutside, useFlag } from '@vertesia/ui/core';
|
|
7
6
|
|
|
8
|
-
const VIEW_BOX = "block
|
|
9
|
-
const VIEW_BOX_HOVER = `${VIEW_BOX} hover:shadow-xs hover:ring-1 hover:ring-inset hover:ring-
|
|
10
|
-
const EDIT_BOX = `${VIEW_BOX} shadow-xs ring-1 ring-inset ring-
|
|
7
|
+
const VIEW_BOX = "block text-sm sm:leading-6 rounded-md border-0 py-1.5 px-4"
|
|
8
|
+
const VIEW_BOX_HOVER = `${VIEW_BOX} hover:shadow-xs hover:ring-1 hover:ring-inset hover:ring-ring`
|
|
9
|
+
const EDIT_BOX = `${VIEW_BOX} shadow-xs ring-1 ring-inset ring-ring`
|
|
11
10
|
|
|
12
11
|
export interface DataViewerProps<T> {
|
|
13
12
|
value: T | undefined;
|
|
@@ -78,7 +77,7 @@ export function Editable<T>({ value, onChange, onDelete,
|
|
|
78
77
|
};
|
|
79
78
|
|
|
80
79
|
return (
|
|
81
|
-
<div>
|
|
80
|
+
<div className="">
|
|
82
81
|
{
|
|
83
82
|
isOn && !readonly ?
|
|
84
83
|
<DataEdit
|
|
@@ -125,7 +124,7 @@ function DataView<T>({ viewer: Viewer, value, onEdit, editOnClick, outlineOnHove
|
|
|
125
124
|
}
|
|
126
125
|
};
|
|
127
126
|
|
|
128
|
-
const btnStyle = '
|
|
127
|
+
const btnStyle = 'invisible group-hover:visible';
|
|
129
128
|
|
|
130
129
|
return (
|
|
131
130
|
<div tabIndex={0} onKeyUp={onKeyUp} onClick={onClick} className={clsx("flex justify-start items-center group", outlineOnHover ? VIEW_BOX_HOVER : VIEW_BOX, { 'cursor-pointer': editOnClick })}>
|
|
@@ -133,15 +132,15 @@ function DataView<T>({ viewer: Viewer, value, onEdit, editOnClick, outlineOnHove
|
|
|
133
132
|
<div className='ml-auto flex space-x-2'>
|
|
134
133
|
{
|
|
135
134
|
!readonly && onDelete &&
|
|
136
|
-
<
|
|
135
|
+
<Button variant="ghost" size="sm" className={btnStyle} onClick={onDelete}>
|
|
137
136
|
<Trash2 className="size-4" />
|
|
138
|
-
</
|
|
137
|
+
</Button>
|
|
139
138
|
}
|
|
140
139
|
{
|
|
141
140
|
!readonly ?
|
|
142
|
-
<
|
|
143
|
-
<
|
|
144
|
-
</
|
|
141
|
+
<Button variant="ghost" size="sm" className={btnStyle} onClick={onEdit}>
|
|
142
|
+
<SquarePen className="size-4" />
|
|
143
|
+
</Button>
|
|
145
144
|
: null
|
|
146
145
|
}
|
|
147
146
|
</div>
|
|
@@ -9,7 +9,7 @@ export function PropertyViewer({ value }: DataViewerProps<EditableSchemaProperty
|
|
|
9
9
|
<div>
|
|
10
10
|
{value.name || ''}
|
|
11
11
|
</div>
|
|
12
|
-
<div className='ml-2 text-sm text-
|
|
12
|
+
<div className='ml-2 text-sm text-muted'>{value.type || ''}</div>
|
|
13
13
|
</div>
|
|
14
14
|
)
|
|
15
15
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
|
|
3
3
|
import { ChevronDown, ChevronRight, Plus } from 'lucide-react';
|
|
4
|
-
import { useToast } from '@vertesia/ui/core';
|
|
4
|
+
import { Button, useToast } from '@vertesia/ui/core';
|
|
5
5
|
|
|
6
6
|
import { ManagedSchema, SchemaNode } from '../ManagedSchema.js';
|
|
7
7
|
import { TypeNames } from '../type-signature.js';
|
|
@@ -154,8 +154,8 @@ function AddPropertyButton({ parent }: AddPropertyButtonProps) {
|
|
|
154
154
|
parent.reloadTree();
|
|
155
155
|
}
|
|
156
156
|
return (
|
|
157
|
-
<
|
|
158
|
-
<Plus className='size-
|
|
159
|
-
</
|
|
157
|
+
<Button variant="outline" onClick={add}>
|
|
158
|
+
<Plus className='size-4' />Add property
|
|
159
|
+
</Button>
|
|
160
160
|
)
|
|
161
161
|
}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { useState, useRef } from "react";
|
|
2
|
+
import { UploadIcon } from "lucide-react";
|
|
3
|
+
import { Button } from "@vertesia/ui/core";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Props for the DropZone component
|
|
7
|
+
*/
|
|
8
|
+
export interface DropZoneProps {
|
|
9
|
+
/**
|
|
10
|
+
* Callback when files are dropped or selected
|
|
11
|
+
*/
|
|
12
|
+
onDrop: (files: File[], customMessage?: { count: number; message: string }) => void;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Message to display in the drop zone
|
|
16
|
+
*/
|
|
17
|
+
message: string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Label for the upload button
|
|
21
|
+
*/
|
|
22
|
+
buttonLabel?: string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Allow selection of folders
|
|
26
|
+
* @default true
|
|
27
|
+
*/
|
|
28
|
+
allowFolders?: boolean;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* CSS class to apply to the container
|
|
32
|
+
*/
|
|
33
|
+
className?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* A reusable drop zone component for file uploads
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* <DropZone
|
|
41
|
+
* onDrop={handleFileSelect}
|
|
42
|
+
* message="Drag and drop files here"
|
|
43
|
+
* buttonLabel="Select Files"
|
|
44
|
+
* />
|
|
45
|
+
*/
|
|
46
|
+
export function DropZone({
|
|
47
|
+
onDrop,
|
|
48
|
+
message,
|
|
49
|
+
buttonLabel = "Upload Files",
|
|
50
|
+
allowFolders = true,
|
|
51
|
+
className = ""
|
|
52
|
+
}: DropZoneProps) {
|
|
53
|
+
const [isDragging, setIsDragging] = useState(false);
|
|
54
|
+
const inputRef = useRef<HTMLInputElement>(null);
|
|
55
|
+
const dropZoneRef = useRef<HTMLDivElement>(null);
|
|
56
|
+
|
|
57
|
+
const handleDragOver = (e: React.DragEvent) => {
|
|
58
|
+
e.preventDefault();
|
|
59
|
+
if (e.dataTransfer.types.includes('Files')) {
|
|
60
|
+
setIsDragging(true);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const handleDragLeave = (e: React.DragEvent) => {
|
|
65
|
+
e.preventDefault();
|
|
66
|
+
|
|
67
|
+
// Only set dragging to false if leaving the container (not entering a child)
|
|
68
|
+
if (dropZoneRef.current && !dropZoneRef.current.contains(e.relatedTarget as Node)) {
|
|
69
|
+
setIsDragging(false);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const handleDrop = async (e: React.DragEvent) => {
|
|
74
|
+
e.preventDefault();
|
|
75
|
+
setIsDragging(false);
|
|
76
|
+
|
|
77
|
+
if (e.dataTransfer.items && e.dataTransfer.items.length > 0) {
|
|
78
|
+
// Handle folders using the DataTransferItemList API which supports directory reading
|
|
79
|
+
const items = Array.from(e.dataTransfer.items);
|
|
80
|
+
const files: File[] = [];
|
|
81
|
+
const folders = new Set<string>();
|
|
82
|
+
|
|
83
|
+
const processEntry = async (entry: any) => {
|
|
84
|
+
if (entry.isFile) {
|
|
85
|
+
// Get file
|
|
86
|
+
const file = await new Promise<File>((resolve) => {
|
|
87
|
+
entry.file((file: File) => {
|
|
88
|
+
// Store full path in the file object for location use
|
|
89
|
+
Object.defineProperty(file, "webkitRelativePath", {
|
|
90
|
+
writable: true,
|
|
91
|
+
value: entry.fullPath.substring(1), // Remove leading slash
|
|
92
|
+
});
|
|
93
|
+
resolve(file);
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
// Skip hidden files
|
|
98
|
+
if (!file.name.startsWith(".") && file.size > 0) {
|
|
99
|
+
files.push(file);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// Add folder path to tracking
|
|
103
|
+
const folderPath = entry.fullPath.substring(1).split("/").slice(0, -1).join("/");
|
|
104
|
+
if (folderPath) {
|
|
105
|
+
folders.add(folderPath);
|
|
106
|
+
}
|
|
107
|
+
} else if (entry.isDirectory) {
|
|
108
|
+
// Get folder reader
|
|
109
|
+
const reader = entry.createReader();
|
|
110
|
+
const entries = await new Promise<any[]>((resolve) => {
|
|
111
|
+
reader.readEntries((entries: any[]) => {
|
|
112
|
+
resolve(entries);
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
// Process all entries
|
|
117
|
+
await Promise.all(entries.map(processEntry));
|
|
118
|
+
|
|
119
|
+
// Add this folder to tracking
|
|
120
|
+
const folderPath = entry.fullPath.substring(1);
|
|
121
|
+
if (folderPath) {
|
|
122
|
+
folders.add(folderPath);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
try {
|
|
128
|
+
// Process all dropped items
|
|
129
|
+
await Promise.all(
|
|
130
|
+
items.map((item) => {
|
|
131
|
+
const entry = item.webkitGetAsEntry ? item.webkitGetAsEntry() : item;
|
|
132
|
+
if (entry) {
|
|
133
|
+
return processEntry(entry);
|
|
134
|
+
}
|
|
135
|
+
return Promise.resolve();
|
|
136
|
+
}),
|
|
137
|
+
);
|
|
138
|
+
|
|
139
|
+
if (files.length > 0) {
|
|
140
|
+
const topLevelFolders = new Set(
|
|
141
|
+
Array.from(folders)
|
|
142
|
+
.map((path) => path.split("/")[0])
|
|
143
|
+
.filter(Boolean),
|
|
144
|
+
);
|
|
145
|
+
|
|
146
|
+
const folderCount = topLevelFolders.size;
|
|
147
|
+
const fileCount = files.length;
|
|
148
|
+
|
|
149
|
+
let message = "";
|
|
150
|
+
if (folderCount > 0) {
|
|
151
|
+
message =
|
|
152
|
+
folderCount === 1
|
|
153
|
+
? `Preparing to upload 1 folder with ${fileCount} files...`
|
|
154
|
+
: `Preparing to upload ${folderCount} folders with ${fileCount} files...`;
|
|
155
|
+
} else {
|
|
156
|
+
message = `Preparing to upload ${fileCount} file${fileCount === 1 ? "" : "s"}...`;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
onDrop(files, { count: files.length, message });
|
|
160
|
+
}
|
|
161
|
+
} catch (error) {
|
|
162
|
+
console.error("Error processing dropped files:", error);
|
|
163
|
+
// Fallback to simple file array if folder processing fails
|
|
164
|
+
const fileArray = Array.from(e.dataTransfer.files);
|
|
165
|
+
if (fileArray.length > 0) {
|
|
166
|
+
onDrop(fileArray);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
} else if (e.dataTransfer.files && e.dataTransfer.files.length > 0) {
|
|
170
|
+
// Fallback for browsers that don't support items API
|
|
171
|
+
const fileArray = Array.from(e.dataTransfer.files);
|
|
172
|
+
onDrop(fileArray);
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
|
177
|
+
if (e.target.files && e.target.files.length > 0) {
|
|
178
|
+
const fileArray = Array.from(e.target.files);
|
|
179
|
+
|
|
180
|
+
// Check if there are directories (with webkitRelativePath)
|
|
181
|
+
const hasDirectories = fileArray.some(
|
|
182
|
+
(file) => (file as any).webkitRelativePath && (file as any).webkitRelativePath.includes("/"),
|
|
183
|
+
);
|
|
184
|
+
|
|
185
|
+
if (hasDirectories) {
|
|
186
|
+
// Count the unique top-level directories
|
|
187
|
+
const topLevelDirs = new Set(
|
|
188
|
+
fileArray.map((file) => (file as any).webkitRelativePath?.split("/")[0]).filter(Boolean),
|
|
189
|
+
);
|
|
190
|
+
|
|
191
|
+
const folderCount = topLevelDirs.size;
|
|
192
|
+
const fileCount = fileArray.length;
|
|
193
|
+
|
|
194
|
+
// Create custom message with folder info
|
|
195
|
+
const formattedMessage =
|
|
196
|
+
folderCount === 1
|
|
197
|
+
? `Preparing to upload 1 folder with ${fileCount} files...`
|
|
198
|
+
: `Preparing to upload ${folderCount} folders with ${fileCount} files...`;
|
|
199
|
+
|
|
200
|
+
const customMessage = {
|
|
201
|
+
count: fileArray.length,
|
|
202
|
+
message: formattedMessage,
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
onDrop(fileArray, customMessage);
|
|
206
|
+
} else {
|
|
207
|
+
// Regular file upload
|
|
208
|
+
const feedback = {
|
|
209
|
+
count: fileArray.length,
|
|
210
|
+
message: `Preparing to upload ${fileArray.length} file${fileArray.length === 1 ? "" : "s"}...`,
|
|
211
|
+
};
|
|
212
|
+
onDrop(fileArray, feedback);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
const openFileSelector = () => {
|
|
218
|
+
if (inputRef.current) {
|
|
219
|
+
inputRef.current.click();
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
return (
|
|
224
|
+
<div
|
|
225
|
+
className={`flex flex-col items-center justify-center py-12 border-2 rounded-lg transition-colors ${isDragging ? "border-color-primary bg-color-primary/10" : "border-dashed border-color-border"
|
|
226
|
+
} ${className}`}
|
|
227
|
+
onDragOver={handleDragOver}
|
|
228
|
+
onDragLeave={handleDragLeave}
|
|
229
|
+
onDrop={handleDrop}
|
|
230
|
+
>
|
|
231
|
+
<UploadIcon
|
|
232
|
+
className={`h-12 w-12 mb-3 transition-colors ${isDragging ? "text-primary" : "text-muted/50"}`}
|
|
233
|
+
/>
|
|
234
|
+
<p className="text-color-muted-foreground">{message}</p>
|
|
235
|
+
|
|
236
|
+
<div className="mt-4 text-center">
|
|
237
|
+
<div className="text-sm text-muted mb-2">Drag and drop files{allowFolders ? " or folders" : ""} here, or</div>
|
|
238
|
+
<Button onClick={openFileSelector}>
|
|
239
|
+
<UploadIcon className="h-4 w-4 mr-2" />
|
|
240
|
+
{buttonLabel}
|
|
241
|
+
</Button>
|
|
242
|
+
|
|
243
|
+
{/* Hidden file input that accepts both files and folders */}
|
|
244
|
+
<input
|
|
245
|
+
type="file"
|
|
246
|
+
ref={inputRef}
|
|
247
|
+
onChange={handleChange}
|
|
248
|
+
multiple
|
|
249
|
+
// @ts-expect-error: webkitdirectory is a non-standard attribute
|
|
250
|
+
webkitdirectory={allowFolders ? "" : undefined}
|
|
251
|
+
directory={allowFolders ? "" : undefined}
|
|
252
|
+
className="hidden"
|
|
253
|
+
/>
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
);
|
|
257
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { CheckCircleIcon } from "lucide-react";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Props for the UploadResultCategory component
|
|
6
|
+
*/
|
|
7
|
+
export interface UploadResultCategoryProps {
|
|
8
|
+
/** Category title */
|
|
9
|
+
title: string;
|
|
10
|
+
/** Number of items in this category */
|
|
11
|
+
count: number;
|
|
12
|
+
/** Icon to display next to the title */
|
|
13
|
+
icon?: React.ReactNode;
|
|
14
|
+
/** List of items to display */
|
|
15
|
+
items: string[];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Displays a collapsible category of upload results
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* <UploadResultCategory
|
|
23
|
+
* title="Successfully Uploaded"
|
|
24
|
+
* count={3}
|
|
25
|
+
* icon={<CheckCircleIcon className="h-4 w-4 text-green-500" />}
|
|
26
|
+
* items={["document1.pdf", "document2.pdf", "document3.pdf"]}
|
|
27
|
+
* />
|
|
28
|
+
*/
|
|
29
|
+
export function UploadResultCategory({
|
|
30
|
+
title,
|
|
31
|
+
count,
|
|
32
|
+
icon = <CheckCircleIcon className="h-4 w-4 text-green-500" />,
|
|
33
|
+
items
|
|
34
|
+
}: UploadResultCategoryProps) {
|
|
35
|
+
const [isExpanded, setIsExpanded] = useState(false);
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<div className="border border-color-border rounded-md overflow-hidden">
|
|
39
|
+
<div
|
|
40
|
+
className="flex items-center justify-between p-3 bg-color-muted/10 cursor-pointer"
|
|
41
|
+
onClick={() => setIsExpanded(!isExpanded)}
|
|
42
|
+
>
|
|
43
|
+
<div className="flex items-center">
|
|
44
|
+
<span className="mr-2">{icon}</span>
|
|
45
|
+
<span className="font-medium">{title}</span>
|
|
46
|
+
<span className="ml-2 px-2 py-0.5 bg-color-muted/20 rounded-full text-xs">
|
|
47
|
+
{count}
|
|
48
|
+
</span>
|
|
49
|
+
</div>
|
|
50
|
+
<button className="text-muted">
|
|
51
|
+
<svg
|
|
52
|
+
className={`h-5 w-5 transition-transform ${isExpanded ? 'transform rotate-180' : ''}`}
|
|
53
|
+
fill="none"
|
|
54
|
+
viewBox="0 0 24 24"
|
|
55
|
+
stroke="currentColor"
|
|
56
|
+
>
|
|
57
|
+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M19 9l-7 7-7-7" />
|
|
58
|
+
</svg>
|
|
59
|
+
</button>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
{isExpanded && (
|
|
63
|
+
<div className="p-3 border-t border-color-border max-h-48 overflow-y-auto">
|
|
64
|
+
{items.length > 0 ? (
|
|
65
|
+
<ul className="space-y-1">
|
|
66
|
+
{items.map((item, index) => (
|
|
67
|
+
<li key={index} className="text-sm py-1 px-2 rounded hover:bg-color-muted/10">
|
|
68
|
+
{item}
|
|
69
|
+
</li>
|
|
70
|
+
))}
|
|
71
|
+
</ul>
|
|
72
|
+
) : (
|
|
73
|
+
<div className="text-sm text-muted py-2">
|
|
74
|
+
No items to display
|
|
75
|
+
</div>
|
|
76
|
+
)}
|
|
77
|
+
</div>
|
|
78
|
+
)}
|
|
79
|
+
</div>
|
|
80
|
+
);
|
|
81
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { CheckCircleIcon, AlertCircleIcon, XCircleIcon } from "lucide-react";
|
|
2
|
+
import { UploadResultCategory } from "./UploadResultCategory";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Processed file information
|
|
6
|
+
*/
|
|
7
|
+
export interface ProcessedFile {
|
|
8
|
+
/** The name of the file */
|
|
9
|
+
name: string;
|
|
10
|
+
/** The status of the file upload */
|
|
11
|
+
status: 'success' | 'updated' | 'skipped' | 'failed';
|
|
12
|
+
/** Error message if status is 'failed' */
|
|
13
|
+
error?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Props for the UploadSummary component
|
|
18
|
+
*/
|
|
19
|
+
export interface UploadSummaryProps {
|
|
20
|
+
/** List of processed files */
|
|
21
|
+
files: ProcessedFile[];
|
|
22
|
+
/** Optional class name for styling */
|
|
23
|
+
className?: string;
|
|
24
|
+
/** Optional folder location where files were uploaded */
|
|
25
|
+
location?: string;
|
|
26
|
+
/** Optional collection name where files were uploaded */
|
|
27
|
+
collection?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Displays a summary of upload results with collapsible categories
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* <UploadSummary
|
|
35
|
+
* files={[
|
|
36
|
+
* { name: "document1.pdf", status: "success" },
|
|
37
|
+
* { name: "document2.pdf", status: "skipped" }
|
|
38
|
+
* ]}
|
|
39
|
+
* location="/reports/2023"
|
|
40
|
+
* />
|
|
41
|
+
*/
|
|
42
|
+
export function UploadSummary({ files, className = "", location, collection }: UploadSummaryProps) {
|
|
43
|
+
// Group files by status
|
|
44
|
+
const successFiles = files.filter(f => f.status === 'success');
|
|
45
|
+
const updatedFiles = files.filter(f => f.status === 'updated');
|
|
46
|
+
const skippedFiles = files.filter(f => f.status === 'skipped');
|
|
47
|
+
const failedFiles = files.filter(f => f.status === 'failed');
|
|
48
|
+
|
|
49
|
+
// Calculate counts
|
|
50
|
+
const successCount = successFiles.length;
|
|
51
|
+
const updatedCount = updatedFiles.length;
|
|
52
|
+
const skippedCount = skippedFiles.length;
|
|
53
|
+
const failedCount = failedFiles.length;
|
|
54
|
+
const totalCount = files.length;
|
|
55
|
+
|
|
56
|
+
return (
|
|
57
|
+
<div className={`flex flex-col py-6 ${className}`}>
|
|
58
|
+
<div className="flex items-center mb-4">
|
|
59
|
+
<div className="w-12 h-12 mr-4 rounded-full bg-color-success/10 flex items-center justify-center">
|
|
60
|
+
<CheckCircleIcon className="h-6 w-6 text-color-success" />
|
|
61
|
+
</div>
|
|
62
|
+
<div>
|
|
63
|
+
<p className="text-lg font-medium text-color-success">Upload Complete</p>
|
|
64
|
+
<p className="text-muted">
|
|
65
|
+
{totalCount} file{totalCount !== 1 ? "s" : ""} processed
|
|
66
|
+
{collection ? ` in collection '${collection}'` : ""}
|
|
67
|
+
{location ? ` in folder '${location}'` : ""}
|
|
68
|
+
</p>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
{/* Upload results categories */}
|
|
73
|
+
<div className="space-y-3 mt-2">
|
|
74
|
+
{/* Successful uploads */}
|
|
75
|
+
{successCount > 0 && (
|
|
76
|
+
<UploadResultCategory
|
|
77
|
+
title="Successfully Uploaded"
|
|
78
|
+
count={successCount}
|
|
79
|
+
icon={<CheckCircleIcon className="h-4 w-4 text-green-500" />}
|
|
80
|
+
items={successFiles.map(f => f.name)}
|
|
81
|
+
/>
|
|
82
|
+
)}
|
|
83
|
+
|
|
84
|
+
{/* Updated files */}
|
|
85
|
+
{updatedCount > 0 && (
|
|
86
|
+
<UploadResultCategory
|
|
87
|
+
title="Successfully Updated"
|
|
88
|
+
count={updatedCount}
|
|
89
|
+
icon={<CheckCircleIcon className="h-4 w-4 text-blue-500" />}
|
|
90
|
+
items={updatedFiles.map(f => f.name)}
|
|
91
|
+
/>
|
|
92
|
+
)}
|
|
93
|
+
|
|
94
|
+
{/* Skipped files */}
|
|
95
|
+
{skippedCount > 0 && (
|
|
96
|
+
<UploadResultCategory
|
|
97
|
+
title="Skipped (Already Existed)"
|
|
98
|
+
count={skippedCount}
|
|
99
|
+
icon={<AlertCircleIcon className="h-4 w-4 text-amber-500" />}
|
|
100
|
+
items={skippedFiles.map(f => f.name)}
|
|
101
|
+
/>
|
|
102
|
+
)}
|
|
103
|
+
|
|
104
|
+
{/* Failed uploads */}
|
|
105
|
+
{failedCount > 0 && (
|
|
106
|
+
<UploadResultCategory
|
|
107
|
+
title="Failed to Upload"
|
|
108
|
+
count={failedCount}
|
|
109
|
+
icon={<XCircleIcon className="h-4 w-4 text-red-500" />}
|
|
110
|
+
items={failedFiles.map(f => f.name)}
|
|
111
|
+
/>
|
|
112
|
+
)}
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
);
|
|
116
|
+
}
|
package/lib/esm/code/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/code/index.ts"],"names":[],"mappings":";AAAA,uBAAuB"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import clsx from 'clsx';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { X } from 'lucide-react';
|
|
5
|
-
import { Styles } from './styles.js';
|
|
6
|
-
const Input = React.forwardRef(({ unstyled, value, onChange, className, type, ...others }, ref) => {
|
|
7
|
-
const _onChange = (ev) => {
|
|
8
|
-
onChange && onChange(ev.target.value);
|
|
9
|
-
};
|
|
10
|
-
const _onClear = () => {
|
|
11
|
-
onChange && onChange('');
|
|
12
|
-
};
|
|
13
|
-
return (_jsxs("div", { style: { position: 'relative', display: 'inline-block' }, className: clsx("w-full", className), children: [_jsx("input", { type: type || 'text', value: value == null ? '' : value, onChange: _onChange, className: clsx('w-full', unstyled ? Styles.INPUT_UNSTYLED : Styles.INPUT, className), ref: ref, ...others }), value && (_jsx("button", { onClick: _onClear, className: `absolute ${type !== 'number' ? 'right-2' : 'right-7'} top-1/2 -translate-y-1/2 size-7 text-gray-400 hover:text-red-500 cursor-pointer`, children: _jsx(X, {}) }))] }));
|
|
14
|
-
});
|
|
15
|
-
export { Input };
|
|
16
|
-
//# sourceMappingURL=Input.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../../src/core/components/Input.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAsB,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAOrC,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAA+B,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,MAAM,EAAc,EAAE,GAAG,EAAE,EAAE;IACxI,MAAM,SAAS,GAAG,CAAC,EAAiC,EAAE,EAAE;QACpD,QAAQ,IAAI,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC,CAAC;IAEF,MAAM,QAAQ,GAAG,GAAG,EAAE;QAClB,QAAQ,IAAI,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC7B,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,QAAQ,EAAE,SAAS,CAAC,aAC/F,gBACI,IAAI,EAAE,IAAI,IAAI,MAAM,EACpB,KAAK,EAAE,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,EACjC,QAAQ,EAAE,SAAS,EACnB,SAAS,EAAE,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,EACrF,GAAG,EAAE,GAAG,KACJ,MAAM,GACZ,EAEE,KAAK,IAAI,CACL,iBAAQ,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,kFAAkF,YACzK,KAAC,CAAC,KAAG,GACA,CACZ,IAEH,CACT,CAAC;AACN,CAAC,CAAC,CAAA;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
package/lib/esm/form/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/form/index.ts"],"names":[],"mappings":";AAAA,mBAAmB"}
|
|
File without changes
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface InputProps extends Omit<React.HTMLProps<HTMLInputElement>, 'ref' | 'onChange' | 'value'> {
|
|
3
|
-
value?: string;
|
|
4
|
-
onChange?: (value: string) => void;
|
|
5
|
-
unstyled?: boolean;
|
|
6
|
-
}
|
|
7
|
-
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
8
|
-
export { Input };
|
|
File without changes
|