@reltio/components 1.4.876 → 1.4.880
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.d.ts +1 -1
- 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.d.ts +16 -15
- package/components/DropDownSelector/DropDownSelector.js +41 -64
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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 +3 -6
- 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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.d.ts +4 -2
- package/components/editors/DateEditor/DateEditor.js +30 -57
- 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.js +11 -17
- package/components/history/HistoryGraph/HistoryGraph.js +20 -44
- package/components/history/HistoryGraph/HistoryLink.js +5 -10
- package/components/history/HistoryGraph/helpers.js +4 -9
- 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.js +18 -42
- package/components/history/HistoryRow/styles.js +2 -5
- package/components/history/HistoryTree/HistoryTree.js +25 -49
- package/components/history/HistoryTree/styles.js +2 -5
- package/components/history/HistoryView/HistoryView.js +13 -37
- package/components/history/HistoryView/styles.js +2 -5
- 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.js +10 -14
- package/components/history/hooks/useHistorySlice.js +16 -39
- package/components/history/hooks/useHistoryTree.js +36 -40
- package/components/history/hooks/useHistoryWithTotal.js +12 -16
- package/components/history/index.js +8 -31
- package/components/history/types/HistoryChangeTypes.js +2 -5
- package/components/history/types/HistoryData.js +1 -2
- package/components/history/types/HistoryFilter.js +2 -5
- package/components/history/types/HistoryLane.js +1 -2
- package/components/history/types/HistoryLife.js +1 -2
- package/components/history/types/HistoryRowData.js +1 -2
- package/components/history/types/index.js +2 -7
- package/components/index.d.ts +1 -0
- package/components/index.js +121 -257
- package/components/workflow/cards/DataChangeRequestTaskCard/DataChangeRequestTaskCard.d.ts +7 -0
- package/components/workflow/cards/DataChangeRequestTaskCard/DataChangeRequestTaskCard.js +28 -0
- package/components/workflow/cards/GenericWorkflowTaskCard/GenericWorkflowTaskCard.d.ts +10 -0
- package/components/workflow/cards/GenericWorkflowTaskCard/GenericWorkflowTaskCard.js +76 -0
- package/components/workflow/cards/GenericWorkflowTaskCard/styles.d.ts +3 -0
- package/components/workflow/cards/GenericWorkflowTaskCard/styles.js +110 -0
- package/components/workflow/cards/WorkflowTaskCard.d.ts +3 -0
- package/components/workflow/cards/WorkflowTaskCard.js +5 -0
- package/components/workflow/cards/WorkflowTaskCardsFactory.d.ts +9 -0
- package/components/workflow/cards/WorkflowTaskCardsFactory.js +27 -0
- package/components/workflow/components/AssigneeSelector/AssigneeSelector.d.ts +5 -0
- package/components/workflow/components/AssigneeSelector/AssigneeSelector.js +14 -0
- package/components/workflow/components/DueDateField/DueDateField.d.ts +7 -0
- package/components/workflow/components/DueDateField/DueDateField.js +14 -0
- package/components/workflow/components/DueDateField/styles.d.ts +1 -0
- package/components/workflow/components/DueDateField/styles.js +13 -0
- package/components/workflow/components/LineDecorator/LineDecorator.d.ts +11 -0
- package/components/workflow/components/LineDecorator/LineDecorator.js +14 -0
- package/components/workflow/components/LineDecorator/styles.d.ts +1 -0
- package/components/workflow/components/LineDecorator/styles.js +59 -0
- package/components/workflow/components/PrioritySelector/PrioritySelector.d.ts +7 -0
- package/components/workflow/components/PrioritySelector/PrioritySelector.js +12 -0
- package/components/workflow/components/TaskActions/TaskActions.d.ts +5 -0
- package/components/workflow/components/TaskActions/TaskActions.js +15 -0
- package/components/workflow/components/WorkflowComments/CollapsedComments.d.ts +16 -0
- package/components/workflow/components/WorkflowComments/CollapsedComments.js +34 -0
- package/components/workflow/components/WorkflowComments/Comment.d.ts +20 -0
- package/components/workflow/components/WorkflowComments/Comment.js +29 -0
- package/components/workflow/components/WorkflowComments/ExpandedComments.d.ts +14 -0
- package/components/workflow/components/WorkflowComments/ExpandedComments.js +20 -0
- package/components/workflow/components/WorkflowComments/WorkflowComments.d.ts +16 -0
- package/components/workflow/components/WorkflowComments/WorkflowComments.js +42 -0
- package/components/workflow/components/WorkflowComments/index.d.ts +1 -0
- package/components/workflow/components/WorkflowComments/index.js +1 -0
- package/components/workflow/components/WorkflowComments/styles.d.ts +4 -0
- package/components/workflow/components/WorkflowComments/styles.js +105 -0
- package/components/workflow/helpers/errors.d.ts +2 -0
- package/components/workflow/helpers/errors.js +14 -0
- package/components/workflow/helpers/index.d.ts +3 -0
- package/components/workflow/helpers/index.js +10 -0
- package/components/workflow/hooks/useWorkflowActions.d.ts +10 -0
- package/components/workflow/hooks/useWorkflowActions.js +57 -0
- package/components/workflow/hooks/useWorkflowAssignee.d.ts +13 -0
- package/components/workflow/hooks/useWorkflowAssignee.js +83 -0
- package/components/workflow/hooks/useWorkflowCheckPermission.d.ts +1 -0
- package/components/workflow/hooks/useWorkflowCheckPermission.js +84 -0
- package/components/workflow/hooks/useWorkflowColor.d.ts +3 -0
- package/components/workflow/hooks/useWorkflowColor.js +31 -0
- package/components/workflow/hooks/useWorkflowComments.d.ts +7 -0
- package/components/workflow/hooks/useWorkflowComments.js +50 -0
- package/components/workflow/hooks/useWorkflowDueDate.d.ts +6 -0
- package/components/workflow/hooks/useWorkflowDueDate.js +39 -0
- package/components/workflow/hooks/useWorkflowPriority.d.ts +12 -0
- package/components/workflow/hooks/useWorkflowPriority.js +59 -0
- package/components/workflow/index.d.ts +5 -0
- package/components/workflow/index.js +5 -0
- 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/WorkflowTasksContext/index.d.ts +9 -0
- package/contexts/WorkflowTasksContext/index.js +3 -0
- package/contexts/index.d.ts +15 -14
- package/contexts/index.js +15 -36
- package/core/index.js +1 -13
- package/core/utils.js +6 -21
- package/hooks/index.d.ts +1 -0
- package/hooks/index.js +14 -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/hooks/useWorkflowTasks.d.ts +8 -0
- package/hooks/useWorkflowTasks.js +65 -0
- package/icons/Add.js +4 -9
- package/icons/AddComment.js +4 -9
- package/icons/Calendar.js +4 -9
- package/icons/CollaborationIcon.d.ts +3 -0
- package/icons/CollaborationIcon.js +22 -0
- 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/DcrTaskIcon.d.ts +3 -0
- package/icons/DcrTaskIcon.js +19 -0
- package/icons/DefaultImage.js +6 -11
- package/icons/DefaultTaskIcon.d.ts +3 -0
- package/icons/DefaultTaskIcon.js +19 -0
- package/icons/DeleteRequestTaskIcon.d.ts +3 -0
- package/icons/DeleteRequestTaskIcon.js +19 -0
- 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/PmTaskIcon.d.ts +3 -0
- package/icons/PmTaskIcon.js +19 -0
- 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.d.ts +11 -2
- package/icons/index.js +46 -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++) {
|
|
@@ -10,25 +9,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
9
|
};
|
|
11
10
|
return __assign.apply(this, arguments);
|
|
12
11
|
};
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
16
|
-
}) : (function(o, m, k, k2) {
|
|
17
|
-
if (k2 === undefined) k2 = k;
|
|
18
|
-
o[k2] = m[k];
|
|
19
|
-
}));
|
|
20
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
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
12
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
33
13
|
var t = {};
|
|
34
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -40,47 +20,43 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
40
20
|
}
|
|
41
21
|
return t;
|
|
42
22
|
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
var contexts_1 = require("../../../contexts");
|
|
54
|
-
var marker_inline_svg_1 = require("./icons/marker.inline.svg");
|
|
55
|
-
var marker_hover_inline_svg_1 = require("./icons/marker-hover.inline.svg");
|
|
56
|
-
var styles_1 = require("./styles");
|
|
23
|
+
import React, { memo, useCallback, useContext, useRef, useState } from 'react';
|
|
24
|
+
import { pathEq } from 'ramda';
|
|
25
|
+
import { Marker, InfoBox } from '@react-google-maps/api';
|
|
26
|
+
import ProfileCard from '../../ProfileCard/ProfileCard';
|
|
27
|
+
import Popper from '../../Popper/Popper';
|
|
28
|
+
import { debounce, svg2Url } from '@reltio/mdm-sdk';
|
|
29
|
+
import { EntityMarkerContext } from '../../../contexts';
|
|
30
|
+
import { MARKER } from './icons/marker.inline.svg';
|
|
31
|
+
import { HOVERED_MARKER } from './icons/marker-hover.inline.svg';
|
|
32
|
+
import { useStyles } from './styles';
|
|
57
33
|
var HIDE_DEBOUNCE_INTERVAL = 50;
|
|
58
34
|
var MARKER_WIDTH = 22;
|
|
59
35
|
var MARKER_HEIGHT = 32;
|
|
60
36
|
var MARKER_CARD_MARGIN = 8;
|
|
61
|
-
var hoveredMarkerIcon =
|
|
62
|
-
var markerIcon =
|
|
37
|
+
var hoveredMarkerIcon = svg2Url(HOVERED_MARKER);
|
|
38
|
+
var markerIcon = svg2Url(MARKER);
|
|
63
39
|
var EntityMarker = function (_a) {
|
|
64
40
|
var marker = _a.marker, onClick = _a.onClick, otherProps = __rest(_a, ["marker", "onClick"]);
|
|
65
|
-
var styles =
|
|
66
|
-
var popperAnchor =
|
|
67
|
-
var _b =
|
|
68
|
-
var activeEntityUri =
|
|
69
|
-
var isActive =
|
|
41
|
+
var styles = useStyles();
|
|
42
|
+
var popperAnchor = useRef();
|
|
43
|
+
var _b = useState(false), hovered = _b[0], setHovered = _b[1];
|
|
44
|
+
var activeEntityUri = useContext(EntityMarkerContext).activeEntityUri;
|
|
45
|
+
var isActive = pathEq(['entity', 'uri'], activeEntityUri, marker);
|
|
70
46
|
var position = { lat: marker.point.lat, lng: marker.point.lng };
|
|
71
|
-
var setHoveredDebounced =
|
|
72
|
-
var onMouseOver =
|
|
73
|
-
var onMouseOut =
|
|
74
|
-
var handleClick =
|
|
75
|
-
return (
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
47
|
+
var setHoveredDebounced = useCallback(debounce(setHovered, HIDE_DEBOUNCE_INTERVAL), []);
|
|
48
|
+
var onMouseOver = useCallback(function () { return setHoveredDebounced(true); }, [setHoveredDebounced]);
|
|
49
|
+
var onMouseOut = useCallback(function () { return setHoveredDebounced(false); }, [setHoveredDebounced]);
|
|
50
|
+
var handleClick = useCallback(function () { return onClick(marker); }, [onClick, marker]);
|
|
51
|
+
return (React.createElement(React.Fragment, null,
|
|
52
|
+
React.createElement(Popper, { anchorEl: popperAnchor.current, open: hovered, className: styles.popper, modal: false, placement: "top" },
|
|
53
|
+
React.createElement(ProfileCard, { entity: marker.entity, onMouseOver: onMouseOver, onMouseOut: onMouseOut })),
|
|
54
|
+
React.createElement(Marker, __assign({ icon: {
|
|
79
55
|
url: hovered || isActive ? hoveredMarkerIcon : markerIcon,
|
|
80
56
|
// needed for IE:
|
|
81
57
|
scaledSize: new google.maps.Size(MARKER_WIDTH, MARKER_HEIGHT) //eslint-disable-line
|
|
82
58
|
}, position: position, onClick: handleClick, visible: marker.visible !== false, onMouseOver: onMouseOver, onMouseOut: onMouseOut }, otherProps)),
|
|
83
|
-
|
|
59
|
+
React.createElement(InfoBox, { options: {
|
|
84
60
|
alignBottom: true,
|
|
85
61
|
pane: 'mapPane',
|
|
86
62
|
pixelOffset: new google.maps.Size(0, -(MARKER_HEIGHT + MARKER_CARD_MARGIN)),
|
|
@@ -88,6 +64,6 @@ var EntityMarker = function (_a) {
|
|
|
88
64
|
enableEventPropagation: true,
|
|
89
65
|
disableAutoPan: true
|
|
90
66
|
}, position: position },
|
|
91
|
-
|
|
67
|
+
React.createElement("span", { ref: popperAnchor }))));
|
|
92
68
|
};
|
|
93
|
-
|
|
69
|
+
export default memo(EntityMarker);
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
"use
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HOVERED_MARKER = void 0;
|
|
4
|
-
exports.HOVERED_MARKER = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg width=\"22px\" height=\"32px\" viewBox=\"0 0 22 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <title>View / Map / Marker / Large (hover)</title>\n <defs>\n <radialGradient cx=\"50%\" cy=\"50.2950175%\" fx=\"50%\" fy=\"50.2950175%\" r=\"49.7049825%\" gradientTransform=\"translate(0.500000,0.502950),scale(0.777778,1.000000),rotate(90.000000),scale(1.000000,1.293560),translate(-0.500000,-0.502950)\" id=\"radialGradient-1\">\n <stop stop-color=\"#000000\" offset=\"0%\"></stop>\n <stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"100%\"></stop>\n </radialGradient>\n <path d=\"M21,0 C21.5522847,-1.01453063e-16 22,0.44771525 22,1 L22,21 C22,21.5522847 21.5522847,22 21,22 L15.7283832,22.0012846 C15.5422129,22.2445529 15.3664776,22.4802332 15.1984183,22.7122576 C13.7560833,24.7035592 13,26.2846074 13,27.5 L13,27.5 L12.9945143,27.6492623 C12.9181651,28.6841222 12.0543618,29.5 11,29.5 C9.8954305,29.5 9,28.6045695 9,27.5 L9,27.5 L8.99485006,27.3298651 C8.91582184,26.0024976 7.93016704,24.2171459 6.23940611,22.000704 L1,22 C0.44771525,22 6.76353751e-17,21.5522847 0,21 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L21,0 Z\" id=\"path-2\"></path>\n </defs>\n <g id=\"View-/-Map-/-Marker-/-Large-(hover)\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <ellipse id=\"Oval\" fill=\"url(#radialGradient-1)\" opacity=\"0.32\" cx=\"11\" cy=\"28.5\" rx=\"6\" ry=\"4.66666667\"></ellipse>\n <mask id=\"mask-3\" fill=\"white\">\n <use xlink:href=\"#path-2\"></use>\n </mask>\n <use id=\"Path-2\" fill=\"#FFFFFF\" xlink:href=\"#path-2\"></use>\n <rect id=\"Entity-type\" fill=\"#24A8E8\" mask=\"url(#mask-3)\" x=\"0\" y=\"0\" width=\"22\" height=\"32\"></rect>\n <path d=\"M20,2 L20,20 L14.755,20 L14.6905172,20.0815309 C14.3562717,20.5012516 14.0578656,20.8886742 13.7817711,21.2616986 L13.5786724,21.5390469 C11.92787,23.8181606 11.079024,25.6311217 11.0052669,27.2674145 L11.0052669,27.2674145 L11,27.5 L10.9968324,27.3203844 C10.9285422,25.3781621 9.75347502,23.1598866 7.22124201,20.0010865 L2,20 L2,2 L20,2 Z\" id=\"Path\" fill=\"#FFFFFF\" fill-rule=\"nonzero\" mask=\"url(#mask-3)\"></path>\n </g>\n</svg>";
|
|
1
|
+
export var HOVERED_MARKER = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg width=\"22px\" height=\"32px\" viewBox=\"0 0 22 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <title>View / Map / Marker / Large (hover)</title>\n <defs>\n <radialGradient cx=\"50%\" cy=\"50.2950175%\" fx=\"50%\" fy=\"50.2950175%\" r=\"49.7049825%\" gradientTransform=\"translate(0.500000,0.502950),scale(0.777778,1.000000),rotate(90.000000),scale(1.000000,1.293560),translate(-0.500000,-0.502950)\" id=\"radialGradient-1\">\n <stop stop-color=\"#000000\" offset=\"0%\"></stop>\n <stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"100%\"></stop>\n </radialGradient>\n <path d=\"M21,0 C21.5522847,-1.01453063e-16 22,0.44771525 22,1 L22,21 C22,21.5522847 21.5522847,22 21,22 L15.7283832,22.0012846 C15.5422129,22.2445529 15.3664776,22.4802332 15.1984183,22.7122576 C13.7560833,24.7035592 13,26.2846074 13,27.5 L13,27.5 L12.9945143,27.6492623 C12.9181651,28.6841222 12.0543618,29.5 11,29.5 C9.8954305,29.5 9,28.6045695 9,27.5 L9,27.5 L8.99485006,27.3298651 C8.91582184,26.0024976 7.93016704,24.2171459 6.23940611,22.000704 L1,22 C0.44771525,22 6.76353751e-17,21.5522847 0,21 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L21,0 Z\" id=\"path-2\"></path>\n </defs>\n <g id=\"View-/-Map-/-Marker-/-Large-(hover)\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <ellipse id=\"Oval\" fill=\"url(#radialGradient-1)\" opacity=\"0.32\" cx=\"11\" cy=\"28.5\" rx=\"6\" ry=\"4.66666667\"></ellipse>\n <mask id=\"mask-3\" fill=\"white\">\n <use xlink:href=\"#path-2\"></use>\n </mask>\n <use id=\"Path-2\" fill=\"#FFFFFF\" xlink:href=\"#path-2\"></use>\n <rect id=\"Entity-type\" fill=\"#24A8E8\" mask=\"url(#mask-3)\" x=\"0\" y=\"0\" width=\"22\" height=\"32\"></rect>\n <path d=\"M20,2 L20,20 L14.755,20 L14.6905172,20.0815309 C14.3562717,20.5012516 14.0578656,20.8886742 13.7817711,21.2616986 L13.5786724,21.5390469 C11.92787,23.8181606 11.079024,25.6311217 11.0052669,27.2674145 L11.0052669,27.2674145 L11,27.5 L10.9968324,27.3203844 C10.9285422,25.3781621 9.75347502,23.1598866 7.22124201,20.0010865 L2,20 L2,2 L20,2 Z\" id=\"Path\" fill=\"#FFFFFF\" fill-rule=\"nonzero\" mask=\"url(#mask-3)\"></path>\n </g>\n</svg>";
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
"use
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MARKER = void 0;
|
|
4
|
-
exports.MARKER = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg width=\"22px\" height=\"32px\" viewBox=\"0 0 22 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <title>View / Map / Marker / Large</title>\n <defs>\n <radialGradient cx=\"50%\" cy=\"50.2950175%\" fx=\"50%\" fy=\"50.2950175%\" r=\"49.7049825%\" gradientTransform=\"translate(0.500000,0.502950),scale(0.777778,1.000000),rotate(90.000000),scale(1.000000,1.293560),translate(-0.500000,-0.502950)\" id=\"radialGradient-1\">\n <stop stop-color=\"#000000\" offset=\"0%\"></stop>\n <stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"100%\"></stop>\n </radialGradient>\n <path d=\"M20,1 C20.5522847,1 21,1.44771525 21,2 L21,20 C21,20.5522847 20.5522847,21 20,21 L15.2374606,21.0021908 C14.9306693,21.3935449 14.6510143,21.7632851 14.3885453,22.1256523 C12.8309725,24.2760522 12,26.0137017 12,27.5 C12,28.0522847 11.5522847,28.5 11,28.5 C10.4477153,28.5 10,28.0522847 10,27.5 C10,25.7886708 8.84033182,23.6810997 6.73798027,21.0014567 L2,21 C1.44771525,21 1,20.5522847 1,20 L1,2 C1,1.44771525 1.44771525,1 2,1 L20,1 Z\" id=\"path-2\"></path>\n </defs>\n <g id=\"View-/-Map-/-Marker-/-Large\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <ellipse id=\"Oval\" fill=\"url(#radialGradient-1)\" opacity=\"0.12\" cx=\"11\" cy=\"28.5\" rx=\"4.5\" ry=\"3.5\"></ellipse>\n <path d=\"M21,0 C21.5522847,-1.01453063e-16 22,0.44771525 22,1 L22,21 C22,21.5522847 21.5522847,22 21,22 L15.7283832,22.0012846 C15.5422129,22.2445529 15.3664776,22.4802332 15.1984183,22.7122576 C13.7560833,24.7035592 13,26.2846074 13,27.5 L13,27.5 L12.9945143,27.6492623 C12.9181651,28.6841222 12.0543618,29.5 11,29.5 C9.8954305,29.5 9,28.6045695 9,27.5 L9,27.5 L8.99485006,27.3298651 C8.91582184,26.0024976 7.93016704,24.2171459 6.23940611,22.000704 L1,22 C0.44771525,22 6.76353751e-17,21.5522847 0,21 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L21,0 Z\" id=\"Path-3\" fill=\"#FFFFFF\"></path>\n <mask id=\"mask-3\" fill=\"white\">\n <use xlink:href=\"#path-2\"></use>\n </mask>\n <use id=\"Path-2\" fill=\"#FFFFFF\" fill-rule=\"nonzero\" xlink:href=\"#path-2\"></use>\n <rect id=\"Entity-type\" fill=\"#24A8E8\" mask=\"url(#mask-3)\" x=\"0\" y=\"0\" width=\"22\" height=\"32\"></rect>\n </g>\n</svg>";
|
|
1
|
+
export var MARKER = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg width=\"22px\" height=\"32px\" viewBox=\"0 0 22 32\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <title>View / Map / Marker / Large</title>\n <defs>\n <radialGradient cx=\"50%\" cy=\"50.2950175%\" fx=\"50%\" fy=\"50.2950175%\" r=\"49.7049825%\" gradientTransform=\"translate(0.500000,0.502950),scale(0.777778,1.000000),rotate(90.000000),scale(1.000000,1.293560),translate(-0.500000,-0.502950)\" id=\"radialGradient-1\">\n <stop stop-color=\"#000000\" offset=\"0%\"></stop>\n <stop stop-color=\"#000000\" stop-opacity=\"0\" offset=\"100%\"></stop>\n </radialGradient>\n <path d=\"M20,1 C20.5522847,1 21,1.44771525 21,2 L21,20 C21,20.5522847 20.5522847,21 20,21 L15.2374606,21.0021908 C14.9306693,21.3935449 14.6510143,21.7632851 14.3885453,22.1256523 C12.8309725,24.2760522 12,26.0137017 12,27.5 C12,28.0522847 11.5522847,28.5 11,28.5 C10.4477153,28.5 10,28.0522847 10,27.5 C10,25.7886708 8.84033182,23.6810997 6.73798027,21.0014567 L2,21 C1.44771525,21 1,20.5522847 1,20 L1,2 C1,1.44771525 1.44771525,1 2,1 L20,1 Z\" id=\"path-2\"></path>\n </defs>\n <g id=\"View-/-Map-/-Marker-/-Large\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <ellipse id=\"Oval\" fill=\"url(#radialGradient-1)\" opacity=\"0.12\" cx=\"11\" cy=\"28.5\" rx=\"4.5\" ry=\"3.5\"></ellipse>\n <path d=\"M21,0 C21.5522847,-1.01453063e-16 22,0.44771525 22,1 L22,21 C22,21.5522847 21.5522847,22 21,22 L15.7283832,22.0012846 C15.5422129,22.2445529 15.3664776,22.4802332 15.1984183,22.7122576 C13.7560833,24.7035592 13,26.2846074 13,27.5 L13,27.5 L12.9945143,27.6492623 C12.9181651,28.6841222 12.0543618,29.5 11,29.5 C9.8954305,29.5 9,28.6045695 9,27.5 L9,27.5 L8.99485006,27.3298651 C8.91582184,26.0024976 7.93016704,24.2171459 6.23940611,22.000704 L1,22 C0.44771525,22 6.76353751e-17,21.5522847 0,21 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L21,0 Z\" id=\"Path-3\" fill=\"#FFFFFF\"></path>\n <mask id=\"mask-3\" fill=\"white\">\n <use xlink:href=\"#path-2\"></use>\n </mask>\n <use id=\"Path-2\" fill=\"#FFFFFF\" fill-rule=\"nonzero\" xlink:href=\"#path-2\"></use>\n <rect id=\"Entity-type\" fill=\"#24A8E8\" mask=\"url(#mask-3)\" x=\"0\" y=\"0\" width=\"22\" height=\"32\"></rect>\n </g>\n</svg>";
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.useStyles = void 0;
|
|
4
|
-
var styles_1 = require("@material-ui/core/styles");
|
|
5
|
-
exports.useStyles = styles_1.makeStyles({
|
|
1
|
+
import { makeStyles } from '@material-ui/core/styles';
|
|
2
|
+
export var useStyles = makeStyles({
|
|
6
3
|
popper: {
|
|
7
4
|
maxWidth: '263px',
|
|
8
5
|
minWidth: '150px',
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var react_1 = require("react");
|
|
5
|
-
var react_dom_1 = require("react-dom");
|
|
6
|
-
var MapControlContainer = function (_a) {
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
|
+
import { createPortal } from 'react-dom';
|
|
3
|
+
export var MapControlContainer = function (_a) {
|
|
7
4
|
var children = _a.children, className = _a.className, position = _a.position, map = _a.map;
|
|
8
|
-
var _b =
|
|
9
|
-
|
|
5
|
+
var _b = useState(null), controlElement = _b[0], setControlElement = _b[1];
|
|
6
|
+
useEffect(function () {
|
|
10
7
|
var controlDiv = document.createElement('div');
|
|
11
8
|
var divIndex = map.controls[position].length;
|
|
12
9
|
map.controls[position].push(controlDiv);
|
|
@@ -15,14 +12,13 @@ var MapControlContainer = function (_a) {
|
|
|
15
12
|
map.controls[position].removeAt(divIndex);
|
|
16
13
|
};
|
|
17
14
|
}, [map, position]);
|
|
18
|
-
|
|
15
|
+
useEffect(function () {
|
|
19
16
|
if (controlElement && className) {
|
|
20
17
|
controlElement.classList.add(className);
|
|
21
18
|
}
|
|
22
19
|
}, [className, controlElement]);
|
|
23
20
|
if (controlElement) {
|
|
24
|
-
return
|
|
21
|
+
return createPortal(children, controlElement);
|
|
25
22
|
}
|
|
26
23
|
return null;
|
|
27
24
|
};
|
|
28
|
-
exports.MapControlContainer = MapControlContainer;
|
|
@@ -1,23 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var react_1 = __importDefault(require("react"));
|
|
8
|
-
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
9
|
-
var FormControlLabel_1 = __importDefault(require("@material-ui/core/FormControlLabel"));
|
|
10
|
-
var Checkbox_1 = __importDefault(require("@material-ui/core/Checkbox"));
|
|
11
|
-
var styles_1 = require("./styles");
|
|
12
|
-
var TopCenterMapControls = function (_a) {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import i18n from 'ui-i18n';
|
|
3
|
+
import FormControlLabel from '@material-ui/core/FormControlLabel';
|
|
4
|
+
import Checkbox from '@material-ui/core/Checkbox';
|
|
5
|
+
import { useStyles } from './styles';
|
|
6
|
+
export var TopCenterMapControls = function (_a) {
|
|
13
7
|
var isSearchOnMapMove = _a.isSearchOnMapMove, onChangeIsSearchOnMapMove = _a.onChangeIsSearchOnMapMove;
|
|
14
|
-
var styles =
|
|
8
|
+
var styles = useStyles();
|
|
15
9
|
var onChange = function (event) {
|
|
16
10
|
onChangeIsSearchOnMapMove(event.target.checked);
|
|
17
11
|
};
|
|
18
|
-
return (
|
|
12
|
+
return (React.createElement(FormControlLabel, { classes: {
|
|
19
13
|
root: styles.container,
|
|
20
14
|
label: styles.label
|
|
21
|
-
}, control:
|
|
15
|
+
}, control: React.createElement(Checkbox, { checked: isSearchOnMapMove, onChange: onChange, color: "primary", className: styles.checkbox }), label: i18n.text('Search as I move the map') }));
|
|
22
16
|
};
|
|
23
|
-
exports.TopCenterMapControls = TopCenterMapControls;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.useStyles = void 0;
|
|
4
|
-
var styles_1 = require("@material-ui/core/styles");
|
|
5
|
-
exports.useStyles = styles_1.makeStyles({
|
|
1
|
+
import { makeStyles } from '@material-ui/core/styles';
|
|
2
|
+
export var useStyles = makeStyles({
|
|
6
3
|
container: {
|
|
7
4
|
height: '28px',
|
|
8
5
|
marginRight: '7px',
|
|
@@ -1,40 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
var HighlightOff_1 = __importDefault(require("@material-ui/icons/HighlightOff"));
|
|
12
|
-
var constants_1 = require("../../constants");
|
|
13
|
-
var Radius_1 = __importDefault(require("../../../../icons/Radius"));
|
|
14
|
-
var Draw_1 = __importDefault(require("../../../../icons/Draw"));
|
|
15
|
-
var styles_1 = require("./styles");
|
|
16
|
-
exports.ButtonWithTooltip = HOCs_1.withTooltip(Button_1.default);
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import i18n from 'ui-i18n';
|
|
3
|
+
import Button from '@material-ui/core/Button';
|
|
4
|
+
import { withTooltip } from '../../../../HOCs';
|
|
5
|
+
import HighlightOffIcon from '@material-ui/icons/HighlightOff';
|
|
6
|
+
import { MAP_DRAWING_MODES } from '../../constants';
|
|
7
|
+
import RadiusIcon from '../../../../icons/Radius';
|
|
8
|
+
import DrawIcon from '../../../../icons/Draw';
|
|
9
|
+
import { useStyles } from './styles';
|
|
10
|
+
export var ButtonWithTooltip = withTooltip(Button);
|
|
17
11
|
var getIcon = function (mode) {
|
|
18
12
|
switch (mode) {
|
|
19
|
-
case
|
|
20
|
-
return
|
|
21
|
-
case
|
|
22
|
-
return
|
|
13
|
+
case MAP_DRAWING_MODES.CIRCLE:
|
|
14
|
+
return RadiusIcon;
|
|
15
|
+
case MAP_DRAWING_MODES.POLYGON:
|
|
16
|
+
return DrawIcon;
|
|
23
17
|
default:
|
|
24
18
|
return null;
|
|
25
19
|
}
|
|
26
20
|
};
|
|
27
|
-
var TopRightMapControls = function (_a) {
|
|
21
|
+
export var TopRightMapControls = function (_a) {
|
|
28
22
|
var drawingMode = _a.drawingMode, _b = _a.drawingModes, drawingModes = _b === void 0 ? [] : _b, hasActiveOverlay = _a.hasActiveOverlay, onDrawingModeChanged = _a.onDrawingModeChanged, onClearOverlay = _a.onClearOverlay;
|
|
29
|
-
var styles =
|
|
23
|
+
var styles = useStyles();
|
|
30
24
|
var changeDrawingModeTo = function (drawingMode) { return function () {
|
|
31
25
|
onDrawingModeChanged(drawingMode);
|
|
32
26
|
}; };
|
|
33
|
-
return (
|
|
34
|
-
|
|
27
|
+
return (React.createElement("div", { className: styles.container }, drawingMode || hasActiveOverlay ? (React.createElement(ButtonWithTooltip, { tooltipTitle: i18n.text('Clear area'), className: styles.button, onClick: hasActiveOverlay ? onClearOverlay : changeDrawingModeTo(null) },
|
|
28
|
+
React.createElement(HighlightOffIcon, { className: styles.icon }))) : (drawingModes.map(function (mode) {
|
|
35
29
|
var Icon = getIcon(mode);
|
|
36
|
-
return (
|
|
37
|
-
|
|
30
|
+
return (React.createElement(ButtonWithTooltip, { tooltipTitle: i18n.text('Draw area'), key: mode, className: styles.button, onClick: changeDrawingModeTo(mode) },
|
|
31
|
+
React.createElement(Icon, { className: styles.icon })));
|
|
38
32
|
}))));
|
|
39
33
|
};
|
|
40
|
-
exports.TopRightMapControls = TopRightMapControls;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.useStyles = void 0;
|
|
4
|
-
var styles_1 = require("@material-ui/core/styles");
|
|
5
|
-
exports.useStyles = styles_1.makeStyles({
|
|
1
|
+
import { makeStyles } from '@material-ui/core/styles';
|
|
2
|
+
export var useStyles = makeStyles({
|
|
6
3
|
container: {
|
|
7
4
|
margin: '2px',
|
|
8
5
|
display: 'flex',
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MAP_MINIMUM_SCALE_RADIUS = exports.DEFAULT_OVERLAY_OPTIONS = exports.MAP_DRAWING_MODES = void 0;
|
|
4
|
-
exports.MAP_DRAWING_MODES = {
|
|
1
|
+
export var MAP_DRAWING_MODES = {
|
|
5
2
|
CIRCLE: 'circle',
|
|
6
3
|
POLYGON: 'polygon'
|
|
7
4
|
};
|
|
8
|
-
|
|
5
|
+
export var DEFAULT_OVERLAY_OPTIONS = {
|
|
9
6
|
fillColor: 'rgb(242,82,82)',
|
|
10
7
|
fillOpacity: 0.1,
|
|
11
8
|
strokeWeight: 2,
|
|
@@ -14,4 +11,4 @@ exports.DEFAULT_OVERLAY_OPTIONS = {
|
|
|
14
11
|
editable: true,
|
|
15
12
|
zIndex: 1
|
|
16
13
|
};
|
|
17
|
-
|
|
14
|
+
export var MAP_MINIMUM_SCALE_RADIUS = 0.001;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
3
2
|
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
4
3
|
to[j] = from[i];
|
|
5
4
|
return to;
|
|
6
5
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var constants_1 = require("../constants");
|
|
10
|
-
var getMapBoundsPolygon = function (map) {
|
|
6
|
+
import { MAP_DRAWING_MODES, MAP_MINIMUM_SCALE_RADIUS } from '../constants';
|
|
7
|
+
export var getMapBoundsPolygon = function (map) {
|
|
11
8
|
var bounds = map.getBounds();
|
|
12
9
|
var ne = bounds.getNorthEast();
|
|
13
10
|
var sw = bounds.getSouthWest();
|
|
@@ -24,33 +21,30 @@ var getMapBoundsPolygon = function (map) {
|
|
|
24
21
|
}
|
|
25
22
|
return __spreadArray(__spreadArray(__spreadArray(__spreadArray([[neLat, neLng]], additionalPoint1), [[neLat, swLng], [swLat, swLng]]), additionalPoint2), [[swLat, neLng]]);
|
|
26
23
|
};
|
|
27
|
-
|
|
28
|
-
var getDrawingMode = function (drawingMode) {
|
|
24
|
+
export var getDrawingMode = function (drawingMode) {
|
|
29
25
|
switch (drawingMode) {
|
|
30
|
-
case
|
|
26
|
+
case MAP_DRAWING_MODES.CIRCLE:
|
|
31
27
|
return window.google.maps.drawing.OverlayType.CIRCLE;
|
|
32
|
-
case
|
|
28
|
+
case MAP_DRAWING_MODES.POLYGON:
|
|
33
29
|
return window.google.maps.drawing.OverlayType.POLYGON;
|
|
34
30
|
default:
|
|
35
31
|
return null;
|
|
36
32
|
}
|
|
37
33
|
};
|
|
38
|
-
|
|
39
|
-
var fitMapBoundsForMarkers = function (markers, map, overlay) {
|
|
34
|
+
export var fitMapBoundsForMarkers = function (markers, map, overlay) {
|
|
40
35
|
var bounds = new window.google.maps.LatLngBounds();
|
|
41
36
|
markers.forEach(function (marker) { return bounds.extend(marker.point); });
|
|
42
37
|
if (markers.length === 1) {
|
|
43
38
|
var center = bounds.getCenter();
|
|
44
|
-
bounds.extend(new window.google.maps.LatLng(center.lat() +
|
|
45
|
-
bounds.extend(new window.google.maps.LatLng(center.lat() -
|
|
39
|
+
bounds.extend(new window.google.maps.LatLng(center.lat() + MAP_MINIMUM_SCALE_RADIUS, center.lng() + MAP_MINIMUM_SCALE_RADIUS));
|
|
40
|
+
bounds.extend(new window.google.maps.LatLng(center.lat() - MAP_MINIMUM_SCALE_RADIUS, center.lng() - MAP_MINIMUM_SCALE_RADIUS));
|
|
46
41
|
}
|
|
47
42
|
map.fitBounds(bounds);
|
|
48
43
|
if (overlay) {
|
|
49
|
-
|
|
44
|
+
fitMapBoundsForOverlay(map, overlay, bounds);
|
|
50
45
|
}
|
|
51
46
|
};
|
|
52
|
-
|
|
53
|
-
var fitMapBoundsForOverlay = function (map, overlay, existingBounds) {
|
|
47
|
+
export var fitMapBoundsForOverlay = function (map, overlay, existingBounds) {
|
|
54
48
|
if (overlay.path) {
|
|
55
49
|
var bounds_1 = existingBounds || new window.google.maps.LatLngBounds();
|
|
56
50
|
overlay.path.forEach(function (_a) {
|
|
@@ -60,4 +54,3 @@ var fitMapBoundsForOverlay = function (map, overlay, existingBounds) {
|
|
|
60
54
|
map.fitBounds(bounds_1);
|
|
61
55
|
}
|
|
62
56
|
};
|
|
63
|
-
exports.fitMapBoundsForOverlay = fitMapBoundsForOverlay;
|
|
@@ -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,107 +9,83 @@ 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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
exports.ReltioMap = void 0;
|
|
37
|
-
var react_1 = __importStar(require("react"));
|
|
38
|
-
var ramda_1 = require("ramda");
|
|
39
|
-
var api_1 = require("@react-google-maps/api");
|
|
40
|
-
var MapControlContrainer_1 = require("./MapControls/MapControlContainer/MapControlContrainer");
|
|
41
|
-
var TopRightMapControls_1 = require("./MapControls/TopRightMapControls/TopRightMapControls");
|
|
42
|
-
var TopCenterMapControls_1 = require("./MapControls/TopCenterMapControls/TopCenterMapControls");
|
|
43
|
-
var helpers_1 = require("./helpers");
|
|
44
|
-
var EntityMarker_1 = __importDefault(require("./EntityMarker/EntityMarker"));
|
|
45
|
-
var constants_1 = require("../../constants");
|
|
46
|
-
var styles_1 = require("./styles");
|
|
47
|
-
var hooks_1 = require("../../hooks");
|
|
12
|
+
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
13
|
+
import { propEq, isEmpty, prop } from 'ramda';
|
|
14
|
+
import { GoogleMap, useJsApiLoader, Polygon, DrawingManager, MarkerClusterer } from '@react-google-maps/api';
|
|
15
|
+
import { MapControlContainer } from './MapControls/MapControlContainer/MapControlContrainer';
|
|
16
|
+
import { TopRightMapControls } from './MapControls/TopRightMapControls/TopRightMapControls';
|
|
17
|
+
import { TopCenterMapControls } from './MapControls/TopCenterMapControls/TopCenterMapControls';
|
|
18
|
+
import { getMapBoundsPolygon, getDrawingMode, fitMapBoundsForMarkers, fitMapBoundsForOverlay } from './helpers';
|
|
19
|
+
import EntityMarker from './EntityMarker/EntityMarker';
|
|
20
|
+
import { DEFAULT_OVERLAY_OPTIONS, MAP_DRAWING_MODES } from '../../constants';
|
|
21
|
+
import { useStyles } from './styles';
|
|
22
|
+
import { usePrevious } from '../../hooks';
|
|
48
23
|
var ON_MAP_MOVE_DEBOUNCE_INTERVAL = 1000;
|
|
49
24
|
var libraries = ['drawing'];
|
|
50
25
|
var useFitMapBounds = function (_a) {
|
|
51
26
|
var markers = _a.markers, activeOverlay = _a.activeOverlay, isSearchOnMapMove = _a.isSearchOnMapMove, map = _a.map;
|
|
52
|
-
var prevMarkers =
|
|
53
|
-
var prevActiveOverlay =
|
|
27
|
+
var prevMarkers = usePrevious(markers);
|
|
28
|
+
var prevActiveOverlay = usePrevious(activeOverlay);
|
|
54
29
|
var apiIsLoaded = map && window.google;
|
|
55
|
-
|
|
30
|
+
useEffect(function () {
|
|
56
31
|
if (apiIsLoaded && !isSearchOnMapMove && markers.length && markers !== prevMarkers) {
|
|
57
|
-
|
|
32
|
+
fitMapBoundsForMarkers(markers, map, activeOverlay);
|
|
58
33
|
}
|
|
59
34
|
else if (apiIsLoaded && activeOverlay && activeOverlay !== prevActiveOverlay) {
|
|
60
|
-
|
|
35
|
+
fitMapBoundsForOverlay(map, activeOverlay);
|
|
61
36
|
}
|
|
62
37
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
63
38
|
}, [map, markers, activeOverlay]);
|
|
64
39
|
};
|
|
65
|
-
var ReltioMap = function (_a) {
|
|
40
|
+
export var ReltioMap = function (_a) {
|
|
66
41
|
var _b = _a.markers, markers = _b === void 0 ? [] : _b, mapKey = _a.mapKey, defaultZoom = _a.defaultZoom, defaultCenter = _a.defaultCenter, loadingElement = _a.loadingElement, isSearchOnMapMove = _a.isSearchOnMapMove, isSearchEnabled = _a.isSearchEnabled, activeOverlay = _a.activeOverlay, overlayOptions = _a.overlayOptions, _c = _a.drawingModes, drawingModes = _c === void 0 ? [] : _c, markerClusterer = _a.markerClusterer, markerClustererOptions = _a.markerClustererOptions, mapContainerClassName = _a.mapContainerClassName, onMapBoundsChanged = _a.onMapBoundsChanged, onOverlayUpdated = _a.onOverlayUpdated, onMarkerClicked = _a.onMarkerClicked;
|
|
67
|
-
var styles =
|
|
68
|
-
var _d =
|
|
42
|
+
var styles = useStyles();
|
|
43
|
+
var _d = useJsApiLoader({
|
|
69
44
|
googleMapsApiKey: mapKey,
|
|
70
45
|
libraries: libraries
|
|
71
46
|
}), isLoaded = _d.isLoaded, loadError = _d.loadError;
|
|
72
|
-
var mapMoveEndTimer =
|
|
73
|
-
var _e =
|
|
74
|
-
var _f =
|
|
75
|
-
var _g =
|
|
47
|
+
var mapMoveEndTimer = useRef(null);
|
|
48
|
+
var _e = useState(null), map = _e[0], setMap = _e[1];
|
|
49
|
+
var _f = useState(null), polygon = _f[0], setPolygon = _f[1];
|
|
50
|
+
var _g = useState(null), drawingMode = _g[0], setDrawingMode = _g[1];
|
|
76
51
|
useFitMapBounds({ markers: markers, activeOverlay: activeOverlay, map: map, isSearchOnMapMove: isSearchOnMapMove });
|
|
77
|
-
var allOverlayOptions =
|
|
78
|
-
var handleChangeIsSearchOnMapMove =
|
|
79
|
-
onMapBoundsChanged(isSearchOnMapMove ?
|
|
52
|
+
var allOverlayOptions = useMemo(function () { return (__assign(__assign({}, DEFAULT_OVERLAY_OPTIONS), (overlayOptions || {}))); }, [overlayOptions]);
|
|
53
|
+
var handleChangeIsSearchOnMapMove = useCallback(function (isSearchOnMapMove) {
|
|
54
|
+
onMapBoundsChanged(isSearchOnMapMove ? getMapBoundsPolygon(map) : null);
|
|
80
55
|
setDrawingMode(null);
|
|
81
56
|
clearTimeout(mapMoveEndTimer.current);
|
|
82
57
|
}, [map, onMapBoundsChanged]);
|
|
83
|
-
var handleMapMoveStart =
|
|
58
|
+
var handleMapMoveStart = useCallback(function () {
|
|
84
59
|
clearTimeout(mapMoveEndTimer.current);
|
|
85
60
|
}, []);
|
|
86
|
-
var handleMapMoveEnd =
|
|
61
|
+
var handleMapMoveEnd = useCallback(function () {
|
|
87
62
|
if (isSearchOnMapMove) {
|
|
88
|
-
onMapBoundsChanged(
|
|
63
|
+
onMapBoundsChanged(getMapBoundsPolygon(map));
|
|
89
64
|
}
|
|
90
65
|
}, [isSearchOnMapMove, map, onMapBoundsChanged]);
|
|
91
|
-
var handleMapIdle =
|
|
66
|
+
var handleMapIdle = useCallback(function () {
|
|
92
67
|
if (isSearchOnMapMove) {
|
|
93
68
|
clearTimeout(mapMoveEndTimer.current);
|
|
94
69
|
mapMoveEndTimer.current = setTimeout(handleMapMoveEnd, ON_MAP_MOVE_DEBOUNCE_INTERVAL);
|
|
95
70
|
}
|
|
96
71
|
}, [handleMapMoveEnd, isSearchOnMapMove]);
|
|
97
|
-
var handleOverlayChange =
|
|
72
|
+
var handleOverlayChange = useCallback(function (e, propOverlay) {
|
|
98
73
|
var _a;
|
|
99
74
|
var stateOverlay = propOverlay ||
|
|
100
75
|
(polygon && {
|
|
101
|
-
type:
|
|
76
|
+
type: MAP_DRAWING_MODES.POLYGON,
|
|
102
77
|
overlay: polygon
|
|
103
78
|
});
|
|
104
|
-
if (!
|
|
79
|
+
if (!isEmpty(stateOverlay) && typeof onOverlayUpdated === 'function') {
|
|
105
80
|
var overlay_1 = stateOverlay.overlay, type = stateOverlay.type;
|
|
106
81
|
var typeActions = (_a = {},
|
|
107
|
-
_a[
|
|
82
|
+
_a[MAP_DRAWING_MODES.POLYGON] = function () {
|
|
108
83
|
return overlay_1
|
|
109
84
|
.getPath()
|
|
110
85
|
.getArray()
|
|
111
86
|
.map(function (latlng) { return [latlng.lat(), latlng.lng()]; });
|
|
112
87
|
},
|
|
113
|
-
_a[
|
|
88
|
+
_a[MAP_DRAWING_MODES.CIRCLE] = function () {
|
|
114
89
|
return { radius: overlay_1.getRadius() / 1000, center: overlay_1.getCenter() };
|
|
115
90
|
},
|
|
116
91
|
_a);
|
|
@@ -118,21 +93,21 @@ var ReltioMap = function (_a) {
|
|
|
118
93
|
data && onOverlayUpdated({ data: data, type: type });
|
|
119
94
|
}
|
|
120
95
|
}, [onOverlayUpdated, polygon]);
|
|
121
|
-
var handleOverlayComplete =
|
|
96
|
+
var handleOverlayComplete = useCallback(function (type) { return function (overlay) {
|
|
122
97
|
handleOverlayChange(null, { type: type, overlay: overlay });
|
|
123
98
|
overlay.setMap(null);
|
|
124
99
|
setDrawingMode(null);
|
|
125
100
|
}; }, [handleOverlayChange]);
|
|
126
|
-
var handleClearOverlay =
|
|
101
|
+
var handleClearOverlay = useCallback(function () {
|
|
127
102
|
onOverlayUpdated(null);
|
|
128
103
|
}, [onOverlayUpdated]);
|
|
129
104
|
var renderMarkers = function (clusterer) {
|
|
130
105
|
return markers
|
|
131
|
-
.filter(
|
|
132
|
-
.map(function (marker) { return (
|
|
106
|
+
.filter(prop('point'))
|
|
107
|
+
.map(function (marker) { return (React.createElement(EntityMarker, { key: marker.id, marker: marker, clusterer: clusterer, onClick: onMarkerClicked })); });
|
|
133
108
|
};
|
|
134
109
|
var renderMarkerClusterer = function (options) {
|
|
135
|
-
return
|
|
110
|
+
return React.createElement(MarkerClusterer, { options: options }, renderMarkers);
|
|
136
111
|
};
|
|
137
112
|
if (loadError) {
|
|
138
113
|
return null;
|
|
@@ -140,23 +115,22 @@ var ReltioMap = function (_a) {
|
|
|
140
115
|
if (!isLoaded) {
|
|
141
116
|
return loadingElement;
|
|
142
117
|
}
|
|
143
|
-
return (
|
|
118
|
+
return (React.createElement(GoogleMap, { mapTypeId: window.google.maps.MapTypeId.ROADMAP, options: {
|
|
144
119
|
mapTypeControl: false,
|
|
145
120
|
streetViewControl: false,
|
|
146
121
|
fullscreenControl: false
|
|
147
122
|
}, onLoad: setMap, zoom: defaultZoom, center: defaultCenter, onZoomChanged: handleMapMoveStart, onDragStart: handleMapMoveStart, onIdle: handleMapIdle, mapContainerClassName: mapContainerClassName },
|
|
148
|
-
map && isSearchEnabled && Boolean(drawingModes.length) && (
|
|
149
|
-
|
|
150
|
-
map && isSearchEnabled && (
|
|
151
|
-
|
|
123
|
+
map && isSearchEnabled && Boolean(drawingModes.length) && (React.createElement(MapControlContainer, { className: styles.mapControlContainer, position: window.google.maps.ControlPosition.TOP_RIGHT, map: map },
|
|
124
|
+
React.createElement(TopRightMapControls, { hasActiveOverlay: !!activeOverlay, drawingModes: drawingModes, drawingMode: drawingMode, onDrawingModeChanged: setDrawingMode, onClearOverlay: handleClearOverlay }))),
|
|
125
|
+
map && isSearchEnabled && (React.createElement(MapControlContainer, { className: styles.mapControlContainer, position: window.google.maps.ControlPosition.TOP_CENTER, map: map },
|
|
126
|
+
React.createElement(TopCenterMapControls, { onChangeIsSearchOnMapMove: handleChangeIsSearchOnMapMove, isSearchOnMapMove: isSearchOnMapMove }))),
|
|
152
127
|
markerClusterer ? renderMarkerClusterer(markerClustererOptions) : renderMarkers(),
|
|
153
|
-
!
|
|
128
|
+
!getDrawingMode(drawingMode) &&
|
|
154
129
|
activeOverlay &&
|
|
155
|
-
|
|
156
|
-
isSearchEnabled && Boolean(drawingModes.length) && (
|
|
130
|
+
propEq('type', MAP_DRAWING_MODES.POLYGON, activeOverlay) && (React.createElement(Polygon, { onLoad: setPolygon, path: activeOverlay.path, editable: true, options: allOverlayOptions, onMouseUp: handleOverlayChange, onDragEnd: handleOverlayChange })),
|
|
131
|
+
isSearchEnabled && Boolean(drawingModes.length) && (React.createElement(DrawingManager, { onPolygonComplete: handleOverlayComplete(MAP_DRAWING_MODES.POLYGON), onCircleComplete: handleOverlayComplete(MAP_DRAWING_MODES.CIRCLE), drawingMode: getDrawingMode(drawingMode), options: {
|
|
157
132
|
drawingControl: false,
|
|
158
133
|
circleOptions: allOverlayOptions,
|
|
159
134
|
polygonOptions: allOverlayOptions
|
|
160
135
|
} }))));
|
|
161
136
|
};
|
|
162
|
-
exports.ReltioMap = ReltioMap;
|