@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
|
@@ -7,11 +7,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.OperatorMapper = exports.FieldMapper = void 0;
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var FieldMapper = /*#__PURE__*/function () {
|
|
10
|
+
var FieldMapper = exports.FieldMapper = /*#__PURE__*/function () {
|
|
11
11
|
function FieldMapper() {
|
|
12
12
|
(0, _classCallCheck2.default)(this, FieldMapper);
|
|
13
13
|
}
|
|
14
|
-
(0, _createClass2.default)(FieldMapper, null, [{
|
|
14
|
+
return (0, _createClass2.default)(FieldMapper, null, [{
|
|
15
15
|
key: "toDTO",
|
|
16
16
|
value: function toDTO(configuration) {
|
|
17
17
|
return configuration.map(function (field) {
|
|
@@ -24,14 +24,12 @@ var FieldMapper = /*#__PURE__*/function () {
|
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
}]);
|
|
27
|
-
return FieldMapper;
|
|
28
27
|
}();
|
|
29
|
-
exports.
|
|
30
|
-
var OperatorMapper = /*#__PURE__*/function () {
|
|
28
|
+
var OperatorMapper = exports.OperatorMapper = /*#__PURE__*/function () {
|
|
31
29
|
function OperatorMapper() {
|
|
32
30
|
(0, _classCallCheck2.default)(this, OperatorMapper);
|
|
33
31
|
}
|
|
34
|
-
(0, _createClass2.default)(OperatorMapper, null, [{
|
|
32
|
+
return (0, _createClass2.default)(OperatorMapper, null, [{
|
|
35
33
|
key: "toDTO",
|
|
36
34
|
value: function toDTO(operators) {
|
|
37
35
|
return operators.map(function (operator) {
|
|
@@ -42,8 +40,6 @@ var OperatorMapper = /*#__PURE__*/function () {
|
|
|
42
40
|
});
|
|
43
41
|
}
|
|
44
42
|
}]);
|
|
45
|
-
return OperatorMapper;
|
|
46
43
|
}();
|
|
47
|
-
exports.OperatorMapper = OperatorMapper;
|
|
48
44
|
|
|
49
45
|
//# sourceMappingURL=FieldMapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["FieldMapper","_classCallCheck2","default","_createClass2","key","value","toDTO","configuration","map","field","label","operators","OperatorMapper","raw","
|
|
1
|
+
{"version":3,"names":["FieldMapper","exports","_classCallCheck2","default","_createClass2","key","value","toDTO","configuration","map","field","label","operators","OperatorMapper","raw","operator"],"sources":["FieldMapper.ts"],"sourcesContent":["import { Field, FieldDTO, Operator, OperatorDTO } from \"./Field\";\n\nexport class FieldMapper {\n static toDTO(configuration: Field[]): FieldDTO[] {\n return configuration.map(field => {\n return {\n label: field.label,\n value: field.value,\n operators: OperatorMapper.toDTO(field.operators),\n raw: field.raw\n };\n });\n }\n}\n\nexport class OperatorMapper {\n static toDTO(operators: Operator[]): OperatorDTO[] {\n return operators.map(operator => ({\n value: operator.value || \"\",\n label: operator.label || \"\"\n }));\n }\n}\n"],"mappings":";;;;;;;;;IAEaA,WAAW,GAAAC,OAAA,CAAAD,WAAA;EAAA,SAAAA,YAAA;IAAA,IAAAE,gBAAA,CAAAC,OAAA,QAAAH,WAAA;EAAA;EAAA,WAAAI,aAAA,CAAAD,OAAA,EAAAH,WAAA;IAAAK,GAAA;IAAAC,KAAA,EACpB,SAAAC,MAAaC,aAAsB,EAAc;MAC7C,OAAOA,aAAa,CAACC,GAAG,CAAC,UAAAC,KAAK,EAAI;QAC9B,OAAO;UACHC,KAAK,EAAED,KAAK,CAACC,KAAK;UAClBL,KAAK,EAAEI,KAAK,CAACJ,KAAK;UAClBM,SAAS,EAAEC,cAAc,CAACN,KAAK,CAACG,KAAK,CAACE,SAAS,CAAC;UAChDE,GAAG,EAAEJ,KAAK,CAACI;QACf,CAAC;MACL,CAAC,CAAC;IACN;EAAC;AAAA;AAAA,IAGQD,cAAc,GAAAZ,OAAA,CAAAY,cAAA;EAAA,SAAAA,eAAA;IAAA,IAAAX,gBAAA,CAAAC,OAAA,QAAAU,cAAA;EAAA;EAAA,WAAAT,aAAA,CAAAD,OAAA,EAAAU,cAAA;IAAAR,GAAA;IAAAC,KAAA,EACvB,SAAAC,MAAaK,SAAqB,EAAiB;MAC/C,OAAOA,SAAS,CAACH,GAAG,CAAC,UAAAM,QAAQ;QAAA,OAAK;UAC9BT,KAAK,EAAES,QAAQ,CAACT,KAAK,IAAI,EAAE;UAC3BK,KAAK,EAAEI,QAAQ,CAACJ,KAAK,IAAI;QAC7B,CAAC;MAAA,CAAC,CAAC;IACP;EAAC;AAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_Batch","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_BatchMapper","_Field","_FieldMapper"],"sources":["index.ts"],"sourcesContent":["export * from \"./Batch\";\nexport * from \"./BatchMapper\";\nexport * from \"./Field\";\nexport * from \"./FieldMapper\";\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,YAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,YAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,YAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,YAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,MAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,MAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,MAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAE,MAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,YAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,YAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,YAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAG,YAAA,CAAAP,GAAA;IAAA;EAAA;AAAA"}
|
|
1
|
+
{"version":3,"names":["_Batch","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_BatchMapper","_Field","_FieldMapper"],"sources":["index.ts"],"sourcesContent":["export * from \"./Batch\";\nexport * from \"./BatchMapper\";\nexport * from \"./Field\";\nexport * from \"./FieldMapper\";\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAA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,"names":["_ActionEdit","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["index.tsx"],"sourcesContent":["export * from \"./ActionEdit\";\n"],"mappings":";;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,WAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,WAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,WAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
|
|
1
|
+
{"version":3,"names":["_ActionEdit","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["index.tsx"],"sourcesContent":["export * from \"./ActionEdit\";\n"],"mappings":";;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,WAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,WAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,WAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_omit","_interopRequireDefault","_appHeadlessCmsCommon","_GraphQLInputMapper","_FileManagerViewProvider","_","_FileManagerApiContext","_FileManagerViewConfig","_FileManagerViewConfi","FileManagerViewConfig","Browser","BulkAction","useWorker","useBulkActionDialog","useDialog","useActionEditWorker","fields","_useFileManagerView","useFileManagerView","updateFile","_useBulkActionDialog","showConfirmationDialog","showResultsDialog","worker","_useFileManagerApi","useFileManagerApi","canEdit","filesLabel","useMemo","getFilesLabel","items","length","canEditAll","every","item","openWorkerDialog","batch","title","message","concat","loadingLabel","execute","processInSeries","_ref","report","modifiedFileData","GraphQLInputMapper","applyOperations","output","omit","fileData","prepareFormData","id","success","name","e","error","resetItems","results"],"sources":["useActionEditWorker.ts"],"sourcesContent":["import { useMemo } from \"react\";\nimport omit from \"lodash/omit\";\nimport { FileItem } from \"@webiny/app-admin/types\";\nimport { prepareFormData } from \"@webiny/app-headless-cms-common\";\nimport { CmsModelField } from \"@webiny/app-headless-cms-common/types\";\nimport { BatchDTO } from \"~/components/BulkActions/ActionEdit/domain\";\nimport { GraphQLInputMapper } from \"~/components/BulkActions/ActionEdit/GraphQLInputMapper\";\nimport { useFileManagerView } from \"~/modules/FileManagerRenderer/FileManagerViewProvider\";\nimport { getFilesLabel } from \"~/components/BulkActions\";\nimport { useFileManagerApi } from \"~/modules/FileManagerApiProvider/FileManagerApiContext\";\nimport { FileManagerViewConfig } from \"~/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig\";\n\nconst { useWorker, useDialog: useBulkActionDialog } = FileManagerViewConfig.Browser.BulkAction;\n\nexport function useActionEditWorker(fields: CmsModelField[]) {\n const { updateFile } = useFileManagerView();\n const { showConfirmationDialog, showResultsDialog } = useBulkActionDialog();\n const worker = useWorker();\n const { canEdit } = useFileManagerApi();\n\n const filesLabel = useMemo(() => {\n return getFilesLabel(worker.items.length);\n }, [worker.items.length]);\n\n const canEditAll = useMemo(() => {\n return worker.items.every(item => canEdit(item));\n }, [worker.items]);\n\n const openWorkerDialog = (batch: BatchDTO) => {\n showConfirmationDialog({\n title: \"Edit files\",\n message: `You are about to edit ${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 const modifiedFileData = GraphQLInputMapper.applyOperations(\n item,\n batch\n ) as FileItem;\n\n const output = omit(modifiedFileData, [\n \"id\",\n \"createdBy\",\n \"createdOn\",\n \"src\"\n ]);\n\n const fileData = prepareFormData(output, fields);\n\n await updateFile(item.id, fileData);\n\n report.success({\n title: `${item.name}`,\n message: \"File successfully edited.\"\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: \"Edit files\",\n message: \"Finished editing files! See full report below:\"\n });\n }\n });\n };\n\n return { filesLabel, canEditAll, openWorkerDialog };\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,qBAAA,GAAAH,OAAA;AAGA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,wBAAA,GAAAL,OAAA;AACA,IAAAM,CAAA,GAAAN,OAAA;AACA,IAAAO,sBAAA,GAAAP,OAAA;AACA,IAAAQ,sBAAA,GAAAR,OAAA;AAEA,IAAAS,qBAAA,GAAsDC,4CAAqB,CAACC,OAAO,CAACC,UAAU;EAAtFC,SAAS,GAAAJ,qBAAA,CAATI,SAAS;EAAaC,mBAAmB,GAAAL,qBAAA,CAA9BM,SAAS;AAErB,SAASC,mBAAmBA,CAACC,MAAuB,EAAE;EACzD,IAAAC,mBAAA,GAAuB,IAAAC,2CAAkB,EAAC,CAAC;IAAnCC,UAAU,GAAAF,mBAAA,CAAVE,UAAU;EAClB,IAAAC,oBAAA,GAAsDP,mBAAmB,CAAC,CAAC;IAAnEQ,sBAAsB,GAAAD,oBAAA,CAAtBC,sBAAsB;IAAEC,iBAAiB,GAAAF,oBAAA,CAAjBE,iBAAiB;EACjD,IAAMC,MAAM,GAAGX,SAAS,CAAC,CAAC;EAC1B,IAAAY,kBAAA,GAAoB,IAAAC,wCAAiB,EAAC,CAAC;IAA/BC,OAAO,GAAAF,kBAAA,CAAPE,OAAO;EAEf,IAAM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,CAAE;cACrBhB,OAAO,EAAE;YACb,CAAC,CAAC;UACN,CAAC,CAAC,OAAOiB,CAAC,EAAE;YACRX,MAAM,CAACY,KAAK,CAAC;cACTnB,KAAK,KAAAE,MAAA,CAAKL,IAAI,CAACoB,IAAI,CAAE;cACrBhB,OAAO,EAAEiB,CAAC,CAACjB;YACf,CAAC,CAAC;UACN;QACJ,CAAC,CAAC;QAEFf,MAAM,CAACkC,UAAU,CAAC,CAAC;QAEnBnC,iBAAiB,CAAC;UACdoC,OAAO,EAAEnC,MAAM,CAACmC,OAAO;UACvBrB,KAAK,EAAE,YAAY;UACnBC,OAAO,EAAE;QACb,CAAC,CAAC;MACN;IACJ,CAAC,CAAC;EACN,CAAC;EAED,OAAO;IAAEX,UAAU,EAAVA,UAAU;IAAEK,UAAU,EAAVA,UAAU;IAAEG,gBAAgB,EAAhBA;EAAiB,CAAC;AACvD"}
|
|
1
|
+
{"version":3,"names":["_react","require","_omit","_interopRequireDefault","_appHeadlessCmsCommon","_GraphQLInputMapper","_FileManagerViewProvider","_","_FileManagerApiContext","_FileManagerViewConfig","_FileManagerViewConfi","FileManagerViewConfig","Browser","BulkAction","useWorker","useBulkActionDialog","useDialog","useActionEditWorker","fields","_useFileManagerView","useFileManagerView","updateFile","_useBulkActionDialog","showConfirmationDialog","showResultsDialog","worker","_useFileManagerApi","useFileManagerApi","canEdit","filesLabel","useMemo","getFilesLabel","items","length","canEditAll","every","item","openWorkerDialog","batch","title","message","concat","loadingLabel","execute","processInSeries","_ref","report","modifiedFileData","GraphQLInputMapper","applyOperations","output","omit","fileData","prepareFormData","id","success","name","e","error","resetItems","results"],"sources":["useActionEditWorker.ts"],"sourcesContent":["import { useMemo } from \"react\";\nimport omit from \"lodash/omit\";\nimport { FileItem } from \"@webiny/app-admin/types\";\nimport { prepareFormData } from \"@webiny/app-headless-cms-common\";\nimport { CmsModelField } from \"@webiny/app-headless-cms-common/types\";\nimport { BatchDTO } from \"~/components/BulkActions/ActionEdit/domain\";\nimport { GraphQLInputMapper } from \"~/components/BulkActions/ActionEdit/GraphQLInputMapper\";\nimport { useFileManagerView } from \"~/modules/FileManagerRenderer/FileManagerViewProvider\";\nimport { getFilesLabel } from \"~/components/BulkActions\";\nimport { useFileManagerApi } from \"~/modules/FileManagerApiProvider/FileManagerApiContext\";\nimport { FileManagerViewConfig } from \"~/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig\";\n\nconst { useWorker, useDialog: useBulkActionDialog } = FileManagerViewConfig.Browser.BulkAction;\n\nexport function useActionEditWorker(fields: CmsModelField[]) {\n const { updateFile } = useFileManagerView();\n const { showConfirmationDialog, showResultsDialog } = useBulkActionDialog();\n const worker = useWorker();\n const { canEdit } = useFileManagerApi();\n\n const filesLabel = useMemo(() => {\n return getFilesLabel(worker.items.length);\n }, [worker.items.length]);\n\n const canEditAll = useMemo(() => {\n return worker.items.every(item => canEdit(item));\n }, [worker.items]);\n\n const openWorkerDialog = (batch: BatchDTO) => {\n showConfirmationDialog({\n title: \"Edit files\",\n message: `You are about to edit ${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 const modifiedFileData = GraphQLInputMapper.applyOperations(\n item,\n batch\n ) as FileItem;\n\n const output = omit(modifiedFileData, [\n \"id\",\n \"createdBy\",\n \"createdOn\",\n \"src\"\n ]);\n\n const fileData = prepareFormData(output, fields);\n\n await updateFile(item.id, fileData);\n\n report.success({\n title: `${item.name}`,\n message: \"File successfully edited.\"\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: \"Edit files\",\n message: \"Finished editing files! See full report below:\"\n });\n }\n });\n };\n\n return { filesLabel, canEditAll, openWorkerDialog };\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAC,sBAAA,CAAAF,OA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C;EAED,OAAO;IAAEX,UAAU,EAAVA,UAAU;IAAEK,UAAU,EAAVA,UAAU;IAAEG,gBAAgB,EAAhBA;EAAiB,CAAC;AACvD","ignoreList":[]}
|
|
@@ -13,7 +13,7 @@ var _FileManagerViewProvider = require("../../modules/FileManagerRenderer/FileMa
|
|
|
13
13
|
var _FileManagerViewConfig = require("../../modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig");
|
|
14
14
|
var _BulkActions = require("./BulkActions");
|
|
15
15
|
var _constants = require("../../constants");
|
|
16
|
-
var ActionMove = (0, _mobxReactLite.observer)(function () {
|
|
16
|
+
var ActionMove = exports.ActionMove = (0, _mobxReactLite.observer)(function () {
|
|
17
17
|
var _useFileManagerView = (0, _FileManagerViewProvider.useFileManagerView)(),
|
|
18
18
|
moveFileToFolder = _useFileManagerView.moveFileToFolder;
|
|
19
19
|
var _useNavigateFolder = (0, _appAco.useNavigateFolder)(),
|
|
@@ -84,6 +84,5 @@ var ActionMove = (0, _mobxReactLite.observer)(function () {
|
|
|
84
84
|
tooltipPlacement: "bottom"
|
|
85
85
|
});
|
|
86
86
|
});
|
|
87
|
-
exports.ActionMove = ActionMove;
|
|
88
87
|
|
|
89
88
|
//# sourceMappingURL=ActionMove.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_drive_file_move","_mobxReactLite","_appAco","_FileManagerViewProvider","_FileManagerViewConfig","_BulkActions","_constants","ActionMove","observer","_useFileManagerView","useFileManagerView","moveFileToFolder","_useNavigateFolder","useNavigateFolder","currentFolderId","_FileManagerViewConfi","FileManagerViewConfig","Browser","BulkAction","useWorker","useButtons","useDialog","_useButtons","IconButton","worker","_useDialog","showConfirmationDialog","showResultsDialog","_useMoveToFolderDialo","useMoveToFolderDialog","showMoveDialog","showDialog","filesLabel","useMemo","getFilesLabel","items","length","openWorkerDialog","useCallback","folder","title","message","concat","loadingLabel","execute","processInSeries","_ref","item","report","id","success","name","e","error","resetItems","results","openMoveDialog","acceptLabel","focusedFolderId","ROOT_FOLDER","onAccept","_ref2","default","createElement","icon","ReactComponent","onAction","label","tooltipPlacement"
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_drive_file_move","_mobxReactLite","_appAco","_FileManagerViewProvider","_FileManagerViewConfig","_BulkActions","_constants","ActionMove","exports","observer","_useFileManagerView","useFileManagerView","moveFileToFolder","_useNavigateFolder","useNavigateFolder","currentFolderId","_FileManagerViewConfi","FileManagerViewConfig","Browser","BulkAction","useWorker","useButtons","useDialog","_useButtons","IconButton","worker","_useDialog","showConfirmationDialog","showResultsDialog","_useMoveToFolderDialo","useMoveToFolderDialog","showMoveDialog","showDialog","filesLabel","useMemo","getFilesLabel","items","length","openWorkerDialog","useCallback","folder","title","message","concat","loadingLabel","execute","processInSeries","_ref","item","report","id","success","name","e","error","resetItems","results","openMoveDialog","acceptLabel","focusedFolderId","ROOT_FOLDER","onAccept","_ref2","default","createElement","icon","ReactComponent","onAction","label","tooltipPlacement"],"sources":["ActionMove.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from \"react\";\nimport { ReactComponent as MoveIcon } from \"@material-design-icons/svg/outlined/drive_file_move.svg\";\nimport { observer } from \"mobx-react-lite\";\nimport { useMoveToFolderDialog, useNavigateFolder } from \"@webiny/app-aco\";\nimport { FolderItem } from \"@webiny/app-aco/types\";\n\nimport { useFileManagerView } from \"~/modules/FileManagerRenderer/FileManagerViewProvider\";\nimport { FileManagerViewConfig } from \"~/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig\";\nimport { getFilesLabel } from \"~/components/BulkActions/BulkActions\";\nimport { ROOT_FOLDER } from \"~/constants\";\n\nexport const ActionMove = observer(() => {\n const { moveFileToFolder } = useFileManagerView();\n const { currentFolderId } = useNavigateFolder();\n\n const { useWorker, useButtons, useDialog } = FileManagerViewConfig.Browser.BulkAction;\n const { IconButton } = useButtons();\n const worker = useWorker();\n const { showConfirmationDialog, showResultsDialog } = useDialog();\n const { showDialog: showMoveDialog } = useMoveToFolderDialog();\n\n const filesLabel = useMemo(() => {\n return getFilesLabel(worker.items.length);\n }, [worker.items.length]);\n\n const openWorkerDialog = useCallback(\n (folder: FolderItem) => {\n showConfirmationDialog({\n title: \"Move files\",\n message: `You are about to move ${filesLabel} to ${folder.title}. 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 moveFileToFolder(item.id, folder.id);\n\n report.success({\n title: `${item.name}`,\n message: \"File successfully moved.\"\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: \"Move files\",\n message: \"Finished moving files! See full report below:\"\n });\n }\n });\n },\n [filesLabel]\n );\n\n const openMoveDialog = () =>\n showMoveDialog({\n title: \"Select folder\",\n message: \"Select a new location for selected files:\",\n loadingLabel: `Processing ${filesLabel}`,\n acceptLabel: `Move`,\n focusedFolderId: currentFolderId || ROOT_FOLDER,\n async onAccept({ folder }) {\n openWorkerDialog(folder);\n }\n });\n\n return (\n <IconButton\n icon={<MoveIcon />}\n onAction={openMoveDialog}\n label={`Move ${filesLabel}`}\n tooltipPlacement={\"bottom\"}\n />\n );\n});\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAGA,IAAAI,wBAAA,GAAAJ,OAAA;AACA,IAAAK,sBAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AAEO,IAAMQ,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG,IAAAE,uBAAQ,EAAC,YAAM;EACrC,IAAAC,mBAAA,GAA6B,IAAAC,2CAAkB,EAAC,CAAC;IAAzCC,gB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aAAA,CAAChE,gBAAA,CAAAkE,cAAQ,MAAE,CAAE;IACnBC,QAAQ,EAAEV,cAAe;IACzBW,KAAK,UAAAzB,MAAA,CAAUV,UAAU,CAAG;IAC5BoC,gBAAgB,EAAE;EAAS,CAC9B,CAAC;AAEV,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
export declare const getFilesLabel: (count?: number) => string;
|
|
3
|
-
export declare const BulkActions: () => JSX.Element | null;
|
|
3
|
+
export declare const BulkActions: () => React.JSX.Element | null;
|
|
@@ -18,12 +18,11 @@ var _FileManagerViewProvider = require("../../modules/FileManagerRenderer/FileMa
|
|
|
18
18
|
var _BulkActions = require("./BulkActions.styled");
|
|
19
19
|
var _templateObject;
|
|
20
20
|
var t = _i18n.i18n.ns("app-file-manager/components/bulk-actions");
|
|
21
|
-
var getFilesLabel = function getFilesLabel() {
|
|
21
|
+
var getFilesLabel = exports.getFilesLabel = function getFilesLabel() {
|
|
22
22
|
var count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
23
23
|
return "".concat(count, " ").concat(count === 1 ? "file" : "files");
|
|
24
24
|
};
|
|
25
|
-
exports.
|
|
26
|
-
var BulkActions = function BulkActions() {
|
|
25
|
+
var BulkActions = exports.BulkActions = function BulkActions() {
|
|
27
26
|
var _useFileManagerViewCo = (0, _FileManagerViewConfig.useFileManagerViewConfig)(),
|
|
28
27
|
browser = _useFileManagerViewCo.browser;
|
|
29
28
|
var view = (0, _FileManagerViewProvider.useFileManagerView)();
|
|
@@ -46,6 +45,5 @@ var BulkActions = function BulkActions() {
|
|
|
46
45
|
}
|
|
47
46
|
})));
|
|
48
47
|
};
|
|
49
|
-
exports.BulkActions = BulkActions;
|
|
50
48
|
|
|
51
49
|
//# sourceMappingURL=BulkActions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_close","_i18n","_appAdmin","_Button","_Typography","_FileManagerViewConfig","_FileManagerViewProvider","_BulkActions","_templateObject","t","i18n","ns","getFilesLabel","count","arguments","length","undefined","concat","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_close","_i18n","_appAdmin","_Button","_Typography","_FileManagerViewConfig","_FileManagerViewProvider","_BulkActions","_templateObject","t","i18n","ns","getFilesLabel","exports","count","arguments","length","undefined","concat","BulkActions","_useFileManagerViewCo","useFileManagerViewConfig","browser","view","useFileManagerView","headline","useMemo","_taggedTemplateLiteral2","default","label","selected","hasOnSelectCallback","createElement","BulkActionsContainer","BulkActionsInner","ButtonsContainer","Typography","use","Buttons","actions","bulkActions","IconButton","icon","ReactComponent","onClick","setSelected"],"sources":["BulkActions.tsx"],"sourcesContent":["import React, { useMemo } from \"react\";\nimport { ReactComponent as Close } from \"@material-design-icons/svg/outlined/close.svg\";\nimport { i18n } from \"@webiny/app/i18n\";\nimport { Buttons } from \"@webiny/app-admin\";\nimport { IconButton } from \"@webiny/ui/Button\";\nimport { Typography } from \"@webiny/ui/Typography\";\n\nimport { useFileManagerViewConfig } from \"~/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig\";\nimport { useFileManagerView } from \"~/modules/FileManagerRenderer/FileManagerViewProvider\";\n\nimport { BulkActionsContainer, BulkActionsInner, ButtonsContainer } from \"./BulkActions.styled\";\n\nconst t = i18n.ns(\"app-file-manager/components/bulk-actions\");\n\nexport const getFilesLabel = (count = 0): string => {\n return `${count} ${count === 1 ? \"file\" : \"files\"}`;\n};\n\nexport const BulkActions = () => {\n const { browser } = useFileManagerViewConfig();\n const view = useFileManagerView();\n\n const headline = useMemo((): string => {\n return t`{label} selected:`({\n label: getFilesLabel(view.selected.length)\n });\n }, [view.selected]);\n\n if (view.hasOnSelectCallback || !view.selected.length) {\n return null;\n }\n\n return (\n <BulkActionsContainer>\n <BulkActionsInner>\n <ButtonsContainer>\n <Typography use={\"headline6\"}>{headline}</Typography>\n <Buttons actions={browser.bulkActions} />\n </ButtonsContainer>\n <IconButton icon={<Close />} onClick={() => view.setSelected([])} />\n </BulkActionsInner>\n </BulkActionsContainer>\n );\n};\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AAEA,IAAAM,sBAAA,GAAAN,OAAA;AACA,IAAAO,wBAAA,GAAAP,OAAA;AAEA,IAAAQ,YAAA,GAAAR,OAAA;AAAgG,IAAAS,eAAA;AAEhG,IAAMC,CAAC,GAAGC,UAAI,CAACC,EAAE,CAAC,0CAA0C,CAAC;AAEtD,IAAMC,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,SAAhBA,aAAaA,CAAA,EAA0B;EAAA,IAAtBE,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EACnC,UAAAG,MAAA,CAAUJ,KAAK,OAAAI,MAAA,CAAIJ,KAAK,KAAK,CAAC,GAAG,MAAM,GAAG,OAAO;AACrD,CAAC;AAEM,IAAMK,WAAW,GAAAN,OAAA,CAAAM,WAAA,GAAG,SAAdA,WAAWA,CAAA,EAAS;EAC7B,IAAAC,qBAAA,GAAoB,IAAAC,+CAAwB,EAAC,CAAC;IAAtCC,OAAO,GAAAF,qBAAA,CAAPE,OAAO;EACf,IAAMC,IAAI,GAAG,IAAAC,2CAAkB,EAAC,CAAC;EAEjC,IAAMC,QAAQ,GAAG,IAAAC,cAAO,EAAC,YAAc;IACnC,OAAOjB,CAAC,CAAAD,eAAA,KAAAA,eAAA,OAAAmB,uBAAA,CAAAC,OAAA,2BAAoB;MACxBC,KAAK,EAAEjB,aAAa,CAACW,IAAI,CAACO,QAAQ,CAACd,MAAM;IAC7C,CAAC,CAAC;EACN,CAAC,EAAE,CAACO,IAAI,CAACO,QAAQ,CAAC,CAAC;EAEnB,IAAIP,IAAI,CAACQ,mBAAmB,IAAI,CAACR,IAAI,CAACO,QAAQ,CAACd,MAAM,EAAE;IACnD,OAAO,IAAI;EACf;EAEA,oBACInB,MAAA,CAAA+B,OAAA,CAAAI,aAAA,CAACzB,YAAA,CAAA0B,oBAAoB,qBACjBpC,MAAA,CAAA+B,OAAA,CAAAI,aAAA,CAACzB,YAAA,CAAA2B,gBAAgB,qBACbrC,MAAA,CAAA+B,OAAA,CAAAI,aAAA,CAACzB,YAAA,CAAA4B,gBAAgB,qBACbtC,MAAA,CAAA+B,OAAA,CAAAI,aAAA,CAAC5B,WAAA,CAAAgC,UAAU;IAACC,GAAG,EAAE;EAAY,GAAEZ,QAAqB,CAAC,eACrD5B,MAAA,CAAA+B,OAAA,CAAAI,aAAA,CAAC9B,SAAA,CAAAoC,OAAO;IAACC,OAAO,EAAEjB,OAAO,CAACkB;EAAY,CAAE,CAC1B,CAAC,eACnB3C,MAAA,CAAA+B,OAAA,CAAAI,aAAA,CAAC7B,OAAA,CAAAsC,UAAU;IAACC,IAAI,eAAE7C,MAAA,CAAA+B,OAAA,CAAAI,aAAA,CAAChC,MAAA,CAAA2C,cAAK,MAAE,CAAE;IAACC,OAAO,EAAE,SAAAA,QAAA;MAAA,OAAMrB,IAAI,CAACsB,WAAW,CAAC,EAAE,CAAC;IAAA;EAAC,CAAE,CACrD,CACA,CAAC;AAE/B,CAAC","ignoreList":[]}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const BulkActionsContainer: 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 BulkActionsInner: 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 ButtonsContainer: 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>, {}>;
|
|
@@ -5,22 +5,42 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.ButtonsContainer = exports.BulkActionsInner = exports.BulkActionsContainer = void 0;
|
|
8
|
-
var
|
|
8
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
9
9
|
var _appAdmin = require("@webiny/app-admin");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
target: "e19j6q730"
|
|
13
|
-
})("width:100%;height:64px;background-color:var(--mdc-theme-surface);border-bottom:1px solid rgba(0,0,0,0.12);");
|
|
14
|
-
exports.BulkActionsContainer = BulkActionsContainer;
|
|
15
|
-
var BulkActionsInner = /*#__PURE__*/(0, _styled.default)("div", {
|
|
16
|
-
label: "BulkActionsInner",
|
|
17
|
-
target: "e19j6q731"
|
|
18
|
-
})("height:100%;display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 16px;");
|
|
19
|
-
exports.BulkActionsInner = BulkActionsInner;
|
|
20
|
-
var ButtonsContainer = /*#__PURE__*/(0, _styled.default)("div", {
|
|
21
|
-
label: "ButtonsContainer",
|
|
10
|
+
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)."; }
|
|
11
|
+
var BulkActionsContainer = exports.BulkActionsContainer = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
22
12
|
target: "e19j6q732"
|
|
23
|
-
}
|
|
24
|
-
|
|
13
|
+
} : {
|
|
14
|
+
target: "e19j6q732",
|
|
15
|
+
label: "BulkActionsContainer"
|
|
16
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
17
|
+
name: "31dgdi",
|
|
18
|
+
styles: "width:100%;height:64px;background-color:var(--mdc-theme-surface);border-bottom:1px solid rgba(0, 0, 0, 0.12)"
|
|
19
|
+
} : {
|
|
20
|
+
name: "31dgdi",
|
|
21
|
+
styles: "width:100%;height:64px;background-color:var(--mdc-theme-surface);border-bottom:1px solid rgba(0, 0, 0, 0.12)",
|
|
22
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJ1bGtBY3Rpb25zLnN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRzhDIiwiZmlsZSI6IkJ1bGtBY3Rpb25zLnN0eWxlZC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gXCJAZW1vdGlvbi9zdHlsZWRcIjtcbmltcG9ydCB7IEJ1dHRvbkNvbnRhaW5lciB9IGZyb20gXCJAd2ViaW55L2FwcC1hZG1pblwiO1xuXG5leHBvcnQgY29uc3QgQnVsa0FjdGlvbnNDb250YWluZXIgPSBzdHlsZWQuZGl2YFxuICAgIHdpZHRoOiAxMDAlO1xuICAgIGhlaWdodDogNjRweDtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1tZGMtdGhlbWUtc3VyZmFjZSk7XG4gICAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHJnYmEoMCwgMCwgMCwgMC4xMik7XG5gO1xuXG5leHBvcnQgY29uc3QgQnVsa0FjdGlvbnNJbm5lciA9IHN0eWxlZC5kaXZgXG4gICAgaGVpZ2h0OiAxMDAlO1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gICAgcGFkZGluZzogMCAxMnB4IDAgMTZweDtcbmA7XG5cbmV4cG9ydCBjb25zdCBCdXR0b25zQ29udGFpbmVyID0gc3R5bGVkLmRpdmBcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5cbiAgICAke0J1dHRvbkNvbnRhaW5lcn0ge1xuICAgICAgICBtYXJnaW46IDA7XG4gICAgfVxuYDtcbiJdfQ== */",
|
|
23
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
24
|
+
});
|
|
25
|
+
var BulkActionsInner = exports.BulkActionsInner = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
26
|
+
target: "e19j6q731"
|
|
27
|
+
} : {
|
|
28
|
+
target: "e19j6q731",
|
|
29
|
+
label: "BulkActionsInner"
|
|
30
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
31
|
+
name: "182dpry",
|
|
32
|
+
styles: "height:100%;display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 16px"
|
|
33
|
+
} : {
|
|
34
|
+
name: "182dpry",
|
|
35
|
+
styles: "height:100%;display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 16px",
|
|
36
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJ1bGtBY3Rpb25zLnN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBVTBDIiwiZmlsZSI6IkJ1bGtBY3Rpb25zLnN0eWxlZC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gXCJAZW1vdGlvbi9zdHlsZWRcIjtcbmltcG9ydCB7IEJ1dHRvbkNvbnRhaW5lciB9IGZyb20gXCJAd2ViaW55L2FwcC1hZG1pblwiO1xuXG5leHBvcnQgY29uc3QgQnVsa0FjdGlvbnNDb250YWluZXIgPSBzdHlsZWQuZGl2YFxuICAgIHdpZHRoOiAxMDAlO1xuICAgIGhlaWdodDogNjRweDtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1tZGMtdGhlbWUtc3VyZmFjZSk7XG4gICAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHJnYmEoMCwgMCwgMCwgMC4xMik7XG5gO1xuXG5leHBvcnQgY29uc3QgQnVsa0FjdGlvbnNJbm5lciA9IHN0eWxlZC5kaXZgXG4gICAgaGVpZ2h0OiAxMDAlO1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gICAgcGFkZGluZzogMCAxMnB4IDAgMTZweDtcbmA7XG5cbmV4cG9ydCBjb25zdCBCdXR0b25zQ29udGFpbmVyID0gc3R5bGVkLmRpdmBcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5cbiAgICAke0J1dHRvbkNvbnRhaW5lcn0ge1xuICAgICAgICBtYXJnaW46IDA7XG4gICAgfVxuYDtcbiJdfQ== */",
|
|
37
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
38
|
+
});
|
|
39
|
+
var ButtonsContainer = exports.ButtonsContainer = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
40
|
+
target: "e19j6q730"
|
|
41
|
+
} : {
|
|
42
|
+
target: "e19j6q730",
|
|
43
|
+
label: "ButtonsContainer"
|
|
44
|
+
})("display:flex;align-items:center;", _appAdmin.ButtonContainer, "{margin:0;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJ1bGtBY3Rpb25zLnN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0IwQyIsImZpbGUiOiJCdWxrQWN0aW9ucy5zdHlsZWQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tIFwiQGVtb3Rpb24vc3R5bGVkXCI7XG5pbXBvcnQgeyBCdXR0b25Db250YWluZXIgfSBmcm9tIFwiQHdlYmlueS9hcHAtYWRtaW5cIjtcblxuZXhwb3J0IGNvbnN0IEJ1bGtBY3Rpb25zQ29udGFpbmVyID0gc3R5bGVkLmRpdmBcbiAgICB3aWR0aDogMTAwJTtcbiAgICBoZWlnaHQ6IDY0cHg7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tbWRjLXRoZW1lLXN1cmZhY2UpO1xuICAgIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCByZ2JhKDAsIDAsIDAsIDAuMTIpO1xuYDtcblxuZXhwb3J0IGNvbnN0IEJ1bGtBY3Rpb25zSW5uZXIgPSBzdHlsZWQuZGl2YFxuICAgIGhlaWdodDogMTAwJTtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICAgIHBhZGRpbmc6IDAgMTJweCAwIDE2cHg7XG5gO1xuXG5leHBvcnQgY29uc3QgQnV0dG9uc0NvbnRhaW5lciA9IHN0eWxlZC5kaXZgXG4gICAgZGlzcGxheTogZmxleDtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgJHtCdXR0b25Db250YWluZXJ9IHtcbiAgICAgICAgbWFyZ2luOiAwO1xuICAgIH1cbmA7XG4iXX0= */"));
|
|
25
45
|
|
|
26
46
|
//# sourceMappingURL=BulkActions.styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_appAdmin","require","_EMOTION_STRINGIFIED_CSS_ERROR__","BulkActionsContainer","exports","_base","default","process","env","NODE_ENV","target","label","name","styles","map","toString","BulkActionsInner","ButtonsContainer","ButtonContainer"],"sources":["BulkActions.styled.tsx"],"sourcesContent":["import styled from \"@emotion/styled\";\nimport { ButtonContainer } from \"@webiny/app-admin\";\n\nexport const BulkActionsContainer = styled.div`\n width: 100%;\n height: 64px;\n background-color: var(--mdc-theme-surface);\n border-bottom: 1px solid rgba(0, 0, 0, 0.12);\n`;\n\nexport const BulkActionsInner = styled.div`\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 12px 0 16px;\n`;\n\nexport const ButtonsContainer = styled.div`\n display: flex;\n align-items: center;\n\n ${ButtonContainer} {\n margin: 0;\n }\n`;\n"],"mappings":";;;;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AAAoD,SAAAC,iCAAA;AAE7C,IAAMC,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,oBAAAE,KAAA,CAAAC,OAAA,SAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,GAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAG,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAb;AAAA,EAKhC;AAEM,IAAMc,gBAAgB,GAAAZ,OAAA,CAAAY,gBAAA,oBAAAX,KAAA,CAAAC,OAAA,SAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,GAAAJ,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAG,IAAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAb;AAAA,EAM5B;AAEM,IAAMe,gBAAgB,GAAAb,OAAA,CAAAa,gBAAA,oBAAAZ,KAAA,CAAAC,OAAA,SAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA;EAAAC,MAAA;AAAA;EAAAA,MAAA;EAAAC,KAAA;AAAA,uCAIvBO,yBAAe,mBAAAX,OAAA,CAAAC,GAAA,CAAAC,QAAA,olCAGpB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_ActionEdit","require","_ActionDelete","_ActionMove","_BulkActions","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get"],"sources":["index.tsx"],"sourcesContent":["export { ActionEdit } from \"./ActionEdit\";\nexport { ActionDelete } from \"./ActionDelete\";\nexport { ActionMove } from \"./ActionMove\";\nexport * from \"./BulkActions\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAAAI,MAAA,CAAAC,IAAA,CAAAF,YAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,YAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAZ,YAAA,CAAAI,GAAA;IAAA;EAAA;AAAA"}
|
|
1
|
+
{"version":3,"names":["_ActionEdit","require","_ActionDelete","_ActionMove","_BulkActions","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get"],"sources":["index.tsx"],"sourcesContent":["export { ActionEdit } from \"./ActionEdit\";\nexport { ActionDelete } from \"./ActionDelete\";\nexport { ActionMove } from \"./ActionMove\";\nexport * from \"./BulkActions\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAAAI,MAAA,CAAAC,IAAA,CAAAF,YAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,YAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAZ,YAAA,CAAAI,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -5,4 +5,4 @@ export interface DropFilesHereProps {
|
|
|
5
5
|
empty?: boolean;
|
|
6
6
|
onClick?: (event?: React.MouseEvent<HTMLElement>) => void;
|
|
7
7
|
}
|
|
8
|
-
export declare const DropFilesHere: ({ empty, onClick }: DropFilesHereProps) => JSX.Element;
|
|
8
|
+
export declare const DropFilesHere: ({ empty, onClick }: DropFilesHereProps) => React.JSX.Element;
|
|
@@ -12,7 +12,7 @@ var _Icon = require("@webiny/ui/Icon");
|
|
|
12
12
|
var _styled = require("./styled");
|
|
13
13
|
var _templateObject;
|
|
14
14
|
var t = _i18n.i18n.ns("app-admin/file-manager/components/drop-files-here");
|
|
15
|
-
var DropFilesHere = function DropFilesHere(_ref) {
|
|
15
|
+
var DropFilesHere = exports.DropFilesHere = function DropFilesHere(_ref) {
|
|
16
16
|
var empty = _ref.empty,
|
|
17
17
|
onClick = _ref.onClick;
|
|
18
18
|
return /*#__PURE__*/_react.default.createElement(_styled.DropFilesHereWrapper, {
|
|
@@ -24,6 +24,5 @@ var DropFilesHere = function DropFilesHere(_ref) {
|
|
|
24
24
|
icon: /*#__PURE__*/_react.default.createElement(_styled.DropFilesHereIcon, null)
|
|
25
25
|
}), /*#__PURE__*/_react.default.createElement("div", null, t(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["Drop files here"])))))));
|
|
26
26
|
};
|
|
27
|
-
exports.DropFilesHere = DropFilesHere;
|
|
28
27
|
|
|
29
28
|
//# sourceMappingURL=DropFilesHere.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_i18n","_Icon","_styled","_templateObject","t","i18n","ns","DropFilesHere","_ref","empty","onClick","default","createElement","DropFilesHereWrapper","DropFilesHereInner","DropFilesHereIconWrapper","Icon","icon","DropFilesHereIcon","_taggedTemplateLiteral2"
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_i18n","_Icon","_styled","_templateObject","t","i18n","ns","DropFilesHere","exports","_ref","empty","onClick","default","createElement","DropFilesHereWrapper","DropFilesHereInner","DropFilesHereIconWrapper","Icon","icon","DropFilesHereIcon","_taggedTemplateLiteral2"],"sources":["DropFilesHere.tsx"],"sourcesContent":["import React from \"react\";\nimport { i18n } from \"@webiny/app/i18n\";\nimport { Icon } from \"@webiny/ui/Icon\";\n\nimport {\n DropFilesHereWrapper,\n DropFilesHereInner,\n DropFilesHereIcon,\n DropFilesHereIconWrapper\n} from \"./styled\";\n\nconst t = i18n.ns(\"app-admin/file-manager/components/drop-files-here\");\n\nexport interface DropFilesHereProps {\n onDragLeave?: (event?: React.DragEvent<HTMLElement>) => void;\n onDrop?: (event?: React.DragEvent<HTMLElement>) => void;\n empty?: boolean;\n onClick?: (event?: React.MouseEvent<HTMLElement>) => void;\n}\n\nexport const DropFilesHere = ({ empty, onClick }: DropFilesHereProps) => {\n return (\n <DropFilesHereWrapper empty={empty} onClick={onClick}>\n <DropFilesHereInner empty={empty}>\n <DropFilesHereIconWrapper>\n <Icon icon={<DropFilesHereIcon />} />\n <div>{t`Drop files here`}</div>\n </DropFilesHereIconWrapper>\n </DropFilesHereInner>\n </DropFilesHereWrapper>\n );\n};\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AAKkB,IAAAI,eAAA;AAElB,IAAMC,CAAC,GAAGC,UAAI,CAACC,EAAE,CAAC,mDAAmD,CAAC;AAS/D,IAAMC,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,SAAhBA,aAAaA,CAAAE,IAAA,EAA+C;EAAA,IAAzCC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAEC,OAAO,GAAAF,IAAA,CAAPE,OAAO;EAC1C,oBACId,MAAA,CAAAe,OAAA,CAAAC,aAAA,CAACX,OAAA,CAAAY,oBAAoB;IAACJ,KAAK,EAAEA,KAAM;IAACC,OAAO,EAAEA;EAAQ,gBACjDd,MAAA,CAAAe,OAAA,CAAAC,aAAA,CAACX,OAAA,CAAAa,kBAAkB;IAACL,KAAK,EAAEA;EAAM,gBAC7Bb,MAAA,CAAAe,OAAA,CAAAC,aAAA,CAACX,OAAA,CAAAc,wBAAwB,qBACrBnB,MAAA,CAAAe,OAAA,CAAAC,aAAA,CAACZ,KAAA,CAAAgB,IAAI;IAACC,IAAI,eAAErB,MAAA,CAAAe,OAAA,CAAAC,aAAA,CAACX,OAAA,CAAAiB,iBAAiB,MAAE;EAAE,CAAE,CAAC,eACrCtB,MAAA,CAAAe,OAAA,CAAAC,aAAA,cAAMT,CAAC,CAAAD,eAAA,KAAAA,eAAA,OAAAiB,uBAAA,CAAAR,OAAA,wBAAuB,CACR,CACV,CACF,CAAC;AAE/B,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_DropFilesHere","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["index.tsx"],"sourcesContent":["export * from \"./DropFilesHere\";\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":["_DropFilesHere","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["index.tsx"],"sourcesContent":["export * from \"./DropFilesHere\";\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":[]}
|
|
@@ -4,20 +4,18 @@ declare type DropFilesHereWrapperProps = {
|
|
|
4
4
|
};
|
|
5
5
|
export declare const DropFilesHereWrapper: import("@emotion/styled").StyledComponent<{
|
|
6
6
|
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
-
as?: import("react").ElementType<any> | undefined;
|
|
7
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
8
8
|
} & DropFilesHereWrapperProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
9
|
export declare const DropFilesHereInner: import("@emotion/styled").StyledComponent<{
|
|
10
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
-
as?: import("react").ElementType<any> | undefined;
|
|
11
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
12
12
|
} & DropFilesHereWrapperProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
13
|
export declare const DropFilesHereIconWrapper: import("@emotion/styled").StyledComponent<{
|
|
14
14
|
theme?: import("@emotion/react").Theme | undefined;
|
|
15
|
-
as?: import("react").ElementType<any> | undefined;
|
|
15
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
16
16
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
17
17
|
export declare const DropFilesHereIcon: import("@emotion/styled").StyledComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
18
18
|
alt?: string | undefined;
|
|
19
|
-
} & {
|
|
20
|
-
children?: import("react").ReactNode;
|
|
21
19
|
} & {
|
|
22
20
|
theme?: import("@emotion/react").Theme | undefined;
|
|
23
21
|
}, {}, {}>;
|
|
@@ -5,36 +5,57 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.DropFilesHereWrapper = exports.DropFilesHereInner = exports.DropFilesHereIconWrapper = exports.DropFilesHereIcon = void 0;
|
|
8
|
-
var
|
|
8
|
+
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
9
9
|
var _cloud_upload = require("@material-design-icons/svg/filled/cloud_upload.svg");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
target: "
|
|
10
|
+
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)."; }
|
|
11
|
+
var DropFilesHereWrapper = exports.DropFilesHereWrapper = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
12
|
+
target: "e1dajg7m3"
|
|
13
|
+
} : {
|
|
14
|
+
target: "e1dajg7m3",
|
|
15
|
+
label: "DropFilesHereWrapper"
|
|
13
16
|
})("pointer-events:", function (_ref) {
|
|
14
17
|
var empty = _ref.empty;
|
|
15
18
|
return empty ? "all" : "none";
|
|
16
19
|
}, ";margin:0 auto;padding-top:0;height:calc(100vh - 95px);z-index:100;width:100%;position:absolute;background:", function (_ref2) {
|
|
17
20
|
var empty = _ref2.empty;
|
|
18
21
|
return empty ? "transparent" : "var(--mdc-theme-text-hint-on-light)";
|
|
19
|
-
}, ";");
|
|
20
|
-
exports.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
target: "
|
|
22
|
+
}, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBTzRFIiwiZmlsZSI6InN0eWxlZC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZ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ZmFjZSlcIiA6IFwidmFyKC0tbWRjLXRoZW1lLWJhY2tncm91bmQpXCJ9O1xuICAgIGJvcmRlci1yYWRpdXM6IDUwJTtcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgbGVmdDogNTAlO1xuICAgIHRvcDogNTAlO1xuICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWCgtNTAlKSB0cmFuc2xhdGVZKC01MCUpO1xuYDtcblxuZXhwb3J0IGNvbnN0IERyb3BGaWxlc0hlcmVJY29uV3JhcHBlciA9IHN0eWxlZChcImRpdlwiKWBcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgdG9wOiA5MHB4O1xuICAgIHdpZHRoOiAzMDBweDtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICBjb2xvcjogdmFyKC0tbWRjLXRoZW1lLW9uLXN1cmZhY2UpO1xuYDtcblxuZXhwb3J0IGNvbnN0IERyb3BGaWxlc0hlcmVJY29uID0gc3R5bGVkKFVwbG9hZEljb24pYFxuICAgIHdpZHRoOiAxMDBweCAhaW1wb3J0YW50O1xuICAgIGhlaWdodDogYXV0bztcbiAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gICAgY29sb3I6IHZhcigtLW1kYy10aGVtZS1vbi1zdXJmYWNlKTtcbmA7XG4iXX0= */"));
|
|
23
|
+
var DropFilesHereInner = exports.DropFilesHereInner = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
24
|
+
target: "e1dajg7m2"
|
|
25
|
+
} : {
|
|
26
|
+
target: "e1dajg7m2",
|
|
27
|
+
label: "DropFilesHereInner"
|
|
24
28
|
})("text-align:center;width:300px;height:300px;background-color:", function (_ref3) {
|
|
25
29
|
var empty = _ref3.empty;
|
|
26
30
|
return empty ? "var(--mdc-theme-surface)" : "var(--mdc-theme-background)";
|
|
27
|
-
}, ";border-radius:50%;position:absolute;left:50%;top:50%;transform:translateX(-50%) translateY(-50%);");
|
|
28
|
-
exports.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
target: "
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
31
|
+
}, ";border-radius:50%;position:absolute;left:50%;top:50%;transform:translateX(-50%) translateY(-50%);" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0IwRSIsImZpbGUiOiJzdHlsZWQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tIFwiQGVtb3Rpb24vc3R5bGVkXCI7XG5pbXBvcnQgeyBSZWFjdENvbXBvbmVudCBhcyBVcGxvYWRJY29uIH0gZnJvbSBcIkBtYXRlcmlhbC1kZXNpZ24taWNvbnMvc3ZnL2ZpbGxlZC9jbG91ZF91cGxvYWQuc3ZnXCI7XG5cbnR5cGUgRHJvcEZpbGVzSGVyZVdyYXBwZXJQcm9wcyA9IHtcbiAgICBlbXB0eT86IGJvb2xlYW47XG59O1xuXG5leHBvcnQgY29uc3QgRHJvcEZpbGVzSGVyZVdyYXBwZXIgPSBzdHlsZWQoXCJkaXZcIik8RHJvcEZpbGVzSGVyZVdyYXBwZXJQcm9wcz5gXG4gICAgcG9pbnRlci1ldmVudHM6ICR7KHsgZW1wdHkgfSkgPT4gKGVtcHR5ID8gXCJhbGxcIiA6IFwibm9uZVwiKX07XG4gICAgbWFyZ2luOiAwIGF1dG87XG4gICAgcGFkZGluZy10b3A6IDA7XG4gICAgaGVpZ2h0OiBjYWxjKDEwMHZoIC0gOTVweCk7XG4gICAgei1pbmRleDogMTAwO1xuICAgIHdpZHRoOiAxMD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xlZChVcGxvYWRJY29uKWBcbiAgICB3aWR0aDogMTAwcHggIWltcG9ydGFudDtcbiAgICBoZWlnaHQ6IGF1dG87XG4gICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgIGNvbG9yOiB2YXIoLS1tZGMtdGhlbWUtb24tc3VyZmFjZSk7XG5gO1xuIl19 */"));
|
|
32
|
+
var DropFilesHereIconWrapper = exports.DropFilesHereIconWrapper = /*#__PURE__*/(0, _base.default)("div", process.env.NODE_ENV === "production" ? {
|
|
33
|
+
target: "e1dajg7m1"
|
|
34
|
+
} : {
|
|
35
|
+
target: "e1dajg7m1",
|
|
36
|
+
label: "DropFilesHereIconWrapper"
|
|
37
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
38
|
+
name: "prcr04",
|
|
39
|
+
styles: "position:absolute;top:90px;width:300px;display:flex;flex-direction:column;align-items:center;color:var(--mdc-theme-on-surface)"
|
|
40
|
+
} : {
|
|
41
|
+
name: "prcr04",
|
|
42
|
+
styles: "position:absolute;top:90px;width:300px;display:flex;flex-direction:column;align-items:center;color:var(--mdc-theme-on-surface)",
|
|
43
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBK0JxRCIsImZpbGUiOiJzdHlsZWQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tIFwiQGVtb3Rpb24vc3R5bGVkXCI7XG5pbXBvcnQgeyBSZWFjdENvbXBvbmVudCBhcyBVcGxvYWRJY29uIH0gZnJvbSBcIkBtYXRlcmlhbC1kZXNpZ24taWNvbnMvc3ZnL2ZpbGxlZC9jbG91ZF91cGxvYWQuc3ZnXCI7XG5cbnR5cGUgRHJvcEZpbGVzSGVyZVdyYXBwZXJQcm9wcyA9IHtcbiAgICBlbXB0eT86IGJvb2xlYW47XG59O1xuXG5leHBv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mlsZXNIZXJlSWNvbldyYXBwZXIgPSBzdHlsZWQoXCJkaXZcIilgXG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIHRvcDogOTBweDtcbiAgICB3aWR0aDogMzAwcHg7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgY29sb3I6IHZhcigtLW1kYy10aGVtZS1vbi1zdXJmYWNlKTtcbmA7XG5cbmV4cG9ydCBjb25zdCBEcm9wRmlsZXNIZXJlSWNvbiA9IHN0eWxlZChVcGxvYWRJY29uKWBcbiAgICB3aWR0aDogMTAwcHggIWltcG9ydGFudDtcbiAgICBoZWlnaHQ6IGF1dG87XG4gICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgIGNvbG9yOiB2YXIoLS1tZGMtdGhlbWUtb24tc3VyZmFjZSk7XG5gO1xuIl19 */",
|
|
44
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
45
|
+
});
|
|
46
|
+
var DropFilesHereIcon = exports.DropFilesHereIcon = /*#__PURE__*/(0, _base.default)(_cloud_upload.ReactComponent, process.env.NODE_ENV === "production" ? {
|
|
47
|
+
target: "e1dajg7m0"
|
|
48
|
+
} : {
|
|
49
|
+
target: "e1dajg7m0",
|
|
50
|
+
label: "DropFilesHereIcon"
|
|
51
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
52
|
+
name: "1w6rjw4",
|
|
53
|
+
styles: "width:100px!important;height:auto;display:inline-block;color:var(--mdc-theme-on-surface)"
|
|
54
|
+
} : {
|
|
55
|
+
name: "1w6rjw4",
|
|
56
|
+
styles: "width:100px!important;height:auto;display:inline-block;color:var(--mdc-theme-on-surface)",
|
|
57
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtY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AgYmFja2dyb3VuZC1jb2xvcjogJHsoeyBlbXB0eSB9KSA9PlxuICAgICAgICBlbXB0eSA/IFwidmFyKC0tbWRjLXRoZW1lLXN1cmZhY2UpXCIgOiBcInZhcigtLW1kYy10aGVtZS1iYWNrZ3JvdW5kKVwifTtcbiAgICBib3JkZXItcmFkaXVzOiA1MCU7XG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIGxlZnQ6IDUwJTtcbiAgICB0b3A6IDUwJTtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoLTUwJSkgdHJhbnNsYXRlWSgtNTAlKTtcbmA7XG5cbmV4cG9ydCBjb25zdCBEcm9wRmlsZXNIZXJlSWNvbldyYXBwZXIgPSBzdHlsZWQoXCJkaXZcIilgXG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIHRvcDogOTBweDtcbiAgICB3aWR0aDogMzAwcHg7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgY29sb3I6IHZhcigtLW1kYy10aGVtZS1vbi1zdXJmYWNlKTtcbmA7XG5cbmV4cG9ydCBjb25zdCBEcm9wRmlsZXNIZXJlSWNvbiA9IHN0eWxlZChVcGxvYWRJY29uKWBcbiAgICB3aWR0aDogMTAwcHggIWltcG9ydGFudDtcbiAgICBoZWlnaHQ6IGF1dG87XG4gICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgIGNvbG9yOiB2YXIoLS1tZGMtdGhlbWUtb24tc3VyZmFjZSk7XG5gO1xuIl19 */",
|
|
58
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
59
|
+
});
|
|
39
60
|
|
|
40
61
|
//# sourceMappingURL=styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_cloud_upload","require","_EMOTION_STRINGIFIED_CSS_ERROR__","DropFilesHereWrapper","exports","_base","default","process","env","NODE_ENV","target","label","_ref","empty","_ref2","DropFilesHereInner","_ref3","DropFilesHereIconWrapper","name","styles","map","toString","DropFilesHereIcon","UploadIcon"],"sources":["styled.tsx"],"sourcesContent":["import styled from \"@emotion/styled\";\nimport { ReactComponent as UploadIcon } from \"@material-design-icons/svg/filled/cloud_upload.svg\";\n\ntype DropFilesHereWrapperProps = {\n empty?: boolean;\n};\n\nexport const DropFilesHereWrapper = styled(\"div\")<DropFilesHereWrapperProps>`\n pointer-events: ${({ empty }) => (empty ? \"all\" : \"none\")};\n margin: 0 auto;\n padding-top: 0;\n height: calc(100vh - 95px);\n z-index: 100;\n width: 100%;\n position: absolute;\n background: ${({ empty }) => (empty ? \"transparent\" : \"var(--mdc-theme-text-hint-on-light)\")};\n`;\n\nexport const DropFilesHereInner = styled(\"div\")<DropFilesHereWrapperProps>`\n text-align: center;\n width: 300px;\n height: 300px;\n background-color: ${({ empty }) =>\n empty ? \"var(--mdc-theme-surface)\" : \"var(--mdc-theme-background)\"};\n border-radius: 50%;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n`;\n\nexport const DropFilesHereIconWrapper = styled(\"div\")`\n position: absolute;\n top: 90px;\n width: 300px;\n display: flex;\n flex-direction: column;\n align-items: center;\n color: var(--mdc-theme-on-surface);\n`;\n\nexport const DropFilesHereIcon = styled(UploadIcon)`\n width: 100px !important;\n height: auto;\n display: inline-block;\n color: var(--mdc-theme-on-surface);\n`;\n"],"mappings":";;;;;;;;AACA,IAAAA,aAAA,GAAAC,OAAA;AAAkG,SAAAC,iCAAA;AAM3F,IAAMC,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,oBAC3B,UAAAC,IAAA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AAA;EAAAC,MAAA;AAAA;EAAAD,IAAA;EAAAC,MAAA;EAAAC,GAAA;EAAAC,QAAA,EAAAnB;AAAA,EAKlD","ignoreList":[]}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FileItem } from "@webiny/app-admin/types";
|
|
3
|
-
import { FileDetailsActions } from "../FileDetails/components/Actions";
|
|
4
3
|
interface EditFileRenderProp {
|
|
5
4
|
editFile: (url: string) => void;
|
|
6
5
|
}
|
|
7
6
|
interface EditFileUsingUrlProps {
|
|
8
7
|
onUpdate?: (file: FileItem) => void;
|
|
9
|
-
|
|
8
|
+
onSetFile?: (file: FileItem) => void;
|
|
10
9
|
children: (params: EditFileRenderProp) => React.ReactNode;
|
|
11
10
|
}
|
|
12
|
-
export declare const EditFileUsingUrl: (({
|
|
11
|
+
export declare const EditFileUsingUrl: (({ children, onSetFile, onUpdate }: EditFileUsingUrlProps) => React.JSX.Element) & {
|
|
13
12
|
displayName: string;
|
|
14
13
|
};
|
|
15
14
|
export {};
|