@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 __assign = (this && this.__assign) || function () {
|
|
3
2
|
__assign = Object.assign || function(t) {
|
|
4
3
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -15,8 +14,6 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
|
15
14
|
to[j] = from[i];
|
|
16
15
|
return to;
|
|
17
16
|
};
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.find = exports.getDepth = exports.isDescendant = exports.getTreeFromFlatData = exports.getFlatDataFromTree = exports.insertNode = exports.addNodeUnderParent = exports.getNodeAtPath = exports.removeNode = exports.removeNodeAtPath = exports.changeNodeAtPath = exports.RESULT_MISS_ERROR_MESSAGE = exports.toggleExpandedForAll = exports.map = exports.walk = exports.getVisibleNodeInfoAtIndex = exports.getVisibleNodeCount = exports.getDescendantCount = void 0;
|
|
20
17
|
/**
|
|
21
18
|
* Performs a depth-first traversal over all of the node descendants,
|
|
22
19
|
* incrementing currentIndex by 1 for each
|
|
@@ -59,7 +56,7 @@ function getNodeDataAtTreeIndexOrNextIndex(_a) {
|
|
|
59
56
|
// If the target node is not found, return the farthest traversed index
|
|
60
57
|
return { nextIndex: childIndex };
|
|
61
58
|
}
|
|
62
|
-
function getDescendantCount(_a) {
|
|
59
|
+
export function getDescendantCount(_a) {
|
|
63
60
|
var node = _a.node, _b = _a.ignoreCollapsed, ignoreCollapsed = _b === void 0 ? true : _b;
|
|
64
61
|
return (getNodeDataAtTreeIndexOrNextIndex({
|
|
65
62
|
getNodeKey: function () { },
|
|
@@ -69,7 +66,6 @@ function getDescendantCount(_a) {
|
|
|
69
66
|
targetIndex: -1
|
|
70
67
|
}).nextIndex - 1);
|
|
71
68
|
}
|
|
72
|
-
exports.getDescendantCount = getDescendantCount;
|
|
73
69
|
/**
|
|
74
70
|
* Walk all descendants of the given node, depth-first
|
|
75
71
|
*
|
|
@@ -205,7 +201,7 @@ function mapDescendants(_a) {
|
|
|
205
201
|
*
|
|
206
202
|
* @return {number} count
|
|
207
203
|
*/
|
|
208
|
-
function getVisibleNodeCount(_a) {
|
|
204
|
+
export function getVisibleNodeCount(_a) {
|
|
209
205
|
var treeData = _a.treeData;
|
|
210
206
|
var traverse = function (node) {
|
|
211
207
|
if (!node.children || node.expanded !== true || typeof node.children === 'function') {
|
|
@@ -215,7 +211,6 @@ function getVisibleNodeCount(_a) {
|
|
|
215
211
|
};
|
|
216
212
|
return treeData.reduce(function (total, currentNode) { return total + traverse(currentNode); }, 0);
|
|
217
213
|
}
|
|
218
|
-
exports.getVisibleNodeCount = getVisibleNodeCount;
|
|
219
214
|
/**
|
|
220
215
|
* Get the <targetIndex>th visible node in the tree data.
|
|
221
216
|
*
|
|
@@ -229,7 +224,7 @@ exports.getVisibleNodeCount = getVisibleNodeCount;
|
|
|
229
224
|
* lowerSiblingCounts: []number
|
|
230
225
|
* }|null} node - The node at targetIndex, or null if not found
|
|
231
226
|
*/
|
|
232
|
-
function getVisibleNodeInfoAtIndex(_a) {
|
|
227
|
+
export function getVisibleNodeInfoAtIndex(_a) {
|
|
233
228
|
var treeData = _a.treeData, targetIndex = _a.index, getNodeKey = _a.getNodeKey;
|
|
234
229
|
if (!treeData || treeData.length < 1) {
|
|
235
230
|
return null;
|
|
@@ -252,7 +247,6 @@ function getVisibleNodeInfoAtIndex(_a) {
|
|
|
252
247
|
}
|
|
253
248
|
return null;
|
|
254
249
|
}
|
|
255
|
-
exports.getVisibleNodeInfoAtIndex = getVisibleNodeInfoAtIndex;
|
|
256
250
|
/**
|
|
257
251
|
* Walk descendants depth-first and call a callback on each
|
|
258
252
|
*
|
|
@@ -263,7 +257,7 @@ exports.getVisibleNodeInfoAtIndex = getVisibleNodeInfoAtIndex;
|
|
|
263
257
|
*
|
|
264
258
|
* @return void
|
|
265
259
|
*/
|
|
266
|
-
function walk(_a) {
|
|
260
|
+
export function walk(_a) {
|
|
267
261
|
var treeData = _a.treeData, getNodeKey = _a.getNodeKey, callback = _a.callback, _b = _a.ignoreCollapsed, ignoreCollapsed = _b === void 0 ? true : _b;
|
|
268
262
|
if (!treeData || treeData.length < 1) {
|
|
269
263
|
return;
|
|
@@ -279,7 +273,6 @@ function walk(_a) {
|
|
|
279
273
|
lowerSiblingCounts: []
|
|
280
274
|
});
|
|
281
275
|
}
|
|
282
|
-
exports.walk = walk;
|
|
283
276
|
/**
|
|
284
277
|
* Perform a depth-first transversal of the descendants and
|
|
285
278
|
* make a change to every node in the tree
|
|
@@ -291,7 +284,7 @@ exports.walk = walk;
|
|
|
291
284
|
*
|
|
292
285
|
* @return {Object[]} changedTreeData - The changed tree data
|
|
293
286
|
*/
|
|
294
|
-
function map(_a) {
|
|
287
|
+
export function map(_a) {
|
|
295
288
|
var treeData = _a.treeData, getNodeKey = _a.getNodeKey, callback = _a.callback, _b = _a.ignoreCollapsed, ignoreCollapsed = _b === void 0 ? true : _b;
|
|
296
289
|
if (!treeData || treeData.length < 1) {
|
|
297
290
|
return [];
|
|
@@ -307,7 +300,6 @@ function map(_a) {
|
|
|
307
300
|
lowerSiblingCounts: []
|
|
308
301
|
}).node.children;
|
|
309
302
|
}
|
|
310
|
-
exports.map = map;
|
|
311
303
|
/**
|
|
312
304
|
* Expand or close every node in the tree
|
|
313
305
|
*
|
|
@@ -316,7 +308,7 @@ exports.map = map;
|
|
|
316
308
|
*
|
|
317
309
|
* @return {Object[]} changedTreeData - The changed tree data
|
|
318
310
|
*/
|
|
319
|
-
function toggleExpandedForAll(_a) {
|
|
311
|
+
export function toggleExpandedForAll(_a) {
|
|
320
312
|
var treeData = _a.treeData, _b = _a.expanded, expanded = _b === void 0 ? true : _b;
|
|
321
313
|
return map({
|
|
322
314
|
treeData: treeData,
|
|
@@ -331,8 +323,7 @@ function toggleExpandedForAll(_a) {
|
|
|
331
323
|
ignoreCollapsed: false
|
|
332
324
|
});
|
|
333
325
|
}
|
|
334
|
-
|
|
335
|
-
exports.RESULT_MISS_ERROR_MESSAGE = 'No node found at the given path.';
|
|
326
|
+
export var RESULT_MISS_ERROR_MESSAGE = 'No node found at the given path.';
|
|
336
327
|
/**
|
|
337
328
|
* Replaces node at path with object, or callback-defined object
|
|
338
329
|
*
|
|
@@ -344,7 +335,7 @@ exports.RESULT_MISS_ERROR_MESSAGE = 'No node found at the given path.';
|
|
|
344
335
|
*
|
|
345
336
|
* @return {Object[]} changedTreeData - The changed tree data
|
|
346
337
|
*/
|
|
347
|
-
function changeNodeAtPath(_a) {
|
|
338
|
+
export function changeNodeAtPath(_a) {
|
|
348
339
|
var treeData = _a.treeData, path = _a.path, newNode = _a.newNode, getNodeKey = _a.getNodeKey, _b = _a.ignoreCollapsed, ignoreCollapsed = _b === void 0 ? true : _b;
|
|
349
340
|
var RESULT_MISS = 'RESULT_MISS';
|
|
350
341
|
var traverse = function (_a) {
|
|
@@ -390,11 +381,10 @@ function changeNodeAtPath(_a) {
|
|
|
390
381
|
isPseudoRoot: true
|
|
391
382
|
});
|
|
392
383
|
if (result === RESULT_MISS) {
|
|
393
|
-
throw new Error(
|
|
384
|
+
throw new Error(RESULT_MISS_ERROR_MESSAGE);
|
|
394
385
|
}
|
|
395
386
|
return result.children;
|
|
396
387
|
}
|
|
397
|
-
exports.changeNodeAtPath = changeNodeAtPath;
|
|
398
388
|
/**
|
|
399
389
|
* Removes the node at the specified path and returns the resulting treeData.
|
|
400
390
|
*
|
|
@@ -405,7 +395,7 @@ exports.changeNodeAtPath = changeNodeAtPath;
|
|
|
405
395
|
*
|
|
406
396
|
* @return {Object[]} changedTreeData - The tree data with the node removed
|
|
407
397
|
*/
|
|
408
|
-
function removeNodeAtPath(_a) {
|
|
398
|
+
export function removeNodeAtPath(_a) {
|
|
409
399
|
var treeData = _a.treeData, path = _a.path, getNodeKey = _a.getNodeKey, _b = _a.ignoreCollapsed, ignoreCollapsed = _b === void 0 ? true : _b;
|
|
410
400
|
return changeNodeAtPath({
|
|
411
401
|
treeData: treeData,
|
|
@@ -415,7 +405,6 @@ function removeNodeAtPath(_a) {
|
|
|
415
405
|
newNode: null // Delete the node
|
|
416
406
|
});
|
|
417
407
|
}
|
|
418
|
-
exports.removeNodeAtPath = removeNodeAtPath;
|
|
419
408
|
/**
|
|
420
409
|
* Removes the node at the specified path and returns the resulting treeData.
|
|
421
410
|
*
|
|
@@ -429,7 +418,7 @@ exports.removeNodeAtPath = removeNodeAtPath;
|
|
|
429
418
|
* @return {Object} result.node - The node that was removed
|
|
430
419
|
* @return {number} result.treeIndex - The previous treeIndex of the removed node
|
|
431
420
|
*/
|
|
432
|
-
function removeNode(_a) {
|
|
421
|
+
export function removeNode(_a) {
|
|
433
422
|
var treeData = _a.treeData, path = _a.path, getNodeKey = _a.getNodeKey, _b = _a.ignoreCollapsed, ignoreCollapsed = _b === void 0 ? true : _b;
|
|
434
423
|
var removedNode = null;
|
|
435
424
|
var removedTreeIndex = null;
|
|
@@ -452,7 +441,6 @@ function removeNode(_a) {
|
|
|
452
441
|
treeIndex: removedTreeIndex
|
|
453
442
|
};
|
|
454
443
|
}
|
|
455
|
-
exports.removeNode = removeNode;
|
|
456
444
|
/**
|
|
457
445
|
* Gets the node at the specified path
|
|
458
446
|
*
|
|
@@ -463,7 +451,7 @@ exports.removeNode = removeNode;
|
|
|
463
451
|
*
|
|
464
452
|
* @return {Object|null} nodeInfo - The node info at the given path, or null if not found
|
|
465
453
|
*/
|
|
466
|
-
function getNodeAtPath(_a) {
|
|
454
|
+
export function getNodeAtPath(_a) {
|
|
467
455
|
var treeData = _a.treeData, path = _a.path, getNodeKey = _a.getNodeKey, _b = _a.ignoreCollapsed, ignoreCollapsed = _b === void 0 ? true : _b;
|
|
468
456
|
var foundNodeInfo = null;
|
|
469
457
|
try {
|
|
@@ -484,7 +472,6 @@ function getNodeAtPath(_a) {
|
|
|
484
472
|
}
|
|
485
473
|
return foundNodeInfo;
|
|
486
474
|
}
|
|
487
|
-
exports.getNodeAtPath = getNodeAtPath;
|
|
488
475
|
/**
|
|
489
476
|
* Adds the node to the specified parent and returns the resulting treeData.
|
|
490
477
|
*
|
|
@@ -500,7 +487,7 @@ exports.getNodeAtPath = getNodeAtPath;
|
|
|
500
487
|
* @return {Object[]} result.treeData - The updated tree data
|
|
501
488
|
* @return {number} result.treeIndex - The tree index at which the node was inserted
|
|
502
489
|
*/
|
|
503
|
-
function addNodeUnderParent(_a) {
|
|
490
|
+
export function addNodeUnderParent(_a) {
|
|
504
491
|
var treeData = _a.treeData, newNode = _a.newNode, _b = _a.parentKey, parentKey = _b === void 0 ? null : _b, getNodeKey = _a.getNodeKey, _c = _a.ignoreCollapsed, ignoreCollapsed = _c === void 0 ? true : _c, _d = _a.expandParent, expandParent = _d === void 0 ? false : _d, _e = _a.addAsFirstChild, addAsFirstChild = _e === void 0 ? false : _e;
|
|
505
492
|
if (parentKey === null) {
|
|
506
493
|
return addAsFirstChild
|
|
@@ -556,7 +543,6 @@ function addNodeUnderParent(_a) {
|
|
|
556
543
|
treeIndex: insertedTreeIndex
|
|
557
544
|
};
|
|
558
545
|
}
|
|
559
|
-
exports.addNodeUnderParent = addNodeUnderParent;
|
|
560
546
|
function addNodeAtDepthAndIndex(_a) {
|
|
561
547
|
var targetDepth = _a.targetDepth, minimumTreeIndex = _a.minimumTreeIndex, newNode = _a.newNode, ignoreCollapsed = _a.ignoreCollapsed, expandParent = _a.expandParent, _b = _a.isPseudoRoot, isPseudoRoot = _b === void 0 ? false : _b, isLastChild = _a.isLastChild, node = _a.node, currentIndex = _a.currentIndex, currentDepth = _a.currentDepth, getNodeKey = _a.getNodeKey, _c = _a.path, path = _c === void 0 ? [] : _c;
|
|
562
548
|
var selfPath = function (n) { return (isPseudoRoot ? [] : __spreadArray(__spreadArray([], path), [getNodeKey({ node: n, treeIndex: currentIndex })])); };
|
|
@@ -690,7 +676,7 @@ function addNodeAtDepthAndIndex(_a) {
|
|
|
690
676
|
* @return {number[]|string[]} result.path - Array of keys leading to the node location after insertion
|
|
691
677
|
* @return {Object} result.parentNode - The parent node of the inserted node
|
|
692
678
|
*/
|
|
693
|
-
function insertNode(_a) {
|
|
679
|
+
export function insertNode(_a) {
|
|
694
680
|
var treeData = _a.treeData, targetDepth = _a.depth, minimumTreeIndex = _a.minimumTreeIndex, newNode = _a.newNode, _b = _a.getNodeKey, getNodeKey = _b === void 0 ? function () { } : _b, _c = _a.ignoreCollapsed, ignoreCollapsed = _c === void 0 ? true : _c, _d = _a.expandParent, expandParent = _d === void 0 ? false : _d;
|
|
695
681
|
if (!treeData && targetDepth === 0) {
|
|
696
682
|
return {
|
|
@@ -724,7 +710,6 @@ function insertNode(_a) {
|
|
|
724
710
|
parentNode: insertResult.parentNode
|
|
725
711
|
};
|
|
726
712
|
}
|
|
727
|
-
exports.insertNode = insertNode;
|
|
728
713
|
/**
|
|
729
714
|
* Get tree data flattened.
|
|
730
715
|
*
|
|
@@ -738,7 +723,7 @@ exports.insertNode = insertNode;
|
|
|
738
723
|
* lowerSiblingCounts: []number
|
|
739
724
|
* }}[] nodes - The node array
|
|
740
725
|
*/
|
|
741
|
-
function getFlatDataFromTree(_a) {
|
|
726
|
+
export function getFlatDataFromTree(_a) {
|
|
742
727
|
var treeData = _a.treeData, getNodeKey = _a.getNodeKey, _b = _a.ignoreCollapsed, ignoreCollapsed = _b === void 0 ? true : _b;
|
|
743
728
|
if (!treeData || treeData.length < 1) {
|
|
744
729
|
return [];
|
|
@@ -754,7 +739,6 @@ function getFlatDataFromTree(_a) {
|
|
|
754
739
|
});
|
|
755
740
|
return flattened;
|
|
756
741
|
}
|
|
757
|
-
exports.getFlatDataFromTree = getFlatDataFromTree;
|
|
758
742
|
/**
|
|
759
743
|
* Generate a tree structure from flat data.
|
|
760
744
|
*
|
|
@@ -766,7 +750,7 @@ exports.getFlatDataFromTree = getFlatDataFromTree;
|
|
|
766
750
|
*
|
|
767
751
|
* @return {Object[]} treeData - The flat data represented as a tree
|
|
768
752
|
*/
|
|
769
|
-
function getTreeFromFlatData(_a) {
|
|
753
|
+
export function getTreeFromFlatData(_a) {
|
|
770
754
|
var flatData = _a.flatData, _b = _a.getKey, getKey = _b === void 0 ? function (node) { return node.id; } : _b, _c = _a.getParentKey, getParentKey = _c === void 0 ? function (node) { return node.parentId; } : _c, _d = _a.rootKey, rootKey = _d === void 0 ? '0' : _d;
|
|
771
755
|
if (!flatData) {
|
|
772
756
|
return [];
|
|
@@ -793,7 +777,6 @@ function getTreeFromFlatData(_a) {
|
|
|
793
777
|
};
|
|
794
778
|
return childrenToParents[rootKey].map(function (child) { return trav(child); });
|
|
795
779
|
}
|
|
796
|
-
exports.getTreeFromFlatData = getTreeFromFlatData;
|
|
797
780
|
/**
|
|
798
781
|
* Check if a node is a descendant of another node.
|
|
799
782
|
*
|
|
@@ -802,12 +785,11 @@ exports.getTreeFromFlatData = getTreeFromFlatData;
|
|
|
802
785
|
*
|
|
803
786
|
* @return {boolean}
|
|
804
787
|
*/
|
|
805
|
-
function isDescendant(older, younger) {
|
|
788
|
+
export function isDescendant(older, younger) {
|
|
806
789
|
return (!!older.children &&
|
|
807
790
|
typeof older.children !== 'function' &&
|
|
808
791
|
older.children.some(function (child) { return child === younger || isDescendant(child, younger); }));
|
|
809
792
|
}
|
|
810
|
-
exports.isDescendant = isDescendant;
|
|
811
793
|
/**
|
|
812
794
|
* Get the maximum depth of the children (the depth of the root node is 0).
|
|
813
795
|
*
|
|
@@ -816,7 +798,7 @@ exports.isDescendant = isDescendant;
|
|
|
816
798
|
*
|
|
817
799
|
* @return {number} maxDepth - The deepest depth in the tree
|
|
818
800
|
*/
|
|
819
|
-
function getDepth(node, depth) {
|
|
801
|
+
export function getDepth(node, depth) {
|
|
820
802
|
if (depth === void 0) { depth = 0; }
|
|
821
803
|
if (!node.children) {
|
|
822
804
|
return depth;
|
|
@@ -826,7 +808,6 @@ function getDepth(node, depth) {
|
|
|
826
808
|
}
|
|
827
809
|
return node.children.reduce(function (deepest, child) { return Math.max(deepest, getDepth(child, depth + 1)); }, depth);
|
|
828
810
|
}
|
|
829
|
-
exports.getDepth = getDepth;
|
|
830
811
|
/**
|
|
831
812
|
* Find nodes matching a search query in the tree,
|
|
832
813
|
*
|
|
@@ -844,7 +825,7 @@ exports.getDepth = getDepth;
|
|
|
844
825
|
* If expandAllMatchPaths and expandFocusMatchPaths are both false,
|
|
845
826
|
* it will be the same as the original tree data.
|
|
846
827
|
*/
|
|
847
|
-
function find(_a) {
|
|
828
|
+
export function find(_a) {
|
|
848
829
|
var getNodeKey = _a.getNodeKey, treeData = _a.treeData, searchQuery = _a.searchQuery, searchMethod = _a.searchMethod, searchFocusOffset = _a.searchFocusOffset, _b = _a.expandAllMatchPaths, expandAllMatchPaths = _b === void 0 ? false : _b, _c = _a.expandFocusMatchPaths, expandFocusMatchPaths = _c === void 0 ? true : _c;
|
|
849
830
|
var matchCount = 0;
|
|
850
831
|
var trav = function (_a) {
|
|
@@ -938,8 +919,7 @@ function find(_a) {
|
|
|
938
919
|
treeData: result.node.children
|
|
939
920
|
};
|
|
940
921
|
}
|
|
941
|
-
|
|
942
|
-
exports.default = {
|
|
922
|
+
export default {
|
|
943
923
|
find: find,
|
|
944
924
|
getDepth: getDepth,
|
|
945
925
|
isDescendant: isDescendant,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __assign = (this && this.__assign) || function () {
|
|
3
2
|
__assign = Object.assign || function(t) {
|
|
4
3
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -10,59 +9,36 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
9
|
};
|
|
11
10
|
return __assign.apply(this, arguments);
|
|
12
11
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
-
}) : function(o, v) {
|
|
23
|
-
o["default"] = v;
|
|
24
|
-
});
|
|
25
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
-
if (mod && mod.__esModule) return mod;
|
|
27
|
-
var result = {};
|
|
28
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
-
__setModuleDefault(result, mod);
|
|
30
|
-
return result;
|
|
31
|
-
};
|
|
32
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
33
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
34
|
-
};
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
var prop_types_1 = __importDefault(require("prop-types"));
|
|
37
|
-
var react_1 = __importStar(require("react"));
|
|
38
|
-
var react_grid_layout_1 = __importDefault(require("react-grid-layout"));
|
|
39
|
-
var react_resize_detector_1 = __importDefault(require("react-resize-detector"));
|
|
40
|
-
var ramda_1 = require("ramda");
|
|
41
|
-
var classnames_1 = __importDefault(require("classnames"));
|
|
42
|
-
var helpers_1 = require("./helpers");
|
|
43
|
-
var styles_1 = require("./styles");
|
|
12
|
+
import PropTypes from 'prop-types';
|
|
13
|
+
import React, { useCallback, useMemo, useRef, useState, memo } from 'react';
|
|
14
|
+
import GridLayout from 'react-grid-layout';
|
|
15
|
+
import ReactResizeDetector from 'react-resize-detector';
|
|
16
|
+
import { identity, pipe } from 'ramda';
|
|
17
|
+
import classnames from 'classnames';
|
|
18
|
+
import { reltioLayoutToReactGridLayout, reactGridLayoutToReltioLayout, reactGridLayoutItemToReltioLayoutItem, copyPropsFromPreviousLayout, calcHeight, getReltioLayoutItemById } from './helpers';
|
|
19
|
+
import { useStyles } from './styles';
|
|
44
20
|
var ReltioGridLayout = function (_a) {
|
|
45
21
|
var _b;
|
|
46
22
|
var views = _a.views, layout = _a.layout, layoutOptions = _a.layoutOptions, onLayoutChanged = _a.onLayoutChanged, draggableHandle = _a.draggableHandle, LayoutItem = _a.LayoutItem, onRemove = _a.onRemove, onDrop = _a.onDrop, droppingItem = _a.droppingItem, isDroppable = _a.isDroppable, classes = _a.classes;
|
|
47
|
-
var ref =
|
|
48
|
-
var styles =
|
|
49
|
-
var _c =
|
|
50
|
-
var _d =
|
|
23
|
+
var ref = useRef();
|
|
24
|
+
var styles = useStyles();
|
|
25
|
+
var _c = useState(null), fullscreenItemId = _c[0], setFullscreenItemId = _c[1];
|
|
26
|
+
var _d = useState(0), width = _d[0], setWidth = _d[1];
|
|
51
27
|
var cols = layoutOptions.cols, rowHeight = layoutOptions.rowHeight, margin = layoutOptions.margin;
|
|
52
|
-
var processedLayout =
|
|
53
|
-
var onReltioLayoutChanged =
|
|
28
|
+
var processedLayout = useMemo(function () { return reltioLayoutToReactGridLayout(layout); }, [layout]);
|
|
29
|
+
var onReltioLayoutChanged = pipe(reactGridLayoutToReltioLayout, copyPropsFromPreviousLayout(['autosizing'], layout), onLayoutChanged);
|
|
54
30
|
var handleDrop = function (layout, layoutItem, e) {
|
|
55
31
|
if (onDrop) {
|
|
56
|
-
onDrop(
|
|
32
|
+
onDrop(reactGridLayoutToReltioLayout(layout), reactGridLayoutItemToReltioLayoutItem(layoutItem), e);
|
|
57
33
|
}
|
|
58
34
|
};
|
|
59
|
-
var onToggleFullscreen =
|
|
35
|
+
var onToggleFullscreen = useCallback(function (id) { return setFullscreenItemId(function (prevId) { return (prevId ? null : id); }); }, []);
|
|
60
36
|
var isFullscreenEnabled = fullscreenItemId !== null;
|
|
61
|
-
var onItemHeightResize =
|
|
37
|
+
var onItemHeightResize = useCallback(function (height, layoutId) {
|
|
62
38
|
var isLayoutChanged = false;
|
|
63
39
|
var newLayout = layout.map(function (layoutItem) {
|
|
64
40
|
if (layoutItem.id === layoutId && height) {
|
|
65
|
-
var newHeight =
|
|
41
|
+
var newHeight = calcHeight(height, layoutOptions);
|
|
66
42
|
if (layoutItem.height !== newHeight) {
|
|
67
43
|
isLayoutChanged = true;
|
|
68
44
|
return __assign(__assign({}, layoutItem), { minHeight: newHeight, maxHeight: newHeight, height: newHeight });
|
|
@@ -75,17 +51,17 @@ var ReltioGridLayout = function (_a) {
|
|
|
75
51
|
}
|
|
76
52
|
}, [layout, layoutOptions, onLayoutChanged]);
|
|
77
53
|
var getAutosizeComponent = function (layoutItemId) {
|
|
78
|
-
return (
|
|
54
|
+
return (React.createElement(ReactResizeDetector, { handleHeight: true, onResize: function (width, height) {
|
|
79
55
|
onItemHeightResize(height, layoutItemId);
|
|
80
56
|
} }));
|
|
81
57
|
};
|
|
82
|
-
return (
|
|
83
|
-
|
|
84
|
-
|
|
58
|
+
return (React.createElement(React.Fragment, null,
|
|
59
|
+
React.createElement(ReactResizeDetector, { refreshMode: "debounce", refreshRate: 50, handleWidth: true, onResize: function (width) { return setWidth(width); } }),
|
|
60
|
+
React.createElement(GridLayout, { innerRef: ref, layout: processedLayout, cols: cols, draggableHandle: draggableHandle, autoSize: true, rowHeight: rowHeight, width: width, margin: margin, onLayoutChange: onReltioLayoutChanged, isResizable: !isFullscreenEnabled, isDraggable: !isFullscreenEnabled, className: classnames(styles.gridLayout, (_b = {}, _b[styles.gridFullscreen] = isFullscreenEnabled, _b)), onDrop: handleDrop, droppingItem: droppingItem, isDroppable: isDroppable }, processedLayout.map(function (layoutItem) {
|
|
85
61
|
var isItemFullscreen = fullscreenItemId === layoutItem.i;
|
|
86
|
-
var isAutosize = (
|
|
62
|
+
var isAutosize = (getReltioLayoutItemById(layout, layoutItem.i) || {}).autosizing;
|
|
87
63
|
var autosizeComponent = isAutosize ? { AutosizeComponent: getAutosizeComponent(layoutItem.i) } : {};
|
|
88
|
-
return (
|
|
64
|
+
return (React.createElement(LayoutItem, __assign({ key: layoutItem.i, layoutItemConfig: layoutItem, views: views, onToggleFullscreen: onToggleFullscreen, onRemove: onRemove, className: classnames({ fullscreen: isItemFullscreen }, classes.item), isFullscreen: isItemFullscreen }, autosizeComponent)));
|
|
89
65
|
}))));
|
|
90
66
|
};
|
|
91
67
|
ReltioGridLayout.defaultProps = {
|
|
@@ -94,24 +70,24 @@ ReltioGridLayout.defaultProps = {
|
|
|
94
70
|
rowHeight: 30,
|
|
95
71
|
margin: [15, 15]
|
|
96
72
|
},
|
|
97
|
-
onConfigChanged:
|
|
98
|
-
onLayoutChanged:
|
|
73
|
+
onConfigChanged: identity,
|
|
74
|
+
onLayoutChanged: identity,
|
|
99
75
|
classes: {}
|
|
100
76
|
};
|
|
101
77
|
ReltioGridLayout.propTypes = {
|
|
102
|
-
views:
|
|
103
|
-
layout:
|
|
104
|
-
layoutOptions:
|
|
105
|
-
onConfigChanged:
|
|
106
|
-
onLayoutChanged:
|
|
107
|
-
onDrop:
|
|
108
|
-
onRemove:
|
|
109
|
-
LayoutItem:
|
|
110
|
-
draggableHandle:
|
|
111
|
-
isDroppable:
|
|
112
|
-
droppingItem:
|
|
113
|
-
classes:
|
|
114
|
-
item:
|
|
78
|
+
views: PropTypes.array,
|
|
79
|
+
layout: PropTypes.array,
|
|
80
|
+
layoutOptions: PropTypes.object,
|
|
81
|
+
onConfigChanged: PropTypes.func,
|
|
82
|
+
onLayoutChanged: PropTypes.func,
|
|
83
|
+
onDrop: PropTypes.func,
|
|
84
|
+
onRemove: PropTypes.func,
|
|
85
|
+
LayoutItem: PropTypes.elementType,
|
|
86
|
+
draggableHandle: PropTypes.string,
|
|
87
|
+
isDroppable: PropTypes.bool,
|
|
88
|
+
droppingItem: PropTypes.object,
|
|
89
|
+
classes: PropTypes.shape({
|
|
90
|
+
item: PropTypes.string
|
|
115
91
|
})
|
|
116
92
|
};
|
|
117
|
-
|
|
93
|
+
export default memo(ReltioGridLayout);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
2
|
var t = {};
|
|
4
3
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -10,12 +9,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
9
|
}
|
|
11
10
|
return t;
|
|
12
11
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var
|
|
16
|
-
var getReltioViewId = function (id) { return id.split(/\d+_/)[1]; };
|
|
17
|
-
exports.getReltioViewId = getReltioViewId;
|
|
18
|
-
var reltioLayoutItemToReactGridLayoutItem = function (_a) {
|
|
12
|
+
import { curry, defaultTo, mergeAll, pick, pipe, prop, propEq, __ } from 'ramda';
|
|
13
|
+
export var getReltioViewId = function (id) { return id.split(/\d+_/)[1]; };
|
|
14
|
+
export var reltioLayoutItemToReactGridLayoutItem = function (_a) {
|
|
19
15
|
var x = _a.x, y = _a.y, width = _a.width, height = _a.height, id = _a.id, minWidth = _a.minWidth, minHeight = _a.minHeight, maxWidth = _a.maxWidth, maxHeight = _a.maxHeight, isStatic = _a.isStatic;
|
|
20
16
|
return ({
|
|
21
17
|
x: x,
|
|
@@ -30,8 +26,7 @@ var reltioLayoutItemToReactGridLayoutItem = function (_a) {
|
|
|
30
26
|
static: isStatic
|
|
31
27
|
});
|
|
32
28
|
};
|
|
33
|
-
|
|
34
|
-
var reactGridLayoutItemToReltioLayoutItem = function (_a) {
|
|
29
|
+
export var reactGridLayoutItemToReltioLayoutItem = function (_a) {
|
|
35
30
|
var x = _a.x, y = _a.y, w = _a.w, h = _a.h, maxW = _a.maxW, minW = _a.minW, minH = _a.minH, maxH = _a.maxH, i = _a.i, obj = __rest(_a, ["x", "y", "w", "h", "maxW", "minW", "minH", "maxH", "i"]);
|
|
36
31
|
return ({
|
|
37
32
|
x: x,
|
|
@@ -46,20 +41,16 @@ var reactGridLayoutItemToReltioLayoutItem = function (_a) {
|
|
|
46
41
|
isStatic: obj.static
|
|
47
42
|
});
|
|
48
43
|
};
|
|
49
|
-
|
|
50
|
-
var
|
|
51
|
-
|
|
52
|
-
var
|
|
53
|
-
|
|
54
|
-
exports.getReltioLayoutItemById = ramda_1.curry(function (layout, id) { return (layout || []).find(ramda_1.propEq('id', id)); });
|
|
55
|
-
var updateExtraPropsInLayoutItem = ramda_1.curry(function (props, from, to) { return ramda_1.mergeAll([to, ramda_1.pick(props, from)]); });
|
|
56
|
-
exports.copyPropsFromPreviousLayout = ramda_1.curry(function (props, oldReltioLayout, reltioLayout) {
|
|
44
|
+
export var reltioLayoutToReactGridLayout = function (layout) { return (layout || []).map(reltioLayoutItemToReactGridLayoutItem); };
|
|
45
|
+
export var reactGridLayoutToReltioLayout = function (layout) { return (layout || []).map(reactGridLayoutItemToReltioLayoutItem); };
|
|
46
|
+
export var getReltioLayoutItemById = curry(function (layout, id) { return (layout || []).find(propEq('id', id)); });
|
|
47
|
+
var updateExtraPropsInLayoutItem = curry(function (props, from, to) { return mergeAll([to, pick(props, from)]); });
|
|
48
|
+
export var copyPropsFromPreviousLayout = curry(function (props, oldReltioLayout, reltioLayout) {
|
|
57
49
|
return (reltioLayout || []).map(function (layoutItem) {
|
|
58
|
-
return
|
|
50
|
+
return pipe(prop('id'), getReltioLayoutItemById(oldReltioLayout), defaultTo({}), updateExtraPropsInLayoutItem(props, __, layoutItem))(layoutItem);
|
|
59
51
|
});
|
|
60
52
|
});
|
|
61
|
-
var calcHeight = function (height, options) {
|
|
53
|
+
export var calcHeight = function (height, options) {
|
|
62
54
|
var margin = options.margin, rowHeight = options.rowHeight;
|
|
63
55
|
return Math.ceil((height + margin[1]) / (rowHeight + margin[1]));
|
|
64
56
|
};
|
|
65
|
-
exports.calcHeight = calcHeight;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
"
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RESIZE_ICON = void 0;
|
|
4
|
-
exports.RESIZE_ICON = "<svg width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path stroke=\"#505050\" stroke-opacity=\".54\" d=\"M9.5 0v10M0 9.5h9M7.5 4v4M4 7.5h3\"/>\n</svg>";
|
|
1
|
+
export var RESIZE_ICON = "<svg width=\"10\" height=\"10\" viewBox=\"0 0 10 10\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path stroke=\"#505050\" stroke-opacity=\".54\" d=\"M9.5 0v10M0 9.5h9M7.5 4v4M4 7.5h3\"/>\n</svg>";
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var
|
|
5
|
-
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
6
|
-
var ResizeIcon_svg_1 = require("./icons/ResizeIcon.svg");
|
|
7
|
-
exports.useStyles = styles_1.makeStyles(function (_) { return ({
|
|
1
|
+
import { makeStyles } from '@material-ui/core/styles';
|
|
2
|
+
import { svg2Url } from '@reltio/mdm-sdk';
|
|
3
|
+
import { RESIZE_ICON } from './icons/ResizeIcon.svg';
|
|
4
|
+
export var useStyles = makeStyles(function (_) { return ({
|
|
8
5
|
gridLayout: {
|
|
9
6
|
position: 'relative',
|
|
10
7
|
width: '100%',
|
|
@@ -46,7 +43,7 @@ exports.useStyles = styles_1.makeStyles(function (_) { return ({
|
|
|
46
43
|
bottom: 0,
|
|
47
44
|
right: 0,
|
|
48
45
|
zIndex: 20,
|
|
49
|
-
backgroundImage: "url('" +
|
|
46
|
+
backgroundImage: "url('" + svg2Url(RESIZE_ICON) + "')",
|
|
50
47
|
backgroundRepeat: 'no-repeat',
|
|
51
48
|
backgroundOrigin: 'content-box',
|
|
52
49
|
boxSizing: 'border-box',
|