@reltio/components 1.4.874 → 1.4.878
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/HOCs/index.js +2 -10
- package/HOCs/withAsyncMount/withAsyncMount.js +6 -27
- package/HOCs/withTooltip/propTypes.js +5 -10
- package/HOCs/withTooltip/withTooltip.js +11 -35
- package/components/ArrowExpandButton/ArrowExpandButton.js +8 -13
- package/components/ArrowExpandButton/styles.js +2 -5
- package/components/AttributeListItem/AttrTypeIcon.js +15 -20
- package/components/AttributeListItem/AttributeListItem.js +31 -56
- package/components/AttributeListItem/styles.js +2 -5
- package/components/AttributeSelector/AttributeSelector.js +27 -51
- package/components/AttributeSelector/styles.js +3 -6
- package/components/AutoSizeList/AutoSizeList.js +15 -39
- package/components/AutoSizeList/styles.js +2 -5
- package/components/AvatarWithFallback/AvatarWithFallback.js +7 -31
- package/components/BasicTableView/BasicTable/BasicTable.js +45 -70
- package/components/BasicTableView/BasicTable/HOCs/withFilter.js +10 -15
- package/components/BasicTableView/BasicTable/HOCs/withFilterAtBottom.js +7 -12
- package/components/BasicTableView/BasicTable/HOCs/withTableContext.js +5 -26
- package/components/BasicTableView/BasicTable/cell-value-renderers/BlobRenderer.js +7 -12
- package/components/BasicTableView/BasicTable/cell-value-renderers/DefaultCellValueRenderer.js +17 -22
- package/components/BasicTableView/BasicTable/cell-value-renderers/index.js +1 -8
- package/components/BasicTableView/BasicTable/cell-value-renderers/styles.js +4 -7
- package/components/BasicTableView/BasicTable/contexts/RowCollapseContext.js +3 -9
- package/components/BasicTableView/BasicTable/contexts/TableContext.js +3 -9
- package/components/BasicTableView/BasicTable/contexts/index.js +1 -5
- package/components/BasicTableView/BasicTable/helpers/dataHelpers.js +37 -45
- package/components/BasicTableView/BasicTable/helpers/defaultGetRowCellHeight.js +4 -6
- package/components/BasicTableView/BasicTable/helpers/defaultRenderRowCell.js +3 -8
- package/components/BasicTableView/BasicTable/helpers/nestedHelpers.js +15 -23
- package/components/BasicTableView/BasicTable/hooks/index.js +2 -10
- package/components/BasicTableView/BasicTable/hooks/useBasicTableCellRenderer.js +21 -45
- package/components/BasicTableView/BasicTable/hooks/useCollapsibleTableRows.js +18 -20
- package/components/BasicTableView/BasicTable/hooks/useDynamicRowCellHeight.js +10 -12
- package/components/BasicTableView/BasicTableHeader/ColumnsSettings/ColumnListItem.js +18 -23
- package/components/BasicTableView/BasicTableHeader/ColumnsSettings/ColumnsSettings.js +39 -63
- package/components/BasicTableView/BasicTableHeader/ColumnsSettings/columnHelpers.js +16 -22
- package/components/BasicTableView/BasicTableHeader/ColumnsSettings/styles.js +2 -5
- package/components/BasicTableView/BasicTableHeader/FilterButton/FilterButton.js +16 -21
- package/components/BasicTableView/BasicTableHeader/FilterButton/styles.js +2 -5
- package/components/BasicTableView/BasicTablePagination/BasicTablePagination.js +28 -52
- package/components/BasicTableView/BasicTablePagination/styles.js +2 -5
- package/components/BasicTableView/CollapseRowButton/CollapseRowButton.js +13 -37
- package/components/BasicTableView/CollapseRowButton/styles.js +2 -5
- package/components/BasicTableView/ColumnFilter/ColumnFilter.js +39 -63
- package/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.js +24 -29
- package/components/BasicTableView/ColumnFilter/FilterChip/styles.js +3 -6
- package/components/BasicTableView/ColumnFilter/helpers.js +6 -11
- package/components/BasicTableView/ColumnFilter/styles.js +4 -7
- package/components/BasicTableView/RowCellAutoSizer/RowCellAutoSizer.js +13 -37
- package/components/BasicTableView/index.js +17 -47
- package/components/BasicTableView/types/index.js +1 -2
- package/components/BasicTableView/viewState/basicTableViewState.js +25 -30
- package/components/BasicView/BasicView.js +10 -34
- package/components/BasicView/styles.js +2 -5
- package/components/BasicViewContent/BasicViewContent.js +6 -11
- package/components/BasicViewContent/styles.js +2 -5
- package/components/BasicViewHeader/BasicViewHeader.js +8 -13
- package/components/BasicViewHeader/styles.js +2 -5
- package/components/ClickAwayProvider/ClickAwayProvider.js +4 -9
- package/components/CollaborationItem/Avatar/Avatar.js +8 -15
- package/components/CollaborationItem/Avatar/styles.js +2 -5
- package/components/CollaborationItem/CollaborationItem.js +16 -41
- package/components/CollaborationItem/Comment/Comment.js +39 -65
- package/components/CollaborationItem/Comment/styles.js +2 -5
- package/components/CollaborationItem/CommentContent/CommentContent.js +13 -39
- package/components/CollaborationItem/CommentContent/styles.js +2 -5
- package/components/CollaborationItem/CommentTarget/CommentTarget.js +49 -75
- package/components/CollaborationItem/CommentTarget/styles.js +2 -5
- package/components/CollaborationItem/RepliedComment/RepliedComment.js +20 -27
- package/components/CollaborationItem/RepliedComment/styles.js +2 -5
- package/components/CollaborationItem/SendMessageArea/SendMessageArea.js +39 -65
- package/components/CollaborationItem/SendMessageArea/styles.js +2 -5
- package/components/CollaborationItem/TextFieldWithMentions/TextFieldWithMentions.js +12 -38
- package/components/CollaborationItem/TextFieldWithMentions/styles.js +2 -5
- package/components/CollaborationItem/styles.js +2 -5
- package/components/CollaborationItem/utils/index.js +5 -15
- package/components/CollaborationPopup/CollaborationPopup.js +24 -50
- package/components/CollaborationPopup/styles.js +2 -5
- package/components/CollapseButton/CollapseButton.js +10 -15
- package/components/CollapseButton/styles.js +2 -5
- package/components/ColorBar/ColorBar.js +9 -33
- package/components/ColorBar/styles.js +2 -5
- package/components/CommentsContainer/CommentsContainer.js +18 -42
- package/components/CommentsContainer/buttons/AddCommentButton.js +11 -16
- package/components/CommentsContainer/buttons/CommentButton.js +12 -17
- package/components/CommentsContainer/buttons/styles.js +2 -5
- package/components/CommentsContainer/styles.js +4 -7
- package/components/ConfigureColumnsPopup/ConfigureColumnsPopup.js +46 -72
- package/components/ConfigureColumnsPopup/styles.js +3 -5
- package/components/ConfirmDeleteDialog/ConfirmDeleteDialog.js +14 -19
- package/components/ConfirmationDialog/ConfirmationDialog.js +21 -26
- package/components/ConfirmationDialog/styles.js +3 -6
- package/components/ConnectionRelationTypeSelector/ConnectionRelationTypeSelector.js +20 -44
- package/components/DataTypeValue/DataTypeValue.js +18 -23
- package/components/DateIntervalSelector/DateIntervalSelector.js +22 -27
- package/components/DateIntervalSelector/styles.js +2 -5
- package/components/DateRangePicker/DateRangePicker.js +38 -62
- package/components/DateRangePicker/styles.js +2 -5
- package/components/Drawer/Drawer.js +8 -32
- package/components/DropDownMenuButton/DropDownMenuButton.js +19 -43
- package/components/DropDownMenuButton/MenuItemRenderer.js +13 -37
- package/components/DropDownMenuButton/styles.js +4 -7
- package/components/DropDownSelector/DropDownSelector.js +39 -63
- package/components/DropDownSelector/components/Menu.js +13 -18
- package/components/DropDownSelector/components/SingleValue.js +9 -15
- package/components/DropDownSelector/components/styles.js +3 -6
- package/components/DropDownSelector/styles.js +5 -8
- package/components/EmptySearchResult/NoData.js +6 -13
- package/components/EmptySearchResult/NoMessageComponent.js +9 -14
- package/components/EmptySearchResult/NoResults.js +5 -12
- package/components/EmptySearchResult/index.js +2 -7
- package/components/EmptySearchResult/styles.js +2 -5
- package/components/EmptyState/EmptyState.js +23 -29
- package/components/EmptyState/styles.js +2 -5
- package/components/EntityAvatar/EntityAvatar.js +15 -20
- package/components/EntityAvatar/no-photo.svg.js +1 -4
- package/components/EntityTypeBadge/EntityTypeBadge.js +15 -20
- package/components/EntityTypeBadge/styles.js +3 -5
- package/components/EntityTypeIcon/EntityTypeIcon.js +7 -12
- package/components/EntityTypesSelector/EntityTypesSelector.js +54 -78
- package/components/EntityTypesSelector/ListLabel/ListLabel.js +20 -44
- package/components/EntityTypesSelector/ListLabel/helpers.js +3 -8
- package/components/EntityTypesSelector/ListLabel/styles.js +2 -5
- package/components/EntityTypesSelector/SelectEntityTypesList.js +13 -37
- package/components/EntityTypesSelector/styles.js +2 -5
- package/components/EntityUriLink/EntityUriLink.js +14 -35
- package/components/ErrorBoundary/ErrorBoundary.js +3 -8
- package/components/ErrorPopup/ErrorPopup.js +14 -19
- package/components/ErrorPopup/styles.js +2 -5
- package/components/ErrorWrapper/ErrorMessage.js +7 -12
- package/components/ErrorWrapper/ErrorWrapper.js +11 -35
- package/components/ErrorWrapper/styles.js +2 -5
- package/components/ExpandableSearchInput/ExpandableSearchInput.js +19 -45
- package/components/ExpandableSearchInput/styles.js +2 -5
- package/components/ExpandedValueTooltip/ExpandedValueTooltip.js +22 -47
- package/components/FacetViewHeader/FacetViewHeader.js +7 -12
- package/components/FacetViewHeader/styles.js +2 -5
- package/components/FlipCard/FlipCard.js +11 -35
- package/components/FlipCard/styles.js +2 -5
- package/components/FlipCard/types/index.js +1 -2
- package/components/HideOnShrink/HideOnShrink.js +9 -14
- package/components/HierarchicalAttributeTooltip/HierarchicalAttributeTooltip.js +13 -18
- package/components/HierarchicalAttributeTooltip/styles.js +4 -7
- package/components/Highlighter/Highlighter.js +6 -11
- package/components/Highlighter/styles.js +2 -5
- package/components/Image/CheckedIcon/CheckedIcon.js +9 -16
- package/components/Image/CheckedIcon/styles.js +2 -5
- package/components/Image/Image.js +18 -43
- package/components/Image/ImageActionsOverlay/ImageActionsOverlay.js +30 -54
- package/components/Image/ImageActionsOverlay/styles.js +2 -5
- package/components/Image/styles.js +2 -5
- package/components/ImageAttributesGallery/GalleryView/GalleryView.js +13 -39
- package/components/ImageAttributesGallery/GalleryView/styles.js +2 -5
- package/components/ImageAttributesGallery/HeaderLeft/HeaderLeft.js +7 -14
- package/components/ImageAttributesGallery/HeaderLeft/styles.js +2 -5
- package/components/ImageAttributesGallery/HeaderRight/HeaderRight.js +17 -24
- package/components/ImageAttributesGallery/HeaderRight/styles.js +2 -5
- package/components/ImageAttributesGallery/ImageAttributesGallery.js +32 -56
- package/components/ImageDetailsView/ImageDetailsView.js +13 -39
- package/components/ImageDetailsView/ImageDetailsViewCarousel/ImageDetailsViewCarousel.js +18 -44
- package/components/ImageDetailsView/ImageDetailsViewCarousel/Thumbnails/Thumbnails.js +23 -49
- package/components/ImageDetailsView/ImageDetailsViewCarousel/Thumbnails/styles.js +2 -5
- package/components/ImageDetailsView/ImageDetailsViewCarousel/styles.js +2 -5
- package/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.js +27 -53
- package/components/ImageDetailsView/ImageDetailsViewSidebar/styles.js +2 -5
- package/components/ImageDetailsView/MetaInfo/MetaInfo.js +20 -27
- package/components/ImageDetailsView/MetaInfoForm/MetaInfoForm.js +20 -27
- package/components/ImageDetailsView/MetaInfoForm/styles.js +2 -5
- package/components/ImageDetailsView/MetaInfoHeader/MetaInfoHeader.js +17 -43
- package/components/ImageDetailsView/MetaInfoHeader/styles.js +2 -5
- package/components/ImageDetailsView/MetaInfoList/MetaInfoItem/MetaInfoItem.js +8 -15
- package/components/ImageDetailsView/MetaInfoList/MetaInfoItem/styles.js +2 -5
- package/components/ImageDetailsView/MetaInfoList/MetaInfoList.js +16 -23
- package/components/ImageDetailsView/MetaInfoList/styles.js +2 -5
- package/components/ImageDetailsView/constants/index.js +13 -19
- package/components/ImageDetailsView/helpers/index.js +24 -36
- package/components/ImageDetailsView/hooks/useEditMetaInfo.js +21 -25
- package/components/ImageDetailsView/styles.js +2 -5
- package/components/ImageDetailsView/theme/index.js +4 -7
- package/components/ImageDetailsView/types/index.js +1 -2
- package/components/ImageGalleryDialog/ImageGalleryDialog.js +31 -57
- package/components/ImageGalleryDialog/styles.js +2 -5
- package/components/ImportButton/ImportButton.js +17 -23
- package/components/ImportButton/styles.js +2 -5
- package/components/LightArrowTooltip/LightArrowTooltip.js +6 -11
- package/components/LightArrowTooltip/styles.js +2 -5
- package/components/LinearLoadIndicator/LinearLoadIndicator.js +8 -13
- package/components/LinearLoadIndicator/styles.js +2 -5
- package/components/Link/Link.js +5 -10
- package/components/Link/styles.js +2 -5
- package/components/LoadingSpinner/LoadingSpinner.js +6 -13
- package/components/LoadingSpinner/SpinnerSmall.gif.js +1 -4
- package/components/Marginator/Marginator.js +3 -8
- package/components/MatchRulesBlock/MatchRulesBadge/MatchRulesBadge.js +10 -34
- package/components/MatchRulesBlock/MatchRulesBadge/styles.js +3 -5
- package/components/MatchRulesBlock/MatchRulesBlock.js +13 -18
- package/components/MatchRulesBlock/MatchRulesTitle.js +4 -9
- package/components/MatchRulesBlock/MatchRulesTooltip/MatchRulesTooltip.js +9 -14
- package/components/MatchRulesBlock/MatchRulesTooltip/styles.js +3 -5
- package/components/MatchRulesBlock/SimpleMatchRules/SimpleMatchRules.js +10 -15
- package/components/MatchRulesBlock/SimpleMatchRules/styles.js +3 -5
- package/components/MatchRulesBlock/SimpleMatchRulesBlock/SimpleMatchRulesBlock.js +18 -43
- package/components/MatchRulesBlock/SimpleMatchRulesBlock/styles.js +3 -5
- package/components/MatchRulesBlock/SimpleMatchRulesBuilder/SimpleMatchRulesBuilder.js +11 -16
- package/components/MatchRulesBlock/TransitiveMatchBlock/TransitiveMatchBlock.js +15 -40
- package/components/MatchRulesBlock/TransitiveMatchBlock/styles.js +3 -5
- package/components/MatchRulesBlock/TransitiveMatchRules/TransitiveMatchRule.js +14 -38
- package/components/MatchRulesBlock/TransitiveMatchRules/styles.js +3 -5
- package/components/MatchRulesBlock/TransitiveMatchRulesTooltip/TransitiveMatchRulesTooltip.js +9 -14
- package/components/MatchRulesBlock/TransitiveMatchRulesTooltip/styles.js +3 -5
- package/components/MatchRulesBlock/types/index.js +1 -2
- package/components/ModeSwitcher/ModeSwitcher.js +13 -18
- package/components/ModeSwitcher/styles.js +5 -7
- package/components/ModeSwitcherSelect/ModeSwitcherSelect.js +25 -32
- package/components/ModeSwitcherSelect/index.js +1 -5
- package/components/ModeSwitcherSelect/styles.js +2 -5
- package/components/MultipleInput/MultipleInput.js +33 -57
- package/components/MultipleInput/styles.js +2 -5
- package/components/MultipliableSelect/MultipliableSelect.js +24 -29
- package/components/MultipliableSelect/styles.js +2 -5
- package/components/Popper/Popper.js +25 -49
- package/components/Popper/styles.js +2 -5
- package/components/Popper/utils.js +4 -8
- package/components/PopupWithArrow/PopupWithArrow.js +16 -23
- package/components/PopupWithArrow/styles.js +2 -5
- package/components/PotentialMatchReviewCard/PotentialMatchReviewCard.js +31 -55
- package/components/PotentialMatchReviewCard/styles.js +2 -5
- package/components/ProfileBand/ProfileBand.js +47 -71
- package/components/ProfileBand/styles.js +3 -5
- package/components/ProfileBandNavigation/ProfileBandNavigation.js +8 -14
- package/components/ProfileBandNavigation/ProfileBandNavigationWidget.js +18 -25
- package/components/ProfileBandNavigation/hooks/useSearchNavigation.js +42 -64
- package/components/ProfileBandNavigation/hooks/useSearchNavigationVisibility.js +8 -14
- package/components/ProfileBandNavigation/index.js +1 -5
- package/components/ProfileBandNavigation/searchProviders/GraphSearchProvider.js +6 -9
- package/components/ProfileBandNavigation/searchProviders/MainSearchProvider.js +6 -9
- package/components/ProfileBandNavigation/searchProviders/SearchProvider.js +1 -2
- package/components/ProfileBandNavigation/searchProviders/SearchProviderFactory.js +5 -9
- package/components/ProfileBandNavigation/styles.js +2 -5
- package/components/ProfileBandNavigation/types/index.js +1 -2
- package/components/ProfileCard/ProfileCard.js +35 -59
- package/components/ProfileCard/styles.js +3 -5
- package/components/QueryBuilderRow/QueryBuilderRow.js +39 -63
- package/components/QueryBuilderRow/components/ReadOnlyFilter.js +11 -16
- package/components/QueryBuilderRow/components/ReadOnlyLogicOperator.js +11 -16
- package/components/QueryBuilderRow/components/styles.js +3 -5
- package/components/QueryBuilderRow/styles.js +3 -5
- package/components/QueryBuilderRowsGroup/QueryBuilderRowsGroup.js +29 -53
- package/components/ReactSelect/AsyncSelect.js +3 -8
- package/components/ReactSelect/CreatableSelect.js +3 -8
- package/components/ReactSelect/MultiSelect/MultiSelect.js +98 -122
- package/components/ReactSelect/MultiSelect/components/Option.js +30 -36
- package/components/ReactSelect/MultiSelect/components/index.js +3 -8
- package/components/ReactSelect/MultiSelect/index.js +2 -7
- package/components/ReactSelect/Select.js +3 -8
- package/components/ReactSelect/commonComponents/ClearIndicator.js +13 -19
- package/components/ReactSelect/commonComponents/Control.js +22 -28
- package/components/ReactSelect/commonComponents/DropdownIndicator.js +13 -19
- package/components/ReactSelect/commonComponents/GroupHeading.js +10 -16
- package/components/ReactSelect/commonComponents/Menu.js +14 -20
- package/components/ReactSelect/commonComponents/MultiValue.js +14 -20
- package/components/ReactSelect/commonComponents/NoOptionsMessage.js +7 -13
- package/components/ReactSelect/commonComponents/Option.js +29 -35
- package/components/ReactSelect/commonComponents/Placeholder.js +8 -14
- package/components/ReactSelect/commonComponents/SingleValue.js +8 -14
- package/components/ReactSelect/commonComponents/ValueContainer.js +8 -14
- package/components/ReactSelect/commonComponents/index.js +23 -28
- package/components/ReactSelect/optionFilters.js +5 -7
- package/components/ReactSelect/styles.js +2 -4
- package/components/ReactSelect/withMuiSkin.js +51 -57
- package/components/ReactSortableTree/index.js +8 -30
- package/components/ReactSortableTree/node-renderer-default.js +43 -48
- package/components/ReactSortableTree/nodeRendererDefaultStyle.js +2 -5
- package/components/ReactSortableTree/placeholder-renderer-default.js +9 -14
- package/components/ReactSortableTree/placeholderRendererDefaultStyle.js +2 -5
- package/components/ReactSortableTree/react-sortable-tree.js +115 -137
- package/components/ReactSortableTree/reactSortableTreeStyles.js +1 -5
- package/components/ReactSortableTree/tree-node.js +29 -53
- package/components/ReactSortableTree/tree-placeholder.js +13 -37
- package/components/ReactSortableTree/treeNodeStyle.js +2 -5
- package/components/ReactSortableTree/utils/classnames.js +1 -4
- package/components/ReactSortableTree/utils/default-handlers.js +3 -8
- package/components/ReactSortableTree/utils/dnd-manager.js +13 -15
- package/components/ReactSortableTree/utils/generic-utils.js +1 -5
- package/components/ReactSortableTree/utils/memoized-tree-data-utils.js +4 -7
- package/components/ReactSortableTree/utils/tree-data-utils.js +20 -40
- package/components/ReltioGridLayout/ReltioGridLayout.js +40 -64
- package/components/ReltioGridLayout/helpers.js +11 -20
- package/components/ReltioGridLayout/icons/ResizeIcon.svg.js +1 -4
- package/components/ReltioGridLayout/styles.js +5 -8
- package/components/ReltioMap/EntityMarker/EntityMarker.js +28 -52
- package/components/ReltioMap/EntityMarker/icons/marker-hover.inline.svg.js +1 -4
- package/components/ReltioMap/EntityMarker/icons/marker.inline.svg.js +1 -4
- package/components/ReltioMap/EntityMarker/styles.js +2 -5
- package/components/ReltioMap/MapControls/MapControlContainer/MapControlContrainer.js +7 -11
- package/components/ReltioMap/MapControls/TopCenterMapControls/TopCenterMapControls.js +9 -16
- package/components/ReltioMap/MapControls/TopCenterMapControls/styles.js +2 -5
- package/components/ReltioMap/MapControls/TopRightMapControls/TopRightMapControls.js +20 -27
- package/components/ReltioMap/MapControls/TopRightMapControls/styles.js +2 -5
- package/components/ReltioMap/constants.js +3 -6
- package/components/ReltioMap/helpers/index.js +10 -17
- package/components/ReltioMap/index.js +48 -74
- package/components/ReltioMap/styles.js +2 -5
- package/components/ReltioMap/types.js +1 -2
- package/components/RequiredMark/RequiredMark.js +5 -10
- package/components/RequiredMark/styles.js +2 -5
- package/components/ResizablePanes/ResizablePanes.js +24 -48
- package/components/ResizablePanes/styles.js +3 -6
- package/components/Score/DQLabel.js +7 -12
- package/components/Score/Score.js +16 -21
- package/components/Score/ScoreLabel.js +14 -19
- package/components/Score/styles.js +3 -6
- package/components/ScrollableTabs/ScrollableTabs.js +12 -17
- package/components/ScrollableTabs/styles.js +2 -5
- package/components/SearchInput/SearchInput.js +19 -43
- package/components/SearchInput/WhiteSearchInput.js +6 -11
- package/components/SearchInput/styles.js +2 -5
- package/components/SelectionPopup/SelectionPopup.js +26 -31
- package/components/SelectionPopup/SelectionPopupPopper/SelectionPopupPopper.js +26 -31
- package/components/SelectionPopup/helpers.js +14 -17
- package/components/SelectionPopup/styles.js +3 -5
- package/components/SelectorWithOnlyOptionAutoSelect/SelectorWithOnlyOptionAutoSelect.js +21 -45
- package/components/SelectorWithOnlyOptionAutoSelect/styles.js +2 -5
- package/components/SideIconPanel/SideButtonsPanel.js +8 -15
- package/components/SideIconPanel/styles.js +3 -6
- package/components/SidePanel/SidePanel.js +6 -13
- package/components/SidePanel/SidePanelContentHeader/SidePanelContentHeader.js +14 -21
- package/components/SidePanel/SidePanelContentHeader/styles.js +2 -5
- package/components/SidePanel/styles.js +2 -5
- package/components/SimpleDropDownSelector/DropDownPlaceholder.js +10 -15
- package/components/SimpleDropDownSelector/DropDownValue.js +11 -16
- package/components/SimpleDropDownSelector/SimpleDropDownSelector.js +8 -32
- package/components/SimpleDropDownSelector/styles.js +3 -5
- package/components/SimpleInput/SimpleInput.js +16 -40
- package/components/SmallIconButton/SmallIconButton.js +6 -30
- package/components/SmallIconButton/index.js +4 -11
- package/components/SourceIcon/SourceIcon.js +9 -14
- package/components/Spacer/Spacer.js +3 -8
- package/components/Title/Title.js +17 -22
- package/components/Title/styles.js +2 -5
- package/components/UploadFileButton/UploadFileButton.js +45 -69
- package/components/UploadFileButton/styles.js +2 -5
- package/components/UploadImageDialog/DividerWithText/DividerWithText.js +11 -18
- package/components/UploadImageDialog/DividerWithText/styles.js +2 -5
- package/components/UploadImageDialog/ErrorSnackbar/ErrorSnackbar.js +9 -16
- package/components/UploadImageDialog/ErrorSnackbar/styles.js +2 -5
- package/components/UploadImageDialog/ImageByUrlField/ImageByUrlField.js +18 -44
- package/components/UploadImageDialog/ImageByUrlField/styles.js +2 -5
- package/components/UploadImageDialog/SelectImageButton/SelectImageButton.js +9 -16
- package/components/UploadImageDialog/TargetBox/TargetBox.js +20 -27
- package/components/UploadImageDialog/TargetBox/styles.js +2 -5
- package/components/UploadImageDialog/UploadImageDialog.js +38 -64
- package/components/UploadImageDialog/constants/index.js +2 -5
- package/components/UploadImageDialog/styles.js +2 -5
- package/components/UserSelector/UserSelector.js +24 -48
- package/components/UserSelector/styles.js +3 -6
- package/components/ValueChip/ValueChip.js +16 -21
- package/components/ValueChip/styles.js +3 -6
- package/components/VerticalDivider/VerticalDivider.js +6 -11
- package/components/VerticalHeadingsTable/VerticalHeadingsTable.js +19 -43
- package/components/ViewMoreToggle/ViewMoreToggle.js +15 -20
- package/components/ViewMoreToggle/styles.js +2 -5
- package/components/VirtualGroupedList/VirtualGroupedList.js +41 -66
- package/components/VirtualGroupedList/helpers.js +13 -17
- package/components/VirtualGroupedList/styles.js +2 -5
- package/components/activityLog/ActivityExportButton/ActivityExportButton.js +35 -59
- package/components/activityLog/ActivityExportButton/styles.js +2 -5
- package/components/activityLog/ActivityFilterEditor/ActivityFilterEditor.js +35 -59
- package/components/activityLog/ActivityFilterEditor/ActivitySelector.js +18 -23
- package/components/activityLog/ActivityFilterEditor/DateRangeSelector.js +41 -65
- package/components/activityLog/ActivityFilterEditor/SourceSelector.js +19 -24
- package/components/activityLog/ActivityFilterEditor/styles.js +3 -6
- package/components/activityLog/ActivityFilterEditor/utils/getSelectorActivityTypes.js +24 -28
- package/components/activityLog/ActivityLog/ActivityLog.js +29 -53
- package/components/activityLog/ActivityLog/helpers.js +9 -16
- package/components/activityLog/ActivityLog/items/ActivityItem/ActivityItem.js +18 -23
- package/components/activityLog/ActivityLog/items/ActivityItem/styles.js +2 -5
- package/components/activityLog/ActivityLog/items/GroupItem/GroupItem.js +14 -19
- package/components/activityLog/ActivityLog/items/GroupItem/styles.js +2 -5
- package/components/activityLog/ActivityLog/styles.js +2 -5
- package/components/activityLog/ActivityLogFilter/ActivityLogFilter.js +15 -39
- package/components/activityLog/ActivityLogFilter/ActivityLogFilterHeader.js +17 -22
- package/components/activityLog/ActivityLogFilter/helpers.js +19 -26
- package/components/activityLog/ActivityLogFilter/styles.js +2 -5
- package/components/activityLog/activities/ActivitiesFactory.js +98 -103
- package/components/activityLog/activities/ActivityTitle/ActivityTitle.js +7 -12
- package/components/activityLog/activities/ActivityTitle/styles.js +2 -5
- package/components/activityLog/activities/CommentActivity.js +4 -9
- package/components/activityLog/activities/EntityObject/EntityObject.js +10 -15
- package/components/activityLog/activities/EntityObject/styles.js +2 -5
- package/components/activityLog/activities/GroupActivity.js +12 -17
- package/components/activityLog/activities/MergeActivity.js +9 -14
- package/components/activityLog/activities/MoreItemsLink/MoreItemsLink.js +7 -14
- package/components/activityLog/activities/PotentialMatchActivity.js +8 -13
- package/components/activityLog/activities/ProfileActivity.js +9 -14
- package/components/activityLog/activities/RelationActivity.js +9 -14
- package/components/activityLog/activities/RelationObject/RelationObject.js +11 -16
- package/components/activityLog/activities/RelationObject/styles.js +2 -5
- package/components/activityLog/activities/SearchActivity.js +18 -42
- package/components/activityLog/activities/SimpleActivity.js +13 -18
- package/components/activityLog/activities/fields/DeltaField.js +25 -30
- package/components/activityLog/activities/fields/PotentialMatchField.js +26 -31
- package/components/activityLog/activities/fields/commonStyles.js +2 -5
- package/components/activityLog/activities/fields/styles.js +2 -5
- package/components/activityLog/activities/records/CollapsibleActivityRecords.js +9 -16
- package/components/activityLog/activities/records/EntityRecord.js +24 -29
- package/components/activityLog/activities/records/PotentialMatchRecord.js +10 -15
- package/components/activityLog/activities/records/RecordUpdates.js +12 -17
- package/components/activityLog/activities/records/RelationRecord.js +13 -18
- package/components/activityLog/activities/records/styles.js +2 -5
- package/components/activityLog/activities/styles.js +2 -5
- package/components/activityLog/contexts/CollapsibleItemsContext/index.js +8 -32
- package/components/activityLog/hooks/useActivitiesLoader.js +8 -12
- package/components/activityLog/hooks/useProfileActivitiesLoader.js +8 -12
- package/components/activityLog/hooks/useReadableSearchState.js +18 -41
- package/components/activityLog/index.js +5 -25
- package/components/activityLog/types/ActivitiesFilter.js +1 -2
- package/components/activityLog/types/ActivityData.js +1 -2
- package/components/activityLog/types/ActivityDelta.js +1 -2
- package/components/activityLog/types/ActivityItem.js +1 -2
- package/components/activityLog/types/ActivityTypes.js +2 -5
- package/components/activityLog/types/DeltaTypes.js +2 -5
- package/components/activityLog/types/DeltaValue.js +1 -2
- package/components/activityLog/types/index.js +2 -7
- package/components/activityLog/utils/activities.js +43 -54
- package/components/activityLog/utils/filters.js +23 -30
- package/components/attributes/AttributesView/AttributesView.js +7 -12
- package/components/attributes/AttributesView/index.js +7 -13
- package/components/attributes/BranchDecorator/BranchDecorator.js +7 -12
- package/components/attributes/BranchDecorator/styles.js +2 -5
- package/components/attributes/ImageAttributesLine/ImageAttributesLine.js +41 -65
- package/components/attributes/ImageAttributesLine/constants.js +6 -9
- package/components/attributes/ImageAttributesLine/index.js +1 -8
- package/components/attributes/ImageAttributesLine/styles.js +4 -7
- package/components/attributes/OvIcon/OvIcon.js +18 -24
- package/components/attributes/OvIcon/index.js +1 -8
- package/components/attributes/OvIcon/styles.js +3 -6
- package/components/attributes/PivotingAttributes/PivotingTooltip.js +24 -50
- package/components/attributes/PivotingAttributes/PivotingTooltipContent.js +31 -57
- package/components/attributes/PivotingAttributes/helpers.js +16 -22
- package/components/attributes/PivotingAttributes/styles.js +3 -6
- package/components/attributes/editMode/AttributesFactory/Attribute.js +3 -8
- package/components/attributes/editMode/AttributesFactory/AttributesFactory.js +11 -16
- package/components/attributes/editMode/AttributesList/AttributesList.js +37 -61
- package/components/attributes/editMode/AttributesList/helpers.js +9 -13
- package/components/attributes/editMode/AttributesList/index.js +1 -8
- package/components/attributes/editMode/AttributesPager/AttributeRenderer.js +34 -58
- package/components/attributes/editMode/AttributesPager/AttributesPager.js +24 -48
- package/components/attributes/editMode/AttributesPager/CardinalityMessage.js +30 -35
- package/components/attributes/editMode/AttributesPager/SpecialRenderer.js +24 -48
- package/components/attributes/editMode/AttributesPager/index.js +12 -38
- package/components/attributes/editMode/AttributesPager/styles.js +2 -5
- package/components/attributes/editMode/AttributesPager/utils.js +4 -7
- package/components/attributes/editMode/AttributesView/AttributesView.js +27 -51
- package/components/attributes/editMode/AttributesView/index.js +6 -12
- package/components/attributes/editMode/AttributesView/styles.js +2 -5
- package/components/attributes/editMode/ComplexAttribute/ComplexAttribute.js +38 -62
- package/components/attributes/editMode/ComplexAttribute/styles.js +2 -5
- package/components/attributes/editMode/EntityCreator/EntityCreator.js +16 -40
- package/components/attributes/editMode/EntityCreator/index.js +9 -34
- package/components/attributes/editMode/EntitySelector/EntitySelector.js +43 -67
- package/components/attributes/editMode/EntitySelector/components/ClearIndicator.js +10 -15
- package/components/attributes/editMode/EntitySelector/components/EntityOption.js +26 -31
- package/components/attributes/editMode/EntitySelector/components/EntityTypeOption.js +20 -25
- package/components/attributes/editMode/EntitySelector/components/Group.js +18 -23
- package/components/attributes/editMode/EntitySelector/components/SingleValue.js +26 -50
- package/components/attributes/editMode/EntitySelector/components/styles.js +5 -8
- package/components/attributes/editMode/EntitySelector/styles.js +2 -5
- package/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.js +35 -59
- package/components/attributes/editMode/ImageAttributesLine/index.js +2 -7
- package/components/attributes/editMode/ImageAttributesLine/styles.js +2 -5
- package/components/attributes/editMode/MoreAttributesButton/MoreAttributesButton.js +46 -70
- package/components/attributes/editMode/MoreAttributesButton/index.js +1 -8
- package/components/attributes/editMode/MoreAttributesButton/styles.js +2 -5
- package/components/attributes/editMode/NestedAttribute/NestedAttribute.js +7 -31
- package/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.js +46 -70
- package/components/attributes/editMode/ReferenceAttribute/index.js +13 -38
- package/components/attributes/editMode/ReferenceAttribute/styles.js +2 -5
- package/components/attributes/editMode/RelationTypeSelector/RelationTypeSelector.js +18 -42
- package/components/attributes/editMode/RelationTypeSelector/components/RelationOption.js +31 -36
- package/components/attributes/editMode/RelationTypeSelector/components/styles.js +2 -5
- package/components/attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor.js +57 -81
- package/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.js +15 -22
- package/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.js +4 -8
- package/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.js +7 -14
- package/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.js +10 -17
- package/components/attributes/editMode/SimpleAttributeEditor/selectors/types.js +1 -2
- package/components/attributes/editMode/SimpleAttributeEditor/styles.js +2 -5
- package/components/attributes/editMode/SimpleAttributeEditor/utils.js +27 -35
- package/components/attributes/helpers/attributesView.js +6 -11
- package/components/attributes/helpers/imageAttributes.js +1 -5
- package/components/attributes/inline/AttributesList/AttributesList.js +12 -17
- package/components/attributes/inline/AttributesList/styles.js +2 -5
- package/components/attributes/inline/AttributesPager/AttributesPager.js +24 -48
- package/components/attributes/inline/AttributesPager/styles.js +2 -5
- package/components/attributes/inline/ComplexAttribute/ComplexAttribute.js +35 -59
- package/components/attributes/inline/ComplexAttribute/styles.js +2 -5
- package/components/attributes/inline/ImageAttribute/ImageAttribute.js +8 -13
- package/components/attributes/inline/ImageAttribute/styles.js +2 -5
- package/components/attributes/inline/ImageAttributesBlock/ImageAttributesBlock.js +4 -9
- package/components/attributes/inline/NestedAttribute/NestedAttribute.js +7 -12
- package/components/attributes/inline/NestedAttributesBlock/NestedAttributesBlock.js +9 -14
- package/components/attributes/inline/ReferenceAttribute/ReferenceAttribute.js +18 -23
- package/components/attributes/inline/ReferenceAttribute/styles.js +2 -5
- package/components/attributes/inline/ReferenceAttributesBlock/ReferenceAttributesBlock.js +4 -9
- package/components/attributes/inline/SimpleAttribute/CrosswalkMenuItem/CrosswalkMenuItem.js +14 -38
- package/components/attributes/inline/SimpleAttribute/CrosswalkMenuItem/styles.js +2 -5
- package/components/attributes/inline/SimpleAttribute/SimpleAttribute.js +44 -68
- package/components/attributes/inline/SimpleAttribute/index.js +1 -8
- package/components/attributes/inline/SimpleAttribute/styles.js +2 -5
- package/components/attributes/inline/SimpleAttributeEditor/SimpleAttributeEditor.js +23 -49
- package/components/attributes/inline/SimpleAttributeEditor/styles.js +2 -5
- package/components/attributes/inline/SimpleAttributesBlock/SimpleAttributesBlock.js +17 -22
- package/components/attributes/inline/SimpleAttributesBlock/styles.js +2 -5
- package/components/attributes/inline/common/ComplexAttributeLabel.js +6 -13
- package/components/attributes/inline/common/CrosswalkIcon.js +12 -17
- package/components/attributes/inline/common/DeleteButton.js +6 -11
- package/components/attributes/inline/common/IgnoreButton.js +7 -12
- package/components/attributes/inline/common/PinButton.js +7 -12
- package/components/attributes/inline/common/SourceItem.js +23 -28
- package/components/attributes/inline/common/__test__/CrosswalkIcon.spec.js +8 -32
- package/components/attributes/inline/common/__test__/DeleteButton.spec.js +8 -13
- package/components/attributes/inline/common/__test__/IgnoreButton.spec.js +10 -15
- package/components/attributes/inline/common/__test__/PinButton.spec.js +10 -15
- package/components/attributes/inline/common/__test__/SourceItem.spec.js +14 -38
- package/components/attributes/inline/common/styles.js +3 -6
- package/components/attributes/inline/hooks/useAttributeState.js +10 -14
- package/components/attributes/inline/index.js +5 -25
- package/components/attributes/inline/types/AddAttributeEvent.js +1 -2
- package/components/attributes/inline/types/CrosswalksMap.js +1 -2
- package/components/attributes/inline/types/DeleteAttributeEvent.js +1 -2
- package/components/attributes/inline/types/EditAttributeEvent.js +1 -2
- package/components/attributes/inline/types/IgnoreAttributeEvent.js +1 -2
- package/components/attributes/inline/types/PinAttributeEvent.js +1 -2
- package/components/attributes/inline/types/index.js +1 -2
- package/components/attributes/pagersCommon/ShowLess.js +10 -15
- package/components/attributes/pagersCommon/ShowMore.js +11 -16
- package/components/attributes/pagersCommon/styles.js +2 -5
- package/components/attributes/readMode/AttributeValuesBlock/AttributeValuesBlock.js +12 -36
- package/components/attributes/readMode/AttributesFactory/Attribute.js +3 -8
- package/components/attributes/readMode/AttributesFactory/AttributesFactory.js +11 -16
- package/components/attributes/readMode/AttributesList/AttributesList.js +19 -43
- package/components/attributes/readMode/AttributesList/index.js +1 -8
- package/components/attributes/readMode/AttributesPager/AttributesPager.js +29 -53
- package/components/attributes/readMode/AttributesPager/MultiLineRenderer.js +19 -43
- package/components/attributes/readMode/AttributesPager/OneLineRenderer.js +18 -23
- package/components/attributes/readMode/AttributesPager/SpecialRenderer.js +20 -25
- package/components/attributes/readMode/AttributesPager/index.js +7 -32
- package/components/attributes/readMode/AttributesPager/styles.js +4 -7
- package/components/attributes/readMode/AttributesView/AttributesView.js +24 -48
- package/components/attributes/readMode/AttributesView/index.js +6 -12
- package/components/attributes/readMode/AttributesView/styles.js +2 -5
- package/components/attributes/readMode/ComplexAttribute/ComplexAttribute.js +30 -54
- package/components/attributes/readMode/ComplexAttribute/styles.js +2 -5
- package/components/attributes/readMode/ImageAttributesLine/ImageAttributesLine.js +19 -43
- package/components/attributes/readMode/ImageAttributesLine/cross.inline.svg.js +1 -4
- package/components/attributes/readMode/ImageAttributesLine/index.js +1 -8
- package/components/attributes/readMode/ImageAttributesLine/styles.js +11 -14
- package/components/attributes/readMode/NestedAttribute/NestedAttribute.js +20 -44
- package/components/attributes/readMode/NestedAttribute/index.js +1 -8
- package/components/attributes/readMode/NestedAttribute/styles.js +7 -9
- package/components/attributes/readMode/ReferenceAttribute/ReferenceAttribute.js +20 -44
- package/components/attributes/readMode/ReferenceAttribute/index.js +7 -13
- package/components/attributes/readMode/ReferenceAttribute/styles.js +7 -9
- package/components/attributes/readMode/SimpleAttribute/SimpleAttribute.js +23 -47
- package/components/attributes/readMode/SimpleAttribute/index.js +1 -8
- package/components/attributes/readMode/SimpleAttribute/styles.js +6 -9
- package/components/attributes/readMode/SpecialAttributes/Roles/Role.js +14 -38
- package/components/attributes/readMode/SpecialAttributes/Roles/Roles.js +5 -10
- package/components/attributes/readMode/SpecialAttributes/Roles/index.js +1 -8
- package/components/attributes/readMode/SpecialAttributes/SpecialAttributesArray.js +4 -25
- package/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +16 -40
- package/components/attributes/readMode/SpecialAttributes/Tags/Tags.js +5 -10
- package/components/attributes/readMode/SpecialAttributes/Tags/index.js +1 -8
- package/components/attributes/readMode/SpecialAttributes/styles.js +5 -8
- package/components/attributes/readMode/helpers/historyAppearance.js +14 -20
- package/components/attributes/types/attributesView.js +1 -2
- package/components/attributes/types/index.js +1 -13
- package/components/charts/ActiveShape/ActiveShape.js +12 -17
- package/components/charts/BarChart/BarChart.js +14 -19
- package/components/charts/BarChart/getBarChartSettings.js +1 -3
- package/components/charts/BubbleChart/BubbleChart.js +33 -59
- package/components/charts/BubbleChart/helpers.js +1 -4
- package/components/charts/BubbleChart/styles.js +2 -5
- package/components/charts/BubbleChart/useBubbles.js +6 -8
- package/components/charts/ChartsFactory.js +30 -35
- package/components/charts/CloudChart/CloudChart.js +22 -48
- package/components/charts/CloudChart/styles.js +2 -5
- package/components/charts/CloudChart/useCloud.js +5 -10
- package/components/charts/CustomLegend/CustomLegend.js +8 -13
- package/components/charts/CustomLegend/getLegendProps.js +4 -9
- package/components/charts/CustomLegend/styles.js +2 -5
- package/components/charts/CustomTooltip/CustomTooltip.js +10 -17
- package/components/charts/CustomTooltip/styles.js +2 -5
- package/components/charts/HOCs/withPercents.js +7 -28
- package/components/charts/LineChart/LineChart.js +15 -20
- package/components/charts/LineChart/getLineChartSettings.js +1 -3
- package/components/charts/MapChart/Legend/Legend.js +11 -16
- package/components/charts/MapChart/Legend/styles.js +2 -5
- package/components/charts/MapChart/MapChart.js +34 -60
- package/components/charts/MapChart/styles.js +2 -5
- package/components/charts/MapChart/useGeography.js +4 -6
- package/components/charts/PieChart/PieChart.js +17 -43
- package/components/charts/TableWithBars/TableWithBars.js +21 -45
- package/components/charts/TableWithBars/cell-renderers/AttributeCellRenderer.js +13 -20
- package/components/charts/TableWithBars/cell-renderers/HeadCellRenderer.js +10 -15
- package/components/charts/TableWithBars/cell-renderers/NumberCellValueRenderer.js +12 -17
- package/components/charts/TableWithBars/cell-renderers/styles.js +2 -5
- package/components/charts/TableWithBars/styles.js +2 -5
- package/components/charts/TreeChart/TreeChart.js +17 -41
- package/components/charts/TreeChart/styles.js +2 -5
- package/components/charts/hooks/useClickableStyle.js +3 -7
- package/components/charts/hooks/useTooltipState.js +5 -7
- package/components/charts/index.js +7 -20
- package/components/charts/types/BarChartOptions.js +1 -2
- package/components/charts/types/ChartData.js +1 -2
- package/components/charts/types/ChartProps.js +1 -2
- package/components/charts/types/LineChartOptions.js +1 -2
- package/components/charts/types/TableWithBarsOptions.js +1 -2
- package/components/charts/types/index.js +1 -2
- package/components/commonReactSelectComponents/DropdownIndicator.js +14 -19
- package/components/commonReactSelectComponents/DropdownIndicatorWithIconButton.js +14 -19
- package/components/commonReactSelectComponents/MenuWithPopper.js +27 -51
- package/components/commonReactSelectComponents/arrowIndicatorStyles.js +2 -5
- package/components/commonReactSelectComponents/menuStyles.js +2 -5
- package/components/crosswalks/AttributesTable/AddAttributesButton/AddAttributesButton.js +20 -27
- package/components/crosswalks/AttributesTable/AddAttributesButton/styles.js +2 -5
- package/components/crosswalks/AttributesTable/AttributesTable.js +43 -67
- package/components/crosswalks/AttributesTable/ConfirmEditIgnoredDialog/ConfirmEditIgnoredDialog.js +28 -52
- package/components/crosswalks/AttributesTable/cell-renderers/AttributeValuesRenderer.js +6 -13
- package/components/crosswalks/AttributesTable/cell-renderers/AttributesHeadCellRenderer.js +11 -18
- package/components/crosswalks/AttributesTable/cell-renderers/CountRenderer.js +6 -11
- package/components/crosswalks/AttributesTable/cell-renderers/DefaultCellValueRenderer.js +5 -10
- package/components/crosswalks/AttributesTable/cell-renderers/HeadCellRenderer.js +8 -13
- package/components/crosswalks/AttributesTable/cell-renderers/OvValuesRenderer.js +9 -14
- package/components/crosswalks/AttributesTable/cell-renderers/RowCellRenderer.js +6 -11
- package/components/crosswalks/AttributesTable/cell-renderers/RuleTypeInfoButton.js +49 -73
- package/components/crosswalks/AttributesTable/cell-renderers/RuleTypeRenderer.js +9 -14
- package/components/crosswalks/AttributesTable/cell-renderers/WinnerSourcesRenderer.js +21 -26
- package/components/crosswalks/AttributesTable/cell-renderers/attribute-renderers/AttributesFactory.js +14 -19
- package/components/crosswalks/AttributesTable/cell-renderers/attribute-renderers/ImageAttributesRenderer.js +7 -12
- package/components/crosswalks/AttributesTable/cell-renderers/attribute-renderers/NestedAttributesRenderer.js +8 -13
- package/components/crosswalks/AttributesTable/cell-renderers/attribute-renderers/ReferenceAttributesRenderer.js +8 -13
- package/components/crosswalks/AttributesTable/cell-renderers/attribute-renderers/SimpleAttributesRenderer.js +7 -12
- package/components/crosswalks/AttributesTable/cell-renderers/attribute-renderers/styles.js +2 -5
- package/components/crosswalks/AttributesTable/cell-renderers/styles.js +2 -5
- package/components/crosswalks/AttributesTable/helpers.js +58 -68
- package/components/crosswalks/AttributesTable/styles.js +2 -5
- package/components/crosswalks/ColoredBlock/ColoredBlock.js +7 -31
- package/components/crosswalks/ColoredBlock/styles.js +2 -5
- package/components/crosswalks/CopyableValueField/CopyableValueField.js +10 -15
- package/components/crosswalks/CopyableValueField/styles.js +2 -5
- package/components/crosswalks/CrosswalkAttributes/CrosswalkAttributes.js +55 -79
- package/components/crosswalks/CrosswalkAttributes/styles.js +2 -5
- package/components/crosswalks/CrosswalkDateEditor/CrosswalkDateEditor.js +10 -34
- package/components/crosswalks/CrosswalkDateEditor/styles.js +2 -5
- package/components/crosswalks/CrosswalkDragLayer/CrosswalkDragLayer.js +11 -35
- package/components/crosswalks/CrosswalkDragLayer/CrosswalkDragPreview.js +17 -22
- package/components/crosswalks/CrosswalkDragLayer/styles.js +2 -5
- package/components/crosswalks/CrosswalkEditor/CrosswalkEditor.js +18 -42
- package/components/crosswalks/CrosswalkEditor/styles.js +2 -5
- package/components/crosswalks/CrosswalkRow/CrosswalkRow.js +56 -80
- package/components/crosswalks/CrosswalkRow/styles.js +2 -5
- package/components/crosswalks/DummyCrosswalkRow/DummyCrosswalkRow.js +20 -44
- package/components/crosswalks/DummyCrosswalkRow/styles.js +2 -5
- package/components/crosswalks/ShowDependentLink/ShowDependentLink.js +8 -13
- package/components/crosswalks/ShowDependentLink/styles.js +2 -5
- package/components/crosswalks/SourceCrosswalksRow/SourceCrosswalksRow.js +19 -43
- package/components/crosswalks/hooks/useAttributeActions.js +22 -26
- package/components/crosswalks/hooks/useCrosswalkActions.js +17 -21
- package/components/crosswalks/hooks/useModifiedEntity.js +39 -43
- package/components/crosswalks/index.js +8 -22
- package/components/crosswalks/types/AddCrosswalkEvent.js +1 -2
- package/components/crosswalks/types/CreateAttributeEvent.js +1 -2
- package/components/crosswalks/types/CrosswalkType.js +2 -5
- package/components/crosswalks/types/CrosswalksByOwnerTypeMap.js +1 -2
- package/components/crosswalks/types/CrosswalksByTypes.js +1 -2
- package/components/crosswalks/types/DeleteCrosswalkEvent.js +1 -2
- package/components/crosswalks/types/EditCrosswalkEvent.js +1 -2
- package/components/crosswalks/types/index.js +1 -5
- package/components/crosswalks/utils/legend.js +23 -26
- package/components/editors/BooleanEditor/BooleanEditor.js +9 -14
- package/components/editors/BooleanRadioEditor/BooleanRadioEditor.js +15 -20
- package/components/editors/BooleanRadioEditor/styles.js +2 -5
- package/components/editors/CustomDateRangeEditor/CustomDateRangeEditor.js +26 -50
- package/components/editors/CustomDateRangeEditor/styles.js +2 -5
- package/components/editors/DataTypeValueEditor/DataTypeValueEditor.js +16 -21
- package/components/editors/DataTypeValueEditor/useEditorContext.js +30 -51
- package/components/editors/DateEditor/DateEditor.js +26 -50
- package/components/editors/DateEditor/styles.js +2 -5
- package/components/editors/DateRangeEditor/DateRangeEditor.js +53 -77
- package/components/editors/DateRangeEditor/styles.js +2 -5
- package/components/editors/DependentLookupEditor/DependentLookupEditor.js +56 -81
- package/components/editors/DependentLookupEditor/OptionWithCheckIcon.js +11 -16
- package/components/editors/DependentLookupEditor/helpers.js +4 -8
- package/components/editors/DependentLookupEditor/styles.js +2 -5
- package/components/editors/DependentLookupEditor/useAutopopulation.js +4 -6
- package/components/editors/DependentLookupEditor/useDefaultOptions.js +8 -10
- package/components/editors/DependentLookupEditor/useLookupsResolver.js +10 -12
- package/components/editors/DependentLookupEditor/useSavingFocus.js +4 -6
- package/components/editors/DropDownEditor/DropDownEditor.js +12 -17
- package/components/editors/EditorsFactory.js +58 -63
- package/components/editors/FileTypeEditor/FileTypeEditor.js +12 -36
- package/components/editors/FileTypeEditor/styles.js +2 -5
- package/components/editors/FilterEditor/FilterEditor.js +21 -26
- package/components/editors/FilterEditor/FilterValueEditor.js +35 -40
- package/components/editors/GroupedDropDownEditor/GroupedDropDownEditor.js +26 -33
- package/components/editors/GroupedDropDownEditor/entriesHelpers.js +7 -11
- package/components/editors/GroupedDropDownEditor/styles.js +2 -5
- package/components/editors/LookupEditor/LookupEditor.js +19 -43
- package/components/editors/LookupEditor/entriesHelpers.js +8 -11
- package/components/editors/NumberEditor/NumberEditor.js +26 -31
- package/components/editors/RangeDataTypeValueEditor/RangeDataTypeValueEditor.js +28 -52
- package/components/editors/RangeDataTypeValueEditor/styles.js +2 -5
- package/components/editors/SelectEditor/SelectEditor.js +11 -16
- package/components/editors/TextEditor/TextEditor.js +14 -19
- package/components/editors/TimestampEditor/TimestampEditor.js +30 -54
- package/components/editors/TimestampEditor/styles.js +2 -5
- package/components/editors/TypeaheadEditor/TypeaheadEditor.js +44 -68
- package/components/editors/TypeaheadEditor/styles.js +2 -5
- package/components/editors/commonComponents/MultiValueChip/MultiValueChip.js +16 -21
- package/components/editors/constants.js +4 -7
- package/components/editors/index.js +10 -26
- package/components/history/ContributorsPanel/ContributorItem.js +8 -13
- package/components/history/ContributorsPanel/ContributorsPanel.js +11 -16
- package/components/history/ContributorsPanel/styles.js +3 -6
- package/components/history/DateRangeSelector/DateRangeSelector.js +27 -51
- package/components/history/DateRangeSelector/styles.js +2 -5
- package/components/history/DateRangeSelector/utils.js +7 -14
- package/components/history/HistoryActivitySelector/HistoryActivitySelector.js +18 -23
- package/components/history/HistoryActivitySelector/styles.js +3 -6
- package/components/history/HistoryActivitySelector/utils.js +10 -17
- package/components/history/HistoryFilterButton/HistoryFilterButton.js +32 -56
- package/components/history/HistoryFilterButton/styles.js +2 -5
- package/components/history/HistoryGraph/HistoryCircle.d.ts +14 -0
- package/components/history/HistoryGraph/HistoryCircle.js +14 -0
- package/components/history/HistoryGraph/HistoryGraph.d.ts +7 -0
- package/components/history/HistoryGraph/HistoryGraph.js +62 -0
- package/components/history/HistoryGraph/HistoryLink.d.ts +11 -0
- package/components/history/HistoryGraph/HistoryLink.js +8 -0
- package/components/history/HistoryGraph/helpers.d.ts +2 -0
- package/components/history/HistoryGraph/helpers.js +13 -0
- package/components/history/HistoryHeader/HistoryHeader.js +20 -25
- package/components/history/HistoryHeader/styles.js +2 -5
- package/components/history/HistoryMenuButton/HistoryMenuButton.js +7 -12
- package/components/history/HistoryMenuButton/styles.js +2 -5
- package/components/history/HistoryRow/HistoryRow.d.ts +8 -0
- package/components/history/HistoryRow/HistoryRow.js +24 -0
- package/components/history/HistoryRow/styles.d.ts +5 -0
- package/components/history/HistoryRow/styles.js +56 -0
- package/components/history/HistoryTree/HistoryTree.d.ts +10 -0
- package/components/history/HistoryTree/HistoryTree.js +50 -0
- package/components/history/HistoryTree/styles.d.ts +1 -0
- package/components/history/HistoryTree/styles.js +23 -0
- package/components/history/HistoryView/HistoryView.d.ts +4 -2
- package/components/history/HistoryView/HistoryView.js +14 -35
- package/components/history/HistoryView/styles.js +6 -6
- package/components/history/ProfileBandHistory/ProfileBandHistory.js +18 -42
- package/components/history/ProfileBandHistory/styles.js +2 -5
- package/components/history/hooks/useHistoricUris.js +10 -14
- package/components/history/hooks/useHistory.d.ts +16 -0
- package/components/history/hooks/useHistory.js +41 -0
- package/components/history/hooks/useHistorySlice.js +16 -39
- package/components/history/hooks/useHistoryTree.d.ts +9 -0
- package/components/history/hooks/useHistoryTree.js +239 -0
- package/components/history/hooks/useHistoryWithTotal.d.ts +2 -0
- package/components/history/hooks/useHistoryWithTotal.js +29 -15
- package/components/history/index.d.ts +1 -0
- package/components/history/index.js +8 -29
- package/components/history/types/HistoryChangeTypes.d.ts +42 -0
- package/components/history/types/HistoryChangeTypes.js +20 -0
- package/components/history/types/HistoryData.d.ts +6 -0
- package/components/history/types/HistoryData.js +1 -0
- package/components/history/types/HistoryFilter.js +2 -5
- package/components/history/types/HistoryLane.d.ts +5 -0
- package/components/history/types/HistoryLane.js +1 -0
- package/components/history/types/HistoryLife.d.ts +5 -0
- package/components/history/types/HistoryLife.js +1 -0
- package/components/history/types/HistoryRowData.d.ts +5 -0
- package/components/history/types/HistoryRowData.js +1 -0
- package/components/history/types/index.d.ts +5 -0
- package/components/history/types/index.js +2 -5
- package/components/index.js +120 -257
- package/constants/attributes.js +2 -5
- package/constants/classnames.js +1 -4
- package/constants/index.js +4 -17
- package/constants/map.js +3 -6
- package/constants/prop-types.js +52 -69
- package/contexts/AsyncMountContext/index.js +8 -14
- package/contexts/BlockImageGalleryDialogContext/index.js +3 -9
- package/contexts/CollaborationContext/index.js +3 -9
- package/contexts/CrosswalksDisplayContext/index.js +20 -47
- package/contexts/EntitiesMapContext/index.js +3 -9
- package/contexts/EntityMarkerContext/index.js +3 -9
- package/contexts/ExpandedAttributesContext/index.js +8 -32
- package/contexts/HistoryAppearanceContext/index.js +3 -9
- package/contexts/IdContext/index.js +3 -9
- package/contexts/PivotingAttributeContext/index.js +2 -8
- package/contexts/PopupBoundariesContext/index.js +8 -14
- package/contexts/ProfilePerspectiveViewContext/index.js +3 -9
- package/contexts/UsersContext/index.js +3 -9
- package/contexts/ViewIdContext/index.js +3 -9
- package/contexts/index.js +14 -36
- package/core/index.js +1 -13
- package/core/utils.js +6 -21
- package/hooks/index.js +13 -29
- package/hooks/useActions.js +5 -9
- package/hooks/useAsyncMount.js +8 -12
- package/hooks/useCollaboration.js +37 -44
- package/hooks/useConfigPermissions.js +10 -17
- package/hooks/useDidUpdateEffect.js +4 -8
- package/hooks/usePrevious.js +4 -8
- package/hooks/useRelationTypeSelector.js +17 -21
- package/hooks/useRelationsLoader.js +28 -51
- package/hooks/useRunOnceAfterValueInitialization.js +4 -8
- package/hooks/useSafePromise.js +6 -10
- package/hooks/useSavedState.js +5 -9
- package/hooks/useUsers.js +10 -17
- package/hooks/useWhyDidYouUpdate.js +4 -8
- package/icons/Add.js +4 -9
- package/icons/AddComment.js +4 -9
- package/icons/Calendar.js +4 -9
- package/icons/Comment.js +4 -9
- package/icons/CommentBubble.js +4 -9
- package/icons/Copy.js +9 -14
- package/icons/Create.js +4 -9
- package/icons/DefaultImage.js +6 -11
- package/icons/Details.js +9 -14
- package/icons/Download.js +9 -14
- package/icons/Draw.js +10 -15
- package/icons/EmptySearchResults.js +66 -71
- package/icons/Filter.js +4 -9
- package/icons/Ignored.js +4 -9
- package/icons/IgnoredOutlined.js +4 -9
- package/icons/LogIn.js +5 -10
- package/icons/LogOut.js +5 -10
- package/icons/Merge.js +4 -9
- package/icons/MlMatch.js +44 -49
- package/icons/NestedAttribute.js +4 -9
- package/icons/NoData.js +62 -67
- package/icons/NoDataSearch.js +7 -12
- package/icons/NoMatches.js +4 -9
- package/icons/Pin.js +4 -9
- package/icons/PinOutlined.js +4 -9
- package/icons/PivotingIcon.js +4 -9
- package/icons/PmIcon.js +4 -9
- package/icons/Polygon.js +4 -9
- package/icons/PotentialMatch.js +4 -9
- package/icons/Profile.js +4 -9
- package/icons/Radius.js +4 -9
- package/icons/Recommended.js +9 -14
- package/icons/ReferenceAttribute.js +4 -9
- package/icons/Remove.js +4 -9
- package/icons/ResizeIconInline.js +4 -9
- package/icons/Search.js +4 -9
- package/icons/SelectAttributes.js +39 -44
- package/icons/SimpleAttribute.js +4 -9
- package/icons/Table.js +4 -9
- package/icons/UnMerge.js +4 -9
- package/icons/UploadIcon.js +28 -33
- package/icons/index.js +37 -80
- package/index.js +7 -19
- package/package.json +5 -4
- package/types/index.js +2 -5
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __extends = (this && this.__extends) || (function () {
|
|
3
2
|
var extendStatics = function (d, b) {
|
|
4
3
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -25,60 +24,36 @@ var __assign = (this && this.__assign) || function () {
|
|
|
25
24
|
};
|
|
26
25
|
return __assign.apply(this, arguments);
|
|
27
26
|
};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
-
};
|
|
50
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
-
exports.SortableTreeWithoutDndContext = void 0;
|
|
52
|
-
var react_1 = __importStar(require("react"));
|
|
53
|
-
var prop_types_1 = __importDefault(require("prop-types"));
|
|
54
|
-
var react_virtualized_1 = require("react-virtualized");
|
|
55
|
-
var ramda_1 = require("ramda");
|
|
56
|
-
var frontend_collective_react_dnd_scrollzone_1 = __importStar(require("frontend-collective-react-dnd-scrollzone"));
|
|
57
|
-
var react_dnd_1 = require("react-dnd");
|
|
58
|
-
var react_dnd_html5_backend_1 = __importDefault(require("react-dnd-html5-backend"));
|
|
59
|
-
var react_lifecycles_compat_1 = require("react-lifecycles-compat");
|
|
60
|
-
var styles_1 = require("@material-ui/core/styles");
|
|
61
|
-
var tree_node_1 = __importDefault(require("./tree-node"));
|
|
62
|
-
var node_renderer_default_1 = __importDefault(require("./node-renderer-default"));
|
|
63
|
-
var tree_placeholder_1 = __importDefault(require("./tree-placeholder"));
|
|
64
|
-
var placeholder_renderer_default_1 = __importDefault(require("./placeholder-renderer-default"));
|
|
65
|
-
var tree_data_utils_1 = require("./utils/tree-data-utils");
|
|
66
|
-
var memoized_tree_data_utils_1 = require("./utils/memoized-tree-data-utils");
|
|
67
|
-
var generic_utils_1 = require("./utils/generic-utils");
|
|
68
|
-
var default_handlers_1 = require("./utils/default-handlers");
|
|
69
|
-
var dnd_manager_1 = __importDefault(require("./utils/dnd-manager"));
|
|
70
|
-
var classnames_1 = __importDefault(require("./utils/classnames"));
|
|
71
|
-
var reactSortableTreeStyles_1 = require("./reactSortableTreeStyles");
|
|
27
|
+
import React, { Component } from 'react';
|
|
28
|
+
import PropTypes from 'prop-types';
|
|
29
|
+
import { AutoSizer, List } from 'react-virtualized';
|
|
30
|
+
import { equals, append, when, always, gt, uniqWith, eqBy, pipe } from 'ramda';
|
|
31
|
+
import withScrolling, { createScrollingComponent, createVerticalStrength, createHorizontalStrength } from 'frontend-collective-react-dnd-scrollzone';
|
|
32
|
+
import { DndProvider, DndContext } from 'react-dnd';
|
|
33
|
+
import HTML5Backend from 'react-dnd-html5-backend';
|
|
34
|
+
import { polyfill } from 'react-lifecycles-compat';
|
|
35
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
36
|
+
import TreeNode from './tree-node';
|
|
37
|
+
import NodeRendererDefault from './node-renderer-default';
|
|
38
|
+
import TreePlaceholder from './tree-placeholder';
|
|
39
|
+
import PlaceholderRendererDefault from './placeholder-renderer-default';
|
|
40
|
+
import { walk, changeNodeAtPath, removeNode, insertNode, find, toggleExpandedForAll } from './utils/tree-data-utils';
|
|
41
|
+
import { memoizedInsertNode, memoizedGetFlatDataFromTree, memoizedGetDescendantCount } from './utils/memoized-tree-data-utils';
|
|
42
|
+
import { slideRows } from './utils/generic-utils';
|
|
43
|
+
import { defaultGetNodeKey, defaultSearchMethod } from './utils/default-handlers';
|
|
44
|
+
import DndManager from './utils/dnd-manager';
|
|
45
|
+
import classnames from './utils/classnames';
|
|
46
|
+
import { styles } from './reactSortableTreeStyles';
|
|
72
47
|
var treeIdCounter = 1;
|
|
73
48
|
var mergeTheme = function (props) {
|
|
74
49
|
var merged = __assign(__assign({}, props), { style: __assign(__assign({}, props.theme.style), props.style), innerStyle: __assign(__assign({}, props.theme.innerStyle), props.innerStyle), reactVirtualizedListProps: __assign(__assign({}, props.theme.reactVirtualizedListProps), props.reactVirtualizedListProps) });
|
|
75
50
|
var overridableDefaults = {
|
|
76
|
-
nodeContentRenderer:
|
|
77
|
-
placeholderRenderer:
|
|
51
|
+
nodeContentRenderer: NodeRendererDefault,
|
|
52
|
+
placeholderRenderer: PlaceholderRendererDefault,
|
|
78
53
|
rowHeight: 62,
|
|
79
54
|
scaffoldBlockPxWidth: 44,
|
|
80
55
|
slideRegionSize: 100,
|
|
81
|
-
treeNodeRenderer:
|
|
56
|
+
treeNodeRenderer: TreeNode
|
|
82
57
|
};
|
|
83
58
|
Object.keys(overridableDefaults).forEach(function (propKey) {
|
|
84
59
|
// If prop has been specified, do not change it
|
|
@@ -96,19 +71,19 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
96
71
|
function ReactSortableTree(props) {
|
|
97
72
|
var _this = _super.call(this, props) || this;
|
|
98
73
|
var _a = mergeTheme(props), dndType = _a.dndType, nodeContentRenderer = _a.nodeContentRenderer, treeNodeRenderer = _a.treeNodeRenderer, isVirtualized = _a.isVirtualized, slideRegionSize = _a.slideRegionSize;
|
|
99
|
-
_this.dndManager = new
|
|
74
|
+
_this.dndManager = new DndManager(_this);
|
|
100
75
|
// Wrapping classes for use with react-dnd
|
|
101
76
|
_this.treeId = "rst__" + treeIdCounter;
|
|
102
77
|
treeIdCounter += 1;
|
|
103
78
|
_this.dndType = dndType || _this.treeId;
|
|
104
79
|
_this.nodeContentRenderer = _this.dndManager.wrapSource(nodeContentRenderer);
|
|
105
|
-
_this.treePlaceholderRenderer = _this.dndManager.wrapPlaceholder(
|
|
80
|
+
_this.treePlaceholderRenderer = _this.dndManager.wrapPlaceholder(TreePlaceholder);
|
|
106
81
|
_this.treeNodeRenderer = _this.dndManager.wrapTarget(treeNodeRenderer);
|
|
107
82
|
// Prepare scroll-on-drag options for this list
|
|
108
83
|
if (isVirtualized) {
|
|
109
|
-
_this.scrollZoneVirtualList = (
|
|
110
|
-
_this.vStrength =
|
|
111
|
-
_this.hStrength =
|
|
84
|
+
_this.scrollZoneVirtualList = (createScrollingComponent || withScrolling)(List);
|
|
85
|
+
_this.vStrength = createVerticalStrength(slideRegionSize);
|
|
86
|
+
_this.hStrength = createHorizontalStrength(slideRegionSize);
|
|
112
87
|
}
|
|
113
88
|
_this.state = {
|
|
114
89
|
draggingTreeData: null,
|
|
@@ -151,7 +126,7 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
151
126
|
ReactSortableTree.getDerivedStateFromProps = function (nextProps, prevState) {
|
|
152
127
|
var instanceProps = prevState.instanceProps;
|
|
153
128
|
var newState = {};
|
|
154
|
-
if (!
|
|
129
|
+
if (!equals(instanceProps.searchQuery, nextProps.searchQuery)) {
|
|
155
130
|
Object.assign(newState, ReactSortableTree.search(nextProps, prevState, true, true, false));
|
|
156
131
|
}
|
|
157
132
|
else if (instanceProps.searchFocusOffset !== nextProps.searchFocusOffset) {
|
|
@@ -175,9 +150,9 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
175
150
|
}
|
|
176
151
|
}
|
|
177
152
|
if (this.state.dragging) {
|
|
178
|
-
var isTreeDataEqual =
|
|
153
|
+
var isTreeDataEqual = equals(this.props.treeData, prevProps.treeData);
|
|
179
154
|
if (!isTreeDataEqual) {
|
|
180
|
-
var draggingTreeData_1 =
|
|
155
|
+
var draggingTreeData_1 = removeNode({
|
|
181
156
|
treeData: this.props.treeData,
|
|
182
157
|
path: prevState.draggedPath,
|
|
183
158
|
getNodeKey: this.props.getNodeKey
|
|
@@ -188,7 +163,7 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
188
163
|
draggingTreeData: draggingExpandedPaths.reduce(function (treeData, path) {
|
|
189
164
|
var newTree;
|
|
190
165
|
try {
|
|
191
|
-
newTree =
|
|
166
|
+
newTree = changeNodeAtPath({
|
|
192
167
|
treeData: treeData,
|
|
193
168
|
path: path,
|
|
194
169
|
newNode: function (_a) {
|
|
@@ -207,7 +182,7 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
207
182
|
});
|
|
208
183
|
}
|
|
209
184
|
else if (this.state.draggingTreeData && prevState.draggingTreeData !== this.state.draggingTreeData) {
|
|
210
|
-
|
|
185
|
+
walk({
|
|
211
186
|
treeData: this.state.draggingTreeData,
|
|
212
187
|
getNodeKey: this.props.getNodeKey,
|
|
213
188
|
callback: function (_a) {
|
|
@@ -225,7 +200,7 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
225
200
|
}
|
|
226
201
|
}
|
|
227
202
|
else if (this.props.treeData !== prevProps.treeData) {
|
|
228
|
-
var isTreeDataEqual =
|
|
203
|
+
var isTreeDataEqual = equals(this.props.treeData, prevProps.treeData);
|
|
229
204
|
var _a = this.state, ignoreOneTreeUpdate = _a.ignoreOneTreeUpdate, instanceProps = _a.instanceProps;
|
|
230
205
|
var newState = {};
|
|
231
206
|
if (!isTreeDataEqual) {
|
|
@@ -252,7 +227,7 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
252
227
|
this.clearMonitorSubscription();
|
|
253
228
|
};
|
|
254
229
|
ReactSortableTree.prototype.getRows = function (treeData) {
|
|
255
|
-
return
|
|
230
|
+
return memoizedGetFlatDataFromTree({
|
|
256
231
|
ignoreCollapsed: true,
|
|
257
232
|
getNodeKey: this.props.getNodeKey,
|
|
258
233
|
treeData: treeData
|
|
@@ -270,7 +245,7 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
270
245
|
ReactSortableTree.prototype.toggleChildrenVisibility = function (_a) {
|
|
271
246
|
var targetNode = _a.node, path = _a.path;
|
|
272
247
|
var instanceProps = this.state.instanceProps;
|
|
273
|
-
var treeData =
|
|
248
|
+
var treeData = changeNodeAtPath({
|
|
274
249
|
treeData: instanceProps.treeData,
|
|
275
250
|
path: path,
|
|
276
251
|
newNode: function (_a) {
|
|
@@ -290,7 +265,7 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
290
265
|
ReactSortableTree.prototype.moveNode = function (_a) {
|
|
291
266
|
var _this = this;
|
|
292
267
|
var node = _a.node, prevPath = _a.path, prevTreeIndex = _a.treeIndex, depth = _a.depth, minimumTreeIndex = _a.minimumTreeIndex;
|
|
293
|
-
var _b =
|
|
268
|
+
var _b = insertNode({
|
|
294
269
|
treeData: this.state.draggingTreeData,
|
|
295
270
|
newNode: node,
|
|
296
271
|
depth: depth,
|
|
@@ -333,16 +308,16 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
333
308
|
}
|
|
334
309
|
var newState = {};
|
|
335
310
|
// if onlyExpandSearchedNodes collapse the tree and search
|
|
336
|
-
var _a =
|
|
311
|
+
var _a = find({
|
|
337
312
|
getNodeKey: getNodeKey,
|
|
338
313
|
treeData: onlyExpandSearchedNodes
|
|
339
|
-
?
|
|
314
|
+
? toggleExpandedForAll({
|
|
340
315
|
treeData: instanceProps.treeData,
|
|
341
316
|
expanded: false
|
|
342
317
|
})
|
|
343
318
|
: instanceProps.treeData,
|
|
344
319
|
searchQuery: searchQuery,
|
|
345
|
-
searchMethod: searchMethod ||
|
|
320
|
+
searchMethod: searchMethod || defaultSearchMethod,
|
|
346
321
|
searchFocusOffset: searchFocusOffset,
|
|
347
322
|
expandAllMatchPaths: expand && !singleSearch,
|
|
348
323
|
expandFocusMatchPaths: !!expand
|
|
@@ -367,7 +342,7 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
367
342
|
var _this = this;
|
|
368
343
|
var path = _a.path;
|
|
369
344
|
this.setState(function (prevState) {
|
|
370
|
-
var _a =
|
|
345
|
+
var _a = removeNode({
|
|
371
346
|
treeData: prevState.instanceProps.treeData,
|
|
372
347
|
path: path,
|
|
373
348
|
getNodeKey: _this.props.getNodeKey
|
|
@@ -395,7 +370,7 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
395
370
|
// Fall back to the tree data if something is being dragged in from
|
|
396
371
|
// an external element
|
|
397
372
|
var newDraggingTreeData = draggingTreeData || instanceProps.treeData;
|
|
398
|
-
var addedResult =
|
|
373
|
+
var addedResult = memoizedInsertNode({
|
|
399
374
|
treeData: newDraggingTreeData,
|
|
400
375
|
newNode: draggedNode,
|
|
401
376
|
depth: draggedDepth,
|
|
@@ -406,12 +381,12 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
406
381
|
var rows = _this.getRows(addedResult.treeData);
|
|
407
382
|
var expandedParentPath = rows[addedResult.treeIndex].path;
|
|
408
383
|
var nodePath = expandedParentPath.slice(0, -1);
|
|
409
|
-
var newDraggingExpandedPaths =
|
|
384
|
+
var newDraggingExpandedPaths = pipe(when(always(gt(nodePath.length, 0)), append(nodePath)), uniqWith(eqBy(String)))(draggingExpandedPaths);
|
|
410
385
|
return {
|
|
411
386
|
draggedNode: draggedNode,
|
|
412
387
|
draggedDepth: draggedDepth,
|
|
413
388
|
draggedMinimumTreeIndex: draggedMinimumTreeIndex,
|
|
414
|
-
draggingTreeData:
|
|
389
|
+
draggingTreeData: changeNodeAtPath({
|
|
415
390
|
treeData: newDraggingTreeData,
|
|
416
391
|
path: nodePath,
|
|
417
392
|
newNode: function (_a) {
|
|
@@ -459,7 +434,7 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
459
434
|
// If copying is enabled, a drop outside leaves behind a copy in the
|
|
460
435
|
// source tree
|
|
461
436
|
if (shouldCopy) {
|
|
462
|
-
treeData =
|
|
437
|
+
treeData = changeNodeAtPath({
|
|
463
438
|
treeData: instanceProps.treeData,
|
|
464
439
|
path: path,
|
|
465
440
|
newNode: function (_a) {
|
|
@@ -495,7 +470,7 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
495
470
|
// Load any children in the tree that are given by a function
|
|
496
471
|
// calls the onChange callback on the new treeData
|
|
497
472
|
ReactSortableTree.loadLazyChildren = function (props) {
|
|
498
|
-
|
|
473
|
+
walk({
|
|
499
474
|
treeData: props.treeData,
|
|
500
475
|
getNodeKey: props.getNodeKey,
|
|
501
476
|
callback: function (_a) {
|
|
@@ -511,7 +486,7 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
511
486
|
treeIndex: treeIndex,
|
|
512
487
|
// Provide a helper to append the new data when it is received
|
|
513
488
|
done: function (childrenArray) {
|
|
514
|
-
return props.onChange(
|
|
489
|
+
return props.onChange(changeNodeAtPath({
|
|
515
490
|
treeData: props.treeData,
|
|
516
491
|
path: path,
|
|
517
492
|
newNode: function (_a) {
|
|
@@ -557,8 +532,8 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
557
532
|
treeId: this.treeId,
|
|
558
533
|
rowDirection: rowDirection
|
|
559
534
|
};
|
|
560
|
-
return (
|
|
561
|
-
|
|
535
|
+
return (React.createElement(TreeNodeRenderer, __assign({ style: style, key: nodeKey, listIndex: listIndex, getPrevRow: getPrevRow, lowerSiblingCounts: lowerSiblingCounts, swapFrom: swapFrom, swapLength: swapLength, swapDepth: swapDepth }, sharedProps),
|
|
536
|
+
React.createElement(NodeContentRenderer, __assign({ parentNode: parentNode, isSearchMatch: isSearchMatch, isSearchFocus: isSearchFocus, canDrag: rowCanDrag, toggleChildrenVisibility: this.toggleChildrenVisibility }, sharedProps, nodeProps))));
|
|
562
537
|
};
|
|
563
538
|
ReactSortableTree.prototype.render = function () {
|
|
564
539
|
var _this = this;
|
|
@@ -570,7 +545,7 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
570
545
|
var swapFrom = null;
|
|
571
546
|
var swapLength = null;
|
|
572
547
|
if (draggedNode && draggedMinimumTreeIndex !== null) {
|
|
573
|
-
var addedResult =
|
|
548
|
+
var addedResult = memoizedInsertNode({
|
|
574
549
|
treeData: treeData,
|
|
575
550
|
newNode: draggedNode,
|
|
576
551
|
depth: draggedDepth,
|
|
@@ -580,8 +555,8 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
580
555
|
});
|
|
581
556
|
var swapTo = draggedMinimumTreeIndex;
|
|
582
557
|
swapFrom = addedResult.treeIndex;
|
|
583
|
-
swapLength = 1 +
|
|
584
|
-
rows =
|
|
558
|
+
swapLength = 1 + memoizedGetDescendantCount({ node: draggedNode });
|
|
559
|
+
rows = slideRows(this.getRows(addedResult.treeData), swapFrom, swapTo, swapLength);
|
|
585
560
|
}
|
|
586
561
|
else {
|
|
587
562
|
rows = this.getRows(treeData);
|
|
@@ -599,16 +574,16 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
599
574
|
if (rows.length < 1) {
|
|
600
575
|
var Placeholder = this.treePlaceholderRenderer;
|
|
601
576
|
var PlaceholderContent = placeholderRenderer;
|
|
602
|
-
list = (
|
|
603
|
-
|
|
577
|
+
list = (React.createElement(Placeholder, { treeId: this.treeId, drop: this.drop },
|
|
578
|
+
React.createElement(PlaceholderContent, null)));
|
|
604
579
|
}
|
|
605
580
|
else if (isVirtualized) {
|
|
606
581
|
containerStyle = __assign({ height: '100%' }, containerStyle);
|
|
607
582
|
var ScrollZoneVirtualList_1 = this.scrollZoneVirtualList;
|
|
608
583
|
// Render list with react-virtualized
|
|
609
|
-
list = (
|
|
584
|
+
list = (React.createElement(AutoSizer, null, function (_a) {
|
|
610
585
|
var height = _a.height, width = _a.width;
|
|
611
|
-
return (
|
|
586
|
+
return (React.createElement(ScrollZoneVirtualList_1, __assign({}, scrollToInfo, { dragDropManager: dragDropManager, verticalStrength: _this.vStrength, horizontalStrength: _this.hStrength, speed: 30, scrollToAlignment: "start", className: _this.props.classes.rst__virtualScrollOverride, width: width, onScroll: function (_a) {
|
|
612
587
|
var scrollTop = _a.scrollTop;
|
|
613
588
|
_this.scrollTop = scrollTop;
|
|
614
589
|
}, height: height, style: innerStyle, rowCount: rows.length, estimatedRowSize: typeof rowHeight !== 'function' ? rowHeight : undefined, rowHeight: typeof rowHeight !== 'function'
|
|
@@ -658,14 +633,14 @@ var ReactSortableTree = /** @class */ (function (_super) {
|
|
|
658
633
|
});
|
|
659
634
|
});
|
|
660
635
|
}
|
|
661
|
-
return (
|
|
636
|
+
return (React.createElement("div", { className: classnames('rst__tree', className, rowDirectionClass), style: containerStyle }, list));
|
|
662
637
|
};
|
|
663
638
|
return ReactSortableTree;
|
|
664
|
-
}(
|
|
639
|
+
}(Component));
|
|
665
640
|
ReactSortableTree.propTypes = {
|
|
666
|
-
classes:
|
|
667
|
-
dragDropManager:
|
|
668
|
-
getMonitor:
|
|
641
|
+
classes: PropTypes.object,
|
|
642
|
+
dragDropManager: PropTypes.shape({
|
|
643
|
+
getMonitor: PropTypes.func
|
|
669
644
|
}).isRequired,
|
|
670
645
|
// Tree data in the following format:
|
|
671
646
|
// [{title: 'main', subtitle: 'sub'}, { title: 'value2', expanded: true, children: [{ title: 'value3') }] }]
|
|
@@ -673,96 +648,96 @@ ReactSortableTree.propTypes = {
|
|
|
673
648
|
// `subtitle` is a secondary label for the node
|
|
674
649
|
// `expanded` shows children of the node if true, or hides them if false. Defaults to false.
|
|
675
650
|
// `children` is an array of child nodes belonging to the node.
|
|
676
|
-
treeData:
|
|
651
|
+
treeData: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
677
652
|
// Style applied to the container wrapping the tree (style defaults to {height: '100%'})
|
|
678
|
-
style:
|
|
653
|
+
style: PropTypes.shape({}),
|
|
679
654
|
// Class name for the container wrapping the tree
|
|
680
|
-
className:
|
|
655
|
+
className: PropTypes.string,
|
|
681
656
|
// Style applied to the inner, scrollable container (for padding, etc.)
|
|
682
|
-
innerStyle:
|
|
657
|
+
innerStyle: PropTypes.shape({}),
|
|
683
658
|
// Used by react-virtualized
|
|
684
659
|
// Either a fixed row height (number) or a function that returns the
|
|
685
660
|
// height of a row given its index: `({ index: number }): number`
|
|
686
|
-
rowHeight:
|
|
661
|
+
rowHeight: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
|
|
687
662
|
// Size in px of the region near the edges that initiates scrolling on dragover
|
|
688
|
-
slideRegionSize:
|
|
663
|
+
slideRegionSize: PropTypes.number,
|
|
689
664
|
// Custom properties to hand to the react-virtualized list
|
|
690
665
|
// https://github.com/bvaughn/react-virtualized/blob/master/docs/List.md#prop-types
|
|
691
|
-
reactVirtualizedListProps:
|
|
666
|
+
reactVirtualizedListProps: PropTypes.shape({}),
|
|
692
667
|
// The width of the blocks containing the lines representing the structure of the tree.
|
|
693
|
-
scaffoldBlockPxWidth:
|
|
668
|
+
scaffoldBlockPxWidth: PropTypes.number,
|
|
694
669
|
// Maximum depth nodes can be inserted at. Defaults to infinite.
|
|
695
|
-
maxDepth:
|
|
670
|
+
maxDepth: PropTypes.number,
|
|
696
671
|
// The method used to search nodes.
|
|
697
672
|
// Defaults to a function that uses the `searchQuery` string to search for nodes with
|
|
698
673
|
// matching `title` or `subtitle` values.
|
|
699
674
|
// NOTE: Changing `searchMethod` will not update the search, but changing the `searchQuery` will.
|
|
700
|
-
searchMethod:
|
|
675
|
+
searchMethod: PropTypes.func,
|
|
701
676
|
// Used by the `searchMethod` to highlight and scroll to matched nodes.
|
|
702
677
|
// Should be a string for the default `searchMethod`, but can be anything when using a custom search.
|
|
703
|
-
searchQuery:
|
|
678
|
+
searchQuery: PropTypes.any,
|
|
704
679
|
// Outline the <`searchFocusOffset`>th node and scroll to it.
|
|
705
|
-
searchFocusOffset:
|
|
680
|
+
searchFocusOffset: PropTypes.number,
|
|
706
681
|
// Get the nodes that match the search criteria. Used for counting total matches, etc.
|
|
707
|
-
searchFinishCallback:
|
|
682
|
+
searchFinishCallback: PropTypes.func,
|
|
708
683
|
// Generate an object with additional props to be passed to the node renderer.
|
|
709
684
|
// Use this for adding buttons via the `buttons` key,
|
|
710
685
|
// or additional `style` / `className` settings.
|
|
711
|
-
generateNodeProps:
|
|
686
|
+
generateNodeProps: PropTypes.func,
|
|
712
687
|
// Set to false to disable virtualization.
|
|
713
688
|
// NOTE: Auto-scrolling while dragging, and scrolling to the `searchFocusOffset` will be disabled.
|
|
714
|
-
isVirtualized:
|
|
715
|
-
treeNodeRenderer:
|
|
689
|
+
isVirtualized: PropTypes.bool,
|
|
690
|
+
treeNodeRenderer: PropTypes.func,
|
|
716
691
|
// Override the default component for rendering nodes (but keep the scaffolding generator)
|
|
717
692
|
// This is an advanced option for complete customization of the appearance.
|
|
718
693
|
// It is best to copy the component in `node-renderer-default.js` to use as a base, and customize as needed.
|
|
719
|
-
nodeContentRenderer:
|
|
694
|
+
nodeContentRenderer: PropTypes.func,
|
|
720
695
|
// Override the default component for rendering an empty tree
|
|
721
696
|
// This is an advanced option for complete customization of the appearance.
|
|
722
697
|
// It is best to copy the component in `placeholder-renderer-default.js` to use as a base,
|
|
723
698
|
// and customize as needed.
|
|
724
|
-
placeholderRenderer:
|
|
725
|
-
theme:
|
|
726
|
-
style:
|
|
727
|
-
innerStyle:
|
|
728
|
-
reactVirtualizedListProps:
|
|
729
|
-
scaffoldBlockPxWidth:
|
|
730
|
-
slideRegionSize:
|
|
731
|
-
rowHeight:
|
|
732
|
-
treeNodeRenderer:
|
|
733
|
-
nodeContentRenderer:
|
|
734
|
-
placeholderRenderer:
|
|
699
|
+
placeholderRenderer: PropTypes.func,
|
|
700
|
+
theme: PropTypes.shape({
|
|
701
|
+
style: PropTypes.shape({}),
|
|
702
|
+
innerStyle: PropTypes.shape({}),
|
|
703
|
+
reactVirtualizedListProps: PropTypes.shape({}),
|
|
704
|
+
scaffoldBlockPxWidth: PropTypes.number,
|
|
705
|
+
slideRegionSize: PropTypes.number,
|
|
706
|
+
rowHeight: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
|
|
707
|
+
treeNodeRenderer: PropTypes.func,
|
|
708
|
+
nodeContentRenderer: PropTypes.func,
|
|
709
|
+
placeholderRenderer: PropTypes.func
|
|
735
710
|
}),
|
|
736
711
|
// Determine the unique key used to identify each node and
|
|
737
712
|
// generate the `path` array passed in callbacks.
|
|
738
713
|
// By default, returns the index in the tree (omitting hidden nodes).
|
|
739
|
-
getNodeKey:
|
|
714
|
+
getNodeKey: PropTypes.func,
|
|
740
715
|
// Called whenever tree data changed.
|
|
741
716
|
// Just like with React input elements, you have to update your
|
|
742
717
|
// own component's data to see the changes reflected.
|
|
743
|
-
onChange:
|
|
718
|
+
onChange: PropTypes.func.isRequired,
|
|
744
719
|
// Called after node move operation.
|
|
745
|
-
onMoveNode:
|
|
720
|
+
onMoveNode: PropTypes.func,
|
|
746
721
|
// Determine whether a node can be dragged. Set to false to disable dragging on all nodes.
|
|
747
|
-
canDrag:
|
|
722
|
+
canDrag: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]),
|
|
748
723
|
// Determine whether a node can be dropped based on its path and parents'.
|
|
749
|
-
canDrop:
|
|
724
|
+
canDrop: PropTypes.func,
|
|
750
725
|
// Determine whether a node can have children
|
|
751
|
-
canNodeHaveChildren:
|
|
726
|
+
canNodeHaveChildren: PropTypes.func,
|
|
752
727
|
// When true, or a callback returning true, dropping nodes to react-dnd
|
|
753
728
|
// drop targets outside of this tree will not remove them from this tree
|
|
754
|
-
shouldCopyOnOutsideDrop:
|
|
729
|
+
shouldCopyOnOutsideDrop: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]),
|
|
755
730
|
// Called after children nodes collapsed or expanded.
|
|
756
|
-
onVisibilityToggle:
|
|
757
|
-
dndType:
|
|
731
|
+
onVisibilityToggle: PropTypes.func,
|
|
732
|
+
dndType: PropTypes.string,
|
|
758
733
|
// Called to track between dropped and dragging
|
|
759
|
-
onDragStateChanged:
|
|
734
|
+
onDragStateChanged: PropTypes.func,
|
|
760
735
|
// Specify that nodes that do not match search will be collapsed
|
|
761
|
-
onlyExpandSearchedNodes:
|
|
736
|
+
onlyExpandSearchedNodes: PropTypes.bool,
|
|
762
737
|
// rtl support
|
|
763
|
-
rowDirection:
|
|
764
|
-
onLazyLoadChildren:
|
|
765
|
-
ignoreTreeChanges:
|
|
738
|
+
rowDirection: PropTypes.string,
|
|
739
|
+
onLazyLoadChildren: PropTypes.func,
|
|
740
|
+
ignoreTreeChanges: PropTypes.bool
|
|
766
741
|
};
|
|
767
742
|
ReactSortableTree.defaultProps = {
|
|
768
743
|
canDrag: true,
|
|
@@ -771,7 +746,7 @@ ReactSortableTree.defaultProps = {
|
|
|
771
746
|
className: '',
|
|
772
747
|
dndType: null,
|
|
773
748
|
generateNodeProps: null,
|
|
774
|
-
getNodeKey:
|
|
749
|
+
getNodeKey: defaultGetNodeKey,
|
|
775
750
|
innerStyle: {},
|
|
776
751
|
isVirtualized: true,
|
|
777
752
|
maxDepth: null,
|
|
@@ -797,13 +772,16 @@ ReactSortableTree.defaultProps = {
|
|
|
797
772
|
onLazyLoadChildren: function () { },
|
|
798
773
|
ignoreTreeChanges: false
|
|
799
774
|
};
|
|
800
|
-
|
|
801
|
-
var StyledReactSortableTree =
|
|
802
|
-
var SortableTreeWithoutDndContext = function (props) { return (
|
|
775
|
+
polyfill(ReactSortableTree);
|
|
776
|
+
var StyledReactSortableTree = withStyles(styles)(ReactSortableTree);
|
|
777
|
+
var SortableTreeWithoutDndContext = function (props) { return (React.createElement(DndContext.Consumer, null, function (_a) {
|
|
803
778
|
var dragDropManager = _a.dragDropManager;
|
|
804
|
-
return dragDropManager === undefined ? null : (
|
|
779
|
+
return dragDropManager === undefined ? null : (React.createElement(StyledReactSortableTree, __assign({}, props, { dragDropManager: dragDropManager })));
|
|
805
780
|
})); };
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
781
|
+
var SortableTree = function (props) { return (React.createElement(DndProvider, { backend: HTML5Backend },
|
|
782
|
+
React.createElement(SortableTreeWithoutDndContext, __assign({}, props)))); };
|
|
783
|
+
// Export the tree component without the react-dnd DragDropContext,
|
|
784
|
+
// for when component is used with other components using react-dnd.
|
|
785
|
+
// see: https://github.com/gaearon/react-dnd/issues/186
|
|
786
|
+
export { SortableTreeWithoutDndContext };
|
|
787
|
+
export default SortableTree;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.styles = void 0;
|
|
4
|
-
var styles = function () { return ({
|
|
1
|
+
export var styles = function () { return ({
|
|
5
2
|
/* import styles from react-virtualized/styles.css */
|
|
6
3
|
/* Grid default theme */
|
|
7
4
|
'@global .ReactVirtualized__Grid__innerScrollContainer': {
|
|
@@ -20,4 +17,3 @@ var styles = function () { return ({
|
|
|
20
17
|
direction: 'rtl'
|
|
21
18
|
}
|
|
22
19
|
}); };
|
|
23
|
-
exports.styles = styles;
|