@webiny/app-file-manager 6.0.0-beta.0 → 6.0.0-rc.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/BatchFileUploader.d.ts +2 -2
- package/BatchFileUploader.js +75 -112
- package/BatchFileUploader.js.map +1 -1
- package/README.md +7 -28
- package/app.js +9 -14
- package/app.js.map +1 -1
- package/components/BottomInfoBar/BottomInfoBar.d.ts +3 -3
- package/components/BottomInfoBar/BottomInfoBar.js +14 -17
- package/components/BottomInfoBar/BottomInfoBar.js.map +1 -1
- package/components/BottomInfoBar/ListStatus.js +17 -21
- package/components/BottomInfoBar/ListStatus.js.map +1 -1
- package/components/BottomInfoBar/SupportedFileTypes.d.ts +4 -2
- package/components/BottomInfoBar/SupportedFileTypes.js +37 -26
- package/components/BottomInfoBar/SupportedFileTypes.js.map +1 -1
- package/components/BottomInfoBar/index.d.ts +1 -1
- package/components/BottomInfoBar/index.js +1 -16
- package/components/BottomInfoBar/index.js.map +1 -1
- package/components/BulkActions/ActionDelete.js +70 -71
- package/components/BulkActions/ActionDelete.js.map +1 -1
- package/components/BulkActions/ActionEdit/ActionEdit.js +38 -45
- package/components/BulkActions/ActionEdit/ActionEdit.js.map +1 -1
- package/components/BulkActions/ActionEdit/ActionEdit.types.d.ts +2 -2
- package/components/BulkActions/ActionEdit/ActionEdit.types.js +1 -5
- package/components/BulkActions/ActionEdit/ActionEdit.types.js.map +1 -1
- package/components/BulkActions/ActionEdit/ActionEditPresenter.d.ts +1 -1
- package/components/BulkActions/ActionEdit/ActionEditPresenter.js +45 -80
- package/components/BulkActions/ActionEdit/ActionEditPresenter.js.map +1 -1
- package/components/BulkActions/ActionEdit/ActionEditPresenter.test.js +16 -19
- package/components/BulkActions/ActionEdit/ActionEditPresenter.test.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/AddOperation.js +15 -18
- package/components/BulkActions/ActionEdit/BatchEditorDialog/AddOperation.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.d.ts +2 -2
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.js +33 -54
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.d.ts +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.js +36 -46
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.d.ts +5 -10
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.js +125 -173
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.test.js +58 -49
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.test.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.d.ts +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.js +20 -28
- package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.d.ts +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.js +34 -46
- package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/index.d.ts +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/index.js +1 -16
- package/components/BulkActions/ActionEdit/BatchEditorDialog/index.js.map +1 -1
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.d.ts +15 -10
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.js +41 -51
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.js.map +1 -1
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.test.js +90 -77
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.test.js.map +1 -1
- package/components/BulkActions/ActionEdit/domain/Batch.js +23 -38
- package/components/BulkActions/ActionEdit/domain/Batch.js.map +1 -1
- package/components/BulkActions/ActionEdit/domain/BatchMapper.d.ts +1 -1
- package/components/BulkActions/ActionEdit/domain/BatchMapper.js +10 -27
- package/components/BulkActions/ActionEdit/domain/BatchMapper.js.map +1 -1
- package/components/BulkActions/ActionEdit/domain/Field.d.ts +2 -2
- package/components/BulkActions/ActionEdit/domain/Field.js +31 -53
- package/components/BulkActions/ActionEdit/domain/Field.js.map +1 -1
- package/components/BulkActions/ActionEdit/domain/FieldMapper.d.ts +1 -1
- package/components/BulkActions/ActionEdit/domain/FieldMapper.js +18 -41
- package/components/BulkActions/ActionEdit/domain/FieldMapper.js.map +1 -1
- package/components/BulkActions/ActionEdit/domain/index.d.ts +4 -4
- package/components/BulkActions/ActionEdit/domain/index.js +4 -49
- package/components/BulkActions/ActionEdit/domain/index.js.map +1 -1
- package/components/BulkActions/ActionEdit/index.d.ts +1 -1
- package/components/BulkActions/ActionEdit/index.js +1 -16
- package/components/BulkActions/ActionEdit/index.js.map +1 -1
- package/components/BulkActions/ActionEdit/useActionEditWorker.d.ts +2 -2
- package/components/BulkActions/ActionEdit/useActionEditWorker.js +44 -48
- package/components/BulkActions/ActionEdit/useActionEditWorker.js.map +1 -1
- package/components/BulkActions/ActionMove.js +64 -61
- package/components/BulkActions/ActionMove.js.map +1 -1
- package/components/BulkActions/BulkActions.js +35 -38
- package/components/BulkActions/BulkActions.js.map +1 -1
- package/components/BulkActions/index.d.ts +4 -4
- package/components/BulkActions/index.js +4 -43
- package/components/BulkActions/index.js.map +1 -1
- package/components/EditFileUsingUrl/EditFileUsingUrl.d.ts +1 -1
- package/components/EditFileUsingUrl/EditFileUsingUrl.js +31 -43
- package/components/EditFileUsingUrl/EditFileUsingUrl.js.map +1 -1
- package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.d.ts +2 -2
- package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.js +39 -49
- package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.js.map +1 -1
- package/components/EditFileUsingUrl/EditFileUsingUrlRepository.d.ts +2 -2
- package/components/EditFileUsingUrl/EditFileUsingUrlRepository.js +32 -49
- package/components/EditFileUsingUrl/EditFileUsingUrlRepository.js.map +1 -1
- package/components/EditFileUsingUrl/GetFileByUrl.d.ts +4 -4
- package/components/EditFileUsingUrl/GetFileByUrl.js +22 -34
- package/components/EditFileUsingUrl/GetFileByUrl.js.map +1 -1
- package/components/EditFileUsingUrl/Loading.js +30 -53
- package/components/EditFileUsingUrl/Loading.js.map +1 -1
- package/components/EditFileUsingUrl/UpdateFile.d.ts +4 -4
- package/components/EditFileUsingUrl/UpdateFile.js +6 -19
- package/components/EditFileUsingUrl/UpdateFile.js.map +1 -1
- package/components/EditFileUsingUrl/getFileByUrl.graphql.d.ts +1 -1
- package/components/EditFileUsingUrl/getFileByUrl.graphql.js +16 -13
- package/components/EditFileUsingUrl/getFileByUrl.graphql.js.map +1 -1
- package/components/EditFileUsingUrl/index.d.ts +1 -1
- package/components/EditFileUsingUrl/index.js +1 -16
- package/components/EditFileUsingUrl/index.js.map +1 -1
- package/components/Empty/Empty.d.ts +1 -1
- package/components/Empty/Empty.js +18 -23
- package/components/Empty/Empty.js.map +1 -1
- package/components/Empty/index.d.ts +1 -1
- package/components/Empty/index.js +1 -16
- package/components/Empty/index.js.map +1 -1
- package/components/FileDetails/FileDetails.d.ts +2 -2
- package/components/FileDetails/FileDetails.js +116 -140
- package/components/FileDetails/FileDetails.js.map +1 -1
- package/components/FileDetails/FileDetailsProvider.d.ts +1 -1
- package/components/FileDetails/FileDetailsProvider.js +11 -17
- package/components/FileDetails/FileDetailsProvider.js.map +1 -1
- package/components/FileDetails/components/ActionButton.d.ts +2 -1
- package/components/FileDetails/components/ActionButton.js +17 -24
- package/components/FileDetails/components/ActionButton.js.map +1 -1
- package/components/FileDetails/components/Actions.js +11 -34
- package/components/FileDetails/components/Actions.js.map +1 -1
- package/components/FileDetails/components/BaseFields.d.ts +1 -1
- package/components/FileDetails/components/BaseFields.js +14 -22
- package/components/FileDetails/components/BaseFields.js.map +1 -1
- package/components/FileDetails/components/Content.d.ts +2 -1
- package/components/FileDetails/components/Content.js +28 -41
- package/components/FileDetails/components/Content.js.map +1 -1
- package/components/FileDetails/components/CreatedOn.js +19 -52
- package/components/FileDetails/components/CreatedOn.js.map +1 -1
- package/components/FileDetails/components/Description.d.ts +2 -0
- package/components/FileDetails/components/Description.js +23 -0
- package/components/FileDetails/components/Description.js.map +1 -0
- package/components/FileDetails/components/Extensions.d.ts +1 -1
- package/components/FileDetails/components/Extensions.js +19 -50
- package/components/FileDetails/components/Extensions.js.map +1 -1
- package/components/FileDetails/components/Preview.js +9 -27
- package/components/FileDetails/components/Preview.js.map +1 -1
- package/components/FileDetails/components/Thumbnail.js +13 -18
- package/components/FileDetails/components/Thumbnail.js.map +1 -1
- package/components/FileDetails/index.d.ts +1 -1
- package/components/FileDetails/index.js +1 -16
- package/components/FileDetails/index.js.map +1 -1
- package/components/FileDropArea/FileDropArea.d.ts +9 -0
- package/components/FileDropArea/FileDropArea.js +69 -0
- package/components/FileDropArea/FileDropArea.js.map +1 -0
- package/components/FileDropArea/index.d.ts +1 -0
- package/components/FileDropArea/index.js +3 -0
- package/components/FileDropArea/index.js.map +1 -0
- package/components/FileDropPlaceholder/FileDropPlaceholder.d.ts +2 -0
- package/components/FileDropPlaceholder/FileDropPlaceholder.js +12 -0
- package/components/FileDropPlaceholder/FileDropPlaceholder.js.map +1 -0
- package/components/FileDropPlaceholder/index.d.ts +1 -0
- package/components/FileDropPlaceholder/index.js +3 -0
- package/components/FileDropPlaceholder/index.js.map +1 -0
- package/components/Filters/Filters.js +26 -0
- package/components/Filters/Filters.js.map +1 -0
- package/components/Filters/index.d.ts +1 -0
- package/components/Filters/index.js +3 -0
- package/components/Filters/index.js.map +1 -0
- package/components/Grid/ActionButton.d.ts +2 -1
- package/components/Grid/ActionButton.js +24 -21
- package/components/Grid/ActionButton.js.map +1 -1
- package/components/Grid/File.d.ts +23 -7
- package/components/Grid/File.js +77 -52
- package/components/Grid/File.js.map +1 -1
- package/components/Grid/Grid.d.ts +7 -4
- package/components/Grid/Grid.js +60 -67
- package/components/Grid/Grid.js.map +1 -1
- package/components/Grid/Thumbnail.js +13 -18
- package/components/Grid/Thumbnail.js.map +1 -1
- package/components/Grid/index.d.ts +1 -1
- package/components/Grid/index.js +1 -16
- package/components/Grid/index.js.map +1 -1
- package/components/Header/Actions.d.ts +5 -0
- package/components/Header/Actions.js +99 -0
- package/components/Header/Actions.js.map +1 -0
- package/components/Header/Header.d.ts +9 -0
- package/components/Header/Header.js +21 -0
- package/components/Header/Header.js.map +1 -0
- package/components/Header/Title.d.ts +2 -0
- package/components/Header/Title.js +55 -0
- package/components/Header/Title.js.map +1 -0
- package/components/Header/index.d.ts +1 -0
- package/components/Header/index.js +3 -0
- package/components/Header/index.js.map +1 -0
- package/components/ImageEditor/ImageEditor.d.ts +45 -0
- package/components/ImageEditor/ImageEditor.js +218 -0
- package/components/ImageEditor/ImageEditor.js.map +1 -0
- package/components/ImageEditor/ImageEditorDialog.d.ts +16 -0
- package/components/ImageEditor/ImageEditorDialog.js +53 -0
- package/components/ImageEditor/ImageEditorDialog.js.map +1 -0
- package/components/ImageEditor/index.d.ts +1 -0
- package/components/ImageEditor/index.js +3 -0
- package/components/ImageEditor/index.js.map +1 -0
- package/components/ImageEditor/toolbar/crop.d.ts +4 -0
- package/components/ImageEditor/toolbar/crop.js +67 -0
- package/components/ImageEditor/toolbar/crop.js.map +1 -0
- package/components/ImageEditor/toolbar/filter.d.ts +3 -0
- package/components/ImageEditor/toolbar/filter.js +167 -0
- package/components/ImageEditor/toolbar/filter.js.map +1 -0
- package/components/ImageEditor/toolbar/flip.d.ts +4 -0
- package/components/ImageEditor/toolbar/flip.js +94 -0
- package/components/ImageEditor/toolbar/flip.js.map +1 -0
- package/components/ImageEditor/toolbar/index.d.ts +4 -0
- package/components/ImageEditor/toolbar/index.js +6 -0
- package/components/ImageEditor/toolbar/index.js.map +1 -0
- package/components/ImageEditor/toolbar/rotate.d.ts +4 -0
- package/components/ImageEditor/toolbar/rotate.js +93 -0
- package/components/ImageEditor/toolbar/rotate.js.map +1 -0
- package/components/ImageEditor/toolbar/types.d.ts +32 -0
- package/components/ImageEditor/toolbar/types.js +3 -0
- package/components/ImageEditor/toolbar/types.js.map +1 -0
- package/components/LayoutSwitch/LayoutSwitch.js +18 -29
- package/components/LayoutSwitch/LayoutSwitch.js.map +1 -1
- package/components/LayoutSwitch/index.d.ts +1 -1
- package/components/LayoutSwitch/index.js +1 -16
- package/components/LayoutSwitch/index.js.map +1 -1
- package/components/NoPermissions/NoPermissions.d.ts +2 -0
- package/components/NoPermissions/NoPermissions.js +28 -0
- package/components/NoPermissions/NoPermissions.js.map +1 -0
- package/components/NoPermissions/index.d.ts +1 -0
- package/components/NoPermissions/index.js +3 -0
- package/components/NoPermissions/index.js.map +1 -0
- package/components/NoResults/NoResults.js +19 -15
- package/components/NoResults/NoResults.js.map +1 -1
- package/components/NoResults/index.d.ts +1 -1
- package/components/NoResults/index.js +1 -16
- package/components/NoResults/index.js.map +1 -1
- package/components/SearchWidget/SearchWidget.js +30 -0
- package/components/SearchWidget/SearchWidget.js.map +1 -0
- package/components/SearchWidget/index.d.ts +1 -0
- package/components/SearchWidget/index.js +3 -0
- package/components/SearchWidget/index.js.map +1 -0
- package/components/Table/Actions/CopyFile.js +19 -22
- package/components/Table/Actions/CopyFile.js.map +1 -1
- package/components/Table/Actions/DeleteFile.js +23 -25
- package/components/Table/Actions/DeleteFile.js.map +1 -1
- package/components/Table/Actions/EditFile.js +18 -23
- package/components/Table/Actions/EditFile.js.map +1 -1
- package/components/Table/Actions/MoveFile.js +15 -19
- package/components/Table/Actions/MoveFile.js.map +1 -1
- package/components/Table/Actions/index.d.ts +4 -4
- package/components/Table/Actions/index.js +4 -49
- package/components/Table/Actions/index.js.map +1 -1
- package/components/Table/Cells/CellActions.js +25 -30
- package/components/Table/Cells/CellActions.js.map +1 -1
- package/components/Table/Cells/CellAuthor.js +13 -14
- package/components/Table/Cells/CellAuthor.js.map +1 -1
- package/components/Table/Cells/CellCreated.js +15 -16
- package/components/Table/Cells/CellCreated.js.map +1 -1
- package/components/Table/Cells/CellModified.js +15 -16
- package/components/Table/Cells/CellModified.js.map +1 -1
- package/components/Table/Cells/CellName.d.ts +4 -4
- package/components/Table/Cells/CellName.js +55 -48
- package/components/Table/Cells/CellName.js.map +1 -1
- package/components/Table/Cells/CellSize.js +13 -18
- package/components/Table/Cells/CellSize.js.map +1 -1
- package/components/Table/Cells/CellThumbnail.d.ts +2 -0
- package/components/Table/Cells/CellThumbnail.js +16 -0
- package/components/Table/Cells/CellThumbnail.js.map +1 -0
- package/components/Table/Cells/CellType.js +12 -17
- package/components/Table/Cells/CellType.js.map +1 -1
- package/components/Table/Cells/index.d.ts +7 -7
- package/components/Table/Cells/index.js +7 -82
- package/components/Table/Cells/index.js.map +1 -1
- package/components/Table/Table.d.ts +4 -4
- package/components/Table/Table.js +23 -21
- package/components/Table/Table.js.map +1 -1
- package/components/Table/index.d.ts +3 -3
- package/components/Table/index.js +3 -38
- package/components/Table/index.js.map +1 -1
- package/{modules/FileManagerRenderer/FileManagerView/components → components}/TagsList/Empty.d.ts +1 -1
- package/components/TagsList/Empty.js +11 -0
- package/components/TagsList/Empty.js.map +1 -0
- package/components/TagsList/FilterSelect.d.ts +2 -0
- package/components/TagsList/FilterSelect.js +28 -0
- package/components/TagsList/FilterSelect.js.map +1 -0
- package/components/TagsList/FilterStatus.d.ts +7 -0
- package/components/TagsList/FilterStatus.js +27 -0
- package/components/TagsList/FilterStatus.js.map +1 -0
- package/{modules/FileManagerRenderer/FileManagerView/components → components}/TagsList/Tag.d.ts +2 -2
- package/components/TagsList/Tag.js +16 -0
- package/components/TagsList/Tag.js.map +1 -0
- package/components/TagsList/Tags.d.ts +8 -0
- package/components/TagsList/Tags.js +32 -0
- package/components/TagsList/Tags.js.map +1 -0
- package/{modules/FileManagerRenderer/FileManagerView/components → components}/TagsList/TagsList.d.ts +1 -1
- package/components/TagsList/TagsList.js +31 -0
- package/components/TagsList/TagsList.js.map +1 -0
- package/components/TagsList/index.d.ts +1 -0
- package/components/TagsList/index.js +3 -0
- package/components/TagsList/index.js.map +1 -0
- package/components/Thumbnail/Thumbnail.d.ts +2 -0
- package/components/Thumbnail/Thumbnail.js +16 -0
- package/components/Thumbnail/Thumbnail.js.map +1 -0
- package/components/Thumbnail/index.d.ts +1 -0
- package/components/Thumbnail/index.js +3 -0
- package/components/Thumbnail/index.js.map +1 -0
- package/components/UploadStatus/UploadStatus.d.ts +3 -1
- package/components/UploadStatus/UploadStatus.js +33 -32
- package/components/UploadStatus/UploadStatus.js.map +1 -1
- package/components/UploadStatus/index.d.ts +1 -1
- package/components/UploadStatus/index.js +1 -16
- package/components/UploadStatus/index.js.map +1 -1
- package/components/fields/AccessControl.js +31 -31
- package/components/fields/AccessControl.js.map +1 -1
- package/components/fields/Name.js +21 -23
- package/components/fields/Name.js.map +1 -1
- package/components/fields/Tags.js +30 -30
- package/components/fields/Tags.js.map +1 -1
- package/components/fields/index.d.ts +3 -4
- package/components/fields/index.js +3 -49
- package/components/fields/index.js.map +1 -1
- package/components/fields/useAccessControlField.d.ts +1 -2
- package/components/fields/useAccessControlField.js +9 -21
- package/components/fields/useAccessControlField.js.map +1 -1
- package/components/fields/useFileOrUndefined.js +4 -10
- package/components/fields/useFileOrUndefined.js.map +1 -1
- package/constants.d.ts +2 -2
- package/constants.js +4 -16
- package/constants.js.map +1 -1
- package/contexts/FileProvider.d.ts +1 -1
- package/contexts/FileProvider.js +12 -18
- package/contexts/FileProvider.js.map +1 -1
- package/hooks/useCopyFile.d.ts +1 -1
- package/hooks/useCopyFile.js +18 -24
- package/hooks/useCopyFile.js.map +1 -1
- package/hooks/useDeleteFile.d.ts +1 -1
- package/hooks/useDeleteFile.js +35 -62
- package/hooks/useDeleteFile.js.map +1 -1
- package/hooks/useFile.d.ts +1 -1
- package/hooks/useFile.js +5 -12
- package/hooks/useFile.js.map +1 -1
- package/hooks/useFileDetails.d.ts +1 -1
- package/hooks/useFileDetails.js +5 -12
- package/hooks/useFileDetails.js.map +1 -1
- package/hooks/useFileModel.js +5 -12
- package/hooks/useFileModel.js.map +1 -1
- package/hooks/useMoveFileToFolder.d.ts +1 -1
- package/hooks/useMoveFileToFolder.js +19 -21
- package/hooks/useMoveFileToFolder.js.map +1 -1
- package/index.d.ts +8 -8
- package/index.js +8 -101
- package/index.js.map +1 -1
- package/modules/Enterprise/HandleWebsocketMessages.d.ts +1 -0
- package/modules/Enterprise/HandleWebsocketMessages.js +57 -0
- package/modules/Enterprise/HandleWebsocketMessages.js.map +1 -0
- package/modules/Enterprise/components/ThreatScanInProgressFileBody.d.ts +2 -0
- package/modules/Enterprise/components/ThreatScanInProgressFileBody.js +23 -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 +32 -0
- package/modules/Enterprise/components/ThreatScanInProgressTableCell.js.map +1 -0
- package/modules/Enterprise/constants.d.ts +3 -0
- package/modules/Enterprise/constants.js +5 -0
- package/modules/Enterprise/constants.js.map +1 -0
- package/modules/Enterprise/index.d.ts +2 -0
- package/modules/Enterprise/index.js +40 -0
- package/modules/Enterprise/index.js.map +1 -0
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.d.ts +2 -3
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.js +138 -129
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.js.map +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.d.ts +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.js +14 -25
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.js.map +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.d.ts +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.js +28 -11
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.js.map +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.d.ts +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.js +3 -9
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.js.map +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/index.d.ts +3 -3
- package/modules/FileManagerApiProvider/FileManagerApiContext/index.js +3 -26
- package/modules/FileManagerApiProvider/FileManagerApiContext/index.js.map +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.d.ts +2 -2
- package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.js +4 -11
- package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.js.map +1 -1
- package/modules/FileManagerApiProvider/graphql.d.ts +8 -9
- package/modules/FileManagerApiProvider/graphql.js +116 -27
- package/modules/FileManagerApiProvider/graphql.js.map +1 -1
- package/modules/FileManagerApiProvider/index.js +11 -17
- package/modules/FileManagerApiProvider/index.js.map +1 -1
- package/modules/FileManagerRenderer/FileActions/FileDetails/CopyUrl.js +18 -25
- package/modules/FileManagerRenderer/FileActions/FileDetails/CopyUrl.js.map +1 -1
- package/modules/FileManagerRenderer/FileActions/FileDetails/DeleteImage.js +26 -39
- package/modules/FileManagerRenderer/FileActions/FileDetails/DeleteImage.js.map +1 -1
- package/modules/FileManagerRenderer/FileActions/FileDetails/Download.js +15 -23
- package/modules/FileManagerRenderer/FileActions/FileDetails/Download.js.map +1 -1
- package/modules/FileManagerRenderer/FileActions/FileDetails/EditImage.js +48 -59
- package/modules/FileManagerRenderer/FileActions/FileDetails/EditImage.js.map +1 -1
- package/modules/FileManagerRenderer/FileActions/FileDetails/MoveToFolder.js +14 -22
- package/modules/FileManagerRenderer/FileActions/FileDetails/MoveToFolder.js.map +1 -1
- package/modules/FileManagerRenderer/FileActions/Grid/Delete.d.ts +2 -0
- package/modules/FileManagerRenderer/FileActions/Grid/Delete.js +29 -0
- package/modules/FileManagerRenderer/FileActions/Grid/Delete.js.map +1 -0
- package/modules/FileManagerRenderer/FileActions/Grid/Download.js +16 -19
- package/modules/FileManagerRenderer/FileActions/Grid/Download.js.map +1 -1
- package/modules/FileManagerRenderer/FileActions/Grid/MoveToFolder.js +14 -17
- package/modules/FileManagerRenderer/FileActions/Grid/MoveToFolder.js.map +1 -1
- package/modules/FileManagerRenderer/FileActions/Grid/Settings.js +15 -18
- package/modules/FileManagerRenderer/FileActions/Grid/Settings.js.map +1 -1
- package/modules/FileManagerRenderer/FileActions/index.js +33 -38
- package/modules/FileManagerRenderer/FileActions/index.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/FileManagerView.js +168 -233
- package/modules/FileManagerRenderer/FileManagerView/FileManagerView.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.d.ts +216 -63
- package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.js +55 -48
- package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.d.ts +1 -1
- package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.js +42 -48
- package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.d.ts +2 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.js +34 -45
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkEditField.js +11 -17
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkEditField.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.d.ts +5 -5
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.js +8 -22
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.d.ts +20 -4
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.js +20 -29
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FilterByTags.js +7 -13
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FilterByTags.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FiltersToWhere.js +7 -13
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FiltersToWhere.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.d.ts +4 -4
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.js +8 -22
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderDropConfirmation.d.ts +5 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderDropConfirmation.js +10 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderDropConfirmation.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderFieldDecorator.d.ts +7 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderFieldDecorator.js +16 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderFieldDecorator.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.d.ts +15 -3
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.js +18 -27
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.d.ts +15 -3
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.js +13 -19
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.d.ts +2 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.js +1 -5
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.d.ts +29 -6
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.js +10 -22
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Thumbnail.d.ts +28 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Thumbnail.js +30 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Thumbnail.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.d.ts +50 -5
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.js +7 -9
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.d.ts +148 -41
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.js +40 -31
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.d.ts +15 -3
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.js +17 -26
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.d.ts +20 -4
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.js +20 -29
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.d.ts +3 -3
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.js +16 -24
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.js +8 -14
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.d.ts +15 -3
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.js +12 -18
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Width.js +8 -14
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Width.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.d.ts +58 -19
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.js +15 -21
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/formatFileItem.d.ts +6 -0
- package/modules/FileManagerRenderer/FileManagerView/formatFileItem.js +19 -0
- package/modules/FileManagerRenderer/FileManagerView/formatFileItem.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.d.ts +1 -1
- package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.js +7 -16
- package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/index.d.ts +1 -1
- package/modules/FileManagerRenderer/FileManagerView/index.js +55 -64
- package/modules/FileManagerRenderer/FileManagerView/index.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.d.ts +1 -1
- package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.js +6 -17
- package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.d.ts +30 -15
- package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.js +300 -310
- package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/index.d.ts +2 -2
- package/modules/FileManagerRenderer/FileManagerViewProvider/index.js +2 -27
- package/modules/FileManagerRenderer/FileManagerViewProvider/index.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.d.ts +7 -5
- package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.js +30 -45
- package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/state.d.ts +5 -3
- package/modules/FileManagerRenderer/FileManagerViewProvider/state.js +5 -9
- package/modules/FileManagerRenderer/FileManagerViewProvider/state.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.d.ts +2 -2
- package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.js +4 -10
- package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.d.ts +7 -7
- package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.js +92 -92
- package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.d.ts +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.js +63 -81
- package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.js.map +1 -1
- package/modules/FileManagerRenderer/filters/FilterByType.js +9 -16
- package/modules/FileManagerRenderer/filters/FilterByType.js.map +1 -1
- package/modules/FileManagerRenderer/index.js +87 -84
- package/modules/FileManagerRenderer/index.js.map +1 -1
- package/modules/HeadlessCms/fileField.d.ts +1 -1
- package/modules/HeadlessCms/fileField.js +13 -21
- package/modules/HeadlessCms/fileField.js.map +1 -1
- package/modules/HeadlessCms/fileRenderer/fileField.d.ts +1 -1
- package/modules/HeadlessCms/fileRenderer/fileField.js +50 -92
- package/modules/HeadlessCms/fileRenderer/fileField.js.map +1 -1
- package/modules/HeadlessCms/fileRenderer/fileFields.d.ts +1 -1
- package/modules/HeadlessCms/fileRenderer/fileFields.js +78 -148
- package/modules/HeadlessCms/fileRenderer/fileFields.js.map +1 -1
- package/modules/HeadlessCms/fileRenderer/utils.d.ts +1 -11
- package/modules/HeadlessCms/fileRenderer/utils.js +3 -53
- package/modules/HeadlessCms/fileRenderer/utils.js.map +1 -1
- package/modules/HeadlessCms/index.js +8 -14
- package/modules/HeadlessCms/index.js.map +1 -1
- package/modules/SecurityPermissions.d.ts +2 -0
- package/modules/SecurityPermissions.js +36 -0
- package/modules/SecurityPermissions.js.map +1 -0
- package/modules/Settings/graphql.js +32 -15
- package/modules/Settings/graphql.js.map +1 -1
- package/modules/Settings/index.js +34 -32
- package/modules/Settings/index.js.map +1 -1
- package/modules/Settings/views/FileManagerSettings.js +146 -113
- package/modules/Settings/views/FileManagerSettings.js.map +1 -1
- package/modules/ThumbnailRenderers/FilePreviewDefaultRenderer.d.ts +2 -0
- package/modules/ThumbnailRenderers/FilePreviewDefaultRenderer.js +12 -0
- package/modules/ThumbnailRenderers/FilePreviewDefaultRenderer.js.map +1 -0
- package/modules/ThumbnailRenderers/FilePreviewImageRenderer.d.ts +2 -0
- package/modules/ThumbnailRenderers/FilePreviewImageRenderer.js +19 -0
- package/modules/ThumbnailRenderers/FilePreviewImageRenderer.js.map +1 -0
- package/modules/ThumbnailRenderers/GridItemDefaultRenderer.d.ts +2 -0
- package/modules/ThumbnailRenderers/GridItemDefaultRenderer.js +12 -0
- package/modules/ThumbnailRenderers/GridItemDefaultRenderer.js.map +1 -0
- package/modules/ThumbnailRenderers/GridItemImageRenderer.d.ts +2 -0
- package/modules/ThumbnailRenderers/GridItemImageRenderer.js +19 -0
- package/modules/ThumbnailRenderers/GridItemImageRenderer.js.map +1 -0
- package/modules/ThumbnailRenderers/TableItemDefaultRenderer.d.ts +2 -0
- package/modules/ThumbnailRenderers/TableItemDefaultRenderer.js +19 -0
- package/modules/ThumbnailRenderers/TableItemDefaultRenderer.js.map +1 -0
- package/modules/ThumbnailRenderers/TableItemImageRenderer.d.ts +2 -0
- package/modules/ThumbnailRenderers/TableItemImageRenderer.js +19 -0
- package/modules/ThumbnailRenderers/TableItemImageRenderer.js.map +1 -0
- package/package.json +32 -43
- package/routes.d.ts +4 -0
- package/routes.js +9 -0
- package/routes.js.map +1 -0
- package/tagsHelpers.d.ts +1 -1
- package/tagsHelpers.js +31 -37
- package/tagsHelpers.js.map +1 -1
- package/types.d.ts +55 -12
- package/types.js +1 -12
- package/types.js.map +1 -1
- package/components/BottomInfoBar/styled.d.ts +0 -21
- package/components/BottomInfoBar/styled.js +0 -81
- package/components/BottomInfoBar/styled.js.map +0 -1
- package/components/BulkActions/ActionEdit/ActionEdit.styled.d.ts +0 -28
- package/components/BulkActions/ActionEdit/ActionEdit.styled.js +0 -77
- package/components/BulkActions/ActionEdit/ActionEdit.styled.js.map +0 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/RemoveOperation.d.ts +0 -7
- package/components/BulkActions/ActionEdit/BatchEditorDialog/RemoveOperation.js +0 -26
- package/components/BulkActions/ActionEdit/BatchEditorDialog/RemoveOperation.js.map +0 -1
- package/components/BulkActions/BulkActions.styled.d.ts +0 -13
- package/components/BulkActions/BulkActions.styled.js +0 -46
- package/components/BulkActions/BulkActions.styled.js.map +0 -1
- package/components/DropFilesHere/DropFilesHere.d.ts +0 -8
- package/components/DropFilesHere/DropFilesHere.js +0 -28
- package/components/DropFilesHere/DropFilesHere.js.map +0 -1
- package/components/DropFilesHere/index.d.ts +0 -1
- package/components/DropFilesHere/index.js +0 -18
- package/components/DropFilesHere/index.js.map +0 -1
- package/components/DropFilesHere/styled.d.ts +0 -22
- package/components/DropFilesHere/styled.js +0 -61
- package/components/DropFilesHere/styled.js.map +0 -1
- package/components/FileDetails/components/Flex.d.ts +0 -7
- package/components/FileDetails/components/Flex.js +0 -48
- package/components/FileDetails/components/Flex.js.map +0 -1
- package/components/FileDetails/components/Footer.d.ts +0 -2
- package/components/FileDetails/components/Footer.js +0 -40
- package/components/FileDetails/components/Footer.js.map +0 -1
- package/components/FileDetails/components/Header.d.ts +0 -2
- package/components/FileDetails/components/Header.js +0 -40
- package/components/FileDetails/components/Header.js.map +0 -1
- package/components/FileDetails/components/PreviewMeta.d.ts +0 -2
- package/components/FileDetails/components/PreviewMeta.js +0 -31
- package/components/FileDetails/components/PreviewMeta.js.map +0 -1
- package/components/FileDetails/components/TypeAndSize.d.ts +0 -2
- package/components/FileDetails/components/TypeAndSize.js +0 -67
- package/components/FileDetails/components/TypeAndSize.js.map +0 -1
- package/components/Grid/styled.d.ts +0 -41
- package/components/Grid/styled.js +0 -137
- package/components/Grid/styled.js.map +0 -1
- package/components/NoPermission/NoPermission.d.ts +0 -2
- package/components/NoPermission/NoPermission.js +0 -25
- package/components/NoPermission/NoPermission.js.map +0 -1
- package/components/NoPermission/index.d.ts +0 -1
- package/components/NoPermission/index.js +0 -18
- package/components/NoPermission/index.js.map +0 -1
- package/components/NoPermission/styled.d.ts +0 -24
- package/components/NoPermission/styled.js +0 -97
- package/components/NoPermission/styled.js.map +0 -1
- package/components/NoResults/styled.d.ts +0 -5
- package/components/NoResults/styled.js +0 -25
- package/components/NoResults/styled.js.map +0 -1
- package/components/Table/Cells/Cells.styled.d.ts +0 -12
- package/components/Table/Cells/Cells.styled.js +0 -54
- package/components/Table/Cells/Cells.styled.js.map +0 -1
- package/components/Title/Title.d.ts +0 -5
- package/components/Title/Title.js +0 -21
- package/components/Title/Title.js.map +0 -1
- package/components/Title/index.d.ts +0 -1
- package/components/Title/index.js +0 -18
- package/components/Title/index.js.map +0 -1
- package/components/Title/styled.d.ts +0 -4
- package/components/Title/styled.js +0 -26
- package/components/Title/styled.js.map +0 -1
- package/components/UploadStatus/assets/check.svg +0 -3
- package/components/UploadStatus/assets/loading.svg +0 -17
- package/components/UploadStatus/styled.d.ts +0 -39
- package/components/UploadStatus/styled.js +0 -127
- package/components/UploadStatus/styled.js.map +0 -1
- package/components/fields/Aliases.d.ts +0 -2
- package/components/fields/Aliases.js +0 -136
- package/components/fields/Aliases.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/NavigateFolderProvider.d.ts +0 -4
- package/modules/FileManagerRenderer/FileManagerView/NavigateFolderProvider.js +0 -37
- package/modules/FileManagerRenderer/FileManagerView/NavigateFolderProvider.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/components/Filters.js +0 -33
- package/modules/FileManagerRenderer/FileManagerView/components/Filters.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/components/SearchWidget.js +0 -98
- package/modules/FileManagerRenderer/FileManagerView/components/SearchWidget.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Empty.js +0 -19
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Empty.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Tag.js +0 -29
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Tag.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/TagsList.js +0 -74
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/TagsList.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/index.d.ts +0 -1
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/index.js +0 -18
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/index.js.map +0 -1
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/styled.d.ts +0 -21
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/styled.js +0 -61
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/styled.js.map +0 -1
- package/modules/HeadlessCms/fileRenderer/File.d.ts +0 -10
- package/modules/HeadlessCms/fileRenderer/File.js +0 -86
- package/modules/HeadlessCms/fileRenderer/File.js.map +0 -1
- package/modules/Settings/plugins/installation.d.ts +0 -3
- package/modules/Settings/plugins/installation.js +0 -96
- package/modules/Settings/plugins/installation.js.map +0 -1
- package/modules/Settings/plugins/permissionRenderer/FileManagerPermissions.d.ts +0 -14
- package/modules/Settings/plugins/permissionRenderer/FileManagerPermissions.js +0 -232
- package/modules/Settings/plugins/permissionRenderer/FileManagerPermissions.js.map +0 -1
- package/modules/Settings/plugins/permissionRenderer/index.d.ts +0 -3
- package/modules/Settings/plugins/permissionRenderer/index.js +0 -29
- package/modules/Settings/plugins/permissionRenderer/index.js.map +0 -1
- package/modules/ThumbnailRenderers/DefaultRenderer.d.ts +0 -2
- package/modules/ThumbnailRenderers/DefaultRenderer.js +0 -25
- package/modules/ThumbnailRenderers/DefaultRenderer.js.map +0 -1
- package/modules/ThumbnailRenderers/ImageRenderer.d.ts +0 -2
- package/modules/ThumbnailRenderers/ImageRenderer.js +0 -29
- package/modules/ThumbnailRenderers/ImageRenderer.js.map +0 -1
- /package/{modules/FileManagerRenderer/FileManagerView/components → components/Filters}/Filters.d.ts +0 -0
- /package/{modules/FileManagerRenderer/FileManagerView/components → components/SearchWidget}/SearchWidget.d.ts +0 -0
|
@@ -1,70 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
var _LeftSidebar = require("./LeftSidebar");
|
|
29
|
-
var _ = require("../../..");
|
|
30
|
-
var _BottomInfoBar = require("../../../components/BottomInfoBar");
|
|
31
|
-
var _BulkActions = require("../../../components/BulkActions");
|
|
32
|
-
var _DropFilesHere = require("../../../components/DropFilesHere");
|
|
33
|
-
var _Empty = require("../../../components/Empty");
|
|
34
|
-
var _FileDetails = require("../../../components/FileDetails");
|
|
35
|
-
var _Grid = require("../../../components/Grid");
|
|
36
|
-
var _LayoutSwitch = require("../../../components/LayoutSwitch");
|
|
37
|
-
var _Table = require("../../../components/Table");
|
|
38
|
-
var _Title = require("../../../components/Title");
|
|
39
|
-
var _UploadStatus = require("../../../components/UploadStatus");
|
|
40
|
-
var _BatchFileUploader = require("../../../BatchFileUploader");
|
|
41
|
-
var _SearchWidget = require("./components/SearchWidget");
|
|
42
|
-
var _Filters = require("./components/Filters");
|
|
43
|
-
var _TagsList = require("./components/TagsList");
|
|
44
|
-
var _excluded = ["id"];
|
|
45
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
46
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } // @ts-expect-error
|
|
47
|
-
var t = _i18n.i18n.ns("app-admin/file-manager/file-manager-view");
|
|
48
|
-
var FileListWrapper = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
49
|
-
target: "e46i7190"
|
|
50
|
-
} : {
|
|
51
|
-
target: "e46i7190",
|
|
52
|
-
label: "FileListWrapper"
|
|
53
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
54
|
-
name: "ttov1z",
|
|
55
|
-
styles: "float:right;z-index:60;display:inline-block;width:calc(100vw - 286px);height:calc(100vh - 94px);position:relative;.mdc-data-table{display:inline-table;}"
|
|
56
|
-
} : {
|
|
57
|
-
name: "ttov1z",
|
|
58
|
-
styles: "float:right;z-index:60;display:inline-block;width:calc(100vw - 286px);height:calc(100vh - 94px);position:relative;.mdc-data-table{display:inline-table;}",
|
|
59
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZpbGVNYW5hZ2VyVmlldy50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBeUN3QiIsImZpbGUiOiJGaWxlTWFuYWdlclZpZXcudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IHVzZUNhbGxiYWNrLCB1c2VFZmZlY3QsIHVzZU1lbW8sIHVzZVN0YXRlIH0gZnJvbSBcInJlYWN0XCI7XG5pbXBvcnQgRmlsZXMsIHsgRmlsZXNSZW5kZXJDaGlsZHJlbiB9IGZyb20gXCJyZWFjdC1idXR0ZXJmaWxlc1wiO1xuaW1wb3J0IHN0eWxlZCBmcm9tIFwiQGVtb3Rpb24vc3R5bGVkXCI7XG5pbXBvcnQgZGVib3VuY2UgZnJvbSBcImxvZGFzaC9kZWJvdW5jZVwiO1xuaW1wb3J0IG9taXQgZnJvbSBcImxvZGFzaC9vbWl0XCI7XG5pbXBvcnQgeyBwb3NpdGlvblZhbHVlcyB9IGZyb20gXCJyZWFjdC1jdXN0b20tc2Nyb2xsYmFyc1wiO1xuLy8gQHRzLWV4cGVjdC1lcnJvclxuaW1wb3J0IHsgdXNlSG90a2V5cyB9IGZyb20gXCJyZWFjdC1ob3RrZXl6XCI7XG5pbXBvcnQgeyBvYnNlcnZlciB9IGZyb20gXCJtb2J4LXJlYWN0LW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kgPT4ge1xuICAgICAgICBpZiAoIXRhYmxlU29ydGluZz8ubGVuZ3RoKSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cbiAgICAgICAgY29uc3Qgc29ydCA9IGNyZWF0ZVNvcnQodGFibGVTb3J0aW5nKTtcbiAgICAgICAgaWYgKCFzb3J0KSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cbiAgICAgICAgdmlldy5zZXRMaXN0U29ydChzb3J0KTtcbiAgICB9LCBbdGFibGVTb3J0aW5nXSk7XG5cbiAgICBjb25zdCBnZXRGaWxlVXBsb2FkRXJyb3JNZXNzYWdlID0gdXNlQ2FsbGJhY2soKGU6IEdldEZpbGVVcGxvYWRFcnJvck1lc3NhZ2VQcm9wcykgPT4ge1xuICAgICAgICBpZiAodHlwZW9mIGUgPT09IFwic3RyaW5nXCIpIHtcbiAgICAgICAgICAgIGNvbnN0IG1hdGNoID0gZS5tYXRjaCgvTWVzc2FnZT4oLio/KTxcXC9NZXNzYWdlLyk7XG4gICAgICAgICAgICBpZiAobWF0Y2gpIHtcbiAgICAgICAgICAgICAgICBjb25zdCBbLCBtZXNzYWdlXSA9IG1hdGNoO1xuICAgICAgICAgICAgICAgIHJldHVybiBtZXNzYWdlO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICByZXR1cm4gZTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gZS5tZXNzYWdlO1xuICAgIH0sIFtdKTtcblxuICAgIHVzZUhvdGtleXMoe1xuICAgICAgICB6SW5kZXg6IDUwLFxuICAgICAgICBrZXlzOiB7XG4gICAgICAgICAgICBlc2M6IHZpZXcub25DbG9zZVxuICAgICAgICB9XG4gICAgfSk7XG5cbiAgICBjb25zdCB1cGxvYWRGaWxlcyA9IGFzeW5jIChmaWxlczogRmlsZVtdKSA9PiB7XG4gICAgICAgIHVwbG9hZGVyLmFkZEZpbGVzKGZpbGVzKTtcblxuICAgICAgICB1cGxvYWRlci5vblVwbG9hZEZpbmlzaGVkKCh7IHVwbG9hZGVkLCBlcnJvcnMgfSkgPT4ge1xuICAgICAgICAgICAgdXBsb2FkZXIucmVzZXQoKTtcblxuICAgICAgICAgICAgaWYgKGVycm9ycy5sZW5ndGggPiAwKSB7XG4gICAgICAgICAgICAgICAgc2hvd1NuYWNrYmFyKFxuICAgICAgICAgICAgICAgICAgICA8PlxuICAgICAgICAgICAgICAgICAgICAgICAge3RgT25lIG9yIG1vcmUgZmlsZXMgd2VyZSBub3QgdXBsb2FkZWQgc3VjY2Vzc2Z1bGx5OmB9XG4gICAgICAgICAgICAgICAgICAgICAgICA8b2w+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAge2Vycm9ycy5tYXAoKHsgZmlsZSwgZSB9KSA9PiAoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxsaSBrZXk9e2ZpbGUubmFtZX0+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8c3Ryb25nPntmaWxlLm5hbWV9PC9zdHJvbmc+OiB7Z2V0RmlsZVVwbG9hZEVycm9yTWVzc2FnZShlKX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9saT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApKX1cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvb2w+XG4gICAgICAgICAgICAgICAgICAgIDwvPlxuICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBzaG93U25hY2tiYXIodGBGaWxlIHVwbG9hZCBjb21wbGV0ZS5gKTtcblxuICAgICAgICAgICAgdmlldy5vblVwbG9hZENvbXBsZXRpb24odXBsb2FkZWQpO1xuICAgICAgICB9KTtcbiAgICB9O1xuXG4gICAgY29uc3QgcmVuZGVyVXBsb2FkRmlsZUFjdGlvbiA9IHVzZUNhbGxiYWNrKFxuICAgICAgICAoeyBicm93c2VGaWxlcyB9OiBCcm93c2VGaWxlc0hhbmRsZXIpID0+IHtcbiAgICAgICAgICAgIGlmICghZmlsZU1hbmFnZXIuY2FuQ3JlYXRlKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgICAgIDxCdXR0b25QcmltYXJ5XG4gICAgICAgICAgICAgICAgICAgIGZsYXQ9e3RydWV9XG4gICAgICAgICAgICAgICAgICAgIHNtYWxsPXt0cnVlfVxuICAgICAgICAgICAgICAgICAgICBvbkNsaWNrPXticm93c2VGaWxlcyBhcyBCdXR0b25Qcm9wc1tcIm9uQ2xpY2tcIl19XG4gICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICA8QnV0dG9uSWNvbiBpY29uPXs8VXBsb2FkSWNvbiAvPn0gLz5cbiAgICAgICAgICAgICAgICAgICAge3RgVXBsb2FkLi4uYH1cbiAgICAgICAgICAgICAgICA8L0J1dHRvblByaW1hcnk+XG4gICAgICAgICAgICApO1xuICAgICAgICB9LFxuICAgICAgICBbZmlsZU1hbmFnZXIuY2FuQ3JlYXRlXVxuICAgICk7XG5cbiAgICBjb25zdCBmaWxlc0JlaW5nVXBsb2FkZWQgPSB1cGxvYWRlci5nZXRKb2JzKCkubGVuZ3RoO1xuICAgIGNvbnN0IHByb2dyZXNzID0gdXBsb2FkZXIucHJvZ3Jlc3M7XG5cbiAgICBjb25zdCByZW5kZXJMaXN0ID0gKGJyb3dzZUZpbGVzOiBGaWxlc1JlbmRlckNoaWxkcmVuW1wiYnJvd3NlRmlsZXNcIl0pID0+IHtcbiAgICAgICAgaWYgKCF2aWV3LmlzTGlzdExvYWRpbmcgJiYgdmlldy5pc1NlYXJjaCAmJiB2aWV3LmZpbGVzLmxlbmd0aCA9PT0gMCkge1xuICAgICAgICAgICAgcmV0dXJuIDxFbXB0eSBpc1NlYXJjaFJlc3VsdD17dHJ1ZX0gYnJvd3NlRmlsZXM9e2Jyb3dzZUZpbGVzfSAvPjtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICghdmlldy5pc0xpc3RMb2FkaW5nICYmIHZpZXcuZmlsZXMubGVuZ3RoID09PSAwICYmIHZpZXcuZm9sZGVycy5sZW5ndGggPT09IDApIHtcbiAgICAgICAgICAgIHJldHVybiA8RW1wdHkgaXNTZWFyY2hSZXN1bHQ9e2ZhbHNlfSBicm93c2VGaWxlcz17YnJvd3NlRmlsZXN9IC8+O1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKHZpZXcubGlzdFRhYmxlKSB7XG4gICAgICAgICAgICBjb25zdCBnZXRTZWxlY3RhYmxlUm93ID0gKHJvd3M6IFRhYmxlSXRlbVtdKSA9PlxuICAgICAgICAgICAgICAgIHJvd3NcbiAgICAgICAgICAgICAgICAgICAgLmZpbHRlcihyb3cgPT4gcm93LiR0eXBlID09PSBcIlJFQ09SRFwiKVxuICAgICAgICAgICAgICAgICAgICAubWFwKHJvdyA9PiBvbWl0KHJvdywgW1wiJHR5cGVcIiwgXCIkc2VsZWN0YWJsZVwiXSkgYXMgRmlsZUl0ZW0pO1xuXG4gICAgICAgICAgICBjb25zdCBvblNlbGVjdFJvdzogVGFibGVQcm9wc1tcIm9uU2VsZWN0Um93XCJdID0gdmlldy5oYXNPblNlbGVjdENhbGxiYWNrXG4gICAgICAgICAgICAgICAgPyByb3dzID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICBjb25zdCBmaWxlcyA9IGdldFNlbGVjdGFibGVSb3cocm93cyk7XG5cbiAgICAgICAgICAgICAgICAgICAgICBpZiAodmlldy5tdWx0aXBsZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICB2aWV3LnNldFNlbGVjdGVkKGZpbGVzKTtcbiAgICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgICB2aWV3Lm9uQ2hhbmdlKGZpbGVzWzBdKTtcbiAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgOiByb3dzID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICBjb25zdCBmaWxlcyA9IGdldFNlbGVjdGFibGVSb3cocm93cyk7XG4gICAgICAgICAgICAgICAgICAgICAgdmlldy5zZXRTZWxlY3RlZChmaWxlcyk7XG4gICAgICAgICAgICAgICAgICB9O1xuXG4gICAgICAgICAgICBjb25zdCBvblRvZ2dsZVJvdzogVGFibGVQcm9wc1tcIm9uVG9nZ2xlUm93XCJdID0gdmlldy5oYXNPblNlbGVjdENhbGxiYWNrXG4gICAgICAgICAgICAgICAgPyByb3cgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGZpbGVzID0gZ2V0U2VsZWN0YWJsZVJvdyhbcm93XSk7XG5cbiAgICAgICAgICAgICAgICAgICAgICBpZiAodmlldy5tdWx0aXBsZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICB2aWV3LnRvZ2dsZVNlbGVjdGVkKGZpbGVzWzBdKTtcbiAgICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgICB2aWV3Lm9uQ2hhbmdlKGZpbGVzWzBdKTtcbiAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgOiByb3cgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGZpbGVzID0gZ2V0U2VsZWN0YWJsZVJvdyhbcm93XSk7XG4gICAgICAgICAgICAgICAgICAgICAgdmlldy50b2dnbGVTZWxlY3RlZChmaWxlc1swXSk7XG4gICAgICAgICAgICAgICAgICB9O1xuXG4gICAgICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgICAgIDxUYWJsZVxuICAgICAgICAgICAgICAgICAgICBvblNlbGVjdFJvdz17b25TZWxlY3RSb3d9XG4gICAgICAgICAgICAgICAgICAgIG9uVG9nZ2xlUm93PXtvblRvZ2dsZVJvd31cbiAgICAgICAgICAgICAgICAgICAgc29ydGluZz17dGFibGVTb3J0aW5nfVxuICAgICAgICAgICAgICAgICAgICBvblNvcnRpbmdDaGFuZ2U9e3NldFRhYmxlU29ydGluZ31cbiAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgKTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiAoXG4gICAgICAgICAgICA8R3JpZFxuICAgICAgICAgICAgICAgIGZvbGRlcnM9e3ZpZXcuZm9sZGVyc31cbiAgICAgICAgICAgICAgICByZWNvcmRzPXt2aWV3LmZpbGVzfVxuICAgICAgICAgICAgICAgIGxvYWRpbmc9e3ZpZXcuaXNMaXN0TG9hZGluZ31cbiAgICAgICAgICAgICAgICBvbkZvbGRlckNsaWNrPXt2aWV3LnNldEZvbGRlcklkfVxuICAgICAgICAgICAgICAgIHNlbGVjdGVkPXt2aWV3LnNlbGVjdGVkfVxuICAgICAgICAgICAgICAgIG11bHRpcGxlPXt2aWV3Lm11bHRpcGxlfVxuICAgICAgICAgICAgICAgIHRvZ2dsZVNlbGVjdGVkPXt2aWV3LnRvZ2dsZVNlbGVjdGVkfVxuICAgICAgICAgICAgICAgIGRlc2VsZWN0QWxsPXt2aWV3LmRlc2VsZWN0QWxsfVxuICAgICAgICAgICAgICAgIG9uQ2hhbmdlPXt2aWV3Lm9uQ2hhbmdlfVxuICAgICAgICAgICAgICAgIG9uQ2xvc2U9e3ZpZXcub25DbG9zZX1cbiAgICAgICAgICAgICAgICBoYXNPblNlbGVjdENhbGxiYWNrPXt2aWV3Lmhhc09uU2VsZWN0Q2FsbGJhY2t9XG4gICAgICAgICAgICAvPlxuICAgICAgICApO1xuICAgIH07XG5cbiAgICBjb25zdCBsb2FkTW9yZU9uU2Nyb2xsID0gdXNlQ2FsbGJhY2soXG4gICAgICAgIGRlYm91bmNlKGFzeW5jICh7IHNjcm9sbEZyYW1lIH06IHsgc2Nyb2xsRnJhbWU6IHBvc2l0aW9uVmFsdWVzIH0pID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GluZ3MgPyB2aWV3LnNldHRpbmdzLnVwbG9hZE1heEZpbGVTaXplICsgXCJiXCIgOiBcIjFUQlwifVxuICAgICAgICAgICAgICAgIG11bHRpcGxlTWF4U2l6ZT17XCIxVEJcIn1cbiAgICAgICAgICAgICAgICBhY2NlcHQ9e3ZpZXcuYWNjZXB0fVxuICAgICAgICAgICAgICAgIG9uU3VjY2Vzcz17ZmlsZXMgPT4ge1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBmaWxlc1RvVXBsb2FkID0gZmlsZXNcbiAgICAgICAgICAgICAgICAgICAgICAgIC5tYXAoZmlsZSA9PiBmaWxlLnNyYy5maWxlKVxuICAgICAgICAgICAgICAgICAgICAgICAgLmZpbHRlcihCb29sZWFuKSBhcyBGaWxlW107XG4gICAgICAgICAgICAgICAgICAgIHVwbG9hZEZpbGVzKGZpbGVzVG9VcGxvYWQpO1xuICAgICAgICAgICAgICAgIH19XG4gICAgICAgICAgICAgICAgb25FcnJvcj17ZXJyb3JzID0+IHtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgbWVzc2FnZSA9IG91dHB1dEZpbGVTZWxlY3Rpb25FcnJvcihlcnJvcnMpO1xuICAgICAgICAgICAgICAgICAgICBzaG93U25hY2tiYXIobWVzc2FnZSk7XG4gICAgICAgICAgICAgICAgfX1cbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICB7KHsgZ2V0RHJvcFpvbmVQcm9wcywgYnJvd3NlRmlsZXMgfSkgPT4gKFxuICAgICAgICAgICAgICAgICAgICA8T3ZlcmxheUxheW91dFxuICAgICAgICAgICAgICAgICAgICAgICAgb25FeGl0ZWQ9e3ZpZXcub25DbG9zZX1cbiAgICAgICAgICAgICAgICAgICAgICAgIGJhckxlZnQ9ezxUaXRsZSB0aXRsZT17dmlldy5saXN0VGl0bGV9IC8+fVxuICAgICAgICAgICAgICAgICAgICAgICAgYmFyTWlkZGxlPXs8U2VhcmNoV2lkZ2V0IC8+fVxuICAgICAgICAgICAgICAgICAgICAgICAgYmFyUmlnaHQ9e1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDw+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHt2aWV3Lmhhc09uU2VsZWN0Q2FsbGJhY2sgJiYgdmlldy5zZWxlY3RlZC5sZW5ndGggPiAwID8gKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPEJ1dHRvblByaW1hcnlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmbGF0PXt0cnVlfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNtYWxsPXt0cnVlfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uQ2xpY2s9eygpID0+IHZpZXcub25DaGFuZ2Uodmlldy5zZWxlY3RlZCl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge3RgU2VsZWN0YH0ge3ZpZXcubXVsdGlwbGUgJiYgYCgke3ZpZXcuc2VsZWN0ZWQubGVuZ3RofSlgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9CdXR0b25QcmltYXJ5PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApIDogKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVuZGVyVXBsb2FkRmlsZUFjdGlvbih7IGJyb3dzZUZpbGVzIH0gYXMgQnJvd3NlRmlsZXNIYW5kbGVyKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8QnV0dG9uU2Vjb25kYXJ5XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhLXRlc3RpZD17XCJmaWxlLW1hbmFnZXIuY3JlYXRlLWZvbGRlci1idXR0b25cIn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uQ2xpY2s9e29uQ3JlYXRlRm9sZGVyfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc21hbGw9e3RydWV9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdHlsZT17eyBtYXJnaW46IFwiMCA4cHhcIiB9fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8QnV0dG9uSWNvbiBpY29uPXs8QWRkSWNvbiAvPn0gLz5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHt0YE5ldyBGb2xkZXJgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L0J1dHRvblNlY29uZGFyeT5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPExheW91dFN3aXRjaCAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvPlxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgICAgICA8PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxGaWxlRGV0YWlsc1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsb2FkaW5nPXtkcmF3ZXJMb2FkaW5nfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmaWxlPXtjdXJyZW50RmlsZX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb3Blbj17Qm9vbGVhbih2aWV3LnNob3dpbmdGaWxlRGV0YWlscyl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uQ2xvc2U9e3ZpZXcuaGlkZUZpbGVEZXRhaWxzfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvblNhdmU9e3VwZGF0ZUZpbGV9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8TGVmdFNpZGViYXJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY3VycmVudEZvbGRlcj17dmlldy5mb2xkZXJJZH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb25Gb2xkZXJDbGljaz17dmlldy5zZXRGb2xkZXJJZH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHticm93c2VyLmZpbHRlckJ5VGFncyA/IChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxUYWdzTGlzdFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxvYWRpbmc9e3ZpZXcudGFncy5sb2FkaW5nfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFjdGl2ZVRhZ3M9e3ZpZXcudGFncy5hY3RpdmVUYWdzfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRhZ3M9e3ZpZXcudGFncy5hbGxUYWdzfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uQWN0aXZhdGVkVGFnc0NoYW5nZT17dmlldy50YWdzLnNldEFjdGl2ZVRhZ3N9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApIDogbnVsbH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L0xlZnRTaWRlYmFyPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxGaWxlTGlzdFdyYXBwZXJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgey4uLmdldERyb3Bab25lUHJvcHMoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb25EcmFnT3ZlcjogKCkgPT4gdmlldy5zZXREcmFnZ2luZyh0cnVlKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uRHJhZ0xlYXZlOiAoKSA9PiB2aWV3LnNldERyYWdnaW5nKGZhbHNlKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uRHJvcDogKCkgPT4gdmlldy5zZXREcmFnZ2luZyhmYWxzZSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGEtdGVzdGlkPXtcImZtLWxpc3Qtd3JhcHBlclwifVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge3ZpZXcuZHJhZ2dpbmcgJiYgPERyb3BGaWxlc0hlcmUgLz59XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxCdWxrQWN0aW9ucyAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8RmlsdGVycyAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8U2Nyb2xsYmFyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvblNjcm9sbEZyYW1lPXtzY3JvbGxGcmFtZSA9PiBsb2FkTW9yZU9uU2Nyb2xsKHsgc2Nyb2xsRnJhbWUgfSl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtyZW5kZXJMaXN0KGJyb3dzZUZpbGVzKX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9TY3JvbGxiYXI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxCb3R0b21JbmZvQmFyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhY2NlcHQ9e3ZpZXcuYWNjZXB0fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGlzdGluZz17dmlldy5pc0xpc3RMb2FkaW5nTW9yZX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPFVwbG9hZFN0YXR1c1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbnVtYmVyT2ZGaWxlcz17ZmlsZXNCZWluZ1VwbG9hZGVkfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJvZ3Jlc3M9e3Byb2dyZXNzfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvRmlsZUxpc3RXcmFwcGVyPlxuICAgICAgICAgICAgICAgICAgICAgICAgPC8+XG4gICAgICAgICAgICAgICAgICAgIDwvT3ZlcmxheUxheW91dD5cbiAgICAgICAgICAgICAgICApfVxuICAgICAgICAgICAgPC9GaWxlcz5cbiAgICAgICAgPC8+XG4gICAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IG9ic2VydmVyKEZpbGVNYW5hZ2VyVmlldyk7XG4iXX0= */",
|
|
60
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
61
|
-
});
|
|
62
|
-
var createSort = function createSort(sorting) {
|
|
1
|
+
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
|
2
|
+
import Files from "react-butterfiles";
|
|
3
|
+
import debounce from "lodash/debounce.js";
|
|
4
|
+
// @ts-expect-error
|
|
5
|
+
import { useHotkeys } from "react-hotkeyz";
|
|
6
|
+
import { observer } from "mobx-react-lite";
|
|
7
|
+
import { Scrollbar } from "@webiny/admin-ui";
|
|
8
|
+
import { i18n } from "@webiny/app/i18n/index.js";
|
|
9
|
+
import { LeftPanel, OverlayLayout, RightPanel, SplitView, useSnackbar } from "@webiny/app-admin";
|
|
10
|
+
import { useFileManagerView } from "../FileManagerViewProvider/index.js";
|
|
11
|
+
import { outputFileSelectionError } from "./outputFileSelectionError.js";
|
|
12
|
+
import { LeftSidebar } from "./LeftSidebar.js";
|
|
13
|
+
import { useFileManagerViewConfig } from "../../../index.js";
|
|
14
|
+
import { BatchFileUploader } from "../../../BatchFileUploader.js";
|
|
15
|
+
import { BottomInfoBar } from "../../../components/BottomInfoBar/index.js";
|
|
16
|
+
import { BulkActions } from "../../../components/BulkActions/index.js";
|
|
17
|
+
import { FileDropPlaceholder } from "../../../components/FileDropPlaceholder/index.js";
|
|
18
|
+
import { Empty } from "../../../components/Empty/index.js";
|
|
19
|
+
import { FileDetails } from "../../../components/FileDetails/index.js";
|
|
20
|
+
import { Filters } from "../../../components/Filters/index.js";
|
|
21
|
+
import { Grid } from "../../../components/Grid/index.js";
|
|
22
|
+
import { Header } from "../../../components/Header/index.js";
|
|
23
|
+
import { Table } from "../../../components/Table/index.js";
|
|
24
|
+
import { TagsList } from "../../../components/TagsList/index.js";
|
|
25
|
+
import { UploadStatus } from "../../../components/UploadStatus/index.js";
|
|
26
|
+
const t = i18n.ns("app-admin/file-manager/file-manager-view");
|
|
27
|
+
const createSort = sorting => {
|
|
63
28
|
if (!sorting?.length) {
|
|
64
29
|
return undefined;
|
|
65
30
|
}
|
|
66
|
-
return sorting.reduce(
|
|
67
|
-
|
|
31
|
+
return sorting.reduce((items, item) => {
|
|
32
|
+
const sort = `${item.id}_${item.desc ? "DESC" : "ASC"}`;
|
|
68
33
|
if (items.includes(sort)) {
|
|
69
34
|
return items;
|
|
70
35
|
}
|
|
@@ -72,35 +37,23 @@ var createSort = function createSort(sorting) {
|
|
|
72
37
|
return items;
|
|
73
38
|
}, []);
|
|
74
39
|
};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
showSnackbar
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
return new _BatchFileUploader.BatchFileUploader(view.uploadFile);
|
|
90
|
-
}, [view.folderId]);
|
|
91
|
-
var _useState3 = (0, _react.useState)([]),
|
|
92
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
93
|
-
tableSorting = _useState4[0],
|
|
94
|
-
setTableSorting = _useState4[1];
|
|
95
|
-
var _useState5 = (0, _react.useState)(),
|
|
96
|
-
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
97
|
-
currentFile = _useState6[0],
|
|
98
|
-
setCurrentFile = _useState6[1];
|
|
99
|
-
(0, _react.useEffect)(function () {
|
|
100
|
-
var fetchFileDetails = async function fetchFileDetails() {
|
|
40
|
+
const FileManagerView = () => {
|
|
41
|
+
const view = useFileManagerView();
|
|
42
|
+
const {
|
|
43
|
+
browser
|
|
44
|
+
} = useFileManagerViewConfig();
|
|
45
|
+
const {
|
|
46
|
+
showSnackbar
|
|
47
|
+
} = useSnackbar();
|
|
48
|
+
const [drawerLoading, setDrawerLoading] = useState(null);
|
|
49
|
+
const uploader = useMemo(() => new BatchFileUploader(view.uploadFile), [view.folderId]);
|
|
50
|
+
const [tableSorting, setTableSorting] = useState([]);
|
|
51
|
+
const [currentFile, setCurrentFile] = useState();
|
|
52
|
+
useEffect(() => {
|
|
53
|
+
const fetchFileDetails = async () => {
|
|
101
54
|
if (view.showingFileDetails) {
|
|
102
55
|
setDrawerLoading("Loading file details...");
|
|
103
|
-
|
|
56
|
+
const file = await view.getFile(view.showingFileDetails);
|
|
104
57
|
setCurrentFile(file);
|
|
105
58
|
} else {
|
|
106
59
|
setCurrentFile(undefined);
|
|
@@ -111,120 +64,109 @@ var FileManagerView = function FileManagerView() {
|
|
|
111
64
|
// call the function
|
|
112
65
|
fetchFileDetails();
|
|
113
66
|
}, [view.showingFileDetails]);
|
|
114
|
-
|
|
67
|
+
useEffect(() => {
|
|
115
68
|
if (!tableSorting?.length) {
|
|
116
69
|
return;
|
|
117
70
|
}
|
|
118
|
-
|
|
71
|
+
const sort = createSort(tableSorting);
|
|
119
72
|
if (!sort) {
|
|
120
73
|
return;
|
|
121
74
|
}
|
|
122
75
|
view.setListSort(sort);
|
|
123
76
|
}, [tableSorting]);
|
|
124
|
-
|
|
77
|
+
const getFileUploadErrorMessage = useCallback(e => {
|
|
125
78
|
if (typeof e === "string") {
|
|
126
|
-
|
|
79
|
+
const match = e.match(/Message>(.*?)<\/Message/);
|
|
127
80
|
if (match) {
|
|
128
|
-
|
|
129
|
-
message = _match[1];
|
|
81
|
+
const [, message] = match;
|
|
130
82
|
return message;
|
|
131
83
|
}
|
|
132
84
|
return e;
|
|
133
85
|
}
|
|
134
86
|
return e.message;
|
|
135
87
|
}, []);
|
|
136
|
-
|
|
137
|
-
zIndex:
|
|
88
|
+
useHotkeys({
|
|
89
|
+
zIndex: 20,
|
|
138
90
|
keys: {
|
|
139
|
-
esc:
|
|
91
|
+
esc: () => {
|
|
92
|
+
if (view.overlay) {
|
|
93
|
+
view.onClose();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
140
96
|
}
|
|
141
97
|
});
|
|
142
|
-
|
|
98
|
+
const uploadFiles = async files => {
|
|
143
99
|
uploader.addFiles(files);
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
100
|
+
view.setIsUploadProgressIndicatorVisible(true);
|
|
101
|
+
uploader.onUploadFinished(({
|
|
102
|
+
uploaded,
|
|
103
|
+
errors
|
|
104
|
+
}) => {
|
|
147
105
|
uploader.reset();
|
|
106
|
+
view.setIsUploadProgressIndicatorVisible(true);
|
|
148
107
|
if (errors.length > 0) {
|
|
149
|
-
showSnackbar(
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
}))));
|
|
108
|
+
showSnackbar(/*#__PURE__*/React.createElement(React.Fragment, null, t`One or more files were not uploaded successfully:`, /*#__PURE__*/React.createElement("ol", null, errors.map(({
|
|
109
|
+
file,
|
|
110
|
+
e
|
|
111
|
+
}) => /*#__PURE__*/React.createElement("li", {
|
|
112
|
+
key: file.name
|
|
113
|
+
}, /*#__PURE__*/React.createElement("strong", null, file.name), ": ", getFileUploadErrorMessage(e))))));
|
|
156
114
|
return;
|
|
157
115
|
}
|
|
158
|
-
showSnackbar(t
|
|
116
|
+
showSnackbar(t`File upload complete.`, {
|
|
117
|
+
timeout: 3000
|
|
118
|
+
});
|
|
159
119
|
view.onUploadCompletion(uploaded);
|
|
160
120
|
});
|
|
161
121
|
};
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
return null;
|
|
166
|
-
}
|
|
167
|
-
return /*#__PURE__*/_react.default.createElement(_Button.ButtonPrimary, {
|
|
168
|
-
flat: true,
|
|
169
|
-
small: true,
|
|
170
|
-
onClick: browseFiles
|
|
171
|
-
}, /*#__PURE__*/_react.default.createElement(_Button.ButtonIcon, {
|
|
172
|
-
icon: /*#__PURE__*/_react.default.createElement(_cloud_upload.ReactComponent, null)
|
|
173
|
-
}), t(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["Upload..."]))));
|
|
174
|
-
}, [fileManager.canCreate]);
|
|
175
|
-
var filesBeingUploaded = uploader.getJobs().length;
|
|
176
|
-
var progress = uploader.progress;
|
|
177
|
-
var renderList = function renderList(browseFiles) {
|
|
122
|
+
const filesBeingUploaded = uploader.getJobs().length;
|
|
123
|
+
const progress = uploader.progress;
|
|
124
|
+
const renderList = browseFiles => {
|
|
178
125
|
if (!view.isListLoading && view.isSearch && view.files.length === 0) {
|
|
179
|
-
return /*#__PURE__*/
|
|
126
|
+
return /*#__PURE__*/React.createElement(Empty, {
|
|
180
127
|
isSearchResult: true,
|
|
181
128
|
browseFiles: browseFiles
|
|
182
129
|
});
|
|
183
130
|
}
|
|
184
131
|
if (!view.isListLoading && view.files.length === 0 && view.folders.length === 0) {
|
|
185
|
-
return /*#__PURE__*/
|
|
132
|
+
return /*#__PURE__*/React.createElement(Empty, {
|
|
186
133
|
isSearchResult: false,
|
|
187
134
|
browseFiles: browseFiles
|
|
188
135
|
});
|
|
189
136
|
}
|
|
190
137
|
if (view.listTable) {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}).map(function (row) {
|
|
195
|
-
return (0, _omit.default)(row, ["$type", "$selectable"]);
|
|
196
|
-
});
|
|
197
|
-
};
|
|
198
|
-
var onSelectRow = view.hasOnSelectCallback ? function (rows) {
|
|
199
|
-
var files = getSelectableRow(rows);
|
|
138
|
+
const getSelectableRow = rows => rows.filter(row => row.$type === "RECORD").map(row => row.data);
|
|
139
|
+
const onSelectRow = view.hasOnSelectCallback ? rows => {
|
|
140
|
+
const files = getSelectableRow(rows);
|
|
200
141
|
if (view.multiple) {
|
|
201
142
|
view.setSelected(files);
|
|
202
143
|
} else {
|
|
203
144
|
view.onChange(files[0]);
|
|
204
145
|
}
|
|
205
|
-
} :
|
|
206
|
-
|
|
146
|
+
} : rows => {
|
|
147
|
+
const files = getSelectableRow(rows);
|
|
207
148
|
view.setSelected(files);
|
|
208
149
|
};
|
|
209
|
-
|
|
210
|
-
|
|
150
|
+
const onToggleRow = view.hasOnSelectCallback ? row => {
|
|
151
|
+
const files = getSelectableRow([row]);
|
|
211
152
|
if (view.multiple) {
|
|
212
153
|
view.toggleSelected(files[0]);
|
|
213
154
|
} else {
|
|
214
155
|
view.onChange(files[0]);
|
|
215
156
|
}
|
|
216
|
-
} :
|
|
217
|
-
|
|
157
|
+
} : row => {
|
|
158
|
+
const files = getSelectableRow([row]);
|
|
218
159
|
view.toggleSelected(files[0]);
|
|
219
160
|
};
|
|
220
|
-
return /*#__PURE__*/
|
|
161
|
+
return /*#__PURE__*/React.createElement(Table, {
|
|
221
162
|
onSelectRow: onSelectRow,
|
|
222
163
|
onToggleRow: onToggleRow,
|
|
223
164
|
sorting: tableSorting,
|
|
224
165
|
onSortingChange: setTableSorting
|
|
225
166
|
});
|
|
226
167
|
}
|
|
227
|
-
return /*#__PURE__*/
|
|
168
|
+
return /*#__PURE__*/React.createElement(Grid, {
|
|
169
|
+
folderActions: browser.folder.actions,
|
|
228
170
|
folders: view.folders,
|
|
229
171
|
records: view.files,
|
|
230
172
|
loading: view.isListLoading,
|
|
@@ -235,112 +177,105 @@ var FileManagerView = function FileManagerView() {
|
|
|
235
177
|
deselectAll: view.deselectAll,
|
|
236
178
|
onChange: view.onChange,
|
|
237
179
|
onClose: view.onClose,
|
|
238
|
-
hasOnSelectCallback: view.hasOnSelectCallback
|
|
180
|
+
hasOnSelectCallback: view.hasOnSelectCallback,
|
|
181
|
+
displaySubFolders: view.displaySubFolders
|
|
239
182
|
});
|
|
240
183
|
};
|
|
241
|
-
|
|
242
|
-
|
|
184
|
+
const loadMoreOnScroll = useCallback(debounce(async ({
|
|
185
|
+
scrollFrame
|
|
186
|
+
}) => {
|
|
243
187
|
if (scrollFrame.top > 0.8) {
|
|
244
188
|
view.loadMoreFiles();
|
|
245
189
|
}
|
|
246
190
|
}, 200), [view.meta, view.loadMoreFiles]);
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
var updateFile = (0, _react.useCallback)(async function (data) {
|
|
253
|
-
var id = data.id,
|
|
254
|
-
fileData = (0, _objectWithoutProperties2.default)(data, _excluded);
|
|
191
|
+
const updateFile = useCallback(async data => {
|
|
192
|
+
const {
|
|
193
|
+
id,
|
|
194
|
+
...fileData
|
|
195
|
+
} = data;
|
|
255
196
|
setDrawerLoading("Saving file changes...");
|
|
256
197
|
await view.updateFile(id, fileData);
|
|
257
198
|
setDrawerLoading(null);
|
|
258
199
|
showSnackbar("File updated successfully!");
|
|
259
200
|
view.hideFileDetails();
|
|
260
201
|
}, [view.updateFile]);
|
|
261
|
-
|
|
202
|
+
const withOverlay = element => {
|
|
203
|
+
if (view.overlay) {
|
|
204
|
+
return /*#__PURE__*/React.createElement(OverlayLayout, {
|
|
205
|
+
variant: "strong",
|
|
206
|
+
onExited: view.onClose
|
|
207
|
+
}, element);
|
|
208
|
+
}
|
|
209
|
+
return element;
|
|
210
|
+
};
|
|
211
|
+
return /*#__PURE__*/React.createElement(Files, {
|
|
262
212
|
multiple: true,
|
|
263
213
|
maxSize: view.settings ? view.settings.uploadMaxFileSize + "b" : "1TB",
|
|
264
214
|
multipleMaxSize: "1TB",
|
|
265
215
|
accept: view.accept,
|
|
266
|
-
onSuccess:
|
|
267
|
-
|
|
268
|
-
return file.src.file;
|
|
269
|
-
}).filter(Boolean);
|
|
216
|
+
onSuccess: files => {
|
|
217
|
+
const filesToUpload = files.map(file => file.src.file).filter(Boolean);
|
|
270
218
|
uploadFiles(filesToUpload);
|
|
271
219
|
},
|
|
272
|
-
onError:
|
|
273
|
-
|
|
220
|
+
onError: errors => {
|
|
221
|
+
const message = outputFileSelectionError(errors);
|
|
274
222
|
showSnackbar(message);
|
|
275
223
|
}
|
|
276
|
-
},
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
})
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
onScrollFrame: function onScrollFrame(scrollFrame) {
|
|
331
|
-
return loadMoreOnScroll({
|
|
332
|
-
scrollFrame: scrollFrame
|
|
333
|
-
});
|
|
334
|
-
}
|
|
335
|
-
}, renderList(browseFiles)), /*#__PURE__*/_react.default.createElement(_BottomInfoBar.BottomInfoBar, {
|
|
336
|
-
accept: view.accept,
|
|
337
|
-
listing: view.isListLoadingMore
|
|
338
|
-
}), /*#__PURE__*/_react.default.createElement(_UploadStatus.UploadStatus, {
|
|
339
|
-
numberOfFiles: filesBeingUploaded,
|
|
340
|
-
progress: progress
|
|
341
|
-
}))));
|
|
342
|
-
}));
|
|
224
|
+
}, ({
|
|
225
|
+
getDropZoneProps,
|
|
226
|
+
browseFiles
|
|
227
|
+
}) => withOverlay(/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FileDetails, {
|
|
228
|
+
loading: drawerLoading,
|
|
229
|
+
file: currentFile,
|
|
230
|
+
open: Boolean(view.showingFileDetails),
|
|
231
|
+
onClose: view.hideFileDetails,
|
|
232
|
+
onSave: updateFile
|
|
233
|
+
}), /*#__PURE__*/React.createElement(SplitView, {
|
|
234
|
+
namespace: "fm/file/list"
|
|
235
|
+
}, /*#__PURE__*/React.createElement(LeftPanel, {
|
|
236
|
+
span: 2
|
|
237
|
+
}, /*#__PURE__*/React.createElement(LeftSidebar, {
|
|
238
|
+
currentFolder: view.folderId,
|
|
239
|
+
onFolderClick: view.setFolderId
|
|
240
|
+
}, browser.filterByTags ? /*#__PURE__*/React.createElement(TagsList, {
|
|
241
|
+
loading: view.tags.loading,
|
|
242
|
+
activeTags: view.tags.activeTags,
|
|
243
|
+
tags: view.tags.allTags,
|
|
244
|
+
onActivatedTagsChange: view.tags.setActiveTags
|
|
245
|
+
}) : null)), /*#__PURE__*/React.createElement(RightPanel, {
|
|
246
|
+
span: 10
|
|
247
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
248
|
+
className: "flex flex-col relative",
|
|
249
|
+
style: {
|
|
250
|
+
height: "calc(100vh - 45px"
|
|
251
|
+
}
|
|
252
|
+
}, /*#__PURE__*/React.createElement(Header, {
|
|
253
|
+
browseFiles: browseFiles
|
|
254
|
+
}), /*#__PURE__*/React.createElement("div", Object.assign({
|
|
255
|
+
className: "flex-1"
|
|
256
|
+
}, getDropZoneProps({
|
|
257
|
+
onDragOver: () => view.setDragging(true),
|
|
258
|
+
onDragLeave: () => view.setDragging(false),
|
|
259
|
+
onDrop: () => view.setDragging(false)
|
|
260
|
+
}), {
|
|
261
|
+
"data-testid": "fm-list-wrapper"
|
|
262
|
+
}), /*#__PURE__*/React.createElement(BulkActions, null), /*#__PURE__*/React.createElement(Filters, null), /*#__PURE__*/React.createElement(Scrollbar, {
|
|
263
|
+
onScrollFrame: scrollFrame => loadMoreOnScroll({
|
|
264
|
+
scrollFrame
|
|
265
|
+
})
|
|
266
|
+
}, renderList(browseFiles)), view.dragging && /*#__PURE__*/React.createElement(FileDropPlaceholder, null), /*#__PURE__*/React.createElement(UploadStatus, {
|
|
267
|
+
numberOfFiles: filesBeingUploaded,
|
|
268
|
+
progress: progress,
|
|
269
|
+
isVisible: view.isUploadProgressIndicatorVisible,
|
|
270
|
+
setIsVisible: view.setIsUploadProgressIndicatorVisible
|
|
271
|
+
})), /*#__PURE__*/React.createElement(BottomInfoBar, {
|
|
272
|
+
accept: view.accept,
|
|
273
|
+
listing: view.isListLoadingMore,
|
|
274
|
+
loading: view.isListLoading,
|
|
275
|
+
totalCount: view.meta?.totalCount ?? 0,
|
|
276
|
+
currentCount: view.files.length
|
|
277
|
+
})))))));
|
|
343
278
|
};
|
|
344
|
-
|
|
279
|
+
export default observer(FileManagerView);
|
|
345
280
|
|
|
346
281
|
//# sourceMappingURL=FileManagerView.js.map
|