@vertesia/ui 0.60.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.
Files changed (661) hide show
  1. package/lib/esm/core/components/FormItem.js +9 -0
  2. package/lib/esm/core/components/FormItem.js.map +1 -0
  3. package/lib/esm/core/components/InputList.js +4 -3
  4. package/lib/esm/core/components/InputList.js.map +1 -1
  5. package/lib/esm/core/components/index.js +3 -3
  6. package/lib/esm/core/components/index.js.map +1 -1
  7. package/lib/esm/core/components/shadcn/button.js +37 -7
  8. package/lib/esm/core/components/shadcn/button.js.map +1 -1
  9. package/lib/esm/core/components/shadcn/dialog.js +3 -3
  10. package/lib/esm/core/components/shadcn/dialog.js.map +1 -1
  11. package/lib/esm/core/components/shadcn/filters/DynamicLabel.js +38 -0
  12. package/lib/esm/core/components/shadcn/filters/DynamicLabel.js.map +1 -0
  13. package/lib/esm/core/components/shadcn/filters/comboBox.js +24 -26
  14. package/lib/esm/core/components/shadcn/filters/comboBox.js.map +1 -1
  15. package/lib/esm/core/components/shadcn/filters/dateFilter.js +12 -12
  16. package/lib/esm/core/components/shadcn/filters/dateFilter.js.map +1 -1
  17. package/lib/esm/core/components/shadcn/filters/filterBar.js +49 -36
  18. package/lib/esm/core/components/shadcn/filters/filterBar.js.map +1 -1
  19. package/lib/esm/core/components/shadcn/filters/filters.js +31 -23
  20. package/lib/esm/core/components/shadcn/filters/filters.js.map +1 -1
  21. package/lib/esm/core/components/shadcn/filters/selectFilter.js +33 -24
  22. package/lib/esm/core/components/shadcn/filters/selectFilter.js.map +1 -1
  23. package/lib/esm/core/components/shadcn/filters/textFilter.js +2 -2
  24. package/lib/esm/core/components/shadcn/filters/textFilter.js.map +1 -1
  25. package/lib/esm/core/components/shadcn/filters/types.js.map +1 -1
  26. package/lib/esm/core/components/shadcn/input.js +4 -4
  27. package/lib/esm/core/components/shadcn/input.js.map +1 -1
  28. package/lib/esm/core/components/shadcn/selectBox.js +72 -6
  29. package/lib/esm/core/components/shadcn/selectBox.js.map +1 -1
  30. package/lib/esm/core/components/styles.js +1 -1
  31. package/lib/esm/core/components/styles.js.map +1 -1
  32. package/lib/esm/core/components/table/index.js +3 -0
  33. package/lib/esm/core/components/table/index.js.map +1 -1
  34. package/lib/esm/core/index.js +2 -1
  35. package/lib/esm/core/index.js.map +1 -1
  36. package/lib/esm/core/utils/cn.js +6 -0
  37. package/lib/esm/core/utils/cn.js.map +1 -0
  38. package/lib/esm/core/utils/index.js +2 -0
  39. package/lib/esm/core/utils/index.js.map +1 -0
  40. package/lib/esm/features/agent/PayloadBuilder.js +174 -0
  41. package/lib/esm/features/agent/PayloadBuilder.js.map +1 -0
  42. package/lib/esm/features/agent/chat/AnimatedThinkingDots.js +207 -0
  43. package/lib/esm/features/agent/chat/AnimatedThinkingDots.js.map +1 -0
  44. package/lib/esm/features/agent/chat/JumpingDots.js +6 -0
  45. package/lib/esm/features/agent/chat/JumpingDots.js.map +1 -0
  46. package/lib/esm/features/agent/chat/ModernAgentConversation.js +409 -0
  47. package/lib/esm/features/agent/chat/ModernAgentConversation.js.map +1 -0
  48. package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js +129 -0
  49. package/lib/esm/features/agent/chat/ModernAgentOutput/AllMessagesMixed.js.map +1 -0
  50. package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js +66 -0
  51. package/lib/esm/features/agent/chat/ModernAgentOutput/Header.js.map +1 -0
  52. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.js +29 -0
  53. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.js.map +1 -0
  54. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js +97 -0
  55. package/lib/esm/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.js.map +1 -0
  56. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js +46 -0
  57. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageInput.js.map +1 -0
  58. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js +352 -0
  59. package/lib/esm/features/agent/chat/ModernAgentOutput/MessageItem.js.map +1 -0
  60. package/lib/esm/features/agent/chat/ModernAgentOutput/MessagesContainer.js +20 -0
  61. package/lib/esm/features/agent/chat/ModernAgentOutput/MessagesContainer.js.map +1 -0
  62. package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js +62 -0
  63. package/lib/esm/features/agent/chat/ModernAgentOutput/PlanPanel.js.map +1 -0
  64. package/lib/esm/features/agent/chat/ModernAgentOutput/SlideInPanel.js +23 -0
  65. package/lib/esm/features/agent/chat/ModernAgentOutput/SlideInPanel.js.map +1 -0
  66. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingMessages.js +51 -0
  67. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingMessages.js.map +1 -0
  68. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js +82 -0
  69. package/lib/esm/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.js.map +1 -0
  70. package/lib/esm/features/agent/chat/ModernAgentOutput/StackedMessages.js +13 -0
  71. package/lib/esm/features/agent/chat/ModernAgentOutput/StackedMessages.js.map +1 -0
  72. package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js +105 -0
  73. package/lib/esm/features/agent/chat/ModernAgentOutput/WorkstreamTabs.js.map +1 -0
  74. package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js +154 -0
  75. package/lib/esm/features/agent/chat/ModernAgentOutput/utils.js.map +1 -0
  76. package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js +266 -0
  77. package/lib/esm/features/agent/chat/SlidingThinkingIndicator.js.map +1 -0
  78. package/lib/esm/features/agent/chat/WaitingMessages.js +60 -0
  79. package/lib/esm/features/agent/chat/WaitingMessages.js.map +1 -0
  80. package/lib/esm/features/agent/chat/index.js +5 -0
  81. package/lib/esm/features/agent/chat/index.js.map +1 -0
  82. package/lib/esm/features/agent/index.js +3 -0
  83. package/lib/esm/features/agent/index.js.map +1 -0
  84. package/lib/esm/features/errors/PanelErrorBoundary.js +11 -0
  85. package/lib/esm/features/errors/PanelErrorBoundary.js.map +1 -0
  86. package/lib/esm/features/errors/RowErrorBoundary.js +9 -0
  87. package/lib/esm/features/errors/RowErrorBoundary.js.map +1 -0
  88. package/lib/esm/features/errors/VertesiaErrorBoundary.js +15 -0
  89. package/lib/esm/features/errors/VertesiaErrorBoundary.js.map +1 -0
  90. package/lib/esm/features/errors/WidgetErrorBoundary.js +11 -0
  91. package/lib/esm/features/errors/WidgetErrorBoundary.js.map +1 -0
  92. package/lib/esm/features/errors/index.js +5 -0
  93. package/lib/esm/features/errors/index.js.map +1 -0
  94. package/lib/esm/features/facets/EnvironmentFacet.js +39 -0
  95. package/lib/esm/features/facets/EnvironmentFacet.js.map +1 -0
  96. package/lib/esm/features/facets/FacetsNav.js +8 -0
  97. package/lib/esm/features/facets/FacetsNav.js.map +1 -0
  98. package/lib/esm/features/facets/InteractionFacet.js +39 -0
  99. package/lib/esm/features/facets/InteractionFacet.js.map +1 -0
  100. package/lib/esm/features/facets/StringFacet.js +12 -0
  101. package/lib/esm/features/facets/StringFacet.js.map +1 -0
  102. package/lib/esm/features/facets/StringListFacet.js +11 -0
  103. package/lib/esm/features/facets/StringListFacet.js.map +1 -0
  104. package/lib/esm/features/facets/TypeFacet.js +42 -0
  105. package/lib/esm/features/facets/TypeFacet.js.map +1 -0
  106. package/lib/esm/features/facets/TypeOptions.js +19 -0
  107. package/lib/esm/features/facets/TypeOptions.js.map +1 -0
  108. package/lib/esm/features/facets/UserFacet.js +33 -0
  109. package/lib/esm/features/facets/UserFacet.js.map +1 -0
  110. package/lib/esm/features/facets/VFacetsNav.js +114 -0
  111. package/lib/esm/features/facets/VFacetsNav.js.map +1 -0
  112. package/lib/esm/features/facets/VStringFacet.js +17 -0
  113. package/lib/esm/features/facets/VStringFacet.js.map +1 -0
  114. package/lib/esm/features/facets/VTypeFacet.js +56 -0
  115. package/lib/esm/features/facets/VTypeFacet.js.map +1 -0
  116. package/lib/esm/features/facets/VUserFacet.js +31 -0
  117. package/lib/esm/features/facets/VUserFacet.js.map +1 -0
  118. package/lib/esm/features/facets/index.js +12 -0
  119. package/lib/esm/features/facets/index.js.map +1 -0
  120. package/lib/esm/features/facets/utils.js +7 -0
  121. package/lib/esm/features/facets/utils.js.map +1 -0
  122. package/lib/esm/features/index.js +9 -1
  123. package/lib/esm/features/index.js.map +1 -1
  124. package/lib/esm/features/layout/GenericPageNavHeader.js +11 -0
  125. package/lib/esm/features/layout/GenericPageNavHeader.js.map +1 -0
  126. package/lib/esm/features/layout/NotFoundView.js +5 -0
  127. package/lib/esm/features/layout/NotFoundView.js.map +1 -0
  128. package/lib/esm/features/layout/index.js +3 -0
  129. package/lib/esm/features/layout/index.js.map +1 -0
  130. package/lib/esm/features/magic-pdf/DownloadPopover.js +13 -0
  131. package/lib/esm/features/magic-pdf/DownloadPopover.js.map +1 -0
  132. package/lib/esm/features/magic-pdf/MagicPdfView.js +44 -0
  133. package/lib/esm/features/magic-pdf/MagicPdfView.js.map +1 -0
  134. package/lib/esm/features/magic-pdf/PageSlider.js +57 -0
  135. package/lib/esm/features/magic-pdf/PageSlider.js.map +1 -0
  136. package/lib/esm/features/magic-pdf/PdfPageProvider.js +133 -0
  137. package/lib/esm/features/magic-pdf/PdfPageProvider.js.map +1 -0
  138. package/lib/esm/features/magic-pdf/TextPageView.js +45 -0
  139. package/lib/esm/features/magic-pdf/TextPageView.js.map +1 -0
  140. package/lib/esm/features/magic-pdf/index.js +2 -0
  141. package/lib/esm/features/magic-pdf/index.js.map +1 -0
  142. package/lib/esm/features/magic-pdf/types.js +2 -0
  143. package/lib/esm/features/magic-pdf/types.js.map +1 -0
  144. package/lib/esm/features/magic-pdf/useResizeOnDrag.js +34 -0
  145. package/lib/esm/features/magic-pdf/useResizeOnDrag.js.map +1 -0
  146. package/lib/esm/features/store/collections/BrowseCollectionView.js +37 -0
  147. package/lib/esm/features/store/collections/BrowseCollectionView.js.map +1 -0
  148. package/lib/esm/features/store/collections/CollectionView.js +53 -0
  149. package/lib/esm/features/store/collections/CollectionView.js.map +1 -0
  150. package/lib/esm/features/store/collections/CollectionsTable.js +60 -0
  151. package/lib/esm/features/store/collections/CollectionsTable.js.map +1 -0
  152. package/lib/esm/features/store/collections/CollectionsView.js +94 -0
  153. package/lib/esm/features/store/collections/CollectionsView.js.map +1 -0
  154. package/lib/esm/features/store/collections/EditCollectionView.js +161 -0
  155. package/lib/esm/features/store/collections/EditCollectionView.js.map +1 -0
  156. package/lib/esm/features/store/collections/index.js +6 -0
  157. package/lib/esm/features/store/collections/index.js.map +1 -0
  158. package/lib/esm/features/store/index.js +4 -0
  159. package/lib/esm/features/store/index.js.map +1 -0
  160. package/lib/esm/features/store/objects/DocumentPreviewPanel.js +150 -0
  161. package/lib/esm/features/store/objects/DocumentPreviewPanel.js.map +1 -0
  162. package/lib/esm/features/store/objects/DocumentSearchResults.js +123 -0
  163. package/lib/esm/features/store/objects/DocumentSearchResults.js.map +1 -0
  164. package/lib/esm/features/store/objects/DocumentSelectionProvider.js +81 -0
  165. package/lib/esm/features/store/objects/DocumentSelectionProvider.js.map +1 -0
  166. package/lib/esm/features/store/objects/DocumentTable.js +278 -0
  167. package/lib/esm/features/store/objects/DocumentTable.js.map +1 -0
  168. package/lib/esm/features/store/objects/ExportPropertiesModal.js +31 -0
  169. package/lib/esm/features/store/objects/ExportPropertiesModal.js.map +1 -0
  170. package/lib/esm/features/store/objects/components/ContentDispositionButton.js +31 -0
  171. package/lib/esm/features/store/objects/components/ContentDispositionButton.js.map +1 -0
  172. package/lib/esm/features/store/objects/components/ContentOverview.js +195 -0
  173. package/lib/esm/features/store/objects/components/ContentOverview.js.map +1 -0
  174. package/lib/esm/features/store/objects/components/DocumentIcon.js +28 -0
  175. package/lib/esm/features/store/objects/components/DocumentIcon.js.map +1 -0
  176. package/lib/esm/features/store/objects/components/DocumentInput.js +52 -0
  177. package/lib/esm/features/store/objects/components/DocumentInput.js.map +1 -0
  178. package/lib/esm/features/store/objects/components/PropertiesEditorModal.js +169 -0
  179. package/lib/esm/features/store/objects/components/PropertiesEditorModal.js.map +1 -0
  180. package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js +45 -0
  181. package/lib/esm/features/store/objects/components/SaveVersionConfirmModal.js.map +1 -0
  182. package/lib/esm/features/store/objects/components/SelectDocument.js +39 -0
  183. package/lib/esm/features/store/objects/components/SelectDocument.js.map +1 -0
  184. package/lib/esm/features/store/objects/components/SelectDocumentModal.js +7 -0
  185. package/lib/esm/features/store/objects/components/SelectDocumentModal.js.map +1 -0
  186. package/lib/esm/features/store/objects/components/VectorSearchWidget.js +85 -0
  187. package/lib/esm/features/store/objects/components/VectorSearchWidget.js.map +1 -0
  188. package/lib/esm/features/store/objects/components/index.js +10 -0
  189. package/lib/esm/features/store/objects/components/index.js.map +1 -0
  190. package/lib/esm/features/store/objects/components/useDownloadObject.js +21 -0
  191. package/lib/esm/features/store/objects/components/useDownloadObject.js.map +1 -0
  192. package/lib/esm/features/store/objects/index.js +11 -0
  193. package/lib/esm/features/store/objects/index.js.map +1 -0
  194. package/lib/esm/features/store/objects/layout/DocumentTableColumn.js +74 -0
  195. package/lib/esm/features/store/objects/layout/DocumentTableColumn.js.map +1 -0
  196. package/lib/esm/features/store/objects/layout/documentLayout.js +16 -0
  197. package/lib/esm/features/store/objects/layout/documentLayout.js.map +1 -0
  198. package/lib/esm/features/store/objects/layout/index.js +3 -0
  199. package/lib/esm/features/store/objects/layout/index.js.map +1 -0
  200. package/lib/esm/features/store/objects/layout/renderers.js +128 -0
  201. package/lib/esm/features/store/objects/layout/renderers.js.map +1 -0
  202. package/lib/esm/features/store/objects/search/DocumentSearchContext.js +150 -0
  203. package/lib/esm/features/store/objects/search/DocumentSearchContext.js.map +1 -0
  204. package/lib/esm/features/store/objects/search/DocumentSearchProvider.js +41 -0
  205. package/lib/esm/features/store/objects/search/DocumentSearchProvider.js.map +1 -0
  206. package/lib/esm/features/store/objects/search/index.js +3 -0
  207. package/lib/esm/features/store/objects/search/index.js.map +1 -0
  208. package/lib/esm/features/store/objects/selection/ObjectsActionContext.js +149 -0
  209. package/lib/esm/features/store/objects/selection/ObjectsActionContext.js.map +1 -0
  210. package/lib/esm/features/store/objects/selection/ObjectsActionSpec.js +2 -0
  211. package/lib/esm/features/store/objects/selection/ObjectsActionSpec.js.map +1 -0
  212. package/lib/esm/features/store/objects/selection/SelectionActions.js +75 -0
  213. package/lib/esm/features/store/objects/selection/SelectionActions.js.map +1 -0
  214. package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js +64 -0
  215. package/lib/esm/features/store/objects/selection/actions/AddToCollectionAction.js.map +1 -0
  216. package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js +53 -0
  217. package/lib/esm/features/store/objects/selection/actions/ChangeTypeAction.js.map +1 -0
  218. package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js +30 -0
  219. package/lib/esm/features/store/objects/selection/actions/ConfirmAction.js.map +1 -0
  220. package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js +66 -0
  221. package/lib/esm/features/store/objects/selection/actions/DeleteObjectsAction.js.map +1 -0
  222. package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js +106 -0
  223. package/lib/esm/features/store/objects/selection/actions/ExportPropertiesAction.js.map +1 -0
  224. package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js +64 -0
  225. package/lib/esm/features/store/objects/selection/actions/RemoveFromCollectionAction.js.map +1 -0
  226. package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js +72 -0
  227. package/lib/esm/features/store/objects/selection/actions/StartWorkflowComponent.js.map +1 -0
  228. package/lib/esm/features/store/objects/selection/actions/index.js +8 -0
  229. package/lib/esm/features/store/objects/selection/actions/index.js.map +1 -0
  230. package/lib/esm/features/store/objects/selection/index.js +5 -0
  231. package/lib/esm/features/store/objects/selection/index.js.map +1 -0
  232. package/lib/esm/features/store/objects/upload/DocumentUploadModal.js +476 -0
  233. package/lib/esm/features/store/objects/upload/DocumentUploadModal.js.map +1 -0
  234. package/lib/esm/features/store/objects/upload/index.js +4 -0
  235. package/lib/esm/features/store/objects/upload/index.js.map +1 -0
  236. package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js +201 -0
  237. package/lib/esm/features/store/objects/upload/useSmartFileUploadProcessing.js.map +1 -0
  238. package/lib/esm/features/store/objects/upload/useUploadHandler.js +230 -0
  239. package/lib/esm/features/store/objects/upload/useUploadHandler.js.map +1 -0
  240. package/lib/esm/features/store/types/ContentObjectTypeView.js +158 -0
  241. package/lib/esm/features/store/types/ContentObjectTypeView.js.map +1 -0
  242. package/lib/esm/features/store/types/ContentObjectTypesSearch.js +82 -0
  243. package/lib/esm/features/store/types/ContentObjectTypesSearch.js.map +1 -0
  244. package/lib/esm/features/store/types/ContentObjectTypesTable.js +11 -0
  245. package/lib/esm/features/store/types/ContentObjectTypesTable.js.map +1 -0
  246. package/lib/esm/features/store/types/ContentObjectTypesView.js +55 -0
  247. package/lib/esm/features/store/types/ContentObjectTypesView.js.map +1 -0
  248. package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js +26 -0
  249. package/lib/esm/features/store/types/CreateOrUpdateTypeModal.js.map +1 -0
  250. package/lib/esm/features/store/types/ObjectSchemaEditor.js +89 -0
  251. package/lib/esm/features/store/types/ObjectSchemaEditor.js.map +1 -0
  252. package/lib/esm/features/store/types/SelectContentType.js +43 -0
  253. package/lib/esm/features/store/types/SelectContentType.js.map +1 -0
  254. package/lib/esm/features/store/types/SelectContentTypeModal.js +28 -0
  255. package/lib/esm/features/store/types/SelectContentTypeModal.js.map +1 -0
  256. package/lib/esm/features/store/types/TableLayoutEditor.js +78 -0
  257. package/lib/esm/features/store/types/TableLayoutEditor.js.map +1 -0
  258. package/lib/esm/features/store/types/index.js +11 -0
  259. package/lib/esm/features/store/types/index.js.map +1 -0
  260. package/lib/esm/features/store/types/search/ObjectTypeSearchContext.js +98 -0
  261. package/lib/esm/features/store/types/search/ObjectTypeSearchContext.js.map +1 -0
  262. package/lib/esm/features/store/types/search/ObjectTypeSearchProvider.js +15 -0
  263. package/lib/esm/features/store/types/search/ObjectTypeSearchProvider.js.map +1 -0
  264. package/lib/esm/features/store/types/search/index.js +3 -0
  265. package/lib/esm/features/store/types/search/index.js.map +1 -0
  266. package/lib/esm/features/user/UserAvatar.js +18 -0
  267. package/lib/esm/features/user/UserAvatar.js.map +1 -0
  268. package/lib/esm/features/user/UserInfo.js +88 -0
  269. package/lib/esm/features/user/UserInfo.js.map +1 -0
  270. package/lib/esm/features/user/index.js +3 -0
  271. package/lib/esm/features/user/index.js.map +1 -0
  272. package/lib/esm/features/utils/index.js +4 -0
  273. package/lib/esm/features/utils/index.js.map +1 -0
  274. package/lib/esm/features/utils/mimeType.js +9 -0
  275. package/lib/esm/features/utils/mimeType.js.map +1 -0
  276. package/lib/esm/features/utils/rendition.js +47 -0
  277. package/lib/esm/features/utils/rendition.js.map +1 -0
  278. package/lib/esm/features/utils/text.js +10 -0
  279. package/lib/esm/features/utils/text.js.map +1 -0
  280. package/lib/esm/layout/FullHeightLayout.js +1 -1
  281. package/lib/esm/layout/FullHeightLayout.js.map +1 -1
  282. package/lib/esm/layout/Sidebar.js +12 -2
  283. package/lib/esm/layout/Sidebar.js.map +1 -1
  284. package/lib/esm/widgets/Progress.js +5 -0
  285. package/lib/esm/widgets/Progress.js.map +1 -0
  286. package/lib/esm/widgets/codemirror/CodeMirrorEditor.js +1 -1
  287. package/lib/esm/widgets/codemirror/CodeMirrorEditor.js.map +1 -1
  288. package/lib/esm/widgets/form/Form.js +2 -2
  289. package/lib/esm/widgets/form/Form.js.map +1 -1
  290. package/lib/esm/widgets/form/schema.js +11 -5
  291. package/lib/esm/widgets/form/schema.js.map +1 -1
  292. package/lib/esm/widgets/index.js +4 -0
  293. package/lib/esm/widgets/index.js.map +1 -1
  294. package/lib/esm/widgets/popover/Popover.js +73 -0
  295. package/lib/esm/widgets/popover/Popover.js.map +1 -0
  296. package/lib/esm/widgets/popover/context.js +7 -0
  297. package/lib/esm/widgets/popover/context.js.map +1 -0
  298. package/lib/esm/widgets/popover/index.js +3 -0
  299. package/lib/esm/widgets/popover/index.js.map +1 -0
  300. package/lib/esm/widgets/popover/slots.js +22 -0
  301. package/lib/esm/widgets/popover/slots.js.map +1 -0
  302. package/lib/esm/widgets/properties/PropertiesView.js +6 -0
  303. package/lib/esm/widgets/properties/PropertiesView.js.map +1 -0
  304. package/lib/esm/widgets/properties/index.js +2 -0
  305. package/lib/esm/widgets/properties/index.js.map +1 -0
  306. package/lib/esm/widgets/schema-editor/JSONSchemaEditorModal.js +1 -2
  307. package/lib/esm/widgets/schema-editor/JSONSchemaEditorModal.js.map +1 -1
  308. package/lib/esm/widgets/schema-editor/editor/Editable.js +9 -10
  309. package/lib/esm/widgets/schema-editor/editor/Editable.js.map +1 -1
  310. package/lib/esm/widgets/schema-editor/editor/PropertyViewer.js +1 -1
  311. package/lib/esm/widgets/schema-editor/editor/PropertyViewer.js.map +1 -1
  312. package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js +2 -2
  313. package/lib/esm/widgets/schema-editor/editor/SchemaEditor.js.map +1 -1
  314. package/lib/esm/widgets/upload/DropZone.js +162 -0
  315. package/lib/esm/widgets/upload/DropZone.js.map +1 -0
  316. package/lib/esm/widgets/upload/UploadResultCategory.js +19 -0
  317. package/lib/esm/widgets/upload/UploadResultCategory.js.map +1 -0
  318. package/lib/esm/widgets/upload/UploadSummary.js +30 -0
  319. package/lib/esm/widgets/upload/UploadSummary.js.map +1 -0
  320. package/lib/esm/widgets/upload/index.js +4 -0
  321. package/lib/esm/widgets/upload/index.js.map +1 -0
  322. package/lib/tsconfig.tsbuildinfo +1 -1
  323. package/lib/types/core/components/FormItem.d.ts +11 -0
  324. package/lib/types/core/components/index.d.ts +3 -3
  325. package/lib/types/core/components/shadcn/button.d.ts +13 -2
  326. package/lib/types/core/components/shadcn/command.d.ts +7 -7
  327. package/lib/types/core/components/shadcn/filters/DynamicLabel.d.ts +8 -0
  328. package/lib/types/core/components/shadcn/filters/comboBox.d.ts +5 -5
  329. package/lib/types/core/components/shadcn/filters/dateFilter.d.ts +3 -4
  330. package/lib/types/core/components/shadcn/filters/types.d.ts +7 -1
  331. package/lib/types/core/components/shadcn/input.d.ts +4 -4
  332. package/lib/types/core/components/shadcn/selectBox.d.ts +13 -4
  333. package/lib/types/core/components/table/index.d.ts +1 -0
  334. package/lib/types/core/index.d.ts +2 -1
  335. package/lib/types/core/utils/cn.d.ts +2 -0
  336. package/lib/types/core/utils/index.d.ts +1 -0
  337. package/lib/types/features/agent/PayloadBuilder.d.ts +53 -0
  338. package/lib/types/features/agent/chat/AnimatedThinkingDots.d.ts +37 -0
  339. package/lib/types/features/agent/chat/JumpingDots.d.ts +6 -0
  340. package/lib/types/features/agent/chat/ModernAgentConversation.d.ts +24 -0
  341. package/lib/types/features/agent/chat/ModernAgentOutput/AllMessagesMixed.d.ts +21 -0
  342. package/lib/types/features/agent/chat/ModernAgentOutput/Header.d.ts +18 -0
  343. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.d.ts +10 -0
  344. package/lib/types/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.d.ts +15 -0
  345. package/lib/types/features/agent/chat/ModernAgentOutput/MessageInput.d.ts +12 -0
  346. package/lib/types/features/agent/chat/ModernAgentOutput/MessageItem.d.ts +7 -0
  347. package/lib/types/features/agent/chat/ModernAgentOutput/MessagesContainer.d.ts +9 -0
  348. package/lib/types/features/agent/chat/ModernAgentOutput/PlanPanel.d.ts +8 -0
  349. package/lib/types/features/agent/chat/ModernAgentOutput/SlideInPanel.d.ts +10 -0
  350. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingMessages.d.ts +7 -0
  351. package/lib/types/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.d.ts +9 -0
  352. package/lib/types/features/agent/chat/ModernAgentOutput/StackedMessages.d.ts +7 -0
  353. package/lib/types/features/agent/chat/ModernAgentOutput/WorkstreamTabs.d.ts +21 -0
  354. package/lib/types/features/agent/chat/ModernAgentOutput/utils.d.ts +23 -0
  355. package/lib/types/features/agent/chat/SlidingThinkingIndicator.d.ts +17 -0
  356. package/lib/types/features/agent/chat/WaitingMessages.d.ts +1 -0
  357. package/lib/types/features/agent/chat/index.d.ts +4 -0
  358. package/lib/types/features/agent/index.d.ts +2 -0
  359. package/lib/types/features/errors/PanelErrorBoundary.d.ts +4 -0
  360. package/lib/types/features/errors/RowErrorBoundary.d.ts +7 -0
  361. package/lib/types/features/errors/VertesiaErrorBoundary.d.ts +11 -0
  362. package/lib/types/features/errors/WidgetErrorBoundary.d.ts +4 -0
  363. package/lib/types/features/errors/index.d.ts +4 -0
  364. package/lib/types/features/facets/EnvironmentFacet.d.ts +9 -0
  365. package/lib/types/features/facets/FacetsNav.d.ts +6 -0
  366. package/lib/types/features/facets/InteractionFacet.d.ts +9 -0
  367. package/lib/types/features/facets/StringFacet.d.ts +10 -0
  368. package/lib/types/features/facets/StringListFacet.d.ts +10 -0
  369. package/lib/types/features/facets/TypeFacet.d.ts +15 -0
  370. package/lib/types/features/facets/TypeOptions.d.ts +3 -0
  371. package/lib/types/features/facets/UserFacet.d.ts +11 -0
  372. package/lib/types/features/facets/VFacetsNav.d.ts +7 -0
  373. package/lib/types/features/facets/VStringFacet.d.ts +15 -0
  374. package/lib/types/features/facets/VTypeFacet.d.ts +8 -0
  375. package/lib/types/features/facets/VUserFacet.d.ts +9 -0
  376. package/lib/types/features/facets/index.d.ts +11 -0
  377. package/lib/types/features/facets/utils.d.ts +3 -0
  378. package/lib/types/features/index.d.ts +9 -1
  379. package/lib/types/features/layout/GenericPageNavHeader.d.ts +12 -0
  380. package/lib/types/features/layout/NotFoundView.d.ts +4 -0
  381. package/lib/types/features/layout/index.d.ts +2 -0
  382. package/lib/types/features/magic-pdf/DownloadPopover.d.ts +6 -0
  383. package/lib/types/features/magic-pdf/MagicPdfView.d.ts +6 -0
  384. package/lib/types/features/magic-pdf/PageSlider.d.ts +7 -0
  385. package/lib/types/features/magic-pdf/PdfPageProvider.d.ts +28 -0
  386. package/lib/types/features/magic-pdf/TextPageView.d.ts +7 -0
  387. package/lib/types/features/magic-pdf/index.d.ts +1 -0
  388. package/lib/types/features/magic-pdf/types.d.ts +1 -0
  389. package/lib/types/features/magic-pdf/useResizeOnDrag.d.ts +8 -0
  390. package/lib/types/features/store/collections/BrowseCollectionView.d.ts +6 -0
  391. package/lib/types/features/store/collections/CollectionView.d.ts +5 -0
  392. package/lib/types/features/store/collections/CollectionsTable.d.ts +5 -0
  393. package/lib/types/features/store/collections/CollectionsView.d.ts +10 -0
  394. package/lib/types/features/store/collections/EditCollectionView.d.ts +7 -0
  395. package/lib/types/features/store/collections/index.d.ts +5 -0
  396. package/lib/types/features/store/index.d.ts +3 -0
  397. package/lib/types/features/store/objects/DocumentPreviewPanel.d.ts +7 -0
  398. package/lib/types/features/store/objects/DocumentSearchResults.d.ts +19 -0
  399. package/lib/types/features/store/objects/DocumentSelectionProvider.d.ts +32 -0
  400. package/lib/types/features/store/objects/DocumentTable.d.ts +20 -0
  401. package/lib/types/features/store/objects/ExportPropertiesModal.d.ts +11 -0
  402. package/lib/types/features/store/objects/components/ContentDispositionButton.d.ts +8 -0
  403. package/lib/types/features/store/objects/components/ContentOverview.d.ts +7 -0
  404. package/lib/types/features/store/objects/components/DocumentIcon.d.ts +10 -0
  405. package/lib/types/features/store/objects/components/DocumentInput.d.ts +7 -0
  406. package/lib/types/features/store/objects/components/PropertiesEditorModal.d.ts +7 -0
  407. package/lib/types/features/store/objects/components/SaveVersionConfirmModal.d.ts +8 -0
  408. package/lib/types/features/store/objects/components/SelectDocument.d.ts +8 -0
  409. package/lib/types/features/store/objects/components/SelectDocumentModal.d.ts +8 -0
  410. package/lib/types/features/store/objects/components/VectorSearchWidget.d.ts +10 -0
  411. package/lib/types/features/store/objects/components/index.d.ts +9 -0
  412. package/lib/types/features/store/objects/components/useDownloadObject.d.ts +3 -0
  413. package/lib/types/features/store/objects/index.d.ts +10 -0
  414. package/lib/types/features/store/objects/layout/DocumentTableColumn.d.ts +16 -0
  415. package/lib/types/features/store/objects/layout/documentLayout.d.ts +17 -0
  416. package/lib/types/features/store/objects/layout/index.d.ts +2 -0
  417. package/lib/types/features/store/objects/layout/renderers.d.ts +2 -0
  418. package/lib/types/features/store/objects/search/DocumentSearchContext.d.ts +48 -0
  419. package/lib/types/features/store/objects/search/DocumentSearchProvider.d.ts +15 -0
  420. package/lib/types/features/store/objects/search/index.d.ts +2 -0
  421. package/lib/types/features/store/objects/selection/ObjectsActionContext.d.ts +25 -0
  422. package/lib/types/features/store/objects/selection/ObjectsActionSpec.d.ts +27 -0
  423. package/lib/types/features/store/objects/selection/SelectionActions.d.ts +4 -0
  424. package/lib/types/features/store/objects/selection/actions/AddToCollectionAction.d.ts +3 -0
  425. package/lib/types/features/store/objects/selection/actions/ChangeTypeAction.d.ts +3 -0
  426. package/lib/types/features/store/objects/selection/actions/ConfirmAction.d.ts +15 -0
  427. package/lib/types/features/store/objects/selection/actions/DeleteObjectsAction.d.ts +2 -0
  428. package/lib/types/features/store/objects/selection/actions/ExportPropertiesAction.d.ts +3 -0
  429. package/lib/types/features/store/objects/selection/actions/RemoveFromCollectionAction.d.ts +2 -0
  430. package/lib/types/features/store/objects/selection/actions/StartWorkflowComponent.d.ts +3 -0
  431. package/lib/types/features/store/objects/selection/actions/index.d.ts +7 -0
  432. package/lib/types/features/store/objects/selection/index.d.ts +4 -0
  433. package/lib/types/features/store/objects/upload/DocumentUploadModal.d.ts +37 -0
  434. package/lib/types/features/store/objects/upload/index.d.ts +3 -0
  435. package/lib/types/features/store/objects/upload/useSmartFileUploadProcessing.d.ts +29 -0
  436. package/lib/types/features/store/objects/upload/useUploadHandler.d.ts +49 -0
  437. package/lib/types/features/store/types/ContentObjectTypeView.d.ts +5 -0
  438. package/lib/types/features/store/types/ContentObjectTypesSearch.d.ts +5 -0
  439. package/lib/types/features/store/types/ContentObjectTypesTable.d.ts +7 -0
  440. package/lib/types/features/store/types/ContentObjectTypesView.d.ts +8 -0
  441. package/lib/types/features/store/types/CreateOrUpdateTypeModal.d.ts +14 -0
  442. package/lib/types/features/store/types/ObjectSchemaEditor.d.ts +7 -0
  443. package/lib/types/features/store/types/SelectContentType.d.ts +10 -0
  444. package/lib/types/features/store/types/SelectContentTypeModal.d.ts +32 -0
  445. package/lib/types/features/store/types/TableLayoutEditor.d.ts +8 -0
  446. package/lib/types/features/store/types/index.d.ts +10 -0
  447. package/lib/types/features/store/types/search/ObjectTypeSearchContext.d.ts +35 -0
  448. package/lib/types/features/store/types/search/ObjectTypeSearchProvider.d.ts +10 -0
  449. package/lib/types/features/store/types/search/index.d.ts +2 -0
  450. package/lib/types/features/user/UserAvatar.d.ts +8 -0
  451. package/lib/types/features/user/UserInfo.d.ts +36 -0
  452. package/lib/types/features/user/index.d.ts +2 -0
  453. package/lib/types/features/utils/index.d.ts +3 -0
  454. package/lib/types/features/utils/mimeType.d.ts +4 -0
  455. package/lib/types/features/utils/rendition.d.ts +3 -0
  456. package/lib/types/features/utils/text.d.ts +2 -0
  457. package/lib/types/layout/Sidebar.d.ts +2 -1
  458. package/lib/types/widgets/Progress.d.ts +5 -0
  459. package/lib/types/widgets/form/schema.d.ts +4 -3
  460. package/lib/types/widgets/index.d.ts +4 -0
  461. package/lib/types/widgets/popover/Popover.d.ts +37 -0
  462. package/lib/types/widgets/popover/context.d.ts +7 -0
  463. package/lib/types/widgets/popover/index.d.ts +2 -0
  464. package/lib/types/widgets/popover/slots.d.ts +4 -0
  465. package/lib/types/widgets/properties/PropertiesView.d.ts +10 -0
  466. package/lib/types/widgets/properties/index.d.ts +1 -0
  467. package/lib/types/widgets/upload/DropZone.d.ts +40 -0
  468. package/lib/types/widgets/upload/UploadResultCategory.d.ts +25 -0
  469. package/lib/types/widgets/upload/UploadSummary.d.ts +37 -0
  470. package/lib/types/widgets/upload/index.d.ts +3 -0
  471. package/lib/vertesia-ui-core.js +1 -1
  472. package/lib/vertesia-ui-core.js.map +1 -1
  473. package/lib/vertesia-ui-features.js +1 -1
  474. package/lib/vertesia-ui-features.js.map +1 -1
  475. package/lib/vertesia-ui-layout.js +1 -1
  476. package/lib/vertesia-ui-layout.js.map +1 -1
  477. package/lib/vertesia-ui-router.js.map +1 -1
  478. package/lib/vertesia-ui-session.js.map +1 -1
  479. package/lib/vertesia-ui-widgets.js +1 -1
  480. package/lib/vertesia-ui-widgets.js.map +1 -1
  481. package/package.json +13 -5
  482. package/src/core/components/FormItem.tsx +35 -0
  483. package/src/core/components/InputList.tsx +4 -3
  484. package/src/core/components/index.ts +3 -3
  485. package/src/core/components/shadcn/button.tsx +68 -8
  486. package/src/core/components/shadcn/dialog.tsx +3 -3
  487. package/src/core/components/shadcn/filters/DynamicLabel.tsx +45 -0
  488. package/src/core/components/shadcn/filters/comboBox.tsx +56 -52
  489. package/src/core/components/shadcn/filters/dateFilter.tsx +24 -25
  490. package/src/core/components/shadcn/filters/filterBar.tsx +53 -47
  491. package/src/core/components/shadcn/filters/filters.tsx +43 -30
  492. package/src/core/components/shadcn/filters/selectFilter.tsx +53 -34
  493. package/src/core/components/shadcn/filters/textFilter.tsx +6 -3
  494. package/src/core/components/shadcn/filters/types.ts +8 -1
  495. package/src/core/components/shadcn/input.tsx +5 -5
  496. package/src/core/components/shadcn/selectBox.tsx +138 -33
  497. package/src/core/components/styles.ts +1 -1
  498. package/src/core/components/table/index.tsx +8 -0
  499. package/src/core/index.ts +2 -1
  500. package/src/core/utils/cn.ts +6 -0
  501. package/src/core/utils/index.ts +1 -0
  502. package/src/features/agent/PayloadBuilder.tsx +208 -0
  503. package/src/features/agent/chat/AnimatedThinkingDots.tsx +350 -0
  504. package/src/features/agent/chat/JumpingDots.tsx +16 -0
  505. package/src/features/agent/chat/ModernAgentConversation.tsx +708 -0
  506. package/src/features/agent/chat/ModernAgentOutput/AllMessagesMixed.tsx +246 -0
  507. package/src/features/agent/chat/ModernAgentOutput/Header.tsx +231 -0
  508. package/src/features/agent/chat/ModernAgentOutput/InlineSlideInPanel.tsx +66 -0
  509. package/src/features/agent/chat/ModernAgentOutput/InlineSlidingPlanPanel.tsx +282 -0
  510. package/src/features/agent/chat/ModernAgentOutput/MessageInput.tsx +125 -0
  511. package/src/features/agent/chat/ModernAgentOutput/MessageItem.tsx +562 -0
  512. package/src/features/agent/chat/ModernAgentOutput/MessagesContainer.tsx +51 -0
  513. package/src/features/agent/chat/ModernAgentOutput/PlanPanel.tsx +123 -0
  514. package/src/features/agent/chat/ModernAgentOutput/README-image-support.md +43 -0
  515. package/src/features/agent/chat/ModernAgentOutput/SlideInPanel.tsx +72 -0
  516. package/src/features/agent/chat/ModernAgentOutput/SlidingMessages.tsx +96 -0
  517. package/src/features/agent/chat/ModernAgentOutput/SlidingPlanPanel.tsx +185 -0
  518. package/src/features/agent/chat/ModernAgentOutput/StackedMessages.tsx +33 -0
  519. package/src/features/agent/chat/ModernAgentOutput/WorkstreamTabs.tsx +167 -0
  520. package/src/features/agent/chat/ModernAgentOutput/utils.ts +195 -0
  521. package/src/features/agent/chat/ModernAgentOutput/with-types.d.ts +15 -0
  522. package/src/features/agent/chat/SlidingThinkingIndicator.tsx +459 -0
  523. package/src/features/agent/chat/WaitingMessages.ts +66 -0
  524. package/src/features/agent/chat/index.ts +4 -0
  525. package/src/features/agent/index.ts +2 -0
  526. package/src/features/errors/PanelErrorBoundary.tsx +30 -0
  527. package/src/features/errors/RowErrorBoundary.tsx +28 -0
  528. package/src/features/errors/VertesiaErrorBoundary.tsx +28 -0
  529. package/src/features/errors/WidgetErrorBoundary.tsx +27 -0
  530. package/src/features/errors/index.ts +4 -0
  531. package/src/features/facets/EnvironmentFacet.tsx +53 -0
  532. package/src/features/facets/FacetsNav.tsx +19 -0
  533. package/src/features/facets/InteractionFacet.tsx +53 -0
  534. package/src/features/facets/StringFacet.tsx +23 -0
  535. package/src/features/facets/StringListFacet.tsx +22 -0
  536. package/src/features/facets/TypeFacet.tsx +59 -0
  537. package/src/features/facets/TypeOptions.tsx +22 -0
  538. package/src/features/facets/UserFacet.tsx +61 -0
  539. package/src/features/facets/VFacetsNav.tsx +139 -0
  540. package/src/features/facets/VStringFacet.tsx +34 -0
  541. package/src/features/facets/VTypeFacet.tsx +72 -0
  542. package/src/features/facets/VUserFacet.tsx +47 -0
  543. package/src/features/facets/index.ts +11 -0
  544. package/src/features/facets/utils.tsx +9 -0
  545. package/src/features/index.ts +9 -1
  546. package/src/features/layout/GenericPageNavHeader.tsx +48 -0
  547. package/src/features/layout/NotFoundView.tsx +11 -0
  548. package/src/features/layout/index.ts +2 -0
  549. package/src/features/magic-pdf/DownloadPopover.tsx +32 -0
  550. package/src/features/magic-pdf/MagicPdfView.tsx +102 -0
  551. package/src/features/magic-pdf/PageSlider.tsx +112 -0
  552. package/src/features/magic-pdf/PdfPageProvider.tsx +229 -0
  553. package/src/features/magic-pdf/TextPageView.tsx +65 -0
  554. package/src/features/magic-pdf/index.ts +1 -0
  555. package/src/features/magic-pdf/types.ts +1 -0
  556. package/src/features/magic-pdf/useResizeOnDrag.ts +42 -0
  557. package/src/features/store/collections/BrowseCollectionView.tsx +45 -0
  558. package/src/features/store/collections/CollectionView.tsx +94 -0
  559. package/src/features/store/collections/CollectionsTable.tsx +115 -0
  560. package/src/features/store/collections/CollectionsView.tsx +166 -0
  561. package/src/features/store/collections/EditCollectionView.tsx +253 -0
  562. package/src/features/store/collections/index.ts +5 -0
  563. package/src/features/store/index.ts +3 -0
  564. package/src/features/store/objects/DocumentPreviewPanel.tsx +417 -0
  565. package/src/features/store/objects/DocumentSearchResults.tsx +209 -0
  566. package/src/features/store/objects/DocumentSelectionProvider.tsx +99 -0
  567. package/src/features/store/objects/DocumentTable.tsx +409 -0
  568. package/src/features/store/objects/ExportPropertiesModal.tsx +89 -0
  569. package/src/features/store/objects/components/ContentDispositionButton.tsx +45 -0
  570. package/src/features/store/objects/components/ContentOverview.tsx +466 -0
  571. package/src/features/store/objects/components/DocumentIcon.tsx +87 -0
  572. package/src/features/store/objects/components/DocumentInput.tsx +90 -0
  573. package/src/features/store/objects/components/PropertiesEditorModal.tsx +253 -0
  574. package/src/features/store/objects/components/SaveVersionConfirmModal.tsx +136 -0
  575. package/src/features/store/objects/components/SelectDocument.tsx +69 -0
  576. package/src/features/store/objects/components/SelectDocumentModal.tsx +20 -0
  577. package/src/features/store/objects/components/VectorSearchWidget.tsx +115 -0
  578. package/src/features/store/objects/components/index.ts +9 -0
  579. package/src/features/store/objects/components/useDownloadObject.ts +24 -0
  580. package/src/features/store/objects/index.ts +10 -0
  581. package/src/features/store/objects/layout/DocumentTableColumn.tsx +84 -0
  582. package/src/features/store/objects/layout/documentLayout.tsx +69 -0
  583. package/src/features/store/objects/layout/index.ts +2 -0
  584. package/src/features/store/objects/layout/knowledge.md +238 -0
  585. package/src/features/store/objects/layout/renderers.tsx +139 -0
  586. package/src/features/store/objects/search/DocumentSearchContext.ts +181 -0
  587. package/src/features/store/objects/search/DocumentSearchProvider.tsx +54 -0
  588. package/src/features/store/objects/search/index.ts +2 -0
  589. package/src/features/store/objects/selection/ObjectsActionContext.tsx +196 -0
  590. package/src/features/store/objects/selection/ObjectsActionSpec.ts +31 -0
  591. package/src/features/store/objects/selection/SelectionActions.tsx +160 -0
  592. package/src/features/store/objects/selection/actions/AddToCollectionAction.tsx +114 -0
  593. package/src/features/store/objects/selection/actions/ChangeTypeAction.tsx +76 -0
  594. package/src/features/store/objects/selection/actions/ConfirmAction.tsx +46 -0
  595. package/src/features/store/objects/selection/actions/DeleteObjectsAction.tsx +77 -0
  596. package/src/features/store/objects/selection/actions/ExportPropertiesAction.tsx +117 -0
  597. package/src/features/store/objects/selection/actions/RemoveFromCollectionAction.tsx +77 -0
  598. package/src/features/store/objects/selection/actions/StartWorkflowComponent.tsx +122 -0
  599. package/src/features/store/objects/selection/actions/index.ts +7 -0
  600. package/src/features/store/objects/selection/index.ts +4 -0
  601. package/src/features/store/objects/upload/DocumentUploadModal.tsx +970 -0
  602. package/src/features/store/objects/upload/index.ts +3 -0
  603. package/src/features/store/objects/upload/useSmartFileUploadProcessing.ts +250 -0
  604. package/src/features/store/objects/upload/useUploadHandler.ts +325 -0
  605. package/src/features/store/types/ContentObjectTypeView.tsx +244 -0
  606. package/src/features/store/types/ContentObjectTypesSearch.tsx +111 -0
  607. package/src/features/store/types/ContentObjectTypesTable.tsx +38 -0
  608. package/src/features/store/types/ContentObjectTypesView.tsx +71 -0
  609. package/src/features/store/types/CreateOrUpdateTypeModal.tsx +70 -0
  610. package/src/features/store/types/ObjectSchemaEditor.tsx +127 -0
  611. package/src/features/store/types/SelectContentType.tsx +88 -0
  612. package/src/features/store/types/SelectContentTypeModal.tsx +142 -0
  613. package/src/features/store/types/TableLayoutEditor.tsx +104 -0
  614. package/src/features/store/types/index.ts +10 -0
  615. package/src/features/store/types/search/ObjectTypeSearchContext.tsx +119 -0
  616. package/src/features/store/types/search/ObjectTypeSearchProvider.tsx +24 -0
  617. package/src/features/store/types/search/index.ts +2 -0
  618. package/src/features/user/UserAvatar.tsx +34 -0
  619. package/src/features/user/UserInfo.tsx +215 -0
  620. package/src/features/user/index.ts +2 -0
  621. package/src/features/utils/index.ts +3 -0
  622. package/src/features/utils/mimeType.ts +9 -0
  623. package/src/features/utils/rendition.ts +75 -0
  624. package/src/features/utils/text.ts +10 -0
  625. package/src/layout/FullHeightLayout.tsx +1 -1
  626. package/src/layout/Sidebar.tsx +12 -2
  627. package/src/widgets/Progress.tsx +10 -0
  628. package/src/widgets/codemirror/CodeMirrorEditor.tsx +1 -1
  629. package/src/widgets/form/Form.tsx +2 -2
  630. package/src/widgets/form/schema.ts +14 -7
  631. package/src/widgets/index.ts +5 -1
  632. package/src/widgets/popover/Popover.tsx +171 -0
  633. package/src/widgets/popover/context.ts +15 -0
  634. package/src/widgets/popover/index.ts +2 -0
  635. package/src/widgets/popover/slots.ts +24 -0
  636. package/src/widgets/properties/PropertiesView.tsx +26 -0
  637. package/src/widgets/properties/index.ts +1 -0
  638. package/src/widgets/schema-editor/JSONSchemaEditorModal.tsx +1 -2
  639. package/src/widgets/schema-editor/editor/Editable.tsx +12 -13
  640. package/src/widgets/schema-editor/editor/PropertyViewer.tsx +1 -1
  641. package/src/widgets/schema-editor/editor/SchemaEditor.tsx +4 -4
  642. package/src/widgets/upload/DropZone.tsx +257 -0
  643. package/src/widgets/upload/UploadResultCategory.tsx +81 -0
  644. package/src/widgets/upload/UploadSummary.tsx +116 -0
  645. package/src/widgets/upload/index.ts +3 -0
  646. package/lib/esm/code/index.js +0 -3
  647. package/lib/esm/code/index.js.map +0 -1
  648. package/lib/esm/core/components/Input.js +0 -16
  649. package/lib/esm/core/components/Input.js.map +0 -1
  650. package/lib/esm/form/index.js +0 -3
  651. package/lib/esm/form/index.js.map +0 -1
  652. package/lib/types/code/index.d.ts +0 -0
  653. package/lib/types/core/components/Input.d.ts +0 -8
  654. package/lib/types/form/index.d.ts +0 -0
  655. package/lib/vertesia-ui-code.js +0 -2
  656. package/lib/vertesia-ui-code.js.map +0 -1
  657. package/lib/vertesia-ui-form.js +0 -2
  658. package/lib/vertesia-ui-form.js.map +0 -1
  659. package/src/code/index.ts +0 -1
  660. package/src/core/components/Input.tsx +0 -43
  661. package/src/form/index.ts +0 -1
@@ -0,0 +1,476 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { Button, Modal, ModalBody, ModalFooter, ModalTitle, SelectBox, Spinner, useToast } from "@vertesia/ui/core";
3
+ import { useUserSession } from "@vertesia/ui/session";
4
+ import { DropZone, UploadSummary } from '@vertesia/ui/widgets';
5
+ import { AlertCircleIcon, CheckCircleIcon, FileIcon, FolderIcon, UploadIcon, XCircleIcon } from "lucide-react";
6
+ import { useEffect, useMemo, useState } from "react";
7
+ import { FileUploadAction, useSmartFileUploadProcessing } from "./useSmartFileUploadProcessing";
8
+ /**
9
+ * Unified upload modal that handles the complete upload process:
10
+ * 1. File selection (if no files provided)
11
+ * 2. Smart file processing to detect duplicates
12
+ * 3. Type selection
13
+ * 4. Upload with progress tracking
14
+ * 5. Result display
15
+ */
16
+ export function DocumentUploadModal({ isOpen, onClose, files: initialFiles, collectionId, selectedFolder, title = "Upload Files", children, onUploadComplete, hideFileSelection = false, showTypeSelectionOnly = false, }) {
17
+ const { client, typeRegistry } = useUserSession();
18
+ const toast = useToast();
19
+ const [files, setFiles] = useState([]);
20
+ const [processedFiles, setProcessedFiles] = useState([]);
21
+ const [processingDone, setProcessingDone] = useState(false);
22
+ const [selectedType, setSelectedType] = useState(null);
23
+ const [fileStatuses, setFileStatuses] = useState([]);
24
+ const [isUploading, setIsUploading] = useState(false);
25
+ const [uploadComplete, setUploadComplete] = useState(false);
26
+ const [overallProgress, setOverallProgress] = useState(0);
27
+ const [modalKey, setModalKey] = useState(Date.now());
28
+ const [collectionData, setCollectionData] = useState(undefined);
29
+ // Fetch collection details if a collectionId is provided
30
+ useEffect(() => {
31
+ if (!collectionId)
32
+ return;
33
+ client.store.collections.retrieve(collectionId).then(setCollectionData);
34
+ }, [collectionId]);
35
+ // Helper function to render collection and folder information
36
+ const renderLocationInfo = () => {
37
+ if (!collectionData && !selectedFolder)
38
+ return null;
39
+ return (_jsxs("div", { className: "mb-4 p-3 bg-blue-50 rounded-md border border-blue-100", children: [_jsxs("div", { className: "flex items-center text-blue-700", children: [_jsx(FolderIcon, { className: "h-5 w-5 mr-2" }), _jsx("span", { className: "font-medium", children: "Upload Location:" })] }), _jsxs("div", { className: "ml-7 text-sm text-blue-700 mt-1", children: [collectionData && (_jsxs("div", { className: "flex items-center", children: [_jsx("span", { className: "mr-1", children: "Collection:" }), _jsx("span", { className: "font-medium", children: collectionData.name })] })), selectedFolder && (_jsxs("div", { className: "flex items-center mt-1", children: [_jsx("span", { className: "mr-1", children: "Folder:" }), _jsx("span", { className: "font-medium", children: selectedFolder })] }))] })] }));
40
+ };
41
+ // Statistics for upload processing
42
+ const [processingStats, setProcessingStats] = useState({ toCreate: 0, toUpdate: 0, toSkip: 0 });
43
+ // Get the smart file processing utility
44
+ const { checkDocumentProcessing } = useSmartFileUploadProcessing();
45
+ // Get available types from the registry
46
+ const types = useMemo(() => {
47
+ return typeRegistry?.types || [];
48
+ }, [typeRegistry?.types]);
49
+ // Reset state when modal opens/closes
50
+ useEffect(() => {
51
+ if (isOpen) {
52
+ // Set initial files if provided
53
+ if (initialFiles && initialFiles.length > 0) {
54
+ setFiles(initialFiles);
55
+ processFiles(initialFiles);
56
+ }
57
+ else {
58
+ // Reset state
59
+ setFiles([]);
60
+ setProcessedFiles([]);
61
+ setProcessingDone(false);
62
+ setSelectedType(null);
63
+ setFileStatuses([]);
64
+ setIsUploading(false);
65
+ setUploadComplete(false);
66
+ setOverallProgress(0);
67
+ setProcessingStats({ toCreate: 0, toUpdate: 0, toSkip: 0 });
68
+ }
69
+ // Create a new key to ensure the modal is fresh
70
+ setModalKey(Date.now());
71
+ }
72
+ }, [isOpen, initialFiles]);
73
+ // Complete cleanup when modal closes
74
+ const handleClose = () => {
75
+ // Reset all state to initial values to prevent memory leaks
76
+ setFiles([]);
77
+ setProcessedFiles([]);
78
+ setProcessingDone(false);
79
+ setSelectedType(null);
80
+ setFileStatuses([]);
81
+ setIsUploading(false);
82
+ setUploadComplete(false);
83
+ setOverallProgress(0);
84
+ setProcessingStats({ toCreate: 0, toUpdate: 0, toSkip: 0 });
85
+ // Call the provided onClose function
86
+ onClose();
87
+ };
88
+ // Handle file drop/selection
89
+ const handleFileSelect = (newFiles) => {
90
+ if (newFiles && newFiles.length > 0) {
91
+ setFiles(newFiles);
92
+ processFiles(newFiles);
93
+ }
94
+ };
95
+ // Process files to determine create/update/skip status
96
+ const processFiles = async (filesToProcess) => {
97
+ if (!filesToProcess.length)
98
+ return;
99
+ try {
100
+ console.log(`Processing ${filesToProcess.length} files to determine required actions...`);
101
+ // Get the document processing results
102
+ const processed = await checkDocumentProcessing(filesToProcess, selectedFolder, collectionId);
103
+ setProcessedFiles(processed);
104
+ // Count files by action
105
+ const toCreate = processed.filter((f) => f.action === FileUploadAction.CREATE).length;
106
+ const toUpdate = processed.filter((f) => f.action === FileUploadAction.UPDATE).length;
107
+ const toSkip = processed.filter((f) => f.action === FileUploadAction.SKIP).length;
108
+ // Update stats for UI feedback
109
+ setProcessingStats({
110
+ toCreate,
111
+ toUpdate,
112
+ toSkip,
113
+ });
114
+ // Show processing results to user
115
+ toast({
116
+ title: "Files analyzed",
117
+ description: `${filesToProcess.length} file(s): ${toCreate} new, ${toUpdate} to update, ${toSkip} to skip`,
118
+ status: "info",
119
+ duration: 4000,
120
+ });
121
+ // Set processing as complete
122
+ setProcessingDone(true);
123
+ }
124
+ catch (error) {
125
+ console.error("Error processing files:", error);
126
+ toast({
127
+ title: "Error",
128
+ description: "There was an error analyzing the files",
129
+ status: "error",
130
+ duration: 5000,
131
+ });
132
+ }
133
+ };
134
+ // Handle type selection and start the upload
135
+ const handleUpload = async () => {
136
+ if (!processedFiles.length)
137
+ return;
138
+ const typeId = selectedType?.id || null;
139
+ // Initialize file statuses
140
+ const initialStatuses = processedFiles.map((fileInfo) => ({
141
+ file: fileInfo.file,
142
+ status: "pending",
143
+ progress: 0,
144
+ action: fileInfo.action === FileUploadAction.CREATE
145
+ ? "create"
146
+ : fileInfo.action === FileUploadAction.UPDATE
147
+ ? "update"
148
+ : "skip",
149
+ }));
150
+ setFileStatuses(initialStatuses);
151
+ setIsUploading(true);
152
+ setUploadComplete(false);
153
+ // Process files in batches
154
+ const filesToSkip = processedFiles.filter((f) => f.action === FileUploadAction.SKIP);
155
+ const filesToUpdate = processedFiles.filter((f) => f.action === FileUploadAction.UPDATE);
156
+ const filesToCreate = processedFiles.filter((f) => f.action === FileUploadAction.CREATE);
157
+ const result = {
158
+ success: true,
159
+ objectIds: [],
160
+ uploadedFiles: [],
161
+ skippedFiles: [],
162
+ failedFiles: [],
163
+ };
164
+ // Process SKIP files
165
+ for (const fileInfo of filesToSkip) {
166
+ if (fileInfo.existingId) {
167
+ result.objectIds.push(fileInfo.existingId);
168
+ result.skippedFiles.push({
169
+ id: fileInfo.existingId,
170
+ name: fileInfo.name,
171
+ type: typeId,
172
+ status: "skipped",
173
+ location: fileInfo.location,
174
+ });
175
+ // Update the file status
176
+ setFileStatuses((current) => current.map((status) => status.file === fileInfo.file
177
+ ? { ...status, status: "success", progress: 100, id: fileInfo.existingId }
178
+ : status));
179
+ }
180
+ }
181
+ // Process files in batches of 50
182
+ const BATCH_SIZE = 50;
183
+ // Helper function to process a batch of files
184
+ const processBatch = async (files, action) => {
185
+ const batches = [];
186
+ for (let i = 0; i < files.length; i += BATCH_SIZE) {
187
+ batches.push(files.slice(i, i + BATCH_SIZE));
188
+ }
189
+ for (let batchIndex = 0; batchIndex < batches.length; batchIndex++) {
190
+ const batch = batches[batchIndex];
191
+ console.log(`Processing ${action} batch ${batchIndex + 1}/${batches.length} (${batch.length} files)`);
192
+ // Show progress for larger file sets
193
+ if (files.length > BATCH_SIZE) {
194
+ const processedCount = batchIndex * BATCH_SIZE;
195
+ toast({
196
+ title: `Processing files (${action})`,
197
+ description: `Processed ${processedCount}/${files.length} files...`,
198
+ status: "info",
199
+ duration: 2000,
200
+ });
201
+ }
202
+ // Process the batch
203
+ await Promise.all(batch.map(async (fileInfo) => {
204
+ try {
205
+ // Update status to uploading
206
+ setFileStatuses((current) => current.map((status) => status.file === fileInfo.file
207
+ ? { ...status, status: "uploading", progress: 20 }
208
+ : status));
209
+ if (action === "update" && fileInfo.existingId) {
210
+ // Update existing file
211
+ await client.store.objects.update(fileInfo.existingId, {
212
+ type: typeId || undefined,
213
+ content: fileInfo.file,
214
+ location: fileInfo.location,
215
+ name: fileInfo.name,
216
+ }, {
217
+ createRevision: true,
218
+ revisionLabel: "upload on " + new Date().toISOString(),
219
+ });
220
+ // Update status to success
221
+ setFileStatuses((current) => current.map((status) => status.file === fileInfo.file
222
+ ? { ...status, status: "success", progress: 100, id: fileInfo.existingId }
223
+ : status));
224
+ // Add to result
225
+ result.objectIds.push(fileInfo.existingId);
226
+ result.uploadedFiles.push({
227
+ id: fileInfo.existingId,
228
+ name: fileInfo.name,
229
+ type: typeId,
230
+ status: "updated",
231
+ location: fileInfo.location,
232
+ });
233
+ }
234
+ else {
235
+ // Create new file
236
+ const createResult = await client.store.objects.create({
237
+ type: typeId || undefined,
238
+ content: fileInfo.file,
239
+ location: fileInfo.location || fileInfo.file.webkitRelativePath || fileInfo.name,
240
+ }, {
241
+ collection_id: collectionId,
242
+ });
243
+ // Update status to success
244
+ setFileStatuses((current) => current.map((status) => status.file === fileInfo.file
245
+ ? { ...status, status: "success", progress: 100, id: createResult.id }
246
+ : status));
247
+ // Add to result
248
+ result.objectIds.push(createResult.id);
249
+ result.uploadedFiles.push({
250
+ id: createResult.id,
251
+ name: fileInfo.name,
252
+ type: typeId,
253
+ status: "created",
254
+ location: fileInfo.location,
255
+ });
256
+ }
257
+ }
258
+ catch (error) {
259
+ console.error(`Failed to process file ${fileInfo.name}:`, error);
260
+ // Update status to error
261
+ setFileStatuses((current) => current.map((status) => status.file === fileInfo.file
262
+ ? {
263
+ ...status,
264
+ status: "error",
265
+ progress: 100,
266
+ message: error.message || "Unknown error",
267
+ }
268
+ : status));
269
+ // Add to failed result
270
+ result.failedFiles.push({
271
+ name: fileInfo.name,
272
+ error: error.message || "Unknown error",
273
+ status: "failed",
274
+ location: fileInfo.location,
275
+ type: typeId,
276
+ });
277
+ // Mark the overall success as false if any file fails
278
+ result.success = false;
279
+ }
280
+ }));
281
+ // Calculate overall progress after each batch completion
282
+ const completedFiles = fileStatuses.filter((f) => f.status === "success" || f.status === "error").length;
283
+ const totalFiles = fileStatuses.length;
284
+ const progress = Math.round((completedFiles / totalFiles) * 100);
285
+ setOverallProgress(progress);
286
+ }
287
+ };
288
+ // Process UPDATE files first, then CREATE files
289
+ if (filesToUpdate.length > 0) {
290
+ await processBatch(filesToUpdate, "update");
291
+ }
292
+ if (filesToCreate.length > 0) {
293
+ await processBatch(filesToCreate, "create");
294
+ }
295
+ // Finalize the upload
296
+ // Ensure all files are accounted for before completing
297
+ setFileStatuses((current) => {
298
+ // Check for any pending files that might have been missed
299
+ const missingStatuses = current
300
+ .filter((status) => status.status === "pending")
301
+ .map((status) => ({
302
+ ...status,
303
+ status: "error",
304
+ progress: 100,
305
+ message: "Upload process interrupted",
306
+ }));
307
+ if (missingStatuses.length > 0) {
308
+ // Add missing files to the failed files list
309
+ missingStatuses.forEach((status) => {
310
+ result.failedFiles.push({
311
+ name: status.file.name,
312
+ error: "Upload process interrupted",
313
+ status: "failed",
314
+ type: selectedType?.id || null,
315
+ });
316
+ });
317
+ // Update the success flag if any files failed
318
+ result.success = false;
319
+ // Return updated statuses
320
+ return current.map((status) => status.status === "pending"
321
+ ? {
322
+ ...status,
323
+ status: "error",
324
+ progress: 100,
325
+ message: "Upload process interrupted",
326
+ }
327
+ : status);
328
+ }
329
+ return current;
330
+ });
331
+ setIsUploading(false);
332
+ setUploadComplete(true);
333
+ // Show summary toast
334
+ const createdCount = result.uploadedFiles.filter((f) => f.status === "created").length;
335
+ const updatedCount = result.uploadedFiles.filter((f) => f.status === "updated").length;
336
+ const skippedCount = result.skippedFiles.length;
337
+ const failedCount = result.failedFiles.length;
338
+ let statusMessage = "";
339
+ if (createdCount > 0)
340
+ statusMessage += `${createdCount} file${createdCount !== 1 ? "s" : ""} uploaded`;
341
+ if (updatedCount > 0) {
342
+ statusMessage += statusMessage ? ", " : "";
343
+ statusMessage += `${updatedCount} file${updatedCount !== 1 ? "s" : ""} updated`;
344
+ }
345
+ if (skippedCount > 0) {
346
+ statusMessage += statusMessage ? ", " : "";
347
+ statusMessage += `${skippedCount} file${skippedCount !== 1 ? "s" : ""} skipped`;
348
+ }
349
+ if (failedCount > 0) {
350
+ statusMessage += statusMessage ? ", " : "";
351
+ statusMessage += `${failedCount} file${failedCount !== 1 ? "s" : ""} failed`;
352
+ }
353
+ toast({
354
+ title: "Upload Complete",
355
+ description: statusMessage,
356
+ status: failedCount > 0 ? "warning" : "success",
357
+ duration: 5000,
358
+ });
359
+ // Call the uploadComplete callback if provided
360
+ if (onUploadComplete) {
361
+ onUploadComplete(result);
362
+ }
363
+ };
364
+ // Determine what content to show based on the current state
365
+ const renderModalContent = () => {
366
+ // When showing only type selection, skip directly to the type selection UI
367
+ if (showTypeSelectionOnly) {
368
+ return (_jsxs(ModalBody, { className: "p-6", children: [children, renderLocationInfo(), _jsxs("div", { className: "mb-4", children: [_jsxs("label", { className: "block text-sm font-medium mb-2", children: ["Content Type ", _jsx("span", { className: "text-gray-500 font-normal", children: "(Optional)" })] }), _jsx(SelectBox, { options: types, value: selectedType, optionLabel: (type) => (type ? type.name : "Select a content type"), placeholder: "Select a content type or leave empty for automatic detection", onChange: (selected) => setSelectedType(selected === undefined ? null : selected), filterBy: "name", isClearable: true }), _jsxs("div", { className: "mt-2 text-sm text-blue-600 flex items-center", children: [_jsx(CheckCircleIcon, { className: "h-4 w-4 mr-1" }), _jsxs("span", { children: [_jsx("strong", { children: "Type selection is optional." }), " Leave empty to let Vertesia choose the appropriate type"] })] })] }), selectedType ? (_jsxs("div", { className: "text-sm text-gray-500 bg-gray-50 p-3 rounded-md mb-4", children: [_jsx("div", { className: "font-medium", children: selectedType.name }), selectedType.description && _jsx("div", { className: "mt-1", children: selectedType.description })] })) : (_jsxs("div", { className: "text-sm text-blue-600 bg-blue-50 p-3 rounded-md mb-4", children: [_jsxs("div", { className: "font-medium flex items-center", children: [_jsx(CheckCircleIcon, { className: "h-5 w-5 mr-1" }), "Automatic Type Detection"] }), _jsxs("div", { className: "mt-1", children: [_jsx("p", { children: _jsx("strong", { children: "Vertesia will analyze the content and select the most appropriate type." }) }), _jsx("p", { className: "mt-1", children: "This is recommended for most uploads and ensures optimal processing." })] })] }))] }));
369
+ }
370
+ // Step 1: File selection
371
+ if (files.length === 0 && !hideFileSelection) {
372
+ return (_jsxs(ModalBody, { className: "flex flex-col items-center justify-center p-8", children: [renderLocationInfo(), _jsx(DropZone, { onDrop: handleFileSelect, message: "Drag and drop files here or click to select", buttonLabel: "Select Files", className: "w-full h-64" }), children] }));
373
+ }
374
+ // Step 2: File processing and type selection
375
+ if (!isUploading && !uploadComplete) {
376
+ return (_jsx(ModalBody, { className: "p-6", children: !processingDone ? (
377
+ // File processing in progress
378
+ _jsxs("div", { className: "flex flex-col items-center justify-center py-8", children: [_jsx(Spinner, { size: "lg", className: "mb-4" }), _jsx("div", { className: "text-lg font-medium", children: "Analyzing files..." }), _jsx("div", { className: "text-sm text-muted mt-2", children: "Checking for duplicates and updates" })] })) : (
379
+ // Processing complete, show type selection
380
+ _jsxs(_Fragment, { children: [renderLocationInfo(), _jsxs("div", { className: "mb-4", children: [_jsxs("div", { className: "flex justify-between items-center mb-2", children: [_jsx("div", { className: "text-lg font-medium", children: "File Analysis Results" }), _jsxs("div", { className: "text-sm text-muted", children: [files.length, " file", files.length !== 1 ? "s" : ""] })] }), _jsx("div", { className: "bg-color-muted/10 p-4 rounded-md mb-4", children: _jsxs("div", { className: "grid grid-cols-3 gap-4", children: [_jsxs("div", { className: "flex flex-col items-center", children: [_jsxs("div", { className: "flex items-center", children: [_jsx(UploadIcon, { className: "h-5 w-5 text-blue-500 mr-2" }), _jsx("span", { className: "font-medium", children: "New" })] }), _jsx("div", { className: "text-2xl font-semibold", children: processingStats.toCreate })] }), _jsxs("div", { className: "flex flex-col items-center", children: [_jsxs("div", { className: "flex items-center", children: [_jsx(CheckCircleIcon, { className: "h-5 w-5 text-green-500 mr-2" }), _jsx("span", { className: "font-medium", children: "Update" })] }), _jsx("div", { className: "text-2xl font-semibold", children: processingStats.toUpdate })] }), _jsxs("div", { className: "flex flex-col items-center", children: [_jsxs("div", { className: "flex items-center", children: [_jsx(AlertCircleIcon, { className: "h-5 w-5 text-yellow-500 mr-2" }), _jsx("span", { className: "font-medium", children: "Skip" })] }), _jsx("div", { className: "text-2xl font-semibold", children: processingStats.toSkip })] })] }) })] }), _jsxs("div", { className: "mb-4", children: [_jsxs("label", { className: "block text-sm font-medium mb-2", children: ["Content Type ", _jsx("span", { className: "text-gray-500 font-normal", children: "(Optional)" })] }), _jsx(SelectBox, { options: types, value: selectedType, optionLabel: (type) => (type ? type.name : "Select a content type"), placeholder: "Select a content type or leave empty for automatic detection", onChange: (selected) => setSelectedType(selected === undefined ? null : selected), filterBy: "name", isClearable: true }), _jsxs("div", { className: "mt-2 text-sm text-blue-600 flex items-center", children: [_jsx(CheckCircleIcon, { className: "h-4 w-4 mr-1" }), _jsxs("span", { children: [_jsx("strong", { children: "Type selection is optional." }), " Leave empty to let Vertesia choose the appropriate type"] })] })] }), selectedType ? (_jsxs("div", { className: "p-4 bg-gray-50 rounded-md border border-gray-100 mb-4", children: [_jsx("div", { className: "font-medium mb-2", children: "Files to process with selected type:" }), _jsx("div", { className: "text-sm", children: processingStats.toCreate + processingStats.toUpdate > 0 ? (_jsxs("div", { className: "space-y-1", children: [_jsxs("p", { children: [processingStats.toCreate + processingStats.toUpdate, " file(s) ready to process", processingStats.toSkip > 0 &&
381
+ ` (${processingStats.toSkip} will be skipped as they already exist)`] }), _jsxs("p", { className: "text-green-600", children: ["Files will be uploaded with type:", " ", _jsx("strong", { children: selectedType.name })] }), selectedType.description && (_jsx("p", { className: "text-gray-500 mt-1", children: selectedType.description }))] })) : processingStats.toSkip > 0 ? (_jsxs("span", { children: ["All ", processingStats.toSkip, " file(s) already exist in the system and will be skipped. You can proceed to view the results."] })) : (_jsx("span", { children: "No files to process." })) })] })) : (_jsxs("div", { className: "p-4 bg-blue-50 rounded-md border border-blue-100 mb-4", children: [_jsxs("div", { className: "font-medium mb-2 flex items-center text-blue-700", children: [_jsx(CheckCircleIcon, { className: "h-5 w-5 mr-1" }), "Automatic Type Detection"] }), _jsx("div", { className: "text-sm text-blue-700", children: processingStats.toCreate + processingStats.toUpdate > 0 ? (_jsxs("div", { className: "space-y-1", children: [_jsxs("p", { children: [processingStats.toCreate + processingStats.toUpdate, " file(s) ready to process", processingStats.toSkip > 0 &&
382
+ ` (${processingStats.toSkip} will be skipped as they already exist)`] }), _jsx("p", { className: "mt-2", children: _jsx("strong", { children: "Vertesia will analyze each file and select the most appropriate type." }) }), _jsx("p", { className: "mt-1", children: "This is recommended for most uploads and ensures optimal processing." })] })) : processingStats.toSkip > 0 ? (_jsxs("span", { children: ["All ", processingStats.toSkip, " file(s) already exist in the system and will be skipped. You can proceed to view the results."] })) : (_jsx("span", { children: "No files to process." })) })] }))] })) }));
383
+ }
384
+ // Step 3: Upload in progress
385
+ if (isUploading) {
386
+ return (_jsxs(ModalBody, { className: "p-6", children: [renderLocationInfo(), _jsxs("div", { className: "mb-4", children: [_jsxs("div", { className: "flex justify-between items-center mb-2", children: [_jsx("div", { className: "text-lg font-medium", children: "Uploading Files" }), _jsxs("div", { className: "text-sm text-muted", children: [Math.round(overallProgress), "% complete"] })] }), _jsx("div", { className: "h-2 bg-color-muted/20 rounded-full overflow-hidden", children: _jsx("div", { className: "h-full bg-color-primary rounded-full", style: { width: `${overallProgress}%` } }) })] }), _jsx("div", { className: "max-h-96 overflow-y-auto", children: fileStatuses.map((fileStatus, index) => (_jsxs("div", { className: "flex items-center py-2 border-b border-color-border last:border-b-0", children: [_jsxs("div", { className: "mr-3", children: [fileStatus.status === "pending" && (_jsx(FileIcon, { className: "h-5 w-5 text-muted" })), fileStatus.status === "uploading" && _jsx(Spinner, { size: "sm" }), fileStatus.status === "success" && (_jsx(CheckCircleIcon, { className: "h-5 w-5 text-green-500" })), fileStatus.status === "error" && _jsx(XCircleIcon, { className: "h-5 w-5 text-red-500" })] }), _jsxs("div", { className: "flex-1 min-w-0", children: [_jsx("div", { className: "truncate font-medium", children: fileStatus.file.name }), _jsxs("div", { className: "text-xs text-muted", children: [fileStatus.status === "pending" && "Waiting...", fileStatus.status === "uploading" && "Uploading...", fileStatus.status === "success" &&
387
+ (fileStatus.action === "create"
388
+ ? "Created"
389
+ : fileStatus.action === "update"
390
+ ? "Updated"
391
+ : "Skipped"), fileStatus.status === "error" && fileStatus.message] })] })] }, `${fileStatus.file.name}-${index}`))) })] }));
392
+ }
393
+ // Step 4: Upload complete, show results
394
+ return (_jsx(ModalBody, { className: "p-6", children: _jsxs("div", { className: "mb-4", children: [_jsx("div", { className: "text-lg font-medium mb-2", children: "Upload Complete" }), renderLocationInfo(), _jsx(UploadSummary, { files: fileStatuses.map((f) => {
395
+ // Map fileStatus to the expected ProcessedFile format
396
+ let status;
397
+ if (f.status === "success") {
398
+ if (f.action === "create") {
399
+ status = "success";
400
+ }
401
+ else if (f.action === "update") {
402
+ status = "updated";
403
+ }
404
+ else {
405
+ status = "skipped";
406
+ }
407
+ }
408
+ else {
409
+ status = "failed";
410
+ }
411
+ return {
412
+ name: f.file.name,
413
+ status,
414
+ error: f.status === "error" ? f.message : undefined,
415
+ };
416
+ }), location: selectedFolder || undefined, collection: collectionData?.name })] }) }));
417
+ };
418
+ const renderModalFooter = () => {
419
+ // Type-selection-only mode
420
+ if (showTypeSelectionOnly) {
421
+ return (_jsxs(ModalFooter, { children: [_jsx(Button, { variant: "ghost", onClick: handleClose, children: "Cancel" }), _jsx(Button, { onClick: () => {
422
+ // Create minimal result with the selected type (or null)
423
+ const result = {
424
+ success: true,
425
+ objectIds: [],
426
+ uploadedFiles: [
427
+ {
428
+ name: "type-selection",
429
+ type: selectedType?.id || null,
430
+ status: "created",
431
+ },
432
+ ],
433
+ skippedFiles: [],
434
+ failedFiles: [],
435
+ };
436
+ if (onUploadComplete) {
437
+ onUploadComplete(result);
438
+ }
439
+ handleClose();
440
+ }, children: selectedType ? `Use ${selectedType.name}` : "Use Automatic Type Detection" })] }));
441
+ }
442
+ // File selection step - only show cancel
443
+ if (files.length === 0 && !hideFileSelection) {
444
+ return (_jsx(ModalFooter, { children: _jsx(Button, { variant: "ghost", onClick: handleClose, children: "Cancel" }) }));
445
+ }
446
+ // Processing and type selection step
447
+ if (!isUploading && !uploadComplete) {
448
+ // Allow upload even without a type (Vertesia will choose one)
449
+ const canUpload = processingDone;
450
+ return (_jsxs(ModalFooter, { children: [_jsx(Button, { variant: "ghost", onClick: handleClose, children: "Cancel" }), _jsx(Button, { disabled: !canUpload, onClick: handleUpload, className: !selectedType ? "bg-blue-600 hover:bg-blue-700" : "", children: processingStats.toCreate + processingStats.toUpdate > 0
451
+ ? selectedType
452
+ ? `Upload with ${selectedType.name}`
453
+ : "Upload with Automatic Type Detection"
454
+ : "Continue" })] }));
455
+ }
456
+ // Upload in progress - can't cancel
457
+ if (isUploading) {
458
+ return (_jsx(ModalFooter, { children: _jsx(Button, { variant: "ghost", disabled: true, children: "Uploading..." }) }));
459
+ }
460
+ // Upload complete - close or upload more
461
+ return (_jsxs(ModalFooter, { children: [_jsx(Button, { variant: "ghost", onClick: () => {
462
+ // Reset state and start over
463
+ setFiles([]);
464
+ setProcessedFiles([]);
465
+ setProcessingDone(false);
466
+ setSelectedType(null);
467
+ setFileStatuses([]);
468
+ setIsUploading(false);
469
+ setUploadComplete(false);
470
+ setOverallProgress(0);
471
+ setProcessingStats({ toCreate: 0, toUpdate: 0, toSkip: 0 });
472
+ }, children: "Upload More" }), _jsx(Button, { onClick: handleClose, children: "Close" })] }));
473
+ };
474
+ return (_jsxs(Modal, { isOpen: isOpen, onClose: handleClose, className: "w-full max-w-3xl mx-auto", children: [_jsx(ModalTitle, { children: title }), renderModalContent(), renderModalFooter()] }, modalKey));
475
+ }
476
+ //# sourceMappingURL=DocumentUploadModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentUploadModal.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/upload/DocumentUploadModal.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACpH,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO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C,CAAC,CAAC,CAAC;wBACtB,kBAAkB,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;oBAChE,CAAC,4BAGI,EACT,KAAC,MAAM,IAAC,OAAO,EAAE,WAAW,sBAAgB,IAClC,CACjB,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,MAAC,KAAK,IAAgB,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAC,0BAA0B,aAC5F,KAAC,UAAU,cAAE,KAAK,GAAc,EAC/B,kBAAkB,EAAE,EACpB,iBAAiB,EAAE,KAHZ,QAAQ,CAIZ,CACX,CAAC;AACN,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./DocumentUploadModal";
2
+ export * from "./useSmartFileUploadProcessing";
3
+ export * from "./useUploadHandler";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/features/store/objects/upload/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC"}