@reltio/components 1.4.701 → 1.4.705
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 +10 -0
- package/HOCs/withAsyncMount/withAsyncMount.js +44 -0
- package/HOCs/withTooltip/propTypes.js +11 -0
- package/HOCs/withTooltip/withTooltip.js +71 -0
- package/components/ArrowExpandButton/ArrowExpandButton.js +39 -0
- package/components/ArrowExpandButton/styles.js +17 -0
- package/components/AttributeListItem/AttrTypeIcon.js +29 -0
- package/components/AttributeListItem/AttributeListItem.js +70 -0
- package/components/AttributeListItem/styles.js +97 -0
- package/components/AutoSizeList/AutoSizeList.js +70 -0
- package/components/AvatarWithFallback/AvatarWithFallback.js +79 -0
- package/components/BasicTableView/BasicTable/BasicTable.js +106 -0
- package/components/BasicTableView/BasicTable/HOCs/withFilter.js +38 -0
- package/components/BasicTableView/BasicTable/HOCs/withFilterAtBottom.js +43 -0
- package/components/BasicTableView/BasicTable/HOCs/withTableContext.js +47 -0
- package/components/BasicTableView/BasicTable/cell-value-renderers/BlobRenderer.js +20 -0
- package/components/BasicTableView/BasicTable/cell-value-renderers/DefaultCellValueRenderer.js +43 -0
- package/components/BasicTableView/BasicTable/cell-value-renderers/index.js +8 -0
- package/components/BasicTableView/BasicTable/cell-value-renderers/styles.js +22 -0
- package/components/BasicTableView/BasicTable/contexts/RowCollapseContext.js +9 -0
- package/components/BasicTableView/BasicTable/contexts/TableContext.js +9 -0
- package/components/BasicTableView/BasicTable/contexts/index.js +5 -0
- package/components/BasicTableView/BasicTable/helpers/dataHelpers.js +122 -0
- package/components/BasicTableView/BasicTable/helpers/defaultGetRowCellHeight.js +20 -0
- package/components/BasicTableView/BasicTable/helpers/defaultRenderRowCell.js +33 -0
- package/components/BasicTableView/BasicTable/helpers/nestedHelpers.js +80 -0
- package/components/BasicTableView/BasicTable/hooks/index.js +10 -0
- package/components/BasicTableView/BasicTable/hooks/useBasicTableCellRenderer.js +94 -0
- package/components/BasicTableView/BasicTable/hooks/useCollapsibleTableRows.js +43 -0
- package/components/BasicTableView/BasicTable/hooks/useDynamicRowCellHeight.js +37 -0
- package/components/BasicTableView/BasicTableHeader/ColumnsSettings/ColumnListItem.js +30 -0
- package/components/BasicTableView/BasicTableHeader/ColumnsSettings/ColumnsSettings.js +91 -0
- package/components/BasicTableView/BasicTableHeader/ColumnsSettings/columnHelpers.js +86 -0
- package/components/BasicTableView/BasicTableHeader/ColumnsSettings/styles.js +12 -0
- package/components/BasicTableView/BasicTableHeader/FilterButton/FilterButton.js +26 -0
- package/components/BasicTableView/BasicTableHeader/FilterButton/styles.js +18 -0
- package/components/BasicTableView/BasicTablePagination/BasicTablePagination.js +80 -0
- package/components/BasicTableView/BasicTablePagination/styles.js +32 -0
- package/components/BasicTableView/CollapseRowButton/CollapseRowButton.js +48 -0
- package/components/BasicTableView/CollapseRowButton/styles.js +9 -0
- package/components/BasicTableView/ColumnFilter/ColumnFilter.js +113 -0
- package/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.js +40 -0
- package/components/BasicTableView/ColumnFilter/FilterChip/styles.js +27 -0
- package/components/BasicTableView/ColumnFilter/helpers.js +18 -0
- package/components/BasicTableView/ColumnFilter/styles.js +30 -0
- package/components/BasicTableView/RowCellAutoSizer/RowCellAutoSizer.js +56 -0
- package/components/BasicTableView/index.js +45 -0
- package/components/BasicTableView/viewState/basicTableViewState.js +82 -0
- package/components/BasicView/BasicView.js +61 -0
- package/components/BasicView/styles.js +13 -0
- package/components/BasicViewContent/BasicViewContent.js +36 -0
- package/components/BasicViewContent/styles.js +13 -0
- package/components/BasicViewHeader/BasicViewHeader.js +39 -0
- package/components/BasicViewHeader/styles.js +19 -0
- package/components/ClickAwayProvider/ClickAwayProvider.js +22 -0
- package/components/CollaborationItem/Avatar/Avatar.js +39 -0
- package/components/CollaborationItem/Avatar/styles.js +13 -0
- package/components/CollaborationItem/CollaborationItem.js +48 -0
- package/components/CollaborationItem/Comment/Comment.js +78 -0
- package/components/CollaborationItem/Comment/styles.js +51 -0
- package/components/CollaborationItem/CommentContent/CommentContent.js +42 -0
- package/components/CollaborationItem/CommentContent/styles.js +12 -0
- package/components/CollaborationItem/CommentTarget/CommentTarget.js +98 -0
- package/components/CollaborationItem/CommentTarget/styles.js +23 -0
- package/components/CollaborationItem/RepliedComment/RepliedComment.js +30 -0
- package/components/CollaborationItem/RepliedComment/styles.js +44 -0
- package/components/CollaborationItem/SendMessageArea/SendMessageArea.js +113 -0
- package/components/CollaborationItem/SendMessageArea/styles.js +33 -0
- package/components/CollaborationItem/TextFieldWithMentions/TextFieldWithMentions.js +70 -0
- package/components/CollaborationItem/TextFieldWithMentions/styles.js +54 -0
- package/components/CollaborationItem/styles.js +21 -0
- package/components/CollaborationItem/utils/index.js +53 -0
- package/components/CollaborationPopup/CollaborationPopup.js +68 -0
- package/components/CollaborationPopup/styles.js +69 -0
- package/components/CollapseButton/CollapseButton.js +47 -0
- package/components/CollapseButton/styles.js +12 -0
- package/components/ColorBar/ColorBar.js +38 -0
- package/components/ColorBar/styles.js +17 -0
- package/components/CommentsContainer/CommentsContainer.js +70 -0
- package/components/CommentsContainer/buttons/AddCommentButton.js +19 -0
- package/components/CommentsContainer/buttons/CommentButton.js +20 -0
- package/components/CommentsContainer/buttons/styles.js +36 -0
- package/components/CommentsContainer/styles.js +25 -0
- package/components/ConfigureColumnsPopup/ConfigureColumnsPopup.js +132 -0
- package/components/ConfigureColumnsPopup/styles.js +13 -0
- package/components/ConfirmationDialog/ConfirmationDialog.js +28 -0
- package/components/ConfirmationDialog/styles.js +40 -0
- package/components/ConnectionRelationTypeSelector/ConnectionRelationTypeSelector.js +83 -0
- package/components/DataTypeValue/DataTypeValue.js +28 -0
- package/components/DateRangePicker/DateRangePicker.js +87 -0
- package/components/DateRangePicker/styles.js +43 -0
- package/components/Drawer/Drawer.js +72 -0
- package/components/DropDownMenuButton/DropDownMenuButton.js +74 -0
- package/components/DropDownMenuButton/MenuItemRenderer.js +44 -0
- package/components/DropDownMenuButton/styles.js +28 -0
- package/components/DropDownSelector/DropDownSelector.js +97 -0
- package/components/DropDownSelector/components/Menu.js +36 -0
- package/components/DropDownSelector/components/SingleValue.js +30 -0
- package/components/DropDownSelector/components/styles.js +36 -0
- package/components/DropDownSelector/styles.js +69 -0
- package/components/EmptySearchResult/NoData.js +25 -0
- package/components/EmptySearchResult/NoMessageComponent.js +39 -0
- package/components/EmptySearchResult/NoResults.js +24 -0
- package/components/EmptySearchResult/index.js +7 -0
- package/components/EmptySearchResult/styles.js +26 -0
- package/components/EmptyState/EmptyState.js +36 -0
- package/components/EmptyState/styles.js +68 -0
- package/components/EntityAvatar/EntityAvatar.js +26 -0
- package/components/EntityAvatar/no-photo.svg.js +4 -0
- package/components/EntityTypeBadge/EntityTypeBadge.js +25 -0
- package/components/EntityTypeBadge/styles.js +23 -0
- package/components/EntityTypeIcon/EntityTypeIcon.js +26 -0
- package/components/EntityTypesSelector/EntityTypesSelector.js +145 -0
- package/components/EntityTypesSelector/ListLabel/ListLabel.js +51 -0
- package/components/EntityTypesSelector/ListLabel/helpers.js +49 -0
- package/components/EntityTypesSelector/ListLabel/styles.js +36 -0
- package/components/EntityTypesSelector/SelectEntityTypesList.js +70 -0
- package/components/EntityTypesSelector/styles.js +72 -0
- package/components/EntityUriLink/EntityUriLink.js +43 -0
- package/components/ErrorBoundary/ErrorBoundary.js +46 -0
- package/components/ErrorPopup/ErrorPopup.js +32 -0
- package/components/ErrorPopup/styles.js +11 -0
- package/components/ErrorWrapper/ErrorMessage.js +17 -0
- package/components/ErrorWrapper/ErrorWrapper.js +62 -0
- package/components/ErrorWrapper/styles.js +18 -0
- package/components/ExpandableSearchInput/ExpandableSearchInput.js +50 -0
- package/components/ExpandableSearchInput/styles.js +23 -0
- package/components/ExpandedValueTooltip/ExpandedValueTooltip.js +88 -0
- package/components/FacetViewHeader/FacetViewHeader.js +15 -0
- package/components/FacetViewHeader/styles.js +17 -0
- package/components/FlipCard/FlipCard.js +41 -0
- package/components/FlipCard/styles.js +55 -0
- package/components/FlipCard/types/index.js +2 -0
- package/components/HideOnShrink/HideOnShrink.js +21 -0
- package/components/HierarchicalAttributeTooltip/HierarchicalAttributeTooltip.js +45 -0
- package/components/HierarchicalAttributeTooltip/styles.js +54 -0
- package/components/Highlighter/Highlighter.js +18 -0
- package/components/Highlighter/styles.js +9 -0
- package/components/Image/CheckedIcon/CheckedIcon.js +18 -0
- package/components/Image/CheckedIcon/styles.js +10 -0
- package/components/Image/Image.js +104 -0
- package/components/Image/ImageActionsOverlay/ImageActionsOverlay.js +81 -0
- package/components/Image/ImageActionsOverlay/styles.js +61 -0
- package/components/Image/styles.js +33 -0
- package/components/ImageAttributesGallery/GalleryView/GalleryView.js +45 -0
- package/components/ImageAttributesGallery/GalleryView/styles.js +14 -0
- package/components/ImageAttributesGallery/HeaderLeft/HeaderLeft.js +17 -0
- package/components/ImageAttributesGallery/HeaderLeft/styles.js +12 -0
- package/components/ImageAttributesGallery/HeaderRight/HeaderRight.js +26 -0
- package/components/ImageAttributesGallery/HeaderRight/styles.js +27 -0
- package/components/ImageAttributesGallery/ImageAttributesGallery.js +121 -0
- package/components/ImageDetailsView/ImageDetailsView.js +52 -0
- package/components/ImageDetailsView/ImageDetailsViewCarousel/ImageDetailsViewCarousel.js +53 -0
- package/components/ImageDetailsView/ImageDetailsViewCarousel/Thumbnails/Thumbnails.js +72 -0
- package/components/ImageDetailsView/ImageDetailsViewCarousel/Thumbnails/styles.js +26 -0
- package/components/ImageDetailsView/ImageDetailsViewCarousel/styles.js +47 -0
- package/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.js +61 -0
- package/components/ImageDetailsView/ImageDetailsViewSidebar/styles.js +45 -0
- package/components/ImageDetailsView/MetaInfo/MetaInfo.js +29 -0
- package/components/ImageDetailsView/MetaInfoForm/MetaInfoForm.js +32 -0
- package/components/ImageDetailsView/MetaInfoForm/styles.js +24 -0
- package/components/ImageDetailsView/MetaInfoHeader/MetaInfoHeader.js +52 -0
- package/components/ImageDetailsView/MetaInfoHeader/styles.js +21 -0
- package/components/ImageDetailsView/MetaInfoList/MetaInfoItem/MetaInfoItem.js +17 -0
- package/components/ImageDetailsView/MetaInfoList/MetaInfoItem/styles.js +25 -0
- package/components/ImageDetailsView/MetaInfoList/MetaInfoList.js +32 -0
- package/components/ImageDetailsView/MetaInfoList/styles.js +17 -0
- package/components/ImageDetailsView/constants/index.js +42 -0
- package/components/ImageDetailsView/helpers/index.js +97 -0
- package/components/ImageDetailsView/hooks/useEditMetaInfo.js +70 -0
- package/components/ImageDetailsView/styles.js +18 -0
- package/components/ImageDetailsView/theme/index.js +12 -0
- package/components/ImageDetailsView/types/index.js +2 -0
- package/components/ImageGalleryDialog/ImageGalleryDialog.js +70 -0
- package/components/ImageGalleryDialog/styles.js +49 -0
- package/components/ImportButton/ImportButton.js +40 -0
- package/components/ImportButton/styles.js +16 -0
- package/components/LightArrowTooltip/LightArrowTooltip.js +24 -0
- package/components/LightArrowTooltip/styles.js +15 -0
- package/components/LinearLoadIndicator/LinearLoadIndicator.js +17 -0
- package/components/LinearLoadIndicator/styles.js +19 -0
- package/components/Link/Link.js +19 -0
- package/components/Link/styles.js +14 -0
- package/components/LoadingSpinner/LoadingSpinner.js +15 -0
- package/components/LoadingSpinner/SpinnerSmall.gif.js +4 -0
- package/components/Marginator/Marginator.js +16 -0
- package/components/MatchRulesBlock/MatchRulesBadge/MatchRulesBadge.js +59 -0
- package/components/MatchRulesBlock/MatchRulesBadge/styles.js +23 -0
- package/components/MatchRulesBlock/MatchRulesBlock.js +24 -0
- package/components/MatchRulesBlock/MatchRulesTitle.js +12 -0
- package/components/MatchRulesBlock/MatchRulesTooltip/MatchRulesTooltip.js +18 -0
- package/components/MatchRulesBlock/MatchRulesTooltip/styles.js +19 -0
- package/components/MatchRulesBlock/SimpleMatchRules/SimpleMatchRules.js +18 -0
- package/components/MatchRulesBlock/SimpleMatchRules/styles.js +18 -0
- package/components/MatchRulesBlock/SimpleMatchRulesBlock/SimpleMatchRulesBlock.js +46 -0
- package/components/MatchRulesBlock/SimpleMatchRulesBlock/styles.js +19 -0
- package/components/MatchRulesBlock/SimpleMatchRulesBuilder/SimpleMatchRulesBuilder.js +43 -0
- package/components/MatchRulesBlock/TransitiveMatchBlock/TransitiveMatchBlock.js +58 -0
- package/components/MatchRulesBlock/TransitiveMatchBlock/styles.js +14 -0
- package/components/MatchRulesBlock/TransitiveMatchRules/TransitiveMatchRule.js +41 -0
- package/components/MatchRulesBlock/TransitiveMatchRules/styles.js +23 -0
- package/components/MatchRulesBlock/TransitiveMatchRulesTooltip/TransitiveMatchRulesTooltip.js +19 -0
- package/components/MatchRulesBlock/TransitiveMatchRulesTooltip/styles.js +13 -0
- package/components/MatchRulesBlock/types/index.js +2 -0
- package/components/ModeSwitcher/ModeSwitcher.js +25 -0
- package/components/ModeSwitcher/styles.js +36 -0
- package/components/ModeSwitcherSelect/ModeSwitcherSelect.js +87 -0
- package/components/ModeSwitcherSelect/index.js +5 -0
- package/components/ModeSwitcherSelect/styles.js +70 -0
- package/components/MultipleInput/MultipleInput.js +113 -0
- package/components/MultipleInput/styles.js +22 -0
- package/components/MultipliableSelect/MultipliableSelect.js +59 -0
- package/components/MultipliableSelect/styles.js +14 -0
- package/components/Popper/Popper.js +94 -0
- package/components/Popper/styles.js +17 -0
- package/components/Popper/utils.js +45 -0
- package/components/PopupWithArrow/PopupWithArrow.js +34 -0
- package/components/PopupWithArrow/styles.js +75 -0
- package/components/PotentialMatchReviewCard/PotentialMatchReviewCard.js +65 -0
- package/components/PotentialMatchReviewCard/styles.js +65 -0
- package/components/ProfileBand/ProfileBand.js +96 -0
- package/components/ProfileBand/styles.js +92 -0
- package/components/ProfileCard/ProfileCard.js +89 -0
- package/components/ProfileCard/styles.js +64 -0
- package/components/QueryBuilderRow/QueryBuilderRow.js +78 -0
- package/components/QueryBuilderRow/components/ReadOnlyFilter.js +21 -0
- package/components/QueryBuilderRow/components/ReadOnlyLogicOperator.js +21 -0
- package/components/QueryBuilderRow/components/styles.js +25 -0
- package/components/QueryBuilderRow/styles.js +22 -0
- package/components/QueryBuilderRowsGroup/QueryBuilderRowsGroup.js +88 -0
- package/components/ReactSelect/AsyncSelect.js +8 -0
- package/components/ReactSelect/CreatableSelect.js +8 -0
- package/components/ReactSelect/MultiSelect/MultiSelect.js +233 -0
- package/components/ReactSelect/MultiSelect/components/Option.js +57 -0
- package/components/ReactSelect/MultiSelect/components/index.js +10 -0
- package/components/ReactSelect/MultiSelect/index.js +7 -0
- package/components/ReactSelect/Select.js +8 -0
- package/components/ReactSelect/commonComponents/ClearIndicator.js +36 -0
- package/components/ReactSelect/commonComponents/Control.js +66 -0
- package/components/ReactSelect/commonComponents/DropdownIndicator.js +36 -0
- package/components/ReactSelect/commonComponents/GroupHeading.js +22 -0
- package/components/ReactSelect/commonComponents/Menu.js +37 -0
- package/components/ReactSelect/commonComponents/MultiValue.js +37 -0
- package/components/ReactSelect/commonComponents/NoOptionsMessage.js +17 -0
- package/components/ReactSelect/commonComponents/Option.js +56 -0
- package/components/ReactSelect/commonComponents/Placeholder.js +29 -0
- package/components/ReactSelect/commonComponents/SingleValue.js +29 -0
- package/components/ReactSelect/commonComponents/ValueContainer.js +19 -0
- package/components/ReactSelect/commonComponents/index.js +30 -0
- package/components/ReactSelect/optionFilters.js +9 -0
- package/components/ReactSelect/styles.js +69 -0
- package/components/ReactSelect/withMuiSkin.js +97 -0
- package/components/ReactSortableTree/index.js +30 -0
- package/components/ReactSortableTree/node-renderer-default.js +148 -0
- package/components/ReactSortableTree/nodeRendererDefaultStyle.js +278 -0
- package/components/ReactSortableTree/placeholder-renderer-default.js +23 -0
- package/components/ReactSortableTree/placeholderRendererDefaultStyle.js +46 -0
- package/components/ReactSortableTree/react-sortable-tree.js +809 -0
- package/components/ReactSortableTree/reactSortableTreeStyles.js +23 -0
- package/components/ReactSortableTree/tree-node.js +200 -0
- package/components/ReactSortableTree/tree-placeholder.js +92 -0
- package/components/ReactSortableTree/treeNodeStyle.js +236 -0
- package/components/ReactSortableTree/utils/classnames.js +28 -0
- package/components/ReactSortableTree/utils/default-handlers.js +45 -0
- package/components/ReactSortableTree/utils/dnd-manager.js +326 -0
- package/components/ReactSortableTree/utils/generic-utils.js +15 -0
- package/components/ReactSortableTree/utils/memoized-tree-data-utils.js +26 -0
- package/components/ReactSortableTree/utils/tree-data-utils.js +960 -0
- package/components/ReltioGridLayout/ReltioGridLayout.js +79 -0
- package/components/ReltioGridLayout/helpers.js +52 -0
- package/components/ReltioGridLayout/icons/ResizeIcon.svg.js +4 -0
- package/components/ReltioGridLayout/styles.js +71 -0
- package/components/RequiredMark/RequiredMark.js +12 -0
- package/components/RequiredMark/styles.js +9 -0
- package/components/ResizablePanes/ResizablePanes.js +75 -0
- package/components/ResizablePanes/styles.js +48 -0
- package/components/Score/DQLabel.js +14 -0
- package/components/Score/Score.js +26 -0
- package/components/Score/ScoreLabel.js +29 -0
- package/components/Score/styles.js +36 -0
- package/components/ScrollableTabs/ScrollableTabs.js +51 -0
- package/components/ScrollableTabs/styles.js +32 -0
- package/components/SearchInput/SearchInput.js +68 -0
- package/components/SearchInput/WhiteSearchInput.js +36 -0
- package/components/SearchInput/styles.js +32 -0
- package/components/SelectionPopup/SelectionPopup.js +70 -0
- package/components/SelectionPopup/SelectionPopupPopper/SelectionPopupPopper.js +60 -0
- package/components/SelectionPopup/helpers.js +70 -0
- package/components/SelectionPopup/styles.js +41 -0
- package/components/SelectorWithOnlyOptionAutoSelect/SelectorWithOnlyOptionAutoSelect.js +74 -0
- package/components/SelectorWithOnlyOptionAutoSelect/styles.js +31 -0
- package/components/SideIconPanel/SideButtonsPanel.js +42 -0
- package/components/SideIconPanel/styles.js +41 -0
- package/components/SidePanel/SidePanel.js +16 -0
- package/components/SidePanel/SidePanelContentHeader/SidePanelContentHeader.js +24 -0
- package/components/SidePanel/SidePanelContentHeader/styles.js +23 -0
- package/components/SidePanel/styles.js +16 -0
- package/components/SimpleDropDownSelector/DropDownPlaceholder.js +31 -0
- package/components/SimpleDropDownSelector/DropDownValue.js +23 -0
- package/components/SimpleDropDownSelector/SimpleDropDownSelector.js +59 -0
- package/components/SimpleDropDownSelector/styles.js +13 -0
- package/components/SimpleInput/SimpleInput.js +77 -0
- package/components/SmallIconButton/SmallIconButton.js +109 -0
- package/components/SmallIconButton/index.js +11 -0
- package/components/SourceIcon/SourceIcon.js +18 -0
- package/components/Spacer/Spacer.js +8 -0
- package/components/Title/Title.js +27 -0
- package/components/Title/styles.js +11 -0
- package/components/UploadFileButton/UploadFileButton.js +122 -0
- package/components/UploadFileButton/styles.js +20 -0
- package/components/UploadImageDialog/DividerWithText/DividerWithText.js +20 -0
- package/components/UploadImageDialog/DividerWithText/styles.js +24 -0
- package/components/UploadImageDialog/ErrorSnackbar/ErrorSnackbar.js +18 -0
- package/components/UploadImageDialog/ErrorSnackbar/styles.js +9 -0
- package/components/UploadImageDialog/ImageByUrlField/ImageByUrlField.js +63 -0
- package/components/UploadImageDialog/ImageByUrlField/styles.js +32 -0
- package/components/UploadImageDialog/SelectImageButton/SelectImageButton.js +23 -0
- package/components/UploadImageDialog/TargetBox/TargetBox.js +45 -0
- package/components/UploadImageDialog/TargetBox/styles.js +30 -0
- package/components/UploadImageDialog/UploadImageDialog.js +87 -0
- package/components/UploadImageDialog/constants/index.js +5 -0
- package/components/UploadImageDialog/styles.js +32 -0
- package/components/ValueChip/ValueChip.js +48 -0
- package/components/ValueChip/styles.js +37 -0
- package/components/VerticalDivider/VerticalDivider.js +22 -0
- package/components/VerticalHeadingsTable/VerticalHeadingsTable.js +72 -0
- package/components/ViewMoreToggle/ViewMoreToggle.js +26 -0
- package/components/ViewMoreToggle/styles.js +20 -0
- package/components/VirtualGroupedList/VirtualGroupedList.js +223 -0
- package/components/VirtualGroupedList/helpers.js +43 -0
- package/components/VirtualGroupedList/styles.js +17 -0
- package/components/activityLog/ActivityExportButton/ActivityExportButton.js +80 -0
- package/components/activityLog/ActivityExportButton/styles.js +15 -0
- package/components/activityLog/ActivityFilterEditor/ActivityDateRangeEditor.js +85 -0
- package/components/activityLog/ActivityFilterEditor/ActivityFilterEditor.js +89 -0
- package/components/activityLog/ActivityFilterEditor/ActivitySelector.js +30 -0
- package/components/activityLog/ActivityFilterEditor/AttributeSelector.js +103 -0
- package/components/activityLog/ActivityFilterEditor/DateRangeSelector.js +114 -0
- package/components/activityLog/ActivityFilterEditor/IntervalSelector.js +51 -0
- package/components/activityLog/ActivityFilterEditor/SourceSelector.js +30 -0
- package/components/activityLog/ActivityFilterEditor/UserSelector.js +62 -0
- package/components/activityLog/ActivityFilterEditor/styles.js +103 -0
- package/components/activityLog/ActivityFilterEditor/utils/getSelectorActivityTypes.js +35 -0
- package/components/activityLog/ActivityLog/ActivityLog.js +67 -0
- package/components/activityLog/ActivityLog/helpers.js +33 -0
- package/components/activityLog/ActivityLog/items/ActivityItem/ActivityItem.js +30 -0
- package/components/activityLog/ActivityLog/items/ActivityItem/styles.js +56 -0
- package/components/activityLog/ActivityLog/items/GroupItem/GroupItem.js +22 -0
- package/components/activityLog/ActivityLog/items/GroupItem/styles.js +27 -0
- package/components/activityLog/ActivityLog/styles.js +39 -0
- package/components/activityLog/ActivityLogFilter/ActivityLogFilter.js +63 -0
- package/components/activityLog/ActivityLogFilter/ActivityLogFilterHeader.js +26 -0
- package/components/activityLog/ActivityLogFilter/helpers.js +42 -0
- package/components/activityLog/ActivityLogFilter/styles.js +21 -0
- package/components/activityLog/activities/ActivitiesFactory.js +121 -0
- package/components/activityLog/activities/ActivityTitle/ActivityTitle.js +16 -0
- package/components/activityLog/activities/ActivityTitle/styles.js +20 -0
- package/components/activityLog/activities/CommentActivity.js +12 -0
- package/components/activityLog/activities/EntityObject/EntityObject.js +19 -0
- package/components/activityLog/activities/EntityObject/styles.js +17 -0
- package/components/activityLog/activities/GroupActivity.js +21 -0
- package/components/activityLog/activities/MergeActivity.js +19 -0
- package/components/activityLog/activities/MoreItemsLink/MoreItemsLink.js +40 -0
- package/components/activityLog/activities/PotentialMatchActivity.js +16 -0
- package/components/activityLog/activities/ProfileActivity.js +19 -0
- package/components/activityLog/activities/RelationActivity.js +19 -0
- package/components/activityLog/activities/RelationObject/RelationObject.js +20 -0
- package/components/activityLog/activities/RelationObject/styles.js +20 -0
- package/components/activityLog/activities/SearchActivity.js +47 -0
- package/components/activityLog/activities/SimpleActivity.js +22 -0
- package/components/activityLog/activities/fields/DeltaField.js +39 -0
- package/components/activityLog/activities/fields/PotentialMatchField.js +51 -0
- package/components/activityLog/activities/fields/commonStyles.js +22 -0
- package/components/activityLog/activities/fields/styles.js +42 -0
- package/components/activityLog/activities/records/CollapsibleActivityRecords.js +21 -0
- package/components/activityLog/activities/records/EntityRecord.js +25 -0
- package/components/activityLog/activities/records/PotentialMatchRecord.js +19 -0
- package/components/activityLog/activities/records/RecordUpdates.js +23 -0
- package/components/activityLog/activities/records/RelationRecord.js +23 -0
- package/components/activityLog/activities/records/styles.js +38 -0
- package/components/activityLog/activities/styles.js +17 -0
- package/components/activityLog/contexts/CollapsibleItemsContext/index.js +51 -0
- package/components/activityLog/hooks/useActivitiesLoader.js +62 -0
- package/components/activityLog/hooks/useProfileActivitiesLoader.js +62 -0
- package/components/activityLog/hooks/useReadableSearchState.js +48 -0
- package/components/activityLog/index.js +25 -0
- package/components/activityLog/types/ActivitiesFilter.js +2 -0
- package/components/activityLog/types/ActivityData.js +2 -0
- package/components/activityLog/types/ActivityDelta.js +2 -0
- package/components/activityLog/types/ActivityItem.js +2 -0
- package/components/activityLog/types/ActivityTypes.js +33 -0
- package/components/activityLog/types/AttributeOption.js +2 -0
- package/components/activityLog/types/DateRangeTypes.js +9 -0
- package/components/activityLog/types/DeltaTypes.js +9 -0
- package/components/activityLog/types/DeltaValue.js +2 -0
- package/components/activityLog/types/index.js +9 -0
- package/components/activityLog/utils/activities.js +89 -0
- package/components/activityLog/utils/filters.js +80 -0
- package/components/attributes/AttributesView/AttributesView.js +36 -0
- package/components/attributes/AttributesView/index.js +15 -0
- package/components/attributes/BranchDecorator/BranchDecorator.js +16 -0
- package/components/attributes/BranchDecorator/styles.js +39 -0
- package/components/attributes/ImageAttributesLine/ImageAttributesLine.js +123 -0
- package/components/attributes/ImageAttributesLine/constants.js +9 -0
- package/components/attributes/ImageAttributesLine/index.js +8 -0
- package/components/attributes/ImageAttributesLine/styles.js +49 -0
- package/components/attributes/OvIcon/OvIcon.js +33 -0
- package/components/attributes/OvIcon/index.js +8 -0
- package/components/attributes/OvIcon/styles.js +17 -0
- package/components/attributes/PivotingAttributes/PivotingTooltip.js +62 -0
- package/components/attributes/PivotingAttributes/PivotingTooltipContent.js +82 -0
- package/components/attributes/PivotingAttributes/helpers.js +118 -0
- package/components/attributes/PivotingAttributes/styles.js +95 -0
- package/components/attributes/editMode/AttributesFactory/Attribute.js +11 -0
- package/components/attributes/editMode/AttributesFactory/AttributesFactory.js +50 -0
- package/components/attributes/editMode/AttributesList/AttributesList.js +89 -0
- package/components/attributes/editMode/AttributesList/helpers.js +43 -0
- package/components/attributes/editMode/AttributesList/index.js +8 -0
- package/components/attributes/editMode/AttributesPager/AttributeRenderer.js +99 -0
- package/components/attributes/editMode/AttributesPager/AttributesPager.js +88 -0
- package/components/attributes/editMode/AttributesPager/CardinalityMessage.js +72 -0
- package/components/attributes/editMode/AttributesPager/SpecialRenderer.js +86 -0
- package/components/attributes/editMode/AttributesPager/index.js +54 -0
- package/components/attributes/editMode/AttributesPager/styles.js +33 -0
- package/components/attributes/editMode/AttributesPager/utils.js +7 -0
- package/components/attributes/editMode/AttributesView/AttributesView.js +67 -0
- package/components/attributes/editMode/AttributesView/index.js +14 -0
- package/components/attributes/editMode/AttributesView/styles.js +15 -0
- package/components/attributes/editMode/ComplexAttribute/ComplexAttribute.js +91 -0
- package/components/attributes/editMode/ComplexAttribute/styles.js +31 -0
- package/components/attributes/editMode/EntityCreator/EntityCreator.js +49 -0
- package/components/attributes/editMode/EntityCreator/index.js +38 -0
- package/components/attributes/editMode/EntitySelector/EntitySelector.js +146 -0
- package/components/attributes/editMode/EntitySelector/components/ClearIndicator.js +20 -0
- package/components/attributes/editMode/EntitySelector/components/EntityOption.js +58 -0
- package/components/attributes/editMode/EntitySelector/components/EntityTypeOption.js +45 -0
- package/components/attributes/editMode/EntitySelector/components/Group.js +40 -0
- package/components/attributes/editMode/EntitySelector/components/SingleValue.js +80 -0
- package/components/attributes/editMode/EntitySelector/components/styles.js +89 -0
- package/components/attributes/editMode/EntitySelector/styles.js +9 -0
- package/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.js +107 -0
- package/components/attributes/editMode/ImageAttributesLine/index.js +7 -0
- package/components/attributes/editMode/ImageAttributesLine/styles.js +43 -0
- package/components/attributes/editMode/MoreAttributesButton/MoreAttributesButton.js +111 -0
- package/components/attributes/editMode/MoreAttributesButton/index.js +8 -0
- package/components/attributes/editMode/MoreAttributesButton/styles.js +31 -0
- package/components/attributes/editMode/NestedAttribute/NestedAttribute.js +45 -0
- package/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.js +152 -0
- package/components/attributes/editMode/ReferenceAttribute/index.js +44 -0
- package/components/attributes/editMode/ReferenceAttribute/styles.js +12 -0
- package/components/attributes/editMode/RelationTypeSelector/RelationTypeSelector.js +72 -0
- package/components/attributes/editMode/RelationTypeSelector/components/RelationOption.js +57 -0
- package/components/attributes/editMode/RelationTypeSelector/components/styles.js +55 -0
- package/components/attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor.js +125 -0
- package/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.js +36 -0
- package/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.js +19 -0
- package/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.js +20 -0
- package/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.js +59 -0
- package/components/attributes/editMode/SimpleAttributeEditor/selectors/types.js +2 -0
- package/components/attributes/editMode/SimpleAttributeEditor/styles.js +33 -0
- package/components/attributes/editMode/SimpleAttributeEditor/utils.js +65 -0
- package/components/attributes/helpers/attributesView.js +22 -0
- package/components/attributes/helpers/imageAttributes.js +37 -0
- package/components/attributes/inline/AttributesList/AttributesList.js +42 -0
- package/components/attributes/inline/AttributesList/styles.js +13 -0
- package/components/attributes/inline/AttributesPager/AttributesPager.js +96 -0
- package/components/attributes/inline/AttributesPager/styles.js +14 -0
- package/components/attributes/inline/ComplexAttribute/ComplexAttribute.js +72 -0
- package/components/attributes/inline/ComplexAttribute/styles.js +24 -0
- package/components/attributes/inline/ImageAttribute/ImageAttribute.js +39 -0
- package/components/attributes/inline/ImageAttribute/styles.js +17 -0
- package/components/attributes/inline/ImageAttributesBlock/ImageAttributesBlock.js +34 -0
- package/components/attributes/inline/NestedAttribute/NestedAttribute.js +37 -0
- package/components/attributes/inline/NestedAttributesBlock/NestedAttributesBlock.js +43 -0
- package/components/attributes/inline/ReferenceAttribute/ReferenceAttribute.js +48 -0
- package/components/attributes/inline/ReferenceAttribute/styles.js +14 -0
- package/components/attributes/inline/ReferenceAttributesBlock/ReferenceAttributesBlock.js +34 -0
- package/components/attributes/inline/SimpleAttribute/CrosswalkMenuItem/CrosswalkMenuItem.js +50 -0
- package/components/attributes/inline/SimpleAttribute/CrosswalkMenuItem/styles.js +23 -0
- package/components/attributes/inline/SimpleAttribute/SimpleAttribute.js +99 -0
- package/components/attributes/inline/SimpleAttribute/index.js +8 -0
- package/components/attributes/inline/SimpleAttribute/styles.js +32 -0
- package/components/attributes/inline/SimpleAttributeEditor/SimpleAttributeEditor.js +88 -0
- package/components/attributes/inline/SimpleAttributeEditor/styles.js +24 -0
- package/components/attributes/inline/SimpleAttributesBlock/SimpleAttributesBlock.js +61 -0
- package/components/attributes/inline/SimpleAttributesBlock/styles.js +24 -0
- package/components/attributes/inline/common/ComplexAttributeLabel.js +15 -0
- package/components/attributes/inline/common/CrosswalkIcon.js +20 -0
- package/components/attributes/inline/common/DeleteButton.js +13 -0
- package/components/attributes/inline/common/IgnoreButton.js +14 -0
- package/components/attributes/inline/common/PinButton.js +14 -0
- package/components/attributes/inline/common/SourceItem.js +27 -0
- package/components/attributes/inline/common/__test__/CrosswalkIcon.spec.js +75 -0
- package/components/attributes/inline/common/__test__/IgnoreButton.spec.js +28 -0
- package/components/attributes/inline/common/__test__/PinButton.spec.js +28 -0
- package/components/attributes/inline/common/__test__/SourceItem.spec.js +70 -0
- package/components/attributes/inline/common/styles.js +61 -0
- package/components/attributes/inline/hooks/useAttributeState.js +43 -0
- package/components/attributes/inline/index.js +25 -0
- package/components/attributes/inline/types/AddAttributeEvent.js +2 -0
- package/components/attributes/inline/types/CrosswalksMap.js +2 -0
- package/components/attributes/inline/types/DeleteAttributeEvent.js +2 -0
- package/components/attributes/inline/types/EditAttributeEvent.js +2 -0
- package/components/attributes/inline/types/IgnoreAttributeEvent.js +2 -0
- package/components/attributes/inline/types/PinAttributeEvent.js +2 -0
- package/components/attributes/inline/types/index.js +2 -0
- package/components/attributes/pagersCommon/ShowLess.js +18 -0
- package/components/attributes/pagersCommon/ShowMore.js +20 -0
- package/components/attributes/pagersCommon/styles.js +13 -0
- package/components/attributes/readMode/AttributeValuesBlock/AttributeValuesBlock.js +73 -0
- package/components/attributes/readMode/AttributesFactory/Attribute.js +11 -0
- package/components/attributes/readMode/AttributesFactory/AttributesFactory.js +38 -0
- package/components/attributes/readMode/AttributesList/AttributesList.js +71 -0
- package/components/attributes/readMode/AttributesList/index.js +8 -0
- package/components/attributes/readMode/AttributesPager/AttributesPager.js +76 -0
- package/components/attributes/readMode/AttributesPager/MultiLineRenderer.js +67 -0
- package/components/attributes/readMode/AttributesPager/OneLineRenderer.js +28 -0
- package/components/attributes/readMode/AttributesPager/SpecialRenderer.js +41 -0
- package/components/attributes/readMode/AttributesPager/index.js +15 -0
- package/components/attributes/readMode/AttributesPager/styles.js +92 -0
- package/components/attributes/readMode/AttributesView/AttributesView.js +60 -0
- package/components/attributes/readMode/AttributesView/index.js +14 -0
- package/components/attributes/readMode/AttributesView/styles.js +19 -0
- package/components/attributes/readMode/ComplexAttribute/ComplexAttribute.js +65 -0
- package/components/attributes/readMode/ComplexAttribute/styles.js +23 -0
- package/components/attributes/readMode/ImageAttributesLine/ImageAttributesLine.js +55 -0
- package/components/attributes/readMode/ImageAttributesLine/cross.inline.svg.js +4 -0
- package/components/attributes/readMode/ImageAttributesLine/index.js +8 -0
- package/components/attributes/readMode/ImageAttributesLine/styles.js +90 -0
- package/components/attributes/readMode/NestedAttribute/NestedAttribute.js +72 -0
- package/components/attributes/readMode/NestedAttribute/index.js +8 -0
- package/components/attributes/readMode/NestedAttribute/styles.js +28 -0
- package/components/attributes/readMode/ReferenceAttribute/ReferenceAttribute.js +81 -0
- package/components/attributes/readMode/ReferenceAttribute/index.js +17 -0
- package/components/attributes/readMode/ReferenceAttribute/styles.js +30 -0
- package/components/attributes/readMode/SimpleAttribute/SimpleAttribute.js +52 -0
- package/components/attributes/readMode/SimpleAttribute/index.js +8 -0
- package/components/attributes/readMode/SimpleAttribute/styles.js +37 -0
- package/components/attributes/readMode/SpecialAttributes/Roles/Role.js +41 -0
- package/components/attributes/readMode/SpecialAttributes/Roles/Roles.js +13 -0
- package/components/attributes/readMode/SpecialAttributes/Roles/index.js +8 -0
- package/components/attributes/readMode/SpecialAttributes/SpecialAttributesArray.js +29 -0
- package/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +43 -0
- package/components/attributes/readMode/SpecialAttributes/Tags/Tags.js +13 -0
- package/components/attributes/readMode/SpecialAttributes/Tags/index.js +8 -0
- package/components/attributes/readMode/SpecialAttributes/styles.js +20 -0
- package/components/attributes/readMode/helpers/historyAppearance.js +65 -0
- package/components/attributes/types/attributesView.js +2 -0
- package/components/attributes/types/index.js +13 -0
- package/components/charts/ActiveShape/ActiveShape.js +52 -0
- package/components/charts/BarChart/BarChart.js +37 -0
- package/components/charts/BarChart/getBarChartSettings.js +52 -0
- package/components/charts/BubbleChart/BubbleChart.js +84 -0
- package/components/charts/BubbleChart/helpers.js +28 -0
- package/components/charts/BubbleChart/styles.js +10 -0
- package/components/charts/BubbleChart/useBubbles.js +18 -0
- package/components/charts/ChartsFactory.js +57 -0
- package/components/charts/CloudChart/CloudChart.js +72 -0
- package/components/charts/CloudChart/styles.js +34 -0
- package/components/charts/CloudChart/useCloud.js +36 -0
- package/components/charts/CustomLegend/CustomLegend.js +17 -0
- package/components/charts/CustomLegend/getLegendProps.js +23 -0
- package/components/charts/CustomLegend/styles.js +41 -0
- package/components/charts/CustomTooltip/CustomTooltip.js +29 -0
- package/components/charts/CustomTooltip/styles.js +31 -0
- package/components/charts/HOCs/withPercents.js +60 -0
- package/components/charts/LineChart/LineChart.js +48 -0
- package/components/charts/LineChart/getLineChartSettings.js +60 -0
- package/components/charts/MapChart/Legend/Legend.js +22 -0
- package/components/charts/MapChart/Legend/styles.js +49 -0
- package/components/charts/MapChart/MapChart.js +115 -0
- package/components/charts/MapChart/styles.js +16 -0
- package/components/charts/MapChart/useGeography.js +23 -0
- package/components/charts/PieChart/PieChart.js +67 -0
- package/components/charts/TableWithBars/TableWithBars.js +71 -0
- package/components/charts/TableWithBars/cell-renderers/AttributeCellRenderer.js +30 -0
- package/components/charts/TableWithBars/cell-renderers/HeadCellRenderer.js +40 -0
- package/components/charts/TableWithBars/cell-renderers/NumberCellValueRenderer.js +20 -0
- package/components/charts/TableWithBars/cell-renderers/styles.js +71 -0
- package/components/charts/TableWithBars/styles.js +19 -0
- package/components/charts/TreeChart/TreeChart.js +66 -0
- package/components/charts/TreeChart/styles.js +16 -0
- package/components/charts/hooks/useClickableStyle.js +14 -0
- package/components/charts/hooks/useTooltipState.js +30 -0
- package/components/charts/index.js +18 -0
- package/components/charts/types/BarChartOptions.js +2 -0
- package/components/charts/types/ChartData.js +2 -0
- package/components/charts/types/ChartProps.js +2 -0
- package/components/charts/types/LineChartOptions.js +2 -0
- package/components/charts/types/TableWithBarsOptions.js +2 -0
- package/components/charts/types/index.js +2 -0
- package/components/commonReactSelectComponents/DropdownIndicator.js +38 -0
- package/components/commonReactSelectComponents/DropdownIndicatorWithIconButton.js +38 -0
- package/components/commonReactSelectComponents/MenuWithPopper.js +79 -0
- package/components/commonReactSelectComponents/arrowIndicatorStyles.js +12 -0
- package/components/commonReactSelectComponents/menuStyles.js +13 -0
- package/components/editors/BooleanEditor/BooleanEditor.js +41 -0
- package/components/editors/BooleanRadioEditor/BooleanRadioEditor.js +24 -0
- package/components/editors/BooleanRadioEditor/styles.js +12 -0
- package/components/editors/DataTypeValueEditor/DataTypeValueEditor.js +54 -0
- package/components/editors/DataTypeValueEditor/useEditorContext.js +108 -0
- package/components/editors/DateEditor/DateEditor.js +94 -0
- package/components/editors/DateEditor/styles.js +31 -0
- package/components/editors/DateRangeEditor/DateRangeEditor.js +146 -0
- package/components/editors/DateRangeEditor/styles.js +39 -0
- package/components/editors/DependentLookupEditor/DependentLookupEditor.js +129 -0
- package/components/editors/DependentLookupEditor/OptionWithCheckIcon.js +33 -0
- package/components/editors/DependentLookupEditor/helpers.js +25 -0
- package/components/editors/DependentLookupEditor/styles.js +25 -0
- package/components/editors/DependentLookupEditor/useAutopopulation.js +25 -0
- package/components/editors/DependentLookupEditor/useDefaultOptions.js +25 -0
- package/components/editors/DependentLookupEditor/useLookupsResolver.js +29 -0
- package/components/editors/DropDownEditor/DropDownEditor.js +47 -0
- package/components/editors/EditorsFactory.js +97 -0
- package/components/editors/FileTypeEditor/FileTypeEditor.js +52 -0
- package/components/editors/FileTypeEditor/styles.js +9 -0
- package/components/editors/FilterEditor/FilterEditor.js +46 -0
- package/components/editors/FilterEditor/FilterValueEditor.js +84 -0
- package/components/editors/GroupedDropDownEditor/GroupedDropDownEditor.js +64 -0
- package/components/editors/GroupedDropDownEditor/entriesHelpers.js +32 -0
- package/components/editors/GroupedDropDownEditor/styles.js +14 -0
- package/components/editors/LookupEditor/LookupEditor.js +78 -0
- package/components/editors/LookupEditor/entriesHelpers.js +28 -0
- package/components/editors/NumberEditor/NumberEditor.js +70 -0
- package/components/editors/RangeDataTypeValueEditor/RangeDataTypeValueEditor.js +87 -0
- package/components/editors/RangeDataTypeValueEditor/styles.js +24 -0
- package/components/editors/SelectEditor/SelectEditor.js +44 -0
- package/components/editors/TextEditor/TextEditor.js +47 -0
- package/components/editors/TimestampEditor/TimestampEditor.js +100 -0
- package/components/editors/TimestampEditor/styles.js +25 -0
- package/components/editors/TypeaheadEditor/TypeaheadEditor.js +151 -0
- package/components/editors/TypeaheadEditor/styles.js +55 -0
- package/components/editors/commonComponents/MultiValueChip/MultiValueChip.js +39 -0
- package/components/editors/constants.js +27 -0
- package/components/editors/index.js +24 -0
- package/components/index.js +242 -0
- package/constants/attributes.js +5 -0
- package/constants/classnames.js +4 -0
- package/constants/index.js +13 -0
- package/constants/prop-types.js +82 -0
- package/contexts/AsyncMountContext/index.js +19 -0
- package/contexts/BlockImageGalleryDialogContext/index.js +9 -0
- package/contexts/CollaborationContext/index.js +21 -0
- package/contexts/CrosswalksDisplayContext/index.js +70 -0
- package/contexts/EntitiesMapContext/index.js +9 -0
- package/contexts/HistoryAppearanceContext/index.js +12 -0
- package/contexts/IdContext/index.js +9 -0
- package/contexts/PivotingAttributeContext/index.js +8 -0
- package/contexts/PopupBoundariesContext/index.js +16 -0
- package/contexts/ProfilePerspectiveViewContext/index.js +9 -0
- package/contexts/UsersContext/index.js +9 -0
- package/contexts/ViewIdContext/index.js +9 -0
- package/contexts/index.js +30 -0
- package/core/index.js +13 -0
- package/core/utils.js +54 -0
- package/hooks/index.js +29 -0
- package/hooks/useActions.js +27 -0
- package/hooks/useAsyncMount.js +27 -0
- package/hooks/useCollaboration.js +151 -0
- package/hooks/useConfigPermissions.js +20 -0
- package/hooks/useDidUpdateEffect.js +14 -0
- package/hooks/usePrevious.js +12 -0
- package/hooks/useRelationTypeSelector.js +53 -0
- package/hooks/useRelationsLoader.js +111 -0
- package/hooks/useRunOnceAfterValueInitialization.js +14 -0
- package/hooks/useSafePromise.js +34 -0
- package/hooks/useSavedState.js +18 -0
- package/hooks/useUsers.js +29 -0
- package/hooks/useWhyDidYouUpdate.js +46 -0
- package/icons/Add.js +11 -0
- package/icons/AddComment.js +11 -0
- package/icons/Calendar.js +11 -0
- package/icons/Comment.js +11 -0
- package/icons/CommentBubble.js +11 -0
- package/icons/Create.js +11 -0
- package/icons/DefaultImage.js +13 -0
- package/icons/Details.js +16 -0
- package/icons/Download.js +16 -0
- package/icons/EmptySearchResults.js +73 -0
- package/icons/Eye.js +16 -0
- package/icons/Filter.js +11 -0
- package/icons/Ignored.js +11 -0
- package/icons/IgnoredOutlined.js +11 -0
- package/icons/LogIn.js +12 -0
- package/icons/LogOut.js +12 -0
- package/icons/Merge.js +11 -0
- package/icons/MlMatch.js +51 -0
- package/icons/NestedAttribute.js +11 -0
- package/icons/NoData.js +73 -0
- package/icons/NoDataSearch.js +14 -0
- package/icons/NoMatches.js +11 -0
- package/icons/Pin.js +11 -0
- package/icons/PinOutlined.js +11 -0
- package/icons/PivotingIcon.js +11 -0
- package/icons/PmIcon.js +11 -0
- package/icons/PotentialMatch.js +11 -0
- package/icons/Profile.js +11 -0
- package/icons/Recommended.js +16 -0
- package/icons/ReferenceAttribute.js +11 -0
- package/icons/Remove.js +11 -0
- package/icons/ResizeIconInline.js +11 -0
- package/icons/Search.js +11 -0
- package/icons/SelectAttributes.js +46 -0
- package/icons/SimpleAttribute.js +11 -0
- package/icons/Table.js +11 -0
- package/icons/UnMerge.js +11 -0
- package/icons/UploadIcon.js +35 -0
- package/icons/index.js +82 -0
- package/index.js +19 -0
- package/package.json +8 -5
- package/types/index.js +2 -0
- package/bundle.js +0 -2
- package/bundle.js.LICENSE.txt +0 -25
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.useReadableSearchState = void 0;
|
|
23
|
+
var react_1 = require("react");
|
|
24
|
+
var react_redux_1 = require("react-redux");
|
|
25
|
+
var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
|
|
26
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
27
|
+
var ramda_1 = require("ramda");
|
|
28
|
+
var useReadableSearchState = function (searchState) {
|
|
29
|
+
var metadata = react_redux_1.useSelector(mdm_module_1.default.selectors.getMetadata);
|
|
30
|
+
var dataTenants = react_redux_1.useSelector(mdm_module_1.default.selectors.getDataTenants);
|
|
31
|
+
var attributePresentations = react_redux_1.useSelector(mdm_module_1.default.selectors.getAttributePresentations);
|
|
32
|
+
var lookups = react_redux_1.useSelector(mdm_module_1.default.selectors.getLookups);
|
|
33
|
+
var map = searchState.map;
|
|
34
|
+
var keyword = mdm_sdk_1.getKeywordFromSearchState(searchState);
|
|
35
|
+
var groups = mdm_sdk_1.getGroupsFromSearchState(metadata, dataTenants, searchState);
|
|
36
|
+
var unresolvedLookups = mdm_sdk_1.getUnresolvedLookupsListFromSearchGroups(groups, lookups);
|
|
37
|
+
var dispatch = react_redux_1.useDispatch();
|
|
38
|
+
react_1.useEffect(function () {
|
|
39
|
+
if (unresolvedLookups.length > 0) {
|
|
40
|
+
ramda_1.pipe(ramda_1.chain(function (_a) {
|
|
41
|
+
var type = _a.type, codeValues = _a.codeValues;
|
|
42
|
+
return codeValues.map(function (codeValue) { return ({ type: type, codeValue: codeValue }); });
|
|
43
|
+
}), mdm_sdk_1.resolveLookupsList, ramda_1.andThen(ramda_1.pipe(mdm_module_1.profile.lookups.actions.lookupsListResolved, dispatch)))(unresolvedLookups);
|
|
44
|
+
}
|
|
45
|
+
}, [searchState]); // eslint-disable-line
|
|
46
|
+
return mdm_sdk_1.buildReadableQueryToString(metadata, attributePresentations, lookups, groups, keyword, map);
|
|
47
|
+
};
|
|
48
|
+
exports.useReadableSearchState = useReadableSearchState;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
|
+
};
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.useProfileActivitiesLoader = exports.useActivitiesLoader = exports.ActivityLogFilter = exports.ActivityLog = void 0;
|
|
17
|
+
var ActivityLog_1 = require("./ActivityLog/ActivityLog");
|
|
18
|
+
Object.defineProperty(exports, "ActivityLog", { enumerable: true, get: function () { return __importDefault(ActivityLog_1).default; } });
|
|
19
|
+
var ActivityLogFilter_1 = require("./ActivityLogFilter/ActivityLogFilter");
|
|
20
|
+
Object.defineProperty(exports, "ActivityLogFilter", { enumerable: true, get: function () { return __importDefault(ActivityLogFilter_1).default; } });
|
|
21
|
+
__exportStar(require("./types"), exports);
|
|
22
|
+
var useActivitiesLoader_1 = require("./hooks/useActivitiesLoader");
|
|
23
|
+
Object.defineProperty(exports, "useActivitiesLoader", { enumerable: true, get: function () { return useActivitiesLoader_1.useActivitiesLoader; } });
|
|
24
|
+
var useProfileActivitiesLoader_1 = require("./hooks/useProfileActivitiesLoader");
|
|
25
|
+
Object.defineProperty(exports, "useProfileActivitiesLoader", { enumerable: true, get: function () { return useProfileActivitiesLoader_1.useProfileActivitiesLoader; } });
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActivityTypes = void 0;
|
|
4
|
+
var ActivityTypes;
|
|
5
|
+
(function (ActivityTypes) {
|
|
6
|
+
ActivityTypes["MODEL_UPDATED"] = "MODEL_UPDATED";
|
|
7
|
+
ActivityTypes["ENTITY_REMOVED"] = "ENTITY_REMOVED";
|
|
8
|
+
ActivityTypes["ENTITY_CREATED"] = "ENTITY_CREATED";
|
|
9
|
+
ActivityTypes["ENTITY_CHANGED"] = "ENTITY_CHANGED";
|
|
10
|
+
ActivityTypes["ENTITIES_MERGED"] = "ENTITIES_MERGED";
|
|
11
|
+
ActivityTypes["ENTITIES_SPLITTED"] = "ENTITIES_SPLITTED";
|
|
12
|
+
ActivityTypes["ENTITY_LOST_MERGE"] = "ENTITY_LOST_MERGE";
|
|
13
|
+
ActivityTypes["RELATIONSHIP_CREATED"] = "RELATIONSHIP_CREATED";
|
|
14
|
+
ActivityTypes["RELATIONSHIP_REMOVED"] = "RELATIONSHIP_REMOVED";
|
|
15
|
+
ActivityTypes["RELATIONSHIP_CHANGED"] = "RELATIONSHIP_CHANGED";
|
|
16
|
+
ActivityTypes["POTENTIAL_MATCHES_FOUND"] = "POTENTIAL_MATCHES_FOUND";
|
|
17
|
+
ActivityTypes["NOT_MATCHES_SET"] = "NOT_MATCHES_SET";
|
|
18
|
+
ActivityTypes["NOT_MATCHES_RESET"] = "NOT_MATCHES_RESET";
|
|
19
|
+
ActivityTypes["PERIODIC_TASK_SCHEDULED"] = "PERIODIC_TASK_SCHEDULED";
|
|
20
|
+
ActivityTypes["ENTITIES_MERGED_MANUALLY"] = "ENTITIES_MERGED_MANUALLY";
|
|
21
|
+
ActivityTypes["POTENTIAL_MATCHES_REMOVED"] = "POTENTIAL_MATCHES_REMOVED";
|
|
22
|
+
ActivityTypes["ENTITIES_MERGED_ON_THE_FLY"] = "ENTITIES_MERGED_ON_THE_FLY";
|
|
23
|
+
ActivityTypes["USER_LOGIN"] = "USER_LOGIN";
|
|
24
|
+
ActivityTypes["USER_LOGOUT"] = "USER_LOGOUT";
|
|
25
|
+
ActivityTypes["USER_SEARCH"] = "USER_SEARCH";
|
|
26
|
+
ActivityTypes["USER_PROFILE_VIEW"] = "USER_PROFILE_VIEW";
|
|
27
|
+
ActivityTypes["COMMENT_ADDED"] = "COMMENT_ADDED";
|
|
28
|
+
ActivityTypes["COMMENT_UPDATED"] = "COMMENT_UPDATED";
|
|
29
|
+
ActivityTypes["COMMENT_DELETED"] = "COMMENT_DELETED";
|
|
30
|
+
ActivityTypes["GROUP_CREATED"] = "GROUP_CREATED";
|
|
31
|
+
ActivityTypes["GROUP_REMOVED"] = "GROUP_REMOVED";
|
|
32
|
+
ActivityTypes["GROUP_CHANGED"] = "GROUP_CHANGED";
|
|
33
|
+
})(ActivityTypes = exports.ActivityTypes || (exports.ActivityTypes = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DateRangeTypes = void 0;
|
|
4
|
+
var DateRangeTypes;
|
|
5
|
+
(function (DateRangeTypes) {
|
|
6
|
+
DateRangeTypes["WITHIN"] = "within";
|
|
7
|
+
DateRangeTypes["AGO"] = "ago";
|
|
8
|
+
DateRangeTypes["BETWEEN"] = "between";
|
|
9
|
+
})(DateRangeTypes = exports.DateRangeTypes || (exports.DateRangeTypes = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeltaTypes = void 0;
|
|
4
|
+
var DeltaTypes;
|
|
5
|
+
(function (DeltaTypes) {
|
|
6
|
+
DeltaTypes["ATTRIBUTE_CHANGED"] = "edited";
|
|
7
|
+
DeltaTypes["ATTRIBUTE_ADDED"] = "added";
|
|
8
|
+
DeltaTypes["ATTRIBUTE_REMOVED"] = "deleted";
|
|
9
|
+
})(DeltaTypes = exports.DeltaTypes || (exports.DeltaTypes = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DateRangeTypes = exports.DeltaTypes = exports.ActivityTypes = void 0;
|
|
4
|
+
var ActivityTypes_1 = require("./ActivityTypes");
|
|
5
|
+
Object.defineProperty(exports, "ActivityTypes", { enumerable: true, get: function () { return ActivityTypes_1.ActivityTypes; } });
|
|
6
|
+
var DeltaTypes_1 = require("./DeltaTypes");
|
|
7
|
+
Object.defineProperty(exports, "DeltaTypes", { enumerable: true, get: function () { return DeltaTypes_1.DeltaTypes; } });
|
|
8
|
+
var DateRangeTypes_1 = require("./DateRangeTypes");
|
|
9
|
+
Object.defineProperty(exports, "DateRangeTypes", { enumerable: true, get: function () { return DateRangeTypes_1.DateRangeTypes; } });
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.getActivityLabel = exports.stringifyDeltaValue = exports.splitActivityByType = exports.isValidActivity = exports.isValidActivityType = exports.getActivityType = void 0;
|
|
18
|
+
var ramda_1 = require("ramda");
|
|
19
|
+
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
20
|
+
var types_1 = require("../types");
|
|
21
|
+
var getItemDataType = ramda_1.path(['data', 'type']);
|
|
22
|
+
var getActivityType = function (activity) {
|
|
23
|
+
var items = activity.items, label = activity.label;
|
|
24
|
+
var firstItem = (items || [])[0];
|
|
25
|
+
return getItemDataType(firstItem) || label;
|
|
26
|
+
};
|
|
27
|
+
exports.getActivityType = getActivityType;
|
|
28
|
+
var isValidActivityType = function (type) { return ramda_1.pipe(ramda_1.values, ramda_1.includes(type))(types_1.ActivityTypes); };
|
|
29
|
+
exports.isValidActivityType = isValidActivityType;
|
|
30
|
+
exports.isValidActivity = ramda_1.pipe(exports.getActivityType, exports.isValidActivityType);
|
|
31
|
+
var splitActivityByType = function (activity) {
|
|
32
|
+
return ramda_1.pipe(ramda_1.propOr([], 'items'), ramda_1.groupBy(getItemDataType), ramda_1.values, ramda_1.ifElse(function (_a) {
|
|
33
|
+
var length = _a.length;
|
|
34
|
+
return length > 1;
|
|
35
|
+
}, ramda_1.map(function (items) { return (__assign(__assign({}, activity), { items: items, itemsTotal: items.length })); }), function () { return [activity]; }))(activity);
|
|
36
|
+
};
|
|
37
|
+
exports.splitActivityByType = splitActivityByType;
|
|
38
|
+
var stringifyDeltaValue = function (delta) {
|
|
39
|
+
if (ramda_1.isNil(delta)) {
|
|
40
|
+
return '';
|
|
41
|
+
}
|
|
42
|
+
else if (typeof delta === 'string') {
|
|
43
|
+
return delta;
|
|
44
|
+
}
|
|
45
|
+
else if (Array.isArray(delta)) {
|
|
46
|
+
return delta.map(exports.stringifyDeltaValue).join(', ');
|
|
47
|
+
}
|
|
48
|
+
else if (ramda_1.is(Object, delta)) {
|
|
49
|
+
return 'value' in delta ? exports.stringifyDeltaValue(delta.value) : exports.stringifyDeltaValue(Object.values(delta));
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
return delta.toString();
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
exports.stringifyDeltaValue = stringifyDeltaValue;
|
|
56
|
+
var getActivityLabel = function (type) {
|
|
57
|
+
var _a;
|
|
58
|
+
var labels = (_a = {},
|
|
59
|
+
_a[types_1.ActivityTypes.COMMENT_ADDED] = ui_i18n_1.default.text('Comment added'),
|
|
60
|
+
_a[types_1.ActivityTypes.COMMENT_DELETED] = ui_i18n_1.default.text('Comment deleted'),
|
|
61
|
+
_a[types_1.ActivityTypes.COMMENT_UPDATED] = ui_i18n_1.default.text('Comment updated'),
|
|
62
|
+
_a[types_1.ActivityTypes.ENTITIES_MERGED] = ui_i18n_1.default.text('Profile merged'),
|
|
63
|
+
_a[types_1.ActivityTypes.ENTITIES_MERGED_MANUALLY] = ui_i18n_1.default.text('Profile merged manually'),
|
|
64
|
+
_a[types_1.ActivityTypes.ENTITIES_MERGED_ON_THE_FLY] = ui_i18n_1.default.text('Profile merged on the fly'),
|
|
65
|
+
_a[types_1.ActivityTypes.ENTITIES_SPLITTED] = ui_i18n_1.default.text('Profile un-merged'),
|
|
66
|
+
_a[types_1.ActivityTypes.ENTITY_CHANGED] = ui_i18n_1.default.text('Profile updated'),
|
|
67
|
+
_a[types_1.ActivityTypes.ENTITY_CREATED] = ui_i18n_1.default.text('Profile created'),
|
|
68
|
+
_a[types_1.ActivityTypes.ENTITY_LOST_MERGE] = ui_i18n_1.default.text('Profile lost merge'),
|
|
69
|
+
_a[types_1.ActivityTypes.ENTITY_REMOVED] = ui_i18n_1.default.text('Profile removed'),
|
|
70
|
+
_a[types_1.ActivityTypes.GROUP_CHANGED] = ui_i18n_1.default.text('Group updated'),
|
|
71
|
+
_a[types_1.ActivityTypes.GROUP_CREATED] = ui_i18n_1.default.text('Group created'),
|
|
72
|
+
_a[types_1.ActivityTypes.GROUP_REMOVED] = ui_i18n_1.default.text('Group removed'),
|
|
73
|
+
_a[types_1.ActivityTypes.MODEL_UPDATED] = ui_i18n_1.default.text('Model was updated'),
|
|
74
|
+
_a[types_1.ActivityTypes.NOT_MATCHES_RESET] = ui_i18n_1.default.text('Not matches reset'),
|
|
75
|
+
_a[types_1.ActivityTypes.NOT_MATCHES_SET] = ui_i18n_1.default.text('Not matches set'),
|
|
76
|
+
_a[types_1.ActivityTypes.PERIODIC_TASK_SCHEDULED] = ui_i18n_1.default.text('Periodic task was scheduled'),
|
|
77
|
+
_a[types_1.ActivityTypes.POTENTIAL_MATCHES_FOUND] = ui_i18n_1.default.text('Potential matches found'),
|
|
78
|
+
_a[types_1.ActivityTypes.POTENTIAL_MATCHES_REMOVED] = ui_i18n_1.default.text('Potential matches removed'),
|
|
79
|
+
_a[types_1.ActivityTypes.RELATIONSHIP_CHANGED] = ui_i18n_1.default.text('Relationship updated'),
|
|
80
|
+
_a[types_1.ActivityTypes.RELATIONSHIP_CREATED] = ui_i18n_1.default.text('Relationship created'),
|
|
81
|
+
_a[types_1.ActivityTypes.RELATIONSHIP_REMOVED] = ui_i18n_1.default.text('Relationship removed'),
|
|
82
|
+
_a[types_1.ActivityTypes.USER_LOGIN] = ui_i18n_1.default.text('Logged in'),
|
|
83
|
+
_a[types_1.ActivityTypes.USER_LOGOUT] = ui_i18n_1.default.text('Logged out'),
|
|
84
|
+
_a[types_1.ActivityTypes.USER_PROFILE_VIEW] = ui_i18n_1.default.text('Profile viewed'),
|
|
85
|
+
_a[types_1.ActivityTypes.USER_SEARCH] = ui_i18n_1.default.text('Searched'),
|
|
86
|
+
_a);
|
|
87
|
+
return labels[type] || '';
|
|
88
|
+
};
|
|
89
|
+
exports.getActivityLabel = getActivityLabel;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.isDateRangeValid = exports.buildActivitiesFilterString = void 0;
|
|
7
|
+
var ramda_1 = require("ramda");
|
|
8
|
+
var moment_1 = __importDefault(require("moment"));
|
|
9
|
+
var types_1 = require("../types");
|
|
10
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
11
|
+
var wrapInBrackets = function (str) { return "(" + str + ")"; };
|
|
12
|
+
var multiValueFilter = function (filterClauseFn) { return function (values) { return values.map(filterClauseFn).join(' or '); }; };
|
|
13
|
+
var buildUserFilterClause = function (user) { return "equals(user, '" + mdm_sdk_1.escapeQueryValue(user) + "')"; };
|
|
14
|
+
var buildActivityFilterClause = function (activityType) {
|
|
15
|
+
if (activityType.startsWith('USER_') || activityType.startsWith('COMMENT_')) {
|
|
16
|
+
return "startsWith(label, '" + activityType + "')";
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
return "equals(items.data.type, " + activityType + ")";
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
var buildSourceFilterClause = function (source) {
|
|
23
|
+
return "equals(items.delta.sources, '" + source.abbreviation + "')";
|
|
24
|
+
};
|
|
25
|
+
var buildAttributeFilterClause = function (attribute) {
|
|
26
|
+
return "equals(items.delta.attributeType, '" + attribute.value + "')";
|
|
27
|
+
};
|
|
28
|
+
var durationToTimestamp = function (period) {
|
|
29
|
+
var amount = period[0], unit = period[1];
|
|
30
|
+
return moment_1.default().subtract(amount, unit).valueOf();
|
|
31
|
+
};
|
|
32
|
+
var buildDateRangeFilterClause = function (_a) {
|
|
33
|
+
var type = _a.type, period = _a.period;
|
|
34
|
+
switch (type) {
|
|
35
|
+
case types_1.DateRangeTypes.WITHIN: {
|
|
36
|
+
return "gte(timestamp, " + durationToTimestamp(period) + ")";
|
|
37
|
+
}
|
|
38
|
+
case types_1.DateRangeTypes.AGO: {
|
|
39
|
+
return "lte(timestamp, " + durationToTimestamp(period) + ")";
|
|
40
|
+
}
|
|
41
|
+
case types_1.DateRangeTypes.BETWEEN: {
|
|
42
|
+
var start = period[0], end = period[1];
|
|
43
|
+
return "range(timestamp, " + start.valueOf() + ", " + moment_1.default(end).endOf('date').valueOf() + ")";
|
|
44
|
+
}
|
|
45
|
+
default: {
|
|
46
|
+
return '';
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
var buildEntityUriFilterClause = function (entityUri) {
|
|
51
|
+
var filters = [
|
|
52
|
+
"equals(items.objectUri, '" + entityUri + "')",
|
|
53
|
+
"equals(items.startObjectUri, '" + entityUri + "')",
|
|
54
|
+
"equals(items.endObjectUri, '" + entityUri + "')"
|
|
55
|
+
];
|
|
56
|
+
return filters.join(' or ');
|
|
57
|
+
};
|
|
58
|
+
var getFilterClauseBuilder = ramda_1.cond([
|
|
59
|
+
[ramda_1.equals('users'), function () { return multiValueFilter(buildUserFilterClause); }],
|
|
60
|
+
[ramda_1.equals('activities'), function () { return multiValueFilter(buildActivityFilterClause); }],
|
|
61
|
+
[ramda_1.equals('sources'), function () { return multiValueFilter(buildSourceFilterClause); }],
|
|
62
|
+
[ramda_1.equals('attributes'), function () { return multiValueFilter(buildAttributeFilterClause); }],
|
|
63
|
+
[ramda_1.equals('dateRange'), function () { return buildDateRangeFilterClause; }],
|
|
64
|
+
[ramda_1.equals('entityUri'), function () { return buildEntityUriFilterClause; }]
|
|
65
|
+
]);
|
|
66
|
+
exports.buildActivitiesFilterString = ramda_1.pipe(ramda_1.defaultTo({}), ramda_1.reject(mdm_sdk_1.isEmptyValue), ramda_1.toPairs, ramda_1.map(function (_a) {
|
|
67
|
+
var key = _a[0], value = _a[1];
|
|
68
|
+
return getFilterClauseBuilder(key)(value);
|
|
69
|
+
}), ramda_1.reject(mdm_sdk_1.isEmptyValue), ramda_1.map(wrapInBrackets), ramda_1.join(' and '));
|
|
70
|
+
var isDateRangeValid = function (value) {
|
|
71
|
+
if (value.type === types_1.DateRangeTypes.AGO || value.type === types_1.DateRangeTypes.WITHIN) {
|
|
72
|
+
var _a = value.period, amount = _a[0], unit = _a[1];
|
|
73
|
+
return ramda_1.type(amount) === 'Number' && ramda_1.type(unit) === 'String' && amount > 0;
|
|
74
|
+
}
|
|
75
|
+
else if (value.type === types_1.DateRangeTypes.BETWEEN) {
|
|
76
|
+
var _b = value.period, startDate = _b[0], endDate = _b[1];
|
|
77
|
+
return startDate instanceof Date && endDate instanceof Date;
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
exports.isDateRangeValid = isDateRangeValid;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
var react_1 = __importDefault(require("react"));
|
|
29
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
30
|
+
var AttributesView_1 = __importDefault(require("../readMode/AttributesView"));
|
|
31
|
+
var AttributesView_2 = __importDefault(require("../editMode/AttributesView"));
|
|
32
|
+
var AttributesView = function (_a) {
|
|
33
|
+
var _b = _a.mode, mode = _b === void 0 ? mdm_sdk_1.Mode.Viewing : _b, attributesCount = _a.attributesCount, restProps = __rest(_a, ["mode", "attributesCount"]);
|
|
34
|
+
return mdm_sdk_1.isViewMode(mode) ? (react_1.default.createElement(AttributesView_1.default, __assign({ attributesCount: attributesCount }, restProps))) : (react_1.default.createElement(AttributesView_2.default, __assign({ mode: mode }, restProps)));
|
|
35
|
+
};
|
|
36
|
+
exports.default = AttributesView;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AttributesView = void 0;
|
|
7
|
+
var react_redux_1 = require("react-redux");
|
|
8
|
+
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
9
|
+
var AttributesView_1 = __importDefault(require("./AttributesView"));
|
|
10
|
+
exports.AttributesView = AttributesView_1.default;
|
|
11
|
+
var mapStateToProps = function (state, ownProps) { return ({
|
|
12
|
+
entity: ownProps.entity || mdm_module_1.default.selectors.getEntity(state),
|
|
13
|
+
mode: ownProps.mode || mdm_module_1.default.selectors.getMode(state)
|
|
14
|
+
}); };
|
|
15
|
+
exports.default = react_redux_1.connect(mapStateToProps)(AttributesView_1.default);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var react_1 = __importDefault(require("react"));
|
|
7
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
8
|
+
var styles_1 = require("./styles");
|
|
9
|
+
var BranchDecorator = function (_a) {
|
|
10
|
+
var _b;
|
|
11
|
+
var className = _a.className, children = _a.children, _c = _a.plain, plain = _c === void 0 ? false : _c, _d = _a.enabled, enabled = _d === void 0 ? false : _d;
|
|
12
|
+
var styles = styles_1.useStyles();
|
|
13
|
+
return enabled ? (react_1.default.createElement("div", { className: classnames_1.default(styles.decorator, (_b = {}, _b[styles.plain] = plain, _b), className) },
|
|
14
|
+
react_1.default.createElement("div", { className: styles.wrapper }, children))) : (react_1.default.createElement(react_1.default.Fragment, null, children));
|
|
15
|
+
};
|
|
16
|
+
exports.default = BranchDecorator;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useStyles = void 0;
|
|
4
|
+
var styles_1 = require("@material-ui/core/styles");
|
|
5
|
+
var lineStyle = '1px solid #AFD4E9';
|
|
6
|
+
var horizontalLineWidth = 5;
|
|
7
|
+
var verticalNodeGap = 14;
|
|
8
|
+
var arrowWidth = 16;
|
|
9
|
+
exports.useStyles = styles_1.makeStyles({
|
|
10
|
+
decorator: {
|
|
11
|
+
marginLeft: arrowWidth / 2,
|
|
12
|
+
borderLeft: lineStyle,
|
|
13
|
+
'&:last-child': {
|
|
14
|
+
borderLeft: 'none',
|
|
15
|
+
'&:before': {
|
|
16
|
+
borderLeft: lineStyle
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
'&:before': {
|
|
20
|
+
top: 0,
|
|
21
|
+
height: verticalNodeGap,
|
|
22
|
+
width: horizontalLineWidth,
|
|
23
|
+
borderBottom: lineStyle,
|
|
24
|
+
content: '""',
|
|
25
|
+
display: 'block',
|
|
26
|
+
left: '0'
|
|
27
|
+
},
|
|
28
|
+
'&$plain': {
|
|
29
|
+
'&:before': {
|
|
30
|
+
width: 0
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
plain: {},
|
|
35
|
+
wrapper: {
|
|
36
|
+
marginLeft: horizontalLineWidth + 11,
|
|
37
|
+
marginTop: -8
|
|
38
|
+
}
|
|
39
|
+
});
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
33
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
34
|
+
};
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
var react_1 = __importStar(require("react"));
|
|
37
|
+
var react_redux_1 = require("react-redux");
|
|
38
|
+
var react_resize_detector_1 = __importDefault(require("react-resize-detector"));
|
|
39
|
+
var Typography_1 = __importDefault(require("@material-ui/core/Typography"));
|
|
40
|
+
var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
|
|
41
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
42
|
+
var contexts_1 = require("../../../contexts");
|
|
43
|
+
var ImageAttributesGallery_1 = __importDefault(require("../../ImageAttributesGallery/ImageAttributesGallery"));
|
|
44
|
+
var imageAttributes_1 = require("../helpers/imageAttributes");
|
|
45
|
+
var constants_1 = require("./constants");
|
|
46
|
+
var styles_1 = require("./styles");
|
|
47
|
+
var ImageAttributesLine = function (_a) {
|
|
48
|
+
var attributeType = _a.attributeType, _b = _a.attributeValues, attributeValues = _b === void 0 ? [] : _b, renderImage = _a.renderImage, _c = _a.overlay, overlay = _c === void 0 ? false : _c, _d = _a.countFixedItems, countFixedItems = _d === void 0 ? 0 : _d, children = _a.children, onUpload = _a.onUpload, onDeleteAttribute = _a.onDeleteAttribute, _e = _a.imageSize, imageSize = _e === void 0 ? constants_1.DEFAULT_IMAGE_SIZE : _e;
|
|
49
|
+
var entity = react_redux_1.useSelector(mdm_module_1.default.selectors.getEntity) || {};
|
|
50
|
+
var isViewMode = react_redux_1.useSelector(mdm_module_1.default.selectors.getIsViewMode);
|
|
51
|
+
var dispatch = react_redux_1.useDispatch();
|
|
52
|
+
var styles = styles_1.useStyles(imageSize);
|
|
53
|
+
var lastWidth = react_1.useRef();
|
|
54
|
+
var _f = react_1.useState(0), maxItems = _f[0], setMaxItems = _f[1];
|
|
55
|
+
var _g = react_1.useState(0), hiddenItemsLength = _g[0], setHiddenItemsLength = _g[1];
|
|
56
|
+
var isBlockImageGalleryDialog = react_1.useContext(contexts_1.BlockImageGalleryDialogContext);
|
|
57
|
+
var _h = react_1.useState(false), isOpenDialog = _h[0], setIsOpenDialog = _h[1];
|
|
58
|
+
var _j = react_1.useState(), currentAttributeValueUri = _j[0], setCurrentAttributeValueUri = _j[1];
|
|
59
|
+
var adjustMaxItemsToScreenWidth = react_1.useCallback(function (width) {
|
|
60
|
+
var imageMargin = imageSize.imageMargin, imageWidth = imageSize.imageWidth;
|
|
61
|
+
var maxItemsPerScreen = Math.floor((width + imageMargin) / (imageWidth + imageMargin)) - countFixedItems;
|
|
62
|
+
var hasHiddenImage = width + imageMargin - (maxItemsPerScreen + countFixedItems) * (imageWidth + imageMargin) <
|
|
63
|
+
constants_1.IMAGE_MIN_VISIBLE_WIDTH;
|
|
64
|
+
setMaxItems(maxItemsPerScreen);
|
|
65
|
+
if (attributeValues.length > maxItemsPerScreen) {
|
|
66
|
+
setHiddenItemsLength(attributeValues.length - maxItemsPerScreen + (hasHiddenImage ? 1 : 0));
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
setHiddenItemsLength(0);
|
|
70
|
+
}
|
|
71
|
+
}, [attributeValues.length, countFixedItems, imageSize]);
|
|
72
|
+
var handleResize = react_1.useCallback(function (width) {
|
|
73
|
+
adjustMaxItemsToScreenWidth(width);
|
|
74
|
+
lastWidth.current = width;
|
|
75
|
+
}, [adjustMaxItemsToScreenWidth]);
|
|
76
|
+
react_1.useEffect(function () {
|
|
77
|
+
if (lastWidth.current) {
|
|
78
|
+
adjustMaxItemsToScreenWidth(lastWidth.current);
|
|
79
|
+
}
|
|
80
|
+
}, [attributeValues.length, adjustMaxItemsToScreenWidth]);
|
|
81
|
+
var handleOpenImageGalleryDialog = react_1.useCallback(function (uri) {
|
|
82
|
+
if (!isBlockImageGalleryDialog) {
|
|
83
|
+
setCurrentAttributeValueUri(uri);
|
|
84
|
+
setIsOpenDialog(true);
|
|
85
|
+
}
|
|
86
|
+
}, [isBlockImageGalleryDialog]);
|
|
87
|
+
var handleCloseImageGalleryDialog = react_1.useCallback(function () {
|
|
88
|
+
setIsOpenDialog(false);
|
|
89
|
+
}, []);
|
|
90
|
+
var handleDownload = function (urls) { return imageAttributes_1.downloadImagesByURLs(urls); };
|
|
91
|
+
var handleShareLink = function (url) { return navigator.clipboard.writeText(url); };
|
|
92
|
+
var handleSetAsDefault = react_1.useCallback(function (attributeValue) {
|
|
93
|
+
if (isViewMode) {
|
|
94
|
+
mdm_sdk_1.insertDefaultImageByAttrUri(entity.uri, attributeValue.uri).then(function (_a) {
|
|
95
|
+
var status = _a.status;
|
|
96
|
+
if (status === 'success') {
|
|
97
|
+
dispatch(mdm_module_1.profile.entity.actions.setDefaultProfilePic(attributeValue));
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
dispatch(mdm_module_1.profile.modifiedEntities.actions.setDefaultProfilePic({
|
|
103
|
+
entityUri: entity.uri,
|
|
104
|
+
value: attributeValue
|
|
105
|
+
}));
|
|
106
|
+
}
|
|
107
|
+
}, [isViewMode, entity.uri, dispatch]);
|
|
108
|
+
var renderImageProps = __assign({ onOpenImageGalleryDialog: handleOpenImageGalleryDialog }, (overlay && {
|
|
109
|
+
onDownload: handleDownload,
|
|
110
|
+
onShareLink: handleShareLink,
|
|
111
|
+
onSetAsDefault: handleSetAsDefault
|
|
112
|
+
}));
|
|
113
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
114
|
+
react_1.default.createElement(react_resize_detector_1.default, { handleWidth: true, onResize: handleResize }),
|
|
115
|
+
react_1.default.createElement(ImageAttributesGallery_1.default, { attributeValues: attributeValues, open: isOpenDialog, onClose: handleCloseImageGalleryDialog, setCurrentAttributeValueUri: setCurrentAttributeValueUri, currentAttributeValueUri: currentAttributeValueUri, attributeType: attributeType, onDownload: handleDownload, onShareLink: handleShareLink, onSetAsDefault: handleSetAsDefault, onUpload: onUpload, onDeleteAttribute: onDeleteAttribute }),
|
|
116
|
+
react_1.default.createElement("div", { className: styles.imageBox },
|
|
117
|
+
children,
|
|
118
|
+
attributeValues.slice(0, maxItems).map(renderImage(renderImageProps)),
|
|
119
|
+
hiddenItemsLength > 0 && (react_1.default.createElement("div", { className: styles.moreButtonContainer },
|
|
120
|
+
react_1.default.createElement("div", { className: styles.moreButton, onClick: function () { return handleOpenImageGalleryDialog(); } },
|
|
121
|
+
react_1.default.createElement(Typography_1.default, { className: styles.number }, "+" + hiddenItemsLength)))))));
|
|
122
|
+
};
|
|
123
|
+
exports.default = ImageAttributesLine;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEFAULT_IMAGE_SIZE = exports.IMAGE_MIN_VISIBLE_WIDTH = exports.IMAGE_MARGIN = exports.IMAGE_HEIGHT = exports.IMAGE_WIDTH = void 0;
|
|
4
|
+
var Image_1 = require("../../Image/Image");
|
|
5
|
+
exports.IMAGE_WIDTH = Image_1.ImageSizesStyles.SMALL.imageWidth;
|
|
6
|
+
exports.IMAGE_HEIGHT = Image_1.ImageSizesStyles.SMALL.imageHeight;
|
|
7
|
+
exports.IMAGE_MARGIN = 4;
|
|
8
|
+
exports.IMAGE_MIN_VISIBLE_WIDTH = 8;
|
|
9
|
+
exports.DEFAULT_IMAGE_SIZE = { imageMargin: exports.IMAGE_MARGIN, imageWidth: exports.IMAGE_WIDTH, imageHeight: exports.IMAGE_HEIGHT };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var ImageAttributesLine_1 = require("./ImageAttributesLine");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(ImageAttributesLine_1).default; } });
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useStyles = void 0;
|
|
4
|
+
var styles_1 = require("@material-ui/core/styles");
|
|
5
|
+
var core_1 = require("@material-ui/core");
|
|
6
|
+
exports.useStyles = styles_1.makeStyles(function (theme) { return ({
|
|
7
|
+
imageBox: {
|
|
8
|
+
position: 'relative',
|
|
9
|
+
display: 'flex',
|
|
10
|
+
width: '100%',
|
|
11
|
+
flexGrow: 1,
|
|
12
|
+
flexShrink: 0,
|
|
13
|
+
flexWrap: 'nowrap',
|
|
14
|
+
marginTop: '2px',
|
|
15
|
+
overflow: 'hidden'
|
|
16
|
+
},
|
|
17
|
+
moreButtonContainer: function (_a) {
|
|
18
|
+
var imageWidth = _a.imageWidth, imageHeight = _a.imageHeight;
|
|
19
|
+
return {
|
|
20
|
+
backgroundColor: 'white',
|
|
21
|
+
width: imageWidth,
|
|
22
|
+
height: imageHeight,
|
|
23
|
+
position: 'absolute',
|
|
24
|
+
right: 0,
|
|
25
|
+
cursor: 'pointer'
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
moreButton: function (_a) {
|
|
29
|
+
var imageWidth = _a.imageWidth, imageHeight = _a.imageHeight;
|
|
30
|
+
return {
|
|
31
|
+
display: 'flex',
|
|
32
|
+
justifyContent: 'center',
|
|
33
|
+
alignItems: 'center',
|
|
34
|
+
width: imageWidth,
|
|
35
|
+
height: imageHeight,
|
|
36
|
+
backgroundColor: core_1.fade(theme.palette.primary.main, 0.06)
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
number: {
|
|
40
|
+
color: theme.palette.primary.main,
|
|
41
|
+
fontSize: '24px',
|
|
42
|
+
lineHeight: '42px',
|
|
43
|
+
letterSpacing: 0,
|
|
44
|
+
textAlign: 'center',
|
|
45
|
+
overflow: 'hidden',
|
|
46
|
+
whiteSpace: 'nowrap',
|
|
47
|
+
textOverflow: 'ellipsis'
|
|
48
|
+
}
|
|
49
|
+
}); });
|