@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
|
@@ -27,8 +27,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
var react_1 = __importStar(require("react"));
|
|
30
|
-
var react_redux_1 = require("react-redux");
|
|
31
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
32
30
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
33
31
|
var classnames_1 = __importDefault(require("classnames"));
|
|
34
32
|
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
@@ -42,9 +40,10 @@ var attributesView_1 = require("../../helpers/attributesView");
|
|
|
42
40
|
var styles_1 = require("./styles");
|
|
43
41
|
var AttributesView = function (_a) {
|
|
44
42
|
var _b;
|
|
45
|
-
var className = _a.className, _c = _a.entity, entity = _c === void 0 ? {} : _c,
|
|
43
|
+
var className = _a.className, _c = _a.entity, entity = _c === void 0 ? {} : _c, _d = _a.caption, caption = _d === void 0 ? '' : _d, _e = _a.excludeUris, excludeUris = _e === void 0 ? [] : _e, _f = _a.includeUris, includeUris = _f === void 0 ? [] : _f, _g = _a.attributesCount, attributesCount = _g === void 0 ? 16 : _g;
|
|
46
44
|
var styles = (0, styles_1.useStyles)();
|
|
47
|
-
var
|
|
45
|
+
var metadata = (0, contexts_1.useMdmMetadata)();
|
|
46
|
+
var pivotingAttributes = (0, contexts_1.useMdmPivotingAttributes)();
|
|
48
47
|
var filteredAttrTypes = (0, react_1.useMemo)(function () { return (0, attributesView_1.getFilteredAttrTypes)(metadata, entity.type, includeUris, excludeUris); }, [excludeUris, includeUris, metadata, entity.type]);
|
|
49
48
|
var attributesList = (0, mdm_sdk_1.getAttributesListForReadMode)(filteredAttrTypes, entity);
|
|
50
49
|
var isShowAttributeList = attributesList.filter(function (_a) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AttributeType, ImageAttributeValue, Paging } from '@reltio/mdm-sdk';
|
|
3
|
-
import { RequestNextPageOfAttributeValuesPayload } from '@reltio/mdm-module';
|
|
2
|
+
import { AttributeType, ImageAttributeValue, Paging, RequestNextPageOfAttributeValuesPayload } from '@reltio/mdm-sdk';
|
|
4
3
|
import { SIZES_TYPE } from '../../ImageAttributesLine/styles';
|
|
5
4
|
type Props = {
|
|
6
5
|
attributeValues: ImageAttributeValue[];
|
|
@@ -51,8 +51,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
51
51
|
var react_1 = __importStar(require("react"));
|
|
52
52
|
var classnames_1 = __importDefault(require("classnames"));
|
|
53
53
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
54
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
55
|
-
var react_redux_1 = require("react-redux");
|
|
56
54
|
var contexts_1 = require("../../../../contexts");
|
|
57
55
|
var ComplexAttribute_1 = __importDefault(require("../ComplexAttribute/ComplexAttribute"));
|
|
58
56
|
var InternalLink_1 = __importDefault(require("../../../InternalLink/InternalLink"));
|
|
@@ -61,10 +59,10 @@ var commonStyles_1 = require("../helpers/commonStyles");
|
|
|
61
59
|
var styles_1 = __importDefault(require("./styles"));
|
|
62
60
|
var ReferenceAttribute = function (_a) {
|
|
63
61
|
var attributeValue = _a.attributeValue, attributeType = _a.attributeType, otherProps = __rest(_a, ["attributeValue", "attributeType"]);
|
|
64
|
-
var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
|
|
65
|
-
var uiPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getUIPath);
|
|
66
62
|
var styles = (0, styles_1.default)();
|
|
67
63
|
var ovValueStyles = (0, commonStyles_1.useOvValueStyles)();
|
|
64
|
+
var metadata = (0, contexts_1.useMdmMetadata)();
|
|
65
|
+
var uiPath = (0, contexts_1.useMdmUiPath)();
|
|
68
66
|
var refEntityURI = (0, mdm_sdk_1.getReferencedEntityUriFromAttrValue)(attributeValue);
|
|
69
67
|
var attributeTypeList = (0, react_1.useMemo)(function () { return (0, mdm_sdk_1.getAttributeTypeSubAttributes)(metadata, attributeType); }, [attributeType, metadata]);
|
|
70
68
|
var appearance = (0, react_1.useContext)(contexts_1.HistoryDiffContext).appearance;
|
|
@@ -22,21 +22,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
26
|
var react_1 = __importStar(require("react"));
|
|
30
|
-
var react_redux_1 = require("react-redux");
|
|
31
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
32
27
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
33
28
|
var HistoryAppearanceContext_1 = require("../../../../../contexts/HistoryAppearanceContext");
|
|
29
|
+
var contexts_1 = require("../../../../../contexts");
|
|
34
30
|
var styles_1 = require("../styles");
|
|
35
31
|
var Role = function (_a) {
|
|
36
32
|
var value = _a.value;
|
|
37
33
|
var styles = (0, styles_1.useCommonStyles)();
|
|
38
|
-
var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
|
|
39
34
|
var appearance = (0, react_1.useContext)(HistoryAppearanceContext_1.HistoryDiffContext).appearance;
|
|
35
|
+
var metadata = (0, contexts_1.useMdmMetadata)();
|
|
40
36
|
var attributeAppearance = (0, mdm_sdk_1.getHistoryAppearanceBySpecialAttributeValue)('roles', value, appearance);
|
|
41
37
|
var historyClassName = (0, mdm_sdk_1.getHistoryAttributeClassName)(attributeAppearance);
|
|
42
38
|
return react_1.default.createElement("span", { className: styles[historyClassName] }, (0, mdm_sdk_1.getRoleLabel)(metadata, value));
|
|
@@ -28,19 +28,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
var react_1 = __importStar(require("react"));
|
|
30
30
|
var InternalLink_1 = __importDefault(require("../../../../InternalLink/InternalLink"));
|
|
31
|
-
var react_redux_1 = require("react-redux");
|
|
32
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
33
31
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
34
32
|
var contexts_1 = require("../../../../../contexts");
|
|
35
33
|
var styles_1 = require("../styles");
|
|
36
34
|
var Tag = function (_a) {
|
|
37
35
|
var value = _a.value;
|
|
38
36
|
var styles = (0, styles_1.useCommonStyles)();
|
|
39
|
-
var uiPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getUIPath);
|
|
40
|
-
var currentEntity = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getEntity);
|
|
41
37
|
var ownEntity = (0, react_1.useContext)(contexts_1.EntityContext);
|
|
42
38
|
var appearance = (0, react_1.useContext)(contexts_1.HistoryDiffContext).appearance;
|
|
43
39
|
var generateTagUrl = (0, react_1.useContext)(contexts_1.UrlGeneratorsContext).generateTagUrl;
|
|
40
|
+
var currentEntity = (0, contexts_1.useMdmEntity)();
|
|
41
|
+
var uiPath = (0, contexts_1.useMdmUiPath)();
|
|
44
42
|
var attributeAppearance = (0, mdm_sdk_1.getHistoryAppearanceBySpecialAttributeValue)('tags', value, appearance);
|
|
45
43
|
var historyClassName = (0, mdm_sdk_1.getHistoryAttributeClassName)(attributeAppearance);
|
|
46
44
|
var entity = ownEntity || currentEntity;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Entity,
|
|
2
|
-
type
|
|
1
|
+
import { Entity, Mode, PinnedAttribute } from '@reltio/mdm-sdk';
|
|
2
|
+
export type AttributesViewProps = {
|
|
3
3
|
attributesCount?: number;
|
|
4
4
|
caption?: string;
|
|
5
5
|
className?: string;
|
|
@@ -9,8 +9,3 @@ type OwnProps = {
|
|
|
9
9
|
pinnedAttributes?: PinnedAttribute[];
|
|
10
10
|
mode?: Mode;
|
|
11
11
|
};
|
|
12
|
-
type StateProps = {
|
|
13
|
-
metadata: Metadata;
|
|
14
|
-
};
|
|
15
|
-
type AttributesViewProps = OwnProps & StateProps;
|
|
16
|
-
export type { OwnProps as AttributesViewOwnProps, StateProps as AttributesViewStateProps, AttributesViewProps };
|
package/cjs/components/crosswalks/AttributesTable/AddAttributesButton/AddAttributesButton.js
CHANGED
|
@@ -14,18 +14,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.AddAttributesButton = void 0;
|
|
16
16
|
var react_1 = __importDefault(require("react"));
|
|
17
|
-
var react_redux_1 = require("react-redux");
|
|
18
17
|
var MoreAttributesButton_1 = __importDefault(require("../../../attributes/editMode/MoreAttributesButton/MoreAttributesButton"));
|
|
19
18
|
var BasicTableView_1 = require("../../../BasicTableView");
|
|
20
19
|
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
21
20
|
var ramda_1 = require("ramda");
|
|
22
21
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
23
|
-
var
|
|
22
|
+
var contexts_1 = require("../../../../contexts");
|
|
24
23
|
var styles_1 = require("./styles");
|
|
25
24
|
var AddAttributesButton = function (_a) {
|
|
26
25
|
var parentTypeUri = _a.parentTypeUri, parentUri = _a.parentUri, selectedAttributeTypes = _a.selectedAttributeTypes, onSelectAttributeTypes = _a.onSelectAttributeTypes, onAdd = _a.onAdd;
|
|
27
26
|
var styles = (0, styles_1.useStyles)();
|
|
28
|
-
var metadata = (0,
|
|
27
|
+
var metadata = (0, contexts_1.useMdmMetadata)();
|
|
29
28
|
var parentType = __spreadArray(__spreadArray([], metadata.entityTypes, true), (metadata.relationTypes || []), true).find((0, ramda_1.propEq)('uri', parentTypeUri));
|
|
30
29
|
var isNotSelected = function (attrType) { return !(selectedAttributeTypes === null || selectedAttributeTypes === void 0 ? void 0 : selectedAttributeTypes.find((0, ramda_1.propEq)('uri', attrType.uri))); };
|
|
31
30
|
var canCreate = function (attributeType) { return (0, mdm_sdk_1.checkCanCreateAttribute)({ attributeType: attributeType, mode: mdm_sdk_1.ModeTypes.EDITING }); };
|
|
@@ -38,10 +38,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
38
38
|
};
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
40
|
var react_1 = __importStar(require("react"));
|
|
41
|
-
var react_redux_1 = require("react-redux");
|
|
42
41
|
var classnames_1 = __importDefault(require("classnames"));
|
|
43
42
|
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
44
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
45
43
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
46
44
|
var BasicTableView_1 = require("../../BasicTableView");
|
|
47
45
|
var BasicViewHeader_1 = __importDefault(require("../../BasicViewHeader/BasicViewHeader"));
|
|
@@ -52,6 +50,7 @@ var LinearLoadIndicator_1 = __importDefault(require("../../LinearLoadIndicator/L
|
|
|
52
50
|
var ConfirmDeleteDialog_1 = __importDefault(require("../../ConfirmDeleteDialog/ConfirmDeleteDialog"));
|
|
53
51
|
var ConfirmEditIgnoredDialog_1 = __importDefault(require("./ConfirmEditIgnoredDialog/ConfirmEditIgnoredDialog"));
|
|
54
52
|
var core_1 = require("../../../core");
|
|
53
|
+
var contexts_1 = require("../../../contexts");
|
|
55
54
|
var styles_1 = require("./styles");
|
|
56
55
|
var DEFAULT_ROW_HEIGHT = 68;
|
|
57
56
|
var getIdFromRowValue = function (rowValue) { return rowValue.ovValues.attributeType.uri; };
|
|
@@ -62,6 +61,7 @@ var getRowCellKey = function (_a) {
|
|
|
62
61
|
var AttributesTable = function (_a) {
|
|
63
62
|
var entity = _a.entity, isLoading = _a.isLoading, crosswalksMap = _a.crosswalksMap, _b = _a.visibleColumns, visibleColumns = _b === void 0 ? helpers_1.DEFAULT_VISIBLE_COLUMNS : _b, onChangeVisibleColumns = _a.onChangeVisibleColumns, readOnly = _a.readOnly, _c = _a.onDelete, onDelete = _c === void 0 ? core_1.noop : _c, _d = _a.onPin, onPin = _d === void 0 ? core_1.noop : _d, _e = _a.onIgnore, onIgnore = _e === void 0 ? core_1.noop : _e, _f = _a.onEdit, onEdit = _f === void 0 ? core_1.noop : _f, _g = _a.onAdd, onAdd = _g === void 0 ? core_1.noop : _g, emptyTempAttributeUris = _a.emptyTempAttributeUris, selectedAttributeTypes = _a.selectedAttributeTypes, _h = _a.onSelectAttributeTypes, onSelectAttributeTypes = _h === void 0 ? core_1.noop : _h, additionalHeaderItems = _a.additionalHeaderItems, className = _a.className, activeSurvivorshipGroupUri = _a.activeSurvivorshipGroupUri;
|
|
64
63
|
var styles = (0, styles_1.useStyles)();
|
|
64
|
+
var metadata = (0, contexts_1.useMdmMetadata)();
|
|
65
65
|
var visibleColumnsData = (0, react_1.useMemo)(function () {
|
|
66
66
|
return (0, ramda_1.pipe)((0, ramda_1.filter)(function (_a) {
|
|
67
67
|
var id = _a.id;
|
|
@@ -69,7 +69,6 @@ var AttributesTable = function (_a) {
|
|
|
69
69
|
}), helpers_1.getBasicTableColumnsData)(helpers_1.COLUMNS_DATA);
|
|
70
70
|
}, [visibleColumns]);
|
|
71
71
|
var _j = entity || {}, parentTypeUri = _j.type, parentUri = _j.uri, _k = _j.attributes, attributes = _k === void 0 ? {} : _k;
|
|
72
|
-
var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
|
|
73
72
|
(0, react_1.useEffect)(function () {
|
|
74
73
|
if (entity && (0, ramda_1.isNil)(selectedAttributeTypes)) {
|
|
75
74
|
var initialAttrTypes = (0, ramda_1.pipe)(ramda_1.keys, (0, ramda_1.without)(['paging']), (0, ramda_1.map)((0, mdm_sdk_1.makeAttrTypeUri)(parentTypeUri)), (0, ramda_1.map)(function (attrTypeUri) { return (0, mdm_sdk_1.findAttributeTypeByUri)(metadata, attrTypeUri, parentTypeUri); }), (0, ramda_1.filter)((0, ramda_1.both)(ramda_1.identity, mdm_sdk_1.isReadableAttribute)))(attributes);
|
|
@@ -27,7 +27,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
var react_1 = __importStar(require("react"));
|
|
30
|
-
var react_redux_1 = require("react-redux");
|
|
31
30
|
var ramda_1 = require("ramda");
|
|
32
31
|
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
33
32
|
var IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
@@ -40,21 +39,19 @@ var Close_1 = __importDefault(require("@mui/icons-material/Close"));
|
|
|
40
39
|
var Info_1 = __importDefault(require("@mui/icons-material/Info"));
|
|
41
40
|
var SmallIconButton_1 = require("../../../SmallIconButton");
|
|
42
41
|
var SourceIcon_1 = __importDefault(require("../../../SourceIcon/SourceIcon"));
|
|
43
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
44
42
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
43
|
+
var contexts_1 = require("../../../../contexts");
|
|
45
44
|
var styles_1 = require("./styles");
|
|
46
45
|
var SourcesRenderer = function (_a) {
|
|
47
|
-
var sourcesUriOrder = _a.sourcesUriOrder;
|
|
46
|
+
var sourcesUriOrder = _a.sourcesUriOrder, metadata = _a.metadata;
|
|
48
47
|
var styles = (0, styles_1.useStyles)();
|
|
49
|
-
var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
|
|
50
48
|
return (react_1.default.createElement(react_1.default.Fragment, null, sourcesUriOrder.map(function (sourceUri) { return (react_1.default.createElement(ListItem_1.default, { key: sourceUri, className: styles.popupItem },
|
|
51
49
|
react_1.default.createElement(SourceIcon_1.default, { className: styles.sourceIcon, sourceType: sourceUri }),
|
|
52
50
|
react_1.default.createElement(ListItemText_1.default, { primary: (0, mdm_sdk_1.getSourceSystemLabel)(metadata, sourceUri), primaryTypographyProps: { variant: 'body2' } }))); })));
|
|
53
51
|
};
|
|
54
52
|
var AttributeRenderer = function (_a) {
|
|
55
|
-
var attributeUri = _a.attributeUri;
|
|
53
|
+
var attributeUri = _a.attributeUri, metadata = _a.metadata;
|
|
56
54
|
var styles = (0, styles_1.useStyles)();
|
|
57
|
-
var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
|
|
58
55
|
var attributeType = (0, mdm_sdk_1.findAttributeTypeByUri)(metadata, attributeUri);
|
|
59
56
|
return (react_1.default.createElement(ListItem_1.default, { key: attributeType.uri, className: styles.popupItem },
|
|
60
57
|
react_1.default.createElement(ListItemText_1.default, { primary: (0, mdm_sdk_1.getLabel)(attributeType.label), primaryTypographyProps: { variant: 'body2' } })));
|
|
@@ -65,22 +62,28 @@ var getInfoTitle = (0, ramda_1.cond)([
|
|
|
65
62
|
[(0, ramda_1.prop)('comparisonAttributeUri'), function () { return ui_i18n_1.default.text('Comparison attribute'); }]
|
|
66
63
|
]);
|
|
67
64
|
var getInfoContent = (0, ramda_1.cond)([
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
[
|
|
66
|
+
(0, ramda_1.prop)('sourcesUriOrder'),
|
|
67
|
+
// eslint-disable-next-line react/display-name
|
|
68
|
+
function (_a, metadata) {
|
|
70
69
|
var sourcesUriOrder = _a.sourcesUriOrder;
|
|
71
|
-
return react_1.default.createElement(SourcesRenderer, { sourcesUriOrder: sourcesUriOrder });
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
[
|
|
70
|
+
return react_1.default.createElement(SourcesRenderer, { metadata: metadata, sourcesUriOrder: sourcesUriOrder });
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
[
|
|
74
|
+
(0, ramda_1.prop)('primaryAttributeUri'),
|
|
75
|
+
// eslint-disable-next-line react/display-name
|
|
76
|
+
function (_a, metadata) {
|
|
75
77
|
var primaryAttributeUri = _a.primaryAttributeUri;
|
|
76
|
-
return react_1.default.createElement(AttributeRenderer, { attributeUri: primaryAttributeUri });
|
|
77
|
-
}
|
|
78
|
+
return (react_1.default.createElement(AttributeRenderer, { metadata: metadata, attributeUri: primaryAttributeUri }));
|
|
79
|
+
}
|
|
80
|
+
],
|
|
78
81
|
[
|
|
79
82
|
(0, ramda_1.prop)('comparisonAttributeUri'),
|
|
80
83
|
// eslint-disable-next-line react/display-name
|
|
81
|
-
function (_a) {
|
|
84
|
+
function (_a, metadata) {
|
|
82
85
|
var comparisonAttributeUri = _a.comparisonAttributeUri;
|
|
83
|
-
return react_1.default.createElement(AttributeRenderer, { attributeUri: comparisonAttributeUri });
|
|
86
|
+
return (react_1.default.createElement(AttributeRenderer, { metadata: metadata, attributeUri: comparisonAttributeUri }));
|
|
84
87
|
}
|
|
85
88
|
]
|
|
86
89
|
]);
|
|
@@ -88,6 +91,7 @@ var RuleTypeInfoButton = function (_a) {
|
|
|
88
91
|
var info = _a.info;
|
|
89
92
|
var styles = (0, styles_1.useStyles)();
|
|
90
93
|
var _b = (0, react_1.useState)(null), anchorEl = _b[0], setAnchorEl = _b[1];
|
|
94
|
+
var metadata = (0, contexts_1.useMdmMetadata)();
|
|
91
95
|
var openPopup = function (event) { return setAnchorEl(event.currentTarget); };
|
|
92
96
|
var closePopup = function () { return setAnchorEl(null); };
|
|
93
97
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
@@ -103,6 +107,6 @@ var RuleTypeInfoButton = function (_a) {
|
|
|
103
107
|
react_1.default.createElement(IconButton_1.default, { className: styles.closeButton, onClick: closePopup, size: "large" },
|
|
104
108
|
react_1.default.createElement(Close_1.default, null)),
|
|
105
109
|
react_1.default.createElement(Typography_1.default, { variant: 'subtitle1', className: styles.popupTitle }, getInfoTitle(info))),
|
|
106
|
-
react_1.default.createElement(List_1.default, { component: "div", className: styles.popupItemsWrapper }, getInfoContent(info)))));
|
|
110
|
+
react_1.default.createElement(List_1.default, { component: "div", className: styles.popupItemsWrapper }, getInfoContent(info, metadata)))));
|
|
107
111
|
};
|
|
108
112
|
exports.default = RuleTypeInfoButton;
|
|
@@ -4,20 +4,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var react_1 = __importDefault(require("react"));
|
|
7
|
-
var react_redux_1 = require("react-redux");
|
|
8
7
|
var List_1 = __importDefault(require("@mui/material/List"));
|
|
9
8
|
var ListItem_1 = __importDefault(require("@mui/material/ListItem"));
|
|
10
9
|
var ListItemText_1 = __importDefault(require("@mui/material/ListItemText"));
|
|
11
10
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
12
11
|
var SourceIcon_1 = __importDefault(require("../../../SourceIcon/SourceIcon"));
|
|
13
12
|
var contexts_1 = require("../../../../contexts");
|
|
14
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
15
13
|
var ColoredBlock_1 = __importDefault(require("../../ColoredBlock/ColoredBlock"));
|
|
16
14
|
var styles_1 = require("./styles");
|
|
17
15
|
var WinnerSource = function (_a) {
|
|
18
16
|
var crosswalk = _a.crosswalk;
|
|
19
17
|
var styles = (0, styles_1.useStyles)();
|
|
20
|
-
var metadata = (0,
|
|
18
|
+
var metadata = (0, contexts_1.useMdmMetadata)();
|
|
21
19
|
var _b = (0, contexts_1.useCrosswalkHighlight)(crosswalk), isDimmed = _b.isDimmed, highlightCrosswalk = _b.highlightCrosswalk, removeHighlight = _b.removeHighlight;
|
|
22
20
|
return (react_1.default.createElement(ColoredBlock_1.default, { className: styles.winnerSourceItem, color: isDimmed ? 'rgba(0, 0, 0, 0.12)' : (0, mdm_sdk_1.getCrosswalkColor)((0, mdm_sdk_1.getCrosswalkId)(crosswalk)), opacity: isDimmed ? 0.38 : 1, onMouseEnter: function () { return highlightCrosswalk(); }, onMouseLeave: function () { return removeHighlight(); } },
|
|
23
21
|
react_1.default.createElement(SourceIcon_1.default, { className: styles.sourceIcon, sourceType: crosswalk.type }),
|
|
@@ -27,30 +27,29 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
var react_1 = __importStar(require("react"));
|
|
30
|
-
var
|
|
30
|
+
var ramda_1 = require("ramda");
|
|
31
|
+
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
32
|
+
var moment_1 = __importDefault(require("moment"));
|
|
33
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
34
|
+
var Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
35
|
+
var Delete_1 = __importDefault(require("@mui/icons-material/Delete"));
|
|
31
36
|
var ConfirmDeleteDialog_1 = __importDefault(require("../../ConfirmDeleteDialog/ConfirmDeleteDialog"));
|
|
32
37
|
var MoreAttributesButton_1 = __importDefault(require("../../attributes/editMode/MoreAttributesButton"));
|
|
33
38
|
var SimpleDropDownSelector_1 = __importDefault(require("../../SimpleDropDownSelector/SimpleDropDownSelector"));
|
|
34
39
|
var SmallIconButton_1 = require("../../SmallIconButton");
|
|
35
40
|
var SourceIcon_1 = __importDefault(require("../../SourceIcon/SourceIcon"));
|
|
36
41
|
var editors_1 = require("../../editors");
|
|
37
|
-
var Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
38
|
-
var Delete_1 = __importDefault(require("@mui/icons-material/Delete"));
|
|
39
|
-
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
40
|
-
var ramda_1 = require("ramda");
|
|
41
|
-
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
42
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
43
42
|
var CopyableValueField_1 = __importDefault(require("../CopyableValueField/CopyableValueField"));
|
|
44
43
|
var CrosswalkDateEditor_1 = __importDefault(require("../CrosswalkDateEditor/CrosswalkDateEditor"));
|
|
45
|
-
var
|
|
44
|
+
var contexts_1 = require("../../../contexts");
|
|
46
45
|
var styles_1 = require("./styles");
|
|
47
46
|
var CrosswalkAttributes = function (_a) {
|
|
48
47
|
var crosswalk = _a.crosswalk, _b = _a.canEditAttribute, canEditAttribute = _b === void 0 ? true : _b, onEditAttribute = _a.onEditAttribute, onDeleteAttribute = _a.onDeleteAttribute;
|
|
49
48
|
var styles = (0, styles_1.useStyles)();
|
|
50
|
-
var isTempCrosswalk = !('uri' in crosswalk);
|
|
51
|
-
var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
|
|
52
49
|
var _c = (0, react_1.useState)([]), addedAttributes = _c[0], setAddedAttributes = _c[1];
|
|
53
50
|
var _d = (0, react_1.useState)(null), pendingDeletionAttrUri = _d[0], setPendingDeletionAttrUri = _d[1];
|
|
51
|
+
var metadata = (0, contexts_1.useMdmMetadata)();
|
|
52
|
+
var isTempCrosswalk = !('uri' in crosswalk);
|
|
54
53
|
var addSelectedAttributes = function (selectedAttributes) {
|
|
55
54
|
if (selectedAttributes.length > 0) {
|
|
56
55
|
setAddedAttributes(function (addedAttributes) { return addedAttributes.concat((0, ramda_1.map)((0, ramda_1.prop)('uri'), selectedAttributes)); });
|
|
@@ -4,19 +4,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var react_1 = __importDefault(require("react"));
|
|
7
|
-
var react_redux_1 = require("react-redux");
|
|
8
7
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
8
|
+
var Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
9
9
|
var ColoredBlock_1 = __importDefault(require("../ColoredBlock/ColoredBlock"));
|
|
10
10
|
var CrosswalksDisplayContext_1 = require("../../../contexts/CrosswalksDisplayContext");
|
|
11
11
|
var SourceIcon_1 = __importDefault(require("../../SourceIcon/SourceIcon"));
|
|
12
|
-
var
|
|
13
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
12
|
+
var contexts_1 = require("../../../contexts");
|
|
14
13
|
var styles_1 = require("./styles");
|
|
15
14
|
var CrosswalkDragPreview = function (_a) {
|
|
16
15
|
var crosswalk = _a.crosswalk;
|
|
17
16
|
var styles = (0, styles_1.useStyles)();
|
|
17
|
+
var metadata = (0, contexts_1.useMdmMetadata)();
|
|
18
18
|
var color = (0, CrosswalksDisplayContext_1.useCrosswalkColor)(crosswalk);
|
|
19
|
-
var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
|
|
20
19
|
var sourceSystemLabel = (0, mdm_sdk_1.getSourceSystemLabel)(metadata, crosswalk.type);
|
|
21
20
|
return (react_1.default.createElement(ColoredBlock_1.default, { color: color, className: styles.crosswalkPreview },
|
|
22
21
|
react_1.default.createElement(SourceIcon_1.default, { className: styles.sourceIcon, sourceType: crosswalk.type }),
|
|
@@ -27,12 +27,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
var react_1 = __importStar(require("react"));
|
|
30
|
-
var react_redux_1 = require("react-redux");
|
|
31
30
|
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
31
|
+
var react_dnd_1 = require("react-dnd");
|
|
32
|
+
var react_dnd_html5_backend_1 = require("react-dnd-html5-backend");
|
|
33
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
32
34
|
var Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
33
35
|
var Delete_1 = __importDefault(require("@mui/icons-material/Delete"));
|
|
34
36
|
var Visibility_1 = __importDefault(require("@mui/icons-material/Visibility"));
|
|
35
|
-
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
36
37
|
var ArrowExpandButton_1 = __importDefault(require("../../ArrowExpandButton/ArrowExpandButton"));
|
|
37
38
|
var ExpandedValueTooltip_1 = __importDefault(require("../../ExpandedValueTooltip/ExpandedValueTooltip"));
|
|
38
39
|
var ColoredBlock_1 = __importDefault(require("../ColoredBlock/ColoredBlock"));
|
|
@@ -41,28 +42,26 @@ var SmallIconButton_1 = require("../../SmallIconButton");
|
|
|
41
42
|
var SourceIcon_1 = __importDefault(require("../../SourceIcon/SourceIcon"));
|
|
42
43
|
var Spacer_1 = __importDefault(require("../../Spacer/Spacer"));
|
|
43
44
|
var CrosswalksDisplayContext_1 = require("../../../contexts/CrosswalksDisplayContext");
|
|
44
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
45
45
|
var NestedAttribute_1 = __importDefault(require("../../../icons/NestedAttribute"));
|
|
46
|
-
var react_dnd_1 = require("react-dnd");
|
|
47
|
-
var react_dnd_html5_backend_1 = require("react-dnd-html5-backend");
|
|
48
46
|
var CrosswalkAttributes_1 = __importDefault(require("../CrosswalkAttributes/CrosswalkAttributes"));
|
|
47
|
+
var contexts_1 = require("../../../contexts");
|
|
49
48
|
var styles_1 = require("./styles");
|
|
50
49
|
var CrosswalkRow = function (_a) {
|
|
51
50
|
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;
|
|
52
51
|
var ref = (0, react_1.useRef)(null);
|
|
52
|
+
var _e = (0, react_1.useState)(false), expanded = _e[0], setExpanded = _e[1];
|
|
53
|
+
var _f = (0, react_1.useState)(false), isDeleteDialogOpen = _f[0], setDeleteDialogOpen = _f[1];
|
|
54
|
+
var metadata = (0, contexts_1.useMdmMetadata)();
|
|
53
55
|
var crosswalkColor = (0, CrosswalksDisplayContext_1.useCrosswalkColor)(crosswalk);
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
+
var _g = (0, CrosswalksDisplayContext_1.useCrosswalkFocus)(crosswalk), toggleCrosswalkFocus = _g.toggleCrosswalkFocus, isFocused = _g.isFocused;
|
|
57
|
+
var _h = (0, CrosswalksDisplayContext_1.useCrosswalkHighlight)(crosswalk), isDimmed = _h.isDimmed, highlightCrosswalk = _h.highlightCrosswalk, removeHighlight = _h.removeHighlight;
|
|
58
|
+
var scrollToCrosswalk = (0, CrosswalksDisplayContext_1.useHighlightedCrosswalks)()[0];
|
|
56
59
|
var coloredCrosswalk = isDimmed ? 'rgba(0, 0, 0, 0.12)' : crosswalkColor;
|
|
57
60
|
var color = isEmpty ? '#FFF' : isColored ? coloredCrosswalk : '#CACCD1';
|
|
58
|
-
var scrollToCrosswalk = (0, CrosswalksDisplayContext_1.useHighlightedCrosswalks)()[0];
|
|
59
|
-
var styles = (0, styles_1.useStyles)({ color: color, isOpaque: !isDimmed, isFocused: isFocused });
|
|
60
|
-
var _g = (0, react_1.useState)(false), expanded = _g[0], setExpanded = _g[1];
|
|
61
|
-
var _h = (0, react_1.useState)(false), isDeleteDialogOpen = _h[0], setDeleteDialogOpen = _h[1];
|
|
62
|
-
var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
|
|
63
61
|
var sourceSystemLabel = (0, mdm_sdk_1.getSourceSystemLabel)(metadata, crosswalk.type);
|
|
64
62
|
var crosswalkId = (0, mdm_sdk_1.getLastUriPart)(crosswalk.uri);
|
|
65
63
|
var crosswalkDisabled = (0, mdm_sdk_1.isCrosswalkDisabled)(crosswalk);
|
|
64
|
+
var styles = (0, styles_1.useStyles)({ color: color, isOpaque: !isDimmed, isFocused: isFocused });
|
|
66
65
|
var _j = (0, react_dnd_1.useDrag)({
|
|
67
66
|
item: {
|
|
68
67
|
type: 'Crosswalk',
|
|
@@ -27,20 +27,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
var react_1 = __importStar(require("react"));
|
|
30
|
-
var
|
|
30
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
31
31
|
var Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
32
32
|
var Visibility_1 = __importDefault(require("@mui/icons-material/Visibility"));
|
|
33
33
|
var SourceIcon_1 = __importDefault(require("../../SourceIcon/SourceIcon"));
|
|
34
34
|
var SmallIconButton_1 = __importDefault(require("../../SmallIconButton/SmallIconButton"));
|
|
35
35
|
var CrosswalksDisplayContext_1 = require("../../../contexts/CrosswalksDisplayContext");
|
|
36
|
-
var
|
|
37
|
-
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
36
|
+
var contexts_1 = require("../../../contexts");
|
|
38
37
|
var styles_1 = require("./styles");
|
|
39
38
|
var DummyCrosswalkRow = function (_a) {
|
|
40
39
|
var crosswalkType = _a.crosswalkType, _b = _a.focusable, focusable = _b === void 0 ? true : _b;
|
|
41
40
|
var isDimmed = (0, CrosswalksDisplayContext_1.useCrosswalkHighlight)().isDimmed;
|
|
42
41
|
var styles = (0, styles_1.useStyles)({ isOpaque: !isDimmed });
|
|
43
|
-
var metadata = (0,
|
|
42
|
+
var metadata = (0, contexts_1.useMdmMetadata)();
|
|
44
43
|
var sourceSystemLabel = (0, mdm_sdk_1.getSourceSystemLabel)(metadata, crosswalkType);
|
|
45
44
|
return (react_1.default.createElement("div", { className: styles.root },
|
|
46
45
|
react_1.default.createElement(SmallIconButton_1.default, { size: "XXS", className: styles.focusedIcon, icon: focusable && Visibility_1.default, 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;
|
|
@@ -10,41 +10,18 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
|
|
38
|
-
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
39
|
-
var react_redux_1 = require("react-redux");
|
|
40
14
|
var react_1 = require("react");
|
|
41
15
|
var ramda_1 = require("ramda");
|
|
16
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
17
|
+
var contexts_1 = require("../../../contexts");
|
|
42
18
|
var useEditorContext = function (fieldName, dataTypeDefinition) {
|
|
43
|
-
var
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
19
|
+
var lookupsLoaded = (0, contexts_1.useMdmAction)('lookupsLoaded');
|
|
20
|
+
var lookupsForTypeResolved = (0, contexts_1.useMdmAction)('lookupsForTypeResolved');
|
|
21
|
+
var tenant = (0, contexts_1.useMdmTenant)();
|
|
22
|
+
var lookups = (0, contexts_1.useMdmLookups)();
|
|
23
|
+
var attributePresentations = (0, contexts_1.useMdmAttributePresentations)();
|
|
24
|
+
var globalSearchRequestOptions = (0, contexts_1.useMdmGlobalSearchRequestOptions)();
|
|
48
25
|
var typeaheadGetSuggestion = (0, react_1.useCallback)(function (searchValue, max, pageNo) {
|
|
49
26
|
return (0, mdm_sdk_1.getFacetedAttributeData)({
|
|
50
27
|
fieldName: fieldName,
|
|
@@ -62,7 +39,7 @@ var useEditorContext = function (fieldName, dataTypeDefinition) {
|
|
|
62
39
|
lookupCode: lookupCode,
|
|
63
40
|
getLookups: function () {
|
|
64
41
|
return (0, mdm_sdk_1.getLookups)().then(function (lookups) {
|
|
65
|
-
|
|
42
|
+
lookupsLoaded(lookups);
|
|
66
43
|
});
|
|
67
44
|
}
|
|
68
45
|
};
|
|
@@ -82,10 +59,7 @@ var useEditorContext = function (fieldName, dataTypeDefinition) {
|
|
|
82
59
|
return (0, mdm_sdk_1.resolveLookupsList)(lookupsList).then(function (response) {
|
|
83
60
|
if (Array.isArray(response)) {
|
|
84
61
|
var lookups_1 = response.reduce(function (acc, lookupData) { return (__assign(__assign({}, acc), lookupData[type])); }, {});
|
|
85
|
-
|
|
86
|
-
type: type,
|
|
87
|
-
values: lookups_1
|
|
88
|
-
}));
|
|
62
|
+
lookupsForTypeResolved({ type: type, values: lookups_1 });
|
|
89
63
|
}
|
|
90
64
|
});
|
|
91
65
|
}
|
|
@@ -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];
|
|
@@ -145,7 +145,7 @@ var TypeaheadEditor = function (_a) {
|
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
return (react_1.default.createElement(react_autosuggest_1.default, { suggestions: displayedSuggestions, shouldRenderSuggestions: ramda_1.T, inputProps: __assign(__assign({ value: inputValue, onChange: (0, ramda_1.pipe)((0, ramda_1.nthArg)(1), onInputChange), onKeyDown: function (event) {
|
|
148
|
-
if (event.
|
|
148
|
+
if (event.code === 'Enter' && multiple && !hasHighlightedItem) {
|
|
149
149
|
onInputChange({ method: 'enter', newValue: currentValue });
|
|
150
150
|
}
|
|
151
151
|
}, fullWidth: fullWidth }, inputProps), { autoComplete: 'nope' }), getSuggestionValue: ramda_1.identity, onSuggestionsFetchRequested: (0, ramda_1.ifElse)((0, ramda_1.propEq)('reason', 'input-changed'), debouncedFetchSuggestions, fetchSuggestions), onSuggestionsClearRequested: (0, ramda_1.pipe)((0, ramda_1.always)([]), setSuggestions, ramda_1.F, setPlaceholderVisibility, (0, ramda_1.always)(1), setPageNumber), renderInputComponent: function (_a) {
|