@scaleflex/widget-explorer 4.8.4 → 4.8.6

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 (597) hide show
  1. package/CHANGELOG.md +12301 -12281
  2. package/LICENSE +21 -21
  3. package/README.md +1293 -1293
  4. package/package.json +8 -8
  5. package/types/index.d.ts +102 -102
  6. package/dist/style.css +0 -2199
  7. package/dist/style.min.css +0 -1
  8. package/lib/Explorer.styled.js +0 -48
  9. package/lib/components/ActionBar/ActionBar.styled.js +0 -103
  10. package/lib/components/ActionBar/DownloadWithExportButton.js +0 -231
  11. package/lib/components/ActionBar/SelectionMenu.js +0 -111
  12. package/lib/components/ActionBar/index.js +0 -105
  13. package/lib/components/AddFilesPanel/AddFiles.js +0 -183
  14. package/lib/components/AddFilesPanel/AddFiles.styled.js +0 -137
  15. package/lib/components/AddFilesPanel/index.js +0 -59
  16. package/lib/components/AiSwitcher/AiSwitcher.constants.js +0 -1
  17. package/lib/components/AiSwitcher/AiSwitcher.styled.js +0 -24
  18. package/lib/components/AiSwitcher/index.js +0 -81
  19. package/lib/components/AssetsList/AssetsList.styled.js +0 -217
  20. package/lib/components/AssetsList/GridView/FilesAccordion.js +0 -76
  21. package/lib/components/AssetsList/GridView/FilesSection/FileCell.js +0 -260
  22. package/lib/components/AssetsList/GridView/FilesSection/FileOverlayOptions.js +0 -140
  23. package/lib/components/AssetsList/GridView/FilesSection/FilesSection.styled.js +0 -15
  24. package/lib/components/AssetsList/GridView/FilesSection/index.js +0 -31
  25. package/lib/components/AssetsList/GridView/FilesSkeleton.js +0 -47
  26. package/lib/components/AssetsList/GridView/FoldersSection/FolderCell.js +0 -239
  27. package/lib/components/AssetsList/GridView/FoldersSection/FolderPreviewGrid.js +0 -106
  28. package/lib/components/AssetsList/GridView/FoldersSection/FolderTopOptions.js +0 -70
  29. package/lib/components/AssetsList/GridView/FoldersSection/index.js +0 -23
  30. package/lib/components/AssetsList/GridView/FoldersSkeleton.js +0 -77
  31. package/lib/components/AssetsList/GridView/GridView.styled.js +0 -11
  32. package/lib/components/AssetsList/GridView/SearchGridView/SearchGridView.styled.js +0 -15
  33. package/lib/components/AssetsList/GridView/SearchGridView/SearchGridViewSkeleton.js +0 -30
  34. package/lib/components/AssetsList/GridView/SearchGridView/index.js +0 -97
  35. package/lib/components/AssetsList/GridView/index.js +0 -196
  36. package/lib/components/AssetsList/ListView/AssetsSection/AssetsSectionTableHeader.js +0 -152
  37. package/lib/components/AssetsList/ListView/AssetsSection/AssetsSectionTableRow.js +0 -333
  38. package/lib/components/AssetsList/ListView/AssetsSection/index.js +0 -99
  39. package/lib/components/AssetsList/ListView/ColumnsMenu.js +0 -89
  40. package/lib/components/AssetsList/ListView/FilesAccordion.js +0 -74
  41. package/lib/components/AssetsList/ListView/FilesSkeleton.js +0 -68
  42. package/lib/components/AssetsList/ListView/FoldersSection/FoldersSectionTableHeader.js +0 -98
  43. package/lib/components/AssetsList/ListView/FoldersSection/FoldersSectionTableRow.js +0 -156
  44. package/lib/components/AssetsList/ListView/FoldersSection/index.js +0 -54
  45. package/lib/components/AssetsList/ListView/FoldersSkeleton.js +0 -67
  46. package/lib/components/AssetsList/ListView/ListView.styled.js +0 -181
  47. package/lib/components/AssetsList/ListView/ListView.utils.js +0 -30
  48. package/lib/components/AssetsList/ListView/SearchListView/index.js +0 -109
  49. package/lib/components/AssetsList/ListView/index.js +0 -203
  50. package/lib/components/AssetsList/ScrollToTop.js +0 -70
  51. package/lib/components/AssetsList/SearchView.hook.js +0 -241
  52. package/lib/components/AssetsList/__SearchTestPannel.js +0 -238
  53. package/lib/components/AssetsList/__SearchTestPannel.mock.js +0 -1
  54. package/lib/components/AssetsList/index.js +0 -266
  55. package/lib/components/AssetsList/relevanceBadge.js +0 -15
  56. package/lib/components/AssetsView/AssetsView.styled.js +0 -25
  57. package/lib/components/AssetsView/AssetsView.thunks.js +0 -64
  58. package/lib/components/AssetsView/index.js +0 -142
  59. package/lib/components/AuthExplorerView.js +0 -79
  60. package/lib/components/Breadcrumbs/BreadCrumbViews/BreadCrumbsViews.styled.js +0 -30
  61. package/lib/components/Breadcrumbs/BreadCrumbViews/index.js +0 -32
  62. package/lib/components/Breadcrumbs/Breadcrumb.js +0 -52
  63. package/lib/components/Breadcrumbs/Breadcrumbs.styled.js +0 -81
  64. package/lib/components/Breadcrumbs/BreadcrumbsSkeleton.js +0 -12
  65. package/lib/components/Breadcrumbs/index.js +0 -295
  66. package/lib/components/BulkEditPanel/BulkEdit.js +0 -330
  67. package/lib/components/BulkEditPanel/BulkEditPanel.styled.js +0 -62
  68. package/lib/components/BulkEditPanel/BulkEditPanel.utils.js +0 -55
  69. package/lib/components/BulkEditPanel/components/AssetsList/AssetsList.constants.js +0 -29
  70. package/lib/components/BulkEditPanel/components/AssetsList/AssetsList.js +0 -148
  71. package/lib/components/BulkEditPanel/components/AssetsList/AssetsList.styled.js +0 -81
  72. package/lib/components/BulkEditPanel/components/AssetsList/Columns/Columns.styled.js +0 -99
  73. package/lib/components/BulkEditPanel/components/AssetsList/Columns/FileMetadataField.js +0 -263
  74. package/lib/components/BulkEditPanel/components/AssetsList/Columns/FileTagField.js +0 -228
  75. package/lib/components/BulkEditPanel/components/AssetsList/Columns/FileTextField.js +0 -107
  76. package/lib/components/BulkEditPanel/components/AssetsList/Columns/MetadataColumn.js +0 -142
  77. package/lib/components/BulkEditPanel/components/AssetsList/Columns/TableRow.js +0 -139
  78. package/lib/components/BulkEditPanel/components/AssetsList/Columns/TagsColumn.js +0 -58
  79. package/lib/components/BulkEditPanel/components/AssetsList/Columns/TagsField.js +0 -80
  80. package/lib/components/BulkEditPanel/components/AssetsList/Columns/TextColumn.js +0 -53
  81. package/lib/components/BulkEditPanel/components/AssetsList/Columns/columns.utils.js +0 -272
  82. package/lib/components/BulkEditPanel/components/AssetsList/Columns/getActiveColumn.js +0 -23
  83. package/lib/components/BulkEditPanel/components/AssetsList/FloatyPreview.js +0 -55
  84. package/lib/components/BulkEditPanel/components/AssetsList/FloatyPreview.styled.js +0 -21
  85. package/lib/components/BulkEditPanel/components/AssetsList/TableBody.js +0 -64
  86. package/lib/components/BulkEditPanel/components/AssetsList/TableHeader.js +0 -67
  87. package/lib/components/BulkEditPanel/components/BulkEditFooter.js +0 -33
  88. package/lib/components/BulkEditPanel/components/ConfirmationModal/ConfirmationModal.js +0 -47
  89. package/lib/components/BulkEditPanel/components/ConfirmationModal/ConfirmationModal.styled.js +0 -25
  90. package/lib/components/BulkEditPanel/components/MainContent/MainContent.js +0 -110
  91. package/lib/components/BulkEditPanel/components/MainContent/MainContent.styled.js +0 -12
  92. package/lib/components/BulkEditPanel/components/MainContent/index.js +0 -2
  93. package/lib/components/BulkEditPanel/components/Sidebar/Sidebar.styled.js +0 -53
  94. package/lib/components/BulkEditPanel/components/Sidebar/Sidebar.utils.js +0 -28
  95. package/lib/components/BulkEditPanel/components/Sidebar/index.js +0 -158
  96. package/lib/components/BulkEditPanel/components/Tabs/Metadata/Metadata.js +0 -246
  97. package/lib/components/BulkEditPanel/components/Tabs/Metadata/Metadata.styled.js +0 -17
  98. package/lib/components/BulkEditPanel/components/Tabs/Tags/Tags.js +0 -222
  99. package/lib/components/BulkEditPanel/components/Tabs/Tags/Tags.mixin.js +0 -20
  100. package/lib/components/BulkEditPanel/components/Tabs/Tags/Tags.styled.js +0 -123
  101. package/lib/components/BulkEditPanel/components/Tabs/Tags/TagsContianer.js +0 -31
  102. package/lib/components/BulkEditPanel/components/Tabs/Tags/TagsPaper.js +0 -95
  103. package/lib/components/BulkEditPanel/components/Tabs/Text/Text.js +0 -167
  104. package/lib/components/BulkEditPanel/components/Tabs/Text/Text.styled.js +0 -15
  105. package/lib/components/BulkEditPanel/components/Tabs/tabs.constants.js +0 -113
  106. package/lib/components/BulkEditPanel/components/Tabs/tabs.js +0 -43
  107. package/lib/components/BulkEditPanel/components/Tabs/tabs.utils.js +0 -239
  108. package/lib/components/BulkEditPanel/index.js +0 -28
  109. package/lib/components/CollectionsView/CollectionFolderIcon.js +0 -35
  110. package/lib/components/CollectionsView/CollectionVirtualFoldersTree/CollectionTreeSkeletion.js +0 -26
  111. package/lib/components/CollectionsView/CollectionVirtualFoldersTree/CollectionVirtualFoldersTree.styled.js +0 -52
  112. package/lib/components/CollectionsView/CollectionVirtualFoldersTree/CollectionVirtualFoldersTree.utils.js +0 -24
  113. package/lib/components/CollectionsView/CollectionVirtualFoldersTree/Folder.js +0 -88
  114. package/lib/components/CollectionsView/CollectionVirtualFoldersTree/Tree.js +0 -50
  115. package/lib/components/CollectionsView/CollectionVirtualFoldersTree/index.js +0 -75
  116. package/lib/components/CollectionsView/CollectionsSkeleton.js +0 -30
  117. package/lib/components/CollectionsView/CollectionsTree/ActiveCollectionContent.js +0 -61
  118. package/lib/components/CollectionsView/CollectionsTree/CollectionTreeItem.js +0 -44
  119. package/lib/components/CollectionsView/CollectionsTree/CollectionsContent.js +0 -130
  120. package/lib/components/CollectionsView/CollectionsTree/CollectionsTree.styled.js +0 -84
  121. package/lib/components/CollectionsView/CollectionsTree/index.js +0 -47
  122. package/lib/components/CollectionsView/CollectionsView.styled.js +0 -38
  123. package/lib/components/CollectionsView/VirtualFoldersGrid.js +0 -67
  124. package/lib/components/CollectionsView/index.js +0 -188
  125. package/lib/components/ContextMenu/BeforeUploadMenu/index.js +0 -51
  126. package/lib/components/ContextMenu/ContextMenu.constants.js +0 -64
  127. package/lib/components/ContextMenu/ContextMenu.hooks.js +0 -35
  128. package/lib/components/ContextMenu/ContextMenu.styled.js +0 -107
  129. package/lib/components/ContextMenu/ContextMenuContent.js +0 -202
  130. package/lib/components/ContextMenu/ContextMenuItem.js +0 -142
  131. package/lib/components/ContextMenu/FileMenu/CollaborateSection/index.js +0 -33
  132. package/lib/components/ContextMenu/FileMenu/DeleteSection/index.js +0 -25
  133. package/lib/components/ContextMenu/FileMenu/EditSection/index.js +0 -42
  134. package/lib/components/ContextMenu/FileMenu/FindSection/index.js +0 -29
  135. package/lib/components/ContextMenu/FileMenu/index.js +0 -15
  136. package/lib/components/ContextMenu/FolderMenu/CollaborateSection/index.js +0 -17
  137. package/lib/components/ContextMenu/FolderMenu/DeleteSection/index.js +0 -41
  138. package/lib/components/ContextMenu/FolderMenu/EditSection/index.js +0 -49
  139. package/lib/components/ContextMenu/FolderMenu/FindSection/index.js +0 -49
  140. package/lib/components/ContextMenu/FolderMenu/FolderMenu.utils.js +0 -31
  141. package/lib/components/ContextMenu/FolderMenu/index.js +0 -14
  142. package/lib/components/ContextMenu/MenuOptions/AddVariationOption.js +0 -59
  143. package/lib/components/ContextMenu/MenuOptions/BulkEditOption.js +0 -47
  144. package/lib/components/ContextMenu/MenuOptions/CdnLinkOption.js +0 -54
  145. package/lib/components/ContextMenu/MenuOptions/DeleteOption.js +0 -70
  146. package/lib/components/ContextMenu/MenuOptions/DownloadOption.js +0 -88
  147. package/lib/components/ContextMenu/MenuOptions/EditImageOption.js +0 -63
  148. package/lib/components/ContextMenu/MenuOptions/EditVideoOption.js +0 -87
  149. package/lib/components/ContextMenu/MenuOptions/LocateFileOption.js +0 -45
  150. package/lib/components/ContextMenu/MenuOptions/ManagaAccessOption.js +0 -67
  151. package/lib/components/ContextMenu/MenuOptions/ManageDetailsOption.js +0 -52
  152. package/lib/components/ContextMenu/MenuOptions/MoveOption.js +0 -54
  153. package/lib/components/ContextMenu/MenuOptions/PreviewOption.js +0 -35
  154. package/lib/components/ContextMenu/MenuOptions/RenameOption.js +0 -66
  155. package/lib/components/ContextMenu/MenuOptions/TransformationOption.js +0 -63
  156. package/lib/components/ContextMenu/MultipleMenu/CollaborateSection/index.js +0 -31
  157. package/lib/components/ContextMenu/MultipleMenu/DeleteSection/index.js +0 -6
  158. package/lib/components/ContextMenu/MultipleMenu/EditSection/index.js +0 -14
  159. package/lib/components/ContextMenu/MultipleMenu/FindSection/index.js +0 -14
  160. package/lib/components/ContextMenu/MultipleMenu/index.js +0 -14
  161. package/lib/components/ContextMenu/SharedMenus/DownloadFolderSubMenu.js +0 -36
  162. package/lib/components/ContextMenu/SharedMenus/DownloadSubMenu.js +0 -70
  163. package/lib/components/ContextMenu/index.js +0 -34
  164. package/lib/components/ContextMenu/utils/calculateMenuHeight.js +0 -20
  165. package/lib/components/ContextMenu/utils/calculateMenuPosition.js +0 -42
  166. package/lib/components/ContextMenu/utils/createSeparator.js +0 -14
  167. package/lib/components/ContextMenu/utils/editMedia.js +0 -17
  168. package/lib/components/ContextMenu/utils/getFileLocation.js +0 -8
  169. package/lib/components/ContextMenu/utils/getFilteredOptions.js +0 -20
  170. package/lib/components/ContextMenu/utils/getProperFolderSelections.js +0 -7
  171. package/lib/components/ContextMenu/utils/isEmptyFolderSelection.js +0 -5
  172. package/lib/components/ContextMenu/utils/isFileContextMenu.js +0 -5
  173. package/lib/components/ContextMenu/utils/isFirstFileVisibilityPublic.js +0 -9
  174. package/lib/components/ContextMenu/utils/isMenuItemVisible.js +0 -5
  175. package/lib/components/ContextMenu/utils/isMixedFiles.js +0 -9
  176. package/lib/components/ContextMenu/utils/isMultipleSelection.js +0 -6
  177. package/lib/components/ContextMenu/utils/isSeparatorHidden.js +0 -7
  178. package/lib/components/ContextMenu/utils/triggerDownload.js +0 -45
  179. package/lib/components/CropPanel/CropOptions.js +0 -155
  180. package/lib/components/CropPanel/CropPanel.constants.js +0 -44
  181. package/lib/components/CropPanel/CropPanel.styled.js +0 -107
  182. package/lib/components/CropPanel/CropPanel.utils.js +0 -48
  183. package/lib/components/CropPanel/CropPanelContent.js +0 -209
  184. package/lib/components/CropPanel/ImageOptions.js +0 -326
  185. package/lib/components/CropPanel/ImageResize.js +0 -207
  186. package/lib/components/CropPanel/Option.js +0 -113
  187. package/lib/components/CropPanel/index.js +0 -22
  188. package/lib/components/CropPanel/index.scss +0 -55
  189. package/lib/components/Details/Details.constants.js +0 -76
  190. package/lib/components/Details/Details.utils.js +0 -232
  191. package/lib/components/Details/DetailsSideBar.styled.js +0 -139
  192. package/lib/components/Details/EditActionButtons/EditActionButtons.styled.js +0 -27
  193. package/lib/components/Details/EditActionButtons/index.js +0 -38
  194. package/lib/components/Details/FileDetails.js +0 -31
  195. package/lib/components/Details/FileItem/CustomMetadataTab.js +0 -50
  196. package/lib/components/Details/FileItem/FileItem.styled.js +0 -47
  197. package/lib/components/Details/FileItem/GeneralTab.js +0 -113
  198. package/lib/components/Details/FileItem/SharedFileEditData.js +0 -97
  199. package/lib/components/Details/FileItem/index.js +0 -2
  200. package/lib/components/Details/FileItem/style.scss +0 -11
  201. package/lib/components/Details/FolderDetails.js +0 -138
  202. package/lib/components/Details/FolderItemList/FolderListItem.js +0 -77
  203. package/lib/components/Details/FolderItemList/index.js +0 -62
  204. package/lib/components/Details/MultiItemsDetails.js +0 -69
  205. package/lib/components/Details/MultipleItems.js +0 -71
  206. package/lib/components/Details/TabChips.js +0 -51
  207. package/lib/components/Details/TabPanels.js +0 -42
  208. package/lib/components/Details/Title.js +0 -52
  209. package/lib/components/Details/index.js +0 -53
  210. package/lib/components/DnD/Dnd.styled.js +0 -11
  211. package/lib/components/DnD/DragImage.js +0 -61
  212. package/lib/components/DnD/index.js +0 -219
  213. package/lib/components/Drawer/Drawer.styled.js +0 -45
  214. package/lib/components/Drawer/Drawer.utils.js +0 -163
  215. package/lib/components/Drawer/Resizer.js +0 -141
  216. package/lib/components/Drawer/ResizerCore.js +0 -213
  217. package/lib/components/Drawer/index.js +0 -68
  218. package/lib/components/EmptyViewPlaceholder/EmptyViewPlaceholder.styled.js +0 -39
  219. package/lib/components/EmptyViewPlaceholder/index.js +0 -58
  220. package/lib/components/ExploreView.js +0 -46
  221. package/lib/components/ExplorerUI.js +0 -17
  222. package/lib/components/ExplorerWrapper.js +0 -114
  223. package/lib/components/FacetedSearch/DrawerBody/index.js +0 -42
  224. package/lib/components/FacetedSearch/DrawerWrapper/index.js +0 -83
  225. package/lib/components/FacetedSearch/FacetedSearch.constants.js +0 -27
  226. package/lib/components/FacetedSearch/FacetedSearch.styled.js +0 -101
  227. package/lib/components/FacetedSearch/FacetedSearch.utils.js +0 -3
  228. package/lib/components/FacetedSearch/Field/Date.js +0 -69
  229. package/lib/components/FacetedSearch/Field/Placeholder.js +0 -20
  230. package/lib/components/FacetedSearch/Field/Select.js +0 -136
  231. package/lib/components/FacetedSearch/Field/Switch.js +0 -59
  232. package/lib/components/FacetedSearch/Field/index.js +0 -27
  233. package/lib/components/FacetedSearch/GroupWrapper/index.js +0 -129
  234. package/lib/components/FacetedSearch/StaticFields/Date.js +0 -152
  235. package/lib/components/FacetedSearch/index.js +0 -12
  236. package/lib/components/FileItem/FileInfo/FileInfo.styled.js +0 -126
  237. package/lib/components/FileItem/FileInfo/FileInfo.utils.js +0 -13
  238. package/lib/components/FileItem/FileInfo/FileMetadata.js +0 -37
  239. package/lib/components/FileItem/FileInfo/FileName.js +0 -197
  240. package/lib/components/FileItem/FileInfo/index.js +0 -200
  241. package/lib/components/FileItem/FileItem.mixin.js +0 -22
  242. package/lib/components/FileItem/FileItem.styled.js +0 -54
  243. package/lib/components/FileItem/FileUploadTopOptions.js +0 -87
  244. package/lib/components/FileItem/PreUploadFileThumbnail/FileThumbnail.js +0 -61
  245. package/lib/components/FileItem/PreUploadFileThumbnail/PreUploadFileThumbnail.styled.js +0 -8
  246. package/lib/components/FileItem/PreUploadFileThumbnail/index.js +0 -27
  247. package/lib/components/FileItem/PreUploadFileThumbnail/index.scss +0 -19
  248. package/lib/components/FileItem/index.js +0 -164
  249. package/lib/components/FileItem/index.scss +0 -0
  250. package/lib/components/FileWindowPanel/Body/ActionButtons.js +0 -70
  251. package/lib/components/FileWindowPanel/Body/Body.constants.js +0 -5
  252. package/lib/components/FileWindowPanel/Body/Body.styled.js +0 -196
  253. package/lib/components/FileWindowPanel/Body/BodyFile.js +0 -165
  254. package/lib/components/FileWindowPanel/Body/Footer.js +0 -60
  255. package/lib/components/FileWindowPanel/Body/Preview.js +0 -232
  256. package/lib/components/FileWindowPanel/Body/PreviewPlaceholder.js +0 -20
  257. package/lib/components/FileWindowPanel/Body/VideoEmbed.js +0 -80
  258. package/lib/components/FileWindowPanel/Body/index.js +0 -108
  259. package/lib/components/FileWindowPanel/FileTabs/FileTabButtons.js +0 -98
  260. package/lib/components/FileWindowPanel/FileTabs/FileTabs.constants.js +0 -50
  261. package/lib/components/FileWindowPanel/FileTabs/FileTabs.styled.js +0 -99
  262. package/lib/components/FileWindowPanel/FileTabs/FileTabsList.js +0 -91
  263. package/lib/components/FileWindowPanel/FileTabs/GeneralTab/EditableField.js +0 -78
  264. package/lib/components/FileWindowPanel/FileTabs/GeneralTab/FieldLabel.js +0 -40
  265. package/lib/components/FileWindowPanel/FileTabs/GeneralTab/FieldRow.js +0 -57
  266. package/lib/components/FileWindowPanel/FileTabs/GeneralTab/FieldValue.js +0 -20
  267. package/lib/components/FileWindowPanel/FileTabs/GeneralTab/FieldWithTooltip.js +0 -29
  268. package/lib/components/FileWindowPanel/FileTabs/GeneralTab/GeneralSection.js +0 -183
  269. package/lib/components/FileWindowPanel/FileTabs/GeneralTab/GeneralTab.constants.js +0 -2
  270. package/lib/components/FileWindowPanel/FileTabs/GeneralTab/GeneralTab.styled.js +0 -112
  271. package/lib/components/FileWindowPanel/FileTabs/GeneralTab/GeneralTabSkeleton.js +0 -70
  272. package/lib/components/FileWindowPanel/FileTabs/GeneralTab/TableSeparator.js +0 -10
  273. package/lib/components/FileWindowPanel/FileTabs/GeneralTab/index.js +0 -100
  274. package/lib/components/FileWindowPanel/FileTabs/MetadataTab/CustomMetadataSection.js +0 -247
  275. package/lib/components/FileWindowPanel/FileTabs/MetadataTab/EmbeddedMetadataSection.js +0 -31
  276. package/lib/components/FileWindowPanel/FileTabs/MetadataTab/MetadataTab.constants.js +0 -2
  277. package/lib/components/FileWindowPanel/FileTabs/MetadataTab/MetadataTab.styled.js +0 -134
  278. package/lib/components/FileWindowPanel/FileTabs/MetadataTab/MetadataTabSkeleton.js +0 -70
  279. package/lib/components/FileWindowPanel/FileTabs/MetadataTab/index.js +0 -181
  280. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationItem.js +0 -78
  281. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/Variations.constants.js +0 -26
  282. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/Variations.styled.js +0 -177
  283. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/Variations.thunks.js +0 -99
  284. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/Variations.utils.js +0 -23
  285. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsContent.js +0 -92
  286. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsEditModalContent.js +0 -57
  287. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsSearch.js +0 -44
  288. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsSkeleton.js +0 -35
  289. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsTabNavigator.js +0 -35
  290. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsTabs.js +0 -40
  291. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsTopOptions.js +0 -204
  292. package/lib/components/FileWindowPanel/FileTabs/VariationsTab/index.js +0 -606
  293. package/lib/components/FileWindowPanel/FileTabs/index.js +0 -83
  294. package/lib/components/FileWindowPanel/FileWindow.js +0 -221
  295. package/lib/components/FileWindowPanel/FileWindow.styled.js +0 -19
  296. package/lib/components/FileWindowPanel/FileWindow.utils.js +0 -38
  297. package/lib/components/FileWindowPanel/Header/AfterUploadActionBtns.js +0 -69
  298. package/lib/components/FileWindowPanel/Header/BeforeUploadActionBtns.js +0 -100
  299. package/lib/components/FileWindowPanel/Header/FileWindowHeader.styled.js +0 -56
  300. package/lib/components/FileWindowPanel/Header/MutualActionBtns.js +0 -92
  301. package/lib/components/FileWindowPanel/Header/index.js +0 -118
  302. package/lib/components/FileWindowPanel/index.js +0 -60
  303. package/lib/components/Filters/Filters.constants.js +0 -358
  304. package/lib/components/Filters/Filters.styled.js +0 -235
  305. package/lib/components/Filters/Filters.utils.js +0 -536
  306. package/lib/components/Filters/FiltersContext.js +0 -59
  307. package/lib/components/Filters/FiltersSkeleton.js +0 -14
  308. package/lib/components/Filters/Groups/Date/index.js +0 -201
  309. package/lib/components/Filters/Groups/Folders/FoldersSkeleton.js +0 -43
  310. package/lib/components/Filters/Groups/Folders/index.js +0 -109
  311. package/lib/components/Filters/Groups/Image/Colors.js +0 -73
  312. package/lib/components/Filters/Groups/Image/Faces.js +0 -64
  313. package/lib/components/Filters/Groups/Image/Orientations.js +0 -64
  314. package/lib/components/Filters/Groups/Image/Resolutions.js +0 -65
  315. package/lib/components/Filters/Groups/Image/Tooltip.js +0 -14
  316. package/lib/components/Filters/Groups/Image/index.js +0 -104
  317. package/lib/components/Filters/Groups/LicenseExpiry/LicenseExpiry.styled.js +0 -17
  318. package/lib/components/Filters/Groups/LicenseExpiry/index.js +0 -97
  319. package/lib/components/Filters/Groups/Metadata/Advanced/ConditionSelector.js +0 -40
  320. package/lib/components/Filters/Groups/Metadata/Advanced/ExtraRow/ConditionSelector.js +0 -35
  321. package/lib/components/Filters/Groups/Metadata/Advanced/ExtraRow/ValueSelector.js +0 -33
  322. package/lib/components/Filters/Groups/Metadata/Advanced/ExtraRow/index.js +0 -18
  323. package/lib/components/Filters/Groups/Metadata/Advanced/Field/AutoComplete.js +0 -56
  324. package/lib/components/Filters/Groups/Metadata/Advanced/Field/Boolean.js +0 -35
  325. package/lib/components/Filters/Groups/Metadata/Advanced/Field/Date.js +0 -36
  326. package/lib/components/Filters/Groups/Metadata/Advanced/Field/GeoPointField.js +0 -30
  327. package/lib/components/Filters/Groups/Metadata/Advanced/Field/Numeric.js +0 -32
  328. package/lib/components/Filters/Groups/Metadata/Advanced/Field/Select.js +0 -55
  329. package/lib/components/Filters/Groups/Metadata/Advanced/Field/Tags.js +0 -21
  330. package/lib/components/Filters/Groups/Metadata/Advanced/Field/Text.js +0 -39
  331. package/lib/components/Filters/Groups/Metadata/Advanced/Field/index.js +0 -52
  332. package/lib/components/Filters/Groups/Metadata/Advanced/KeySelector.js +0 -34
  333. package/lib/components/Filters/Groups/Metadata/Advanced/Row.js +0 -53
  334. package/lib/components/Filters/Groups/Metadata/Advanced/index.js +0 -48
  335. package/lib/components/Filters/Groups/Metadata/Basic/Field/Date.js +0 -45
  336. package/lib/components/Filters/Groups/Metadata/Basic/Field/Field.utils.js +0 -58
  337. package/lib/components/Filters/Groups/Metadata/Basic/Field/Numeric.js +0 -51
  338. package/lib/components/Filters/Groups/Metadata/Basic/Field/OptionsPopup.js +0 -87
  339. package/lib/components/Filters/Groups/Metadata/Basic/Field/Select.js +0 -168
  340. package/lib/components/Filters/Groups/Metadata/Basic/Field/Switch.js +0 -41
  341. package/lib/components/Filters/Groups/Metadata/Basic/Field/Tags.js +0 -38
  342. package/lib/components/Filters/Groups/Metadata/Basic/Field/Text.js +0 -57
  343. package/lib/components/Filters/Groups/Metadata/Basic/Field/Uri.js +0 -54
  344. package/lib/components/Filters/Groups/Metadata/Basic/Field/index.js +0 -46
  345. package/lib/components/Filters/Groups/Metadata/Basic/GroupWrapper.js +0 -79
  346. package/lib/components/Filters/Groups/Metadata/Basic/index.js +0 -80
  347. package/lib/components/Filters/Groups/Metadata/Metadata.constants.js +0 -42
  348. package/lib/components/Filters/Groups/Metadata/Metadata.styled.js +0 -150
  349. package/lib/components/Filters/Groups/Metadata/Metadata.utils.js +0 -160
  350. package/lib/components/Filters/Groups/Metadata/MetadataFiltersContext.js +0 -329
  351. package/lib/components/Filters/Groups/Metadata/Placeholder.js +0 -25
  352. package/lib/components/Filters/Groups/Metadata/common/TagsField/TagsMenu.js +0 -81
  353. package/lib/components/Filters/Groups/Metadata/common/TagsField/TagsSearchPlaceholder.js +0 -18
  354. package/lib/components/Filters/Groups/Metadata/common/TagsField/index.js +0 -142
  355. package/lib/components/Filters/Groups/Metadata/index.js +0 -114
  356. package/lib/components/Filters/Groups/Size/index.js +0 -125
  357. package/lib/components/Filters/Groups/Tags/FilteredTags.js +0 -62
  358. package/lib/components/Filters/Groups/Tags/SelectedTags.js +0 -51
  359. package/lib/components/Filters/Groups/Tags/SuggestedTags.js +0 -43
  360. package/lib/components/Filters/Groups/Tags/index.js +0 -146
  361. package/lib/components/Filters/Groups/TypeAndFormat/Format.js +0 -65
  362. package/lib/components/Filters/Groups/TypeAndFormat/Type.js +0 -85
  363. package/lib/components/Filters/Groups/TypeAndFormat/index.js +0 -114
  364. package/lib/components/Filters/Groups/common/DateRangeField/DateRangeField.styled.js +0 -10
  365. package/lib/components/Filters/Groups/common/DateRangeField/index.js +0 -72
  366. package/lib/components/Filters/Groups/common/FilterFooter.js +0 -67
  367. package/lib/components/Filters/Groups/common/FilterOptions.js +0 -29
  368. package/lib/components/Filters/Groups/common/FilterSearch.js +0 -22
  369. package/lib/components/Filters/Groups/common/FilterSearch.styled.js +0 -15
  370. package/lib/components/Filters/Groups/common/FilterSkeleton.js +0 -44
  371. package/lib/components/Filters/Groups/common/TimeFrames.js +0 -35
  372. package/lib/components/Filters/Groups/index.js +0 -55
  373. package/lib/components/Filters/Placeholder.js +0 -29
  374. package/lib/components/Filters/hooks/useDateTypeFilterValues.js +0 -182
  375. package/lib/components/Filters/hooks/useFilters.js +0 -79
  376. package/lib/components/Filters/index.js +0 -78
  377. package/lib/components/FoldersView/FoldersTree/FoldersTree.styled.js +0 -193
  378. package/lib/components/FoldersView/FoldersTree/FoldersTree.utils.js +0 -78
  379. package/lib/components/FoldersView/FoldersTree/FoldersTreeHeader.js +0 -52
  380. package/lib/components/FoldersView/FoldersTree/FoldersTreeList.js +0 -64
  381. package/lib/components/FoldersView/FoldersTree/FoldersTreeListItem.js +0 -270
  382. package/lib/components/FoldersView/FoldersTree/FoldersTreeSearch.js +0 -70
  383. package/lib/components/FoldersView/FoldersTree/FoldersTreeSkeleton.js +0 -23
  384. package/lib/components/FoldersView/FoldersTree/NoFoldersResult.js +0 -19
  385. package/lib/components/FoldersView/FoldersTree/SearchedFoldersItem.js +0 -113
  386. package/lib/components/FoldersView/FoldersTree/index.js +0 -163
  387. package/lib/components/FoldersView/hooks/useAddFolder.js +0 -60
  388. package/lib/components/FoldersView/index.js +0 -282
  389. package/lib/components/GalleryRoleSelect/CustomRolesTab.js +0 -47
  390. package/lib/components/GalleryRoleSelect/CustomRolesTab.styled.js +0 -10
  391. package/lib/components/GalleryRoleSelect/GalleryRoleSelect.constants.js +0 -11
  392. package/lib/components/GalleryRoleSelect/GalleryRoleSelect.styled.js +0 -132
  393. package/lib/components/GalleryRoleSelect/GalleryRoleSelect.utils.js +0 -87
  394. package/lib/components/GalleryRoleSelect/StandardRolesTab.js +0 -58
  395. package/lib/components/GalleryRoleSelect/index.js +0 -234
  396. package/lib/components/HeaderBar/FacetedSearchToggleButton.js +0 -28
  397. package/lib/components/HeaderBar/HeaderBar.styled.js +0 -25
  398. package/lib/components/HeaderBar/RightSide.js +0 -127
  399. package/lib/components/HeaderBar/index.js +0 -81
  400. package/lib/components/ImageEditorPanel/index.js +0 -33
  401. package/lib/components/InfiniteScroll/InfiniteScroll.js +0 -97
  402. package/lib/components/InfiniteScroll/InfiniteScroll.styled.js +0 -11
  403. package/lib/components/Informer/index.js +0 -9
  404. package/lib/components/LabelsView/LabelsTree/LabelsTree.styled.js +0 -86
  405. package/lib/components/LabelsView/LabelsTree/LabelsTreeSkeleton.js +0 -21
  406. package/lib/components/LabelsView/LabelsTree/index.js +0 -128
  407. package/lib/components/LabelsView/LabelsView.styled.js +0 -10
  408. package/lib/components/LabelsView/index.js +0 -139
  409. package/lib/components/LoginScreen/LoginScreen.styled.js +0 -39
  410. package/lib/components/LoginScreen/index.js +0 -133
  411. package/lib/components/MainMenu/MainMenu.styled.js +0 -12
  412. package/lib/components/MainMenu/index.js +0 -77
  413. package/lib/components/Modals/AddNewFolder/AddNewFolder.hooks.js +0 -99
  414. package/lib/components/Modals/AddNewFolder/index.js +0 -1
  415. package/lib/components/Modals/ConfirmationModal/ConfirmationModal.hooks.js +0 -101
  416. package/lib/components/Modals/ConfirmationModal/index.js +0 -1
  417. package/lib/components/Modals/DeleteItems/DeleteItems.hooks.js +0 -233
  418. package/lib/components/Modals/DeleteItems/index.js +0 -1
  419. package/lib/components/Modals/DeleteModal/DeleteModal.hooks.js +0 -87
  420. package/lib/components/Modals/DeleteModal/index.js +0 -1
  421. package/lib/components/Modals/DownloadConsent/DownlaodConsent.styled.js +0 -8
  422. package/lib/components/Modals/DownloadConsent/DownloadConsent.hooks.js +0 -101
  423. package/lib/components/Modals/DownloadConsent/DownloadConsentContent.js +0 -52
  424. package/lib/components/Modals/DownloadConsent/index.js +0 -2
  425. package/lib/components/Modals/Modals.js +0 -386
  426. package/lib/components/Modals/Modals.styled.js +0 -80
  427. package/lib/components/Modals/MoveItems/MoveItems.hooks.js +0 -88
  428. package/lib/components/Modals/MoveItems/index.js +0 -1
  429. package/lib/components/Modals/TransformedDownload/PdfModalContent.js +0 -109
  430. package/lib/components/Modals/TransformedDownload/TransformedDownload.hooks.js +0 -197
  431. package/lib/components/Modals/TransformedDownload/TransformedDownload.styled.js +0 -29
  432. package/lib/components/Modals/TransformedDownload/TransformedDownload.utils.js +0 -46
  433. package/lib/components/Modals/TransformedDownload/index.js +0 -2
  434. package/lib/components/Modals/index.js +0 -8
  435. package/lib/components/Modals/index.scss +0 -0
  436. package/lib/components/NoItems/NoItems.styled.js +0 -54
  437. package/lib/components/NoItems/index.js +0 -50
  438. package/lib/components/PdftronPanel/index.js +0 -31
  439. package/lib/components/PickerPanel/PickerPanel.styled.js +0 -41
  440. package/lib/components/PickerPanel/PickerPanelContent.js +0 -100
  441. package/lib/components/PickerPanel/index.js +0 -21
  442. package/lib/components/ProgressPanel/ProgressPanel.utils.js +0 -29
  443. package/lib/components/ProgressPanel/index.js +0 -37
  444. package/lib/components/TopBar/AppliedFilterChips/AppliedFilterChips.styled.js +0 -11
  445. package/lib/components/TopBar/AppliedFilterChips/index.js +0 -77
  446. package/lib/components/TopBar/Search/ContextDropdown/ContextDropdown.styled.js +0 -59
  447. package/lib/components/TopBar/Search/ContextDropdown/ContextDropdown.utils.js +0 -67
  448. package/lib/components/TopBar/Search/ContextDropdown/index.js +0 -170
  449. package/lib/components/TopBar/Search/PrependedOptions/TempFilterRegexInput.js +0 -133
  450. package/lib/components/TopBar/Search/Search.utils.js +0 -88
  451. package/lib/components/TopBar/Search/SimilarSearchTag.js +0 -60
  452. package/lib/components/TopBar/Search/index.js +0 -251
  453. package/lib/components/TopBar/TopBar.styled.js +0 -37
  454. package/lib/components/TopBar/index.js +0 -61
  455. package/lib/components/TopBar/index.scss +0 -20
  456. package/lib/components/TopSection/TopSection.styled.js +0 -22
  457. package/lib/components/TopSection/index.js +0 -58
  458. package/lib/components/UploadBar/UploadBar.styled.js +0 -84
  459. package/lib/components/UploadBar/index.js +0 -222
  460. package/lib/components/UploadStatus/index.js +0 -20
  461. package/lib/components/UploadsPanel/UploadsList/Header.js +0 -19
  462. package/lib/components/UploadsPanel/UploadsList/List.js +0 -29
  463. package/lib/components/UploadsPanel/UploadsList/PreUploadPlugins.js +0 -22
  464. package/lib/components/UploadsPanel/UploadsList/UploadsList.styled.js +0 -64
  465. package/lib/components/UploadsPanel/UploadsList/UploadsList.utils.js +0 -17
  466. package/lib/components/UploadsPanel/UploadsList/UploadsVirtualGrid.js +0 -29
  467. package/lib/components/UploadsPanel/UploadsList/index.js +0 -55
  468. package/lib/components/UploadsPanel/UploadsPanel.styled.js +0 -24
  469. package/lib/components/UploadsPanel/UploadsPanelTopBar.js +0 -16
  470. package/lib/components/UploadsPanel/index.js +0 -36
  471. package/lib/components/UrlBuilderModal/UrlBuilderModal.styled.js +0 -9
  472. package/lib/components/UrlBuilderModal/index.js +0 -97
  473. package/lib/components/Views/ErroredViewPlaceholder.js +0 -48
  474. package/lib/components/Views/Views.constants.js +0 -55
  475. package/lib/components/Views/Views.styled.js +0 -87
  476. package/lib/components/Views/index.js +0 -107
  477. package/lib/components/common/DeleteModalItemText/DeleteModalItemText.styled.js +0 -8
  478. package/lib/components/common/DeleteModalItemText/index.js +0 -29
  479. package/lib/components/common/EditDetailsButton/EditDetailsButton.styled.js +0 -35
  480. package/lib/components/common/EditDetailsButton/index.js +0 -28
  481. package/lib/components/common/ExpiryDateTooltipContent/ExpiryDateTooltipContent.styled.js +0 -16
  482. package/lib/components/common/ExpiryDateTooltipContent/index.js +0 -29
  483. package/lib/components/common/FileApprovalsInfoPopup/index.js +0 -46
  484. package/lib/components/common/FileMetadataFieldValue/CustomMetadataFieldValue.js +0 -48
  485. package/lib/components/common/FileMetadataFieldValue/FileMetadataFieldValue.styled.js +0 -66
  486. package/lib/components/common/FileMetadataFieldValue/FileMetadataFieldValue.utils.js +0 -315
  487. package/lib/components/common/FileMetadataFieldValue/GeneralMetadataFieldValue.js +0 -120
  488. package/lib/components/common/FileMetadataFieldValue/index.js +0 -26
  489. package/lib/components/common/FileMetadataFieldValue/utils/getFontInfo.js +0 -78
  490. package/lib/components/common/FolderSelector/BrowseFoldersMenu.js +0 -114
  491. package/lib/components/common/FolderSelector/FolderSearchMenu.js +0 -45
  492. package/lib/components/common/FolderSelector/FolderSelector.styled.js +0 -41
  493. package/lib/components/common/FolderSelector/index.js +0 -186
  494. package/lib/components/common/FormattedUriLink/FormattedUriLink.styled.js +0 -15
  495. package/lib/components/common/FormattedUriLink/index.js +0 -21
  496. package/lib/components/common/OriginalBadge/OriginalBadge.styled.js +0 -17
  497. package/lib/components/common/OriginalBadge/index.js +0 -14
  498. package/lib/components/common/SanitizedHtmlElement/index.js +0 -11
  499. package/lib/components/common/Sort/Sort.constants.js +0 -88
  500. package/lib/components/common/Sort/Sort.styled.js +0 -47
  501. package/lib/components/common/Sort/Sort.utils.js +0 -14
  502. package/lib/components/common/Sort/index.js +0 -183
  503. package/lib/components/common/TextWithCopyIcon/TextWithCopyIcon.styled.js +0 -44
  504. package/lib/components/common/TextWithCopyIcon/index.js +0 -71
  505. package/lib/components/common/TopBarUploadButton/index.js +0 -40
  506. package/lib/components/common/TrimmedFilePathWithLocate/TrimmedFilePathWithLocate.utils.js +0 -3
  507. package/lib/components/common/TrimmedFilePathWithLocate/index.js +0 -34
  508. package/lib/components/common/TrimmedFolderPathWithLocate/index.js +0 -13
  509. package/lib/components/common/TrimmedPathWithLocate/TrimmedPathWithLocate.styled.js +0 -30
  510. package/lib/components/common/TrimmedPathWithLocate/index.js +0 -40
  511. package/lib/components/metadata.adapter.js +0 -365
  512. package/lib/defaultLocale.js +0 -1396
  513. package/lib/hooks/index.js +0 -16
  514. package/lib/hooks/useAssetsPicker.js +0 -274
  515. package/lib/hooks/useDownloadFilesCsv.js +0 -20
  516. package/lib/hooks/useEditFileDetails.js +0 -505
  517. package/lib/hooks/useExplorer.js +0 -6
  518. package/lib/hooks/useExplorerI18n.js +0 -10
  519. package/lib/hooks/useExplorerInformer.js +0 -10
  520. package/lib/hooks/useFetchFileFolderPermissions.js +0 -31
  521. package/lib/hooks/useFetchMetadataTagsBySearchQuery.js +0 -38
  522. package/lib/hooks/useFileMetadata.js +0 -117
  523. package/lib/hooks/useFilterSearch.js +0 -37
  524. package/lib/hooks/useForcedFilters.js +0 -39
  525. package/lib/hooks/useIsOverflow.js +0 -25
  526. package/lib/hooks/useIsSmallScreen.js +0 -20
  527. package/lib/hooks/useLocateFile.js +0 -231
  528. package/lib/hooks/usePrevious.js +0 -9
  529. package/lib/hooks/useSearchSuggestions.js +0 -168
  530. package/lib/hooks/useStartUpload.js +0 -43
  531. package/lib/hooks/useToLocaleNumber.js +0 -14
  532. package/lib/hooks/useValidateFileName.js +0 -324
  533. package/lib/index.js +0 -1617
  534. package/lib/slices/collections.slice.js +0 -714
  535. package/lib/slices/common.slice.js +0 -217
  536. package/lib/slices/drag.slice.js +0 -75
  537. package/lib/slices/files.slice.js +0 -1310
  538. package/lib/slices/filters.slice.js +0 -382
  539. package/lib/slices/folders.slice.js +0 -978
  540. package/lib/slices/foldersTree.slice.js +0 -501
  541. package/lib/slices/index.js +0 -36
  542. package/lib/slices/labels.slice.js +0 -655
  543. package/lib/slices/metadata.slice.js +0 -494
  544. package/lib/slices/panels.slice.js +0 -351
  545. package/lib/slices/search.slice.js +0 -995
  546. package/lib/slices/selections.slice.js +0 -315
  547. package/lib/slices/targets.slice.js +0 -44
  548. package/lib/slices/topSection.slice.js +0 -71
  549. package/lib/slices/views.slice.js +0 -357
  550. package/lib/style.scss +0 -268
  551. package/lib/thunks/archive.thunks.js +0 -187
  552. package/lib/thunks/downloads.thunks.js +0 -415
  553. package/lib/thunks/items.thunks.js +0 -274
  554. package/lib/thunks/permissions.thunks.js +0 -66
  555. package/lib/thunks/uploads.thunks.js +0 -235
  556. package/lib/utils/SearchSuggestions/SearchSuggestionsMenu.js +0 -95
  557. package/lib/utils/SearchSuggestions/SuggestionMode.js +0 -70
  558. package/lib/utils/SearchSuggestions/SuggestionModeAttribute.js +0 -87
  559. package/lib/utils/SearchSuggestions/SuggestionModeExpression.js +0 -121
  560. package/lib/utils/SearchSuggestions/SuggestionModeTag.js +0 -87
  561. package/lib/utils/SearchSuggestions/SuggestionsManager.js +0 -242
  562. package/lib/utils/SearchSuggestions/constants.js +0 -14
  563. package/lib/utils/SearchSuggestions/index.js +0 -4
  564. package/lib/utils/SearchSuggestions/styled.js +0 -12
  565. package/lib/utils/availableScreenSizes.js +0 -4
  566. package/lib/utils/constants.js +0 -14
  567. package/lib/utils/convertItemsToFilesFoldersUuids.js +0 -12
  568. package/lib/utils/convertItemstoFoldersParentUuids.js +0 -12
  569. package/lib/utils/createPromise.js +0 -9
  570. package/lib/utils/createSuperFocus.js +0 -43
  571. package/lib/utils/decodeB64ToStr.js +0 -11
  572. package/lib/utils/filters.js +0 -333
  573. package/lib/utils/formatFolderPath.js +0 -10
  574. package/lib/utils/formatPinSubTitle.js +0 -17
  575. package/lib/utils/getAcquirerTitle.js +0 -10
  576. package/lib/utils/getActiveOverlayEl.js +0 -11
  577. package/lib/utils/getApiPathtype.js +0 -10
  578. package/lib/utils/getClosestStr.js +0 -22
  579. package/lib/utils/getItemUuids.js +0 -12
  580. package/lib/utils/getLabelsTotalAssetsCount.js +0 -6
  581. package/lib/utils/getMoveAndDeleteData.js +0 -15
  582. package/lib/utils/getParentFolderPath.js +0 -4
  583. package/lib/utils/getQueryStringFromUrl.js +0 -6
  584. package/lib/utils/getScrollableParent.js +0 -15
  585. package/lib/utils/getStringValueExistedInObj.js +0 -9
  586. package/lib/utils/isEmbeddableAsset.js +0 -6
  587. package/lib/utils/isFileVersion.js +0 -9
  588. package/lib/utils/mapArrayKeysToObjValues.js +0 -33
  589. package/lib/utils/mapFiltersToShownFormat.js +0 -252
  590. package/lib/utils/prepareExportedFilesLinks.js +0 -12
  591. package/lib/utils/prepareSearchUrl.js +0 -75
  592. package/lib/utils/removeBackground.js +0 -60
  593. package/lib/utils/removeExtraUrlParams.js +0 -13
  594. package/lib/utils/scrollToAndFocusItemElement.js +0 -16
  595. package/lib/utils/toggleFolderNotFoundModal.js +0 -25
  596. package/lib/utils/trapFocus.js +0 -59
  597. package/lib/utils/truncateString.js +0 -28
@@ -1,14 +0,0 @@
1
- export var ORIENTATION_KEY_TO_LABEL_I18N_KEYS = {
2
- LD: 'mutualizedOrientationsLandscapeLabel',
3
- PO: 'mutualizedOrientationsPortraitLabel',
4
- PT: 'mutualizedOrientationsPortraitLabel',
5
- SQ: 'mutualizedOrientationsSquareLabel',
6
- PA: 'mutualizedOrientationsPanoramaLabel'
7
- };
8
- export var FILTER_STATIC_DATA = {
9
- EMPTY: 'empty',
10
- NOT_EMPTY: 'non-empty'
11
- };
12
- export var ANIMATED_IMG_ACCEPT_HEADER = {
13
- Accept: 'image/gif,image/webp,image/agif,image/awebp,image/avif,*/*;q=1'
14
- };
@@ -1,12 +0,0 @@
1
- import isFolder from '@scaleflex/widget-utils/lib/isFolder';
2
- var convertItemsToFilesFoldersUuids = function convertItemsToFilesFoldersUuids() {
3
- var items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
4
- return (items || []).reduce(function (accum, item) {
5
- (isFolder(item) ? accum.foldersUuids : accum.filesUuids).push(item.uuid);
6
- return accum;
7
- }, {
8
- filesUuids: [],
9
- foldersUuids: []
10
- });
11
- };
12
- export default convertItemsToFilesFoldersUuids;
@@ -1,12 +0,0 @@
1
- import isFolder from '@scaleflex/widget-utils/lib/isFolder';
2
- var convertItemsToFilesFoldersParentUuids = function convertItemsToFilesFoldersParentUuids() {
3
- var items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
4
- return (items || []).reduce(function (accum, item) {
5
- (isFolder(item) ? accum.foldersUuids : accum.filesUuids).push(item.parentUuid);
6
- return accum;
7
- }, {
8
- filesUuids: [],
9
- foldersUuids: []
10
- });
11
- };
12
- export default convertItemsToFilesFoldersParentUuids;
@@ -1,9 +0,0 @@
1
- var createPromise = function createPromise() {
2
- var o = {};
3
- o.promise = new Promise(function (resolve, reject) {
4
- o.resolve = resolve;
5
- o.reject = reject;
6
- });
7
- return o;
8
- };
9
- export default createPromise;
@@ -1,43 +0,0 @@
1
- import debounce from 'lodash.debounce';
2
- import FOCUSABLE_ELEMENTS from '@scaleflex/widget-utils/lib/FOCUSABLE_ELEMENTS';
3
- import getActiveOverlayEl from './getActiveOverlayEl';
4
-
5
- /*
6
- Focuses on some element in the currently topmost overlay.
7
-
8
- 1. If there are some [data-filerobot-super-focusable] elements rendered already - focuses on the first superfocusable element, and leaves focus up to the control of a user (until currently focused element disappears from the screen [which can happen when overlay changes, or, e.g., when we click on a folder in googledrive]).
9
- 2. If there are no [data-filerobot-super-focusable] elements yet (or ever) - focuses on the first focusable element, but switches focus if superfocusable elements appear on next render.
10
- */
11
- export default function createSuperFocus() {
12
- var lastFocusWasOnSuperFocusableEl = false;
13
- var superFocus = function superFocus(explorerEl, activeOverlayType) {
14
- var overlayEl = getActiveOverlayEl(explorerEl, activeOverlayType);
15
- var isFocusInOverlay = overlayEl.contains(document.activeElement);
16
- // If focus is already in the topmost overlay, AND on last update we focused on the superfocusable element - then leave focus up to the user.
17
- // [Practical check] without this line, typing in the search input in googledrive overlay won't work.
18
- if (isFocusInOverlay && lastFocusWasOnSuperFocusableEl) return;
19
- var superFocusableEl = overlayEl.querySelector('[data-filerobot-super-focusable]');
20
- // If we are already in the topmost overlay, AND there are no super focusable elements yet, - leave focus up to the user.
21
- // [Practical check] without this line, if you are in an empty folder in google drive, and something's uploading in the bg, - focus will be jumping to Done all the time.
22
- if (isFocusInOverlay && !superFocusableEl) return;
23
- if (superFocusableEl) {
24
- superFocusableEl.focus({
25
- preventScroll: true
26
- });
27
- lastFocusWasOnSuperFocusableEl = true;
28
- } else {
29
- var firstEl = overlayEl.querySelector(FOCUSABLE_ELEMENTS);
30
- firstEl && firstEl.focus({
31
- preventScroll: true
32
- });
33
- lastFocusWasOnSuperFocusableEl = false;
34
- }
35
- };
36
-
37
- // ___Why do we need to debounce?
38
- // 1. To deal with animations: overlay changes via animations, which results in the DOM updating AFTER plugin.update() already executed.
39
- // [Practical check] without debounce, if we open the Url overlay, and click 'Done', Explorer won't get focused again.
40
- // [Practical check] if we delay 250ms instead of 260ms - IE11 won't get focused in same situation.
41
- // 2. Performance: there can be many state update()s in a second, and this function is called every time.
42
- return debounce(superFocus, 260);
43
- }
@@ -1,11 +0,0 @@
1
- var decodeB64ToStr = function decodeB64ToStr() {
2
- var str = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
3
- if (!str) {
4
- return;
5
- }
6
- try {
7
- return atob(str);
8
- } catch (e) {}
9
- return str;
10
- };
11
- export default decodeB64ToStr;
@@ -1,333 +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
- var _excluded = ["key"];
3
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
- 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; }
6
- 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; }
7
- 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; }
8
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
9
- 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); }
10
- function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
11
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
12
- 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; } }
13
- function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
14
- function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
15
- 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; }
16
- import { FILTER_CONDITIONS } from '@scaleflex/widget-utils/lib/constants';
17
- import { getDateFieldQuery, getFieldValueQuery, getTextFieldQuery } from '@scaleflex/widget-utils/lib/fieldsQueriesGetters';
18
- import { getMetadataMultiSelectQuery } from '@scaleflex/widget-utils/lib/getMetadataMultiSelectQuery';
19
- import getDateRange from '@scaleflex/widget-utils/lib/Timeframes/getDateRange';
20
- import isFunction from '@scaleflex/widget-utils/lib/isFunction';
21
- import isNumber from '@scaleflex/widget-utils/lib/isNumber';
22
- import literalDateFromDateObj from '@scaleflex/widget-utils/lib/literalDateFromDateObj';
23
- import { DEFAULT_FILTER_OPERATOR, FIELD_TYPE_ORDER, FILTER_SECTION_KEYS, METADATA_FIELDS_TYPES, SELECT_FIELDS_TYPES } from '../components/Filters/Filters.constants';
24
- import { FILTER_STATIC_DATA } from './constants';
25
- export var isBooleanField = function isBooleanField(field) {
26
- return field.type === METADATA_FIELDS_TYPES.BOOLEAN || typeof field.value === 'boolean';
27
- };
28
- export var getUpdatedBooleanMetadataFields = function getUpdatedBooleanMetadataFields(_ref) {
29
- var metadata = _ref.metadata,
30
- field = _ref.field,
31
- checked = _ref.checked,
32
- metadataFieldIndex = _ref.metadataFieldIndex;
33
- var nextMetadata = _toConsumableArray(metadata);
34
- var updatedField = _objectSpread(_objectSpread({}, field), {}, {
35
- value: checked,
36
- condition: FILTER_CONDITIONS.IS
37
- });
38
- if (checked) {
39
- nextMetadata.push(updatedField);
40
- } else {
41
- nextMetadata.splice(metadataFieldIndex, 1);
42
- }
43
- return nextMetadata;
44
- };
45
- export var getUpdatedDateMetadataFields = function getUpdatedDateMetadataFields(_ref2) {
46
- var metadata = _ref2.metadata,
47
- field = _ref2.field,
48
- value = _ref2.value;
49
- var nextMetadata = _toConsumableArray(metadata);
50
- var updatedField = _objectSpread(_objectSpread({}, field), {}, {
51
- value: value,
52
- condition: FILTER_CONDITIONS.IS
53
- });
54
- nextMetadata.push(updatedField);
55
- return nextMetadata;
56
- };
57
- export var sortFieldsByType = function sortFieldsByType(fields) {
58
- return fields.sort(function (a, b) {
59
- return (FIELD_TYPE_ORDER[a.type] || 99) - (FIELD_TYPE_ORDER[b.type] || 99);
60
- });
61
- };
62
- export var findOptionByApiValue = function findOptionByApiValue(possibleValues, nextApiValue) {
63
- var _possibleValues$find;
64
- return (_possibleValues$find = possibleValues.find(function (_ref3) {
65
- var apiValue = _ref3.api_value;
66
- return apiValue === nextApiValue;
67
- })) !== null && _possibleValues$find !== void 0 ? _possibleValues$find : {};
68
- };
69
- export var getMultiSelectFieldValue = function getMultiSelectFieldValue(_ref4) {
70
- var metadataFieldFilter = _ref4.metadataFieldFilter,
71
- value = _ref4.value;
72
- var _metadataFieldFilter$ = metadataFieldFilter.value,
73
- apiValues = _metadataFieldFilter$ === void 0 ? [] : _metadataFieldFilter$;
74
- var existApiValue = apiValues.some(function (apiValue) {
75
- return apiValue === value;
76
- });
77
- return existApiValue ? apiValues.filter(function (apiValue) {
78
- return apiValue !== value;
79
- }) : [].concat(_toConsumableArray(apiValues), [value]);
80
- };
81
- export var isDateField = function isDateField(field) {
82
- return field.type === METADATA_FIELDS_TYPES.DATE;
83
- };
84
- export var isSelectField = function isSelectField(field) {
85
- return SELECT_FIELDS_TYPES.includes(field.type);
86
- };
87
- export var isMultiSelectField = function isMultiSelectField(field) {
88
- return field.type === METADATA_FIELDS_TYPES.MULTI_SELECT;
89
- };
90
- export var isSingleSelectField = function isSingleSelectField(field) {
91
- return field.type === METADATA_FIELDS_TYPES.SELECT_ONE;
92
- };
93
- export var isNumericField = function isNumericField(field) {
94
- return field.type === METADATA_FIELDS_TYPES.NUMERIC || typeof field.value === 'number';
95
- };
96
- export var isTextField = function isTextField(field) {
97
- return [METADATA_FIELDS_TYPES.TEXT_AREA, METADATA_FIELDS_TYPES.TEXT].includes(field.type);
98
- };
99
- export var isTextAreaField = function isTextAreaField(field) {
100
- return field.type === METADATA_FIELDS_TYPES.TEXT_AREA;
101
- };
102
- export var isTagsField = function isTagsField(field) {
103
- return field.type === METADATA_FIELDS_TYPES.TAGS;
104
- };
105
- export var isUriField = function isUriField(field) {
106
- return field.type === METADATA_FIELDS_TYPES.URI;
107
- };
108
- export var isGeoPointField = function isGeoPointField(field) {
109
- return field.type === METADATA_FIELDS_TYPES.GEO_POINT;
110
- };
111
- export var findMetadataFieldByKey = function findMetadataFieldByKey(metadata, key) {
112
- return metadata.find(function (_ref5) {
113
- var fieldKey = _ref5.key;
114
- return fieldKey === key;
115
- });
116
- };
117
- export var findMetadataFieldIndex = function findMetadataFieldIndex(metadata, key) {
118
- return metadata.findIndex(function (_ref6) {
119
- var fieldKey = _ref6.key;
120
- return fieldKey === key;
121
- });
122
- };
123
- export var isValidNumber = function isValidNumber(value) {
124
- return value === '' || value === '0' || !isNaN(Number(value));
125
- };
126
- export var isBigOptions = function isBigOptions(options, bigOptionsThreshold) {
127
- return options.length > bigOptionsThreshold;
128
- };
129
- export var isContainsNotCondition = function isContainsNotCondition(condition) {
130
- return condition === FILTER_CONDITIONS.CONTAINS_NOT;
131
- };
132
- export var isCheckedOption = function isCheckedOption(_ref7) {
133
- var value = _ref7.value,
134
- metadataFieldFilter = _ref7.metadataFieldFilter,
135
- field = _ref7.field;
136
- if (!(metadataFieldFilter !== null && metadataFieldFilter !== void 0 && metadataFieldFilter.value)) return false;
137
- return isBooleanField(field) ? metadataFieldFilter.value === value : metadataFieldFilter.value.includes(value);
138
- };
139
- export var getUpdatedSelectMetadataFields = function getUpdatedSelectMetadataFields(_ref8) {
140
- var apiValue = _ref8.apiValue,
141
- metadataFilters = _ref8.metadataFilters,
142
- field = _ref8.field,
143
- metadataFieldIndex = _ref8.metadataFieldIndex,
144
- metadataFieldFilter = _ref8.metadataFieldFilter;
145
- var nextMetadata = _toConsumableArray(metadataFilters);
146
- var updatedField = _objectSpread({}, field);
147
- var nextValue = getMultiSelectFieldValue({
148
- value: apiValue,
149
- metadataFieldFilter: metadataFieldFilter
150
- });
151
- updatedField = _objectSpread(_objectSpread({}, updatedField), {}, {
152
- value: nextValue,
153
- condition: FILTER_CONDITIONS.IS
154
- });
155
- if (metadataFieldIndex !== -1) {
156
- nextMetadata[metadataFieldIndex] = updatedField;
157
- } else {
158
- nextMetadata.push(updatedField);
159
- }
160
- return nextMetadata.filter(function (_ref9) {
161
- var value = _ref9.value,
162
- type = _ref9.type;
163
- return !isSelectField({
164
- type: type
165
- }) || !!(value !== null && value !== void 0 && value.length);
166
- });
167
- };
168
- export var isStaticSelectOption = function isStaticSelectOption() {
169
- var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
170
- var metadataStaticOptions = Object.values(FILTER_STATIC_DATA);
171
- return value.some(function (item) {
172
- return metadataStaticOptions.includes(item);
173
- });
174
- };
175
- export var getOldMetadataDateFilterValFromArray = function getOldMetadataDateFilterValFromArray(val) {
176
- var value = (Array.isArray(val) ? val[1] || val[0] : val) || '';
177
- return typeof value !== 'string' ? value.toString() : value;
178
- };
179
- export var adaptSelectFieldValue = function adaptSelectFieldValue(value) {
180
- if (!value) return [];
181
- if (Array.isArray(value)) return value;
182
- return [value];
183
- };
184
-
185
- // appliedMetadata => { operator: ':', value: [] }
186
- export var adaptMetadataFilter = function adaptMetadataFilter(appliedMetadata) {
187
- var querySet = [];
188
- var metadataFilters = (appliedMetadata === null || appliedMetadata === void 0 ? void 0 : appliedMetadata.value) || appliedMetadata || [];
189
- metadataFilters.forEach(function (metadataFilter) {
190
- var sanitizedMetadataFilter = isSelectField(metadataFilter) ? _objectSpread(_objectSpread({}, metadataFilter), {}, {
191
- value: adaptSelectFieldValue(metadataFilter.value)
192
- }) : metadataFilter;
193
- var value = sanitizedMetadataFilter.value;
194
- if (isSingleSelectField(sanitizedMetadataFilter)) {
195
- querySet.push(getFieldValueQuery(sanitizedMetadataFilter, value.join(',')));
196
- } else if (isMultiSelectField(sanitizedMetadataFilter)) {
197
- querySet.push(getMetadataMultiSelectQuery(sanitizedMetadataFilter));
198
- } else if (isDateField(sanitizedMetadataFilter)) {
199
- querySet.push(getDateFieldQuery(sanitizedMetadataFilter));
200
- } else if (isTagsField(sanitizedMetadataFilter)) {
201
- /**
202
- * We are adding double quotes around the tags' values, to make sure if the tag's text contains space to be considered,
203
- * as requested in this task: https://scaleflexhq.atlassian.net/browse/FRA-5997
204
- */
205
- querySet.push(getFieldValueQuery(sanitizedMetadataFilter, "\"".concat(value.join('","'), "\"")));
206
- } else if (isTextField(sanitizedMetadataFilter)) {
207
- querySet.push(getTextFieldQuery(sanitizedMetadataFilter));
208
- } else {
209
- querySet.push(getFieldValueQuery(sanitizedMetadataFilter, value));
210
- }
211
- });
212
- return querySet;
213
- };
214
-
215
- // We are using this mapping to keep supporting the filter param names as they are from config/url.
216
- var getMapDateFilterObj = function getMapDateFilterObj(_ref10) {
217
- var formatDate = _ref10.formatDate,
218
- _ref10$considerFuture = _ref10.considerFutureDates,
219
- considerFutureDates = _ref10$considerFuture === void 0 ? false : _ref10$considerFuture;
220
- return {
221
- mapValue: function mapValue() {
222
- var _ref11 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
223
- value = _ref11.value;
224
- if (!value && value !== 0 || Array.isArray(value)) {
225
- var newValue = _toConsumableArray(value);
226
- if (isNumber(value[0])) {
227
- newValue[0] = getDateRange(value[0], formatDate, considerFutureDates && value[0] > -1);
228
- }
229
- if (isNumber(value[1])) {
230
- newValue[1] = getDateRange(value[1], formatDate, considerFutureDates && value[1] > -1);
231
- }
232
- return newValue;
233
- }
234
- return isNumber(value) ? getDateRange(value, formatDate, considerFutureDates && value > -1) : value;
235
- },
236
- // Kept as an example but not needed for now.
237
- // mapOperator: ({ value } = {}) => {
238
- // const isPastDate = value > 1 && value < 7
239
- // return isPastDate ? '>' : ':'
240
- // },
241
- valuesSeparator: '..'
242
- };
243
- };
244
- export var FILTER_FE_KEY_TO_BE_MAPPINGS = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, FILTER_SECTION_KEYS.MIME_TYPES, {
245
- key: 'mimetype'
246
- }), FILTER_SECTION_KEYS.FILE_TYPES, {
247
- key: 'type'
248
- }), FILTER_SECTION_KEYS.SIZE, {
249
- valuesSeparator: '..',
250
- acceptFalsyValues: true
251
- }), FILTER_SECTION_KEYS.IMAGE_MAIN_COLORS, {
252
- key: 'main_color'
253
- }), FILTER_SECTION_KEYS.IMAGE_FACES, {
254
- key: 'faces',
255
- valuesSeparator: '..'
256
- }), FILTER_SECTION_KEYS.IMAGE_DOMINANT_COLORS, {
257
- key: 'color'
258
- }), FILTER_SECTION_KEYS.IMAGE_ORIENTATIONS, {
259
- key: 'orientation'
260
- }), FILTER_SECTION_KEYS.IMAGE_RESOLUTIONS, {
261
- key: 'resolution'
262
- }), FILTER_SECTION_KEYS.DATE, getMapDateFilterObj({
263
- formatDate: function formatDate(date) {
264
- return date.toISOString();
265
- }
266
- })), FILTER_SECTION_KEYS.LICENSE_EXPIRY, _objectSpread(_objectSpread({}, getMapDateFilterObj({
267
- formatDate: literalDateFromDateObj,
268
- considerFutureDates: true
269
- })), {}, {
270
- acceptFalsyValues: true
271
- }));
272
-
273
- // Used when need to adapt filters from BE format to FE
274
- export var FILTER_BE_KEY_TO_FE_MAPPINGS = Object.keys(FILTER_FE_KEY_TO_BE_MAPPINGS).reduce(function (accum, frontendKey) {
275
- var _FILTER_FE_KEY_TO_BE_2 = FILTER_FE_KEY_TO_BE_MAPPINGS[frontendKey],
276
- key = _FILTER_FE_KEY_TO_BE_2.key,
277
- backendMappingDetails = _objectWithoutProperties(_FILTER_FE_KEY_TO_BE_2, _excluded);
278
- accum[key || frontendKey] = _objectSpread(_objectSpread({}, backendMappingDetails), {}, {
279
- frontendKey: frontendKey
280
- });
281
- return accum;
282
- }, {});
283
- var getJoinedValues = function getJoinedValues(values, acceptFalsyValues, separator) {
284
- if (acceptFalsyValues) {
285
- return values.join(separator);
286
- }
287
- return values.filter(function (val) {
288
- return val || val === 0;
289
- }).join(separator);
290
- };
291
- export var adaptFiltersToBackendNotation = function adaptFiltersToBackendNotation() {
292
- var filters = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
293
- var shouldApplyEncoding = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
294
- var adaptedFilters = [];
295
- var _FILTER_SECTION_KEYS$ = FILTER_SECTION_KEYS.METADATA,
296
- metadataFilters = filters[_FILTER_SECTION_KEYS$],
297
- otherFilters = _objectWithoutProperties(filters, [_FILTER_SECTION_KEYS$].map(_toPropertyKey));
298
- if (typeof metadataFilters !== 'undefined') {
299
- adaptedFilters.push.apply(adaptedFilters, _toConsumableArray(adaptMetadataFilter(metadataFilters)));
300
- }
301
- var currentFilterKeys = Object.keys(otherFilters);
302
- if (currentFilterKeys.length > 0) {
303
- var adaptedOtherFilters = currentFilterKeys.map(function (internalFilterKey) {
304
- var currentFilter = otherFilters[internalFilterKey];
305
- var filterBackendMappings = FILTER_FE_KEY_TO_BE_MAPPINGS[internalFilterKey];
306
- var _ref12 = filterBackendMappings || {},
307
- _ref12$key = _ref12.key,
308
- key = _ref12$key === void 0 ? (currentFilter === null || currentFilter === void 0 ? void 0 : currentFilter.key) || (currentFilter === null || currentFilter === void 0 ? void 0 : currentFilter.internalKey) || internalFilterKey : _ref12$key,
309
- _ref12$valuesSeparato = _ref12.valuesSeparator,
310
- valuesSeparator = _ref12$valuesSeparato === void 0 ? '","' : _ref12$valuesSeparato,
311
- removableSymbolsRegex = _ref12.removableSymbolsRegex,
312
- mapValue = _ref12.mapValue,
313
- mapOperator = _ref12.mapOperator,
314
- _ref12$acceptFalsyVal = _ref12.acceptFalsyValues,
315
- acceptFalsyValues = _ref12$acceptFalsyVal === void 0 ? false : _ref12$acceptFalsyVal;
316
- var filterOperator = isFunction(mapOperator) ? mapOperator(currentFilter) : (currentFilter === null || currentFilter === void 0 ? void 0 : currentFilter.operator) || DEFAULT_FILTER_OPERATOR;
317
- var filterValue = isFunction(mapValue) ? mapValue(currentFilter) : (currentFilter === null || currentFilter === void 0 ? void 0 : currentFilter.value) || currentFilter;
318
- var adaptedFilterValue = Array.isArray(filterValue) ? getJoinedValues(filterValue, acceptFalsyValues, valuesSeparator) : filterValue;
319
- if (removableSymbolsRegex) {
320
- adaptedFilterValue = adaptedFilterValue.replaceAll(removableSymbolsRegex, '');
321
- }
322
- if (shouldApplyEncoding) {
323
- adaptedFilterValue = encodeURIComponent(adaptedFilterValue).replaceAll(
324
- // Reverse (decode) the values separator encoding for better readability while checking the network requests if needed as no benefit behind encoding them.
325
- encodeURIComponent(valuesSeparator), valuesSeparator);
326
- }
327
- var wrappedFilterValue = "\"".concat(adaptedFilterValue, "\"");
328
- return "".concat(key).concat(filterOperator).concat(wrappedFilterValue);
329
- });
330
- adaptedFilters.push.apply(adaptedFilters, _toConsumableArray(adaptedOtherFilters));
331
- }
332
- return adaptedFilters;
333
- };
@@ -1,10 +0,0 @@
1
- export var formatFolderPath = function formatFolderPath(path) {
2
- if (!path.includes('/')) {
3
- return path;
4
- }
5
- var formattedPath = path.replace(/\//g, ' / ');
6
- if (path.trim().startsWith('/')) {
7
- return "Root ".concat(formattedPath.trim());
8
- }
9
- return formattedPath.trim();
10
- };
@@ -1,17 +0,0 @@
1
- /**
2
- * Format sub title from formatted query string (filters + search) for save/edit pin modals
3
- *
4
- * @param {Array} query container width
5
- * @param {Function} i18n -- The translation function for translating the shown confirmation message - eg. plugin.i18n
6
- * @returns {String}
7
- */
8
-
9
- var formatPinSubtitle = function formatPinSubtitle(query, i18n) {
10
- return query.map(function (_ref) {
11
- var filter = _ref.filter,
12
- filtersSectionKey = _ref.filtersSectionKey,
13
- label = _ref.label;
14
- return "".concat(filter || i18n(filtersSectionKey), ": \"").concat(label, "\"");
15
- }).join(',');
16
- };
17
- export default formatPinSubtitle;
@@ -1,10 +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 _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; }
3
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
4
- 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); }
5
- import { PLUGINS_IDS } from '@scaleflex/widget-utils/lib/constants';
6
- var getAcquirerTitle = function getAcquirerTitle(acquirerId) {
7
- var acquirerMapping = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, PLUGINS_IDS.WEBCAM, 'explorerAddFilesPanelCameraLabel'), PLUGINS_IDS.SCREEN_CAPTURE, 'explorerAddFilesPanelScreenCastLabel'), PLUGINS_IDS.URL, 'explorerAddFilesPanelLinkLabel'), PLUGINS_IDS.PIXAFORGE, 'explorerAddFilesPanelFreeImagesAndIconsLabel');
8
- return acquirerMapping[acquirerId];
9
- };
10
- export default getAcquirerTitle;
@@ -1,11 +0,0 @@
1
- /**
2
- * @returns {HTMLElement} - either explorer element, or the overlay that's most on top
3
- */
4
- export default function getActiveOverlayEl(explorerEl, activeOverlayType) {
5
- if (activeOverlayType) {
6
- var overlayEl = explorerEl.querySelector("[data-filerobot-paneltype=\"".concat(activeOverlayType, "\"]"));
7
- // if an overlay is already mounted
8
- if (overlayEl) return overlayEl;
9
- }
10
- return explorerEl;
11
- }
@@ -1,10 +0,0 @@
1
- var getApiPathType = function getApiPathType(filesUuids, foldersUuids) {
2
- if (foldersUuids.length === 0) {
3
- return 'files';
4
- } else if (filesUuids.length === 0) {
5
- return 'folders';
6
- } else {
7
- return 'objects';
8
- }
9
- };
10
- export default getApiPathType;
@@ -1,22 +0,0 @@
1
- import levenshtein from 'js-levenshtein';
2
- export default function getClosestStr(str, options) {
3
- if (str) {
4
- var closestValue = (options || []).filter(function (option) {
5
- return option && typeof option === 'string';
6
- }).reduce(function (acum, currentOption) {
7
- var value = currentOption || '';
8
- var distance = levenshtein((str || '').toLowerCase(), value.toLowerCase());
9
- if (!acum || distance < (acum === null || acum === void 0 ? void 0 : acum.distance)) {
10
- return {
11
- value: value,
12
- distance: distance
13
- };
14
- }
15
- return acum;
16
- }, null);
17
- if (closestValue !== null && closestValue !== void 0 && closestValue.value) {
18
- return closestValue.value;
19
- }
20
- }
21
- return null;
22
- }
@@ -1,12 +0,0 @@
1
- var getItemUuids = function getItemUuids(items) {
2
- if (Array.isArray(items)) {
3
- return items.map(function (item) {
4
- return item.uuid;
5
- }) || [];
6
- }
7
- if (!(items !== null && items !== void 0 && items.uuid)) {
8
- return [];
9
- }
10
- return [items === null || items === void 0 ? void 0 : items.uuid];
11
- };
12
- export default getItemUuids;
@@ -1,6 +0,0 @@
1
- var getLabelsTotalAssetsCount = function getLabelsTotalAssetsCount(labels) {
2
- return labels.reduce(function (total, label) {
3
- return total + ((label === null || label === void 0 ? void 0 : label.assets_count) || 0);
4
- }, 0);
5
- };
6
- export default getLabelsTotalAssetsCount;
@@ -1,15 +0,0 @@
1
- var getMoveAndDeleteData = function getMoveAndDeleteData(apiPathType, filesUuids, foldersUuids) {
2
- var isFileOrObject = apiPathType === 'files' || apiPathType === 'objects';
3
- var isFolderOrObject = apiPathType === 'folders' || apiPathType === 'objects';
4
- var fileObject = isFileOrObject ? {
5
- files_uuids: filesUuids
6
- } : {};
7
- var folderObject = isFolderOrObject ? {
8
- folders_uuids: foldersUuids
9
- } : {};
10
- return {
11
- fileObject: fileObject,
12
- folderObject: folderObject
13
- };
14
- };
15
- export default getMoveAndDeleteData;
@@ -1,4 +0,0 @@
1
- var getParentFolderPath = function getParentFolderPath(path) {
2
- return path === null || path === void 0 ? void 0 : path.slice(0, path.lastIndexOf('/'));
3
- };
4
- export default getParentFolderPath;
@@ -1,6 +0,0 @@
1
- var getQueryStringFromUrl = function getQueryStringFromUrl(url) {
2
- if (!url) return;
3
- var queryMatch = url.match(/\?(.*)$/);
4
- return queryMatch ? queryMatch[1] : '';
5
- };
6
- export default getQueryStringFromUrl;
@@ -1,15 +0,0 @@
1
- var _getScrollableParent = function getScrollableParent(elemNode) {
2
- if (!elemNode || elemNode.nodeName === '#document' || elemNode.nodeName === 'HTML') {
3
- var _ref, _document$scrollingEl;
4
- return (_ref = (_document$scrollingEl = document.scrollingElement) !== null && _document$scrollingEl !== void 0 ? _document$scrollingEl : document.body) !== null && _ref !== void 0 ? _ref : window;
5
- }
6
- var _window$getComputedSt = window.getComputedStyle(elemNode),
7
- overflowY = _window$getComputedSt.overflowY;
8
- var noScrollValues = ['visible', 'hidden', 'initial'];
9
- var isScrollable = !noScrollValues.includes(overflowY === null || overflowY === void 0 ? void 0 : overflowY.toLowerCase());
10
- if (isScrollable && (elemNode.scrollHeight > elemNode.clientHeight || elemNode.dataset.scroller)) {
11
- return elemNode;
12
- }
13
- return _getScrollableParent(elemNode.parentNode);
14
- };
15
- export default _getScrollableParent;
@@ -1,9 +0,0 @@
1
- var getStringValueExistedInObj = function getStringValueExistedInObj() {
2
- var _Object$values;
3
- var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
4
- var object = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
5
- return value ? typeof value === 'string' && (object[value.toUpperCase()] || object[value.toLowerCase()]) ||
6
- // most probably won't work with 0 or '' as a value as they are considered false in the condition if needed update the condition
7
- typeof object[value] !== 'undefined' && object[value] || ((_Object$values = Object.values(object || {})) === null || _Object$values === void 0 ? void 0 : _Object$values.includes(value)) && value : '';
8
- };
9
- export default getStringValueExistedInObj;
@@ -1,6 +0,0 @@
1
- import isImage from '@scaleflex/widget-utils/lib/isImage';
2
- import isVideo from '@scaleflex/widget-utils/lib/isVideo';
3
- var isEmbeddableAsset = function isEmbeddableAsset(asset) {
4
- return isVideo(asset) || isImage(asset);
5
- };
6
- export default isEmbeddableAsset;
@@ -1,9 +0,0 @@
1
- var isFileVersion = function isFileVersion(_ref) {
2
- var newVersion = _ref.newVersion,
3
- originalFile = _ref.originalFile;
4
- if ((newVersion === null || newVersion === void 0 ? void 0 : newVersion.uuid.slice(0, -4)) === (originalFile === null || originalFile === void 0 ? void 0 : originalFile.uuid.slice(0, -4))) {
5
- return true;
6
- }
7
- return false;
8
- };
9
- export default isFileVersion;