@reltio/components 1.4.1637 → 1.4.1639
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/cjs/components/AttributeGroupIcon/AttributeGroupIcon.js +2 -3
- package/cjs/components/AttributeSelector/AttributeSelector.js +2 -3
- package/cjs/components/AttributesFiltersBuilder/AttributesFiltersBuilder.js +4 -5
- package/cjs/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.d.ts +13 -19
- package/cjs/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.js +6 -17
- package/cjs/components/BasicView/BasicView.d.ts +1 -1
- package/cjs/components/CollaborationItem/Comment/Comment.js +1 -3
- package/cjs/components/CollaborationItem/CommentTarget/CommentTarget.js +2 -4
- package/cjs/components/CollaborationItem/CommentTarget/styles.d.ts +1 -1
- package/cjs/components/CollaborationItem/RepliedComment/RepliedComment.js +1 -3
- package/cjs/components/CollaborationItem/SendMessageArea/SendMessageArea.js +1 -3
- package/cjs/components/ColoredSourceIcon/ColoredSourceIcon.js +1 -3
- package/cjs/components/ConnectionEditor/ConnectionEditor.js +3 -6
- package/cjs/components/DataTenantBadge/DataTenantBadge.js +6 -4
- package/cjs/components/DataTypeValue/DataTypeValue.js +4 -5
- package/cjs/components/EntityAvatar/EntityAvatar.js +4 -5
- package/cjs/components/EntityTypeBadge/EntityTypeBadge.js +4 -6
- package/cjs/components/EntityTypeIcon/EntityTypeIcon.js +2 -3
- package/cjs/components/EntityUriLink/EntityUriLink.js +4 -6
- package/cjs/components/ErrorPopup/ErrorPopup.d.ts +13 -8
- package/cjs/components/ErrorPopup/ErrorPopup.js +23 -18
- package/cjs/components/ErrorPopup/styles.d.ts +1 -1
- package/cjs/components/HierarchyNodeTitle/HierarchyNodeTitle.js +4 -6
- package/cjs/components/ImageAttributesGallery/ImageAttributesGallery.js +2 -6
- package/cjs/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.d.ts +0 -5
- package/cjs/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.js +6 -7
- package/cjs/components/ImageDetailsView/MetaInfo/MetaInfo.js +3 -4
- package/cjs/components/ImageDetailsView/MetaInfoList/MetaInfoItem/styles.d.ts +1 -1
- package/cjs/components/ImageDetailsView/MetaInfoList/MetaInfoList.js +3 -4
- package/cjs/components/ImageDetailsView/hooks/useEditMetaInfo.js +3 -10
- package/cjs/components/MatchRulesBlock/SimpleMatchRules/styles.d.ts +1 -1
- package/cjs/components/MatchRulesSelector/MatchRulesSelector.d.ts +1 -4
- package/cjs/components/MatchRulesSelector/MatchRulesSelector.js +2 -4
- package/cjs/components/ModeSwitcher/styles.d.ts +1 -1
- package/cjs/components/PivotingUriLink/PivotingUriLink.js +1 -3
- package/cjs/components/Popper/Popper.d.ts +1 -1
- package/cjs/components/PotentialMatchReviewCard/styles.d.ts +1 -1
- package/cjs/components/ProfileBand/ProfileBand.js +3 -4
- package/cjs/components/ProfileBandNavigation/ProfileBandNavigationWidget.d.ts +1 -1
- package/cjs/components/ProfileBandNavigation/hooks/useSearchNavigation.js +19 -54
- package/cjs/components/ProfileBandNavigation/hooks/useSearchNavigationVisibility.js +4 -8
- package/cjs/components/ProfilesList/ProfilesList.d.ts +2 -3
- package/cjs/components/ProfilesList/ProfilesList.js +3 -1
- package/cjs/components/RelationEditor/RelationEditor.js +46 -33
- package/cjs/components/RelevanceScoreBadge/RelevanceScoreBadge.js +3 -4
- package/cjs/components/SelectAttributesList/SelectAttributesList.js +2 -3
- package/cjs/components/SmallIconButton/SmallIconButton.d.ts +1 -1
- package/cjs/components/SmallIconButton/index.d.ts +1 -1
- package/cjs/components/SourceIcon/SourceIcon.js +2 -3
- package/cjs/components/SourceSystemsSelector/SourceSystemsSelector.js +2 -3
- package/cjs/components/StepNavigation/ProgressButton.d.ts +12 -0
- package/cjs/components/StepNavigation/ProgressButton.js +41 -0
- package/cjs/components/StepNavigation/StepNavigation.d.ts +13 -0
- package/cjs/components/StepNavigation/StepNavigation.js +62 -0
- package/cjs/components/StepNavigation/styles.d.ts +2 -0
- package/cjs/components/StepNavigation/styles.js +44 -0
- package/cjs/components/TenantLabel/TenantLabel.d.ts +6 -0
- package/cjs/components/TenantLabel/TenantLabel.js +22 -0
- package/cjs/components/TenantLabel/styles.d.ts +1 -0
- package/cjs/components/TenantLabel/styles.js +22 -0
- package/cjs/components/TenantsDropDownSelector/TenantsDropDownSelector.js +3 -4
- package/cjs/components/UploadImageDialog/TargetBox/styles.d.ts +1 -1
- package/cjs/components/UploadImageDialog/UploadImageDialog.js +4 -5
- package/cjs/components/UserSelector/UserSelector.js +3 -4
- package/cjs/components/activityLog/ActivityExportButton/ActivityExportButton.js +6 -7
- package/cjs/components/activityLog/ActivityFilterEditor/ActivityFilterEditor.js +2 -3
- package/cjs/components/activityLog/ActivityFilterEditor/EntityChangedSelectors.js +2 -3
- package/cjs/components/activityLog/ActivityFilterEditor/SourceSelector.js +3 -4
- package/cjs/components/activityLog/ActivityLogFilter/ActivityLogFilter.d.ts +1 -1
- package/cjs/components/activityLog/ActivityLogFilter/ActivityLogFilter.js +5 -3
- package/cjs/components/activityLog/activities/GroupActivity.js +2 -3
- package/cjs/components/activityLog/activities/RelationObject/styles.d.ts +1 -1
- package/cjs/components/activityLog/activities/SearchActivity.js +6 -7
- package/cjs/components/activityLog/activities/fields/DeltaField.js +7 -8
- package/cjs/components/activityLog/activities/fields/commonStyles.d.ts +1 -1
- package/cjs/components/activityLog/activities/records/EntityRecord.js +8 -9
- package/cjs/components/attributes/AttributesView/AttributesView.d.ts +2 -2
- package/cjs/components/attributes/AttributesView/AttributesView.js +8 -4
- package/cjs/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +1 -1
- package/cjs/components/attributes/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
- package/cjs/components/attributes/ImageAttributesLine/ImageAttributesLine.js +8 -9
- package/cjs/components/attributes/OvIcon/OvIcon.d.ts +1 -1
- package/cjs/components/attributes/OvIcon/OvIcon.js +4 -6
- package/cjs/components/attributes/PivotingAttributes/PivotingTooltip.js +3 -5
- package/cjs/components/attributes/PivotingAttributes/PivotingTooltipContent.js +3 -4
- package/cjs/components/attributes/PivotingAttributes/styles.d.ts +1 -1
- package/cjs/components/attributes/editMode/AttributesFactory/AttributesFactory.js +1 -1
- package/cjs/components/attributes/editMode/AttributesPager/AttributeRenderer.d.ts +7 -2
- package/cjs/components/attributes/editMode/AttributesPager/AttributesPager.d.ts +2 -38
- package/cjs/components/attributes/editMode/AttributesPager/AttributesPager.js +10 -2
- package/cjs/components/attributes/editMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
- package/cjs/components/attributes/editMode/AttributesPager/index.d.ts +2 -39
- package/cjs/components/attributes/editMode/AttributesPager/index.js +5 -44
- package/cjs/components/attributes/editMode/AttributesPager/styles.d.ts +1 -1
- package/cjs/components/attributes/editMode/AttributesPager/types.d.ts +21 -0
- package/cjs/components/attributes/editMode/AttributesView/AttributesView.d.ts +1 -1
- package/cjs/components/attributes/editMode/AttributesView/AttributesView.js +10 -12
- package/cjs/components/attributes/editMode/EntityCreator/EntityCreator.d.ts +9 -24
- package/cjs/components/attributes/editMode/EntityCreator/EntityCreator.js +7 -15
- package/cjs/components/attributes/editMode/EntitySelector/EntitySelector.js +1 -1
- package/cjs/components/attributes/editMode/EntitySelector/components/SingleValue.js +3 -6
- package/cjs/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
- package/cjs/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.js +8 -10
- package/cjs/components/attributes/editMode/MoreAttributesButton/useMoreAttributesItems.js +2 -3
- package/cjs/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.js +16 -15
- package/cjs/components/attributes/editMode/Roles/Roles.js +4 -5
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor.js +4 -9
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/useAutopopulationContextValue.js +7 -30
- package/cjs/components/attributes/editMode/Tags/Tags.js +3 -4
- package/cjs/components/attributes/inline/ReferenceAttribute/ReferenceAttribute.js +3 -5
- package/cjs/components/attributes/inline/common/SourceItem.js +2 -4
- package/cjs/components/attributes/readMode/AttributesList/AttributesList.js +1 -1
- package/cjs/components/attributes/readMode/AttributesPager/AttributesPager.d.ts +1 -3
- package/cjs/components/attributes/readMode/AttributesPager/AttributesPager.js +7 -2
- package/cjs/components/attributes/readMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
- package/cjs/components/attributes/readMode/AttributesPager/MultiLineRenderer.d.ts +1 -2
- package/cjs/components/attributes/readMode/AttributesPager/styles.d.ts +1 -1
- package/cjs/components/attributes/readMode/AttributesView/AttributesView.d.ts +2 -2
- package/cjs/components/attributes/readMode/AttributesView/AttributesView.js +3 -4
- package/cjs/components/attributes/readMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
- package/cjs/components/attributes/readMode/ReferenceAttribute/ReferenceAttribute.js +2 -4
- package/cjs/components/attributes/readMode/SpecialAttributes/Roles/Role.js +2 -6
- package/cjs/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +2 -4
- package/cjs/components/attributes/types/attributesView.d.ts +2 -7
- package/cjs/components/crosswalks/AttributesTable/AddAttributesButton/AddAttributesButton.js +2 -3
- package/cjs/components/crosswalks/AttributesTable/AttributesTable.js +2 -3
- package/cjs/components/crosswalks/AttributesTable/cell-renderers/RuleTypeInfoButton.js +21 -17
- package/cjs/components/crosswalks/AttributesTable/cell-renderers/WinnerSourcesRenderer.js +1 -3
- package/cjs/components/crosswalks/CrosswalkAttributes/CrosswalkAttributes.js +9 -10
- package/cjs/components/crosswalks/CrosswalkDragLayer/CrosswalkDragPreview.js +3 -4
- package/cjs/components/crosswalks/CrosswalkRow/CrosswalkRow.js +11 -12
- package/cjs/components/crosswalks/DummyCrosswalkRow/DummyCrosswalkRow.js +3 -4
- package/cjs/components/editors/DataTypeValueEditor/useEditorContext.d.ts +3 -3
- package/cjs/components/editors/DataTypeValueEditor/useEditorContext.js +10 -36
- package/cjs/components/editors/DateRangeEditor/DateRangeEditor.d.ts +3 -3
- package/cjs/components/editors/TypeaheadEditor/TypeaheadEditor.js +1 -1
- package/cjs/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
- package/cjs/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
- package/cjs/components/history/HistoryMenuButton/HistoryMenuButton.js +5 -32
- package/cjs/components/history/HistoryTree/HistoryTree.js +9 -8
- package/cjs/components/history/HistoryTree/styles.d.ts +1 -1
- package/cjs/components/history/ProfileBandHistory/ProfileBandHistory.js +5 -31
- package/cjs/components/history/hooks/useHistoryDiff.js +8 -32
- package/cjs/components/history/hooks/useHistorySlice.js +4 -28
- package/cjs/components/index.d.ts +8 -6
- package/cjs/components/index.js +11 -6
- package/cjs/components/workflow/cards/GenericWorkflowTaskCard/styles.d.ts +1 -1
- package/cjs/components/workflow/cards/PotentialMatchTaskCard/PotentialMatchTaskCard.js +4 -5
- package/cjs/components/workflow/components/AttributesChanges/AttributesChanges.js +2 -3
- package/cjs/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js +2 -3
- package/cjs/components/workflow/components/WorkflowComments/styles.d.ts +1 -1
- package/cjs/components/workflow/hooks/useWorkflowActions.js +6 -11
- package/cjs/components/workflow/hooks/useWorkflowAssignee.js +3 -8
- package/cjs/components/workflow/hooks/useWorkflowCheckPermission.js +24 -25
- package/cjs/components/workflow/hooks/useWorkflowComments.js +4 -8
- package/cjs/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.js +6 -30
- package/cjs/components/workflow/hooks/useWorkflowDefinitions.js +5 -9
- package/cjs/components/workflow/hooks/useWorkflowDueDate.js +4 -8
- package/cjs/components/workflow/hooks/useWorkflowPriority.js +4 -5
- package/cjs/components/workflow/hooks/useWorkflowProcessInstance.js +6 -10
- package/cjs/components/workflow/hooks/useWorkflowTasks.js +11 -15
- package/cjs/contexts/ActionsHookContext/index.d.ts +4 -1
- package/cjs/contexts/CollaborationContext/index.js +2 -2
- package/cjs/contexts/MdmModuleContext/context.d.ts +243 -0
- package/cjs/contexts/MdmModuleContext/context.js +7 -0
- package/cjs/contexts/MdmModuleContext/hooks.d.ts +139 -0
- package/cjs/contexts/MdmModuleContext/hooks.js +206 -0
- package/cjs/contexts/MdmModuleContext/index.d.ts +3 -0
- package/cjs/contexts/MdmModuleContext/index.js +70 -0
- package/cjs/contexts/MdmModuleContext/provider.d.ts +10 -0
- package/cjs/contexts/MdmModuleContext/provider.js +15 -0
- package/cjs/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.d.ts +22 -0
- package/cjs/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.js +132 -0
- package/cjs/contexts/MdmModuleContext/selectors/entity.d.ts +3 -0
- package/cjs/contexts/MdmModuleContext/selectors/entity.js +11 -0
- package/cjs/contexts/MdmModuleContext/selectors.d.ts +3 -0
- package/cjs/contexts/MdmModuleContext/selectors.js +11 -0
- package/cjs/contexts/index.d.ts +1 -0
- package/cjs/contexts/index.js +15 -0
- package/cjs/hooks/useAPI/useAPI.js +14 -40
- package/cjs/hooks/useCollaboration.js +5 -9
- package/cjs/hooks/useCommentsEntitiesMap.js +2 -6
- package/cjs/hooks/useConfigPermissions.js +3 -7
- package/cjs/hooks/useCustomScripts.js +13 -39
- package/cjs/hooks/useEditableConnection.js +2 -6
- package/cjs/hooks/useMarkAsNotMatchRequest.js +4 -8
- package/cjs/hooks/useMatchesLoader.js +5 -9
- package/cjs/hooks/useMergeAllRequest.js +16 -30
- package/cjs/hooks/useReadableSearchState.js +8 -32
- package/cjs/hooks/useRelationsLoader.js +9 -33
- package/cjs/hooks/useScrollToAttributeError/styles.d.ts +1 -1
- package/cjs/hooks/useUsers.js +4 -5
- package/cjs/icons/Tenant.d.ts +3 -0
- package/cjs/icons/Tenant.js +22 -0
- package/esm/components/AttributeGroupIcon/AttributeGroupIcon.js +2 -3
- package/esm/components/AttributeSelector/AttributeSelector.js +2 -3
- package/esm/components/AttributesFiltersBuilder/AttributesFiltersBuilder.js +5 -6
- package/esm/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.d.ts +13 -19
- package/esm/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.js +7 -18
- package/esm/components/BasicView/BasicView.d.ts +1 -1
- package/esm/components/CollaborationItem/Comment/Comment.js +2 -4
- package/esm/components/CollaborationItem/CommentTarget/CommentTarget.js +3 -5
- package/esm/components/CollaborationItem/CommentTarget/styles.d.ts +1 -1
- package/esm/components/CollaborationItem/RepliedComment/RepliedComment.js +2 -4
- package/esm/components/CollaborationItem/SendMessageArea/SendMessageArea.js +2 -4
- package/esm/components/ColoredSourceIcon/ColoredSourceIcon.js +2 -4
- package/esm/components/ConnectionEditor/ConnectionEditor.js +3 -6
- package/esm/components/DataTenantBadge/DataTenantBadge.js +6 -4
- package/esm/components/DataTypeValue/DataTypeValue.js +4 -5
- package/esm/components/EntityAvatar/EntityAvatar.js +4 -5
- package/esm/components/EntityTypeBadge/EntityTypeBadge.js +4 -6
- package/esm/components/EntityTypeIcon/EntityTypeIcon.js +2 -3
- package/esm/components/EntityUriLink/EntityUriLink.js +5 -7
- package/esm/components/ErrorPopup/ErrorPopup.d.ts +13 -8
- package/esm/components/ErrorPopup/ErrorPopup.js +23 -18
- package/esm/components/ErrorPopup/styles.d.ts +1 -1
- package/esm/components/HierarchyNodeTitle/HierarchyNodeTitle.js +5 -7
- package/esm/components/ImageAttributesGallery/ImageAttributesGallery.js +2 -3
- package/esm/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.d.ts +0 -5
- package/esm/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.js +6 -7
- package/esm/components/ImageDetailsView/MetaInfo/MetaInfo.js +3 -4
- package/esm/components/ImageDetailsView/MetaInfoList/MetaInfoItem/styles.d.ts +1 -1
- package/esm/components/ImageDetailsView/MetaInfoList/MetaInfoList.js +3 -4
- package/esm/components/ImageDetailsView/hooks/useEditMetaInfo.js +4 -11
- package/esm/components/MatchRulesBlock/SimpleMatchRules/styles.d.ts +1 -1
- package/esm/components/MatchRulesSelector/MatchRulesSelector.d.ts +1 -4
- package/esm/components/MatchRulesSelector/MatchRulesSelector.js +2 -4
- package/esm/components/ModeSwitcher/styles.d.ts +1 -1
- package/esm/components/PivotingUriLink/PivotingUriLink.js +2 -4
- package/esm/components/Popper/Popper.d.ts +1 -1
- package/esm/components/PotentialMatchReviewCard/styles.d.ts +1 -1
- package/esm/components/ProfileBand/ProfileBand.js +3 -4
- package/esm/components/ProfileBandNavigation/ProfileBandNavigationWidget.d.ts +1 -1
- package/esm/components/ProfileBandNavigation/hooks/useSearchNavigation.js +20 -32
- package/esm/components/ProfileBandNavigation/hooks/useSearchNavigationVisibility.js +4 -5
- package/esm/components/ProfilesList/ProfilesList.d.ts +2 -3
- package/esm/components/ProfilesList/ProfilesList.js +3 -1
- package/esm/components/RelationEditor/RelationEditor.js +49 -36
- package/esm/components/RelevanceScoreBadge/RelevanceScoreBadge.js +3 -4
- package/esm/components/SelectAttributesList/SelectAttributesList.js +2 -3
- package/esm/components/SmallIconButton/SmallIconButton.d.ts +1 -1
- package/esm/components/SmallIconButton/index.d.ts +1 -1
- package/esm/components/SourceIcon/SourceIcon.js +2 -3
- package/esm/components/SourceSystemsSelector/SourceSystemsSelector.js +2 -3
- package/esm/components/StepNavigation/ProgressButton.d.ts +12 -0
- package/esm/components/StepNavigation/ProgressButton.js +36 -0
- package/esm/components/StepNavigation/StepNavigation.d.ts +13 -0
- package/esm/components/StepNavigation/StepNavigation.js +57 -0
- package/esm/components/StepNavigation/styles.d.ts +2 -0
- package/esm/components/StepNavigation/styles.js +41 -0
- package/esm/components/TenantLabel/TenantLabel.d.ts +6 -0
- package/esm/components/TenantLabel/TenantLabel.js +17 -0
- package/esm/components/TenantLabel/styles.d.ts +1 -0
- package/esm/components/TenantLabel/styles.js +19 -0
- package/esm/components/TenantsDropDownSelector/TenantsDropDownSelector.js +3 -4
- package/esm/components/UploadImageDialog/TargetBox/styles.d.ts +1 -1
- package/esm/components/UploadImageDialog/UploadImageDialog.js +4 -5
- package/esm/components/UserSelector/UserSelector.js +3 -4
- package/esm/components/activityLog/ActivityExportButton/ActivityExportButton.js +6 -7
- package/esm/components/activityLog/ActivityFilterEditor/ActivityFilterEditor.js +2 -3
- package/esm/components/activityLog/ActivityFilterEditor/EntityChangedSelectors.js +2 -3
- package/esm/components/activityLog/ActivityFilterEditor/SourceSelector.js +3 -4
- package/esm/components/activityLog/ActivityLogFilter/ActivityLogFilter.d.ts +1 -1
- package/esm/components/activityLog/ActivityLogFilter/ActivityLogFilter.js +5 -3
- package/esm/components/activityLog/activities/GroupActivity.js +2 -3
- package/esm/components/activityLog/activities/RelationObject/styles.d.ts +1 -1
- package/esm/components/activityLog/activities/SearchActivity.js +6 -7
- package/esm/components/activityLog/activities/fields/DeltaField.js +7 -8
- package/esm/components/activityLog/activities/fields/commonStyles.d.ts +1 -1
- package/esm/components/activityLog/activities/records/EntityRecord.js +8 -9
- package/esm/components/attributes/AttributesView/AttributesView.d.ts +2 -2
- package/esm/components/attributes/AttributesView/AttributesView.js +10 -6
- package/esm/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +1 -1
- package/esm/components/attributes/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
- package/esm/components/attributes/ImageAttributesLine/ImageAttributesLine.js +9 -10
- package/esm/components/attributes/OvIcon/OvIcon.d.ts +1 -1
- package/esm/components/attributes/OvIcon/OvIcon.js +5 -7
- package/esm/components/attributes/PivotingAttributes/PivotingTooltip.js +4 -6
- package/esm/components/attributes/PivotingAttributes/PivotingTooltipContent.js +3 -4
- package/esm/components/attributes/PivotingAttributes/styles.d.ts +1 -1
- package/esm/components/attributes/editMode/AttributesFactory/AttributesFactory.js +1 -1
- package/esm/components/attributes/editMode/AttributesPager/AttributeRenderer.d.ts +7 -2
- package/esm/components/attributes/editMode/AttributesPager/AttributesPager.d.ts +2 -38
- package/esm/components/attributes/editMode/AttributesPager/AttributesPager.js +12 -4
- package/esm/components/attributes/editMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
- package/esm/components/attributes/editMode/AttributesPager/index.d.ts +2 -39
- package/esm/components/attributes/editMode/AttributesPager/index.js +2 -19
- package/esm/components/attributes/editMode/AttributesPager/styles.d.ts +1 -1
- package/esm/components/attributes/editMode/AttributesPager/types.d.ts +21 -0
- package/esm/components/attributes/editMode/AttributesView/AttributesView.d.ts +1 -1
- package/esm/components/attributes/editMode/AttributesView/AttributesView.js +11 -13
- package/esm/components/attributes/editMode/EntityCreator/EntityCreator.d.ts +9 -24
- package/esm/components/attributes/editMode/EntityCreator/EntityCreator.js +7 -15
- package/esm/components/attributes/editMode/EntitySelector/EntitySelector.js +1 -1
- package/esm/components/attributes/editMode/EntitySelector/components/SingleValue.js +4 -7
- package/esm/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
- package/esm/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.js +8 -10
- package/esm/components/attributes/editMode/MoreAttributesButton/useMoreAttributesItems.js +2 -3
- package/esm/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.js +18 -17
- package/esm/components/attributes/editMode/Roles/Roles.js +4 -5
- package/esm/components/attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor.js +5 -10
- package/esm/components/attributes/editMode/SimpleAttributeEditor/useAutopopulationContextValue.js +7 -7
- package/esm/components/attributes/editMode/Tags/Tags.js +3 -4
- package/esm/components/attributes/inline/ReferenceAttribute/ReferenceAttribute.js +4 -6
- package/esm/components/attributes/inline/common/SourceItem.js +3 -5
- package/esm/components/attributes/readMode/AttributesList/AttributesList.js +1 -1
- package/esm/components/attributes/readMode/AttributesPager/AttributesPager.d.ts +1 -3
- package/esm/components/attributes/readMode/AttributesPager/AttributesPager.js +7 -2
- package/esm/components/attributes/readMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
- package/esm/components/attributes/readMode/AttributesPager/MultiLineRenderer.d.ts +1 -2
- package/esm/components/attributes/readMode/AttributesPager/styles.d.ts +1 -1
- package/esm/components/attributes/readMode/AttributesView/AttributesView.d.ts +2 -2
- package/esm/components/attributes/readMode/AttributesView/AttributesView.js +4 -5
- package/esm/components/attributes/readMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
- package/esm/components/attributes/readMode/ReferenceAttribute/ReferenceAttribute.js +4 -6
- package/esm/components/attributes/readMode/SpecialAttributes/Roles/Role.js +2 -3
- package/esm/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +3 -5
- package/esm/components/attributes/types/attributesView.d.ts +2 -7
- package/esm/components/crosswalks/AttributesTable/AddAttributesButton/AddAttributesButton.js +2 -3
- package/esm/components/crosswalks/AttributesTable/AttributesTable.js +2 -3
- package/esm/components/crosswalks/AttributesTable/cell-renderers/RuleTypeInfoButton.js +21 -17
- package/esm/components/crosswalks/AttributesTable/cell-renderers/WinnerSourcesRenderer.js +2 -4
- package/esm/components/crosswalks/CrosswalkAttributes/CrosswalkAttributes.js +9 -10
- package/esm/components/crosswalks/CrosswalkDragLayer/CrosswalkDragPreview.js +3 -4
- package/esm/components/crosswalks/CrosswalkRow/CrosswalkRow.js +12 -13
- package/esm/components/crosswalks/DummyCrosswalkRow/DummyCrosswalkRow.js +3 -4
- package/esm/components/editors/DataTypeValueEditor/useEditorContext.d.ts +3 -3
- package/esm/components/editors/DataTypeValueEditor/useEditorContext.js +10 -13
- package/esm/components/editors/DateRangeEditor/DateRangeEditor.d.ts +3 -3
- package/esm/components/editors/TypeaheadEditor/TypeaheadEditor.js +1 -1
- package/esm/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
- package/esm/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
- package/esm/components/history/HistoryMenuButton/HistoryMenuButton.js +5 -9
- package/esm/components/history/HistoryTree/HistoryTree.js +9 -8
- package/esm/components/history/HistoryTree/styles.d.ts +1 -1
- package/esm/components/history/ProfileBandHistory/ProfileBandHistory.js +5 -8
- package/esm/components/history/hooks/useHistoryDiff.js +8 -9
- package/esm/components/history/hooks/useHistorySlice.js +4 -5
- package/esm/components/index.d.ts +8 -6
- package/esm/components/index.js +8 -6
- package/esm/components/workflow/cards/GenericWorkflowTaskCard/styles.d.ts +1 -1
- package/esm/components/workflow/cards/PotentialMatchTaskCard/PotentialMatchTaskCard.js +4 -5
- package/esm/components/workflow/components/AttributesChanges/AttributesChanges.js +2 -3
- package/esm/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js +2 -3
- package/esm/components/workflow/components/WorkflowComments/styles.d.ts +1 -1
- package/esm/components/workflow/hooks/useWorkflowActions.js +5 -7
- package/esm/components/workflow/hooks/useWorkflowAssignee.js +4 -6
- package/esm/components/workflow/hooks/useWorkflowCheckPermission.js +24 -22
- package/esm/components/workflow/hooks/useWorkflowComments.js +4 -5
- package/esm/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.js +7 -8
- package/esm/components/workflow/hooks/useWorkflowDefinitions.js +5 -6
- package/esm/components/workflow/hooks/useWorkflowDueDate.js +4 -5
- package/esm/components/workflow/hooks/useWorkflowPriority.js +4 -5
- package/esm/components/workflow/hooks/useWorkflowProcessInstance.js +6 -7
- package/esm/components/workflow/hooks/useWorkflowTasks.js +11 -12
- package/esm/contexts/ActionsHookContext/index.d.ts +4 -1
- package/esm/contexts/CollaborationContext/index.js +1 -1
- package/esm/contexts/MdmModuleContext/context.d.ts +243 -0
- package/esm/contexts/MdmModuleContext/context.js +4 -0
- package/esm/contexts/MdmModuleContext/hooks.d.ts +139 -0
- package/esm/contexts/MdmModuleContext/hooks.js +139 -0
- package/esm/contexts/MdmModuleContext/index.d.ts +3 -0
- package/esm/contexts/MdmModuleContext/index.js +2 -0
- package/esm/contexts/MdmModuleContext/provider.d.ts +10 -0
- package/esm/contexts/MdmModuleContext/provider.js +8 -0
- package/esm/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.d.ts +22 -0
- package/esm/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.js +123 -0
- package/esm/contexts/MdmModuleContext/selectors/entity.d.ts +3 -0
- package/esm/contexts/MdmModuleContext/selectors/entity.js +6 -0
- package/esm/contexts/MdmModuleContext/selectors.d.ts +3 -0
- package/esm/contexts/MdmModuleContext/selectors.js +6 -0
- package/esm/contexts/index.d.ts +1 -0
- package/esm/contexts/index.js +1 -0
- package/esm/hooks/useAPI/useAPI.js +15 -18
- package/esm/hooks/useCollaboration.js +5 -6
- package/esm/hooks/useCommentsEntitiesMap.js +2 -3
- package/esm/hooks/useConfigPermissions.js +3 -4
- package/esm/hooks/useCustomScripts.js +14 -17
- package/esm/hooks/useEditableConnection.js +2 -3
- package/esm/hooks/useMarkAsNotMatchRequest.js +4 -5
- package/esm/hooks/useMatchesLoader.js +5 -6
- package/esm/hooks/useMergeAllRequest.js +16 -7
- package/esm/hooks/useReadableSearchState.js +8 -9
- package/esm/hooks/useRelationsLoader.js +9 -10
- package/esm/hooks/useScrollToAttributeError/styles.d.ts +1 -1
- package/esm/hooks/useUsers.js +4 -5
- package/esm/icons/Tenant.d.ts +3 -0
- package/esm/icons/Tenant.js +17 -0
- package/package.json +3 -4
- package/cjs/components/ProfileBandNavigation/helpers/index.d.ts +0 -7
- package/cjs/components/ProfileBandNavigation/helpers/index.js +0 -70
- package/cjs/components/ProfileBandNavigation/types/index.d.ts +0 -15
- package/cjs/components/ProfileBandNavigation/types/index.js +0 -2
- package/cjs/components/ProfilesList/index.d.ts +0 -27
- package/cjs/components/ProfilesList/index.js +0 -16
- package/cjs/components/RelationEditor/index.d.ts +0 -6
- package/cjs/components/RelationEditor/index.js +0 -50
- package/cjs/components/attributes/AttributesView/index.d.ts +0 -7
- package/cjs/components/attributes/AttributesView/index.js +0 -15
- package/cjs/components/attributes/editMode/AttributesView/index.d.ts +0 -23
- package/cjs/components/attributes/editMode/AttributesView/index.js +0 -14
- package/cjs/components/attributes/editMode/EntityCreator/index.d.ts +0 -25
- package/cjs/components/attributes/editMode/EntityCreator/index.js +0 -42
- package/cjs/components/attributes/editMode/ReferenceAttribute/index.d.ts +0 -4
- package/cjs/components/attributes/editMode/ReferenceAttribute/index.js +0 -48
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.d.ts +0 -2
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.js +0 -34
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.d.ts +0 -1
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.js +0 -19
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.d.ts +0 -1
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.js +0 -20
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.d.ts +0 -5
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.js +0 -79
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/types.d.ts +0 -11
- package/cjs/components/attributes/readMode/AttributesPager/index.d.ts +0 -28
- package/cjs/components/attributes/readMode/AttributesPager/index.js +0 -43
- package/cjs/components/attributes/readMode/AttributesView/index.d.ts +0 -23
- package/cjs/components/attributes/readMode/AttributesView/index.js +0 -14
- package/cjs/test-utils/store-utils.d.ts +0 -78
- package/cjs/test-utils/store-utils.js +0 -19
- package/esm/components/ProfileBandNavigation/helpers/index.d.ts +0 -7
- package/esm/components/ProfileBandNavigation/helpers/index.js +0 -66
- package/esm/components/ProfileBandNavigation/types/index.d.ts +0 -15
- package/esm/components/ProfileBandNavigation/types/index.js +0 -1
- package/esm/components/ProfilesList/index.d.ts +0 -27
- package/esm/components/ProfilesList/index.js +0 -10
- package/esm/components/RelationEditor/index.d.ts +0 -6
- package/esm/components/RelationEditor/index.js +0 -21
- package/esm/components/attributes/AttributesView/index.d.ts +0 -7
- package/esm/components/attributes/AttributesView/index.js +0 -9
- package/esm/components/attributes/editMode/AttributesView/index.d.ts +0 -23
- package/esm/components/attributes/editMode/AttributesView/index.js +0 -8
- package/esm/components/attributes/editMode/EntityCreator/index.d.ts +0 -25
- package/esm/components/attributes/editMode/EntityCreator/index.js +0 -13
- package/esm/components/attributes/editMode/ReferenceAttribute/index.d.ts +0 -4
- package/esm/components/attributes/editMode/ReferenceAttribute/index.js +0 -19
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.d.ts +0 -2
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.js +0 -27
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.d.ts +0 -1
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.js +0 -15
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.d.ts +0 -1
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.js +0 -13
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.d.ts +0 -5
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.js +0 -72
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/types.d.ts +0 -11
- package/esm/components/attributes/readMode/AttributesPager/index.d.ts +0 -28
- package/esm/components/attributes/readMode/AttributesPager/index.js +0 -14
- package/esm/components/attributes/readMode/AttributesView/index.d.ts +0 -23
- package/esm/components/attributes/readMode/AttributesView/index.js +0 -8
- package/esm/test-utils/store-utils.d.ts +0 -78
- package/esm/test-utils/store-utils.js +0 -12
- /package/cjs/components/attributes/editMode/{SimpleAttributeEditor/selectors → AttributesPager}/types.js +0 -0
- /package/esm/components/attributes/editMode/{SimpleAttributeEditor/selectors → AttributesPager}/types.js +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { useSelector } from 'react-redux';
|
|
3
2
|
import { cond, prop } from 'ramda';
|
|
4
3
|
import i18n from 'ui-i18n';
|
|
5
4
|
import IconButton from '@mui/material/IconButton';
|
|
@@ -12,21 +11,19 @@ import CloseIcon from '@mui/icons-material/Close';
|
|
|
12
11
|
import InfoIcon from '@mui/icons-material/Info';
|
|
13
12
|
import { SmallIconButtonWithTooltip } from '../../../SmallIconButton';
|
|
14
13
|
import SourceIcon from '../../../SourceIcon/SourceIcon';
|
|
15
|
-
import mdmModule from '@reltio/mdm-module';
|
|
16
14
|
import { findAttributeTypeByUri, getLabel, getSourceSystemLabel } from '@reltio/mdm-sdk';
|
|
15
|
+
import { useMdmMetadata } from '../../../../contexts';
|
|
17
16
|
import { useStyles } from './styles';
|
|
18
17
|
var SourcesRenderer = function (_a) {
|
|
19
|
-
var sourcesUriOrder = _a.sourcesUriOrder;
|
|
18
|
+
var sourcesUriOrder = _a.sourcesUriOrder, metadata = _a.metadata;
|
|
20
19
|
var styles = useStyles();
|
|
21
|
-
var metadata = useSelector(mdmModule.selectors.getMetadata);
|
|
22
20
|
return (React.createElement(React.Fragment, null, sourcesUriOrder.map(function (sourceUri) { return (React.createElement(ListItem, { key: sourceUri, className: styles.popupItem },
|
|
23
21
|
React.createElement(SourceIcon, { className: styles.sourceIcon, sourceType: sourceUri }),
|
|
24
22
|
React.createElement(ListItemText, { primary: getSourceSystemLabel(metadata, sourceUri), primaryTypographyProps: { variant: 'body2' } }))); })));
|
|
25
23
|
};
|
|
26
24
|
var AttributeRenderer = function (_a) {
|
|
27
|
-
var attributeUri = _a.attributeUri;
|
|
25
|
+
var attributeUri = _a.attributeUri, metadata = _a.metadata;
|
|
28
26
|
var styles = useStyles();
|
|
29
|
-
var metadata = useSelector(mdmModule.selectors.getMetadata);
|
|
30
27
|
var attributeType = findAttributeTypeByUri(metadata, attributeUri);
|
|
31
28
|
return (React.createElement(ListItem, { key: attributeType.uri, className: styles.popupItem },
|
|
32
29
|
React.createElement(ListItemText, { primary: getLabel(attributeType.label), primaryTypographyProps: { variant: 'body2' } })));
|
|
@@ -37,22 +34,28 @@ var getInfoTitle = cond([
|
|
|
37
34
|
[prop('comparisonAttributeUri'), function () { return i18n.text('Comparison attribute'); }]
|
|
38
35
|
]);
|
|
39
36
|
var getInfoContent = cond([
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
[
|
|
38
|
+
prop('sourcesUriOrder'),
|
|
39
|
+
// eslint-disable-next-line react/display-name
|
|
40
|
+
function (_a, metadata) {
|
|
42
41
|
var sourcesUriOrder = _a.sourcesUriOrder;
|
|
43
|
-
return React.createElement(SourcesRenderer, { sourcesUriOrder: sourcesUriOrder });
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
[
|
|
42
|
+
return React.createElement(SourcesRenderer, { metadata: metadata, sourcesUriOrder: sourcesUriOrder });
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
[
|
|
46
|
+
prop('primaryAttributeUri'),
|
|
47
|
+
// eslint-disable-next-line react/display-name
|
|
48
|
+
function (_a, metadata) {
|
|
47
49
|
var primaryAttributeUri = _a.primaryAttributeUri;
|
|
48
|
-
return React.createElement(AttributeRenderer, { attributeUri: primaryAttributeUri });
|
|
49
|
-
}
|
|
50
|
+
return (React.createElement(AttributeRenderer, { metadata: metadata, attributeUri: primaryAttributeUri }));
|
|
51
|
+
}
|
|
52
|
+
],
|
|
50
53
|
[
|
|
51
54
|
prop('comparisonAttributeUri'),
|
|
52
55
|
// eslint-disable-next-line react/display-name
|
|
53
|
-
function (_a) {
|
|
56
|
+
function (_a, metadata) {
|
|
54
57
|
var comparisonAttributeUri = _a.comparisonAttributeUri;
|
|
55
|
-
return React.createElement(AttributeRenderer, { attributeUri: comparisonAttributeUri });
|
|
58
|
+
return (React.createElement(AttributeRenderer, { metadata: metadata, attributeUri: comparisonAttributeUri }));
|
|
56
59
|
}
|
|
57
60
|
]
|
|
58
61
|
]);
|
|
@@ -60,6 +63,7 @@ var RuleTypeInfoButton = function (_a) {
|
|
|
60
63
|
var info = _a.info;
|
|
61
64
|
var styles = useStyles();
|
|
62
65
|
var _b = useState(null), anchorEl = _b[0], setAnchorEl = _b[1];
|
|
66
|
+
var metadata = useMdmMetadata();
|
|
63
67
|
var openPopup = function (event) { return setAnchorEl(event.currentTarget); };
|
|
64
68
|
var closePopup = function () { return setAnchorEl(null); };
|
|
65
69
|
return (React.createElement(React.Fragment, null,
|
|
@@ -75,6 +79,6 @@ var RuleTypeInfoButton = function (_a) {
|
|
|
75
79
|
React.createElement(IconButton, { className: styles.closeButton, onClick: closePopup, size: "large" },
|
|
76
80
|
React.createElement(CloseIcon, null)),
|
|
77
81
|
React.createElement(Typography, { variant: 'subtitle1', className: styles.popupTitle }, getInfoTitle(info))),
|
|
78
|
-
React.createElement(List, { component: "div", className: styles.popupItemsWrapper }, getInfoContent(info)))));
|
|
82
|
+
React.createElement(List, { component: "div", className: styles.popupItemsWrapper }, getInfoContent(info, metadata)))));
|
|
79
83
|
};
|
|
80
84
|
export default RuleTypeInfoButton;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useSelector } from 'react-redux';
|
|
3
2
|
import List from '@mui/material/List';
|
|
4
3
|
import ListItem from '@mui/material/ListItem';
|
|
5
4
|
import ListItemText from '@mui/material/ListItemText';
|
|
6
5
|
import { getCrosswalkColor, getCrosswalkId, getSourceSystemLabel } from '@reltio/mdm-sdk';
|
|
7
6
|
import SourceIcon from '../../../SourceIcon/SourceIcon';
|
|
8
|
-
import { useCrosswalkHighlight } from '../../../../contexts';
|
|
9
|
-
import mdmModule from '@reltio/mdm-module';
|
|
7
|
+
import { useCrosswalkHighlight, useMdmMetadata } from '../../../../contexts';
|
|
10
8
|
import ColoredBlock from '../../ColoredBlock/ColoredBlock';
|
|
11
9
|
import { useStyles } from './styles';
|
|
12
10
|
var WinnerSource = function (_a) {
|
|
13
11
|
var crosswalk = _a.crosswalk;
|
|
14
12
|
var styles = useStyles();
|
|
15
|
-
var metadata =
|
|
13
|
+
var metadata = useMdmMetadata();
|
|
16
14
|
var _b = useCrosswalkHighlight(crosswalk), isDimmed = _b.isDimmed, highlightCrosswalk = _b.highlightCrosswalk, removeHighlight = _b.removeHighlight;
|
|
17
15
|
return (React.createElement(ColoredBlock, { className: styles.winnerSourceItem, color: isDimmed ? 'rgba(0, 0, 0, 0.12)' : getCrosswalkColor(getCrosswalkId(crosswalk)), opacity: isDimmed ? 0.38 : 1, onMouseEnter: function () { return highlightCrosswalk(); }, onMouseLeave: function () { return removeHighlight(); } },
|
|
18
16
|
React.createElement(SourceIcon, { className: styles.sourceIcon, sourceType: crosswalk.type }),
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
import React, { useMemo, useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ascend, filter, has, isNil, map, pipe, prop, propEq, without } from 'ramda';
|
|
3
|
+
import i18n from 'ui-i18n';
|
|
4
|
+
import moment from 'moment';
|
|
5
|
+
import { CrosswalksAttrTypes, formatDateTime, getCrosswalksTypes, getSourceSystemLabel, parseTimestamp } from '@reltio/mdm-sdk';
|
|
6
|
+
import Typography from '@mui/material/Typography';
|
|
7
|
+
import DeleteIcon from '@mui/icons-material/Delete';
|
|
3
8
|
import ConfirmDeleteDialog from '../../ConfirmDeleteDialog/ConfirmDeleteDialog';
|
|
4
9
|
import MoreAttributesButton from '../../attributes/editMode/MoreAttributesButton';
|
|
5
10
|
import SimpleDropDownSelector from '../../SimpleDropDownSelector/SimpleDropDownSelector';
|
|
6
11
|
import { SmallIconButtonWithTooltip } from '../../SmallIconButton';
|
|
7
12
|
import SourceIcon from '../../SourceIcon/SourceIcon';
|
|
8
13
|
import { TextEditor } from '../../editors';
|
|
9
|
-
import Typography from '@mui/material/Typography';
|
|
10
|
-
import DeleteIcon from '@mui/icons-material/Delete';
|
|
11
|
-
import { CrosswalksAttrTypes, formatDateTime, getCrosswalksTypes, getSourceSystemLabel, parseTimestamp } from '@reltio/mdm-sdk';
|
|
12
|
-
import { ascend, filter, has, isNil, map, pipe, prop, propEq, without } from 'ramda';
|
|
13
|
-
import i18n from 'ui-i18n';
|
|
14
|
-
import mdmModule from '@reltio/mdm-module';
|
|
15
14
|
import CopyableValueField from '../CopyableValueField/CopyableValueField';
|
|
16
15
|
import CrosswalkDateEditor from '../CrosswalkDateEditor/CrosswalkDateEditor';
|
|
17
|
-
import
|
|
16
|
+
import { useMdmMetadata } from '../../../contexts';
|
|
18
17
|
import { useStyles } from './styles';
|
|
19
18
|
var CrosswalkAttributes = function (_a) {
|
|
20
19
|
var crosswalk = _a.crosswalk, _b = _a.canEditAttribute, canEditAttribute = _b === void 0 ? true : _b, onEditAttribute = _a.onEditAttribute, onDeleteAttribute = _a.onDeleteAttribute;
|
|
21
20
|
var styles = useStyles();
|
|
22
|
-
var isTempCrosswalk = !('uri' in crosswalk);
|
|
23
|
-
var metadata = useSelector(mdmModule.selectors.getMetadata);
|
|
24
21
|
var _c = useState([]), addedAttributes = _c[0], setAddedAttributes = _c[1];
|
|
25
22
|
var _d = useState(null), pendingDeletionAttrUri = _d[0], setPendingDeletionAttrUri = _d[1];
|
|
23
|
+
var metadata = useMdmMetadata();
|
|
24
|
+
var isTempCrosswalk = !('uri' in crosswalk);
|
|
26
25
|
var addSelectedAttributes = function (selectedAttributes) {
|
|
27
26
|
if (selectedAttributes.length > 0) {
|
|
28
27
|
setAddedAttributes(function (addedAttributes) { return addedAttributes.concat(map(prop('uri'), selectedAttributes)); });
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useSelector } from 'react-redux';
|
|
3
2
|
import { getSourceSystemLabel } from '@reltio/mdm-sdk';
|
|
3
|
+
import Typography from '@mui/material/Typography';
|
|
4
4
|
import ColoredBlock from '../ColoredBlock/ColoredBlock';
|
|
5
5
|
import { useCrosswalkColor } from '../../../contexts/CrosswalksDisplayContext';
|
|
6
6
|
import SourceIcon from '../../SourceIcon/SourceIcon';
|
|
7
|
-
import
|
|
8
|
-
import mdmModule from '@reltio/mdm-module';
|
|
7
|
+
import { useMdmMetadata } from '../../../contexts';
|
|
9
8
|
import { useStyles } from './styles';
|
|
10
9
|
var CrosswalkDragPreview = function (_a) {
|
|
11
10
|
var crosswalk = _a.crosswalk;
|
|
12
11
|
var styles = useStyles();
|
|
12
|
+
var metadata = useMdmMetadata();
|
|
13
13
|
var color = useCrosswalkColor(crosswalk);
|
|
14
|
-
var metadata = useSelector(mdmModule.selectors.getMetadata);
|
|
15
14
|
var sourceSystemLabel = getSourceSystemLabel(metadata, crosswalk.type);
|
|
16
15
|
return (React.createElement(ColoredBlock, { color: color, className: styles.crosswalkPreview },
|
|
17
16
|
React.createElement(SourceIcon, { className: styles.sourceIcon, sourceType: crosswalk.type }),
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
import { useSelector } from 'react-redux';
|
|
1
|
+
import React, { useEffect, useRef, useState, memo } from 'react';
|
|
3
2
|
import i18n from 'ui-i18n';
|
|
3
|
+
import { useDrag } from 'react-dnd';
|
|
4
|
+
import { getEmptyImage } from 'react-dnd-html5-backend';
|
|
5
|
+
import { eqCrosswalks, getLastUriPart, getSourceSystemLabel, isCrosswalkDisabled } from '@reltio/mdm-sdk';
|
|
4
6
|
import Typography from '@mui/material/Typography';
|
|
5
7
|
import DeleteIcon from '@mui/icons-material/Delete';
|
|
6
8
|
import VisibilityIcon from '@mui/icons-material/Visibility';
|
|
7
|
-
import { eqCrosswalks, getLastUriPart, getSourceSystemLabel, isCrosswalkDisabled } from '@reltio/mdm-sdk';
|
|
8
9
|
import ArrowExpandButton from '../../ArrowExpandButton/ArrowExpandButton';
|
|
9
10
|
import ExpandedValueTooltip from '../../ExpandedValueTooltip/ExpandedValueTooltip';
|
|
10
11
|
import ColoredBlock from '../ColoredBlock/ColoredBlock';
|
|
@@ -13,28 +14,26 @@ import { SmallIconButtonWithTooltip } from '../../SmallIconButton';
|
|
|
13
14
|
import SourceIcon from '../../SourceIcon/SourceIcon';
|
|
14
15
|
import Spacer from '../../Spacer/Spacer';
|
|
15
16
|
import { useCrosswalkColor, useCrosswalkFocus, useCrosswalkHighlight, useHighlightedCrosswalks } from '../../../contexts/CrosswalksDisplayContext';
|
|
16
|
-
import mdmModule from '@reltio/mdm-module';
|
|
17
17
|
import DependentIcon from '../../../icons/NestedAttribute';
|
|
18
|
-
import { useDrag } from 'react-dnd';
|
|
19
|
-
import { getEmptyImage } from 'react-dnd-html5-backend';
|
|
20
18
|
import CrosswalkAttributes from '../CrosswalkAttributes/CrosswalkAttributes';
|
|
19
|
+
import { useMdmMetadata } from '../../../contexts';
|
|
21
20
|
import { useStyles } from './styles';
|
|
22
21
|
var CrosswalkRow = function (_a) {
|
|
23
22
|
var crosswalk = _a.crosswalk, isDependent = _a.isDependent, _b = _a.isEmpty, isEmpty = _b === void 0 ? false : _b, _c = _a.isColored, isColored = _c === void 0 ? true : _c, _d = _a.focusable, focusable = _d === void 0 ? true : _d, disableEdit = _a.disableEdit, disableDelete = _a.disableDelete, onDelete = _a.onDelete, onEdit = _a.onEdit;
|
|
24
23
|
var ref = useRef(null);
|
|
24
|
+
var _e = useState(false), expanded = _e[0], setExpanded = _e[1];
|
|
25
|
+
var _f = useState(false), isDeleteDialogOpen = _f[0], setDeleteDialogOpen = _f[1];
|
|
26
|
+
var metadata = useMdmMetadata();
|
|
25
27
|
var crosswalkColor = useCrosswalkColor(crosswalk);
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
+
var _g = useCrosswalkFocus(crosswalk), toggleCrosswalkFocus = _g.toggleCrosswalkFocus, isFocused = _g.isFocused;
|
|
29
|
+
var _h = useCrosswalkHighlight(crosswalk), isDimmed = _h.isDimmed, highlightCrosswalk = _h.highlightCrosswalk, removeHighlight = _h.removeHighlight;
|
|
30
|
+
var scrollToCrosswalk = useHighlightedCrosswalks()[0];
|
|
28
31
|
var coloredCrosswalk = isDimmed ? 'rgba(0, 0, 0, 0.12)' : crosswalkColor;
|
|
29
32
|
var color = isEmpty ? '#FFF' : isColored ? coloredCrosswalk : '#CACCD1';
|
|
30
|
-
var scrollToCrosswalk = useHighlightedCrosswalks()[0];
|
|
31
|
-
var styles = useStyles({ color: color, isOpaque: !isDimmed, isFocused: isFocused });
|
|
32
|
-
var _g = useState(false), expanded = _g[0], setExpanded = _g[1];
|
|
33
|
-
var _h = useState(false), isDeleteDialogOpen = _h[0], setDeleteDialogOpen = _h[1];
|
|
34
|
-
var metadata = useSelector(mdmModule.selectors.getMetadata);
|
|
35
33
|
var sourceSystemLabel = getSourceSystemLabel(metadata, crosswalk.type);
|
|
36
34
|
var crosswalkId = getLastUriPart(crosswalk.uri);
|
|
37
35
|
var crosswalkDisabled = isCrosswalkDisabled(crosswalk);
|
|
36
|
+
var styles = useStyles({ color: color, isOpaque: !isDimmed, isFocused: isFocused });
|
|
38
37
|
var _j = useDrag({
|
|
39
38
|
item: {
|
|
40
39
|
type: 'Crosswalk',
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { getSourceSystemLabel } from '@reltio/mdm-sdk';
|
|
3
3
|
import Typography from '@mui/material/Typography';
|
|
4
4
|
import VisibilityIcon from '@mui/icons-material/Visibility';
|
|
5
5
|
import SourceIcon from '../../SourceIcon/SourceIcon';
|
|
6
6
|
import SmallIconButton from '../../SmallIconButton/SmallIconButton';
|
|
7
7
|
import { useCrosswalkHighlight } from '../../../contexts/CrosswalksDisplayContext';
|
|
8
|
-
import
|
|
9
|
-
import { getSourceSystemLabel } from '@reltio/mdm-sdk';
|
|
8
|
+
import { useMdmMetadata } from '../../../contexts';
|
|
10
9
|
import { useStyles } from './styles';
|
|
11
10
|
var DummyCrosswalkRow = function (_a) {
|
|
12
11
|
var crosswalkType = _a.crosswalkType, _b = _a.focusable, focusable = _b === void 0 ? true : _b;
|
|
13
12
|
var isDimmed = useCrosswalkHighlight().isDimmed;
|
|
14
13
|
var styles = useStyles({ isOpaque: !isDimmed });
|
|
15
|
-
var metadata =
|
|
14
|
+
var metadata = useMdmMetadata();
|
|
16
15
|
var sourceSystemLabel = getSourceSystemLabel(metadata, crosswalkType);
|
|
17
16
|
return (React.createElement("div", { className: styles.root },
|
|
18
17
|
React.createElement(SmallIconButton, { size: "XXS", className: styles.focusedIcon, icon: focusable && VisibilityIcon, disabled: true }),
|
|
@@ -9,7 +9,7 @@ declare function useEditorContext(fieldName: any, dataTypeDefinition: any): {
|
|
|
9
9
|
format?: undefined;
|
|
10
10
|
tenant?: undefined;
|
|
11
11
|
} | {
|
|
12
|
-
lookups:
|
|
12
|
+
lookups: import("@reltio/mdm-sdk").Lookups;
|
|
13
13
|
lookupCode: any;
|
|
14
14
|
getLookups: () => any;
|
|
15
15
|
entries?: undefined;
|
|
@@ -18,7 +18,7 @@ declare function useEditorContext(fieldName: any, dataTypeDefinition: any): {
|
|
|
18
18
|
format?: undefined;
|
|
19
19
|
tenant?: undefined;
|
|
20
20
|
} | {
|
|
21
|
-
lookups:
|
|
21
|
+
lookups: import("@reltio/mdm-sdk").Lookups;
|
|
22
22
|
lookupCode: any;
|
|
23
23
|
getLookups: ({ type, parents, displayNamePrefix, max, offset }: {
|
|
24
24
|
type: any;
|
|
@@ -51,7 +51,7 @@ declare function useEditorContext(fieldName: any, dataTypeDefinition: any): {
|
|
|
51
51
|
getSuggestions?: undefined;
|
|
52
52
|
tenant?: undefined;
|
|
53
53
|
} | {
|
|
54
|
-
tenant:
|
|
54
|
+
tenant: string;
|
|
55
55
|
entries?: undefined;
|
|
56
56
|
lookups?: undefined;
|
|
57
57
|
lookupCode?: undefined;
|
|
@@ -9,17 +9,17 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import mdm, { profile } from '@reltio/mdm-module';
|
|
13
|
-
import { DataTypes, intl, getDependentLookups, getFacetedAttributeData, getLookups, resolveLookupsList, getNumberFormat } from '@reltio/mdm-sdk';
|
|
14
|
-
import { useDispatch, useSelector } from 'react-redux';
|
|
15
12
|
import { useCallback } from 'react';
|
|
16
13
|
import { propOr, prop, pipe, keys } from 'ramda';
|
|
14
|
+
import { DataTypes, intl, getDependentLookups, getFacetedAttributeData, getLookups, resolveLookupsList, getNumberFormat } from '@reltio/mdm-sdk';
|
|
15
|
+
import { useMdmAction, useMdmAttributePresentations, useMdmGlobalSearchRequestOptions, useMdmLookups, useMdmTenant } from '../../../contexts';
|
|
17
16
|
var useEditorContext = function (fieldName, dataTypeDefinition) {
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
17
|
+
var lookupsLoaded = useMdmAction('lookupsLoaded');
|
|
18
|
+
var lookupsForTypeResolved = useMdmAction('lookupsForTypeResolved');
|
|
19
|
+
var tenant = useMdmTenant();
|
|
20
|
+
var lookups = useMdmLookups();
|
|
21
|
+
var attributePresentations = useMdmAttributePresentations();
|
|
22
|
+
var globalSearchRequestOptions = useMdmGlobalSearchRequestOptions();
|
|
23
23
|
var typeaheadGetSuggestion = useCallback(function (searchValue, max, pageNo) {
|
|
24
24
|
return getFacetedAttributeData({
|
|
25
25
|
fieldName: fieldName,
|
|
@@ -37,7 +37,7 @@ var useEditorContext = function (fieldName, dataTypeDefinition) {
|
|
|
37
37
|
lookupCode: lookupCode,
|
|
38
38
|
getLookups: function () {
|
|
39
39
|
return getLookups().then(function (lookups) {
|
|
40
|
-
|
|
40
|
+
lookupsLoaded(lookups);
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
};
|
|
@@ -57,10 +57,7 @@ var useEditorContext = function (fieldName, dataTypeDefinition) {
|
|
|
57
57
|
return resolveLookupsList(lookupsList).then(function (response) {
|
|
58
58
|
if (Array.isArray(response)) {
|
|
59
59
|
var lookups_1 = response.reduce(function (acc, lookupData) { return (__assign(__assign({}, acc), lookupData[type])); }, {});
|
|
60
|
-
|
|
61
|
-
type: type,
|
|
62
|
-
values: lookups_1
|
|
63
|
-
}));
|
|
60
|
+
lookupsForTypeResolved({ type: type, values: lookups_1 });
|
|
64
61
|
}
|
|
65
62
|
});
|
|
66
63
|
}
|
|
@@ -18,11 +18,11 @@ export type DateRangeEditorProps = {
|
|
|
18
18
|
};
|
|
19
19
|
declare const _default: {
|
|
20
20
|
(props: DateRangeEditorProps & React.RefAttributes<HTMLDivElement> & {
|
|
21
|
-
values?: string |
|
|
21
|
+
values?: string | Omit<import("@reltio/mdm-sdk/src/constants/filter-values").default, "PICK_DATE"> | [Date, Date];
|
|
22
22
|
options?: import("../../../HOCs/withDateRangeSelector/helpers").Option[];
|
|
23
23
|
dataTypeDefinition?: import("@reltio/mdm-sdk").DataTypeDefinition;
|
|
24
|
-
getValuesDateRange?: (value: string |
|
|
25
|
-
onChange?: (value: string |
|
|
24
|
+
getValuesDateRange?: (value: string | Omit<import("@reltio/mdm-sdk/src/constants/filter-values").default, "PICK_DATE"> | [Date, Date]) => [Date, Date];
|
|
25
|
+
onChange?: (value: string | Omit<import("@reltio/mdm-sdk/src/constants/filter-values").default, "PICK_DATE"> | [Date, Date]) => void;
|
|
26
26
|
DateRangePickerProps?: Partial<{
|
|
27
27
|
onApply: ([startDate, endDate]: [Date, Date]) => void;
|
|
28
28
|
values?: [Date, Date];
|
|
@@ -117,7 +117,7 @@ var TypeaheadEditor = function (_a) {
|
|
|
117
117
|
}
|
|
118
118
|
};
|
|
119
119
|
return (React.createElement(Autosuggest, { suggestions: displayedSuggestions, shouldRenderSuggestions: T, inputProps: __assign(__assign({ value: inputValue, onChange: pipe(nthArg(1), onInputChange), onKeyDown: function (event) {
|
|
120
|
-
if (event.
|
|
120
|
+
if (event.code === 'Enter' && multiple && !hasHighlightedItem) {
|
|
121
121
|
onInputChange({ method: 'enter', newValue: currentValue });
|
|
122
122
|
}
|
|
123
123
|
}, fullWidth: fullWidth }, inputProps), { autoComplete: 'nope' }), getSuggestionValue: identity, onSuggestionsFetchRequested: ifElse(propEq('reason', 'input-changed'), debouncedFetchSuggestions, fetchSuggestions), onSuggestionsClearRequested: pipe(always([]), setSuggestions, F, setPlaceholderVisibility, always(1), setPageNumber), renderInputComponent: function (_a) {
|
|
@@ -9,5 +9,5 @@ declare const _default: React.ForwardRefExoticComponent<Pick<{
|
|
|
9
9
|
isCollapsed?: boolean;
|
|
10
10
|
showCollapseIcon?: boolean;
|
|
11
11
|
showLine?: boolean;
|
|
12
|
-
} & React.SVGProps<SVGGElement>, "string" | "y" | "d" | "filter" | "fill" | "values" | "
|
|
12
|
+
} & React.SVGProps<SVGGElement>, "string" | "y" | "d" | "filter" | "fill" | "values" | "in" | "id" | "type" | "name" | "direction" | "max" | "local" | "visibility" | "operator" | "attributeType" | "mode" | "key" | "children" | "offset" | "method" | "path" | "end" | "radius" | "order" | "width" | "height" | "version" | "format" | "attributeName" | "origin" | "from" | "to" | "style" | "clipPath" | "mask" | "color" | "cursor" | "display" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "imageRendering" | "letterSpacing" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "overflow" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "accumulate" | "unicode" | "x" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "className" | "viewBox" | "lang" | "media" | "min" | "target" | "role" | "tabIndex" | "crossOrigin" | "accentHeight" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "orient" | "orientation" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "isDashed" | "isCollapsed" | "showCollapseIcon" | "showLine"> & React.RefAttributes<unknown>>;
|
|
13
13
|
export default _default;
|
|
@@ -16,7 +16,7 @@ export declare const HistoryCircleWithTooltip: React.ForwardRefExoticComponent<i
|
|
|
16
16
|
isCollapsed?: boolean;
|
|
17
17
|
showCollapseIcon?: boolean;
|
|
18
18
|
showLine?: boolean;
|
|
19
|
-
} & React.SVGProps<SVGGElement>, "string" | "y" | "d" | "filter" | "fill" | "values" | "
|
|
19
|
+
} & React.SVGProps<SVGGElement>, "string" | "y" | "d" | "filter" | "fill" | "values" | "in" | "id" | "type" | "name" | "direction" | "max" | "local" | "visibility" | "operator" | "attributeType" | "mode" | "key" | "children" | "offset" | "method" | "path" | "end" | "radius" | "order" | "width" | "height" | "version" | "format" | "attributeName" | "origin" | "from" | "to" | "style" | "clipPath" | "mask" | "color" | "cursor" | "display" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "imageRendering" | "letterSpacing" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "overflow" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "accumulate" | "unicode" | "x" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "className" | "viewBox" | "lang" | "media" | "min" | "target" | "role" | "tabIndex" | "crossOrigin" | "accentHeight" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "orient" | "orientation" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "isDashed" | "isCollapsed" | "showCollapseIcon" | "showLine"> & React.RefAttributes<unknown>>;
|
|
20
20
|
type Props = {
|
|
21
21
|
graphData: HistoryData;
|
|
22
22
|
onHistoryCircleMouseOver?: (uri: string, timestamp: number, index: number) => void;
|
|
@@ -1,28 +1,24 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useDispatch, useSelector } from 'react-redux';
|
|
3
2
|
import i18n from 'ui-i18n';
|
|
4
3
|
import MoreVertIcon from '@mui/icons-material/MoreVert';
|
|
5
|
-
import mdmModule, { profile } from '@reltio/mdm-module';
|
|
6
4
|
import { HistoryMode } from '@reltio/mdm-sdk';
|
|
7
5
|
import { SmallIconButton } from '../../SmallIconButton';
|
|
8
6
|
import DropDownMenuButton from '../../DropDownMenuButton/DropDownMenuButton';
|
|
9
7
|
import MenuItemRenderer from './MenuItemRenderer';
|
|
8
|
+
import { useMdmAction, useMdmHistoryMode } from '../../../contexts';
|
|
10
9
|
var HistoryMenuButton = function () {
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var handleModeChange = function (selectedMode) {
|
|
14
|
-
dispatch(profile.history.actions.setHistoryMode(selectedMode));
|
|
15
|
-
};
|
|
10
|
+
var setHistoryMode = useMdmAction('setHistoryMode');
|
|
11
|
+
var mode = useMdmHistoryMode();
|
|
16
12
|
var menuItems = [
|
|
17
13
|
{
|
|
18
14
|
text: i18n.text('Compare to Current view'),
|
|
19
15
|
selected: mode === HistoryMode.Current,
|
|
20
|
-
onClick: function () { return
|
|
16
|
+
onClick: function () { return setHistoryMode(HistoryMode.Current); }
|
|
21
17
|
},
|
|
22
18
|
{
|
|
23
19
|
text: i18n.text('Compare to Previous view'),
|
|
24
20
|
selected: mode === HistoryMode.Previous,
|
|
25
|
-
onClick: function () { return
|
|
21
|
+
onClick: function () { return setHistoryMode(HistoryMode.Previous); }
|
|
26
22
|
}
|
|
27
23
|
];
|
|
28
24
|
return (React.createElement(DropDownMenuButton, { MenuItemRenderer: MenuItemRenderer, buttonComponent: SmallIconButton, buttonProps: {
|
|
@@ -10,28 +10,29 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
13
|
-
import { useDispatch, useSelector } from 'react-redux';
|
|
14
13
|
import ReactResizeDetector from 'react-resize-detector';
|
|
15
14
|
import i18n from 'ui-i18n';
|
|
16
15
|
import { isNil, uniqBy, prop, identity } from 'ramda';
|
|
17
16
|
import classnames from 'classnames';
|
|
18
17
|
import { getEntity, Mode, getCrosswalkType } from '@reltio/mdm-sdk';
|
|
19
|
-
import mdm, { profile } from '@reltio/mdm-module';
|
|
20
18
|
import Button from '@mui/material/Button';
|
|
21
19
|
import HistoryRow from '../HistoryRow/HistoryRow';
|
|
22
20
|
import HistoryGraph from '../HistoryGraph/HistoryGraph';
|
|
23
21
|
import LinearLoadIndicator from '../../LinearLoadIndicator/LinearLoadIndicator';
|
|
22
|
+
import { useMdmAction, useMdmIsEditableMode, useMdmMetadata } from '../../../contexts';
|
|
24
23
|
import { useStyles } from './styles';
|
|
25
24
|
var HistoryTree = function (_a) {
|
|
26
25
|
var _b;
|
|
27
26
|
var historyData = _a.historyData, isLoading = _a.isLoading, canLoadMore = _a.canLoadMore, onLoadMore = _a.onLoadMore, entityUri = _a.entityUri, historyEvent = _a.historyEvent, findPreviousChange = _a.findPreviousChange;
|
|
28
27
|
var styles = useStyles();
|
|
29
|
-
var dispatch = useDispatch();
|
|
30
|
-
var isEditableMode = useSelector(mdm.selectors.getIsEditableMode);
|
|
31
|
-
var metadata = useSelector(mdm.selectors.getMetadata);
|
|
32
28
|
var _c = useState({ historyLanes: {}, rows: [] }), graphData = _c[0], setGraphData = _c[1];
|
|
33
29
|
var _d = useState(false), isScrollable = _d[0], setIsScrollable = _d[1];
|
|
34
30
|
var _e = useState(-1), selectedIndex = _e[0], setSelectedIndex = _e[1];
|
|
31
|
+
var setHistoryEvent = useMdmAction('setHistoryEvent');
|
|
32
|
+
var clearHistoryEvent = useMdmAction('clearHistoryEvent');
|
|
33
|
+
var modeUpdated = useMdmAction('modeUpdated');
|
|
34
|
+
var metadata = useMdmMetadata();
|
|
35
|
+
var isEditableMode = useMdmIsEditableMode();
|
|
35
36
|
useEffect(function () {
|
|
36
37
|
if (isNil(historyEvent)) {
|
|
37
38
|
setSelectedIndex(0);
|
|
@@ -77,14 +78,14 @@ var HistoryTree = function (_a) {
|
|
|
77
78
|
var handleHistoryRowClick = function (index, change, isSelected, isCurrent) {
|
|
78
79
|
if (isEditableMode) {
|
|
79
80
|
if (window.confirm(i18n.text('Are you sure you want to go in history mode? All your changes will be lost.'))) {
|
|
80
|
-
|
|
81
|
+
modeUpdated(Mode.Viewing);
|
|
81
82
|
}
|
|
82
83
|
else {
|
|
83
84
|
return;
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
87
|
if ((isCurrent && !isSelected) || (!isCurrent && isSelected)) {
|
|
87
|
-
|
|
88
|
+
clearHistoryEvent();
|
|
88
89
|
setSelectedIndex(0);
|
|
89
90
|
}
|
|
90
91
|
else if (!isCurrent && !isSelected) {
|
|
@@ -93,7 +94,7 @@ var HistoryTree = function (_a) {
|
|
|
93
94
|
var aStamp = aChange === null || aChange === void 0 ? void 0 : aChange.timestamp;
|
|
94
95
|
var bStamp = bChange === null || bChange === void 0 ? void 0 : bChange.timestamp;
|
|
95
96
|
var overrideUri = (change === null || change === void 0 ? void 0 : change.uri) === entityUri ? null : change === null || change === void 0 ? void 0 : change.uri;
|
|
96
|
-
|
|
97
|
+
setHistoryEvent({ aStamp: aStamp, bStamp: bStamp, overrideUri: overrideUri });
|
|
97
98
|
setSelectedIndex(index);
|
|
98
99
|
}
|
|
99
100
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"historyTree" | "graph" | "history" | "buttonContainer" | "shadow">;
|
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import mdmModule, { profile } from '@reltio/mdm-module';
|
|
2
|
+
import i18n from 'ui-i18n';
|
|
4
3
|
import Button from '@mui/material/Button';
|
|
5
4
|
import Typography from '@mui/material/Typography';
|
|
6
|
-
import {
|
|
7
|
-
import i18n from 'ui-i18n';
|
|
5
|
+
import { useMdmAction, useMdmHistoryEvent } from '../../../contexts';
|
|
8
6
|
import { useStyles } from './styles';
|
|
9
7
|
var ProfileBandHistory = function () {
|
|
10
8
|
var styles = useStyles();
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var onCancel = pipe(profile.history.actions.clearHistoryEvent, dispatch);
|
|
9
|
+
var clearHistoryEvent = useMdmAction('clearHistoryEvent');
|
|
10
|
+
var historyEvent = useMdmHistoryEvent();
|
|
14
11
|
return historyEvent ? (React.createElement("div", { className: styles.root },
|
|
15
12
|
React.createElement(Typography, { component: 'div' },
|
|
16
13
|
i18n.text('You are viewing a historic slice:'),
|
|
17
14
|
' ',
|
|
18
15
|
React.createElement("span", { className: styles.slice }, i18n.date(historyEvent.aStamp, 'llll'))),
|
|
19
|
-
React.createElement(Button, { className: styles.cancelButton, variant: "contained", color: "primary", onClick:
|
|
16
|
+
React.createElement(Button, { className: styles.cancelButton, variant: "contained", color: "primary", onClick: clearHistoryEvent }, i18n.text('Cancel')))) : null;
|
|
20
17
|
};
|
|
21
18
|
export default ProfileBandHistory;
|