@webiny/app-file-manager 5.40.0-beta.2 → 5.40.0-beta.3
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.js +4 -7
- package/BatchFileUploader.js.map +1 -1
- package/app.d.ts +2 -2
- package/app.js +2 -4
- package/app.js.map +1 -1
- package/components/BottomInfoBar/BottomInfoBar.d.ts +2 -2
- package/components/BottomInfoBar/BottomInfoBar.js +1 -2
- package/components/BottomInfoBar/BottomInfoBar.js.map +1 -1
- package/components/BottomInfoBar/ListStatus.d.ts +2 -2
- package/components/BottomInfoBar/ListStatus.js +1 -2
- package/components/BottomInfoBar/ListStatus.js.map +1 -1
- package/components/BottomInfoBar/SupportedFileTypes.d.ts +2 -2
- package/components/BottomInfoBar/SupportedFileTypes.js +1 -2
- package/components/BottomInfoBar/SupportedFileTypes.js.map +1 -1
- package/components/BottomInfoBar/index.js.map +1 -1
- package/components/BottomInfoBar/styled.d.ts +5 -5
- package/components/BottomInfoBar/styled.js +71 -25
- package/components/BottomInfoBar/styled.js.map +1 -1
- package/components/BulkActions/ActionDelete.d.ts +2 -2
- package/components/BulkActions/ActionDelete.js +1 -2
- package/components/BulkActions/ActionDelete.js.map +1 -1
- package/components/BulkActions/ActionEdit/ActionEdit.d.ts +2 -2
- package/components/BulkActions/ActionEdit/ActionEdit.js +1 -2
- package/components/BulkActions/ActionEdit/ActionEdit.js.map +1 -1
- package/components/BulkActions/ActionEdit/ActionEdit.styled.d.ts +3 -5
- package/components/BulkActions/ActionEdit/ActionEdit.styled.js +63 -25
- package/components/BulkActions/ActionEdit/ActionEdit.styled.js.map +1 -1
- package/components/BulkActions/ActionEdit/ActionEdit.types.js.map +1 -1
- package/components/BulkActions/ActionEdit/ActionEditPresenter.js +2 -4
- package/components/BulkActions/ActionEdit/ActionEditPresenter.js.map +1 -1
- package/components/BulkActions/ActionEdit/ActionEditPresenter.test.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/AddOperation.d.ts +2 -2
- package/components/BulkActions/ActionEdit/BatchEditorDialog/AddOperation.js +1 -2
- 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 +1 -2
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.d.ts +2 -2
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.js +1 -2
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.js +2 -4
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.test.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.d.ts +2 -2
- package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.js +1 -2
- package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.d.ts +2 -2
- package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.js +1 -2
- package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/RemoveOperation.d.ts +2 -2
- package/components/BulkActions/ActionEdit/BatchEditorDialog/RemoveOperation.js +1 -2
- package/components/BulkActions/ActionEdit/BatchEditorDialog/RemoveOperation.js.map +1 -1
- package/components/BulkActions/ActionEdit/BatchEditorDialog/index.js.map +1 -1
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.js +2 -4
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.js.map +1 -1
- package/components/BulkActions/ActionEdit/GraphQLInputMapper.test.js.map +1 -1
- package/components/BulkActions/ActionEdit/domain/Batch.js +4 -8
- package/components/BulkActions/ActionEdit/domain/Batch.js.map +1 -1
- package/components/BulkActions/ActionEdit/domain/BatchMapper.js +2 -4
- package/components/BulkActions/ActionEdit/domain/BatchMapper.js.map +1 -1
- package/components/BulkActions/ActionEdit/domain/Field.js +5 -10
- package/components/BulkActions/ActionEdit/domain/Field.js.map +1 -1
- package/components/BulkActions/ActionEdit/domain/FieldMapper.js +4 -8
- package/components/BulkActions/ActionEdit/domain/FieldMapper.js.map +1 -1
- package/components/BulkActions/ActionEdit/domain/index.js.map +1 -1
- package/components/BulkActions/ActionEdit/index.js.map +1 -1
- package/components/BulkActions/ActionEdit/useActionEditWorker.js.map +1 -1
- package/components/BulkActions/ActionMove.d.ts +2 -2
- package/components/BulkActions/ActionMove.js +1 -2
- package/components/BulkActions/ActionMove.js.map +1 -1
- package/components/BulkActions/BulkActions.d.ts +2 -2
- package/components/BulkActions/BulkActions.js +2 -4
- package/components/BulkActions/BulkActions.js.map +1 -1
- package/components/BulkActions/BulkActions.styled.d.ts +3 -3
- package/components/BulkActions/BulkActions.styled.js +35 -15
- package/components/BulkActions/BulkActions.styled.js.map +1 -1
- package/components/BulkActions/index.js.map +1 -1
- package/components/DropFilesHere/DropFilesHere.d.ts +1 -1
- package/components/DropFilesHere/DropFilesHere.js +1 -2
- package/components/DropFilesHere/DropFilesHere.js.map +1 -1
- package/components/DropFilesHere/index.js.map +1 -1
- package/components/DropFilesHere/styled.d.ts +3 -5
- package/components/DropFilesHere/styled.js +42 -21
- package/components/DropFilesHere/styled.js.map +1 -1
- package/components/EditFileUsingUrl/EditFileUsingUrl.d.ts +2 -3
- package/components/EditFileUsingUrl/EditFileUsingUrl.js +11 -16
- package/components/EditFileUsingUrl/EditFileUsingUrl.js.map +1 -1
- package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.js +3 -6
- package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.js.map +1 -1
- package/components/EditFileUsingUrl/EditFileUsingUrlRepository.js +2 -4
- package/components/EditFileUsingUrl/EditFileUsingUrlRepository.js.map +1 -1
- package/components/EditFileUsingUrl/GetFileByUrl.js +2 -4
- package/components/EditFileUsingUrl/GetFileByUrl.js.map +1 -1
- package/components/EditFileUsingUrl/Loading.js +3 -6
- package/components/EditFileUsingUrl/Loading.js.map +1 -1
- package/components/EditFileUsingUrl/UpdateFile.js +2 -4
- package/components/EditFileUsingUrl/UpdateFile.js.map +1 -1
- package/components/EditFileUsingUrl/getFileByUrl.graphql.js +1 -2
- package/components/EditFileUsingUrl/getFileByUrl.graphql.js.map +1 -1
- package/components/EditFileUsingUrl/index.js.map +1 -1
- package/components/Empty/Empty.d.ts +2 -2
- package/components/Empty/Empty.js +1 -2
- package/components/Empty/Empty.js.map +1 -1
- package/components/Empty/index.js.map +1 -1
- package/components/FileDetails/FileDetails.d.ts +3 -4
- package/components/FileDetails/FileDetails.js +31 -29
- package/components/FileDetails/FileDetails.js.map +1 -1
- package/components/FileDetails/FileDetailsProvider.d.ts +4 -1
- package/components/FileDetails/FileDetailsProvider.js +5 -5
- package/components/FileDetails/FileDetailsProvider.js.map +1 -1
- package/components/FileDetails/components/ActionButton.d.ts +9 -0
- package/components/FileDetails/components/ActionButton.js +30 -0
- package/components/FileDetails/components/ActionButton.js.map +1 -0
- package/components/FileDetails/components/Actions.d.ts +2 -15
- package/components/FileDetails/components/Actions.js +26 -25
- package/components/FileDetails/components/Actions.js.map +1 -1
- package/components/FileDetails/components/BaseFields.d.ts +2 -2
- package/components/FileDetails/components/BaseFields.js +1 -2
- package/components/FileDetails/components/BaseFields.js.map +1 -1
- package/components/FileDetails/components/Content.d.ts +2 -2
- package/components/FileDetails/components/Content.js +22 -10
- package/components/FileDetails/components/Content.js.map +1 -1
- package/components/FileDetails/components/CreatedOn.d.ts +2 -2
- package/components/FileDetails/components/CreatedOn.js +30 -10
- package/components/FileDetails/components/CreatedOn.js.map +1 -1
- package/components/FileDetails/components/Extensions.d.ts +2 -2
- package/components/FileDetails/components/Extensions.js +16 -6
- package/components/FileDetails/components/Extensions.js.map +1 -1
- package/components/FileDetails/components/Flex.d.ts +2 -2
- package/components/FileDetails/components/Flex.js +31 -12
- package/components/FileDetails/components/Flex.js.map +1 -1
- package/components/FileDetails/components/Footer.d.ts +2 -2
- package/components/FileDetails/components/Footer.js +16 -6
- package/components/FileDetails/components/Footer.js.map +1 -1
- package/components/FileDetails/components/Header.d.ts +2 -2
- package/components/FileDetails/components/Header.js +16 -6
- package/components/FileDetails/components/Header.js.map +1 -1
- package/components/FileDetails/components/Preview.d.ts +2 -2
- package/components/FileDetails/components/Preview.js +16 -6
- package/components/FileDetails/components/Preview.js.map +1 -1
- package/components/FileDetails/components/PreviewMeta.d.ts +2 -2
- package/components/FileDetails/components/PreviewMeta.js +16 -6
- package/components/FileDetails/components/PreviewMeta.js.map +1 -1
- package/components/FileDetails/components/Thumbnail.d.ts +2 -5
- package/components/FileDetails/components/Thumbnail.js +7 -14
- package/components/FileDetails/components/Thumbnail.js.map +1 -1
- package/components/FileDetails/components/TypeAndSize.d.ts +2 -2
- package/components/FileDetails/components/TypeAndSize.js +31 -11
- package/components/FileDetails/components/TypeAndSize.js.map +1 -1
- package/components/FileDetails/index.js.map +1 -1
- package/components/Grid/ActionButton.d.ts +8 -0
- package/components/Grid/ActionButton.js +25 -0
- package/components/Grid/ActionButton.js.map +1 -0
- package/components/Grid/File.d.ts +1 -2
- package/components/Grid/File.js +10 -26
- package/components/Grid/File.js.map +1 -1
- package/components/Grid/Grid.d.ts +2 -3
- package/components/Grid/Grid.js +2 -5
- package/components/Grid/Grid.js.map +1 -1
- package/components/Grid/Thumbnail.d.ts +2 -0
- package/components/Grid/Thumbnail.js +21 -0
- package/components/Grid/Thumbnail.js.map +1 -0
- package/components/Grid/index.js.map +1 -1
- package/components/Grid/styled.d.ts +10 -10
- package/components/Grid/styled.js +125 -50
- package/components/Grid/styled.js.map +1 -1
- package/components/LayoutSwitch/LayoutSwitch.d.ts +2 -2
- package/components/LayoutSwitch/LayoutSwitch.js +1 -2
- package/components/LayoutSwitch/LayoutSwitch.js.map +1 -1
- package/components/LayoutSwitch/index.js.map +1 -1
- package/components/NoPermission/NoPermission.d.ts +2 -2
- package/components/NoPermission/NoPermission.js +1 -2
- package/components/NoPermission/NoPermission.js.map +1 -1
- package/components/NoPermission/index.js.map +1 -1
- package/components/NoPermission/styled.d.ts +3 -5
- package/components/NoPermission/styled.js +85 -30
- package/components/NoPermission/styled.js.map +1 -1
- package/components/NoResults/NoResults.d.ts +2 -2
- package/components/NoResults/NoResults.js +1 -2
- package/components/NoResults/NoResults.js.map +1 -1
- package/components/NoResults/index.js.map +1 -1
- package/components/NoResults/styled.d.ts +1 -1
- package/components/NoResults/styled.js +15 -5
- package/components/NoResults/styled.js.map +1 -1
- package/components/Table/Actions/CopyFile.d.ts +2 -2
- package/components/Table/Actions/CopyFile.js +1 -2
- package/components/Table/Actions/CopyFile.js.map +1 -1
- package/components/Table/Actions/DeleteFile.d.ts +2 -2
- package/components/Table/Actions/DeleteFile.js +1 -2
- package/components/Table/Actions/DeleteFile.js.map +1 -1
- package/components/Table/Actions/EditFile.d.ts +2 -2
- package/components/Table/Actions/EditFile.js +1 -2
- package/components/Table/Actions/EditFile.js.map +1 -1
- package/components/Table/Actions/MoveFile.d.ts +2 -2
- package/components/Table/Actions/MoveFile.js +1 -2
- package/components/Table/Actions/MoveFile.js.map +1 -1
- package/components/Table/Actions/index.js.map +1 -1
- package/components/Table/Cells/CellActions.d.ts +2 -2
- package/components/Table/Cells/CellActions.js +1 -2
- package/components/Table/Cells/CellActions.js.map +1 -1
- package/components/Table/Cells/CellAuthor.d.ts +2 -2
- package/components/Table/Cells/CellAuthor.js +1 -2
- package/components/Table/Cells/CellAuthor.js.map +1 -1
- package/components/Table/Cells/CellCreated.d.ts +2 -2
- package/components/Table/Cells/CellCreated.js +1 -2
- package/components/Table/Cells/CellCreated.js.map +1 -1
- package/components/Table/Cells/CellModified.d.ts +2 -2
- package/components/Table/Cells/CellModified.js +1 -2
- package/components/Table/Cells/CellModified.js.map +1 -1
- package/components/Table/Cells/CellName.d.ts +4 -4
- package/components/Table/Cells/CellName.js +3 -6
- package/components/Table/Cells/CellName.js.map +1 -1
- package/components/Table/Cells/CellSize.d.ts +2 -2
- package/components/Table/Cells/CellSize.js +1 -2
- package/components/Table/Cells/CellSize.js.map +1 -1
- package/components/Table/Cells/CellType.d.ts +2 -2
- package/components/Table/Cells/CellType.js +1 -2
- package/components/Table/Cells/CellType.js.map +1 -1
- package/components/Table/Cells/Cells.styled.d.ts +2 -2
- package/components/Table/Cells/Cells.styled.js +43 -15
- package/components/Table/Cells/Cells.styled.js.map +1 -1
- package/components/Table/Cells/index.js.map +1 -1
- package/components/Table/Table.js +1 -2
- package/components/Table/Table.js.map +1 -1
- package/components/Table/index.js.map +1 -1
- package/components/Title/Title.d.ts +2 -2
- package/components/Title/Title.js +1 -2
- package/components/Title/Title.js.map +1 -1
- package/components/Title/index.js.map +1 -1
- package/components/Title/styled.js +15 -5
- package/components/Title/styled.js.map +1 -1
- package/components/UploadStatus/UploadStatus.d.ts +2 -2
- package/components/UploadStatus/UploadStatus.js +1 -2
- package/components/UploadStatus/UploadStatus.js.map +1 -1
- package/components/UploadStatus/index.js.map +1 -1
- package/components/UploadStatus/styled.d.ts +9 -9
- package/components/UploadStatus/styled.js +114 -46
- package/components/UploadStatus/styled.js.map +1 -1
- package/components/fields/AccessControl.d.ts +2 -2
- package/components/fields/AccessControl.js +1 -2
- package/components/fields/AccessControl.js.map +1 -1
- package/components/fields/Aliases.d.ts +2 -2
- package/components/fields/Aliases.js +55 -28
- package/components/fields/Aliases.js.map +1 -1
- package/components/fields/Name.d.ts +2 -2
- package/components/fields/Name.js +1 -2
- package/components/fields/Name.js.map +1 -1
- package/components/fields/Tags.d.ts +2 -2
- package/components/fields/Tags.js +1 -2
- package/components/fields/Tags.js.map +1 -1
- package/components/fields/index.js.map +1 -1
- package/components/fields/useAccessControlField.js +1 -2
- package/components/fields/useAccessControlField.js.map +1 -1
- package/components/fields/useFileOrUndefined.js.map +1 -1
- package/constants.js +3 -6
- package/constants.js.map +1 -1
- package/contexts/FileProvider.d.ts +1 -1
- package/contexts/FileProvider.js +3 -6
- package/contexts/FileProvider.js.map +1 -1
- package/hooks/useCopyFile.js +1 -2
- package/hooks/useCopyFile.js.map +1 -1
- package/hooks/useDeleteFile.js +16 -6
- package/hooks/useDeleteFile.js.map +1 -1
- package/hooks/useFile.js +1 -2
- package/hooks/useFile.js.map +1 -1
- package/hooks/useFileDetails.js +1 -2
- package/hooks/useFileDetails.js.map +1 -1
- package/hooks/useFileModel.js.map +1 -1
- package/hooks/useMoveFileToFolder.js.map +1 -1
- package/index.d.ts +0 -1
- package/index.js +0 -12
- package/index.js.map +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.d.ts +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.js +2 -4
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.js.map +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.d.ts +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.js +2 -4
- package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.js.map +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.js +2 -4
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.js.map +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.js +1 -2
- package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.js.map +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/index.js.map +1 -1
- package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.js.map +1 -1
- package/modules/FileManagerApiProvider/graphql.js +8 -16
- package/modules/FileManagerApiProvider/graphql.js.map +1 -1
- package/modules/FileManagerApiProvider/index.d.ts +2 -2
- package/modules/FileManagerApiProvider/index.js +1 -2
- package/modules/FileManagerApiProvider/index.js.map +1 -1
- package/modules/FileManagerRenderer/FileActions/FileDetails/CopyUrl.d.ts +2 -0
- package/{components/FileDetails/components/actions → modules/FileManagerRenderer/FileActions/FileDetails}/CopyUrl.js +8 -12
- package/modules/FileManagerRenderer/FileActions/FileDetails/CopyUrl.js.map +1 -0
- package/modules/FileManagerRenderer/FileActions/FileDetails/DeleteImage.d.ts +2 -0
- package/{components/FileDetails/components/actions → modules/FileManagerRenderer/FileActions/FileDetails}/DeleteImage.js +7 -11
- package/modules/FileManagerRenderer/FileActions/FileDetails/DeleteImage.js.map +1 -0
- package/modules/FileManagerRenderer/FileActions/FileDetails/Download.d.ts +2 -0
- package/{components/FileDetails/components/actions → modules/FileManagerRenderer/FileActions/FileDetails}/Download.js +11 -12
- package/modules/FileManagerRenderer/FileActions/FileDetails/Download.js.map +1 -0
- package/modules/FileManagerRenderer/FileActions/FileDetails/EditImage.d.ts +2 -0
- package/modules/{FileTypes/fileImage/EditAction.js → FileManagerRenderer/FileActions/FileDetails/EditImage.js} +30 -20
- package/modules/FileManagerRenderer/FileActions/FileDetails/EditImage.js.map +1 -0
- package/modules/FileManagerRenderer/FileActions/FileDetails/MoveToFolder.d.ts +2 -0
- package/{components/FileDetails/components/actions/MoveTo.js → modules/FileManagerRenderer/FileActions/FileDetails/MoveToFolder.js} +9 -13
- package/modules/FileManagerRenderer/FileActions/FileDetails/MoveToFolder.js.map +1 -0
- package/modules/FileManagerRenderer/FileActions/Grid/Download.d.ts +2 -0
- package/modules/FileManagerRenderer/FileActions/Grid/Download.js +27 -0
- package/modules/FileManagerRenderer/FileActions/Grid/Download.js.map +1 -0
- package/modules/FileManagerRenderer/FileActions/Grid/MoveToFolder.d.ts +2 -0
- package/modules/FileManagerRenderer/FileActions/Grid/MoveToFolder.js +22 -0
- package/modules/FileManagerRenderer/FileActions/Grid/MoveToFolder.js.map +1 -0
- package/modules/FileManagerRenderer/FileActions/Grid/Settings.d.ts +2 -0
- package/modules/FileManagerRenderer/FileActions/Grid/Settings.js +26 -0
- package/modules/FileManagerRenderer/FileActions/Grid/Settings.js.map +1 -0
- package/modules/FileManagerRenderer/FileActions/index.d.ts +2 -0
- package/modules/FileManagerRenderer/FileActions/index.js +48 -0
- package/modules/FileManagerRenderer/FileActions/index.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/FileManagerView.d.ts +2 -2
- package/modules/FileManagerRenderer/FileManagerView/FileManagerView.js +15 -16
- package/modules/FileManagerRenderer/FileManagerView/FileManagerView.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.d.ts +70 -25
- package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.js +13 -5
- package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.d.ts +1 -1
- package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.js +30 -10
- package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/NavigateFolderProvider.d.ts +1 -1
- package/modules/FileManagerRenderer/FileManagerView/NavigateFolderProvider.js +1 -2
- package/modules/FileManagerRenderer/FileManagerView/NavigateFolderProvider.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/components/Filters.d.ts +2 -2
- package/modules/FileManagerRenderer/FileManagerView/components/Filters.js +1 -3
- package/modules/FileManagerRenderer/FileManagerView/components/Filters.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/components/SearchWidget.d.ts +2 -2
- package/modules/FileManagerRenderer/FileManagerView/components/SearchWidget.js +44 -14
- package/modules/FileManagerRenderer/FileManagerView/components/SearchWidget.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Empty.d.ts +2 -2
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Empty.js +1 -2
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Empty.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Tag.d.ts +2 -2
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Tag.js +1 -2
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Tag.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/TagsList.d.ts +2 -2
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/TagsList.js +1 -2
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/TagsList.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/index.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/styled.d.ts +4 -4
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/styled.js +48 -27
- package/modules/FileManagerRenderer/FileManagerView/components/TagsList/styled.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.d.ts +2 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.js +2 -4
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkEditField.d.ts +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkEditField.js +1 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkEditField.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.d.ts +3 -3
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.js +1 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.d.ts +4 -3
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.js +1 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FilterByTags.d.ts +2 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FilterByTags.js +1 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FilterByTags.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FiltersToWhere.d.ts +2 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FiltersToWhere.js +1 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FiltersToWhere.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.d.ts +2 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.js +1 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.d.ts +19 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.js +47 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.d.ts +16 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.js +36 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.d.ts +6 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.js +7 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.d.ts +2 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.js +2 -3
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.d.ts +2 -4
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.js +1 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.d.ts +37 -16
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.js +12 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.d.ts +19 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.js +44 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.d.ts +4 -3
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.js +1 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.d.ts +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.js +1 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.js +1 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.d.ts +16 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.js +33 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Width.d.ts +2 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Width.js +1 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Width.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.d.ts +28 -7
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.js +10 -2
- package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.d.ts +4 -0
- package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.js +30 -0
- package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.js.map +1 -0
- package/modules/FileManagerRenderer/FileManagerView/index.d.ts +3 -3
- package/modules/FileManagerRenderer/FileManagerView/index.js +4 -5
- package/modules/FileManagerRenderer/FileManagerView/index.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.js +1 -2
- package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.d.ts +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.js +6 -8
- package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/index.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.js +1 -2
- package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/state.js +2 -4
- package/modules/FileManagerRenderer/FileManagerViewProvider/state.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.js +17 -17
- package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.js.map +1 -1
- package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.js +1 -2
- package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.js.map +1 -1
- package/modules/FileManagerRenderer/filters/FilterByType.d.ts +2 -2
- package/modules/FileManagerRenderer/filters/FilterByType.js +1 -2
- package/modules/FileManagerRenderer/filters/FilterByType.js.map +1 -1
- package/modules/FileManagerRenderer/index.d.ts +2 -2
- package/modules/FileManagerRenderer/index.js +16 -2
- package/modules/FileManagerRenderer/index.js.map +1 -1
- package/modules/HeadlessCms/fileField.js +1 -2
- package/modules/HeadlessCms/fileField.js.map +1 -1
- package/modules/HeadlessCms/fileRenderer/File.d.ts +2 -8
- package/modules/HeadlessCms/fileRenderer/File.js +4 -15
- package/modules/HeadlessCms/fileRenderer/File.js.map +1 -1
- package/modules/HeadlessCms/fileRenderer/fileField.js +81 -83
- package/modules/HeadlessCms/fileRenderer/fileField.js.map +1 -1
- package/modules/HeadlessCms/fileRenderer/fileFields.js +80 -65
- package/modules/HeadlessCms/fileRenderer/fileFields.js.map +1 -1
- package/modules/HeadlessCms/fileRenderer/utils.d.ts +2 -2
- package/modules/HeadlessCms/fileRenderer/utils.js +10 -13
- package/modules/HeadlessCms/fileRenderer/utils.js.map +1 -1
- package/modules/HeadlessCms/index.js +1 -2
- package/modules/HeadlessCms/index.js.map +1 -1
- package/modules/Settings/graphql.js +1 -2
- package/modules/Settings/graphql.js.map +1 -1
- package/modules/Settings/index.d.ts +2 -2
- package/modules/Settings/index.js +1 -2
- package/modules/Settings/index.js.map +1 -1
- package/modules/Settings/plugins/installation.js +14 -7
- package/modules/Settings/plugins/installation.js.map +1 -1
- package/modules/Settings/plugins/permissionRenderer/FileManagerPermissions.d.ts +2 -2
- package/modules/Settings/plugins/permissionRenderer/FileManagerPermissions.js +1 -2
- package/modules/Settings/plugins/permissionRenderer/FileManagerPermissions.js.map +1 -1
- package/modules/Settings/plugins/permissionRenderer/index.js +1 -2
- package/modules/Settings/plugins/permissionRenderer/index.js.map +1 -1
- package/modules/Settings/views/FileManagerSettings.d.ts +2 -2
- package/modules/Settings/views/FileManagerSettings.js +1 -2
- package/modules/Settings/views/FileManagerSettings.js.map +1 -1
- package/modules/ThumbnailRenderers/DefaultRenderer.d.ts +2 -0
- package/modules/ThumbnailRenderers/DefaultRenderer.js +25 -0
- package/modules/ThumbnailRenderers/DefaultRenderer.js.map +1 -0
- package/modules/ThumbnailRenderers/ImageRenderer.d.ts +2 -0
- package/modules/ThumbnailRenderers/ImageRenderer.js +29 -0
- package/modules/ThumbnailRenderers/ImageRenderer.js.map +1 -0
- package/package.json +29 -30
- package/tagsHelpers.js +2 -4
- package/tagsHelpers.js.map +1 -1
- package/types.js.map +1 -1
- package/FileManagerFileTypePlugin.d.ts +0 -21
- package/FileManagerFileTypePlugin.js +0 -48
- package/FileManagerFileTypePlugin.js.map +0 -1
- package/components/FileDetails/components/actions/CopyUrl.d.ts +0 -2
- package/components/FileDetails/components/actions/CopyUrl.js.map +0 -1
- package/components/FileDetails/components/actions/DeleteImage.d.ts +0 -2
- package/components/FileDetails/components/actions/DeleteImage.js.map +0 -1
- package/components/FileDetails/components/actions/Download.d.ts +0 -2
- package/components/FileDetails/components/actions/Download.js.map +0 -1
- package/components/FileDetails/components/actions/MoveTo.d.ts +0 -2
- package/components/FileDetails/components/actions/MoveTo.js.map +0 -1
- package/getFileTypePlugin.d.ts +0 -3
- package/getFileTypePlugin.js +0 -53
- package/getFileTypePlugin.js.map +0 -1
- package/modules/FileTypes/fileDefault.d.ts +0 -2
- package/modules/FileTypes/fileDefault.js +0 -30
- package/modules/FileTypes/fileDefault.js.map +0 -1
- package/modules/FileTypes/fileImage/EditAction.d.ts +0 -7
- package/modules/FileTypes/fileImage/EditAction.js.map +0 -1
- package/modules/FileTypes/fileImage/index.d.ts +0 -2
- package/modules/FileTypes/fileImage/index.js +0 -40
- package/modules/FileTypes/fileImage/index.js.map +0 -1
- package/modules/FileTypes/icons/edit.svg +0 -17
- package/modules/FileTypes/icons/round-description-24px.svg +0 -1
- package/modules/FileTypes/index.d.ts +0 -1
- package/modules/FileTypes/index.js +0 -34
- package/modules/FileTypes/index.js.map +0 -1
package/BatchFileUploader.js
CHANGED
|
@@ -15,7 +15,7 @@ var FileJob = /*#__PURE__*/(0, _createClass2.default)(function FileJob(file) {
|
|
|
15
15
|
this.id = (0, _utils.generateId)();
|
|
16
16
|
this.file = file;
|
|
17
17
|
});
|
|
18
|
-
var BatchFileUploader = /*#__PURE__*/function () {
|
|
18
|
+
var BatchFileUploader = exports.BatchFileUploader = /*#__PURE__*/function () {
|
|
19
19
|
function BatchFileUploader(uploader) {
|
|
20
20
|
(0, _classCallCheck2.default)(this, BatchFileUploader);
|
|
21
21
|
(0, _defineProperty2.default)(this, "fileJobs", []);
|
|
@@ -24,7 +24,7 @@ var BatchFileUploader = /*#__PURE__*/function () {
|
|
|
24
24
|
this.uploader = uploader;
|
|
25
25
|
(0, _mobx.makeAutoObservable)(this);
|
|
26
26
|
}
|
|
27
|
-
(0, _createClass2.default)(BatchFileUploader, [{
|
|
27
|
+
return (0, _createClass2.default)(BatchFileUploader, [{
|
|
28
28
|
key: "getJobs",
|
|
29
29
|
value: function getJobs() {
|
|
30
30
|
return this.fileJobs;
|
|
@@ -76,7 +76,7 @@ var BatchFileUploader = /*#__PURE__*/function () {
|
|
|
76
76
|
var _loop = async function _loop() {
|
|
77
77
|
var fileJob = _this2.getNextFile();
|
|
78
78
|
if (!fileJob) {
|
|
79
|
-
return
|
|
79
|
+
return 1; // break
|
|
80
80
|
}
|
|
81
81
|
try {
|
|
82
82
|
var newFile = await _this2.uploader(fileJob.file, {
|
|
@@ -98,8 +98,7 @@ var BatchFileUploader = /*#__PURE__*/function () {
|
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
100
|
while (true) {
|
|
101
|
-
|
|
102
|
-
if (_ret === "break") break;
|
|
101
|
+
if (await _loop()) break;
|
|
103
102
|
}
|
|
104
103
|
(0, _mobx.runInAction)(function () {
|
|
105
104
|
_this2.uploading = false;
|
|
@@ -120,8 +119,6 @@ var BatchFileUploader = /*#__PURE__*/function () {
|
|
|
120
119
|
});
|
|
121
120
|
}
|
|
122
121
|
}]);
|
|
123
|
-
return BatchFileUploader;
|
|
124
122
|
}();
|
|
125
|
-
exports.BatchFileUploader = BatchFileUploader;
|
|
126
123
|
|
|
127
124
|
//# sourceMappingURL=BatchFileUploader.js.map
|
package/BatchFileUploader.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_utils","require","_mobx","FileJob","_createClass2","default","file","_classCallCheck2","id","generateId","BatchFileUploader","uploader","_defineProperty2","Map","makeAutoObservable","key","value","getJobs","fileJobs","addFiles","files","_this","forEach","fileJob","push","uploadStatus","set","upload","reset","clear","get","progressInBytes","Array","from","values","loadedBytes","reduce","a","b","totalBytesToUpload","sum","job","size","Math","min","onUploadFinished","cb","onUploadFinishedCallback","_this2","uploading","errors","uploaded","_loop","getNextFile","newFile","onProgress","action","event","sent","e","runInAction","
|
|
1
|
+
{"version":3,"names":["_utils","require","_mobx","FileJob","_createClass2","default","file","_classCallCheck2","id","generateId","BatchFileUploader","exports","uploader","_defineProperty2","Map","makeAutoObservable","key","value","getJobs","fileJobs","addFiles","files","_this","forEach","fileJob","push","uploadStatus","set","upload","reset","clear","get","progressInBytes","Array","from","values","loadedBytes","reduce","a","b","totalBytesToUpload","sum","job","size","Math","min","onUploadFinished","cb","onUploadFinishedCallback","_this2","uploading","errors","uploaded","_loop","getNextFile","newFile","onProgress","action","event","sent","e","runInAction","_this3","find"],"sources":["BatchFileUploader.ts"],"sourcesContent":["import { generateId } from \"@webiny/utils\";\nimport { makeAutoObservable, runInAction, action } from \"mobx\";\nimport { FileItem } from \"@webiny/app-admin/types\";\nimport { FileManagerViewContext } from \"~/modules/FileManagerRenderer/FileManagerViewProvider\";\n\nexport interface FileError {\n file: File;\n e: Error;\n}\n\ninterface OnUploadFinishedParams {\n uploaded: FileItem[];\n errors: FileError[];\n}\n\ninterface OnUploadFinishedCallback {\n (params: OnUploadFinishedParams): void;\n}\n\nclass FileJob {\n public id: string;\n public file: File;\n\n constructor(file: File) {\n this.id = generateId();\n this.file = file;\n }\n}\n\nexport class BatchFileUploader {\n private readonly uploader: FileManagerViewContext[\"uploadFile\"];\n private fileJobs: FileJob[] = [];\n private onUploadFinishedCallback: OnUploadFinishedCallback | undefined;\n private uploading = false;\n private uploadStatus: Map<string, number> = new Map();\n\n constructor(uploader: FileManagerViewContext[\"uploadFile\"]) {\n this.uploader = uploader;\n makeAutoObservable(this);\n }\n\n public getJobs() {\n return this.fileJobs;\n }\n\n public addFiles(files: File[]) {\n files.forEach(file => {\n const fileJob = new FileJob(file);\n this.fileJobs.push(fileJob);\n this.uploadStatus.set(fileJob.id, 0);\n });\n\n this.upload();\n }\n\n public reset() {\n this.fileJobs = [];\n this.uploadStatus.clear();\n }\n\n get progress() {\n const progressInBytes = Array.from(this.uploadStatus.values());\n const loadedBytes = progressInBytes.reduce((a, b) => a + b, 0);\n const totalBytesToUpload = this.fileJobs.reduce((sum, job) => sum + job.file.size, 0);\n return Math.min((100 * loadedBytes) / totalBytesToUpload, 100);\n }\n\n public onUploadFinished(cb: OnUploadFinishedCallback) {\n this.onUploadFinishedCallback = cb;\n }\n\n private async upload() {\n if (this.uploading) {\n return;\n }\n\n this.uploading = true;\n\n const errors: FileError[] = [];\n const uploaded: FileItem[] = [];\n\n while (true) {\n const fileJob = this.getNextFile();\n\n if (!fileJob) {\n break;\n }\n\n try {\n const newFile = await this.uploader(fileJob.file, {\n onProgress: action(\"BatchFileUploader.onProgress\", event => {\n this.uploadStatus.set(fileJob.id, event.sent);\n })\n });\n\n if (newFile) {\n uploaded.push(newFile);\n }\n } catch (e) {\n runInAction(() => {\n this.uploadStatus.set(fileJob.id, -1);\n });\n\n errors.push({ file: fileJob.file, e });\n }\n }\n\n runInAction(() => {\n this.uploading = false;\n });\n\n if (this.onUploadFinishedCallback) {\n this.onUploadFinishedCallback({ uploaded, errors });\n }\n }\n\n private getNextFile() {\n return this.fileJobs.find(file => this.uploadStatus.get(file.id) === 0);\n }\n}\n"],"mappings":";;;;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HANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const FileManager: () => JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const FileManager: () => React.JSX.Element;
|
package/app.js
CHANGED
|
@@ -8,12 +8,10 @@ exports.FileManager = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _Settings = require("./modules/Settings");
|
|
10
10
|
var _FileManagerApiProvider = require("./modules/FileManagerApiProvider");
|
|
11
|
-
var _FileTypes = require("./modules/FileTypes");
|
|
12
11
|
var _FileManagerRenderer = require("./modules/FileManagerRenderer");
|
|
13
12
|
var _HeadlessCms = require("./modules/HeadlessCms");
|
|
14
|
-
var FileManager = function FileManager() {
|
|
15
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Settings.SettingsModule, null), /*#__PURE__*/_react.default.createElement(_FileManagerApiProvider.FileManagerApiProviderModule, null), /*#__PURE__*/_react.default.createElement(
|
|
13
|
+
var FileManager = exports.FileManager = function FileManager() {
|
|
14
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Settings.SettingsModule, null), /*#__PURE__*/_react.default.createElement(_FileManagerApiProvider.FileManagerApiProviderModule, null), /*#__PURE__*/_react.default.createElement(_FileManagerRenderer.FileManagerRendererModule, null), /*#__PURE__*/_react.default.createElement(_HeadlessCms.HeadlessCmsModule, null));
|
|
16
15
|
};
|
|
17
|
-
exports.FileManager = FileManager;
|
|
18
16
|
|
|
19
17
|
//# sourceMappingURL=app.js.map
|
package/app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_Settings","_FileManagerApiProvider","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_Settings","_FileManagerApiProvider","_FileManagerRenderer","_HeadlessCms","FileManager","exports","default","createElement","Fragment","SettingsModule","FileManagerApiProviderModule","FileManagerRendererModule","HeadlessCmsModule"],"sources":["app.tsx"],"sourcesContent":["import React from \"react\";\nimport { SettingsModule } from \"~/modules/Settings\";\nimport { FileManagerApiProviderModule } from \"~/modules/FileManagerApiProvider\";\nimport { FileManagerRendererModule } from \"~/modules/FileManagerRenderer\";\nimport { HeadlessCmsModule } from \"~/modules/HeadlessCms\";\n\nexport const FileManager = () => {\n return (\n <>\n <SettingsModule />\n <FileManagerApiProviderModule />\n <FileManagerRendererModule />\n <HeadlessCmsModule />\n </>\n );\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,uBAAA,GAAAF,OAAA;AACA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAEO,IAAMK,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,SAAdA,WAAWA,CAAA,EAAS;EAC7B,oBACIP,MAAA,CAAAS,OAAA,CAAAC,aAAA,CAAAV,MAAA,CAAAS,OAAA,CAAAE,QAAA,qBACIX,MAAA,CAAAS,OAAA,CAAAC,aAAA,CAACP,SAAA,CAAAS,cAAc,MAAE,CAAC,eAClBZ,MAAA,CAAAS,OAAA,CAAAC,aAAA,CAACN,uBAAA,CAAAS,4BAA4B,MAAE,CAAC,eAChCb,MAAA,CAAAS,OAAA,CAAAC,aAAA,CAACL,oBAAA,CAAAS,yBAAyB,MAAE,CAAC,eAC7Bd,MAAA,CAAAS,OAAA,CAAAC,aAAA,CAACJ,YAAA,CAAAS,iBAAiB,MAAE,CACtB,CAAC;AAEX,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { SupportedFileTypesProps } from "./SupportedFileTypes";
|
|
3
3
|
import { ListStatusProps } from "./ListStatus";
|
|
4
4
|
declare type BottomInfoBarProps = SupportedFileTypesProps & ListStatusProps;
|
|
5
|
-
export declare const BottomInfoBar: (props: BottomInfoBarProps) => JSX.Element;
|
|
5
|
+
export declare const BottomInfoBar: (props: BottomInfoBarProps) => React.JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -19,9 +19,8 @@ _lite.default.define({
|
|
|
19
19
|
_lite.default.define({
|
|
20
20
|
"image/vnd.microsoft.icon": ["ico"]
|
|
21
21
|
}, true);
|
|
22
|
-
var BottomInfoBar = function BottomInfoBar(props) {
|
|
22
|
+
var BottomInfoBar = exports.BottomInfoBar = function BottomInfoBar(props) {
|
|
23
23
|
return /*#__PURE__*/_react.default.createElement(_styled.BottomInfoBarWrapper, null, /*#__PURE__*/_react.default.createElement(_styled.BottomInfoBarInner, null, /*#__PURE__*/_react.default.createElement(_SupportedFileTypes.default, props), /*#__PURE__*/_react.default.createElement(_ListStatus.default, props)));
|
|
24
24
|
};
|
|
25
|
-
exports.BottomInfoBar = BottomInfoBar;
|
|
26
25
|
|
|
27
26
|
//# sourceMappingURL=BottomInfoBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_lite","_SupportedFileTypes","_ListStatus","_styled","mime","define","BottomInfoBar","props","default","createElement","BottomInfoBarWrapper","BottomInfoBarInner"
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_lite","_SupportedFileTypes","_ListStatus","_styled","mime","define","BottomInfoBar","exports","props","default","createElement","BottomInfoBarWrapper","BottomInfoBarInner"],"sources":["BottomInfoBar.tsx"],"sourcesContent":["import React from \"react\";\nimport mime from \"mime/lite\";\n\nimport SupportedFileTypes, { SupportedFileTypesProps } from \"./SupportedFileTypes\";\nimport ListStatus, { ListStatusProps } from \"./ListStatus\";\n\nimport { BottomInfoBarInner, BottomInfoBarWrapper } from \"./styled\";\n\nmime.define({ \"image/x-icon\": [\"ico\"] }, true);\nmime.define({ \"image/jpg\": [\"jpg\"] }, true);\nmime.define({ \"image/vnd.microsoft.icon\": [\"ico\"] }, true);\n\ntype BottomInfoBarProps = SupportedFileTypesProps & ListStatusProps;\n\nexport const BottomInfoBar = (props: BottomInfoBarProps) => {\n return (\n <BottomInfoBarWrapper>\n <BottomInfoBarInner>\n <SupportedFileTypes {...props} />\n <ListStatus {...props} />\n </BottomInfoBarInner>\n </BottomInfoBarWrapper>\n );\n};\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,mBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAEA,IAAAI,OAAA,GAAAJ,OAAA;AAEAK,aAAI,CAACC,MAAM,CAAC;EAAE,cAAc,EAAE,CAAC,KAAK;AAAE,CAAC,EAAE,IAAI,CAAC;AAC9CD,aAAI,CAACC,MAAM,CAAC;EAAE,WAAW,EAAE,CAAC,KAAK;AAAE,CAAC,EAAE,IAAI,CAAC;AAC3CD,aAAI,CAACC,MAAM,CAAC;EAAE,0BAA0B,EAAE,CAAC,KAAK;AAAE,CAAC,EAAE,IAAI,CAAC;AAInD,IAAMC,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,SAAhBA,aAAaA,CAAIE,KAAyB,EAAK;EACxD,oBACIX,MAAA,CAAAY,OAAA,CAAAC,aAAA,CAACP,OAAA,CAAAQ,oBAAoB,qBACjBd,MAAA,CAAAY,OAAA,CAAAC,aAAA,CAACP,OAAA,CAAAS,kBAAkB,qBACff,MAAA,CAAAY,OAAA,CAAAC,aAAA,CAACT,mBAAA,CAAAQ,OAAkB,EAAKD,KAAQ,CAAC,eACjCX,MAAA,CAAAY,OAAA,CAAAC,aAAA,CAACR,WAAA,CAAAO,OAAU,EAAKD,KAAQ,CACR,CACF,CAAC;AAE/B,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
export interface ListStatusProps {
|
|
3
3
|
listing: boolean;
|
|
4
4
|
}
|
|
5
|
-
declare const ListStatus: ({ listing }: ListStatusProps) => JSX.Element | null;
|
|
5
|
+
declare const ListStatus: ({ listing }: ListStatusProps) => React.JSX.Element | null;
|
|
6
6
|
export default ListStatus;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_i18n","_Progress","_styled","_templateObject","t","i18n","ns","ListStatus","_ref","listing","default","createElement","StatusWrapper","UploadingLabel","_taggedTemplateLiteral2","CircularProgressHolder","CircularProgress","size","spinnerWidth","_default","exports"],"sources":["ListStatus.tsx"],"sourcesContent":["import React from \"react\";\nimport { i18n } from \"@webiny/app/i18n\";\nimport { CircularProgress } from \"@webiny/ui/Progress\";\n\nimport { CircularProgressHolder, StatusWrapper, UploadingLabel } from \"./styled\";\n\nconst t = i18n.ns(\"app-admin/file-manager/components/bottom-info-bar/list-status\");\n\nexport interface ListStatusProps {\n listing: boolean;\n}\n\nconst ListStatus = ({ listing }: ListStatusProps) => {\n if (!listing) {\n return null;\n }\n\n return (\n <StatusWrapper>\n <UploadingLabel>{t`Loading more files...`}</UploadingLabel>\n <CircularProgressHolder>\n <CircularProgress size={10} spinnerWidth={1} />\n </CircularProgressHolder>\n </StatusWrapper>\n );\n};\n\nexport default ListStatus;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AAAiF,IAAAI,eAAA;AAEjF,IAAMC,CAAC,GAAGC,UAAI,CAACC,EAAE,CAAC,+DAA+D,CAAC;AAMlF,IAAMC,UAAU,GAAG,SAAbA,UAAUA,CAAAC,IAAA,EAAqC;EAAA,IAA/BC,OAAO,GAAAD,IAAA,CAAPC,OAAO;EACzB,IAAI,CAACA,OAAO,EAAE;IACV,OAAO,IAAI;EACf;EAEA,oBACIZ,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACT,OAAA,CAAAU,aAAa,qBACVf,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACT,OAAA,CAAAW,cAAc,QAAET,CAAC,CAAAD,eAAA,KAAAA,eAAA,OAAAW,uBAAA,CAAAJ,OAAA,8BAAwC,CAAC,eAC3Db,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACT,OAAA,CAAAa,sBAAsB,qBACnBlB,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACV,SAAA,CAAAe,gBAAgB;IAACC,IAAI,EAAE,EAAG;IAACC,YAAY,EAAE;EAAE,CAAE,CAC1B,CACb,CAAC;AAExB,CAAC;AAAC,IAAAC,QAAA,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_i18n","_Progress","_styled","_templateObject","t","i18n","ns","ListStatus","_ref","listing","default","createElement","StatusWrapper","UploadingLabel","_taggedTemplateLiteral2","CircularProgressHolder","CircularProgress","size","spinnerWidth","_default","exports"],"sources":["ListStatus.tsx"],"sourcesContent":["import React from \"react\";\nimport { i18n } from \"@webiny/app/i18n\";\nimport { CircularProgress } from \"@webiny/ui/Progress\";\n\nimport { CircularProgressHolder, StatusWrapper, UploadingLabel } from \"./styled\";\n\nconst t = i18n.ns(\"app-admin/file-manager/components/bottom-info-bar/list-status\");\n\nexport interface ListStatusProps {\n listing: boolean;\n}\n\nconst ListStatus = ({ listing }: ListStatusProps) => {\n if (!listing) {\n return null;\n }\n\n return (\n <StatusWrapper>\n <UploadingLabel>{t`Loading more files...`}</UploadingLabel>\n <CircularProgressHolder>\n <CircularProgress size={10} spinnerWidth={1} />\n </CircularProgressHolder>\n </StatusWrapper>\n );\n};\n\nexport default ListStatus;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AAAiF,IAAAI,eAAA;AAEjF,IAAMC,CAAC,GAAGC,UAAI,CAACC,EAAE,CAAC,+DAA+D,CAAC;AAMlF,IAAMC,UAAU,GAAG,SAAbA,UAAUA,CAAAC,IAAA,EAAqC;EAAA,IAA/BC,OAAO,GAAAD,IAAA,CAAPC,OAAO;EACzB,IAAI,CAACA,OAAO,EAAE;IACV,OAAO,IAAI;EACf;EAEA,oBACIZ,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACT,OAAA,CAAAU,aAAa,qBACVf,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACT,OAAA,CAAAW,cAAc,QAAET,CAAC,CAAAD,eAAA,KAAAA,eAAA,OAAAW,uBAAA,CAAAJ,OAAA,8BAAwC,CAAC,eAC3Db,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACT,OAAA,CAAAa,sBAAsB,qBACnBlB,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACV,SAAA,CAAAe,gBAAgB;IAACC,IAAI,EAAE,EAAG;IAACC,YAAY,EAAE;EAAE,CAAE,CAC1B,CACb,CAAC;AAExB,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAV,OAAA,GAEaH,UAAU","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
export interface SupportedFileTypesProps {
|
|
3
3
|
accept: string[];
|
|
4
4
|
}
|
|
5
|
-
declare const SupportedFileTypes: ({ accept }: SupportedFileTypesProps) => JSX.Element | null;
|
|
5
|
+
declare const SupportedFileTypes: ({ accept }: SupportedFileTypesProps) => React.JSX.Element | null;
|
|
6
6
|
export default SupportedFileTypes;
|
|
@@ -43,7 +43,6 @@ var SupportedFileTypes = function SupportedFileTypes(_ref) {
|
|
|
43
43
|
files: getUniqueFilePlugins(accept).join(", ")
|
|
44
44
|
}));
|
|
45
45
|
};
|
|
46
|
-
var _default = SupportedFileTypes;
|
|
47
|
-
exports.default = _default;
|
|
46
|
+
var _default = exports.default = SupportedFileTypes;
|
|
48
47
|
|
|
49
48
|
//# sourceMappingURL=SupportedFileTypes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_i18n","_lite","_templateObject","_templateObject2","mime","define","t","i18n","ns","getUniqueFilePlugins","accept","exts","forEach","item","ext","getExtension","Object","keys","SupportedFileTypes","_ref","length","default","createElement","_taggedTemplateLiteral2","files","join","_default","exports"],"sources":["SupportedFileTypes.tsx"],"sourcesContent":["import React from \"react\";\nimport { i18n } from \"@webiny/app/i18n\";\nimport mime from \"mime/lite\";\n\nmime.define({ \"image/x-icon\": [\"ico\"] }, true);\nmime.define({ \"image/jpg\": [\"jpg\"] }, true);\nmime.define({ \"image/vnd.microsoft.icon\": [\"ico\"] }, true);\n\nconst t = i18n.ns(\"app-admin/file-manager/components/bottom-info-bar/supported-files\");\n\nconst getUniqueFilePlugins = (accept: string[]): string[] => {\n const exts: Record<string, boolean> = {};\n accept.forEach(item => {\n const ext = mime.getExtension(item);\n if (!ext) {\n return;\n }\n exts[ext] = true;\n });\n\n return Object.keys(exts);\n};\n\nexport interface SupportedFileTypesProps {\n accept: string[];\n}\n\nconst SupportedFileTypes = ({ accept }: SupportedFileTypesProps) => {\n if (!accept) {\n return null;\n }\n\n if (accept.length === 0) {\n return <span>{t`Showing all file extensions.`}</span>;\n }\n\n return (\n <span>\n {t`Showing the following file extensions: {files}.`({\n files: getUniqueFilePlugins(accept).join(\", \")\n })}\n </span>\n );\n};\n\nexport default SupportedFileTypes;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAH,sBAAA,CAAAC,OAAA;AAA6B,IAAAG,eAAA,EAAAC,gBAAA;AAE7BC,aAAI,CAACC,MAAM,CAAC;EAAE,cAAc,EAAE,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jD,CAAC,CACC,CAAC;AAEf,CAAC;AAAC,IAAAC,QAAA,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_i18n","_lite","_templateObject","_templateObject2","mime","define","t","i18n","ns","getUniqueFilePlugins","accept","exts","forEach","item","ext","getExtension","Object","keys","SupportedFileTypes","_ref","length","default","createElement","_taggedTemplateLiteral2","files","join","_default","exports"],"sources":["SupportedFileTypes.tsx"],"sourcesContent":["import React from \"react\";\nimport { i18n } from \"@webiny/app/i18n\";\nimport mime from \"mime/lite\";\n\nmime.define({ \"image/x-icon\": [\"ico\"] }, true);\nmime.define({ \"image/jpg\": [\"jpg\"] }, true);\nmime.define({ \"image/vnd.microsoft.icon\": [\"ico\"] }, true);\n\nconst t = i18n.ns(\"app-admin/file-manager/components/bottom-info-bar/supported-files\");\n\nconst getUniqueFilePlugins = (accept: string[]): string[] => {\n const exts: Record<string, boolean> = {};\n accept.forEach(item => {\n const ext = mime.getExtension(item);\n if (!ext) {\n return;\n }\n exts[ext] = true;\n });\n\n return Object.keys(exts);\n};\n\nexport interface SupportedFileTypesProps {\n accept: string[];\n}\n\nconst SupportedFileTypes = ({ accept }: SupportedFileTypesProps) => {\n if (!accept) {\n return null;\n }\n\n if (accept.length === 0) {\n return <span>{t`Showing all file extensions.`}</span>;\n }\n\n return (\n <span>\n {t`Showing the following file extensions: {files}.`({\n files: getUniqueFilePlugins(accept).join(\", \")\n })}\n </span>\n );\n};\n\nexport default SupportedFileTypes;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAH,sBAAA,CAAAC,OAAA;AAA6B,IAAAG,eAAA,EAAAC,gBAAA;AAE7BC,aAAI,CAACC,MAAM,CAAC;EAAE,cAAc,EAAE,CAAC,KAAK;AAAE,CAAC,EAAE,IAAI,CAAC;AAC9CD,aAAI,CAACC,MAAM,CAAC;EAAE,WAAW,E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AAkB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_BottomInfoBar","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["index.tsx"],"sourcesContent":["export * from \"./BottomInfoBar\";\n"],"mappings":";;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,cAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,cAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,cAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
|
|
1
|
+
{"version":3,"names":["_BottomInfoBar","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["index.tsx"],"sourcesContent":["export * from \"./BottomInfoBar\";\n"],"mappings":";;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,cAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,cAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,cAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const BottomInfoBarWrapper: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
6
|
export declare const BottomInfoBarInner: import("@emotion/styled").StyledComponent<{
|
|
7
7
|
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
-
as?: import("react").ElementType<any> | undefined;
|
|
8
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
9
9
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
10
|
export declare const StatusWrapper: import("@emotion/styled").StyledComponent<{
|
|
11
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
-
as?: import("react").ElementType<any> | undefined;
|
|
12
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
13
13
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
14
14
|
export declare const CircularProgressHolder: import("@emotion/styled").StyledComponent<{
|
|
15
15
|
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
-
as?: import("react").ElementType<any> | undefined;
|
|
16
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
17
17
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
18
18
|
export declare const UploadingLabel: import("@emotion/styled").StyledComponent<{
|
|
19
19
|
theme?: import("@emotion/react").Theme | undefined;
|
|
20
|
-
as?: import("react").ElementType<any> | undefined;
|
|
20
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
21
21
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -5,31 +5,77 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.UploadingLabel = exports.StatusWrapper = exports.CircularProgressHolder = exports.BottomInfoBarWrapper = exports.BottomInfoBarInner = void 0;
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
target: "e16zhfly0"
|
|
12
|
-
})("font-size:0.8rem;position:sticky;bottom:0;height:30px;color:var(--mdc-theme-text-secondary-on-background);border-top:1px solid var(--mdc-theme-on-background);background:var(--mdc-theme-surface);width:100%;transform:translateZ(0);overflow:hidden;display:flex;align-items:center;z-index:1;");
|
|
13
|
-
exports.BottomInfoBarWrapper = BottomInfoBarWrapper;
|
|
14
|
-
var BottomInfoBarInner = /*#__PURE__*/(0, _styled.default)("div", {
|
|
15
|
-
label: "BottomInfoBarInner",
|
|
16
|
-
target: "e16zhfly1"
|
|
17
|
-
})("padding:0 10px;width:100%;");
|
|
18
|
-
exports.BottomInfoBarInner = BottomInfoBarInner;
|
|
19
|
-
var StatusWrapper = /*#__PURE__*/(0, _styled.default)("div", {
|
|
20
|
-
label: "StatusWrapper",
|
|
21
|
-
target: "e16zhfly2"
|
|
22
|
-
})("color:var(--mdc-theme-primary);position:absolute;right:0;bottom:10px;margin-right:10px;display:flex;align-items:center;> div{display:inline-block;}");
|
|
23
|
-
exports.StatusWrapper = StatusWrapper;
|
|
24
|
-
var CircularProgressHolder = /*#__PURE__*/(0, _styled.default)("div", {
|
|
25
|
-
label: "CircularProgressHolder",
|
|
26
|
-
target: "e16zhfly3"
|
|
27
|
-
})("position:relative;height:12px;width:12px;");
|
|
28
|
-
exports.CircularProgressHolder = CircularProgressHolder;
|
|
29
|
-
var UploadingLabel = /*#__PURE__*/(0, _styled.default)("div", {
|
|
30
|
-
label: "UploadingLabel",
|
|
8
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
9
|
+
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)."; }
|
|
10
|
+
var BottomInfoBarWrapper = exports.BottomInfoBarWrapper = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
31
11
|
target: "e16zhfly4"
|
|
32
|
-
}
|
|
33
|
-
|
|
12
|
+
} : {
|
|
13
|
+
target: "e16zhfly4",
|
|
14
|
+
label: "BottomInfoBarWrapper"
|
|
15
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
16
|
+
name: "12my7vq",
|
|
17
|
+
styles: "font-size:0.8rem;position:sticky;bottom:0;height:30px;color:var(--mdc-theme-text-secondary-on-background);border-top:1px solid var(--mdc-theme-on-background);background:var(--mdc-theme-surface);width:100%;transform:translateZ(0);overflow:hidden;display:flex;align-items:center;z-index:1"
|
|
18
|
+
} : {
|
|
19
|
+
name: "12my7vq",
|
|
20
|
+
styles: "font-size:0.8rem;position:sticky;bottom:0;height:30px;color:var(--mdc-theme-text-secondary-on-background);border-top:1px solid var(--mdc-theme-on-background);background:var(--mdc-theme-surface);width:100%;transform:translateZ(0);overflow:hidden;display:flex;align-items:center;z-index:1",
|
|
21
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRWlEIiwiZmlsZSI6InN0eWxlZC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gXCJAZW1vdGlvbi9zdHlsZWRcIjtcblxuZXhwb3J0IGNvbnN0IEJvdHRvbUluZm9CYXJXcmFwcGVyID0gc3R5bGVkKFwiZGl2XCIpYFxuICAgIGZvbnQtc2l6ZTogMC44cmVtO1xuICAgIHBvc2l0aW9uOiBzdGlja3k7XG4gICAgYm90dG9tOiAwO1xuICAgIGhlaWdodDogMzBweDtcbiAgICBjb2xvcjogdmFyKC0tbWRj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ZGl2XCIpYFxuICAgIG1hcmdpbi1yaWdodDogNXB4O1xuYDtcbiJdfQ== */",
|
|
22
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
23
|
+
});
|
|
24
|
+
var BottomInfoBarInner = exports.BottomInfoBarInner = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
25
|
+
target: "e16zhfly3"
|
|
26
|
+
} : {
|
|
27
|
+
target: "e16zhfly3",
|
|
28
|
+
label: "BottomInfoBarInner"
|
|
29
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
30
|
+
name: "owe4de",
|
|
31
|
+
styles: "padding:0 10px;width:100%"
|
|
32
|
+
} : {
|
|
33
|
+
name: "owe4de",
|
|
34
|
+
styles: "padding:0 10px;width:100%",
|
|
35
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0IrQyIsImZpbGUiOiJzdHlsZWQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tIFwiQGVtb3Rpb24vc3R5bGVkXCI7XG5cbmV4cG9ydCBjb25zdCBCb3R0b21JbmZvQmFyV3JhcHBlciA9IHN0eWxlZChcImRpdlwiKWBcbiAgICBmb250LXNpemU6IDAuOHJlbTtcbiAgICBwb3NpdGlvbjogc3RpY2t5O1xuICAgIGJvdHRvbTogMDtcbiAgICBoZWlnaHQ6IDMwcHg7XG4gICAgY29sb3I6IHZhcigtLW1kYy10aGVtZS10ZXh0LXNlY29uZGFyeS1vbi1iYWNrZ3JvdW5kKTtcbiAgICBib3JkZXItdG9wOiAxcHggc29saWQgdmFyKC0tbWRjLXRoZW1lLW9uLWJhY2tncm91bmQpO1xuICAgIGJhY2tncm91bmQ6IHZhcigtLW1kYy10aGVtZS1zdXJmYWNlKTtcbiAgICB3aWR0aDogMTAwJTtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVooMCk7XG4gICAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgei1pbmRleDogMTtcbmA7XG5cbmV4cG9ydCBjb25zdCBCb3R0b21JbmZvQmFySW5uZXIgPSBzdHlsZWQoXCJkaXZcIilgXG4gICAgcGFkZGluZzogMCAxMHB4O1xuICAgIHdpZHRoOiAxMDAlO1xuYDtcblxuZXhwb3J0IGNvbnN0IFN0YXR1c1dyYXBwZXIgPSBzdHlsZWQoXCJkaXZcIilgXG4gICAgY29sb3I6IHZhcigtLW1kYy10aGVtZS1wcmltYXJ5KTtcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgcmlnaHQ6IDA7XG4gICAgYm90dG9tOiAxMHB4O1xuICAgIG1hcmdpbi1yaWdodDogMTBweDtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgPiBkaXYge1xuICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gICAgfVxuYDtcblxuZXhwb3J0IGNvbnN0IENpcmN1bGFyUHJvZ3Jlc3NIb2xkZXIgPSBzdHlsZWQoXCJkaXZcIilgXG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIGhlaWdodDogMTJweDtcbiAgICB3aWR0aDogMTJweDtcbmA7XG5cbmV4cG9ydCBjb25zdCBVcGxvYWRpbmdMYWJlbCA9IHN0eWxlZChcImRpdlwiKWBcbiAgICBtYXJnaW4tcmlnaHQ6IDVweDtcbmA7XG4iXX0= */",
|
|
36
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
37
|
+
});
|
|
38
|
+
var StatusWrapper = exports.StatusWrapper = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
39
|
+
target: "e16zhfly2"
|
|
40
|
+
} : {
|
|
41
|
+
target: "e16zhfly2",
|
|
42
|
+
label: "StatusWrapper"
|
|
43
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
44
|
+
name: "pjg2fa",
|
|
45
|
+
styles: "color:var(--mdc-theme-primary);position:absolute;right:0;bottom:10px;margin-right:10px;display:flex;align-items:center;>div{display:inline-block;}"
|
|
46
|
+
} : {
|
|
47
|
+
name: "pjg2fa",
|
|
48
|
+
styles: "color:var(--mdc-theme-primary);position:absolute;right:0;bottom:10px;margin-right:10px;display:flex;align-items:center;>div{display:inline-block;}",
|
|
49
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBdUIwQyIsImZpbGUiOiJzdHlsZWQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tIFwiQGVtb3Rpb24vc3R5bGVkXCI7XG5cbmV4cG9ydCBjb25zdCBCb3R0b21JbmZvQmFyV3JhcHBlciA9IHN0eWxlZChcImRpdlwiKWBcbiAgICBmb250LXNpemU6IDAuOHJlbTtcbiAgICBwb3NpdGlvbjogc3RpY2t5O1xuICAgIGJvdHRvbTogMDtcbiAgICBoZWlnaHQ6IDMwcHg7XG4gICAgY29sb3I6IHZhcigtLW1kYy10aGVtZS10ZXh0LXNlY29uZGFyeS1vbi1iYWNrZ3JvdW5kKTtcbiAgICBib3JkZXItdG9wOiAxcHggc29saWQgdmFyKC0tbWRjLXRoZW1lLW9uLWJhY2tncm91bmQpO1xuICAgIGJhY2tncm91bmQ6IHZhcigtLW1kYy10aGVtZS1zdXJmYWNlKTtcbiAgICB3aWR0aDogMTAwJTtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVooMCk7XG4gICAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgei1pbmRleDogMTtcbmA7XG5cbmV4cG9ydCBjb25zdCBCb3R0b21JbmZvQmFySW5uZXIgPSBzdHlsZWQoXCJkaXZcIilgXG4gICAgcGFkZGluZzogMCAxMHB4O1xuICAgIHdpZHRoOiAxMDAlO1xuYDtcblxuZXhwb3J0IGNvbnN0IFN0YXR1c1dyYXBwZXIgPSBzdHlsZWQoXCJkaXZcIilgXG4gICAgY29sb3I6IHZhcigtLW1kYy10aGVtZS1wcmltYXJ5KTtcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgcmlnaHQ6IDA7XG4gICAgYm90dG9tOiAxMHB4O1xuICAgIG1hcmdpbi1yaWdodDogMTBweDtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgPiBkaXYge1xuICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gICAgfVxuYDtcblxuZXhwb3J0IGNvbnN0IENpcmN1bGFyUHJvZ3Jlc3NIb2xkZXIgPSBzdHlsZWQoXCJkaXZcIilgXG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIGhlaWdodDogMTJweDtcbiAgICB3aWR0aDogMTJweDtcbmA7XG5cbmV4cG9ydCBjb25zdCBVcGxvYWRpbmdMYWJlbCA9IHN0eWxlZChcImRpdlwiKWBcbiAgICBtYXJnaW4tcmlnaHQ6IDVweDtcbmA7XG4iXX0= */",
|
|
50
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
51
|
+
});
|
|
52
|
+
var CircularProgressHolder = exports.CircularProgressHolder = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
53
|
+
target: "e16zhfly1"
|
|
54
|
+
} : {
|
|
55
|
+
target: "e16zhfly1",
|
|
56
|
+
label: "CircularProgressHolder"
|
|
57
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
58
|
+
name: "n39s9v",
|
|
59
|
+
styles: "position:relative;height:12px;width:12px"
|
|
60
|
+
} : {
|
|
61
|
+
name: "n39s9v",
|
|
62
|
+
styles: "position:relative;height:12px;width:12px",
|
|
63
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBb0NtRCIsImZpbGUiOiJzdHlsZWQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tIFwiQGVtb3Rpb24vc3R5bGVkXCI7XG5cbmV4cG9ydCBjb25zdCBCb3R0b21JbmZvQmFyV3JhcHBlciA9IHN0eWxlZChcImRpdlwiKWBcbiAgICBmb250LXNpemU6IDAuOHJlbTtcbiAgICBwb3NpdGlvbjogc3RpY2t5O1xuICAgIGJvdHRvbTogMDtcbiAgICBoZWlnaHQ6IDMwcHg7XG4gICAgY29sb3I6IHZhcigtLW1kYy10aGVtZS10ZXh0LXNlY29uZGFyeS1vbi1iYWNrZ3JvdW5kKTtcbiAgICBib3JkZXItdG9wOiAxcHggc29saWQgdmFyKC0tbWRjLXRoZW1lLW9uLWJhY2tncm91bmQpO1xuICAgIGJhY2tncm91bmQ6IHZhcigtLW1kYy10aGVtZS1zdXJmYWNlKTtcbiAgICB3aWR0aDogMTAwJTtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVooMCk7XG4gICAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgei1pbmRleDogMTtcbmA7XG5cbmV4cG9ydCBjb25zdCBCb3R0b21JbmZvQmFySW5uZXIgPSBzdHlsZWQoXCJkaXZcIilgXG4gICAgcGFkZGluZzogMCAxMHB4O1xuICAgIHdpZHRoOiAxMDAlO1xuYDtcblxuZXhwb3J0IGNvbnN0IFN0YXR1c1dyYXBwZXIgPSBzdHlsZWQoXCJkaXZcIilgXG4gICAgY29sb3I6IHZhcigtLW1kYy10aGVtZS1wcmltYXJ5KTtcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgcmlnaHQ6IDA7XG4gICAgYm90dG9tOiAxMHB4O1xuICAgIG1hcmdpbi1yaWdodDogMTBweDtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgPiBkaXYge1xuICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gICAgfVxuYDtcblxuZXhwb3J0IGNvbnN0IENpcmN1bGFyUHJvZ3Jlc3NIb2xkZXIgPSBzdHlsZWQoXCJkaXZcIilgXG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIGhlaWdodDogMTJweDtcbiAgICB3aWR0aDogMTJweDtcbmA7XG5cbmV4cG9ydCBjb25zdCBVcGxvYWRpbmdMYWJlbCA9IHN0eWxlZChcImRpdlwiKWBcbiAgICBtYXJnaW4tcmlnaHQ6IDVweDtcbmA7XG4iXX0= */",
|
|
64
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
65
|
+
});
|
|
66
|
+
var UploadingLabel = exports.UploadingLabel = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
67
|
+
target: "e16zhfly0"
|
|
68
|
+
} : {
|
|
69
|
+
target: "e16zhfly0",
|
|
70
|
+
label: "UploadingLabel"
|
|
71
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
72
|
+
name: "1693thf",
|
|
73
|
+
styles: "margin-right:5px"
|
|
74
|
+
} : {
|
|
75
|
+
name: "1693thf",
|
|
76
|
+
styles: "margin-right:5px",
|
|
77
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlZC50c3giXSwibmFt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BkaXNwbGF5OiBmbGV4O1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgPiBkaXYge1xuICAgICAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gICAgfVxuYDtcblxuZXhwb3J0IGNvbnN0IENpcmN1bGFyUHJvZ3Jlc3NIb2xkZXIgPSBzdHlsZWQoXCJkaXZcIilgXG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIGhlaWdodDogMTJweDtcbiAgICB3aWR0aDogMTJweDtcbmA7XG5cbmV4cG9ydCBjb25zdCBVcGxvYWRpbmdMYWJlbCA9IHN0eWxlZChcImRpdlwiKWBcbiAgICBtYXJnaW4tcmlnaHQ6IDVweDtcbmA7XG4iXX0= */",
|
|
78
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
79
|
+
});
|
|
34
80
|
|
|
35
81
|
//# sourceMappingURL=styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["BottomInfoBarWrapper","exports","_base","default","process","env","NODE_ENV","target","label","name","styles","map","toString","_EMOTION_STRINGIFIED_CSS_ERROR__","BottomInfoBarInner","StatusWrapper","CircularProgressHolder","UploadingLabel"],"sources":["styled.tsx"],"sourcesContent":["import styled from \"@emotion/styled\";\n\nexport const BottomInfoBarWrapper = styled(\"div\")`\n font-size: 0.8rem;\n position: sticky;\n bottom: 0;\n height: 30px;\n color: var(--mdc-theme-text-secondary-on-background);\n border-top: 1px solid var(--mdc-theme-on-background);\n background: var(--mdc-theme-surface);\n width: 100%;\n transform: translateZ(0);\n overflow: hidden;\n display: flex;\n align-items: center;\n z-index: 1;\n`;\n\nexport const BottomInfoBarInner = styled(\"div\")`\n padding: 0 10px;\n width: 100%;\n`;\n\nexport const StatusWrapper = styled(\"div\")`\n color: var(--mdc-theme-primary);\n position: absolute;\n right: 0;\n bottom: 10px;\n margin-right: 10px;\n display: flex;\n align-items: center;\n > div {\n display: inline-block;\n }\n`;\n\nexport const CircularProgressHolder = styled(\"div\")`\n position: relative;\n height: 12px;\n width: 12px;\n`;\n\nexport const UploadingLabel = styled(\"div\")`\n margin-right: 5px;\n`;\n"],"mappings":";;;;;;;;;AAEO,IAAMA,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,gBAAG,IAAAE,KAAA,CAAAC,OAAA,EAAO,KAAK,EAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,EAAC,CAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAG,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAC;AAAA,EAchD;AAEM,IAAMC,kBAAkB,GAAAb,OAAA,CAAAa,kBAAA,gBAAG,IAAAZ,KAAA,CAAAC,OAAA,EAAO,KAAK,EAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,EAAC,CAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAG,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAC;AAAA,EAG9C;AAEM,IAAME,aAAa,GAAAd,OAAA,CAAAc,aAAA,gBAAG,IAAAb,KAAA,CAAAC,OAAA,EAAO,KAAK,EAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,EAAC,CAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAG,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAC;AAAA,EAWzC;AAEM,IAAMG,sBAAsB,GAAAf,OAAA,CAAAe,sBAAA,gBAAG,IAAAd,KAAA,CAAAC,OAAA,EAAO,KAAK,EAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,EAAC,CAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAG,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAC;AAAA,EAIlD;AAEM,IAAMI,cAAc,GAAAhB,OAAA,CAAAgB,cAAA,gBAAG,IAAAf,KAAA,CAAAC,OAAA,EAAO,KAAK,EAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,EAAC,CAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAG,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAC;AAAA,EAE1C","ignoreList":[]}
|
|
@@ -12,7 +12,7 @@ var _FileManagerViewConfig = require("../../modules/FileManagerRenderer/FileMana
|
|
|
12
12
|
var _FileManagerApiContext = require("../../modules/FileManagerApiProvider/FileManagerApiContext");
|
|
13
13
|
var _FileManagerViewProvider = require("../../modules/FileManagerRenderer/FileManagerViewProvider");
|
|
14
14
|
var _BulkActions = require("./BulkActions");
|
|
15
|
-
var ActionDelete = (0, _mobxReactLite.observer)(function () {
|
|
15
|
+
var ActionDelete = exports.ActionDelete = (0, _mobxReactLite.observer)(function () {
|
|
16
16
|
var _useFileManagerView = (0, _FileManagerViewProvider.useFileManagerView)(),
|
|
17
17
|
deleteFile = _useFileManagerView.deleteFile;
|
|
18
18
|
var _useFileManagerApi = (0, _FileManagerApiContext.useFileManagerApi)(),
|
|
@@ -77,6 +77,5 @@ var ActionDelete = (0, _mobxReactLite.observer)(function () {
|
|
|
77
77
|
tooltipPlacement: "bottom"
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
|
-
exports.ActionDelete = ActionDelete;
|
|
81
80
|
|
|
82
81
|
//# sourceMappingURL=ActionDelete.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_delete","_mobxReactLite","_FileManagerViewConfig","_FileManagerApiContext","_FileManagerViewProvider","_BulkActions","ActionDelete","observer","_useFileManagerView","useFileManagerView","deleteFile","_useFileManagerApi","useFileManagerApi","canDelete","_FileManagerViewConfi","FileManagerViewConfig","Browser","BulkAction","useWorker","useButtons","useDialog","_useButtons","IconButton","worker","_useDialog","showConfirmationDialog","showResultsDialog","filesLabel","useMemo","getFilesLabel","items","length","canDeleteAll","every","item","openDeleteDialog","title","message","concat","loadingLabel","execute","processInSeries","_ref","report","id","success","name","e","error","resetItems","results","console","log","default","createElement","icon","ReactComponent","onAction","label","tooltipPlacement"
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_delete","_mobxReactLite","_FileManagerViewConfig","_FileManagerApiContext","_FileManagerViewProvider","_BulkActions","ActionDelete","exports","observer","_useFileManagerView","useFileManagerView","deleteFile","_useFileManagerApi","useFileManagerApi","canDelete","_FileManagerViewConfi","FileManagerViewConfig","Browser","BulkAction","useWorker","useButtons","useDialog","_useButtons","IconButton","worker","_useDialog","showConfirmationDialog","showResultsDialog","filesLabel","useMemo","getFilesLabel","items","length","canDeleteAll","every","item","openDeleteDialog","title","message","concat","loadingLabel","execute","processInSeries","_ref","report","id","success","name","e","error","resetItems","results","console","log","default","createElement","icon","ReactComponent","onAction","label","tooltipPlacement"],"sources":["ActionDelete.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { ReactComponent as DeleteIcon } from \"@material-design-icons/svg/outlined/delete.svg\";\nimport { observer } from \"mobx-react-lite\";\n\nimport { FileManagerViewConfig } from \"~/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig\";\nimport { useFileManagerApi } from \"~/modules/FileManagerApiProvider/FileManagerApiContext\";\nimport { useFileManagerView } from \"~/modules/FileManagerRenderer/FileManagerViewProvider\";\nimport { getFilesLabel } from \"~/components/BulkActions/BulkActions\";\n\nexport const ActionDelete = observer(() => {\n const { deleteFile } = useFileManagerView();\n const { canDelete } = useFileManagerApi();\n\n const { useWorker, useButtons, useDialog } = FileManagerViewConfig.Browser.BulkAction;\n const { IconButton } = useButtons();\n const worker = useWorker();\n const { showConfirmationDialog, showResultsDialog } = useDialog();\n\n const filesLabel = useMemo(() => {\n return getFilesLabel(worker.items.length);\n }, [worker.items.length]);\n\n const canDeleteAll = useMemo(() => {\n return worker.items.every(item => canDelete(item));\n }, [worker.items]);\n\n const openDeleteDialog = () =>\n showConfirmationDialog({\n title: \"Delete files\",\n message: `You are about to delete ${filesLabel}. Are you sure you want to continue?`,\n loadingLabel: `Processing ${filesLabel}`,\n execute: async () => {\n await worker.processInSeries(async ({ item, report }) => {\n try {\n await deleteFile(item.id);\n\n report.success({\n title: `${item.name}`,\n message: \"File successfully deleted.\"\n });\n } catch (e) {\n report.error({\n title: `${item.name}`,\n message: e.message\n });\n }\n });\n\n worker.resetItems();\n\n showResultsDialog({\n results: worker.results,\n title: \"Delete files\",\n message: \"Finished deleting files! See full report below:\"\n });\n }\n });\n\n if (!canDeleteAll) {\n console.log(\"You don't have permissions to delete files.\");\n return null;\n }\n\n return (\n <IconButton\n icon={<DeleteIcon />}\n onAction={openDeleteDialog}\n label={`Delete ${filesLabel}`}\n tooltipPlacement={\"bottom\"}\n />\n );\n});\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAEA,IAAAG,sBAAA,GAAAH,OAAA;AACA,IAAAI,sBAAA,GAAAJ,OAAA;AACA,IAAAK,wBAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AAEO,IAAMO,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG,IAAAE,uBAAQ,E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-14,7 +14,7 @@ var _BatchEditorDialog = require("./BatchEditorDialog");
|
|
|
14
14
|
var _ActionEditPresenter = require("./ActionEditPresenter");
|
|
15
15
|
var _useActionEditWorker = require("./useActionEditWorker");
|
|
16
16
|
var useButtons = _FileManagerViewConfig.FileManagerViewConfig.Browser.BulkAction.useButtons;
|
|
17
|
-
var ActionEdit = (0, _mobxReactLite.observer)(function () {
|
|
17
|
+
var ActionEdit = exports.ActionEdit = (0, _mobxReactLite.observer)(function () {
|
|
18
18
|
var _useFileModel = (0, _useFileModel2.useFileModel)(),
|
|
19
19
|
allModelFields = _useFileModel.fields;
|
|
20
20
|
var config = (0, _FileManagerViewConfig.useFileManagerViewConfig)();
|
|
@@ -65,6 +65,5 @@ var ActionEdit = (0, _mobxReactLite.observer)(function () {
|
|
|
65
65
|
onApply: onBatchEditorSubmit
|
|
66
66
|
}));
|
|
67
67
|
});
|
|
68
|
-
exports.ActionEdit = ActionEdit;
|
|
69
68
|
|
|
70
69
|
//# sourceMappingURL=ActionEdit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_mobxReactLite","_edit","_FileManagerViewConfig","_useFileModel2","_BatchEditorDialog","_ActionEditPresenter","_useActionEditWorker","useButtons","FileManagerViewConfig","Browser","BulkAction","ActionEdit","observer","_useFileModel","useFileModel","allModelFields","fields","config","useFileManagerViewConfig","_useButtons","IconButton","useMemo","fileDetails","find","field","name","filter","fieldId","worker","useActionEditWorker","presenter","ActionEditPresenter","useEffect","load","onBatchEditorSubmit","useCallback","batch","closeEditor","openWorkerDialog","vm","show","canEditAll","console","log","default","createElement","Fragment","icon","ReactComponent","onAction","openEditor","label","concat","filesLabel","tooltipPlacement","BatchEditorDialog","onClose","currentBatch","editorVm","onApply"
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_mobxReactLite","_edit","_FileManagerViewConfig","_useFileModel2","_BatchEditorDialog","_ActionEditPresenter","_useActionEditWorker","useButtons","FileManagerViewConfig","Browser","BulkAction","ActionEdit","exports","observer","_useFileModel","useFileModel","allModelFields","fields","config","useFileManagerViewConfig","_useButtons","IconButton","useMemo","fileDetails","find","field","name","filter","fieldId","worker","useActionEditWorker","presenter","ActionEditPresenter","useEffect","load","onBatchEditorSubmit","useCallback","batch","closeEditor","openWorkerDialog","vm","show","canEditAll","console","log","default","createElement","Fragment","icon","ReactComponent","onAction","openEditor","label","concat","filesLabel","tooltipPlacement","BatchEditorDialog","onClose","currentBatch","editorVm","onApply"],"sources":["ActionEdit.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useMemo } from \"react\";\nimport { observer } from \"mobx-react-lite\";\nimport { ReactComponent as EditIcon } from \"@material-design-icons/svg/outlined/edit.svg\";\nimport {\n FileManagerViewConfig,\n useFileManagerViewConfig\n} from \"~/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig\";\nimport { useFileModel } from \"~/hooks/useFileModel\";\nimport { BatchDTO } from \"~/components/BulkActions/ActionEdit/domain\";\nimport { BatchEditorDialog } from \"./BatchEditorDialog\";\nimport { ActionEditPresenter } from \"./ActionEditPresenter\";\nimport { useActionEditWorker } from \"~/components/BulkActions/ActionEdit/useActionEditWorker\";\n\nconst { useButtons } = FileManagerViewConfig.Browser.BulkAction;\n\nexport const ActionEdit = observer(() => {\n const { fields: allModelFields } = useFileModel();\n const config = useFileManagerViewConfig();\n const { IconButton } = useButtons();\n\n const fields = useMemo(() => {\n if (!config.fileDetails.fields.find(field => field.name === \"tags\")) {\n return allModelFields.filter(field => field.fieldId !== \"tags\");\n }\n\n return allModelFields;\n }, [config, allModelFields]);\n\n const worker = useActionEditWorker(fields);\n\n const presenter = useMemo<ActionEditPresenter>(() => {\n return new ActionEditPresenter();\n }, []);\n\n useEffect(() => {\n presenter.load(fields);\n }, [fields]);\n\n const onBatchEditorSubmit = useCallback(\n (batch: BatchDTO) => {\n presenter.closeEditor();\n worker.openWorkerDialog(batch);\n },\n [worker.openWorkerDialog]\n );\n\n if (!presenter.vm.show) {\n return null;\n }\n\n if (!worker.canEditAll) {\n console.log(\"You don't have permissions to edit files.\");\n return null;\n }\n\n return (\n <>\n <IconButton\n icon={<EditIcon />}\n onAction={() => presenter.openEditor()}\n label={`Edit ${worker.filesLabel}`}\n tooltipPlacement={\"bottom\"}\n />\n <BatchEditorDialog\n onClose={() => presenter.closeEditor()}\n fields={presenter.vm.fields}\n batch={presenter.vm.currentBatch}\n vm={presenter.vm.editorVm}\n onApply={onBatchEditorSubmit}\n />\n </>\n );\n});\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAH,OAAA;AAIA,IAAAI,cAAA,GAAAJ,OAAA;AAEA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,oBAAA,GAAAN,OAAA;AACA,IAAAO,oBAAA,GAAAP,OAAA;AAEA,IAAQQ,UAAU,GAAKC,4CAAqB,CAACC,OAAO,CAACC,UAAU,CAAvDH,UAAU;AAEX,IAAMI,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG,IAAAE,uBAAQ,EAAC,YAAM;EACrC,IAAAC,aAAA,GAAmC,IAAAC,2BAAY,EAAC,CAAC;IAAjCC,cAAc,GAAAF,aAAA,CAAtBG,MAAM;EACd,IAAMC,MAAM,GAAG,IAAAC,+CAAwB,EAAC,CAAC;EACzC,IAAAC,WAAA,GAAuBb,UAAU,CAAC,CAAC;IAA3Bc,UAAU,GAAAD,WAAA,CAAVC,UAAU;EAElB,IAAMJ,MAAM,GAAG,IAAAK,cAAO,EAAC,YAAM;IACzB,IAAI,CAACJ,MAAM,CAACK,WAAW,CAACN,MAAM,CAACO,IAAI,CAAC,UAAAC,KAAK;MAAA,OAAIA,KAAK,CAACC,IAAI,KAAK,MAAM;IAAA,EAAC,EAAE;MACjE,OAAOV,cAAc,CAACW,MAA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CAACyB,UAAU,CAAG;IACnCC,gBAAgB,EAAE;EAAS,CAC9B,CAAC,eACF1D,MAAA,CAAAgD,OAAA,CAAAC,aAAA,CAAC1C,kBAAA,CAAAoD,iBAAiB;IACdC,OAAO,EAAE,SAAAA,QAAA;MAAA,OAAM1B,SAAS,CAACO,WAAW,CAAC,CAAC;IAAA,CAAC;IACvCrB,MAAM,EAAEc,SAAS,CAACS,EAAE,CAACvB,MAAO;IAC5BoB,KAAK,EAAEN,SAAS,CAACS,EAAE,CAACkB,YAAa;IACjClB,EAAE,EAAET,SAAS,CAACS,EAAE,CAACmB,QAAS;IAC1BC,OAAO,EAAEzB;EAAoB,CAChC,CACH,CAAC;AAEX,CAAC,CAAC","ignoreList":[]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Dialog } from "@webiny/ui/Dialog";
|
|
3
3
|
export declare const ActionEditFormContainer: import("@emotion/styled").StyledComponent<{
|
|
4
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
6
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
7
|
export declare const DialogContainer: import("@emotion/styled").StyledComponent<import("@webiny/ui/Dialog").DialogProps & {
|
|
8
8
|
theme?: import("@emotion/react").Theme | undefined;
|
|
@@ -11,19 +11,17 @@ export declare const DialogContainer: import("@emotion/styled").StyledComponent<
|
|
|
11
11
|
}>;
|
|
12
12
|
export declare const BatchEditorContainer: import("@emotion/styled").StyledComponent<{
|
|
13
13
|
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
-
as?: import("react").ElementType<any> | undefined;
|
|
14
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
15
15
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
16
16
|
export declare const AddOperationInner: import("@emotion/styled").StyledComponent<{
|
|
17
17
|
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
-
as?: import("react").ElementType<any> | undefined;
|
|
18
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
19
19
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
20
20
|
interface ButtonIconProps {
|
|
21
21
|
disabled?: boolean;
|
|
22
22
|
}
|
|
23
23
|
export declare const ButtonIcon: import("@emotion/styled").StyledComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
24
24
|
alt?: string | undefined;
|
|
25
|
-
} & {
|
|
26
|
-
children?: import("react").ReactNode;
|
|
27
25
|
} & {
|
|
28
26
|
theme?: import("@emotion/react").Theme | undefined;
|
|
29
27
|
} & ButtonIconProps, {}, {}>;
|