@reltio/components 1.4.1637 → 1.4.1639
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/AttributeGroupIcon/AttributeGroupIcon.js +2 -3
- package/cjs/components/AttributeSelector/AttributeSelector.js +2 -3
- package/cjs/components/AttributesFiltersBuilder/AttributesFiltersBuilder.js +4 -5
- package/cjs/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.d.ts +13 -19
- package/cjs/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.js +6 -17
- package/cjs/components/BasicView/BasicView.d.ts +1 -1
- package/cjs/components/CollaborationItem/Comment/Comment.js +1 -3
- package/cjs/components/CollaborationItem/CommentTarget/CommentTarget.js +2 -4
- package/cjs/components/CollaborationItem/CommentTarget/styles.d.ts +1 -1
- package/cjs/components/CollaborationItem/RepliedComment/RepliedComment.js +1 -3
- package/cjs/components/CollaborationItem/SendMessageArea/SendMessageArea.js +1 -3
- package/cjs/components/ColoredSourceIcon/ColoredSourceIcon.js +1 -3
- package/cjs/components/ConnectionEditor/ConnectionEditor.js +3 -6
- package/cjs/components/DataTenantBadge/DataTenantBadge.js +6 -4
- package/cjs/components/DataTypeValue/DataTypeValue.js +4 -5
- package/cjs/components/EntityAvatar/EntityAvatar.js +4 -5
- package/cjs/components/EntityTypeBadge/EntityTypeBadge.js +4 -6
- package/cjs/components/EntityTypeIcon/EntityTypeIcon.js +2 -3
- package/cjs/components/EntityUriLink/EntityUriLink.js +4 -6
- package/cjs/components/ErrorPopup/ErrorPopup.d.ts +13 -8
- package/cjs/components/ErrorPopup/ErrorPopup.js +23 -18
- package/cjs/components/ErrorPopup/styles.d.ts +1 -1
- package/cjs/components/HierarchyNodeTitle/HierarchyNodeTitle.js +4 -6
- package/cjs/components/ImageAttributesGallery/ImageAttributesGallery.js +2 -6
- package/cjs/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.d.ts +0 -5
- package/cjs/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.js +6 -7
- package/cjs/components/ImageDetailsView/MetaInfo/MetaInfo.js +3 -4
- package/cjs/components/ImageDetailsView/MetaInfoList/MetaInfoItem/styles.d.ts +1 -1
- package/cjs/components/ImageDetailsView/MetaInfoList/MetaInfoList.js +3 -4
- package/cjs/components/ImageDetailsView/hooks/useEditMetaInfo.js +3 -10
- package/cjs/components/MatchRulesBlock/SimpleMatchRules/styles.d.ts +1 -1
- package/cjs/components/MatchRulesSelector/MatchRulesSelector.d.ts +1 -4
- package/cjs/components/MatchRulesSelector/MatchRulesSelector.js +2 -4
- package/cjs/components/ModeSwitcher/styles.d.ts +1 -1
- package/cjs/components/PivotingUriLink/PivotingUriLink.js +1 -3
- package/cjs/components/Popper/Popper.d.ts +1 -1
- package/cjs/components/PotentialMatchReviewCard/styles.d.ts +1 -1
- package/cjs/components/ProfileBand/ProfileBand.js +3 -4
- package/cjs/components/ProfileBandNavigation/ProfileBandNavigationWidget.d.ts +1 -1
- package/cjs/components/ProfileBandNavigation/hooks/useSearchNavigation.js +19 -54
- package/cjs/components/ProfileBandNavigation/hooks/useSearchNavigationVisibility.js +4 -8
- package/cjs/components/ProfilesList/ProfilesList.d.ts +2 -3
- package/cjs/components/ProfilesList/ProfilesList.js +3 -1
- package/cjs/components/RelationEditor/RelationEditor.js +46 -33
- package/cjs/components/RelevanceScoreBadge/RelevanceScoreBadge.js +3 -4
- package/cjs/components/SelectAttributesList/SelectAttributesList.js +2 -3
- package/cjs/components/SmallIconButton/SmallIconButton.d.ts +1 -1
- package/cjs/components/SmallIconButton/index.d.ts +1 -1
- package/cjs/components/SourceIcon/SourceIcon.js +2 -3
- package/cjs/components/SourceSystemsSelector/SourceSystemsSelector.js +2 -3
- package/cjs/components/StepNavigation/ProgressButton.d.ts +12 -0
- package/cjs/components/StepNavigation/ProgressButton.js +41 -0
- package/cjs/components/StepNavigation/StepNavigation.d.ts +13 -0
- package/cjs/components/StepNavigation/StepNavigation.js +62 -0
- package/cjs/components/StepNavigation/styles.d.ts +2 -0
- package/cjs/components/StepNavigation/styles.js +44 -0
- package/cjs/components/TenantLabel/TenantLabel.d.ts +6 -0
- package/cjs/components/TenantLabel/TenantLabel.js +22 -0
- package/cjs/components/TenantLabel/styles.d.ts +1 -0
- package/cjs/components/TenantLabel/styles.js +22 -0
- package/cjs/components/TenantsDropDownSelector/TenantsDropDownSelector.js +3 -4
- package/cjs/components/UploadImageDialog/TargetBox/styles.d.ts +1 -1
- package/cjs/components/UploadImageDialog/UploadImageDialog.js +4 -5
- package/cjs/components/UserSelector/UserSelector.js +3 -4
- package/cjs/components/activityLog/ActivityExportButton/ActivityExportButton.js +6 -7
- package/cjs/components/activityLog/ActivityFilterEditor/ActivityFilterEditor.js +2 -3
- package/cjs/components/activityLog/ActivityFilterEditor/EntityChangedSelectors.js +2 -3
- package/cjs/components/activityLog/ActivityFilterEditor/SourceSelector.js +3 -4
- package/cjs/components/activityLog/ActivityLogFilter/ActivityLogFilter.d.ts +1 -1
- package/cjs/components/activityLog/ActivityLogFilter/ActivityLogFilter.js +5 -3
- package/cjs/components/activityLog/activities/GroupActivity.js +2 -3
- package/cjs/components/activityLog/activities/RelationObject/styles.d.ts +1 -1
- package/cjs/components/activityLog/activities/SearchActivity.js +6 -7
- package/cjs/components/activityLog/activities/fields/DeltaField.js +7 -8
- package/cjs/components/activityLog/activities/fields/commonStyles.d.ts +1 -1
- package/cjs/components/activityLog/activities/records/EntityRecord.js +8 -9
- package/cjs/components/attributes/AttributesView/AttributesView.d.ts +2 -2
- package/cjs/components/attributes/AttributesView/AttributesView.js +8 -4
- package/cjs/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +1 -1
- package/cjs/components/attributes/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
- package/cjs/components/attributes/ImageAttributesLine/ImageAttributesLine.js +8 -9
- package/cjs/components/attributes/OvIcon/OvIcon.d.ts +1 -1
- package/cjs/components/attributes/OvIcon/OvIcon.js +4 -6
- package/cjs/components/attributes/PivotingAttributes/PivotingTooltip.js +3 -5
- package/cjs/components/attributes/PivotingAttributes/PivotingTooltipContent.js +3 -4
- package/cjs/components/attributes/PivotingAttributes/styles.d.ts +1 -1
- package/cjs/components/attributes/editMode/AttributesFactory/AttributesFactory.js +1 -1
- package/cjs/components/attributes/editMode/AttributesPager/AttributeRenderer.d.ts +7 -2
- package/cjs/components/attributes/editMode/AttributesPager/AttributesPager.d.ts +2 -38
- package/cjs/components/attributes/editMode/AttributesPager/AttributesPager.js +10 -2
- package/cjs/components/attributes/editMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
- package/cjs/components/attributes/editMode/AttributesPager/index.d.ts +2 -39
- package/cjs/components/attributes/editMode/AttributesPager/index.js +5 -44
- package/cjs/components/attributes/editMode/AttributesPager/styles.d.ts +1 -1
- package/cjs/components/attributes/editMode/AttributesPager/types.d.ts +21 -0
- package/cjs/components/attributes/editMode/AttributesView/AttributesView.d.ts +1 -1
- package/cjs/components/attributes/editMode/AttributesView/AttributesView.js +10 -12
- package/cjs/components/attributes/editMode/EntityCreator/EntityCreator.d.ts +9 -24
- package/cjs/components/attributes/editMode/EntityCreator/EntityCreator.js +7 -15
- package/cjs/components/attributes/editMode/EntitySelector/EntitySelector.js +1 -1
- package/cjs/components/attributes/editMode/EntitySelector/components/SingleValue.js +3 -6
- package/cjs/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
- package/cjs/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.js +8 -10
- package/cjs/components/attributes/editMode/MoreAttributesButton/useMoreAttributesItems.js +2 -3
- package/cjs/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.js +16 -15
- package/cjs/components/attributes/editMode/Roles/Roles.js +4 -5
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor.js +4 -9
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/useAutopopulationContextValue.js +7 -30
- package/cjs/components/attributes/editMode/Tags/Tags.js +3 -4
- package/cjs/components/attributes/inline/ReferenceAttribute/ReferenceAttribute.js +3 -5
- package/cjs/components/attributes/inline/common/SourceItem.js +2 -4
- package/cjs/components/attributes/readMode/AttributesList/AttributesList.js +1 -1
- package/cjs/components/attributes/readMode/AttributesPager/AttributesPager.d.ts +1 -3
- package/cjs/components/attributes/readMode/AttributesPager/AttributesPager.js +7 -2
- package/cjs/components/attributes/readMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
- package/cjs/components/attributes/readMode/AttributesPager/MultiLineRenderer.d.ts +1 -2
- package/cjs/components/attributes/readMode/AttributesPager/styles.d.ts +1 -1
- package/cjs/components/attributes/readMode/AttributesView/AttributesView.d.ts +2 -2
- package/cjs/components/attributes/readMode/AttributesView/AttributesView.js +3 -4
- package/cjs/components/attributes/readMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
- package/cjs/components/attributes/readMode/ReferenceAttribute/ReferenceAttribute.js +2 -4
- package/cjs/components/attributes/readMode/SpecialAttributes/Roles/Role.js +2 -6
- package/cjs/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +2 -4
- package/cjs/components/attributes/types/attributesView.d.ts +2 -7
- package/cjs/components/crosswalks/AttributesTable/AddAttributesButton/AddAttributesButton.js +2 -3
- package/cjs/components/crosswalks/AttributesTable/AttributesTable.js +2 -3
- package/cjs/components/crosswalks/AttributesTable/cell-renderers/RuleTypeInfoButton.js +21 -17
- package/cjs/components/crosswalks/AttributesTable/cell-renderers/WinnerSourcesRenderer.js +1 -3
- package/cjs/components/crosswalks/CrosswalkAttributes/CrosswalkAttributes.js +9 -10
- package/cjs/components/crosswalks/CrosswalkDragLayer/CrosswalkDragPreview.js +3 -4
- package/cjs/components/crosswalks/CrosswalkRow/CrosswalkRow.js +11 -12
- package/cjs/components/crosswalks/DummyCrosswalkRow/DummyCrosswalkRow.js +3 -4
- package/cjs/components/editors/DataTypeValueEditor/useEditorContext.d.ts +3 -3
- package/cjs/components/editors/DataTypeValueEditor/useEditorContext.js +10 -36
- package/cjs/components/editors/DateRangeEditor/DateRangeEditor.d.ts +3 -3
- package/cjs/components/editors/TypeaheadEditor/TypeaheadEditor.js +1 -1
- package/cjs/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
- package/cjs/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
- package/cjs/components/history/HistoryMenuButton/HistoryMenuButton.js +5 -32
- package/cjs/components/history/HistoryTree/HistoryTree.js +9 -8
- package/cjs/components/history/HistoryTree/styles.d.ts +1 -1
- package/cjs/components/history/ProfileBandHistory/ProfileBandHistory.js +5 -31
- package/cjs/components/history/hooks/useHistoryDiff.js +8 -32
- package/cjs/components/history/hooks/useHistorySlice.js +4 -28
- package/cjs/components/index.d.ts +8 -6
- package/cjs/components/index.js +11 -6
- package/cjs/components/workflow/cards/GenericWorkflowTaskCard/styles.d.ts +1 -1
- package/cjs/components/workflow/cards/PotentialMatchTaskCard/PotentialMatchTaskCard.js +4 -5
- package/cjs/components/workflow/components/AttributesChanges/AttributesChanges.js +2 -3
- package/cjs/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js +2 -3
- package/cjs/components/workflow/components/WorkflowComments/styles.d.ts +1 -1
- package/cjs/components/workflow/hooks/useWorkflowActions.js +6 -11
- package/cjs/components/workflow/hooks/useWorkflowAssignee.js +3 -8
- package/cjs/components/workflow/hooks/useWorkflowCheckPermission.js +24 -25
- package/cjs/components/workflow/hooks/useWorkflowComments.js +4 -8
- package/cjs/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.js +6 -30
- package/cjs/components/workflow/hooks/useWorkflowDefinitions.js +5 -9
- package/cjs/components/workflow/hooks/useWorkflowDueDate.js +4 -8
- package/cjs/components/workflow/hooks/useWorkflowPriority.js +4 -5
- package/cjs/components/workflow/hooks/useWorkflowProcessInstance.js +6 -10
- package/cjs/components/workflow/hooks/useWorkflowTasks.js +11 -15
- package/cjs/contexts/ActionsHookContext/index.d.ts +4 -1
- package/cjs/contexts/CollaborationContext/index.js +2 -2
- package/cjs/contexts/MdmModuleContext/context.d.ts +243 -0
- package/cjs/contexts/MdmModuleContext/context.js +7 -0
- package/cjs/contexts/MdmModuleContext/hooks.d.ts +139 -0
- package/cjs/contexts/MdmModuleContext/hooks.js +206 -0
- package/cjs/contexts/MdmModuleContext/index.d.ts +3 -0
- package/cjs/contexts/MdmModuleContext/index.js +70 -0
- package/cjs/contexts/MdmModuleContext/provider.d.ts +10 -0
- package/cjs/contexts/MdmModuleContext/provider.js +15 -0
- package/cjs/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.d.ts +22 -0
- package/cjs/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.js +132 -0
- package/cjs/contexts/MdmModuleContext/selectors/entity.d.ts +3 -0
- package/cjs/contexts/MdmModuleContext/selectors/entity.js +11 -0
- package/cjs/contexts/MdmModuleContext/selectors.d.ts +3 -0
- package/cjs/contexts/MdmModuleContext/selectors.js +11 -0
- package/cjs/contexts/index.d.ts +1 -0
- package/cjs/contexts/index.js +15 -0
- package/cjs/hooks/useAPI/useAPI.js +14 -40
- package/cjs/hooks/useCollaboration.js +5 -9
- package/cjs/hooks/useCommentsEntitiesMap.js +2 -6
- package/cjs/hooks/useConfigPermissions.js +3 -7
- package/cjs/hooks/useCustomScripts.js +13 -39
- package/cjs/hooks/useEditableConnection.js +2 -6
- package/cjs/hooks/useMarkAsNotMatchRequest.js +4 -8
- package/cjs/hooks/useMatchesLoader.js +5 -9
- package/cjs/hooks/useMergeAllRequest.js +16 -30
- package/cjs/hooks/useReadableSearchState.js +8 -32
- package/cjs/hooks/useRelationsLoader.js +9 -33
- package/cjs/hooks/useScrollToAttributeError/styles.d.ts +1 -1
- package/cjs/hooks/useUsers.js +4 -5
- package/cjs/icons/Tenant.d.ts +3 -0
- package/cjs/icons/Tenant.js +22 -0
- package/esm/components/AttributeGroupIcon/AttributeGroupIcon.js +2 -3
- package/esm/components/AttributeSelector/AttributeSelector.js +2 -3
- package/esm/components/AttributesFiltersBuilder/AttributesFiltersBuilder.js +5 -6
- package/esm/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.d.ts +13 -19
- package/esm/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.js +7 -18
- package/esm/components/BasicView/BasicView.d.ts +1 -1
- package/esm/components/CollaborationItem/Comment/Comment.js +2 -4
- package/esm/components/CollaborationItem/CommentTarget/CommentTarget.js +3 -5
- package/esm/components/CollaborationItem/CommentTarget/styles.d.ts +1 -1
- package/esm/components/CollaborationItem/RepliedComment/RepliedComment.js +2 -4
- package/esm/components/CollaborationItem/SendMessageArea/SendMessageArea.js +2 -4
- package/esm/components/ColoredSourceIcon/ColoredSourceIcon.js +2 -4
- package/esm/components/ConnectionEditor/ConnectionEditor.js +3 -6
- package/esm/components/DataTenantBadge/DataTenantBadge.js +6 -4
- package/esm/components/DataTypeValue/DataTypeValue.js +4 -5
- package/esm/components/EntityAvatar/EntityAvatar.js +4 -5
- package/esm/components/EntityTypeBadge/EntityTypeBadge.js +4 -6
- package/esm/components/EntityTypeIcon/EntityTypeIcon.js +2 -3
- package/esm/components/EntityUriLink/EntityUriLink.js +5 -7
- package/esm/components/ErrorPopup/ErrorPopup.d.ts +13 -8
- package/esm/components/ErrorPopup/ErrorPopup.js +23 -18
- package/esm/components/ErrorPopup/styles.d.ts +1 -1
- package/esm/components/HierarchyNodeTitle/HierarchyNodeTitle.js +5 -7
- package/esm/components/ImageAttributesGallery/ImageAttributesGallery.js +2 -3
- package/esm/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.d.ts +0 -5
- package/esm/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.js +6 -7
- package/esm/components/ImageDetailsView/MetaInfo/MetaInfo.js +3 -4
- package/esm/components/ImageDetailsView/MetaInfoList/MetaInfoItem/styles.d.ts +1 -1
- package/esm/components/ImageDetailsView/MetaInfoList/MetaInfoList.js +3 -4
- package/esm/components/ImageDetailsView/hooks/useEditMetaInfo.js +4 -11
- package/esm/components/MatchRulesBlock/SimpleMatchRules/styles.d.ts +1 -1
- package/esm/components/MatchRulesSelector/MatchRulesSelector.d.ts +1 -4
- package/esm/components/MatchRulesSelector/MatchRulesSelector.js +2 -4
- package/esm/components/ModeSwitcher/styles.d.ts +1 -1
- package/esm/components/PivotingUriLink/PivotingUriLink.js +2 -4
- package/esm/components/Popper/Popper.d.ts +1 -1
- package/esm/components/PotentialMatchReviewCard/styles.d.ts +1 -1
- package/esm/components/ProfileBand/ProfileBand.js +3 -4
- package/esm/components/ProfileBandNavigation/ProfileBandNavigationWidget.d.ts +1 -1
- package/esm/components/ProfileBandNavigation/hooks/useSearchNavigation.js +20 -32
- package/esm/components/ProfileBandNavigation/hooks/useSearchNavigationVisibility.js +4 -5
- package/esm/components/ProfilesList/ProfilesList.d.ts +2 -3
- package/esm/components/ProfilesList/ProfilesList.js +3 -1
- package/esm/components/RelationEditor/RelationEditor.js +49 -36
- package/esm/components/RelevanceScoreBadge/RelevanceScoreBadge.js +3 -4
- package/esm/components/SelectAttributesList/SelectAttributesList.js +2 -3
- package/esm/components/SmallIconButton/SmallIconButton.d.ts +1 -1
- package/esm/components/SmallIconButton/index.d.ts +1 -1
- package/esm/components/SourceIcon/SourceIcon.js +2 -3
- package/esm/components/SourceSystemsSelector/SourceSystemsSelector.js +2 -3
- package/esm/components/StepNavigation/ProgressButton.d.ts +12 -0
- package/esm/components/StepNavigation/ProgressButton.js +36 -0
- package/esm/components/StepNavigation/StepNavigation.d.ts +13 -0
- package/esm/components/StepNavigation/StepNavigation.js +57 -0
- package/esm/components/StepNavigation/styles.d.ts +2 -0
- package/esm/components/StepNavigation/styles.js +41 -0
- package/esm/components/TenantLabel/TenantLabel.d.ts +6 -0
- package/esm/components/TenantLabel/TenantLabel.js +17 -0
- package/esm/components/TenantLabel/styles.d.ts +1 -0
- package/esm/components/TenantLabel/styles.js +19 -0
- package/esm/components/TenantsDropDownSelector/TenantsDropDownSelector.js +3 -4
- package/esm/components/UploadImageDialog/TargetBox/styles.d.ts +1 -1
- package/esm/components/UploadImageDialog/UploadImageDialog.js +4 -5
- package/esm/components/UserSelector/UserSelector.js +3 -4
- package/esm/components/activityLog/ActivityExportButton/ActivityExportButton.js +6 -7
- package/esm/components/activityLog/ActivityFilterEditor/ActivityFilterEditor.js +2 -3
- package/esm/components/activityLog/ActivityFilterEditor/EntityChangedSelectors.js +2 -3
- package/esm/components/activityLog/ActivityFilterEditor/SourceSelector.js +3 -4
- package/esm/components/activityLog/ActivityLogFilter/ActivityLogFilter.d.ts +1 -1
- package/esm/components/activityLog/ActivityLogFilter/ActivityLogFilter.js +5 -3
- package/esm/components/activityLog/activities/GroupActivity.js +2 -3
- package/esm/components/activityLog/activities/RelationObject/styles.d.ts +1 -1
- package/esm/components/activityLog/activities/SearchActivity.js +6 -7
- package/esm/components/activityLog/activities/fields/DeltaField.js +7 -8
- package/esm/components/activityLog/activities/fields/commonStyles.d.ts +1 -1
- package/esm/components/activityLog/activities/records/EntityRecord.js +8 -9
- package/esm/components/attributes/AttributesView/AttributesView.d.ts +2 -2
- package/esm/components/attributes/AttributesView/AttributesView.js +10 -6
- package/esm/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +1 -1
- package/esm/components/attributes/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
- package/esm/components/attributes/ImageAttributesLine/ImageAttributesLine.js +9 -10
- package/esm/components/attributes/OvIcon/OvIcon.d.ts +1 -1
- package/esm/components/attributes/OvIcon/OvIcon.js +5 -7
- package/esm/components/attributes/PivotingAttributes/PivotingTooltip.js +4 -6
- package/esm/components/attributes/PivotingAttributes/PivotingTooltipContent.js +3 -4
- package/esm/components/attributes/PivotingAttributes/styles.d.ts +1 -1
- package/esm/components/attributes/editMode/AttributesFactory/AttributesFactory.js +1 -1
- package/esm/components/attributes/editMode/AttributesPager/AttributeRenderer.d.ts +7 -2
- package/esm/components/attributes/editMode/AttributesPager/AttributesPager.d.ts +2 -38
- package/esm/components/attributes/editMode/AttributesPager/AttributesPager.js +12 -4
- package/esm/components/attributes/editMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
- package/esm/components/attributes/editMode/AttributesPager/index.d.ts +2 -39
- package/esm/components/attributes/editMode/AttributesPager/index.js +2 -19
- package/esm/components/attributes/editMode/AttributesPager/styles.d.ts +1 -1
- package/esm/components/attributes/editMode/AttributesPager/types.d.ts +21 -0
- package/esm/components/attributes/editMode/AttributesView/AttributesView.d.ts +1 -1
- package/esm/components/attributes/editMode/AttributesView/AttributesView.js +11 -13
- package/esm/components/attributes/editMode/EntityCreator/EntityCreator.d.ts +9 -24
- package/esm/components/attributes/editMode/EntityCreator/EntityCreator.js +7 -15
- package/esm/components/attributes/editMode/EntitySelector/EntitySelector.js +1 -1
- package/esm/components/attributes/editMode/EntitySelector/components/SingleValue.js +4 -7
- package/esm/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
- package/esm/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.js +8 -10
- package/esm/components/attributes/editMode/MoreAttributesButton/useMoreAttributesItems.js +2 -3
- package/esm/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.js +18 -17
- package/esm/components/attributes/editMode/Roles/Roles.js +4 -5
- package/esm/components/attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor.js +5 -10
- package/esm/components/attributes/editMode/SimpleAttributeEditor/useAutopopulationContextValue.js +7 -7
- package/esm/components/attributes/editMode/Tags/Tags.js +3 -4
- package/esm/components/attributes/inline/ReferenceAttribute/ReferenceAttribute.js +4 -6
- package/esm/components/attributes/inline/common/SourceItem.js +3 -5
- package/esm/components/attributes/readMode/AttributesList/AttributesList.js +1 -1
- package/esm/components/attributes/readMode/AttributesPager/AttributesPager.d.ts +1 -3
- package/esm/components/attributes/readMode/AttributesPager/AttributesPager.js +7 -2
- package/esm/components/attributes/readMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
- package/esm/components/attributes/readMode/AttributesPager/MultiLineRenderer.d.ts +1 -2
- package/esm/components/attributes/readMode/AttributesPager/styles.d.ts +1 -1
- package/esm/components/attributes/readMode/AttributesView/AttributesView.d.ts +2 -2
- package/esm/components/attributes/readMode/AttributesView/AttributesView.js +4 -5
- package/esm/components/attributes/readMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
- package/esm/components/attributes/readMode/ReferenceAttribute/ReferenceAttribute.js +4 -6
- package/esm/components/attributes/readMode/SpecialAttributes/Roles/Role.js +2 -3
- package/esm/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +3 -5
- package/esm/components/attributes/types/attributesView.d.ts +2 -7
- package/esm/components/crosswalks/AttributesTable/AddAttributesButton/AddAttributesButton.js +2 -3
- package/esm/components/crosswalks/AttributesTable/AttributesTable.js +2 -3
- package/esm/components/crosswalks/AttributesTable/cell-renderers/RuleTypeInfoButton.js +21 -17
- package/esm/components/crosswalks/AttributesTable/cell-renderers/WinnerSourcesRenderer.js +2 -4
- package/esm/components/crosswalks/CrosswalkAttributes/CrosswalkAttributes.js +9 -10
- package/esm/components/crosswalks/CrosswalkDragLayer/CrosswalkDragPreview.js +3 -4
- package/esm/components/crosswalks/CrosswalkRow/CrosswalkRow.js +12 -13
- package/esm/components/crosswalks/DummyCrosswalkRow/DummyCrosswalkRow.js +3 -4
- package/esm/components/editors/DataTypeValueEditor/useEditorContext.d.ts +3 -3
- package/esm/components/editors/DataTypeValueEditor/useEditorContext.js +10 -13
- package/esm/components/editors/DateRangeEditor/DateRangeEditor.d.ts +3 -3
- package/esm/components/editors/TypeaheadEditor/TypeaheadEditor.js +1 -1
- package/esm/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
- package/esm/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
- package/esm/components/history/HistoryMenuButton/HistoryMenuButton.js +5 -9
- package/esm/components/history/HistoryTree/HistoryTree.js +9 -8
- package/esm/components/history/HistoryTree/styles.d.ts +1 -1
- package/esm/components/history/ProfileBandHistory/ProfileBandHistory.js +5 -8
- package/esm/components/history/hooks/useHistoryDiff.js +8 -9
- package/esm/components/history/hooks/useHistorySlice.js +4 -5
- package/esm/components/index.d.ts +8 -6
- package/esm/components/index.js +8 -6
- package/esm/components/workflow/cards/GenericWorkflowTaskCard/styles.d.ts +1 -1
- package/esm/components/workflow/cards/PotentialMatchTaskCard/PotentialMatchTaskCard.js +4 -5
- package/esm/components/workflow/components/AttributesChanges/AttributesChanges.js +2 -3
- package/esm/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js +2 -3
- package/esm/components/workflow/components/WorkflowComments/styles.d.ts +1 -1
- package/esm/components/workflow/hooks/useWorkflowActions.js +5 -7
- package/esm/components/workflow/hooks/useWorkflowAssignee.js +4 -6
- package/esm/components/workflow/hooks/useWorkflowCheckPermission.js +24 -22
- package/esm/components/workflow/hooks/useWorkflowComments.js +4 -5
- package/esm/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.js +7 -8
- package/esm/components/workflow/hooks/useWorkflowDefinitions.js +5 -6
- package/esm/components/workflow/hooks/useWorkflowDueDate.js +4 -5
- package/esm/components/workflow/hooks/useWorkflowPriority.js +4 -5
- package/esm/components/workflow/hooks/useWorkflowProcessInstance.js +6 -7
- package/esm/components/workflow/hooks/useWorkflowTasks.js +11 -12
- package/esm/contexts/ActionsHookContext/index.d.ts +4 -1
- package/esm/contexts/CollaborationContext/index.js +1 -1
- package/esm/contexts/MdmModuleContext/context.d.ts +243 -0
- package/esm/contexts/MdmModuleContext/context.js +4 -0
- package/esm/contexts/MdmModuleContext/hooks.d.ts +139 -0
- package/esm/contexts/MdmModuleContext/hooks.js +139 -0
- package/esm/contexts/MdmModuleContext/index.d.ts +3 -0
- package/esm/contexts/MdmModuleContext/index.js +2 -0
- package/esm/contexts/MdmModuleContext/provider.d.ts +10 -0
- package/esm/contexts/MdmModuleContext/provider.js +8 -0
- package/esm/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.d.ts +22 -0
- package/esm/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.js +123 -0
- package/esm/contexts/MdmModuleContext/selectors/entity.d.ts +3 -0
- package/esm/contexts/MdmModuleContext/selectors/entity.js +6 -0
- package/esm/contexts/MdmModuleContext/selectors.d.ts +3 -0
- package/esm/contexts/MdmModuleContext/selectors.js +6 -0
- package/esm/contexts/index.d.ts +1 -0
- package/esm/contexts/index.js +1 -0
- package/esm/hooks/useAPI/useAPI.js +15 -18
- package/esm/hooks/useCollaboration.js +5 -6
- package/esm/hooks/useCommentsEntitiesMap.js +2 -3
- package/esm/hooks/useConfigPermissions.js +3 -4
- package/esm/hooks/useCustomScripts.js +14 -17
- package/esm/hooks/useEditableConnection.js +2 -3
- package/esm/hooks/useMarkAsNotMatchRequest.js +4 -5
- package/esm/hooks/useMatchesLoader.js +5 -6
- package/esm/hooks/useMergeAllRequest.js +16 -7
- package/esm/hooks/useReadableSearchState.js +8 -9
- package/esm/hooks/useRelationsLoader.js +9 -10
- package/esm/hooks/useScrollToAttributeError/styles.d.ts +1 -1
- package/esm/hooks/useUsers.js +4 -5
- package/esm/icons/Tenant.d.ts +3 -0
- package/esm/icons/Tenant.js +17 -0
- package/package.json +3 -4
- package/cjs/components/ProfileBandNavigation/helpers/index.d.ts +0 -7
- package/cjs/components/ProfileBandNavigation/helpers/index.js +0 -70
- package/cjs/components/ProfileBandNavigation/types/index.d.ts +0 -15
- package/cjs/components/ProfileBandNavigation/types/index.js +0 -2
- package/cjs/components/ProfilesList/index.d.ts +0 -27
- package/cjs/components/ProfilesList/index.js +0 -16
- package/cjs/components/RelationEditor/index.d.ts +0 -6
- package/cjs/components/RelationEditor/index.js +0 -50
- package/cjs/components/attributes/AttributesView/index.d.ts +0 -7
- package/cjs/components/attributes/AttributesView/index.js +0 -15
- package/cjs/components/attributes/editMode/AttributesView/index.d.ts +0 -23
- package/cjs/components/attributes/editMode/AttributesView/index.js +0 -14
- package/cjs/components/attributes/editMode/EntityCreator/index.d.ts +0 -25
- package/cjs/components/attributes/editMode/EntityCreator/index.js +0 -42
- package/cjs/components/attributes/editMode/ReferenceAttribute/index.d.ts +0 -4
- package/cjs/components/attributes/editMode/ReferenceAttribute/index.js +0 -48
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.d.ts +0 -2
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.js +0 -34
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.d.ts +0 -1
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.js +0 -19
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.d.ts +0 -1
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.js +0 -20
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.d.ts +0 -5
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.js +0 -79
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/types.d.ts +0 -11
- package/cjs/components/attributes/readMode/AttributesPager/index.d.ts +0 -28
- package/cjs/components/attributes/readMode/AttributesPager/index.js +0 -43
- package/cjs/components/attributes/readMode/AttributesView/index.d.ts +0 -23
- package/cjs/components/attributes/readMode/AttributesView/index.js +0 -14
- package/cjs/test-utils/store-utils.d.ts +0 -78
- package/cjs/test-utils/store-utils.js +0 -19
- package/esm/components/ProfileBandNavigation/helpers/index.d.ts +0 -7
- package/esm/components/ProfileBandNavigation/helpers/index.js +0 -66
- package/esm/components/ProfileBandNavigation/types/index.d.ts +0 -15
- package/esm/components/ProfileBandNavigation/types/index.js +0 -1
- package/esm/components/ProfilesList/index.d.ts +0 -27
- package/esm/components/ProfilesList/index.js +0 -10
- package/esm/components/RelationEditor/index.d.ts +0 -6
- package/esm/components/RelationEditor/index.js +0 -21
- package/esm/components/attributes/AttributesView/index.d.ts +0 -7
- package/esm/components/attributes/AttributesView/index.js +0 -9
- package/esm/components/attributes/editMode/AttributesView/index.d.ts +0 -23
- package/esm/components/attributes/editMode/AttributesView/index.js +0 -8
- package/esm/components/attributes/editMode/EntityCreator/index.d.ts +0 -25
- package/esm/components/attributes/editMode/EntityCreator/index.js +0 -13
- package/esm/components/attributes/editMode/ReferenceAttribute/index.d.ts +0 -4
- package/esm/components/attributes/editMode/ReferenceAttribute/index.js +0 -19
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.d.ts +0 -2
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.js +0 -27
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.d.ts +0 -1
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.js +0 -15
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.d.ts +0 -1
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.js +0 -13
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.d.ts +0 -5
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.js +0 -72
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/types.d.ts +0 -11
- package/esm/components/attributes/readMode/AttributesPager/index.d.ts +0 -28
- package/esm/components/attributes/readMode/AttributesPager/index.js +0 -14
- package/esm/components/attributes/readMode/AttributesView/index.d.ts +0 -23
- package/esm/components/attributes/readMode/AttributesView/index.js +0 -8
- package/esm/test-utils/store-utils.d.ts +0 -78
- package/esm/test-utils/store-utils.js +0 -12
- /package/cjs/components/attributes/editMode/{SimpleAttributeEditor/selectors → AttributesPager}/types.js +0 -0
- /package/esm/components/attributes/editMode/{SimpleAttributeEditor/selectors → AttributesPager}/types.js +0 -0
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { Metadata, SearchState, AttributePresentations, Entity, Mode, AttributeType, AttributeError, ImageAttributeValue, SortingStrategy, DependentLookupsConfig, PivotingValue, PivotingAttribute, DataTenant, HistoryDiff, ImageAttributeFieldsOrder, Connection, User, SearchNavigationData, SearchProviderData, Lookups, HistoryMode, HistorySlice, HistoryEvent, RequestNextPageOfAttributeValuesPayload, LookupsForTypeResolvedPayload, RelationsLoadedPayload, CompactRelationType, AddAttributesPayload, ModifyAttributePayload, RemoveAttributePayload, RelationsState, DependentLookupsState, ActivityFilter, SearchOptions, GlobalFilter } from '@reltio/mdm-sdk';
|
|
2
|
+
export type MdmModuleValuesContextProps = Partial<{
|
|
3
|
+
autoCloseInterval: number;
|
|
4
|
+
uiError: string;
|
|
5
|
+
workflowEnvironmentUrl: string;
|
|
6
|
+
exportPath: string;
|
|
7
|
+
absoluteImagePath: string;
|
|
8
|
+
uiPath: string;
|
|
9
|
+
dtssPath: string;
|
|
10
|
+
servicesPath: string;
|
|
11
|
+
workflowPath: string;
|
|
12
|
+
imageServicePath: string;
|
|
13
|
+
reltioPath: string;
|
|
14
|
+
apiPath: string;
|
|
15
|
+
collaborationPath: string;
|
|
16
|
+
imageAttributesFieldsOrder: ImageAttributeFieldsOrder;
|
|
17
|
+
showEntityId: boolean;
|
|
18
|
+
pivotingAttributes: PivotingAttribute[];
|
|
19
|
+
dateMask: string;
|
|
20
|
+
dateTimeMask: string;
|
|
21
|
+
attributePresentations: AttributePresentations;
|
|
22
|
+
defaultMaxValues: number;
|
|
23
|
+
attributesSortingStrategy: SortingStrategy;
|
|
24
|
+
lookupAutocomplete: DependentLookupsConfig;
|
|
25
|
+
modifiedEntities: Record<string, Entity>;
|
|
26
|
+
relations: RelationsState;
|
|
27
|
+
profileErrors: AttributeError[];
|
|
28
|
+
entity: Entity;
|
|
29
|
+
entityWithDiff: Entity;
|
|
30
|
+
entityUriWithDataTenant: string;
|
|
31
|
+
mode: Mode;
|
|
32
|
+
isViewMode: boolean;
|
|
33
|
+
isEditableMode: boolean;
|
|
34
|
+
historyDiff: HistoryDiff;
|
|
35
|
+
historyMode: HistoryMode;
|
|
36
|
+
historySlice: HistorySlice;
|
|
37
|
+
historyEvent: HistoryEvent;
|
|
38
|
+
profileLastLoadedTime: number;
|
|
39
|
+
lookups: Lookups;
|
|
40
|
+
dependentLookups: DependentLookupsState;
|
|
41
|
+
metadata: Metadata;
|
|
42
|
+
user: Partial<User>;
|
|
43
|
+
tenant: DataTenant;
|
|
44
|
+
environment: string;
|
|
45
|
+
dataTenants: DataTenant[];
|
|
46
|
+
searchOptions: SearchOptions;
|
|
47
|
+
activityFilter: ActivityFilter;
|
|
48
|
+
globalFilter: GlobalFilter;
|
|
49
|
+
searchNavigationData: SearchNavigationData;
|
|
50
|
+
searchProviderData: SearchProviderData;
|
|
51
|
+
isWorkflowEnabled: boolean;
|
|
52
|
+
isCollaborationEnabled: boolean;
|
|
53
|
+
}>;
|
|
54
|
+
export type MdmModuleActionsContextProps = Partial<{
|
|
55
|
+
openSearch: (payload: SearchState) => void;
|
|
56
|
+
openHistoryEvent: (payload: {
|
|
57
|
+
entityUri: string;
|
|
58
|
+
historyEvent: HistoryEvent;
|
|
59
|
+
}) => void;
|
|
60
|
+
openConsoleApp: (name: string, path?: string, query?: string) => void;
|
|
61
|
+
addAttributes: (payload: AddAttributesPayload) => void;
|
|
62
|
+
modifyAttribute: (payload: ModifyAttributePayload) => void;
|
|
63
|
+
removeAttribute: (payload: RemoveAttributePayload) => void;
|
|
64
|
+
entityDeleted: (payload: string) => void;
|
|
65
|
+
entityCreated: (payload: Entity) => void;
|
|
66
|
+
errorDeactivated: (id: string) => void;
|
|
67
|
+
requestNextPageOfAttributeValues: (payload: RequestNextPageOfAttributeValuesPayload) => void;
|
|
68
|
+
openEntity: (payload: {
|
|
69
|
+
uri: string;
|
|
70
|
+
viewId: string | null;
|
|
71
|
+
source?: string | null;
|
|
72
|
+
screen?: string;
|
|
73
|
+
}) => void;
|
|
74
|
+
setDefaultProfilePicForModifiedEntity: (payload: {
|
|
75
|
+
entityUri: string;
|
|
76
|
+
value: ImageAttributeValue;
|
|
77
|
+
}) => void;
|
|
78
|
+
setDefaultProfilePicForEntity: (payload: ImageAttributeValue | string) => void;
|
|
79
|
+
dependentLookupsEditorTouched: (payload: {
|
|
80
|
+
uri: string;
|
|
81
|
+
isTouched: boolean;
|
|
82
|
+
}) => void;
|
|
83
|
+
openPivotingPerspective: (payload: {
|
|
84
|
+
attributeType: AttributeType;
|
|
85
|
+
value: PivotingValue[];
|
|
86
|
+
}) => void;
|
|
87
|
+
lookupsLoaded: (lookups: Lookups) => void;
|
|
88
|
+
lookupsForTypeResolved: (payload: LookupsForTypeResolvedPayload) => void;
|
|
89
|
+
errorSet: (payload: string) => void;
|
|
90
|
+
setHistoryMode: (payload: HistoryMode) => void;
|
|
91
|
+
modeUpdated: (payload: Mode) => void;
|
|
92
|
+
setHistoryEvent: (payload: HistoryEvent) => void;
|
|
93
|
+
clearHistoryEvent: () => void;
|
|
94
|
+
setHistoryDiff: (payload: HistoryDiff) => void;
|
|
95
|
+
setHistorySlice: (payload: HistorySlice) => void;
|
|
96
|
+
updateSearchNavigationDataFields: (payload: Partial<SearchNavigationData>) => void;
|
|
97
|
+
openPerspective: (payload: {
|
|
98
|
+
perspectiveId: string;
|
|
99
|
+
viewId: string;
|
|
100
|
+
}) => void;
|
|
101
|
+
entityDeletionFinished: () => void;
|
|
102
|
+
loadEntity: (payload: {
|
|
103
|
+
viewId?: string;
|
|
104
|
+
uri: string;
|
|
105
|
+
}) => void;
|
|
106
|
+
updateSearchNavigationDataOnMerge: (payload: {
|
|
107
|
+
winnerUri: string;
|
|
108
|
+
losersUris: string[];
|
|
109
|
+
}) => void;
|
|
110
|
+
lookupsListResolved: (payload: Lookups[]) => void;
|
|
111
|
+
relationsLoaded: (payload: RelationsLoadedPayload) => void;
|
|
112
|
+
setInitialInfo: (id: string, relationUri: string, tempEntity: Entity, connection: Connection) => void;
|
|
113
|
+
setRelationType: (id: string, relationUri: string, relationType: CompactRelationType) => void;
|
|
114
|
+
closeRelationEditor: (id: string, relationUri: string) => void;
|
|
115
|
+
setRelationEntity: (id: string, relationUri: string, entityInfo: Entity) => void;
|
|
116
|
+
errorsSet: (payload: AttributeError[]) => void;
|
|
117
|
+
addRelation: (id: string, connection: Connection) => void;
|
|
118
|
+
editRelation: (id: string, connection: Connection) => void;
|
|
119
|
+
}>;
|
|
120
|
+
export type MdmModuleListenersContextProps = Partial<{
|
|
121
|
+
searchNavigationListener: (action: any, state: any) => void;
|
|
122
|
+
}>;
|
|
123
|
+
export declare const MdmModuleActionsContext: import("@fluentui/react-context-selector").Context<Partial<{
|
|
124
|
+
openSearch: (payload: SearchState) => void;
|
|
125
|
+
openHistoryEvent: (payload: {
|
|
126
|
+
entityUri: string;
|
|
127
|
+
historyEvent: HistoryEvent;
|
|
128
|
+
}) => void;
|
|
129
|
+
openConsoleApp: (name: string, path?: string, query?: string) => void;
|
|
130
|
+
addAttributes: (payload: AddAttributesPayload) => void;
|
|
131
|
+
modifyAttribute: (payload: ModifyAttributePayload) => void;
|
|
132
|
+
removeAttribute: (payload: RemoveAttributePayload) => void;
|
|
133
|
+
entityDeleted: (payload: string) => void;
|
|
134
|
+
entityCreated: (payload: Entity) => void;
|
|
135
|
+
errorDeactivated: (id: string) => void;
|
|
136
|
+
requestNextPageOfAttributeValues: (payload: RequestNextPageOfAttributeValuesPayload) => void;
|
|
137
|
+
openEntity: (payload: {
|
|
138
|
+
uri: string;
|
|
139
|
+
viewId: string | null;
|
|
140
|
+
source?: string | null;
|
|
141
|
+
screen?: string;
|
|
142
|
+
}) => void;
|
|
143
|
+
setDefaultProfilePicForModifiedEntity: (payload: {
|
|
144
|
+
entityUri: string;
|
|
145
|
+
value: ImageAttributeValue;
|
|
146
|
+
}) => void;
|
|
147
|
+
setDefaultProfilePicForEntity: (payload: ImageAttributeValue | string) => void;
|
|
148
|
+
dependentLookupsEditorTouched: (payload: {
|
|
149
|
+
uri: string;
|
|
150
|
+
isTouched: boolean;
|
|
151
|
+
}) => void;
|
|
152
|
+
openPivotingPerspective: (payload: {
|
|
153
|
+
attributeType: AttributeType;
|
|
154
|
+
value: PivotingValue[];
|
|
155
|
+
}) => void;
|
|
156
|
+
lookupsLoaded: (lookups: Lookups) => void;
|
|
157
|
+
lookupsForTypeResolved: (payload: LookupsForTypeResolvedPayload) => void;
|
|
158
|
+
errorSet: (payload: string) => void;
|
|
159
|
+
setHistoryMode: (payload: HistoryMode) => void;
|
|
160
|
+
modeUpdated: (payload: Mode) => void;
|
|
161
|
+
setHistoryEvent: (payload: HistoryEvent) => void;
|
|
162
|
+
clearHistoryEvent: () => void;
|
|
163
|
+
setHistoryDiff: (payload: HistoryDiff) => void;
|
|
164
|
+
setHistorySlice: (payload: HistorySlice) => void;
|
|
165
|
+
updateSearchNavigationDataFields: (payload: Partial<SearchNavigationData>) => void;
|
|
166
|
+
openPerspective: (payload: {
|
|
167
|
+
perspectiveId: string;
|
|
168
|
+
viewId: string;
|
|
169
|
+
}) => void;
|
|
170
|
+
entityDeletionFinished: () => void;
|
|
171
|
+
loadEntity: (payload: {
|
|
172
|
+
viewId?: string;
|
|
173
|
+
uri: string;
|
|
174
|
+
}) => void;
|
|
175
|
+
updateSearchNavigationDataOnMerge: (payload: {
|
|
176
|
+
winnerUri: string;
|
|
177
|
+
losersUris: string[];
|
|
178
|
+
}) => void;
|
|
179
|
+
lookupsListResolved: (payload: Lookups[]) => void;
|
|
180
|
+
relationsLoaded: (payload: RelationsLoadedPayload) => void;
|
|
181
|
+
setInitialInfo: (id: string, relationUri: string, tempEntity: Entity, connection: Connection) => void;
|
|
182
|
+
setRelationType: (id: string, relationUri: string, relationType: CompactRelationType) => void;
|
|
183
|
+
closeRelationEditor: (id: string, relationUri: string) => void;
|
|
184
|
+
setRelationEntity: (id: string, relationUri: string, entityInfo: Entity) => void;
|
|
185
|
+
errorsSet: (payload: AttributeError[]) => void;
|
|
186
|
+
addRelation: (id: string, connection: Connection) => void;
|
|
187
|
+
editRelation: (id: string, connection: Connection) => void;
|
|
188
|
+
}>>;
|
|
189
|
+
export declare const MdmModuleValuesContext: import("@fluentui/react-context-selector").Context<Partial<{
|
|
190
|
+
autoCloseInterval: number;
|
|
191
|
+
uiError: string;
|
|
192
|
+
workflowEnvironmentUrl: string;
|
|
193
|
+
exportPath: string;
|
|
194
|
+
absoluteImagePath: string;
|
|
195
|
+
uiPath: string;
|
|
196
|
+
dtssPath: string;
|
|
197
|
+
servicesPath: string;
|
|
198
|
+
workflowPath: string;
|
|
199
|
+
imageServicePath: string;
|
|
200
|
+
reltioPath: string;
|
|
201
|
+
apiPath: string;
|
|
202
|
+
collaborationPath: string;
|
|
203
|
+
imageAttributesFieldsOrder: ImageAttributeFieldsOrder;
|
|
204
|
+
showEntityId: boolean;
|
|
205
|
+
pivotingAttributes: PivotingAttribute[];
|
|
206
|
+
dateMask: string;
|
|
207
|
+
dateTimeMask: string;
|
|
208
|
+
attributePresentations: AttributePresentations;
|
|
209
|
+
defaultMaxValues: number;
|
|
210
|
+
attributesSortingStrategy: SortingStrategy;
|
|
211
|
+
lookupAutocomplete: DependentLookupsConfig;
|
|
212
|
+
modifiedEntities: Record<string, Entity>;
|
|
213
|
+
relations: RelationsState;
|
|
214
|
+
profileErrors: AttributeError[];
|
|
215
|
+
entity: Entity;
|
|
216
|
+
entityWithDiff: Entity;
|
|
217
|
+
entityUriWithDataTenant: string;
|
|
218
|
+
mode: Mode;
|
|
219
|
+
isViewMode: boolean;
|
|
220
|
+
isEditableMode: boolean;
|
|
221
|
+
historyDiff: HistoryDiff;
|
|
222
|
+
historyMode: HistoryMode;
|
|
223
|
+
historySlice: HistorySlice;
|
|
224
|
+
historyEvent: HistoryEvent;
|
|
225
|
+
profileLastLoadedTime: number;
|
|
226
|
+
lookups: Lookups;
|
|
227
|
+
dependentLookups: DependentLookupsState;
|
|
228
|
+
metadata: Metadata;
|
|
229
|
+
user: Partial<User>;
|
|
230
|
+
tenant: DataTenant;
|
|
231
|
+
environment: string;
|
|
232
|
+
dataTenants: DataTenant[];
|
|
233
|
+
searchOptions: SearchOptions;
|
|
234
|
+
activityFilter: ActivityFilter;
|
|
235
|
+
globalFilter: GlobalFilter;
|
|
236
|
+
searchNavigationData: SearchNavigationData;
|
|
237
|
+
searchProviderData: SearchProviderData;
|
|
238
|
+
isWorkflowEnabled: boolean;
|
|
239
|
+
isCollaborationEnabled: boolean;
|
|
240
|
+
}>>;
|
|
241
|
+
export declare const MdmModuleListenersContext: import("@fluentui/react-context-selector").Context<Partial<{
|
|
242
|
+
searchNavigationListener: (action: any, state: any) => void;
|
|
243
|
+
}>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MdmModuleListenersContext = exports.MdmModuleValuesContext = exports.MdmModuleActionsContext = void 0;
|
|
4
|
+
var react_context_selector_1 = require("@fluentui/react-context-selector");
|
|
5
|
+
exports.MdmModuleActionsContext = (0, react_context_selector_1.createContext)({});
|
|
6
|
+
exports.MdmModuleValuesContext = (0, react_context_selector_1.createContext)({});
|
|
7
|
+
exports.MdmModuleListenersContext = (0, react_context_selector_1.createContext)({});
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { AttributeType, SimpleAttributeValue } from '@reltio/mdm-sdk';
|
|
2
|
+
export declare const useMdmAutoCloseInterval: () => number;
|
|
3
|
+
export declare const useMdmUiError: () => string;
|
|
4
|
+
export declare const useMdmWorkflowEnvironmentUrl: () => string;
|
|
5
|
+
export declare const useMdmExportPath: () => string;
|
|
6
|
+
export declare const useMdmAbsoluteImagePath: () => string;
|
|
7
|
+
export declare const useMdmUiPath: () => string;
|
|
8
|
+
export declare const useMdmDtssPath: () => string;
|
|
9
|
+
export declare const useMdmServicesPath: () => string;
|
|
10
|
+
export declare const useMdmWorkflowPath: () => string;
|
|
11
|
+
export declare const useMdmImageServicePath: () => string;
|
|
12
|
+
export declare const useMdmReltioPath: () => string;
|
|
13
|
+
export declare const useMdmApiPath: () => string;
|
|
14
|
+
export declare const useMdmCollaborationPath: () => string;
|
|
15
|
+
export declare const useMdmImageAttributesFieldsOrder: () => import("@reltio/mdm-sdk").ImageAttributeFieldsOrder;
|
|
16
|
+
export declare const useMdmShowEntityId: () => boolean;
|
|
17
|
+
export declare const useMdmPivotingAttributes: () => import("@reltio/mdm-sdk").PivotingAttribute[];
|
|
18
|
+
export declare const useMdmDateMask: () => string;
|
|
19
|
+
export declare const useMdmDateTimeMask: () => string;
|
|
20
|
+
export declare const useMdmAttributePresentations: () => import("@reltio/mdm-sdk").AttributePresentations;
|
|
21
|
+
export declare const useMdmDefaultMaxValues: () => number;
|
|
22
|
+
export declare const useMdmAttributesSortingStrategy: () => import("@reltio/mdm-sdk").SortingStrategy;
|
|
23
|
+
export declare const useMdmLookupAutocomplete: () => import("@reltio/mdm-sdk").DependentLookupsConfig;
|
|
24
|
+
export declare const useMdmModifiedEntities: () => Record<string, import("@reltio/mdm-sdk").Entity>;
|
|
25
|
+
export declare const useMdmEntity: () => import("@reltio/mdm-sdk").Entity;
|
|
26
|
+
export declare const useMdmEntityUri: () => string;
|
|
27
|
+
export declare const useMdmEntityWithDiff: () => import("@reltio/mdm-sdk").Entity;
|
|
28
|
+
export declare const useMdmEntityUriWithDataTenant: () => string;
|
|
29
|
+
export declare const useMdmMode: () => import("@reltio/mdm-sdk").Mode;
|
|
30
|
+
export declare const useMdmIsViewMode: () => any;
|
|
31
|
+
export declare const useMdmIsEditableMode: () => any;
|
|
32
|
+
export declare const useMdmHistoryDiff: () => import("@reltio/mdm-sdk").HistoryDiff;
|
|
33
|
+
export declare const useMdmHistoryMode: () => import("@reltio/mdm-sdk").HistoryMode;
|
|
34
|
+
export declare const useMdmHistorySlice: () => import("@reltio/mdm-sdk").HistorySlice;
|
|
35
|
+
export declare const useMdmHistoryEvent: () => import("@reltio/mdm-sdk").HistoryEvent;
|
|
36
|
+
export declare const useMdmProfileLastLoadedTime: () => number;
|
|
37
|
+
export declare const useMdmLookups: () => import("@reltio/mdm-sdk").Lookups;
|
|
38
|
+
export declare const useMdmDependentLookups: () => import("@reltio/mdm-sdk").DependentLookupsState;
|
|
39
|
+
export declare const useMdmMetadata: () => import("@reltio/mdm-sdk").Metadata;
|
|
40
|
+
export declare const useMdmUser: () => Partial<import("@reltio/mdm-sdk").User>;
|
|
41
|
+
export declare const useMdmUsername: () => string;
|
|
42
|
+
export declare const useMdmUserRoles: () => string[];
|
|
43
|
+
export declare const useMdmTenantObject: () => import("@reltio/mdm-sdk").DataTenant;
|
|
44
|
+
export declare const useMdmTenant: () => string;
|
|
45
|
+
export declare const useMdmTenantName: () => string;
|
|
46
|
+
export declare const useMdmEnvironment: () => string;
|
|
47
|
+
export declare const useMdmDataTenants: () => import("@reltio/mdm-sdk").DataTenant[];
|
|
48
|
+
export declare const useMdmSearchNavigationData: () => import("@reltio/mdm-sdk").SearchNavigationData;
|
|
49
|
+
export declare const useMdmSearchProviderData: () => import("@reltio/mdm-sdk").SearchProviderData;
|
|
50
|
+
export declare const useMdmIsCollaborationEnabled: () => boolean;
|
|
51
|
+
export declare const useMdmIsWorkflowEnabled: () => boolean;
|
|
52
|
+
export declare const useMdmProfileErrors: () => import("@reltio/mdm-sdk").AttributeError[];
|
|
53
|
+
export declare const useMdmModifiedEntityDefaultProfilePic: (entityUri: string) => string;
|
|
54
|
+
export declare const useMdmModifiedEntity: (entityUri: string) => import("@reltio/mdm-sdk").Entity;
|
|
55
|
+
export declare const useMdmInitialConnectionTempEntity: (viewId: string, relationUri: string) => any;
|
|
56
|
+
export declare const useMdmInitialConnection: (viewId: string, relationUri: string) => any;
|
|
57
|
+
export declare const useMdmDependentLookupEditorState: (valueUri: string) => {
|
|
58
|
+
isBlocked?: boolean;
|
|
59
|
+
isTouched?: boolean;
|
|
60
|
+
};
|
|
61
|
+
export declare const useMdmActiveErrorsForAttributesPager: (parentUri: string, attributeType: AttributeType) => import("@reltio/mdm-sdk").AttributeError[];
|
|
62
|
+
export declare const useMdmDependentLookupsStructureNode: (attributeTypeUri: string) => import("@reltio/mdm-sdk").DependentLookupsStructureNode;
|
|
63
|
+
export declare const useMdmAllRelationsToAddAndEdit: (viewIds?: string[]) => import("@reltio/mdm-sdk").Connection[];
|
|
64
|
+
export declare const useMdmDependentLookupEditorContext: (attributeValue: SimpleAttributeValue, attributeType: AttributeType) => {
|
|
65
|
+
parents: import("@reltio/mdm-sdk").DependentLookupsParentForApi[];
|
|
66
|
+
disabled: boolean;
|
|
67
|
+
placeholder: string;
|
|
68
|
+
value?: null;
|
|
69
|
+
};
|
|
70
|
+
export declare const useMdmGlobalSearchRequestOptions: (omittingFields?: string[]) => import("@reltio/mdm-sdk").GlobalSearchRequestOptions;
|
|
71
|
+
export declare const useMdmAction: <T extends "openSearch" | "openHistoryEvent" | "openConsoleApp" | "addAttributes" | "modifyAttribute" | "removeAttribute" | "entityDeleted" | "entityCreated" | "errorDeactivated" | "requestNextPageOfAttributeValues" | "openEntity" | "setDefaultProfilePicForModifiedEntity" | "setDefaultProfilePicForEntity" | "dependentLookupsEditorTouched" | "openPivotingPerspective" | "lookupsLoaded" | "lookupsForTypeResolved" | "errorSet" | "setHistoryMode" | "modeUpdated" | "setHistoryEvent" | "clearHistoryEvent" | "setHistoryDiff" | "setHistorySlice" | "updateSearchNavigationDataFields" | "openPerspective" | "entityDeletionFinished" | "loadEntity" | "updateSearchNavigationDataOnMerge" | "lookupsListResolved" | "relationsLoaded" | "setInitialInfo" | "setRelationType" | "closeRelationEditor" | "setRelationEntity" | "errorsSet" | "addRelation" | "editRelation">(action: T) => Partial<{
|
|
72
|
+
openSearch: (payload: import("@reltio/mdm-sdk").SearchState) => void;
|
|
73
|
+
openHistoryEvent: (payload: {
|
|
74
|
+
entityUri: string;
|
|
75
|
+
historyEvent: import("@reltio/mdm-sdk").HistoryEvent;
|
|
76
|
+
}) => void;
|
|
77
|
+
openConsoleApp: (name: string, path?: string, query?: string) => void;
|
|
78
|
+
addAttributes: (payload: import("@reltio/mdm-sdk").AddAttributesPayload) => void;
|
|
79
|
+
modifyAttribute: (payload: import("@reltio/mdm-sdk").ModifyAttributePayload) => void;
|
|
80
|
+
removeAttribute: (payload: import("@reltio/mdm-sdk").RemoveAttributePayload) => void;
|
|
81
|
+
entityDeleted: (payload: string) => void;
|
|
82
|
+
entityCreated: (payload: import("@reltio/mdm-sdk").Entity) => void;
|
|
83
|
+
errorDeactivated: (id: string) => void;
|
|
84
|
+
requestNextPageOfAttributeValues: (payload: import("@reltio/mdm-sdk").RequestNextPageOfAttributeValuesPayload) => void;
|
|
85
|
+
openEntity: (payload: {
|
|
86
|
+
uri: string;
|
|
87
|
+
viewId: string;
|
|
88
|
+
source?: string;
|
|
89
|
+
screen?: string;
|
|
90
|
+
}) => void;
|
|
91
|
+
setDefaultProfilePicForModifiedEntity: (payload: {
|
|
92
|
+
entityUri: string;
|
|
93
|
+
value: import("@reltio/mdm-sdk").ImageAttributeValue;
|
|
94
|
+
}) => void;
|
|
95
|
+
setDefaultProfilePicForEntity: (payload: string | import("@reltio/mdm-sdk").ImageAttributeValue) => void;
|
|
96
|
+
dependentLookupsEditorTouched: (payload: {
|
|
97
|
+
uri: string;
|
|
98
|
+
isTouched: boolean;
|
|
99
|
+
}) => void;
|
|
100
|
+
openPivotingPerspective: (payload: {
|
|
101
|
+
attributeType: AttributeType;
|
|
102
|
+
value: import("@reltio/mdm-sdk").PivotingValue[];
|
|
103
|
+
}) => void;
|
|
104
|
+
lookupsLoaded: (lookups: import("@reltio/mdm-sdk").Lookups) => void;
|
|
105
|
+
lookupsForTypeResolved: (payload: import("@reltio/mdm-sdk").LookupsForTypeResolvedPayload) => void;
|
|
106
|
+
errorSet: (payload: string) => void;
|
|
107
|
+
setHistoryMode: (payload: import("@reltio/mdm-sdk").HistoryMode) => void;
|
|
108
|
+
modeUpdated: (payload: import("@reltio/mdm-sdk").Mode) => void;
|
|
109
|
+
setHistoryEvent: (payload: import("@reltio/mdm-sdk").HistoryEvent) => void;
|
|
110
|
+
clearHistoryEvent: () => void;
|
|
111
|
+
setHistoryDiff: (payload: import("@reltio/mdm-sdk").HistoryDiff) => void;
|
|
112
|
+
setHistorySlice: (payload: import("@reltio/mdm-sdk").HistorySlice) => void;
|
|
113
|
+
updateSearchNavigationDataFields: (payload: Partial<import("@reltio/mdm-sdk").SearchNavigationData>) => void;
|
|
114
|
+
openPerspective: (payload: {
|
|
115
|
+
perspectiveId: string;
|
|
116
|
+
viewId: string;
|
|
117
|
+
}) => void;
|
|
118
|
+
entityDeletionFinished: () => void;
|
|
119
|
+
loadEntity: (payload: {
|
|
120
|
+
viewId?: string;
|
|
121
|
+
uri: string;
|
|
122
|
+
}) => void;
|
|
123
|
+
updateSearchNavigationDataOnMerge: (payload: {
|
|
124
|
+
winnerUri: string;
|
|
125
|
+
losersUris: string[];
|
|
126
|
+
}) => void;
|
|
127
|
+
lookupsListResolved: (payload: import("@reltio/mdm-sdk").Lookups[]) => void;
|
|
128
|
+
relationsLoaded: (payload: import("@reltio/mdm-sdk").RelationsLoadedPayload) => void;
|
|
129
|
+
setInitialInfo: (id: string, relationUri: string, tempEntity: import("@reltio/mdm-sdk").Entity, connection: import("@reltio/mdm-sdk").Connection) => void;
|
|
130
|
+
setRelationType: (id: string, relationUri: string, relationType: import("@reltio/mdm-sdk").CompactRelationType) => void;
|
|
131
|
+
closeRelationEditor: (id: string, relationUri: string) => void;
|
|
132
|
+
setRelationEntity: (id: string, relationUri: string, entityInfo: import("@reltio/mdm-sdk").Entity) => void;
|
|
133
|
+
errorsSet: (payload: import("@reltio/mdm-sdk").AttributeError[]) => void;
|
|
134
|
+
addRelation: (id: string, connection: import("@reltio/mdm-sdk").Connection) => void;
|
|
135
|
+
editRelation: (id: string, connection: import("@reltio/mdm-sdk").Connection) => void;
|
|
136
|
+
}>[T];
|
|
137
|
+
export declare const useMdmListener: <T extends "searchNavigationListener">(listener: T) => Partial<{
|
|
138
|
+
searchNavigationListener: (action: any, state: any) => void;
|
|
139
|
+
}>[T];
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useMdmIsWorkflowEnabled = 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 = 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 = void 0;
|
|
5
|
+
var react_context_selector_1 = require("@fluentui/react-context-selector");
|
|
6
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
7
|
+
var context_1 = require("./context");
|
|
8
|
+
var dependentLookupEditorContext_1 = require("./selectors/dependentLookupEditorContext");
|
|
9
|
+
var entity_1 = require("./selectors/entity");
|
|
10
|
+
var useMdmModuleActionsContext = function (selector) {
|
|
11
|
+
return (0, react_context_selector_1.useContextSelector)(context_1.MdmModuleActionsContext, selector);
|
|
12
|
+
};
|
|
13
|
+
var useMdmModuleValuesContext = function (selector) {
|
|
14
|
+
return (0, react_context_selector_1.useContextSelector)(context_1.MdmModuleValuesContext, selector);
|
|
15
|
+
};
|
|
16
|
+
var useMdmModuleListenersContext = function (selector) {
|
|
17
|
+
return (0, react_context_selector_1.useContextSelector)(context_1.MdmModuleListenersContext, selector);
|
|
18
|
+
};
|
|
19
|
+
var useMdmAutoCloseInterval = function () { return useMdmModuleValuesContext(function (context) { return context.autoCloseInterval; }); };
|
|
20
|
+
exports.useMdmAutoCloseInterval = useMdmAutoCloseInterval;
|
|
21
|
+
var useMdmUiError = function () { return useMdmModuleValuesContext(function (context) { return context.uiError; }); };
|
|
22
|
+
exports.useMdmUiError = useMdmUiError;
|
|
23
|
+
var useMdmWorkflowEnvironmentUrl = function () {
|
|
24
|
+
return useMdmModuleValuesContext(function (context) { return context.workflowEnvironmentUrl; });
|
|
25
|
+
};
|
|
26
|
+
exports.useMdmWorkflowEnvironmentUrl = useMdmWorkflowEnvironmentUrl;
|
|
27
|
+
var useMdmExportPath = function () { return useMdmModuleValuesContext(function (context) { return context.exportPath; }); };
|
|
28
|
+
exports.useMdmExportPath = useMdmExportPath;
|
|
29
|
+
var useMdmAbsoluteImagePath = function () { return useMdmModuleValuesContext(function (context) { return context.absoluteImagePath; }); };
|
|
30
|
+
exports.useMdmAbsoluteImagePath = useMdmAbsoluteImagePath;
|
|
31
|
+
var useMdmUiPath = function () { return useMdmModuleValuesContext(function (context) { return context.uiPath; }); };
|
|
32
|
+
exports.useMdmUiPath = useMdmUiPath;
|
|
33
|
+
var useMdmDtssPath = function () { return useMdmModuleValuesContext(function (context) { return context.dtssPath; }); };
|
|
34
|
+
exports.useMdmDtssPath = useMdmDtssPath;
|
|
35
|
+
var useMdmServicesPath = function () { return useMdmModuleValuesContext(function (context) { return context.servicesPath; }); };
|
|
36
|
+
exports.useMdmServicesPath = useMdmServicesPath;
|
|
37
|
+
var useMdmWorkflowPath = function () { return useMdmModuleValuesContext(function (context) { return context.workflowPath; }); };
|
|
38
|
+
exports.useMdmWorkflowPath = useMdmWorkflowPath;
|
|
39
|
+
var useMdmImageServicePath = function () { return useMdmModuleValuesContext(function (context) { return context.imageServicePath; }); };
|
|
40
|
+
exports.useMdmImageServicePath = useMdmImageServicePath;
|
|
41
|
+
var useMdmReltioPath = function () { return useMdmModuleValuesContext(function (context) { return context.reltioPath; }); };
|
|
42
|
+
exports.useMdmReltioPath = useMdmReltioPath;
|
|
43
|
+
var useMdmApiPath = function () { return useMdmModuleValuesContext(function (context) { return context.apiPath; }); };
|
|
44
|
+
exports.useMdmApiPath = useMdmApiPath;
|
|
45
|
+
var useMdmCollaborationPath = function () { return useMdmModuleValuesContext(function (context) { return context.collaborationPath; }); };
|
|
46
|
+
exports.useMdmCollaborationPath = useMdmCollaborationPath;
|
|
47
|
+
var useMdmImageAttributesFieldsOrder = function () {
|
|
48
|
+
return useMdmModuleValuesContext(function (context) { return context.imageAttributesFieldsOrder; });
|
|
49
|
+
};
|
|
50
|
+
exports.useMdmImageAttributesFieldsOrder = useMdmImageAttributesFieldsOrder;
|
|
51
|
+
var useMdmShowEntityId = function () { return useMdmModuleValuesContext(function (context) { return context.showEntityId; }); };
|
|
52
|
+
exports.useMdmShowEntityId = useMdmShowEntityId;
|
|
53
|
+
var useMdmPivotingAttributes = function () { return useMdmModuleValuesContext(function (context) { return context.pivotingAttributes; }); };
|
|
54
|
+
exports.useMdmPivotingAttributes = useMdmPivotingAttributes;
|
|
55
|
+
var useMdmDateMask = function () { return useMdmModuleValuesContext(function (context) { return context.dateMask; }); };
|
|
56
|
+
exports.useMdmDateMask = useMdmDateMask;
|
|
57
|
+
var useMdmDateTimeMask = function () { return useMdmModuleValuesContext(function (context) { return context.dateTimeMask; }); };
|
|
58
|
+
exports.useMdmDateTimeMask = useMdmDateTimeMask;
|
|
59
|
+
var useMdmAttributePresentations = function () {
|
|
60
|
+
return useMdmModuleValuesContext(function (context) { return context.attributePresentations; });
|
|
61
|
+
};
|
|
62
|
+
exports.useMdmAttributePresentations = useMdmAttributePresentations;
|
|
63
|
+
var useMdmDefaultMaxValues = function () { return useMdmModuleValuesContext(function (context) { return context.defaultMaxValues; }); };
|
|
64
|
+
exports.useMdmDefaultMaxValues = useMdmDefaultMaxValues;
|
|
65
|
+
var useMdmAttributesSortingStrategy = function () {
|
|
66
|
+
return useMdmModuleValuesContext(function (context) { return context.attributesSortingStrategy; });
|
|
67
|
+
};
|
|
68
|
+
exports.useMdmAttributesSortingStrategy = useMdmAttributesSortingStrategy;
|
|
69
|
+
var useMdmLookupAutocomplete = function () { return useMdmModuleValuesContext(function (context) { return context.lookupAutocomplete; }); };
|
|
70
|
+
exports.useMdmLookupAutocomplete = useMdmLookupAutocomplete;
|
|
71
|
+
var useMdmModifiedEntities = function () { return useMdmModuleValuesContext(function (context) { return context.modifiedEntities; }); };
|
|
72
|
+
exports.useMdmModifiedEntities = useMdmModifiedEntities;
|
|
73
|
+
var useMdmEntity = function () { return useMdmModuleValuesContext(function (context) { return context.entity; }); };
|
|
74
|
+
exports.useMdmEntity = useMdmEntity;
|
|
75
|
+
var useMdmEntityUri = function () { return useMdmModuleValuesContext(function (context) { var _a; return (_a = context.entity) === null || _a === void 0 ? void 0 : _a.uri; }); };
|
|
76
|
+
exports.useMdmEntityUri = useMdmEntityUri;
|
|
77
|
+
var useMdmEntityWithDiff = function () { return useMdmModuleValuesContext(function (context) { return context.entityWithDiff; }); };
|
|
78
|
+
exports.useMdmEntityWithDiff = useMdmEntityWithDiff;
|
|
79
|
+
var useMdmEntityUriWithDataTenant = function () {
|
|
80
|
+
return useMdmModuleValuesContext(function (context) { return context.entityUriWithDataTenant; });
|
|
81
|
+
};
|
|
82
|
+
exports.useMdmEntityUriWithDataTenant = useMdmEntityUriWithDataTenant;
|
|
83
|
+
var useMdmMode = function () { return useMdmModuleValuesContext(function (context) { return context.mode; }); };
|
|
84
|
+
exports.useMdmMode = useMdmMode;
|
|
85
|
+
var useMdmIsViewMode = function () { return useMdmModuleValuesContext(function (context) { return (0, mdm_sdk_1.isViewMode)(context.mode); }); };
|
|
86
|
+
exports.useMdmIsViewMode = useMdmIsViewMode;
|
|
87
|
+
var useMdmIsEditableMode = function () { return useMdmModuleValuesContext(function (context) { return (0, mdm_sdk_1.isEditableMode)(context.mode); }); };
|
|
88
|
+
exports.useMdmIsEditableMode = useMdmIsEditableMode;
|
|
89
|
+
var useMdmHistoryDiff = function () { return useMdmModuleValuesContext(function (context) { return context.historyDiff; }); };
|
|
90
|
+
exports.useMdmHistoryDiff = useMdmHistoryDiff;
|
|
91
|
+
var useMdmHistoryMode = function () { return useMdmModuleValuesContext(function (context) { return context.historyMode; }); };
|
|
92
|
+
exports.useMdmHistoryMode = useMdmHistoryMode;
|
|
93
|
+
var useMdmHistorySlice = function () { return useMdmModuleValuesContext(function (context) { return context.historySlice; }); };
|
|
94
|
+
exports.useMdmHistorySlice = useMdmHistorySlice;
|
|
95
|
+
var useMdmHistoryEvent = function () { return useMdmModuleValuesContext(function (context) { return context.historyEvent; }); };
|
|
96
|
+
exports.useMdmHistoryEvent = useMdmHistoryEvent;
|
|
97
|
+
var useMdmProfileLastLoadedTime = function () { return useMdmModuleValuesContext(function (context) { return context.profileLastLoadedTime; }); };
|
|
98
|
+
exports.useMdmProfileLastLoadedTime = useMdmProfileLastLoadedTime;
|
|
99
|
+
var useMdmLookups = function () { return useMdmModuleValuesContext(function (context) { return context.lookups; }); };
|
|
100
|
+
exports.useMdmLookups = useMdmLookups;
|
|
101
|
+
var useMdmDependentLookups = function () { return useMdmModuleValuesContext(function (context) { return context.dependentLookups; }); };
|
|
102
|
+
exports.useMdmDependentLookups = useMdmDependentLookups;
|
|
103
|
+
var useMdmMetadata = function () { return useMdmModuleValuesContext(function (context) { return context.metadata; }); };
|
|
104
|
+
exports.useMdmMetadata = useMdmMetadata;
|
|
105
|
+
var useMdmUser = function () { return useMdmModuleValuesContext(function (context) { return context.user; }); };
|
|
106
|
+
exports.useMdmUser = useMdmUser;
|
|
107
|
+
var useMdmUsername = function () { return useMdmModuleValuesContext(function (context) { var _a; return (_a = context.user) === null || _a === void 0 ? void 0 : _a.username; }); };
|
|
108
|
+
exports.useMdmUsername = useMdmUsername;
|
|
109
|
+
var useMdmUserRoles = function () { return useMdmModuleValuesContext(function (context) { var _a; return (_a = context.user) === null || _a === void 0 ? void 0 : _a.roles; }); };
|
|
110
|
+
exports.useMdmUserRoles = useMdmUserRoles;
|
|
111
|
+
var useMdmTenantObject = function () { return useMdmModuleValuesContext(function (context) { return context.tenant; }); };
|
|
112
|
+
exports.useMdmTenantObject = useMdmTenantObject;
|
|
113
|
+
var useMdmTenant = function () { return useMdmModuleValuesContext(function (context) { var _a; return (_a = context.tenant) === null || _a === void 0 ? void 0 : _a.id; }); };
|
|
114
|
+
exports.useMdmTenant = useMdmTenant;
|
|
115
|
+
var useMdmTenantName = function () { return useMdmModuleValuesContext(function (context) { var _a; return (_a = context.tenant) === null || _a === void 0 ? void 0 : _a.name; }); };
|
|
116
|
+
exports.useMdmTenantName = useMdmTenantName;
|
|
117
|
+
var useMdmEnvironment = function () { return useMdmModuleValuesContext(function (context) { return context.environment; }); };
|
|
118
|
+
exports.useMdmEnvironment = useMdmEnvironment;
|
|
119
|
+
var useMdmDataTenants = function () { return useMdmModuleValuesContext(function (context) { return context.dataTenants; }); };
|
|
120
|
+
exports.useMdmDataTenants = useMdmDataTenants;
|
|
121
|
+
var useMdmSearchNavigationData = function () { return useMdmModuleValuesContext(function (context) { return context.searchNavigationData; }); };
|
|
122
|
+
exports.useMdmSearchNavigationData = useMdmSearchNavigationData;
|
|
123
|
+
var useMdmSearchProviderData = function () { return useMdmModuleValuesContext(function (context) { return context.searchProviderData; }); };
|
|
124
|
+
exports.useMdmSearchProviderData = useMdmSearchProviderData;
|
|
125
|
+
var useMdmIsCollaborationEnabled = function () {
|
|
126
|
+
return useMdmModuleValuesContext(function (context) { return context.isCollaborationEnabled; });
|
|
127
|
+
};
|
|
128
|
+
exports.useMdmIsCollaborationEnabled = useMdmIsCollaborationEnabled;
|
|
129
|
+
var useMdmIsWorkflowEnabled = function () { return useMdmModuleValuesContext(function (context) { return context.isWorkflowEnabled; }); };
|
|
130
|
+
exports.useMdmIsWorkflowEnabled = useMdmIsWorkflowEnabled;
|
|
131
|
+
var useMdmProfileErrors = function () { return useMdmModuleValuesContext(function (context) { return context.profileErrors; }); };
|
|
132
|
+
exports.useMdmProfileErrors = useMdmProfileErrors;
|
|
133
|
+
var useMdmModifiedEntityDefaultProfilePic = function (entityUri) {
|
|
134
|
+
return useMdmModuleValuesContext(function (context) {
|
|
135
|
+
return (0, entity_1.getModifiedEntityDefaultProfilePic)(context.modifiedEntities, entityUri);
|
|
136
|
+
});
|
|
137
|
+
};
|
|
138
|
+
exports.useMdmModifiedEntityDefaultProfilePic = useMdmModifiedEntityDefaultProfilePic;
|
|
139
|
+
var useMdmModifiedEntity = function (entityUri) {
|
|
140
|
+
return useMdmModuleValuesContext(function (context) { return (0, entity_1.getModifiedEntity)(context.modifiedEntities, entityUri); });
|
|
141
|
+
};
|
|
142
|
+
exports.useMdmModifiedEntity = useMdmModifiedEntity;
|
|
143
|
+
var useMdmInitialConnectionTempEntity = function (viewId, relationUri) {
|
|
144
|
+
return useMdmModuleValuesContext(function (context) {
|
|
145
|
+
return (0, mdm_sdk_1.getInitialConnectionTempEntity)(context.relations, viewId, relationUri);
|
|
146
|
+
});
|
|
147
|
+
};
|
|
148
|
+
exports.useMdmInitialConnectionTempEntity = useMdmInitialConnectionTempEntity;
|
|
149
|
+
var useMdmInitialConnection = function (viewId, relationUri) {
|
|
150
|
+
return useMdmModuleValuesContext(function (context) { return (0, mdm_sdk_1.getInitialConnection)(context.relations, viewId, relationUri); });
|
|
151
|
+
};
|
|
152
|
+
exports.useMdmInitialConnection = useMdmInitialConnection;
|
|
153
|
+
var useMdmDependentLookupEditorState = function (valueUri) {
|
|
154
|
+
return useMdmModuleValuesContext(function (context) { return (0, mdm_sdk_1.getDependentLookupEditorState)(context.dependentLookups, valueUri); });
|
|
155
|
+
};
|
|
156
|
+
exports.useMdmDependentLookupEditorState = useMdmDependentLookupEditorState;
|
|
157
|
+
var useMdmActiveErrorsForAttributesPager = function (parentUri, attributeType) {
|
|
158
|
+
return useMdmModuleValuesContext(function (context) {
|
|
159
|
+
return (0, mdm_sdk_1.getCachedActiveErrorsForAttributesPager)(context.profileErrors, parentUri, attributeType);
|
|
160
|
+
});
|
|
161
|
+
};
|
|
162
|
+
exports.useMdmActiveErrorsForAttributesPager = useMdmActiveErrorsForAttributesPager;
|
|
163
|
+
var useMdmDependentLookupsStructureNode = function (attributeTypeUri) {
|
|
164
|
+
return useMdmModuleValuesContext(function (context) {
|
|
165
|
+
return (0, mdm_sdk_1.getDependentLookupsStructureNode)(context.dependentLookups, attributeTypeUri);
|
|
166
|
+
});
|
|
167
|
+
};
|
|
168
|
+
exports.useMdmDependentLookupsStructureNode = useMdmDependentLookupsStructureNode;
|
|
169
|
+
var useMdmAllRelationsToAddAndEdit = function (viewIds) {
|
|
170
|
+
return useMdmModuleValuesContext(function (context) { return (0, mdm_sdk_1.getAllRelationsToAddAndEdit)(context.relations, viewIds); });
|
|
171
|
+
};
|
|
172
|
+
exports.useMdmAllRelationsToAddAndEdit = useMdmAllRelationsToAddAndEdit;
|
|
173
|
+
var useMdmDependentLookupEditorContext = function (attributeValue, attributeType) {
|
|
174
|
+
var value = useMdmModuleValuesContext(function (context) {
|
|
175
|
+
var _a;
|
|
176
|
+
return (0, dependentLookupEditorContext_1.getDependentLookupEditorContext)({
|
|
177
|
+
dependentLookups: context.dependentLookups,
|
|
178
|
+
metadata: context.metadata,
|
|
179
|
+
relations: context.relations,
|
|
180
|
+
modifiedEntities: context.modifiedEntities,
|
|
181
|
+
entityUri: (_a = context.entity) === null || _a === void 0 ? void 0 : _a.uri,
|
|
182
|
+
attributeValue: attributeValue,
|
|
183
|
+
attributeType: attributeType
|
|
184
|
+
});
|
|
185
|
+
});
|
|
186
|
+
return value;
|
|
187
|
+
};
|
|
188
|
+
exports.useMdmDependentLookupEditorContext = useMdmDependentLookupEditorContext;
|
|
189
|
+
var useMdmGlobalSearchRequestOptions = function (omittingFields) {
|
|
190
|
+
return useMdmModuleValuesContext(function (context) {
|
|
191
|
+
return (0, mdm_sdk_1.getGlobalSearchRequestOptions)({
|
|
192
|
+
activityFilter: context.activityFilter,
|
|
193
|
+
globalFilter: context.globalFilter,
|
|
194
|
+
searchOptions: context.searchOptions
|
|
195
|
+
}, omittingFields);
|
|
196
|
+
});
|
|
197
|
+
};
|
|
198
|
+
exports.useMdmGlobalSearchRequestOptions = useMdmGlobalSearchRequestOptions;
|
|
199
|
+
var useMdmAction = function (action) {
|
|
200
|
+
return useMdmModuleActionsContext(function (context) { return context[action]; });
|
|
201
|
+
};
|
|
202
|
+
exports.useMdmAction = useMdmAction;
|
|
203
|
+
var useMdmListener = function (listener) {
|
|
204
|
+
return useMdmModuleListenersContext(function (context) { return context[listener]; });
|
|
205
|
+
};
|
|
206
|
+
exports.useMdmListener = useMdmListener;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { MdmModuleProvider } from './provider';
|
|
2
|
+
export { useMdmAutoCloseInterval, useMdmUiError, useMdmWorkflowEnvironmentUrl, useMdmExportPath, useMdmAbsoluteImagePath, useMdmUiPath, useMdmDtssPath, useMdmServicesPath, useMdmWorkflowPath, useMdmImageServicePath, useMdmReltioPath, useMdmApiPath, useMdmCollaborationPath, useMdmImageAttributesFieldsOrder, useMdmShowEntityId, useMdmPivotingAttributes, useMdmDateMask, useMdmDateTimeMask, useMdmAttributePresentations, useMdmDefaultMaxValues, useMdmAttributesSortingStrategy, useMdmLookupAutocomplete, useMdmModifiedEntities, useMdmEntity, useMdmEntityUri, useMdmEntityWithDiff, useMdmEntityUriWithDataTenant, useMdmMode, useMdmIsViewMode, useMdmIsEditableMode, useMdmHistoryDiff, useMdmHistoryMode, useMdmHistorySlice, useMdmHistoryEvent, useMdmProfileLastLoadedTime, useMdmLookups, useMdmDependentLookups, useMdmMetadata, useMdmUser, useMdmUsername, useMdmUserRoles, useMdmTenantObject, useMdmTenant, useMdmTenantName, useMdmEnvironment, useMdmDataTenants, useMdmSearchNavigationData, useMdmSearchProviderData, useMdmIsCollaborationEnabled, useMdmIsWorkflowEnabled, useMdmProfileErrors, useMdmModifiedEntityDefaultProfilePic, useMdmModifiedEntity, useMdmInitialConnectionTempEntity, useMdmInitialConnection, useMdmDependentLookupEditorState, useMdmActiveErrorsForAttributesPager, useMdmDependentLookupsStructureNode, useMdmAllRelationsToAddAndEdit, useMdmDependentLookupEditorContext, useMdmGlobalSearchRequestOptions, useMdmAction, useMdmListener } from './hooks';
|
|
3
|
+
export type { MdmModuleActionsContextProps, MdmModuleValuesContextProps, MdmModuleListenersContextProps } from './context';
|