@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.
Files changed (499) hide show
  1. package/BatchFileUploader.js +4 -7
  2. package/BatchFileUploader.js.map +1 -1
  3. package/app.d.ts +2 -2
  4. package/app.js +2 -4
  5. package/app.js.map +1 -1
  6. package/components/BottomInfoBar/BottomInfoBar.d.ts +2 -2
  7. package/components/BottomInfoBar/BottomInfoBar.js +1 -2
  8. package/components/BottomInfoBar/BottomInfoBar.js.map +1 -1
  9. package/components/BottomInfoBar/ListStatus.d.ts +2 -2
  10. package/components/BottomInfoBar/ListStatus.js +1 -2
  11. package/components/BottomInfoBar/ListStatus.js.map +1 -1
  12. package/components/BottomInfoBar/SupportedFileTypes.d.ts +2 -2
  13. package/components/BottomInfoBar/SupportedFileTypes.js +1 -2
  14. package/components/BottomInfoBar/SupportedFileTypes.js.map +1 -1
  15. package/components/BottomInfoBar/index.js.map +1 -1
  16. package/components/BottomInfoBar/styled.d.ts +5 -5
  17. package/components/BottomInfoBar/styled.js +71 -25
  18. package/components/BottomInfoBar/styled.js.map +1 -1
  19. package/components/BulkActions/ActionDelete.d.ts +2 -2
  20. package/components/BulkActions/ActionDelete.js +1 -2
  21. package/components/BulkActions/ActionDelete.js.map +1 -1
  22. package/components/BulkActions/ActionEdit/ActionEdit.d.ts +2 -2
  23. package/components/BulkActions/ActionEdit/ActionEdit.js +1 -2
  24. package/components/BulkActions/ActionEdit/ActionEdit.js.map +1 -1
  25. package/components/BulkActions/ActionEdit/ActionEdit.styled.d.ts +3 -5
  26. package/components/BulkActions/ActionEdit/ActionEdit.styled.js +63 -25
  27. package/components/BulkActions/ActionEdit/ActionEdit.styled.js.map +1 -1
  28. package/components/BulkActions/ActionEdit/ActionEdit.types.js.map +1 -1
  29. package/components/BulkActions/ActionEdit/ActionEditPresenter.js +2 -4
  30. package/components/BulkActions/ActionEdit/ActionEditPresenter.js.map +1 -1
  31. package/components/BulkActions/ActionEdit/ActionEditPresenter.test.js.map +1 -1
  32. package/components/BulkActions/ActionEdit/BatchEditorDialog/AddOperation.d.ts +2 -2
  33. package/components/BulkActions/ActionEdit/BatchEditorDialog/AddOperation.js +1 -2
  34. package/components/BulkActions/ActionEdit/BatchEditorDialog/AddOperation.js.map +1 -1
  35. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.d.ts +2 -2
  36. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.js +1 -2
  37. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditor.js.map +1 -1
  38. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.d.ts +2 -2
  39. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.js +1 -2
  40. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialog.js.map +1 -1
  41. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.js +2 -4
  42. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.js.map +1 -1
  43. package/components/BulkActions/ActionEdit/BatchEditorDialog/BatchEditorDialogPresenter.test.js.map +1 -1
  44. package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.d.ts +2 -2
  45. package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.js +1 -2
  46. package/components/BulkActions/ActionEdit/BatchEditorDialog/FieldRenderer.js.map +1 -1
  47. package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.d.ts +2 -2
  48. package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.js +1 -2
  49. package/components/BulkActions/ActionEdit/BatchEditorDialog/Operation.js.map +1 -1
  50. package/components/BulkActions/ActionEdit/BatchEditorDialog/RemoveOperation.d.ts +2 -2
  51. package/components/BulkActions/ActionEdit/BatchEditorDialog/RemoveOperation.js +1 -2
  52. package/components/BulkActions/ActionEdit/BatchEditorDialog/RemoveOperation.js.map +1 -1
  53. package/components/BulkActions/ActionEdit/BatchEditorDialog/index.js.map +1 -1
  54. package/components/BulkActions/ActionEdit/GraphQLInputMapper.js +2 -4
  55. package/components/BulkActions/ActionEdit/GraphQLInputMapper.js.map +1 -1
  56. package/components/BulkActions/ActionEdit/GraphQLInputMapper.test.js.map +1 -1
  57. package/components/BulkActions/ActionEdit/domain/Batch.js +4 -8
  58. package/components/BulkActions/ActionEdit/domain/Batch.js.map +1 -1
  59. package/components/BulkActions/ActionEdit/domain/BatchMapper.js +2 -4
  60. package/components/BulkActions/ActionEdit/domain/BatchMapper.js.map +1 -1
  61. package/components/BulkActions/ActionEdit/domain/Field.js +5 -10
  62. package/components/BulkActions/ActionEdit/domain/Field.js.map +1 -1
  63. package/components/BulkActions/ActionEdit/domain/FieldMapper.js +4 -8
  64. package/components/BulkActions/ActionEdit/domain/FieldMapper.js.map +1 -1
  65. package/components/BulkActions/ActionEdit/domain/index.js.map +1 -1
  66. package/components/BulkActions/ActionEdit/index.js.map +1 -1
  67. package/components/BulkActions/ActionEdit/useActionEditWorker.js.map +1 -1
  68. package/components/BulkActions/ActionMove.d.ts +2 -2
  69. package/components/BulkActions/ActionMove.js +1 -2
  70. package/components/BulkActions/ActionMove.js.map +1 -1
  71. package/components/BulkActions/BulkActions.d.ts +2 -2
  72. package/components/BulkActions/BulkActions.js +2 -4
  73. package/components/BulkActions/BulkActions.js.map +1 -1
  74. package/components/BulkActions/BulkActions.styled.d.ts +3 -3
  75. package/components/BulkActions/BulkActions.styled.js +35 -15
  76. package/components/BulkActions/BulkActions.styled.js.map +1 -1
  77. package/components/BulkActions/index.js.map +1 -1
  78. package/components/DropFilesHere/DropFilesHere.d.ts +1 -1
  79. package/components/DropFilesHere/DropFilesHere.js +1 -2
  80. package/components/DropFilesHere/DropFilesHere.js.map +1 -1
  81. package/components/DropFilesHere/index.js.map +1 -1
  82. package/components/DropFilesHere/styled.d.ts +3 -5
  83. package/components/DropFilesHere/styled.js +42 -21
  84. package/components/DropFilesHere/styled.js.map +1 -1
  85. package/components/EditFileUsingUrl/EditFileUsingUrl.d.ts +2 -3
  86. package/components/EditFileUsingUrl/EditFileUsingUrl.js +11 -16
  87. package/components/EditFileUsingUrl/EditFileUsingUrl.js.map +1 -1
  88. package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.js +3 -6
  89. package/components/EditFileUsingUrl/EditFileUsingUrlPresenter.js.map +1 -1
  90. package/components/EditFileUsingUrl/EditFileUsingUrlRepository.js +2 -4
  91. package/components/EditFileUsingUrl/EditFileUsingUrlRepository.js.map +1 -1
  92. package/components/EditFileUsingUrl/GetFileByUrl.js +2 -4
  93. package/components/EditFileUsingUrl/GetFileByUrl.js.map +1 -1
  94. package/components/EditFileUsingUrl/Loading.js +3 -6
  95. package/components/EditFileUsingUrl/Loading.js.map +1 -1
  96. package/components/EditFileUsingUrl/UpdateFile.js +2 -4
  97. package/components/EditFileUsingUrl/UpdateFile.js.map +1 -1
  98. package/components/EditFileUsingUrl/getFileByUrl.graphql.js +1 -2
  99. package/components/EditFileUsingUrl/getFileByUrl.graphql.js.map +1 -1
  100. package/components/EditFileUsingUrl/index.js.map +1 -1
  101. package/components/Empty/Empty.d.ts +2 -2
  102. package/components/Empty/Empty.js +1 -2
  103. package/components/Empty/Empty.js.map +1 -1
  104. package/components/Empty/index.js.map +1 -1
  105. package/components/FileDetails/FileDetails.d.ts +3 -4
  106. package/components/FileDetails/FileDetails.js +31 -29
  107. package/components/FileDetails/FileDetails.js.map +1 -1
  108. package/components/FileDetails/FileDetailsProvider.d.ts +4 -1
  109. package/components/FileDetails/FileDetailsProvider.js +5 -5
  110. package/components/FileDetails/FileDetailsProvider.js.map +1 -1
  111. package/components/FileDetails/components/ActionButton.d.ts +9 -0
  112. package/components/FileDetails/components/ActionButton.js +30 -0
  113. package/components/FileDetails/components/ActionButton.js.map +1 -0
  114. package/components/FileDetails/components/Actions.d.ts +2 -15
  115. package/components/FileDetails/components/Actions.js +26 -25
  116. package/components/FileDetails/components/Actions.js.map +1 -1
  117. package/components/FileDetails/components/BaseFields.d.ts +2 -2
  118. package/components/FileDetails/components/BaseFields.js +1 -2
  119. package/components/FileDetails/components/BaseFields.js.map +1 -1
  120. package/components/FileDetails/components/Content.d.ts +2 -2
  121. package/components/FileDetails/components/Content.js +22 -10
  122. package/components/FileDetails/components/Content.js.map +1 -1
  123. package/components/FileDetails/components/CreatedOn.d.ts +2 -2
  124. package/components/FileDetails/components/CreatedOn.js +30 -10
  125. package/components/FileDetails/components/CreatedOn.js.map +1 -1
  126. package/components/FileDetails/components/Extensions.d.ts +2 -2
  127. package/components/FileDetails/components/Extensions.js +16 -6
  128. package/components/FileDetails/components/Extensions.js.map +1 -1
  129. package/components/FileDetails/components/Flex.d.ts +2 -2
  130. package/components/FileDetails/components/Flex.js +31 -12
  131. package/components/FileDetails/components/Flex.js.map +1 -1
  132. package/components/FileDetails/components/Footer.d.ts +2 -2
  133. package/components/FileDetails/components/Footer.js +16 -6
  134. package/components/FileDetails/components/Footer.js.map +1 -1
  135. package/components/FileDetails/components/Header.d.ts +2 -2
  136. package/components/FileDetails/components/Header.js +16 -6
  137. package/components/FileDetails/components/Header.js.map +1 -1
  138. package/components/FileDetails/components/Preview.d.ts +2 -2
  139. package/components/FileDetails/components/Preview.js +16 -6
  140. package/components/FileDetails/components/Preview.js.map +1 -1
  141. package/components/FileDetails/components/PreviewMeta.d.ts +2 -2
  142. package/components/FileDetails/components/PreviewMeta.js +16 -6
  143. package/components/FileDetails/components/PreviewMeta.js.map +1 -1
  144. package/components/FileDetails/components/Thumbnail.d.ts +2 -5
  145. package/components/FileDetails/components/Thumbnail.js +7 -14
  146. package/components/FileDetails/components/Thumbnail.js.map +1 -1
  147. package/components/FileDetails/components/TypeAndSize.d.ts +2 -2
  148. package/components/FileDetails/components/TypeAndSize.js +31 -11
  149. package/components/FileDetails/components/TypeAndSize.js.map +1 -1
  150. package/components/FileDetails/index.js.map +1 -1
  151. package/components/Grid/ActionButton.d.ts +8 -0
  152. package/components/Grid/ActionButton.js +25 -0
  153. package/components/Grid/ActionButton.js.map +1 -0
  154. package/components/Grid/File.d.ts +1 -2
  155. package/components/Grid/File.js +10 -26
  156. package/components/Grid/File.js.map +1 -1
  157. package/components/Grid/Grid.d.ts +2 -3
  158. package/components/Grid/Grid.js +2 -5
  159. package/components/Grid/Grid.js.map +1 -1
  160. package/components/Grid/Thumbnail.d.ts +2 -0
  161. package/components/Grid/Thumbnail.js +21 -0
  162. package/components/Grid/Thumbnail.js.map +1 -0
  163. package/components/Grid/index.js.map +1 -1
  164. package/components/Grid/styled.d.ts +10 -10
  165. package/components/Grid/styled.js +125 -50
  166. package/components/Grid/styled.js.map +1 -1
  167. package/components/LayoutSwitch/LayoutSwitch.d.ts +2 -2
  168. package/components/LayoutSwitch/LayoutSwitch.js +1 -2
  169. package/components/LayoutSwitch/LayoutSwitch.js.map +1 -1
  170. package/components/LayoutSwitch/index.js.map +1 -1
  171. package/components/NoPermission/NoPermission.d.ts +2 -2
  172. package/components/NoPermission/NoPermission.js +1 -2
  173. package/components/NoPermission/NoPermission.js.map +1 -1
  174. package/components/NoPermission/index.js.map +1 -1
  175. package/components/NoPermission/styled.d.ts +3 -5
  176. package/components/NoPermission/styled.js +85 -30
  177. package/components/NoPermission/styled.js.map +1 -1
  178. package/components/NoResults/NoResults.d.ts +2 -2
  179. package/components/NoResults/NoResults.js +1 -2
  180. package/components/NoResults/NoResults.js.map +1 -1
  181. package/components/NoResults/index.js.map +1 -1
  182. package/components/NoResults/styled.d.ts +1 -1
  183. package/components/NoResults/styled.js +15 -5
  184. package/components/NoResults/styled.js.map +1 -1
  185. package/components/Table/Actions/CopyFile.d.ts +2 -2
  186. package/components/Table/Actions/CopyFile.js +1 -2
  187. package/components/Table/Actions/CopyFile.js.map +1 -1
  188. package/components/Table/Actions/DeleteFile.d.ts +2 -2
  189. package/components/Table/Actions/DeleteFile.js +1 -2
  190. package/components/Table/Actions/DeleteFile.js.map +1 -1
  191. package/components/Table/Actions/EditFile.d.ts +2 -2
  192. package/components/Table/Actions/EditFile.js +1 -2
  193. package/components/Table/Actions/EditFile.js.map +1 -1
  194. package/components/Table/Actions/MoveFile.d.ts +2 -2
  195. package/components/Table/Actions/MoveFile.js +1 -2
  196. package/components/Table/Actions/MoveFile.js.map +1 -1
  197. package/components/Table/Actions/index.js.map +1 -1
  198. package/components/Table/Cells/CellActions.d.ts +2 -2
  199. package/components/Table/Cells/CellActions.js +1 -2
  200. package/components/Table/Cells/CellActions.js.map +1 -1
  201. package/components/Table/Cells/CellAuthor.d.ts +2 -2
  202. package/components/Table/Cells/CellAuthor.js +1 -2
  203. package/components/Table/Cells/CellAuthor.js.map +1 -1
  204. package/components/Table/Cells/CellCreated.d.ts +2 -2
  205. package/components/Table/Cells/CellCreated.js +1 -2
  206. package/components/Table/Cells/CellCreated.js.map +1 -1
  207. package/components/Table/Cells/CellModified.d.ts +2 -2
  208. package/components/Table/Cells/CellModified.js +1 -2
  209. package/components/Table/Cells/CellModified.js.map +1 -1
  210. package/components/Table/Cells/CellName.d.ts +4 -4
  211. package/components/Table/Cells/CellName.js +3 -6
  212. package/components/Table/Cells/CellName.js.map +1 -1
  213. package/components/Table/Cells/CellSize.d.ts +2 -2
  214. package/components/Table/Cells/CellSize.js +1 -2
  215. package/components/Table/Cells/CellSize.js.map +1 -1
  216. package/components/Table/Cells/CellType.d.ts +2 -2
  217. package/components/Table/Cells/CellType.js +1 -2
  218. package/components/Table/Cells/CellType.js.map +1 -1
  219. package/components/Table/Cells/Cells.styled.d.ts +2 -2
  220. package/components/Table/Cells/Cells.styled.js +43 -15
  221. package/components/Table/Cells/Cells.styled.js.map +1 -1
  222. package/components/Table/Cells/index.js.map +1 -1
  223. package/components/Table/Table.js +1 -2
  224. package/components/Table/Table.js.map +1 -1
  225. package/components/Table/index.js.map +1 -1
  226. package/components/Title/Title.d.ts +2 -2
  227. package/components/Title/Title.js +1 -2
  228. package/components/Title/Title.js.map +1 -1
  229. package/components/Title/index.js.map +1 -1
  230. package/components/Title/styled.js +15 -5
  231. package/components/Title/styled.js.map +1 -1
  232. package/components/UploadStatus/UploadStatus.d.ts +2 -2
  233. package/components/UploadStatus/UploadStatus.js +1 -2
  234. package/components/UploadStatus/UploadStatus.js.map +1 -1
  235. package/components/UploadStatus/index.js.map +1 -1
  236. package/components/UploadStatus/styled.d.ts +9 -9
  237. package/components/UploadStatus/styled.js +114 -46
  238. package/components/UploadStatus/styled.js.map +1 -1
  239. package/components/fields/AccessControl.d.ts +2 -2
  240. package/components/fields/AccessControl.js +1 -2
  241. package/components/fields/AccessControl.js.map +1 -1
  242. package/components/fields/Aliases.d.ts +2 -2
  243. package/components/fields/Aliases.js +55 -28
  244. package/components/fields/Aliases.js.map +1 -1
  245. package/components/fields/Name.d.ts +2 -2
  246. package/components/fields/Name.js +1 -2
  247. package/components/fields/Name.js.map +1 -1
  248. package/components/fields/Tags.d.ts +2 -2
  249. package/components/fields/Tags.js +1 -2
  250. package/components/fields/Tags.js.map +1 -1
  251. package/components/fields/index.js.map +1 -1
  252. package/components/fields/useAccessControlField.js +1 -2
  253. package/components/fields/useAccessControlField.js.map +1 -1
  254. package/components/fields/useFileOrUndefined.js.map +1 -1
  255. package/constants.js +3 -6
  256. package/constants.js.map +1 -1
  257. package/contexts/FileProvider.d.ts +1 -1
  258. package/contexts/FileProvider.js +3 -6
  259. package/contexts/FileProvider.js.map +1 -1
  260. package/hooks/useCopyFile.js +1 -2
  261. package/hooks/useCopyFile.js.map +1 -1
  262. package/hooks/useDeleteFile.js +16 -6
  263. package/hooks/useDeleteFile.js.map +1 -1
  264. package/hooks/useFile.js +1 -2
  265. package/hooks/useFile.js.map +1 -1
  266. package/hooks/useFileDetails.js +1 -2
  267. package/hooks/useFileDetails.js.map +1 -1
  268. package/hooks/useFileModel.js.map +1 -1
  269. package/hooks/useMoveFileToFolder.js.map +1 -1
  270. package/index.d.ts +0 -1
  271. package/index.js +0 -12
  272. package/index.js.map +1 -1
  273. package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.d.ts +1 -1
  274. package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.js +2 -4
  275. package/modules/FileManagerApiProvider/FileManagerApiContext/FileManagerApiContext.js.map +1 -1
  276. package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.d.ts +1 -1
  277. package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.js +2 -4
  278. package/modules/FileManagerApiProvider/FileManagerApiContext/FileModelContext.js.map +1 -1
  279. package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.js +2 -4
  280. package/modules/FileManagerApiProvider/FileManagerApiContext/getFileGraphQLSelection.js.map +1 -1
  281. package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.js +1 -2
  282. package/modules/FileManagerApiProvider/FileManagerApiContext/getFileUploader.js.map +1 -1
  283. package/modules/FileManagerApiProvider/FileManagerApiContext/index.js.map +1 -1
  284. package/modules/FileManagerApiProvider/FileManagerApiContext/useFileManagerApi.js.map +1 -1
  285. package/modules/FileManagerApiProvider/graphql.js +8 -16
  286. package/modules/FileManagerApiProvider/graphql.js.map +1 -1
  287. package/modules/FileManagerApiProvider/index.d.ts +2 -2
  288. package/modules/FileManagerApiProvider/index.js +1 -2
  289. package/modules/FileManagerApiProvider/index.js.map +1 -1
  290. package/modules/FileManagerRenderer/FileActions/FileDetails/CopyUrl.d.ts +2 -0
  291. package/{components/FileDetails/components/actions → modules/FileManagerRenderer/FileActions/FileDetails}/CopyUrl.js +8 -12
  292. package/modules/FileManagerRenderer/FileActions/FileDetails/CopyUrl.js.map +1 -0
  293. package/modules/FileManagerRenderer/FileActions/FileDetails/DeleteImage.d.ts +2 -0
  294. package/{components/FileDetails/components/actions → modules/FileManagerRenderer/FileActions/FileDetails}/DeleteImage.js +7 -11
  295. package/modules/FileManagerRenderer/FileActions/FileDetails/DeleteImage.js.map +1 -0
  296. package/modules/FileManagerRenderer/FileActions/FileDetails/Download.d.ts +2 -0
  297. package/{components/FileDetails/components/actions → modules/FileManagerRenderer/FileActions/FileDetails}/Download.js +11 -12
  298. package/modules/FileManagerRenderer/FileActions/FileDetails/Download.js.map +1 -0
  299. package/modules/FileManagerRenderer/FileActions/FileDetails/EditImage.d.ts +2 -0
  300. package/modules/{FileTypes/fileImage/EditAction.js → FileManagerRenderer/FileActions/FileDetails/EditImage.js} +30 -20
  301. package/modules/FileManagerRenderer/FileActions/FileDetails/EditImage.js.map +1 -0
  302. package/modules/FileManagerRenderer/FileActions/FileDetails/MoveToFolder.d.ts +2 -0
  303. package/{components/FileDetails/components/actions/MoveTo.js → modules/FileManagerRenderer/FileActions/FileDetails/MoveToFolder.js} +9 -13
  304. package/modules/FileManagerRenderer/FileActions/FileDetails/MoveToFolder.js.map +1 -0
  305. package/modules/FileManagerRenderer/FileActions/Grid/Download.d.ts +2 -0
  306. package/modules/FileManagerRenderer/FileActions/Grid/Download.js +27 -0
  307. package/modules/FileManagerRenderer/FileActions/Grid/Download.js.map +1 -0
  308. package/modules/FileManagerRenderer/FileActions/Grid/MoveToFolder.d.ts +2 -0
  309. package/modules/FileManagerRenderer/FileActions/Grid/MoveToFolder.js +22 -0
  310. package/modules/FileManagerRenderer/FileActions/Grid/MoveToFolder.js.map +1 -0
  311. package/modules/FileManagerRenderer/FileActions/Grid/Settings.d.ts +2 -0
  312. package/modules/FileManagerRenderer/FileActions/Grid/Settings.js +26 -0
  313. package/modules/FileManagerRenderer/FileActions/Grid/Settings.js.map +1 -0
  314. package/modules/FileManagerRenderer/FileActions/index.d.ts +2 -0
  315. package/modules/FileManagerRenderer/FileActions/index.js +48 -0
  316. package/modules/FileManagerRenderer/FileActions/index.js.map +1 -0
  317. package/modules/FileManagerRenderer/FileManagerView/FileManagerView.d.ts +2 -2
  318. package/modules/FileManagerRenderer/FileManagerView/FileManagerView.js +15 -16
  319. package/modules/FileManagerRenderer/FileManagerView/FileManagerView.js.map +1 -1
  320. package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.d.ts +70 -25
  321. package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.js +13 -5
  322. package/modules/FileManagerRenderer/FileManagerView/FileManagerViewConfig.js.map +1 -1
  323. package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.d.ts +1 -1
  324. package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.js +30 -10
  325. package/modules/FileManagerRenderer/FileManagerView/LeftSidebar.js.map +1 -1
  326. package/modules/FileManagerRenderer/FileManagerView/NavigateFolderProvider.d.ts +1 -1
  327. package/modules/FileManagerRenderer/FileManagerView/NavigateFolderProvider.js +1 -2
  328. package/modules/FileManagerRenderer/FileManagerView/NavigateFolderProvider.js.map +1 -1
  329. package/modules/FileManagerRenderer/FileManagerView/components/Filters.d.ts +2 -2
  330. package/modules/FileManagerRenderer/FileManagerView/components/Filters.js +1 -3
  331. package/modules/FileManagerRenderer/FileManagerView/components/Filters.js.map +1 -1
  332. package/modules/FileManagerRenderer/FileManagerView/components/SearchWidget.d.ts +2 -2
  333. package/modules/FileManagerRenderer/FileManagerView/components/SearchWidget.js +44 -14
  334. package/modules/FileManagerRenderer/FileManagerView/components/SearchWidget.js.map +1 -1
  335. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Empty.d.ts +2 -2
  336. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Empty.js +1 -2
  337. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Empty.js.map +1 -1
  338. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Tag.d.ts +2 -2
  339. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Tag.js +1 -2
  340. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/Tag.js.map +1 -1
  341. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/TagsList.d.ts +2 -2
  342. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/TagsList.js +1 -2
  343. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/TagsList.js.map +1 -1
  344. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/index.js.map +1 -1
  345. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/styled.d.ts +4 -4
  346. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/styled.js +48 -27
  347. package/modules/FileManagerRenderer/FileManagerView/components/TagsList/styled.js.map +1 -1
  348. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.d.ts +2 -2
  349. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.js +2 -4
  350. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkAction.js.map +1 -1
  351. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkEditField.d.ts +1 -1
  352. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkEditField.js +1 -2
  353. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/BulkEditField.js.map +1 -1
  354. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.d.ts +3 -3
  355. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.js +1 -2
  356. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FileAction.js.map +1 -1
  357. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.d.ts +4 -3
  358. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.js +1 -2
  359. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Filter.js.map +1 -1
  360. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FilterByTags.d.ts +2 -2
  361. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FilterByTags.js +1 -2
  362. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FilterByTags.js.map +1 -1
  363. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FiltersToWhere.d.ts +2 -2
  364. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FiltersToWhere.js +1 -2
  365. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FiltersToWhere.js.map +1 -1
  366. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.d.ts +2 -2
  367. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.js +1 -2
  368. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/FolderAction.js.map +1 -1
  369. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.d.ts +19 -0
  370. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.js +47 -0
  371. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Action.js.map +1 -0
  372. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.d.ts +16 -0
  373. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.js +36 -0
  374. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/Thumbnail.js.map +1 -0
  375. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.d.ts +6 -0
  376. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.js +7 -0
  377. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Grid/index.js.map +1 -0
  378. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.d.ts +2 -2
  379. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.js +2 -3
  380. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/Column.js.map +1 -1
  381. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.d.ts +2 -4
  382. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.js +1 -2
  383. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/Table/index.js.map +1 -1
  384. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.d.ts +37 -16
  385. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.js +12 -2
  386. package/modules/FileManagerRenderer/FileManagerView/configComponents/Browser/index.js.map +1 -1
  387. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.d.ts +19 -0
  388. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.js +44 -0
  389. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Action.js.map +1 -0
  390. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.d.ts +4 -3
  391. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.js +1 -2
  392. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Field.js.map +1 -1
  393. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.d.ts +1 -1
  394. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.js +1 -2
  395. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/FieldDecorator.js.map +1 -1
  396. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.js +1 -2
  397. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/GroupFields.js.map +1 -1
  398. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.d.ts +16 -0
  399. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.js +33 -0
  400. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Thumbnail.js.map +1 -0
  401. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Width.d.ts +2 -2
  402. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Width.js +1 -2
  403. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/Width.js.map +1 -1
  404. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.d.ts +28 -7
  405. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.js +10 -2
  406. package/modules/FileManagerRenderer/FileManagerView/configComponents/FileDetails/index.js.map +1 -1
  407. package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.d.ts +4 -0
  408. package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.js +30 -0
  409. package/modules/FileManagerRenderer/FileManagerView/getThumbnailRenderer.js.map +1 -0
  410. package/modules/FileManagerRenderer/FileManagerView/index.d.ts +3 -3
  411. package/modules/FileManagerRenderer/FileManagerView/index.js +4 -5
  412. package/modules/FileManagerRenderer/FileManagerView/index.js.map +1 -1
  413. package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.js +1 -2
  414. package/modules/FileManagerRenderer/FileManagerView/outputFileSelectionError.js.map +1 -1
  415. package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.d.ts +1 -1
  416. package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.js +6 -8
  417. package/modules/FileManagerRenderer/FileManagerViewProvider/FileManagerViewContext.js.map +1 -1
  418. package/modules/FileManagerRenderer/FileManagerViewProvider/index.js.map +1 -1
  419. package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.js +1 -2
  420. package/modules/FileManagerRenderer/FileManagerViewProvider/setSelection.js.map +1 -1
  421. package/modules/FileManagerRenderer/FileManagerViewProvider/state.js +2 -4
  422. package/modules/FileManagerRenderer/FileManagerViewProvider/state.js.map +1 -1
  423. package/modules/FileManagerRenderer/FileManagerViewProvider/useFileManagerView.js.map +1 -1
  424. package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.js +17 -17
  425. package/modules/FileManagerRenderer/FileManagerViewProvider/useListFiles.js.map +1 -1
  426. package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.js +1 -2
  427. package/modules/FileManagerRenderer/FileManagerViewProvider/useTags.js.map +1 -1
  428. package/modules/FileManagerRenderer/filters/FilterByType.d.ts +2 -2
  429. package/modules/FileManagerRenderer/filters/FilterByType.js +1 -2
  430. package/modules/FileManagerRenderer/filters/FilterByType.js.map +1 -1
  431. package/modules/FileManagerRenderer/index.d.ts +2 -2
  432. package/modules/FileManagerRenderer/index.js +16 -2
  433. package/modules/FileManagerRenderer/index.js.map +1 -1
  434. package/modules/HeadlessCms/fileField.js +1 -2
  435. package/modules/HeadlessCms/fileField.js.map +1 -1
  436. package/modules/HeadlessCms/fileRenderer/File.d.ts +2 -8
  437. package/modules/HeadlessCms/fileRenderer/File.js +4 -15
  438. package/modules/HeadlessCms/fileRenderer/File.js.map +1 -1
  439. package/modules/HeadlessCms/fileRenderer/fileField.js +81 -83
  440. package/modules/HeadlessCms/fileRenderer/fileField.js.map +1 -1
  441. package/modules/HeadlessCms/fileRenderer/fileFields.js +80 -65
  442. package/modules/HeadlessCms/fileRenderer/fileFields.js.map +1 -1
  443. package/modules/HeadlessCms/fileRenderer/utils.d.ts +2 -2
  444. package/modules/HeadlessCms/fileRenderer/utils.js +10 -13
  445. package/modules/HeadlessCms/fileRenderer/utils.js.map +1 -1
  446. package/modules/HeadlessCms/index.js +1 -2
  447. package/modules/HeadlessCms/index.js.map +1 -1
  448. package/modules/Settings/graphql.js +1 -2
  449. package/modules/Settings/graphql.js.map +1 -1
  450. package/modules/Settings/index.d.ts +2 -2
  451. package/modules/Settings/index.js +1 -2
  452. package/modules/Settings/index.js.map +1 -1
  453. package/modules/Settings/plugins/installation.js +14 -7
  454. package/modules/Settings/plugins/installation.js.map +1 -1
  455. package/modules/Settings/plugins/permissionRenderer/FileManagerPermissions.d.ts +2 -2
  456. package/modules/Settings/plugins/permissionRenderer/FileManagerPermissions.js +1 -2
  457. package/modules/Settings/plugins/permissionRenderer/FileManagerPermissions.js.map +1 -1
  458. package/modules/Settings/plugins/permissionRenderer/index.js +1 -2
  459. package/modules/Settings/plugins/permissionRenderer/index.js.map +1 -1
  460. package/modules/Settings/views/FileManagerSettings.d.ts +2 -2
  461. package/modules/Settings/views/FileManagerSettings.js +1 -2
  462. package/modules/Settings/views/FileManagerSettings.js.map +1 -1
  463. package/modules/ThumbnailRenderers/DefaultRenderer.d.ts +2 -0
  464. package/modules/ThumbnailRenderers/DefaultRenderer.js +25 -0
  465. package/modules/ThumbnailRenderers/DefaultRenderer.js.map +1 -0
  466. package/modules/ThumbnailRenderers/ImageRenderer.d.ts +2 -0
  467. package/modules/ThumbnailRenderers/ImageRenderer.js +29 -0
  468. package/modules/ThumbnailRenderers/ImageRenderer.js.map +1 -0
  469. package/package.json +29 -30
  470. package/tagsHelpers.js +2 -4
  471. package/tagsHelpers.js.map +1 -1
  472. package/types.js.map +1 -1
  473. package/FileManagerFileTypePlugin.d.ts +0 -21
  474. package/FileManagerFileTypePlugin.js +0 -48
  475. package/FileManagerFileTypePlugin.js.map +0 -1
  476. package/components/FileDetails/components/actions/CopyUrl.d.ts +0 -2
  477. package/components/FileDetails/components/actions/CopyUrl.js.map +0 -1
  478. package/components/FileDetails/components/actions/DeleteImage.d.ts +0 -2
  479. package/components/FileDetails/components/actions/DeleteImage.js.map +0 -1
  480. package/components/FileDetails/components/actions/Download.d.ts +0 -2
  481. package/components/FileDetails/components/actions/Download.js.map +0 -1
  482. package/components/FileDetails/components/actions/MoveTo.d.ts +0 -2
  483. package/components/FileDetails/components/actions/MoveTo.js.map +0 -1
  484. package/getFileTypePlugin.d.ts +0 -3
  485. package/getFileTypePlugin.js +0 -53
  486. package/getFileTypePlugin.js.map +0 -1
  487. package/modules/FileTypes/fileDefault.d.ts +0 -2
  488. package/modules/FileTypes/fileDefault.js +0 -30
  489. package/modules/FileTypes/fileDefault.js.map +0 -1
  490. package/modules/FileTypes/fileImage/EditAction.d.ts +0 -7
  491. package/modules/FileTypes/fileImage/EditAction.js.map +0 -1
  492. package/modules/FileTypes/fileImage/index.d.ts +0 -2
  493. package/modules/FileTypes/fileImage/index.js +0 -40
  494. package/modules/FileTypes/fileImage/index.js.map +0 -1
  495. package/modules/FileTypes/icons/edit.svg +0 -17
  496. package/modules/FileTypes/icons/round-description-24px.svg +0 -1
  497. package/modules/FileTypes/index.d.ts +0 -1
  498. package/modules/FileTypes/index.js +0 -34
  499. 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.FieldMapper = FieldMapper;
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","exports","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;EAAA,SAAAA,YAAA;IAAA,IAAAC,gBAAA,CAAAC,OAAA,QAAAF,WAAA;EAAA;EAAA,IAAAG,aAAA,CAAAD,OAAA,EAAAF,WAAA;IAAAI,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;EAAA,OAAAb,WAAA;AAAA;AAAAc,OAAA,CAAAd,WAAA,GAAAA,WAAA;AAAA,IAGQY,cAAc;EAAA,SAAAA,eAAA;IAAA,IAAAX,gBAAA,CAAAC,OAAA,QAAAU,cAAA;EAAA;EAAA,IAAAT,aAAA,CAAAD,OAAA,EAAAU,cAAA;IAAAR,GAAA;IAAAC,KAAA,EACvB,SAAAC,MAAaK,SAAqB,EAAiB;MAC/C,OAAOA,SAAS,CAACH,GAAG,CAAC,UAAAO,QAAQ;QAAA,OAAK;UAC9BV,KAAK,EAAEU,QAAQ,CAACV,KAAK,IAAI,EAAE;UAC3BK,KAAK,EAAEK,QAAQ,CAACL,KAAK,IAAI;QAC7B,CAAC;MAAA,CAAC,CAAC;IACP;EAAC;EAAA,OAAAE,cAAA;AAAA;AAAAE,OAAA,CAAAF,cAAA,GAAAA,cAAA"}
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,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","ignoreList":[]}
@@ -1 +1 @@
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"}
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,IAAMC,UAAU,GAAG,IAAAC,cAAO,EAAC,YAAM;IAC7B,OAAO,IAAAC,eAAa,EAACN,MAAM,CAACO,KAAK,CAACC,MAAM,CAAC;EAC7C,CAAC,EAAE,CAACR,MAAM,CAACO,KAAK,CAACC,MAAM,CAAC,CAAC;EAEzB,IAAMC,UAAU,GAAG,IAAAJ,cAAO,EA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AAC;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,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,GAA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M,CAACmB,eAAe,CAAC,gBAAAC,IAAA,EAA4B;UAAA,IAAnBT,IAAI,GAAAS,IAAA,CAAJT,IAAI;YAAEU,MAAM,GAAAD,IAAA,CAANC,MAAM;UAC9C,IAAI;YACA,IAAMC,gBAAgB,GAAGC,sCAAkB,CAACC,eAAe,CACvDb,IAAI,EACJE,KACJ,CAAa;YAEb,IAAMY,MAAM,GAAG,IAAAC,aAAI,EAACJ,gBAAgB,EAAE,CAClC,IAAI,EACJ,WAAW,EACX,WAAW,EACX,KAAK,CACR,CAAC;YAEF,IAAMK,QAAQ,GAAG,IAAAC,qCAAe,EAACH,MAAM,EAAEhC,MAAM,CAAC;YAEhD,MAAMG,UAAU,CAACe,IAAI,CAACkB,EAAE,EAAEF,QAAQ,CAAC;YAEnCN,MAAM,CAACS,OAAO,CAAC;cACXhB,KAAK,KAAAE,MAAA,CAAKL,IAAI,CAACoB,IAAI,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","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- export declare const ActionMove: (() => JSX.Element) & {
1
+ import React from "react";
2
+ export declare const ActionMove: (() => React.JSX.Element) & {
3
3
  displayName: string;
4
4
  };
@@ -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","exports"],"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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cA,CAAA;IAAA,OAChB1B,cAAc,CAAC;MACXU,KAAK,EAAE,eAAe;MACtBC,OAAO,EAAE,2CAA2C;MACpDE,YAAY,gBAAAD,MAAA,CAAgBV,UAAU,CAAE;MACxCyB,WAAW,QAAQ;MACnBC,eAAe,EAAE5C,eAAe,IAAI6C,sBAAW;MACzCC,QAAQ,iBAAAA,SAAAC,KAAA,EAAa;QAAA,IAAVtB,MAAM,GAAAsB,KAAA,CAANtB,MAAM;QACnBF,gBAAgB,CAACE,MAAM,CAAC;MAC5B;IACJ,CAAC,CAAC;EAAA;EAEN,oBACI1C,MAAA,CAAAiE,OAAA,CAAAC,aAAA,CAACxC,UAAU;IACPyC,IAAI,eAAEnE,MAAA,CAAAiE,OAAA,CAAAC,aAAA,CAAC/D,gBAAA,CAAAiE,cAAQ,MAAE,CAAE;IACnBC,QAAQ,EAAEV,cAAe;IACzBW,KAAK,UAAAzB,MAAA,CAAUV,UAAU,CAAG;IAC5BoC,gBAAgB,EAAE;EAAS,CAC9B,CAAC;AAEV,CAAC,CAAC;AAACC,OAAA,CAAA9D,UAAA,GAAAA,UAAA"}
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,gBAAgB,GAAAF,mBAAA,CAAhBE,gBAAgB;EACxB,IAAAC,kBAAA,GAA4B,IAAAC,yBAAiB,EAAC,CAAC;IAAvCC,eAAe,GAAAF,kBAAA,CAAfE,eAAe;EAEvB,IAAAC,qBAAA,GAA6CC,4CAAqB,CAACC,OAAO,CAACC,UAAU;IAA7EC,SAAS,GAAAJ,qBAAA,CAATI,SAAS;IAAEC,UAAU,GAAAL,qBAAA,CAAVK,UAAU;IAAEC,SAAS,GAAAN,qBAAA,CAATM,SAAS;EACxC,IAAAC,WAAA,GAAuBF,UAAU,CAAC,CAAC;IAA3BG,UAAU,GAAAD,WAAA,CAAVC,UAAU;EAClB,IAAMC,MAAM,GAAGL,SAAS,CAAC,CAAC;EAC1B,IAAAM,UAAA,GAAsDJ,SAAS,CAAC,CAAC;IAAzDK,sBAAsB,GAAAD,UAAA,CAAtBC,sBAAsB;IAAEC,iBAAiB,GAAAF,UAAA,CAAjBE,iBAAiB;EACjD,IAAAC,qBAAA,GAAuC,IAAAC,6BAAqB,EA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OAAO,EAAE;QACb,CAAC,CAAC;MACN;IACJ,CAAC,CAAC;EACN,CAAC,EACD,CAACT,UAAU,CACf,CAAC;EAED,IAAMwB,cAAc,GAAG,SAAjBA,cAAcA,CAAA;IAAA,OAChB1B,cAAc,CAAC;MACXU,KAAK,EAAE,eAAe;MACtBC,OAAO,EAAE,2CAA2C;MACpDE,YAAY,gBAAAD,MAAA,CAAgBV,UAAU,CAAE;MACxCyB,WAAW,QAAQ;MACnBC,eAAe,EAAE5C,eAAe,IAAI6C,sBAAW;MACzCC,QAAQ,iBAAAA,SAAAC,KAAA,EAAa;QAAA,IAAVtB,MAAM,GAAAsB,KAAA,CAANtB,MAAM;QACnBF,gBAAgB,CAACE,MAAM,CAAC;MAC5B;IACJ,CAAC,CAAC;EAAA;EAEN,oBACI3C,MAAA,CAAAkE,OAAA,CAAAC,aAAA,CAACxC,UAAU;IACPyC,IAAI,eAAEpE,MAAA,CAAAkE,OAAA,CAAAC,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
- /// <reference types="react" />
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.getFilesLabel = getFilesLabel;
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","exports","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,GAAG,SAAhBA,aAAaA,CAAA,EAA0B;EAAA,IAAtBC,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;AAACK,OAAA,CAAAN,aAAA,GAAAA,aAAA;AAEK,IAAMO,WAAW,GAAG,SAAdA,WAAWA,CAAA,EAAS;EAC7B,IAAAC,qBAAA,GAAoB,IAAAC,+CAAwB,EAAC,CAAC;IAAtCC,OAAO,GAAAF,qBAAA,CAAPE,OAAO;EAC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AA,WAAA"}
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};\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,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 _styled = _interopRequireDefault(require("@emotion/styled"));
8
+ var _base = _interopRequireDefault(require("@emotion/styled/base"));
9
9
  var _appAdmin = require("@webiny/app-admin");
10
- var BulkActionsContainer = /*#__PURE__*/(0, _styled.default)("div", {
11
- label: "BulkActionsContainer",
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
- })("display:flex;align-items:center;", _appAdmin.ButtonContainer, "{margin:0;}");
24
- exports.ButtonsContainer = ButtonsContainer;
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":["_styled","_interopRequireDefault","require","_appAdmin","BulkActionsContainer","styled","label","target","exports","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":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAEO,IAAME,oBAAoB,oBAAGC,eAAM;EAAAC,KAAA;EAAAC,MAAA;AAAA,gHAKzC;AAACC,OAAA,CAAAJ,oBAAA,GAAAA,oBAAA;AAEK,IAAMK,gBAAgB,oBAAGJ,eAAM;EAAAC,KAAA;EAAAC,MAAA;AAAA,sGAMrC;AAACC,OAAA,CAAAC,gBAAA,GAAAA,gBAAA;AAEK,IAAMC,gBAAgB,oBAAGL,eAAM;EAAAC,KAAA;EAAAC,MAAA;AAAA,uCAIhCI,yBAAe,gBAGpB;AAACH,OAAA,CAAAE,gBAAA,GAAAA,gBAAA"}
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","exports"],"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,GAAG,SAAhBA,aAAaA,CAAAC,IAAA,EAA+C;EAAA,IAAzCC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAEC,OAAO,GAAAF,IAAA,CAAPE,OAAO;EAC1C,oBACIb,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACV,OAAA,CAAAW,oBAAoB;IAACJ,KAAK,EAAEA,KAAM;IAACC,OAAO,EAAEA;EAAQ,gBACjDb,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACV,OAAA,CAAAY,kBAAkB;IAACL,KAAK,EAAEA;EAAM,gBAC7BZ,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACV,OAAA,CAAAa,wBAAwB,qBACrBlB,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACX,KAAA,CAAAe,IAAI;IAACC,IAAI,eAAEpB,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACV,OAAA,CAAAgB,iBAAiB,MAAE;EAAE,CAAE,CAAC,eACrCrB,MAAA,CAAAc,OAAA,CAAAC,aAAA,cAAMR,CAAC,CAAAD,eAAA,KAAAA,eAAA,OAAAgB,uBAAA,CAAAR,OAAA,wBAAuB,CACR,CACV,CACF,CAAC;AAE/B,CAAC;AAACS,OAAA,CAAAb,aAAA,GAAAA,aAAA"}
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 _styled = _interopRequireDefault(require("@emotion/styled"));
8
+ var _base = _interopRequireDefault(require("@emotion/styled/base"));
9
9
  var _cloud_upload = require("@material-design-icons/svg/filled/cloud_upload.svg");
10
- var DropFilesHereWrapper = /*#__PURE__*/(0, _styled.default)("div", {
11
- label: "DropFilesHereWrapper",
12
- target: "e1dajg7m0"
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.DropFilesHereWrapper = DropFilesHereWrapper;
21
- var DropFilesHereInner = /*#__PURE__*/(0, _styled.default)("div", {
22
- label: "DropFilesHereInner",
23
- target: "e1dajg7m1"
22
+ }, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBTzRFIiwiZmlsZSI6InN0eWxlZC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gXCJAZW1vdGlvbi9zdHlsZWRcIjtcbmltcG9ydCB7IFJlYWN0Q29tcG9uZW50IGFzIFVwbG9hZEljb24gfSBmcm9tIFwiQG1hdGVyaWFsLWRlc2lnbi1pY29ucy9zdmcvZmlsbGVkL2Nsb3VkX3VwbG9hZC5zdmdcIjtcblxudHlwZSBEcm9wRmlsZXNIZXJlV3JhcHBlclByb3BzID0ge1xuICAgIGVtcHR5PzogYm9vbGVhbjtcbn07XG5cbmV4cG9ydCBjb25zdCBEcm9wRmlsZXNIZXJlV3JhcHBlciA9IHN0eWxlZChcImRpdlwiKTxEcm9wRmlsZXNIZXJlV3JhcHBlclByb3BzPmBcbiAgICBwb2ludGVyLWV2ZW50czogJHsoeyBlbXB0eSB9KSA9PiAoZW1wdHkgPyBcImFsbFwiIDogXCJub25lXCIpfTtcbiAgICBtYXJnaW46IDAgYXV0bztcbiAgICBwYWRkaW5nLXRvcDogMDtcbiAgICBoZWlnaHQ6IGNhbGMoMTAwdmggLSA5NXB4KTtcbiAgICB6LWluZGV4OiAxMDA7XG4gICAgd2lkdGg6IDEwMCU7XG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIGJhY2tncm91bmQ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weCAhaW1wb3J0YW50O1xuICAgIGhlaWdodDogYXV0bztcbiAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gICAgY29sb3I6IHZhcigtLW1kYy10aGVtZS1vbi1zdXJmYWNlKTtcbmA7XG4iXX0= */"));
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.DropFilesHereInner = DropFilesHereInner;
29
- var DropFilesHereIconWrapper = /*#__PURE__*/(0, _styled.default)("div", {
30
- label: "DropFilesHereIconWrapper",
31
- target: "e1dajg7m2"
32
- })("position:absolute;top:90px;width:300px;display:flex;flex-direction:column;align-items:center;color:var(--mdc-theme-on-surface);");
33
- exports.DropFilesHereIconWrapper = DropFilesHereIconWrapper;
34
- var DropFilesHereIcon = /*#__PURE__*/(0, _styled.default)(_cloud_upload.ReactComponent, {
35
- label: "DropFilesHereIcon",
36
- target: "e1dajg7m3"
37
- })("width:100px !important;height:auto;display:inline-block;color:var(--mdc-theme-on-surface);");
38
- exports.DropFilesHereIcon = DropFilesHereIcon;
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0IwRSIsImZpbGUiOiJzdHlsZWQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0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jLXRoZW1lLXN1cmZhY2UpXCIgOiBcInZhcigtLW1kYy10aGVtZS1iYWNrZ3JvdW5kKVwifTtcbiAgICBib3JkZXItcmFkaXVzOiA1MCU7XG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIGxlZnQ6IDUwJTtcbiAgICB0b3A6IDUwJTtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoLTUwJSkgdHJhbnNsYXRlWSgtNTAlKTtcbmA7XG5cbmV4cG9ydCBjb25zdCBEcm9wRmlsZXNIZXJlSWNvbldyYXBwZXIgPSBzdHlsZWQoXCJkaXZcIilgXG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIHRvcDogOTBweDtcbiAgICB3aWR0aDogMzAwcHg7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgY29sb3I6IHZhcigtLW1kYy10aGVtZS1vbi1zdXJmYWNlKTtcbmA7XG5cbmV4cG9ydCBjb25zdCBEcm9wRmlsZXNIZXJlSWNvbiA9IHN0eWxlZChVcGxvYWRJY29uKWBcbiAgICB3aWR0aDogMTAwcHggIWltcG9ydGFudDtcbiAgICBoZWlnaHQ6IGF1dG87XG4gICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgIGNvbG9yOiB2YXIoLS1tZGMtdGhlbWUtb24tc3VyZmFjZSk7XG5gO1xuIl19 */"));
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBK0JxRCIsImZpbGUiOiJzdHlsZWQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tIFwiQGVtb3Rpb24vc3R5bGVkXCI7XG5pbXBvcnQgeyBSZWFjdENvbXBvbmVudCBhcyBVcGxvYWRJY29uIH0gZnJvbSBcIkBtYXRlcmlhbC1kZXNpZ24taWNvbnMvc3ZnL2ZpbGxlZC9jbG91ZF91cGxvYWQuc3ZnXCI7XG5cbnR5cGUgRHJvcEZpbGVzSGVyZVdyYXBwZXJQcm9wcyA9IHtcbiAgICBlbXB0eT86IGJvb2xlYW47XG59O1xuXG5leHBvcnQgY29uc3QgRHJvcEZpbGVzSGVyZVdyYXBwZXIgPSBzdHlsZWQoXCJkaXZcIik8RHJvcEZpbGVzSGVyZVdyYXBwZXJQcm9wcz5gXG4gICAgcG9pbnRlci1ldmVudHM6ICR7KHsgZW1wdHkgfSkgPT4gKGVtcHR5ID8gXCJhbGxcIiA6IFwibm9uZVwiKX07XG4gICAgbWFyZ2luOiAwIGF1dG87XG4gICAgcGFkZGluZy10b3A6IDA7XG4gICAgaGVpZ2h0OiBjYWxjKDEwMHZoIC0gOTVweCk7XG4gICAgei1pbmRleDogMTAwO1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICBiYWNrZ3JvdW5kOiAkeyh7IGVtcHR5IH0pID0+IChlbXB0eSA/IFwidHJhbnNwYXJlbnRcIiA6IFwidmFyKC0tbWRjLXRoZW1lLXRleHQtaGludC1vbi1saWdodClcIil9O1xuYDtcblxuZXhwb3J0IGNvb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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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlZC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBeUNtRCIsImZpbGUiOiJzdHlsZWQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tIFwiQGVtb3Rpb24vc3R5bGVkXCI7XG5pbXBvcnQgeyBSZWFjdENvbXBvbmVudCBhcyBVcGxvYWRJY29uIH0gZnJvbSBcIkBtYXRlcmlhbC1kZXNpZ24taWNvbnMvc3ZnL2ZpbGxlZC9jbG91ZF91cGxvYWQuc3ZnXCI7XG5cbnR5cGUgRHJvcEZpbGVzSGVyZVdyYXBwZXJQcm9wcyA9IHtcbiAgICBlbXB0eT86IGJvb2xlYW47XG59O1xuXG5leHBvcnQgY29uc3QgRHJvcEZpbGVzSGVyZVdyYXBwZXIgPSBzdHlsZWQoXCJkaXZcIik8RHJvcEZpbGVzSGVyZVdyYXBwZXJQcm9wcz5gXG4gICAgcG9pbnRlci1ldmVudHM6ICR7KHsgZW1wdHkgfSkgPT4gKGVtcHR5ID8gXCJhbGxcIiA6IFwibm9uZVwiKX07XG4gICAgbWFyZ2luOiAwIGF1dG87XG4gICAgcGFkZGluZy10b3A6IDA7XG4gICAg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ZS1vbi1zdXJmYWNlKTtcbmA7XG5cbmV4cG9ydCBjb25zdCBEcm9wRmlsZXNIZXJlSWNvbiA9IHN0eWxlZChVcGxvYWRJY29uKWBcbiAgICB3aWR0aDogMTAwcHggIWltcG9ydGFudDtcbiAgICBoZWlnaHQ6IGF1dG87XG4gICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgIGNvbG9yOiB2YXIoLS1tZGMtdGhlbWUtb24tc3VyZmFjZSk7XG5gO1xuIl19 */",
58
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
59
+ });
39
60
 
40
61
  //# sourceMappingURL=styled.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_styled","_interopRequireDefault","require","_cloud_upload","DropFilesHereWrapper","styled","label","target","_ref","empty","_ref2","exports","DropFilesHereInner","_ref3","DropFilesHereIconWrapper","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":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAMO,IAAME,oBAAoB,oBAAGC,eAAM,EAAC,KAAK;EAAAC,KAAA;EAAAC,MAAA;AAAA,sBAC1B,UAAAC,IAAA;EAAA,IAAGC,KAAK,GAAAD,IAAA,CAALC,KAAK;EAAA,OAAQA,KAAK,GAAG,KAAK,GAAG,MAAM;AAAA,CAAC,iHAO3C,UAAAC,KAAA;EAAA,IAAGD,KAAK,GAAAC,KAAA,CAALD,KAAK;EAAA,OAAQA,KAAK,GAAG,aAAa,GAAG,qCAAqC;AAAA,CAAC,MAC/F;AAACE,OAAA,CAAAP,oBAAA,GAAAA,oBAAA;AAEK,IAAMQ,kBAAkB,oBAAGP,eAAM,EAAC,KAAK;EAAAC,KAAA;EAAAC,MAAA;AAAA,mEAItB,UAAAM,KAAA;EAAA,IAAGJ,KAAK,GAAAI,KAAA,CAALJ,KAAK;EAAA,OACxBA,KAAK,GAAG,0BAA0B,GAAG,6BAA6B;AAAA,wGAMzE;AAACE,OAAA,CAAAC,kBAAA,GAAAA,kBAAA;AAEK,IAAME,wBAAwB,oBAAGT,eAAM,EAAC,KAAK;EAAAC,KAAA;EAAAC,MAAA;AAAA,qIAQnD;AAACI,OAAA,CAAAG,wBAAA,GAAAA,wBAAA;AAEK,IAAMC,iBAAiB,oBAAGV,eAAM,EAACW,4BAAU;EAAAV,KAAA;EAAAC,MAAA;AAAA,gGAKjD;AAACI,OAAA,CAAAI,iBAAA,GAAAA,iBAAA"}
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;EAAA,IAAGC,KAAK,GAAAD,IAAA,CAALC,KAAK;EAAA,OAAQA,KAAK,GAAG,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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
- actions?: Partial<FileDetailsActions>;
8
+ onSetFile?: (file: FileItem) => void;
10
9
  children: (params: EditFileRenderProp) => React.ReactNode;
11
10
  }
12
- export declare const EditFileUsingUrl: (({ actions, children, onUpdate }: EditFileUsingUrlProps) => JSX.Element) & {
11
+ export declare const EditFileUsingUrl: (({ children, onSetFile, onUpdate }: EditFileUsingUrlProps) => React.JSX.Element) & {
13
12
  displayName: string;
14
13
  };
15
14
  export {};