@reltio/components 1.4.1638 → 1.4.1639
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/AttributeGroupIcon/AttributeGroupIcon.js +2 -3
- package/cjs/components/AttributeSelector/AttributeSelector.js +2 -3
- package/cjs/components/AttributesFiltersBuilder/AttributesFiltersBuilder.js +4 -5
- package/cjs/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.d.ts +13 -19
- package/cjs/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.js +6 -17
- package/cjs/components/BasicView/BasicView.d.ts +1 -1
- package/cjs/components/CollaborationItem/Comment/Comment.js +1 -3
- package/cjs/components/CollaborationItem/CommentTarget/CommentTarget.js +2 -4
- package/cjs/components/CollaborationItem/CommentTarget/styles.d.ts +1 -1
- package/cjs/components/CollaborationItem/RepliedComment/RepliedComment.js +1 -3
- package/cjs/components/CollaborationItem/SendMessageArea/SendMessageArea.js +1 -3
- package/cjs/components/ColoredSourceIcon/ColoredSourceIcon.js +1 -3
- package/cjs/components/ConnectionEditor/ConnectionEditor.js +3 -6
- package/cjs/components/DataTenantBadge/DataTenantBadge.js +6 -4
- package/cjs/components/DataTypeValue/DataTypeValue.js +4 -5
- package/cjs/components/EntityAvatar/EntityAvatar.js +4 -5
- package/cjs/components/EntityTypeBadge/EntityTypeBadge.js +4 -6
- package/cjs/components/EntityTypeIcon/EntityTypeIcon.js +2 -3
- package/cjs/components/EntityUriLink/EntityUriLink.js +4 -6
- package/cjs/components/ErrorPopup/ErrorPopup.d.ts +13 -8
- package/cjs/components/ErrorPopup/ErrorPopup.js +23 -18
- package/cjs/components/ErrorPopup/styles.d.ts +1 -1
- package/cjs/components/HierarchyNodeTitle/HierarchyNodeTitle.js +4 -6
- package/cjs/components/ImageAttributesGallery/ImageAttributesGallery.js +2 -6
- package/cjs/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.d.ts +0 -5
- package/cjs/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.js +6 -7
- package/cjs/components/ImageDetailsView/MetaInfo/MetaInfo.js +3 -4
- package/cjs/components/ImageDetailsView/MetaInfoList/MetaInfoItem/styles.d.ts +1 -1
- package/cjs/components/ImageDetailsView/MetaInfoList/MetaInfoList.js +3 -4
- package/cjs/components/ImageDetailsView/hooks/useEditMetaInfo.js +3 -10
- package/cjs/components/MatchRulesBlock/SimpleMatchRules/styles.d.ts +1 -1
- package/cjs/components/MatchRulesSelector/MatchRulesSelector.d.ts +1 -4
- package/cjs/components/MatchRulesSelector/MatchRulesSelector.js +2 -4
- package/cjs/components/ModeSwitcher/styles.d.ts +1 -1
- package/cjs/components/PivotingUriLink/PivotingUriLink.js +1 -3
- package/cjs/components/Popper/Popper.d.ts +1 -1
- package/cjs/components/PotentialMatchReviewCard/styles.d.ts +1 -1
- package/cjs/components/ProfileBand/ProfileBand.js +3 -4
- package/cjs/components/ProfileBandNavigation/ProfileBandNavigationWidget.d.ts +1 -1
- package/cjs/components/ProfileBandNavigation/hooks/useSearchNavigation.js +19 -54
- package/cjs/components/ProfileBandNavigation/hooks/useSearchNavigationVisibility.js +4 -8
- package/cjs/components/ProfilesList/ProfilesList.d.ts +2 -3
- package/cjs/components/ProfilesList/ProfilesList.js +3 -1
- package/cjs/components/RelationEditor/RelationEditor.js +46 -33
- package/cjs/components/RelevanceScoreBadge/RelevanceScoreBadge.js +3 -4
- package/cjs/components/SelectAttributesList/SelectAttributesList.js +2 -3
- package/cjs/components/SmallIconButton/SmallIconButton.d.ts +1 -1
- package/cjs/components/SmallIconButton/index.d.ts +1 -1
- package/cjs/components/SourceIcon/SourceIcon.js +2 -3
- package/cjs/components/SourceSystemsSelector/SourceSystemsSelector.js +2 -3
- package/cjs/components/TenantLabel/TenantLabel.js +3 -4
- package/cjs/components/TenantsDropDownSelector/TenantsDropDownSelector.js +3 -4
- package/cjs/components/UploadImageDialog/TargetBox/styles.d.ts +1 -1
- package/cjs/components/UploadImageDialog/UploadImageDialog.js +4 -5
- package/cjs/components/UserSelector/UserSelector.js +3 -4
- package/cjs/components/activityLog/ActivityExportButton/ActivityExportButton.js +6 -7
- package/cjs/components/activityLog/ActivityFilterEditor/ActivityFilterEditor.js +2 -3
- package/cjs/components/activityLog/ActivityFilterEditor/EntityChangedSelectors.js +2 -3
- package/cjs/components/activityLog/ActivityFilterEditor/SourceSelector.js +3 -4
- package/cjs/components/activityLog/ActivityLogFilter/ActivityLogFilter.d.ts +1 -1
- package/cjs/components/activityLog/ActivityLogFilter/ActivityLogFilter.js +5 -3
- package/cjs/components/activityLog/activities/GroupActivity.js +2 -3
- package/cjs/components/activityLog/activities/RelationObject/styles.d.ts +1 -1
- package/cjs/components/activityLog/activities/SearchActivity.js +6 -7
- package/cjs/components/activityLog/activities/fields/DeltaField.js +7 -8
- package/cjs/components/activityLog/activities/fields/commonStyles.d.ts +1 -1
- package/cjs/components/activityLog/activities/records/EntityRecord.js +8 -9
- package/cjs/components/attributes/AttributesView/AttributesView.d.ts +2 -2
- package/cjs/components/attributes/AttributesView/AttributesView.js +8 -4
- package/cjs/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +1 -1
- package/cjs/components/attributes/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
- package/cjs/components/attributes/ImageAttributesLine/ImageAttributesLine.js +8 -9
- package/cjs/components/attributes/OvIcon/OvIcon.d.ts +1 -1
- package/cjs/components/attributes/OvIcon/OvIcon.js +4 -6
- package/cjs/components/attributes/PivotingAttributes/PivotingTooltip.js +3 -5
- package/cjs/components/attributes/PivotingAttributes/PivotingTooltipContent.js +3 -4
- package/cjs/components/attributes/PivotingAttributes/styles.d.ts +1 -1
- package/cjs/components/attributes/editMode/AttributesFactory/AttributesFactory.js +1 -1
- package/cjs/components/attributes/editMode/AttributesPager/AttributeRenderer.d.ts +7 -2
- package/cjs/components/attributes/editMode/AttributesPager/AttributesPager.d.ts +2 -38
- package/cjs/components/attributes/editMode/AttributesPager/AttributesPager.js +10 -2
- package/cjs/components/attributes/editMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
- package/cjs/components/attributes/editMode/AttributesPager/index.d.ts +2 -39
- package/cjs/components/attributes/editMode/AttributesPager/index.js +5 -44
- package/cjs/components/attributes/editMode/AttributesPager/styles.d.ts +1 -1
- package/cjs/components/attributes/editMode/AttributesPager/types.d.ts +21 -0
- package/cjs/components/attributes/editMode/AttributesView/AttributesView.d.ts +1 -1
- package/cjs/components/attributes/editMode/AttributesView/AttributesView.js +10 -12
- package/cjs/components/attributes/editMode/EntityCreator/EntityCreator.d.ts +9 -24
- package/cjs/components/attributes/editMode/EntityCreator/EntityCreator.js +7 -15
- package/cjs/components/attributes/editMode/EntitySelector/EntitySelector.js +1 -1
- package/cjs/components/attributes/editMode/EntitySelector/components/SingleValue.js +3 -6
- package/cjs/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
- package/cjs/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.js +8 -10
- package/cjs/components/attributes/editMode/MoreAttributesButton/useMoreAttributesItems.js +2 -3
- package/cjs/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.js +16 -15
- package/cjs/components/attributes/editMode/Roles/Roles.js +4 -5
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor.js +4 -9
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/useAutopopulationContextValue.js +7 -30
- package/cjs/components/attributes/editMode/Tags/Tags.js +3 -4
- package/cjs/components/attributes/inline/ReferenceAttribute/ReferenceAttribute.js +3 -5
- package/cjs/components/attributes/inline/common/SourceItem.js +2 -4
- package/cjs/components/attributes/readMode/AttributesList/AttributesList.js +1 -1
- package/cjs/components/attributes/readMode/AttributesPager/AttributesPager.d.ts +1 -3
- package/cjs/components/attributes/readMode/AttributesPager/AttributesPager.js +7 -2
- package/cjs/components/attributes/readMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
- package/cjs/components/attributes/readMode/AttributesPager/MultiLineRenderer.d.ts +1 -2
- package/cjs/components/attributes/readMode/AttributesPager/styles.d.ts +1 -1
- package/cjs/components/attributes/readMode/AttributesView/AttributesView.d.ts +2 -2
- package/cjs/components/attributes/readMode/AttributesView/AttributesView.js +3 -4
- package/cjs/components/attributes/readMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
- package/cjs/components/attributes/readMode/ReferenceAttribute/ReferenceAttribute.js +2 -4
- package/cjs/components/attributes/readMode/SpecialAttributes/Roles/Role.js +2 -6
- package/cjs/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +2 -4
- package/cjs/components/attributes/types/attributesView.d.ts +2 -7
- package/cjs/components/crosswalks/AttributesTable/AddAttributesButton/AddAttributesButton.js +2 -3
- package/cjs/components/crosswalks/AttributesTable/AttributesTable.js +2 -3
- package/cjs/components/crosswalks/AttributesTable/cell-renderers/RuleTypeInfoButton.js +21 -17
- package/cjs/components/crosswalks/AttributesTable/cell-renderers/WinnerSourcesRenderer.js +1 -3
- package/cjs/components/crosswalks/CrosswalkAttributes/CrosswalkAttributes.js +9 -10
- package/cjs/components/crosswalks/CrosswalkDragLayer/CrosswalkDragPreview.js +3 -4
- package/cjs/components/crosswalks/CrosswalkRow/CrosswalkRow.js +11 -12
- package/cjs/components/crosswalks/DummyCrosswalkRow/DummyCrosswalkRow.js +3 -4
- package/cjs/components/editors/DataTypeValueEditor/useEditorContext.d.ts +3 -3
- package/cjs/components/editors/DataTypeValueEditor/useEditorContext.js +10 -36
- package/cjs/components/editors/DateRangeEditor/DateRangeEditor.d.ts +3 -3
- package/cjs/components/editors/TypeaheadEditor/TypeaheadEditor.js +1 -1
- package/cjs/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
- package/cjs/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
- package/cjs/components/history/HistoryMenuButton/HistoryMenuButton.js +5 -32
- package/cjs/components/history/HistoryTree/HistoryTree.js +9 -8
- package/cjs/components/history/HistoryTree/styles.d.ts +1 -1
- package/cjs/components/history/ProfileBandHistory/ProfileBandHistory.js +5 -31
- package/cjs/components/history/hooks/useHistoryDiff.js +8 -32
- package/cjs/components/history/hooks/useHistorySlice.js +4 -28
- package/cjs/components/index.d.ts +6 -6
- package/cjs/components/index.js +6 -6
- package/cjs/components/workflow/cards/GenericWorkflowTaskCard/styles.d.ts +1 -1
- package/cjs/components/workflow/cards/PotentialMatchTaskCard/PotentialMatchTaskCard.js +4 -5
- package/cjs/components/workflow/components/AttributesChanges/AttributesChanges.js +2 -3
- package/cjs/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js +2 -3
- package/cjs/components/workflow/components/WorkflowComments/styles.d.ts +1 -1
- package/cjs/components/workflow/hooks/useWorkflowActions.js +6 -11
- package/cjs/components/workflow/hooks/useWorkflowAssignee.js +3 -8
- package/cjs/components/workflow/hooks/useWorkflowCheckPermission.js +24 -25
- package/cjs/components/workflow/hooks/useWorkflowComments.js +4 -8
- package/cjs/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.js +6 -30
- package/cjs/components/workflow/hooks/useWorkflowDefinitions.js +5 -9
- package/cjs/components/workflow/hooks/useWorkflowDueDate.js +4 -8
- package/cjs/components/workflow/hooks/useWorkflowPriority.js +4 -5
- package/cjs/components/workflow/hooks/useWorkflowProcessInstance.js +6 -10
- package/cjs/components/workflow/hooks/useWorkflowTasks.js +11 -15
- package/cjs/contexts/ActionsHookContext/index.d.ts +4 -1
- package/cjs/contexts/CollaborationContext/index.js +2 -2
- package/cjs/contexts/MdmModuleContext/context.d.ts +243 -0
- package/cjs/contexts/MdmModuleContext/context.js +7 -0
- package/cjs/contexts/MdmModuleContext/hooks.d.ts +139 -0
- package/cjs/contexts/MdmModuleContext/hooks.js +206 -0
- package/cjs/contexts/MdmModuleContext/index.d.ts +3 -0
- package/cjs/contexts/MdmModuleContext/index.js +70 -0
- package/cjs/contexts/MdmModuleContext/provider.d.ts +10 -0
- package/cjs/contexts/MdmModuleContext/provider.js +15 -0
- package/cjs/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.d.ts +22 -0
- package/cjs/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.js +132 -0
- package/cjs/contexts/MdmModuleContext/selectors/entity.d.ts +3 -0
- package/cjs/contexts/MdmModuleContext/selectors/entity.js +11 -0
- package/cjs/contexts/MdmModuleContext/selectors.d.ts +3 -0
- package/cjs/contexts/MdmModuleContext/selectors.js +11 -0
- package/cjs/contexts/index.d.ts +1 -0
- package/cjs/contexts/index.js +15 -0
- package/cjs/hooks/useAPI/useAPI.js +14 -40
- package/cjs/hooks/useCollaboration.js +5 -9
- package/cjs/hooks/useCommentsEntitiesMap.js +2 -6
- package/cjs/hooks/useConfigPermissions.js +3 -7
- package/cjs/hooks/useCustomScripts.js +13 -39
- package/cjs/hooks/useEditableConnection.js +2 -6
- package/cjs/hooks/useMarkAsNotMatchRequest.js +4 -8
- package/cjs/hooks/useMatchesLoader.js +5 -9
- package/cjs/hooks/useMergeAllRequest.js +16 -30
- package/cjs/hooks/useReadableSearchState.js +8 -32
- package/cjs/hooks/useRelationsLoader.js +9 -33
- package/cjs/hooks/useScrollToAttributeError/styles.d.ts +1 -1
- package/cjs/hooks/useUsers.js +4 -5
- package/esm/components/AttributeGroupIcon/AttributeGroupIcon.js +2 -3
- package/esm/components/AttributeSelector/AttributeSelector.js +2 -3
- package/esm/components/AttributesFiltersBuilder/AttributesFiltersBuilder.js +5 -6
- package/esm/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.d.ts +13 -19
- package/esm/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.js +7 -18
- package/esm/components/BasicView/BasicView.d.ts +1 -1
- package/esm/components/CollaborationItem/Comment/Comment.js +2 -4
- package/esm/components/CollaborationItem/CommentTarget/CommentTarget.js +3 -5
- package/esm/components/CollaborationItem/CommentTarget/styles.d.ts +1 -1
- package/esm/components/CollaborationItem/RepliedComment/RepliedComment.js +2 -4
- package/esm/components/CollaborationItem/SendMessageArea/SendMessageArea.js +2 -4
- package/esm/components/ColoredSourceIcon/ColoredSourceIcon.js +2 -4
- package/esm/components/ConnectionEditor/ConnectionEditor.js +3 -6
- package/esm/components/DataTenantBadge/DataTenantBadge.js +6 -4
- package/esm/components/DataTypeValue/DataTypeValue.js +4 -5
- package/esm/components/EntityAvatar/EntityAvatar.js +4 -5
- package/esm/components/EntityTypeBadge/EntityTypeBadge.js +4 -6
- package/esm/components/EntityTypeIcon/EntityTypeIcon.js +2 -3
- package/esm/components/EntityUriLink/EntityUriLink.js +5 -7
- package/esm/components/ErrorPopup/ErrorPopup.d.ts +13 -8
- package/esm/components/ErrorPopup/ErrorPopup.js +23 -18
- package/esm/components/ErrorPopup/styles.d.ts +1 -1
- package/esm/components/HierarchyNodeTitle/HierarchyNodeTitle.js +5 -7
- package/esm/components/ImageAttributesGallery/ImageAttributesGallery.js +2 -3
- package/esm/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.d.ts +0 -5
- package/esm/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.js +6 -7
- package/esm/components/ImageDetailsView/MetaInfo/MetaInfo.js +3 -4
- package/esm/components/ImageDetailsView/MetaInfoList/MetaInfoItem/styles.d.ts +1 -1
- package/esm/components/ImageDetailsView/MetaInfoList/MetaInfoList.js +3 -4
- package/esm/components/ImageDetailsView/hooks/useEditMetaInfo.js +4 -11
- package/esm/components/MatchRulesBlock/SimpleMatchRules/styles.d.ts +1 -1
- package/esm/components/MatchRulesSelector/MatchRulesSelector.d.ts +1 -4
- package/esm/components/MatchRulesSelector/MatchRulesSelector.js +2 -4
- package/esm/components/ModeSwitcher/styles.d.ts +1 -1
- package/esm/components/PivotingUriLink/PivotingUriLink.js +2 -4
- package/esm/components/Popper/Popper.d.ts +1 -1
- package/esm/components/PotentialMatchReviewCard/styles.d.ts +1 -1
- package/esm/components/ProfileBand/ProfileBand.js +3 -4
- package/esm/components/ProfileBandNavigation/ProfileBandNavigationWidget.d.ts +1 -1
- package/esm/components/ProfileBandNavigation/hooks/useSearchNavigation.js +20 -32
- package/esm/components/ProfileBandNavigation/hooks/useSearchNavigationVisibility.js +4 -5
- package/esm/components/ProfilesList/ProfilesList.d.ts +2 -3
- package/esm/components/ProfilesList/ProfilesList.js +3 -1
- package/esm/components/RelationEditor/RelationEditor.js +49 -36
- package/esm/components/RelevanceScoreBadge/RelevanceScoreBadge.js +3 -4
- package/esm/components/SelectAttributesList/SelectAttributesList.js +2 -3
- package/esm/components/SmallIconButton/SmallIconButton.d.ts +1 -1
- package/esm/components/SmallIconButton/index.d.ts +1 -1
- package/esm/components/SourceIcon/SourceIcon.js +2 -3
- package/esm/components/SourceSystemsSelector/SourceSystemsSelector.js +2 -3
- package/esm/components/TenantLabel/TenantLabel.js +3 -4
- package/esm/components/TenantsDropDownSelector/TenantsDropDownSelector.js +3 -4
- package/esm/components/UploadImageDialog/TargetBox/styles.d.ts +1 -1
- package/esm/components/UploadImageDialog/UploadImageDialog.js +4 -5
- package/esm/components/UserSelector/UserSelector.js +3 -4
- package/esm/components/activityLog/ActivityExportButton/ActivityExportButton.js +6 -7
- package/esm/components/activityLog/ActivityFilterEditor/ActivityFilterEditor.js +2 -3
- package/esm/components/activityLog/ActivityFilterEditor/EntityChangedSelectors.js +2 -3
- package/esm/components/activityLog/ActivityFilterEditor/SourceSelector.js +3 -4
- package/esm/components/activityLog/ActivityLogFilter/ActivityLogFilter.d.ts +1 -1
- package/esm/components/activityLog/ActivityLogFilter/ActivityLogFilter.js +5 -3
- package/esm/components/activityLog/activities/GroupActivity.js +2 -3
- package/esm/components/activityLog/activities/RelationObject/styles.d.ts +1 -1
- package/esm/components/activityLog/activities/SearchActivity.js +6 -7
- package/esm/components/activityLog/activities/fields/DeltaField.js +7 -8
- package/esm/components/activityLog/activities/fields/commonStyles.d.ts +1 -1
- package/esm/components/activityLog/activities/records/EntityRecord.js +8 -9
- package/esm/components/attributes/AttributesView/AttributesView.d.ts +2 -2
- package/esm/components/attributes/AttributesView/AttributesView.js +10 -6
- package/esm/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +1 -1
- package/esm/components/attributes/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
- package/esm/components/attributes/ImageAttributesLine/ImageAttributesLine.js +9 -10
- package/esm/components/attributes/OvIcon/OvIcon.d.ts +1 -1
- package/esm/components/attributes/OvIcon/OvIcon.js +5 -7
- package/esm/components/attributes/PivotingAttributes/PivotingTooltip.js +4 -6
- package/esm/components/attributes/PivotingAttributes/PivotingTooltipContent.js +3 -4
- package/esm/components/attributes/PivotingAttributes/styles.d.ts +1 -1
- package/esm/components/attributes/editMode/AttributesFactory/AttributesFactory.js +1 -1
- package/esm/components/attributes/editMode/AttributesPager/AttributeRenderer.d.ts +7 -2
- package/esm/components/attributes/editMode/AttributesPager/AttributesPager.d.ts +2 -38
- package/esm/components/attributes/editMode/AttributesPager/AttributesPager.js +12 -4
- package/esm/components/attributes/editMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
- package/esm/components/attributes/editMode/AttributesPager/index.d.ts +2 -39
- package/esm/components/attributes/editMode/AttributesPager/index.js +2 -19
- package/esm/components/attributes/editMode/AttributesPager/styles.d.ts +1 -1
- package/esm/components/attributes/editMode/AttributesPager/types.d.ts +21 -0
- package/esm/components/attributes/editMode/AttributesView/AttributesView.d.ts +1 -1
- package/esm/components/attributes/editMode/AttributesView/AttributesView.js +11 -13
- package/esm/components/attributes/editMode/EntityCreator/EntityCreator.d.ts +9 -24
- package/esm/components/attributes/editMode/EntityCreator/EntityCreator.js +7 -15
- package/esm/components/attributes/editMode/EntitySelector/EntitySelector.js +1 -1
- package/esm/components/attributes/editMode/EntitySelector/components/SingleValue.js +4 -7
- package/esm/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
- package/esm/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.js +8 -10
- package/esm/components/attributes/editMode/MoreAttributesButton/useMoreAttributesItems.js +2 -3
- package/esm/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.js +18 -17
- package/esm/components/attributes/editMode/Roles/Roles.js +4 -5
- package/esm/components/attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor.js +5 -10
- package/esm/components/attributes/editMode/SimpleAttributeEditor/useAutopopulationContextValue.js +7 -7
- package/esm/components/attributes/editMode/Tags/Tags.js +3 -4
- package/esm/components/attributes/inline/ReferenceAttribute/ReferenceAttribute.js +4 -6
- package/esm/components/attributes/inline/common/SourceItem.js +3 -5
- package/esm/components/attributes/readMode/AttributesList/AttributesList.js +1 -1
- package/esm/components/attributes/readMode/AttributesPager/AttributesPager.d.ts +1 -3
- package/esm/components/attributes/readMode/AttributesPager/AttributesPager.js +7 -2
- package/esm/components/attributes/readMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
- package/esm/components/attributes/readMode/AttributesPager/MultiLineRenderer.d.ts +1 -2
- package/esm/components/attributes/readMode/AttributesPager/styles.d.ts +1 -1
- package/esm/components/attributes/readMode/AttributesView/AttributesView.d.ts +2 -2
- package/esm/components/attributes/readMode/AttributesView/AttributesView.js +4 -5
- package/esm/components/attributes/readMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
- package/esm/components/attributes/readMode/ReferenceAttribute/ReferenceAttribute.js +4 -6
- package/esm/components/attributes/readMode/SpecialAttributes/Roles/Role.js +2 -3
- package/esm/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +3 -5
- package/esm/components/attributes/types/attributesView.d.ts +2 -7
- package/esm/components/crosswalks/AttributesTable/AddAttributesButton/AddAttributesButton.js +2 -3
- package/esm/components/crosswalks/AttributesTable/AttributesTable.js +2 -3
- package/esm/components/crosswalks/AttributesTable/cell-renderers/RuleTypeInfoButton.js +21 -17
- package/esm/components/crosswalks/AttributesTable/cell-renderers/WinnerSourcesRenderer.js +2 -4
- package/esm/components/crosswalks/CrosswalkAttributes/CrosswalkAttributes.js +9 -10
- package/esm/components/crosswalks/CrosswalkDragLayer/CrosswalkDragPreview.js +3 -4
- package/esm/components/crosswalks/CrosswalkRow/CrosswalkRow.js +12 -13
- package/esm/components/crosswalks/DummyCrosswalkRow/DummyCrosswalkRow.js +3 -4
- package/esm/components/editors/DataTypeValueEditor/useEditorContext.d.ts +3 -3
- package/esm/components/editors/DataTypeValueEditor/useEditorContext.js +10 -13
- package/esm/components/editors/DateRangeEditor/DateRangeEditor.d.ts +3 -3
- package/esm/components/editors/TypeaheadEditor/TypeaheadEditor.js +1 -1
- package/esm/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
- package/esm/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
- package/esm/components/history/HistoryMenuButton/HistoryMenuButton.js +5 -9
- package/esm/components/history/HistoryTree/HistoryTree.js +9 -8
- package/esm/components/history/HistoryTree/styles.d.ts +1 -1
- package/esm/components/history/ProfileBandHistory/ProfileBandHistory.js +5 -8
- package/esm/components/history/hooks/useHistoryDiff.js +8 -9
- package/esm/components/history/hooks/useHistorySlice.js +4 -5
- package/esm/components/index.d.ts +6 -6
- package/esm/components/index.js +6 -6
- package/esm/components/workflow/cards/GenericWorkflowTaskCard/styles.d.ts +1 -1
- package/esm/components/workflow/cards/PotentialMatchTaskCard/PotentialMatchTaskCard.js +4 -5
- package/esm/components/workflow/components/AttributesChanges/AttributesChanges.js +2 -3
- package/esm/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js +2 -3
- package/esm/components/workflow/components/WorkflowComments/styles.d.ts +1 -1
- package/esm/components/workflow/hooks/useWorkflowActions.js +5 -7
- package/esm/components/workflow/hooks/useWorkflowAssignee.js +4 -6
- package/esm/components/workflow/hooks/useWorkflowCheckPermission.js +24 -22
- package/esm/components/workflow/hooks/useWorkflowComments.js +4 -5
- package/esm/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.js +7 -8
- package/esm/components/workflow/hooks/useWorkflowDefinitions.js +5 -6
- package/esm/components/workflow/hooks/useWorkflowDueDate.js +4 -5
- package/esm/components/workflow/hooks/useWorkflowPriority.js +4 -5
- package/esm/components/workflow/hooks/useWorkflowProcessInstance.js +6 -7
- package/esm/components/workflow/hooks/useWorkflowTasks.js +11 -12
- package/esm/contexts/ActionsHookContext/index.d.ts +4 -1
- package/esm/contexts/CollaborationContext/index.js +1 -1
- package/esm/contexts/MdmModuleContext/context.d.ts +243 -0
- package/esm/contexts/MdmModuleContext/context.js +4 -0
- package/esm/contexts/MdmModuleContext/hooks.d.ts +139 -0
- package/esm/contexts/MdmModuleContext/hooks.js +139 -0
- package/esm/contexts/MdmModuleContext/index.d.ts +3 -0
- package/esm/contexts/MdmModuleContext/index.js +2 -0
- package/esm/contexts/MdmModuleContext/provider.d.ts +10 -0
- package/esm/contexts/MdmModuleContext/provider.js +8 -0
- package/esm/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.d.ts +22 -0
- package/esm/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.js +123 -0
- package/esm/contexts/MdmModuleContext/selectors/entity.d.ts +3 -0
- package/esm/contexts/MdmModuleContext/selectors/entity.js +6 -0
- package/esm/contexts/MdmModuleContext/selectors.d.ts +3 -0
- package/esm/contexts/MdmModuleContext/selectors.js +6 -0
- package/esm/contexts/index.d.ts +1 -0
- package/esm/contexts/index.js +1 -0
- package/esm/hooks/useAPI/useAPI.js +15 -18
- package/esm/hooks/useCollaboration.js +5 -6
- package/esm/hooks/useCommentsEntitiesMap.js +2 -3
- package/esm/hooks/useConfigPermissions.js +3 -4
- package/esm/hooks/useCustomScripts.js +14 -17
- package/esm/hooks/useEditableConnection.js +2 -3
- package/esm/hooks/useMarkAsNotMatchRequest.js +4 -5
- package/esm/hooks/useMatchesLoader.js +5 -6
- package/esm/hooks/useMergeAllRequest.js +16 -7
- package/esm/hooks/useReadableSearchState.js +8 -9
- package/esm/hooks/useRelationsLoader.js +9 -10
- package/esm/hooks/useScrollToAttributeError/styles.d.ts +1 -1
- package/esm/hooks/useUsers.js +4 -5
- package/package.json +3 -4
- package/cjs/components/ProfileBandNavigation/helpers/index.d.ts +0 -7
- package/cjs/components/ProfileBandNavigation/helpers/index.js +0 -70
- package/cjs/components/ProfileBandNavigation/types/index.d.ts +0 -15
- package/cjs/components/ProfileBandNavigation/types/index.js +0 -2
- package/cjs/components/ProfilesList/index.d.ts +0 -27
- package/cjs/components/ProfilesList/index.js +0 -16
- package/cjs/components/RelationEditor/index.d.ts +0 -6
- package/cjs/components/RelationEditor/index.js +0 -50
- package/cjs/components/attributes/AttributesView/index.d.ts +0 -7
- package/cjs/components/attributes/AttributesView/index.js +0 -15
- package/cjs/components/attributes/editMode/AttributesView/index.d.ts +0 -23
- package/cjs/components/attributes/editMode/AttributesView/index.js +0 -14
- package/cjs/components/attributes/editMode/EntityCreator/index.d.ts +0 -25
- package/cjs/components/attributes/editMode/EntityCreator/index.js +0 -42
- package/cjs/components/attributes/editMode/ReferenceAttribute/index.d.ts +0 -4
- package/cjs/components/attributes/editMode/ReferenceAttribute/index.js +0 -48
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.d.ts +0 -2
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.js +0 -34
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.d.ts +0 -1
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.js +0 -19
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.d.ts +0 -1
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.js +0 -20
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.d.ts +0 -5
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.js +0 -79
- package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/types.d.ts +0 -11
- package/cjs/components/attributes/readMode/AttributesPager/index.d.ts +0 -28
- package/cjs/components/attributes/readMode/AttributesPager/index.js +0 -43
- package/cjs/components/attributes/readMode/AttributesView/index.d.ts +0 -23
- package/cjs/components/attributes/readMode/AttributesView/index.js +0 -14
- package/cjs/test-utils/store-utils.d.ts +0 -78
- package/cjs/test-utils/store-utils.js +0 -19
- package/esm/components/ProfileBandNavigation/helpers/index.d.ts +0 -7
- package/esm/components/ProfileBandNavigation/helpers/index.js +0 -66
- package/esm/components/ProfileBandNavigation/types/index.d.ts +0 -15
- package/esm/components/ProfileBandNavigation/types/index.js +0 -1
- package/esm/components/ProfilesList/index.d.ts +0 -27
- package/esm/components/ProfilesList/index.js +0 -10
- package/esm/components/RelationEditor/index.d.ts +0 -6
- package/esm/components/RelationEditor/index.js +0 -21
- package/esm/components/attributes/AttributesView/index.d.ts +0 -7
- package/esm/components/attributes/AttributesView/index.js +0 -9
- package/esm/components/attributes/editMode/AttributesView/index.d.ts +0 -23
- package/esm/components/attributes/editMode/AttributesView/index.js +0 -8
- package/esm/components/attributes/editMode/EntityCreator/index.d.ts +0 -25
- package/esm/components/attributes/editMode/EntityCreator/index.js +0 -13
- package/esm/components/attributes/editMode/ReferenceAttribute/index.d.ts +0 -4
- package/esm/components/attributes/editMode/ReferenceAttribute/index.js +0 -19
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.d.ts +0 -2
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.js +0 -27
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.d.ts +0 -1
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.js +0 -15
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.d.ts +0 -1
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.js +0 -13
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.d.ts +0 -5
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.js +0 -72
- package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/types.d.ts +0 -11
- package/esm/components/attributes/readMode/AttributesPager/index.d.ts +0 -28
- package/esm/components/attributes/readMode/AttributesPager/index.js +0 -14
- package/esm/components/attributes/readMode/AttributesView/index.d.ts +0 -23
- package/esm/components/attributes/readMode/AttributesView/index.js +0 -8
- package/esm/test-utils/store-utils.d.ts +0 -78
- package/esm/test-utils/store-utils.js +0 -12
- /package/cjs/components/attributes/editMode/{SimpleAttributeEditor/selectors → AttributesPager}/types.js +0 -0
- /package/esm/components/attributes/editMode/{SimpleAttributeEditor/selectors → AttributesPager}/types.js +0 -0
|
@@ -4,15 +4,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var react_1 = __importDefault(require("react"));
|
|
7
|
-
var react_redux_1 = require("react-redux");
|
|
8
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
9
7
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
10
8
|
var AvatarWithFallback_1 = __importDefault(require("../AvatarWithFallback/AvatarWithFallback"));
|
|
9
|
+
var contexts_1 = require("../../contexts");
|
|
11
10
|
var styles_1 = require("./styles");
|
|
12
11
|
var AttributeGroupIcon = function (_a) {
|
|
13
12
|
var group = _a.group, metadata = _a.metadata;
|
|
14
13
|
var styles = (0, styles_1.useStyles)();
|
|
15
|
-
var absoluteImagePath = (0,
|
|
14
|
+
var absoluteImagePath = (0, contexts_1.useMdmAbsoluteImagePath)();
|
|
16
15
|
var entityTypeGraphIcon = (0, mdm_sdk_1.getEntityTypeGraphIcon)(metadata, { type: group.id });
|
|
17
16
|
var absoluteImageUrl = (0, mdm_sdk_1.getAbsoluteImageUrl)(absoluteImagePath, entityTypeGraphIcon);
|
|
18
17
|
return react_1.default.createElement(AvatarWithFallback_1.default, { className: styles.icon, icon: absoluteImageUrl, avatarText: group.title[0] });
|
|
@@ -52,19 +52,18 @@ var react_1 = __importStar(require("react"));
|
|
|
52
52
|
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
53
53
|
var classnames_1 = __importDefault(require("classnames"));
|
|
54
54
|
var ramda_1 = require("ramda");
|
|
55
|
-
var react_redux_1 = require("react-redux");
|
|
56
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
57
55
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
58
56
|
var Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
59
57
|
var MultiSelect_1 = __importDefault(require("../ReactSelect/MultiSelect"));
|
|
60
58
|
var MultiValue_1 = __importDefault(require("../ReactSelect/commonComponents/MultiValue"));
|
|
61
59
|
var DropdownIndicatorWithIconButton_1 = __importDefault(require("../commonReactSelectComponents/DropdownIndicatorWithIconButton"));
|
|
62
60
|
var AttributeListItem_1 = __importDefault(require("../AttributeListItem/AttributeListItem"));
|
|
61
|
+
var contexts_1 = require("../../contexts");
|
|
63
62
|
var styles_1 = require("./styles");
|
|
64
63
|
var AttributeSelector = function (_a) {
|
|
65
64
|
var entityType = _a.entityType, selectedAttributes = _a.selectedAttributes, className = _a.className, onChange = _a.onChange, title = _a.title, disableUnderline = _a.disableUnderline, _b = _a.menuPlacement, menuPlacement = _b === void 0 ? 'bottom' : _b;
|
|
66
|
-
var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
|
|
67
65
|
var styles = (0, styles_1.useStyles)();
|
|
66
|
+
var metadata = (0, contexts_1.useMdmMetadata)();
|
|
68
67
|
var prepareItems = (0, react_1.useCallback)(function (data, level, prevLabel) {
|
|
69
68
|
if (level === void 0) { level = 0; }
|
|
70
69
|
if (prevLabel === void 0) { prevLabel = ''; }
|
|
@@ -36,9 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
};
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
38
|
var react_1 = __importStar(require("react"));
|
|
39
|
-
var react_redux_1 = require("react-redux");
|
|
40
39
|
var ramda_1 = require("ramda");
|
|
41
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
42
40
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
43
41
|
var helpers_1 = require("./helpers");
|
|
44
42
|
var FilterSelector_1 = __importDefault(require("./components/FilterSelector/FilterSelector"));
|
|
@@ -46,20 +44,21 @@ var RowActions_1 = __importDefault(require("./components/RowActions/RowActions")
|
|
|
46
44
|
var QueryBuilderRowsGroup_1 = __importDefault(require("../QueryBuilderRowsGroup/QueryBuilderRowsGroup"));
|
|
47
45
|
var AttributeSelector_1 = __importDefault(require("./components/AttributeSelector/AttributeSelector"));
|
|
48
46
|
var ValuesEditor_1 = __importDefault(require("./components/ValuesEditor/ValuesEditor"));
|
|
47
|
+
var contexts_1 = require("../../contexts");
|
|
49
48
|
var styles_1 = require("./styles");
|
|
50
49
|
var EMPTY_FILTER = { fieldName: null, filter: null, values: [] };
|
|
51
50
|
var Stub = function () { return null; };
|
|
52
51
|
var AttributesFiltersBuilder = function (_a) {
|
|
53
52
|
var attributeTypes = _a.attributeTypes, filters = _a.filters, onChange = _a.onChange, _b = _a.components, components = _b === void 0 ? {} : _b;
|
|
54
53
|
var CustomValuesEditor = components.ValuesEditor, CustomFilterSelector = components.FilterSelector;
|
|
55
|
-
var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
|
|
56
|
-
var entityType = (0, mdm_sdk_1.getEntityType)(metadata, (0, helpers_1.getEntityTypeFromAttrTypes)(attributeTypes));
|
|
57
54
|
var _c = (0, styles_1.useStyles)(), attrSelector = _c.attrSelector, filterSelector = _c.filterSelector, actionContainer = _c.actionContainer;
|
|
58
55
|
var actualFilters = (0, react_1.useRef)(filters);
|
|
59
|
-
actualFilters.current = filters;
|
|
60
56
|
var attributeFilterRef = (0, react_1.useRef)(null);
|
|
61
57
|
var lastAttributesCountRef = (0, react_1.useRef)(null);
|
|
62
58
|
var attributesCountRef = (0, react_1.useRef)(null);
|
|
59
|
+
var metadata = (0, contexts_1.useMdmMetadata)();
|
|
60
|
+
var entityType = (0, mdm_sdk_1.getEntityType)(metadata, (0, helpers_1.getEntityTypeFromAttrTypes)(attributeTypes));
|
|
61
|
+
actualFilters.current = filters;
|
|
63
62
|
var rowClasses = (0, react_1.useMemo)(function () { return ({
|
|
64
63
|
attributeSelectorContainer: attrSelector,
|
|
65
64
|
filterSelectorContainer: filterSelector,
|
|
@@ -1,20 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DataTypeDefinition, PrimitiveValue, SimpleAttributeValue } from '@reltio/mdm-sdk';
|
|
3
|
+
type FilterValue = SimpleAttributeValue | PrimitiveValue;
|
|
4
|
+
type Props = {
|
|
5
|
+
filterOption: {
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
};
|
|
9
|
+
filterValue: FilterValue | FilterValue[];
|
|
10
|
+
onDelete: () => void;
|
|
11
|
+
dataTypeDefinition: DataTypeDefinition;
|
|
12
|
+
};
|
|
13
|
+
declare const FilterChip: ({ filterOption, filterValue, onDelete, dataTypeDefinition }: Props) => JSX.Element;
|
|
1
14
|
export default FilterChip;
|
|
2
|
-
declare function FilterChip({ filterOption, filterValue, onDelete, dataTypeDefinition }: {
|
|
3
|
-
filterOption: any;
|
|
4
|
-
filterValue: any;
|
|
5
|
-
onDelete: any;
|
|
6
|
-
dataTypeDefinition: any;
|
|
7
|
-
}): JSX.Element;
|
|
8
|
-
declare namespace FilterChip {
|
|
9
|
-
namespace propTypes {
|
|
10
|
-
export { FilterValueType as filterValue };
|
|
11
|
-
export const filterOption: PropTypes.Requireable<PropTypes.InferProps<{
|
|
12
|
-
value: PropTypes.Requireable<string>;
|
|
13
|
-
label: PropTypes.Requireable<string>;
|
|
14
|
-
}>>;
|
|
15
|
-
export const onDelete: PropTypes.Requireable<(...args: any[]) => any>;
|
|
16
|
-
export const dataTypeDefinition: PropTypes.Requireable<object>;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
import { FilterValueType } from '@reltio/mdm-sdk';
|
|
20
|
-
import PropTypes from 'prop-types';
|
|
@@ -4,21 +4,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var Chip_1 = __importDefault(require("@mui/material/Chip"));
|
|
7
|
-
var prop_types_1 = __importDefault(require("prop-types"));
|
|
8
7
|
var react_1 = __importDefault(require("react"));
|
|
9
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
10
8
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
11
|
-
var react_redux_1 = require("react-redux");
|
|
12
|
-
var styles_1 = require("./styles");
|
|
13
9
|
var ExpandedValueTooltip_1 = __importDefault(require("../../../ExpandedValueTooltip/ExpandedValueTooltip"));
|
|
10
|
+
var contexts_1 = require("../../../../contexts");
|
|
11
|
+
var styles_1 = require("./styles");
|
|
14
12
|
var FilterChip = function (_a) {
|
|
15
13
|
var filterOption = _a.filterOption, filterValue = _a.filterValue, onDelete = _a.onDelete, dataTypeDefinition = _a.dataTypeDefinition;
|
|
14
|
+
var styles = (0, styles_1.useStyles)();
|
|
15
|
+
var attributePresentations = (0, contexts_1.useMdmAttributePresentations)();
|
|
16
|
+
var dateMask = (0, contexts_1.useMdmDateMask)();
|
|
17
|
+
var dateTimeMask = (0, contexts_1.useMdmDateTimeMask)();
|
|
16
18
|
var canFilterAcceptValues = (0, mdm_sdk_1.checkIfOptionHasValues)(filterOption.value);
|
|
17
19
|
var optionLabel = filterOption.label + (canFilterAcceptValues ? ': ' : '');
|
|
18
|
-
var styles = (0, styles_1.useStyles)();
|
|
19
|
-
var attributePresentations = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getAttributePresentations);
|
|
20
|
-
var dateMask = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getDateMask);
|
|
21
|
-
var dateTimeMask = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getDateTimeMask);
|
|
22
20
|
var formatValue = (0, mdm_sdk_1.formatDataTypeValue)({ attributePresentations: attributePresentations, dataTypeDefinition: dataTypeDefinition, dateMask: dateMask, dateTimeMask: dateTimeMask });
|
|
23
21
|
var convertedValue = (0, mdm_sdk_1.mapFilterValue)(formatValue, filterValue);
|
|
24
22
|
var filterLabel = canFilterAcceptValues ? (0, mdm_sdk_1.getFilterValueLabel)(filterOption.value, convertedValue) : '';
|
|
@@ -30,13 +28,4 @@ var FilterChip = function (_a) {
|
|
|
30
28
|
label: styles['filter-chip__label']
|
|
31
29
|
}, onDelete: onDelete }));
|
|
32
30
|
};
|
|
33
|
-
FilterChip.propTypes = {
|
|
34
|
-
filterValue: mdm_sdk_1.FilterValueType,
|
|
35
|
-
filterOption: prop_types_1.default.shape({
|
|
36
|
-
value: prop_types_1.default.string,
|
|
37
|
-
label: prop_types_1.default.string
|
|
38
|
-
}),
|
|
39
|
-
onDelete: prop_types_1.default.func,
|
|
40
|
-
dataTypeDefinition: prop_types_1.default.object
|
|
41
|
-
};
|
|
42
31
|
exports.default = FilterChip;
|
|
@@ -8,5 +8,5 @@ declare const BasicView: React.ForwardRefExoticComponent<Pick<{
|
|
|
8
8
|
variant?: import("@mui/types").OverridableStringUnion<"elevation" | "outlined", import("@mui/material/Paper").PaperPropsVariantOverrides>;
|
|
9
9
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
10
10
|
ref?: React.Ref<HTMLDivElement>;
|
|
11
|
-
}, "children" | "square" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "elevation" | "variant">, "
|
|
11
|
+
}, "children" | "square" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "elevation" | "variant">, "id" | "hidden" | "title" | "key" | "children" | "defaultValue" | "prefix" | "results" | "slot" | "color" | "translate" | "square" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "lang" | "role" | "tabIndex" | "elevation" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "security" | "unselectable" | "inputMode" | "is" | "variant"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
export default BasicView;
|
|
@@ -28,13 +28,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.Comment = void 0;
|
|
30
30
|
var react_1 = __importStar(require("react"));
|
|
31
|
-
var react_redux_1 = require("react-redux");
|
|
32
31
|
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
33
32
|
var Link_1 = __importDefault(require("@mui/material/Link"));
|
|
34
33
|
var Box_1 = __importDefault(require("@mui/material/Box"));
|
|
35
34
|
var Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
36
35
|
var MoreVert_1 = __importDefault(require("@mui/icons-material/MoreVert"));
|
|
37
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
38
36
|
var DropDownMenuButton_1 = __importDefault(require("../../DropDownMenuButton/DropDownMenuButton"));
|
|
39
37
|
var SmallIconButton_1 = require("../../SmallIconButton");
|
|
40
38
|
var CommentTarget_1 = require("../CommentTarget/CommentTarget");
|
|
@@ -49,7 +47,7 @@ var Comment = function (_a) {
|
|
|
49
47
|
var onReply = _a.onReply, className = _a.className, uri = _a.uri, comment = _a.comment, relatedObjectUris = _a.relatedObjectUris, objectType = _a.objectType;
|
|
50
48
|
var styles = (0, styles_1.useStyles)();
|
|
51
49
|
var inputRef = (0, react_1.useRef)();
|
|
52
|
-
var username = (0,
|
|
50
|
+
var username = (0, contexts_1.useMdmUsername)();
|
|
53
51
|
var commentId = comment.commentId, createdBy = comment.createdBy, createdTime = comment.createdTime, status = comment.status;
|
|
54
52
|
var isResolved = status === 'resolved';
|
|
55
53
|
var canChangeComment = createdBy === username;
|
|
@@ -39,11 +39,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
40
|
exports.CommentTarget = void 0;
|
|
41
41
|
var react_1 = __importStar(require("react"));
|
|
42
|
-
var react_redux_1 = require("react-redux");
|
|
43
42
|
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
44
43
|
var classnames_1 = __importDefault(require("classnames"));
|
|
45
44
|
var ramda_1 = require("ramda");
|
|
46
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
47
45
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
48
46
|
var mdm_sdk_2 = require("@reltio/mdm-sdk");
|
|
49
47
|
var Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
@@ -55,9 +53,9 @@ var styles_1 = require("./styles");
|
|
|
55
53
|
var CommentTarget = function (_a) {
|
|
56
54
|
var comment = _a.comment, className = _a.className;
|
|
57
55
|
var styles = (0, styles_1.useStyles)();
|
|
58
|
-
var entity = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getEntity);
|
|
59
|
-
var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
|
|
60
56
|
var entitiesMap = (0, react_1.useContext)(contexts_1.EntitiesMapContext);
|
|
57
|
+
var metadata = (0, contexts_1.useMdmMetadata)();
|
|
58
|
+
var entity = (0, contexts_1.useMdmEntity)();
|
|
61
59
|
var getContent = function () {
|
|
62
60
|
var _a;
|
|
63
61
|
switch (comment.objectType) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"label" | "
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"label" | "link" | "title">;
|
|
@@ -28,10 +28,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.RepliedComment = void 0;
|
|
30
30
|
var react_1 = __importStar(require("react"));
|
|
31
|
-
var react_redux_1 = require("react-redux");
|
|
32
31
|
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
33
32
|
var classnames_1 = __importDefault(require("classnames"));
|
|
34
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
35
33
|
var Box_1 = __importDefault(require("@mui/material/Box"));
|
|
36
34
|
var MoreVert_1 = __importDefault(require("@mui/icons-material/MoreVert"));
|
|
37
35
|
var Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
@@ -47,8 +45,8 @@ var styles_1 = require("./styles");
|
|
|
47
45
|
var RepliedComment = function (_a) {
|
|
48
46
|
var className = _a.className, reply = _a.reply, uri = _a.uri, comment = _a.comment, popperRef = _a.popperRef;
|
|
49
47
|
var inputRef = (0, react_1.useRef)();
|
|
48
|
+
var username = (0, contexts_1.useMdmUsername)();
|
|
50
49
|
var createdBy = reply.createdBy, action = reply.action, createdTime = reply.createdTime;
|
|
51
|
-
var username = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getUserName);
|
|
52
50
|
var canChangeReply = createdBy === username && comment.status !== 'resolved';
|
|
53
51
|
var _b = (0, react_1.useContext)(contexts_1.CollaborationContext), deleteReply = _b.deleteReply, updateCommentState = _b.updateCommentState, getCommentState = _b.getCommentState;
|
|
54
52
|
var commentUri = (0, utils_1.createEditedReplyUri)(comment, reply);
|
|
@@ -30,9 +30,7 @@ exports.SendMessageArea = void 0;
|
|
|
30
30
|
var react_1 = __importStar(require("react"));
|
|
31
31
|
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
32
32
|
var classnames_1 = __importDefault(require("classnames"));
|
|
33
|
-
var react_redux_1 = require("react-redux");
|
|
34
33
|
var ramda_1 = require("ramda");
|
|
35
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
36
34
|
var Box_1 = __importDefault(require("@mui/material/Box"));
|
|
37
35
|
var Button_1 = __importDefault(require("@mui/material/Button"));
|
|
38
36
|
var TextFieldWithMentions_1 = require("../TextFieldWithMentions/TextFieldWithMentions");
|
|
@@ -74,8 +72,8 @@ var SendMessageArea = function (_a) {
|
|
|
74
72
|
var isEditing = isEditingComment || isEditingReply;
|
|
75
73
|
var styles = (0, styles_1.useStyles)({ isEditing: isEditing });
|
|
76
74
|
var _b = (0, react_1.useState)(false), focused = _b[0], setFocused = _b[1];
|
|
77
|
-
var username = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getUserName);
|
|
78
75
|
var _c = (0, react_1.useContext)(contexts_1.CollaborationContext), createReply = _c.createReply, createComment = _c.createComment, sending = _c.sending, editComment = _c.editComment, editReply = _c.editReply, getCommentState = _c.getCommentState, updateCommentState = _c.updateCommentState, clearCommentState = _c.clearCommentState;
|
|
76
|
+
var username = (0, contexts_1.useMdmUsername)();
|
|
79
77
|
var commentUri = (0, utils_1.createCommentUri)({ comment: comment, reply: reply, isEditingComment: isEditingComment, isEditingReply: isEditingReply });
|
|
80
78
|
var defaultCommentState = getDefaultCommentState({ comment: comment, reply: reply, isEditingComment: isEditingComment, isEditingReply: isEditingReply });
|
|
81
79
|
var _d = getCommentState(uri, commentUri), _e = _d.value, value = _e === void 0 ? defaultCommentState.value : _e, _f = _d.plainTextValue, plainTextValue = _f === void 0 ? defaultCommentState.plainTextValue : _f, _g = _d.mentions, mentions = _g === void 0 ? defaultCommentState.mentions : _g;
|
|
@@ -28,8 +28,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
var react_1 = __importStar(require("react"));
|
|
30
30
|
var classnames_1 = __importDefault(require("classnames"));
|
|
31
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
32
|
-
var react_redux_1 = require("react-redux");
|
|
33
31
|
var Tooltip_1 = __importDefault(require("@mui/material/Tooltip"));
|
|
34
32
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
35
33
|
var contexts_1 = require("../../contexts");
|
|
@@ -39,7 +37,7 @@ var ColoredSourceIcon = function (_a) {
|
|
|
39
37
|
var className = _a.className, crosswalk = _a.crosswalk, _b = _a.showTooltip, showTooltip = _b === void 0 ? true : _b;
|
|
40
38
|
var styles = (0, styles_1.useStyles)();
|
|
41
39
|
var color = (0, contexts_1.useCrosswalkColor)(crosswalk);
|
|
42
|
-
var metadata = (0,
|
|
40
|
+
var metadata = (0, contexts_1.useMdmMetadata)() || {};
|
|
43
41
|
var content = (react_1.default.createElement("div", { className: (0, classnames_1.default)(styles.itemContainer, className), style: { background: color } },
|
|
44
42
|
react_1.default.createElement(SourceIcon_1.default, { sourceType: crosswalk.type, className: styles.item })));
|
|
45
43
|
return showTooltip ? react_1.default.createElement(Tooltip_1.default, { title: (0, mdm_sdk_1.getSourceSystemLabel)(metadata, crosswalk.type) }, content) : content;
|
|
@@ -41,8 +41,6 @@ exports.ConnectionEditor = void 0;
|
|
|
41
41
|
var styles_1 = require("./styles");
|
|
42
42
|
var hooks_1 = require("../../hooks");
|
|
43
43
|
var react_1 = __importStar(require("react"));
|
|
44
|
-
var react_redux_1 = require("react-redux");
|
|
45
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
46
44
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
47
45
|
var AttributesList_1 = __importDefault(require("../attributes/editMode/AttributesList"));
|
|
48
46
|
var classnames_1 = __importDefault(require("classnames"));
|
|
@@ -50,6 +48,7 @@ var ramda_1 = require("ramda");
|
|
|
50
48
|
var ConnectionRelationTypeSelector_1 = __importDefault(require("../ConnectionRelationTypeSelector/ConnectionRelationTypeSelector"));
|
|
51
49
|
var ErrorWrapper_1 = __importDefault(require("../ErrorWrapper/ErrorWrapper"));
|
|
52
50
|
var EntitySelector_1 = __importDefault(require("../attributes/editMode/EntitySelector/EntitySelector"));
|
|
51
|
+
var contexts_1 = require("../../contexts");
|
|
53
52
|
var ConnectionEditor = function (_a) {
|
|
54
53
|
var _b;
|
|
55
54
|
var connection = _a.connection, relatedEntity = _a.relatedEntity, _c = _a.inRelationTypes, inRelationTypes = _c === void 0 ? [] : _c, _d = _a.outRelationTypes, outRelationTypes = _d === void 0 ? [] : _d, showEmptyEditors = _a.showEmptyEditors, entityErrorMessage = _a.entityErrorMessage, onChangeAttribute = _a.onChangeAttribute, onRemoveAttribute = _a.onRemoveAttribute, onAddAttributes = _a.onAddAttributes, onChangeRelationType = _a.onChangeRelationType, onChangeEntity = _a.onChangeEntity;
|
|
@@ -57,7 +56,8 @@ var ConnectionEditor = function (_a) {
|
|
|
57
56
|
var relation = connection.relation, entity = connection.entity;
|
|
58
57
|
var _e = relation || {}, attributes = _e.attributes, relationUri = _e.uri, _f = _e.type, relationTypeUri = _f === void 0 ? '' : _f, direction = _e.direction;
|
|
59
58
|
var isRelationTypeSelected = Boolean(relationTypeUri);
|
|
60
|
-
var metadata = (0,
|
|
59
|
+
var metadata = (0, contexts_1.useMdmMetadata)();
|
|
60
|
+
var globalSearchRequestOptions = (0, contexts_1.useMdmGlobalSearchRequestOptions)(['ovOnly']);
|
|
61
61
|
var attributeListEntity = (0, react_1.useMemo)(function () {
|
|
62
62
|
return relation && __assign({ attributes: attributes }, (0, mdm_sdk_1.getActivenessAttributes)(relation));
|
|
63
63
|
}, [relation, attributes]);
|
|
@@ -69,9 +69,6 @@ var ConnectionEditor = function (_a) {
|
|
|
69
69
|
])
|
|
70
70
|
: (0, ramda_1.uniq)((0, mdm_sdk_1.getSuitableEntityTypeUrisForRelationTypes)(true, metadata, outRelationTypes).concat((0, mdm_sdk_1.getSuitableEntityTypeUrisForRelationTypes)(false, metadata, inRelationTypes)));
|
|
71
71
|
}, [isRelationTypeSelected, relationTypeUri, metadata, inRelationTypes, outRelationTypes]);
|
|
72
|
-
var globalSearchRequestOptions = (0, react_redux_1.useSelector)(function (state) {
|
|
73
|
-
return mdm_module_1.default.selectors.getGlobalSearchRequestOptions(state, ['ovOnly']);
|
|
74
|
-
});
|
|
75
72
|
var selectorCompatibleRelation = (0, react_1.useMemo)(function () {
|
|
76
73
|
return relation && {
|
|
77
74
|
relationType: relation.type,
|
|
@@ -6,22 +6,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.DataTenantBadge = void 0;
|
|
7
7
|
var react_1 = __importDefault(require("react"));
|
|
8
8
|
var classnames_1 = __importDefault(require("classnames"));
|
|
9
|
-
var react_redux_1 = require("react-redux");
|
|
10
9
|
var ramda_1 = require("ramda");
|
|
11
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
12
10
|
var Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
13
11
|
var Tooltip_1 = __importDefault(require("@mui/material/Tooltip"));
|
|
12
|
+
var contexts_1 = require("../../contexts");
|
|
14
13
|
var styles_1 = require("./styles");
|
|
15
14
|
var addDataTenantPrefix = function (label) { return "DT:".concat((0, ramda_1.slice)(0, 1, label)); };
|
|
16
15
|
var DataTenantBadge = function (_a) {
|
|
17
16
|
var dataTenantId = _a.dataTenantId, className = _a.className;
|
|
18
17
|
var styles = (0, styles_1.useStyles)({ dataTenantId: dataTenantId });
|
|
19
|
-
var dataTenants = (0,
|
|
18
|
+
var dataTenants = (0, contexts_1.useMdmDataTenants)();
|
|
20
19
|
var dataTenant = (0, ramda_1.pipe)((0, ramda_1.defaultTo)([]), (0, ramda_1.find)((0, ramda_1.propEq)('id', dataTenantId)))(dataTenants);
|
|
21
20
|
var label = (0, ramda_1.pipe)((0, ramda_1.propOr)('', 'label'), ramda_1.toUpper, (0, ramda_1.ifElse)((0, ramda_1.startsWith)('DT:'), (0, ramda_1.slice)(0, 4), addDataTenantPrefix))(dataTenant);
|
|
22
21
|
var content = (react_1.default.createElement("div", { className: (0, classnames_1.default)(styles.root, className) },
|
|
23
22
|
react_1.default.createElement(Typography_1.default, { variant: "body2" }, label)));
|
|
24
23
|
var showTooltip = !!(dataTenant === null || dataTenant === void 0 ? void 0 : dataTenant.label);
|
|
25
|
-
|
|
24
|
+
if (!showTooltip) {
|
|
25
|
+
return content;
|
|
26
|
+
}
|
|
27
|
+
return (react_1.default.createElement(Tooltip_1.default, { "data-reltio-id": "reltio-data-tenant-bage-tooltip", title: dataTenant.label }, content));
|
|
26
28
|
};
|
|
27
29
|
exports.DataTenantBadge = DataTenantBadge;
|
|
@@ -6,18 +6,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
var react_1 = __importDefault(require("react"));
|
|
7
7
|
var prop_types_1 = __importDefault(require("prop-types"));
|
|
8
8
|
var moment_1 = __importDefault(require("moment"));
|
|
9
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
10
9
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
11
|
-
var react_redux_1 = require("react-redux");
|
|
12
10
|
var Link_1 = __importDefault(require("@mui/material/Link"));
|
|
13
11
|
var SearchHighlighter_1 = __importDefault(require("../SearchHighlighter/SearchHighlighter"));
|
|
12
|
+
var contexts_1 = require("../../contexts");
|
|
14
13
|
var DataTypeValue = function (_a) {
|
|
15
14
|
var _b = _a.value, value = _b === void 0 ? null : _b, dataTypeDefinition = _a.dataTypeDefinition, _c = _a.rich, rich = _c === void 0 ? true : _c;
|
|
16
|
-
var attributePresentations = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getAttributePresentations);
|
|
17
15
|
var localeDateFormat = moment_1.default.localeData().longDateFormat('L');
|
|
18
16
|
var localeTimeFormat = moment_1.default.localeData().longDateFormat('LTS');
|
|
19
|
-
var
|
|
20
|
-
var
|
|
17
|
+
var attributePresentations = (0, contexts_1.useMdmAttributePresentations)();
|
|
18
|
+
var dateMask = (0, contexts_1.useMdmDateMask)() || localeDateFormat;
|
|
19
|
+
var dateTimeMask = (0, contexts_1.useMdmDateTimeMask)() || localeDateFormat + ' ' + localeTimeFormat;
|
|
21
20
|
var formattedValue = (0, mdm_sdk_1.formatDataTypeValue)({ attributePresentations: attributePresentations, dataTypeDefinition: dataTypeDefinition, dateMask: dateMask, dateTimeMask: dateTimeMask }, value);
|
|
22
21
|
return rich && (0, mdm_sdk_1.isAttributeValueLink)(dataTypeDefinition, value) ? (react_1.default.createElement(Link_1.default, { target: "_blank", href: (0, mdm_sdk_1.addProtocolToLink)(formattedValue), underline: "none" },
|
|
23
22
|
react_1.default.createElement(SearchHighlighter_1.default, { text: formattedValue }))) : (react_1.default.createElement(SearchHighlighter_1.default, { text: formattedValue }));
|
|
@@ -4,16 +4,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var react_1 = __importDefault(require("react"));
|
|
7
|
-
var react_redux_1 = require("react-redux");
|
|
8
7
|
var classnames_1 = __importDefault(require("classnames"));
|
|
8
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
9
9
|
var Avatar_1 = __importDefault(require("@mui/material/Avatar"));
|
|
10
10
|
var no_photo_svg_1 = require("./no-photo.svg");
|
|
11
|
-
var
|
|
12
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
11
|
+
var contexts_1 = require("../../contexts");
|
|
13
12
|
var EntityAvatar = function (_a) {
|
|
14
13
|
var entity = _a.entity, avatarClassName = _a.avatarClassName, imageClassName = _a.imageClassName;
|
|
15
|
-
var metadata = (0,
|
|
16
|
-
var absoluteImagePath = (0,
|
|
14
|
+
var metadata = (0, contexts_1.useMdmMetadata)();
|
|
15
|
+
var absoluteImagePath = (0, contexts_1.useMdmAbsoluteImagePath)() || '';
|
|
17
16
|
var entityImageSource = (0, mdm_sdk_1.getEntityImage)(metadata, absoluteImagePath, entity);
|
|
18
17
|
var fallbackImage = (0, mdm_sdk_1.getAbsoluteImageUrl)(absoluteImagePath, (0, mdm_sdk_1.getEntityTypeImage)(metadata, entity.type));
|
|
19
18
|
var onImageLoadFail = function (e) {
|
|
@@ -4,19 +4,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var react_1 = __importDefault(require("react"));
|
|
7
|
-
var react_redux_1 = require("react-redux");
|
|
8
7
|
var classnames_1 = __importDefault(require("classnames"));
|
|
9
|
-
var Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
10
8
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
11
|
-
var
|
|
9
|
+
var Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
12
10
|
var ExpandedValueTooltip_1 = __importDefault(require("../ExpandedValueTooltip/ExpandedValueTooltip"));
|
|
11
|
+
var contexts_1 = require("../../contexts");
|
|
13
12
|
var styles_1 = __importDefault(require("./styles"));
|
|
14
13
|
var EntityTypeBadge = function (_a) {
|
|
15
14
|
var entity = _a.entity, className = _a.className, _b = _a.size, size = _b === void 0 ? 'small' : _b;
|
|
16
15
|
var styles = (0, styles_1.default)();
|
|
17
|
-
var metadata = (0,
|
|
18
|
-
var
|
|
19
|
-
var entityType = (0, mdm_sdk_1.getEntityType)(metadata, entityTypeUri);
|
|
16
|
+
var metadata = (0, contexts_1.useMdmMetadata)();
|
|
17
|
+
var entityType = (0, mdm_sdk_1.getEntityType)(metadata, entity.type);
|
|
20
18
|
var color = entityType ? (0, mdm_sdk_1.getPropWithInheritance)(metadata, entityType, 'typeColor') : null;
|
|
21
19
|
var entityTypeColor = color || mdm_sdk_1.theme.palette.primary.main;
|
|
22
20
|
var entityTypeLabel = (0, mdm_sdk_1.getEntityTypeLabel)(metadata, entity);
|
|
@@ -15,12 +15,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
var react_1 = __importDefault(require("react"));
|
|
18
|
-
var react_redux_1 = require("react-redux");
|
|
19
|
-
var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
|
|
20
18
|
var EntityTypeIcon_1 = __importDefault(require("react-components/dist/EntityTypeIcon/EntityTypeIcon"));
|
|
19
|
+
var contexts_1 = require("../../contexts");
|
|
21
20
|
var ensureSlashEnding = function (str) { return (str.endsWith('/') ? str : str + '/'); };
|
|
22
21
|
var EntityTypeIcon = function (props) {
|
|
23
|
-
var absoluteImagePath = (0,
|
|
22
|
+
var absoluteImagePath = (0, contexts_1.useMdmAbsoluteImagePath)() || '';
|
|
24
23
|
return react_1.default.createElement(EntityTypeIcon_1.default, __assign({}, props, { storagePath: ensureSlashEnding(absoluteImagePath) }));
|
|
25
24
|
};
|
|
26
25
|
exports.default = EntityTypeIcon;
|
|
@@ -46,19 +46,17 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
48
|
var react_1 = __importStar(require("react"));
|
|
49
|
-
var react_redux_1 = require("react-redux");
|
|
50
49
|
var contexts_1 = require("../../contexts");
|
|
51
|
-
var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
|
|
52
50
|
var EntityUriLink = (0, react_1.forwardRef)(function (_a, ref) {
|
|
53
51
|
var value = _a.value, children = _a.children, screen = _a.screen, className = _a.className, otherProps = __rest(_a, ["value", "children", "screen", "className"]);
|
|
54
|
-
var dispatch = (0, react_redux_1.useDispatch)();
|
|
55
52
|
var viewId = (0, react_1.useContext)(contexts_1.ViewIdContext);
|
|
56
53
|
var generateEntityUrl = (0, react_1.useContext)(contexts_1.UrlGeneratorsContext).generateEntityUrl;
|
|
57
|
-
var
|
|
54
|
+
var openEntity = (0, contexts_1.useMdmAction)('openEntity');
|
|
55
|
+
var uiPath = (0, contexts_1.useMdmUiPath)();
|
|
58
56
|
var generateEntityUrlByUri = function (uri) { return generateEntityUrl({ uiPath: uiPath, uri: uri, screen: screen }); };
|
|
59
57
|
var onClick = (0, react_1.useCallback)(function () {
|
|
60
|
-
|
|
61
|
-
}, [viewId, value,
|
|
58
|
+
openEntity({ uri: value, viewId: viewId, screen: screen });
|
|
59
|
+
}, [viewId, value, openEntity, screen]);
|
|
62
60
|
return (react_1.default.createElement("a", __assign({ ref: ref, href: generateEntityUrlByUri(value), onClick: function (e) {
|
|
63
61
|
onClick();
|
|
64
62
|
e.stopPropagation();
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type AddError = (error: {
|
|
3
|
+
title: string;
|
|
4
|
+
message: string;
|
|
5
|
+
}) => void;
|
|
6
|
+
type Props = {
|
|
7
|
+
showErrorFromStore?: boolean;
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
};
|
|
10
|
+
declare const ErrorPopup: {
|
|
11
|
+
({ showErrorFromStore, ...props }: Props): JSX.Element;
|
|
12
|
+
addError: AddError;
|
|
13
|
+
};
|
|
1
14
|
export default ErrorPopup;
|
|
2
|
-
declare function ErrorPopup(props: any): JSX.Element;
|
|
3
|
-
declare namespace ErrorPopup {
|
|
4
|
-
namespace propTypes {
|
|
5
|
-
const showErrorFromStore: PropTypes.Requireable<boolean>;
|
|
6
|
-
}
|
|
7
|
-
const addError: any;
|
|
8
|
-
}
|
|
9
|
-
import PropTypes from 'prop-types';
|
|
@@ -33,39 +33,44 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
33
33
|
__setModuleDefault(result, mod);
|
|
34
34
|
return result;
|
|
35
35
|
};
|
|
36
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
|
+
var t = {};
|
|
38
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
39
|
+
t[p] = s[p];
|
|
40
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
41
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
43
|
+
t[p[i]] = s[p[i]];
|
|
44
|
+
}
|
|
45
|
+
return t;
|
|
46
|
+
};
|
|
36
47
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
48
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
49
|
};
|
|
39
50
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
51
|
var react_1 = __importStar(require("react"));
|
|
41
|
-
var react_redux_1 = require("react-redux");
|
|
42
|
-
var prop_types_1 = __importDefault(require("prop-types"));
|
|
43
52
|
var classnames_1 = __importDefault(require("classnames"));
|
|
44
53
|
var ramda_1 = require("ramda");
|
|
45
54
|
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
46
55
|
var Portal_1 = __importDefault(require("@mui/material/Portal"));
|
|
47
56
|
var ErrorPopup_1 = __importDefault(require("react-components/dist/ErrorPopup/ErrorPopup"));
|
|
48
|
-
var
|
|
57
|
+
var contexts_1 = require("../../contexts");
|
|
49
58
|
var styles_1 = require("./styles");
|
|
50
|
-
var
|
|
59
|
+
var addError = ErrorPopup_1.default.addError;
|
|
60
|
+
var ErrorPopup = function (_a) {
|
|
61
|
+
var showErrorFromStore = _a.showErrorFromStore, props = __rest(_a, ["showErrorFromStore"]);
|
|
51
62
|
var styles = (0, styles_1.useStyles)();
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
-
var
|
|
63
|
+
var errorSet = (0, contexts_1.useMdmAction)('errorSet');
|
|
64
|
+
var autoCloseInterval = (0, contexts_1.useMdmAutoCloseInterval)();
|
|
65
|
+
var uiError = (0, contexts_1.useMdmUiError)();
|
|
55
66
|
(0, react_1.useEffect)(function () {
|
|
56
|
-
if (uiError &&
|
|
57
|
-
ErrorPopup.addError({
|
|
58
|
-
|
|
59
|
-
message: uiError
|
|
60
|
-
});
|
|
61
|
-
dispatch(mdm_module_1.ui.actions.errorSet(null));
|
|
67
|
+
if (uiError && showErrorFromStore) {
|
|
68
|
+
ErrorPopup.addError({ title: ui_i18n_1.default.text('Error'), message: uiError });
|
|
69
|
+
errorSet(null);
|
|
62
70
|
}
|
|
63
|
-
}, [
|
|
71
|
+
}, [errorSet, uiError, showErrorFromStore]);
|
|
64
72
|
return (react_1.default.createElement(Portal_1.default, { container: document.body },
|
|
65
73
|
react_1.default.createElement(ErrorPopup_1.default, __assign({ classes: { errorBlock: (0, classnames_1.default)(styles.errorBlock, (0, ramda_1.path)(['classes', 'errorBlock'], props)) }, autoCloseInterval: autoCloseInterval }, props))));
|
|
66
74
|
};
|
|
67
|
-
ErrorPopup.
|
|
68
|
-
showErrorFromStore: prop_types_1.default.bool
|
|
69
|
-
};
|
|
70
|
-
ErrorPopup.addError = ErrorPopup_1.default.addError;
|
|
75
|
+
ErrorPopup.addError = addError;
|
|
71
76
|
exports.default = ErrorPopup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"errorBlock">;
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"errorBlock">;
|
|
@@ -29,8 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.HierarchyNodeTitle = void 0;
|
|
30
30
|
var react_1 = __importStar(require("react"));
|
|
31
31
|
var classnames_1 = __importDefault(require("classnames"));
|
|
32
|
-
var react_redux_1 = require("react-redux");
|
|
33
|
-
var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
|
|
34
32
|
var Link_1 = __importDefault(require("../Link/Link"));
|
|
35
33
|
var Popper_1 = __importDefault(require("../Popper/Popper"));
|
|
36
34
|
var ProfileCard_1 = __importDefault(require("../ProfileCard/ProfileCard"));
|
|
@@ -41,15 +39,15 @@ var HierarchyNodeTitle = function (_a) {
|
|
|
41
39
|
var _b;
|
|
42
40
|
var title = _a.title, isSelected = _a.isSelected, entityUri = _a.entityUri, viewId = _a.viewId, anchorEl = _a.anchorEl, _c = _a.withEntityDetails, withEntityDetails = _c === void 0 ? true : _c;
|
|
43
41
|
var styles = (0, styles_1.useStyles)();
|
|
44
|
-
var dispatch = (0, react_redux_1.useDispatch)();
|
|
45
|
-
var uiPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getUIPath);
|
|
46
42
|
var generateEntityUrl = (0, react_1.useContext)(contexts_1.UrlGeneratorsContext).generateEntityUrl;
|
|
43
|
+
var openEntity = (0, contexts_1.useMdmAction)('openEntity');
|
|
44
|
+
var uiPath = (0, contexts_1.useMdmUiPath)();
|
|
47
45
|
var _d = (0, useEntityDetails_1.useEntityDetails)(entityUri), isLoading = _d.isLoading, entityDetails = _d.entityDetails, showEntityDetails = _d.showEntityDetails, hideEntityDetails = _d.hideEntityDetails;
|
|
48
46
|
var link = generateEntityUrl({ uiPath: uiPath, uri: entityUri });
|
|
49
47
|
var showPopper = Boolean(anchorEl) && (Boolean(entityDetails) || isLoading);
|
|
50
48
|
var handleClick = (0, react_1.useCallback)(function () {
|
|
51
|
-
|
|
52
|
-
}, [
|
|
49
|
+
openEntity({ uri: entityUri, viewId: viewId });
|
|
50
|
+
}, [openEntity, entityUri, viewId]);
|
|
53
51
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
54
52
|
react_1.default.createElement("span", { "data-reltio-id": "reltio-hierarchy-node-title", className: (0, classnames_1.default)(styles.link, (_b = {}, _b[styles.selected] = isSelected, _b)), onMouseEnter: withEntityDetails ? showEntityDetails : undefined, onMouseLeave: withEntityDetails ? hideEntityDetails : undefined },
|
|
55
53
|
react_1.default.createElement(Link_1.default, { to: link, onClick: handleClick }, title)),
|