@reltio/components 1.4.1638 → 1.4.1640
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
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useMdmIsCollaborationEnabled = exports.useMdmSearchProviderData = exports.useMdmSearchNavigationData = exports.useMdmDataTenants = exports.useMdmEnvironment = exports.useMdmTenantName = exports.useMdmTenant = exports.useMdmTenantObject = exports.useMdmUserRoles = exports.useMdmUsername = exports.useMdmUser = exports.useMdmMetadata = exports.useMdmDependentLookups = exports.useMdmLookups = exports.useMdmProfileLastLoadedTime = exports.useMdmHistoryEvent = exports.useMdmHistorySlice = exports.useMdmHistoryMode = exports.useMdmHistoryDiff = exports.useMdmIsEditableMode = exports.useMdmIsViewMode = exports.useMdmMode = exports.useMdmEntityUriWithDataTenant = exports.useMdmEntityWithDiff = exports.useMdmEntityUri = exports.useMdmEntity = exports.useMdmModifiedEntities = exports.useMdmLookupAutocomplete = exports.useMdmAttributesSortingStrategy = exports.useMdmDefaultMaxValues = exports.useMdmAttributePresentations = exports.useMdmDateTimeMask = exports.useMdmDateMask = exports.useMdmPivotingAttributes = exports.useMdmShowEntityId = exports.useMdmImageAttributesFieldsOrder = exports.useMdmCollaborationPath = exports.useMdmApiPath = exports.useMdmReltioPath = exports.useMdmImageServicePath = exports.useMdmWorkflowPath = exports.useMdmServicesPath = exports.useMdmDtssPath = exports.useMdmUiPath = exports.useMdmAbsoluteImagePath = exports.useMdmExportPath = exports.useMdmWorkflowEnvironmentUrl = exports.useMdmUiError = exports.useMdmAutoCloseInterval = exports.MdmModuleProvider = void 0;
|
|
4
|
+
exports.useMdmListener = exports.useMdmAction = exports.useMdmGlobalSearchRequestOptions = exports.useMdmDependentLookupEditorContext = exports.useMdmAllRelationsToAddAndEdit = exports.useMdmDependentLookupsStructureNode = exports.useMdmActiveErrorsForAttributesPager = exports.useMdmDependentLookupEditorState = exports.useMdmInitialConnection = exports.useMdmInitialConnectionTempEntity = exports.useMdmModifiedEntity = exports.useMdmModifiedEntityDefaultProfilePic = exports.useMdmProfileErrors = exports.useMdmIsWorkflowEnabled = void 0;
|
|
5
|
+
var provider_1 = require("./provider");
|
|
6
|
+
Object.defineProperty(exports, "MdmModuleProvider", { enumerable: true, get: function () { return provider_1.MdmModuleProvider; } });
|
|
7
|
+
var hooks_1 = require("./hooks");
|
|
8
|
+
Object.defineProperty(exports, "useMdmAutoCloseInterval", { enumerable: true, get: function () { return hooks_1.useMdmAutoCloseInterval; } });
|
|
9
|
+
Object.defineProperty(exports, "useMdmUiError", { enumerable: true, get: function () { return hooks_1.useMdmUiError; } });
|
|
10
|
+
Object.defineProperty(exports, "useMdmWorkflowEnvironmentUrl", { enumerable: true, get: function () { return hooks_1.useMdmWorkflowEnvironmentUrl; } });
|
|
11
|
+
Object.defineProperty(exports, "useMdmExportPath", { enumerable: true, get: function () { return hooks_1.useMdmExportPath; } });
|
|
12
|
+
Object.defineProperty(exports, "useMdmAbsoluteImagePath", { enumerable: true, get: function () { return hooks_1.useMdmAbsoluteImagePath; } });
|
|
13
|
+
Object.defineProperty(exports, "useMdmUiPath", { enumerable: true, get: function () { return hooks_1.useMdmUiPath; } });
|
|
14
|
+
Object.defineProperty(exports, "useMdmDtssPath", { enumerable: true, get: function () { return hooks_1.useMdmDtssPath; } });
|
|
15
|
+
Object.defineProperty(exports, "useMdmServicesPath", { enumerable: true, get: function () { return hooks_1.useMdmServicesPath; } });
|
|
16
|
+
Object.defineProperty(exports, "useMdmWorkflowPath", { enumerable: true, get: function () { return hooks_1.useMdmWorkflowPath; } });
|
|
17
|
+
Object.defineProperty(exports, "useMdmImageServicePath", { enumerable: true, get: function () { return hooks_1.useMdmImageServicePath; } });
|
|
18
|
+
Object.defineProperty(exports, "useMdmReltioPath", { enumerable: true, get: function () { return hooks_1.useMdmReltioPath; } });
|
|
19
|
+
Object.defineProperty(exports, "useMdmApiPath", { enumerable: true, get: function () { return hooks_1.useMdmApiPath; } });
|
|
20
|
+
Object.defineProperty(exports, "useMdmCollaborationPath", { enumerable: true, get: function () { return hooks_1.useMdmCollaborationPath; } });
|
|
21
|
+
Object.defineProperty(exports, "useMdmImageAttributesFieldsOrder", { enumerable: true, get: function () { return hooks_1.useMdmImageAttributesFieldsOrder; } });
|
|
22
|
+
Object.defineProperty(exports, "useMdmShowEntityId", { enumerable: true, get: function () { return hooks_1.useMdmShowEntityId; } });
|
|
23
|
+
Object.defineProperty(exports, "useMdmPivotingAttributes", { enumerable: true, get: function () { return hooks_1.useMdmPivotingAttributes; } });
|
|
24
|
+
Object.defineProperty(exports, "useMdmDateMask", { enumerable: true, get: function () { return hooks_1.useMdmDateMask; } });
|
|
25
|
+
Object.defineProperty(exports, "useMdmDateTimeMask", { enumerable: true, get: function () { return hooks_1.useMdmDateTimeMask; } });
|
|
26
|
+
Object.defineProperty(exports, "useMdmAttributePresentations", { enumerable: true, get: function () { return hooks_1.useMdmAttributePresentations; } });
|
|
27
|
+
Object.defineProperty(exports, "useMdmDefaultMaxValues", { enumerable: true, get: function () { return hooks_1.useMdmDefaultMaxValues; } });
|
|
28
|
+
Object.defineProperty(exports, "useMdmAttributesSortingStrategy", { enumerable: true, get: function () { return hooks_1.useMdmAttributesSortingStrategy; } });
|
|
29
|
+
Object.defineProperty(exports, "useMdmLookupAutocomplete", { enumerable: true, get: function () { return hooks_1.useMdmLookupAutocomplete; } });
|
|
30
|
+
Object.defineProperty(exports, "useMdmModifiedEntities", { enumerable: true, get: function () { return hooks_1.useMdmModifiedEntities; } });
|
|
31
|
+
Object.defineProperty(exports, "useMdmEntity", { enumerable: true, get: function () { return hooks_1.useMdmEntity; } });
|
|
32
|
+
Object.defineProperty(exports, "useMdmEntityUri", { enumerable: true, get: function () { return hooks_1.useMdmEntityUri; } });
|
|
33
|
+
Object.defineProperty(exports, "useMdmEntityWithDiff", { enumerable: true, get: function () { return hooks_1.useMdmEntityWithDiff; } });
|
|
34
|
+
Object.defineProperty(exports, "useMdmEntityUriWithDataTenant", { enumerable: true, get: function () { return hooks_1.useMdmEntityUriWithDataTenant; } });
|
|
35
|
+
Object.defineProperty(exports, "useMdmMode", { enumerable: true, get: function () { return hooks_1.useMdmMode; } });
|
|
36
|
+
Object.defineProperty(exports, "useMdmIsViewMode", { enumerable: true, get: function () { return hooks_1.useMdmIsViewMode; } });
|
|
37
|
+
Object.defineProperty(exports, "useMdmIsEditableMode", { enumerable: true, get: function () { return hooks_1.useMdmIsEditableMode; } });
|
|
38
|
+
Object.defineProperty(exports, "useMdmHistoryDiff", { enumerable: true, get: function () { return hooks_1.useMdmHistoryDiff; } });
|
|
39
|
+
Object.defineProperty(exports, "useMdmHistoryMode", { enumerable: true, get: function () { return hooks_1.useMdmHistoryMode; } });
|
|
40
|
+
Object.defineProperty(exports, "useMdmHistorySlice", { enumerable: true, get: function () { return hooks_1.useMdmHistorySlice; } });
|
|
41
|
+
Object.defineProperty(exports, "useMdmHistoryEvent", { enumerable: true, get: function () { return hooks_1.useMdmHistoryEvent; } });
|
|
42
|
+
Object.defineProperty(exports, "useMdmProfileLastLoadedTime", { enumerable: true, get: function () { return hooks_1.useMdmProfileLastLoadedTime; } });
|
|
43
|
+
Object.defineProperty(exports, "useMdmLookups", { enumerable: true, get: function () { return hooks_1.useMdmLookups; } });
|
|
44
|
+
Object.defineProperty(exports, "useMdmDependentLookups", { enumerable: true, get: function () { return hooks_1.useMdmDependentLookups; } });
|
|
45
|
+
Object.defineProperty(exports, "useMdmMetadata", { enumerable: true, get: function () { return hooks_1.useMdmMetadata; } });
|
|
46
|
+
Object.defineProperty(exports, "useMdmUser", { enumerable: true, get: function () { return hooks_1.useMdmUser; } });
|
|
47
|
+
Object.defineProperty(exports, "useMdmUsername", { enumerable: true, get: function () { return hooks_1.useMdmUsername; } });
|
|
48
|
+
Object.defineProperty(exports, "useMdmUserRoles", { enumerable: true, get: function () { return hooks_1.useMdmUserRoles; } });
|
|
49
|
+
Object.defineProperty(exports, "useMdmTenantObject", { enumerable: true, get: function () { return hooks_1.useMdmTenantObject; } });
|
|
50
|
+
Object.defineProperty(exports, "useMdmTenant", { enumerable: true, get: function () { return hooks_1.useMdmTenant; } });
|
|
51
|
+
Object.defineProperty(exports, "useMdmTenantName", { enumerable: true, get: function () { return hooks_1.useMdmTenantName; } });
|
|
52
|
+
Object.defineProperty(exports, "useMdmEnvironment", { enumerable: true, get: function () { return hooks_1.useMdmEnvironment; } });
|
|
53
|
+
Object.defineProperty(exports, "useMdmDataTenants", { enumerable: true, get: function () { return hooks_1.useMdmDataTenants; } });
|
|
54
|
+
Object.defineProperty(exports, "useMdmSearchNavigationData", { enumerable: true, get: function () { return hooks_1.useMdmSearchNavigationData; } });
|
|
55
|
+
Object.defineProperty(exports, "useMdmSearchProviderData", { enumerable: true, get: function () { return hooks_1.useMdmSearchProviderData; } });
|
|
56
|
+
Object.defineProperty(exports, "useMdmIsCollaborationEnabled", { enumerable: true, get: function () { return hooks_1.useMdmIsCollaborationEnabled; } });
|
|
57
|
+
Object.defineProperty(exports, "useMdmIsWorkflowEnabled", { enumerable: true, get: function () { return hooks_1.useMdmIsWorkflowEnabled; } });
|
|
58
|
+
Object.defineProperty(exports, "useMdmProfileErrors", { enumerable: true, get: function () { return hooks_1.useMdmProfileErrors; } });
|
|
59
|
+
Object.defineProperty(exports, "useMdmModifiedEntityDefaultProfilePic", { enumerable: true, get: function () { return hooks_1.useMdmModifiedEntityDefaultProfilePic; } });
|
|
60
|
+
Object.defineProperty(exports, "useMdmModifiedEntity", { enumerable: true, get: function () { return hooks_1.useMdmModifiedEntity; } });
|
|
61
|
+
Object.defineProperty(exports, "useMdmInitialConnectionTempEntity", { enumerable: true, get: function () { return hooks_1.useMdmInitialConnectionTempEntity; } });
|
|
62
|
+
Object.defineProperty(exports, "useMdmInitialConnection", { enumerable: true, get: function () { return hooks_1.useMdmInitialConnection; } });
|
|
63
|
+
Object.defineProperty(exports, "useMdmDependentLookupEditorState", { enumerable: true, get: function () { return hooks_1.useMdmDependentLookupEditorState; } });
|
|
64
|
+
Object.defineProperty(exports, "useMdmActiveErrorsForAttributesPager", { enumerable: true, get: function () { return hooks_1.useMdmActiveErrorsForAttributesPager; } });
|
|
65
|
+
Object.defineProperty(exports, "useMdmDependentLookupsStructureNode", { enumerable: true, get: function () { return hooks_1.useMdmDependentLookupsStructureNode; } });
|
|
66
|
+
Object.defineProperty(exports, "useMdmAllRelationsToAddAndEdit", { enumerable: true, get: function () { return hooks_1.useMdmAllRelationsToAddAndEdit; } });
|
|
67
|
+
Object.defineProperty(exports, "useMdmDependentLookupEditorContext", { enumerable: true, get: function () { return hooks_1.useMdmDependentLookupEditorContext; } });
|
|
68
|
+
Object.defineProperty(exports, "useMdmGlobalSearchRequestOptions", { enumerable: true, get: function () { return hooks_1.useMdmGlobalSearchRequestOptions; } });
|
|
69
|
+
Object.defineProperty(exports, "useMdmAction", { enumerable: true, get: function () { return hooks_1.useMdmAction; } });
|
|
70
|
+
Object.defineProperty(exports, "useMdmListener", { enumerable: true, get: function () { return hooks_1.useMdmListener; } });
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MdmModuleActionsContextProps, MdmModuleValuesContextProps, MdmModuleListenersContextProps } from './context';
|
|
3
|
+
type Props = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
actions?: MdmModuleActionsContextProps;
|
|
6
|
+
values?: MdmModuleValuesContextProps;
|
|
7
|
+
listeners?: MdmModuleListenersContextProps;
|
|
8
|
+
};
|
|
9
|
+
export declare const MdmModuleProvider: ({ children, actions, values, listeners }: Props) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MdmModuleProvider = void 0;
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
8
|
+
var context_1 = require("./context");
|
|
9
|
+
var MdmModuleProvider = function (_a) {
|
|
10
|
+
var children = _a.children, _b = _a.actions, actions = _b === void 0 ? {} : _b, _c = _a.values, values = _c === void 0 ? {} : _c, _d = _a.listeners, listeners = _d === void 0 ? {} : _d;
|
|
11
|
+
return (react_1.default.createElement(context_1.MdmModuleActionsContext.Provider, { value: actions },
|
|
12
|
+
react_1.default.createElement(context_1.MdmModuleValuesContext.Provider, { value: values },
|
|
13
|
+
react_1.default.createElement(context_1.MdmModuleListenersContext.Provider, { value: listeners }, children))));
|
|
14
|
+
};
|
|
15
|
+
exports.MdmModuleProvider = MdmModuleProvider;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SimpleAttributeValue, DependentLookupsParentForApi, AttributeType, DependentLookupsState, Metadata, Entity, RelationsState } from '@reltio/mdm-sdk';
|
|
2
|
+
type DependentLookupEditorContext = {
|
|
3
|
+
parents: DependentLookupsParentForApi[];
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
value?: null;
|
|
7
|
+
};
|
|
8
|
+
export declare const fromCache: (valueUri: string, context: DependentLookupEditorContext) => DependentLookupEditorContext;
|
|
9
|
+
export declare const buildMissedParentsMessage: (missedAttributeTypes: AttributeType[]) => string;
|
|
10
|
+
type CommonProps = {
|
|
11
|
+
dependentLookups: DependentLookupsState;
|
|
12
|
+
metadata: Metadata;
|
|
13
|
+
modifiedEntities: Record<string, Entity>;
|
|
14
|
+
entityUri: string;
|
|
15
|
+
relations: RelationsState;
|
|
16
|
+
};
|
|
17
|
+
type GetDependentLookupEditorContextProps = CommonProps & {
|
|
18
|
+
attributeValue: SimpleAttributeValue;
|
|
19
|
+
attributeType: AttributeType;
|
|
20
|
+
};
|
|
21
|
+
export declare const getDependentLookupEditorContext: ({ dependentLookups, metadata, modifiedEntities, entityUri, relations, attributeValue, attributeType }: GetDependentLookupEditorContextProps) => DependentLookupEditorContext;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
14
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
15
|
+
if (ar || !(i in from)) {
|
|
16
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
17
|
+
ar[i] = from[i];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
21
|
+
};
|
|
22
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.getDependentLookupEditorContext = exports.buildMissedParentsMessage = exports.fromCache = void 0;
|
|
27
|
+
var ramda_1 = require("ramda");
|
|
28
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
29
|
+
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
30
|
+
var DLEditorContextCache = {};
|
|
31
|
+
var fromCache = function (valueUri, context) {
|
|
32
|
+
var cachedContext = DLEditorContextCache[valueUri];
|
|
33
|
+
if ((0, ramda_1.equals)(context, cachedContext)) {
|
|
34
|
+
return cachedContext;
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
if ((0, ramda_1.equals)(cachedContext === null || cachedContext === void 0 ? void 0 : cachedContext.parents, context.parents)) {
|
|
38
|
+
context.parents = cachedContext.parents;
|
|
39
|
+
}
|
|
40
|
+
DLEditorContextCache[valueUri] = context;
|
|
41
|
+
return context;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
exports.fromCache = fromCache;
|
|
45
|
+
var joinWords = function (words) {
|
|
46
|
+
return words.reduce(function (result, word, i) { return [result, word].join(i === words.length - 1 ? " ".concat(ui_i18n_1.default.text('and'), " ") : ', '); });
|
|
47
|
+
};
|
|
48
|
+
var buildMissedParentsMessage = function (missedAttributeTypes) {
|
|
49
|
+
if (!missedAttributeTypes.length)
|
|
50
|
+
return '';
|
|
51
|
+
return ui_i18n_1.default.text('Please select value for ${labels} ${attributes}.', {
|
|
52
|
+
labels: joinWords(missedAttributeTypes.map((0, ramda_1.pipe)((0, ramda_1.prop)('label'), function (label) { return "'".concat(label, "'"); }))),
|
|
53
|
+
attributes: missedAttributeTypes.length === 1 ? ui_i18n_1.default.text('attribute') : ui_i18n_1.default.text('attributes')
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
exports.buildMissedParentsMessage = buildMissedParentsMessage;
|
|
57
|
+
var getTypesMapKey = function (parent) { return "".concat(parent.type, "_").concat((0, mdm_sdk_1.getParentUri)(parent.uri)); };
|
|
58
|
+
var getParents = function (_a) {
|
|
59
|
+
var _b;
|
|
60
|
+
var dependentLookups = _a.dependentLookups, metadata = _a.metadata, modifiedEntities = _a.modifiedEntities, entityUri = _a.entityUri, relations = _a.relations, node = _a.node, valueUri = _a.valueUri;
|
|
61
|
+
var parentNodesValues = node.parents.flatMap(function (type) {
|
|
62
|
+
var parentNode = (0, mdm_sdk_1.getDependentLookupsStructureNode)(dependentLookups, type);
|
|
63
|
+
return parentNode.values.map(function (value) { return (__assign(__assign({}, value), { type: type, dependentLookupCode: parentNode.attrType.dependentLookupCode })); });
|
|
64
|
+
});
|
|
65
|
+
var connections = (0, mdm_sdk_1.getAllRelationsToAddAndEdit)(relations);
|
|
66
|
+
var ownParentNodesValues = (0, mdm_sdk_1.filterRelatedParentValuesForDependentLookupValueUri)({
|
|
67
|
+
parentValues: parentNodesValues,
|
|
68
|
+
valueUri: valueUri,
|
|
69
|
+
entityUri: entityUri,
|
|
70
|
+
modifiedEntities: modifiedEntities,
|
|
71
|
+
connections: connections
|
|
72
|
+
});
|
|
73
|
+
var possibleParentBaseTypeUris = (0, ramda_1.pipe)(mdm_sdk_1.getAttributeValuePath, (0, ramda_1.defaultTo)([]), (0, ramda_1.map)((0, ramda_1.pipe)((0, ramda_1.path)(['valueType', 'uri']), mdm_sdk_1.getBaseUri)), (0, ramda_1.prepend)((_b = modifiedEntities[entityUri]) === null || _b === void 0 ? void 0 : _b.type), (0, ramda_1.reject)(ramda_1.isNil), ramda_1.uniq)({ entityUri: entityUri, entitiesMap: modifiedEntities, connections: connections, metadata: metadata }, valueUri);
|
|
74
|
+
var neededParentsAttributeTypes = node.parents
|
|
75
|
+
.filter(function (typeUri) { return possibleParentBaseTypeUris.some((0, mdm_sdk_1.areOneHierarchyUris)(typeUri)); })
|
|
76
|
+
.map(function (typeUri) {
|
|
77
|
+
var parentNode = (0, mdm_sdk_1.getDependentLookupsStructureNode)(dependentLookups, typeUri);
|
|
78
|
+
return parentNode.attrType;
|
|
79
|
+
});
|
|
80
|
+
var missedParentsAttributeTypes = neededParentsAttributeTypes.filter(function (attrType) { return !ownParentNodesValues.some(function (_a) {
|
|
81
|
+
var type = _a.type, value = _a.value;
|
|
82
|
+
return value && type === attrType.uri;
|
|
83
|
+
}); });
|
|
84
|
+
var parents = Object.values(ownParentNodesValues.reduce(function (typesMap, parent) {
|
|
85
|
+
var _a;
|
|
86
|
+
var _b;
|
|
87
|
+
var key = getTypesMapKey(parent);
|
|
88
|
+
return __assign(__assign({}, typesMap), (_a = {}, _a[key] = {
|
|
89
|
+
type: parent.dependentLookupCode,
|
|
90
|
+
codeValues: (0, ramda_1.uniq)(__spreadArray([parent.value], (((_b = typesMap[key]) === null || _b === void 0 ? void 0 : _b.codeValues) || []), true))
|
|
91
|
+
.filter(Boolean)
|
|
92
|
+
.sort()
|
|
93
|
+
}, _a));
|
|
94
|
+
}, {})).filter(function (item) { return !!item.codeValues.length; });
|
|
95
|
+
return { parents: parents, missedParentsAttributeTypes: missedParentsAttributeTypes };
|
|
96
|
+
};
|
|
97
|
+
var getDependentLookupEditorContext = function (_a) {
|
|
98
|
+
var dependentLookups = _a.dependentLookups, metadata = _a.metadata, modifiedEntities = _a.modifiedEntities, entityUri = _a.entityUri, relations = _a.relations, attributeValue = _a.attributeValue, attributeType = _a.attributeType;
|
|
99
|
+
if (!(0, mdm_sdk_1.isDependentLookupAttrType)(attributeType)) {
|
|
100
|
+
return null;
|
|
101
|
+
}
|
|
102
|
+
var attributeTypeUri = attributeType.uri;
|
|
103
|
+
var node = (0, mdm_sdk_1.getDependentLookupsStructureNode)(dependentLookups, attributeTypeUri);
|
|
104
|
+
if (node) {
|
|
105
|
+
var valueUri = attributeValue.uri;
|
|
106
|
+
var _b = getParents({
|
|
107
|
+
dependentLookups: dependentLookups,
|
|
108
|
+
metadata: metadata,
|
|
109
|
+
modifiedEntities: modifiedEntities,
|
|
110
|
+
entityUri: entityUri,
|
|
111
|
+
relations: relations,
|
|
112
|
+
valueUri: valueUri,
|
|
113
|
+
node: node
|
|
114
|
+
}), parents = _b.parents, missedParentsAttributeTypes = _b.missedParentsAttributeTypes;
|
|
115
|
+
var _c = ((0, mdm_sdk_1.getDependentLookupEditorState)(dependentLookups, valueUri) || {}).isBlocked, isBlocked = _c === void 0 ? false : _c;
|
|
116
|
+
var missedParentsMessage = (0, exports.buildMissedParentsMessage)(missedParentsAttributeTypes);
|
|
117
|
+
var isEmptyValue = !(attributeValue === null || attributeValue === void 0 ? void 0 : attributeValue.lookupCode) && !(attributeValue === null || attributeValue === void 0 ? void 0 : attributeValue.value);
|
|
118
|
+
var placeholder = (isEmptyValue && isBlocked && ui_i18n_1.default.text('Populating values...')) ||
|
|
119
|
+
(isEmptyValue && missedParentsMessage) ||
|
|
120
|
+
'';
|
|
121
|
+
var context = {
|
|
122
|
+
parents: missedParentsMessage ? null : parents,
|
|
123
|
+
disabled: (!!missedParentsMessage && isEmptyValue) || isBlocked,
|
|
124
|
+
placeholder: placeholder
|
|
125
|
+
};
|
|
126
|
+
if (placeholder) {
|
|
127
|
+
context.value = null;
|
|
128
|
+
}
|
|
129
|
+
return (0, exports.fromCache)(valueUri, context);
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
exports.getDependentLookupEditorContext = getDependentLookupEditorContext;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getModifiedEntityDefaultProfilePic = exports.getModifiedEntity = void 0;
|
|
4
|
+
var getModifiedEntity = function (modifiedEntities, entityUri) {
|
|
5
|
+
return entityUri && modifiedEntities[entityUri];
|
|
6
|
+
};
|
|
7
|
+
exports.getModifiedEntity = getModifiedEntity;
|
|
8
|
+
var getModifiedEntityDefaultProfilePic = function (state, uri) {
|
|
9
|
+
return uri && state[uri] && state[uri].defaultProfilePic;
|
|
10
|
+
};
|
|
11
|
+
exports.getModifiedEntityDefaultProfilePic = getModifiedEntityDefaultProfilePic;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getModifiedEntityDefaultProfilePic = exports.getModifiedEntity = void 0;
|
|
4
|
+
var getModifiedEntity = function (modifiedEntities, entityUri) {
|
|
5
|
+
return entityUri && modifiedEntities[entityUri];
|
|
6
|
+
};
|
|
7
|
+
exports.getModifiedEntity = getModifiedEntity;
|
|
8
|
+
var getModifiedEntityDefaultProfilePic = function (state, uri) {
|
|
9
|
+
return uri && state[uri] && state[uri].defaultProfilePic;
|
|
10
|
+
};
|
|
11
|
+
exports.getModifiedEntityDefaultProfilePic = getModifiedEntityDefaultProfilePic;
|
package/cjs/contexts/index.d.ts
CHANGED
|
@@ -31,3 +31,4 @@ export { FeaturesContext } from './FeaturesContext';
|
|
|
31
31
|
export { DependentLookupAutopopulationContext } from './DependentLookupAutopopulationContext';
|
|
32
32
|
export { PageRequestsAbortingContext } from './PageRequestsAbortingContext';
|
|
33
33
|
export { ActionsHookProvider, useActionsHook } from './ActionsHookContext';
|
|
34
|
+
export * from './MdmModuleContext';
|
package/cjs/contexts/index.js
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
17
|
exports.useActionsHook = exports.ActionsHookProvider = exports.PageRequestsAbortingContext = exports.DependentLookupAutopopulationContext = exports.FeaturesContext = exports.LabelsContext = exports.UrlGeneratorsContext = exports.isHighlightedAttributeType = exports.isHighlightedErrorType = exports.ScrollType = exports.ScrollToElementProvider = exports.ScrollToElementContext = exports.SearchValueContext = exports.InterceptHandlersContext = exports.HighlightedValuesContext = exports.SnackbarContext = exports.SearchFiltersContext = exports.useReloadFacet = exports.ReloadFacetProvider = exports.useReloadAllFacets = exports.SandboxAPIContext = exports.EntityContext = exports.RelatedObjectUrisContext = exports.WorkflowTasksContext = exports.useEntityLoadingIndication = exports.EntityLoadingIndicationProvider = exports.EntityMarkerContext = exports.useAttributeExpanded = exports.ExpandedAttributesProvider = exports.useHighlightedCrosswalks = exports.useCrosswalkHighlight = exports.useCrosswalkFocus = exports.useCrosswalkColor = exports.CrosswalksDisplayProvider = exports.EntitiesMapContext = exports.IdContext = exports.ProfilePerspectiveViewContext = exports.usePerspectivesSettings = exports.PerspectivesSettingsContext = exports.PivotingAttributeContext = exports.UsersContext = exports.CollaborationContextProvider = exports.CollaborationContext = exports.BlockImageGalleryDialogContext = exports.ViewIdContext = exports.PopupBoundariesContext = exports.HistoryDiffContext = exports.AsyncMountContext = void 0;
|
|
4
18
|
var AsyncMountContext_1 = require("./AsyncMountContext");
|
|
@@ -82,3 +96,4 @@ Object.defineProperty(exports, "PageRequestsAbortingContext", { enumerable: true
|
|
|
82
96
|
var ActionsHookContext_1 = require("./ActionsHookContext");
|
|
83
97
|
Object.defineProperty(exports, "ActionsHookProvider", { enumerable: true, get: function () { return ActionsHookContext_1.ActionsHookProvider; } });
|
|
84
98
|
Object.defineProperty(exports, "useActionsHook", { enumerable: true, get: function () { return ActionsHookContext_1.useActionsHook; } });
|
|
99
|
+
__exportStar(require("./MdmModuleContext"), exports);
|
|
@@ -10,34 +10,9 @@ 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
14
|
exports.useAPI = void 0;
|
|
38
15
|
var react_1 = require("react");
|
|
39
|
-
var react_redux_1 = require("react-redux");
|
|
40
|
-
var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
|
|
41
16
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
42
17
|
var ramda_1 = require("ramda");
|
|
43
18
|
var workflow_1 = require("../../components/workflow");
|
|
@@ -58,28 +33,27 @@ var useAPI = function (config) {
|
|
|
58
33
|
var workerRef = (0, react_1.useRef)();
|
|
59
34
|
var requestListeners = (0, react_1.useRef)({});
|
|
60
35
|
var responseListeners = (0, react_1.useRef)({});
|
|
61
|
-
var dispatch = (0, react_redux_1.useDispatch)();
|
|
62
36
|
var sanitizeHtml = (0, useHtmlSanitizer_1.useHtmlSanitizer)();
|
|
63
|
-
var
|
|
64
|
-
var
|
|
37
|
+
var openSearch = (0, contexts_1.useMdmAction)('openSearch');
|
|
38
|
+
var uiPath = (0, contexts_1.useMdmUiPath)();
|
|
39
|
+
var tenant = (0, contexts_1.useMdmTenant)();
|
|
65
40
|
var workerUrl = (0, helpers_1.getWorkerURL)(uiPath, tenant);
|
|
66
41
|
var showSnackbarMessage = (0, react_1.useContext)(contexts_1.SnackbarContext);
|
|
67
42
|
var qxApi = (0, react_1.useContext)(contexts_1.SandboxAPIContext);
|
|
68
43
|
var interceptHandlers = (0, react_1.useContext)(contexts_1.InterceptHandlersContext);
|
|
69
44
|
var workflowCheckPermission = (0, workflow_1.useWorkflowCheckPermission)();
|
|
70
|
-
var metadata = (0,
|
|
71
|
-
var entity = (0,
|
|
72
|
-
var apiPath = (0,
|
|
73
|
-
var servicesPath = (0,
|
|
74
|
-
var reltioPath = (0,
|
|
75
|
-
var workflowPath = (0,
|
|
76
|
-
var user = (0,
|
|
77
|
-
var entityUri = (0,
|
|
78
|
-
var isEditableMode = (0,
|
|
79
|
-
var environment = (0,
|
|
80
|
-
var _j = (0,
|
|
45
|
+
var metadata = (0, contexts_1.useMdmMetadata)() || {};
|
|
46
|
+
var entity = (0, contexts_1.useMdmEntity)() || {};
|
|
47
|
+
var apiPath = (0, contexts_1.useMdmApiPath)();
|
|
48
|
+
var servicesPath = (0, contexts_1.useMdmServicesPath)();
|
|
49
|
+
var reltioPath = (0, contexts_1.useMdmReltioPath)();
|
|
50
|
+
var workflowPath = (0, contexts_1.useMdmWorkflowPath)();
|
|
51
|
+
var user = (0, contexts_1.useMdmUser)();
|
|
52
|
+
var entityUri = (0, contexts_1.useMdmEntityUri)();
|
|
53
|
+
var isEditableMode = (0, contexts_1.useMdmIsEditableMode)();
|
|
54
|
+
var environment = (0, contexts_1.useMdmWorkflowEnvironmentUrl)();
|
|
55
|
+
var _j = (0, contexts_1.useMdmSearchProviderData)() || {}, typeSearch = _j.type, search = _j.data;
|
|
81
56
|
var searchQuery = typeSearch === 'search' ? search === null || search === void 0 ? void 0 : search.query : null;
|
|
82
|
-
var openSearch = function (search) { return dispatch(mdm_module_1.ui.actions.openSearch(search)); };
|
|
83
57
|
var innerText = '';
|
|
84
58
|
var popupText = '';
|
|
85
59
|
var process = function (_a) {
|
|
@@ -19,16 +19,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
19
19
|
}
|
|
20
20
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
21
21
|
};
|
|
22
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
|
-
};
|
|
25
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
23
|
exports.useCollaboration = void 0;
|
|
27
24
|
var react_1 = require("react");
|
|
28
|
-
var react_redux_1 = require("react-redux");
|
|
29
25
|
var ramda_1 = require("ramda");
|
|
30
26
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
31
|
-
var
|
|
27
|
+
var contexts_1 = require("../contexts");
|
|
32
28
|
var filterReplies = function (replyId, replies) { return replies.filter(function (reply) { return reply.replyId !== replyId; }); };
|
|
33
29
|
var getUpdatedReplies = function (comment, reply) {
|
|
34
30
|
var changedReplyIndex = comment.replies.findIndex(function (_a) {
|
|
@@ -43,10 +39,10 @@ var defaultObjectIds = [];
|
|
|
43
39
|
var catchErrorInRequest = function (e) { return console.error('Collaboration error', e); };
|
|
44
40
|
var useCollaboration = function (_a) {
|
|
45
41
|
var _b = _a.objectIds, objectIds = _b === void 0 ? defaultObjectIds : _b, objectTypes = _a.objectTypes, _c = _a.enabled, enabled = _c === void 0 ? true : _c;
|
|
46
|
-
var entity = (0,
|
|
47
|
-
var tenant = (0,
|
|
48
|
-
var collaborationPath = (0,
|
|
49
|
-
var isCollaborationEnabled = (0,
|
|
42
|
+
var entity = (0, contexts_1.useMdmEntity)();
|
|
43
|
+
var tenant = (0, contexts_1.useMdmTenant)();
|
|
44
|
+
var collaborationPath = (0, contexts_1.useMdmCollaborationPath)();
|
|
45
|
+
var isCollaborationEnabled = (0, contexts_1.useMdmIsCollaborationEnabled)() && enabled;
|
|
50
46
|
var _d = (0, react_1.useState)(null), pageToken = _d[0], setPageToken = _d[1];
|
|
51
47
|
var _e = (0, react_1.useState)([]), comments = _e[0], setComments = _e[1];
|
|
52
48
|
var _f = (0, react_1.useState)(null), commentsMap = _f[0], setCommentsMap = _f[1];
|
|
@@ -10,21 +10,17 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
14
|
exports.useCommentsEntitiesMap = void 0;
|
|
18
15
|
var react_1 = require("react");
|
|
19
16
|
var ramda_1 = require("ramda");
|
|
20
|
-
var react_redux_1 = require("react-redux");
|
|
21
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
22
17
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
23
18
|
var useSafePromise_1 = require("./useSafePromise");
|
|
19
|
+
var contexts_1 = require("../contexts");
|
|
24
20
|
var SELECT_OPTION = 'uri,label,type';
|
|
25
21
|
var useCommentsEntitiesMap = function (comments) {
|
|
26
22
|
var safePromise = (0, useSafePromise_1.useSafePromise)();
|
|
27
|
-
var currentEntityUri = (0,
|
|
23
|
+
var currentEntityUri = (0, contexts_1.useMdmEntityUriWithDataTenant)();
|
|
28
24
|
var _a = (0, react_1.useState)({}), entitiesMap = _a[0], setEntitiesMap = _a[1];
|
|
29
25
|
var getEntities = (0, react_1.useCallback)(function (entitiesUris) {
|
|
30
26
|
var requestFilters = [
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.useConfigPermissions = void 0;
|
|
7
|
-
var react_redux_1 = require("react-redux");
|
|
8
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
9
|
-
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
10
4
|
var react_1 = require("react");
|
|
5
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
6
|
+
var contexts_1 = require("../contexts");
|
|
11
7
|
var emptyArray = [];
|
|
12
8
|
var useConfigPermissions = function () {
|
|
13
|
-
var userRoles = (0,
|
|
9
|
+
var userRoles = (0, contexts_1.useMdmUserRoles)() || emptyArray;
|
|
14
10
|
return {
|
|
15
11
|
canCreate: (0, react_1.useCallback)((0, mdm_sdk_1.checkConfigPermission)(mdm_sdk_1.ConfigPermissions.CREATE, userRoles), [userRoles]),
|
|
16
12
|
canRead: (0, react_1.useCallback)((0, mdm_sdk_1.checkConfigPermission)(mdm_sdk_1.ConfigPermissions.READ, userRoles), [userRoles]),
|
|
@@ -10,29 +10,6 @@ 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
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
14
|
var t = {};
|
|
38
15
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -56,8 +33,6 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
56
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
34
|
exports.useCustomScripts = void 0;
|
|
58
35
|
var react_1 = require("react");
|
|
59
|
-
var react_redux_1 = require("react-redux");
|
|
60
|
-
var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
|
|
61
36
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
62
37
|
var nanoid_1 = require("nanoid");
|
|
63
38
|
var ramda_1 = require("ramda");
|
|
@@ -80,22 +55,21 @@ var useCustomScripts = function (config) {
|
|
|
80
55
|
var showSnackbarMessage = (0, react_1.useContext)(contexts_1.SnackbarContext);
|
|
81
56
|
var _b = (0, react_1.useContext)(contexts_1.InterceptHandlersContext), addInternalRequestInterceptor = _b.addInternalRequestInterceptor, addInternalResponseInterceptor = _b.addInternalResponseInterceptor, removeInternalRequestInterceptor = _b.removeInternalRequestInterceptor, removeInternalResponseInterceptor = _b.removeInternalResponseInterceptor;
|
|
82
57
|
var qxApi = (0, react_1.useContext)(contexts_1.SandboxAPIContext);
|
|
83
|
-
var
|
|
84
|
-
var metadata = (_a = (0,
|
|
85
|
-
var entity = (0,
|
|
86
|
-
var uiPath = (0,
|
|
87
|
-
var servicesPath = (0,
|
|
88
|
-
var reltioPath = (0,
|
|
89
|
-
var tenant = (0,
|
|
58
|
+
var openSearch = (0, contexts_1.useMdmAction)('openSearch');
|
|
59
|
+
var metadata = (_a = (0, contexts_1.useMdmMetadata)()) !== null && _a !== void 0 ? _a : null;
|
|
60
|
+
var entity = (0, contexts_1.useMdmEntity)() || {};
|
|
61
|
+
var uiPath = (0, contexts_1.useMdmUiPath)();
|
|
62
|
+
var servicesPath = (0, contexts_1.useMdmServicesPath)();
|
|
63
|
+
var reltioPath = (0, contexts_1.useMdmReltioPath)();
|
|
64
|
+
var tenant = (0, contexts_1.useMdmTenant)();
|
|
90
65
|
var workerUrl = (0, useAPI_1.getWorkerURL)(uiPath, tenant);
|
|
91
|
-
var apiPath = (0,
|
|
92
|
-
var workflowPath = (0,
|
|
93
|
-
var user = (0,
|
|
94
|
-
var entityUri = (0,
|
|
95
|
-
var environment = (0,
|
|
66
|
+
var apiPath = (0, contexts_1.useMdmApiPath)();
|
|
67
|
+
var workflowPath = (0, contexts_1.useMdmWorkflowPath)();
|
|
68
|
+
var user = (0, contexts_1.useMdmUser)();
|
|
69
|
+
var entityUri = (0, contexts_1.useMdmEntityUri)();
|
|
70
|
+
var environment = (0, contexts_1.useMdmWorkflowEnvironmentUrl)();
|
|
96
71
|
var workflowCheckPermission = (0, workflow_1.useWorkflowCheckPermission)();
|
|
97
|
-
var _c = (0,
|
|
98
|
-
var openSearch = function (search) { return dispatch(mdm_module_1.ui.actions.openSearch(search)); };
|
|
72
|
+
var _c = (0, contexts_1.useMdmSearchProviderData)() || {}, typeSearch = _c.type, search = _c.data;
|
|
99
73
|
var requestListeners = (0, react_1.useRef)({});
|
|
100
74
|
var responseListeners = (0, react_1.useRef)({});
|
|
101
75
|
var workers = (0, react_1.useRef)({});
|
|
@@ -10,19 +10,15 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
14
|
exports.useEditableConnection = void 0;
|
|
18
15
|
var react_1 = require("react");
|
|
19
16
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
20
17
|
var ramda_1 = require("ramda");
|
|
21
|
-
var
|
|
22
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
18
|
+
var contexts_1 = require("../contexts");
|
|
23
19
|
var useEditableConnection = function (_a) {
|
|
24
20
|
var connection = _a.connection, onConnectionChange = _a.onConnectionChange, relatedEntity = _a.relatedEntity;
|
|
25
|
-
var metadata = (0,
|
|
21
|
+
var metadata = (0, contexts_1.useMdmMetadata)();
|
|
26
22
|
var onRelationChange = (0, react_1.useCallback)(function (relation) { return onConnectionChange(__assign(__assign({}, connection), { relation: relation })); }, [connection, onConnectionChange]);
|
|
27
23
|
var handleAddAttributes = (0, react_1.useCallback)((0, ramda_1.pipe)((0, mdm_sdk_1.addEntityAttributes)(connection.relation), onRelationChange), [
|
|
28
24
|
connection.relation,
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.useMarkAsNotMatchRequest = void 0;
|
|
7
|
-
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
8
|
-
var react_redux_1 = require("react-redux");
|
|
9
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
10
4
|
var react_1 = require("react");
|
|
5
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
11
6
|
var core_1 = require("../core");
|
|
12
7
|
var useIsMountedRef_1 = require("./useIsMountedRef");
|
|
8
|
+
var contexts_1 = require("../contexts");
|
|
13
9
|
var useMarkAsNotMatchRequest = function (_a) {
|
|
14
10
|
var entities = _a.entities, entity = _a.entity, onFinishRequest = _a.onFinishRequest, onStartRequest = _a.onStartRequest, onSuccess = _a.onSuccess, _b = _a.onError, onError = _b === void 0 ? core_1.noop : _b;
|
|
15
11
|
var isMountedRef = (0, useIsMountedRef_1.useIsMountedRef)();
|
|
16
|
-
var tenant = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getTenant);
|
|
17
|
-
var dtssPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getDtssPath);
|
|
18
12
|
var _c = (0, react_1.useState)(false), isPending = _c[0], setIsPending = _c[1];
|
|
13
|
+
var tenant = (0, contexts_1.useMdmTenant)();
|
|
14
|
+
var dtssPath = (0, contexts_1.useMdmDtssPath)();
|
|
19
15
|
var sendMarkAsNotMatchRequest = (0, react_1.useCallback)(function () {
|
|
20
16
|
onStartRequest === null || onStartRequest === void 0 ? void 0 : onStartRequest();
|
|
21
17
|
setIsPending(true);
|