@reltio/components 1.4.1638 → 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/TenantLabel/TenantLabel.js +3 -4
- 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 +6 -6
- package/cjs/components/index.js +6 -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/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/TenantLabel/TenantLabel.js +3 -4
- 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 +6 -6
- package/esm/components/index.js +6 -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/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,21 +0,0 @@
|
|
|
1
|
-
import RelationEditor from './RelationEditor';
|
|
2
|
-
import mdmModule, { profile } from '@reltio/mdm-module';
|
|
3
|
-
import { connect } from 'react-redux';
|
|
4
|
-
import { getRelationEditorActiveError, isTempUri } from '@reltio/mdm-sdk';
|
|
5
|
-
var getConnectionEntityUri = function (props) { return profile.relations.selectors.getEntityUriFromConnection(props.connection); };
|
|
6
|
-
var getConnectionRelationUri = function (props) { return profile.relations.selectors.getRelationUriFromConnection(props.connection); };
|
|
7
|
-
var mapStateToProps = function (state, ownProps) {
|
|
8
|
-
var entityUri = getConnectionEntityUri(ownProps);
|
|
9
|
-
var relationUri = getConnectionRelationUri(ownProps);
|
|
10
|
-
var isTempEntity = isTempUri(entityUri);
|
|
11
|
-
return {
|
|
12
|
-
initialConnection: mdmModule.selectors.getInitialConnection(state, ownProps.config.id, relationUri),
|
|
13
|
-
initialModifiedEntity: mdmModule.selectors.getInitialConnectionTempEntity(state, ownProps.config.id, relationUri),
|
|
14
|
-
modifiedEntity: isTempEntity ? mdmModule.selectors.getModifiedEntity(state, entityUri) : null,
|
|
15
|
-
allModifiedEntities: isTempEntity ? mdmModule.selectors.getModifiedEntities(state) : null,
|
|
16
|
-
globalSearchRequestOptions: mdmModule.selectors.getGlobalSearchRequestOptions(state, ['ovOnly']),
|
|
17
|
-
error: getRelationEditorActiveError(ownProps.connection, mdmModule.selectors.getProfileErrors(state))
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export { RelationEditor };
|
|
21
|
-
export default connect(mapStateToProps)(RelationEditor);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { AttributesViewOwnProps } from '../types';
|
|
3
|
-
import AttributesView from './AttributesView';
|
|
4
|
-
type Props = Pick<AttributesViewOwnProps, 'entity' | 'mode'>;
|
|
5
|
-
export { AttributesView };
|
|
6
|
-
declare const _default: import("react-redux").ConnectedComponent<({ mode, attributesCount, pinnedAttributes, entity, ...restProps }: AttributesViewOwnProps) => JSX.Element, import("react-redux").Omit<AttributesViewOwnProps, "entity" | "mode"> & Props>;
|
|
7
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { connect } from 'react-redux';
|
|
2
|
-
import mdm from '@reltio/mdm-module';
|
|
3
|
-
import AttributesView from './AttributesView';
|
|
4
|
-
var mapStateToProps = function (state, ownProps) { return ({
|
|
5
|
-
entity: ownProps.entity || mdm.selectors.getEntityWithDiff(state),
|
|
6
|
-
mode: ownProps.mode || mdm.selectors.getMode(state)
|
|
7
|
-
}); };
|
|
8
|
-
export { AttributesView };
|
|
9
|
-
export default connect(mapStateToProps)(AttributesView);
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import AttributesView from './AttributesView';
|
|
3
|
-
export { AttributesView };
|
|
4
|
-
declare const _default: import("react-redux").ConnectedComponent<({ className, entity, mode, metadata, caption, excludeUris, includeUris, pinnedAttributes }: {
|
|
5
|
-
entity?: import("@reltio/mdm-sdk").Entity;
|
|
6
|
-
caption?: string;
|
|
7
|
-
mode?: import("@reltio/mdm-sdk").Mode;
|
|
8
|
-
metadata: import("@reltio/mdm-sdk").Metadata;
|
|
9
|
-
includeUris?: string[];
|
|
10
|
-
excludeUris?: string[];
|
|
11
|
-
className?: string;
|
|
12
|
-
pinnedAttributes?: import("@reltio/mdm-sdk").PinnedAttribute[];
|
|
13
|
-
}) => JSX.Element, import("react-redux").Omit<{
|
|
14
|
-
entity?: import("@reltio/mdm-sdk").Entity;
|
|
15
|
-
caption?: string;
|
|
16
|
-
mode?: import("@reltio/mdm-sdk").Mode;
|
|
17
|
-
metadata: import("@reltio/mdm-sdk").Metadata;
|
|
18
|
-
includeUris?: string[];
|
|
19
|
-
excludeUris?: string[];
|
|
20
|
-
className?: string;
|
|
21
|
-
pinnedAttributes?: import("@reltio/mdm-sdk").PinnedAttribute[];
|
|
22
|
-
}, "metadata">>;
|
|
23
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { connect } from 'react-redux';
|
|
2
|
-
import mdmModule from '@reltio/mdm-module';
|
|
3
|
-
import AttributesView from './AttributesView';
|
|
4
|
-
var mapStateToProps = function (state) { return ({
|
|
5
|
-
metadata: mdmModule.selectors.getMetadata(state)
|
|
6
|
-
}); };
|
|
7
|
-
export { AttributesView };
|
|
8
|
-
export default connect(mapStateToProps)(AttributesView);
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export { EntityCreator };
|
|
2
|
-
declare const _default: import("react-redux").ConnectedComponent<{
|
|
3
|
-
({ entity, entityType, attributeTypesSelectionStrategy, mode, onAddAttributes, onDeleteAttribute, onChangeAttribute }: {
|
|
4
|
-
entity: any;
|
|
5
|
-
entityType: any;
|
|
6
|
-
attributeTypesSelectionStrategy?: (entityType: any) => any;
|
|
7
|
-
mode: any;
|
|
8
|
-
onAddAttributes: any;
|
|
9
|
-
onDeleteAttribute: any;
|
|
10
|
-
onChangeAttribute: any;
|
|
11
|
-
}): JSX.Element;
|
|
12
|
-
propTypes: {
|
|
13
|
-
entityUri: import("prop-types").Requireable<string>;
|
|
14
|
-
parentUri: import("prop-types").Requireable<string>;
|
|
15
|
-
entity: import("prop-types").Requireable<object>;
|
|
16
|
-
entityType: import("prop-types").Requireable<object>;
|
|
17
|
-
attributeTypesSelectionStrategy: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
18
|
-
mode: import("prop-types").Requireable<any>;
|
|
19
|
-
onAddAttributes: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
20
|
-
onDeleteAttribute: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
21
|
-
onChangeAttribute: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
22
|
-
};
|
|
23
|
-
}, any>;
|
|
24
|
-
export default _default;
|
|
25
|
-
import EntityCreator from './EntityCreator';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { connect } from 'react-redux';
|
|
2
|
-
import mdmModule, { profile } from '@reltio/mdm-module';
|
|
3
|
-
import EntityCreator from './EntityCreator';
|
|
4
|
-
var mapStateToProps = function (state, ownProps) { return ({
|
|
5
|
-
entity: ownProps.entityUri && mdmModule.selectors.getModifiedEntity(state, ownProps.entityUri)
|
|
6
|
-
}); };
|
|
7
|
-
var mapDispatchToProps = {
|
|
8
|
-
onAddAttributes: profile.actions.addAttributes,
|
|
9
|
-
onDeleteAttribute: profile.actions.removeAttribute,
|
|
10
|
-
onChangeAttribute: profile.actions.modifyAttribute
|
|
11
|
-
};
|
|
12
|
-
export { EntityCreator };
|
|
13
|
-
export default connect(mapStateToProps, mapDispatchToProps)(EntityCreator);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { connect } from 'react-redux';
|
|
2
|
-
import mdmModule, { profile } from '@reltio/mdm-module';
|
|
3
|
-
import ReferenceAttribute from './ReferenceAttribute';
|
|
4
|
-
import { isTempUri, getReferencedEntityUriFromAttrValue } from '@reltio/mdm-sdk';
|
|
5
|
-
var mapStateToProps = function (state, ownProps) {
|
|
6
|
-
var entityUri = getReferencedEntityUriFromAttrValue(ownProps.attributeValue);
|
|
7
|
-
return {
|
|
8
|
-
modifiedEntity: isTempUri(entityUri) ? mdmModule.selectors.getModifiedEntity(state, entityUri) : null,
|
|
9
|
-
metadata: mdmModule.selectors.getMetadata(state),
|
|
10
|
-
globalSearchRequestOptions: mdmModule.selectors.getGlobalSearchRequestOptions(state, ['ovOnly'])
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
var mapDispatchToProps = {
|
|
14
|
-
onDeleteModifiedEntity: profile.modifiedEntities.actions.entityDeleted,
|
|
15
|
-
onUpdateModifiedEntity: profile.modifiedEntities.actions.entityCreated,
|
|
16
|
-
onDeactivateError: profile.errors.actions.errorDeactivated
|
|
17
|
-
};
|
|
18
|
-
export { ReferenceAttribute };
|
|
19
|
-
export default connect(mapStateToProps, mapDispatchToProps)(ReferenceAttribute);
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import mdmModule from '@reltio/mdm-module';
|
|
2
|
-
import i18n from 'ui-i18n';
|
|
3
|
-
import { getParents } from './helpers/parents';
|
|
4
|
-
import { buildMissedParentsMessage } from './helpers/missedParentsMessage';
|
|
5
|
-
import { fromCache } from './helpers/cache';
|
|
6
|
-
export var getDependentLookupEditorContext = function (state, attributeValue, attributeTypeUri) {
|
|
7
|
-
var node = mdmModule.selectors.getDependentLookupsStructureNode(state, attributeTypeUri);
|
|
8
|
-
if (node) {
|
|
9
|
-
var valueUri = attributeValue.uri;
|
|
10
|
-
var _a = getParents(state, valueUri, node), parents = _a.parents, missedParentsAttributeTypes = _a.missedParentsAttributeTypes;
|
|
11
|
-
var _b = (mdmModule.selectors.getDependentLookupEditorState(state, valueUri) || {}).isBlocked, isBlocked = _b === void 0 ? false : _b;
|
|
12
|
-
var missedParentsMessage = buildMissedParentsMessage(missedParentsAttributeTypes);
|
|
13
|
-
var isEmptyValue = !(attributeValue === null || attributeValue === void 0 ? void 0 : attributeValue.lookupCode) && !(attributeValue === null || attributeValue === void 0 ? void 0 : attributeValue.value);
|
|
14
|
-
var placeholder = (isEmptyValue && isBlocked && i18n.text('Populating values...')) ||
|
|
15
|
-
(isEmptyValue && missedParentsMessage) ||
|
|
16
|
-
'';
|
|
17
|
-
var context = {
|
|
18
|
-
parents: missedParentsMessage ? null : parents,
|
|
19
|
-
disabled: (!!missedParentsMessage && isEmptyValue) || isBlocked,
|
|
20
|
-
placeholder: placeholder
|
|
21
|
-
};
|
|
22
|
-
if (placeholder) {
|
|
23
|
-
context.value = null;
|
|
24
|
-
}
|
|
25
|
-
return fromCache(valueUri, context);
|
|
26
|
-
}
|
|
27
|
-
};
|
package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const fromCache: (valueUri: any, context: any) => any;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { equals } from 'ramda';
|
|
2
|
-
var DLEditorContextCache = {};
|
|
3
|
-
export var fromCache = function (valueUri, context) {
|
|
4
|
-
var cachedContext = DLEditorContextCache[valueUri];
|
|
5
|
-
if (equals(context, cachedContext)) {
|
|
6
|
-
return cachedContext;
|
|
7
|
-
}
|
|
8
|
-
else {
|
|
9
|
-
if (equals(cachedContext === null || cachedContext === void 0 ? void 0 : cachedContext.parents, context.parents)) {
|
|
10
|
-
context.parents = cachedContext.parents;
|
|
11
|
-
}
|
|
12
|
-
DLEditorContextCache[valueUri] = context;
|
|
13
|
-
return context;
|
|
14
|
-
}
|
|
15
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const buildMissedParentsMessage: (missedAttributeTypes: any) => string;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { pipe, prop } from 'ramda';
|
|
2
|
-
import i18n from 'ui-i18n';
|
|
3
|
-
var joinWords = function (words) {
|
|
4
|
-
return words.reduce(function (result, word, i) { return [result, word].join(i === words.length - 1 ? " ".concat(i18n.text('and'), " ") : ', '); });
|
|
5
|
-
};
|
|
6
|
-
export var buildMissedParentsMessage = function (missedAttributeTypes) {
|
|
7
|
-
return missedAttributeTypes.length
|
|
8
|
-
? i18n.text('Please select value for ${labels} ${attributes}.', {
|
|
9
|
-
labels: joinWords(missedAttributeTypes.map(pipe(prop('label'), function (label) { return "'".concat(label, "'"); }))),
|
|
10
|
-
attributes: missedAttributeTypes.length === 1 ? i18n.text('attribute') : i18n.text('attributes')
|
|
11
|
-
})
|
|
12
|
-
: '';
|
|
13
|
-
};
|
package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { DependentLookupsParentForApi, DependentLookupsStructureNode } from '@reltio/mdm-sdk';
|
|
2
|
-
export declare const getParents: (state: any, valueUri: string, node: DependentLookupsStructureNode) => {
|
|
3
|
-
parents: DependentLookupsParentForApi[];
|
|
4
|
-
missedParentsAttributeTypes: import("@reltio/mdm-sdk").AttributeType[];
|
|
5
|
-
};
|
package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
13
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
14
|
-
if (ar || !(i in from)) {
|
|
15
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
16
|
-
ar[i] = from[i];
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
|
-
};
|
|
21
|
-
import { defaultTo, isNil, map, path, pipe, prepend, reject, uniq } from 'ramda';
|
|
22
|
-
import mdmModule from '@reltio/mdm-module';
|
|
23
|
-
import { areOneHierarchyUris, filterRelatedParentValuesForDependentLookupValueUri, getAttributeValuePath, getBaseUri, getParentUri } from '@reltio/mdm-sdk';
|
|
24
|
-
var getTypesMapKey = function (parent) {
|
|
25
|
-
return "".concat(parent.type, "_").concat(getParentUri(parent.uri));
|
|
26
|
-
};
|
|
27
|
-
export var getParents = function (state, valueUri, node) {
|
|
28
|
-
var _a;
|
|
29
|
-
var parentNodesValues = node.parents.flatMap(function (type) {
|
|
30
|
-
var parentNode = mdmModule.selectors.getDependentLookupsStructureNode(state, type);
|
|
31
|
-
return parentNode.values.map(function (value) { return (__assign(__assign({}, value), { type: type, dependentLookupCode: parentNode.attrType.dependentLookupCode })); });
|
|
32
|
-
});
|
|
33
|
-
var modifiedEntities = mdmModule.selectors.getModifiedEntities(state);
|
|
34
|
-
var entityUri = mdmModule.selectors.getEntityUri(state);
|
|
35
|
-
var connections = mdmModule.selectors.getAllRelationsToAddAndEdit(state);
|
|
36
|
-
var metadata = mdmModule.selectors.getMetadata(state);
|
|
37
|
-
var ownParentNodesValues = filterRelatedParentValuesForDependentLookupValueUri({
|
|
38
|
-
parentValues: parentNodesValues,
|
|
39
|
-
valueUri: valueUri,
|
|
40
|
-
entityUri: entityUri,
|
|
41
|
-
modifiedEntities: modifiedEntities,
|
|
42
|
-
connections: connections
|
|
43
|
-
});
|
|
44
|
-
var possibleParentBaseTypeUris = pipe(getAttributeValuePath, defaultTo([]), map(pipe(path(['valueType', 'uri']), getBaseUri)), prepend((_a = modifiedEntities[entityUri]) === null || _a === void 0 ? void 0 : _a.type), reject(isNil), uniq)({
|
|
45
|
-
entityUri: entityUri,
|
|
46
|
-
entitiesMap: modifiedEntities,
|
|
47
|
-
connections: connections,
|
|
48
|
-
metadata: metadata
|
|
49
|
-
}, valueUri);
|
|
50
|
-
var neededParentsAttributeTypes = node.parents
|
|
51
|
-
.filter(function (typeUri) { return possibleParentBaseTypeUris.some(areOneHierarchyUris(typeUri)); })
|
|
52
|
-
.map(function (typeUri) {
|
|
53
|
-
var parentNode = mdmModule.selectors.getDependentLookupsStructureNode(state, typeUri);
|
|
54
|
-
return parentNode.attrType;
|
|
55
|
-
});
|
|
56
|
-
var missedParentsAttributeTypes = neededParentsAttributeTypes.filter(function (attrType) { return !ownParentNodesValues.some(function (_a) {
|
|
57
|
-
var type = _a.type, value = _a.value;
|
|
58
|
-
return value && type === attrType.uri;
|
|
59
|
-
}); });
|
|
60
|
-
var parents = Object.values(ownParentNodesValues.reduce(function (typesMap, parent) {
|
|
61
|
-
var _a;
|
|
62
|
-
var _b;
|
|
63
|
-
var key = getTypesMapKey(parent);
|
|
64
|
-
return __assign(__assign({}, typesMap), (_a = {}, _a[key] = {
|
|
65
|
-
type: parent.dependentLookupCode,
|
|
66
|
-
codeValues: uniq(__spreadArray([parent.value], (((_b = typesMap[key]) === null || _b === void 0 ? void 0 : _b.codeValues) || []), true))
|
|
67
|
-
.filter(Boolean)
|
|
68
|
-
.sort()
|
|
69
|
-
}, _a));
|
|
70
|
-
}, {})).filter(function (item) { return !!item.codeValues.length; });
|
|
71
|
-
return { parents: parents, missedParentsAttributeTypes: missedParentsAttributeTypes };
|
|
72
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DependentLookupsParentForApi, DependentLookupsStructureNodeValue } from '@reltio/mdm-sdk';
|
|
2
|
-
export type ExtendedParentValue = DependentLookupsStructureNodeValue & {
|
|
3
|
-
type: string;
|
|
4
|
-
dependentLookupCode: string;
|
|
5
|
-
};
|
|
6
|
-
export type DependentLookupEditorContext = {
|
|
7
|
-
parents: DependentLookupsParentForApi[];
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
placeholder: string;
|
|
10
|
-
value?: null;
|
|
11
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export { AttributesPager };
|
|
2
|
-
declare const _default: import("react-redux").ConnectedComponent<import("react").MemoExoticComponent<({ values, attributeType, drawLines, paging, parentUri, max, requestNextPageOfAttributeValues, titleClassName, contentClassName, showNonOv }: {
|
|
3
|
-
values: (string | number | import("@reltio/mdm-sdk").AttributeValue)[];
|
|
4
|
-
attributeType: import("@reltio/mdm-sdk").AttributeType;
|
|
5
|
-
paging?: import("@reltio/mdm-sdk").Paging;
|
|
6
|
-
parentUri?: string;
|
|
7
|
-
drawLines: boolean;
|
|
8
|
-
max?: number;
|
|
9
|
-
requestNextPageOfAttributeValues: (payload: import("@reltio/mdm-module").RequestNextPageOfAttributeValuesPayload) => void;
|
|
10
|
-
titleClassName?: string;
|
|
11
|
-
contentClassName?: string;
|
|
12
|
-
showNonOv?: boolean;
|
|
13
|
-
}) => JSX.Element>, import("react-redux").Omit<{
|
|
14
|
-
values: (string | number | import("@reltio/mdm-sdk").AttributeValue)[];
|
|
15
|
-
attributeType: import("@reltio/mdm-sdk").AttributeType;
|
|
16
|
-
paging?: import("@reltio/mdm-sdk").Paging;
|
|
17
|
-
parentUri?: string;
|
|
18
|
-
drawLines: boolean;
|
|
19
|
-
max?: number;
|
|
20
|
-
requestNextPageOfAttributeValues: (payload: import("@reltio/mdm-module").RequestNextPageOfAttributeValuesPayload) => void;
|
|
21
|
-
titleClassName?: string;
|
|
22
|
-
contentClassName?: string;
|
|
23
|
-
showNonOv?: boolean;
|
|
24
|
-
}, "max" | "requestNextPageOfAttributeValues"> & {
|
|
25
|
-
max?: any;
|
|
26
|
-
}>;
|
|
27
|
-
export default _default;
|
|
28
|
-
import AttributesPager from './AttributesPager';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { connect } from 'react-redux';
|
|
2
|
-
import mdmModule, { profile } from '@reltio/mdm-module';
|
|
3
|
-
import AttributesPager from './AttributesPager';
|
|
4
|
-
var mapStateToProps = function (state, _a) {
|
|
5
|
-
var _b = _a.max, max = _b === void 0 ? undefined : _b;
|
|
6
|
-
return ({
|
|
7
|
-
max: max || mdmModule.selectors.getDefaultMaxValues(state)
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
var mapDispatchToProps = {
|
|
11
|
-
requestNextPageOfAttributeValues: profile.actions.requestNextPageOfAttributeValues
|
|
12
|
-
};
|
|
13
|
-
export { AttributesPager };
|
|
14
|
-
export default connect(mapStateToProps, mapDispatchToProps)(AttributesPager);
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import AttributesView from './AttributesView';
|
|
3
|
-
export { AttributesView };
|
|
4
|
-
declare const _default: import("react-redux").ConnectedComponent<({ className, entity, metadata, caption, excludeUris, includeUris, attributesCount }: {
|
|
5
|
-
entity?: import("@reltio/mdm-sdk").Entity;
|
|
6
|
-
caption?: string;
|
|
7
|
-
metadata: import("@reltio/mdm-sdk").Metadata;
|
|
8
|
-
includeUris?: string[];
|
|
9
|
-
excludeUris?: string[];
|
|
10
|
-
className?: string;
|
|
11
|
-
attributesCount?: number;
|
|
12
|
-
pinnedAttributes?: import("@reltio/mdm-sdk").PinnedAttribute[];
|
|
13
|
-
}) => JSX.Element, import("react-redux").Omit<{
|
|
14
|
-
entity?: import("@reltio/mdm-sdk").Entity;
|
|
15
|
-
caption?: string;
|
|
16
|
-
metadata: import("@reltio/mdm-sdk").Metadata;
|
|
17
|
-
includeUris?: string[];
|
|
18
|
-
excludeUris?: string[];
|
|
19
|
-
className?: string;
|
|
20
|
-
attributesCount?: number;
|
|
21
|
-
pinnedAttributes?: import("@reltio/mdm-sdk").PinnedAttribute[];
|
|
22
|
-
}, "metadata">>;
|
|
23
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { connect } from 'react-redux';
|
|
2
|
-
import mdmModule from '@reltio/mdm-module';
|
|
3
|
-
import AttributesView from './AttributesView';
|
|
4
|
-
var mapStateToProps = function (state) { return ({
|
|
5
|
-
metadata: mdmModule.selectors.getMetadata(state)
|
|
6
|
-
}); };
|
|
7
|
-
export { AttributesView };
|
|
8
|
-
export default connect(mapStateToProps)(AttributesView);
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
export declare const createTestStore: (initialState: any) => import("redux-dynamic-modules").IModuleStore<{
|
|
2
|
-
dataTenants: any;
|
|
3
|
-
tenants: any;
|
|
4
|
-
metadata: any;
|
|
5
|
-
profile: import("redux").CombinedState<{
|
|
6
|
-
dependentLookups: import("@reltio/mdm-module/src/profile/dependentLookups/constants").DependentLookupsState;
|
|
7
|
-
entity: import("@reltio/mdm-sdk").Entity;
|
|
8
|
-
errors: import("@reltio/mdm-sdk").AttributeError[];
|
|
9
|
-
history: import("@reltio/mdm-sdk").History;
|
|
10
|
-
lastLoadedTime: any;
|
|
11
|
-
lookups: any;
|
|
12
|
-
mode: import("@reltio/mdm-sdk").Mode;
|
|
13
|
-
modifiedEntities: import("@reltio/mdm-module/src/profile/modifiedEntities/constants").ModifiedEntitiesState;
|
|
14
|
-
relations: any;
|
|
15
|
-
trees: import("@reltio/mdm-sdk").TreesState;
|
|
16
|
-
operation: import("@reltio/mdm-sdk").Operation;
|
|
17
|
-
views: import("@reltio/mdm-module/src/profile/views/constants").ProfileViewsState;
|
|
18
|
-
sidePanelViews: string[] | import("@reltio/mdm-sdk").SidePanelViewConfig[];
|
|
19
|
-
}>;
|
|
20
|
-
tenant: any;
|
|
21
|
-
environment: any;
|
|
22
|
-
user: any;
|
|
23
|
-
ui: any;
|
|
24
|
-
search: {
|
|
25
|
-
searchResults: any;
|
|
26
|
-
keyword: any;
|
|
27
|
-
searchOptions: {
|
|
28
|
-
searchByOv: boolean;
|
|
29
|
-
ovOnly: boolean;
|
|
30
|
-
};
|
|
31
|
-
activityFilter: string;
|
|
32
|
-
globalFilter: {
|
|
33
|
-
query: any;
|
|
34
|
-
savedSearchesUris: any[];
|
|
35
|
-
isMuted: boolean;
|
|
36
|
-
};
|
|
37
|
-
searchProviderData: any;
|
|
38
|
-
searchNavigationData: any;
|
|
39
|
-
} | {
|
|
40
|
-
keyword: any;
|
|
41
|
-
searchOptions: any;
|
|
42
|
-
activityFilter: string;
|
|
43
|
-
globalFilter: {
|
|
44
|
-
query: any;
|
|
45
|
-
savedSearchesUris: any[];
|
|
46
|
-
isMuted: boolean;
|
|
47
|
-
};
|
|
48
|
-
searchNavigationData: any;
|
|
49
|
-
searchProviderData: any;
|
|
50
|
-
searchResults: any[];
|
|
51
|
-
} | {
|
|
52
|
-
activityFilter: any;
|
|
53
|
-
searchResults: any[];
|
|
54
|
-
keyword: any;
|
|
55
|
-
searchOptions: {
|
|
56
|
-
searchByOv: boolean;
|
|
57
|
-
ovOnly: boolean;
|
|
58
|
-
};
|
|
59
|
-
globalFilter: {
|
|
60
|
-
query: any;
|
|
61
|
-
savedSearchesUris: any[];
|
|
62
|
-
isMuted: boolean;
|
|
63
|
-
};
|
|
64
|
-
searchProviderData: any;
|
|
65
|
-
searchNavigationData: any;
|
|
66
|
-
} | {
|
|
67
|
-
globalFilter: any;
|
|
68
|
-
searchResults: any[];
|
|
69
|
-
keyword: any;
|
|
70
|
-
searchOptions: {
|
|
71
|
-
searchByOv: boolean;
|
|
72
|
-
ovOnly: boolean;
|
|
73
|
-
};
|
|
74
|
-
activityFilter: string;
|
|
75
|
-
searchProviderData: any;
|
|
76
|
-
searchNavigationData: any;
|
|
77
|
-
};
|
|
78
|
-
}>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// we do it temporary because of rootDir
|
|
2
|
-
import { getSagaExtension } from 'redux-dynamic-modules-saga';
|
|
3
|
-
import { getThunkExtension } from 'redux-dynamic-modules-thunk';
|
|
4
|
-
import { createStore } from 'redux-dynamic-modules';
|
|
5
|
-
import mdmModule from '@reltio/mdm-module';
|
|
6
|
-
export var createTestStore = function (initialState) {
|
|
7
|
-
return createStore({
|
|
8
|
-
initialState: initialState,
|
|
9
|
-
enhancers: [],
|
|
10
|
-
extensions: [getThunkExtension(), getSagaExtension()]
|
|
11
|
-
}, mdmModule.getModule());
|
|
12
|
-
};
|
|
File without changes
|
|
File without changes
|