@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
package/README.md CHANGED
@@ -1,1294 +1,1294 @@
1
- # `@scaleflex/widget-explorer`
2
-
3
- [![Plugins][plugins-image]](#plugins)
4
- [![Website][filerobot-image]][sfx-url]
5
- [![Version][filerobot-version]][version-url]
6
- [![Scaleflex team][made-by-image]][sfx-url]
7
- [![License][license-image]][license-url]
8
- [![CodeSandbox][codeSandbox-image]][codeSandbox-url]
9
-
10
- <div align='center'>
11
- <img title="Scaleflex Widget logo" alt="Scaleflex Widget logo" src="https://assets.scaleflex.com/Corporate+Branding/%5B2025%5D+ALL+LOGOS+%2B+ICONS/SCALEFLEX/VXP+logo/Horizontal+White/VXP+logo+WHITE.png?vh=663932" width="140"/>
12
- </div>
13
-
14
- The file Explorer and media gallery plugin of the [Scaleflex Media Asset Widget](https://www.npmjs.com/package/@scaleflex/widget-core).
15
-
16
- ## Usage
17
-
18
- ### NPM
19
-
20
- ```bash
21
- npm install --save @scaleflex/widget-explorer
22
- ```
23
-
24
- ### YARN
25
-
26
- ```bash
27
- yarn add @scaleflex/widget-explorer
28
- ```
29
-
30
- then
31
-
32
- ```js
33
- import Explorer from '@scaleflex/widget-explorer'
34
- ...
35
- ...
36
- ...
37
- scaleflexWidget.use(Explorer, propertiesObject)
38
- ```
39
-
40
- ### CDN
41
-
42
- If installed via a [CDN link](../@scaleflex/widget-core#installation), the plugin is inside the `Scaleflex` global object as `Scaleflex.Explorer`
43
-
44
- ```js
45
- const Explorer = window.ScaleflexWidget.Explorer
46
- ...
47
- ...
48
- ...
49
- scaleflexWidget.use(Explorer, propertiesObject)
50
- ```
51
-
52
- ### Plugin styles
53
-
54
- ```js
55
- import "@scaleflex/widget-core/dist/style.css";
56
- import "@scaleflex/widget-explorer/dist/style.css";
57
- ```
58
-
59
- or via the minified versions
60
-
61
- ```js
62
- import "@scaleflex/widget-core/dist/style.min.css";
63
- import "@scaleflex/widget-explorer/dist/style.min.css";
64
- ```
65
-
66
- > The plugin's css file should be imported after the [Core's css file](../@scaleflex/widget-core/#modules-styles) for having the styles shown correctly.
67
-
68
- ## Explorer modes
69
-
70
- ### Uploader mode (default mode)
71
-
72
- The mode used for uploading files using your chosen/configured uploading provider to your token and chosen path.
73
-
74
- #### how to?
75
-
76
- Just initialize the widget normally and keep [`ExploreViewComponent`](#exploreviewcomponent) property in Explorer plugin with a null/empty value.
77
-
78
- ```js
79
- // ScaleflexWidget.Core initializations
80
- scaleflexWidget.use(Explorer, {
81
- // ...otherParams,
82
- ExploreViewComponent: null
83
- })
84
- scaleflexWidget.use(XHRUpload, {
85
- uploadToFolderPath: '/test'
86
- })
87
- ```
88
-
89
- ### Browser/Light-DAM mode
90
-
91
- The mode used for browsing files/folders using the Explorer's main view and do some light-weight/quick functionalities like reading & writing files metadata in addition to uploading files.
92
-
93
- #### how to?
94
-
95
- Initialize the plugin with providing the component `@scaleflex/widget-explorer/lib/components/ExploreView` to the [`ExploreViewComponent`](#exploreviewcomponent) property.
96
-
97
- ```js
98
- import ExploreView from '@scaleflex/widget-explorer/lib/components/ExploreView'
99
- // ...scaleflexWidget and other plugins initializations
100
-
101
- scaleflexWidget.use(Explorer, {
102
- // ...otherParams,
103
- ExploreViewComponent: ExploreView
104
- })
105
- ```
106
-
107
- ### Assets picker mode
108
-
109
- Enabling the ability to browse the files/folders and preview them with and their metadata. Select files from the current token and do your own custom functionality after selecting the files.
110
-
111
- #### how to?
112
-
113
- 1. Initialize the plugin and provide the component `@scaleflex/widget-explorer/lib/components/ExploreView` to the [`ExploreViewComponent`](#exploreviewcomponent) property.
114
- 2. provide `useAssetsPicker` property with a `true` value.
115
-
116
- ```js
117
- import ExploreView from '@scaleflex/widget-explorer/lib/components/ExploreView'
118
- // ...scaleflexWidget and other plugins initializations
119
-
120
- scaleflexWidget.use(Explorer, {
121
- // ...otherParams,
122
- ExploreViewComponent: ExploreView,
123
- useAssetsPicker: true,
124
- hideDownloadButtonIcon: true
125
- })
126
- ```
127
-
128
- > Note: please check the plugin's properties in-case you want to customize anything else related to any of the mentioned 3 modes above (some of the properties might work only for specific mode).
129
-
130
- ## Properties
131
-
132
- The Explorer supports multiple properties to customize the plugin according to your needs. Required attributes are marked with **_(Required)_**.
133
-
134
-
135
- ### `locale` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
136
-
137
- <u>Type:</u> `object`.
138
-
139
- <u>Default:</u> locales from scaleflexWidget's backend then default locale file with all labels is under `lib/defaultLocale.js`.
140
-
141
- You can override some labels by specifying a translation object here, such as:
142
-
143
- ```js
144
- {
145
- strings: {
146
- baseFolderTitle: "Root"; // overrides the default Home value to Root
147
- }
148
- }
149
- ```
150
-
151
- ### `config` ![asset-picker-supported] ![asset-manager-supported]
152
-
153
- <u>Type:</u> `object`
154
-
155
- <u>Default:</u>
156
-
157
- ```js
158
- {
159
- config: {
160
- foldersLimit: 200,
161
- filesLimit: 50,
162
- rootFolderPath: '/',
163
- defaultSort: {
164
- by: '',
165
- order: ''
166
- },
167
- tagging: {...} // check tagging section
168
- }
169
- }
170
- ```
171
-
172
- The config objects contains the main configuration for the plugin to interact with your Scaleflex project:
173
-
174
- #### `foldersLimit` ![asset-picker-supported] ![asset-manager-supported]
175
-
176
- <u>Type:</u> `number`.
177
-
178
- <u>Default:</u> `200`
179
-
180
- Number of folders to be retrieved with folders initial request.
181
-
182
- #### `maxCountOfSelectedFiles` ![asset-picker-supported] ![asset-manager-supported]
183
-
184
- <u>Type:</u> `number`.
185
-
186
- <u>Default:</u> `undefined`
187
-
188
- Maximum number of files that can be selected.
189
-
190
- #### `filesLimit` ![asset-picker-supported] ![asset-manager-supported]
191
-
192
- <u>Type:</u> `number`.
193
-
194
- <u>Default:</u> `50`
195
-
196
- Number of files to be retrieved with files initial request.
197
-
198
- #### `rootFolderPath` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
199
-
200
- <u>Type:</u> `string`.
201
-
202
- <u>Default:</u> `/`
203
-
204
- Overrides the root folder path when there is no `list scope` linked with the [securityTemplateId](..@scaleflex/widget-core/README.md/#securitytemplateid) or at least 2 folders or more in the `list scope` otherwise it has no effect.
205
-
206
- > Note: If the [securityTemplateId](..@scaleflex/widget-core/README.md/#securitytemplateid) has 2 folders at least, then the provided folder path must be one of these folders or one of their sub-folders.
207
-
208
- #### `defaultSort` ![asset-picker-supported] ![asset-manager-supported]
209
-
210
- <u>Type:</u> `object`.
211
-
212
- <u>Default:</u> `{ by: 'name', order: 'asc' }`
213
-
214
- Customize the default selected sort option for both files & folders shown in the main view (not applicable for folders tree or objects' trees) applied for all the files shown regardless of the opened view.
215
-
216
- The options available sorting
217
-
218
- | Property | Type | Default | Description |
219
- | ----------- | -------- | ------- | --------------------------------------------------------------------------------------------------------- |
220
- | **`by`** | `string` | `name` | Defines the default sort by param, should be one of ['name', 'created_at', 'modified_at', 'size', 'type'] |
221
- | **`order`** | `string` | `asc` | Defines the default sort order param, should be one of ['asc', 'desc'] |
222
-
223
- > Note: its value is considered only on plugin's install/mount.
224
-
225
- #### `defaultSearchSort` ![asset-picker-supported] ![asset-manager-supported]
226
-
227
- <u>Type:</u> `object`.
228
-
229
- <u>Default:</u>
230
-
231
- ```js
232
- {
233
- text: {
234
- by: 'name',
235
- order: 'asc'
236
- }
237
- }
238
- ```
239
-
240
- Customize the default selected sort option for search shown in the main view, applied for all the files shown regardless of the opened view.
241
-
242
- The options available sorting
243
-
244
- | Property | Type | Default | Description |
245
- | ---------------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------- |
246
- | **text.`by`** | `string` | `name` | Defines the default search sort by param, should be one of ['relevance', 'name', 'created_at', 'modified_at', 'size', 'type'] |
247
- | **text.`order`** | `string` | `asc` | Defines the default search sort order param, should be one of ['asc', 'desc'] |
248
-
249
- #### `tagging` ![asset-manager-supported]
250
-
251
- <u>Type:</u> `object`.
252
-
253
- <u>Default:</u>
254
-
255
- ```js
256
- {
257
- tagging: {
258
- enabled: false,
259
- autoTagging: false,
260
- suggestedTagsOnly: false,
261
- language: 'en',
262
- confidence: 60,
263
- limit: 10,
264
- provider: 'google',
265
- suggestionList: []
266
- }
267
- }
268
- ```
269
-
270
- The options available for tagging
271
-
272
- | Property | Type | Default | Description |
273
- | ----------------------- | ---------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
274
- | **`enabled`** | `boolean` | `false` | Enable/disable tags |
275
- | **`autoTagging`** | `boolean` | `false` | Enable/disable auto-tagging |
276
- | **`suggestedTagsOnly`** | `boolean` | `false` | Enable/disable suggested tags only. When it's TRUE, users can only select tags from a pre-defined list. Notice that when suggestedTagsOnly is TRUE, autoTagging will be disabled. |
277
- | **`language`** | `string` | `en` | AutoTagging config that we add in POST process/autoTag request data.meta |
278
- | **`confidence`** | `number` | `60` | AutoTagging config that we add in POST process/autoTag request data.meta |
279
- | **`limit`** | `number` | `10` | AutoTagging config that we add in POST process/autoTag request data.meta |
280
- | **`provider`** | `string` | `[]` | AutoTagging config that we add in POST process/autoTag request data.meta |
281
- | **`suggestionList`** | `object[]` | `1 ` | Tags suggestions list that is shown under tags field. By default we show primary tags, but when user start typing we filter full suggestionList. Object format: |
282
-
283
- ```js
284
- {
285
- sid: string, // Short id like: '#tg1885f'
286
- names: {
287
- en: string,
288
- fr: string
289
- },
290
- primary: boolean // If true, tag will be shown in Suggestions list below tags field
291
- }
292
- ```
293
-
294
- ### `inline` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
295
-
296
- <u>Type:</u> `boolean`.
297
-
298
- <u>Default:</u> `false`
299
-
300
- If set to `true`, the plugin will be displayed as inline element in the element referred by the [target](#target) property. Otherwise, it will pop up in a modal upon [trigger](#trigger), see below.
301
-
302
- ### `trigger` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
303
-
304
- <u>Type:</u> `string`.
305
-
306
- <u>Default:</u> `null`
307
-
308
- The selector used for triggering the display of the plugin modal, if passed to `querySelectorAll` function. Available options:
309
-
310
- - HTML tag, eg. `body`
311
- - CSS selector, eg. `#scaleflex-widget-trigger-button` or `.scaleflex-widget-trigger-button`
312
-
313
- Multiple triggers are supported as click events.
314
-
315
- > **_Required if_** [inline](#inline): false
316
-
317
- ### `target` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
318
-
319
- <u>Type:</u> `string`.
320
-
321
- <u>Default:</u> ``
322
-
323
- The selector used for displaying the plugin, if passed to `querySelector` function. Options:
324
-
325
- - HTML tag, eg. `body`
326
- - CSS selector, eg. `#scaleflex-widget-container` or `.scaleflex-widget-container`
327
-
328
- > **_Required if_** [inline](#inline): false
329
-
330
- ### `width` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
331
-
332
- <u>Type:</u> `number`| `string`.
333
-
334
- <u>Default:</u> `768`
335
-
336
- Width of the plugin as a number if specified in pixels or a percentage, eg. `'50%'`
337
-
338
- ### `height` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
339
-
340
- <u>Type:</u> `number`| `string`.
341
-
342
- <u>Default:</u> `538`
343
-
344
- Height of the plugin as a number if specified in `px` or a percentage eg. `'35%'`
345
-
346
- ### `thumbnailWidth` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
347
-
348
- <u>Type:</u> `number`.
349
-
350
- <u>Default:</u> `280`
351
-
352
- Pixel width of the asset thumbnails displayed in the uploads panel. Apect ratio of images is kept in case of image assets.
353
-
354
- ### `thumbnailHeight` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
355
-
356
- <u>Type:</u> `number`.
357
-
358
- <u>Default:</u> `170`
359
-
360
- Pixel height of the asset thumbnails displayed in the uploads panel. Aspect ratio of images is kept in case of image assets.
361
-
362
- ### `ExploreViewComponent` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
363
-
364
- <u>Type:</u> `ReactComponent`.
365
-
366
- <u>Default:</u> `null`
367
-
368
- <u>Expected value:</u> `@scaleflex/widget-explorer/lib/components/ExploreView`
369
-
370
- The view component that is responsible about showing the objects (folders/files...etc.) with the possibility to browse them and enable other functionalities.
371
-
372
- ### `mutedFilesUuids` ![asset-picker-supported] ![asset-manager-supported]
373
-
374
- <u>Type:</u> `array`.
375
-
376
- <u>Default:</u> `[]`
377
-
378
- List of file UUIDs with the state "muted". These files cannot be selected or have any actions performed on them.
379
-
380
- ### `views` ![asset-picker-supported] ![asset-manager-supported]
381
-
382
- <u>Type:</u> `array`.
383
-
384
- <u>Default:</u> `['ASSETS', 'FOLDERS', 'LABELS', 'COLLECTIONS']`
385
-
386
- List of available views.
387
-
388
- > **NOTE** some views can be hidden if you don't have permission provided in [securityTemplateId](..@scaleflex/widget-core/README.md/#securitytemplateid).
389
-
390
- ### `view` ![asset-picker-supported] ![asset-manager-supported]
391
-
392
- <u>Type:</u> `string`.
393
-
394
- <u>Default:</u> `'FOLDERS'`
395
-
396
- View which will be currently opened.
397
-
398
- ### `viewItem` ![asset-picker-supported] ![asset-manager-supported]
399
-
400
- <u>Type:</u> `string`.
401
-
402
- <u>Default:</u> `null`
403
-
404
- Open the provided view's item/object for ex. (folders view => folder path, labels view => label sid or uuid, collections view => collection uuid...etc.)
405
-
406
- > Note: No auto redirect to the view, you have to provide the proper view from [`view prop`](#view).
407
-
408
- ### `viewSubItem` ![asset-picker-supported] ![asset-manager-supported]
409
-
410
- <u>Type:</u> `string`.
411
-
412
- <u>Default:</u> `null`
413
-
414
- A sub item that should be opened inside the provided [`view`](#view) & [`viewItem`](#viewitem), mostly used for opening a collection virtual folder that's found inside some collection.
415
-
416
- > Note: No auto redirect to the view, you have to provide the proper view from [`view prop`](#view).
417
-
418
- ### `layoutType` ![asset-picker-supported] ![asset-manager-supported]
419
-
420
- <u>Type:</u> `boolean`.
421
-
422
- <u>Default:</u> `grid`
423
-
424
- Specifies the default layout in the view:
425
-
426
- | Value | Description |
427
- | ---------- | ------------------------------------------- |
428
- | **`grid`** | shows folders/assets as cards in a grid |
429
- | **`list`** | shows the folders/assets as rows in a table |
430
-
431
- you can switch between layouts from the layout selector button in the right side in header bar.
432
-
433
- ### `waitForThumbnailsBeforeUpload` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
434
-
435
- <u>Type:</u> `boolean`.
436
-
437
- <u>Default:</u> `false`
438
-
439
- If set to `true`, delays the start of the upload process until the asset thumbnails are generated and displayed in the plugin.
440
-
441
- ### `showBar` ![asset-picker-supported] ![asset-manager-supported]
442
-
443
- <u>Type:</u> `boolean`.
444
-
445
- <u>Default:</u> `true`
446
-
447
- If set to `false`, hides the top bar with **Upload** button, searchBar, create folder button and view button.
448
-
449
- ### `showImportFromDamButton` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
450
-
451
- <u>Type:</u> `boolean`.
452
-
453
- <u>Default:</u> `false`
454
-
455
- If set to `true`, shows the **Import from DAM** button in the uploads panel to upload from DAM.
456
-
457
- > Note: this property requires `ExploreViewComponent` to be provided to be able to browse the objects.
458
-
459
- ### `disableUpload` ![asset-picker-supported] ![asset-manager-supported]
460
-
461
- <u>Type:</u> `boolean`.
462
-
463
- <u>Default:</u> `false`
464
-
465
- If set to `true`, hides the **Upload** button at the top of the plugin.
466
-
467
- ### `hideSearch` ![asset-picker-supported] ![asset-manager-supported]
468
-
469
- <u>Type:</u> `boolean`.
470
-
471
- <u>Default:</u> `false`
472
-
473
- Hides **Search** field at the top of the plugin.
474
-
475
- ### `note` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
476
-
477
- <u>Type:</u> `string`.
478
-
479
- <u>Default:</u> `null`
480
-
481
- A custom note displayed in the upload screen for drag&drop.
482
-
483
- ### `hint` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
484
-
485
- <u>Type:</u> `string`.
486
-
487
- <u>Default:</u> `null`
488
-
489
- A custom hint displayed in the upload screen at the bottom.
490
-
491
- ### `closeModalOnClickOutside` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
492
-
493
- <u>Type:</u> `boolean`.
494
-
495
- <u>Default:</u> `false`
496
-
497
- Plugin modal will be closed when clicking outside of the modal.
498
-
499
- > **_Only relevant if_** [inline](#inline): false
500
-
501
- ### `preventModalOverlayClickOnUpload` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
502
-
503
- <u>Type:</u> `boolean`.
504
-
505
- <u>Default:</u> `false`
506
-
507
- Plugin modal still opened when click outside of it, if there's selected files to be uploaded
508
-
509
- > **_Only relevant if_** [closeModalOnClickOutside](#closeModalOnClickOutside): true
510
-
511
- ### `closeAfterFinish` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
512
-
513
- <u>Type:</u> `boolean`.
514
-
515
- <u>Default:</u> `false`
516
-
517
- Modal will close after upload is finished.
518
-
519
- > **_Only relevant if_** [inline](#inline): false
520
-
521
- ### `closeAfterUploadStart` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
522
-
523
- <u>Type:</u> `boolean`.
524
-
525
- <u>Default:</u> `false`
526
-
527
- Modal will close after upload is started.
528
-
529
- > **_Only relevant if_** [inline](#inline): false
530
-
531
- ### `onClickUploadButton` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
532
-
533
- <u>Type:</u> `function`.
534
-
535
- <u>Default:</u> `() => {}`
536
-
537
- A callback function that would be triggered when the user clicks on upload button that is shown in the uploads panel, if returned `true` then the default upload functionality won't be triggered.
538
-
539
- ### `disableInformer` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
540
-
541
- <u>Type:</u> `boolean`.
542
-
543
- <u>Default:</u> `false`
544
-
545
- Disables the [informer](../@scaleflex/widget-informer/#scaleflexwidget-informer) plugin used to show warnings and errors.
546
-
547
- ### `disableThumbnailGenerator` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
548
-
549
- <u>Type:</u> `boolean`.
550
-
551
- <u>Default:</u> `false`
552
-
553
- Disables the [thumbnail-generator](../@scaleflex/widget-thumbnail-generator/#scaleflexwidget-thumbnail-generator) plugin that generates image thumbnails.
554
-
555
- ### `disablePageScrollWhenModalOpen` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
556
-
557
- <u>Type:</u> `boolean`.
558
-
559
- <u>Default:</u> `true`
560
-
561
- If set to `true`, disables scrolling for the document while the plugin modal is open.
562
-
563
- > **_Only relevant if_** [inline](#inline): false
564
-
565
- ### `disableDownloadButton` ![asset-picker-supported] ![asset-manager-supported]
566
-
567
- <u>Type:</u> `boolean`.
568
-
569
- <u>Default:</u> `false`
570
-
571
- Hides the download button shown in the action bar when selecting files.
572
-
573
- ### `preventDownloadDefaultBehavior` ![asset-picker-supported] ![asset-manager-supported]
574
-
575
- <u>Type:</u> `boolean`.
576
-
577
- <u>Default:</u> `false`
578
-
579
- Prevent default behavior of download/export.
580
-
581
- ### `hideDownloadVariationsOption` ![asset-picker-supported] ![asset-manager-supported]
582
-
583
- <u>Type:</u> `boolean`.
584
-
585
- <u>Default:</u> `false`
586
-
587
- Hide transformation in download options in context menu and action bar.
588
-
589
- ### `hideDownloadButtonIcon` ![asset-picker-supported] ![asset-manager-supported]
590
-
591
- <u>Type:</u> `boolean`.
592
-
593
- <u>Default:</u> `false`
594
-
595
- Hides the download/export button icon.
596
-
597
- ### `hideHeaderBar` ![asset-picker-supported] ![asset-manager-supported]
598
-
599
- <u>Type:</u> `boolean`.
600
-
601
- <u>Default:</u> `false`
602
-
603
- Hides the header bar, header bar contains breadcrumbs and other action buttons.
604
-
605
- ### `hideExportCropPanel` ![asset-picker-supported] ![asset-manager-supported]
606
-
607
- <u>Type:</u> `boolean`.
608
-
609
- <u>Default:</u> `false`
610
-
611
- The crop button in the export options modal will be hidden.
612
-
613
- ### `forceDownload` ![asset-picker-supported] ![asset-manager-supported]
614
-
615
- <u>Type:</u> `boolean`.
616
-
617
- <u>Default:</u> `false`
618
-
619
- Adds `download=1` param to the CDN download link
620
-
621
- ### `imageEditorMode` ![asset-manager-supported]
622
-
623
- <u>Type:</u> `string`.
624
-
625
- <u>Default:</u> `'default'`
626
-
627
- Possible values: `'default' | 'cloudimage' `
628
-
629
- Set imageEditorMode for the image editor plugin.
630
-
631
- ### `hideModalAfterExport` ![asset-picker-supported] ![asset-manager-supported]
632
-
633
- <u>Type:</u> `boolean`.
634
-
635
- <u>Default:</u> `false`
636
-
637
- Hides the modal after finish download/export.
638
-
639
- ### `closeAfterImageEdit` ![asset-manager-supported]
640
-
641
- <u>Type:</u> `boolean`.
642
-
643
- <u>Default:</u> `false`
644
-
645
- Hides the modal after finish editing image.
646
-
647
- ### `onRequestCloseModal` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
648
-
649
- <u>Type:</u> `() => undefined`.
650
-
651
- <u>Default:</u> `closeModal` function
652
-
653
- Specified a custom function to be executed when trying to close the modal. Default closing modal behavior is overridden
654
-
655
- > **_Only relevant if_** [inline](#inline): false
656
-
657
- ### `animateOpenClose` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
658
-
659
- <u>Type:</u> `boolean`.
660
-
661
- <u>Default:</u> `true`
662
-
663
- Disable the modal's opening and closing.
664
-
665
- > **_Only relevant if_** [inline](#inline): false
666
-
667
- ### `browserBackButtonCloseModal` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
668
-
669
- <u>Type:</u> `boolean`.
670
-
671
- <u>Default:</u> `false`
672
-
673
- The browser **Back** button will close the modal, otherwise it will trigger the standard back browser behavior.
674
-
675
- > **_Only relevant if_** [inline](#inline): false
676
-
677
- ### `enableFoldersStatsApiRequest` ![asset-picker-supported] ![asset-manager-supported]
678
-
679
- <u>Type:</u> `boolean`.
680
-
681
- <u>Default:</u> `false`
682
-
683
- When enabled it will send extra folders/stats API request with the folders request to get folders count.
684
-
685
- ### `isUploadBarAddMoreButtonHidden` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
686
-
687
- <u>Type:</u> `boolean`.
688
-
689
- <u>Default:</u> `false`
690
-
691
- The 'Add More' button in upload module is hidden preventing users to upload more item.
692
-
693
- ### `showFoldersTree` ![asset-picker-supported] ![asset-manager-supported]
694
-
695
- <u>Type:</u> `boolean`.
696
-
697
- <u>Default:</u> `false`
698
-
699
- Shows/hides on initial load the folder tree as a sidebar at the left of the plugin to navigate folders. The user can shows/hides the folder tree from the tree icon in the breadcrumbs.
700
-
701
- > **_Only relevant if_** folders view is provided in [views](#views)
702
-
703
- ### `showDetailsView` ![asset-picker-supported] ![asset-manager-supported]
704
-
705
- <u>Type:</u> `boolean`.
706
-
707
- <u>Default:</u> `false`
708
-
709
- Shows/hides the asset details view as a sidebar at the right of the plugin to view various details about selected assets. The user can shows/hides the details view from the info icon in the right side of the breadcrumbs.
710
-
711
- ### `showCollectionsTree`
712
-
713
- <u>Type:</u> `boolean`.
714
-
715
- <u>Default:</u> `false`
716
-
717
- Shows/hides the collection tree as a sidebar at the left of the plugin to navigate collections. The user can shows/hides the collection tree from the tree icon in the breadcrumbs.
718
-
719
- > **_Only relevant if_** collection view is provided in [views](#views)
720
-
721
- ### `showLabelsTree`
722
-
723
- <u>Type:</u> `boolean`.
724
-
725
- <u>Default:</u> `false`
726
-
727
- Shows/hides the label tree as a sidebar at the left of the plugin to navigate labels. The user can shows/hides the label tree from the tree icon in the breadcrumbs.
728
-
729
- ### `hideDetailsViewButton` ![asset-picker-supported] ![asset-manager-supported]
730
-
731
- <u>Type:</u> `boolean`.
732
-
733
- <u>Default:</u> `false`
734
-
735
- Hides the asset details view button from the info icon in the right side of the breadcrumbs.
736
-
737
- ### `videoTranscoding` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
738
-
739
- <u>Type:</u> `object`.
740
-
741
- <u>Default:</u>
742
-
743
- ```js
744
- {
745
- resolution: 'auto',
746
- protocol: 'HLS'
747
- }
748
- ```
749
-
750
- Video transcoding options for post-upload video transcoding:
751
-
752
- | Property | Type | Default | Description |
753
- | ---------------- | ------------------- | ------- | ---------------------------------------- |
754
- | **`resolution`** | `string` _required_ | `auto` | target resolutions for video transcoding |
755
- | **`protocol`** | `string` _required_ | `HLS` | which protocol to use while transcoding |
756
-
757
- ### `cropPresets` ![asset-picker-supported] ![asset-manager-supported]
758
-
759
- <u>Type:</u> `object`.
760
-
761
- <u>Default:</u> `{}`
762
-
763
- Defines additional crop types & presets besides the freehand one and their presets and its shape as follows
764
-
765
- ```js
766
- {
767
- 'Social media': [
768
- /**
769
- * label: possible to be a string or string in form of i18n key provided through locale object
770
- * value: value follows this format (width:height:autoResize) or one of the following stringy values (original/ellipse) which defines the width & height of the crop preset autoResize which is a boolean value if `true` then resizing inputs will be disabled and auto resize will be applied automatically otherwise they're enabled, ratio of crop will be determined from width / height.
771
- */
772
- { label: 'Facebook profile', value: '400:400:true' },
773
- { label: 'linkedInCover', value: '1128:191:false' }
774
- ],
775
- custom: [
776
- { label: 'logoSize', value: '320:100' }
777
- ],
778
- ellipse: {
779
- label: 'ellipse', value: 'ellipse'
780
- },
781
- original: {
782
- label: 'original', value: 'original'
783
- }
784
- }
785
- ```
786
-
787
- > NOTE: The object's keys will be used the label for crop type (it is possible to be label string or i18n key string that is provided through locale object)
788
-
789
- ### `disableMultipleSelect` ![asset-picker-supported] ![asset-manager-supported]
790
-
791
- <u>Type:</u> `boolean`.
792
-
793
- <u>Default:</u> `false`
794
-
795
- Multiple files/folders selections will be disabled and only 1 file/folder possible to be selected.
796
-
797
- ### `dismissUrlPathQueryUpdate` ![asset-picker-supported] ![asset-manager-supported]
798
-
799
- <u>Type:</u> `boolean`.
800
-
801
- <u>Default:</u> `false`
802
-
803
- The url query `fmaw_path` won't be added/updated to the current url.
804
-
805
- ### `showScaleflexCopyright` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
806
-
807
- <u>Type:</u> `boolean`.
808
-
809
- <u>Default:</u> `false`
810
-
811
- Hides Scaleflex copyright at the bottom of the plugin.
812
-
813
- ### `useAssetsPicker` ![asset-picker-supported]
814
-
815
- <u>Type:</u> `boolean`.
816
-
817
- <u>Default:</u> `false`
818
-
819
- If set to `true`, actions like deleting, editing, or downloading assets will not be allowed, explore and insert actions allowed.
820
-
821
- ### `assetsPickerModelTitle` ![asset-picker-supported]
822
-
823
- <u>Type:</u> `string`.
824
-
825
- <u>Default:</u> `explorerTopSectionImportFileTitle`
826
-
827
- changing it's value changes the asset picker's model title
828
-
829
- ### `disableFolderSelection` ![asset-manager-supported]
830
-
831
- <u>Type:</u> `boolean`.
832
-
833
- <u>Default:</u> `false`
834
-
835
- If set to `true`, disable the possiblity to select folder(s).
836
-
837
- ### `hideFolderOptions` ![asset-manager-supported]
838
-
839
- <u>Type:</u> `boolean`.
840
-
841
- <u>Default:</u> `false`
842
-
843
- If set to `true`, hide the folder item top options.
844
-
845
- ### `hideDetailsSidebarButton` ![asset-picker-supported] ![asset-manager-supported]
846
-
847
- <u>Type:</u> `boolean`.
848
-
849
- <u>Default:</u> `false`
850
-
851
- If set to `true`, hide toggle details sidebar button.
852
-
853
- ### `hideActionBarSelectionButtons` ![asset-picker-supported] ![asset-manager-supported]
854
-
855
- <u>Type:</u> `boolean`.
856
-
857
- <u>Default:</u> `false`
858
-
859
- If set to `true`, hide the selection buttons in the action bar.
860
-
861
- ### `disableDnDActions` ![asset-picker-supported] ![asset-manager-supported]
862
-
863
- <u>Type:</u> `boolean`.
864
-
865
- <u>Default:</u> `false`
866
-
867
- If set to `true`, disable the drag and drop actions to move assets/folders or upload
868
-
869
- ### `noImgOperationsAndDownload` ![asset-picker-supported] ![asset-manager-supported]
870
-
871
- <u>Type:</u> `boolean`.
872
-
873
- <u>Default:</u> `false`
874
-
875
- If set to `true`, hides some options in asset contextual menu:
876
-
877
- - Download (context menu)
878
- - Transformation (action bar)
879
- - Edit image (context menu and action bar)
880
-
881
- ### `queryParamPrefix` ![asset-picker-supported] ![asset-manager-supported]
882
-
883
- <u>Type:</u> `string`.
884
-
885
- <u>Default:</u> `fmaw_`
886
-
887
- Override the query params
888
-
889
- ### `showDragDropPanel` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
890
-
891
- <u>Type:</u> `boolean`.
892
-
893
- <u>Default:</u> `false`
894
-
895
- Changes the design for the addFiles panel in uploads.
896
-
897
- ### `showSort` ![asset-picker-supported] ![asset-manager-supported]
898
-
899
- <u>Type:</u> `boolean`.
900
-
901
- <u>Default:</u> `true`
902
-
903
- shows/hides sort button in Explorer.
904
-
905
- ### `isDownloadUsageRightsEnabled` ![asset-picker-supported] ![asset-manager-supported]
906
-
907
- <u>Type:</u> `boolean`.
908
-
909
- <u>Default:</u> `false`
910
-
911
- Enables/disables the download of usage rights file with assets.
912
-
913
- ### `useLoginMode` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
914
-
915
- <u>Type:</u> `boolean`.
916
-
917
- <u>Default:</u> `false`
918
-
919
- Enables/disables the login mode which gives the user the possibility to login by his credentials (email & password) through a form shown to the user while using the widget, respecting the provided `container` in the core class of the widget.
920
-
921
- > Note: Don't provide security template key nor sass key if you need to use enable this feature by providing its value to `true`.
922
-
923
- ### `prefilledLoginModeEmail` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
924
-
925
- <u>Type:</u> `string`.
926
-
927
- <u>Default:</u> `null`
928
-
929
- The property used to add a default email address in the email address field of the login mode form, if not provided the email address will be empty. In both cases, the user will be able to change/add his email address and this property is used by having [`useLoginMode`](#useloginmode) enabled.
930
-
931
- ### `hideAddingComment` ![asset-manager-supported]
932
-
933
- <u>Type:</u> `boolean`.
934
-
935
- <u>Default:</u> `false`
936
-
937
- Removes the add comment textarea from the comments tab.
938
-
939
- ### `findAssetLocationEnabled` ![asset-manager-supported]
940
-
941
- <u>Type:</u> `boolean`.
942
-
943
- <u>Default:</u> `true`
944
-
945
- Providing `false`, will hide `Open asset location` option in the context menu and file window.
946
-
947
- ### `restrictedSearchContext` ![asset-picker-supported] ![asset-manager-supported]
948
-
949
- <u>Type:</u> `boolean`.
950
-
951
- <u>Default:</u> `false`
952
-
953
- Providing `true`, will disable the possibility of selecting other search contexts and always force the user to use the current opened view's context.
954
-
955
- ### `facetedSearchEnabled` ![asset-picker-supported] ![asset-manager-supported]
956
-
957
- <u>Type:</u> `boolean`.
958
-
959
- <u>Default:</u> `false`
960
-
961
- Faceted search allows users to filter files using metadata filters. When this feature is enabled:
962
-
963
- - The filters bar will be hidden.
964
- - Only metadata filters with select, select-one, and boolean fields will be displayed.
965
-
966
- _Note_: Faceted search is only active in the assets view.
967
-
968
- ### `facetedSearchSidebarExpanded` ![asset-picker-supported] ![asset-manager-supported]
969
-
970
- <u>Type:</u> `boolean`.
971
-
972
- <u>Default:</u> `true`
973
-
974
- expands faceted search sidebar by default.
975
-
976
- _Note_: if `facetedSearchEnabled` is false, this property will be ignored.
977
-
978
- ### `activeFacetedSearchMetadataFields` ![asset-picker-supported] ![asset-manager-supported]
979
-
980
- <u>Type:</u> `array`.
981
-
982
- <u>Default:</u> `[]`
983
-
984
- Array of metadata fields keys to be shown on faceted search.
985
-
986
- _Note_: only exist filters will be shown.
987
-
988
- ### `filters` ![asset-picker-supported] ![asset-manager-supported]
989
-
990
- <u>Type:</u> `object`.
991
-
992
- <u>Default:</u> `{}`
993
-
994
- Filters to be applied to the views that accept filters, and will be locked if `disableFiltersAndSearch` or `forceFilters` is `true`, consists of the following:
995
-
996
- | Property | Type | Default | Description |
997
- | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------- |
998
- | **`date`** | `object` | `{ key: 'created', value: undefined, operator: ':' } ` | the date filter that combines both the option/type and range with the operator |
999
- | **`dateOption`** | `string` \| `integer` | `CREATED === 0` | the date option/type to filter with |
1000
- | **`dateRange`** | `integer`(1, 2, 3, 4, 5) \| `string` \| `string['yyyy-mm-dd', 'yyyy-mm-dd']` | `undefined` | The date range used in filtering with the date option |
1001
- | **`mimeTypes`** | `string[]` | `undefined` | File mimetypes (in the UI called types) |
1002
- | **`fileTypes`** | `string[]` | `undefined` | File types (in the UI called Format) |
1003
- | **`size`** | `integers[minMB, maxMB]` | `undefined` | the date option/type to filter with |
1004
- | **`tags`** | `string[] ` | `undefined` | The tags that should be contain in the files, the values consist of tag sids without # |
1005
- | **`imageOrientations`** | `string[]` | `undefined` | The image orientation values |
1006
- | **`imageResolutions`** | `string[]` | `undefined` | The image resolution values |
1007
- | **`imageFaces`** | `string[]` | `undefined` | The number of faces found in an image |
1008
- | **`imageMainColors`** | `string[]` | `undefined` | The main colors of the image which represents significant proportion in the image |
1009
- | **`imageDominantColors`** | `string[]`s | `undefined` | The dominant colors of the image |
1010
- | **`metadata`** | `{ key: string, operator: string\|undefined ,value: string\|string[], condition:{ {operator:string ,value: string\|string[]}\| undefined }` | `undefined` | The metadata objects used in filtering |
1011
- | **`labels`** | `string[]` | `undefined` | The label sids without # used in filtering files contain that value **(Only 1 label/value is supported currently) -- doesn't work in labels view** |
1012
- | **`folders`** | `string[]` | `undefined` | The path of the folders to be used while filtering **(Only 1 folder/value is supported currently) -- doesn't work in folders view** |
1013
- | **`licenseExpiry`** | `number[] | string[] | string`\|`string` | `undefined` | The asset license expiry date, possible to be a value of the constant values or custom/specific dates |
1014
-
1015
- > Note: you could apply the filter value directly as in the following example, or you could add another customer filter operator by providing `operator` property. Ex. { date: { key: 'created', value: ['2022-02-04'], operator: '>' } } // means return the files created after that date.
1016
-
1017
- > Available filter operators are one of the following: ['>', '<', '<=', '>=', '!=', '=', ':', '~', '~~', '~~~', '~^', '~=']
1018
-
1019
- ```js
1020
- {
1021
- date: {
1022
- key: 'created', // Either a string 'created'/'updated',
1023
- // `value` Either a string 'LAST_DAY'/'LAST_7_DAYS'/'LAST_30_DAYS'/'LAST_90_DAYS'/'LAST_180_DAYS' or integer 1/2/3/4/5 -- constants are preferred -- or for custom range provide an array [from, to] each date in the form yyyy-mm-dd .
1024
- value: ['2024-10-11'],
1025
- // `operator` one of ['>', '<', '<=', '>=', '!=', '=', ':', '~', '~~', '~~~', '~^', '~=']
1026
- operator: '>',
1027
- },
1028
-
1029
- // Not used if `date` is used.
1030
- // `dateOption`: Either a string 'CREATED'/'UPDATED' or integer 0/1.
1031
- dateOption: 0,
1032
-
1033
- // Not used if `date` is used.
1034
- // `dateRange` Either a string 'LAST_DAY'/'LAST_7_DAYS'/'LAST_30_DAYS'/'LAST_90_DAYS'/'LAST_180_DAYS' or integer 1/2/3/4/5 -- constants are preferred -- or for custom range provide an array [from, to] each date in the form yyyy-mm-dd .
1035
- dateRange: 'LAST_7_DAYS',
1036
-
1037
- // `mimeTypes`: An Array of strings, acceptable values any/all of the following ['IMAGE', 'VIDEO', 'AUDIO', 'DOCUMENT', 'ARCHIVE'] or ['image', 'video', 'audio', 'application', 'application/zip, application/x-zip-compressed, application/vnd.rar, application/x-rar-compressed'] -- constants are preferred --.
1038
- mimeTypes: ['IMAGE', 'VIDEO'],
1039
-
1040
- // `fileTypes`: An Array of strings, acceptable values are provided from BE filters API value property found in file type objects, ex. ['img|x-icon', 'img|jpeg'].
1041
- fileTypes: ['img|png', 'img|jpeg'],
1042
-
1043
- // `size`: An Array of integers (only 2), values provided are considered as MB. [minMB, maxMB].
1044
- size: [0, 10],
1045
-
1046
- // `tags`: An Array of strings, values are tag sids coming from BE but without (#).
1047
- tags: ['tge3c9d', 'tgdeaa9'],
1048
-
1049
- // `imageOrientations`: An Array of strings, any/all of the following values are valid ['PORTRAIT', 'PANORAMA', 'SQUARE', 'LANDSCAPE'] or ['portrait', 'panorama', 'square', 'landscape'] -- constants are preferred --.
1050
- imageOrientations: ['PORTRAIT', 'SQUARE'],
1051
-
1052
- // `imageResolutions`: An Array of strings, any/all of the following values are possible ['SMALL', 'MEDIUM', 'LARGE'] or ['small', 'medium', 'large'] -- constants are preferred --.
1053
- imageResolutions: ['MEDIUM', 'LARGE'],
1054
-
1055
- // `imageFaces`: An Array of strings, any/all of the following values are possible ['NO_FACES', 'ONE_FACE', 'TWO_FACES', 'ANY'] or ['0', '1', '2', '*'] -- constants(capitalized) are preferred -- (* => means group/multiple of faces).
1056
- imageFaces: ['1', '*'],
1057
-
1058
- // `imageMainColors`: An Array of strings, represents the color stringy value it must be any/all of the following only no other colors ['PURPLE', 'RED', 'ORANGE', 'PINK', 'GRASS_GREEN', 'YELLOW', 'AZURE', 'CHARTREUSE', 'TEAL'] or ['purple', 'red', 'orange', 'pink', 'grass_green', 'yellow', 'azure', 'chartreuse', 'teal'] -- constants(capitalized) are preferred --.
1059
- imageMainColors: ['TEAL', 'YELLOW'],
1060
-
1061
- // `imageDominantColors`: An Array of strings, represents the color stringy value it must be any/all of the following only no other colors ['PURPLE', 'RED', 'ORANGE', 'PINK', 'GRASS_GREEN', 'YELLOW', 'AZURE', 'CHARTREUSE', 'TEAL'] or ['purple', 'red', 'orange', 'pink', 'grass_green', 'yellow', 'azure', 'chartreuse', 'teal'] -- constants(capitalized) are preferred --.
1062
- imageDominantColors: ['pink', 'red'],
1063
-
1064
- // `metadata`: An Array of objects contains { key, condition, value, extraCondition, extraValue }, key and value are required for all metadata types, condition is for changing the operator used while assigning the metadata key to the value in the request, extraCondition is used when u have another condition shows up for the same metadata key/field ex. used 'CONTAINS_NOT' condition for multi select metadata field the extraCondition is 'NOT' only for now, the `value` either the api_key or the internal unique value, the conditions are ['IS', 'IS_NOT', 'CONTAINS', 'CONTAINS_NOT'], all conditions must be upper case, also for 'IS' condition we support empty and non empty options to filter all empty/non empty metadata
1065
- metadata: [
1066
- { key: 'cities', value: ['@itm_v1_08bbe7e5_4@', '@itm_v1_905066ed_9@'] },
1067
- { key: 'brand', value: 'adidas' },
1068
- { key: 'color', condition: 'IS', value: 'yellow' },
1069
- { key: 'file', condition: 'CONTAINS_NOT', value: 'png', extraCondition: 'NOT', extraValue: 'jpg' },
1070
- ],
1071
-
1072
- // `labels`: An Array of strings, currently accepts 1 label only and the value should be label sid **with** (#).
1073
- labels: ['#lbbp8dnyu'],
1074
-
1075
- // `folders`: An Array of strings, currently accepts 1 folder path only.
1076
- folders: ['/hello-world'],
1077
-
1078
- // possible values: 'empty' | 'non-empty' | 'specific' (Specific date) | 'range' (Range of 2 dates) | ['', -1] (Before today) | [0] (today) | [1, ''] (After today) | [0, 2] (Within 7 days) | [0, 3] (Within 30 days)
1079
- licenseExpiry: { value: [1, ''], operator: ':' }
1080
- }
1081
- ```
1082
-
1083
- ```js
1084
- // filter with operator syntax example
1085
- {
1086
- [property]: {
1087
- value: '...', // required, depends on the filter its type is provided
1088
- operator: ':' // optional, if needed otherwise the default one is used ':'
1089
- key: '...', // optional, if needed.
1090
- }
1091
- }
1092
- ```
1093
-
1094
- > Note: Constant values are better to be used as they are less prone for changes.
1095
-
1096
- > Note: To lock any of the above properties by using `disabledFiltersAndSearch` or `forceFilters` then you have to provide a value for the property to be locked.
1097
-
1098
- > Note: Operators are allowed to be provided for all the above filters but some of them are not supported on BE.
1099
-
1100
- ### `search` ![asset-picker-supported] ![asset-manager-supported]
1101
-
1102
- <u>Type:</u> `object`.
1103
-
1104
- <u>Default:</u> `{}`
1105
-
1106
- Search object to be considered in the views have searching enabled and will be locked if `disableFiltersAndSearch` is `true`, consists of the following:
1107
-
1108
- | Property | Type | Default | Description |
1109
- | ------------- | ------------ | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1110
- | **`query`** | `string` | `undefined` | The search query string shown in the search input and used in searching, if using with `disabledFiltersAndSearch` then the property must contain a stringy value to lock the search or at least empty text `''` |
1111
- | **`tags`** | `string[]` | `undefined` | The search tags found in the search input as advanced search prefxed with symbol (#) -- different from tags of filters -- |
1112
- | **`filters`** | `string[][]` | `undefined` | The advanced search filters found also in search input by prefixing with the symbol (@) the value consists of array of 2 strings array the first string represents the key, second string represents the value and whole array represents an item -- different from filters --. |
1113
-
1114
- ```js
1115
- {
1116
- // `query`: A string search query shown in the search input.
1117
- query: '',
1118
-
1119
- // `tags`: An array of strings **contains** (#). The search input's tags used as advanced search on writing inside the input starting with (#) symbol and spaced tags are surrounded with double quote "" .
1120
- tags: ['#Cairo', '"#Las Vegas"'],
1121
-
1122
- // `filters`: An Array of array consists of 2 strings, the 1st string refers to the filter's key and 2nd refers to the filter's value. The search input's filters used as advanced search on writing inside the input starting with (@) symbol.
1123
- filters: [["key", "value"], ["filename", "Test file"]]
1124
- }
1125
- ```
1126
-
1127
- > Note: To lock any of the above properties by using `disabledFiltersAndSearch` then you have to provide a value for the property to be locked at least empty value would be fine.
1128
-
1129
- ### `disableFiltersAndSearch` ![asset-picker-supported] ![asset-manager-supported]
1130
-
1131
- <u>Type:</u> `boolean`.
1132
-
1133
- <u>Default:</u> `false`
1134
-
1135
- If `true` then the only provided `filters` & `search` objects will be used as filters & search and disable both the filters & search input in UI dis-allowing the user to change/un-select any of them at all keeping the selected/provided filters not disabled but no changes possible for them.
1136
-
1137
- > Note: if search query is empty it won't be disabled if you need to disable it with no text provide an empty string `''`.
1138
-
1139
- > Note: Enabling this option will dismiss applying the filters & search from the url queries.
1140
-
1141
- ### `forceFilters` ![asset-picker-supported] ![asset-manager-supported]
1142
-
1143
- If `true` then the provided `filters` will always get applied with no possibility to remove from the UI, but the user still has the option to extend with more filters from the UI unless the provided filter accepts 1 value only.
1144
-
1145
- > Note: Enabling this option will dismiss applying the filters from the url queries.
1146
-
1147
- ### `forceMetadataInAdvancedMode` ![asset-picker-supported] ![asset-manager-supported]
1148
-
1149
- <u>Type:</u> `boolean`.
1150
-
1151
- <u>Default:</u> `false`
1152
-
1153
- If `true` it will open the metadata filter popup in advanced mode by default regardless of the user saved state. Otherwise it will fallback to the user's saved state if enabled, any filter with a `condition` property, or the filters are forced. If no case of the mentioned then it becomes in basic mode.
1154
-
1155
- ### `disableFileResolutionFallback` ![asset-picker-supported] ![asset-manager-supported]
1156
-
1157
- <u>Type:</u> `boolean`.
1158
-
1159
- <u>Default:</u> `false`
1160
-
1161
- If `true` it will disable fallback request to load resolution info if not found in file details in grid/list layout.
1162
-
1163
- ### `hideLeftSideBar` ![asset-picker-supported] ![asset-manager-supported]
1164
-
1165
- <u>Type:</u> `boolean`.
1166
-
1167
- <u>Default:</u> `false`
1168
-
1169
- Hide the folders tree sidebar and its toggle icon.
1170
-
1171
- ### `defaultFieldKeyOfBulkEditPanel`![uploader-supported] ![asset-manager-supported]
1172
-
1173
- <u>Type:</u> `string`.
1174
-
1175
- <u>Default:</u> `'tags'` fallbacks to `'title'`
1176
-
1177
- Assigns the default field of the bulk edit panel to be opened on showing the bulk edit panel as the focused/default field, it should be one of the general field keys (`tags`/`title`/`description`) or any field key -- lowered case -- of the shown file custom metadata fields (depends on the token).
1178
-
1179
- ### `enableAIDescription` ![asset-manager-supported]
1180
-
1181
- <u>Type:</u> `boolean`.
1182
-
1183
- <u>Default:</u> `false`
1184
-
1185
- Enables the generate description by AI in the description input of file window.
1186
-
1187
- ### `hideVariationsTab` ![asset-manager-supported]
1188
-
1189
- <u>Type:</u> `boolean`.
1190
-
1191
- <u>Default:</u> `false`
1192
-
1193
- If `true` force hides the variations tab in file window panel.
1194
-
1195
- ### `hideMetadataTab` ![asset-manager-supported]
1196
-
1197
- <u>Type:</u> `boolean`.
1198
-
1199
- <u>Default:</u> `false`
1200
-
1201
- If `true` force hides the metadata tab in file window panel.
1202
-
1203
- ### `hideFileSpecsMetadataFields` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
1204
-
1205
- <u>Type:</u> `boolean`.
1206
-
1207
- <u>Default:</u> `false`
1208
-
1209
- Hides the metadata specs fields for the file on opening in the file window or details/info sidebar for the file (such as, labels, colors, logo and brand...etc.).
1210
-
1211
- ### `variationsHideManualSubTab` ![asset-manager-supported]
1212
-
1213
- <u>Type:</u> `boolean`.
1214
-
1215
- <u>Default:</u> `false`
1216
-
1217
- If `true` force hides the manual sub-tab of variations tab in file window.
1218
-
1219
- ### `variationsShowAddPresetButton` ![asset-manager-supported]
1220
-
1221
- <u>Type:</u> `boolean`.
1222
-
1223
- <u>Default:</u> `false`
1224
-
1225
- If `true` shows the add preset button inside the automatic tab if the user allowed to add.
1226
-
1227
- ### `hideTopBarAddFolderButton` ![asset-manager-supported]
1228
-
1229
- <u>Type:</u> `boolean`.
1230
-
1231
- <u>Default:</u> `false`
1232
-
1233
- If `true` hides the add folder button on the topright.
1234
-
1235
- ## Events
1236
-
1237
- The explorer plugin emits different events that you could subscribe to or add your handler to be called with the provided arguments passed while emitting/firing the event, the events are listed below with examples show the parameters for handler:
1238
-
1239
- ### `objects-removed` ![asset-manager-supported]
1240
-
1241
- Emitted when objects (folders/labels/files) have been removed from the user's side.
1242
-
1243
- `params`:
1244
-
1245
- - `removedObjectsUuids`: An array of removed objects' uuids (for labels the sids will be the value).
1246
- - `removedObjectsType`: `folders`/`labels`/`files`/`items` (files + folders).
1247
-
1248
- example
1249
-
1250
- ```js
1251
- scaleflexWidget.on("objects-removed", (removedObjectsUuids = [], objectsType) => {
1252
- console.log(
1253
- "Objects with the following Uuids have been removed:",
1254
- removedObjectsUuids,
1255
- objectsType
1256
- );
1257
- });
1258
- ```
1259
-
1260
- ### `folders-moved` ![asset-manager-supported]
1261
-
1262
- Emitted when folder(s) are moved from path to another.
1263
-
1264
- `params`:
1265
-
1266
- - `movedFoldersUuids`: An array of folders uuids that are moved.
1267
- - `newPath`: A string of the new path which the folders moved to.
1268
-
1269
- example
1270
-
1271
- ```js
1272
- scaleflexWidget.on('objects-removed', (movedFoldersUuids = [], newPath) => {
1273
- console.log(`Following folders uuids ${movedFoldersUuids.join(,)} are moved to this new path (${newPath}).`)
1274
- })
1275
- ```
1276
-
1277
- <!-- Variables -->
1278
-
1279
- [npm-url]: https://www.npmjs.com/package/@scaleflex/widget-explorer
1280
- [license-url]: https://opensource.org/licenses/MIT
1281
- [sfx-url]: https://www.scaleflex.com/
1282
- [version-url]: https://www.npmjs.com/package/@scaleflex/widget-explorer
1283
- [codeSandbox-url]: https://codesandbox.io/p/sandbox/scalelfex-widget-v4-sandbox-dtp6l3?file=%2Fsrc%2Findex.js
1284
- [npm-image]: https://img.shields.io/npm/v/@telus/remark-config.svg?style=for-the-badge&logo=npm
1285
- [license-image]: https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge
1286
- [made-by-image]: https://img.shields.io/badge/%3C%2F%3E%20with%20%E2%99%A5%20by-the%20Scaleflex%20team-6986fa.svg?style=for-the-badge
1287
- [plugins-image]: https://img.shields.io/static/v1?label=Scaleflex&message=Plugins&color=yellow&style=for-the-badge
1288
- [filerobot-image]: https://img.shields.io/static/v1?label=Scaleflex&message=website&color=orange&style=for-the-badge
1289
- [filerobot-version]: https://img.shields.io/npm/v/@scaleflex/widget-explorer?label=Version&style=for-the-badge&logo=npm
1290
- [codeSandbox-image]: https://img.shields.io/badge/CodeSandbox-black?style=for-the-badge&logo=CodeSandbox
1291
- <!-- Supported modes variables -->
1292
- [uploader-supported]: https://img.shields.io/badge/Uploader-orange
1293
- [asset-picker-supported]: https://img.shields.io/badge/Asset%20Picker-green
1
+ # `@scaleflex/widget-explorer`
2
+
3
+ [![Plugins][plugins-image]](#plugins)
4
+ [![Website][filerobot-image]][sfx-url]
5
+ [![Version][filerobot-version]][version-url]
6
+ [![Scaleflex team][made-by-image]][sfx-url]
7
+ [![License][license-image]][license-url]
8
+ [![CodeSandbox][codeSandbox-image]][codeSandbox-url]
9
+
10
+ <div align='center'>
11
+ <img title="Scaleflex Widget logo" alt="Scaleflex Widget logo" src="https://assets.scaleflex.com/Corporate+Branding/%5B2025%5D+ALL+LOGOS+%2B+ICONS/SCALEFLEX/VXP+logo/Horizontal+White/VXP+logo+WHITE.png?vh=663932" width="140"/>
12
+ </div>
13
+
14
+ The file Explorer and media gallery plugin of the [Scaleflex Media Asset Widget](https://www.npmjs.com/package/@scaleflex/widget-core).
15
+
16
+ ## Usage
17
+
18
+ ### NPM
19
+
20
+ ```bash
21
+ npm install --save @scaleflex/widget-explorer
22
+ ```
23
+
24
+ ### YARN
25
+
26
+ ```bash
27
+ yarn add @scaleflex/widget-explorer
28
+ ```
29
+
30
+ then
31
+
32
+ ```js
33
+ import Explorer from '@scaleflex/widget-explorer'
34
+ ...
35
+ ...
36
+ ...
37
+ scaleflexWidget.use(Explorer, propertiesObject)
38
+ ```
39
+
40
+ ### CDN
41
+
42
+ If installed via a [CDN link](../@scaleflex/widget-core#installation), the plugin is inside the `Scaleflex` global object as `Scaleflex.Explorer`
43
+
44
+ ```js
45
+ const Explorer = window.ScaleflexWidget.Explorer
46
+ ...
47
+ ...
48
+ ...
49
+ scaleflexWidget.use(Explorer, propertiesObject)
50
+ ```
51
+
52
+ ### Plugin styles
53
+
54
+ ```js
55
+ import "@scaleflex/widget-core/dist/style.css";
56
+ import "@scaleflex/widget-explorer/dist/style.css";
57
+ ```
58
+
59
+ or via the minified versions
60
+
61
+ ```js
62
+ import "@scaleflex/widget-core/dist/style.min.css";
63
+ import "@scaleflex/widget-explorer/dist/style.min.css";
64
+ ```
65
+
66
+ > The plugin's css file should be imported after the [Core's css file](../@scaleflex/widget-core/#modules-styles) for having the styles shown correctly.
67
+
68
+ ## Explorer modes
69
+
70
+ ### Uploader mode (default mode)
71
+
72
+ The mode used for uploading files using your chosen/configured uploading provider to your token and chosen path.
73
+
74
+ #### how to?
75
+
76
+ Just initialize the widget normally and keep [`ExploreViewComponent`](#exploreviewcomponent) property in Explorer plugin with a null/empty value.
77
+
78
+ ```js
79
+ // ScaleflexWidget.Core initializations
80
+ scaleflexWidget.use(Explorer, {
81
+ // ...otherParams,
82
+ ExploreViewComponent: null
83
+ })
84
+ scaleflexWidget.use(XHRUpload, {
85
+ uploadToFolderPath: '/test'
86
+ })
87
+ ```
88
+
89
+ ### Browser/Light-DAM mode
90
+
91
+ The mode used for browsing files/folders using the Explorer's main view and do some light-weight/quick functionalities like reading & writing files metadata in addition to uploading files.
92
+
93
+ #### how to?
94
+
95
+ Initialize the plugin with providing the component `@scaleflex/widget-explorer/lib/components/ExploreView` to the [`ExploreViewComponent`](#exploreviewcomponent) property.
96
+
97
+ ```js
98
+ import ExploreView from '@scaleflex/widget-explorer/lib/components/ExploreView'
99
+ // ...scaleflexWidget and other plugins initializations
100
+
101
+ scaleflexWidget.use(Explorer, {
102
+ // ...otherParams,
103
+ ExploreViewComponent: ExploreView
104
+ })
105
+ ```
106
+
107
+ ### Assets picker mode
108
+
109
+ Enabling the ability to browse the files/folders and preview them with and their metadata. Select files from the current token and do your own custom functionality after selecting the files.
110
+
111
+ #### how to?
112
+
113
+ 1. Initialize the plugin and provide the component `@scaleflex/widget-explorer/lib/components/ExploreView` to the [`ExploreViewComponent`](#exploreviewcomponent) property.
114
+ 2. provide `useAssetsPicker` property with a `true` value.
115
+
116
+ ```js
117
+ import ExploreView from '@scaleflex/widget-explorer/lib/components/ExploreView'
118
+ // ...scaleflexWidget and other plugins initializations
119
+
120
+ scaleflexWidget.use(Explorer, {
121
+ // ...otherParams,
122
+ ExploreViewComponent: ExploreView,
123
+ useAssetsPicker: true,
124
+ hideDownloadButtonIcon: true
125
+ })
126
+ ```
127
+
128
+ > Note: please check the plugin's properties in-case you want to customize anything else related to any of the mentioned 3 modes above (some of the properties might work only for specific mode).
129
+
130
+ ## Properties
131
+
132
+ The Explorer supports multiple properties to customize the plugin according to your needs. Required attributes are marked with **_(Required)_**.
133
+
134
+
135
+ ### `locale` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
136
+
137
+ <u>Type:</u> `object`.
138
+
139
+ <u>Default:</u> locales from scaleflexWidget's backend then default locale file with all labels is under `lib/defaultLocale.js`.
140
+
141
+ You can override some labels by specifying a translation object here, such as:
142
+
143
+ ```js
144
+ {
145
+ strings: {
146
+ baseFolderTitle: "Root"; // overrides the default Home value to Root
147
+ }
148
+ }
149
+ ```
150
+
151
+ ### `config` ![asset-picker-supported] ![asset-manager-supported]
152
+
153
+ <u>Type:</u> `object`
154
+
155
+ <u>Default:</u>
156
+
157
+ ```js
158
+ {
159
+ config: {
160
+ foldersLimit: 200,
161
+ filesLimit: 50,
162
+ rootFolderPath: '/',
163
+ defaultSort: {
164
+ by: '',
165
+ order: ''
166
+ },
167
+ tagging: {...} // check tagging section
168
+ }
169
+ }
170
+ ```
171
+
172
+ The config objects contains the main configuration for the plugin to interact with your Scaleflex project:
173
+
174
+ #### `foldersLimit` ![asset-picker-supported] ![asset-manager-supported]
175
+
176
+ <u>Type:</u> `number`.
177
+
178
+ <u>Default:</u> `200`
179
+
180
+ Number of folders to be retrieved with folders initial request.
181
+
182
+ #### `maxCountOfSelectedFiles` ![asset-picker-supported] ![asset-manager-supported]
183
+
184
+ <u>Type:</u> `number`.
185
+
186
+ <u>Default:</u> `undefined`
187
+
188
+ Maximum number of files that can be selected.
189
+
190
+ #### `filesLimit` ![asset-picker-supported] ![asset-manager-supported]
191
+
192
+ <u>Type:</u> `number`.
193
+
194
+ <u>Default:</u> `50`
195
+
196
+ Number of files to be retrieved with files initial request.
197
+
198
+ #### `rootFolderPath` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
199
+
200
+ <u>Type:</u> `string`.
201
+
202
+ <u>Default:</u> `/`
203
+
204
+ Overrides the root folder path when there is no `list scope` linked with the [securityTemplateId](..@scaleflex/widget-core/README.md/#securitytemplateid) or at least 2 folders or more in the `list scope` otherwise it has no effect.
205
+
206
+ > Note: If the [securityTemplateId](..@scaleflex/widget-core/README.md/#securitytemplateid) has 2 folders at least, then the provided folder path must be one of these folders or one of their sub-folders.
207
+
208
+ #### `defaultSort` ![asset-picker-supported] ![asset-manager-supported]
209
+
210
+ <u>Type:</u> `object`.
211
+
212
+ <u>Default:</u> `{ by: 'name', order: 'asc' }`
213
+
214
+ Customize the default selected sort option for both files & folders shown in the main view (not applicable for folders tree or objects' trees) applied for all the files shown regardless of the opened view.
215
+
216
+ The options available sorting
217
+
218
+ | Property | Type | Default | Description |
219
+ | ----------- | -------- | ------- | --------------------------------------------------------------------------------------------------------- |
220
+ | **`by`** | `string` | `name` | Defines the default sort by param, should be one of ['name', 'created_at', 'modified_at', 'size', 'type'] |
221
+ | **`order`** | `string` | `asc` | Defines the default sort order param, should be one of ['asc', 'desc'] |
222
+
223
+ > Note: its value is considered only on plugin's install/mount.
224
+
225
+ #### `defaultSearchSort` ![asset-picker-supported] ![asset-manager-supported]
226
+
227
+ <u>Type:</u> `object`.
228
+
229
+ <u>Default:</u>
230
+
231
+ ```js
232
+ {
233
+ text: {
234
+ by: 'name',
235
+ order: 'asc'
236
+ }
237
+ }
238
+ ```
239
+
240
+ Customize the default selected sort option for search shown in the main view, applied for all the files shown regardless of the opened view.
241
+
242
+ The options available sorting
243
+
244
+ | Property | Type | Default | Description |
245
+ | ---------------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------- |
246
+ | **text.`by`** | `string` | `name` | Defines the default search sort by param, should be one of ['relevance', 'name', 'created_at', 'modified_at', 'size', 'type'] |
247
+ | **text.`order`** | `string` | `asc` | Defines the default search sort order param, should be one of ['asc', 'desc'] |
248
+
249
+ #### `tagging` ![asset-manager-supported]
250
+
251
+ <u>Type:</u> `object`.
252
+
253
+ <u>Default:</u>
254
+
255
+ ```js
256
+ {
257
+ tagging: {
258
+ enabled: false,
259
+ autoTagging: false,
260
+ suggestedTagsOnly: false,
261
+ language: 'en',
262
+ confidence: 60,
263
+ limit: 10,
264
+ provider: 'google',
265
+ suggestionList: []
266
+ }
267
+ }
268
+ ```
269
+
270
+ The options available for tagging
271
+
272
+ | Property | Type | Default | Description |
273
+ | ----------------------- | ---------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
274
+ | **`enabled`** | `boolean` | `false` | Enable/disable tags |
275
+ | **`autoTagging`** | `boolean` | `false` | Enable/disable auto-tagging |
276
+ | **`suggestedTagsOnly`** | `boolean` | `false` | Enable/disable suggested tags only. When it's TRUE, users can only select tags from a pre-defined list. Notice that when suggestedTagsOnly is TRUE, autoTagging will be disabled. |
277
+ | **`language`** | `string` | `en` | AutoTagging config that we add in POST process/autoTag request data.meta |
278
+ | **`confidence`** | `number` | `60` | AutoTagging config that we add in POST process/autoTag request data.meta |
279
+ | **`limit`** | `number` | `10` | AutoTagging config that we add in POST process/autoTag request data.meta |
280
+ | **`provider`** | `string` | `[]` | AutoTagging config that we add in POST process/autoTag request data.meta |
281
+ | **`suggestionList`** | `object[]` | `1 ` | Tags suggestions list that is shown under tags field. By default we show primary tags, but when user start typing we filter full suggestionList. Object format: |
282
+
283
+ ```js
284
+ {
285
+ sid: string, // Short id like: '#tg1885f'
286
+ names: {
287
+ en: string,
288
+ fr: string
289
+ },
290
+ primary: boolean // If true, tag will be shown in Suggestions list below tags field
291
+ }
292
+ ```
293
+
294
+ ### `inline` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
295
+
296
+ <u>Type:</u> `boolean`.
297
+
298
+ <u>Default:</u> `false`
299
+
300
+ If set to `true`, the plugin will be displayed as inline element in the element referred by the [target](#target) property. Otherwise, it will pop up in a modal upon [trigger](#trigger), see below.
301
+
302
+ ### `trigger` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
303
+
304
+ <u>Type:</u> `string`.
305
+
306
+ <u>Default:</u> `null`
307
+
308
+ The selector used for triggering the display of the plugin modal, if passed to `querySelectorAll` function. Available options:
309
+
310
+ - HTML tag, eg. `body`
311
+ - CSS selector, eg. `#scaleflex-widget-trigger-button` or `.scaleflex-widget-trigger-button`
312
+
313
+ Multiple triggers are supported as click events.
314
+
315
+ > **_Required if_** [inline](#inline): false
316
+
317
+ ### `target` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
318
+
319
+ <u>Type:</u> `string`.
320
+
321
+ <u>Default:</u> ``
322
+
323
+ The selector used for displaying the plugin, if passed to `querySelector` function. Options:
324
+
325
+ - HTML tag, eg. `body`
326
+ - CSS selector, eg. `#scaleflex-widget-container` or `.scaleflex-widget-container`
327
+
328
+ > **_Required if_** [inline](#inline): false
329
+
330
+ ### `width` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
331
+
332
+ <u>Type:</u> `number`| `string`.
333
+
334
+ <u>Default:</u> `768`
335
+
336
+ Width of the plugin as a number if specified in pixels or a percentage, eg. `'50%'`
337
+
338
+ ### `height` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
339
+
340
+ <u>Type:</u> `number`| `string`.
341
+
342
+ <u>Default:</u> `538`
343
+
344
+ Height of the plugin as a number if specified in `px` or a percentage eg. `'35%'`
345
+
346
+ ### `thumbnailWidth` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
347
+
348
+ <u>Type:</u> `number`.
349
+
350
+ <u>Default:</u> `280`
351
+
352
+ Pixel width of the asset thumbnails displayed in the uploads panel. Apect ratio of images is kept in case of image assets.
353
+
354
+ ### `thumbnailHeight` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
355
+
356
+ <u>Type:</u> `number`.
357
+
358
+ <u>Default:</u> `170`
359
+
360
+ Pixel height of the asset thumbnails displayed in the uploads panel. Aspect ratio of images is kept in case of image assets.
361
+
362
+ ### `ExploreViewComponent` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
363
+
364
+ <u>Type:</u> `ReactComponent`.
365
+
366
+ <u>Default:</u> `null`
367
+
368
+ <u>Expected value:</u> `@scaleflex/widget-explorer/lib/components/ExploreView`
369
+
370
+ The view component that is responsible about showing the objects (folders/files...etc.) with the possibility to browse them and enable other functionalities.
371
+
372
+ ### `mutedFilesUuids` ![asset-picker-supported] ![asset-manager-supported]
373
+
374
+ <u>Type:</u> `array`.
375
+
376
+ <u>Default:</u> `[]`
377
+
378
+ List of file UUIDs with the state "muted". These files cannot be selected or have any actions performed on them.
379
+
380
+ ### `views` ![asset-picker-supported] ![asset-manager-supported]
381
+
382
+ <u>Type:</u> `array`.
383
+
384
+ <u>Default:</u> `['ASSETS', 'FOLDERS', 'LABELS', 'COLLECTIONS']`
385
+
386
+ List of available views.
387
+
388
+ > **NOTE** some views can be hidden if you don't have permission provided in [securityTemplateId](..@scaleflex/widget-core/README.md/#securitytemplateid).
389
+
390
+ ### `view` ![asset-picker-supported] ![asset-manager-supported]
391
+
392
+ <u>Type:</u> `string`.
393
+
394
+ <u>Default:</u> `'FOLDERS'`
395
+
396
+ View which will be currently opened.
397
+
398
+ ### `viewItem` ![asset-picker-supported] ![asset-manager-supported]
399
+
400
+ <u>Type:</u> `string`.
401
+
402
+ <u>Default:</u> `null`
403
+
404
+ Open the provided view's item/object for ex. (folders view => folder path, labels view => label sid or uuid, collections view => collection uuid...etc.)
405
+
406
+ > Note: No auto redirect to the view, you have to provide the proper view from [`view prop`](#view).
407
+
408
+ ### `viewSubItem` ![asset-picker-supported] ![asset-manager-supported]
409
+
410
+ <u>Type:</u> `string`.
411
+
412
+ <u>Default:</u> `null`
413
+
414
+ A sub item that should be opened inside the provided [`view`](#view) & [`viewItem`](#viewitem), mostly used for opening a collection virtual folder that's found inside some collection.
415
+
416
+ > Note: No auto redirect to the view, you have to provide the proper view from [`view prop`](#view).
417
+
418
+ ### `layoutType` ![asset-picker-supported] ![asset-manager-supported]
419
+
420
+ <u>Type:</u> `boolean`.
421
+
422
+ <u>Default:</u> `grid`
423
+
424
+ Specifies the default layout in the view:
425
+
426
+ | Value | Description |
427
+ | ---------- | ------------------------------------------- |
428
+ | **`grid`** | shows folders/assets as cards in a grid |
429
+ | **`list`** | shows the folders/assets as rows in a table |
430
+
431
+ you can switch between layouts from the layout selector button in the right side in header bar.
432
+
433
+ ### `waitForThumbnailsBeforeUpload` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
434
+
435
+ <u>Type:</u> `boolean`.
436
+
437
+ <u>Default:</u> `false`
438
+
439
+ If set to `true`, delays the start of the upload process until the asset thumbnails are generated and displayed in the plugin.
440
+
441
+ ### `showBar` ![asset-picker-supported] ![asset-manager-supported]
442
+
443
+ <u>Type:</u> `boolean`.
444
+
445
+ <u>Default:</u> `true`
446
+
447
+ If set to `false`, hides the top bar with **Upload** button, searchBar, create folder button and view button.
448
+
449
+ ### `showImportFromDamButton` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
450
+
451
+ <u>Type:</u> `boolean`.
452
+
453
+ <u>Default:</u> `false`
454
+
455
+ If set to `true`, shows the **Import from DAM** button in the uploads panel to upload from DAM.
456
+
457
+ > Note: this property requires `ExploreViewComponent` to be provided to be able to browse the objects.
458
+
459
+ ### `disableUpload` ![asset-picker-supported] ![asset-manager-supported]
460
+
461
+ <u>Type:</u> `boolean`.
462
+
463
+ <u>Default:</u> `false`
464
+
465
+ If set to `true`, hides the **Upload** button at the top of the plugin.
466
+
467
+ ### `hideSearch` ![asset-picker-supported] ![asset-manager-supported]
468
+
469
+ <u>Type:</u> `boolean`.
470
+
471
+ <u>Default:</u> `false`
472
+
473
+ Hides **Search** field at the top of the plugin.
474
+
475
+ ### `note` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
476
+
477
+ <u>Type:</u> `string`.
478
+
479
+ <u>Default:</u> `null`
480
+
481
+ A custom note displayed in the upload screen for drag&drop.
482
+
483
+ ### `hint` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
484
+
485
+ <u>Type:</u> `string`.
486
+
487
+ <u>Default:</u> `null`
488
+
489
+ A custom hint displayed in the upload screen at the bottom.
490
+
491
+ ### `closeModalOnClickOutside` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
492
+
493
+ <u>Type:</u> `boolean`.
494
+
495
+ <u>Default:</u> `false`
496
+
497
+ Plugin modal will be closed when clicking outside of the modal.
498
+
499
+ > **_Only relevant if_** [inline](#inline): false
500
+
501
+ ### `preventModalOverlayClickOnUpload` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
502
+
503
+ <u>Type:</u> `boolean`.
504
+
505
+ <u>Default:</u> `false`
506
+
507
+ Plugin modal still opened when click outside of it, if there's selected files to be uploaded
508
+
509
+ > **_Only relevant if_** [closeModalOnClickOutside](#closeModalOnClickOutside): true
510
+
511
+ ### `closeAfterFinish` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
512
+
513
+ <u>Type:</u> `boolean`.
514
+
515
+ <u>Default:</u> `false`
516
+
517
+ Modal will close after upload is finished.
518
+
519
+ > **_Only relevant if_** [inline](#inline): false
520
+
521
+ ### `closeAfterUploadStart` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
522
+
523
+ <u>Type:</u> `boolean`.
524
+
525
+ <u>Default:</u> `false`
526
+
527
+ Modal will close after upload is started.
528
+
529
+ > **_Only relevant if_** [inline](#inline): false
530
+
531
+ ### `onClickUploadButton` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
532
+
533
+ <u>Type:</u> `function`.
534
+
535
+ <u>Default:</u> `() => {}`
536
+
537
+ A callback function that would be triggered when the user clicks on upload button that is shown in the uploads panel, if returned `true` then the default upload functionality won't be triggered.
538
+
539
+ ### `disableInformer` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
540
+
541
+ <u>Type:</u> `boolean`.
542
+
543
+ <u>Default:</u> `false`
544
+
545
+ Disables the [informer](../@scaleflex/widget-informer/#scaleflexwidget-informer) plugin used to show warnings and errors.
546
+
547
+ ### `disableThumbnailGenerator` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
548
+
549
+ <u>Type:</u> `boolean`.
550
+
551
+ <u>Default:</u> `false`
552
+
553
+ Disables the [thumbnail-generator](../@scaleflex/widget-thumbnail-generator/#scaleflexwidget-thumbnail-generator) plugin that generates image thumbnails.
554
+
555
+ ### `disablePageScrollWhenModalOpen` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
556
+
557
+ <u>Type:</u> `boolean`.
558
+
559
+ <u>Default:</u> `true`
560
+
561
+ If set to `true`, disables scrolling for the document while the plugin modal is open.
562
+
563
+ > **_Only relevant if_** [inline](#inline): false
564
+
565
+ ### `disableDownloadButton` ![asset-picker-supported] ![asset-manager-supported]
566
+
567
+ <u>Type:</u> `boolean`.
568
+
569
+ <u>Default:</u> `false`
570
+
571
+ Hides the download button shown in the action bar when selecting files.
572
+
573
+ ### `preventDownloadDefaultBehavior` ![asset-picker-supported] ![asset-manager-supported]
574
+
575
+ <u>Type:</u> `boolean`.
576
+
577
+ <u>Default:</u> `false`
578
+
579
+ Prevent default behavior of download/export.
580
+
581
+ ### `hideDownloadVariationsOption` ![asset-picker-supported] ![asset-manager-supported]
582
+
583
+ <u>Type:</u> `boolean`.
584
+
585
+ <u>Default:</u> `false`
586
+
587
+ Hide transformation in download options in context menu and action bar.
588
+
589
+ ### `hideDownloadButtonIcon` ![asset-picker-supported] ![asset-manager-supported]
590
+
591
+ <u>Type:</u> `boolean`.
592
+
593
+ <u>Default:</u> `false`
594
+
595
+ Hides the download/export button icon.
596
+
597
+ ### `hideHeaderBar` ![asset-picker-supported] ![asset-manager-supported]
598
+
599
+ <u>Type:</u> `boolean`.
600
+
601
+ <u>Default:</u> `false`
602
+
603
+ Hides the header bar, header bar contains breadcrumbs and other action buttons.
604
+
605
+ ### `hideExportCropPanel` ![asset-picker-supported] ![asset-manager-supported]
606
+
607
+ <u>Type:</u> `boolean`.
608
+
609
+ <u>Default:</u> `false`
610
+
611
+ The crop button in the export options modal will be hidden.
612
+
613
+ ### `forceDownload` ![asset-picker-supported] ![asset-manager-supported]
614
+
615
+ <u>Type:</u> `boolean`.
616
+
617
+ <u>Default:</u> `false`
618
+
619
+ Adds `download=1` param to the CDN download link
620
+
621
+ ### `imageEditorMode` ![asset-manager-supported]
622
+
623
+ <u>Type:</u> `string`.
624
+
625
+ <u>Default:</u> `'default'`
626
+
627
+ Possible values: `'default' | 'cloudimage' `
628
+
629
+ Set imageEditorMode for the image editor plugin.
630
+
631
+ ### `hideModalAfterExport` ![asset-picker-supported] ![asset-manager-supported]
632
+
633
+ <u>Type:</u> `boolean`.
634
+
635
+ <u>Default:</u> `false`
636
+
637
+ Hides the modal after finish download/export.
638
+
639
+ ### `closeAfterImageEdit` ![asset-manager-supported]
640
+
641
+ <u>Type:</u> `boolean`.
642
+
643
+ <u>Default:</u> `false`
644
+
645
+ Hides the modal after finish editing image.
646
+
647
+ ### `onRequestCloseModal` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
648
+
649
+ <u>Type:</u> `() => undefined`.
650
+
651
+ <u>Default:</u> `closeModal` function
652
+
653
+ Specified a custom function to be executed when trying to close the modal. Default closing modal behavior is overridden
654
+
655
+ > **_Only relevant if_** [inline](#inline): false
656
+
657
+ ### `animateOpenClose` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
658
+
659
+ <u>Type:</u> `boolean`.
660
+
661
+ <u>Default:</u> `true`
662
+
663
+ Disable the modal's opening and closing.
664
+
665
+ > **_Only relevant if_** [inline](#inline): false
666
+
667
+ ### `browserBackButtonCloseModal` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
668
+
669
+ <u>Type:</u> `boolean`.
670
+
671
+ <u>Default:</u> `false`
672
+
673
+ The browser **Back** button will close the modal, otherwise it will trigger the standard back browser behavior.
674
+
675
+ > **_Only relevant if_** [inline](#inline): false
676
+
677
+ ### `enableFoldersStatsApiRequest` ![asset-picker-supported] ![asset-manager-supported]
678
+
679
+ <u>Type:</u> `boolean`.
680
+
681
+ <u>Default:</u> `false`
682
+
683
+ When enabled it will send extra folders/stats API request with the folders request to get folders count.
684
+
685
+ ### `isUploadBarAddMoreButtonHidden` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
686
+
687
+ <u>Type:</u> `boolean`.
688
+
689
+ <u>Default:</u> `false`
690
+
691
+ The 'Add More' button in upload module is hidden preventing users to upload more item.
692
+
693
+ ### `showFoldersTree` ![asset-picker-supported] ![asset-manager-supported]
694
+
695
+ <u>Type:</u> `boolean`.
696
+
697
+ <u>Default:</u> `false`
698
+
699
+ Shows/hides on initial load the folder tree as a sidebar at the left of the plugin to navigate folders. The user can shows/hides the folder tree from the tree icon in the breadcrumbs.
700
+
701
+ > **_Only relevant if_** folders view is provided in [views](#views)
702
+
703
+ ### `showDetailsView` ![asset-picker-supported] ![asset-manager-supported]
704
+
705
+ <u>Type:</u> `boolean`.
706
+
707
+ <u>Default:</u> `false`
708
+
709
+ Shows/hides the asset details view as a sidebar at the right of the plugin to view various details about selected assets. The user can shows/hides the details view from the info icon in the right side of the breadcrumbs.
710
+
711
+ ### `showCollectionsTree`
712
+
713
+ <u>Type:</u> `boolean`.
714
+
715
+ <u>Default:</u> `false`
716
+
717
+ Shows/hides the collection tree as a sidebar at the left of the plugin to navigate collections. The user can shows/hides the collection tree from the tree icon in the breadcrumbs.
718
+
719
+ > **_Only relevant if_** collection view is provided in [views](#views)
720
+
721
+ ### `showLabelsTree`
722
+
723
+ <u>Type:</u> `boolean`.
724
+
725
+ <u>Default:</u> `false`
726
+
727
+ Shows/hides the label tree as a sidebar at the left of the plugin to navigate labels. The user can shows/hides the label tree from the tree icon in the breadcrumbs.
728
+
729
+ ### `hideDetailsViewButton` ![asset-picker-supported] ![asset-manager-supported]
730
+
731
+ <u>Type:</u> `boolean`.
732
+
733
+ <u>Default:</u> `false`
734
+
735
+ Hides the asset details view button from the info icon in the right side of the breadcrumbs.
736
+
737
+ ### `videoTranscoding` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
738
+
739
+ <u>Type:</u> `object`.
740
+
741
+ <u>Default:</u>
742
+
743
+ ```js
744
+ {
745
+ resolution: 'auto',
746
+ protocol: 'HLS'
747
+ }
748
+ ```
749
+
750
+ Video transcoding options for post-upload video transcoding:
751
+
752
+ | Property | Type | Default | Description |
753
+ | ---------------- | ------------------- | ------- | ---------------------------------------- |
754
+ | **`resolution`** | `string` _required_ | `auto` | target resolutions for video transcoding |
755
+ | **`protocol`** | `string` _required_ | `HLS` | which protocol to use while transcoding |
756
+
757
+ ### `cropPresets` ![asset-picker-supported] ![asset-manager-supported]
758
+
759
+ <u>Type:</u> `object`.
760
+
761
+ <u>Default:</u> `{}`
762
+
763
+ Defines additional crop types & presets besides the freehand one and their presets and its shape as follows
764
+
765
+ ```js
766
+ {
767
+ 'Social media': [
768
+ /**
769
+ * label: possible to be a string or string in form of i18n key provided through locale object
770
+ * value: value follows this format (width:height:autoResize) or one of the following stringy values (original/ellipse) which defines the width & height of the crop preset autoResize which is a boolean value if `true` then resizing inputs will be disabled and auto resize will be applied automatically otherwise they're enabled, ratio of crop will be determined from width / height.
771
+ */
772
+ { label: 'Facebook profile', value: '400:400:true' },
773
+ { label: 'linkedInCover', value: '1128:191:false' }
774
+ ],
775
+ custom: [
776
+ { label: 'logoSize', value: '320:100' }
777
+ ],
778
+ ellipse: {
779
+ label: 'ellipse', value: 'ellipse'
780
+ },
781
+ original: {
782
+ label: 'original', value: 'original'
783
+ }
784
+ }
785
+ ```
786
+
787
+ > NOTE: The object's keys will be used the label for crop type (it is possible to be label string or i18n key string that is provided through locale object)
788
+
789
+ ### `disableMultipleSelect` ![asset-picker-supported] ![asset-manager-supported]
790
+
791
+ <u>Type:</u> `boolean`.
792
+
793
+ <u>Default:</u> `false`
794
+
795
+ Multiple files/folders selections will be disabled and only 1 file/folder possible to be selected.
796
+
797
+ ### `dismissUrlPathQueryUpdate` ![asset-picker-supported] ![asset-manager-supported]
798
+
799
+ <u>Type:</u> `boolean`.
800
+
801
+ <u>Default:</u> `false`
802
+
803
+ The url query `fmaw_path` won't be added/updated to the current url.
804
+
805
+ ### `showScaleflexCopyright` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
806
+
807
+ <u>Type:</u> `boolean`.
808
+
809
+ <u>Default:</u> `false`
810
+
811
+ Hides Scaleflex copyright at the bottom of the plugin.
812
+
813
+ ### `useAssetsPicker` ![asset-picker-supported]
814
+
815
+ <u>Type:</u> `boolean`.
816
+
817
+ <u>Default:</u> `false`
818
+
819
+ If set to `true`, actions like deleting, editing, or downloading assets will not be allowed, explore and insert actions allowed.
820
+
821
+ ### `assetsPickerModelTitle` ![asset-picker-supported]
822
+
823
+ <u>Type:</u> `string`.
824
+
825
+ <u>Default:</u> `explorerTopSectionImportFileTitle`
826
+
827
+ changing it's value changes the asset picker's model title
828
+
829
+ ### `disableFolderSelection` ![asset-manager-supported]
830
+
831
+ <u>Type:</u> `boolean`.
832
+
833
+ <u>Default:</u> `false`
834
+
835
+ If set to `true`, disable the possiblity to select folder(s).
836
+
837
+ ### `hideFolderOptions` ![asset-manager-supported]
838
+
839
+ <u>Type:</u> `boolean`.
840
+
841
+ <u>Default:</u> `false`
842
+
843
+ If set to `true`, hide the folder item top options.
844
+
845
+ ### `hideDetailsSidebarButton` ![asset-picker-supported] ![asset-manager-supported]
846
+
847
+ <u>Type:</u> `boolean`.
848
+
849
+ <u>Default:</u> `false`
850
+
851
+ If set to `true`, hide toggle details sidebar button.
852
+
853
+ ### `hideActionBarSelectionButtons` ![asset-picker-supported] ![asset-manager-supported]
854
+
855
+ <u>Type:</u> `boolean`.
856
+
857
+ <u>Default:</u> `false`
858
+
859
+ If set to `true`, hide the selection buttons in the action bar.
860
+
861
+ ### `disableDnDActions` ![asset-picker-supported] ![asset-manager-supported]
862
+
863
+ <u>Type:</u> `boolean`.
864
+
865
+ <u>Default:</u> `false`
866
+
867
+ If set to `true`, disable the drag and drop actions to move assets/folders or upload
868
+
869
+ ### `noImgOperationsAndDownload` ![asset-picker-supported] ![asset-manager-supported]
870
+
871
+ <u>Type:</u> `boolean`.
872
+
873
+ <u>Default:</u> `false`
874
+
875
+ If set to `true`, hides some options in asset contextual menu:
876
+
877
+ - Download (context menu)
878
+ - Transformation (action bar)
879
+ - Edit image (context menu and action bar)
880
+
881
+ ### `queryParamPrefix` ![asset-picker-supported] ![asset-manager-supported]
882
+
883
+ <u>Type:</u> `string`.
884
+
885
+ <u>Default:</u> `fmaw_`
886
+
887
+ Override the query params
888
+
889
+ ### `showDragDropPanel` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
890
+
891
+ <u>Type:</u> `boolean`.
892
+
893
+ <u>Default:</u> `false`
894
+
895
+ Changes the design for the addFiles panel in uploads.
896
+
897
+ ### `showSort` ![asset-picker-supported] ![asset-manager-supported]
898
+
899
+ <u>Type:</u> `boolean`.
900
+
901
+ <u>Default:</u> `true`
902
+
903
+ shows/hides sort button in Explorer.
904
+
905
+ ### `isDownloadUsageRightsEnabled` ![asset-picker-supported] ![asset-manager-supported]
906
+
907
+ <u>Type:</u> `boolean`.
908
+
909
+ <u>Default:</u> `false`
910
+
911
+ Enables/disables the download of usage rights file with assets.
912
+
913
+ ### `useLoginMode` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
914
+
915
+ <u>Type:</u> `boolean`.
916
+
917
+ <u>Default:</u> `false`
918
+
919
+ Enables/disables the login mode which gives the user the possibility to login by his credentials (email & password) through a form shown to the user while using the widget, respecting the provided `container` in the core class of the widget.
920
+
921
+ > Note: Don't provide security template key nor sass key if you need to use enable this feature by providing its value to `true`.
922
+
923
+ ### `prefilledLoginModeEmail` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
924
+
925
+ <u>Type:</u> `string`.
926
+
927
+ <u>Default:</u> `null`
928
+
929
+ The property used to add a default email address in the email address field of the login mode form, if not provided the email address will be empty. In both cases, the user will be able to change/add his email address and this property is used by having [`useLoginMode`](#useloginmode) enabled.
930
+
931
+ ### `hideAddingComment` ![asset-manager-supported]
932
+
933
+ <u>Type:</u> `boolean`.
934
+
935
+ <u>Default:</u> `false`
936
+
937
+ Removes the add comment textarea from the comments tab.
938
+
939
+ ### `findAssetLocationEnabled` ![asset-manager-supported]
940
+
941
+ <u>Type:</u> `boolean`.
942
+
943
+ <u>Default:</u> `true`
944
+
945
+ Providing `false`, will hide `Open asset location` option in the context menu and file window.
946
+
947
+ ### `restrictedSearchContext` ![asset-picker-supported] ![asset-manager-supported]
948
+
949
+ <u>Type:</u> `boolean`.
950
+
951
+ <u>Default:</u> `false`
952
+
953
+ Providing `true`, will disable the possibility of selecting other search contexts and always force the user to use the current opened view's context.
954
+
955
+ ### `facetedSearchEnabled` ![asset-picker-supported] ![asset-manager-supported]
956
+
957
+ <u>Type:</u> `boolean`.
958
+
959
+ <u>Default:</u> `false`
960
+
961
+ Faceted search allows users to filter files using metadata filters. When this feature is enabled:
962
+
963
+ - The filters bar will be hidden.
964
+ - Only metadata filters with select, select-one, and boolean fields will be displayed.
965
+
966
+ _Note_: Faceted search is only active in the assets view.
967
+
968
+ ### `facetedSearchSidebarExpanded` ![asset-picker-supported] ![asset-manager-supported]
969
+
970
+ <u>Type:</u> `boolean`.
971
+
972
+ <u>Default:</u> `true`
973
+
974
+ expands faceted search sidebar by default.
975
+
976
+ _Note_: if `facetedSearchEnabled` is false, this property will be ignored.
977
+
978
+ ### `activeFacetedSearchMetadataFields` ![asset-picker-supported] ![asset-manager-supported]
979
+
980
+ <u>Type:</u> `array`.
981
+
982
+ <u>Default:</u> `[]`
983
+
984
+ Array of metadata fields keys to be shown on faceted search.
985
+
986
+ _Note_: only exist filters will be shown.
987
+
988
+ ### `filters` ![asset-picker-supported] ![asset-manager-supported]
989
+
990
+ <u>Type:</u> `object`.
991
+
992
+ <u>Default:</u> `{}`
993
+
994
+ Filters to be applied to the views that accept filters, and will be locked if `disableFiltersAndSearch` or `forceFilters` is `true`, consists of the following:
995
+
996
+ | Property | Type | Default | Description |
997
+ | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------- |
998
+ | **`date`** | `object` | `{ key: 'created', value: undefined, operator: ':' } ` | the date filter that combines both the option/type and range with the operator |
999
+ | **`dateOption`** | `string` \| `integer` | `CREATED === 0` | the date option/type to filter with |
1000
+ | **`dateRange`** | `integer`(1, 2, 3, 4, 5) \| `string` \| `string['yyyy-mm-dd', 'yyyy-mm-dd']` | `undefined` | The date range used in filtering with the date option |
1001
+ | **`mimeTypes`** | `string[]` | `undefined` | File mimetypes (in the UI called types) |
1002
+ | **`fileTypes`** | `string[]` | `undefined` | File types (in the UI called Format) |
1003
+ | **`size`** | `integers[minMB, maxMB]` | `undefined` | the date option/type to filter with |
1004
+ | **`tags`** | `string[] ` | `undefined` | The tags that should be contain in the files, the values consist of tag sids without # |
1005
+ | **`imageOrientations`** | `string[]` | `undefined` | The image orientation values |
1006
+ | **`imageResolutions`** | `string[]` | `undefined` | The image resolution values |
1007
+ | **`imageFaces`** | `string[]` | `undefined` | The number of faces found in an image |
1008
+ | **`imageMainColors`** | `string[]` | `undefined` | The main colors of the image which represents significant proportion in the image |
1009
+ | **`imageDominantColors`** | `string[]`s | `undefined` | The dominant colors of the image |
1010
+ | **`metadata`** | `{ key: string, operator: string\|undefined ,value: string\|string[], condition:{ {operator:string ,value: string\|string[]}\| undefined }` | `undefined` | The metadata objects used in filtering |
1011
+ | **`labels`** | `string[]` | `undefined` | The label sids without # used in filtering files contain that value **(Only 1 label/value is supported currently) -- doesn't work in labels view** |
1012
+ | **`folders`** | `string[]` | `undefined` | The path of the folders to be used while filtering **(Only 1 folder/value is supported currently) -- doesn't work in folders view** |
1013
+ | **`licenseExpiry`** | `number[] | string[] | string`\|`string` | `undefined` | The asset license expiry date, possible to be a value of the constant values or custom/specific dates |
1014
+
1015
+ > Note: you could apply the filter value directly as in the following example, or you could add another customer filter operator by providing `operator` property. Ex. { date: { key: 'created', value: ['2022-02-04'], operator: '>' } } // means return the files created after that date.
1016
+
1017
+ > Available filter operators are one of the following: ['>', '<', '<=', '>=', '!=', '=', ':', '~', '~~', '~~~', '~^', '~=']
1018
+
1019
+ ```js
1020
+ {
1021
+ date: {
1022
+ key: 'created', // Either a string 'created'/'updated',
1023
+ // `value` Either a string 'LAST_DAY'/'LAST_7_DAYS'/'LAST_30_DAYS'/'LAST_90_DAYS'/'LAST_180_DAYS' or integer 1/2/3/4/5 -- constants are preferred -- or for custom range provide an array [from, to] each date in the form yyyy-mm-dd .
1024
+ value: ['2024-10-11'],
1025
+ // `operator` one of ['>', '<', '<=', '>=', '!=', '=', ':', '~', '~~', '~~~', '~^', '~=']
1026
+ operator: '>',
1027
+ },
1028
+
1029
+ // Not used if `date` is used.
1030
+ // `dateOption`: Either a string 'CREATED'/'UPDATED' or integer 0/1.
1031
+ dateOption: 0,
1032
+
1033
+ // Not used if `date` is used.
1034
+ // `dateRange` Either a string 'LAST_DAY'/'LAST_7_DAYS'/'LAST_30_DAYS'/'LAST_90_DAYS'/'LAST_180_DAYS' or integer 1/2/3/4/5 -- constants are preferred -- or for custom range provide an array [from, to] each date in the form yyyy-mm-dd .
1035
+ dateRange: 'LAST_7_DAYS',
1036
+
1037
+ // `mimeTypes`: An Array of strings, acceptable values any/all of the following ['IMAGE', 'VIDEO', 'AUDIO', 'DOCUMENT', 'ARCHIVE'] or ['image', 'video', 'audio', 'application', 'application/zip, application/x-zip-compressed, application/vnd.rar, application/x-rar-compressed'] -- constants are preferred --.
1038
+ mimeTypes: ['IMAGE', 'VIDEO'],
1039
+
1040
+ // `fileTypes`: An Array of strings, acceptable values are provided from BE filters API value property found in file type objects, ex. ['img|x-icon', 'img|jpeg'].
1041
+ fileTypes: ['img|png', 'img|jpeg'],
1042
+
1043
+ // `size`: An Array of integers (only 2), values provided are considered as MB. [minMB, maxMB].
1044
+ size: [0, 10],
1045
+
1046
+ // `tags`: An Array of strings, values are tag sids coming from BE but without (#).
1047
+ tags: ['tge3c9d', 'tgdeaa9'],
1048
+
1049
+ // `imageOrientations`: An Array of strings, any/all of the following values are valid ['PORTRAIT', 'PANORAMA', 'SQUARE', 'LANDSCAPE'] or ['portrait', 'panorama', 'square', 'landscape'] -- constants are preferred --.
1050
+ imageOrientations: ['PORTRAIT', 'SQUARE'],
1051
+
1052
+ // `imageResolutions`: An Array of strings, any/all of the following values are possible ['SMALL', 'MEDIUM', 'LARGE'] or ['small', 'medium', 'large'] -- constants are preferred --.
1053
+ imageResolutions: ['MEDIUM', 'LARGE'],
1054
+
1055
+ // `imageFaces`: An Array of strings, any/all of the following values are possible ['NO_FACES', 'ONE_FACE', 'TWO_FACES', 'ANY'] or ['0', '1', '2', '*'] -- constants(capitalized) are preferred -- (* => means group/multiple of faces).
1056
+ imageFaces: ['1', '*'],
1057
+
1058
+ // `imageMainColors`: An Array of strings, represents the color stringy value it must be any/all of the following only no other colors ['PURPLE', 'RED', 'ORANGE', 'PINK', 'GRASS_GREEN', 'YELLOW', 'AZURE', 'CHARTREUSE', 'TEAL'] or ['purple', 'red', 'orange', 'pink', 'grass_green', 'yellow', 'azure', 'chartreuse', 'teal'] -- constants(capitalized) are preferred --.
1059
+ imageMainColors: ['TEAL', 'YELLOW'],
1060
+
1061
+ // `imageDominantColors`: An Array of strings, represents the color stringy value it must be any/all of the following only no other colors ['PURPLE', 'RED', 'ORANGE', 'PINK', 'GRASS_GREEN', 'YELLOW', 'AZURE', 'CHARTREUSE', 'TEAL'] or ['purple', 'red', 'orange', 'pink', 'grass_green', 'yellow', 'azure', 'chartreuse', 'teal'] -- constants(capitalized) are preferred --.
1062
+ imageDominantColors: ['pink', 'red'],
1063
+
1064
+ // `metadata`: An Array of objects contains { key, condition, value, extraCondition, extraValue }, key and value are required for all metadata types, condition is for changing the operator used while assigning the metadata key to the value in the request, extraCondition is used when u have another condition shows up for the same metadata key/field ex. used 'CONTAINS_NOT' condition for multi select metadata field the extraCondition is 'NOT' only for now, the `value` either the api_key or the internal unique value, the conditions are ['IS', 'IS_NOT', 'CONTAINS', 'CONTAINS_NOT'], all conditions must be upper case, also for 'IS' condition we support empty and non empty options to filter all empty/non empty metadata
1065
+ metadata: [
1066
+ { key: 'cities', value: ['@itm_v1_08bbe7e5_4@', '@itm_v1_905066ed_9@'] },
1067
+ { key: 'brand', value: 'adidas' },
1068
+ { key: 'color', condition: 'IS', value: 'yellow' },
1069
+ { key: 'file', condition: 'CONTAINS_NOT', value: 'png', extraCondition: 'NOT', extraValue: 'jpg' },
1070
+ ],
1071
+
1072
+ // `labels`: An Array of strings, currently accepts 1 label only and the value should be label sid **with** (#).
1073
+ labels: ['#lbbp8dnyu'],
1074
+
1075
+ // `folders`: An Array of strings, currently accepts 1 folder path only.
1076
+ folders: ['/hello-world'],
1077
+
1078
+ // possible values: 'empty' | 'non-empty' | 'specific' (Specific date) | 'range' (Range of 2 dates) | ['', -1] (Before today) | [0] (today) | [1, ''] (After today) | [0, 2] (Within 7 days) | [0, 3] (Within 30 days)
1079
+ licenseExpiry: { value: [1, ''], operator: ':' }
1080
+ }
1081
+ ```
1082
+
1083
+ ```js
1084
+ // filter with operator syntax example
1085
+ {
1086
+ [property]: {
1087
+ value: '...', // required, depends on the filter its type is provided
1088
+ operator: ':' // optional, if needed otherwise the default one is used ':'
1089
+ key: '...', // optional, if needed.
1090
+ }
1091
+ }
1092
+ ```
1093
+
1094
+ > Note: Constant values are better to be used as they are less prone for changes.
1095
+
1096
+ > Note: To lock any of the above properties by using `disabledFiltersAndSearch` or `forceFilters` then you have to provide a value for the property to be locked.
1097
+
1098
+ > Note: Operators are allowed to be provided for all the above filters but some of them are not supported on BE.
1099
+
1100
+ ### `search` ![asset-picker-supported] ![asset-manager-supported]
1101
+
1102
+ <u>Type:</u> `object`.
1103
+
1104
+ <u>Default:</u> `{}`
1105
+
1106
+ Search object to be considered in the views have searching enabled and will be locked if `disableFiltersAndSearch` is `true`, consists of the following:
1107
+
1108
+ | Property | Type | Default | Description |
1109
+ | ------------- | ------------ | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1110
+ | **`query`** | `string` | `undefined` | The search query string shown in the search input and used in searching, if using with `disabledFiltersAndSearch` then the property must contain a stringy value to lock the search or at least empty text `''` |
1111
+ | **`tags`** | `string[]` | `undefined` | The search tags found in the search input as advanced search prefxed with symbol (#) -- different from tags of filters -- |
1112
+ | **`filters`** | `string[][]` | `undefined` | The advanced search filters found also in search input by prefixing with the symbol (@) the value consists of array of 2 strings array the first string represents the key, second string represents the value and whole array represents an item -- different from filters --. |
1113
+
1114
+ ```js
1115
+ {
1116
+ // `query`: A string search query shown in the search input.
1117
+ query: '',
1118
+
1119
+ // `tags`: An array of strings **contains** (#). The search input's tags used as advanced search on writing inside the input starting with (#) symbol and spaced tags are surrounded with double quote "" .
1120
+ tags: ['#Cairo', '"#Las Vegas"'],
1121
+
1122
+ // `filters`: An Array of array consists of 2 strings, the 1st string refers to the filter's key and 2nd refers to the filter's value. The search input's filters used as advanced search on writing inside the input starting with (@) symbol.
1123
+ filters: [["key", "value"], ["filename", "Test file"]]
1124
+ }
1125
+ ```
1126
+
1127
+ > Note: To lock any of the above properties by using `disabledFiltersAndSearch` then you have to provide a value for the property to be locked at least empty value would be fine.
1128
+
1129
+ ### `disableFiltersAndSearch` ![asset-picker-supported] ![asset-manager-supported]
1130
+
1131
+ <u>Type:</u> `boolean`.
1132
+
1133
+ <u>Default:</u> `false`
1134
+
1135
+ If `true` then the only provided `filters` & `search` objects will be used as filters & search and disable both the filters & search input in UI dis-allowing the user to change/un-select any of them at all keeping the selected/provided filters not disabled but no changes possible for them.
1136
+
1137
+ > Note: if search query is empty it won't be disabled if you need to disable it with no text provide an empty string `''`.
1138
+
1139
+ > Note: Enabling this option will dismiss applying the filters & search from the url queries.
1140
+
1141
+ ### `forceFilters` ![asset-picker-supported] ![asset-manager-supported]
1142
+
1143
+ If `true` then the provided `filters` will always get applied with no possibility to remove from the UI, but the user still has the option to extend with more filters from the UI unless the provided filter accepts 1 value only.
1144
+
1145
+ > Note: Enabling this option will dismiss applying the filters from the url queries.
1146
+
1147
+ ### `forceMetadataInAdvancedMode` ![asset-picker-supported] ![asset-manager-supported]
1148
+
1149
+ <u>Type:</u> `boolean`.
1150
+
1151
+ <u>Default:</u> `false`
1152
+
1153
+ If `true` it will open the metadata filter popup in advanced mode by default regardless of the user saved state. Otherwise it will fallback to the user's saved state if enabled, any filter with a `condition` property, or the filters are forced. If no case of the mentioned then it becomes in basic mode.
1154
+
1155
+ ### `disableFileResolutionFallback` ![asset-picker-supported] ![asset-manager-supported]
1156
+
1157
+ <u>Type:</u> `boolean`.
1158
+
1159
+ <u>Default:</u> `false`
1160
+
1161
+ If `true` it will disable fallback request to load resolution info if not found in file details in grid/list layout.
1162
+
1163
+ ### `hideLeftSideBar` ![asset-picker-supported] ![asset-manager-supported]
1164
+
1165
+ <u>Type:</u> `boolean`.
1166
+
1167
+ <u>Default:</u> `false`
1168
+
1169
+ Hide the folders tree sidebar and its toggle icon.
1170
+
1171
+ ### `defaultFieldKeyOfBulkEditPanel`![uploader-supported] ![asset-manager-supported]
1172
+
1173
+ <u>Type:</u> `string`.
1174
+
1175
+ <u>Default:</u> `'tags'` fallbacks to `'title'`
1176
+
1177
+ Assigns the default field of the bulk edit panel to be opened on showing the bulk edit panel as the focused/default field, it should be one of the general field keys (`tags`/`title`/`description`) or any field key -- lowered case -- of the shown file custom metadata fields (depends on the token).
1178
+
1179
+ ### `enableAIDescription` ![asset-manager-supported]
1180
+
1181
+ <u>Type:</u> `boolean`.
1182
+
1183
+ <u>Default:</u> `false`
1184
+
1185
+ Enables the generate description by AI in the description input of file window.
1186
+
1187
+ ### `hideVariationsTab` ![asset-manager-supported]
1188
+
1189
+ <u>Type:</u> `boolean`.
1190
+
1191
+ <u>Default:</u> `false`
1192
+
1193
+ If `true` force hides the variations tab in file window panel.
1194
+
1195
+ ### `hideMetadataTab` ![asset-manager-supported]
1196
+
1197
+ <u>Type:</u> `boolean`.
1198
+
1199
+ <u>Default:</u> `false`
1200
+
1201
+ If `true` force hides the metadata tab in file window panel.
1202
+
1203
+ ### `hideFileSpecsMetadataFields` ![uploader-supported] ![asset-picker-supported] ![asset-manager-supported]
1204
+
1205
+ <u>Type:</u> `boolean`.
1206
+
1207
+ <u>Default:</u> `false`
1208
+
1209
+ Hides the metadata specs fields for the file on opening in the file window or details/info sidebar for the file (such as, labels, colors, logo and brand...etc.).
1210
+
1211
+ ### `variationsHideManualSubTab` ![asset-manager-supported]
1212
+
1213
+ <u>Type:</u> `boolean`.
1214
+
1215
+ <u>Default:</u> `false`
1216
+
1217
+ If `true` force hides the manual sub-tab of variations tab in file window.
1218
+
1219
+ ### `variationsShowAddPresetButton` ![asset-manager-supported]
1220
+
1221
+ <u>Type:</u> `boolean`.
1222
+
1223
+ <u>Default:</u> `false`
1224
+
1225
+ If `true` shows the add preset button inside the automatic tab if the user allowed to add.
1226
+
1227
+ ### `hideTopBarAddFolderButton` ![asset-manager-supported]
1228
+
1229
+ <u>Type:</u> `boolean`.
1230
+
1231
+ <u>Default:</u> `false`
1232
+
1233
+ If `true` hides the add folder button on the topright.
1234
+
1235
+ ## Events
1236
+
1237
+ The explorer plugin emits different events that you could subscribe to or add your handler to be called with the provided arguments passed while emitting/firing the event, the events are listed below with examples show the parameters for handler:
1238
+
1239
+ ### `objects-removed` ![asset-manager-supported]
1240
+
1241
+ Emitted when objects (folders/labels/files) have been removed from the user's side.
1242
+
1243
+ `params`:
1244
+
1245
+ - `removedObjectsUuids`: An array of removed objects' uuids (for labels the sids will be the value).
1246
+ - `removedObjectsType`: `folders`/`labels`/`files`/`items` (files + folders).
1247
+
1248
+ example
1249
+
1250
+ ```js
1251
+ scaleflexWidget.on("objects-removed", (removedObjectsUuids = [], objectsType) => {
1252
+ console.log(
1253
+ "Objects with the following Uuids have been removed:",
1254
+ removedObjectsUuids,
1255
+ objectsType
1256
+ );
1257
+ });
1258
+ ```
1259
+
1260
+ ### `folders-moved` ![asset-manager-supported]
1261
+
1262
+ Emitted when folder(s) are moved from path to another.
1263
+
1264
+ `params`:
1265
+
1266
+ - `movedFoldersUuids`: An array of folders uuids that are moved.
1267
+ - `newPath`: A string of the new path which the folders moved to.
1268
+
1269
+ example
1270
+
1271
+ ```js
1272
+ scaleflexWidget.on('objects-removed', (movedFoldersUuids = [], newPath) => {
1273
+ console.log(`Following folders uuids ${movedFoldersUuids.join(,)} are moved to this new path (${newPath}).`)
1274
+ })
1275
+ ```
1276
+
1277
+ <!-- Variables -->
1278
+
1279
+ [npm-url]: https://www.npmjs.com/package/@scaleflex/widget-explorer
1280
+ [license-url]: https://opensource.org/licenses/MIT
1281
+ [sfx-url]: https://www.scaleflex.com/
1282
+ [version-url]: https://www.npmjs.com/package/@scaleflex/widget-explorer
1283
+ [codeSandbox-url]: https://codesandbox.io/p/sandbox/scalelfex-widget-v4-sandbox-dtp6l3?file=%2Fsrc%2Findex.js
1284
+ [npm-image]: https://img.shields.io/npm/v/@telus/remark-config.svg?style=for-the-badge&logo=npm
1285
+ [license-image]: https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge
1286
+ [made-by-image]: https://img.shields.io/badge/%3C%2F%3E%20with%20%E2%99%A5%20by-the%20Scaleflex%20team-6986fa.svg?style=for-the-badge
1287
+ [plugins-image]: https://img.shields.io/static/v1?label=Scaleflex&message=Plugins&color=yellow&style=for-the-badge
1288
+ [filerobot-image]: https://img.shields.io/static/v1?label=Scaleflex&message=website&color=orange&style=for-the-badge
1289
+ [filerobot-version]: https://img.shields.io/npm/v/@scaleflex/widget-explorer?label=Version&style=for-the-badge&logo=npm
1290
+ [codeSandbox-image]: https://img.shields.io/badge/CodeSandbox-black?style=for-the-badge&logo=CodeSandbox
1291
+ <!-- Supported modes variables -->
1292
+ [uploader-supported]: https://img.shields.io/badge/Uploader-orange
1293
+ [asset-picker-supported]: https://img.shields.io/badge/Asset%20Picker-green
1294
1294
  [asset-manager-supported]: https://img.shields.io/badge/Asset%20Manager-blue