@webiny/app-file-manager 6.3.0-beta.4 → 6.4.0-beta.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/app.js +48 -14
- package/app.js.map +1 -1
- package/domain/constants.js +7 -0
- package/domain/constants.js.map +1 -0
- package/domain/permissionsSchema.js +28 -17
- package/domain/permissionsSchema.js.map +1 -1
- package/domain/tagsHelpers.js +25 -0
- package/domain/tagsHelpers.js.map +1 -0
- package/domain/types.d.ts +34 -0
- package/domain/types.js +0 -0
- package/features/deleteFile/DeleteFile.test.js +150 -0
- package/features/deleteFile/DeleteFile.test.js.map +1 -0
- package/features/deleteFile/DeleteFileGateway.d.ts +11 -0
- package/features/deleteFile/DeleteFileGateway.js +23 -0
- package/features/deleteFile/DeleteFileGateway.js.map +1 -0
- package/features/deleteFile/DeleteFileRepository.d.ts +12 -0
- package/features/deleteFile/DeleteFileRepository.js +26 -0
- package/features/deleteFile/DeleteFileRepository.js.map +1 -0
- package/features/deleteFile/DeleteFileUseCase.d.ts +10 -0
- package/features/deleteFile/DeleteFileUseCase.js +34 -0
- package/features/deleteFile/DeleteFileUseCase.js.map +1 -0
- package/features/deleteFile/abstractions.d.ts +36 -0
- package/features/deleteFile/abstractions.js +7 -0
- package/features/deleteFile/abstractions.js.map +1 -0
- package/features/deleteFile/feature.d.ts +3 -0
- package/features/deleteFile/feature.js +21 -0
- package/features/deleteFile/feature.js.map +1 -0
- package/features/deleteFile/index.d.ts +3 -0
- package/features/deleteFile/index.js +2 -0
- package/features/fileModel/FileModelProvider.d.ts +12 -0
- package/features/fileModel/FileModelProvider.js +21 -0
- package/features/fileModel/FileModelProvider.js.map +1 -0
- package/features/fileModel/GetFileModelGqlGateway.d.ts +12 -0
- package/features/fileModel/GetFileModelGqlGateway.js +38 -0
- package/features/fileModel/GetFileModelGqlGateway.js.map +1 -0
- package/features/fileModel/GetFileModelRepository.d.ts +14 -0
- package/features/fileModel/GetFileModelRepository.js +32 -0
- package/features/fileModel/GetFileModelRepository.js.map +1 -0
- package/features/fileModel/abstractions.d.ts +24 -0
- package/features/fileModel/abstractions.js +7 -0
- package/features/fileModel/abstractions.js.map +1 -0
- package/features/fileModel/feature.d.ts +1 -0
- package/features/fileModel/feature.js +15 -0
- package/features/fileModel/feature.js.map +1 -0
- package/features/fileModel/index.d.ts +2 -0
- package/features/fileModel/index.js +2 -0
- package/features/fileUploader/FileUploader.d.ts +22 -0
- package/features/fileUploader/FileUploader.js +239 -0
- package/features/fileUploader/FileUploader.js.map +1 -0
- package/features/fileUploader/FileUploader.test.js +425 -0
- package/features/fileUploader/FileUploader.test.js.map +1 -0
- package/features/fileUploader/abstractions.d.ts +51 -0
- package/features/fileUploader/abstractions.js +5 -0
- package/features/fileUploader/abstractions.js.map +1 -0
- package/features/fileUploader/feature.d.ts +3 -0
- package/features/fileUploader/feature.js +17 -0
- package/features/fileUploader/feature.js.map +1 -0
- package/features/fileUploader/index.d.ts +3 -0
- package/features/fileUploader/index.js +2 -0
- package/features/getFile/GetFileGateway.js +17 -16
- package/features/getFile/GetFileGateway.js.map +1 -1
- package/features/getFile/GetFileRepository.js +13 -10
- package/features/getFile/GetFileRepository.js.map +1 -1
- package/features/getFile/GetFileUseCase.js +28 -25
- package/features/getFile/GetFileUseCase.js.map +1 -1
- package/features/getFile/abstractions.js +4 -12
- package/features/getFile/abstractions.js.map +1 -1
- package/features/getFile/feature.js +15 -14
- package/features/getFile/feature.js.map +1 -1
- package/features/getFile/index.js +1 -3
- package/features/listFiles/ListFiles.test.js +192 -0
- package/features/listFiles/ListFiles.test.js.map +1 -0
- package/features/listFiles/ListFilesGateway.d.ts +11 -0
- package/features/listFiles/ListFilesGateway.js +32 -0
- package/features/listFiles/ListFilesGateway.js.map +1 -0
- package/features/listFiles/ListFilesRepository.d.ts +12 -0
- package/features/listFiles/ListFilesRepository.js +26 -0
- package/features/listFiles/ListFilesRepository.js.map +1 -0
- package/features/listFiles/ListFilesUseCase.d.ts +10 -0
- package/features/listFiles/ListFilesUseCase.js +28 -0
- package/features/listFiles/ListFilesUseCase.js.map +1 -0
- package/features/listFiles/abstractions.d.ts +45 -0
- package/features/listFiles/abstractions.js +7 -0
- package/features/listFiles/abstractions.js.map +1 -0
- package/features/listFiles/feature.d.ts +3 -0
- package/features/listFiles/feature.js +21 -0
- package/features/listFiles/feature.js.map +1 -0
- package/features/listFiles/index.d.ts +3 -0
- package/features/listFiles/index.js +2 -0
- package/features/permissions/abstractions.d.ts +2 -2
- package/features/permissions/abstractions.js +2 -1
- package/features/permissions/abstractions.js.map +1 -1
- package/features/permissions/feature.d.ts +2 -2
- package/features/permissions/feature.js +2 -1
- package/features/permissions/feature.js.map +1 -1
- package/features/resolveImageTool/ResolveImageTool.js +49 -0
- package/features/resolveImageTool/ResolveImageTool.js.map +1 -0
- package/features/resolveImageTool/feature.js +11 -0
- package/features/resolveImageTool/feature.js.map +1 -0
- package/features/settings/GetSettings.test.d.ts +1 -0
- package/features/settings/GetSettings.test.js +92 -0
- package/features/settings/GetSettings.test.js.map +1 -0
- package/features/settings/GetSettingsGateway.d.ts +12 -0
- package/features/settings/GetSettingsGateway.js +43 -0
- package/features/settings/GetSettingsGateway.js.map +1 -0
- package/features/settings/GetSettingsRepository.d.ts +14 -0
- package/features/settings/GetSettingsRepository.js +34 -0
- package/features/settings/GetSettingsRepository.js.map +1 -0
- package/features/settings/GetSettingsUseCase.d.ts +11 -0
- package/features/settings/GetSettingsUseCase.js +18 -0
- package/features/settings/GetSettingsUseCase.js.map +1 -0
- package/features/settings/SaveSettingsGateway.d.ts +12 -0
- package/features/settings/SaveSettingsGateway.js +50 -0
- package/features/settings/SaveSettingsGateway.js.map +1 -0
- package/features/settings/abstractions.d.ts +31 -0
- package/features/settings/abstractions.js +8 -0
- package/features/settings/abstractions.js.map +1 -0
- package/features/settings/feature.d.ts +3 -0
- package/features/settings/feature.js +23 -0
- package/features/settings/feature.js.map +1 -0
- package/features/settings/index.d.ts +3 -0
- package/features/settings/index.js +2 -0
- package/features/shared/FILE_FIELDS.js +30 -1
- package/features/shared/FILE_FIELDS.js.map +1 -1
- package/features/shared/FilesListCache.d.ts +1 -0
- package/features/shared/FilesListCache.js +1 -0
- package/features/shared/abstractions.d.ts +6 -0
- package/features/shared/abstractions.js +5 -0
- package/features/shared/abstractions.js.map +1 -0
- package/features/shared/feature.d.ts +4 -0
- package/features/shared/feature.js +17 -0
- package/features/shared/feature.js.map +1 -0
- package/features/shared/index.d.ts +4 -0
- package/features/shared/index.js +3 -0
- package/features/shared/types.js +0 -3
- package/features/tags/ListTags.test.d.ts +1 -0
- package/features/tags/ListTags.test.js +126 -0
- package/features/tags/ListTags.test.js.map +1 -0
- package/features/tags/ListTagsGateway.d.ts +11 -0
- package/features/tags/ListTagsGateway.js +23 -0
- package/features/tags/ListTagsGateway.js.map +1 -0
- package/features/tags/ListTagsRepository.d.ts +12 -0
- package/features/tags/ListTagsRepository.js +25 -0
- package/features/tags/ListTagsRepository.js.map +1 -0
- package/features/tags/ListTagsUseCase.d.ts +10 -0
- package/features/tags/ListTagsUseCase.js +20 -0
- package/features/tags/ListTagsUseCase.js.map +1 -0
- package/features/tags/abstractions.d.ts +32 -0
- package/features/tags/abstractions.js +7 -0
- package/features/tags/abstractions.js.map +1 -0
- package/features/tags/feature.d.ts +3 -0
- package/features/tags/feature.js +21 -0
- package/features/tags/feature.js.map +1 -0
- package/features/tags/index.d.ts +3 -0
- package/features/tags/index.js +2 -0
- package/features/updateFile/UpdateFile.test.d.ts +1 -0
- package/features/updateFile/UpdateFile.test.js +258 -0
- package/features/updateFile/UpdateFile.test.js.map +1 -0
- package/features/updateFile/UpdateFileGateway.d.ts +12 -0
- package/features/updateFile/UpdateFileGateway.js +25 -0
- package/features/updateFile/UpdateFileGateway.js.map +1 -0
- package/features/updateFile/UpdateFileRepository.d.ts +13 -0
- package/features/updateFile/UpdateFileRepository.js +30 -0
- package/features/updateFile/UpdateFileRepository.js.map +1 -0
- package/features/updateFile/UpdateFileUseCase.d.ts +10 -0
- package/features/updateFile/UpdateFileUseCase.js +38 -0
- package/features/updateFile/UpdateFileUseCase.js.map +1 -0
- package/features/updateFile/abstractions.d.ts +53 -0
- package/features/updateFile/abstractions.js +7 -0
- package/features/updateFile/abstractions.js.map +1 -0
- package/features/updateFile/feature.d.ts +3 -0
- package/features/updateFile/feature.js +21 -0
- package/features/updateFile/feature.js.map +1 -0
- package/features/updateFile/index.d.ts +3 -0
- package/features/updateFile/index.js +2 -0
- package/index.d.ts +3 -8
- package/index.js +3 -10
- package/modules/Enterprise/HandleWebsocketMessages.js +46 -50
- package/modules/Enterprise/HandleWebsocketMessages.js.map +1 -1
- package/modules/Enterprise/components/ThreatScanInProgressFileBody.js +19 -20
- package/modules/Enterprise/components/ThreatScanInProgressFileBody.js.map +1 -1
- package/modules/Enterprise/components/ThreatScanInProgressTableCell.js +15 -27
- package/modules/Enterprise/components/ThreatScanInProgressTableCell.js.map +1 -1
- package/modules/Enterprise/constants.js +3 -2
- package/modules/Enterprise/constants.js.map +1 -1
- package/modules/Enterprise/index.js +21 -31
- package/modules/Enterprise/index.js.map +1 -1
- package/modules/FileManagerRoutes.d.ts +2 -0
- package/modules/FileManagerRoutes.js +31 -0
- package/modules/FileManagerRoutes.js.map +1 -0
- package/modules/FileModelModule.d.ts +2 -0
- package/modules/FileModelModule.js +18 -0
- package/modules/FileModelModule.js.map +1 -0
- package/modules/HeadlessCms/fileField.js +38 -34
- package/modules/HeadlessCms/fileField.js.map +1 -1
- package/modules/HeadlessCms/fileRenderer/fileField.js +43 -61
- package/modules/HeadlessCms/fileRenderer/fileField.js.map +1 -1
- package/modules/HeadlessCms/fileRenderer/fileFields.js +60 -92
- package/modules/HeadlessCms/fileRenderer/fileFields.js.map +1 -1
- package/modules/HeadlessCms/fileRenderer/utils.js +13 -4
- package/modules/HeadlessCms/fileRenderer/utils.js.map +1 -1
- package/modules/HeadlessCms/index.js +6 -5
- package/modules/HeadlessCms/index.js.map +1 -1
- package/modules/SecurityPermissions.js +11 -14
- package/modules/SecurityPermissions.js.map +1 -1
- package/modules/Settings/assets/icons/folder-open.js +19 -0
- package/modules/Settings/assets/icons/folder-open.js.map +1 -0
- package/modules/Settings/graphql.js +6 -5
- package/modules/Settings/graphql.js.map +1 -1
- package/modules/Settings/index.js +23 -28
- package/modules/Settings/index.js.map +1 -1
- package/modules/Settings/views/FileManagerSettings.js +121 -139
- package/modules/Settings/views/FileManagerSettings.js.map +1 -1
- package/package.json +23 -25
- package/presentation/FileActions/FileDetails/CopyUrl.js +19 -0
- package/presentation/FileActions/FileDetails/CopyUrl.js.map +1 -0
- package/presentation/FileActions/FileDetails/DeleteImage.js +24 -0
- package/presentation/FileActions/FileDetails/DeleteImage.js.map +1 -0
- package/presentation/FileActions/FileDetails/Download.js +19 -0
- package/presentation/FileActions/FileDetails/Download.js.map +1 -0
- package/presentation/FileActions/FileDetails/MoveToFolder.js +16 -0
- package/presentation/FileActions/FileDetails/MoveToFolder.js.map +1 -0
- package/presentation/FileActions/Grid/Delete.js +23 -0
- package/presentation/FileActions/Grid/Delete.js.map +1 -0
- package/presentation/FileActions/Grid/Download.js +19 -0
- package/presentation/FileActions/Grid/Download.js.map +1 -0
- package/presentation/FileActions/Grid/MoveToFolder.js +16 -0
- package/presentation/FileActions/Grid/MoveToFolder.js.map +1 -0
- package/presentation/FileActions/Grid/Settings.js +23 -0
- package/presentation/FileActions/Grid/Settings.js.map +1 -0
- package/presentation/FileActions/index.js +39 -0
- package/presentation/FileActions/index.js.map +1 -0
- package/presentation/FileDetails/FileDetailsPresenter.d.ts +28 -0
- package/presentation/FileDetails/FileDetailsPresenter.js +138 -0
- package/presentation/FileDetails/FileDetailsPresenter.js.map +1 -0
- package/presentation/FileDetails/FileDetailsPresenter.test.d.ts +1 -0
- package/presentation/FileDetails/FileDetailsPresenter.test.js +280 -0
- package/presentation/FileDetails/FileDetailsPresenter.test.js.map +1 -0
- package/presentation/FileDetails/abstractions.d.ts +22 -0
- package/presentation/FileDetails/abstractions.js +5 -0
- package/presentation/FileDetails/abstractions.js.map +1 -0
- package/presentation/FileDetails/components/ActionButton.js +15 -0
- package/presentation/FileDetails/components/ActionButton.js.map +1 -0
- package/presentation/FileDetails/components/Actions.js +13 -0
- package/presentation/FileDetails/components/Actions.js.map +1 -0
- package/presentation/FileDetails/components/Content.js +20 -0
- package/presentation/FileDetails/components/Content.js.map +1 -0
- package/presentation/FileDetails/components/CreatedOn.js +21 -0
- package/presentation/FileDetails/components/CreatedOn.js.map +1 -0
- package/presentation/FileDetails/components/Description.js +16 -0
- package/presentation/FileDetails/components/Description.js.map +1 -0
- package/presentation/FileDetails/components/FileDetailsDrawer.d.ts +4 -0
- package/presentation/FileDetails/components/FileDetailsDrawer.js +73 -0
- package/presentation/FileDetails/components/FileDetailsDrawer.js.map +1 -0
- package/presentation/FileDetails/components/Preview.js +15 -0
- package/presentation/FileDetails/components/Preview.js.map +1 -0
- package/presentation/FileDetails/components/Thumbnail.js +12 -0
- package/presentation/FileDetails/components/Thumbnail.js.map +1 -0
- package/presentation/FileDetails/feature.d.ts +3 -0
- package/presentation/FileDetails/feature.js +17 -0
- package/presentation/FileDetails/feature.js.map +1 -0
- package/presentation/FileDetails/index.d.ts +3 -0
- package/presentation/FileDetails/index.js +2 -0
- package/presentation/FileList/FileListDataSource.d.ts +20 -0
- package/presentation/FileList/FileListDataSource.js +122 -0
- package/presentation/FileList/FileListDataSource.js.map +1 -0
- package/presentation/FileList/FileListPresenter.test.d.ts +1 -0
- package/presentation/FileList/FileListPresenter.test.js +406 -0
- package/presentation/FileList/FileListPresenter.test.js.map +1 -0
- package/presentation/FileList/FileManagerPresenter.d.ts +43 -0
- package/presentation/FileList/FileManagerPresenter.js +213 -0
- package/presentation/FileList/FileManagerPresenter.js.map +1 -0
- package/presentation/FileList/FileManagerPresenterProvider.d.ts +9 -0
- package/presentation/FileList/FileManagerPresenterProvider.js +13 -0
- package/presentation/FileList/FileManagerPresenterProvider.js.map +1 -0
- package/presentation/FileList/abstractions.d.ts +75 -0
- package/presentation/FileList/abstractions.js +5 -0
- package/presentation/FileList/abstractions.js.map +1 -0
- package/presentation/FileList/components/BottomInfoBar/BottomInfoBar.js +12 -0
- package/presentation/FileList/components/BottomInfoBar/BottomInfoBar.js.map +1 -0
- package/presentation/FileList/components/BottomInfoBar/ListStatus.js +20 -0
- package/presentation/FileList/components/BottomInfoBar/ListStatus.js.map +1 -0
- package/presentation/FileList/components/BottomInfoBar/SupportedFileTypes.js +56 -0
- package/presentation/FileList/components/BottomInfoBar/SupportedFileTypes.js.map +1 -0
- package/presentation/FileList/components/BottomInfoBar/index.js +1 -0
- package/presentation/FileList/components/BulkActions/ActionEdit.types.d.ts +2 -0
- package/presentation/FileList/components/BulkActions/ActionEdit.types.js +0 -0
- package/presentation/FileList/components/BulkActions/ActionEditPresenter.d.ts +35 -0
- package/presentation/FileList/components/BulkActions/ActionEditPresenter.js +55 -0
- package/presentation/FileList/components/BulkActions/ActionEditPresenter.js.map +1 -0
- package/presentation/FileList/components/BulkActions/ActionEditPresenter.test.d.ts +1 -0
- package/presentation/FileList/components/BulkActions/ActionEditPresenter.test.js +170 -0
- package/presentation/FileList/components/BulkActions/ActionEditPresenter.test.js.map +1 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/AddOperation.js +15 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/AddOperation.js.map +1 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditor.d.ts +15 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditor.js +44 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditor.js.map +1 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialog.d.ts +15 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialog.js +52 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialog.js.map +1 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialogPresenter.d.ts +61 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialogPresenter.js +111 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialogPresenter.js.map +1 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialogPresenter.test.d.ts +1 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialogPresenter.test.js +372 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/BatchEditorDialogPresenter.test.js.map +1 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/FieldRenderer.d.ts +8 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/FieldRenderer.js +31 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/FieldRenderer.js.map +1 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/Operation.d.ts +11 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/Operation.js +33 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/Operation.js.map +1 -0
- package/presentation/FileList/components/BulkActions/BatchEditorDialog/index.js +1 -0
- package/presentation/FileList/components/BulkActions/BulkActionBar.d.ts +5 -0
- package/presentation/FileList/components/BulkActions/BulkActionBar.js +42 -0
- package/presentation/FileList/components/BulkActions/BulkActionBar.js.map +1 -0
- package/presentation/FileList/components/BulkActions/BulkActionDelete.d.ts +4 -0
- package/presentation/FileList/components/BulkActions/BulkActionDelete.js +65 -0
- package/presentation/FileList/components/BulkActions/BulkActionDelete.js.map +1 -0
- package/presentation/FileList/components/BulkActions/BulkActionEdit.d.ts +4 -0
- package/presentation/FileList/components/BulkActions/BulkActionEdit.js +105 -0
- package/presentation/FileList/components/BulkActions/BulkActionEdit.js.map +1 -0
- package/presentation/FileList/components/BulkActions/BulkActionMove.d.ts +4 -0
- package/presentation/FileList/components/BulkActions/BulkActionMove.js +87 -0
- package/presentation/FileList/components/BulkActions/BulkActionMove.js.map +1 -0
- package/presentation/FileList/components/BulkActions/GraphQLInputMapper.d.ts +23 -0
- package/presentation/FileList/components/BulkActions/GraphQLInputMapper.js +40 -0
- package/presentation/FileList/components/BulkActions/GraphQLInputMapper.js.map +1 -0
- package/presentation/FileList/components/BulkActions/GraphQLInputMapper.test.d.ts +1 -0
- package/presentation/FileList/components/BulkActions/GraphQLInputMapper.test.js +319 -0
- package/presentation/FileList/components/BulkActions/GraphQLInputMapper.test.js.map +1 -0
- package/presentation/FileList/components/BulkActions/domain/Batch.js +32 -0
- package/presentation/FileList/components/BulkActions/domain/Batch.js.map +1 -0
- package/presentation/FileList/components/BulkActions/domain/BatchMapper.js +14 -0
- package/presentation/FileList/components/BulkActions/domain/BatchMapper.js.map +1 -0
- package/presentation/FileList/components/BulkActions/domain/Field.js +49 -0
- package/presentation/FileList/components/BulkActions/domain/Field.js.map +1 -0
- package/presentation/FileList/components/BulkActions/domain/FieldMapper.js +21 -0
- package/presentation/FileList/components/BulkActions/domain/FieldMapper.js.map +1 -0
- package/presentation/FileList/components/BulkActions/domain/index.js +4 -0
- package/presentation/FileList/components/BulkActions/index.d.ts +5 -0
- package/presentation/FileList/components/BulkActions/index.js +5 -0
- package/presentation/FileList/components/BulkActions/useBulkActionWorker.d.ts +16 -0
- package/presentation/FileList/components/BulkActions/useBulkActionWorker.js +43 -0
- package/presentation/FileList/components/BulkActions/useBulkActionWorker.js.map +1 -0
- package/presentation/FileList/components/Empty/Empty.js +20 -0
- package/presentation/FileList/components/Empty/Empty.js.map +1 -0
- package/presentation/FileList/components/Empty/index.js +1 -0
- package/presentation/FileList/components/FileDropArea/FileDropArea.js +63 -0
- package/presentation/FileList/components/FileDropArea/FileDropArea.js.map +1 -0
- package/presentation/FileList/components/FileDropArea/index.js +1 -0
- package/presentation/FileList/components/FileDropPlaceholder/FileDropPlaceholder.js +11 -0
- package/presentation/FileList/components/FileDropPlaceholder/FileDropPlaceholder.js.map +1 -0
- package/presentation/FileList/components/FileDropPlaceholder/index.js +1 -0
- package/presentation/FileList/components/FilePicker/FilePicker.d.ts +11 -0
- package/presentation/FileList/components/FilePicker/FilePicker.js +28 -0
- package/presentation/FileList/components/FilePicker/FilePicker.js.map +1 -0
- package/presentation/FileList/components/Filters/FilterByType.js +39 -0
- package/presentation/FileList/components/Filters/FilterByType.js.map +1 -0
- package/presentation/FileList/components/Filters/SubFoldersToggle.d.ts +9 -0
- package/presentation/FileList/components/Filters/SubFoldersToggle.js +25 -0
- package/presentation/FileList/components/Filters/SubFoldersToggle.js.map +1 -0
- package/presentation/FileList/components/Filters/TagsFilter.d.ts +9 -0
- package/presentation/FileList/components/Filters/TagsFilter.js +86 -0
- package/presentation/FileList/components/Filters/TagsFilter.js.map +1 -0
- package/presentation/FileList/components/Filters/TypeFilter.d.ts +8 -0
- package/presentation/FileList/components/Filters/TypeFilter.js +46 -0
- package/presentation/FileList/components/Filters/TypeFilter.js.map +1 -0
- package/presentation/FileList/components/Filters/index.d.ts +3 -0
- package/presentation/FileList/components/Filters/index.js +3 -0
- package/presentation/FileList/components/Grid/ActionButton.d.ts +9 -0
- package/presentation/FileList/components/Grid/ActionButton.js +24 -0
- package/presentation/FileList/components/Grid/ActionButton.js.map +1 -0
- package/presentation/FileList/components/Grid/File.d.ts +32 -0
- package/presentation/FileList/components/Grid/File.js +84 -0
- package/presentation/FileList/components/Grid/File.js.map +1 -0
- package/presentation/FileList/components/Grid/FileGrid.d.ts +9 -0
- package/presentation/FileList/components/Grid/FileGrid.js +168 -0
- package/presentation/FileList/components/Grid/FileGrid.js.map +1 -0
- package/presentation/FileList/components/Grid/FileGrid.test.d.ts +1 -0
- package/presentation/FileList/components/Grid/FileGrid.test.js +387 -0
- package/presentation/FileList/components/Grid/FileGrid.test.js.map +1 -0
- package/presentation/FileList/components/Grid/index.d.ts +1 -0
- package/presentation/FileList/components/Grid/index.js +1 -0
- package/presentation/FileList/components/Header/FileManagerHeader.d.ts +7 -0
- package/presentation/FileList/components/Header/FileManagerHeader.js +114 -0
- package/presentation/FileList/components/Header/FileManagerHeader.js.map +1 -0
- package/presentation/FileList/components/LayoutSwitch/LayoutSwitch.js +24 -0
- package/presentation/FileList/components/LayoutSwitch/LayoutSwitch.js.map +1 -0
- package/presentation/FileList/components/LayoutSwitch/index.js +1 -0
- package/presentation/FileList/components/NoPermissions/NoPermissions.js +27 -0
- package/presentation/FileList/components/NoPermissions/NoPermissions.js.map +1 -0
- package/presentation/FileList/components/NoPermissions/index.js +1 -0
- package/presentation/FileList/components/NoResults/NoResults.js +21 -0
- package/presentation/FileList/components/NoResults/NoResults.js.map +1 -0
- package/presentation/FileList/components/NoResults/index.js +1 -0
- package/presentation/FileList/components/Search/SearchBar.d.ts +9 -0
- package/presentation/FileList/components/Search/SearchBar.js +33 -0
- package/presentation/FileList/components/Search/SearchBar.js.map +1 -0
- package/presentation/FileList/components/Search/index.d.ts +1 -0
- package/presentation/FileList/components/Search/index.js +1 -0
- package/presentation/FileList/components/Table/Actions/CopyFile.js +21 -0
- package/presentation/FileList/components/Table/Actions/CopyFile.js.map +1 -0
- package/presentation/FileList/components/Table/Actions/DeleteFile.js +24 -0
- package/presentation/FileList/components/Table/Actions/DeleteFile.js.map +1 -0
- package/presentation/FileList/components/Table/Actions/EditFile.js +19 -0
- package/presentation/FileList/components/Table/Actions/EditFile.js.map +1 -0
- package/presentation/FileList/components/Table/Actions/MoveFile.js +19 -0
- package/presentation/FileList/components/Table/Actions/MoveFile.js.map +1 -0
- package/presentation/FileList/components/Table/Actions/index.js +4 -0
- package/presentation/FileList/components/Table/Cells/CellActions.js +28 -0
- package/presentation/FileList/components/Table/Cells/CellActions.js.map +1 -0
- package/presentation/FileList/components/Table/Cells/CellAuthor.js +10 -0
- package/presentation/FileList/components/Table/Cells/CellAuthor.js.map +1 -0
- package/presentation/FileList/components/Table/Cells/CellCreated.js +13 -0
- package/presentation/FileList/components/Table/Cells/CellCreated.js.map +1 -0
- package/presentation/FileList/components/Table/Cells/CellModified.js +13 -0
- package/presentation/FileList/components/Table/Cells/CellModified.js.map +1 -0
- package/presentation/FileList/components/Table/Cells/CellName.d.ts +16 -0
- package/presentation/FileList/components/Table/Cells/CellName.js +59 -0
- package/presentation/FileList/components/Table/Cells/CellName.js.map +1 -0
- package/presentation/FileList/components/Table/Cells/CellSize.js +14 -0
- package/presentation/FileList/components/Table/Cells/CellSize.js.map +1 -0
- package/presentation/FileList/components/Table/Cells/CellThumbnail.js +12 -0
- package/presentation/FileList/components/Table/Cells/CellThumbnail.js.map +1 -0
- package/presentation/FileList/components/Table/Cells/CellType.js +11 -0
- package/presentation/FileList/components/Table/Cells/CellType.js.map +1 -0
- package/presentation/FileList/components/Table/Cells/index.js +7 -0
- package/presentation/FileList/components/Table/FileTable.d.ts +12 -0
- package/presentation/FileList/components/Table/FileTable.js +79 -0
- package/presentation/FileList/components/Table/FileTable.js.map +1 -0
- package/presentation/FileList/components/Table/FileTable.test.d.ts +1 -0
- package/presentation/FileList/components/Table/FileTable.test.js +365 -0
- package/presentation/FileList/components/Table/FileTable.test.js.map +1 -0
- package/presentation/FileList/components/Table/index.d.ts +4 -0
- package/presentation/FileList/components/Table/index.js +3 -0
- package/presentation/FileList/components/TagsList/Empty.js +8 -0
- package/presentation/FileList/components/TagsList/Empty.js.map +1 -0
- package/presentation/FileList/components/TagsList/FilterSelect.js +38 -0
- package/presentation/FileList/components/TagsList/FilterSelect.js.map +1 -0
- package/presentation/FileList/components/TagsList/FilterStatus.js +25 -0
- package/presentation/FileList/components/TagsList/FilterStatus.js.map +1 -0
- package/presentation/FileList/components/TagsList/Tag.js +11 -0
- package/presentation/FileList/components/TagsList/Tag.js.map +1 -0
- package/presentation/FileList/components/TagsList/Tags.js +30 -0
- package/presentation/FileList/components/TagsList/Tags.js.map +1 -0
- package/presentation/FileList/components/TagsList/TagsList.js +24 -0
- package/presentation/FileList/components/TagsList/TagsList.js.map +1 -0
- package/presentation/FileList/components/TagsList/index.js +1 -0
- package/presentation/FileList/components/Thumbnail/Thumbnail.js +12 -0
- package/presentation/FileList/components/Thumbnail/Thumbnail.js.map +1 -0
- package/presentation/FileList/components/Thumbnail/index.js +1 -0
- package/presentation/FileList/components/Upload/DropZone.d.ts +19 -0
- package/presentation/FileList/components/Upload/DropZone.js +96 -0
- package/presentation/FileList/components/Upload/DropZone.js.map +1 -0
- package/presentation/FileList/components/Upload/UploadProgress.d.ts +9 -0
- package/presentation/FileList/components/Upload/UploadProgress.js +45 -0
- package/presentation/FileList/components/Upload/UploadProgress.js.map +1 -0
- package/presentation/FileList/components/Upload/index.d.ts +2 -0
- package/presentation/FileList/components/Upload/index.js +2 -0
- package/presentation/FileList/feature.d.ts +3 -0
- package/presentation/FileList/feature.js +17 -0
- package/presentation/FileList/feature.js.map +1 -0
- package/presentation/FileList/index.d.ts +5 -0
- package/presentation/FileList/index.js +3 -0
- package/presentation/FileManager/FileManagerRenderer.d.ts +2 -0
- package/presentation/FileManager/FileManagerRenderer.js +33 -0
- package/presentation/FileManager/FileManagerRenderer.js.map +1 -0
- package/presentation/FileManager/FileManagerView.d.ts +12 -0
- package/presentation/FileManager/FileManagerView.js +242 -0
- package/presentation/FileManager/FileManagerView.js.map +1 -0
- package/presentation/FileManager/OverlayContext.d.ts +14 -0
- package/presentation/FileManager/OverlayContext.js +11 -0
- package/presentation/FileManager/OverlayContext.js.map +1 -0
- package/presentation/Settings/SettingsPresenter.d.ts +14 -0
- package/presentation/Settings/SettingsPresenter.js +78 -0
- package/presentation/Settings/SettingsPresenter.js.map +1 -0
- package/presentation/Settings/components/SettingsView.d.ts +4 -0
- package/presentation/Settings/components/SettingsView.js +45 -0
- package/presentation/Settings/components/SettingsView.js.map +1 -0
- package/presentation/adapters/toFolderDto.d.ts +3 -0
- package/presentation/adapters/toFolderDto.js +30 -0
- package/presentation/adapters/toFolderDto.js.map +1 -0
- package/presentation/config/DefaultFileManagerConfig.d.ts +2 -0
- package/presentation/config/DefaultFileManagerConfig.js +118 -0
- package/presentation/config/DefaultFileManagerConfig.js.map +1 -0
- package/presentation/config/FileManagerViewConfig.d.ts +248 -0
- package/presentation/config/FileManagerViewConfig.js +74 -0
- package/presentation/config/FileManagerViewConfig.js.map +1 -0
- package/presentation/config/configComponents/Browser/BulkAction.d.ts +26 -0
- package/presentation/config/configComponents/Browser/BulkAction.js +57 -0
- package/presentation/config/configComponents/Browser/BulkAction.js.map +1 -0
- package/presentation/config/configComponents/Browser/BulkEditField.js +24 -0
- package/presentation/config/configComponents/Browser/BulkEditField.js.map +1 -0
- package/presentation/config/configComponents/Browser/FileAction.js +11 -0
- package/presentation/config/configComponents/Browser/FileAction.js.map +1 -0
- package/presentation/config/configComponents/Browser/Filter.js +37 -0
- package/presentation/config/configComponents/Browser/Filter.js.map +1 -0
- package/presentation/config/configComponents/Browser/FilterByTags.js +14 -0
- package/presentation/config/configComponents/Browser/FilterByTags.js.map +1 -0
- package/presentation/config/configComponents/Browser/FiltersToWhere.js +13 -0
- package/presentation/config/configComponents/Browser/FiltersToWhere.js.map +1 -0
- package/presentation/config/configComponents/Browser/FolderAction.js +10 -0
- package/presentation/config/configComponents/Browser/FolderAction.js.map +1 -0
- package/presentation/config/configComponents/Browser/FolderDropConfirmation.js +7 -0
- package/presentation/config/configComponents/Browser/FolderDropConfirmation.js.map +1 -0
- package/presentation/config/configComponents/Browser/FolderFieldDecorator.js +11 -0
- package/presentation/config/configComponents/Browser/FolderFieldDecorator.js.map +1 -0
- package/presentation/config/configComponents/Browser/Grid/Action.js +33 -0
- package/presentation/config/configComponents/Browser/Grid/Action.js.map +1 -0
- package/presentation/config/configComponents/Browser/Grid/Thumbnail.js +28 -0
- package/presentation/config/configComponents/Browser/Grid/Thumbnail.js.map +1 -0
- package/presentation/config/configComponents/Browser/Grid/index.js +0 -0
- package/presentation/config/configComponents/Browser/Table/Column.d.ts +32 -0
- package/presentation/config/configComponents/Browser/Table/Column.js +13 -0
- package/presentation/config/configComponents/Browser/Table/Column.js.map +1 -0
- package/presentation/config/configComponents/Browser/Table/Thumbnail.js +28 -0
- package/presentation/config/configComponents/Browser/Table/Thumbnail.js.map +1 -0
- package/presentation/config/configComponents/Browser/Table/index.d.ts +56 -0
- package/presentation/config/configComponents/Browser/Table/index.js +11 -0
- package/presentation/config/configComponents/Browser/Table/index.js.map +1 -0
- package/presentation/config/configComponents/Browser/index.d.ts +189 -0
- package/presentation/config/configComponents/Browser/index.js +47 -0
- package/presentation/config/configComponents/Browser/index.js.map +1 -0
- package/presentation/config/configComponents/FileDetails/Action.js +30 -0
- package/presentation/config/configComponents/FileDetails/Action.js.map +1 -0
- package/presentation/config/configComponents/FileDetails/Thumbnail.js +25 -0
- package/presentation/config/configComponents/FileDetails/Thumbnail.js.map +1 -0
- package/presentation/config/configComponents/FileDetails/Width.js +13 -0
- package/presentation/config/configComponents/FileDetails/Width.js.map +1 -0
- package/presentation/config/configComponents/FileDetails/index.d.ts +52 -0
- package/presentation/config/configComponents/FileDetails/index.js +16 -0
- package/presentation/config/configComponents/FileDetails/index.js.map +1 -0
- package/presentation/config/fields/AccessControl.js +38 -0
- package/presentation/config/fields/AccessControl.js.map +1 -0
- package/presentation/config/fields/Tags.js +32 -0
- package/presentation/config/fields/Tags.js.map +1 -0
- package/presentation/config/fields/index.d.ts +2 -0
- package/presentation/config/fields/index.js +2 -0
- package/presentation/config/fields/useAccessControlField.js +21 -0
- package/presentation/config/fields/useAccessControlField.js.map +1 -0
- package/presentation/config/fields/useFileOrUndefined.js +13 -0
- package/presentation/config/fields/useFileOrUndefined.js.map +1 -0
- package/presentation/config/getThumbnailRenderer.d.ts +4 -0
- package/presentation/config/getThumbnailRenderer.js +16 -0
- package/presentation/config/getThumbnailRenderer.js.map +1 -0
- package/presentation/config/outputFileSelectionError.js +27 -0
- package/presentation/config/outputFileSelectionError.js.map +1 -0
- package/presentation/config/thumbnailRenderers/FilePreviewDefaultRenderer.js +11 -0
- package/presentation/config/thumbnailRenderers/FilePreviewDefaultRenderer.js.map +1 -0
- package/presentation/config/thumbnailRenderers/FilePreviewImageRenderer.js +18 -0
- package/presentation/config/thumbnailRenderers/FilePreviewImageRenderer.js.map +1 -0
- package/presentation/config/thumbnailRenderers/GridItemDefaultRenderer.js +11 -0
- package/presentation/config/thumbnailRenderers/GridItemDefaultRenderer.js.map +1 -0
- package/presentation/config/thumbnailRenderers/GridItemImageRenderer.js +18 -0
- package/presentation/config/thumbnailRenderers/GridItemImageRenderer.js.map +1 -0
- package/presentation/config/thumbnailRenderers/TableItemDefaultRenderer.js +18 -0
- package/presentation/config/thumbnailRenderers/TableItemDefaultRenderer.js.map +1 -0
- package/presentation/config/thumbnailRenderers/TableItemImageRenderer.js +18 -0
- package/presentation/config/thumbnailRenderers/TableItemImageRenderer.js.map +1 -0
- package/presentation/contexts/FileProvider.d.ts +12 -0
- package/presentation/contexts/FileProvider.js +13 -0
- package/presentation/contexts/FileProvider.js.map +1 -0
- package/presentation/hooks/useCopyFile.d.ts +11 -0
- package/presentation/hooks/useCopyFile.js +24 -0
- package/presentation/hooks/useCopyFile.js.map +1 -0
- package/presentation/hooks/useDeleteFile.d.ts +9 -0
- package/presentation/hooks/useDeleteFile.js +35 -0
- package/presentation/hooks/useDeleteFile.js.map +1 -0
- package/presentation/hooks/useFile.d.ts +2 -0
- package/presentation/hooks/useFile.js +10 -0
- package/presentation/hooks/useFile.js.map +1 -0
- package/presentation/hooks/useMoveFileToFolder.d.ts +2 -0
- package/presentation/hooks/useMoveFileToFolder.js +36 -0
- package/presentation/hooks/useMoveFileToFolder.js.map +1 -0
- package/routes.d.ts +3 -0
- package/routes.js +13 -5
- package/routes.js.map +1 -1
- package/static/svg/folder-open.ae8d0fac.svg +1 -0
- package/BatchFileUploader.d.ts +0 -34
- package/BatchFileUploader.js +0 -87
- package/BatchFileUploader.js.map +0 -1
- package/components/BottomInfoBar/BottomInfoBar.js +0 -13
- package/components/BottomInfoBar/BottomInfoBar.js.map +0 -1
- package/components/BottomInfoBar/ListStatus.js +0 -23
- package/components/BottomInfoBar/ListStatus.js.map +0 -1
- package/components/BottomInfoBar/SupportedFileTypes.js +0 -62
- package/components/BottomInfoBar/SupportedFileTypes.js.map +0 -1
- package/components/BottomInfoBar/index.js +0 -3
- package/components/BottomInfoBar/index.js.map +0 -1
- package/components/BulkActions/ActionDelete.d.ts +0 -4
- package/components/BulkActions/ActionDelete.js +0 -80
- package/components/BulkActions/ActionDelete.js.map +0 -1
- package/components/BulkActions/ActionEdit/ActionEdit.d.ts +0 -4
- package/components/BulkActions/ActionEdit/ActionEdit.js +0 -62
- package/components/BulkActions/ActionEdit/ActionEdit.js.map +0 -1
- package/components/BulkActions/ActionEdit/ActionEdit.types.d.ts +0 -2
- package/components/BulkActions/ActionEdit/ActionEdit.types.js +0 -3
- package/components/BulkActions/ActionEdit/ActionEdit.types.js.map +0 -1
- package/components/BulkActions/ActionEdit/ActionEditPresenter.d.ts +0 -35
- package/components/BulkActions/ActionEdit/ActionEditPresenter.js +0 -55
- package/components/BulkActions/ActionEdit/ActionEditPresenter.js.map +0 -1
- package/components/BulkActions/ActionEdit/ActionEditPresenter.test.js +0 -159
- package/components/BulkActions/ActionEdit/ActionEditPresenter.test.js.map +0 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/AddOperation.js +0 -19
- package/components/BulkActions/ActionEdit/BatchEditorDialog/AddOperation.js.map +0 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.d.ts +0 -15
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.js +0 -44
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.js.map +0 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.d.ts +0 -15
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.js +0 -54
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.js.map +0 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.d.ts +0 -61
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.js +0 -140
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.js.map +0 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.test.js +0 -337
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.test.js.map +0 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.d.ts +0 -8
- package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.js +0 -33
- package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.js.map +0 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.d.ts +0 -11
- package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.js +0 -41
- package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.js.map +0 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/index.js +0 -3
- package/components/BulkActions/ActionEdit/BatchEditorDialog/index.js.map +0 -1
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.d.ts +0 -46
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.js +0 -44
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.js.map +0 -1
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.test.js +0 -270
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.test.js.map +0 -1
- package/components/BulkActions/ActionEdit/domain/Batch.js +0 -29
- package/components/BulkActions/ActionEdit/domain/Batch.js.map +0 -1
- package/components/BulkActions/ActionEdit/domain/BatchMapper.js +0 -13
- package/components/BulkActions/ActionEdit/domain/BatchMapper.js.map +0 -1
- package/components/BulkActions/ActionEdit/domain/Field.js +0 -47
- package/components/BulkActions/ActionEdit/domain/Field.js.map +0 -1
- package/components/BulkActions/ActionEdit/domain/FieldMapper.js +0 -22
- package/components/BulkActions/ActionEdit/domain/FieldMapper.js.map +0 -1
- package/components/BulkActions/ActionEdit/domain/index.js +0 -6
- package/components/BulkActions/ActionEdit/domain/index.js.map +0 -1
- package/components/BulkActions/ActionEdit/index.d.ts +0 -1
- package/components/BulkActions/ActionEdit/index.js +0 -3
- package/components/BulkActions/ActionEdit/index.js.map +0 -1
- package/components/BulkActions/ActionEdit/useActionEditWorker.d.ts +0 -7
- package/components/BulkActions/ActionEdit/useActionEditWorker.js +0 -73
- package/components/BulkActions/ActionEdit/useActionEditWorker.js.map +0 -1
- package/components/BulkActions/ActionMove.d.ts +0 -4
- package/components/BulkActions/ActionMove.js +0 -91
- package/components/BulkActions/ActionMove.js.map +0 -1
- package/components/BulkActions/BulkActions.d.ts +0 -3
- package/components/BulkActions/BulkActions.js +0 -46
- package/components/BulkActions/BulkActions.js.map +0 -1
- package/components/BulkActions/index.d.ts +0 -4
- package/components/BulkActions/index.js +0 -6
- package/components/BulkActions/index.js.map +0 -1
- package/components/EditFileUsingUrl/EditFileUsingUrl.d.ts +0 -14
- package/components/EditFileUsingUrl/EditFileUsingUrl.js +0 -53
- package/components/EditFileUsingUrl/EditFileUsingUrl.js.map +0 -1
- package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.d.ts +0 -18
- package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.js +0 -43
- package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.js.map +0 -1
- package/components/EditFileUsingUrl/EditFileUsingUrlRepository.d.ts +0 -17
- package/components/EditFileUsingUrl/EditFileUsingUrlRepository.js +0 -39
- package/components/EditFileUsingUrl/EditFileUsingUrlRepository.js.map +0 -1
- package/components/EditFileUsingUrl/GetFileByUrl.d.ts +0 -10
- package/components/EditFileUsingUrl/GetFileByUrl.js +0 -27
- package/components/EditFileUsingUrl/GetFileByUrl.js.map +0 -1
- package/components/EditFileUsingUrl/Loading.d.ts +0 -18
- package/components/EditFileUsingUrl/Loading.js +0 -42
- package/components/EditFileUsingUrl/Loading.js.map +0 -1
- package/components/EditFileUsingUrl/UpdateFile.d.ts +0 -10
- package/components/EditFileUsingUrl/UpdateFile.js +0 -10
- package/components/EditFileUsingUrl/UpdateFile.js.map +0 -1
- package/components/EditFileUsingUrl/getFileByUrl.graphql.d.ts +0 -2
- package/components/EditFileUsingUrl/getFileByUrl.graphql.js +0 -19
- package/components/EditFileUsingUrl/getFileByUrl.graphql.js.map +0 -1
- package/components/EditFileUsingUrl/index.d.ts +0 -1
- package/components/EditFileUsingUrl/index.js +0 -3
- package/components/EditFileUsingUrl/index.js.map +0 -1
- package/components/Empty/Empty.js +0 -27
- package/components/Empty/Empty.js.map +0 -1
- package/components/Empty/index.js +0 -3
- package/components/Empty/index.js.map +0 -1
- package/components/FileDetails/FileDetails.d.ts +0 -11
- package/components/FileDetails/FileDetails.js +0 -141
- package/components/FileDetails/FileDetails.js.map +0 -1
- package/components/FileDetails/FileDetailsProvider.d.ts +0 -16
- package/components/FileDetails/FileDetailsProvider.js +0 -21
- package/components/FileDetails/FileDetailsProvider.js.map +0 -1
- package/components/FileDetails/components/ActionButton.js +0 -23
- package/components/FileDetails/components/ActionButton.js.map +0 -1
- package/components/FileDetails/components/Actions.js +0 -14
- package/components/FileDetails/components/Actions.js.map +0 -1
- package/components/FileDetails/components/BaseFields.d.ts +0 -7
- package/components/FileDetails/components/BaseFields.js +0 -29
- package/components/FileDetails/components/BaseFields.js.map +0 -1
- package/components/FileDetails/components/Content.js +0 -35
- package/components/FileDetails/components/Content.js.map +0 -1
- package/components/FileDetails/components/CreatedOn.js +0 -22
- package/components/FileDetails/components/CreatedOn.js.map +0 -1
- package/components/FileDetails/components/Description.js +0 -23
- package/components/FileDetails/components/Description.js.map +0 -1
- package/components/FileDetails/components/Extensions.d.ts +0 -7
- package/components/FileDetails/components/Extensions.js +0 -36
- package/components/FileDetails/components/Extensions.js.map +0 -1
- package/components/FileDetails/components/Preview.js +0 -12
- package/components/FileDetails/components/Preview.js.map +0 -1
- package/components/FileDetails/components/Thumbnail.js +0 -16
- package/components/FileDetails/components/Thumbnail.js.map +0 -1
- package/components/FileDetails/index.d.ts +0 -1
- package/components/FileDetails/index.js +0 -3
- package/components/FileDetails/index.js.map +0 -1
- package/components/FileDropArea/FileDropArea.js +0 -69
- package/components/FileDropArea/FileDropArea.js.map +0 -1
- package/components/FileDropArea/index.js +0 -3
- package/components/FileDropArea/index.js.map +0 -1
- package/components/FileDropPlaceholder/FileDropPlaceholder.js +0 -12
- package/components/FileDropPlaceholder/FileDropPlaceholder.js.map +0 -1
- package/components/FileDropPlaceholder/index.js +0 -3
- package/components/FileDropPlaceholder/index.js.map +0 -1
- package/components/Filters/Filters.d.ts +0 -2
- package/components/Filters/Filters.js +0 -26
- package/components/Filters/Filters.js.map +0 -1
- package/components/Filters/index.d.ts +0 -1
- package/components/Filters/index.js +0 -3
- package/components/Filters/index.js.map +0 -1
- package/components/Grid/ActionButton.d.ts +0 -9
- package/components/Grid/ActionButton.js +0 -28
- package/components/Grid/ActionButton.js.map +0 -1
- package/components/Grid/File.d.ts +0 -32
- package/components/Grid/File.js +0 -85
- package/components/Grid/File.js.map +0 -1
- package/components/Grid/Grid.d.ts +0 -21
- package/components/Grid/Grid.js +0 -71
- package/components/Grid/Grid.js.map +0 -1
- package/components/Grid/Thumbnail.js +0 -16
- package/components/Grid/Thumbnail.js.map +0 -1
- package/components/Grid/index.d.ts +0 -1
- package/components/Grid/index.js +0 -3
- package/components/Grid/index.js.map +0 -1
- package/components/Header/Actions.d.ts +0 -5
- package/components/Header/Actions.js +0 -99
- package/components/Header/Actions.js.map +0 -1
- package/components/Header/Header.d.ts +0 -9
- package/components/Header/Header.js +0 -21
- package/components/Header/Header.js.map +0 -1
- package/components/Header/Title.d.ts +0 -2
- package/components/Header/Title.js +0 -55
- package/components/Header/Title.js.map +0 -1
- package/components/Header/index.d.ts +0 -1
- package/components/Header/index.js +0 -3
- package/components/Header/index.js.map +0 -1
- package/components/LayoutSwitch/LayoutSwitch.js +0 -22
- package/components/LayoutSwitch/LayoutSwitch.js.map +0 -1
- package/components/LayoutSwitch/index.js +0 -3
- package/components/LayoutSwitch/index.js.map +0 -1
- package/components/NoPermissions/NoPermissions.js +0 -28
- package/components/NoPermissions/NoPermissions.js.map +0 -1
- package/components/NoPermissions/index.js +0 -3
- package/components/NoPermissions/index.js.map +0 -1
- package/components/NoResults/NoResults.js +0 -22
- package/components/NoResults/NoResults.js.map +0 -1
- package/components/NoResults/index.js +0 -3
- package/components/NoResults/index.js.map +0 -1
- package/components/SearchWidget/SearchWidget.d.ts +0 -2
- package/components/SearchWidget/SearchWidget.js +0 -30
- package/components/SearchWidget/SearchWidget.js.map +0 -1
- package/components/SearchWidget/index.d.ts +0 -1
- package/components/SearchWidget/index.js +0 -3
- package/components/SearchWidget/index.js.map +0 -1
- package/components/Table/Actions/CopyFile.js +0 -26
- package/components/Table/Actions/CopyFile.js.map +0 -1
- package/components/Table/Actions/DeleteFile.js +0 -33
- package/components/Table/Actions/DeleteFile.js.map +0 -1
- package/components/Table/Actions/EditFile.js +0 -24
- package/components/Table/Actions/EditFile.js.map +0 -1
- package/components/Table/Actions/MoveFile.js +0 -22
- package/components/Table/Actions/MoveFile.js.map +0 -1
- package/components/Table/Actions/index.js +0 -6
- package/components/Table/Actions/index.js.map +0 -1
- package/components/Table/Cells/CellActions.js +0 -37
- package/components/Table/Cells/CellActions.js.map +0 -1
- package/components/Table/Cells/CellAuthor.js +0 -16
- package/components/Table/Cells/CellAuthor.js.map +0 -1
- package/components/Table/Cells/CellCreated.js +0 -19
- package/components/Table/Cells/CellCreated.js.map +0 -1
- package/components/Table/Cells/CellModified.js +0 -19
- package/components/Table/Cells/CellModified.js.map +0 -1
- package/components/Table/Cells/CellName.d.ts +0 -16
- package/components/Table/Cells/CellName.js +0 -70
- package/components/Table/Cells/CellName.js.map +0 -1
- package/components/Table/Cells/CellSize.js +0 -20
- package/components/Table/Cells/CellSize.js.map +0 -1
- package/components/Table/Cells/CellThumbnail.js +0 -16
- package/components/Table/Cells/CellThumbnail.js.map +0 -1
- package/components/Table/Cells/CellType.js +0 -17
- package/components/Table/Cells/CellType.js.map +0 -1
- package/components/Table/Cells/index.js +0 -9
- package/components/Table/Cells/index.js.map +0 -1
- package/components/Table/Table.d.ts +0 -10
- package/components/Table/Table.js +0 -35
- package/components/Table/Table.js.map +0 -1
- package/components/Table/index.d.ts +0 -3
- package/components/Table/index.js +0 -5
- package/components/Table/index.js.map +0 -1
- package/components/TagsList/Empty.js +0 -11
- package/components/TagsList/Empty.js.map +0 -1
- package/components/TagsList/FilterSelect.js +0 -28
- package/components/TagsList/FilterSelect.js.map +0 -1
- package/components/TagsList/FilterStatus.js +0 -27
- package/components/TagsList/FilterStatus.js.map +0 -1
- package/components/TagsList/Tag.js +0 -16
- package/components/TagsList/Tag.js.map +0 -1
- package/components/TagsList/Tags.js +0 -32
- package/components/TagsList/Tags.js.map +0 -1
- package/components/TagsList/TagsList.js +0 -31
- package/components/TagsList/TagsList.js.map +0 -1
- package/components/TagsList/index.js +0 -3
- package/components/TagsList/index.js.map +0 -1
- package/components/Thumbnail/Thumbnail.d.ts +0 -2
- package/components/Thumbnail/Thumbnail.js +0 -16
- package/components/Thumbnail/Thumbnail.js.map +0 -1
- package/components/Thumbnail/index.js +0 -3
- package/components/Thumbnail/index.js.map +0 -1
- package/components/UploadStatus/UploadStatus.d.ts +0 -8
- package/components/UploadStatus/UploadStatus.js +0 -38
- package/components/UploadStatus/UploadStatus.js.map +0 -1
- package/components/UploadStatus/index.d.ts +0 -1
- package/components/UploadStatus/index.js +0 -3
- package/components/UploadStatus/index.js.map +0 -1
- package/components/fields/AccessControl.js +0 -49
- package/components/fields/AccessControl.js.map +0 -1
- package/components/fields/Description.d.ts +0 -2
- package/components/fields/Description.js +0 -25
- package/components/fields/Description.js.map +0 -1
- package/components/fields/Name.d.ts +0 -2
- package/components/fields/Name.js +0 -29
- package/components/fields/Name.js.map +0 -1
- package/components/fields/Tags.js +0 -39
- package/components/fields/Tags.js.map +0 -1
- package/components/fields/index.d.ts +0 -4
- package/components/fields/index.js +0 -6
- package/components/fields/index.js.map +0 -1
- package/components/fields/useAccessControlField.js +0 -26
- package/components/fields/useAccessControlField.js.map +0 -1
- package/components/fields/useFileOrUndefined.js +0 -12
- package/components/fields/useFileOrUndefined.js.map +0 -1
- package/constants.js +0 -6
- package/constants.js.map +0 -1
- package/contexts/FileProvider.d.ts +0 -13
- package/contexts/FileProvider.js +0 -22
- package/contexts/FileProvider.js.map +0 -1
- package/features/getFile/index.js.map +0 -1
- package/features/shared/types.js.map +0 -1
- package/hooks/useCopyFile.d.ts +0 -11
- package/hooks/useCopyFile.js +0 -25
- package/hooks/useCopyFile.js.map +0 -1
- package/hooks/useDeleteFile.d.ts +0 -9
- package/hooks/useDeleteFile.js +0 -41
- package/hooks/useDeleteFile.js.map +0 -1
- package/hooks/useFile.d.ts +0 -2
- package/hooks/useFile.js +0 -11
- package/hooks/useFile.js.map +0 -1
- package/hooks/useFileDetails.d.ts +0 -2
- package/hooks/useFileDetails.js +0 -11
- package/hooks/useFileDetails.js.map +0 -1
- package/hooks/useFileModel.d.ts +0 -1
- package/hooks/useFileModel.js +0 -11
- package/hooks/useFileModel.js.map +0 -1
- package/hooks/useMoveFileToFolder.d.ts +0 -2
- package/hooks/useMoveFileToFolder.js +0 -32
- package/hooks/useMoveFileToFolder.js.map +0 -1
- package/index.js.map +0 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.d.ts +0 -43
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.js +0 -227
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.js.map +0 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.d.ts +0 -6
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.js +0 -25
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.js.map +0 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.d.ts +0 -2
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.js +0 -33
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.js.map +0 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.d.ts +0 -2
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.js +0 -10
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.js.map +0 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/index.d.ts +0 -3
- package/modules/FileManagerApiProvider/FileManagerApiContext/index.js +0 -5
- package/modules/FileManagerApiProvider/FileManagerApiContext/index.js.map +0 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.d.ts +0 -3
- package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.js +0 -11
- package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.js.map +0 -1
- package/modules/FileManagerApiProvider/graphql.d.ts +0 -124
- package/modules/FileManagerApiProvider/graphql.js +0 -118
- package/modules/FileManagerApiProvider/graphql.js.map +0 -1
- package/modules/FileManagerApiProvider/index.d.ts +0 -2
- package/modules/FileManagerApiProvider/index.js +0 -18
- package/modules/FileManagerApiProvider/index.js.map +0 -1
- package/modules/FileManagerRenderer/FileActions/FileDetails/CopyUrl.js +0 -24
- package/modules/FileManagerRenderer/FileActions/FileDetails/CopyUrl.js.map +0 -1
- package/modules/FileManagerRenderer/FileActions/FileDetails/DeleteImage.js +0 -35
- package/modules/FileManagerRenderer/FileActions/FileDetails/DeleteImage.js.map +0 -1
- package/modules/FileManagerRenderer/FileActions/FileDetails/Download.js +0 -24
- package/modules/FileManagerRenderer/FileActions/FileDetails/Download.js.map +0 -1
- package/modules/FileManagerRenderer/FileActions/FileDetails/MoveToFolder.js +0 -19
- package/modules/FileManagerRenderer/FileActions/FileDetails/MoveToFolder.js.map +0 -1
- package/modules/FileManagerRenderer/FileActions/Grid/Delete.js +0 -29
- package/modules/FileManagerRenderer/FileActions/Grid/Delete.js.map +0 -1
- package/modules/FileManagerRenderer/FileActions/Grid/Download.js +0 -24
- package/modules/FileManagerRenderer/FileActions/Grid/Download.js.map +0 -1
- package/modules/FileManagerRenderer/FileActions/Grid/MoveToFolder.js +0 -19
- package/modules/FileManagerRenderer/FileActions/Grid/MoveToFolder.js.map +0 -1
- package/modules/FileManagerRenderer/FileActions/Grid/Settings.js +0 -23
- package/modules/FileManagerRenderer/FileActions/Grid/Settings.js.map +0 -1
- package/modules/FileManagerRenderer/FileActions/index.js +0 -43
- package/modules/FileManagerRenderer/FileActions/index.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/FileManagerView.d.ts +0 -5
- package/modules/FileManagerRenderer/FileManagerView/FileManagerView.js +0 -280
- package/modules/FileManagerRenderer/FileManagerView/FileManagerView.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.d.ts +0 -281
- package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.js +0 -59
- package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.d.ts +0 -8
- package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.js +0 -47
- package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.d.ts +0 -26
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.js +0 -66
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkEditField.js +0 -26
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkEditField.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.js +0 -14
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.js +0 -44
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FilterByTags.js +0 -17
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FilterByTags.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FiltersToWhere.js +0 -16
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FiltersToWhere.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.js +0 -13
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderDropConfirmation.js +0 -10
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderDropConfirmation.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderFieldDecorator.js +0 -16
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderFieldDecorator.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.js +0 -38
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.js +0 -30
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.js +0 -3
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.d.ts +0 -32
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.js +0 -16
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Thumbnail.js +0 -30
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Thumbnail.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.d.ts +0 -56
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.js +0 -10
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.d.ts +0 -189
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.js +0 -46
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.js +0 -35
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.d.ts +0 -39
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.js +0 -44
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.d.ts +0 -8
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.js +0 -25
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.d.ts +0 -5
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.js +0 -16
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.js +0 -27
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Width.js +0 -16
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Width.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.d.ts +0 -86
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.js +0 -23
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/formatFileItem.d.ts +0 -6
- package/modules/FileManagerRenderer/FileManagerView/formatFileItem.js +0 -19
- package/modules/FileManagerRenderer/FileManagerView/formatFileItem.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.d.ts +0 -4
- package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.js +0 -21
- package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/index.d.ts +0 -13
- package/modules/FileManagerRenderer/FileManagerView/index.js +0 -77
- package/modules/FileManagerRenderer/FileManagerView/index.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.js +0 -30
- package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.d.ts +0 -89
- package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.js +0 -459
- package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/index.d.ts +0 -2
- package/modules/FileManagerRenderer/FileManagerViewProvider/index.js +0 -4
- package/modules/FileManagerRenderer/FileManagerViewProvider/index.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.d.ts +0 -31
- package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.js +0 -100
- package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/state.d.ts +0 -33
- package/modules/FileManagerRenderer/FileManagerViewProvider/state.js +0 -34
- package/modules/FileManagerRenderer/FileManagerViewProvider/state.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.d.ts +0 -3
- package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.js +0 -11
- package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.d.ts +0 -24
- package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.js +0 -153
- package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.d.ts +0 -11
- package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.js +0 -89
- package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.js.map +0 -1
- package/modules/FileManagerRenderer/filters/FilterByType.js +0 -32
- package/modules/FileManagerRenderer/filters/FilterByType.js.map +0 -1
- package/modules/FileManagerRenderer/index.d.ts +0 -2
- package/modules/FileManagerRenderer/index.js +0 -140
- package/modules/FileManagerRenderer/index.js.map +0 -1
- package/modules/ThumbnailRenderers/FilePreviewDefaultRenderer.js +0 -12
- package/modules/ThumbnailRenderers/FilePreviewDefaultRenderer.js.map +0 -1
- package/modules/ThumbnailRenderers/FilePreviewImageRenderer.js +0 -19
- package/modules/ThumbnailRenderers/FilePreviewImageRenderer.js.map +0 -1
- package/modules/ThumbnailRenderers/GridItemDefaultRenderer.js +0 -12
- package/modules/ThumbnailRenderers/GridItemDefaultRenderer.js.map +0 -1
- package/modules/ThumbnailRenderers/GridItemImageRenderer.js +0 -19
- package/modules/ThumbnailRenderers/GridItemImageRenderer.js.map +0 -1
- package/modules/ThumbnailRenderers/TableItemDefaultRenderer.js +0 -19
- package/modules/ThumbnailRenderers/TableItemDefaultRenderer.js.map +0 -1
- package/modules/ThumbnailRenderers/TableItemImageRenderer.js +0 -19
- package/modules/ThumbnailRenderers/TableItemImageRenderer.js.map +0 -1
- package/presentation/resolveImageTool/ResolveImageTool.js +0 -48
- package/presentation/resolveImageTool/ResolveImageTool.js.map +0 -1
- package/presentation/resolveImageTool/feature.js +0 -10
- package/presentation/resolveImageTool/feature.js.map +0 -1
- package/tagsHelpers.js +0 -35
- package/tagsHelpers.js.map +0 -1
- package/types.d.ts +0 -78
- package/types.js +0 -3
- package/types.js.map +0 -1
- /package/{constants.d.ts → domain/constants.d.ts} +0 -0
- /package/{tagsHelpers.d.ts → domain/tagsHelpers.d.ts} +0 -0
- /package/{components/BulkActions/ActionEdit/ActionEditPresenter.test.d.ts → features/deleteFile/DeleteFile.test.d.ts} +0 -0
- /package/{components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.test.d.ts → features/fileUploader/FileUploader.test.d.ts} +0 -0
- /package/{components/BulkActions/ActionEdit/GraphQLInputMapper.test.d.ts → features/listFiles/ListFiles.test.d.ts} +0 -0
- /package/{presentation → features}/resolveImageTool/ResolveImageTool.d.ts +0 -0
- /package/{presentation → features}/resolveImageTool/feature.d.ts +0 -0
- /package/{modules/FileManagerRenderer → presentation}/FileActions/FileDetails/CopyUrl.d.ts +0 -0
- /package/{modules/FileManagerRenderer → presentation}/FileActions/FileDetails/DeleteImage.d.ts +0 -0
- /package/{modules/FileManagerRenderer → presentation}/FileActions/FileDetails/Download.d.ts +0 -0
- /package/{modules/FileManagerRenderer → presentation}/FileActions/FileDetails/MoveToFolder.d.ts +0 -0
- /package/{modules/FileManagerRenderer → presentation}/FileActions/Grid/Delete.d.ts +0 -0
- /package/{modules/FileManagerRenderer → presentation}/FileActions/Grid/Download.d.ts +0 -0
- /package/{modules/FileManagerRenderer → presentation}/FileActions/Grid/MoveToFolder.d.ts +0 -0
- /package/{modules/FileManagerRenderer → presentation}/FileActions/Grid/Settings.d.ts +0 -0
- /package/{modules/FileManagerRenderer → presentation}/FileActions/index.d.ts +0 -0
- /package/{components → presentation}/FileDetails/components/ActionButton.d.ts +0 -0
- /package/{components → presentation}/FileDetails/components/Actions.d.ts +0 -0
- /package/{components → presentation}/FileDetails/components/Content.d.ts +0 -0
- /package/{components → presentation}/FileDetails/components/CreatedOn.d.ts +0 -0
- /package/{components → presentation}/FileDetails/components/Description.d.ts +0 -0
- /package/{components → presentation}/FileDetails/components/Preview.d.ts +0 -0
- /package/{components → presentation}/FileDetails/components/Thumbnail.d.ts +0 -0
- /package/{components → presentation/FileList/components}/BottomInfoBar/BottomInfoBar.d.ts +0 -0
- /package/{components → presentation/FileList/components}/BottomInfoBar/ListStatus.d.ts +0 -0
- /package/{components → presentation/FileList/components}/BottomInfoBar/SupportedFileTypes.d.ts +0 -0
- /package/{components → presentation/FileList/components}/BottomInfoBar/index.d.ts +0 -0
- /package/{components/BulkActions/ActionEdit → presentation/FileList/components/BulkActions}/BatchEditorDialog/AddOperation.d.ts +0 -0
- /package/{components/BulkActions/ActionEdit → presentation/FileList/components/BulkActions}/BatchEditorDialog/index.d.ts +0 -0
- /package/{components/BulkActions/ActionEdit → presentation/FileList/components/BulkActions}/domain/Batch.d.ts +0 -0
- /package/{components/BulkActions/ActionEdit → presentation/FileList/components/BulkActions}/domain/BatchMapper.d.ts +0 -0
- /package/{components/BulkActions/ActionEdit → presentation/FileList/components/BulkActions}/domain/Field.d.ts +0 -0
- /package/{components/BulkActions/ActionEdit → presentation/FileList/components/BulkActions}/domain/FieldMapper.d.ts +0 -0
- /package/{components/BulkActions/ActionEdit → presentation/FileList/components/BulkActions}/domain/index.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Empty/Empty.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Empty/index.d.ts +0 -0
- /package/{components → presentation/FileList/components}/FileDropArea/FileDropArea.d.ts +0 -0
- /package/{components → presentation/FileList/components}/FileDropArea/index.d.ts +0 -0
- /package/{components → presentation/FileList/components}/FileDropPlaceholder/FileDropPlaceholder.d.ts +0 -0
- /package/{components → presentation/FileList/components}/FileDropPlaceholder/index.d.ts +0 -0
- /package/{modules/FileManagerRenderer/filters → presentation/FileList/components/Filters}/FilterByType.d.ts +0 -0
- /package/{components → presentation/FileList/components}/LayoutSwitch/LayoutSwitch.d.ts +0 -0
- /package/{components → presentation/FileList/components}/LayoutSwitch/index.d.ts +0 -0
- /package/{components → presentation/FileList/components}/NoPermissions/NoPermissions.d.ts +0 -0
- /package/{components → presentation/FileList/components}/NoPermissions/index.d.ts +0 -0
- /package/{components → presentation/FileList/components}/NoResults/NoResults.d.ts +0 -0
- /package/{components → presentation/FileList/components}/NoResults/index.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Actions/CopyFile.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Actions/DeleteFile.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Actions/EditFile.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Actions/MoveFile.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Actions/index.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Cells/CellActions.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Cells/CellAuthor.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Cells/CellCreated.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Cells/CellModified.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Cells/CellSize.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Cells/CellThumbnail.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Cells/CellType.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Table/Cells/index.d.ts +0 -0
- /package/{components → presentation/FileList/components}/TagsList/Empty.d.ts +0 -0
- /package/{components → presentation/FileList/components}/TagsList/FilterSelect.d.ts +0 -0
- /package/{components → presentation/FileList/components}/TagsList/FilterStatus.d.ts +0 -0
- /package/{components → presentation/FileList/components}/TagsList/Tag.d.ts +0 -0
- /package/{components → presentation/FileList/components}/TagsList/Tags.d.ts +0 -0
- /package/{components → presentation/FileList/components}/TagsList/TagsList.d.ts +0 -0
- /package/{components → presentation/FileList/components}/TagsList/index.d.ts +0 -0
- /package/{components/Grid → presentation/FileList/components/Thumbnail}/Thumbnail.d.ts +0 -0
- /package/{components → presentation/FileList/components}/Thumbnail/index.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/BulkEditField.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/FileAction.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/Filter.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/FilterByTags.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/FiltersToWhere.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/FolderAction.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/FolderDropConfirmation.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/FolderFieldDecorator.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/Grid/Action.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/Grid/Thumbnail.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/Grid/index.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/Browser/Table/Thumbnail.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/FileDetails/Action.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/FileDetails/Thumbnail.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/configComponents/FileDetails/Width.d.ts +0 -0
- /package/{components → presentation/config}/fields/AccessControl.d.ts +0 -0
- /package/{components → presentation/config}/fields/Tags.d.ts +0 -0
- /package/{components → presentation/config}/fields/useAccessControlField.d.ts +0 -0
- /package/{components → presentation/config}/fields/useFileOrUndefined.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView → presentation/config}/outputFileSelectionError.d.ts +0 -0
- /package/{modules/ThumbnailRenderers → presentation/config/thumbnailRenderers}/FilePreviewDefaultRenderer.d.ts +0 -0
- /package/{modules/ThumbnailRenderers → presentation/config/thumbnailRenderers}/FilePreviewImageRenderer.d.ts +0 -0
- /package/{modules/ThumbnailRenderers → presentation/config/thumbnailRenderers}/GridItemDefaultRenderer.d.ts +0 -0
- /package/{modules/ThumbnailRenderers → presentation/config/thumbnailRenderers}/GridItemImageRenderer.d.ts +0 -0
- /package/{modules/ThumbnailRenderers → presentation/config/thumbnailRenderers}/TableItemDefaultRenderer.d.ts +0 -0
- /package/{modules/ThumbnailRenderers → presentation/config/thumbnailRenderers}/TableItemImageRenderer.d.ts +0 -0
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
import { describe, expect, it, vi } from "vitest";
|
|
2
|
+
import { observable } from "mobx";
|
|
3
|
+
function toDataTableSorting(sort) {
|
|
4
|
+
if (!sort) return [];
|
|
5
|
+
return [
|
|
6
|
+
{
|
|
7
|
+
id: sort.field,
|
|
8
|
+
desc: "DESC" === sort.direction
|
|
9
|
+
}
|
|
10
|
+
];
|
|
11
|
+
}
|
|
12
|
+
function toFolderTableRows(nodes) {
|
|
13
|
+
return nodes.map((node)=>({
|
|
14
|
+
id: node.id,
|
|
15
|
+
$type: "FOLDER",
|
|
16
|
+
$selectable: false,
|
|
17
|
+
data: {
|
|
18
|
+
id: node.id,
|
|
19
|
+
title: node.name,
|
|
20
|
+
slug: node.slug,
|
|
21
|
+
type: "",
|
|
22
|
+
parentId: node.parentId,
|
|
23
|
+
path: "",
|
|
24
|
+
permissions: [],
|
|
25
|
+
hasNonInheritedPermissions: false,
|
|
26
|
+
canManagePermissions: false,
|
|
27
|
+
canManageStructure: false,
|
|
28
|
+
canManageContent: false,
|
|
29
|
+
createdBy: {
|
|
30
|
+
id: "",
|
|
31
|
+
displayName: ""
|
|
32
|
+
},
|
|
33
|
+
createdOn: "",
|
|
34
|
+
savedBy: {
|
|
35
|
+
id: "",
|
|
36
|
+
displayName: ""
|
|
37
|
+
},
|
|
38
|
+
savedOn: "",
|
|
39
|
+
modifiedBy: null,
|
|
40
|
+
modifiedOn: null,
|
|
41
|
+
extensions: {}
|
|
42
|
+
}
|
|
43
|
+
}));
|
|
44
|
+
}
|
|
45
|
+
function createMockFile(overrides = {}) {
|
|
46
|
+
return {
|
|
47
|
+
id: "file-1",
|
|
48
|
+
name: "photo.jpg",
|
|
49
|
+
key: "files/photo.jpg",
|
|
50
|
+
src: "https://cdn.example.com/files/photo.jpg",
|
|
51
|
+
type: "image/jpeg",
|
|
52
|
+
size: 1024,
|
|
53
|
+
metadata: {},
|
|
54
|
+
tags: [],
|
|
55
|
+
createdOn: "2025-01-01T00:00:00Z",
|
|
56
|
+
savedOn: "2025-01-02T00:00:00Z",
|
|
57
|
+
createdBy: {
|
|
58
|
+
id: "user-1",
|
|
59
|
+
displayName: "Alice",
|
|
60
|
+
type: "admin"
|
|
61
|
+
},
|
|
62
|
+
savedBy: {
|
|
63
|
+
id: "user-1",
|
|
64
|
+
displayName: "Alice",
|
|
65
|
+
type: "admin"
|
|
66
|
+
},
|
|
67
|
+
location: {
|
|
68
|
+
folderId: "root"
|
|
69
|
+
},
|
|
70
|
+
...overrides
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function createMockFolderNode(overrides = {}) {
|
|
74
|
+
return {
|
|
75
|
+
id: "folder-1",
|
|
76
|
+
name: "Documents",
|
|
77
|
+
slug: "documents",
|
|
78
|
+
parentId: null,
|
|
79
|
+
children: [],
|
|
80
|
+
hasNonInheritedPermissions: false,
|
|
81
|
+
canManagePermissions: false,
|
|
82
|
+
canManageStructure: true,
|
|
83
|
+
...overrides
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function createMockPresenter(vmOverrides = {}) {
|
|
87
|
+
const defaultVm = observable({
|
|
88
|
+
fileModel: null,
|
|
89
|
+
list: {
|
|
90
|
+
rows: [],
|
|
91
|
+
sort: null,
|
|
92
|
+
filters: {},
|
|
93
|
+
search: "",
|
|
94
|
+
appliedQuery: null,
|
|
95
|
+
pagination: {
|
|
96
|
+
hasMore: false,
|
|
97
|
+
loading: false,
|
|
98
|
+
loadingMore: false,
|
|
99
|
+
totalCount: 0,
|
|
100
|
+
currentCount: 0
|
|
101
|
+
},
|
|
102
|
+
selection: {
|
|
103
|
+
selectedIds: new Set(),
|
|
104
|
+
selectedCount: 0,
|
|
105
|
+
allSelected: false
|
|
106
|
+
},
|
|
107
|
+
empty: true,
|
|
108
|
+
emptyWithFilters: false,
|
|
109
|
+
error: null
|
|
110
|
+
},
|
|
111
|
+
folders: {
|
|
112
|
+
folders: [],
|
|
113
|
+
tree: [],
|
|
114
|
+
currentFolderId: null,
|
|
115
|
+
currentFolder: null,
|
|
116
|
+
loading: false,
|
|
117
|
+
operation: {
|
|
118
|
+
active: false,
|
|
119
|
+
mode: null
|
|
120
|
+
},
|
|
121
|
+
isRootFolder: true,
|
|
122
|
+
currentFolderTitle: "All Files",
|
|
123
|
+
childFolders: [],
|
|
124
|
+
loadingNodeIds: []
|
|
125
|
+
},
|
|
126
|
+
permissions: {
|
|
127
|
+
canRead: true,
|
|
128
|
+
canCreate: true,
|
|
129
|
+
canEdit: true,
|
|
130
|
+
canDelete: true,
|
|
131
|
+
canEditFile: ()=>true,
|
|
132
|
+
canDeleteFile: ()=>true
|
|
133
|
+
},
|
|
134
|
+
upload: {
|
|
135
|
+
jobs: [],
|
|
136
|
+
overallProgress: {
|
|
137
|
+
percentage: 0,
|
|
138
|
+
bytesSent: 0,
|
|
139
|
+
totalBytes: 0
|
|
140
|
+
},
|
|
141
|
+
isUploading: false
|
|
142
|
+
},
|
|
143
|
+
tags: [],
|
|
144
|
+
showFolders: true,
|
|
145
|
+
viewMode: "table",
|
|
146
|
+
dragging: false,
|
|
147
|
+
showingFilters: false,
|
|
148
|
+
isOverlay: false,
|
|
149
|
+
accept: [],
|
|
150
|
+
multiple: false,
|
|
151
|
+
scope: void 0,
|
|
152
|
+
fileDetails: null,
|
|
153
|
+
...vmOverrides
|
|
154
|
+
});
|
|
155
|
+
return {
|
|
156
|
+
vm: defaultVm,
|
|
157
|
+
actions: {
|
|
158
|
+
search: {
|
|
159
|
+
set: vi.fn(),
|
|
160
|
+
clear: vi.fn()
|
|
161
|
+
},
|
|
162
|
+
sort: {
|
|
163
|
+
set: vi.fn(),
|
|
164
|
+
toggle: vi.fn()
|
|
165
|
+
},
|
|
166
|
+
filter: {
|
|
167
|
+
set: vi.fn(),
|
|
168
|
+
clear: vi.fn(),
|
|
169
|
+
clearAll: vi.fn()
|
|
170
|
+
},
|
|
171
|
+
selection: {
|
|
172
|
+
toggle: vi.fn(),
|
|
173
|
+
selectRangeTo: vi.fn(),
|
|
174
|
+
selectAll: vi.fn(),
|
|
175
|
+
deselectAll: vi.fn(),
|
|
176
|
+
selectRows: vi.fn(),
|
|
177
|
+
isSelected: vi.fn().mockReturnValue(false)
|
|
178
|
+
},
|
|
179
|
+
loadMore: vi.fn().mockResolvedValue(void 0),
|
|
180
|
+
refresh: vi.fn().mockResolvedValue(void 0),
|
|
181
|
+
upload: vi.fn().mockResolvedValue(void 0),
|
|
182
|
+
setViewMode: vi.fn(),
|
|
183
|
+
showFileDetails: vi.fn(),
|
|
184
|
+
hideFileDetails: vi.fn(),
|
|
185
|
+
setDragging: vi.fn(),
|
|
186
|
+
showFilters: vi.fn(),
|
|
187
|
+
hideFilters: vi.fn(),
|
|
188
|
+
folders: {
|
|
189
|
+
selectFolder: vi.fn(),
|
|
190
|
+
createFolder: vi.fn(),
|
|
191
|
+
editFolder: vi.fn(),
|
|
192
|
+
deleteFolder: vi.fn().mockResolvedValue(void 0),
|
|
193
|
+
moveFolder: vi.fn().mockResolvedValue(void 0),
|
|
194
|
+
loadChildFolders: vi.fn().mockResolvedValue(void 0),
|
|
195
|
+
canManageStructure: vi.fn().mockReturnValue(true),
|
|
196
|
+
getAncestorIds: vi.fn().mockReturnValue([]),
|
|
197
|
+
submitOperation: vi.fn().mockResolvedValue(true),
|
|
198
|
+
cancelOperation: vi.fn()
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
init: vi.fn(),
|
|
202
|
+
dispose: vi.fn()
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
describe("FileTable — sorting conversion", ()=>{
|
|
206
|
+
it("should convert null sort to empty DataTable sorting", ()=>{
|
|
207
|
+
expect(toDataTableSorting(null)).toEqual([]);
|
|
208
|
+
});
|
|
209
|
+
it("should convert ASC sort to DataTable format", ()=>{
|
|
210
|
+
const result = toDataTableSorting({
|
|
211
|
+
field: "name",
|
|
212
|
+
direction: "ASC"
|
|
213
|
+
});
|
|
214
|
+
expect(result).toEqual([
|
|
215
|
+
{
|
|
216
|
+
id: "name",
|
|
217
|
+
desc: false
|
|
218
|
+
}
|
|
219
|
+
]);
|
|
220
|
+
});
|
|
221
|
+
it("should convert DESC sort to DataTable format", ()=>{
|
|
222
|
+
const result = toDataTableSorting({
|
|
223
|
+
field: "createdOn",
|
|
224
|
+
direction: "DESC"
|
|
225
|
+
});
|
|
226
|
+
expect(result).toEqual([
|
|
227
|
+
{
|
|
228
|
+
id: "createdOn",
|
|
229
|
+
desc: true
|
|
230
|
+
}
|
|
231
|
+
]);
|
|
232
|
+
});
|
|
233
|
+
});
|
|
234
|
+
describe("FileTable — folder data mapping", ()=>{
|
|
235
|
+
it("should map IFolderTreeNode to FolderTableRow with $type FOLDER", ()=>{
|
|
236
|
+
const node = createMockFolderNode({
|
|
237
|
+
id: "f1",
|
|
238
|
+
name: "Images",
|
|
239
|
+
slug: "images"
|
|
240
|
+
});
|
|
241
|
+
const rows = toFolderTableRows([
|
|
242
|
+
node
|
|
243
|
+
]);
|
|
244
|
+
expect(rows).toHaveLength(1);
|
|
245
|
+
expect(rows[0].id).toBe("f1");
|
|
246
|
+
expect(rows[0].$type).toBe("FOLDER");
|
|
247
|
+
expect(rows[0].$selectable).toBe(false);
|
|
248
|
+
expect(rows[0].data.title).toBe("Images");
|
|
249
|
+
expect(rows[0].data.slug).toBe("images");
|
|
250
|
+
});
|
|
251
|
+
it("should map multiple folder nodes", ()=>{
|
|
252
|
+
const nodes = [
|
|
253
|
+
createMockFolderNode({
|
|
254
|
+
id: "f1",
|
|
255
|
+
name: "Docs"
|
|
256
|
+
}),
|
|
257
|
+
createMockFolderNode({
|
|
258
|
+
id: "f2",
|
|
259
|
+
name: "Photos"
|
|
260
|
+
})
|
|
261
|
+
];
|
|
262
|
+
const rows = toFolderTableRows(nodes);
|
|
263
|
+
expect(rows).toHaveLength(2);
|
|
264
|
+
expect(rows[0].id).toBe("f1");
|
|
265
|
+
expect(rows[1].id).toBe("f2");
|
|
266
|
+
});
|
|
267
|
+
it("should return empty array for empty folder list", ()=>{
|
|
268
|
+
expect(toFolderTableRows([])).toEqual([]);
|
|
269
|
+
});
|
|
270
|
+
});
|
|
271
|
+
describe("FileTable — sort action wiring", ()=>{
|
|
272
|
+
it("should call actions.sort.set when sorting changes to DESC", ()=>{
|
|
273
|
+
const presenter = createMockPresenter();
|
|
274
|
+
const newSorting = [
|
|
275
|
+
{
|
|
276
|
+
id: "size",
|
|
277
|
+
desc: true
|
|
278
|
+
}
|
|
279
|
+
];
|
|
280
|
+
if (newSorting.length > 0) {
|
|
281
|
+
const { id, desc } = newSorting[0];
|
|
282
|
+
presenter.actions.sort.set(id, desc ? "DESC" : "ASC");
|
|
283
|
+
}
|
|
284
|
+
expect(presenter.actions.sort.set).toHaveBeenCalledWith("size", "DESC");
|
|
285
|
+
});
|
|
286
|
+
it("should call actions.sort.set when sorting changes to ASC", ()=>{
|
|
287
|
+
const presenter = createMockPresenter();
|
|
288
|
+
const newSorting = [
|
|
289
|
+
{
|
|
290
|
+
id: "name",
|
|
291
|
+
desc: false
|
|
292
|
+
}
|
|
293
|
+
];
|
|
294
|
+
if (newSorting.length > 0) {
|
|
295
|
+
const { id, desc } = newSorting[0];
|
|
296
|
+
presenter.actions.sort.set(id, desc ? "DESC" : "ASC");
|
|
297
|
+
}
|
|
298
|
+
expect(presenter.actions.sort.set).toHaveBeenCalledWith("name", "ASC");
|
|
299
|
+
});
|
|
300
|
+
});
|
|
301
|
+
describe("FileTable — selection action wiring", ()=>{
|
|
302
|
+
it("should call actions.selection.toggle for RECORD row toggle", ()=>{
|
|
303
|
+
const presenter = createMockPresenter();
|
|
304
|
+
const row = {
|
|
305
|
+
id: "file-1",
|
|
306
|
+
$type: "RECORD",
|
|
307
|
+
$selectable: true,
|
|
308
|
+
data: createMockFile()
|
|
309
|
+
};
|
|
310
|
+
if ("RECORD" === row.$type) presenter.actions.selection.toggle(row.id);
|
|
311
|
+
expect(presenter.actions.selection.toggle).toHaveBeenCalledWith("file-1");
|
|
312
|
+
});
|
|
313
|
+
it("should not call actions.selection.toggle for FOLDER row toggle", ()=>{
|
|
314
|
+
const presenter = createMockPresenter();
|
|
315
|
+
const row = {
|
|
316
|
+
id: "folder-1",
|
|
317
|
+
$type: "FOLDER",
|
|
318
|
+
$selectable: false,
|
|
319
|
+
data: {}
|
|
320
|
+
};
|
|
321
|
+
if ("RECORD" === row.$type) presenter.actions.selection.toggle(row.id);
|
|
322
|
+
expect(presenter.actions.selection.toggle).not.toHaveBeenCalled();
|
|
323
|
+
});
|
|
324
|
+
it("should call actions.selection.deselectAll when empty selection", ()=>{
|
|
325
|
+
const presenter = createMockPresenter();
|
|
326
|
+
const rows = [];
|
|
327
|
+
if (0 === rows.length) presenter.actions.selection.deselectAll();
|
|
328
|
+
expect(presenter.actions.selection.deselectAll).toHaveBeenCalled();
|
|
329
|
+
});
|
|
330
|
+
it("should call actions.selection.selectRows with file IDs only", ()=>{
|
|
331
|
+
const presenter = createMockPresenter();
|
|
332
|
+
const rows = [
|
|
333
|
+
{
|
|
334
|
+
id: "file-1",
|
|
335
|
+
$type: "RECORD",
|
|
336
|
+
$selectable: true,
|
|
337
|
+
data: createMockFile({
|
|
338
|
+
id: "file-1"
|
|
339
|
+
})
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
id: "folder-1",
|
|
343
|
+
$type: "FOLDER",
|
|
344
|
+
$selectable: false,
|
|
345
|
+
data: {}
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
id: "file-2",
|
|
349
|
+
$type: "RECORD",
|
|
350
|
+
$selectable: true,
|
|
351
|
+
data: createMockFile({
|
|
352
|
+
id: "file-2"
|
|
353
|
+
})
|
|
354
|
+
}
|
|
355
|
+
];
|
|
356
|
+
const ids = rows.filter((row)=>"RECORD" === row.$type).map((row)=>row.id);
|
|
357
|
+
presenter.actions.selection.selectRows(ids);
|
|
358
|
+
expect(presenter.actions.selection.selectRows).toHaveBeenCalledWith([
|
|
359
|
+
"file-1",
|
|
360
|
+
"file-2"
|
|
361
|
+
]);
|
|
362
|
+
});
|
|
363
|
+
});
|
|
364
|
+
|
|
365
|
+
//# sourceMappingURL=FileTable.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/Table/FileTable.test.js","sources":["../../../../../src/presentation/FileList/components/Table/FileTable.test.ts"],"sourcesContent":["// @vitest-environment jsdom\nimport { describe, it, expect, vi } from \"vitest\";\nimport { observable } from \"mobx\";\nimport type { IFileManagerPresenter, IFileManagerViewModel } from \"../../abstractions.js\";\nimport type { IFolderTreeNode } from \"@webiny/app-aco/presentation/folderTree/abstractions.js\";\nimport type { FmFile } from \"~/features/shared/types.js\";\n\n// ---------------------------------------------------------------------------\n// Helpers — extracted from FileTable.tsx for unit testing.\n// ---------------------------------------------------------------------------\n\n/**\n * Convert presenter sort state to DataTable sorting format.\n */\nfunction toDataTableSorting(\n sort: { field: string; direction: \"ASC\" | \"DESC\" } | null\n): Array<{ id: string; desc: boolean }> {\n if (!sort) {\n return [];\n }\n return [{ id: sort.field, desc: sort.direction === \"DESC\" }];\n}\n\n/**\n * Map IFolderTreeNode to FolderTableRow-compatible shape.\n */\nfunction toFolderTableRows(nodes: IFolderTreeNode[]) {\n return nodes.map(node => ({\n id: node.id,\n $type: \"FOLDER\" as const,\n $selectable: false,\n data: {\n id: node.id,\n title: node.name,\n slug: node.slug,\n type: \"\",\n parentId: node.parentId,\n path: \"\",\n permissions: [],\n hasNonInheritedPermissions: false,\n canManagePermissions: false,\n canManageStructure: false,\n canManageContent: false,\n createdBy: { id: \"\", displayName: \"\" },\n createdOn: \"\",\n savedBy: { id: \"\", displayName: \"\" },\n savedOn: \"\",\n modifiedBy: null,\n modifiedOn: null,\n extensions: {}\n }\n }));\n}\n\n// ---------------------------------------------------------------------------\n// Mock file factory.\n// ---------------------------------------------------------------------------\n\nfunction createMockFile(overrides: Partial<FmFile> = {}): FmFile {\n return {\n id: \"file-1\",\n name: \"photo.jpg\",\n key: \"files/photo.jpg\",\n src: \"https://cdn.example.com/files/photo.jpg\",\n type: \"image/jpeg\",\n size: 1024,\n metadata: {},\n tags: [],\n createdOn: \"2025-01-01T00:00:00Z\",\n savedOn: \"2025-01-02T00:00:00Z\",\n createdBy: { id: \"user-1\", displayName: \"Alice\", type: \"admin\" },\n savedBy: { id: \"user-1\", displayName: \"Alice\", type: \"admin\" },\n location: { folderId: \"root\" },\n ...overrides\n };\n}\n\nfunction createMockFolderNode(overrides: Partial<IFolderTreeNode> = {}): IFolderTreeNode {\n return {\n id: \"folder-1\",\n name: \"Documents\",\n slug: \"documents\",\n parentId: null,\n children: [],\n hasNonInheritedPermissions: false,\n canManagePermissions: false,\n canManageStructure: true,\n ...overrides\n };\n}\n\nfunction createMockPresenter(\n vmOverrides: Partial<IFileManagerViewModel> = {}\n): IFileManagerPresenter {\n const defaultVm: IFileManagerViewModel = observable({\n fileModel: null,\n list: {\n rows: [],\n sort: null,\n filters: {},\n search: \"\",\n appliedQuery: null,\n pagination: {\n hasMore: false,\n loading: false,\n loadingMore: false,\n totalCount: 0,\n currentCount: 0\n },\n selection: {\n selectedIds: new Set<string>(),\n selectedCount: 0,\n allSelected: false\n },\n empty: true,\n emptyWithFilters: false,\n error: null\n },\n folders: {\n folders: [],\n tree: [],\n currentFolderId: null,\n currentFolder: null,\n loading: false,\n operation: { active: false, mode: null },\n isRootFolder: true,\n currentFolderTitle: \"All Files\",\n childFolders: [],\n loadingNodeIds: []\n },\n permissions: {\n canRead: true,\n canCreate: true,\n canEdit: true,\n canDelete: true,\n canEditFile: () => true,\n canDeleteFile: () => true\n },\n upload: {\n jobs: [],\n overallProgress: { percentage: 0, bytesSent: 0, totalBytes: 0 },\n isUploading: false\n },\n tags: [],\n showFolders: true,\n viewMode: \"table\" as const,\n dragging: false,\n showingFilters: false,\n isOverlay: false,\n accept: [],\n multiple: false,\n scope: undefined,\n fileDetails: null,\n ...vmOverrides\n });\n\n return {\n vm: defaultVm,\n actions: {\n search: { set: vi.fn(), clear: vi.fn() },\n sort: { set: vi.fn(), toggle: vi.fn() },\n filter: { set: vi.fn(), clear: vi.fn(), clearAll: vi.fn() },\n selection: {\n toggle: vi.fn(),\n selectRangeTo: vi.fn(),\n selectAll: vi.fn(),\n deselectAll: vi.fn(),\n selectRows: vi.fn(),\n isSelected: vi.fn().mockReturnValue(false)\n },\n loadMore: vi.fn().mockResolvedValue(undefined),\n refresh: vi.fn().mockResolvedValue(undefined),\n upload: vi.fn().mockResolvedValue(undefined),\n setViewMode: vi.fn(),\n showFileDetails: vi.fn(),\n hideFileDetails: vi.fn(),\n setDragging: vi.fn(),\n showFilters: vi.fn(),\n hideFilters: vi.fn(),\n folders: {\n selectFolder: vi.fn(),\n createFolder: vi.fn(),\n editFolder: vi.fn(),\n deleteFolder: vi.fn().mockResolvedValue(undefined),\n moveFolder: vi.fn().mockResolvedValue(undefined),\n loadChildFolders: vi.fn().mockResolvedValue(undefined),\n canManageStructure: vi.fn().mockReturnValue(true),\n getAncestorIds: vi.fn().mockReturnValue([]),\n submitOperation: vi.fn().mockResolvedValue(true),\n cancelOperation: vi.fn()\n }\n },\n init: vi.fn(),\n dispose: vi.fn()\n };\n}\n\n// ---------------------------------------------------------------------------\n// Tests\n// ---------------------------------------------------------------------------\n\ndescribe(\"FileTable — sorting conversion\", () => {\n it(\"should convert null sort to empty DataTable sorting\", () => {\n expect(toDataTableSorting(null)).toEqual([]);\n });\n\n it(\"should convert ASC sort to DataTable format\", () => {\n const result = toDataTableSorting({ field: \"name\", direction: \"ASC\" });\n expect(result).toEqual([{ id: \"name\", desc: false }]);\n });\n\n it(\"should convert DESC sort to DataTable format\", () => {\n const result = toDataTableSorting({ field: \"createdOn\", direction: \"DESC\" });\n expect(result).toEqual([{ id: \"createdOn\", desc: true }]);\n });\n});\n\ndescribe(\"FileTable — folder data mapping\", () => {\n it(\"should map IFolderTreeNode to FolderTableRow with $type FOLDER\", () => {\n const node = createMockFolderNode({ id: \"f1\", name: \"Images\", slug: \"images\" });\n const rows = toFolderTableRows([node]);\n\n expect(rows).toHaveLength(1);\n expect(rows[0].id).toBe(\"f1\");\n expect(rows[0].$type).toBe(\"FOLDER\");\n expect(rows[0].$selectable).toBe(false);\n expect(rows[0].data.title).toBe(\"Images\");\n expect(rows[0].data.slug).toBe(\"images\");\n });\n\n it(\"should map multiple folder nodes\", () => {\n const nodes = [\n createMockFolderNode({ id: \"f1\", name: \"Docs\" }),\n createMockFolderNode({ id: \"f2\", name: \"Photos\" })\n ];\n const rows = toFolderTableRows(nodes);\n\n expect(rows).toHaveLength(2);\n expect(rows[0].id).toBe(\"f1\");\n expect(rows[1].id).toBe(\"f2\");\n });\n\n it(\"should return empty array for empty folder list\", () => {\n expect(toFolderTableRows([])).toEqual([]);\n });\n});\n\ndescribe(\"FileTable — sort action wiring\", () => {\n it(\"should call actions.sort.set when sorting changes to DESC\", () => {\n const presenter = createMockPresenter();\n\n // Simulate what the component does when onSortingChange fires.\n const newSorting = [{ id: \"size\", desc: true }];\n if (newSorting.length > 0) {\n const { id, desc } = newSorting[0];\n presenter.actions.sort.set(id, desc ? \"DESC\" : \"ASC\");\n }\n\n expect(presenter.actions.sort.set).toHaveBeenCalledWith(\"size\", \"DESC\");\n });\n\n it(\"should call actions.sort.set when sorting changes to ASC\", () => {\n const presenter = createMockPresenter();\n\n const newSorting = [{ id: \"name\", desc: false }];\n if (newSorting.length > 0) {\n const { id, desc } = newSorting[0];\n presenter.actions.sort.set(id, desc ? \"DESC\" : \"ASC\");\n }\n\n expect(presenter.actions.sort.set).toHaveBeenCalledWith(\"name\", \"ASC\");\n });\n});\n\ndescribe(\"FileTable — selection action wiring\", () => {\n it(\"should call actions.selection.toggle for RECORD row toggle\", () => {\n const presenter = createMockPresenter();\n\n // Simulate onToggleRow for a file row.\n const row = {\n id: \"file-1\",\n $type: \"RECORD\" as const,\n $selectable: true,\n data: createMockFile()\n };\n if (row.$type === \"RECORD\") {\n presenter.actions.selection.toggle(row.id);\n }\n\n expect(presenter.actions.selection.toggle).toHaveBeenCalledWith(\"file-1\");\n });\n\n it(\"should not call actions.selection.toggle for FOLDER row toggle\", () => {\n const presenter = createMockPresenter();\n\n // Simulate onToggleRow for a folder row — folders are not selectable.\n const row = { id: \"folder-1\", $type: \"FOLDER\" as const, $selectable: false, data: {} };\n if ((row.$type as string) === \"RECORD\") {\n presenter.actions.selection.toggle(row.id);\n }\n\n expect(presenter.actions.selection.toggle).not.toHaveBeenCalled();\n });\n\n it(\"should call actions.selection.deselectAll when empty selection\", () => {\n const presenter = createMockPresenter();\n\n // Simulate onSelectRow with empty array.\n const rows: Array<{ id: string; $type: string }> = [];\n if (rows.length === 0) {\n presenter.actions.selection.deselectAll();\n }\n\n expect(presenter.actions.selection.deselectAll).toHaveBeenCalled();\n });\n\n it(\"should call actions.selection.selectRows with file IDs only\", () => {\n const presenter = createMockPresenter();\n\n // Simulate onSelectRow with mixed rows.\n const rows = [\n {\n id: \"file-1\",\n $type: \"RECORD\" as const,\n $selectable: true,\n data: createMockFile({ id: \"file-1\" })\n },\n { id: \"folder-1\", $type: \"FOLDER\" as const, $selectable: false, data: {} },\n {\n id: \"file-2\",\n $type: \"RECORD\" as const,\n $selectable: true,\n data: createMockFile({ id: \"file-2\" })\n }\n ];\n\n const ids = rows.filter(row => row.$type === \"RECORD\").map(row => row.id);\n presenter.actions.selection.selectRows(ids);\n\n expect(presenter.actions.selection.selectRows).toHaveBeenCalledWith([\"file-1\", \"file-2\"]);\n });\n});\n"],"names":["toDataTableSorting","sort","toFolderTableRows","nodes","node","createMockFile","overrides","createMockFolderNode","createMockPresenter","vmOverrides","defaultVm","observable","Set","undefined","vi","describe","it","expect","result","rows","presenter","newSorting","id","desc","row","ids"],"mappings":"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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { Text } from "@webiny/admin-ui";
|
|
3
|
+
const Empty = ({ disclaimer = "No tags found..." })=>/*#__PURE__*/ react.createElement(Text, {
|
|
4
|
+
className: "text-neutral-muted"
|
|
5
|
+
}, disclaimer);
|
|
6
|
+
export { Empty };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=Empty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/TagsList/Empty.js","sources":["../../../../../src/presentation/FileList/components/TagsList/Empty.tsx"],"sourcesContent":["import React from \"react\";\nimport { Text } from \"@webiny/admin-ui\";\n\ntype EmptyProps = {\n disclaimer?: string;\n};\n\nexport const Empty = ({ disclaimer = `No tags found...` }: EmptyProps) => {\n return <Text className={\"text-neutral-muted\"}>{disclaimer}</Text>;\n};\n"],"names":["Empty","disclaimer","Text"],"mappings":";;AAOO,MAAMA,QAAQ,CAAC,EAAEC,aAAa,kBAAkB,EAAc,GAC1D,WAAP,GAAO,oBAACC,MAAIA;QAAC,WAAW;OAAuBD"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import react, { useState } from "react";
|
|
2
|
+
import { Select, Text } from "@webiny/admin-ui";
|
|
3
|
+
import { useFileManagerPresenter } from "../../FileManagerPresenterProvider.js";
|
|
4
|
+
const options = [
|
|
5
|
+
{
|
|
6
|
+
value: "OR",
|
|
7
|
+
label: "match any"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
value: "AND",
|
|
11
|
+
label: "match all"
|
|
12
|
+
}
|
|
13
|
+
];
|
|
14
|
+
const FilterSelect = ()=>{
|
|
15
|
+
const { vm, actions } = useFileManagerPresenter();
|
|
16
|
+
const activeTags = vm.list.filters["tags"] ?? [];
|
|
17
|
+
const [filterMode, setFilterMode] = useState("OR");
|
|
18
|
+
return /*#__PURE__*/ react.createElement("div", {
|
|
19
|
+
className: "flex flex-col gap-sm mb-md"
|
|
20
|
+
}, /*#__PURE__*/ react.createElement(Text, {
|
|
21
|
+
className: "font-semibold"
|
|
22
|
+
}, "Filter by tag"), /*#__PURE__*/ react.createElement(Select, {
|
|
23
|
+
disabled: activeTags.length < 2,
|
|
24
|
+
size: "md",
|
|
25
|
+
variant: "secondary",
|
|
26
|
+
value: filterMode,
|
|
27
|
+
onChange: (mode)=>{
|
|
28
|
+
const typedMode = mode;
|
|
29
|
+
setFilterMode(typedMode);
|
|
30
|
+
if (activeTags.length > 0) actions.filter.set("tags_rule", typedMode);
|
|
31
|
+
},
|
|
32
|
+
options: options,
|
|
33
|
+
displayResetAction: false
|
|
34
|
+
}));
|
|
35
|
+
};
|
|
36
|
+
export { FilterSelect };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=FilterSelect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/TagsList/FilterSelect.js","sources":["../../../../../src/presentation/FileList/components/TagsList/FilterSelect.tsx"],"sourcesContent":["import React, { useState } from \"react\";\nimport { Select, Text } from \"@webiny/admin-ui\";\nimport { useFileManagerPresenter } from \"~/presentation/FileList/FileManagerPresenterProvider.js\";\n\nconst options = [\n {\n value: \"OR\",\n label: \"match any\"\n },\n {\n value: \"AND\",\n label: \"match all\"\n }\n];\n\nexport const FilterSelect = () => {\n const { vm, actions } = useFileManagerPresenter();\n const activeTags = (vm.list.filters[\"tags\"] as string[] | undefined) ?? [];\n const [filterMode, setFilterMode] = useState<\"AND\" | \"OR\">(\"OR\");\n\n return (\n <div className={\"flex flex-col gap-sm mb-md\"}>\n <Text className={\"font-semibold\"}>Filter by tag</Text>\n <Select\n disabled={activeTags.length < 2}\n size={\"md\"}\n variant={\"secondary\"}\n value={filterMode}\n onChange={mode => {\n const typedMode = mode as \"AND\" | \"OR\";\n setFilterMode(typedMode);\n if (activeTags.length > 0) {\n actions.filter.set(\"tags_rule\", typedMode);\n }\n }}\n options={options}\n displayResetAction={false}\n />\n </div>\n );\n};\n"],"names":["options","FilterSelect","vm","actions","useFileManagerPresenter","activeTags","filterMode","setFilterMode","useState","Text","Select","mode","typedMode"],"mappings":";;;AAIA,MAAMA,UAAU;IACZ;QACI,OAAO;QACP,OAAO;IACX;IACA;QACI,OAAO;QACP,OAAO;IACX;CACH;AAEM,MAAMC,eAAe;IACxB,MAAM,EAAEC,EAAE,EAAEC,OAAO,EAAE,GAAGC;IACxB,MAAMC,aAAcH,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,IAA6B,EAAE;IAC1E,MAAM,CAACI,YAAYC,cAAc,GAAGC,SAAuB;IAE3D,OAAO,WAAP,GACI,oBAAC;QAAI,WAAW;qBACZ,oBAACC,MAAIA;QAAC,WAAW;OAAiB,gCAClC,oBAACC,QAAMA;QACH,UAAUL,WAAW,MAAM,GAAG;QAC9B,MAAM;QACN,SAAS;QACT,OAAOC;QACP,UAAUK,CAAAA;YACN,MAAMC,YAAYD;YAClBJ,cAAcK;YACd,IAAIP,WAAW,MAAM,GAAG,GACpBF,QAAQ,MAAM,CAAC,GAAG,CAAC,aAAaS;QAExC;QACA,SAASZ;QACT,oBAAoB;;AAIpC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import react, { useCallback } from "react";
|
|
2
|
+
import { Button, Text } from "@webiny/admin-ui";
|
|
3
|
+
import { useFileManagerPresenter } from "../../FileManagerPresenterProvider.js";
|
|
4
|
+
const FilterStatus = ({ activeTags, onActivatedTagsChange })=>{
|
|
5
|
+
const { actions } = useFileManagerPresenter();
|
|
6
|
+
const resetTags = useCallback(()=>{
|
|
7
|
+
onActivatedTagsChange([]);
|
|
8
|
+
actions.filter.clear("tags_rule");
|
|
9
|
+
}, []);
|
|
10
|
+
return /*#__PURE__*/ react.createElement("div", {
|
|
11
|
+
className: "mb-md flex items-center justify-between gap-sm"
|
|
12
|
+
}, /*#__PURE__*/ react.createElement(Text, {
|
|
13
|
+
size: "sm",
|
|
14
|
+
className: "text-neutral-muted"
|
|
15
|
+
}, activeTags.length, " selected"), /*#__PURE__*/ react.createElement(Button, {
|
|
16
|
+
onClick: resetTags,
|
|
17
|
+
size: "sm",
|
|
18
|
+
variant: "ghost",
|
|
19
|
+
text: "Reset",
|
|
20
|
+
disabled: 0 === activeTags.length
|
|
21
|
+
}));
|
|
22
|
+
};
|
|
23
|
+
export { FilterStatus };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=FilterStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/TagsList/FilterStatus.js","sources":["../../../../../src/presentation/FileList/components/TagsList/FilterStatus.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { Button, Text } from \"@webiny/admin-ui\";\nimport { useFileManagerPresenter } from \"~/presentation/FileList/FileManagerPresenterProvider.js\";\n\ninterface FilterStatusProps {\n activeTags: string[];\n onActivatedTagsChange: (tags: string[]) => void;\n}\n\nexport const FilterStatus = ({ activeTags, onActivatedTagsChange }: FilterStatusProps) => {\n const { actions } = useFileManagerPresenter();\n\n const resetTags = useCallback(() => {\n onActivatedTagsChange([]);\n actions.filter.clear(\"tags_rule\");\n }, []);\n\n return (\n <div className={\"mb-md flex items-center justify-between gap-sm\"}>\n <Text size={\"sm\"} className={\"text-neutral-muted\"}>\n {activeTags.length} selected\n </Text>\n <Button\n onClick={resetTags}\n size={\"sm\"}\n variant={\"ghost\"}\n text={\"Reset\"}\n disabled={activeTags.length === 0}\n />\n </div>\n );\n};\n"],"names":["FilterStatus","activeTags","onActivatedTagsChange","actions","useFileManagerPresenter","resetTags","useCallback","Text","Button"],"mappings":";;;AASO,MAAMA,eAAe,CAAC,EAAEC,UAAU,EAAEC,qBAAqB,EAAqB;IACjF,MAAM,EAAEC,OAAO,EAAE,GAAGC;IAEpB,MAAMC,YAAYC,YAAY;QAC1BJ,sBAAsB,EAAE;QACxBC,QAAQ,MAAM,CAAC,KAAK,CAAC;IACzB,GAAG,EAAE;IAEL,OAAO,WAAP,GACI,oBAAC;QAAI,WAAW;qBACZ,oBAACI,MAAIA;QAAC,MAAM;QAAM,WAAW;OACxBN,WAAW,MAAM,EAAC,4BAEvB,oBAACO,QAAMA;QACH,SAASH;QACT,MAAM;QACN,SAAS;QACT,MAAM;QACN,UAAUJ,AAAsB,MAAtBA,WAAW,MAAM;;AAI3C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { Tag } from "@webiny/admin-ui";
|
|
3
|
+
const Tag_Tag = ({ tagItem, active, onTagClick })=>/*#__PURE__*/ react.createElement("div", null, /*#__PURE__*/ react.createElement(Tag, {
|
|
4
|
+
variant: active ? "accent" : "neutral-muted",
|
|
5
|
+
content: tagItem.tag,
|
|
6
|
+
onClick: ()=>onTagClick(tagItem),
|
|
7
|
+
onDismiss: active ? ()=>onTagClick(tagItem) : void 0
|
|
8
|
+
}));
|
|
9
|
+
export { Tag_Tag as Tag };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=Tag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/TagsList/Tag.js","sources":["../../../../../src/presentation/FileList/components/TagsList/Tag.tsx"],"sourcesContent":["import React from \"react\";\nimport { Tag as AdminTag } from \"@webiny/admin-ui\";\nimport type { TagItem } from \"@webiny/app-aco/types.js\";\n\ntype TagProps = {\n tagItem: TagItem;\n active: boolean;\n onTagClick: (tagItem: TagItem) => void;\n};\n\nexport const Tag = ({ tagItem, active, onTagClick }: TagProps) => {\n return (\n <div>\n <AdminTag\n variant={active ? \"accent\" : \"neutral-muted\"}\n content={tagItem.tag}\n onClick={() => onTagClick(tagItem)}\n onDismiss={active ? () => onTagClick(tagItem) : undefined}\n />\n </div>\n );\n};\n"],"names":["Tag","tagItem","active","onTagClick","AdminTag","undefined"],"mappings":";;AAUO,MAAMA,UAAM,CAAC,EAAEC,OAAO,EAAEC,MAAM,EAAEC,UAAU,EAAY,GAClD,WAAP,GACI,oBAAC,2BACG,oBAACC,KAAQA;QACL,SAASF,SAAS,WAAW;QAC7B,SAASD,QAAQ,GAAG;QACpB,SAAS,IAAME,WAAWF;QAC1B,WAAWC,SAAS,IAAMC,WAAWF,WAAWI"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import react, { useCallback } from "react";
|
|
2
|
+
import { Tag } from "@webiny/admin-ui";
|
|
3
|
+
const Tags = ({ tags, activeTags, onActivatedTagsChange })=>{
|
|
4
|
+
const toggleTag = useCallback((tag)=>{
|
|
5
|
+
const finalTags = Array.isArray(activeTags) ? [
|
|
6
|
+
...activeTags
|
|
7
|
+
] : [];
|
|
8
|
+
if (finalTags.find((item)=>tag === item)) finalTags.splice(finalTags.indexOf(tag), 1);
|
|
9
|
+
else finalTags.push(tag);
|
|
10
|
+
onActivatedTagsChange(finalTags);
|
|
11
|
+
}, [
|
|
12
|
+
activeTags
|
|
13
|
+
]);
|
|
14
|
+
const getIsActive = useCallback((tagItem)=>activeTags.includes(tagItem.tag), [
|
|
15
|
+
activeTags
|
|
16
|
+
]);
|
|
17
|
+
return /*#__PURE__*/ react.createElement("div", {
|
|
18
|
+
className: "flex flex-col gap-sm"
|
|
19
|
+
}, tags.map((tagItem, index)=>/*#__PURE__*/ react.createElement("div", {
|
|
20
|
+
key: `tag-${index}`
|
|
21
|
+
}, /*#__PURE__*/ react.createElement(Tag, {
|
|
22
|
+
variant: getIsActive(tagItem) ? "accent" : "neutral-muted",
|
|
23
|
+
content: tagItem.tag,
|
|
24
|
+
onClick: ()=>toggleTag(tagItem.tag),
|
|
25
|
+
onDismiss: getIsActive(tagItem) ? ()=>toggleTag(tagItem.tag) : void 0
|
|
26
|
+
}))));
|
|
27
|
+
};
|
|
28
|
+
export { Tags };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=Tags.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/TagsList/Tags.js","sources":["../../../../../src/presentation/FileList/components/TagsList/Tags.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { Tag as AdminTag } from \"@webiny/admin-ui\";\nimport type { TagItem } from \"@webiny/app-aco/types.js\";\n\nexport interface TagsProps {\n tags: TagItem[];\n activeTags: string[];\n onActivatedTagsChange: (tags: string[]) => void;\n}\n\nexport const Tags = ({ tags, activeTags, onActivatedTagsChange }: TagsProps) => {\n const toggleTag = useCallback(\n (tag: TagItem[\"tag\"]) => {\n const finalTags = Array.isArray(activeTags) ? [...activeTags] : [];\n\n if (finalTags.find(item => tag === item)) {\n finalTags.splice(finalTags.indexOf(tag), 1);\n } else {\n finalTags.push(tag);\n }\n\n onActivatedTagsChange(finalTags);\n },\n [activeTags]\n );\n\n const getIsActive = useCallback(\n (tagItem: TagItem) => {\n return activeTags.includes(tagItem.tag);\n },\n [activeTags]\n );\n\n return (\n <div className={\"flex flex-col gap-sm\"}>\n {tags.map((tagItem, index) => (\n <div key={`tag-${index}`}>\n <AdminTag\n variant={getIsActive(tagItem) ? \"accent\" : \"neutral-muted\"}\n content={tagItem.tag}\n onClick={() => toggleTag(tagItem.tag)}\n onDismiss={getIsActive(tagItem) ? () => toggleTag(tagItem.tag) : undefined}\n />\n </div>\n ))}\n </div>\n );\n};\n"],"names":["Tags","tags","activeTags","onActivatedTagsChange","toggleTag","useCallback","tag","finalTags","Array","item","getIsActive","tagItem","index","AdminTag","undefined"],"mappings":";;AAUO,MAAMA,OAAO,CAAC,EAAEC,IAAI,EAAEC,UAAU,EAAEC,qBAAqB,EAAa;IACvE,MAAMC,YAAYC,YACd,CAACC;QACG,MAAMC,YAAYC,MAAM,OAAO,CAACN,cAAc;eAAIA;SAAW,GAAG,EAAE;QAElE,IAAIK,UAAU,IAAI,CAACE,CAAAA,OAAQH,QAAQG,OAC/BF,UAAU,MAAM,CAACA,UAAU,OAAO,CAACD,MAAM;aAEzCC,UAAU,IAAI,CAACD;QAGnBH,sBAAsBI;IAC1B,GACA;QAACL;KAAW;IAGhB,MAAMQ,cAAcL,YAChB,CAACM,UACUT,WAAW,QAAQ,CAACS,QAAQ,GAAG,GAE1C;QAACT;KAAW;IAGhB,OAAO,WAAP,GACI,oBAAC;QAAI,WAAW;OACXD,KAAK,GAAG,CAAC,CAACU,SAASC,QAAAA,WAAAA,GAChB,oBAAC;YAAI,KAAK,CAAC,IAAI,EAAEA,OAAO;yBACpB,oBAACC,KAAQA;YACL,SAASH,YAAYC,WAAW,WAAW;YAC3C,SAASA,QAAQ,GAAG;YACpB,SAAS,IAAMP,UAAUO,QAAQ,GAAG;YACpC,WAAWD,YAAYC,WAAW,IAAMP,UAAUO,QAAQ,GAAG,IAAIG;;AAMzF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { Loader } from "@webiny/app-aco";
|
|
3
|
+
import { Empty } from "./Empty.js";
|
|
4
|
+
import { FilterSelect } from "./FilterSelect.js";
|
|
5
|
+
import { FilterStatus } from "./FilterStatus.js";
|
|
6
|
+
import { Tags } from "./Tags.js";
|
|
7
|
+
const TagsList = ({ loading, tags, emptyDisclaimer, onActivatedTagsChange, activeTags })=>{
|
|
8
|
+
if (loading) return /*#__PURE__*/ react.createElement(Loader, null);
|
|
9
|
+
return /*#__PURE__*/ react.createElement("div", {
|
|
10
|
+
className: "my-lg px-md"
|
|
11
|
+
}, 0 === tags.length ? /*#__PURE__*/ react.createElement(Empty, {
|
|
12
|
+
disclaimer: emptyDisclaimer
|
|
13
|
+
}) : /*#__PURE__*/ react.createElement(react.Fragment, null, tags.length > 1 && /*#__PURE__*/ react.createElement(FilterSelect, null), /*#__PURE__*/ react.createElement(FilterStatus, {
|
|
14
|
+
activeTags: activeTags,
|
|
15
|
+
onActivatedTagsChange: onActivatedTagsChange
|
|
16
|
+
}), /*#__PURE__*/ react.createElement(Tags, {
|
|
17
|
+
tags: tags,
|
|
18
|
+
activeTags: activeTags,
|
|
19
|
+
onActivatedTagsChange: onActivatedTagsChange
|
|
20
|
+
})));
|
|
21
|
+
};
|
|
22
|
+
export { TagsList };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=TagsList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/TagsList/TagsList.js","sources":["../../../../../src/presentation/FileList/components/TagsList/TagsList.tsx"],"sourcesContent":["import React from \"react\";\nimport { Loader } from \"@webiny/app-aco\";\nimport { Empty } from \"./Empty.js\";\nimport { FilterSelect } from \"./FilterSelect.js\";\nimport { FilterStatus } from \"./FilterStatus.js\";\nimport { Tags } from \"./Tags.js\";\n\nimport type { TagItem } from \"@webiny/app-aco/types.js\";\n\ninterface TagListProps {\n loading: boolean;\n onActivatedTagsChange: (tags: string[]) => void;\n tags: TagItem[];\n activeTags: string[];\n emptyDisclaimer?: string;\n}\n\nexport const TagsList = ({\n loading,\n tags,\n emptyDisclaimer,\n onActivatedTagsChange,\n activeTags\n}: TagListProps) => {\n if (loading) {\n return <Loader />;\n }\n\n return (\n <div className={\"my-lg px-md\"}>\n {tags.length === 0 ? (\n <Empty disclaimer={emptyDisclaimer} />\n ) : (\n <>\n {tags.length > 1 && <FilterSelect />}\n <FilterStatus\n activeTags={activeTags}\n onActivatedTagsChange={onActivatedTagsChange}\n />\n <Tags\n tags={tags}\n activeTags={activeTags}\n onActivatedTagsChange={onActivatedTagsChange}\n />\n </>\n )}\n </div>\n );\n};\n"],"names":["TagsList","loading","tags","emptyDisclaimer","onActivatedTagsChange","activeTags","Loader","Empty","FilterSelect","FilterStatus","Tags"],"mappings":";;;;;;AAiBO,MAAMA,WAAW,CAAC,EACrBC,OAAO,EACPC,IAAI,EACJC,eAAe,EACfC,qBAAqB,EACrBC,UAAU,EACC;IACX,IAAIJ,SACA,OAAO,WAAP,GAAO,oBAACK,QAAMA;IAGlB,OAAO,WAAP,GACI,oBAAC;QAAI,WAAW;OACXJ,AAAgB,MAAhBA,KAAK,MAAM,GAAS,WAAJ,GACb,oBAACK,OAAKA;QAAC,YAAYJ;uBAEnB,0CACKD,KAAK,MAAM,GAAG,KAAK,WAAL,GAAK,oBAACM,cAAYA,OAAAA,WAAAA,GACjC,oBAACC,cAAYA;QACT,YAAYJ;QACZ,uBAAuBD;sBAE3B,oBAACM,MAAIA;QACD,MAAMR;QACN,YAAYG;QACZ,uBAAuBD;;AAM/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./TagsList.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { useFile } from "../../../hooks/useFile.js";
|
|
3
|
+
import { useFileManagerConfig } from "../../../../index.js";
|
|
4
|
+
const Thumbnail = ()=>{
|
|
5
|
+
const { file } = useFile();
|
|
6
|
+
const { browser, getThumbnailRenderer } = useFileManagerConfig();
|
|
7
|
+
const renderer = getThumbnailRenderer(browser.grid.itemThumbnails, file);
|
|
8
|
+
return /*#__PURE__*/ react.createElement(react.Fragment, null, renderer?.element || null);
|
|
9
|
+
};
|
|
10
|
+
export { Thumbnail };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=Thumbnail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/Thumbnail/Thumbnail.js","sources":["../../../../../src/presentation/FileList/components/Thumbnail/Thumbnail.tsx"],"sourcesContent":["import React from \"react\";\nimport { useFile } from \"~/presentation/hooks/useFile.js\";\nimport { useFileManagerConfig } from \"~/index.js\";\n\nexport const Thumbnail = () => {\n const { file } = useFile();\n const { browser, getThumbnailRenderer } = useFileManagerConfig();\n\n const renderer = getThumbnailRenderer(browser.grid.itemThumbnails, file);\n\n return <>{renderer?.element || null}</>;\n};\n"],"names":["Thumbnail","file","useFile","browser","getThumbnailRenderer","useFileManagerConfig","renderer"],"mappings":";;;AAIO,MAAMA,YAAY;IACrB,MAAM,EAAEC,IAAI,EAAE,GAAGC;IACjB,MAAM,EAAEC,OAAO,EAAEC,oBAAoB,EAAE,GAAGC;IAE1C,MAAMC,WAAWF,qBAAqBD,QAAQ,IAAI,CAAC,cAAc,EAAEF;IAEnE,OAAO,WAAP,GAAO,0CAAGK,UAAU,WAAW;AACnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Thumbnail.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface DropZoneProps {
|
|
3
|
+
/** Accepted MIME types (e.g. ["image/*", "application/pdf"]). */
|
|
4
|
+
accept?: string[];
|
|
5
|
+
/** Maximum file size in bytes or human-readable string from Settings. */
|
|
6
|
+
maxFileSize?: string;
|
|
7
|
+
/** Minimum file size in bytes or human-readable string from Settings. */
|
|
8
|
+
minFileSize?: string;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Drag-and-drop upload zone that wraps the file list area.
|
|
13
|
+
* Reads `vm.dragging` for overlay visibility and passes dropped files
|
|
14
|
+
* to `presenter.actions.upload()`.
|
|
15
|
+
*/
|
|
16
|
+
export declare const DropZone: (({ accept, maxFileSize, minFileSize, children }: DropZoneProps) => React.JSX.Element) & {
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
export {};
|