@scaleflex/widget-explorer 4.3.0 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (564) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/package.json +8 -8
  3. package/dist/style.css +0 -2197
  4. package/dist/style.min.css +0 -1
  5. package/lib/Explorer.styled.js +0 -48
  6. package/lib/components/ActionBar/ActionBar.styled.js +0 -103
  7. package/lib/components/ActionBar/DownloadWithExportButton.js +0 -203
  8. package/lib/components/ActionBar/SelectionMenu.js +0 -111
  9. package/lib/components/ActionBar/index.js +0 -105
  10. package/lib/components/AddFilesPanel/AddFiles.js +0 -183
  11. package/lib/components/AddFilesPanel/AddFiles.styled.js +0 -137
  12. package/lib/components/AddFilesPanel/index.js +0 -59
  13. package/lib/components/AiSwitcher/AiSwitcher.constants.js +0 -1
  14. package/lib/components/AiSwitcher/AiSwitcher.styled.js +0 -24
  15. package/lib/components/AiSwitcher/index.js +0 -81
  16. package/lib/components/AssetsList/AssetsList.styled.js +0 -217
  17. package/lib/components/AssetsList/GridView/FilesAccordion.js +0 -76
  18. package/lib/components/AssetsList/GridView/FilesSection/FileCell.js +0 -260
  19. package/lib/components/AssetsList/GridView/FilesSection/FileOverlayOptions.js +0 -140
  20. package/lib/components/AssetsList/GridView/FilesSection/FilesSection.styled.js +0 -15
  21. package/lib/components/AssetsList/GridView/FilesSection/index.js +0 -31
  22. package/lib/components/AssetsList/GridView/FilesSkeleton.js +0 -47
  23. package/lib/components/AssetsList/GridView/FoldersSection/FolderCell.js +0 -239
  24. package/lib/components/AssetsList/GridView/FoldersSection/FolderPreviewGrid.js +0 -106
  25. package/lib/components/AssetsList/GridView/FoldersSection/FolderTopOptions.js +0 -70
  26. package/lib/components/AssetsList/GridView/FoldersSection/index.js +0 -23
  27. package/lib/components/AssetsList/GridView/FoldersSkeleton.js +0 -77
  28. package/lib/components/AssetsList/GridView/GridView.styled.js +0 -11
  29. package/lib/components/AssetsList/GridView/SearchGridView/SearchGridView.styled.js +0 -15
  30. package/lib/components/AssetsList/GridView/SearchGridView/SearchGridViewSkeleton.js +0 -30
  31. package/lib/components/AssetsList/GridView/SearchGridView/index.js +0 -97
  32. package/lib/components/AssetsList/GridView/index.js +0 -196
  33. package/lib/components/AssetsList/ListView/AssetsSection/AssetsSectionTableHeader.js +0 -152
  34. package/lib/components/AssetsList/ListView/AssetsSection/AssetsSectionTableRow.js +0 -333
  35. package/lib/components/AssetsList/ListView/AssetsSection/index.js +0 -99
  36. package/lib/components/AssetsList/ListView/ColumnsMenu.js +0 -89
  37. package/lib/components/AssetsList/ListView/FilesAccordion.js +0 -74
  38. package/lib/components/AssetsList/ListView/FilesSkeleton.js +0 -68
  39. package/lib/components/AssetsList/ListView/FoldersSection/FoldersSectionTableHeader.js +0 -98
  40. package/lib/components/AssetsList/ListView/FoldersSection/FoldersSectionTableRow.js +0 -156
  41. package/lib/components/AssetsList/ListView/FoldersSection/index.js +0 -54
  42. package/lib/components/AssetsList/ListView/FoldersSkeleton.js +0 -67
  43. package/lib/components/AssetsList/ListView/ListView.styled.js +0 -181
  44. package/lib/components/AssetsList/ListView/ListView.utils.js +0 -30
  45. package/lib/components/AssetsList/ListView/SearchListView/index.js +0 -109
  46. package/lib/components/AssetsList/ListView/index.js +0 -203
  47. package/lib/components/AssetsList/ScrollToTop.js +0 -70
  48. package/lib/components/AssetsList/SearchView.hook.js +0 -241
  49. package/lib/components/AssetsList/__SearchTestPannel.js +0 -238
  50. package/lib/components/AssetsList/__SearchTestPannel.mock.js +0 -1
  51. package/lib/components/AssetsList/index.js +0 -266
  52. package/lib/components/AssetsList/relevanceBadge.js +0 -15
  53. package/lib/components/AssetsView/AssetsView.styled.js +0 -25
  54. package/lib/components/AssetsView/AssetsView.thunks.js +0 -64
  55. package/lib/components/AssetsView/index.js +0 -142
  56. package/lib/components/AuthExplorerView.js +0 -79
  57. package/lib/components/Breadcrumbs/BreadCrumbViews/BreadCrumbsViews.styled.js +0 -30
  58. package/lib/components/Breadcrumbs/BreadCrumbViews/index.js +0 -32
  59. package/lib/components/Breadcrumbs/Breadcrumb.js +0 -52
  60. package/lib/components/Breadcrumbs/Breadcrumbs.styled.js +0 -81
  61. package/lib/components/Breadcrumbs/BreadcrumbsSkeleton.js +0 -12
  62. package/lib/components/Breadcrumbs/index.js +0 -187
  63. package/lib/components/BulkEditPanel/BulkEdit.js +0 -330
  64. package/lib/components/BulkEditPanel/BulkEditPanel.styled.js +0 -62
  65. package/lib/components/BulkEditPanel/BulkEditPanel.utils.js +0 -55
  66. package/lib/components/BulkEditPanel/components/AssetsList/AssetsList.constants.js +0 -29
  67. package/lib/components/BulkEditPanel/components/AssetsList/AssetsList.js +0 -148
  68. package/lib/components/BulkEditPanel/components/AssetsList/AssetsList.styled.js +0 -81
  69. package/lib/components/BulkEditPanel/components/AssetsList/Columns/Columns.styled.js +0 -99
  70. package/lib/components/BulkEditPanel/components/AssetsList/Columns/FileMetadataField.js +0 -263
  71. package/lib/components/BulkEditPanel/components/AssetsList/Columns/FileTagField.js +0 -228
  72. package/lib/components/BulkEditPanel/components/AssetsList/Columns/FileTextField.js +0 -107
  73. package/lib/components/BulkEditPanel/components/AssetsList/Columns/MetadataColumn.js +0 -142
  74. package/lib/components/BulkEditPanel/components/AssetsList/Columns/TableRow.js +0 -139
  75. package/lib/components/BulkEditPanel/components/AssetsList/Columns/TagsColumn.js +0 -58
  76. package/lib/components/BulkEditPanel/components/AssetsList/Columns/TagsField.js +0 -80
  77. package/lib/components/BulkEditPanel/components/AssetsList/Columns/TextColumn.js +0 -53
  78. package/lib/components/BulkEditPanel/components/AssetsList/Columns/columns.utils.js +0 -272
  79. package/lib/components/BulkEditPanel/components/AssetsList/Columns/getActiveColumn.js +0 -23
  80. package/lib/components/BulkEditPanel/components/AssetsList/FloatyPreview.js +0 -55
  81. package/lib/components/BulkEditPanel/components/AssetsList/FloatyPreview.styled.js +0 -21
  82. package/lib/components/BulkEditPanel/components/AssetsList/TableBody.js +0 -64
  83. package/lib/components/BulkEditPanel/components/AssetsList/TableHeader.js +0 -67
  84. package/lib/components/BulkEditPanel/components/BulkEditFooter.js +0 -33
  85. package/lib/components/BulkEditPanel/components/ConfirmationModal/ConfirmationModal.js +0 -47
  86. package/lib/components/BulkEditPanel/components/ConfirmationModal/ConfirmationModal.styled.js +0 -25
  87. package/lib/components/BulkEditPanel/components/MainContent/MainContent.js +0 -110
  88. package/lib/components/BulkEditPanel/components/MainContent/MainContent.styled.js +0 -12
  89. package/lib/components/BulkEditPanel/components/MainContent/index.js +0 -2
  90. package/lib/components/BulkEditPanel/components/Sidebar/Sidebar.styled.js +0 -53
  91. package/lib/components/BulkEditPanel/components/Sidebar/Sidebar.utils.js +0 -28
  92. package/lib/components/BulkEditPanel/components/Sidebar/index.js +0 -158
  93. package/lib/components/BulkEditPanel/components/Tabs/Metadata/Metadata.js +0 -246
  94. package/lib/components/BulkEditPanel/components/Tabs/Metadata/Metadata.styled.js +0 -17
  95. package/lib/components/BulkEditPanel/components/Tabs/Tags/Tags.js +0 -222
  96. package/lib/components/BulkEditPanel/components/Tabs/Tags/Tags.mixin.js +0 -20
  97. package/lib/components/BulkEditPanel/components/Tabs/Tags/Tags.styled.js +0 -123
  98. package/lib/components/BulkEditPanel/components/Tabs/Tags/TagsContianer.js +0 -31
  99. package/lib/components/BulkEditPanel/components/Tabs/Tags/TagsPaper.js +0 -95
  100. package/lib/components/BulkEditPanel/components/Tabs/Text/Text.js +0 -167
  101. package/lib/components/BulkEditPanel/components/Tabs/Text/Text.styled.js +0 -15
  102. package/lib/components/BulkEditPanel/components/Tabs/tabs.constants.js +0 -113
  103. package/lib/components/BulkEditPanel/components/Tabs/tabs.js +0 -43
  104. package/lib/components/BulkEditPanel/components/Tabs/tabs.utils.js +0 -239
  105. package/lib/components/BulkEditPanel/index.js +0 -28
  106. package/lib/components/ContextMenu/BeforeUploadMenu/index.js +0 -51
  107. package/lib/components/ContextMenu/ContextMenu.constants.js +0 -64
  108. package/lib/components/ContextMenu/ContextMenu.hooks.js +0 -35
  109. package/lib/components/ContextMenu/ContextMenu.styled.js +0 -107
  110. package/lib/components/ContextMenu/ContextMenuContent.js +0 -202
  111. package/lib/components/ContextMenu/ContextMenuItem.js +0 -142
  112. package/lib/components/ContextMenu/FileMenu/CollaborateSection/index.js +0 -33
  113. package/lib/components/ContextMenu/FileMenu/DeleteSection/index.js +0 -25
  114. package/lib/components/ContextMenu/FileMenu/EditSection/index.js +0 -42
  115. package/lib/components/ContextMenu/FileMenu/FindSection/index.js +0 -29
  116. package/lib/components/ContextMenu/FileMenu/index.js +0 -15
  117. package/lib/components/ContextMenu/FolderMenu/CollaborateSection/index.js +0 -17
  118. package/lib/components/ContextMenu/FolderMenu/DeleteSection/index.js +0 -41
  119. package/lib/components/ContextMenu/FolderMenu/EditSection/index.js +0 -49
  120. package/lib/components/ContextMenu/FolderMenu/FindSection/index.js +0 -49
  121. package/lib/components/ContextMenu/FolderMenu/FolderMenu.utils.js +0 -31
  122. package/lib/components/ContextMenu/FolderMenu/index.js +0 -14
  123. package/lib/components/ContextMenu/MenuOptions/AddVariationOption.js +0 -59
  124. package/lib/components/ContextMenu/MenuOptions/BulkEditOption.js +0 -47
  125. package/lib/components/ContextMenu/MenuOptions/CdnLinkOption.js +0 -54
  126. package/lib/components/ContextMenu/MenuOptions/DeleteOption.js +0 -70
  127. package/lib/components/ContextMenu/MenuOptions/DownloadOption.js +0 -88
  128. package/lib/components/ContextMenu/MenuOptions/EditImageOption.js +0 -63
  129. package/lib/components/ContextMenu/MenuOptions/EditVideoOption.js +0 -87
  130. package/lib/components/ContextMenu/MenuOptions/LocateFileOption.js +0 -45
  131. package/lib/components/ContextMenu/MenuOptions/ManagaAccessOption.js +0 -67
  132. package/lib/components/ContextMenu/MenuOptions/ManageDetailsOption.js +0 -52
  133. package/lib/components/ContextMenu/MenuOptions/MoveOption.js +0 -54
  134. package/lib/components/ContextMenu/MenuOptions/PreviewOption.js +0 -35
  135. package/lib/components/ContextMenu/MenuOptions/RenameOption.js +0 -66
  136. package/lib/components/ContextMenu/MenuOptions/TransformationOption.js +0 -63
  137. package/lib/components/ContextMenu/MultipleMenu/CollaborateSection/index.js +0 -31
  138. package/lib/components/ContextMenu/MultipleMenu/DeleteSection/index.js +0 -6
  139. package/lib/components/ContextMenu/MultipleMenu/EditSection/index.js +0 -14
  140. package/lib/components/ContextMenu/MultipleMenu/FindSection/index.js +0 -14
  141. package/lib/components/ContextMenu/MultipleMenu/index.js +0 -14
  142. package/lib/components/ContextMenu/SharedMenus/DownloadFolderSubMenu.js +0 -36
  143. package/lib/components/ContextMenu/SharedMenus/DownloadSubMenu.js +0 -70
  144. package/lib/components/ContextMenu/index.js +0 -34
  145. package/lib/components/ContextMenu/utils/calculateMenuHeight.js +0 -20
  146. package/lib/components/ContextMenu/utils/calculateMenuPosition.js +0 -42
  147. package/lib/components/ContextMenu/utils/createSeparator.js +0 -14
  148. package/lib/components/ContextMenu/utils/editMedia.js +0 -17
  149. package/lib/components/ContextMenu/utils/getFileLocation.js +0 -8
  150. package/lib/components/ContextMenu/utils/getFilteredOptions.js +0 -20
  151. package/lib/components/ContextMenu/utils/getProperFolderSelections.js +0 -7
  152. package/lib/components/ContextMenu/utils/isEmptyFolderSelection.js +0 -5
  153. package/lib/components/ContextMenu/utils/isFileContextMenu.js +0 -5
  154. package/lib/components/ContextMenu/utils/isFirstFileVisibilityPublic.js +0 -9
  155. package/lib/components/ContextMenu/utils/isMenuItemVisible.js +0 -5
  156. package/lib/components/ContextMenu/utils/isMixedFiles.js +0 -9
  157. package/lib/components/ContextMenu/utils/isMultipleSelection.js +0 -6
  158. package/lib/components/ContextMenu/utils/isSeparatorHidden.js +0 -7
  159. package/lib/components/ContextMenu/utils/triggerDownload.js +0 -45
  160. package/lib/components/CropPanel/CropOptions.js +0 -155
  161. package/lib/components/CropPanel/CropPanel.constants.js +0 -44
  162. package/lib/components/CropPanel/CropPanel.styled.js +0 -107
  163. package/lib/components/CropPanel/CropPanel.utils.js +0 -48
  164. package/lib/components/CropPanel/CropPanelContent.js +0 -209
  165. package/lib/components/CropPanel/ImageOptions.js +0 -326
  166. package/lib/components/CropPanel/ImageResize.js +0 -207
  167. package/lib/components/CropPanel/Option.js +0 -113
  168. package/lib/components/CropPanel/index.js +0 -22
  169. package/lib/components/Details/Details.constants.js +0 -75
  170. package/lib/components/Details/Details.utils.js +0 -232
  171. package/lib/components/Details/DetailsSideBar.styled.js +0 -139
  172. package/lib/components/Details/EditActionButtons/EditActionButtons.styled.js +0 -27
  173. package/lib/components/Details/EditActionButtons/index.js +0 -38
  174. package/lib/components/Details/FileDetails.js +0 -31
  175. package/lib/components/Details/FileItem/CustomMetadataTab.js +0 -50
  176. package/lib/components/Details/FileItem/FileItem.styled.js +0 -47
  177. package/lib/components/Details/FileItem/GeneralTab.js +0 -113
  178. package/lib/components/Details/FileItem/SharedFileEditData.js +0 -97
  179. package/lib/components/Details/FileItem/index.js +0 -2
  180. package/lib/components/Details/FolderDetails.js +0 -138
  181. package/lib/components/Details/FolderItemList/FolderListItem.js +0 -77
  182. package/lib/components/Details/FolderItemList/index.js +0 -62
  183. package/lib/components/Details/MultiItemsDetails.js +0 -69
  184. package/lib/components/Details/MultipleItems.js +0 -71
  185. package/lib/components/Details/TabChips.js +0 -51
  186. package/lib/components/Details/TabPanels.js +0 -42
  187. package/lib/components/Details/Title.js +0 -52
  188. package/lib/components/Details/index.js +0 -53
  189. package/lib/components/DnD/Dnd.styled.js +0 -11
  190. package/lib/components/DnD/DragImage.js +0 -61
  191. package/lib/components/DnD/index.js +0 -219
  192. package/lib/components/Drawer/Drawer.styled.js +0 -45
  193. package/lib/components/Drawer/Drawer.utils.js +0 -163
  194. package/lib/components/Drawer/Resizer.js +0 -141
  195. package/lib/components/Drawer/ResizerCore.js +0 -213
  196. package/lib/components/Drawer/index.js +0 -68
  197. package/lib/components/EmptyViewPlaceholder/EmptyViewPlaceholder.styled.js +0 -39
  198. package/lib/components/EmptyViewPlaceholder/index.js +0 -58
  199. package/lib/components/ExploreView.js +0 -46
  200. package/lib/components/ExplorerUI.js +0 -17
  201. package/lib/components/ExplorerWrapper.js +0 -114
  202. package/lib/components/FacetedSearch/DrawerBody/index.js +0 -42
  203. package/lib/components/FacetedSearch/DrawerWrapper/index.js +0 -83
  204. package/lib/components/FacetedSearch/FacetedSearch.constants.js +0 -27
  205. package/lib/components/FacetedSearch/FacetedSearch.styled.js +0 -101
  206. package/lib/components/FacetedSearch/FacetedSearch.utils.js +0 -3
  207. package/lib/components/FacetedSearch/Field/Date.js +0 -69
  208. package/lib/components/FacetedSearch/Field/Placeholder.js +0 -20
  209. package/lib/components/FacetedSearch/Field/Select.js +0 -136
  210. package/lib/components/FacetedSearch/Field/Switch.js +0 -59
  211. package/lib/components/FacetedSearch/Field/index.js +0 -27
  212. package/lib/components/FacetedSearch/GroupWrapper/index.js +0 -129
  213. package/lib/components/FacetedSearch/StaticFields/Date.js +0 -152
  214. package/lib/components/FacetedSearch/index.js +0 -12
  215. package/lib/components/FileItem/FileInfo/FileInfo.styled.js +0 -126
  216. package/lib/components/FileItem/FileInfo/FileInfo.utils.js +0 -13
  217. package/lib/components/FileItem/FileInfo/FileMetadata.js +0 -37
  218. package/lib/components/FileItem/FileInfo/FileName.js +0 -197
  219. package/lib/components/FileItem/FileInfo/index.js +0 -194
  220. package/lib/components/FileItem/FileItem.mixin.js +0 -22
  221. package/lib/components/FileItem/FileItem.styled.js +0 -54
  222. package/lib/components/FileItem/FileUploadTopOptions.js +0 -87
  223. package/lib/components/FileItem/PreUploadFileThumbnail/FileThumbnail.js +0 -61
  224. package/lib/components/FileItem/PreUploadFileThumbnail/PreUploadFileThumbnail.styled.js +0 -8
  225. package/lib/components/FileItem/PreUploadFileThumbnail/index.js +0 -27
  226. package/lib/components/FileItem/index.js +0 -164
  227. package/lib/components/FileWindowPanel/Body/ActionButtons.js +0 -70
  228. package/lib/components/FileWindowPanel/Body/Body.constants.js +0 -5
  229. package/lib/components/FileWindowPanel/Body/Body.styled.js +0 -196
  230. package/lib/components/FileWindowPanel/Body/BodyFile.js +0 -165
  231. package/lib/components/FileWindowPanel/Body/Footer.js +0 -60
  232. package/lib/components/FileWindowPanel/Body/Preview.js +0 -232
  233. package/lib/components/FileWindowPanel/Body/PreviewPlaceholder.js +0 -20
  234. package/lib/components/FileWindowPanel/Body/VideoEmbed.js +0 -80
  235. package/lib/components/FileWindowPanel/Body/index.js +0 -108
  236. package/lib/components/FileWindowPanel/FileTabs/FileTabButtons.js +0 -98
  237. package/lib/components/FileWindowPanel/FileTabs/FileTabs.constants.js +0 -50
  238. package/lib/components/FileWindowPanel/FileTabs/FileTabs.styled.js +0 -99
  239. package/lib/components/FileWindowPanel/FileTabs/FileTabsList.js +0 -91
  240. package/lib/components/FileWindowPanel/FileTabs/GeneralTab/EditableField.js +0 -78
  241. package/lib/components/FileWindowPanel/FileTabs/GeneralTab/FieldLabel.js +0 -40
  242. package/lib/components/FileWindowPanel/FileTabs/GeneralTab/FieldRow.js +0 -57
  243. package/lib/components/FileWindowPanel/FileTabs/GeneralTab/FieldValue.js +0 -20
  244. package/lib/components/FileWindowPanel/FileTabs/GeneralTab/FieldWithTooltip.js +0 -29
  245. package/lib/components/FileWindowPanel/FileTabs/GeneralTab/GeneralSection.js +0 -183
  246. package/lib/components/FileWindowPanel/FileTabs/GeneralTab/GeneralTab.constants.js +0 -2
  247. package/lib/components/FileWindowPanel/FileTabs/GeneralTab/GeneralTab.styled.js +0 -112
  248. package/lib/components/FileWindowPanel/FileTabs/GeneralTab/GeneralTabSkeleton.js +0 -70
  249. package/lib/components/FileWindowPanel/FileTabs/GeneralTab/TableSeparator.js +0 -10
  250. package/lib/components/FileWindowPanel/FileTabs/GeneralTab/index.js +0 -100
  251. package/lib/components/FileWindowPanel/FileTabs/MetadataTab/CustomMetadataSection.js +0 -247
  252. package/lib/components/FileWindowPanel/FileTabs/MetadataTab/EmbeddedMetadataSection.js +0 -31
  253. package/lib/components/FileWindowPanel/FileTabs/MetadataTab/MetadataTab.constants.js +0 -2
  254. package/lib/components/FileWindowPanel/FileTabs/MetadataTab/MetadataTab.styled.js +0 -134
  255. package/lib/components/FileWindowPanel/FileTabs/MetadataTab/MetadataTabSkeleton.js +0 -70
  256. package/lib/components/FileWindowPanel/FileTabs/MetadataTab/index.js +0 -181
  257. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationItem.js +0 -78
  258. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/Variations.constants.js +0 -26
  259. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/Variations.styled.js +0 -177
  260. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/Variations.thunks.js +0 -99
  261. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/Variations.utils.js +0 -23
  262. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsContent.js +0 -92
  263. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsEditModalContent.js +0 -57
  264. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsSearch.js +0 -44
  265. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsSkeleton.js +0 -35
  266. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsTabNavigator.js +0 -38
  267. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsTabs.js +0 -40
  268. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsTopOptions.js +0 -204
  269. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/index.js +0 -603
  270. package/lib/components/FileWindowPanel/FileTabs/index.js +0 -83
  271. package/lib/components/FileWindowPanel/FileWindow.js +0 -221
  272. package/lib/components/FileWindowPanel/FileWindow.styled.js +0 -19
  273. package/lib/components/FileWindowPanel/FileWindow.utils.js +0 -38
  274. package/lib/components/FileWindowPanel/Header/AfterUploadActionBtns.js +0 -69
  275. package/lib/components/FileWindowPanel/Header/BeforeUploadActionBtns.js +0 -100
  276. package/lib/components/FileWindowPanel/Header/FileWindowHeader.styled.js +0 -56
  277. package/lib/components/FileWindowPanel/Header/MutualActionBtns.js +0 -92
  278. package/lib/components/FileWindowPanel/Header/index.js +0 -109
  279. package/lib/components/FileWindowPanel/index.js +0 -60
  280. package/lib/components/Filters/Filters.constants.js +0 -358
  281. package/lib/components/Filters/Filters.styled.js +0 -235
  282. package/lib/components/Filters/Filters.utils.js +0 -536
  283. package/lib/components/Filters/FiltersContext.js +0 -59
  284. package/lib/components/Filters/FiltersSkeleton.js +0 -14
  285. package/lib/components/Filters/Groups/Date/index.js +0 -201
  286. package/lib/components/Filters/Groups/Folders/FoldersSkeleton.js +0 -43
  287. package/lib/components/Filters/Groups/Folders/index.js +0 -109
  288. package/lib/components/Filters/Groups/Image/Colors.js +0 -73
  289. package/lib/components/Filters/Groups/Image/Faces.js +0 -64
  290. package/lib/components/Filters/Groups/Image/Orientations.js +0 -64
  291. package/lib/components/Filters/Groups/Image/Resolutions.js +0 -65
  292. package/lib/components/Filters/Groups/Image/Tooltip.js +0 -14
  293. package/lib/components/Filters/Groups/Image/index.js +0 -104
  294. package/lib/components/Filters/Groups/LicenseExpiry/LicenseExpiry.styled.js +0 -17
  295. package/lib/components/Filters/Groups/LicenseExpiry/index.js +0 -97
  296. package/lib/components/Filters/Groups/Metadata/Advanced/ConditionSelector.js +0 -40
  297. package/lib/components/Filters/Groups/Metadata/Advanced/ExtraRow/ConditionSelector.js +0 -35
  298. package/lib/components/Filters/Groups/Metadata/Advanced/ExtraRow/ValueSelector.js +0 -33
  299. package/lib/components/Filters/Groups/Metadata/Advanced/ExtraRow/index.js +0 -18
  300. package/lib/components/Filters/Groups/Metadata/Advanced/Field/AutoComplete.js +0 -56
  301. package/lib/components/Filters/Groups/Metadata/Advanced/Field/Boolean.js +0 -35
  302. package/lib/components/Filters/Groups/Metadata/Advanced/Field/Date.js +0 -36
  303. package/lib/components/Filters/Groups/Metadata/Advanced/Field/GeoPointField.js +0 -30
  304. package/lib/components/Filters/Groups/Metadata/Advanced/Field/Numeric.js +0 -32
  305. package/lib/components/Filters/Groups/Metadata/Advanced/Field/Select.js +0 -55
  306. package/lib/components/Filters/Groups/Metadata/Advanced/Field/Tags.js +0 -21
  307. package/lib/components/Filters/Groups/Metadata/Advanced/Field/Text.js +0 -39
  308. package/lib/components/Filters/Groups/Metadata/Advanced/Field/index.js +0 -52
  309. package/lib/components/Filters/Groups/Metadata/Advanced/KeySelector.js +0 -34
  310. package/lib/components/Filters/Groups/Metadata/Advanced/Row.js +0 -53
  311. package/lib/components/Filters/Groups/Metadata/Advanced/index.js +0 -48
  312. package/lib/components/Filters/Groups/Metadata/Basic/Field/Date.js +0 -45
  313. package/lib/components/Filters/Groups/Metadata/Basic/Field/Field.utils.js +0 -58
  314. package/lib/components/Filters/Groups/Metadata/Basic/Field/Numeric.js +0 -51
  315. package/lib/components/Filters/Groups/Metadata/Basic/Field/OptionsPopup.js +0 -87
  316. package/lib/components/Filters/Groups/Metadata/Basic/Field/Select.js +0 -168
  317. package/lib/components/Filters/Groups/Metadata/Basic/Field/Switch.js +0 -41
  318. package/lib/components/Filters/Groups/Metadata/Basic/Field/Tags.js +0 -38
  319. package/lib/components/Filters/Groups/Metadata/Basic/Field/Text.js +0 -57
  320. package/lib/components/Filters/Groups/Metadata/Basic/Field/Uri.js +0 -54
  321. package/lib/components/Filters/Groups/Metadata/Basic/Field/index.js +0 -46
  322. package/lib/components/Filters/Groups/Metadata/Basic/GroupWrapper.js +0 -79
  323. package/lib/components/Filters/Groups/Metadata/Basic/index.js +0 -80
  324. package/lib/components/Filters/Groups/Metadata/Metadata.constants.js +0 -42
  325. package/lib/components/Filters/Groups/Metadata/Metadata.styled.js +0 -150
  326. package/lib/components/Filters/Groups/Metadata/Metadata.utils.js +0 -160
  327. package/lib/components/Filters/Groups/Metadata/MetadataFiltersContext.js +0 -329
  328. package/lib/components/Filters/Groups/Metadata/Placeholder.js +0 -25
  329. package/lib/components/Filters/Groups/Metadata/common/TagsField/TagsMenu.js +0 -81
  330. package/lib/components/Filters/Groups/Metadata/common/TagsField/TagsSearchPlaceholder.js +0 -18
  331. package/lib/components/Filters/Groups/Metadata/common/TagsField/index.js +0 -142
  332. package/lib/components/Filters/Groups/Metadata/index.js +0 -111
  333. package/lib/components/Filters/Groups/Size/index.js +0 -125
  334. package/lib/components/Filters/Groups/Tags/FilteredTags.js +0 -62
  335. package/lib/components/Filters/Groups/Tags/SelectedTags.js +0 -51
  336. package/lib/components/Filters/Groups/Tags/SuggestedTags.js +0 -43
  337. package/lib/components/Filters/Groups/Tags/index.js +0 -146
  338. package/lib/components/Filters/Groups/TypeAndFormat/Format.js +0 -65
  339. package/lib/components/Filters/Groups/TypeAndFormat/Type.js +0 -85
  340. package/lib/components/Filters/Groups/TypeAndFormat/index.js +0 -114
  341. package/lib/components/Filters/Groups/common/DateRangeField/DateRangeField.styled.js +0 -10
  342. package/lib/components/Filters/Groups/common/DateRangeField/index.js +0 -72
  343. package/lib/components/Filters/Groups/common/FilterFooter.js +0 -67
  344. package/lib/components/Filters/Groups/common/FilterOptions.js +0 -29
  345. package/lib/components/Filters/Groups/common/FilterSearch.js +0 -22
  346. package/lib/components/Filters/Groups/common/FilterSearch.styled.js +0 -15
  347. package/lib/components/Filters/Groups/common/FilterSkeleton.js +0 -44
  348. package/lib/components/Filters/Groups/common/TimeFrames.js +0 -35
  349. package/lib/components/Filters/Groups/index.js +0 -55
  350. package/lib/components/Filters/Placeholder.js +0 -29
  351. package/lib/components/Filters/hooks/useDateTypeFilterValues.js +0 -182
  352. package/lib/components/Filters/hooks/useFilters.js +0 -78
  353. package/lib/components/Filters/index.js +0 -78
  354. package/lib/components/FoldersView/FoldersTree/FoldersTree.styled.js +0 -193
  355. package/lib/components/FoldersView/FoldersTree/FoldersTree.utils.js +0 -78
  356. package/lib/components/FoldersView/FoldersTree/FoldersTreeHeader.js +0 -52
  357. package/lib/components/FoldersView/FoldersTree/FoldersTreeList.js +0 -64
  358. package/lib/components/FoldersView/FoldersTree/FoldersTreeListItem.js +0 -270
  359. package/lib/components/FoldersView/FoldersTree/FoldersTreeSearch.js +0 -70
  360. package/lib/components/FoldersView/FoldersTree/FoldersTreeSkeleton.js +0 -23
  361. package/lib/components/FoldersView/FoldersTree/NoFoldersResult.js +0 -19
  362. package/lib/components/FoldersView/FoldersTree/SearchedFoldersItem.js +0 -113
  363. package/lib/components/FoldersView/FoldersTree/index.js +0 -163
  364. package/lib/components/FoldersView/hooks/useAddFolder.js +0 -60
  365. package/lib/components/FoldersView/index.js +0 -282
  366. package/lib/components/GalleryRoleSelect/CustomRolesTab.js +0 -47
  367. package/lib/components/GalleryRoleSelect/CustomRolesTab.styled.js +0 -10
  368. package/lib/components/GalleryRoleSelect/GalleryRoleSelect.constants.js +0 -11
  369. package/lib/components/GalleryRoleSelect/GalleryRoleSelect.styled.js +0 -132
  370. package/lib/components/GalleryRoleSelect/GalleryRoleSelect.utils.js +0 -87
  371. package/lib/components/GalleryRoleSelect/StandardRolesTab.js +0 -58
  372. package/lib/components/GalleryRoleSelect/index.js +0 -234
  373. package/lib/components/HeaderBar/FacetedSearchToggleButton.js +0 -28
  374. package/lib/components/HeaderBar/HeaderBar.styled.js +0 -25
  375. package/lib/components/HeaderBar/RightSide.js +0 -127
  376. package/lib/components/HeaderBar/index.js +0 -77
  377. package/lib/components/ImageEditorPanel/index.js +0 -33
  378. package/lib/components/InfiniteScroll/InfiniteScroll.js +0 -97
  379. package/lib/components/InfiniteScroll/InfiniteScroll.styled.js +0 -11
  380. package/lib/components/Informer/index.js +0 -9
  381. package/lib/components/LoginScreen/LoginScreen.styled.js +0 -39
  382. package/lib/components/LoginScreen/index.js +0 -133
  383. package/lib/components/MainMenu/MainMenu.styled.js +0 -12
  384. package/lib/components/MainMenu/index.js +0 -77
  385. package/lib/components/Modals/AddNewFolder/AddNewFolder.hooks.js +0 -99
  386. package/lib/components/Modals/AddNewFolder/index.js +0 -1
  387. package/lib/components/Modals/ConfirmationModal/ConfirmationModal.hooks.js +0 -101
  388. package/lib/components/Modals/ConfirmationModal/index.js +0 -1
  389. package/lib/components/Modals/DeleteItems/DeleteItems.hooks.js +0 -233
  390. package/lib/components/Modals/DeleteItems/index.js +0 -1
  391. package/lib/components/Modals/DeleteModal/DeleteModal.hooks.js +0 -87
  392. package/lib/components/Modals/DeleteModal/index.js +0 -1
  393. package/lib/components/Modals/DownloadConsent/DownlaodConsent.styled.js +0 -8
  394. package/lib/components/Modals/DownloadConsent/DownloadConsent.hooks.js +0 -90
  395. package/lib/components/Modals/DownloadConsent/DownloadConsentContent.js +0 -52
  396. package/lib/components/Modals/DownloadConsent/index.js +0 -2
  397. package/lib/components/Modals/Modals.js +0 -386
  398. package/lib/components/Modals/Modals.styled.js +0 -80
  399. package/lib/components/Modals/MoveItems/MoveItems.hooks.js +0 -88
  400. package/lib/components/Modals/MoveItems/index.js +0 -1
  401. package/lib/components/Modals/TransformedDownload/PdfModalContent.js +0 -109
  402. package/lib/components/Modals/TransformedDownload/TransformedDownload.hooks.js +0 -188
  403. package/lib/components/Modals/TransformedDownload/TransformedDownload.styled.js +0 -29
  404. package/lib/components/Modals/TransformedDownload/TransformedDownload.utils.js +0 -46
  405. package/lib/components/Modals/TransformedDownload/index.js +0 -2
  406. package/lib/components/Modals/index.js +0 -8
  407. package/lib/components/NoItems/NoItems.styled.js +0 -54
  408. package/lib/components/NoItems/index.js +0 -50
  409. package/lib/components/PdftronPanel/index.js +0 -31
  410. package/lib/components/PickerPanel/PickerPanel.styled.js +0 -41
  411. package/lib/components/PickerPanel/PickerPanelContent.js +0 -100
  412. package/lib/components/PickerPanel/index.js +0 -21
  413. package/lib/components/ProgressPanel/ProgressPanel.utils.js +0 -29
  414. package/lib/components/ProgressPanel/index.js +0 -37
  415. package/lib/components/TopBar/AppliedFilterChips/AppliedFilterChips.styled.js +0 -11
  416. package/lib/components/TopBar/AppliedFilterChips/index.js +0 -77
  417. package/lib/components/TopBar/Search/ContextDropdown/ContextDropdown.styled.js +0 -59
  418. package/lib/components/TopBar/Search/ContextDropdown/ContextDropdown.utils.js +0 -67
  419. package/lib/components/TopBar/Search/ContextDropdown/index.js +0 -170
  420. package/lib/components/TopBar/Search/PrependedOptions/TempFilterRegexInput.js +0 -133
  421. package/lib/components/TopBar/Search/Search.utils.js +0 -88
  422. package/lib/components/TopBar/Search/SimilarSearchTag.js +0 -60
  423. package/lib/components/TopBar/Search/index.js +0 -251
  424. package/lib/components/TopBar/TopBar.styled.js +0 -37
  425. package/lib/components/TopBar/index.js +0 -61
  426. package/lib/components/TopSection/TopSection.styled.js +0 -22
  427. package/lib/components/TopSection/index.js +0 -58
  428. package/lib/components/UploadBar/UploadBar.styled.js +0 -84
  429. package/lib/components/UploadBar/index.js +0 -222
  430. package/lib/components/UploadStatus/index.js +0 -20
  431. package/lib/components/UploadsPanel/UploadsList/Header.js +0 -19
  432. package/lib/components/UploadsPanel/UploadsList/List.js +0 -29
  433. package/lib/components/UploadsPanel/UploadsList/PreUploadPlugins.js +0 -22
  434. package/lib/components/UploadsPanel/UploadsList/UploadsList.styled.js +0 -64
  435. package/lib/components/UploadsPanel/UploadsList/UploadsList.utils.js +0 -17
  436. package/lib/components/UploadsPanel/UploadsList/UploadsVirtualGrid.js +0 -29
  437. package/lib/components/UploadsPanel/UploadsList/index.js +0 -55
  438. package/lib/components/UploadsPanel/UploadsPanel.styled.js +0 -24
  439. package/lib/components/UploadsPanel/UploadsPanelTopBar.js +0 -16
  440. package/lib/components/UploadsPanel/index.js +0 -36
  441. package/lib/components/UrlBuilderModal/UrlBuilderModal.styled.js +0 -9
  442. package/lib/components/UrlBuilderModal/index.js +0 -97
  443. package/lib/components/Views/ErroredViewPlaceholder.js +0 -48
  444. package/lib/components/Views/Views.constants.js +0 -29
  445. package/lib/components/Views/Views.styled.js +0 -87
  446. package/lib/components/Views/index.js +0 -100
  447. package/lib/components/common/DeleteModalItemText/DeleteModalItemText.styled.js +0 -8
  448. package/lib/components/common/DeleteModalItemText/index.js +0 -24
  449. package/lib/components/common/EditDetailsButton/EditDetailsButton.styled.js +0 -35
  450. package/lib/components/common/EditDetailsButton/index.js +0 -28
  451. package/lib/components/common/ExpiryDateTooltipContent/ExpiryDateTooltipContent.styled.js +0 -16
  452. package/lib/components/common/ExpiryDateTooltipContent/index.js +0 -29
  453. package/lib/components/common/FileApprovalsInfoPopup/index.js +0 -46
  454. package/lib/components/common/FileMetadataFieldValue/CustomMetadataFieldValue.js +0 -48
  455. package/lib/components/common/FileMetadataFieldValue/FileMetadataFieldValue.styled.js +0 -66
  456. package/lib/components/common/FileMetadataFieldValue/FileMetadataFieldValue.utils.js +0 -315
  457. package/lib/components/common/FileMetadataFieldValue/GeneralMetadataFieldValue.js +0 -120
  458. package/lib/components/common/FileMetadataFieldValue/index.js +0 -26
  459. package/lib/components/common/FileMetadataFieldValue/utils/getFontInfo.js +0 -78
  460. package/lib/components/common/FolderSelector/BrowseFoldersMenu.js +0 -114
  461. package/lib/components/common/FolderSelector/FolderSearchMenu.js +0 -45
  462. package/lib/components/common/FolderSelector/FolderSelector.styled.js +0 -41
  463. package/lib/components/common/FolderSelector/index.js +0 -186
  464. package/lib/components/common/FormattedUriLink/FormattedUriLink.styled.js +0 -15
  465. package/lib/components/common/FormattedUriLink/index.js +0 -21
  466. package/lib/components/common/OriginalBadge/OriginalBadge.styled.js +0 -17
  467. package/lib/components/common/OriginalBadge/index.js +0 -14
  468. package/lib/components/common/SanitizedHtmlElement/index.js +0 -11
  469. package/lib/components/common/Sort/Sort.constants.js +0 -61
  470. package/lib/components/common/Sort/Sort.styled.js +0 -47
  471. package/lib/components/common/Sort/Sort.utils.js +0 -14
  472. package/lib/components/common/Sort/index.js +0 -183
  473. package/lib/components/common/TextWithCopyIcon/TextWithCopyIcon.styled.js +0 -44
  474. package/lib/components/common/TextWithCopyIcon/index.js +0 -71
  475. package/lib/components/common/TopBarUploadButton/index.js +0 -40
  476. package/lib/components/common/TrimmedFilePathWithLocate/TrimmedFilePathWithLocate.utils.js +0 -3
  477. package/lib/components/common/TrimmedFilePathWithLocate/index.js +0 -34
  478. package/lib/components/common/TrimmedFolderPathWithLocate/index.js +0 -13
  479. package/lib/components/common/TrimmedPathWithLocate/TrimmedPathWithLocate.styled.js +0 -30
  480. package/lib/components/common/TrimmedPathWithLocate/index.js +0 -40
  481. package/lib/components/metadata.adapter.js +0 -365
  482. package/lib/defaultLocale.js +0 -1361
  483. package/lib/hooks/index.js +0 -16
  484. package/lib/hooks/useAssetsPicker.js +0 -274
  485. package/lib/hooks/useDownloadFilesCsv.js +0 -20
  486. package/lib/hooks/useEditFileDetails.js +0 -505
  487. package/lib/hooks/useExplorer.js +0 -6
  488. package/lib/hooks/useExplorerI18n.js +0 -10
  489. package/lib/hooks/useExplorerInformer.js +0 -10
  490. package/lib/hooks/useFetchFileFolderPermissions.js +0 -31
  491. package/lib/hooks/useFetchMetadataTagsBySearchQuery.js +0 -38
  492. package/lib/hooks/useFileMetadata.js +0 -117
  493. package/lib/hooks/useFilterSearch.js +0 -37
  494. package/lib/hooks/useForcedFilters.js +0 -39
  495. package/lib/hooks/useIsOverflow.js +0 -25
  496. package/lib/hooks/useIsSmallScreen.js +0 -20
  497. package/lib/hooks/useLocateFile.js +0 -231
  498. package/lib/hooks/usePrevious.js +0 -9
  499. package/lib/hooks/useSearchSuggestions.js +0 -168
  500. package/lib/hooks/useStartUpload.js +0 -43
  501. package/lib/hooks/useToLocaleNumber.js +0 -14
  502. package/lib/hooks/useValidateFileName.js +0 -324
  503. package/lib/index.js +0 -1587
  504. package/lib/slices/common.slice.js +0 -254
  505. package/lib/slices/drag.slice.js +0 -75
  506. package/lib/slices/files.slice.js +0 -1307
  507. package/lib/slices/filters.slice.js +0 -382
  508. package/lib/slices/folders.slice.js +0 -964
  509. package/lib/slices/foldersTree.slice.js +0 -501
  510. package/lib/slices/index.js +0 -32
  511. package/lib/slices/metadata.slice.js +0 -494
  512. package/lib/slices/panels.slice.js +0 -351
  513. package/lib/slices/search.slice.js +0 -995
  514. package/lib/slices/selections.slice.js +0 -315
  515. package/lib/slices/targets.slice.js +0 -44
  516. package/lib/slices/topSection.slice.js +0 -71
  517. package/lib/slices/views.slice.js +0 -345
  518. package/lib/thunks/archive.thunks.js +0 -175
  519. package/lib/thunks/downloads.thunks.js +0 -415
  520. package/lib/thunks/items.thunks.js +0 -274
  521. package/lib/thunks/permissions.thunks.js +0 -66
  522. package/lib/thunks/uploads.thunks.js +0 -235
  523. package/lib/utils/SearchSuggestions/SearchSuggestionsMenu.js +0 -95
  524. package/lib/utils/SearchSuggestions/SuggestionMode.js +0 -70
  525. package/lib/utils/SearchSuggestions/SuggestionModeAttribute.js +0 -87
  526. package/lib/utils/SearchSuggestions/SuggestionModeExpression.js +0 -121
  527. package/lib/utils/SearchSuggestions/SuggestionModeTag.js +0 -87
  528. package/lib/utils/SearchSuggestions/SuggestionsManager.js +0 -242
  529. package/lib/utils/SearchSuggestions/constants.js +0 -14
  530. package/lib/utils/SearchSuggestions/index.js +0 -4
  531. package/lib/utils/SearchSuggestions/styled.js +0 -12
  532. package/lib/utils/availableScreenSizes.js +0 -4
  533. package/lib/utils/constants.js +0 -14
  534. package/lib/utils/convertItemsToFilesFoldersUuids.js +0 -12
  535. package/lib/utils/convertItemstoFoldersParentUuids.js +0 -12
  536. package/lib/utils/createPromise.js +0 -9
  537. package/lib/utils/createSuperFocus.js +0 -43
  538. package/lib/utils/decodeB64ToStr.js +0 -11
  539. package/lib/utils/filters.js +0 -333
  540. package/lib/utils/formatFolderPath.js +0 -10
  541. package/lib/utils/formatPinSubTitle.js +0 -17
  542. package/lib/utils/getAcquirerTitle.js +0 -10
  543. package/lib/utils/getActiveOverlayEl.js +0 -11
  544. package/lib/utils/getApiPathtype.js +0 -10
  545. package/lib/utils/getClosestStr.js +0 -22
  546. package/lib/utils/getItemUuids.js +0 -12
  547. package/lib/utils/getLabelsTotalAssetsCount.js +0 -6
  548. package/lib/utils/getMoveAndDeleteData.js +0 -15
  549. package/lib/utils/getParentFolderPath.js +0 -4
  550. package/lib/utils/getQueryStringFromUrl.js +0 -6
  551. package/lib/utils/getScrollableParent.js +0 -15
  552. package/lib/utils/getStringValueExistedInObj.js +0 -9
  553. package/lib/utils/isEmbeddableAsset.js +0 -6
  554. package/lib/utils/isFileVersion.js +0 -9
  555. package/lib/utils/mapArrayKeysToObjValues.js +0 -33
  556. package/lib/utils/mapFiltersToShownFormat.js +0 -252
  557. package/lib/utils/prepareExportedFilesLinks.js +0 -12
  558. package/lib/utils/prepareSearchUrl.js +0 -65
  559. package/lib/utils/removeBackground.js +0 -60
  560. package/lib/utils/removeExtraUrlParams.js +0 -13
  561. package/lib/utils/scrollToAndFocusItemElement.js +0 -16
  562. package/lib/utils/toggleFolderNotFoundModal.js +0 -25
  563. package/lib/utils/trapFocus.js +0 -59
  564. package/lib/utils/truncateString.js +0 -28
@@ -1,83 +0,0 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
8
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
10
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
11
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
13
- import { useMemo, useState } from 'react';
14
- import { PLUGINS_IDS, FILE_WINDOW_TAB_IDS } from '@scaleflex/widget-utils/lib/constants';
15
- import { useEditFileDetails, useExplorer } from '../../../hooks';
16
- import { TABS_COMPONENTS } from './FileTabs.constants';
17
- import Styled from './FileTabs.styled';
18
- import FileTabsList from './FileTabsList';
19
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
20
- var FileTabs = function FileTabs(_ref) {
21
- var _ref$originalFile = _ref.originalFile,
22
- originalFile = _ref$originalFile === void 0 ? {} : _ref$originalFile,
23
- _ref$previewedFile = _ref.previewedFile,
24
- previewedFile = _ref$previewedFile === void 0 ? {} : _ref$previewedFile,
25
- setPreviewedFile = _ref.setPreviewedFile,
26
- activeTabId = _ref.activeTabId,
27
- setActiveTabId = _ref.setActiveTabId,
28
- isPreUpload = _ref.isPreUpload,
29
- alertUnsavedChangesFirst = _ref.alertUnsavedChangesFirst,
30
- hasUnsavedChangesRef = _ref.hasUnsavedChangesRef,
31
- isVariantsOpened = _ref.isVariantsOpened,
32
- activeVariationsTabId = _ref.activeVariationsTabId,
33
- setActiveVariationsTabId = _ref.setActiveVariationsTabId;
34
- var _useExplorer = useExplorer(),
35
- i18n = _useExplorer.i18n,
36
- filerobot = _useExplorer.filerobot;
37
- var _useState = useState(false),
38
- _useState2 = _slicedToArray(_useState, 2),
39
- isTabsHidden = _useState2[0],
40
- setIsTabsHidden = _useState2[1];
41
- var approvalPlugin = filerobot.getPlugin(PLUGINS_IDS.APPROVALS);
42
- var editFileDetailsProps = useEditFileDetails({
43
- file: originalFile,
44
- useFileWindow: true,
45
- customHasUnsavedChangesRef: hasUnsavedChangesRef
46
- });
47
- var ActiveTabComponent = useMemo(function () {
48
- if (activeTabId === FILE_WINDOW_TAB_IDS.APPROVALS) {
49
- return approvalPlugin === null || approvalPlugin === void 0 ? void 0 : approvalPlugin.render();
50
- }
51
- return TABS_COMPONENTS[activeTabId];
52
- }, [activeTabId]);
53
- var isFileLoading = originalFile.loading;
54
- var commonProps = {
55
- isPreUpload: isPreUpload,
56
- originalFile: originalFile,
57
- isFileLoading: isFileLoading,
58
- alertUnsavedChangesFirst: alertUnsavedChangesFirst,
59
- hasUnsavedChangesRef: hasUnsavedChangesRef,
60
- setIsTabsHidden: setIsTabsHidden,
61
- editFileDetailsProps: editFileDetailsProps
62
- };
63
- return /*#__PURE__*/_jsxs(Styled.Container, {
64
- isCommentsTab: activeTabId === FILE_WINDOW_TAB_IDS.COMMENTS,
65
- isVariantsOpened: isVariantsOpened,
66
- showTabs: true,
67
- children: [/*#__PURE__*/_jsx(FileTabsList, _objectSpread(_objectSpread({}, commonProps), {}, {
68
- activeTabId: activeTabId,
69
- setActiveTabId: setActiveTabId,
70
- isTabsHidden: isTabsHidden
71
- })), /*#__PURE__*/_jsx(Styled.ActiveTabWrapper, {
72
- children: ActiveTabComponent && /*#__PURE__*/_jsx(ActiveTabComponent, _objectSpread(_objectSpread({}, commonProps), {}, {
73
- i18n: i18n,
74
- previewedFile: previewedFile,
75
- setPreviewedFile: setPreviewedFile,
76
- activeVariationsTabId: activeVariationsTabId,
77
- setActiveVariationsTabId: setActiveVariationsTabId,
78
- activeTabId: activeTabId
79
- }))
80
- })]
81
- });
82
- };
83
- export default FileTabs;
@@ -1,221 +0,0 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
8
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
10
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
11
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
13
- import { useState, useEffect, useRef } from 'react';
14
- import { useDispatch, useSelector } from 'react-redux';
15
- import isPdf from '@scaleflex/widget-utils/lib/isPdf';
16
- import isVideo from '@scaleflex/widget-utils/lib/isVideo';
17
- import isAudio from '@scaleflex/widget-utils/lib/isAudio';
18
- import isAudioAndSupportsPlayback from '@scaleflex/widget-utils/lib/isAudioAndSupportsPlayback';
19
- import isImage from '@scaleflex/widget-utils/lib/isImage';
20
- import { usePlugin } from '@scaleflex/widget-core/lib/hooks';
21
- import { FMAW_URL_QUERY_PARAMS, PLUGINS_IDS, FILE_WINDOW_TAB_IDS } from '@scaleflex/widget-utils/lib/constants';
22
- import isObjectURL from '@scaleflex/widget-utils/lib/isObjectURL';
23
- import isEmptyObject from '@scaleflex/widget-utils/lib/isEmptyObject';
24
- import isUploadableFile from '@scaleflex/widget-utils/lib/isUploadableFile';
25
- import StyledFileWindow from './FileWindow.styled';
26
- import FileTabs from './FileTabs';
27
- import Header from './Header';
28
- import Body from './Body';
29
- import { useExplorer } from '../../hooks';
30
- import { fileWindowUpdated, selectFileWindow, selectFileWindowTabId } from '../../slices/panels.slice';
31
- import { fetchFileByUuid } from '../../slices/files.slice';
32
- import { useConfirmationModal } from '../Modals';
33
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
34
- var FileWindow = function FileWindow(_ref) {
35
- var originalFile = _ref.originalFile;
36
- var dispatch = useDispatch();
37
- var triggerConfirmationModal = useConfirmationModal();
38
- var _useExplorer = useExplorer(),
39
- i18n = _useExplorer.i18n,
40
- opts = _useExplorer.opts,
41
- replaceUrlQueryParams = _useExplorer.replaceUrlQueryParams,
42
- deleteUrlQueryParams = _useExplorer.deleteUrlQueryParams,
43
- i18nArray = _useExplorer.i18nArray;
44
- var isEditing = useSelector(function (state) {
45
- return selectFileWindow(state).enableEdit;
46
- });
47
- var useAssetsPicker = opts.useAssetsPicker;
48
- var isMediaPlayerSupported = Boolean(usePlugin(PLUGINS_IDS.MEDIA_PLAYER));
49
- var isPdfPreviewSupported = Boolean(usePlugin(PLUGINS_IDS.PDF_JS));
50
-
51
- // As file window is used for both pre-uploads or new uploads and current files,
52
- // we need to get files from the right place depending on the ids/uuids
53
-
54
- var defaultActiveTabId = useSelector(function (state) {
55
- return selectFileWindowTabId(state) || FILE_WINDOW_TAB_IDS.GENERAL;
56
- });
57
- var activeTabId = defaultActiveTabId;
58
-
59
- // Previewed file might be any variant/version of the file, but original file is the original file itself.
60
-
61
- var _useState = useState(null),
62
- _useState2 = _slicedToArray(_useState, 2),
63
- previewedFile = _useState2[0],
64
- setPreviewedFile = _useState2[1];
65
- var _useState3 = useState(false),
66
- _useState4 = _slicedToArray(_useState3, 2),
67
- isVariantsOpened = _useState4[0],
68
- setIsVariantsOpened = _useState4[1];
69
- var _useState5 = useState(null),
70
- _useState6 = _slicedToArray(_useState5, 2),
71
- activeVariationsTabId = _useState6[0],
72
- setActiveVariationsTabId = _useState6[1];
73
- var _useState7 = useState(false),
74
- _useState8 = _slicedToArray(_useState7, 2),
75
- isFileTabsHidden = _useState8[0],
76
- setIsFileTabsHidden = _useState8[1];
77
- var hasUnsavedChangesRef = useRef(false);
78
- var isPreUpload = isUploadableFile(originalFile);
79
- var isPdfFile = isPdf(originalFile);
80
- var isImageFile = isImage(originalFile);
81
- var isVideoFile = isVideo(originalFile);
82
- var isAudioFile = isAudio(originalFile);
83
- var fileIdOrUuid = originalFile.uuid || originalFile.id;
84
- var isAudioFileAndSupportsPlayback = isMediaPlayerSupported && isAudioAndSupportsPlayback(originalFile);
85
- var isSupportAnnotationFile = isImageFile || isVideoFile;
86
- var setFileData = function setFileData() {
87
- var fetchedFilePromise = dispatch(fetchFileByUuid({
88
- uuid: originalFile.uuid
89
- }));
90
- fetchedFilePromise.then(setPreviewedFile);
91
- return fetchedFilePromise;
92
- };
93
- var setActiveTabId = function setActiveTabId(newTabId) {
94
- dispatch(fileWindowUpdated({
95
- tabId: newTabId
96
- }));
97
- replaceUrlQueryParams({
98
- params: _defineProperty({}, FMAW_URL_QUERY_PARAMS.FILE_WINDOW_TAB, newTabId)
99
- });
100
- };
101
- var alertUnsavedChangesFirst = function alertUnsavedChangesFirst(_onConfirm) {
102
- if (isEditing && hasUnsavedChangesRef.current) {
103
- triggerConfirmationModal({
104
- title: i18n('fileWindowDiscardChangesModalTitle'),
105
- description: i18nArray('fileWindowDiscardChangesModalDesc', {
106
- asset_name: /*#__PURE__*/_jsx(StyledFileWindow.FileName, {
107
- children: originalFile.name
108
- })
109
- }),
110
- onConfirm: function onConfirm() {
111
- hasUnsavedChangesRef.current = false;
112
- if (typeof _onConfirm === 'function') {
113
- _onConfirm();
114
- }
115
- }
116
- });
117
- return;
118
- }
119
- _onConfirm();
120
- };
121
- useEffect(function () {
122
- return function () {
123
- deleteUrlQueryParams([FMAW_URL_QUERY_PARAMS.FILE_WINDOW]);
124
- };
125
- }, []);
126
- useEffect(function () {
127
- var abortFileFetching;
128
- if ((originalFile === null || originalFile === void 0 ? void 0 : originalFile.uuid) !== (previewedFile === null || previewedFile === void 0 ? void 0 : previewedFile.uuid)) {
129
- var _setFileData = setFileData(),
130
- abort = _setFileData.abort;
131
- abortFileFetching = abort;
132
- } else if (isPreUpload ||
133
- // If original file is a blob image, then set it as previewed file.
134
- isObjectURL(originalFile === null || originalFile === void 0 ? void 0 : originalFile.preview) && (isEmptyObject(previewedFile || {}) || (previewedFile === null || previewedFile === void 0 ? void 0 : previewedFile.id) !== originalFile.id)) {
135
- setPreviewedFile(originalFile);
136
- }
137
- if (originalFile !== null && originalFile !== void 0 && originalFile.uuid) {
138
- replaceUrlQueryParams({
139
- params: _defineProperty(_defineProperty({}, FMAW_URL_QUERY_PARAMS.FILE_WINDOW, btoa(originalFile.uuid)), FMAW_URL_QUERY_PARAMS.FILE_WINDOW_TAB, activeTabId)
140
- });
141
- }
142
- return function () {
143
- if (abortFileFetching) {
144
- abortFileFetching();
145
- }
146
- };
147
- }, [fileIdOrUuid]);
148
- useEffect(function () {
149
- // If the original file object is updated and the previewed file is the same as the original file, then update it too.
150
- if (!originalFile) return;
151
- if (!(previewedFile !== null && previewedFile !== void 0 && previewedFile.uuid) || !(previewedFile !== null && previewedFile !== void 0 && previewedFile.id) || fileIdOrUuid === ((previewedFile === null || previewedFile === void 0 ? void 0 : previewedFile.uuid) || (previewedFile === null || previewedFile === void 0 ? void 0 : previewedFile.id))) {
152
- setPreviewedFile(originalFile);
153
- }
154
- }, [originalFile]);
155
- var bodyProps = {
156
- originalFile: originalFile,
157
- previewedFile: previewedFile || originalFile,
158
- setPreviewedFile: setPreviewedFile,
159
- activeTabId: activeTabId,
160
- isPdfFile: isPdfFile,
161
- isAudioFile: isAudioFile,
162
- isImageFile: isImageFile,
163
- isPdfPreviewSupported: isPdfPreviewSupported,
164
- isAudioFileAndSupportsPlayback: isAudioFileAndSupportsPlayback,
165
- setActiveTabId: setActiveTabId,
166
- isSupportAnnotationFile: isSupportAnnotationFile,
167
- alertUnsavedChangesFirst: alertUnsavedChangesFirst,
168
- isVariantsOpened: isVariantsOpened,
169
- setIsVariantsOpened: setIsVariantsOpened,
170
- isFileTabsHidden: isFileTabsHidden,
171
- setIsFileTabsHidden: setIsFileTabsHidden,
172
- useAssetsPicker: useAssetsPicker
173
- };
174
- if (useAssetsPicker || isFileTabsHidden) {
175
- return /*#__PURE__*/_jsxs(StyledFileWindow.Wrapper, {
176
- children: [/*#__PURE__*/_jsx(Header, {
177
- i18n: i18n,
178
- isPdfFile: isPdfFile,
179
- isAudioFile: isAudioFile,
180
- isVideoFile: isVideoFile,
181
- originalFile: originalFile,
182
- previewedFile: previewedFile || originalFile,
183
- setPreviewedFile: setPreviewedFile,
184
- alertUnsavedChangesFirst: alertUnsavedChangesFirst
185
- }), /*#__PURE__*/_jsx(StyledFileWindow.Content, {
186
- children: /*#__PURE__*/_jsx(Body, _objectSpread({}, bodyProps))
187
- })]
188
- });
189
- }
190
- return /*#__PURE__*/_jsxs(StyledFileWindow.Wrapper, {
191
- children: [/*#__PURE__*/_jsx(Header, {
192
- i18n: i18n,
193
- isPdfFile: isPdfFile,
194
- isAudioFile: isAudioFile,
195
- isVideoFile: isVideoFile,
196
- isImageFile: isImageFile,
197
- originalFile: originalFile,
198
- previewedFile: previewedFile || originalFile,
199
- setPreviewedFile: setPreviewedFile,
200
- alertUnsavedChangesFirst: alertUnsavedChangesFirst
201
- }), /*#__PURE__*/_jsxs(StyledFileWindow.Content, {
202
- children: [/*#__PURE__*/_jsx(Body, _objectSpread(_objectSpread({}, bodyProps), {}, {
203
- activeVariationsTabId: activeVariationsTabId,
204
- setFileData: setFileData
205
- })), /*#__PURE__*/_jsx(FileTabs, {
206
- originalFile: originalFile,
207
- previewedFile: previewedFile || originalFile,
208
- activeTabId: activeTabId,
209
- isPreUpload: isPreUpload,
210
- setPreviewedFile: setPreviewedFile,
211
- setActiveTabId: setActiveTabId,
212
- alertUnsavedChangesFirst: alertUnsavedChangesFirst,
213
- hasUnsavedChangesRef: hasUnsavedChangesRef,
214
- isVariantsOpened: isVariantsOpened,
215
- activeVariationsTabId: activeVariationsTabId,
216
- setActiveVariationsTabId: setActiveVariationsTabId
217
- })]
218
- })]
219
- });
220
- };
221
- export default FileWindow;
@@ -1,19 +0,0 @@
1
- var _templateObject, _templateObject2, _templateObject3;
2
- function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
3
- import styled, { css } from 'styled-components';
4
- import { FV, OverlayCard } from '@scaleflex/widget-common';
5
- var Wrapper = styled(OverlayCard)(_templateObject || (_templateObject = _taggedTemplateLiteral([""])));
6
- var Content = styled.div(function (_ref) {
7
- var theme = _ref.theme;
8
- return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n height: calc(100% - 72px);\n width: 100%;\n\n ", " {\n flex-direction: column;\n height: calc(100% - 60px);\n }\n\n ", " & {\n flex-direction: column;\n height: calc(100% - 60px);\n }\n\n ", " & {\n flex-direction: column;\n height: calc(100% - 60px);\n }\n"])), theme.breakpoints.down('lg'), theme.breakpoints.classes.md, theme.breakpoints.classes.sm);
9
- });
10
- var FileName = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", ";\n"])), function (_ref2) {
11
- var theme = _ref2.theme;
12
- return theme.typography.font[FV.LabelLargeEmphasis];
13
- });
14
- var Styled = {
15
- Wrapper: Wrapper,
16
- Content: Content,
17
- FileName: FileName
18
- };
19
- export default Styled;
@@ -1,38 +0,0 @@
1
- export var mapTranslationsToMediaAnnotatorTranslations = function mapTranslationsToMediaAnnotatorTranslations(i18n) {
2
- var mappedTranslations = {
3
- reply: 'mediaAnnotatorReplyText',
4
- replies: 'mediaAnnotatorRepliesText',
5
- resolveTooltip: 'mediaAnnotatorResolveTooltip',
6
- unresolveTooltip: 'mediaAnnotatorUnresolveTooltip',
7
- noMembersTitle: 'mediaAnnotatorNoMembersPlaceholderTitle',
8
- noMembersSubtitle: 'mediaAnnotatorNoMembersPlaceholderDesc',
9
- annotatingFieldHint: 'mediaAnnotatorAnnotatingFieldPlaceholder',
10
- commentsTitle: 'mediaAnnotatorCommentsTitle',
11
- replyButton: 'mediaAnnotatorReplyButton',
12
- sendButton: 'mediaAnnotatorSendButton',
13
- backButton: 'mediaAnnotatorBackButton',
14
- cancelButton: 'mediaAnnotatorCancelButton',
15
- editMenuItem: 'mediaAnnotatorEditMenuItem',
16
- deleteMenuItem: 'mediaAnnotatorDeleteMenuItem',
17
- showReplies: 'mediaAnnotatorShowRepliesButton',
18
- hideReplies: 'mediaAnnotatorHideRepliesButton',
19
- ordersFiltersTitle: 'mediaAnnotatorOrdersFiltersTitle',
20
- newestFilterMenuItem: 'mediaAnnotatorNewestFilterMenuItem',
21
- oldestFilterMenuItem: 'mediaAnnotatorOldestFilterMenuItem',
22
- filterFiltersTitle: 'mediaAnnotatorFilterFiltersTitle',
23
- resolvedFilterMenuItem: 'mediaAnnotatorResolvedFilterMenuItem',
24
- unresolvedFilterMenuItem: 'mediaAnnotatorUnresolvedFilterMenuItem',
25
- allFilterMenuItem: 'mediaAnnotatorAllFilterMenuItem',
26
- noCommentsYetTitle: 'mediaAnnotatorNoCommentsPlaceholderTitle',
27
- noCommentsYetSubtitle: 'mediaAnnotatorNoCommentsPlaceholderDesc'
28
- };
29
- Object.keys(mappedTranslations).forEach(function (key) {
30
- mappedTranslations[key] = i18n(mappedTranslations[key]);
31
- });
32
- return mappedTranslations;
33
- };
34
- export var checkFieldVisibility = function checkFieldVisibility(field, file) {
35
- if (field !== null && field !== void 0 && field.hide) return false;
36
- if (!(file !== null && file !== void 0 && file.uploadStep)) return true;
37
- return (file === null || file === void 0 ? void 0 : file.uploadStep) && field.key !== 'tags';
38
- };
@@ -1,69 +0,0 @@
1
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
2
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
4
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
- import { useState, useEffect } from 'react';
8
- import { More } from '@scaleflex/icons';
9
- import { useTheme } from '@scaleflex/ui/theme/hooks';
10
- import { PC } from '@scaleflex/widget-common';
11
- import { CONTEXTMENU_MODES } from '@scaleflex/widget-utils/lib/constants';
12
- import { useContextMenu } from '@scaleflex/widget-core/lib/hooks';
13
- import Styled from './FileWindowHeader.styled';
14
- import MutualActionBtns from './MutualActionBtns';
15
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
16
- var AfterUploadActionBtns = function AfterUploadActionBtns(_ref) {
17
- var originalFile = _ref.originalFile,
18
- previewedFile = _ref.previewedFile,
19
- isPdfFile = _ref.isPdfFile,
20
- isImageFile = _ref.isImageFile,
21
- alertUnsavedChangesFirst = _ref.alertUnsavedChangesFirst,
22
- isVideoFile = _ref.isVideoFile,
23
- isPreUpload = _ref.isPreUpload;
24
- var theme = useTheme();
25
- var toggleContextMenu = useContextMenu();
26
- var iconPrimaryColor = theme.palette[PC.IconsPrimary];
27
- var _useState = useState(false),
28
- _useState2 = _slicedToArray(_useState, 2),
29
- isVariantsOpened = _useState2[0],
30
- setIsVariantsOpened = _useState2[1];
31
- var triggerContextMenu = function triggerContextMenu(event) {
32
- toggleContextMenu({
33
- event: event,
34
- mode: CONTEXTMENU_MODES.AUTO,
35
- filesUuids: [originalFile.uuid || originalFile.id]
36
- });
37
- };
38
- var toggleVariantsVisibility = function toggleVariantsVisibility() {
39
- setIsVariantsOpened(function (_isOpened) {
40
- return !_isOpened;
41
- });
42
- };
43
- useEffect(function () {
44
- if (isVariantsOpened) {
45
- toggleVariantsVisibility();
46
- }
47
- }, [previewedFile]);
48
- return /*#__PURE__*/_jsxs(_Fragment, {
49
- children: [/*#__PURE__*/_jsx(Styled.HeaderQuickActionBtns, {
50
- children: /*#__PURE__*/_jsx(Styled.HeaderActionBtn, {
51
- onClick: triggerContextMenu,
52
- size: "lg",
53
- color: "basic",
54
- children: /*#__PURE__*/_jsx(More, {
55
- size: 18,
56
- color: iconPrimaryColor
57
- })
58
- })
59
- }), /*#__PURE__*/_jsx(MutualActionBtns, {
60
- originalFile: originalFile,
61
- isPdfFile: isPdfFile,
62
- isImageFile: isImageFile,
63
- isVideoFile: isVideoFile,
64
- alertUnsavedChangesFirst: alertUnsavedChangesFirst,
65
- isPreUpload: isPreUpload
66
- })]
67
- });
68
- };
69
- export default AfterUploadActionBtns;
@@ -1,100 +0,0 @@
1
- import { useDispatch, useSelector } from 'react-redux';
2
- import { Remove } from '@scaleflex/icons';
3
- import { useTheme } from '@scaleflex/ui/theme/hooks';
4
- import { PC } from '@scaleflex/widget-common';
5
- import { Button } from '@scaleflex/ui/core';
6
- import { selectCurrentFiles, selectCurrentFilesIdsOrUuids } from '../../../slices/files.slice';
7
- import Styled from './FileWindowHeader.styled';
8
- import { useExplorer, useExplorerInformer } from '../../../hooks';
9
- import { fileWindowUpdated, showAddFilesPanelUpdated } from '../../../slices/panels.slice';
10
- import { useDeleteModal } from '../../Modals';
11
- import MutualActionBtns from './MutualActionBtns';
12
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
- var BeforeUploadActionButtons = function BeforeUploadActionButtons(_ref) {
14
- var originalFile = _ref.originalFile,
15
- isPdfFile = _ref.isPdfFile,
16
- isImageFile = _ref.isImageFile,
17
- alertUnsavedChangesFirst = _ref.alertUnsavedChangesFirst,
18
- closeFileWindow = _ref.closeFileWindow,
19
- isPreUpload = _ref.isPreUpload,
20
- isVideoFile = _ref.isVideoFile;
21
- var _useExplorer = useExplorer(),
22
- i18n = _useExplorer.i18n,
23
- removeUploadFiles = _useExplorer.removeUploadFiles;
24
- var dispatch = useDispatch();
25
- var theme = useTheme();
26
- var triggerDeleteModal = useDeleteModal();
27
- var info = useExplorerInformer();
28
- var currentFilesIdsOrUuids = useSelector(selectCurrentFilesIdsOrUuids);
29
- var currentFiles = useSelector(selectCurrentFiles);
30
- var fileIdOrUuid = originalFile.uuid || originalFile.id;
31
- var filesLength = currentFilesIdsOrUuids.length;
32
- var iconPrimaryColor = theme.palette[PC.IconsPrimary];
33
- var updateFileWindow = function updateFileWindow(nextFileIdOrUuid) {
34
- dispatch(fileWindowUpdated(nextFileIdOrUuid));
35
- if (filesLength === 1) dispatch(showAddFilesPanelUpdated(true));
36
- };
37
-
38
- /**
39
- * Navigates to the next item or closes the file window.
40
- *
41
- * @param {number} indexOffset - The offset from the current index. Defaults to 0.
42
- */
43
- var navigateNextItemOrCloseFileWindow = function navigateNextItemOrCloseFileWindow() {
44
- var indexOffset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
45
- var currentIndex = currentFilesIdsOrUuids.indexOf(fileIdOrUuid);
46
- var nextIndex = (currentIndex + indexOffset + 1) % filesLength;
47
- var nextFileIdOrUuid = currentFilesIdsOrUuids[nextIndex];
48
- var nextFile = currentFiles[nextFileIdOrUuid];
49
- updateFileWindow(nextFile.uuid || nextFile.id);
50
- };
51
- var handleDelete = function handleDelete() {
52
- if (filesLength) {
53
- navigateNextItemOrCloseFileWindow();
54
- }
55
- try {
56
- removeUploadFiles([fileIdOrUuid], true);
57
- info(i18n('deleteAssetSuccessToastMessage', {
58
- name: originalFile.name
59
- }), 'success');
60
- } catch (_unused) {
61
- info(i18n('deleteAssetFailToastMessage', {
62
- name: originalFile.name
63
- }), 'error');
64
- }
65
- };
66
- var onClickDelete = function onClickDelete() {
67
- triggerDeleteModal({
68
- modalPrimaryButtonColor: 'error-primary',
69
- title: i18n('mutualizedDeleteAssetLabel'),
70
- content: i18n('deleteAssetConfirmationMessage', {
71
- name: originalFile.name
72
- }),
73
- onConfirm: handleDelete
74
- });
75
- };
76
- return /*#__PURE__*/_jsxs(_Fragment, {
77
- children: [/*#__PURE__*/_jsx(Styled.HeaderQuickActionBtns, {
78
- children: /*#__PURE__*/_jsx(Styled.HeaderActionBtn, {
79
- onClick: onClickDelete,
80
- size: "lg",
81
- color: "basic",
82
- children: /*#__PURE__*/_jsx(Remove, {
83
- size: 18,
84
- color: iconPrimaryColor
85
- })
86
- })
87
- }), /*#__PURE__*/_jsx(MutualActionBtns, {
88
- originalFile: originalFile,
89
- isPdfFile: isPdfFile,
90
- isImageFile: isImageFile,
91
- alertUnsavedChangesFirst: alertUnsavedChangesFirst,
92
- isPreUpload: isPreUpload,
93
- isVideoFile: isVideoFile
94
- }), /*#__PURE__*/_jsx(Button, {
95
- onClick: closeFileWindow,
96
- children: i18n('mutualizedDoneLabel')
97
- })]
98
- });
99
- };
100
- export default BeforeUploadActionButtons;
@@ -1,56 +0,0 @@
1
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
2
- function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
3
- import styled, { css } from 'styled-components';
4
- import { FV, PC } from '@scaleflex/widget-common';
5
- import { IconButton, CrossButton, Button } from '@scaleflex/ui/core';
6
- var Header = styled.div(function (_ref) {
7
- var theme = _ref.theme;
8
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 12px 16px 24px;\n background: ", ";\n border-bottom: 1px solid ", ";\n border-radius: 4px 4px 0px 0px;\n height: 72px;\n\n ", " {\n height: 60px;\n }\n\n ", " & {\n height: 60px;\n }\n\n ", " & {\n height: 60px;\n }\n"])), function (_ref2) {
9
- var theme = _ref2.theme;
10
- return theme.palette[PC.BackgroundStateless];
11
- }, function (_ref3) {
12
- var theme = _ref3.theme;
13
- return theme.palette[PC.BordersSecondary];
14
- }, theme.breakpoints.down('lg'), theme.breakpoints.classes.md, theme.breakpoints.classes.sm);
15
- });
16
- var HeaderRightSectionWrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n gap: 12px;\n align-items: center;\n"])));
17
- var HeaderRightSection = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n gap: 12px;\n align-items: center;\n"])));
18
- var HeaderTitleAndLocate = styled.div(function (_ref4) {
19
- var theme = _ref4.theme;
20
- return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n gap: 24px;\n width: 20%; // takes by default 20% of the widget, and if there is enough/free space in the block then it grows.\n max-width: calc(100% - 550px);\n flex-grow: 1;\n margin-right: 40px;\n\n ", " {\n max-width: calc(100% - 450px)\n }\n\n ", " & {\n max-width: calc(100% - 450px)\n }\n\n ", " {\n max-width: calc(100% - 350px)\n }\n\n ", " & {\n max-width: calc(100% - 350px)\n }\n\n ", " {\n max-width: calc(100% - 320px)\n }\n\n ", " & {\n max-width: calc(100% - 320px)\n }\n\n"])), theme.breakpoints.down('lg'), theme.breakpoints.classes.md, theme.breakpoints.down('md'), theme.breakpoints.classes.sm, theme.breakpoints.down('sm'), theme.breakpoints.classes.xs);
21
- });
22
- var HeaderTitle = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n ", ";\n color: ", ";\n"])), function (_ref5) {
23
- var theme = _ref5.theme;
24
- return theme.typography.font[FV.TitleH3];
25
- }, function (_ref6) {
26
- var theme = _ref6.theme;
27
- return theme.palette[PC.TextPrimary];
28
- });
29
- var actionBtnsStyles = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n"])));
30
- var HeaderQuickActionBtns = styled.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n ", ";\n"])), actionBtnsStyles);
31
- var SizeHideableContent = styled.div(function (_ref7) {
32
- var theme = _ref7.theme,
33
- defaultDisplay = _ref7.defaultDisplay;
34
- return css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n ", ";\n\n ", " {\n display: none;\n }\n\n ", " & {\n display: none;\n }\n\n ", " & {\n display: none;\n }\n"])), !defaultDisplay ? actionBtnsStyles : '', theme.breakpoints.down('lg'), theme.breakpoints.classes.md, theme.breakpoints.classes.sm);
35
- });
36
- var HeaderActionBtn = styled(IconButton)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n border: none;\n"])));
37
- var EditButton = styled(Button)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n max-height: 40px;\n white-space: nowrap;\n margin-right: ", ";\n"])), function (_ref8) {
38
- var noMargin = _ref8.noMargin;
39
- return !noMargin && '12px';
40
- });
41
- var RegionalVariantsWrapper = styled.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n width: 172px;\n"])));
42
- var HeaderCloseBtn = styled(CrossButton)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n padding: 12px;\n"])));
43
- var Styled = {
44
- Header: Header,
45
- HeaderTitleAndLocate: HeaderTitleAndLocate,
46
- HeaderTitle: HeaderTitle,
47
- HeaderRightSectionWrapper: HeaderRightSectionWrapper,
48
- HeaderRightSection: HeaderRightSection,
49
- HeaderQuickActionBtns: HeaderQuickActionBtns,
50
- SizeHideableContent: SizeHideableContent,
51
- HeaderActionBtn: HeaderActionBtn,
52
- RegionalVariantsWrapper: RegionalVariantsWrapper,
53
- HeaderCloseBtn: HeaderCloseBtn,
54
- EditButton: EditButton
55
- };
56
- export default Styled;