@scaleflex/widget-explorer 4.1.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/README.md +7 -0
- package/package.json +8 -8
- package/dist/style.css +0 -2197
- package/dist/style.min.css +0 -1
- package/lib/Explorer.styled.js +0 -48
- package/lib/components/ActionBar/ActionBar.styled.js +0 -103
- package/lib/components/ActionBar/DownloadWithExportButton.js +0 -203
- package/lib/components/ActionBar/SelectionMenu.js +0 -111
- package/lib/components/ActionBar/index.js +0 -105
- package/lib/components/AddFilesPanel/AddFiles.js +0 -183
- package/lib/components/AddFilesPanel/AddFiles.styled.js +0 -137
- package/lib/components/AddFilesPanel/index.js +0 -59
- package/lib/components/AiSwitcher/AiSwitcher.constants.js +0 -1
- package/lib/components/AiSwitcher/AiSwitcher.styled.js +0 -24
- package/lib/components/AiSwitcher/index.js +0 -81
- package/lib/components/AssetsList/AssetsList.styled.js +0 -217
- package/lib/components/AssetsList/GridView/FilesAccordion.js +0 -76
- package/lib/components/AssetsList/GridView/FilesSection/FileCell.js +0 -260
- package/lib/components/AssetsList/GridView/FilesSection/FileOverlayOptions.js +0 -140
- package/lib/components/AssetsList/GridView/FilesSection/FilesSection.styled.js +0 -15
- package/lib/components/AssetsList/GridView/FilesSection/index.js +0 -31
- package/lib/components/AssetsList/GridView/FilesSkeleton.js +0 -47
- package/lib/components/AssetsList/GridView/FoldersSection/FolderCell.js +0 -239
- package/lib/components/AssetsList/GridView/FoldersSection/FolderPreviewGrid.js +0 -106
- package/lib/components/AssetsList/GridView/FoldersSection/FolderTopOptions.js +0 -70
- package/lib/components/AssetsList/GridView/FoldersSection/index.js +0 -23
- package/lib/components/AssetsList/GridView/FoldersSkeleton.js +0 -77
- package/lib/components/AssetsList/GridView/GridView.styled.js +0 -11
- package/lib/components/AssetsList/GridView/SearchGridView/SearchGridView.styled.js +0 -15
- package/lib/components/AssetsList/GridView/SearchGridView/SearchGridViewSkeleton.js +0 -30
- package/lib/components/AssetsList/GridView/SearchGridView/index.js +0 -97
- package/lib/components/AssetsList/GridView/index.js +0 -196
- package/lib/components/AssetsList/ListView/AssetsSection/AssetsSectionTableHeader.js +0 -152
- package/lib/components/AssetsList/ListView/AssetsSection/AssetsSectionTableRow.js +0 -333
- package/lib/components/AssetsList/ListView/AssetsSection/index.js +0 -99
- package/lib/components/AssetsList/ListView/ColumnsMenu.js +0 -89
- package/lib/components/AssetsList/ListView/FilesAccordion.js +0 -74
- package/lib/components/AssetsList/ListView/FilesSkeleton.js +0 -68
- package/lib/components/AssetsList/ListView/FoldersSection/FoldersSectionTableHeader.js +0 -98
- package/lib/components/AssetsList/ListView/FoldersSection/FoldersSectionTableRow.js +0 -156
- package/lib/components/AssetsList/ListView/FoldersSection/index.js +0 -54
- package/lib/components/AssetsList/ListView/FoldersSkeleton.js +0 -67
- package/lib/components/AssetsList/ListView/ListView.styled.js +0 -181
- package/lib/components/AssetsList/ListView/ListView.utils.js +0 -30
- package/lib/components/AssetsList/ListView/SearchListView/index.js +0 -109
- package/lib/components/AssetsList/ListView/index.js +0 -203
- package/lib/components/AssetsList/ScrollToTop.js +0 -70
- package/lib/components/AssetsList/SearchView.hook.js +0 -241
- package/lib/components/AssetsList/__SearchTestPannel.js +0 -238
- package/lib/components/AssetsList/__SearchTestPannel.mock.js +0 -1
- package/lib/components/AssetsList/index.js +0 -266
- package/lib/components/AssetsList/relevanceBadge.js +0 -15
- package/lib/components/AssetsView/AssetsView.styled.js +0 -25
- package/lib/components/AssetsView/AssetsView.thunks.js +0 -64
- package/lib/components/AssetsView/index.js +0 -142
- package/lib/components/AuthExplorerView.js +0 -79
- package/lib/components/Breadcrumbs/BreadCrumbViews/BreadCrumbsViews.styled.js +0 -30
- package/lib/components/Breadcrumbs/BreadCrumbViews/index.js +0 -32
- package/lib/components/Breadcrumbs/Breadcrumb.js +0 -52
- package/lib/components/Breadcrumbs/Breadcrumbs.styled.js +0 -81
- package/lib/components/Breadcrumbs/BreadcrumbsSkeleton.js +0 -12
- package/lib/components/Breadcrumbs/index.js +0 -187
- package/lib/components/BulkEditPanel/BulkEdit.js +0 -330
- package/lib/components/BulkEditPanel/BulkEditPanel.styled.js +0 -62
- package/lib/components/BulkEditPanel/BulkEditPanel.utils.js +0 -55
- package/lib/components/BulkEditPanel/components/AssetsList/AssetsList.constants.js +0 -29
- package/lib/components/BulkEditPanel/components/AssetsList/AssetsList.js +0 -148
- package/lib/components/BulkEditPanel/components/AssetsList/AssetsList.styled.js +0 -81
- package/lib/components/BulkEditPanel/components/AssetsList/Columns/Columns.styled.js +0 -99
- package/lib/components/BulkEditPanel/components/AssetsList/Columns/FileMetadataField.js +0 -263
- package/lib/components/BulkEditPanel/components/AssetsList/Columns/FileTagField.js +0 -228
- package/lib/components/BulkEditPanel/components/AssetsList/Columns/FileTextField.js +0 -107
- package/lib/components/BulkEditPanel/components/AssetsList/Columns/MetadataColumn.js +0 -142
- package/lib/components/BulkEditPanel/components/AssetsList/Columns/TableRow.js +0 -139
- package/lib/components/BulkEditPanel/components/AssetsList/Columns/TagsColumn.js +0 -58
- package/lib/components/BulkEditPanel/components/AssetsList/Columns/TagsField.js +0 -80
- package/lib/components/BulkEditPanel/components/AssetsList/Columns/TextColumn.js +0 -53
- package/lib/components/BulkEditPanel/components/AssetsList/Columns/columns.utils.js +0 -272
- package/lib/components/BulkEditPanel/components/AssetsList/Columns/getActiveColumn.js +0 -23
- package/lib/components/BulkEditPanel/components/AssetsList/FloatyPreview.js +0 -55
- package/lib/components/BulkEditPanel/components/AssetsList/FloatyPreview.styled.js +0 -21
- package/lib/components/BulkEditPanel/components/AssetsList/TableBody.js +0 -64
- package/lib/components/BulkEditPanel/components/AssetsList/TableHeader.js +0 -67
- package/lib/components/BulkEditPanel/components/BulkEditFooter.js +0 -33
- package/lib/components/BulkEditPanel/components/ConfirmationModal/ConfirmationModal.js +0 -47
- package/lib/components/BulkEditPanel/components/ConfirmationModal/ConfirmationModal.styled.js +0 -25
- package/lib/components/BulkEditPanel/components/MainContent/MainContent.js +0 -110
- package/lib/components/BulkEditPanel/components/MainContent/MainContent.styled.js +0 -12
- package/lib/components/BulkEditPanel/components/MainContent/index.js +0 -2
- package/lib/components/BulkEditPanel/components/Sidebar/Sidebar.styled.js +0 -53
- package/lib/components/BulkEditPanel/components/Sidebar/Sidebar.utils.js +0 -28
- package/lib/components/BulkEditPanel/components/Sidebar/index.js +0 -158
- package/lib/components/BulkEditPanel/components/Tabs/Metadata/Metadata.js +0 -246
- package/lib/components/BulkEditPanel/components/Tabs/Metadata/Metadata.styled.js +0 -17
- package/lib/components/BulkEditPanel/components/Tabs/Tags/Tags.js +0 -222
- package/lib/components/BulkEditPanel/components/Tabs/Tags/Tags.mixin.js +0 -20
- package/lib/components/BulkEditPanel/components/Tabs/Tags/Tags.styled.js +0 -123
- package/lib/components/BulkEditPanel/components/Tabs/Tags/TagsContianer.js +0 -31
- package/lib/components/BulkEditPanel/components/Tabs/Tags/TagsPaper.js +0 -95
- package/lib/components/BulkEditPanel/components/Tabs/Text/Text.js +0 -167
- package/lib/components/BulkEditPanel/components/Tabs/Text/Text.styled.js +0 -15
- package/lib/components/BulkEditPanel/components/Tabs/tabs.constants.js +0 -113
- package/lib/components/BulkEditPanel/components/Tabs/tabs.js +0 -43
- package/lib/components/BulkEditPanel/components/Tabs/tabs.utils.js +0 -239
- package/lib/components/BulkEditPanel/index.js +0 -28
- package/lib/components/ContextMenu/BeforeUploadMenu/index.js +0 -51
- package/lib/components/ContextMenu/ContextMenu.constants.js +0 -64
- package/lib/components/ContextMenu/ContextMenu.hooks.js +0 -35
- package/lib/components/ContextMenu/ContextMenu.styled.js +0 -107
- package/lib/components/ContextMenu/ContextMenuContent.js +0 -202
- package/lib/components/ContextMenu/ContextMenuItem.js +0 -142
- package/lib/components/ContextMenu/FileMenu/CollaborateSection/index.js +0 -33
- package/lib/components/ContextMenu/FileMenu/DeleteSection/index.js +0 -25
- package/lib/components/ContextMenu/FileMenu/EditSection/index.js +0 -42
- package/lib/components/ContextMenu/FileMenu/FindSection/index.js +0 -29
- package/lib/components/ContextMenu/FileMenu/index.js +0 -15
- package/lib/components/ContextMenu/FolderMenu/CollaborateSection/index.js +0 -17
- package/lib/components/ContextMenu/FolderMenu/DeleteSection/index.js +0 -41
- package/lib/components/ContextMenu/FolderMenu/EditSection/index.js +0 -49
- package/lib/components/ContextMenu/FolderMenu/FindSection/index.js +0 -49
- package/lib/components/ContextMenu/FolderMenu/FolderMenu.utils.js +0 -31
- package/lib/components/ContextMenu/FolderMenu/index.js +0 -14
- package/lib/components/ContextMenu/MenuOptions/AddVariationOption.js +0 -59
- package/lib/components/ContextMenu/MenuOptions/BulkEditOption.js +0 -47
- package/lib/components/ContextMenu/MenuOptions/CdnLinkOption.js +0 -54
- package/lib/components/ContextMenu/MenuOptions/DeleteOption.js +0 -70
- package/lib/components/ContextMenu/MenuOptions/DownloadOption.js +0 -88
- package/lib/components/ContextMenu/MenuOptions/EditImageOption.js +0 -63
- package/lib/components/ContextMenu/MenuOptions/EditVideoOption.js +0 -87
- package/lib/components/ContextMenu/MenuOptions/LocateFileOption.js +0 -45
- package/lib/components/ContextMenu/MenuOptions/ManagaAccessOption.js +0 -67
- package/lib/components/ContextMenu/MenuOptions/ManageDetailsOption.js +0 -52
- package/lib/components/ContextMenu/MenuOptions/MoveOption.js +0 -54
- package/lib/components/ContextMenu/MenuOptions/PreviewOption.js +0 -35
- package/lib/components/ContextMenu/MenuOptions/RenameOption.js +0 -66
- package/lib/components/ContextMenu/MenuOptions/TransformationOption.js +0 -63
- package/lib/components/ContextMenu/MultipleMenu/CollaborateSection/index.js +0 -31
- package/lib/components/ContextMenu/MultipleMenu/DeleteSection/index.js +0 -6
- package/lib/components/ContextMenu/MultipleMenu/EditSection/index.js +0 -14
- package/lib/components/ContextMenu/MultipleMenu/FindSection/index.js +0 -14
- package/lib/components/ContextMenu/MultipleMenu/index.js +0 -14
- package/lib/components/ContextMenu/SharedMenus/DownloadFolderSubMenu.js +0 -36
- package/lib/components/ContextMenu/SharedMenus/DownloadSubMenu.js +0 -70
- package/lib/components/ContextMenu/index.js +0 -34
- package/lib/components/ContextMenu/utils/calculateMenuHeight.js +0 -20
- package/lib/components/ContextMenu/utils/calculateMenuPosition.js +0 -42
- package/lib/components/ContextMenu/utils/createSeparator.js +0 -14
- package/lib/components/ContextMenu/utils/editMedia.js +0 -17
- package/lib/components/ContextMenu/utils/getFileLocation.js +0 -8
- package/lib/components/ContextMenu/utils/getFilteredOptions.js +0 -20
- package/lib/components/ContextMenu/utils/getProperFolderSelections.js +0 -7
- package/lib/components/ContextMenu/utils/isEmptyFolderSelection.js +0 -5
- package/lib/components/ContextMenu/utils/isFileContextMenu.js +0 -5
- package/lib/components/ContextMenu/utils/isFirstFileVisibilityPublic.js +0 -9
- package/lib/components/ContextMenu/utils/isMenuItemVisible.js +0 -5
- package/lib/components/ContextMenu/utils/isMixedFiles.js +0 -9
- package/lib/components/ContextMenu/utils/isMultipleSelection.js +0 -6
- package/lib/components/ContextMenu/utils/isSeparatorHidden.js +0 -7
- package/lib/components/ContextMenu/utils/triggerDownload.js +0 -45
- package/lib/components/CropPanel/CropOptions.js +0 -155
- package/lib/components/CropPanel/CropPanel.constants.js +0 -44
- package/lib/components/CropPanel/CropPanel.styled.js +0 -107
- package/lib/components/CropPanel/CropPanel.utils.js +0 -48
- package/lib/components/CropPanel/CropPanelContent.js +0 -209
- package/lib/components/CropPanel/ImageOptions.js +0 -326
- package/lib/components/CropPanel/ImageResize.js +0 -207
- package/lib/components/CropPanel/Option.js +0 -113
- package/lib/components/CropPanel/index.js +0 -22
- package/lib/components/Details/Details.constants.js +0 -75
- package/lib/components/Details/Details.utils.js +0 -232
- package/lib/components/Details/DetailsSideBar.styled.js +0 -139
- package/lib/components/Details/EditActionButtons/EditActionButtons.styled.js +0 -27
- package/lib/components/Details/EditActionButtons/index.js +0 -38
- package/lib/components/Details/FileDetails.js +0 -31
- package/lib/components/Details/FileItem/CustomMetadataTab.js +0 -50
- package/lib/components/Details/FileItem/FileItem.styled.js +0 -47
- package/lib/components/Details/FileItem/GeneralTab.js +0 -113
- package/lib/components/Details/FileItem/SharedFileEditData.js +0 -97
- package/lib/components/Details/FileItem/index.js +0 -2
- package/lib/components/Details/FolderDetails.js +0 -138
- package/lib/components/Details/FolderItemList/FolderListItem.js +0 -77
- package/lib/components/Details/FolderItemList/index.js +0 -62
- package/lib/components/Details/MultiItemsDetails.js +0 -69
- package/lib/components/Details/MultipleItems.js +0 -71
- package/lib/components/Details/TabChips.js +0 -51
- package/lib/components/Details/TabPanels.js +0 -42
- package/lib/components/Details/Title.js +0 -52
- package/lib/components/Details/index.js +0 -53
- package/lib/components/DnD/Dnd.styled.js +0 -11
- package/lib/components/DnD/DragImage.js +0 -61
- package/lib/components/DnD/index.js +0 -219
- package/lib/components/Drawer/Drawer.styled.js +0 -45
- package/lib/components/Drawer/Drawer.utils.js +0 -163
- package/lib/components/Drawer/Resizer.js +0 -141
- package/lib/components/Drawer/ResizerCore.js +0 -213
- package/lib/components/Drawer/index.js +0 -68
- package/lib/components/EmptyViewPlaceholder/EmptyViewPlaceholder.styled.js +0 -39
- package/lib/components/EmptyViewPlaceholder/index.js +0 -58
- package/lib/components/ExploreView.js +0 -46
- package/lib/components/ExplorerUI.js +0 -17
- package/lib/components/ExplorerWrapper.js +0 -114
- package/lib/components/FacetedSearch/DrawerBody/index.js +0 -42
- package/lib/components/FacetedSearch/DrawerWrapper/index.js +0 -83
- package/lib/components/FacetedSearch/FacetedSearch.constants.js +0 -27
- package/lib/components/FacetedSearch/FacetedSearch.styled.js +0 -101
- package/lib/components/FacetedSearch/FacetedSearch.utils.js +0 -3
- package/lib/components/FacetedSearch/Field/Date.js +0 -69
- package/lib/components/FacetedSearch/Field/Placeholder.js +0 -20
- package/lib/components/FacetedSearch/Field/Select.js +0 -136
- package/lib/components/FacetedSearch/Field/Switch.js +0 -59
- package/lib/components/FacetedSearch/Field/index.js +0 -27
- package/lib/components/FacetedSearch/GroupWrapper/index.js +0 -129
- package/lib/components/FacetedSearch/StaticFields/Date.js +0 -152
- package/lib/components/FacetedSearch/index.js +0 -12
- package/lib/components/FileItem/FileInfo/FileInfo.styled.js +0 -126
- package/lib/components/FileItem/FileInfo/FileInfo.utils.js +0 -13
- package/lib/components/FileItem/FileInfo/FileMetadata.js +0 -37
- package/lib/components/FileItem/FileInfo/FileName.js +0 -197
- package/lib/components/FileItem/FileInfo/index.js +0 -194
- package/lib/components/FileItem/FileItem.mixin.js +0 -22
- package/lib/components/FileItem/FileItem.styled.js +0 -54
- package/lib/components/FileItem/FileUploadTopOptions.js +0 -87
- package/lib/components/FileItem/PreUploadFileThumbnail/FileThumbnail.js +0 -61
- package/lib/components/FileItem/PreUploadFileThumbnail/PreUploadFileThumbnail.styled.js +0 -8
- package/lib/components/FileItem/PreUploadFileThumbnail/index.js +0 -27
- package/lib/components/FileItem/index.js +0 -164
- package/lib/components/FileWindowPanel/Body/ActionButtons.js +0 -70
- package/lib/components/FileWindowPanel/Body/Body.constants.js +0 -5
- package/lib/components/FileWindowPanel/Body/Body.styled.js +0 -196
- package/lib/components/FileWindowPanel/Body/BodyFile.js +0 -165
- package/lib/components/FileWindowPanel/Body/Footer.js +0 -60
- package/lib/components/FileWindowPanel/Body/Preview.js +0 -232
- package/lib/components/FileWindowPanel/Body/PreviewPlaceholder.js +0 -20
- package/lib/components/FileWindowPanel/Body/VideoEmbed.js +0 -80
- package/lib/components/FileWindowPanel/Body/index.js +0 -108
- package/lib/components/FileWindowPanel/FileTabs/FileTabButtons.js +0 -98
- package/lib/components/FileWindowPanel/FileTabs/FileTabs.constants.js +0 -50
- package/lib/components/FileWindowPanel/FileTabs/FileTabs.styled.js +0 -99
- package/lib/components/FileWindowPanel/FileTabs/FileTabsList.js +0 -91
- package/lib/components/FileWindowPanel/FileTabs/GeneralTab/EditableField.js +0 -78
- package/lib/components/FileWindowPanel/FileTabs/GeneralTab/FieldLabel.js +0 -40
- package/lib/components/FileWindowPanel/FileTabs/GeneralTab/FieldRow.js +0 -57
- package/lib/components/FileWindowPanel/FileTabs/GeneralTab/FieldValue.js +0 -20
- package/lib/components/FileWindowPanel/FileTabs/GeneralTab/FieldWithTooltip.js +0 -29
- package/lib/components/FileWindowPanel/FileTabs/GeneralTab/GeneralSection.js +0 -183
- package/lib/components/FileWindowPanel/FileTabs/GeneralTab/GeneralTab.constants.js +0 -2
- package/lib/components/FileWindowPanel/FileTabs/GeneralTab/GeneralTab.styled.js +0 -112
- package/lib/components/FileWindowPanel/FileTabs/GeneralTab/GeneralTabSkeleton.js +0 -70
- package/lib/components/FileWindowPanel/FileTabs/GeneralTab/TableSeparator.js +0 -10
- package/lib/components/FileWindowPanel/FileTabs/GeneralTab/index.js +0 -100
- package/lib/components/FileWindowPanel/FileTabs/MetadataTab/CustomMetadataSection.js +0 -247
- package/lib/components/FileWindowPanel/FileTabs/MetadataTab/EmbeddedMetadataSection.js +0 -31
- package/lib/components/FileWindowPanel/FileTabs/MetadataTab/MetadataTab.constants.js +0 -2
- package/lib/components/FileWindowPanel/FileTabs/MetadataTab/MetadataTab.styled.js +0 -134
- package/lib/components/FileWindowPanel/FileTabs/MetadataTab/MetadataTabSkeleton.js +0 -70
- package/lib/components/FileWindowPanel/FileTabs/MetadataTab/index.js +0 -181
- package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationItem.js +0 -78
- package/lib/components/FileWindowPanel/FileTabs/VariationsTab/Variations.constants.js +0 -26
- package/lib/components/FileWindowPanel/FileTabs/VariationsTab/Variations.styled.js +0 -177
- package/lib/components/FileWindowPanel/FileTabs/VariationsTab/Variations.thunks.js +0 -99
- package/lib/components/FileWindowPanel/FileTabs/VariationsTab/Variations.utils.js +0 -23
- package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsContent.js +0 -92
- package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsEditModalContent.js +0 -57
- package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsSearch.js +0 -44
- package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsSkeleton.js +0 -35
- package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsTabNavigator.js +0 -38
- package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsTabs.js +0 -40
- package/lib/components/FileWindowPanel/FileTabs/VariationsTab/VariationsTopOptions.js +0 -204
- package/lib/components/FileWindowPanel/FileTabs/VariationsTab/index.js +0 -603
- package/lib/components/FileWindowPanel/FileTabs/index.js +0 -83
- package/lib/components/FileWindowPanel/FileWindow.js +0 -221
- package/lib/components/FileWindowPanel/FileWindow.styled.js +0 -19
- package/lib/components/FileWindowPanel/FileWindow.utils.js +0 -38
- package/lib/components/FileWindowPanel/Header/AfterUploadActionBtns.js +0 -69
- package/lib/components/FileWindowPanel/Header/BeforeUploadActionBtns.js +0 -100
- package/lib/components/FileWindowPanel/Header/FileWindowHeader.styled.js +0 -56
- package/lib/components/FileWindowPanel/Header/MutualActionBtns.js +0 -92
- package/lib/components/FileWindowPanel/Header/index.js +0 -109
- package/lib/components/FileWindowPanel/index.js +0 -60
- package/lib/components/Filters/Filters.constants.js +0 -358
- package/lib/components/Filters/Filters.styled.js +0 -235
- package/lib/components/Filters/Filters.utils.js +0 -536
- package/lib/components/Filters/FiltersContext.js +0 -59
- package/lib/components/Filters/FiltersSkeleton.js +0 -14
- package/lib/components/Filters/Groups/Date/index.js +0 -201
- package/lib/components/Filters/Groups/Folders/FoldersSkeleton.js +0 -43
- package/lib/components/Filters/Groups/Folders/index.js +0 -109
- package/lib/components/Filters/Groups/Image/Colors.js +0 -73
- package/lib/components/Filters/Groups/Image/Faces.js +0 -64
- package/lib/components/Filters/Groups/Image/Orientations.js +0 -64
- package/lib/components/Filters/Groups/Image/Resolutions.js +0 -65
- package/lib/components/Filters/Groups/Image/Tooltip.js +0 -14
- package/lib/components/Filters/Groups/Image/index.js +0 -104
- package/lib/components/Filters/Groups/LicenseExpiry/LicenseExpiry.styled.js +0 -17
- package/lib/components/Filters/Groups/LicenseExpiry/index.js +0 -97
- package/lib/components/Filters/Groups/Metadata/Advanced/ConditionSelector.js +0 -40
- package/lib/components/Filters/Groups/Metadata/Advanced/ExtraRow/ConditionSelector.js +0 -35
- package/lib/components/Filters/Groups/Metadata/Advanced/ExtraRow/ValueSelector.js +0 -33
- package/lib/components/Filters/Groups/Metadata/Advanced/ExtraRow/index.js +0 -18
- package/lib/components/Filters/Groups/Metadata/Advanced/Field/AutoComplete.js +0 -56
- package/lib/components/Filters/Groups/Metadata/Advanced/Field/Boolean.js +0 -35
- package/lib/components/Filters/Groups/Metadata/Advanced/Field/Date.js +0 -36
- package/lib/components/Filters/Groups/Metadata/Advanced/Field/GeoPointField.js +0 -30
- package/lib/components/Filters/Groups/Metadata/Advanced/Field/Numeric.js +0 -32
- package/lib/components/Filters/Groups/Metadata/Advanced/Field/Select.js +0 -55
- package/lib/components/Filters/Groups/Metadata/Advanced/Field/Tags.js +0 -21
- package/lib/components/Filters/Groups/Metadata/Advanced/Field/Text.js +0 -39
- package/lib/components/Filters/Groups/Metadata/Advanced/Field/index.js +0 -52
- package/lib/components/Filters/Groups/Metadata/Advanced/KeySelector.js +0 -34
- package/lib/components/Filters/Groups/Metadata/Advanced/Row.js +0 -53
- package/lib/components/Filters/Groups/Metadata/Advanced/index.js +0 -48
- package/lib/components/Filters/Groups/Metadata/Basic/Field/Date.js +0 -45
- package/lib/components/Filters/Groups/Metadata/Basic/Field/Field.utils.js +0 -58
- package/lib/components/Filters/Groups/Metadata/Basic/Field/Numeric.js +0 -51
- package/lib/components/Filters/Groups/Metadata/Basic/Field/OptionsPopup.js +0 -87
- package/lib/components/Filters/Groups/Metadata/Basic/Field/Select.js +0 -168
- package/lib/components/Filters/Groups/Metadata/Basic/Field/Switch.js +0 -41
- package/lib/components/Filters/Groups/Metadata/Basic/Field/Tags.js +0 -38
- package/lib/components/Filters/Groups/Metadata/Basic/Field/Text.js +0 -57
- package/lib/components/Filters/Groups/Metadata/Basic/Field/Uri.js +0 -54
- package/lib/components/Filters/Groups/Metadata/Basic/Field/index.js +0 -46
- package/lib/components/Filters/Groups/Metadata/Basic/GroupWrapper.js +0 -79
- package/lib/components/Filters/Groups/Metadata/Basic/index.js +0 -80
- package/lib/components/Filters/Groups/Metadata/Metadata.constants.js +0 -42
- package/lib/components/Filters/Groups/Metadata/Metadata.styled.js +0 -150
- package/lib/components/Filters/Groups/Metadata/Metadata.utils.js +0 -160
- package/lib/components/Filters/Groups/Metadata/MetadataFiltersContext.js +0 -329
- package/lib/components/Filters/Groups/Metadata/Placeholder.js +0 -25
- package/lib/components/Filters/Groups/Metadata/common/TagsField/TagsMenu.js +0 -81
- package/lib/components/Filters/Groups/Metadata/common/TagsField/TagsSearchPlaceholder.js +0 -18
- package/lib/components/Filters/Groups/Metadata/common/TagsField/index.js +0 -142
- package/lib/components/Filters/Groups/Metadata/index.js +0 -111
- package/lib/components/Filters/Groups/Size/index.js +0 -125
- package/lib/components/Filters/Groups/Tags/FilteredTags.js +0 -62
- package/lib/components/Filters/Groups/Tags/SelectedTags.js +0 -51
- package/lib/components/Filters/Groups/Tags/SuggestedTags.js +0 -43
- package/lib/components/Filters/Groups/Tags/index.js +0 -146
- package/lib/components/Filters/Groups/TypeAndFormat/Format.js +0 -65
- package/lib/components/Filters/Groups/TypeAndFormat/Type.js +0 -85
- package/lib/components/Filters/Groups/TypeAndFormat/index.js +0 -114
- package/lib/components/Filters/Groups/common/DateRangeField/DateRangeField.styled.js +0 -10
- package/lib/components/Filters/Groups/common/DateRangeField/index.js +0 -72
- package/lib/components/Filters/Groups/common/FilterFooter.js +0 -67
- package/lib/components/Filters/Groups/common/FilterOptions.js +0 -29
- package/lib/components/Filters/Groups/common/FilterSearch.js +0 -22
- package/lib/components/Filters/Groups/common/FilterSearch.styled.js +0 -15
- package/lib/components/Filters/Groups/common/FilterSkeleton.js +0 -44
- package/lib/components/Filters/Groups/common/TimeFrames.js +0 -35
- package/lib/components/Filters/Groups/index.js +0 -55
- package/lib/components/Filters/Placeholder.js +0 -29
- package/lib/components/Filters/hooks/useDateTypeFilterValues.js +0 -182
- package/lib/components/Filters/hooks/useFilters.js +0 -78
- package/lib/components/Filters/index.js +0 -78
- package/lib/components/FoldersView/FoldersTree/FoldersTree.styled.js +0 -193
- package/lib/components/FoldersView/FoldersTree/FoldersTree.utils.js +0 -78
- package/lib/components/FoldersView/FoldersTree/FoldersTreeHeader.js +0 -52
- package/lib/components/FoldersView/FoldersTree/FoldersTreeList.js +0 -64
- package/lib/components/FoldersView/FoldersTree/FoldersTreeListItem.js +0 -270
- package/lib/components/FoldersView/FoldersTree/FoldersTreeSearch.js +0 -70
- package/lib/components/FoldersView/FoldersTree/FoldersTreeSkeleton.js +0 -23
- package/lib/components/FoldersView/FoldersTree/NoFoldersResult.js +0 -19
- package/lib/components/FoldersView/FoldersTree/SearchedFoldersItem.js +0 -113
- package/lib/components/FoldersView/FoldersTree/index.js +0 -163
- package/lib/components/FoldersView/hooks/useAddFolder.js +0 -60
- package/lib/components/FoldersView/index.js +0 -256
- package/lib/components/GalleryRoleSelect/CustomRolesTab.js +0 -47
- package/lib/components/GalleryRoleSelect/CustomRolesTab.styled.js +0 -10
- package/lib/components/GalleryRoleSelect/GalleryRoleSelect.constants.js +0 -11
- package/lib/components/GalleryRoleSelect/GalleryRoleSelect.styled.js +0 -132
- package/lib/components/GalleryRoleSelect/GalleryRoleSelect.utils.js +0 -87
- package/lib/components/GalleryRoleSelect/StandardRolesTab.js +0 -58
- package/lib/components/GalleryRoleSelect/index.js +0 -234
- package/lib/components/HeaderBar/FacetedSearchToggleButton.js +0 -28
- package/lib/components/HeaderBar/HeaderBar.styled.js +0 -25
- package/lib/components/HeaderBar/RightSide.js +0 -127
- package/lib/components/HeaderBar/index.js +0 -77
- package/lib/components/ImageEditorPanel/index.js +0 -33
- package/lib/components/InfiniteScroll/InfiniteScroll.js +0 -97
- package/lib/components/InfiniteScroll/InfiniteScroll.styled.js +0 -11
- package/lib/components/Informer/index.js +0 -9
- package/lib/components/LoginScreen/LoginScreen.styled.js +0 -39
- package/lib/components/LoginScreen/index.js +0 -133
- package/lib/components/MainMenu/MainMenu.styled.js +0 -12
- package/lib/components/MainMenu/index.js +0 -77
- package/lib/components/Modals/ConfirmationModal/ConfirmationModal.hooks.js +0 -101
- package/lib/components/Modals/ConfirmationModal/index.js +0 -1
- package/lib/components/Modals/DeleteItems/DeleteItems.hooks.js +0 -233
- package/lib/components/Modals/DeleteItems/index.js +0 -1
- package/lib/components/Modals/DeleteModal/DeleteModal.hooks.js +0 -87
- package/lib/components/Modals/DeleteModal/index.js +0 -1
- package/lib/components/Modals/DownloadConsent/DownlaodConsent.styled.js +0 -8
- package/lib/components/Modals/DownloadConsent/DownloadConsent.hooks.js +0 -90
- package/lib/components/Modals/DownloadConsent/DownloadConsentContent.js +0 -52
- package/lib/components/Modals/DownloadConsent/index.js +0 -2
- package/lib/components/Modals/Modals.js +0 -386
- package/lib/components/Modals/Modals.styled.js +0 -80
- package/lib/components/Modals/MoveItems/MoveItems.hooks.js +0 -88
- package/lib/components/Modals/MoveItems/index.js +0 -1
- package/lib/components/Modals/TransformedDownload/PdfModalContent.js +0 -109
- package/lib/components/Modals/TransformedDownload/TransformedDownload.hooks.js +0 -188
- package/lib/components/Modals/TransformedDownload/TransformedDownload.styled.js +0 -29
- package/lib/components/Modals/TransformedDownload/TransformedDownload.utils.js +0 -46
- package/lib/components/Modals/TransformedDownload/index.js +0 -2
- package/lib/components/Modals/index.js +0 -7
- package/lib/components/NoItems/NoItems.styled.js +0 -54
- package/lib/components/NoItems/index.js +0 -50
- package/lib/components/PdftronPanel/index.js +0 -31
- package/lib/components/PickerPanel/PickerPanel.styled.js +0 -41
- package/lib/components/PickerPanel/PickerPanelContent.js +0 -100
- package/lib/components/PickerPanel/index.js +0 -21
- package/lib/components/ProgressPanel/ProgressPanel.utils.js +0 -29
- package/lib/components/ProgressPanel/index.js +0 -37
- package/lib/components/TopBar/AppliedFilterChips/AppliedFilterChips.styled.js +0 -11
- package/lib/components/TopBar/AppliedFilterChips/index.js +0 -77
- package/lib/components/TopBar/Search/ContextDropdown/ContextDropdown.styled.js +0 -59
- package/lib/components/TopBar/Search/ContextDropdown/ContextDropdown.utils.js +0 -67
- package/lib/components/TopBar/Search/ContextDropdown/index.js +0 -170
- package/lib/components/TopBar/Search/PrependedOptions/TempFilterRegexInput.js +0 -133
- package/lib/components/TopBar/Search/Search.utils.js +0 -88
- package/lib/components/TopBar/Search/SimilarSearchTag.js +0 -60
- package/lib/components/TopBar/Search/index.js +0 -251
- package/lib/components/TopBar/TopBar.styled.js +0 -37
- package/lib/components/TopBar/index.js +0 -61
- package/lib/components/TopSection/TopSection.styled.js +0 -22
- package/lib/components/TopSection/index.js +0 -58
- package/lib/components/UploadBar/UploadBar.styled.js +0 -84
- package/lib/components/UploadBar/index.js +0 -222
- package/lib/components/UploadStatus/index.js +0 -20
- package/lib/components/UploadsPanel/UploadsList/Header.js +0 -19
- package/lib/components/UploadsPanel/UploadsList/List.js +0 -29
- package/lib/components/UploadsPanel/UploadsList/PreUploadPlugins.js +0 -22
- package/lib/components/UploadsPanel/UploadsList/UploadsList.styled.js +0 -64
- package/lib/components/UploadsPanel/UploadsList/UploadsList.utils.js +0 -17
- package/lib/components/UploadsPanel/UploadsList/UploadsVirtualGrid.js +0 -29
- package/lib/components/UploadsPanel/UploadsList/index.js +0 -55
- package/lib/components/UploadsPanel/UploadsPanel.styled.js +0 -24
- package/lib/components/UploadsPanel/UploadsPanelTopBar.js +0 -16
- package/lib/components/UploadsPanel/index.js +0 -36
- package/lib/components/UrlBuilderModal/UrlBuilderModal.styled.js +0 -9
- package/lib/components/UrlBuilderModal/index.js +0 -97
- package/lib/components/Views/ErroredViewPlaceholder.js +0 -48
- package/lib/components/Views/Views.constants.js +0 -29
- package/lib/components/Views/Views.styled.js +0 -87
- package/lib/components/Views/index.js +0 -100
- package/lib/components/common/DeleteModalItemText/DeleteModalItemText.styled.js +0 -8
- package/lib/components/common/DeleteModalItemText/index.js +0 -24
- package/lib/components/common/EditDetailsButton/EditDetailsButton.styled.js +0 -35
- package/lib/components/common/EditDetailsButton/index.js +0 -28
- package/lib/components/common/ExpiryDateTooltipContent/ExpiryDateTooltipContent.styled.js +0 -16
- package/lib/components/common/ExpiryDateTooltipContent/index.js +0 -29
- package/lib/components/common/FileApprovalsInfoPopup/index.js +0 -46
- package/lib/components/common/FileMetadataFieldValue/CustomMetadataFieldValue.js +0 -48
- package/lib/components/common/FileMetadataFieldValue/FileMetadataFieldValue.styled.js +0 -66
- package/lib/components/common/FileMetadataFieldValue/FileMetadataFieldValue.utils.js +0 -315
- package/lib/components/common/FileMetadataFieldValue/GeneralMetadataFieldValue.js +0 -120
- package/lib/components/common/FileMetadataFieldValue/index.js +0 -26
- package/lib/components/common/FileMetadataFieldValue/utils/getFontInfo.js +0 -78
- package/lib/components/common/FolderSelector/BrowseFoldersMenu.js +0 -114
- package/lib/components/common/FolderSelector/FolderSearchMenu.js +0 -45
- package/lib/components/common/FolderSelector/FolderSelector.styled.js +0 -41
- package/lib/components/common/FolderSelector/index.js +0 -186
- package/lib/components/common/FormattedUriLink/FormattedUriLink.styled.js +0 -15
- package/lib/components/common/FormattedUriLink/index.js +0 -21
- package/lib/components/common/OriginalBadge/OriginalBadge.styled.js +0 -17
- package/lib/components/common/OriginalBadge/index.js +0 -14
- package/lib/components/common/SanitizedHtmlElement/index.js +0 -11
- package/lib/components/common/Sort/Sort.constants.js +0 -61
- package/lib/components/common/Sort/Sort.styled.js +0 -47
- package/lib/components/common/Sort/Sort.utils.js +0 -14
- package/lib/components/common/Sort/index.js +0 -183
- package/lib/components/common/TextWithCopyIcon/TextWithCopyIcon.styled.js +0 -44
- package/lib/components/common/TextWithCopyIcon/index.js +0 -71
- package/lib/components/common/TopBarUploadButton/index.js +0 -40
- package/lib/components/common/TrimmedFilePathWithLocate/TrimmedFilePathWithLocate.utils.js +0 -3
- package/lib/components/common/TrimmedFilePathWithLocate/index.js +0 -34
- package/lib/components/common/TrimmedFolderPathWithLocate/index.js +0 -13
- package/lib/components/common/TrimmedPathWithLocate/TrimmedPathWithLocate.styled.js +0 -30
- package/lib/components/common/TrimmedPathWithLocate/index.js +0 -40
- package/lib/components/metadata.adapter.js +0 -365
- package/lib/defaultLocale.js +0 -1360
- package/lib/hooks/index.js +0 -16
- package/lib/hooks/useAssetsPicker.js +0 -274
- package/lib/hooks/useDownloadFilesCsv.js +0 -20
- package/lib/hooks/useEditFileDetails.js +0 -505
- package/lib/hooks/useExplorer.js +0 -6
- package/lib/hooks/useExplorerI18n.js +0 -10
- package/lib/hooks/useExplorerInformer.js +0 -10
- package/lib/hooks/useFetchFileFolderPermissions.js +0 -31
- package/lib/hooks/useFetchMetadataTagsBySearchQuery.js +0 -38
- package/lib/hooks/useFileMetadata.js +0 -117
- package/lib/hooks/useFilterSearch.js +0 -37
- package/lib/hooks/useForcedFilters.js +0 -39
- package/lib/hooks/useIsOverflow.js +0 -25
- package/lib/hooks/useIsSmallScreen.js +0 -20
- package/lib/hooks/useLocateFile.js +0 -231
- package/lib/hooks/usePrevious.js +0 -9
- package/lib/hooks/useSearchSuggestions.js +0 -168
- package/lib/hooks/useStartUpload.js +0 -43
- package/lib/hooks/useToLocaleNumber.js +0 -14
- package/lib/hooks/useValidateFileName.js +0 -324
- package/lib/index.js +0 -1586
- package/lib/slices/common.slice.js +0 -254
- package/lib/slices/drag.slice.js +0 -75
- package/lib/slices/files.slice.js +0 -1307
- package/lib/slices/filters.slice.js +0 -382
- package/lib/slices/folders.slice.js +0 -964
- package/lib/slices/foldersTree.slice.js +0 -501
- package/lib/slices/index.js +0 -32
- package/lib/slices/metadata.slice.js +0 -494
- package/lib/slices/panels.slice.js +0 -351
- package/lib/slices/search.slice.js +0 -995
- package/lib/slices/selections.slice.js +0 -315
- package/lib/slices/targets.slice.js +0 -44
- package/lib/slices/topSection.slice.js +0 -71
- package/lib/slices/views.slice.js +0 -345
- package/lib/thunks/archive.thunks.js +0 -175
- package/lib/thunks/downloads.thunks.js +0 -415
- package/lib/thunks/items.thunks.js +0 -274
- package/lib/thunks/permissions.thunks.js +0 -66
- package/lib/thunks/uploads.thunks.js +0 -235
- package/lib/utils/SearchSuggestions/SearchSuggestionsMenu.js +0 -95
- package/lib/utils/SearchSuggestions/SuggestionMode.js +0 -70
- package/lib/utils/SearchSuggestions/SuggestionModeAttribute.js +0 -87
- package/lib/utils/SearchSuggestions/SuggestionModeExpression.js +0 -121
- package/lib/utils/SearchSuggestions/SuggestionModeTag.js +0 -87
- package/lib/utils/SearchSuggestions/SuggestionsManager.js +0 -242
- package/lib/utils/SearchSuggestions/constants.js +0 -14
- package/lib/utils/SearchSuggestions/index.js +0 -4
- package/lib/utils/SearchSuggestions/styled.js +0 -12
- package/lib/utils/availableScreenSizes.js +0 -4
- package/lib/utils/constants.js +0 -14
- package/lib/utils/convertItemsToFilesFoldersUuids.js +0 -12
- package/lib/utils/convertItemstoFoldersParentUuids.js +0 -12
- package/lib/utils/createPromise.js +0 -9
- package/lib/utils/createSuperFocus.js +0 -43
- package/lib/utils/decodeB64ToStr.js +0 -11
- package/lib/utils/filters.js +0 -333
- package/lib/utils/formatFolderPath.js +0 -10
- package/lib/utils/formatPinSubTitle.js +0 -17
- package/lib/utils/getAcquirerTitle.js +0 -10
- package/lib/utils/getActiveOverlayEl.js +0 -11
- package/lib/utils/getApiPathtype.js +0 -10
- package/lib/utils/getClosestStr.js +0 -22
- package/lib/utils/getItemUuids.js +0 -12
- package/lib/utils/getLabelsTotalAssetsCount.js +0 -6
- package/lib/utils/getMoveAndDeleteData.js +0 -15
- package/lib/utils/getParentFolderPath.js +0 -4
- package/lib/utils/getQueryStringFromUrl.js +0 -6
- package/lib/utils/getScrollableParent.js +0 -15
- package/lib/utils/getStringValueExistedInObj.js +0 -9
- package/lib/utils/isEmbeddableAsset.js +0 -6
- package/lib/utils/isFileVersion.js +0 -9
- package/lib/utils/mapArrayKeysToObjValues.js +0 -33
- package/lib/utils/mapFiltersToShownFormat.js +0 -252
- package/lib/utils/prepareExportedFilesLinks.js +0 -12
- package/lib/utils/prepareSearchUrl.js +0 -65
- package/lib/utils/removeBackground.js +0 -60
- package/lib/utils/removeExtraUrlParams.js +0 -13
- package/lib/utils/scrollToAndFocusItemElement.js +0 -16
- package/lib/utils/toggleFolderNotFoundModal.js +0 -25
- package/lib/utils/trapFocus.js +0 -59
- package/lib/utils/truncateString.js +0 -28
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
8
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
10
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
11
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
13
|
-
import { useContext, useState } from 'react';
|
|
14
|
-
import getDateString from '@scaleflex/widget-utils/lib/getDateString';
|
|
15
|
-
import { DatePicker } from '@scaleflex/ui/core';
|
|
16
|
-
import preventDefault from '@scaleflex/widget-utils/lib/preventDefault';
|
|
17
|
-
import isNumber from '@scaleflex/widget-utils/lib/isNumber';
|
|
18
|
-
import FilterFooter from '../common/FilterFooter';
|
|
19
|
-
import TimeFrames from '../common/TimeFrames';
|
|
20
|
-
import { useExplorer } from '../../../../hooks';
|
|
21
|
-
import { DATE_FILTER_TYPES, DATE_OPTIONS_RANGE, DATE_OPTIONS_TYPE, FILTER_SECTION_KEYS, NONE_DATE_RANGE_VALUE } from '../../Filters.constants';
|
|
22
|
-
import { FiltersContext } from '../../FiltersContext';
|
|
23
|
-
import { getDefaultCustomDate, getDefaultDateRange, getUpdatedDateFilter, isCustomDate } from '../../Filters.utils';
|
|
24
|
-
import Styled from '../../Filters.styled';
|
|
25
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
-
var todayDate = getDateString('ymd', '-');
|
|
27
|
-
var Date = function Date(_ref) {
|
|
28
|
-
var _date$key;
|
|
29
|
-
var appliedFilters = _ref.appliedFilters,
|
|
30
|
-
updateFilters = _ref.updateFilters;
|
|
31
|
-
var _useExplorer = useExplorer(),
|
|
32
|
-
i18n = _useExplorer.i18n;
|
|
33
|
-
var _useContext = useContext(FiltersContext),
|
|
34
|
-
isForcedFilters = _useContext.isForcedFilters,
|
|
35
|
-
isDisabledFiltersAndSearch = _useContext.isDisabledFiltersAndSearch,
|
|
36
|
-
defaultFilters = _useContext.defaultFilters;
|
|
37
|
-
var date = appliedFilters[FILTER_SECTION_KEYS.DATE] || {};
|
|
38
|
-
var _getDefaultCustomDate = getDefaultCustomDate(date.value),
|
|
39
|
-
_getDefaultCustomDate2 = _slicedToArray(_getDefaultCustomDate, 2),
|
|
40
|
-
defaultStartDate = _getDefaultCustomDate2[0],
|
|
41
|
-
defaultEndDate = _getDefaultCustomDate2[1];
|
|
42
|
-
var defaultDate = defaultFilters[FILTER_SECTION_KEYS.DATE],
|
|
43
|
-
defaultDateOption = defaultFilters.dateOption,
|
|
44
|
-
defaultDateRange = defaultFilters.dateRange;
|
|
45
|
-
var disableDateFilter = isDisabledFiltersAndSearch || isForcedFilters && (defaultDate || defaultDateOption && defaultDateRange);
|
|
46
|
-
var _useState = useState((_date$key = date.key) !== null && _date$key !== void 0 ? _date$key : DATE_FILTER_TYPES.CREATED),
|
|
47
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
48
|
-
dateType = _useState2[0],
|
|
49
|
-
setDateType = _useState2[1];
|
|
50
|
-
var _useState3 = useState(getDefaultDateRange(date.value)),
|
|
51
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
52
|
-
dateRange = _useState4[0],
|
|
53
|
-
setDateRange = _useState4[1];
|
|
54
|
-
var _useState5 = useState(defaultStartDate),
|
|
55
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
56
|
-
startDate = _useState6[0],
|
|
57
|
-
setStartDate = _useState6[1];
|
|
58
|
-
var _useState7 = useState(defaultEndDate),
|
|
59
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
60
|
-
endDate = _useState8[0],
|
|
61
|
-
setEndDate = _useState8[1];
|
|
62
|
-
var filterApplied = isNumber(date.value) && date.value > 0 || Array.isArray(date.value);
|
|
63
|
-
var submitChanges = function submitChanges(_ref2) {
|
|
64
|
-
var _ref2$newStartDate = _ref2.newStartDate,
|
|
65
|
-
newStartDate = _ref2$newStartDate === void 0 ? startDate : _ref2$newStartDate,
|
|
66
|
-
_ref2$newEndDate = _ref2.newEndDate,
|
|
67
|
-
newEndDate = _ref2$newEndDate === void 0 ? endDate : _ref2$newEndDate,
|
|
68
|
-
_ref2$newDateType = _ref2.newDateType,
|
|
69
|
-
newDateType = _ref2$newDateType === void 0 ? dateType : _ref2$newDateType,
|
|
70
|
-
_ref2$newDateRange = _ref2.newDateRange,
|
|
71
|
-
newDateRange = _ref2$newDateRange === void 0 ? dateRange : _ref2$newDateRange;
|
|
72
|
-
if (disableDateFilter) return;
|
|
73
|
-
var nextAppliedFilters = getUpdatedDateFilter({
|
|
74
|
-
dateType: newDateType,
|
|
75
|
-
dateRange: newDateRange,
|
|
76
|
-
startDate: newStartDate,
|
|
77
|
-
endDate: newEndDate,
|
|
78
|
-
appliedFilters: appliedFilters
|
|
79
|
-
});
|
|
80
|
-
updateFilters(nextAppliedFilters);
|
|
81
|
-
};
|
|
82
|
-
var changeDateType = function changeDateType(value) {
|
|
83
|
-
if (disableDateFilter) return;
|
|
84
|
-
if (value === dateType) return;
|
|
85
|
-
setDateType(value);
|
|
86
|
-
if (dateRange !== NONE_DATE_RANGE_VALUE) {
|
|
87
|
-
submitChanges({
|
|
88
|
-
newDateType: value
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
var changeDateRange = function changeDateRange(value) {
|
|
93
|
-
if (disableDateFilter) return;
|
|
94
|
-
var nextDateRange = dateRange === value ? NONE_DATE_RANGE_VALUE : value;
|
|
95
|
-
setDateRange(nextDateRange);
|
|
96
|
-
if (!isCustomDate(nextDateRange) || startDate || endDate) {
|
|
97
|
-
submitChanges({
|
|
98
|
-
newDateRange: nextDateRange
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
var changeStartDate = function changeStartDate(value) {
|
|
103
|
-
if (value === startDate || disableDateFilter) return;
|
|
104
|
-
setStartDate(value);
|
|
105
|
-
submitChanges({
|
|
106
|
-
newStartDate: value
|
|
107
|
-
});
|
|
108
|
-
};
|
|
109
|
-
var changeEndDate = function changeEndDate(value) {
|
|
110
|
-
if (value === endDate || disableDateFilter) return;
|
|
111
|
-
setEndDate(value);
|
|
112
|
-
submitChanges({
|
|
113
|
-
newEndDate: value
|
|
114
|
-
});
|
|
115
|
-
};
|
|
116
|
-
var clearDate = function clearDate() {
|
|
117
|
-
var nextAppliedFilters = _objectSpread({}, appliedFilters);
|
|
118
|
-
delete nextAppliedFilters[FILTER_SECTION_KEYS.DATE];
|
|
119
|
-
updateFilters(nextAppliedFilters);
|
|
120
|
-
};
|
|
121
|
-
var clickClearButton = function clickClearButton() {
|
|
122
|
-
if (disableDateFilter) return;
|
|
123
|
-
setDateType(DATE_FILTER_TYPES.CREATED);
|
|
124
|
-
setDateRange(NONE_DATE_RANGE_VALUE);
|
|
125
|
-
setStartDate('');
|
|
126
|
-
setEndDate('');
|
|
127
|
-
clearDate();
|
|
128
|
-
};
|
|
129
|
-
var isDisabledOption = function isDisabledOption(optionValue, forcedOption) {
|
|
130
|
-
return disableDateFilter && forcedOption !== optionValue;
|
|
131
|
-
};
|
|
132
|
-
return /*#__PURE__*/_jsxs(Styled.Filter, {
|
|
133
|
-
$width: 350,
|
|
134
|
-
children: [/*#__PURE__*/_jsxs(Styled.FilterBody, {
|
|
135
|
-
className: "filerobot-Explorer-Filters-filterBody",
|
|
136
|
-
children: [/*#__PURE__*/_jsx(Styled.FilterLabel, {
|
|
137
|
-
className: "filerobot-Explorer-Filters-filterLabel",
|
|
138
|
-
children: i18n('filtersGroupDateRecordType')
|
|
139
|
-
}), /*#__PURE__*/_jsx(Styled.FilterOptions, {
|
|
140
|
-
className: "filerobot-Explorer-Filters-filterOptionsWrapper",
|
|
141
|
-
style: {
|
|
142
|
-
marginBottom: 24
|
|
143
|
-
},
|
|
144
|
-
children: /*#__PURE__*/_jsx(TimeFrames, {
|
|
145
|
-
options: DATE_OPTIONS_TYPE,
|
|
146
|
-
selectedValue: dateType,
|
|
147
|
-
onClick: changeDateType,
|
|
148
|
-
checkIsOptionDisabled: function checkIsOptionDisabled(optionValue) {
|
|
149
|
-
return isDisabledOption(optionValue, defaultDateOption);
|
|
150
|
-
}
|
|
151
|
-
})
|
|
152
|
-
}), /*#__PURE__*/_jsx(Styled.FilterLabel, {
|
|
153
|
-
className: "filerobot-Explorer-Filters-filterLabel",
|
|
154
|
-
children: i18n('filtersGroupDateTimeFrame')
|
|
155
|
-
}), /*#__PURE__*/_jsx(Styled.FilterOptions, {
|
|
156
|
-
className: "filerobot-Explorer-Filters-filterOptionsWrapper",
|
|
157
|
-
children: /*#__PURE__*/_jsx(TimeFrames, {
|
|
158
|
-
options: DATE_OPTIONS_RANGE,
|
|
159
|
-
selectedValue: dateRange,
|
|
160
|
-
onClick: changeDateRange,
|
|
161
|
-
checkIsOptionDisabled: function checkIsOptionDisabled(optionValue) {
|
|
162
|
-
return isDisabledOption(optionValue, defaultDateRange);
|
|
163
|
-
}
|
|
164
|
-
})
|
|
165
|
-
}), isCustomDate(dateRange) && /*#__PURE__*/_jsxs(Styled.CustomDateFieldsWrapper, {
|
|
166
|
-
children: [/*#__PURE__*/_jsx(DatePicker, {
|
|
167
|
-
size: "sm",
|
|
168
|
-
placeholder: i18n('filterGroupDateOptionsFrom'),
|
|
169
|
-
maxDate: endDate || todayDate,
|
|
170
|
-
value: startDate,
|
|
171
|
-
onChange: changeStartDate,
|
|
172
|
-
onKeyDown: preventDefault,
|
|
173
|
-
calendarStyles: {
|
|
174
|
-
position: 'relative',
|
|
175
|
-
height: 300,
|
|
176
|
-
marginBottom: 9
|
|
177
|
-
},
|
|
178
|
-
disabled: disableDateFilter
|
|
179
|
-
}), /*#__PURE__*/_jsx(DatePicker, {
|
|
180
|
-
size: "sm",
|
|
181
|
-
placeholder: i18n('filterGroupDateOptionsTo'),
|
|
182
|
-
minDate: startDate,
|
|
183
|
-
maxDate: todayDate,
|
|
184
|
-
value: endDate,
|
|
185
|
-
onChange: changeEndDate,
|
|
186
|
-
onKeyDown: preventDefault,
|
|
187
|
-
calendarStyles: {
|
|
188
|
-
position: 'relative',
|
|
189
|
-
height: 300,
|
|
190
|
-
marginBottom: 9
|
|
191
|
-
},
|
|
192
|
-
disabled: disableDateFilter
|
|
193
|
-
})]
|
|
194
|
-
})]
|
|
195
|
-
}), /*#__PURE__*/_jsx(FilterFooter, {
|
|
196
|
-
disabledClearBtn: !filterApplied || disableDateFilter,
|
|
197
|
-
onClear: clickClearButton
|
|
198
|
-
})]
|
|
199
|
-
});
|
|
200
|
-
};
|
|
201
|
-
export default Date;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
import { Skeleton } from '@scaleflex/ui/core';
|
|
8
|
-
import Styled from '../../Filters.styled';
|
|
9
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
var FoldersSkeleton = function FoldersSkeleton(_ref) {
|
|
11
|
-
var styles = _ref.styles;
|
|
12
|
-
return Array(6).fill().map(function (_, index) {
|
|
13
|
-
return /*#__PURE__*/_jsxs(Styled.FilterOption, {
|
|
14
|
-
style: _objectSpread({
|
|
15
|
-
width: 388,
|
|
16
|
-
height: 58,
|
|
17
|
-
pointerEvents: 'none'
|
|
18
|
-
}, styles),
|
|
19
|
-
children: [/*#__PURE__*/_jsx(Skeleton, {
|
|
20
|
-
width: 20,
|
|
21
|
-
height: 20,
|
|
22
|
-
style: {
|
|
23
|
-
borderRadius: 4
|
|
24
|
-
}
|
|
25
|
-
}), /*#__PURE__*/_jsxs(Styled.FolderInfoWrapper, {
|
|
26
|
-
children: [/*#__PURE__*/_jsx(Skeleton, {
|
|
27
|
-
width: 80,
|
|
28
|
-
height: 10,
|
|
29
|
-
style: {
|
|
30
|
-
marginBottom: 4,
|
|
31
|
-
borderRadius: 2
|
|
32
|
-
}
|
|
33
|
-
}), /*#__PURE__*/_jsx(Styled.FolderPath, {
|
|
34
|
-
children: /*#__PURE__*/_jsx(Skeleton, {
|
|
35
|
-
width: 160,
|
|
36
|
-
height: 8
|
|
37
|
-
})
|
|
38
|
-
})]
|
|
39
|
-
})]
|
|
40
|
-
}, "".concat(index, "-loading"));
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
export default FoldersSkeleton;
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
8
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
10
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
11
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
13
|
-
import { useContext } from 'react';
|
|
14
|
-
import { useSelector } from 'react-redux';
|
|
15
|
-
import { NoFolders } from '@scaleflex/icons';
|
|
16
|
-
import FolderSelector from '../../../common/FolderSelector';
|
|
17
|
-
import { selectFolderByPath } from '../../../../slices/folders.slice';
|
|
18
|
-
import Placeholder from '../../Placeholder';
|
|
19
|
-
import FilterFooter from '../common/FilterFooter';
|
|
20
|
-
import { generateFolderObjFromPath } from '../../Filters.utils';
|
|
21
|
-
import { useExplorerI18n } from '../../../../hooks';
|
|
22
|
-
import { FILTER_SECTION_KEYS } from '../../Filters.constants';
|
|
23
|
-
import { FiltersContext } from '../../FiltersContext';
|
|
24
|
-
import Styled from '../../Filters.styled';
|
|
25
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
-
var Folders = function Folders(_ref) {
|
|
27
|
-
var appliedFilters = _ref.appliedFilters,
|
|
28
|
-
updateFilters = _ref.updateFilters;
|
|
29
|
-
var i18n = useExplorerI18n();
|
|
30
|
-
var _useContext = useContext(FiltersContext),
|
|
31
|
-
isForcedFilters = _useContext.isForcedFilters;
|
|
32
|
-
var _ref2 = appliedFilters[FILTER_SECTION_KEYS.FOLDERS] || {},
|
|
33
|
-
_ref2$value = _ref2.value,
|
|
34
|
-
folders = _ref2$value === void 0 ? [] : _ref2$value;
|
|
35
|
-
var _folders = _slicedToArray(folders, 1),
|
|
36
|
-
selectedPath = _folders[0];
|
|
37
|
-
var selectedFolder = useSelector(function (state) {
|
|
38
|
-
return selectedPath && selectFolderByPath(state, selectedPath);
|
|
39
|
-
}) || selectedPath && generateFolderObjFromPath(selectedPath);
|
|
40
|
-
var applyFolderFilter = function applyFolderFilter(folderFilter) {
|
|
41
|
-
var newFilters = _objectSpread({}, appliedFilters);
|
|
42
|
-
if (!folderFilter || folderFilter.length === 0) {
|
|
43
|
-
delete newFilters[FILTER_SECTION_KEYS.FOLDERS];
|
|
44
|
-
} else {
|
|
45
|
-
newFilters[FILTER_SECTION_KEYS.FOLDERS] = _objectSpread(_objectSpread({}, newFilters[FILTER_SECTION_KEYS.FOLDERS]), {}, {
|
|
46
|
-
value: folderFilter
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
updateFilters(newFilters);
|
|
50
|
-
};
|
|
51
|
-
var handleOnSelectFolder = function handleOnSelectFolder() {
|
|
52
|
-
var folder = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
53
|
-
var folderPath = folder.path;
|
|
54
|
-
if (!isForcedFilters && folderPath) {
|
|
55
|
-
applyFolderFilter([folderPath]);
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
var removeSelectedFolder = function removeSelectedFolder(folder) {
|
|
59
|
-
var folderPath = folder.path;
|
|
60
|
-
if (!folderPath || isForcedFilters) return;
|
|
61
|
-
var countBeforeRemove = folders.length;
|
|
62
|
-
var updatedFolders = folders.filter(function (val) {
|
|
63
|
-
return val !== folderPath;
|
|
64
|
-
});
|
|
65
|
-
var isFolderFound = updatedFolders.length !== countBeforeRemove;
|
|
66
|
-
if (isFolderFound) {
|
|
67
|
-
applyFolderFilter(updatedFolders);
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
var clearFolderFilter = function clearFolderFilter() {
|
|
71
|
-
var newFilters = _objectSpread({}, appliedFilters);
|
|
72
|
-
delete newFilters[FILTER_SECTION_KEYS.FOLDERS];
|
|
73
|
-
updateFilters(newFilters);
|
|
74
|
-
};
|
|
75
|
-
return /*#__PURE__*/_jsxs(Styled.Filter, {
|
|
76
|
-
$width: 450,
|
|
77
|
-
minHeight: !selectedPath ? 290 : undefined,
|
|
78
|
-
withPadding: true,
|
|
79
|
-
children: [/*#__PURE__*/_jsx(FolderSelector, {
|
|
80
|
-
selectedFolder: selectedFolder,
|
|
81
|
-
onSelect: handleOnSelectFolder,
|
|
82
|
-
onRemoveSelectedFolder: removeSelectedFolder,
|
|
83
|
-
selectedFolderHeadlineLabel: /*#__PURE__*/_jsx(Styled.FilterLabel, {
|
|
84
|
-
className: "filerobot-Explorer-Filters-filterLabel",
|
|
85
|
-
children: i18n('filtersSelected')
|
|
86
|
-
}),
|
|
87
|
-
disabled: isForcedFilters,
|
|
88
|
-
dontHideSearchInputIfSelected: true,
|
|
89
|
-
hideAddNewFolderButton: true,
|
|
90
|
-
fullWidthSearchInput: true,
|
|
91
|
-
noRootFolder: true
|
|
92
|
-
}), !selectedPath && /*#__PURE__*/_jsx(Placeholder, {
|
|
93
|
-
"data-placeholder": true,
|
|
94
|
-
className: "filerobot-Provider-Filters-noRecent-placeholder",
|
|
95
|
-
icon: /*#__PURE__*/_jsx(NoFolders, {
|
|
96
|
-
size: 120
|
|
97
|
-
}),
|
|
98
|
-
title: i18n('explorerFiltersFoldersNoSelectedFoldersLabel'),
|
|
99
|
-
paddingBottom: 0
|
|
100
|
-
}), /*#__PURE__*/_jsx(FilterFooter, {
|
|
101
|
-
hideLearnMore: true,
|
|
102
|
-
onClear: clearFolderFilter,
|
|
103
|
-
disabledClearBtn: isForcedFilters || !selectedPath,
|
|
104
|
-
infoMsgText: i18n('explorerFiltersFoldersFooterHint'),
|
|
105
|
-
withoutPadding: true
|
|
106
|
-
})]
|
|
107
|
-
});
|
|
108
|
-
};
|
|
109
|
-
export default Folders;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { useContext } from 'react';
|
|
2
|
-
import ColorPicker from '@scaleflex/widget-common/lib/ColorPicker';
|
|
3
|
-
import { useExplorerI18n } from '../../../../hooks';
|
|
4
|
-
import { COLORS_OPTIONS, FILTER_SECTION_KEYS } from '../../Filters.constants';
|
|
5
|
-
import Tooltip from './Tooltip';
|
|
6
|
-
import Styled from '../../Filters.styled';
|
|
7
|
-
import { isForcedOption } from '../../Filters.utils';
|
|
8
|
-
import { FiltersContext } from '../../FiltersContext';
|
|
9
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
var Colors = function Colors(_ref) {
|
|
11
|
-
var onChange = _ref.onChange,
|
|
12
|
-
isForcedFilters = _ref.isForcedFilters,
|
|
13
|
-
isDisabledFiltersAndSearch = _ref.isDisabledFiltersAndSearch,
|
|
14
|
-
appliedFilters = _ref.appliedFilters;
|
|
15
|
-
var i18n = useExplorerI18n();
|
|
16
|
-
var _useContext = useContext(FiltersContext),
|
|
17
|
-
defaultFilters = _useContext.defaultFilters;
|
|
18
|
-
var _ref2 = (appliedFilters === null || appliedFilters === void 0 ? void 0 : appliedFilters[FILTER_SECTION_KEYS.IMAGE_MAIN_COLORS]) || {},
|
|
19
|
-
_ref2$value = _ref2.value,
|
|
20
|
-
mainColorsValues = _ref2$value === void 0 ? [] : _ref2$value;
|
|
21
|
-
var _ref3 = (appliedFilters === null || appliedFilters === void 0 ? void 0 : appliedFilters[FILTER_SECTION_KEYS.IMAGE_DOMINANT_COLORS]) || {},
|
|
22
|
-
_ref3$value = _ref3.value,
|
|
23
|
-
dominateColorsValues = _ref3$value === void 0 ? [] : _ref3$value;
|
|
24
|
-
var updateMainColorFilter = function updateMainColorFilter(nextValue) {
|
|
25
|
-
onChange(FILTER_SECTION_KEYS.IMAGE_MAIN_COLORS, nextValue);
|
|
26
|
-
};
|
|
27
|
-
var updateDominateColorFilter = function updateDominateColorFilter(newValues) {
|
|
28
|
-
onChange(FILTER_SECTION_KEYS.IMAGE_DOMINANT_COLORS, newValues);
|
|
29
|
-
};
|
|
30
|
-
return /*#__PURE__*/_jsxs(Styled.ColorsWrapper, {
|
|
31
|
-
children: [/*#__PURE__*/_jsxs(Styled.FilterWrapper, {
|
|
32
|
-
children: [/*#__PURE__*/_jsxs(Styled.FilterLabel, {
|
|
33
|
-
marginBottom: 12,
|
|
34
|
-
className: "filerobot-Explorer-Filters-filterLabel",
|
|
35
|
-
children: [i18n('mutualizedMainColorsLabel'), /*#__PURE__*/_jsx(Tooltip, {
|
|
36
|
-
title: i18n('filtersImageMainColorsHint')
|
|
37
|
-
})]
|
|
38
|
-
}), /*#__PURE__*/_jsx(ColorPicker, {
|
|
39
|
-
multiple: true,
|
|
40
|
-
value: mainColorsValues,
|
|
41
|
-
colors: COLORS_OPTIONS,
|
|
42
|
-
onChange: updateMainColorFilter,
|
|
43
|
-
checkIsColorDisabled: function checkIsColorDisabled(color) {
|
|
44
|
-
return isDisabledFiltersAndSearch || isForcedFilters && isForcedOption({
|
|
45
|
-
filterKey: FILTER_SECTION_KEYS.IMAGE_MAIN_COLORS,
|
|
46
|
-
value: color,
|
|
47
|
-
defaultFilters: defaultFilters
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
})]
|
|
51
|
-
}), /*#__PURE__*/_jsxs(Styled.FilterWrapper, {
|
|
52
|
-
children: [/*#__PURE__*/_jsxs(Styled.FilterLabel, {
|
|
53
|
-
className: "filerobot-Explorer-Filters-filterLabel",
|
|
54
|
-
children: [i18n('mutualizedDominantColorLabel'), /*#__PURE__*/_jsx(Tooltip, {
|
|
55
|
-
title: i18n('filtersImageDominantColorHint')
|
|
56
|
-
})]
|
|
57
|
-
}), /*#__PURE__*/_jsx(ColorPicker, {
|
|
58
|
-
multiple: true,
|
|
59
|
-
value: dominateColorsValues,
|
|
60
|
-
colors: COLORS_OPTIONS,
|
|
61
|
-
onChange: updateDominateColorFilter,
|
|
62
|
-
checkIsColorDisabled: function checkIsColorDisabled(color) {
|
|
63
|
-
return isDisabledFiltersAndSearch || isForcedOption({
|
|
64
|
-
filterKey: FILTER_SECTION_KEYS.IMAGE_DOMINANT_COLORS,
|
|
65
|
-
value: color,
|
|
66
|
-
defaultFilters: defaultFilters
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
})]
|
|
70
|
-
})]
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
export default Colors;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
2
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
-
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
5
|
-
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
6
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
7
|
-
import { useContext } from 'react';
|
|
8
|
-
import { useExplorerI18n } from '../../../../hooks';
|
|
9
|
-
import FilterOption from '../common/FilterOptions';
|
|
10
|
-
import { FACES_OPTIONS, FILTER_SECTION_KEYS } from '../../Filters.constants';
|
|
11
|
-
import { isForcedOption, isSelectedFilterOption } from '../../Filters.utils';
|
|
12
|
-
import Styled from '../../Filters.styled';
|
|
13
|
-
import { FiltersContext } from '../../FiltersContext';
|
|
14
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
-
var Faces = function Faces(_ref) {
|
|
16
|
-
var onChange = _ref.onChange,
|
|
17
|
-
isForcedFilters = _ref.isForcedFilters,
|
|
18
|
-
isDisabledFiltersAndSearch = _ref.isDisabledFiltersAndSearch,
|
|
19
|
-
appliedFilters = _ref.appliedFilters;
|
|
20
|
-
var i18n = useExplorerI18n();
|
|
21
|
-
var _useContext = useContext(FiltersContext),
|
|
22
|
-
defaultFilters = _useContext.defaultFilters;
|
|
23
|
-
var _ref2 = (appliedFilters === null || appliedFilters === void 0 ? void 0 : appliedFilters[FILTER_SECTION_KEYS.IMAGE_FACES]) || {},
|
|
24
|
-
_ref2$value = _ref2.value,
|
|
25
|
-
facesValues = _ref2$value === void 0 ? [] : _ref2$value;
|
|
26
|
-
var updateFaceFilter = function updateFaceFilter(nextValue) {
|
|
27
|
-
var newValues = facesValues.includes(nextValue) ? facesValues.filter(function (val) {
|
|
28
|
-
return val !== nextValue;
|
|
29
|
-
}) : [].concat(_toConsumableArray(facesValues), [nextValue]);
|
|
30
|
-
onChange(FILTER_SECTION_KEYS.IMAGE_FACES, newValues);
|
|
31
|
-
};
|
|
32
|
-
return /*#__PURE__*/_jsxs(Styled.FilterWrapper, {
|
|
33
|
-
children: [/*#__PURE__*/_jsx(Styled.FilterLabel, {
|
|
34
|
-
className: "filerobot-Explorer-Filters-filterLabel",
|
|
35
|
-
children: i18n('mutualizedImagesWithFacesLabel')
|
|
36
|
-
}), /*#__PURE__*/_jsx(Styled.FilterOptions, {
|
|
37
|
-
className: "filerobot-Provider-Filters-filterOptionsWrapper",
|
|
38
|
-
col: 2,
|
|
39
|
-
gap: 12,
|
|
40
|
-
children: FACES_OPTIONS.map(function (_ref3) {
|
|
41
|
-
var value = _ref3.value,
|
|
42
|
-
i18nStr = _ref3.i18nStr,
|
|
43
|
-
Icon = _ref3.Icon;
|
|
44
|
-
return /*#__PURE__*/_jsx(FilterOption, {
|
|
45
|
-
icon: Icon && /*#__PURE__*/_jsx(Icon, {
|
|
46
|
-
size: 20
|
|
47
|
-
}),
|
|
48
|
-
label: i18n(i18nStr),
|
|
49
|
-
width: 155,
|
|
50
|
-
disabled: isDisabledFiltersAndSearch || isForcedFilters && isForcedOption({
|
|
51
|
-
filterKey: FILTER_SECTION_KEYS.IMAGE_FACES,
|
|
52
|
-
value: value,
|
|
53
|
-
defaultFilters: defaultFilters
|
|
54
|
-
}),
|
|
55
|
-
isSelected: isSelectedFilterOption(facesValues, value),
|
|
56
|
-
onClick: function onClick() {
|
|
57
|
-
return updateFaceFilter(value);
|
|
58
|
-
}
|
|
59
|
-
}, value);
|
|
60
|
-
})
|
|
61
|
-
})]
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
|
-
export default Faces;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
2
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
-
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
5
|
-
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
6
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
7
|
-
import { useContext } from 'react';
|
|
8
|
-
import { useExplorerI18n } from '../../../../hooks';
|
|
9
|
-
import { FILTER_SECTION_KEYS, ORIENTATION_OPTIONS } from '../../Filters.constants';
|
|
10
|
-
import FilterOption from '../common/FilterOptions';
|
|
11
|
-
import { isForcedOption, isSelectedFilterOption } from '../../Filters.utils';
|
|
12
|
-
import Styled from '../../Filters.styled';
|
|
13
|
-
import { FiltersContext } from '../../FiltersContext';
|
|
14
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
-
var Orientations = function Orientations(_ref) {
|
|
16
|
-
var onChange = _ref.onChange,
|
|
17
|
-
isForcedFilters = _ref.isForcedFilters,
|
|
18
|
-
isDisabledFiltersAndSearch = _ref.isDisabledFiltersAndSearch,
|
|
19
|
-
appliedFilters = _ref.appliedFilters;
|
|
20
|
-
var i18n = useExplorerI18n();
|
|
21
|
-
var _useContext = useContext(FiltersContext),
|
|
22
|
-
defaultFilters = _useContext.defaultFilters;
|
|
23
|
-
var _ref2 = (appliedFilters === null || appliedFilters === void 0 ? void 0 : appliedFilters[FILTER_SECTION_KEYS.IMAGE_ORIENTATIONS]) || {},
|
|
24
|
-
_ref2$value = _ref2.value,
|
|
25
|
-
orientationValues = _ref2$value === void 0 ? [] : _ref2$value;
|
|
26
|
-
var updateOrientationFilter = function updateOrientationFilter(nextValue) {
|
|
27
|
-
var newValues = orientationValues.includes(nextValue) ? orientationValues.filter(function (val) {
|
|
28
|
-
return val !== nextValue;
|
|
29
|
-
}) : [].concat(_toConsumableArray(orientationValues), [nextValue]);
|
|
30
|
-
onChange(FILTER_SECTION_KEYS.IMAGE_ORIENTATIONS, newValues);
|
|
31
|
-
};
|
|
32
|
-
return /*#__PURE__*/_jsxs(Styled.FilterWrapper, {
|
|
33
|
-
children: [/*#__PURE__*/_jsx(Styled.FilterLabel, {
|
|
34
|
-
className: "filerobot-Explorer-Filters-filterLabel",
|
|
35
|
-
children: i18n('mutualizedOrientationsLabel')
|
|
36
|
-
}), /*#__PURE__*/_jsx(Styled.FilterOptions, {
|
|
37
|
-
className: "filerobot-Provider-Filters-filterOptionsWrapper",
|
|
38
|
-
col: 2,
|
|
39
|
-
gap: 12,
|
|
40
|
-
children: ORIENTATION_OPTIONS.map(function (_ref3) {
|
|
41
|
-
var value = _ref3.value,
|
|
42
|
-
i18nStr = _ref3.i18nStr,
|
|
43
|
-
Icon = _ref3.Icon;
|
|
44
|
-
return /*#__PURE__*/_jsx(FilterOption, {
|
|
45
|
-
icon: Icon && /*#__PURE__*/_jsx(Icon, {
|
|
46
|
-
size: 20
|
|
47
|
-
}),
|
|
48
|
-
label: i18n(i18nStr),
|
|
49
|
-
width: 155,
|
|
50
|
-
disabled: isDisabledFiltersAndSearch || isForcedFilters && isForcedOption({
|
|
51
|
-
filterKey: FILTER_SECTION_KEYS.IMAGE_ORIENTATIONS,
|
|
52
|
-
value: value,
|
|
53
|
-
defaultFilters: defaultFilters
|
|
54
|
-
}),
|
|
55
|
-
isSelected: isSelectedFilterOption(orientationValues, value),
|
|
56
|
-
onClick: function onClick() {
|
|
57
|
-
return updateOrientationFilter(value);
|
|
58
|
-
}
|
|
59
|
-
}, value);
|
|
60
|
-
})
|
|
61
|
-
})]
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
|
-
export default Orientations;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
2
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
-
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
5
|
-
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
6
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
7
|
-
import { useContext } from 'react';
|
|
8
|
-
import { useExplorerI18n } from '../../../../hooks';
|
|
9
|
-
import { FILTER_SECTION_KEYS, RESOLUTION_OPTIONS } from '../../Filters.constants';
|
|
10
|
-
import { isForcedOption, isSelectedFilterOption } from '../../Filters.utils';
|
|
11
|
-
import { FiltersContext } from '../../FiltersContext';
|
|
12
|
-
import FilterOption from '../common/FilterOptions';
|
|
13
|
-
import Styled from '../../Filters.styled';
|
|
14
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
-
var Resolutions = function Resolutions(_ref) {
|
|
16
|
-
var onChange = _ref.onChange,
|
|
17
|
-
isForcedFilters = _ref.isForcedFilters,
|
|
18
|
-
isDisabledFiltersAndSearch = _ref.isDisabledFiltersAndSearch,
|
|
19
|
-
appliedFilters = _ref.appliedFilters;
|
|
20
|
-
var i18n = useExplorerI18n();
|
|
21
|
-
var _useContext = useContext(FiltersContext),
|
|
22
|
-
defaultFilters = _useContext.defaultFilters;
|
|
23
|
-
var _ref2 = (appliedFilters === null || appliedFilters === void 0 ? void 0 : appliedFilters[FILTER_SECTION_KEYS.IMAGE_RESOLUTIONS]) || {},
|
|
24
|
-
_ref2$value = _ref2.value,
|
|
25
|
-
resolutionValues = _ref2$value === void 0 ? [] : _ref2$value;
|
|
26
|
-
var updateResolutionFilter = function updateResolutionFilter(nextValue) {
|
|
27
|
-
var newValues = resolutionValues.includes(nextValue) ? resolutionValues.filter(function (val) {
|
|
28
|
-
return val !== nextValue;
|
|
29
|
-
}) : [].concat(_toConsumableArray(resolutionValues), [nextValue]);
|
|
30
|
-
onChange(FILTER_SECTION_KEYS.IMAGE_RESOLUTIONS, newValues);
|
|
31
|
-
};
|
|
32
|
-
return /*#__PURE__*/_jsxs(Styled.FilterWrapper, {
|
|
33
|
-
display: "flex",
|
|
34
|
-
children: [/*#__PURE__*/_jsx(Styled.FilterLabel, {
|
|
35
|
-
className: "filerobot-Explorer-Filters-filterLabel",
|
|
36
|
-
children: i18n('mutualizedResolutionLabel')
|
|
37
|
-
}), /*#__PURE__*/_jsx(Styled.FilterOptions, {
|
|
38
|
-
className: "filerobot-Provider-Filters-filterOptionsWrapper",
|
|
39
|
-
col: 3,
|
|
40
|
-
gap: 12,
|
|
41
|
-
children: RESOLUTION_OPTIONS.map(function (_ref3) {
|
|
42
|
-
var value = _ref3.value,
|
|
43
|
-
i18nStr = _ref3.i18nStr,
|
|
44
|
-
Icon = _ref3.Icon;
|
|
45
|
-
return /*#__PURE__*/_jsx(FilterOption, {
|
|
46
|
-
icon: Icon && /*#__PURE__*/_jsx(Icon, {
|
|
47
|
-
size: 20
|
|
48
|
-
}),
|
|
49
|
-
label: i18n(i18nStr),
|
|
50
|
-
width: 99,
|
|
51
|
-
disabled: isDisabledFiltersAndSearch || isForcedFilters && isForcedOption({
|
|
52
|
-
filterKey: FILTER_SECTION_KEYS.IMAGE_RESOLUTIONS,
|
|
53
|
-
value: value,
|
|
54
|
-
defaultFilters: defaultFilters
|
|
55
|
-
}),
|
|
56
|
-
isSelected: isSelectedFilterOption(resolutionValues, value),
|
|
57
|
-
onClick: function onClick() {
|
|
58
|
-
return updateResolutionFilter(value);
|
|
59
|
-
}
|
|
60
|
-
}, value);
|
|
61
|
-
})
|
|
62
|
-
})]
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
export default Resolutions;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TooltipV2 } from '@scaleflex/ui/core';
|
|
2
|
-
import Styled from '../../Filters.styled';
|
|
3
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
var Tooltip = function Tooltip(_ref) {
|
|
5
|
-
var title = _ref.title;
|
|
6
|
-
return /*#__PURE__*/_jsx(TooltipV2, {
|
|
7
|
-
arrow: true,
|
|
8
|
-
position: "top",
|
|
9
|
-
size: "sm",
|
|
10
|
-
title: title,
|
|
11
|
-
children: /*#__PURE__*/_jsx(Styled.InfoIcon, {})
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
export default Tooltip;
|