@reltio/components 1.4.699 → 1.4.703
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,47 @@
|
|
|
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
|
+
exports.useStyles = styles_1.makeStyles(function (theme) { return ({
|
|
6
|
+
root: {
|
|
7
|
+
display: 'flex',
|
|
8
|
+
alignContent: 'center',
|
|
9
|
+
flexDirection: 'column'
|
|
10
|
+
},
|
|
11
|
+
main: {
|
|
12
|
+
position: 'relative',
|
|
13
|
+
padding: '0 86px',
|
|
14
|
+
marginTop: 'auto'
|
|
15
|
+
},
|
|
16
|
+
mainImageContainer: {
|
|
17
|
+
display: 'flex',
|
|
18
|
+
alignContent: 'center',
|
|
19
|
+
height: '100%',
|
|
20
|
+
width: '100%'
|
|
21
|
+
},
|
|
22
|
+
mainImage: {
|
|
23
|
+
maxWidth: 'calc(100vw - 512px)',
|
|
24
|
+
maxHeight: 'calc(100vh - 192px)',
|
|
25
|
+
margin: '0 auto',
|
|
26
|
+
userSelect: 'none'
|
|
27
|
+
},
|
|
28
|
+
arrowButton: {
|
|
29
|
+
backgroundColor: theme.palette.divider,
|
|
30
|
+
color: 'white',
|
|
31
|
+
'&:hover': {
|
|
32
|
+
backgroundColor: theme.palette.divider
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
arrowButtonPrev: {
|
|
36
|
+
position: 'absolute',
|
|
37
|
+
top: '50%',
|
|
38
|
+
left: '16px',
|
|
39
|
+
transform: 'translateY(-50%)'
|
|
40
|
+
},
|
|
41
|
+
arrowButtonNext: {
|
|
42
|
+
position: 'absolute',
|
|
43
|
+
top: '50%',
|
|
44
|
+
right: '16px',
|
|
45
|
+
transform: 'translateY(-50%)'
|
|
46
|
+
}
|
|
47
|
+
}); });
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.ImageDetailsViewSidebar = void 0;
|
|
26
|
+
var react_1 = __importStar(require("react"));
|
|
27
|
+
var react_redux_1 = require("react-redux");
|
|
28
|
+
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
29
|
+
var Box_1 = __importDefault(require("@material-ui/core/Box"));
|
|
30
|
+
var Checkbox_1 = __importDefault(require("@material-ui/core/Checkbox"));
|
|
31
|
+
var FormControlLabel_1 = __importDefault(require("@material-ui/core/FormControlLabel"));
|
|
32
|
+
var Typography_1 = __importDefault(require("@material-ui/core/Typography"));
|
|
33
|
+
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
34
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
35
|
+
var MetaInfo_1 = require("../MetaInfo/MetaInfo");
|
|
36
|
+
var styles_1 = require("./styles");
|
|
37
|
+
var ImageDetailsViewSidebar = function (_a) {
|
|
38
|
+
var className = _a.className, attributeValue = _a.attributeValue, handleSetAsDefault = _a.handleSetAsDefault, attributeType = _a.attributeType;
|
|
39
|
+
var styles = styles_1.useStyles();
|
|
40
|
+
var entity = react_redux_1.useSelector(mdm_module_1.default.selectors.getEntity) || {};
|
|
41
|
+
var modifiedEntity = react_redux_1.useSelector(function (state) { return mdm_module_1.default.selectors.getModifiedEntity(state, entity === null || entity === void 0 ? void 0 : entity.uri); }) || {};
|
|
42
|
+
var isViewMode = react_redux_1.useSelector(mdm_module_1.default.selectors.getIsViewMode);
|
|
43
|
+
var entityToShow = isViewMode ? entity : modifiedEntity;
|
|
44
|
+
var imageAttributeConfig = react_redux_1.useSelector(mdm_module_1.default.selectors.getImageAttributesFieldsOrder) || {};
|
|
45
|
+
var imageAttributeFieldsOrder = imageAttributeConfig[entity === null || entity === void 0 ? void 0 : entity.type] || (imageAttributeConfig === null || imageAttributeConfig === void 0 ? void 0 : imageAttributeConfig.default) || {};
|
|
46
|
+
var _b = react_1.useState(false), isDefault = _b[0], setIsDefault = _b[1];
|
|
47
|
+
react_1.useEffect(function () {
|
|
48
|
+
setIsDefault((entityToShow === null || entityToShow === void 0 ? void 0 : entityToShow.defaultProfilePic) === (attributeValue === null || attributeValue === void 0 ? void 0 : attributeValue.uri));
|
|
49
|
+
}, [attributeValue === null || attributeValue === void 0 ? void 0 : attributeValue.uri, entityToShow]);
|
|
50
|
+
var handleChange = react_1.useCallback(function () {
|
|
51
|
+
handleSetAsDefault(attributeValue.uri);
|
|
52
|
+
}, [attributeValue === null || attributeValue === void 0 ? void 0 : attributeValue.uri]);
|
|
53
|
+
return (react_1.default.createElement(Box_1.default, { className: classnames_1.default(styles.root, className) },
|
|
54
|
+
react_1.default.createElement(Box_1.default, { className: styles.header },
|
|
55
|
+
react_1.default.createElement(Typography_1.default, { className: styles.headerTitle }, ui_i18n_1.default.text('Details'))),
|
|
56
|
+
react_1.default.createElement(Box_1.default, { className: styles.bodyWrapper },
|
|
57
|
+
react_1.default.createElement(Box_1.default, { className: styles.body },
|
|
58
|
+
react_1.default.createElement(FormControlLabel_1.default, { classes: { root: styles.formControlLabel, label: styles.checkboxLabel }, control: react_1.default.createElement(Checkbox_1.default, { className: styles.checkbox, checked: isDefault, onChange: handleChange, color: "default" }), label: ui_i18n_1.default.text('Set as default') }),
|
|
59
|
+
react_1.default.createElement(MetaInfo_1.MetaInfo, { attributeType: attributeType, imageAttributeFieldsOrder: imageAttributeFieldsOrder, attributeValue: attributeValue })))));
|
|
60
|
+
};
|
|
61
|
+
exports.ImageDetailsViewSidebar = ImageDetailsViewSidebar;
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
exports.useStyles = styles_1.makeStyles(function (theme) { return ({
|
|
6
|
+
root: {
|
|
7
|
+
position: 'relative',
|
|
8
|
+
backgroundColor: '#333',
|
|
9
|
+
maxHeight: 'calc(100vh - 64px)',
|
|
10
|
+
overflow: 'hidden'
|
|
11
|
+
},
|
|
12
|
+
header: {
|
|
13
|
+
display: 'flex',
|
|
14
|
+
alignItems: 'center',
|
|
15
|
+
height: '56px',
|
|
16
|
+
paddingLeft: '16px',
|
|
17
|
+
boxShadow: "0 1px 0 0 " + theme.palette.divider
|
|
18
|
+
},
|
|
19
|
+
headerTitle: {
|
|
20
|
+
color: 'rgba(255, 255, 255, 0.87)',
|
|
21
|
+
fontSize: '16px',
|
|
22
|
+
lineHeight: '19px'
|
|
23
|
+
},
|
|
24
|
+
bodyWrapper: {
|
|
25
|
+
maxHeight: 'calc(100% - 56px)',
|
|
26
|
+
overflow: 'auto'
|
|
27
|
+
},
|
|
28
|
+
body: {
|
|
29
|
+
padding: '16px'
|
|
30
|
+
},
|
|
31
|
+
formControlLabel: {
|
|
32
|
+
marginLeft: 0,
|
|
33
|
+
marginBottom: '27px'
|
|
34
|
+
},
|
|
35
|
+
checkboxLabel: {
|
|
36
|
+
marginLeft: '8px',
|
|
37
|
+
color: 'rgba(255,255,255,0.87)',
|
|
38
|
+
fontSize: '13px',
|
|
39
|
+
lineHeight: '15px'
|
|
40
|
+
},
|
|
41
|
+
checkbox: {
|
|
42
|
+
color: 'white',
|
|
43
|
+
padding: 0
|
|
44
|
+
}
|
|
45
|
+
}); });
|
|
@@ -0,0 +1,29 @@
|
|
|
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.MetaInfo = void 0;
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
8
|
+
var react_redux_1 = require("react-redux");
|
|
9
|
+
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
10
|
+
var styles_1 = require("@material-ui/core/styles");
|
|
11
|
+
var Box_1 = __importDefault(require("@material-ui/core/Box"));
|
|
12
|
+
var MetaInfoHeader_1 = require("../MetaInfoHeader/MetaInfoHeader");
|
|
13
|
+
var MetaInfoList_1 = require("../MetaInfoList/MetaInfoList");
|
|
14
|
+
var MetaInfoForm_1 = require("../MetaInfoForm/MetaInfoForm");
|
|
15
|
+
var useEditMetaInfo_1 = require("../hooks/useEditMetaInfo");
|
|
16
|
+
var theme_1 = require("../theme");
|
|
17
|
+
var darkMuiTheme = styles_1.createMuiTheme(theme_1.darkTheme);
|
|
18
|
+
var MetaInfo = function (_a) {
|
|
19
|
+
var imageAttributeFieldsOrder = _a.imageAttributeFieldsOrder, attributeType = _a.attributeType, initialAttributeValue = _a.attributeValue;
|
|
20
|
+
var _b = useEditMetaInfo_1.useEditMetaInfo({ attributeType: attributeType, initialAttributeValue: initialAttributeValue }), addAttributes = _b.addAttributes, changeAttribute = _b.changeAttribute, deleteAttribute = _b.deleteAttribute, clearLocalChanges = _b.clearLocalChanges, applyLocalChanges = _b.applyLocalChanges, attributeValue = _b.attributeValue, hasChanges = _b.hasChanges;
|
|
21
|
+
var mode = react_redux_1.useSelector(mdm_module_1.default.selectors.getMode);
|
|
22
|
+
var isEditableMode = react_redux_1.useSelector(mdm_module_1.default.selectors.getIsEditableMode);
|
|
23
|
+
return (react_1.default.createElement(styles_1.MuiThemeProvider, { theme: darkMuiTheme },
|
|
24
|
+
react_1.default.createElement(Box_1.default, null,
|
|
25
|
+
react_1.default.createElement(MetaInfoHeader_1.MetaInfoHeader, { attributeType: attributeType, uri: attributeValue === null || attributeValue === void 0 ? void 0 : attributeValue.uri, onAddAttributes: isEditableMode ? addAttributes : undefined }),
|
|
26
|
+
react_1.default.createElement(MetaInfoList_1.MetaInfoList, { attributeType: attributeType, attributeValue: attributeValue, imageAttributeFieldsOrder: imageAttributeFieldsOrder }),
|
|
27
|
+
isEditableMode && (react_1.default.createElement(MetaInfoForm_1.MetaInfoForm, { mode: mode, imageAttributeFieldsOrder: imageAttributeFieldsOrder, attributeType: attributeType, attributeValue: attributeValue, hasChanges: hasChanges, onDeleteAttribute: deleteAttribute, onChangeAttribute: changeAttribute, onAddAttributes: addAttributes, onCancel: clearLocalChanges, onApply: applyLocalChanges })))));
|
|
28
|
+
};
|
|
29
|
+
exports.MetaInfo = MetaInfo;
|
|
@@ -0,0 +1,32 @@
|
|
|
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.MetaInfoForm = void 0;
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
8
|
+
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
9
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
10
|
+
var Box_1 = __importDefault(require("@material-ui/core/Box"));
|
|
11
|
+
var Divider_1 = __importDefault(require("@material-ui/core/Divider"));
|
|
12
|
+
var Button_1 = __importDefault(require("@material-ui/core/Button"));
|
|
13
|
+
var AttributesPager_1 = __importDefault(require("../../attributes/editMode/AttributesPager"));
|
|
14
|
+
var helpers_1 = require("../helpers");
|
|
15
|
+
var styles_1 = require("./styles");
|
|
16
|
+
var MetaInfoForm = function (_a) {
|
|
17
|
+
var attributeType = _a.attributeType, imageAttributeFieldsOrder = _a.imageAttributeFieldsOrder, attributeValue = _a.attributeValue, hasChanges = _a.hasChanges, onDeleteAttribute = _a.onDeleteAttribute, onChangeAttribute = _a.onChangeAttribute, onAddAttributes = _a.onAddAttributes, onCancel = _a.onCancel, onApply = _a.onApply, mode = _a.mode;
|
|
18
|
+
var styles = styles_1.useStyles();
|
|
19
|
+
var notSystemAttributesList = helpers_1.getNotSystemAttributesList(attributeValue, attributeType, imageAttributeFieldsOrder);
|
|
20
|
+
var shouldShowActionButtons = notSystemAttributesList.length !== 0 || (notSystemAttributesList.length === 0 && hasChanges);
|
|
21
|
+
return (react_1.default.createElement(Box_1.default, { className: styles.root },
|
|
22
|
+
react_1.default.createElement(Box_1.default, { className: styles.form }, notSystemAttributesList.map(function (_a) {
|
|
23
|
+
var attrType = _a.attrType, values = _a.values;
|
|
24
|
+
return (react_1.default.createElement(AttributesPager_1.default, { key: attrType.uri, parentUri: attributeValue.uri, attributeType: attrType, values: values, showEmptyEditors: mdm_sdk_1.isTempUri(attributeValue.uri), mode: mode, drawLines: false, onDeleteAttribute: onDeleteAttribute, onChangeAttribute: onChangeAttribute, onAddAttributes: onAddAttributes }));
|
|
25
|
+
})),
|
|
26
|
+
shouldShowActionButtons && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
27
|
+
react_1.default.createElement(Divider_1.default, { className: styles.divider }),
|
|
28
|
+
react_1.default.createElement(Box_1.default, { className: styles.actions },
|
|
29
|
+
react_1.default.createElement(Button_1.default, { disabled: !hasChanges, onClick: onCancel, className: styles.cancelButton }, ui_i18n_1.default.text('Cancel')),
|
|
30
|
+
react_1.default.createElement(Button_1.default, { disabled: !hasChanges, onClick: onApply, color: "primary" }, ui_i18n_1.default.text('Apply')))))));
|
|
31
|
+
};
|
|
32
|
+
exports.MetaInfoForm = MetaInfoForm;
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
exports.useStyles = styles_1.makeStyles({
|
|
6
|
+
root: {},
|
|
7
|
+
form: {
|
|
8
|
+
padding: '10px 0'
|
|
9
|
+
},
|
|
10
|
+
divider: {
|
|
11
|
+
width: '100%',
|
|
12
|
+
height: '1px',
|
|
13
|
+
background: 'rgba(255,255,255,0.12)'
|
|
14
|
+
},
|
|
15
|
+
actions: {
|
|
16
|
+
display: 'flex',
|
|
17
|
+
justifyContent: 'flex-end',
|
|
18
|
+
marginTop: '4px'
|
|
19
|
+
},
|
|
20
|
+
cancelButton: {
|
|
21
|
+
color: 'white',
|
|
22
|
+
marginRight: '8px'
|
|
23
|
+
}
|
|
24
|
+
});
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.MetaInfoHeader = void 0;
|
|
26
|
+
var react_1 = __importStar(require("react"));
|
|
27
|
+
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
28
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
29
|
+
var Typography_1 = __importDefault(require("@material-ui/core/Typography"));
|
|
30
|
+
var Box_1 = __importDefault(require("@material-ui/core/Box"));
|
|
31
|
+
var Divider_1 = __importDefault(require("@material-ui/core/Divider"));
|
|
32
|
+
var MoreAttributesButton_1 = __importDefault(require("../../attributes/editMode/MoreAttributesButton"));
|
|
33
|
+
var helpers_1 = require("../helpers");
|
|
34
|
+
var styles_1 = require("./styles");
|
|
35
|
+
var MetaInfoHeader = function (_a) {
|
|
36
|
+
var _b;
|
|
37
|
+
var attributeType = _a.attributeType, onAddAttributes = _a.onAddAttributes, uri = _a.uri;
|
|
38
|
+
var styles = styles_1.useStyles();
|
|
39
|
+
var moreAttrTypes = helpers_1.getMoreAttrTypes(attributeType);
|
|
40
|
+
var canAdd = Boolean(onAddAttributes);
|
|
41
|
+
var handleApply = function (attrTypes) {
|
|
42
|
+
if (onAddAttributes) {
|
|
43
|
+
onAddAttributes(attrTypes.map(function (attributeType) { return ({ attributeType: attributeType, parentUri: uri }); }));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
return (react_1.default.createElement(Box_1.default, null,
|
|
47
|
+
react_1.default.createElement(Typography_1.default, { className: classnames_1.default(styles.title, (_b = {}, _b[styles.canAdd] = canAdd, _b)) }, ui_i18n_1.default.text('Meta info')),
|
|
48
|
+
canAdd && (react_1.default.createElement(react_1.Fragment, null,
|
|
49
|
+
react_1.default.createElement(MoreAttributesButton_1.default, { label: ui_i18n_1.default.text('Attributes'), data: moreAttrTypes, dense: false, onApply: handleApply }),
|
|
50
|
+
react_1.default.createElement(Divider_1.default, { className: styles.divider })))));
|
|
51
|
+
};
|
|
52
|
+
exports.MetaInfoHeader = MetaInfoHeader;
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
exports.useStyles = styles_1.makeStyles({
|
|
6
|
+
title: {
|
|
7
|
+
marginBottom: '10px',
|
|
8
|
+
color: 'white',
|
|
9
|
+
fontSize: '18px',
|
|
10
|
+
lineHeight: '21px',
|
|
11
|
+
'&$canAdd': {
|
|
12
|
+
marginBottom: '3px'
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
divider: {
|
|
16
|
+
width: '100%',
|
|
17
|
+
height: '1px',
|
|
18
|
+
background: 'rgba(255,255,255,0.12)'
|
|
19
|
+
},
|
|
20
|
+
canAdd: {}
|
|
21
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
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.MetaInfoItem = void 0;
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
8
|
+
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
9
|
+
var styles_1 = require("./styles");
|
|
10
|
+
var MetaInfoItem = function (_a) {
|
|
11
|
+
var title = _a.title, content = _a.content, isLink = _a.isLink, children = _a.children;
|
|
12
|
+
var styles = styles_1.useStyles();
|
|
13
|
+
return (react_1.default.createElement("div", { className: styles.root },
|
|
14
|
+
react_1.default.createElement("span", { className: styles.title }, title),
|
|
15
|
+
isLink ? (react_1.default.createElement("a", { className: styles.link, href: content }, ui_i18n_1.default.text('link'))) : (react_1.default.createElement("span", { className: styles.content }, content || children))));
|
|
16
|
+
};
|
|
17
|
+
exports.MetaInfoItem = MetaInfoItem;
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
exports.useStyles = styles_1.makeStyles(function (theme) { return ({
|
|
6
|
+
root: {
|
|
7
|
+
fontSize: '13px',
|
|
8
|
+
letterSpacing: 0,
|
|
9
|
+
lineHeight: '15px',
|
|
10
|
+
marginBottom: '11px'
|
|
11
|
+
},
|
|
12
|
+
title: {
|
|
13
|
+
color: 'rgba(255,255,255,0.54)',
|
|
14
|
+
marginRight: '12px',
|
|
15
|
+
float: 'left'
|
|
16
|
+
},
|
|
17
|
+
content: {
|
|
18
|
+
color: 'rgba(255,255,255,0.87)',
|
|
19
|
+
wordWrap: 'break-word'
|
|
20
|
+
},
|
|
21
|
+
link: {
|
|
22
|
+
color: theme.palette.primary.main,
|
|
23
|
+
textDecoration: 'none'
|
|
24
|
+
}
|
|
25
|
+
}); });
|
|
@@ -0,0 +1,32 @@
|
|
|
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.MetaInfoList = void 0;
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
8
|
+
var react_redux_1 = require("react-redux");
|
|
9
|
+
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
10
|
+
var Box_1 = __importDefault(require("@material-ui/core/Box"));
|
|
11
|
+
var AttributesPager_1 = __importDefault(require("../../attributes/readMode/AttributesPager"));
|
|
12
|
+
var MetaInfoItem_1 = require("./MetaInfoItem/MetaInfoItem");
|
|
13
|
+
var helpers_1 = require("../helpers");
|
|
14
|
+
var styles_1 = require("./styles");
|
|
15
|
+
var MetaInfoList = function (_a) {
|
|
16
|
+
var attributeValue = _a.attributeValue, attributeType = _a.attributeType, imageAttributeFieldsOrder = _a.imageAttributeFieldsOrder;
|
|
17
|
+
var styles = styles_1.useStyles();
|
|
18
|
+
var isViewMode = react_redux_1.useSelector(mdm_module_1.default.selectors.getIsViewMode);
|
|
19
|
+
var systemAttributesList = helpers_1.getSystemAttributesList(attributeValue, imageAttributeFieldsOrder);
|
|
20
|
+
var notSystemAttributesList = helpers_1.getNotSystemAttributesList(attributeValue, attributeType, imageAttributeFieldsOrder);
|
|
21
|
+
return (react_1.default.createElement(Box_1.default, { className: styles.root },
|
|
22
|
+
systemAttributesList.map(function (_a) {
|
|
23
|
+
var title = _a.title, value = _a.value, isLink = _a.isLink;
|
|
24
|
+
return (react_1.default.createElement(MetaInfoItem_1.MetaInfoItem, { key: title, isLink: isLink, title: title, content: value }));
|
|
25
|
+
}),
|
|
26
|
+
isViewMode &&
|
|
27
|
+
notSystemAttributesList.map(function (_a) {
|
|
28
|
+
var attrType = _a.attrType, values = _a.values;
|
|
29
|
+
return (react_1.default.createElement(AttributesPager_1.default, { key: attrType.uri, attributeType: attrType, drawLines: false, values: values, titleClassName: styles.title, contentClassName: styles.content, parentUri: attributeValue.uri }));
|
|
30
|
+
})));
|
|
31
|
+
};
|
|
32
|
+
exports.MetaInfoList = MetaInfoList;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
exports.useStyles = styles_1.makeStyles({
|
|
6
|
+
root: {
|
|
7
|
+
padding: '10px 0'
|
|
8
|
+
},
|
|
9
|
+
title: {
|
|
10
|
+
color: 'rgba(255,255,255,0.54)',
|
|
11
|
+
fontSize: '13px'
|
|
12
|
+
},
|
|
13
|
+
content: {
|
|
14
|
+
color: 'rgba(255,255,255,0.87)',
|
|
15
|
+
wordWrap: 'break-word'
|
|
16
|
+
}
|
|
17
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
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.SYSTEM_ATTRIBUTES_TITLES = void 0;
|
|
7
|
+
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
8
|
+
exports.SYSTEM_ATTRIBUTES_TITLES = {
|
|
9
|
+
get CreationTime() {
|
|
10
|
+
return ui_i18n_1.default.text('Creation Time');
|
|
11
|
+
},
|
|
12
|
+
get CreationDate() {
|
|
13
|
+
return ui_i18n_1.default.text('Creation Date');
|
|
14
|
+
},
|
|
15
|
+
get Dimensions() {
|
|
16
|
+
return ui_i18n_1.default.text('Dimensions');
|
|
17
|
+
},
|
|
18
|
+
get MimeType() {
|
|
19
|
+
return ui_i18n_1.default.text('Mime Type');
|
|
20
|
+
},
|
|
21
|
+
get Size() {
|
|
22
|
+
return ui_i18n_1.default.text('Size');
|
|
23
|
+
},
|
|
24
|
+
get Url() {
|
|
25
|
+
return ui_i18n_1.default.text('Full image URL (S3)');
|
|
26
|
+
},
|
|
27
|
+
get UrlPreview() {
|
|
28
|
+
return ui_i18n_1.default.text('Preview image URL (S3)');
|
|
29
|
+
},
|
|
30
|
+
get UrlThumbnail() {
|
|
31
|
+
return ui_i18n_1.default.text('Small image URL (S3)');
|
|
32
|
+
},
|
|
33
|
+
get CdnUrl() {
|
|
34
|
+
return ui_i18n_1.default.text('Full image URL (CDN)');
|
|
35
|
+
},
|
|
36
|
+
get CdnUrlPreview() {
|
|
37
|
+
return ui_i18n_1.default.text('Preview image URL (CDN)');
|
|
38
|
+
},
|
|
39
|
+
get CdnUrlThumbnail() {
|
|
40
|
+
return ui_i18n_1.default.text('Small image URL (CDN)');
|
|
41
|
+
}
|
|
42
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
3
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
4
|
+
to[j] = from[i];
|
|
5
|
+
return to;
|
|
6
|
+
};
|
|
7
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.isLink = exports.getNotSystemAttributesList = exports.getSystemAttributesList = exports.getMoreAttrTypes = exports.filterByFieldsOrder = exports.getFormattedSystemImageAttributeValue = void 0;
|
|
12
|
+
var ramda_1 = require("ramda");
|
|
13
|
+
var moment_1 = __importDefault(require("moment"));
|
|
14
|
+
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
15
|
+
var constants_1 = require("../constants");
|
|
16
|
+
var getFormattedSystemImageAttributeValue = function (_a, name) {
|
|
17
|
+
var _b = _a === void 0 ? {} : _a, value = _b.value;
|
|
18
|
+
if (['Url', 'UrlPreview', 'UrlThumbnail', 'CdnUrl', 'CdnUrlPreview', 'CdnUrlThumbnail', 'MimeType'].includes(name)) {
|
|
19
|
+
return ramda_1.path([name, 0, 'value'], value);
|
|
20
|
+
}
|
|
21
|
+
if (name === 'CreationDate' && ramda_1.path(['CreationTimestamp', 0, 'value'], value)) {
|
|
22
|
+
return moment_1.default(value.CreationTimestamp[0].value).format('MM-DD-YYYY');
|
|
23
|
+
}
|
|
24
|
+
if (name === 'CreationTime' && ramda_1.path(['CreationTimestamp', 0, 'value'], value)) {
|
|
25
|
+
return moment_1.default(value.CreationTimestamp[0].value).format('HH:mm:ss');
|
|
26
|
+
}
|
|
27
|
+
if (name === 'Dimensions' && ramda_1.path(['Height', 0, 'value'], value) && ramda_1.path(['Width', 0, 'value'], value)) {
|
|
28
|
+
return value.Height[0].value + " x " + value.Width[0].value + " " + ui_i18n_1.default.text('pixels');
|
|
29
|
+
}
|
|
30
|
+
if (name === 'Size' && ramda_1.path(['Size', 0, 'value'], value)) {
|
|
31
|
+
var size = (Number(value.Size[0].value) / 1000).toFixed(2);
|
|
32
|
+
return size + " KB";
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.getFormattedSystemImageAttributeValue = getFormattedSystemImageAttributeValue;
|
|
36
|
+
var filterByNotSystemAttributeTypes = function (attrTypes) {
|
|
37
|
+
if (attrTypes === void 0) { attrTypes = []; }
|
|
38
|
+
return attrTypes.filter(function (_a) {
|
|
39
|
+
var system = _a.system;
|
|
40
|
+
return !system;
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
var filterByFieldsOrder = function (keys, fieldsOrder) {
|
|
44
|
+
var _a = fieldsOrder.includeNames, includeNames = _a === void 0 ? [] : _a, _b = fieldsOrder.excludeNames, excludeNames = _b === void 0 ? [] : _b, _c = fieldsOrder.order, order = _c === void 0 ? [] : _c;
|
|
45
|
+
var filteredKeys = includeNames.length
|
|
46
|
+
? keys.filter(function (key) { return includeNames.includes(key); })
|
|
47
|
+
: keys.filter(function (key) { return !excludeNames.includes(key); });
|
|
48
|
+
if (order.length === 0) {
|
|
49
|
+
return filteredKeys;
|
|
50
|
+
}
|
|
51
|
+
return filteredKeys.sort(function (a, b) {
|
|
52
|
+
var indA = order.indexOf(a);
|
|
53
|
+
var indB = order.indexOf(b);
|
|
54
|
+
if (indA === -1 && indB !== -1)
|
|
55
|
+
return 1;
|
|
56
|
+
if (indB === -1 && indA !== -1)
|
|
57
|
+
return -1;
|
|
58
|
+
return indA - indB;
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
exports.filterByFieldsOrder = filterByFieldsOrder;
|
|
62
|
+
var getMoreAttrTypes = function (attrType) {
|
|
63
|
+
return filterByNotSystemAttributeTypes(attrType.attributes);
|
|
64
|
+
};
|
|
65
|
+
exports.getMoreAttrTypes = getMoreAttrTypes;
|
|
66
|
+
var getSystemAttributesList = function (attrValue, fieldsOrder) {
|
|
67
|
+
return exports.filterByFieldsOrder(Object.keys(constants_1.SYSTEM_ATTRIBUTES_TITLES), fieldsOrder)
|
|
68
|
+
.map(function (key) {
|
|
69
|
+
var value = exports.getFormattedSystemImageAttributeValue(attrValue, key);
|
|
70
|
+
if (!value) {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
title: constants_1.SYSTEM_ATTRIBUTES_TITLES[key],
|
|
75
|
+
value: exports.getFormattedSystemImageAttributeValue(attrValue, key),
|
|
76
|
+
isLink: exports.isLink(key)
|
|
77
|
+
};
|
|
78
|
+
})
|
|
79
|
+
.filter(Boolean);
|
|
80
|
+
};
|
|
81
|
+
exports.getSystemAttributesList = getSystemAttributesList;
|
|
82
|
+
var getNotSystemAttributesList = function (attrValue, attrType, fieldsOrder) {
|
|
83
|
+
if (attrValue === void 0) { attrValue = {}; }
|
|
84
|
+
var notSystemAttrTypes = filterByNotSystemAttributeTypes(attrType.attributes);
|
|
85
|
+
return exports.filterByFieldsOrder(Object.keys(attrValue.value || {}), fieldsOrder).reduce(function (result, key) {
|
|
86
|
+
var attrType = notSystemAttrTypes.find(function (_a) {
|
|
87
|
+
var name = _a.name;
|
|
88
|
+
return name === key;
|
|
89
|
+
});
|
|
90
|
+
return attrType ? __spreadArray(__spreadArray([], result), [{ attrType: attrType, values: attrValue.value[key] }]) : result;
|
|
91
|
+
}, []);
|
|
92
|
+
};
|
|
93
|
+
exports.getNotSystemAttributesList = getNotSystemAttributesList;
|
|
94
|
+
var isLink = function (key) {
|
|
95
|
+
return ['Url', 'UrlPreview', 'UrlThumbnail', 'CdnUrl', 'CdnUrlPreview', 'CdnUrlThumbnail'].includes(key);
|
|
96
|
+
};
|
|
97
|
+
exports.isLink = isLink;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useEditMetaInfo = void 0;
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
var ramda_1 = require("ramda");
|
|
6
|
+
var react_redux_1 = require("react-redux");
|
|
7
|
+
var mdm_module_1 = require("@reltio/mdm-module");
|
|
8
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
9
|
+
var contexts_1 = require("../../../contexts");
|
|
10
|
+
var useEditMetaInfo = function (_a) {
|
|
11
|
+
var initialAttributeValue = _a.initialAttributeValue, attributeType = _a.attributeType;
|
|
12
|
+
var dispatch = react_redux_1.useDispatch();
|
|
13
|
+
var viewId = react_1.useContext(contexts_1.ViewIdContext);
|
|
14
|
+
var _b = react_1.useState(initialAttributeValue), attributeValue = _b[0], setAttributeValue = _b[1];
|
|
15
|
+
var nestingLevel = 1;
|
|
16
|
+
var hasChanges = !ramda_1.equals(attributeValue, initialAttributeValue);
|
|
17
|
+
var addAttributes = react_1.useCallback(function (attributes) {
|
|
18
|
+
setAttributeValue(function (prevAttrValue) {
|
|
19
|
+
return attributes.reduce(function (attrValue, attribute) {
|
|
20
|
+
var attributeType = attribute.attributeType, parentUri = attribute.parentUri, index = attribute.index;
|
|
21
|
+
return mdm_sdk_1.addAttribute({
|
|
22
|
+
entity: attrValue,
|
|
23
|
+
attributeType: attributeType,
|
|
24
|
+
parentUri: parentUri,
|
|
25
|
+
index: index,
|
|
26
|
+
nestingLevel: nestingLevel
|
|
27
|
+
});
|
|
28
|
+
}, prevAttrValue);
|
|
29
|
+
});
|
|
30
|
+
}, []);
|
|
31
|
+
var changeAttribute = react_1.useCallback(function (_a) {
|
|
32
|
+
var value = _a.value, attributeType = _a.attributeType, uri = _a.uri;
|
|
33
|
+
setAttributeValue(function (prevAttrValue) {
|
|
34
|
+
return mdm_sdk_1.editAttribute({
|
|
35
|
+
entity: prevAttrValue,
|
|
36
|
+
attributeType: attributeType,
|
|
37
|
+
uri: uri,
|
|
38
|
+
value: value,
|
|
39
|
+
nestingLevel: nestingLevel
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
}, []);
|
|
43
|
+
var deleteAttribute = react_1.useCallback(function (_a) {
|
|
44
|
+
var attributeType = _a.attributeType, uri = _a.uri;
|
|
45
|
+
setAttributeValue(function (prevAttrValue) {
|
|
46
|
+
return mdm_sdk_1.removeAttribute({ entity: prevAttrValue, attributeType: attributeType, uri: uri, nestingLevel: nestingLevel });
|
|
47
|
+
});
|
|
48
|
+
}, []);
|
|
49
|
+
var clearLocalChanges = react_1.useCallback(function () {
|
|
50
|
+
setAttributeValue(initialAttributeValue);
|
|
51
|
+
}, [initialAttributeValue]);
|
|
52
|
+
var applyLocalChanges = react_1.useCallback(function () {
|
|
53
|
+
dispatch(mdm_module_1.profile.actions.modifyAttribute({
|
|
54
|
+
value: attributeValue,
|
|
55
|
+
attributeType: attributeType,
|
|
56
|
+
uri: attributeValue.uri,
|
|
57
|
+
viewId: viewId
|
|
58
|
+
}));
|
|
59
|
+
}, [attributeValue, attributeType, viewId, dispatch]);
|
|
60
|
+
return {
|
|
61
|
+
addAttributes: addAttributes,
|
|
62
|
+
changeAttribute: changeAttribute,
|
|
63
|
+
deleteAttribute: deleteAttribute,
|
|
64
|
+
clearLocalChanges: clearLocalChanges,
|
|
65
|
+
applyLocalChanges: applyLocalChanges,
|
|
66
|
+
attributeValue: attributeValue,
|
|
67
|
+
hasChanges: hasChanges
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
exports.useEditMetaInfo = useEditMetaInfo;
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
exports.useStyles = styles_1.makeStyles(function () { return ({
|
|
6
|
+
root: {
|
|
7
|
+
display: 'flex',
|
|
8
|
+
width: '100%',
|
|
9
|
+
overflowY: 'auto',
|
|
10
|
+
height: 'calc(100vh - 64px)'
|
|
11
|
+
},
|
|
12
|
+
main: {
|
|
13
|
+
flex: '1 0 auto'
|
|
14
|
+
},
|
|
15
|
+
details: {
|
|
16
|
+
width: '340px'
|
|
17
|
+
}
|
|
18
|
+
}); });
|