@webiny/app-file-manager 0.0.0-unstable.78f581c1d2 → 0.0.0-unstable.7be00a75a9
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/README.md +7 -28
- package/app.d.ts +2 -0
- package/app.js +57 -0
- package/app.js.map +1 -0
- package/domain/constants.d.ts +4 -0
- package/domain/constants.js +7 -0
- package/domain/constants.js.map +1 -0
- package/domain/permissionsSchema.d.ts +18 -0
- package/domain/permissionsSchema.js +32 -0
- package/domain/permissionsSchema.js.map +1 -0
- package/domain/tagsHelpers.d.ts +16 -0
- 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/exports/admin/ui/file-manager.d.ts +2 -0
- package/exports/admin/ui/file-manager.js +1 -0
- package/features/deleteFile/DeleteFile.test.d.ts +1 -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 +23 -0
- package/features/fileUploader/FileUploader.js +243 -0
- package/features/fileUploader/FileUploader.js.map +1 -0
- package/features/fileUploader/FileUploader.test.d.ts +1 -0
- package/features/fileUploader/FileUploader.test.js +427 -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/fileUrlFormatter/FileUrlFormatter.d.ts +8 -0
- package/features/fileUrlFormatter/FileUrlFormatter.js +13 -0
- package/features/fileUrlFormatter/FileUrlFormatter.js.map +1 -0
- package/features/fileUrlFormatter/abstractions.d.ts +1 -0
- package/features/fileUrlFormatter/abstractions.js +1 -0
- package/features/fileUrlFormatter/feature.d.ts +1 -0
- package/features/fileUrlFormatter/feature.js +11 -0
- package/features/fileUrlFormatter/feature.js.map +1 -0
- package/features/getFile/GetFileGateway.d.ts +14 -0
- package/features/getFile/GetFileGateway.js +28 -0
- package/features/getFile/GetFileGateway.js.map +1 -0
- package/features/getFile/GetFileRepository.d.ts +11 -0
- package/features/getFile/GetFileRepository.js +18 -0
- package/features/getFile/GetFileRepository.js.map +1 -0
- package/features/getFile/GetFileUseCase.d.ts +10 -0
- package/features/getFile/GetFileUseCase.js +35 -0
- package/features/getFile/GetFileUseCase.js.map +1 -0
- package/features/getFile/abstractions.d.ts +38 -0
- package/features/getFile/abstractions.js +7 -0
- package/features/getFile/abstractions.js.map +1 -0
- package/features/getFile/feature.d.ts +3 -0
- package/features/getFile/feature.js +21 -0
- package/features/getFile/feature.js.map +1 -0
- package/features/getFile/index.d.ts +3 -0
- package/features/getFile/index.js +2 -0
- package/features/listFiles/ListFiles.test.d.ts +1 -0
- package/features/listFiles/ListFiles.test.js +192 -0
- package/features/listFiles/ListFiles.test.js.map +1 -0
- package/features/listFiles/ListFilesGateway.d.ts +13 -0
- package/features/listFiles/ListFilesGateway.js +35 -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 +17 -0
- package/features/permissions/abstractions.js +6 -0
- package/features/permissions/abstractions.js.map +1 -0
- package/features/permissions/feature.d.ts +14 -0
- package/features/permissions/feature.js +7 -0
- package/features/permissions/feature.js.map +1 -0
- package/features/resolveImageTool/ResolveImageTool.d.ts +40 -0
- package/features/resolveImageTool/ResolveImageTool.js +49 -0
- package/features/resolveImageTool/ResolveImageTool.js.map +1 -0
- package/features/resolveImageTool/feature.d.ts +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.d.ts +1 -0
- package/features/shared/FILE_FIELDS.js +32 -0
- package/features/shared/FILE_FIELDS.js.map +1 -0
- package/features/shared/FileFieldsProvider.d.ts +8 -0
- package/features/shared/FileFieldsProvider.js +14 -0
- package/features/shared/FileFieldsProvider.js.map +1 -0
- package/features/shared/FileFieldsProviderWithWcp.d.ts +12 -0
- package/features/shared/FileFieldsProviderWithWcp.js +25 -0
- package/features/shared/FileFieldsProviderWithWcp.js.map +1 -0
- package/features/shared/FilesListCache.d.ts +1 -0
- package/features/shared/FilesListCache.js +1 -0
- package/features/shared/abstractions.d.ts +13 -0
- package/features/shared/abstractions.js +6 -0
- package/features/shared/abstractions.js.map +1 -0
- package/features/shared/feature.d.ts +5 -0
- package/features/shared/feature.js +22 -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.d.ts +16 -0
- package/features/shared/types.js +0 -0
- 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 +260 -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 +14 -0
- package/features/updateFile/UpdateFileRepository.js +32 -0
- package/features/updateFile/UpdateFileRepository.js.map +1 -0
- package/features/updateFile/UpdateFileUseCase.d.ts +12 -0
- package/features/updateFile/UpdateFileUseCase.js +41 -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 -2
- package/index.js +3 -37
- package/modules/Enterprise/HandleWebsocketMessages.d.ts +1 -0
- package/modules/Enterprise/HandleWebsocketMessages.js +53 -0
- package/modules/Enterprise/HandleWebsocketMessages.js.map +1 -0
- package/modules/Enterprise/components/ThreatScanInProgressFileBody.d.ts +2 -0
- package/modules/Enterprise/components/ThreatScanInProgressFileBody.js +22 -0
- package/modules/Enterprise/components/ThreatScanInProgressFileBody.js.map +1 -0
- package/modules/Enterprise/components/ThreatScanInProgressTableCell.d.ts +6 -0
- package/modules/Enterprise/components/ThreatScanInProgressTableCell.js +20 -0
- package/modules/Enterprise/components/ThreatScanInProgressTableCell.js.map +1 -0
- package/modules/Enterprise/constants.d.ts +3 -0
- package/modules/Enterprise/constants.js +6 -0
- package/modules/Enterprise/constants.js.map +1 -0
- package/modules/Enterprise/index.d.ts +2 -0
- package/modules/Enterprise/index.js +30 -0
- package/modules/Enterprise/index.js.map +1 -0
- 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/FileUrlFormatter.d.ts +2 -0
- package/modules/FileUrlFormatter.js +9 -0
- package/modules/FileUrlFormatter.js.map +1 -0
- package/modules/HeadlessCms/fileField.d.ts +2 -0
- package/modules/HeadlessCms/fileField.js +44 -0
- package/modules/HeadlessCms/fileField.js.map +1 -0
- package/modules/HeadlessCms/fileRenderer/fileField.d.ts +2 -0
- package/modules/HeadlessCms/fileRenderer/fileField.js +53 -0
- package/modules/HeadlessCms/fileRenderer/fileField.js.map +1 -0
- package/modules/HeadlessCms/fileRenderer/fileFields.d.ts +2 -0
- package/modules/HeadlessCms/fileRenderer/fileFields.js +73 -0
- package/modules/HeadlessCms/fileRenderer/fileFields.js.map +1 -0
- package/modules/HeadlessCms/fileRenderer/utils.d.ts +2 -0
- package/modules/HeadlessCms/fileRenderer/utils.js +15 -0
- package/modules/HeadlessCms/fileRenderer/utils.js.map +1 -0
- package/modules/HeadlessCms/index.d.ts +1 -0
- package/modules/HeadlessCms/index.js +14 -0
- package/modules/HeadlessCms/index.js.map +1 -0
- package/modules/SecurityPermissions.d.ts +2 -0
- package/modules/SecurityPermissions.js +15 -0
- package/modules/SecurityPermissions.js.map +1 -0
- package/modules/Settings/assets/icons/folder-open.js +19 -0
- package/modules/Settings/assets/icons/folder-open.js.map +1 -0
- package/{admin → modules/Settings}/graphql.d.ts +7 -0
- package/modules/Settings/graphql.js +36 -0
- package/modules/Settings/graphql.js.map +1 -0
- package/modules/Settings/index.d.ts +2 -0
- package/modules/Settings/index.js +27 -0
- package/modules/Settings/index.js.map +1 -0
- package/modules/Settings/views/FileManagerSettings.d.ts +2 -0
- package/modules/Settings/views/FileManagerSettings.js +134 -0
- package/modules/Settings/views/FileManagerSettings.js.map +1 -0
- package/package.json +46 -37
- package/presentation/FileActions/FileDetails/CopyUrl.d.ts +2 -0
- package/presentation/FileActions/FileDetails/CopyUrl.js +19 -0
- package/presentation/FileActions/FileDetails/CopyUrl.js.map +1 -0
- package/presentation/FileActions/FileDetails/DeleteImage.d.ts +2 -0
- package/presentation/FileActions/FileDetails/DeleteImage.js +24 -0
- package/presentation/FileActions/FileDetails/DeleteImage.js.map +1 -0
- package/presentation/FileActions/FileDetails/Download.d.ts +2 -0
- package/presentation/FileActions/FileDetails/Download.js +19 -0
- package/presentation/FileActions/FileDetails/Download.js.map +1 -0
- package/presentation/FileActions/FileDetails/MoveToFolder.d.ts +2 -0
- package/presentation/FileActions/FileDetails/MoveToFolder.js +16 -0
- package/presentation/FileActions/FileDetails/MoveToFolder.js.map +1 -0
- package/presentation/FileActions/Grid/Delete.d.ts +2 -0
- package/presentation/FileActions/Grid/Delete.js +23 -0
- package/presentation/FileActions/Grid/Delete.js.map +1 -0
- package/presentation/FileActions/Grid/Download.d.ts +2 -0
- package/presentation/FileActions/Grid/Download.js +19 -0
- package/presentation/FileActions/Grid/Download.js.map +1 -0
- package/presentation/FileActions/Grid/MoveToFolder.d.ts +2 -0
- package/presentation/FileActions/Grid/MoveToFolder.js +16 -0
- package/presentation/FileActions/Grid/MoveToFolder.js.map +1 -0
- package/presentation/FileActions/Grid/Settings.d.ts +2 -0
- package/presentation/FileActions/Grid/Settings.js +23 -0
- package/presentation/FileActions/Grid/Settings.js.map +1 -0
- package/presentation/FileActions/index.d.ts +2 -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.d.ts +10 -0
- package/presentation/FileDetails/components/ActionButton.js +15 -0
- package/presentation/FileDetails/components/ActionButton.js.map +1 -0
- package/presentation/FileDetails/components/Actions.d.ts +2 -0
- package/presentation/FileDetails/components/Actions.js +13 -0
- package/presentation/FileDetails/components/Actions.js.map +1 -0
- package/presentation/FileDetails/components/Content.d.ts +14 -0
- package/presentation/FileDetails/components/Content.js +20 -0
- package/presentation/FileDetails/components/Content.js.map +1 -0
- package/presentation/FileDetails/components/CreatedOn.d.ts +2 -0
- package/presentation/FileDetails/components/CreatedOn.js +21 -0
- package/presentation/FileDetails/components/CreatedOn.js.map +1 -0
- package/presentation/FileDetails/components/Description.d.ts +2 -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.d.ts +2 -0
- package/presentation/FileDetails/components/Preview.js +15 -0
- package/presentation/FileDetails/components/Preview.js.map +1 -0
- package/presentation/FileDetails/components/Thumbnail.d.ts +2 -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 +424 -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 +76 -0
- package/presentation/FileList/abstractions.js +5 -0
- package/presentation/FileList/abstractions.js.map +1 -0
- package/presentation/FileList/components/BottomInfoBar/BottomInfoBar.d.ts +6 -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.d.ts +6 -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.d.ts +8 -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.d.ts +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.d.ts +7 -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.d.ts +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.d.ts +32 -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.d.ts +4 -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.d.ts +32 -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.d.ts +7 -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.d.ts +4 -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.d.ts +8 -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.d.ts +1 -0
- package/presentation/FileList/components/Empty/index.js +1 -0
- package/presentation/FileList/components/FileDropArea/FileDropArea.d.ts +9 -0
- package/presentation/FileList/components/FileDropArea/FileDropArea.js +62 -0
- package/presentation/FileList/components/FileDropArea/FileDropArea.js.map +1 -0
- package/presentation/FileList/components/FileDropArea/index.d.ts +1 -0
- package/presentation/FileList/components/FileDropArea/index.js +1 -0
- package/presentation/FileList/components/FileDropPlaceholder/FileDropPlaceholder.d.ts +2 -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.d.ts +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.d.ts +2 -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 +162 -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.d.ts +2 -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.d.ts +1 -0
- package/presentation/FileList/components/LayoutSwitch/index.js +1 -0
- package/presentation/FileList/components/NoPermissions/NoPermissions.d.ts +2 -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.d.ts +1 -0
- package/presentation/FileList/components/NoPermissions/index.js +1 -0
- package/presentation/FileList/components/NoResults/NoResults.d.ts +2 -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.d.ts +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.d.ts +2 -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.d.ts +2 -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.d.ts +2 -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.d.ts +2 -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.d.ts +4 -0
- package/presentation/FileList/components/Table/Actions/index.js +4 -0
- package/presentation/FileList/components/Table/Cells/CellActions.d.ts +2 -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.d.ts +2 -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.d.ts +2 -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.d.ts +2 -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.d.ts +2 -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.d.ts +2 -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.d.ts +2 -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.d.ts +7 -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.d.ts +6 -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.d.ts +2 -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.d.ts +7 -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.d.ts +9 -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.d.ts +8 -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.d.ts +11 -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.d.ts +1 -0
- package/presentation/FileList/components/TagsList/index.js +1 -0
- package/presentation/FileList/components/Thumbnail/Thumbnail.d.ts +2 -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.d.ts +1 -0
- package/presentation/FileList/components/Thumbnail/index.js +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 +1 -0
- package/presentation/FileList/components/Upload/index.js +1 -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 +246 -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/FileManager/outputFileSelectionError.d.ts +2 -0
- package/presentation/FileManager/outputFileSelectionError.js +27 -0
- package/presentation/FileManager/outputFileSelectionError.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/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.d.ts +10 -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.d.ts +8 -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.d.ts +39 -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.d.ts +5 -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.d.ts +7 -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.d.ts +7 -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.d.ts +5 -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.d.ts +7 -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.d.ts +31 -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.d.ts +28 -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.d.ts +6 -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.d.ts +28 -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.d.ts +31 -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.d.ts +28 -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.d.ts +5 -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.d.ts +7 -0
- package/presentation/config/fields/AccessControl.js +38 -0
- package/presentation/config/fields/AccessControl.js.map +1 -0
- package/presentation/config/fields/Tags.d.ts +2 -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.d.ts +6 -0
- package/presentation/config/fields/useAccessControlField.js +21 -0
- package/presentation/config/fields/useAccessControlField.js.map +1 -0
- package/presentation/config/fields/useFileOrUndefined.d.ts +3 -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/thumbnailRenderers/FilePreviewDefaultRenderer.d.ts +2 -0
- package/presentation/config/thumbnailRenderers/FilePreviewDefaultRenderer.js +11 -0
- package/presentation/config/thumbnailRenderers/FilePreviewDefaultRenderer.js.map +1 -0
- package/presentation/config/thumbnailRenderers/FilePreviewImageRenderer.d.ts +2 -0
- package/presentation/config/thumbnailRenderers/FilePreviewImageRenderer.js +18 -0
- package/presentation/config/thumbnailRenderers/FilePreviewImageRenderer.js.map +1 -0
- package/presentation/config/thumbnailRenderers/GridItemDefaultRenderer.d.ts +2 -0
- package/presentation/config/thumbnailRenderers/GridItemDefaultRenderer.js +11 -0
- package/presentation/config/thumbnailRenderers/GridItemDefaultRenderer.js.map +1 -0
- package/presentation/config/thumbnailRenderers/GridItemImageRenderer.d.ts +2 -0
- package/presentation/config/thumbnailRenderers/GridItemImageRenderer.js +18 -0
- package/presentation/config/thumbnailRenderers/GridItemImageRenderer.js.map +1 -0
- package/presentation/config/thumbnailRenderers/TableItemDefaultRenderer.d.ts +2 -0
- package/presentation/config/thumbnailRenderers/TableItemDefaultRenderer.js +18 -0
- package/presentation/config/thumbnailRenderers/TableItemDefaultRenderer.js.map +1 -0
- package/presentation/config/thumbnailRenderers/TableItemImageRenderer.d.ts +2 -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 +7 -0
- package/routes.js +17 -0
- package/routes.js.map +1 -0
- package/static/svg/folder-open.ae8d0fac.svg +1 -0
- package/admin/graphql.js +0 -24
- package/admin/graphql.js.map +0 -1
- package/admin/index.d.ts +0 -2
- package/admin/index.js +0 -16
- package/admin/index.js.map +0 -1
- package/admin/plugins/index.d.ts +0 -2
- package/admin/plugins/index.js +0 -18
- package/admin/plugins/index.js.map +0 -1
- package/admin/plugins/installation.d.ts +0 -3
- package/admin/plugins/installation.js +0 -134
- package/admin/plugins/installation.js.map +0 -1
- package/admin/plugins/permissionRenderer/FileManagerPermissions.d.ts +0 -14
- package/admin/plugins/permissionRenderer/FileManagerPermissions.js +0 -249
- package/admin/plugins/permissionRenderer/FileManagerPermissions.js.map +0 -1
- package/admin/plugins/permissionRenderer/index.d.ts +0 -3
- package/admin/plugins/permissionRenderer/index.js +0 -38
- package/admin/plugins/permissionRenderer/index.js.map +0 -1
- package/admin/views/FileManagerSettings.d.ts +0 -3
- package/admin/views/FileManagerSettings.js +0 -162
- package/admin/views/FileManagerSettings.js.map +0 -1
- package/index.js.map +0 -1
- package/types.d.ts +0 -26
- package/types.js +0 -5
- package/types.js.map +0 -1
- /package/{admin → modules/Settings}/assets/icons/folder-open.svg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/NoPermissions/NoPermissions.js","sources":["../../../../../src/presentation/FileList/components/NoPermissions/NoPermissions.tsx"],"sourcesContent":["import React from \"react\";\nimport { Heading, Text } from \"@webiny/admin-ui\";\nimport { ReactComponent as VisibilityOffIcon } from \"@webiny/icons/visibility_off.svg\";\n\nexport const NoPermissions = () => {\n return (\n <div className={\"w-full h-full p-lg flex items-center justify-center bg-neutral-base\"}>\n <div className={\"flex flex-col items-center justify-center gap-sm\"}>\n <div className={\"fill-neutral-strong\"}>\n <VisibilityOffIcon width={75} height={75} />\n </div>\n <div className={\"text-center\"}>\n <Heading level={4} className={\"text-neutral-strong\"}>\n {\"Permission Required\"}\n </Heading>\n <Text\n as={\"div\"}\n style={{\n width: \"300px\"\n }}\n className={\"text-neutral-strong\"}\n >\n {\n \"You don’t have the necessary permissions to access these files. Please contact your administrator for access.\"\n }\n </Text>\n </div>\n </div>\n </div>\n );\n};\n"],"names":["NoPermissions","VisibilityOffIcon","Heading","Text"],"mappings":";;;AAIO,MAAMA,gBAAgB,IAClB,WAAP,GACI,oBAAC;QAAI,WAAW;qBACZ,oBAAC;QAAI,WAAW;qBACZ,oBAAC;QAAI,WAAW;qBACZ,oBAACC,gBAAiBA;QAAC,OAAO;QAAI,QAAQ;uBAE1C,oBAAC;QAAI,WAAW;qBACZ,oBAACC,SAAOA;QAAC,OAAO;QAAG,WAAW;OACzB,sCAEL,oBAACC,MAAIA;QACD,IAAI;QACJ,OAAO;YACH,OAAO;QACX;QACA,WAAW;OAGP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./NoPermissions.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./NoPermissions.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { Heading } from "@webiny/admin-ui";
|
|
3
|
+
import { ReactComponent } from "@webiny/icons/search_off.svg";
|
|
4
|
+
const NoResults = ()=>/*#__PURE__*/ react.createElement("div", {
|
|
5
|
+
className: "w-full h-full p-lg flex items-center justify-center bg-neutral-base"
|
|
6
|
+
}, /*#__PURE__*/ react.createElement("div", {
|
|
7
|
+
className: "flex flex-col items-center justify-center gap-sm"
|
|
8
|
+
}, /*#__PURE__*/ react.createElement("div", {
|
|
9
|
+
className: "fill-neutral-strong"
|
|
10
|
+
}, /*#__PURE__*/ react.createElement(ReactComponent, {
|
|
11
|
+
width: 75,
|
|
12
|
+
height: 75
|
|
13
|
+
})), /*#__PURE__*/ react.createElement("div", {
|
|
14
|
+
className: "text-center"
|
|
15
|
+
}, /*#__PURE__*/ react.createElement(Heading, {
|
|
16
|
+
level: 4,
|
|
17
|
+
className: "text-neutral-strong"
|
|
18
|
+
}, "No results found."))));
|
|
19
|
+
export { NoResults };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=NoResults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/NoResults/NoResults.js","sources":["../../../../../src/presentation/FileList/components/NoResults/NoResults.tsx"],"sourcesContent":["import React from \"react\";\nimport { Heading } from \"@webiny/admin-ui\";\nimport { ReactComponent as SearchOffIcon } from \"@webiny/icons/search_off.svg\";\n\nexport const NoResults = () => {\n return (\n <div className={\"w-full h-full p-lg flex items-center justify-center bg-neutral-base\"}>\n <div className={\"flex flex-col items-center justify-center gap-sm\"}>\n <div className={\"fill-neutral-strong\"}>\n <SearchOffIcon width={75} height={75} />\n </div>\n <div className={\"text-center\"}>\n <Heading level={4} className={\"text-neutral-strong\"}>\n {\"No results found.\"}\n </Heading>\n </div>\n </div>\n </div>\n );\n};\n"],"names":["NoResults","SearchOffIcon","Heading"],"mappings":";;;AAIO,MAAMA,YAAY,IACd,WAAP,GACI,oBAAC;QAAI,WAAW;qBACZ,oBAAC;QAAI,WAAW;qBACZ,oBAAC;QAAI,WAAW;qBACZ,oBAACC,gBAAaA;QAAC,OAAO;QAAI,QAAQ;uBAEtC,oBAAC;QAAI,WAAW;qBACZ,oBAACC,SAAOA;QAAC,OAAO;QAAG,WAAW;OACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./NoResults.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./NoResults.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Search bar component wired to the FileListPresenter.
|
|
4
|
+
* Uses DelayedOnChange for debounced input, reads current search from vm.list.search,
|
|
5
|
+
* and dispatches changes via presenter.actions.search.set().
|
|
6
|
+
*/
|
|
7
|
+
export declare const SearchBar: (() => React.JSX.Element) & {
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { observer } from "mobx-react-lite";
|
|
3
|
+
import { DelayedOnChange, Icon, Input } from "@webiny/admin-ui";
|
|
4
|
+
import { ReactComponent } from "@webiny/icons/search.svg";
|
|
5
|
+
import { i18n } from "@webiny/app/i18n/index.js";
|
|
6
|
+
import { useFileManagerPresenter } from "../../FileManagerPresenterProvider.js";
|
|
7
|
+
const t = i18n.ns("app-file-manager/presentation/search-bar");
|
|
8
|
+
const SearchBar_SearchBar = observer(function() {
|
|
9
|
+
const { vm, actions } = useFileManagerPresenter();
|
|
10
|
+
return /*#__PURE__*/ react.createElement(DelayedOnChange, {
|
|
11
|
+
value: vm.list.search,
|
|
12
|
+
onChange: (value)=>{
|
|
13
|
+
if (value) actions.search.set(value);
|
|
14
|
+
else actions.search.clear();
|
|
15
|
+
}
|
|
16
|
+
}, ({ value, onChange })=>/*#__PURE__*/ react.createElement(Input, {
|
|
17
|
+
id: "file-manager__search-input",
|
|
18
|
+
value: value,
|
|
19
|
+
onChange: (value)=>onChange(value),
|
|
20
|
+
placeholder: t`Search files...`,
|
|
21
|
+
disabled: !vm.permissions.canRead,
|
|
22
|
+
"data-testid": "fm-search-bar",
|
|
23
|
+
startIcon: /*#__PURE__*/ react.createElement(Icon, {
|
|
24
|
+
label: "Search",
|
|
25
|
+
icon: /*#__PURE__*/ react.createElement(ReactComponent, null)
|
|
26
|
+
}),
|
|
27
|
+
size: "md",
|
|
28
|
+
variant: "ghost"
|
|
29
|
+
}));
|
|
30
|
+
});
|
|
31
|
+
export { SearchBar_SearchBar as SearchBar };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=SearchBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/Search/SearchBar.js","sources":["../../../../../src/presentation/FileList/components/Search/SearchBar.tsx"],"sourcesContent":["import React from \"react\";\nimport { observer } from \"mobx-react-lite\";\nimport { DelayedOnChange, Icon, Input } from \"@webiny/admin-ui\";\nimport { ReactComponent as SearchIcon } from \"@webiny/icons/search.svg\";\nimport { i18n } from \"@webiny/app/i18n/index.js\";\nimport { useFileManagerPresenter } from \"../../FileManagerPresenterProvider.js\";\n\nconst t = i18n.ns(\"app-file-manager/presentation/search-bar\");\n\n/**\n * Search bar component wired to the FileListPresenter.\n * Uses DelayedOnChange for debounced input, reads current search from vm.list.search,\n * and dispatches changes via presenter.actions.search.set().\n */\nexport const SearchBar = observer(function SearchBar() {\n const { vm, actions } = useFileManagerPresenter();\n\n return (\n <DelayedOnChange\n value={vm.list.search}\n onChange={value => {\n if (value) {\n actions.search.set(value);\n } else {\n actions.search.clear();\n }\n }}\n >\n {({ value, onChange }) => (\n <Input\n id={\"file-manager__search-input\"}\n value={value}\n onChange={value => onChange(value)}\n placeholder={t`Search files...`}\n disabled={!vm.permissions.canRead}\n data-testid={\"fm-search-bar\"}\n startIcon={<Icon label={\"Search\"} icon={<SearchIcon />} />}\n size={\"md\"}\n variant={\"ghost\"}\n />\n )}\n </DelayedOnChange>\n );\n});\n"],"names":["t","i18n","SearchBar","observer","vm","actions","useFileManagerPresenter","DelayedOnChange","value","onChange","Input","Icon","SearchIcon"],"mappings":";;;;;;AAOA,MAAMA,IAAIC,KAAK,EAAE,CAAC;AAOX,MAAMC,sBAAYC,SAAS;IAC9B,MAAM,EAAEC,EAAE,EAAEC,OAAO,EAAE,GAAGC;IAExB,OAAO,WAAP,GACI,oBAACC,iBAAeA;QACZ,OAAOH,GAAG,IAAI,CAAC,MAAM;QACrB,UAAUI,CAAAA;YACN,IAAIA,OACAH,QAAQ,MAAM,CAAC,GAAG,CAACG;iBAEnBH,QAAQ,MAAM,CAAC,KAAK;QAE5B;OAEC,CAAC,EAAEG,KAAK,EAAEC,QAAQ,EAAE,iBACjB,oBAACC,OAAKA;YACF,IAAI;YACJ,OAAOF;YACP,UAAUA,CAAAA,QAASC,SAASD;YAC5B,aAAaR,CAAC,CAAC,eAAe,CAAC;YAC/B,UAAU,CAACI,GAAG,WAAW,CAAC,OAAO;YACjC,eAAa;YACb,yBAAW,oBAACO,MAAIA;gBAAC,OAAO;gBAAU,oBAAM,oBAACC,gBAAUA;;YACnD,MAAM;YACN,SAAS;;AAK7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SearchBar } from "./SearchBar.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SearchBar } from "./SearchBar.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { ReactComponent } from "@webiny/icons/content_copy.svg";
|
|
3
|
+
import { FileManagerViewConfig } from "../../../../config/FileManagerViewConfig.js";
|
|
4
|
+
import { useCopyFile } from "../../../../hooks/useCopyFile.js";
|
|
5
|
+
import { useFile } from "../../../../hooks/useFile.js";
|
|
6
|
+
const CopyFile = ()=>{
|
|
7
|
+
const { file } = useFile();
|
|
8
|
+
const { copyFileUrl } = useCopyFile({
|
|
9
|
+
file
|
|
10
|
+
});
|
|
11
|
+
const { OptionsMenuItem } = FileManagerViewConfig.Browser.File.Action;
|
|
12
|
+
return /*#__PURE__*/ react.createElement(OptionsMenuItem, {
|
|
13
|
+
icon: /*#__PURE__*/ react.createElement(ReactComponent, null),
|
|
14
|
+
label: "Copy",
|
|
15
|
+
onAction: copyFileUrl,
|
|
16
|
+
"data-testid": "aco.actions.file.copy"
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
export { CopyFile };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=CopyFile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/Table/Actions/CopyFile.js","sources":["../../../../../../src/presentation/FileList/components/Table/Actions/CopyFile.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as Copy } from \"@webiny/icons/content_copy.svg\";\nimport { FileManagerViewConfig } from \"~/presentation/config/FileManagerViewConfig.js\";\nimport { useCopyFile } from \"~/presentation/hooks/useCopyFile.js\";\nimport { useFile } from \"~/presentation/hooks/useFile.js\";\n\nexport const CopyFile = () => {\n const { file } = useFile();\n const { copyFileUrl } = useCopyFile({ file });\n const { OptionsMenuItem } = FileManagerViewConfig.Browser.File.Action;\n\n return (\n <OptionsMenuItem\n icon={<Copy />}\n label={\"Copy\"}\n onAction={copyFileUrl}\n data-testid={\"aco.actions.file.copy\"}\n />\n );\n};\n"],"names":["CopyFile","file","useFile","copyFileUrl","useCopyFile","OptionsMenuItem","FileManagerViewConfig","Copy"],"mappings":";;;;;AAMO,MAAMA,WAAW;IACpB,MAAM,EAAEC,IAAI,EAAE,GAAGC;IACjB,MAAM,EAAEC,WAAW,EAAE,GAAGC,YAAY;QAAEH;IAAK;IAC3C,MAAM,EAAEI,eAAe,EAAE,GAAGC,sBAAsB,OAAO,CAAC,IAAI,CAAC,MAAM;IAErE,OAAO,WAAP,GACI,oBAACD,iBAAAA;QACG,oBAAM,oBAACE,gBAAIA;QACX,OAAO;QACP,UAAUJ;QACV,eAAa;;AAGzB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { ReactComponent } from "@webiny/icons/delete.svg";
|
|
3
|
+
import { FileManagerViewConfig } from "../../../../config/FileManagerViewConfig.js";
|
|
4
|
+
import { useFileManagerPresenter } from "../../../FileManagerPresenterProvider.js";
|
|
5
|
+
import { useDeleteFile } from "../../../../hooks/useDeleteFile.js";
|
|
6
|
+
import { useFile } from "../../../../hooks/useFile.js";
|
|
7
|
+
const DeleteFile = ()=>{
|
|
8
|
+
const { file } = useFile();
|
|
9
|
+
const { vm } = useFileManagerPresenter();
|
|
10
|
+
const { openDialogDeleteFile } = useDeleteFile({
|
|
11
|
+
file
|
|
12
|
+
});
|
|
13
|
+
const { OptionsMenuItem } = FileManagerViewConfig.Browser.File.Action;
|
|
14
|
+
if (!vm.permissions.canDeleteFile(file)) return null;
|
|
15
|
+
return /*#__PURE__*/ react.createElement(OptionsMenuItem, {
|
|
16
|
+
icon: /*#__PURE__*/ react.createElement(ReactComponent, null),
|
|
17
|
+
label: "Delete",
|
|
18
|
+
onAction: openDialogDeleteFile,
|
|
19
|
+
"data-testid": "aco.actions.file.delete"
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
export { DeleteFile };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=DeleteFile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/Table/Actions/DeleteFile.js","sources":["../../../../../../src/presentation/FileList/components/Table/Actions/DeleteFile.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as Delete } from \"@webiny/icons/delete.svg\";\nimport { FileManagerViewConfig } from \"~/presentation/config/FileManagerViewConfig.js\";\nimport { useFileManagerPresenter } from \"~/presentation/FileList/FileManagerPresenterProvider.js\";\nimport { useDeleteFile } from \"~/presentation/hooks/useDeleteFile.js\";\nimport { useFile } from \"~/presentation/hooks/useFile.js\";\n\nexport const DeleteFile = () => {\n const { file } = useFile();\n const { vm } = useFileManagerPresenter();\n const { openDialogDeleteFile } = useDeleteFile({\n file\n });\n const { OptionsMenuItem } = FileManagerViewConfig.Browser.File.Action;\n\n if (!vm.permissions.canDeleteFile(file)) {\n return null;\n }\n\n return (\n <OptionsMenuItem\n icon={<Delete />}\n label={\"Delete\"}\n onAction={openDialogDeleteFile}\n data-testid={\"aco.actions.file.delete\"}\n />\n );\n};\n"],"names":["DeleteFile","file","useFile","vm","useFileManagerPresenter","openDialogDeleteFile","useDeleteFile","OptionsMenuItem","FileManagerViewConfig","Delete"],"mappings":";;;;;;AAOO,MAAMA,aAAa;IACtB,MAAM,EAAEC,IAAI,EAAE,GAAGC;IACjB,MAAM,EAAEC,EAAE,EAAE,GAAGC;IACf,MAAM,EAAEC,oBAAoB,EAAE,GAAGC,cAAc;QAC3CL;IACJ;IACA,MAAM,EAAEM,eAAe,EAAE,GAAGC,sBAAsB,OAAO,CAAC,IAAI,CAAC,MAAM;IAErE,IAAI,CAACL,GAAG,WAAW,CAAC,aAAa,CAACF,OAC9B,OAAO;IAGX,OAAO,WAAP,GACI,oBAACM,iBAAAA;QACG,oBAAM,oBAACE,gBAAMA;QACb,OAAO;QACP,UAAUJ;QACV,eAAa;;AAGzB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { ReactComponent } from "@webiny/icons/edit.svg";
|
|
3
|
+
import { FileManagerViewConfig } from "../../../../config/FileManagerViewConfig.js";
|
|
4
|
+
import { useFileManagerPresenter } from "../../../FileManagerPresenterProvider.js";
|
|
5
|
+
import { useFile } from "../../../../hooks/useFile.js";
|
|
6
|
+
const EditFile = ()=>{
|
|
7
|
+
const { file } = useFile();
|
|
8
|
+
const { actions } = useFileManagerPresenter();
|
|
9
|
+
const { OptionsMenuItem } = FileManagerViewConfig.Browser.File.Action;
|
|
10
|
+
return /*#__PURE__*/ react.createElement(OptionsMenuItem, {
|
|
11
|
+
icon: /*#__PURE__*/ react.createElement(ReactComponent, null),
|
|
12
|
+
label: "Edit",
|
|
13
|
+
onAction: ()=>actions.showFileDetails(file.id),
|
|
14
|
+
"data-testid": "aco.actions.file.edit"
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
export { EditFile };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=EditFile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/Table/Actions/EditFile.js","sources":["../../../../../../src/presentation/FileList/components/Table/Actions/EditFile.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as Edit } from \"@webiny/icons/edit.svg\";\nimport { FileManagerViewConfig } from \"~/presentation/config/FileManagerViewConfig.js\";\nimport { useFileManagerPresenter } from \"~/presentation/FileList/FileManagerPresenterProvider.js\";\nimport { useFile } from \"~/presentation/hooks/useFile.js\";\n\nexport const EditFile = () => {\n const { file } = useFile();\n const { actions } = useFileManagerPresenter();\n const { OptionsMenuItem } = FileManagerViewConfig.Browser.File.Action;\n\n return (\n <OptionsMenuItem\n icon={<Edit />}\n label={\"Edit\"}\n onAction={() => actions.showFileDetails(file.id)}\n data-testid={\"aco.actions.file.edit\"}\n />\n );\n};\n"],"names":["EditFile","file","useFile","actions","useFileManagerPresenter","OptionsMenuItem","FileManagerViewConfig","Edit"],"mappings":";;;;;AAMO,MAAMA,WAAW;IACpB,MAAM,EAAEC,IAAI,EAAE,GAAGC;IACjB,MAAM,EAAEC,OAAO,EAAE,GAAGC;IACpB,MAAM,EAAEC,eAAe,EAAE,GAAGC,sBAAsB,OAAO,CAAC,IAAI,CAAC,MAAM;IAErE,OAAO,WAAP,GACI,oBAACD,iBAAAA;QACG,oBAAM,oBAACE,gBAAIA;QACX,OAAO;QACP,UAAU,IAAMJ,QAAQ,eAAe,CAACF,KAAK,EAAE;QAC/C,eAAa;;AAGzB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { ReactComponent } from "@webiny/icons/drive_file_move.svg";
|
|
3
|
+
import { FileManagerViewConfig } from "../../../../config/FileManagerViewConfig.js";
|
|
4
|
+
import { useFile } from "../../../../hooks/useFile.js";
|
|
5
|
+
import { useMoveFileToFolder } from "../../../../hooks/useMoveFileToFolder.js";
|
|
6
|
+
const MoveFile = ()=>{
|
|
7
|
+
const { file } = useFile();
|
|
8
|
+
const moveFileToFolder = useMoveFileToFolder(file);
|
|
9
|
+
const { OptionsMenuItem } = FileManagerViewConfig.Browser.File.Action;
|
|
10
|
+
return /*#__PURE__*/ react.createElement(OptionsMenuItem, {
|
|
11
|
+
icon: /*#__PURE__*/ react.createElement(ReactComponent, null),
|
|
12
|
+
label: "Move",
|
|
13
|
+
onAction: moveFileToFolder,
|
|
14
|
+
"data-testid": "aco.actions.file.move"
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
export { MoveFile };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=MoveFile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/Table/Actions/MoveFile.js","sources":["../../../../../../src/presentation/FileList/components/Table/Actions/MoveFile.tsx"],"sourcesContent":["import React from \"react\";\nimport { ReactComponent as Move } from \"@webiny/icons/drive_file_move.svg\";\nimport { FileManagerViewConfig } from \"~/presentation/config/FileManagerViewConfig.js\";\nimport { useFile } from \"~/presentation/hooks/useFile.js\";\nimport { useMoveFileToFolder } from \"~/presentation/hooks/useMoveFileToFolder.js\";\n\nexport const MoveFile = () => {\n const { file } = useFile();\n const moveFileToFolder = useMoveFileToFolder(file);\n const { OptionsMenuItem } = FileManagerViewConfig.Browser.File.Action;\n\n return (\n <OptionsMenuItem\n icon={<Move />}\n label={\"Move\"}\n onAction={moveFileToFolder}\n data-testid={\"aco.actions.file.move\"}\n />\n );\n};\n"],"names":["MoveFile","file","useFile","moveFileToFolder","useMoveFileToFolder","OptionsMenuItem","FileManagerViewConfig","Move"],"mappings":";;;;;AAMO,MAAMA,WAAW;IACpB,MAAM,EAAEC,IAAI,EAAE,GAAGC;IACjB,MAAMC,mBAAmBC,oBAAoBH;IAC7C,MAAM,EAAEI,eAAe,EAAE,GAAGC,sBAAsB,OAAO,CAAC,IAAI,CAAC,MAAM;IAErE,OAAO,WAAP,GACI,oBAACD,iBAAAA;QACG,oBAAM,oBAACE,gBAAIA;QACX,OAAO;QACP,UAAUJ;QACV,eAAa;;AAGzB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { OptionsMenu } from "@webiny/app-admin";
|
|
3
|
+
import { FolderProvider } from "@webiny/app-aco";
|
|
4
|
+
import { FileProvider } from "../../../../contexts/FileProvider.js";
|
|
5
|
+
import { FileManagerViewConfig, useFileManagerConfig } from "../../../../config/FileManagerViewConfig.js";
|
|
6
|
+
const CellActions = ()=>{
|
|
7
|
+
const { useTableRow, isFolderRow } = FileManagerViewConfig.Browser.Table.Column;
|
|
8
|
+
const { row } = useTableRow();
|
|
9
|
+
const { browser } = useFileManagerConfig();
|
|
10
|
+
if (isFolderRow(row)) {
|
|
11
|
+
if (!row.data.canManageStructure) return null;
|
|
12
|
+
return /*#__PURE__*/ react.createElement(FolderProvider, {
|
|
13
|
+
folder: row.data
|
|
14
|
+
}, /*#__PURE__*/ react.createElement(OptionsMenu, {
|
|
15
|
+
actions: browser.folder.actions,
|
|
16
|
+
"data-testid": "table.row.folder.menu-action"
|
|
17
|
+
}));
|
|
18
|
+
}
|
|
19
|
+
return /*#__PURE__*/ react.createElement(FileProvider, {
|
|
20
|
+
file: row.data
|
|
21
|
+
}, /*#__PURE__*/ react.createElement(OptionsMenu, {
|
|
22
|
+
actions: browser.file.actions,
|
|
23
|
+
"data-testid": "table.row.file.menu-action"
|
|
24
|
+
}));
|
|
25
|
+
};
|
|
26
|
+
export { CellActions };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=CellActions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/Table/Cells/CellActions.js","sources":["../../../../../../src/presentation/FileList/components/Table/Cells/CellActions.tsx"],"sourcesContent":["import React from \"react\";\nimport { OptionsMenu } from \"@webiny/app-admin\";\nimport { FolderProvider } from \"@webiny/app-aco\";\nimport { FileProvider } from \"~/presentation/contexts/FileProvider.js\";\nimport {\n FileManagerViewConfig,\n useFileManagerConfig\n} from \"~/presentation/config/FileManagerViewConfig.js\";\n\nexport const CellActions = () => {\n const { useTableRow, isFolderRow } = FileManagerViewConfig.Browser.Table.Column;\n const { row } = useTableRow();\n const { browser } = useFileManagerConfig();\n\n if (isFolderRow(row)) {\n if (!row.data.canManageStructure) {\n return null;\n }\n\n return (\n <FolderProvider folder={row.data}>\n <OptionsMenu\n actions={browser.folder.actions}\n data-testid={\"table.row.folder.menu-action\"}\n />\n </FolderProvider>\n );\n }\n\n return (\n <FileProvider file={row.data}>\n <OptionsMenu\n actions={browser.file.actions}\n data-testid={\"table.row.file.menu-action\"}\n />\n </FileProvider>\n );\n};\n"],"names":["CellActions","useTableRow","isFolderRow","FileManagerViewConfig","row","browser","useFileManagerConfig","FolderProvider","OptionsMenu","FileProvider"],"mappings":";;;;;AASO,MAAMA,cAAc;IACvB,MAAM,EAAEC,WAAW,EAAEC,WAAW,EAAE,GAAGC,sBAAsB,OAAO,CAAC,KAAK,CAAC,MAAM;IAC/E,MAAM,EAAEC,GAAG,EAAE,GAAGH;IAChB,MAAM,EAAEI,OAAO,EAAE,GAAGC;IAEpB,IAAIJ,YAAYE,MAAM;QAClB,IAAI,CAACA,IAAI,IAAI,CAAC,kBAAkB,EAC5B,OAAO;QAGX,OAAO,WAAP,GACI,oBAACG,gBAAcA;YAAC,QAAQH,IAAI,IAAI;yBAC5B,oBAACI,aAAWA;YACR,SAASH,QAAQ,MAAM,CAAC,OAAO;YAC/B,eAAa;;IAI7B;IAEA,OAAO,WAAP,GACI,oBAACI,cAAYA;QAAC,MAAML,IAAI,IAAI;qBACxB,oBAACI,aAAWA;QACR,SAASH,QAAQ,IAAI,CAAC,OAAO;QAC7B,eAAa;;AAI7B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { FileManagerViewConfig } from "../../../../config/FileManagerViewConfig.js";
|
|
3
|
+
const CellAuthor = ()=>{
|
|
4
|
+
const { useTableRow } = FileManagerViewConfig.Browser.Table.Column;
|
|
5
|
+
const { row } = useTableRow();
|
|
6
|
+
return /*#__PURE__*/ react.createElement(react.Fragment, null, row.data.createdBy.displayName);
|
|
7
|
+
};
|
|
8
|
+
export { CellAuthor };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=CellAuthor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/Table/Cells/CellAuthor.js","sources":["../../../../../../src/presentation/FileList/components/Table/Cells/CellAuthor.tsx"],"sourcesContent":["import React from \"react\";\nimport { FileManagerViewConfig } from \"~/presentation/config/FileManagerViewConfig.js\";\n\nexport const CellAuthor = () => {\n const { useTableRow } = FileManagerViewConfig.Browser.Table.Column;\n const { row } = useTableRow();\n\n return <>{row.data.createdBy.displayName}</>;\n};\n"],"names":["CellAuthor","useTableRow","FileManagerViewConfig","row"],"mappings":";;AAGO,MAAMA,aAAa;IACtB,MAAM,EAAEC,WAAW,EAAE,GAAGC,sBAAsB,OAAO,CAAC,KAAK,CAAC,MAAM;IAClE,MAAM,EAAEC,GAAG,EAAE,GAAGF;IAEhB,OAAO,WAAP,GAAO,0CAAGE,IAAI,IAAI,CAAC,SAAS,CAAC,WAAW;AAC5C"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { TimeAgo } from "@webiny/admin-ui";
|
|
3
|
+
import { FileManagerViewConfig } from "../../../../config/FileManagerViewConfig.js";
|
|
4
|
+
const CellCreated = ()=>{
|
|
5
|
+
const { useTableRow } = FileManagerViewConfig.Browser.Table.Column;
|
|
6
|
+
const { row } = useTableRow();
|
|
7
|
+
return /*#__PURE__*/ react.createElement(TimeAgo, {
|
|
8
|
+
datetime: row.data.createdOn
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
export { CellCreated };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=CellCreated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/Table/Cells/CellCreated.js","sources":["../../../../../../src/presentation/FileList/components/Table/Cells/CellCreated.tsx"],"sourcesContent":["import React from \"react\";\nimport { TimeAgo } from \"@webiny/admin-ui\";\nimport { FileManagerViewConfig } from \"~/presentation/config/FileManagerViewConfig.js\";\n\nexport const CellCreated = () => {\n const { useTableRow } = FileManagerViewConfig.Browser.Table.Column;\n const { row } = useTableRow();\n\n return <TimeAgo datetime={row.data.createdOn} />;\n};\n"],"names":["CellCreated","useTableRow","FileManagerViewConfig","row","TimeAgo"],"mappings":";;;AAIO,MAAMA,cAAc;IACvB,MAAM,EAAEC,WAAW,EAAE,GAAGC,sBAAsB,OAAO,CAAC,KAAK,CAAC,MAAM;IAClE,MAAM,EAAEC,GAAG,EAAE,GAAGF;IAEhB,OAAO,WAAP,GAAO,oBAACG,SAAOA;QAAC,UAAUD,IAAI,IAAI,CAAC,SAAS;;AAChD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { TimeAgo } from "@webiny/admin-ui";
|
|
3
|
+
import { FileManagerViewConfig } from "../../../../config/FileManagerViewConfig.js";
|
|
4
|
+
const CellModified = ()=>{
|
|
5
|
+
const { useTableRow } = FileManagerViewConfig.Browser.Table.Column;
|
|
6
|
+
const { row } = useTableRow();
|
|
7
|
+
return /*#__PURE__*/ react.createElement(TimeAgo, {
|
|
8
|
+
datetime: row.data.savedOn
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
export { CellModified };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=CellModified.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/Table/Cells/CellModified.js","sources":["../../../../../../src/presentation/FileList/components/Table/Cells/CellModified.tsx"],"sourcesContent":["import React from \"react\";\nimport { TimeAgo } from \"@webiny/admin-ui\";\nimport { FileManagerViewConfig } from \"~/presentation/config/FileManagerViewConfig.js\";\n\nexport const CellModified = () => {\n const { useTableRow } = FileManagerViewConfig.Browser.Table.Column;\n const { row } = useTableRow();\n\n return <TimeAgo datetime={row.data.savedOn} />;\n};\n"],"names":["CellModified","useTableRow","FileManagerViewConfig","row","TimeAgo"],"mappings":";;;AAIO,MAAMA,eAAe;IACxB,MAAM,EAAEC,WAAW,EAAE,GAAGC,sBAAsB,OAAO,CAAC,KAAK,CAAC,MAAM;IAClE,MAAM,EAAEC,GAAG,EAAE,GAAGF;IAEhB,OAAO,WAAP,GAAO,oBAACG,SAAOA;QAAC,UAAUD,IAAI,IAAI,CAAC,OAAO;;AAC9C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { FolderDto } from "@webiny/app-aco";
|
|
3
|
+
import type { FileItem } from "../../../../../domain/types.js";
|
|
4
|
+
interface DefaultProps {
|
|
5
|
+
onClick: (id: string) => void;
|
|
6
|
+
}
|
|
7
|
+
interface FolderCellNameProps extends DefaultProps {
|
|
8
|
+
folder: FolderDto;
|
|
9
|
+
}
|
|
10
|
+
export declare const FolderCellName: ({ folder, onClick }: FolderCellNameProps) => React.JSX.Element;
|
|
11
|
+
interface FileCellNameProps extends DefaultProps {
|
|
12
|
+
file: FileItem;
|
|
13
|
+
}
|
|
14
|
+
export declare const FileCellName: ({ file, onClick }: FileCellNameProps) => React.JSX.Element;
|
|
15
|
+
export declare const CellName: () => React.JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { FolderIcon, FolderSharedIcon } from "@webiny/app-aco";
|
|
3
|
+
import { FileManagerViewConfig } from "../../../../config/FileManagerViewConfig.js";
|
|
4
|
+
import { useFileManagerPresenter } from "../../../FileManagerPresenterProvider.js";
|
|
5
|
+
import { Text, cn } from "@webiny/admin-ui";
|
|
6
|
+
import { CellThumbnail } from "./CellThumbnail.js";
|
|
7
|
+
import { FileProvider } from "../../../../contexts/FileProvider.js";
|
|
8
|
+
const FolderCellName = ({ folder, onClick })=>{
|
|
9
|
+
let icon = /*#__PURE__*/ react.createElement(FolderIcon, {
|
|
10
|
+
width: 32,
|
|
11
|
+
height: 32
|
|
12
|
+
});
|
|
13
|
+
if (folder.hasNonInheritedPermissions && folder.canManagePermissions) icon = /*#__PURE__*/ react.createElement(FolderSharedIcon, {
|
|
14
|
+
width: 32,
|
|
15
|
+
height: 32
|
|
16
|
+
});
|
|
17
|
+
return /*#__PURE__*/ react.createElement("div", {
|
|
18
|
+
className: cn([
|
|
19
|
+
"flex items-center gap-md",
|
|
20
|
+
"truncate cursor-pointer font-semibold",
|
|
21
|
+
"hover:underline"
|
|
22
|
+
]),
|
|
23
|
+
onClick: ()=>onClick(folder.id)
|
|
24
|
+
}, /*#__PURE__*/ react.createElement("div", {
|
|
25
|
+
className: "size-xl rounded-md overflow-hidden flex-shrink-0"
|
|
26
|
+
}, icon), /*#__PURE__*/ react.createElement(Text, {
|
|
27
|
+
className: "truncate min-w-0 flex-shrink"
|
|
28
|
+
}, folder.title));
|
|
29
|
+
};
|
|
30
|
+
const FileCellName = ({ file, onClick })=>/*#__PURE__*/ react.createElement("div", {
|
|
31
|
+
className: cn([
|
|
32
|
+
"flex items-center gap-md",
|
|
33
|
+
"truncate cursor-pointer",
|
|
34
|
+
"hover:underline"
|
|
35
|
+
]),
|
|
36
|
+
onClick: ()=>onClick(file.id)
|
|
37
|
+
}, /*#__PURE__*/ react.createElement(FileProvider, {
|
|
38
|
+
file: file
|
|
39
|
+
}, /*#__PURE__*/ react.createElement("div", {
|
|
40
|
+
className: "size-xl aspect-square rounded-md bg-neutral-muted overflow-hidden flex-shrink-0"
|
|
41
|
+
}, /*#__PURE__*/ react.createElement(CellThumbnail, null))), /*#__PURE__*/ react.createElement(Text, {
|
|
42
|
+
className: "truncate min-w-0 flex-shrink"
|
|
43
|
+
}, file.name));
|
|
44
|
+
const CellName = ()=>{
|
|
45
|
+
const { useTableRow, isFolderRow } = FileManagerViewConfig.Browser.Table.Column;
|
|
46
|
+
const { row } = useTableRow();
|
|
47
|
+
const { actions } = useFileManagerPresenter();
|
|
48
|
+
if (isFolderRow(row)) return /*#__PURE__*/ react.createElement(FolderCellName, {
|
|
49
|
+
folder: row.data,
|
|
50
|
+
onClick: (id)=>actions.folders.selectFolder(id)
|
|
51
|
+
});
|
|
52
|
+
return /*#__PURE__*/ react.createElement(FileCellName, {
|
|
53
|
+
file: row.data,
|
|
54
|
+
onClick: (id)=>actions.showFileDetails(id)
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
export { CellName, FileCellName, FolderCellName };
|
|
58
|
+
|
|
59
|
+
//# sourceMappingURL=CellName.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/Table/Cells/CellName.js","sources":["../../../../../../src/presentation/FileList/components/Table/Cells/CellName.tsx"],"sourcesContent":["import React from \"react\";\nimport { FolderIcon, FolderSharedIcon } from \"@webiny/app-aco\";\nimport { FileManagerViewConfig } from \"~/presentation/config/FileManagerViewConfig.js\";\nimport { useFileManagerPresenter } from \"~/presentation/FileList/FileManagerPresenterProvider.js\";\nimport type { FolderDto } from \"@webiny/app-aco\";\nimport { cn, Text } from \"@webiny/admin-ui\";\nimport { CellThumbnail } from \"./CellThumbnail.js\";\nimport { FileProvider } from \"~/presentation/contexts/FileProvider.js\";\nimport type { FileItem } from \"~/domain/types.js\";\n\ninterface DefaultProps {\n onClick: (id: string) => void;\n}\n\ninterface FolderCellNameProps extends DefaultProps {\n folder: FolderDto;\n}\n\nexport const FolderCellName = ({ folder, onClick }: FolderCellNameProps) => {\n let icon = <FolderIcon width={32} height={32} />;\n if (folder.hasNonInheritedPermissions && folder.canManagePermissions) {\n icon = <FolderSharedIcon width={32} height={32} />;\n }\n\n return (\n <div\n className={cn([\n \"flex items-center gap-md\",\n \"truncate cursor-pointer font-semibold\",\n \"hover:underline\"\n ])}\n onClick={() => onClick(folder.id)}\n >\n <div className={\"size-xl rounded-md overflow-hidden flex-shrink-0\"}>{icon}</div>\n <Text className={\"truncate min-w-0 flex-shrink\"}>{folder.title}</Text>\n </div>\n );\n};\n\ninterface FileCellNameProps extends DefaultProps {\n file: FileItem;\n}\n\nexport const FileCellName = ({ file, onClick }: FileCellNameProps) => {\n return (\n <div\n className={cn([\n \"flex items-center gap-md\",\n \"truncate cursor-pointer\",\n \"hover:underline\"\n ])}\n onClick={() => onClick(file.id)}\n >\n <FileProvider file={file}>\n <div\n className={\n \"size-xl aspect-square rounded-md bg-neutral-muted overflow-hidden flex-shrink-0\"\n }\n >\n <CellThumbnail />\n </div>\n </FileProvider>\n <Text className={\"truncate min-w-0 flex-shrink\"}>{file.name}</Text>\n </div>\n );\n};\n\nexport const CellName = () => {\n const { useTableRow, isFolderRow } = FileManagerViewConfig.Browser.Table.Column;\n const { row } = useTableRow();\n const { actions } = useFileManagerPresenter();\n\n if (isFolderRow(row)) {\n return (\n <FolderCellName folder={row.data} onClick={id => actions.folders.selectFolder(id)} />\n );\n }\n\n return <FileCellName file={row.data} onClick={id => actions.showFileDetails(id)} />;\n};\n"],"names":["FolderCellName","folder","onClick","icon","FolderIcon","FolderSharedIcon","cn","Text","FileCellName","file","FileProvider","CellThumbnail","CellName","useTableRow","isFolderRow","FileManagerViewConfig","row","actions","useFileManagerPresenter","id"],"mappings":";;;;;;;AAkBO,MAAMA,iBAAiB,CAAC,EAAEC,MAAM,EAAEC,OAAO,EAAuB;IACnE,IAAIC,OAAO,WAAPA,GAAO,oBAACC,YAAUA;QAAC,OAAO;QAAI,QAAQ;;IAC1C,IAAIH,OAAO,0BAA0B,IAAIA,OAAO,oBAAoB,EAChEE,OAAO,WAAPA,GAAO,oBAACE,kBAAgBA;QAAC,OAAO;QAAI,QAAQ;;IAGhD,OAAO,WAAP,GACI,oBAAC;QACG,WAAWC,GAAG;YACV;YACA;YACA;SACH;QACD,SAAS,IAAMJ,QAAQD,OAAO,EAAE;qBAEhC,oBAAC;QAAI,WAAW;OAAqDE,OAAAA,WAAAA,GACrE,oBAACI,MAAIA;QAAC,WAAW;OAAiCN,OAAO,KAAK;AAG1E;AAMO,MAAMO,eAAe,CAAC,EAAEC,IAAI,EAAEP,OAAO,EAAqB,GACtD,WAAP,GACI,oBAAC;QACG,WAAWI,GAAG;YACV;YACA;YACA;SACH;QACD,SAAS,IAAMJ,QAAQO,KAAK,EAAE;qBAE9B,oBAACC,cAAYA;QAAC,MAAMD;qBAChB,oBAAC;QACG,WACI;qBAGJ,oBAACE,eAAaA,SAAAA,WAAAA,GAGtB,oBAACJ,MAAIA;QAAC,WAAW;OAAiCE,KAAK,IAAI;AAKhE,MAAMG,WAAW;IACpB,MAAM,EAAEC,WAAW,EAAEC,WAAW,EAAE,GAAGC,sBAAsB,OAAO,CAAC,KAAK,CAAC,MAAM;IAC/E,MAAM,EAAEC,GAAG,EAAE,GAAGH;IAChB,MAAM,EAAEI,OAAO,EAAE,GAAGC;IAEpB,IAAIJ,YAAYE,MACZ,OAAO,WAAP,GACI,oBAAChB,gBAAcA;QAAC,QAAQgB,IAAI,IAAI;QAAE,SAASG,CAAAA,KAAMF,QAAQ,OAAO,CAAC,YAAY,CAACE;;IAItF,OAAO,WAAP,GAAO,oBAACX,cAAYA;QAAC,MAAMQ,IAAI,IAAI;QAAE,SAASG,CAAAA,KAAMF,QAAQ,eAAe,CAACE;;AAChF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import bytes from "bytes";
|
|
3
|
+
import { FileManagerViewConfig } from "../../../../config/FileManagerViewConfig.js";
|
|
4
|
+
const CellSize = ()=>{
|
|
5
|
+
const { useTableRow, isFolderRow } = FileManagerViewConfig.Browser.Table.Column;
|
|
6
|
+
const { row } = useTableRow();
|
|
7
|
+
if (isFolderRow(row)) return /*#__PURE__*/ react.createElement(react.Fragment, null, "-");
|
|
8
|
+
return /*#__PURE__*/ react.createElement(react.Fragment, null, bytes.format(row.data.size, {
|
|
9
|
+
unitSeparator: " "
|
|
10
|
+
}));
|
|
11
|
+
};
|
|
12
|
+
export { CellSize };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=CellSize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/Table/Cells/CellSize.js","sources":["../../../../../../src/presentation/FileList/components/Table/Cells/CellSize.tsx"],"sourcesContent":["import React from \"react\";\nimport bytes from \"bytes\";\nimport { FileManagerViewConfig } from \"~/presentation/config/FileManagerViewConfig.js\";\n\nexport const CellSize = () => {\n const { useTableRow, isFolderRow } = FileManagerViewConfig.Browser.Table.Column;\n const { row } = useTableRow();\n\n if (isFolderRow(row)) {\n return <>{\"-\"}</>;\n }\n\n return <>{bytes.format(row.data.size, { unitSeparator: \" \" })}</>;\n};\n"],"names":["CellSize","useTableRow","isFolderRow","FileManagerViewConfig","row","bytes"],"mappings":";;;AAIO,MAAMA,WAAW;IACpB,MAAM,EAAEC,WAAW,EAAEC,WAAW,EAAE,GAAGC,sBAAsB,OAAO,CAAC,KAAK,CAAC,MAAM;IAC/E,MAAM,EAAEC,GAAG,EAAE,GAAGH;IAEhB,IAAIC,YAAYE,MACZ,OAAO,WAAP,GAAO,0CAAG;IAGd,OAAO,WAAP,GAAO,0CAAGC,MAAM,MAAM,CAACD,IAAI,IAAI,CAAC,IAAI,EAAE;QAAE,eAAe;IAAI;AAC/D"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { useFile } from "../../../../hooks/useFile.js";
|
|
3
|
+
import { useFileManagerConfig } from "../../../../config/FileManagerViewConfig.js";
|
|
4
|
+
const CellThumbnail = ()=>{
|
|
5
|
+
const { file } = useFile();
|
|
6
|
+
const { browser, getThumbnailRenderer } = useFileManagerConfig();
|
|
7
|
+
const renderer = getThumbnailRenderer(browser.table.cellThumbnails, file);
|
|
8
|
+
return /*#__PURE__*/ react.createElement(react.Fragment, null, renderer?.element || null);
|
|
9
|
+
};
|
|
10
|
+
export { CellThumbnail };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=CellThumbnail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/Table/Cells/CellThumbnail.js","sources":["../../../../../../src/presentation/FileList/components/Table/Cells/CellThumbnail.tsx"],"sourcesContent":["import React from \"react\";\nimport { useFile } from \"~/presentation/hooks/useFile.js\";\nimport { useFileManagerConfig } from \"~/presentation/config/FileManagerViewConfig.js\";\n\nexport const CellThumbnail = () => {\n const { file } = useFile();\n const { browser, getThumbnailRenderer } = useFileManagerConfig();\n\n const renderer = getThumbnailRenderer(browser.table.cellThumbnails, file);\n\n return <>{renderer?.element || null}</>;\n};\n"],"names":["CellThumbnail","file","useFile","browser","getThumbnailRenderer","useFileManagerConfig","renderer"],"mappings":";;;AAIO,MAAMA,gBAAgB;IACzB,MAAM,EAAEC,IAAI,EAAE,GAAGC;IACjB,MAAM,EAAEC,OAAO,EAAEC,oBAAoB,EAAE,GAAGC;IAE1C,MAAMC,WAAWF,qBAAqBD,QAAQ,KAAK,CAAC,cAAc,EAAEF;IAEpE,OAAO,WAAP,GAAO,0CAAGK,UAAU,WAAW;AACnC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
import { FileManagerViewConfig } from "../../../../config/FileManagerViewConfig.js";
|
|
3
|
+
const CellType = ()=>{
|
|
4
|
+
const { useTableRow, isFolderRow } = FileManagerViewConfig.Browser.Table.Column;
|
|
5
|
+
const { row } = useTableRow();
|
|
6
|
+
if (isFolderRow(row)) return /*#__PURE__*/ react.createElement(react.Fragment, null, "-");
|
|
7
|
+
return /*#__PURE__*/ react.createElement(react.Fragment, null, row.data.type);
|
|
8
|
+
};
|
|
9
|
+
export { CellType };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=CellType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation/FileList/components/Table/Cells/CellType.js","sources":["../../../../../../src/presentation/FileList/components/Table/Cells/CellType.tsx"],"sourcesContent":["import React from \"react\";\nimport { FileManagerViewConfig } from \"~/presentation/config/FileManagerViewConfig.js\";\n\nexport const CellType = () => {\n const { useTableRow, isFolderRow } = FileManagerViewConfig.Browser.Table.Column;\n const { row } = useTableRow();\n\n if (isFolderRow(row)) {\n return <>{\"-\"}</>;\n }\n\n return <>{row.data.type}</>;\n};\n"],"names":["CellType","useTableRow","isFolderRow","FileManagerViewConfig","row"],"mappings":";;AAGO,MAAMA,WAAW;IACpB,MAAM,EAAEC,WAAW,EAAEC,WAAW,EAAE,GAAGC,sBAAsB,OAAO,CAAC,KAAK,CAAC,MAAM;IAC/E,MAAM,EAAEC,GAAG,EAAE,GAAGH;IAEhB,IAAIC,YAAYE,MACZ,OAAO,WAAP,GAAO,0CAAG;IAGd,OAAO,WAAP,GAAO,0CAAGA,IAAI,IAAI,CAAC,IAAI;AAC3B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { FolderTableRow, RecordTableRow } from "@webiny/app-aco";
|
|
3
|
+
import type { FmFile } from "../../../../features/shared/types.js";
|
|
4
|
+
export type FileTableItem = FolderTableRow | RecordTableRow<FmFile>;
|
|
5
|
+
/**
|
|
6
|
+
* Table View component driven by FileListPresenter vm.
|
|
7
|
+
* Bridges the presenter's state to the ACO Table component,
|
|
8
|
+
* wiring sort and selection actions back to the presenter.
|
|
9
|
+
*/
|
|
10
|
+
export declare const FileTable: (() => React.JSX.Element) & {
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|