@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.
Files changed (453) hide show
  1. package/cjs/components/AttributeGroupIcon/AttributeGroupIcon.js +2 -3
  2. package/cjs/components/AttributeSelector/AttributeSelector.js +2 -3
  3. package/cjs/components/AttributesFiltersBuilder/AttributesFiltersBuilder.js +4 -5
  4. package/cjs/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.d.ts +13 -19
  5. package/cjs/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.js +6 -17
  6. package/cjs/components/BasicView/BasicView.d.ts +1 -1
  7. package/cjs/components/CollaborationItem/Comment/Comment.js +1 -3
  8. package/cjs/components/CollaborationItem/CommentTarget/CommentTarget.js +2 -4
  9. package/cjs/components/CollaborationItem/CommentTarget/styles.d.ts +1 -1
  10. package/cjs/components/CollaborationItem/RepliedComment/RepliedComment.js +1 -3
  11. package/cjs/components/CollaborationItem/SendMessageArea/SendMessageArea.js +1 -3
  12. package/cjs/components/ColoredSourceIcon/ColoredSourceIcon.js +1 -3
  13. package/cjs/components/ConnectionEditor/ConnectionEditor.js +3 -6
  14. package/cjs/components/DataTenantBadge/DataTenantBadge.js +6 -4
  15. package/cjs/components/DataTypeValue/DataTypeValue.js +4 -5
  16. package/cjs/components/EntityAvatar/EntityAvatar.js +4 -5
  17. package/cjs/components/EntityTypeBadge/EntityTypeBadge.js +4 -6
  18. package/cjs/components/EntityTypeIcon/EntityTypeIcon.js +2 -3
  19. package/cjs/components/EntityUriLink/EntityUriLink.js +4 -6
  20. package/cjs/components/ErrorPopup/ErrorPopup.d.ts +13 -8
  21. package/cjs/components/ErrorPopup/ErrorPopup.js +23 -18
  22. package/cjs/components/ErrorPopup/styles.d.ts +1 -1
  23. package/cjs/components/HierarchyNodeTitle/HierarchyNodeTitle.js +4 -6
  24. package/cjs/components/ImageAttributesGallery/ImageAttributesGallery.js +2 -6
  25. package/cjs/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.d.ts +0 -5
  26. package/cjs/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.js +6 -7
  27. package/cjs/components/ImageDetailsView/MetaInfo/MetaInfo.js +3 -4
  28. package/cjs/components/ImageDetailsView/MetaInfoList/MetaInfoItem/styles.d.ts +1 -1
  29. package/cjs/components/ImageDetailsView/MetaInfoList/MetaInfoList.js +3 -4
  30. package/cjs/components/ImageDetailsView/hooks/useEditMetaInfo.js +3 -10
  31. package/cjs/components/MatchRulesBlock/SimpleMatchRules/styles.d.ts +1 -1
  32. package/cjs/components/MatchRulesSelector/MatchRulesSelector.d.ts +1 -4
  33. package/cjs/components/MatchRulesSelector/MatchRulesSelector.js +2 -4
  34. package/cjs/components/ModeSwitcher/styles.d.ts +1 -1
  35. package/cjs/components/PivotingUriLink/PivotingUriLink.js +1 -3
  36. package/cjs/components/Popper/Popper.d.ts +1 -1
  37. package/cjs/components/PotentialMatchReviewCard/styles.d.ts +1 -1
  38. package/cjs/components/ProfileBand/ProfileBand.js +3 -4
  39. package/cjs/components/ProfileBandNavigation/ProfileBandNavigationWidget.d.ts +1 -1
  40. package/cjs/components/ProfileBandNavigation/hooks/useSearchNavigation.js +19 -54
  41. package/cjs/components/ProfileBandNavigation/hooks/useSearchNavigationVisibility.js +4 -8
  42. package/cjs/components/ProfilesList/ProfilesList.d.ts +2 -3
  43. package/cjs/components/ProfilesList/ProfilesList.js +3 -1
  44. package/cjs/components/RelationEditor/RelationEditor.js +46 -33
  45. package/cjs/components/RelevanceScoreBadge/RelevanceScoreBadge.js +3 -4
  46. package/cjs/components/SelectAttributesList/SelectAttributesList.js +2 -3
  47. package/cjs/components/SmallIconButton/SmallIconButton.d.ts +1 -1
  48. package/cjs/components/SmallIconButton/index.d.ts +1 -1
  49. package/cjs/components/SourceIcon/SourceIcon.js +2 -3
  50. package/cjs/components/SourceSystemsSelector/SourceSystemsSelector.js +2 -3
  51. package/cjs/components/StepNavigation/ProgressButton.d.ts +12 -0
  52. package/cjs/components/StepNavigation/ProgressButton.js +41 -0
  53. package/cjs/components/StepNavigation/StepNavigation.d.ts +13 -0
  54. package/cjs/components/StepNavigation/StepNavigation.js +62 -0
  55. package/cjs/components/StepNavigation/styles.d.ts +2 -0
  56. package/cjs/components/StepNavigation/styles.js +44 -0
  57. package/cjs/components/TenantLabel/TenantLabel.d.ts +6 -0
  58. package/cjs/components/TenantLabel/TenantLabel.js +22 -0
  59. package/cjs/components/TenantLabel/styles.d.ts +1 -0
  60. package/cjs/components/TenantLabel/styles.js +22 -0
  61. package/cjs/components/TenantsDropDownSelector/TenantsDropDownSelector.js +3 -4
  62. package/cjs/components/UploadImageDialog/TargetBox/styles.d.ts +1 -1
  63. package/cjs/components/UploadImageDialog/UploadImageDialog.js +4 -5
  64. package/cjs/components/UserSelector/UserSelector.js +3 -4
  65. package/cjs/components/activityLog/ActivityExportButton/ActivityExportButton.js +6 -7
  66. package/cjs/components/activityLog/ActivityFilterEditor/ActivityFilterEditor.js +2 -3
  67. package/cjs/components/activityLog/ActivityFilterEditor/EntityChangedSelectors.js +2 -3
  68. package/cjs/components/activityLog/ActivityFilterEditor/SourceSelector.js +3 -4
  69. package/cjs/components/activityLog/ActivityLogFilter/ActivityLogFilter.d.ts +1 -1
  70. package/cjs/components/activityLog/ActivityLogFilter/ActivityLogFilter.js +5 -3
  71. package/cjs/components/activityLog/activities/GroupActivity.js +2 -3
  72. package/cjs/components/activityLog/activities/RelationObject/styles.d.ts +1 -1
  73. package/cjs/components/activityLog/activities/SearchActivity.js +6 -7
  74. package/cjs/components/activityLog/activities/fields/DeltaField.js +7 -8
  75. package/cjs/components/activityLog/activities/fields/commonStyles.d.ts +1 -1
  76. package/cjs/components/activityLog/activities/records/EntityRecord.js +8 -9
  77. package/cjs/components/attributes/AttributesView/AttributesView.d.ts +2 -2
  78. package/cjs/components/attributes/AttributesView/AttributesView.js +8 -4
  79. package/cjs/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +1 -1
  80. package/cjs/components/attributes/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  81. package/cjs/components/attributes/ImageAttributesLine/ImageAttributesLine.js +8 -9
  82. package/cjs/components/attributes/OvIcon/OvIcon.d.ts +1 -1
  83. package/cjs/components/attributes/OvIcon/OvIcon.js +4 -6
  84. package/cjs/components/attributes/PivotingAttributes/PivotingTooltip.js +3 -5
  85. package/cjs/components/attributes/PivotingAttributes/PivotingTooltipContent.js +3 -4
  86. package/cjs/components/attributes/PivotingAttributes/styles.d.ts +1 -1
  87. package/cjs/components/attributes/editMode/AttributesFactory/AttributesFactory.js +1 -1
  88. package/cjs/components/attributes/editMode/AttributesPager/AttributeRenderer.d.ts +7 -2
  89. package/cjs/components/attributes/editMode/AttributesPager/AttributesPager.d.ts +2 -38
  90. package/cjs/components/attributes/editMode/AttributesPager/AttributesPager.js +10 -2
  91. package/cjs/components/attributes/editMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
  92. package/cjs/components/attributes/editMode/AttributesPager/index.d.ts +2 -39
  93. package/cjs/components/attributes/editMode/AttributesPager/index.js +5 -44
  94. package/cjs/components/attributes/editMode/AttributesPager/styles.d.ts +1 -1
  95. package/cjs/components/attributes/editMode/AttributesPager/types.d.ts +21 -0
  96. package/cjs/components/attributes/editMode/AttributesView/AttributesView.d.ts +1 -1
  97. package/cjs/components/attributes/editMode/AttributesView/AttributesView.js +10 -12
  98. package/cjs/components/attributes/editMode/EntityCreator/EntityCreator.d.ts +9 -24
  99. package/cjs/components/attributes/editMode/EntityCreator/EntityCreator.js +7 -15
  100. package/cjs/components/attributes/editMode/EntitySelector/EntitySelector.js +1 -1
  101. package/cjs/components/attributes/editMode/EntitySelector/components/SingleValue.js +3 -6
  102. package/cjs/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  103. package/cjs/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.js +8 -10
  104. package/cjs/components/attributes/editMode/MoreAttributesButton/useMoreAttributesItems.js +2 -3
  105. package/cjs/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.js +16 -15
  106. package/cjs/components/attributes/editMode/Roles/Roles.js +4 -5
  107. package/cjs/components/attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor.js +4 -9
  108. package/cjs/components/attributes/editMode/SimpleAttributeEditor/useAutopopulationContextValue.js +7 -30
  109. package/cjs/components/attributes/editMode/Tags/Tags.js +3 -4
  110. package/cjs/components/attributes/inline/ReferenceAttribute/ReferenceAttribute.js +3 -5
  111. package/cjs/components/attributes/inline/common/SourceItem.js +2 -4
  112. package/cjs/components/attributes/readMode/AttributesList/AttributesList.js +1 -1
  113. package/cjs/components/attributes/readMode/AttributesPager/AttributesPager.d.ts +1 -3
  114. package/cjs/components/attributes/readMode/AttributesPager/AttributesPager.js +7 -2
  115. package/cjs/components/attributes/readMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
  116. package/cjs/components/attributes/readMode/AttributesPager/MultiLineRenderer.d.ts +1 -2
  117. package/cjs/components/attributes/readMode/AttributesPager/styles.d.ts +1 -1
  118. package/cjs/components/attributes/readMode/AttributesView/AttributesView.d.ts +2 -2
  119. package/cjs/components/attributes/readMode/AttributesView/AttributesView.js +3 -4
  120. package/cjs/components/attributes/readMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  121. package/cjs/components/attributes/readMode/ReferenceAttribute/ReferenceAttribute.js +2 -4
  122. package/cjs/components/attributes/readMode/SpecialAttributes/Roles/Role.js +2 -6
  123. package/cjs/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +2 -4
  124. package/cjs/components/attributes/types/attributesView.d.ts +2 -7
  125. package/cjs/components/crosswalks/AttributesTable/AddAttributesButton/AddAttributesButton.js +2 -3
  126. package/cjs/components/crosswalks/AttributesTable/AttributesTable.js +2 -3
  127. package/cjs/components/crosswalks/AttributesTable/cell-renderers/RuleTypeInfoButton.js +21 -17
  128. package/cjs/components/crosswalks/AttributesTable/cell-renderers/WinnerSourcesRenderer.js +1 -3
  129. package/cjs/components/crosswalks/CrosswalkAttributes/CrosswalkAttributes.js +9 -10
  130. package/cjs/components/crosswalks/CrosswalkDragLayer/CrosswalkDragPreview.js +3 -4
  131. package/cjs/components/crosswalks/CrosswalkRow/CrosswalkRow.js +11 -12
  132. package/cjs/components/crosswalks/DummyCrosswalkRow/DummyCrosswalkRow.js +3 -4
  133. package/cjs/components/editors/DataTypeValueEditor/useEditorContext.d.ts +3 -3
  134. package/cjs/components/editors/DataTypeValueEditor/useEditorContext.js +10 -36
  135. package/cjs/components/editors/DateRangeEditor/DateRangeEditor.d.ts +3 -3
  136. package/cjs/components/editors/TypeaheadEditor/TypeaheadEditor.js +1 -1
  137. package/cjs/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
  138. package/cjs/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
  139. package/cjs/components/history/HistoryMenuButton/HistoryMenuButton.js +5 -32
  140. package/cjs/components/history/HistoryTree/HistoryTree.js +9 -8
  141. package/cjs/components/history/HistoryTree/styles.d.ts +1 -1
  142. package/cjs/components/history/ProfileBandHistory/ProfileBandHistory.js +5 -31
  143. package/cjs/components/history/hooks/useHistoryDiff.js +8 -32
  144. package/cjs/components/history/hooks/useHistorySlice.js +4 -28
  145. package/cjs/components/index.d.ts +8 -6
  146. package/cjs/components/index.js +11 -6
  147. package/cjs/components/workflow/cards/GenericWorkflowTaskCard/styles.d.ts +1 -1
  148. package/cjs/components/workflow/cards/PotentialMatchTaskCard/PotentialMatchTaskCard.js +4 -5
  149. package/cjs/components/workflow/components/AttributesChanges/AttributesChanges.js +2 -3
  150. package/cjs/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js +2 -3
  151. package/cjs/components/workflow/components/WorkflowComments/styles.d.ts +1 -1
  152. package/cjs/components/workflow/hooks/useWorkflowActions.js +6 -11
  153. package/cjs/components/workflow/hooks/useWorkflowAssignee.js +3 -8
  154. package/cjs/components/workflow/hooks/useWorkflowCheckPermission.js +24 -25
  155. package/cjs/components/workflow/hooks/useWorkflowComments.js +4 -8
  156. package/cjs/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.js +6 -30
  157. package/cjs/components/workflow/hooks/useWorkflowDefinitions.js +5 -9
  158. package/cjs/components/workflow/hooks/useWorkflowDueDate.js +4 -8
  159. package/cjs/components/workflow/hooks/useWorkflowPriority.js +4 -5
  160. package/cjs/components/workflow/hooks/useWorkflowProcessInstance.js +6 -10
  161. package/cjs/components/workflow/hooks/useWorkflowTasks.js +11 -15
  162. package/cjs/contexts/ActionsHookContext/index.d.ts +4 -1
  163. package/cjs/contexts/CollaborationContext/index.js +2 -2
  164. package/cjs/contexts/MdmModuleContext/context.d.ts +243 -0
  165. package/cjs/contexts/MdmModuleContext/context.js +7 -0
  166. package/cjs/contexts/MdmModuleContext/hooks.d.ts +139 -0
  167. package/cjs/contexts/MdmModuleContext/hooks.js +206 -0
  168. package/cjs/contexts/MdmModuleContext/index.d.ts +3 -0
  169. package/cjs/contexts/MdmModuleContext/index.js +70 -0
  170. package/cjs/contexts/MdmModuleContext/provider.d.ts +10 -0
  171. package/cjs/contexts/MdmModuleContext/provider.js +15 -0
  172. package/cjs/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.d.ts +22 -0
  173. package/cjs/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.js +132 -0
  174. package/cjs/contexts/MdmModuleContext/selectors/entity.d.ts +3 -0
  175. package/cjs/contexts/MdmModuleContext/selectors/entity.js +11 -0
  176. package/cjs/contexts/MdmModuleContext/selectors.d.ts +3 -0
  177. package/cjs/contexts/MdmModuleContext/selectors.js +11 -0
  178. package/cjs/contexts/index.d.ts +1 -0
  179. package/cjs/contexts/index.js +15 -0
  180. package/cjs/hooks/useAPI/useAPI.js +14 -40
  181. package/cjs/hooks/useCollaboration.js +5 -9
  182. package/cjs/hooks/useCommentsEntitiesMap.js +2 -6
  183. package/cjs/hooks/useConfigPermissions.js +3 -7
  184. package/cjs/hooks/useCustomScripts.js +13 -39
  185. package/cjs/hooks/useEditableConnection.js +2 -6
  186. package/cjs/hooks/useMarkAsNotMatchRequest.js +4 -8
  187. package/cjs/hooks/useMatchesLoader.js +5 -9
  188. package/cjs/hooks/useMergeAllRequest.js +16 -30
  189. package/cjs/hooks/useReadableSearchState.js +8 -32
  190. package/cjs/hooks/useRelationsLoader.js +9 -33
  191. package/cjs/hooks/useScrollToAttributeError/styles.d.ts +1 -1
  192. package/cjs/hooks/useUsers.js +4 -5
  193. package/cjs/icons/Tenant.d.ts +3 -0
  194. package/cjs/icons/Tenant.js +22 -0
  195. package/esm/components/AttributeGroupIcon/AttributeGroupIcon.js +2 -3
  196. package/esm/components/AttributeSelector/AttributeSelector.js +2 -3
  197. package/esm/components/AttributesFiltersBuilder/AttributesFiltersBuilder.js +5 -6
  198. package/esm/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.d.ts +13 -19
  199. package/esm/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.js +7 -18
  200. package/esm/components/BasicView/BasicView.d.ts +1 -1
  201. package/esm/components/CollaborationItem/Comment/Comment.js +2 -4
  202. package/esm/components/CollaborationItem/CommentTarget/CommentTarget.js +3 -5
  203. package/esm/components/CollaborationItem/CommentTarget/styles.d.ts +1 -1
  204. package/esm/components/CollaborationItem/RepliedComment/RepliedComment.js +2 -4
  205. package/esm/components/CollaborationItem/SendMessageArea/SendMessageArea.js +2 -4
  206. package/esm/components/ColoredSourceIcon/ColoredSourceIcon.js +2 -4
  207. package/esm/components/ConnectionEditor/ConnectionEditor.js +3 -6
  208. package/esm/components/DataTenantBadge/DataTenantBadge.js +6 -4
  209. package/esm/components/DataTypeValue/DataTypeValue.js +4 -5
  210. package/esm/components/EntityAvatar/EntityAvatar.js +4 -5
  211. package/esm/components/EntityTypeBadge/EntityTypeBadge.js +4 -6
  212. package/esm/components/EntityTypeIcon/EntityTypeIcon.js +2 -3
  213. package/esm/components/EntityUriLink/EntityUriLink.js +5 -7
  214. package/esm/components/ErrorPopup/ErrorPopup.d.ts +13 -8
  215. package/esm/components/ErrorPopup/ErrorPopup.js +23 -18
  216. package/esm/components/ErrorPopup/styles.d.ts +1 -1
  217. package/esm/components/HierarchyNodeTitle/HierarchyNodeTitle.js +5 -7
  218. package/esm/components/ImageAttributesGallery/ImageAttributesGallery.js +2 -3
  219. package/esm/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.d.ts +0 -5
  220. package/esm/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.js +6 -7
  221. package/esm/components/ImageDetailsView/MetaInfo/MetaInfo.js +3 -4
  222. package/esm/components/ImageDetailsView/MetaInfoList/MetaInfoItem/styles.d.ts +1 -1
  223. package/esm/components/ImageDetailsView/MetaInfoList/MetaInfoList.js +3 -4
  224. package/esm/components/ImageDetailsView/hooks/useEditMetaInfo.js +4 -11
  225. package/esm/components/MatchRulesBlock/SimpleMatchRules/styles.d.ts +1 -1
  226. package/esm/components/MatchRulesSelector/MatchRulesSelector.d.ts +1 -4
  227. package/esm/components/MatchRulesSelector/MatchRulesSelector.js +2 -4
  228. package/esm/components/ModeSwitcher/styles.d.ts +1 -1
  229. package/esm/components/PivotingUriLink/PivotingUriLink.js +2 -4
  230. package/esm/components/Popper/Popper.d.ts +1 -1
  231. package/esm/components/PotentialMatchReviewCard/styles.d.ts +1 -1
  232. package/esm/components/ProfileBand/ProfileBand.js +3 -4
  233. package/esm/components/ProfileBandNavigation/ProfileBandNavigationWidget.d.ts +1 -1
  234. package/esm/components/ProfileBandNavigation/hooks/useSearchNavigation.js +20 -32
  235. package/esm/components/ProfileBandNavigation/hooks/useSearchNavigationVisibility.js +4 -5
  236. package/esm/components/ProfilesList/ProfilesList.d.ts +2 -3
  237. package/esm/components/ProfilesList/ProfilesList.js +3 -1
  238. package/esm/components/RelationEditor/RelationEditor.js +49 -36
  239. package/esm/components/RelevanceScoreBadge/RelevanceScoreBadge.js +3 -4
  240. package/esm/components/SelectAttributesList/SelectAttributesList.js +2 -3
  241. package/esm/components/SmallIconButton/SmallIconButton.d.ts +1 -1
  242. package/esm/components/SmallIconButton/index.d.ts +1 -1
  243. package/esm/components/SourceIcon/SourceIcon.js +2 -3
  244. package/esm/components/SourceSystemsSelector/SourceSystemsSelector.js +2 -3
  245. package/esm/components/StepNavigation/ProgressButton.d.ts +12 -0
  246. package/esm/components/StepNavigation/ProgressButton.js +36 -0
  247. package/esm/components/StepNavigation/StepNavigation.d.ts +13 -0
  248. package/esm/components/StepNavigation/StepNavigation.js +57 -0
  249. package/esm/components/StepNavigation/styles.d.ts +2 -0
  250. package/esm/components/StepNavigation/styles.js +41 -0
  251. package/esm/components/TenantLabel/TenantLabel.d.ts +6 -0
  252. package/esm/components/TenantLabel/TenantLabel.js +17 -0
  253. package/esm/components/TenantLabel/styles.d.ts +1 -0
  254. package/esm/components/TenantLabel/styles.js +19 -0
  255. package/esm/components/TenantsDropDownSelector/TenantsDropDownSelector.js +3 -4
  256. package/esm/components/UploadImageDialog/TargetBox/styles.d.ts +1 -1
  257. package/esm/components/UploadImageDialog/UploadImageDialog.js +4 -5
  258. package/esm/components/UserSelector/UserSelector.js +3 -4
  259. package/esm/components/activityLog/ActivityExportButton/ActivityExportButton.js +6 -7
  260. package/esm/components/activityLog/ActivityFilterEditor/ActivityFilterEditor.js +2 -3
  261. package/esm/components/activityLog/ActivityFilterEditor/EntityChangedSelectors.js +2 -3
  262. package/esm/components/activityLog/ActivityFilterEditor/SourceSelector.js +3 -4
  263. package/esm/components/activityLog/ActivityLogFilter/ActivityLogFilter.d.ts +1 -1
  264. package/esm/components/activityLog/ActivityLogFilter/ActivityLogFilter.js +5 -3
  265. package/esm/components/activityLog/activities/GroupActivity.js +2 -3
  266. package/esm/components/activityLog/activities/RelationObject/styles.d.ts +1 -1
  267. package/esm/components/activityLog/activities/SearchActivity.js +6 -7
  268. package/esm/components/activityLog/activities/fields/DeltaField.js +7 -8
  269. package/esm/components/activityLog/activities/fields/commonStyles.d.ts +1 -1
  270. package/esm/components/activityLog/activities/records/EntityRecord.js +8 -9
  271. package/esm/components/attributes/AttributesView/AttributesView.d.ts +2 -2
  272. package/esm/components/attributes/AttributesView/AttributesView.js +10 -6
  273. package/esm/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +1 -1
  274. package/esm/components/attributes/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  275. package/esm/components/attributes/ImageAttributesLine/ImageAttributesLine.js +9 -10
  276. package/esm/components/attributes/OvIcon/OvIcon.d.ts +1 -1
  277. package/esm/components/attributes/OvIcon/OvIcon.js +5 -7
  278. package/esm/components/attributes/PivotingAttributes/PivotingTooltip.js +4 -6
  279. package/esm/components/attributes/PivotingAttributes/PivotingTooltipContent.js +3 -4
  280. package/esm/components/attributes/PivotingAttributes/styles.d.ts +1 -1
  281. package/esm/components/attributes/editMode/AttributesFactory/AttributesFactory.js +1 -1
  282. package/esm/components/attributes/editMode/AttributesPager/AttributeRenderer.d.ts +7 -2
  283. package/esm/components/attributes/editMode/AttributesPager/AttributesPager.d.ts +2 -38
  284. package/esm/components/attributes/editMode/AttributesPager/AttributesPager.js +12 -4
  285. package/esm/components/attributes/editMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
  286. package/esm/components/attributes/editMode/AttributesPager/index.d.ts +2 -39
  287. package/esm/components/attributes/editMode/AttributesPager/index.js +2 -19
  288. package/esm/components/attributes/editMode/AttributesPager/styles.d.ts +1 -1
  289. package/esm/components/attributes/editMode/AttributesPager/types.d.ts +21 -0
  290. package/esm/components/attributes/editMode/AttributesView/AttributesView.d.ts +1 -1
  291. package/esm/components/attributes/editMode/AttributesView/AttributesView.js +11 -13
  292. package/esm/components/attributes/editMode/EntityCreator/EntityCreator.d.ts +9 -24
  293. package/esm/components/attributes/editMode/EntityCreator/EntityCreator.js +7 -15
  294. package/esm/components/attributes/editMode/EntitySelector/EntitySelector.js +1 -1
  295. package/esm/components/attributes/editMode/EntitySelector/components/SingleValue.js +4 -7
  296. package/esm/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  297. package/esm/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.js +8 -10
  298. package/esm/components/attributes/editMode/MoreAttributesButton/useMoreAttributesItems.js +2 -3
  299. package/esm/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.js +18 -17
  300. package/esm/components/attributes/editMode/Roles/Roles.js +4 -5
  301. package/esm/components/attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor.js +5 -10
  302. package/esm/components/attributes/editMode/SimpleAttributeEditor/useAutopopulationContextValue.js +7 -7
  303. package/esm/components/attributes/editMode/Tags/Tags.js +3 -4
  304. package/esm/components/attributes/inline/ReferenceAttribute/ReferenceAttribute.js +4 -6
  305. package/esm/components/attributes/inline/common/SourceItem.js +3 -5
  306. package/esm/components/attributes/readMode/AttributesList/AttributesList.js +1 -1
  307. package/esm/components/attributes/readMode/AttributesPager/AttributesPager.d.ts +1 -3
  308. package/esm/components/attributes/readMode/AttributesPager/AttributesPager.js +7 -2
  309. package/esm/components/attributes/readMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
  310. package/esm/components/attributes/readMode/AttributesPager/MultiLineRenderer.d.ts +1 -2
  311. package/esm/components/attributes/readMode/AttributesPager/styles.d.ts +1 -1
  312. package/esm/components/attributes/readMode/AttributesView/AttributesView.d.ts +2 -2
  313. package/esm/components/attributes/readMode/AttributesView/AttributesView.js +4 -5
  314. package/esm/components/attributes/readMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  315. package/esm/components/attributes/readMode/ReferenceAttribute/ReferenceAttribute.js +4 -6
  316. package/esm/components/attributes/readMode/SpecialAttributes/Roles/Role.js +2 -3
  317. package/esm/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +3 -5
  318. package/esm/components/attributes/types/attributesView.d.ts +2 -7
  319. package/esm/components/crosswalks/AttributesTable/AddAttributesButton/AddAttributesButton.js +2 -3
  320. package/esm/components/crosswalks/AttributesTable/AttributesTable.js +2 -3
  321. package/esm/components/crosswalks/AttributesTable/cell-renderers/RuleTypeInfoButton.js +21 -17
  322. package/esm/components/crosswalks/AttributesTable/cell-renderers/WinnerSourcesRenderer.js +2 -4
  323. package/esm/components/crosswalks/CrosswalkAttributes/CrosswalkAttributes.js +9 -10
  324. package/esm/components/crosswalks/CrosswalkDragLayer/CrosswalkDragPreview.js +3 -4
  325. package/esm/components/crosswalks/CrosswalkRow/CrosswalkRow.js +12 -13
  326. package/esm/components/crosswalks/DummyCrosswalkRow/DummyCrosswalkRow.js +3 -4
  327. package/esm/components/editors/DataTypeValueEditor/useEditorContext.d.ts +3 -3
  328. package/esm/components/editors/DataTypeValueEditor/useEditorContext.js +10 -13
  329. package/esm/components/editors/DateRangeEditor/DateRangeEditor.d.ts +3 -3
  330. package/esm/components/editors/TypeaheadEditor/TypeaheadEditor.js +1 -1
  331. package/esm/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
  332. package/esm/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
  333. package/esm/components/history/HistoryMenuButton/HistoryMenuButton.js +5 -9
  334. package/esm/components/history/HistoryTree/HistoryTree.js +9 -8
  335. package/esm/components/history/HistoryTree/styles.d.ts +1 -1
  336. package/esm/components/history/ProfileBandHistory/ProfileBandHistory.js +5 -8
  337. package/esm/components/history/hooks/useHistoryDiff.js +8 -9
  338. package/esm/components/history/hooks/useHistorySlice.js +4 -5
  339. package/esm/components/index.d.ts +8 -6
  340. package/esm/components/index.js +8 -6
  341. package/esm/components/workflow/cards/GenericWorkflowTaskCard/styles.d.ts +1 -1
  342. package/esm/components/workflow/cards/PotentialMatchTaskCard/PotentialMatchTaskCard.js +4 -5
  343. package/esm/components/workflow/components/AttributesChanges/AttributesChanges.js +2 -3
  344. package/esm/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js +2 -3
  345. package/esm/components/workflow/components/WorkflowComments/styles.d.ts +1 -1
  346. package/esm/components/workflow/hooks/useWorkflowActions.js +5 -7
  347. package/esm/components/workflow/hooks/useWorkflowAssignee.js +4 -6
  348. package/esm/components/workflow/hooks/useWorkflowCheckPermission.js +24 -22
  349. package/esm/components/workflow/hooks/useWorkflowComments.js +4 -5
  350. package/esm/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.js +7 -8
  351. package/esm/components/workflow/hooks/useWorkflowDefinitions.js +5 -6
  352. package/esm/components/workflow/hooks/useWorkflowDueDate.js +4 -5
  353. package/esm/components/workflow/hooks/useWorkflowPriority.js +4 -5
  354. package/esm/components/workflow/hooks/useWorkflowProcessInstance.js +6 -7
  355. package/esm/components/workflow/hooks/useWorkflowTasks.js +11 -12
  356. package/esm/contexts/ActionsHookContext/index.d.ts +4 -1
  357. package/esm/contexts/CollaborationContext/index.js +1 -1
  358. package/esm/contexts/MdmModuleContext/context.d.ts +243 -0
  359. package/esm/contexts/MdmModuleContext/context.js +4 -0
  360. package/esm/contexts/MdmModuleContext/hooks.d.ts +139 -0
  361. package/esm/contexts/MdmModuleContext/hooks.js +139 -0
  362. package/esm/contexts/MdmModuleContext/index.d.ts +3 -0
  363. package/esm/contexts/MdmModuleContext/index.js +2 -0
  364. package/esm/contexts/MdmModuleContext/provider.d.ts +10 -0
  365. package/esm/contexts/MdmModuleContext/provider.js +8 -0
  366. package/esm/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.d.ts +22 -0
  367. package/esm/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.js +123 -0
  368. package/esm/contexts/MdmModuleContext/selectors/entity.d.ts +3 -0
  369. package/esm/contexts/MdmModuleContext/selectors/entity.js +6 -0
  370. package/esm/contexts/MdmModuleContext/selectors.d.ts +3 -0
  371. package/esm/contexts/MdmModuleContext/selectors.js +6 -0
  372. package/esm/contexts/index.d.ts +1 -0
  373. package/esm/contexts/index.js +1 -0
  374. package/esm/hooks/useAPI/useAPI.js +15 -18
  375. package/esm/hooks/useCollaboration.js +5 -6
  376. package/esm/hooks/useCommentsEntitiesMap.js +2 -3
  377. package/esm/hooks/useConfigPermissions.js +3 -4
  378. package/esm/hooks/useCustomScripts.js +14 -17
  379. package/esm/hooks/useEditableConnection.js +2 -3
  380. package/esm/hooks/useMarkAsNotMatchRequest.js +4 -5
  381. package/esm/hooks/useMatchesLoader.js +5 -6
  382. package/esm/hooks/useMergeAllRequest.js +16 -7
  383. package/esm/hooks/useReadableSearchState.js +8 -9
  384. package/esm/hooks/useRelationsLoader.js +9 -10
  385. package/esm/hooks/useScrollToAttributeError/styles.d.ts +1 -1
  386. package/esm/hooks/useUsers.js +4 -5
  387. package/esm/icons/Tenant.d.ts +3 -0
  388. package/esm/icons/Tenant.js +17 -0
  389. package/package.json +3 -4
  390. package/cjs/components/ProfileBandNavigation/helpers/index.d.ts +0 -7
  391. package/cjs/components/ProfileBandNavigation/helpers/index.js +0 -70
  392. package/cjs/components/ProfileBandNavigation/types/index.d.ts +0 -15
  393. package/cjs/components/ProfileBandNavigation/types/index.js +0 -2
  394. package/cjs/components/ProfilesList/index.d.ts +0 -27
  395. package/cjs/components/ProfilesList/index.js +0 -16
  396. package/cjs/components/RelationEditor/index.d.ts +0 -6
  397. package/cjs/components/RelationEditor/index.js +0 -50
  398. package/cjs/components/attributes/AttributesView/index.d.ts +0 -7
  399. package/cjs/components/attributes/AttributesView/index.js +0 -15
  400. package/cjs/components/attributes/editMode/AttributesView/index.d.ts +0 -23
  401. package/cjs/components/attributes/editMode/AttributesView/index.js +0 -14
  402. package/cjs/components/attributes/editMode/EntityCreator/index.d.ts +0 -25
  403. package/cjs/components/attributes/editMode/EntityCreator/index.js +0 -42
  404. package/cjs/components/attributes/editMode/ReferenceAttribute/index.d.ts +0 -4
  405. package/cjs/components/attributes/editMode/ReferenceAttribute/index.js +0 -48
  406. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.d.ts +0 -2
  407. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.js +0 -34
  408. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.d.ts +0 -1
  409. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.js +0 -19
  410. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.d.ts +0 -1
  411. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.js +0 -20
  412. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.d.ts +0 -5
  413. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.js +0 -79
  414. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/types.d.ts +0 -11
  415. package/cjs/components/attributes/readMode/AttributesPager/index.d.ts +0 -28
  416. package/cjs/components/attributes/readMode/AttributesPager/index.js +0 -43
  417. package/cjs/components/attributes/readMode/AttributesView/index.d.ts +0 -23
  418. package/cjs/components/attributes/readMode/AttributesView/index.js +0 -14
  419. package/cjs/test-utils/store-utils.d.ts +0 -78
  420. package/cjs/test-utils/store-utils.js +0 -19
  421. package/esm/components/ProfileBandNavigation/helpers/index.d.ts +0 -7
  422. package/esm/components/ProfileBandNavigation/helpers/index.js +0 -66
  423. package/esm/components/ProfileBandNavigation/types/index.d.ts +0 -15
  424. package/esm/components/ProfileBandNavigation/types/index.js +0 -1
  425. package/esm/components/ProfilesList/index.d.ts +0 -27
  426. package/esm/components/ProfilesList/index.js +0 -10
  427. package/esm/components/RelationEditor/index.d.ts +0 -6
  428. package/esm/components/RelationEditor/index.js +0 -21
  429. package/esm/components/attributes/AttributesView/index.d.ts +0 -7
  430. package/esm/components/attributes/AttributesView/index.js +0 -9
  431. package/esm/components/attributes/editMode/AttributesView/index.d.ts +0 -23
  432. package/esm/components/attributes/editMode/AttributesView/index.js +0 -8
  433. package/esm/components/attributes/editMode/EntityCreator/index.d.ts +0 -25
  434. package/esm/components/attributes/editMode/EntityCreator/index.js +0 -13
  435. package/esm/components/attributes/editMode/ReferenceAttribute/index.d.ts +0 -4
  436. package/esm/components/attributes/editMode/ReferenceAttribute/index.js +0 -19
  437. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.d.ts +0 -2
  438. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.js +0 -27
  439. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.d.ts +0 -1
  440. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.js +0 -15
  441. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.d.ts +0 -1
  442. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.js +0 -13
  443. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.d.ts +0 -5
  444. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.js +0 -72
  445. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/types.d.ts +0 -11
  446. package/esm/components/attributes/readMode/AttributesPager/index.d.ts +0 -28
  447. package/esm/components/attributes/readMode/AttributesPager/index.js +0 -14
  448. package/esm/components/attributes/readMode/AttributesView/index.d.ts +0 -23
  449. package/esm/components/attributes/readMode/AttributesView/index.js +0 -8
  450. package/esm/test-utils/store-utils.d.ts +0 -78
  451. package/esm/test-utils/store-utils.js +0 -12
  452. /package/cjs/components/attributes/editMode/{SimpleAttributeEditor/selectors → AttributesPager}/types.js +0 -0
  453. /package/esm/components/attributes/editMode/{SimpleAttributeEditor/selectors → AttributesPager}/types.js +0 -0
@@ -27,12 +27,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  var react_1 = __importStar(require("react"));
30
- var react_redux_1 = require("react-redux");
31
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
32
30
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
33
31
  var Delete_1 = __importDefault(require("@mui/icons-material/Delete"));
34
32
  var TypeaheadEditor_1 = __importDefault(require("../../../editors/TypeaheadEditor/TypeaheadEditor"));
35
33
  var SmallIconButton_1 = __importDefault(require("../../../SmallIconButton/SmallIconButton"));
34
+ var contexts_1 = require("../../../../contexts");
36
35
  var styles_1 = require("./styles");
37
36
  var filtersWithSearch = function (searchQuery) { return [
38
37
  {
@@ -56,7 +55,7 @@ var getSuggestions = function (searchQuery) {
56
55
  var Tags = function (_a) {
57
56
  var className = _a.className, values = _a.values, onChange = _a.onChange, onDelete = _a.onDelete;
58
57
  var styles = (0, styles_1.useStyles)();
59
- var entityUri = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getEntityUri);
58
+ var entityUri = (0, contexts_1.useMdmEntityUri)();
60
59
  var handleChange = (0, react_1.useCallback)(function (tags) {
61
60
  onChange({
62
61
  value: tags,
@@ -69,6 +68,6 @@ var Tags = function (_a) {
69
68
  }, [entityUri, onDelete]);
70
69
  return (react_1.default.createElement("div", { className: styles.container, "data-reltio-id": "reltio-attribute-value" },
71
70
  react_1.default.createElement(TypeaheadEditor_1.default, { fullWidth: true, multiple: true, variant: "filled", className: className, value: values || [], onChange: handleChange, getSuggestions: getSuggestions }),
72
- !!onDelete && (react_1.default.createElement(SmallIconButton_1.default, { className: styles.deleteButton, icon: Delete_1.default, onClick: handleDelete, size: "L" }))));
71
+ !!onDelete && (react_1.default.createElement(SmallIconButton_1.default, { "data-reltio-id": "reltio-tags-delete-button", className: styles.deleteButton, icon: Delete_1.default, onClick: handleDelete, size: "L" }))));
73
72
  };
74
73
  exports.default = Tags;
@@ -49,11 +49,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
49
49
  };
50
50
  Object.defineProperty(exports, "__esModule", { value: true });
51
51
  var react_1 = __importStar(require("react"));
52
- var react_redux_1 = require("react-redux");
53
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
52
+ var ramda_1 = require("ramda");
54
53
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
55
54
  var ComplexAttribute_1 = __importDefault(require("../ComplexAttribute/ComplexAttribute"));
56
- var ramda_1 = require("ramda");
57
55
  var ComplexAttributeLabel_1 = require("../common/ComplexAttributeLabel");
58
56
  var InternalLink_1 = __importDefault(require("../../../InternalLink/InternalLink"));
59
57
  var contexts_1 = require("../../../../contexts");
@@ -62,8 +60,8 @@ var ReferenceAttribute = function (_a) {
62
60
  var attributeValue = _a.attributeValue, attributeType = _a.attributeType, other = __rest(_a, ["attributeValue", "attributeType"]);
63
61
  var styles = (0, styles_1.useStyles)();
64
62
  var generateEntityUrl = (0, react_1.useContext)(contexts_1.UrlGeneratorsContext).generateEntityUrl;
65
- var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
66
- var uiPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getUIPath);
63
+ var metadata = (0, contexts_1.useMdmMetadata)();
64
+ var uiPath = (0, contexts_1.useMdmUiPath)();
67
65
  var entityLabel = (react_1.default.createElement(ComplexAttributeLabel_1.ComplexAttributeLabel, null,
68
66
  react_1.default.createElement(InternalLink_1.default, { href: generateEntityUrl({ uiPath: uiPath, uri: (0, mdm_sdk_1.getReferencedEntityUriFromAttrValue)(attributeValue) }) },
69
67
  (0, mdm_sdk_1.getLabel)(attributeValue.label),
@@ -5,12 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  var react_1 = __importDefault(require("react"));
7
7
  var ui_i18n_1 = __importDefault(require("ui-i18n"));
8
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
8
+ var classnames_1 = __importDefault(require("classnames"));
9
9
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
10
- var react_redux_1 = require("react-redux");
11
10
  var Visibility_1 = __importDefault(require("@mui/icons-material/Visibility"));
12
11
  var SourceIcon_1 = __importDefault(require("../../../SourceIcon/SourceIcon"));
13
- var classnames_1 = __importDefault(require("classnames"));
14
12
  var contexts_1 = require("../../../../contexts");
15
13
  var SmallIconButton_1 = require("../../../SmallIconButton");
16
14
  var styles_1 = require("./styles");
@@ -18,7 +16,7 @@ var SourceItem = function (_a) {
18
16
  var crosswalk = _a.crosswalk, color = _a.color, className = _a.className, _b = _a.focusable, focusable = _b === void 0 ? false : _b;
19
17
  var _c = (0, contexts_1.useCrosswalkFocus)(crosswalk), toggleCrosswalkFocus = _c.toggleCrosswalkFocus, isFocused = _c.isFocused;
20
18
  var styles = (0, styles_1.useStyles)({ color: color, isFocused: isFocused });
21
- var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
19
+ var metadata = (0, contexts_1.useMdmMetadata)();
22
20
  var label = (0, mdm_sdk_1.findSourceSystemByUri)(metadata, crosswalk.type).label;
23
21
  return (react_1.default.createElement("div", { className: (0, classnames_1.default)(styles.sourceItem, className) },
24
22
  react_1.default.createElement(SourceIcon_1.default, { className: styles.sourceIcon, sourceType: crosswalk.type }),
@@ -41,7 +41,7 @@ var react_1 = __importStar(require("react"));
41
41
  var ramda_1 = require("ramda");
42
42
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
43
43
  var BranchDecorator_1 = __importDefault(require("../../BranchDecorator/BranchDecorator"));
44
- var AttributesPager_1 = __importDefault(require("../AttributesPager"));
44
+ var AttributesPager_1 = __importDefault(require("../AttributesPager/AttributesPager"));
45
45
  var ShowMore_1 = __importDefault(require("../../pagersCommon/ShowMore"));
46
46
  var ShowLess_1 = __importDefault(require("../../pagersCommon/ShowLess"));
47
47
  var constants_1 = require("../../../../constants");
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { AttributeType, NestedAttributeValue, Paging, ReferenceAttributeValue, SimpleAttributeValue, ImageAttributeValue, AttributeValue } from '@reltio/mdm-sdk';
3
- import { RequestNextPageOfAttributeValuesPayload } from '@reltio/mdm-module';
4
3
  type Props = {
5
4
  values: (SimpleAttributeValue | NestedAttributeValue | ReferenceAttributeValue | string | number | ImageAttributeValue | AttributeValue)[];
6
5
  attributeType: AttributeType;
@@ -8,10 +7,9 @@ type Props = {
8
7
  parentUri?: string;
9
8
  drawLines: boolean;
10
9
  max?: number;
11
- requestNextPageOfAttributeValues: (payload: RequestNextPageOfAttributeValuesPayload) => void;
12
10
  titleClassName?: string;
13
11
  contentClassName?: string;
14
12
  showNonOv?: boolean;
15
13
  };
16
- declare const _default: React.MemoExoticComponent<({ values, attributeType, drawLines, paging, parentUri, max, requestNextPageOfAttributeValues, titleClassName, contentClassName, showNonOv }: Props) => JSX.Element>;
14
+ declare const _default: React.MemoExoticComponent<({ values, attributeType, drawLines, paging, parentUri, max: maxProp, titleClassName, contentClassName, showNonOv }: Props) => JSX.Element>;
17
15
  export default _default;
@@ -30,12 +30,13 @@ var classnames_1 = __importDefault(require("classnames"));
30
30
  var react_1 = __importStar(require("react"));
31
31
  var ramda_1 = require("ramda");
32
32
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
33
- var styles_1 = require("./styles");
34
33
  var BranchDecorator_1 = __importDefault(require("../../BranchDecorator/BranchDecorator"));
35
34
  var OneLineRenderer_1 = __importDefault(require("./OneLineRenderer"));
36
35
  var MultiLineRenderer_1 = __importDefault(require("./MultiLineRenderer"));
37
36
  var SpecialRenderer_1 = __importDefault(require("./SpecialRenderer"));
38
37
  var ImageLineRenderer_1 = require("./ImageLineRenderer");
38
+ var contexts_1 = require("../../../../contexts");
39
+ var styles_1 = require("./styles");
39
40
  var RENDERER_TYPES = {
40
41
  oneLine: 'oneLine',
41
42
  multiLine: 'multiLine',
@@ -44,8 +45,12 @@ var RENDERER_TYPES = {
44
45
  };
45
46
  var AttributesPager = function (_a) {
46
47
  var _b, _c;
47
- var values = _a.values, attributeType = _a.attributeType, drawLines = _a.drawLines, _d = _a.paging, paging = _d === void 0 ? {} : _d, parentUri = _a.parentUri, _e = _a.max, max = _e === void 0 ? Infinity : _e, requestNextPageOfAttributeValues = _a.requestNextPageOfAttributeValues, titleClassName = _a.titleClassName, contentClassName = _a.contentClassName, showNonOv = _a.showNonOv;
48
+ var _d;
49
+ var values = _a.values, attributeType = _a.attributeType, drawLines = _a.drawLines, _e = _a.paging, paging = _e === void 0 ? {} : _e, parentUri = _a.parentUri, maxProp = _a.max, titleClassName = _a.titleClassName, contentClassName = _a.contentClassName, showNonOv = _a.showNonOv;
48
50
  var styles = (0, styles_1.useStyles)();
51
+ var requestNextPageOfAttributeValues = (0, contexts_1.useMdmAction)('requestNextPageOfAttributeValues');
52
+ var defaultMaxValues = (0, contexts_1.useMdmDefaultMaxValues)();
53
+ var max = (_d = maxProp !== null && maxProp !== void 0 ? maxProp : defaultMaxValues) !== null && _d !== void 0 ? _d : Infinity;
49
54
  var partitionByOv = (0, ramda_1.partition)(mdm_sdk_1.isOv);
50
55
  if (!values || !values.length) {
51
56
  return null;
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { AttributeType, ImageAttributeValue, Paging } from '@reltio/mdm-sdk';
3
- import { RequestNextPageOfAttributeValuesPayload } from '@reltio/mdm-module';
2
+ import { AttributeType, ImageAttributeValue, Paging, RequestNextPageOfAttributeValuesPayload } from '@reltio/mdm-sdk';
4
3
  type Props = {
5
4
  attributeType: AttributeType;
6
5
  attributeValues: ImageAttributeValue[];
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { RequestNextPageOfAttributeValuesPayload } from '@reltio/mdm-module';
3
- import { AttributeType, NestedAttributeValue, ReferenceAttributeValue, SimpleAttributeValue } from '@reltio/mdm-sdk';
2
+ import { AttributeType, NestedAttributeValue, ReferenceAttributeValue, SimpleAttributeValue, RequestNextPageOfAttributeValuesPayload } from '@reltio/mdm-sdk';
4
3
  type Props = {
5
4
  max: number;
6
5
  values: (SimpleAttributeValue | NestedAttributeValue | ReferenceAttributeValue)[];
@@ -1,3 +1,3 @@
1
1
  export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"paddingWrapper" | "paddingWrapperWithLines">;
2
2
  export declare const useOneLineStyles: (props?: any) => import("@mui/styles").ClassNameMap<"title" | "attribute" | "wrapper" | "collaborationWrapper" | "titleIcon" | "titleRow" | "ovIcon" | "descriptionIcon">;
3
- export declare const useMultiLineStyles: (props?: any) => import("@mui/styles").ClassNameMap<"title" | "attributes" | "attribute" | "wrapper" | "titleRow" | "ovIcon" | "descriptionIcon">;
3
+ export declare const useMultiLineStyles: (props?: any) => import("@mui/styles").ClassNameMap<"attributes" | "title" | "attribute" | "wrapper" | "titleRow" | "ovIcon" | "descriptionIcon">;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { AttributesViewProps } from '../../types';
3
- type Props = Omit<AttributesViewProps, 'mode'>;
4
- declare const AttributesView: ({ className, entity, metadata, caption, excludeUris, includeUris, attributesCount }: Props) => JSX.Element;
3
+ type Props = Omit<AttributesViewProps, 'mode' | 'pinnedAttributes'>;
4
+ declare const AttributesView: ({ className, entity, caption, excludeUris, includeUris, attributesCount }: Props) => JSX.Element;
5
5
  export default AttributesView;
@@ -27,8 +27,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  var react_1 = __importStar(require("react"));
30
- var react_redux_1 = require("react-redux");
31
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
32
30
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
33
31
  var classnames_1 = __importDefault(require("classnames"));
34
32
  var ui_i18n_1 = __importDefault(require("ui-i18n"));
@@ -42,9 +40,10 @@ var attributesView_1 = require("../../helpers/attributesView");
42
40
  var styles_1 = require("./styles");
43
41
  var AttributesView = function (_a) {
44
42
  var _b;
45
- var className = _a.className, _c = _a.entity, entity = _c === void 0 ? {} : _c, metadata = _a.metadata, _d = _a.caption, caption = _d === void 0 ? '' : _d, _e = _a.excludeUris, excludeUris = _e === void 0 ? [] : _e, _f = _a.includeUris, includeUris = _f === void 0 ? [] : _f, _g = _a.attributesCount, attributesCount = _g === void 0 ? 16 : _g;
43
+ var className = _a.className, _c = _a.entity, entity = _c === void 0 ? {} : _c, _d = _a.caption, caption = _d === void 0 ? '' : _d, _e = _a.excludeUris, excludeUris = _e === void 0 ? [] : _e, _f = _a.includeUris, includeUris = _f === void 0 ? [] : _f, _g = _a.attributesCount, attributesCount = _g === void 0 ? 16 : _g;
46
44
  var styles = (0, styles_1.useStyles)();
47
- var pivotingAttributes = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getPivotingAttributes);
45
+ var metadata = (0, contexts_1.useMdmMetadata)();
46
+ var pivotingAttributes = (0, contexts_1.useMdmPivotingAttributes)();
48
47
  var filteredAttrTypes = (0, react_1.useMemo)(function () { return (0, attributesView_1.getFilteredAttrTypes)(metadata, entity.type, includeUris, excludeUris); }, [excludeUris, includeUris, metadata, entity.type]);
49
48
  var attributesList = (0, mdm_sdk_1.getAttributesListForReadMode)(filteredAttrTypes, entity);
50
49
  var isShowAttributeList = attributesList.filter(function (_a) {
@@ -1,6 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { AttributeType, ImageAttributeValue, Paging } from '@reltio/mdm-sdk';
3
- import { RequestNextPageOfAttributeValuesPayload } from '@reltio/mdm-module';
2
+ import { AttributeType, ImageAttributeValue, Paging, RequestNextPageOfAttributeValuesPayload } from '@reltio/mdm-sdk';
4
3
  import { SIZES_TYPE } from '../../ImageAttributesLine/styles';
5
4
  type Props = {
6
5
  attributeValues: ImageAttributeValue[];
@@ -51,8 +51,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
51
51
  var react_1 = __importStar(require("react"));
52
52
  var classnames_1 = __importDefault(require("classnames"));
53
53
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
54
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
55
- var react_redux_1 = require("react-redux");
56
54
  var contexts_1 = require("../../../../contexts");
57
55
  var ComplexAttribute_1 = __importDefault(require("../ComplexAttribute/ComplexAttribute"));
58
56
  var InternalLink_1 = __importDefault(require("../../../InternalLink/InternalLink"));
@@ -61,10 +59,10 @@ var commonStyles_1 = require("../helpers/commonStyles");
61
59
  var styles_1 = __importDefault(require("./styles"));
62
60
  var ReferenceAttribute = function (_a) {
63
61
  var attributeValue = _a.attributeValue, attributeType = _a.attributeType, otherProps = __rest(_a, ["attributeValue", "attributeType"]);
64
- var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
65
- var uiPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getUIPath);
66
62
  var styles = (0, styles_1.default)();
67
63
  var ovValueStyles = (0, commonStyles_1.useOvValueStyles)();
64
+ var metadata = (0, contexts_1.useMdmMetadata)();
65
+ var uiPath = (0, contexts_1.useMdmUiPath)();
68
66
  var refEntityURI = (0, mdm_sdk_1.getReferencedEntityUriFromAttrValue)(attributeValue);
69
67
  var attributeTypeList = (0, react_1.useMemo)(function () { return (0, mdm_sdk_1.getAttributeTypeSubAttributes)(metadata, attributeType); }, [attributeType, metadata]);
70
68
  var appearance = (0, react_1.useContext)(contexts_1.HistoryDiffContext).appearance;
@@ -22,21 +22,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
22
  __setModuleDefault(result, mod);
23
23
  return result;
24
24
  };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
25
  Object.defineProperty(exports, "__esModule", { value: true });
29
26
  var react_1 = __importStar(require("react"));
30
- var react_redux_1 = require("react-redux");
31
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
32
27
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
33
28
  var HistoryAppearanceContext_1 = require("../../../../../contexts/HistoryAppearanceContext");
29
+ var contexts_1 = require("../../../../../contexts");
34
30
  var styles_1 = require("../styles");
35
31
  var Role = function (_a) {
36
32
  var value = _a.value;
37
33
  var styles = (0, styles_1.useCommonStyles)();
38
- var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
39
34
  var appearance = (0, react_1.useContext)(HistoryAppearanceContext_1.HistoryDiffContext).appearance;
35
+ var metadata = (0, contexts_1.useMdmMetadata)();
40
36
  var attributeAppearance = (0, mdm_sdk_1.getHistoryAppearanceBySpecialAttributeValue)('roles', value, appearance);
41
37
  var historyClassName = (0, mdm_sdk_1.getHistoryAttributeClassName)(attributeAppearance);
42
38
  return react_1.default.createElement("span", { className: styles[historyClassName] }, (0, mdm_sdk_1.getRoleLabel)(metadata, value));
@@ -28,19 +28,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  var react_1 = __importStar(require("react"));
30
30
  var InternalLink_1 = __importDefault(require("../../../../InternalLink/InternalLink"));
31
- var react_redux_1 = require("react-redux");
32
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
33
31
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
34
32
  var contexts_1 = require("../../../../../contexts");
35
33
  var styles_1 = require("../styles");
36
34
  var Tag = function (_a) {
37
35
  var value = _a.value;
38
36
  var styles = (0, styles_1.useCommonStyles)();
39
- var uiPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getUIPath);
40
- var currentEntity = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getEntity);
41
37
  var ownEntity = (0, react_1.useContext)(contexts_1.EntityContext);
42
38
  var appearance = (0, react_1.useContext)(contexts_1.HistoryDiffContext).appearance;
43
39
  var generateTagUrl = (0, react_1.useContext)(contexts_1.UrlGeneratorsContext).generateTagUrl;
40
+ var currentEntity = (0, contexts_1.useMdmEntity)();
41
+ var uiPath = (0, contexts_1.useMdmUiPath)();
44
42
  var attributeAppearance = (0, mdm_sdk_1.getHistoryAppearanceBySpecialAttributeValue)('tags', value, appearance);
45
43
  var historyClassName = (0, mdm_sdk_1.getHistoryAttributeClassName)(attributeAppearance);
46
44
  var entity = ownEntity || currentEntity;
@@ -1,5 +1,5 @@
1
- import { Entity, Metadata, Mode, PinnedAttribute } from '@reltio/mdm-sdk';
2
- type OwnProps = {
1
+ import { Entity, Mode, PinnedAttribute } from '@reltio/mdm-sdk';
2
+ export type AttributesViewProps = {
3
3
  attributesCount?: number;
4
4
  caption?: string;
5
5
  className?: string;
@@ -9,8 +9,3 @@ type OwnProps = {
9
9
  pinnedAttributes?: PinnedAttribute[];
10
10
  mode?: Mode;
11
11
  };
12
- type StateProps = {
13
- metadata: Metadata;
14
- };
15
- type AttributesViewProps = OwnProps & StateProps;
16
- export type { OwnProps as AttributesViewOwnProps, StateProps as AttributesViewStateProps, AttributesViewProps };
@@ -14,18 +14,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.AddAttributesButton = void 0;
16
16
  var react_1 = __importDefault(require("react"));
17
- var react_redux_1 = require("react-redux");
18
17
  var MoreAttributesButton_1 = __importDefault(require("../../../attributes/editMode/MoreAttributesButton/MoreAttributesButton"));
19
18
  var BasicTableView_1 = require("../../../BasicTableView");
20
19
  var ui_i18n_1 = __importDefault(require("ui-i18n"));
21
20
  var ramda_1 = require("ramda");
22
21
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
23
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
22
+ var contexts_1 = require("../../../../contexts");
24
23
  var styles_1 = require("./styles");
25
24
  var AddAttributesButton = function (_a) {
26
25
  var parentTypeUri = _a.parentTypeUri, parentUri = _a.parentUri, selectedAttributeTypes = _a.selectedAttributeTypes, onSelectAttributeTypes = _a.onSelectAttributeTypes, onAdd = _a.onAdd;
27
26
  var styles = (0, styles_1.useStyles)();
28
- var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
27
+ var metadata = (0, contexts_1.useMdmMetadata)();
29
28
  var parentType = __spreadArray(__spreadArray([], metadata.entityTypes, true), (metadata.relationTypes || []), true).find((0, ramda_1.propEq)('uri', parentTypeUri));
30
29
  var isNotSelected = function (attrType) { return !(selectedAttributeTypes === null || selectedAttributeTypes === void 0 ? void 0 : selectedAttributeTypes.find((0, ramda_1.propEq)('uri', attrType.uri))); };
31
30
  var canCreate = function (attributeType) { return (0, mdm_sdk_1.checkCanCreateAttribute)({ attributeType: attributeType, mode: mdm_sdk_1.ModeTypes.EDITING }); };
@@ -38,10 +38,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
38
38
  };
39
39
  Object.defineProperty(exports, "__esModule", { value: true });
40
40
  var react_1 = __importStar(require("react"));
41
- var react_redux_1 = require("react-redux");
42
41
  var classnames_1 = __importDefault(require("classnames"));
43
42
  var ui_i18n_1 = __importDefault(require("ui-i18n"));
44
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
45
43
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
46
44
  var BasicTableView_1 = require("../../BasicTableView");
47
45
  var BasicViewHeader_1 = __importDefault(require("../../BasicViewHeader/BasicViewHeader"));
@@ -52,6 +50,7 @@ var LinearLoadIndicator_1 = __importDefault(require("../../LinearLoadIndicator/L
52
50
  var ConfirmDeleteDialog_1 = __importDefault(require("../../ConfirmDeleteDialog/ConfirmDeleteDialog"));
53
51
  var ConfirmEditIgnoredDialog_1 = __importDefault(require("./ConfirmEditIgnoredDialog/ConfirmEditIgnoredDialog"));
54
52
  var core_1 = require("../../../core");
53
+ var contexts_1 = require("../../../contexts");
55
54
  var styles_1 = require("./styles");
56
55
  var DEFAULT_ROW_HEIGHT = 68;
57
56
  var getIdFromRowValue = function (rowValue) { return rowValue.ovValues.attributeType.uri; };
@@ -62,6 +61,7 @@ var getRowCellKey = function (_a) {
62
61
  var AttributesTable = function (_a) {
63
62
  var entity = _a.entity, isLoading = _a.isLoading, crosswalksMap = _a.crosswalksMap, _b = _a.visibleColumns, visibleColumns = _b === void 0 ? helpers_1.DEFAULT_VISIBLE_COLUMNS : _b, onChangeVisibleColumns = _a.onChangeVisibleColumns, readOnly = _a.readOnly, _c = _a.onDelete, onDelete = _c === void 0 ? core_1.noop : _c, _d = _a.onPin, onPin = _d === void 0 ? core_1.noop : _d, _e = _a.onIgnore, onIgnore = _e === void 0 ? core_1.noop : _e, _f = _a.onEdit, onEdit = _f === void 0 ? core_1.noop : _f, _g = _a.onAdd, onAdd = _g === void 0 ? core_1.noop : _g, emptyTempAttributeUris = _a.emptyTempAttributeUris, selectedAttributeTypes = _a.selectedAttributeTypes, _h = _a.onSelectAttributeTypes, onSelectAttributeTypes = _h === void 0 ? core_1.noop : _h, additionalHeaderItems = _a.additionalHeaderItems, className = _a.className, activeSurvivorshipGroupUri = _a.activeSurvivorshipGroupUri;
64
63
  var styles = (0, styles_1.useStyles)();
64
+ var metadata = (0, contexts_1.useMdmMetadata)();
65
65
  var visibleColumnsData = (0, react_1.useMemo)(function () {
66
66
  return (0, ramda_1.pipe)((0, ramda_1.filter)(function (_a) {
67
67
  var id = _a.id;
@@ -69,7 +69,6 @@ var AttributesTable = function (_a) {
69
69
  }), helpers_1.getBasicTableColumnsData)(helpers_1.COLUMNS_DATA);
70
70
  }, [visibleColumns]);
71
71
  var _j = entity || {}, parentTypeUri = _j.type, parentUri = _j.uri, _k = _j.attributes, attributes = _k === void 0 ? {} : _k;
72
- var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
73
72
  (0, react_1.useEffect)(function () {
74
73
  if (entity && (0, ramda_1.isNil)(selectedAttributeTypes)) {
75
74
  var initialAttrTypes = (0, ramda_1.pipe)(ramda_1.keys, (0, ramda_1.without)(['paging']), (0, ramda_1.map)((0, mdm_sdk_1.makeAttrTypeUri)(parentTypeUri)), (0, ramda_1.map)(function (attrTypeUri) { return (0, mdm_sdk_1.findAttributeTypeByUri)(metadata, attrTypeUri, parentTypeUri); }), (0, ramda_1.filter)((0, ramda_1.both)(ramda_1.identity, mdm_sdk_1.isReadableAttribute)))(attributes);
@@ -27,7 +27,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  var react_1 = __importStar(require("react"));
30
- var react_redux_1 = require("react-redux");
31
30
  var ramda_1 = require("ramda");
32
31
  var ui_i18n_1 = __importDefault(require("ui-i18n"));
33
32
  var IconButton_1 = __importDefault(require("@mui/material/IconButton"));
@@ -40,21 +39,19 @@ var Close_1 = __importDefault(require("@mui/icons-material/Close"));
40
39
  var Info_1 = __importDefault(require("@mui/icons-material/Info"));
41
40
  var SmallIconButton_1 = require("../../../SmallIconButton");
42
41
  var SourceIcon_1 = __importDefault(require("../../../SourceIcon/SourceIcon"));
43
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
44
42
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
43
+ var contexts_1 = require("../../../../contexts");
45
44
  var styles_1 = require("./styles");
46
45
  var SourcesRenderer = function (_a) {
47
- var sourcesUriOrder = _a.sourcesUriOrder;
46
+ var sourcesUriOrder = _a.sourcesUriOrder, metadata = _a.metadata;
48
47
  var styles = (0, styles_1.useStyles)();
49
- var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
50
48
  return (react_1.default.createElement(react_1.default.Fragment, null, sourcesUriOrder.map(function (sourceUri) { return (react_1.default.createElement(ListItem_1.default, { key: sourceUri, className: styles.popupItem },
51
49
  react_1.default.createElement(SourceIcon_1.default, { className: styles.sourceIcon, sourceType: sourceUri }),
52
50
  react_1.default.createElement(ListItemText_1.default, { primary: (0, mdm_sdk_1.getSourceSystemLabel)(metadata, sourceUri), primaryTypographyProps: { variant: 'body2' } }))); })));
53
51
  };
54
52
  var AttributeRenderer = function (_a) {
55
- var attributeUri = _a.attributeUri;
53
+ var attributeUri = _a.attributeUri, metadata = _a.metadata;
56
54
  var styles = (0, styles_1.useStyles)();
57
- var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
58
55
  var attributeType = (0, mdm_sdk_1.findAttributeTypeByUri)(metadata, attributeUri);
59
56
  return (react_1.default.createElement(ListItem_1.default, { key: attributeType.uri, className: styles.popupItem },
60
57
  react_1.default.createElement(ListItemText_1.default, { primary: (0, mdm_sdk_1.getLabel)(attributeType.label), primaryTypographyProps: { variant: 'body2' } })));
@@ -65,22 +62,28 @@ var getInfoTitle = (0, ramda_1.cond)([
65
62
  [(0, ramda_1.prop)('comparisonAttributeUri'), function () { return ui_i18n_1.default.text('Comparison attribute'); }]
66
63
  ]);
67
64
  var getInfoContent = (0, ramda_1.cond)([
68
- // eslint-disable-next-line react/display-name
69
- [(0, ramda_1.prop)('sourcesUriOrder'), function (_a) {
65
+ [
66
+ (0, ramda_1.prop)('sourcesUriOrder'),
67
+ // eslint-disable-next-line react/display-name
68
+ function (_a, metadata) {
70
69
  var sourcesUriOrder = _a.sourcesUriOrder;
71
- return react_1.default.createElement(SourcesRenderer, { sourcesUriOrder: sourcesUriOrder });
72
- }],
73
- // eslint-disable-next-line react/display-name
74
- [(0, ramda_1.prop)('primaryAttributeUri'), function (_a) {
70
+ return react_1.default.createElement(SourcesRenderer, { metadata: metadata, sourcesUriOrder: sourcesUriOrder });
71
+ }
72
+ ],
73
+ [
74
+ (0, ramda_1.prop)('primaryAttributeUri'),
75
+ // eslint-disable-next-line react/display-name
76
+ function (_a, metadata) {
75
77
  var primaryAttributeUri = _a.primaryAttributeUri;
76
- return react_1.default.createElement(AttributeRenderer, { attributeUri: primaryAttributeUri });
77
- }],
78
+ return (react_1.default.createElement(AttributeRenderer, { metadata: metadata, attributeUri: primaryAttributeUri }));
79
+ }
80
+ ],
78
81
  [
79
82
  (0, ramda_1.prop)('comparisonAttributeUri'),
80
83
  // eslint-disable-next-line react/display-name
81
- function (_a) {
84
+ function (_a, metadata) {
82
85
  var comparisonAttributeUri = _a.comparisonAttributeUri;
83
- return react_1.default.createElement(AttributeRenderer, { attributeUri: comparisonAttributeUri });
86
+ return (react_1.default.createElement(AttributeRenderer, { metadata: metadata, attributeUri: comparisonAttributeUri }));
84
87
  }
85
88
  ]
86
89
  ]);
@@ -88,6 +91,7 @@ var RuleTypeInfoButton = function (_a) {
88
91
  var info = _a.info;
89
92
  var styles = (0, styles_1.useStyles)();
90
93
  var _b = (0, react_1.useState)(null), anchorEl = _b[0], setAnchorEl = _b[1];
94
+ var metadata = (0, contexts_1.useMdmMetadata)();
91
95
  var openPopup = function (event) { return setAnchorEl(event.currentTarget); };
92
96
  var closePopup = function () { return setAnchorEl(null); };
93
97
  return (react_1.default.createElement(react_1.default.Fragment, null,
@@ -103,6 +107,6 @@ var RuleTypeInfoButton = function (_a) {
103
107
  react_1.default.createElement(IconButton_1.default, { className: styles.closeButton, onClick: closePopup, size: "large" },
104
108
  react_1.default.createElement(Close_1.default, null)),
105
109
  react_1.default.createElement(Typography_1.default, { variant: 'subtitle1', className: styles.popupTitle }, getInfoTitle(info))),
106
- react_1.default.createElement(List_1.default, { component: "div", className: styles.popupItemsWrapper }, getInfoContent(info)))));
110
+ react_1.default.createElement(List_1.default, { component: "div", className: styles.popupItemsWrapper }, getInfoContent(info, metadata)))));
107
111
  };
108
112
  exports.default = RuleTypeInfoButton;
@@ -4,20 +4,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  var react_1 = __importDefault(require("react"));
7
- var react_redux_1 = require("react-redux");
8
7
  var List_1 = __importDefault(require("@mui/material/List"));
9
8
  var ListItem_1 = __importDefault(require("@mui/material/ListItem"));
10
9
  var ListItemText_1 = __importDefault(require("@mui/material/ListItemText"));
11
10
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
12
11
  var SourceIcon_1 = __importDefault(require("../../../SourceIcon/SourceIcon"));
13
12
  var contexts_1 = require("../../../../contexts");
14
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
15
13
  var ColoredBlock_1 = __importDefault(require("../../ColoredBlock/ColoredBlock"));
16
14
  var styles_1 = require("./styles");
17
15
  var WinnerSource = function (_a) {
18
16
  var crosswalk = _a.crosswalk;
19
17
  var styles = (0, styles_1.useStyles)();
20
- var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
18
+ var metadata = (0, contexts_1.useMdmMetadata)();
21
19
  var _b = (0, contexts_1.useCrosswalkHighlight)(crosswalk), isDimmed = _b.isDimmed, highlightCrosswalk = _b.highlightCrosswalk, removeHighlight = _b.removeHighlight;
22
20
  return (react_1.default.createElement(ColoredBlock_1.default, { className: styles.winnerSourceItem, color: isDimmed ? 'rgba(0, 0, 0, 0.12)' : (0, mdm_sdk_1.getCrosswalkColor)((0, mdm_sdk_1.getCrosswalkId)(crosswalk)), opacity: isDimmed ? 0.38 : 1, onMouseEnter: function () { return highlightCrosswalk(); }, onMouseLeave: function () { return removeHighlight(); } },
23
21
  react_1.default.createElement(SourceIcon_1.default, { className: styles.sourceIcon, sourceType: crosswalk.type }),
@@ -27,30 +27,29 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  var react_1 = __importStar(require("react"));
30
- var react_redux_1 = require("react-redux");
30
+ var ramda_1 = require("ramda");
31
+ var ui_i18n_1 = __importDefault(require("ui-i18n"));
32
+ var moment_1 = __importDefault(require("moment"));
33
+ var mdm_sdk_1 = require("@reltio/mdm-sdk");
34
+ var Typography_1 = __importDefault(require("@mui/material/Typography"));
35
+ var Delete_1 = __importDefault(require("@mui/icons-material/Delete"));
31
36
  var ConfirmDeleteDialog_1 = __importDefault(require("../../ConfirmDeleteDialog/ConfirmDeleteDialog"));
32
37
  var MoreAttributesButton_1 = __importDefault(require("../../attributes/editMode/MoreAttributesButton"));
33
38
  var SimpleDropDownSelector_1 = __importDefault(require("../../SimpleDropDownSelector/SimpleDropDownSelector"));
34
39
  var SmallIconButton_1 = require("../../SmallIconButton");
35
40
  var SourceIcon_1 = __importDefault(require("../../SourceIcon/SourceIcon"));
36
41
  var editors_1 = require("../../editors");
37
- var Typography_1 = __importDefault(require("@mui/material/Typography"));
38
- var Delete_1 = __importDefault(require("@mui/icons-material/Delete"));
39
- var mdm_sdk_1 = require("@reltio/mdm-sdk");
40
- var ramda_1 = require("ramda");
41
- var ui_i18n_1 = __importDefault(require("ui-i18n"));
42
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
43
42
  var CopyableValueField_1 = __importDefault(require("../CopyableValueField/CopyableValueField"));
44
43
  var CrosswalkDateEditor_1 = __importDefault(require("../CrosswalkDateEditor/CrosswalkDateEditor"));
45
- var moment_1 = __importDefault(require("moment"));
44
+ var contexts_1 = require("../../../contexts");
46
45
  var styles_1 = require("./styles");
47
46
  var CrosswalkAttributes = function (_a) {
48
47
  var crosswalk = _a.crosswalk, _b = _a.canEditAttribute, canEditAttribute = _b === void 0 ? true : _b, onEditAttribute = _a.onEditAttribute, onDeleteAttribute = _a.onDeleteAttribute;
49
48
  var styles = (0, styles_1.useStyles)();
50
- var isTempCrosswalk = !('uri' in crosswalk);
51
- var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
52
49
  var _c = (0, react_1.useState)([]), addedAttributes = _c[0], setAddedAttributes = _c[1];
53
50
  var _d = (0, react_1.useState)(null), pendingDeletionAttrUri = _d[0], setPendingDeletionAttrUri = _d[1];
51
+ var metadata = (0, contexts_1.useMdmMetadata)();
52
+ var isTempCrosswalk = !('uri' in crosswalk);
54
53
  var addSelectedAttributes = function (selectedAttributes) {
55
54
  if (selectedAttributes.length > 0) {
56
55
  setAddedAttributes(function (addedAttributes) { return addedAttributes.concat((0, ramda_1.map)((0, ramda_1.prop)('uri'), selectedAttributes)); });
@@ -4,19 +4,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  var react_1 = __importDefault(require("react"));
7
- var react_redux_1 = require("react-redux");
8
7
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
8
+ var Typography_1 = __importDefault(require("@mui/material/Typography"));
9
9
  var ColoredBlock_1 = __importDefault(require("../ColoredBlock/ColoredBlock"));
10
10
  var CrosswalksDisplayContext_1 = require("../../../contexts/CrosswalksDisplayContext");
11
11
  var SourceIcon_1 = __importDefault(require("../../SourceIcon/SourceIcon"));
12
- var Typography_1 = __importDefault(require("@mui/material/Typography"));
13
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
12
+ var contexts_1 = require("../../../contexts");
14
13
  var styles_1 = require("./styles");
15
14
  var CrosswalkDragPreview = function (_a) {
16
15
  var crosswalk = _a.crosswalk;
17
16
  var styles = (0, styles_1.useStyles)();
17
+ var metadata = (0, contexts_1.useMdmMetadata)();
18
18
  var color = (0, CrosswalksDisplayContext_1.useCrosswalkColor)(crosswalk);
19
- var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
20
19
  var sourceSystemLabel = (0, mdm_sdk_1.getSourceSystemLabel)(metadata, crosswalk.type);
21
20
  return (react_1.default.createElement(ColoredBlock_1.default, { color: color, className: styles.crosswalkPreview },
22
21
  react_1.default.createElement(SourceIcon_1.default, { className: styles.sourceIcon, sourceType: crosswalk.type }),
@@ -27,12 +27,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  var react_1 = __importStar(require("react"));
30
- var react_redux_1 = require("react-redux");
31
30
  var ui_i18n_1 = __importDefault(require("ui-i18n"));
31
+ var react_dnd_1 = require("react-dnd");
32
+ var react_dnd_html5_backend_1 = require("react-dnd-html5-backend");
33
+ var mdm_sdk_1 = require("@reltio/mdm-sdk");
32
34
  var Typography_1 = __importDefault(require("@mui/material/Typography"));
33
35
  var Delete_1 = __importDefault(require("@mui/icons-material/Delete"));
34
36
  var Visibility_1 = __importDefault(require("@mui/icons-material/Visibility"));
35
- var mdm_sdk_1 = require("@reltio/mdm-sdk");
36
37
  var ArrowExpandButton_1 = __importDefault(require("../../ArrowExpandButton/ArrowExpandButton"));
37
38
  var ExpandedValueTooltip_1 = __importDefault(require("../../ExpandedValueTooltip/ExpandedValueTooltip"));
38
39
  var ColoredBlock_1 = __importDefault(require("../ColoredBlock/ColoredBlock"));
@@ -41,28 +42,26 @@ var SmallIconButton_1 = require("../../SmallIconButton");
41
42
  var SourceIcon_1 = __importDefault(require("../../SourceIcon/SourceIcon"));
42
43
  var Spacer_1 = __importDefault(require("../../Spacer/Spacer"));
43
44
  var CrosswalksDisplayContext_1 = require("../../../contexts/CrosswalksDisplayContext");
44
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
45
45
  var NestedAttribute_1 = __importDefault(require("../../../icons/NestedAttribute"));
46
- var react_dnd_1 = require("react-dnd");
47
- var react_dnd_html5_backend_1 = require("react-dnd-html5-backend");
48
46
  var CrosswalkAttributes_1 = __importDefault(require("../CrosswalkAttributes/CrosswalkAttributes"));
47
+ var contexts_1 = require("../../../contexts");
49
48
  var styles_1 = require("./styles");
50
49
  var CrosswalkRow = function (_a) {
51
50
  var crosswalk = _a.crosswalk, isDependent = _a.isDependent, _b = _a.isEmpty, isEmpty = _b === void 0 ? false : _b, _c = _a.isColored, isColored = _c === void 0 ? true : _c, _d = _a.focusable, focusable = _d === void 0 ? true : _d, disableEdit = _a.disableEdit, disableDelete = _a.disableDelete, onDelete = _a.onDelete, onEdit = _a.onEdit;
52
51
  var ref = (0, react_1.useRef)(null);
52
+ var _e = (0, react_1.useState)(false), expanded = _e[0], setExpanded = _e[1];
53
+ var _f = (0, react_1.useState)(false), isDeleteDialogOpen = _f[0], setDeleteDialogOpen = _f[1];
54
+ var metadata = (0, contexts_1.useMdmMetadata)();
53
55
  var crosswalkColor = (0, CrosswalksDisplayContext_1.useCrosswalkColor)(crosswalk);
54
- var _e = (0, CrosswalksDisplayContext_1.useCrosswalkFocus)(crosswalk), toggleCrosswalkFocus = _e.toggleCrosswalkFocus, isFocused = _e.isFocused;
55
- var _f = (0, CrosswalksDisplayContext_1.useCrosswalkHighlight)(crosswalk), isDimmed = _f.isDimmed, highlightCrosswalk = _f.highlightCrosswalk, removeHighlight = _f.removeHighlight;
56
+ var _g = (0, CrosswalksDisplayContext_1.useCrosswalkFocus)(crosswalk), toggleCrosswalkFocus = _g.toggleCrosswalkFocus, isFocused = _g.isFocused;
57
+ var _h = (0, CrosswalksDisplayContext_1.useCrosswalkHighlight)(crosswalk), isDimmed = _h.isDimmed, highlightCrosswalk = _h.highlightCrosswalk, removeHighlight = _h.removeHighlight;
58
+ var scrollToCrosswalk = (0, CrosswalksDisplayContext_1.useHighlightedCrosswalks)()[0];
56
59
  var coloredCrosswalk = isDimmed ? 'rgba(0, 0, 0, 0.12)' : crosswalkColor;
57
60
  var color = isEmpty ? '#FFF' : isColored ? coloredCrosswalk : '#CACCD1';
58
- var scrollToCrosswalk = (0, CrosswalksDisplayContext_1.useHighlightedCrosswalks)()[0];
59
- var styles = (0, styles_1.useStyles)({ color: color, isOpaque: !isDimmed, isFocused: isFocused });
60
- var _g = (0, react_1.useState)(false), expanded = _g[0], setExpanded = _g[1];
61
- var _h = (0, react_1.useState)(false), isDeleteDialogOpen = _h[0], setDeleteDialogOpen = _h[1];
62
- var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
63
61
  var sourceSystemLabel = (0, mdm_sdk_1.getSourceSystemLabel)(metadata, crosswalk.type);
64
62
  var crosswalkId = (0, mdm_sdk_1.getLastUriPart)(crosswalk.uri);
65
63
  var crosswalkDisabled = (0, mdm_sdk_1.isCrosswalkDisabled)(crosswalk);
64
+ var styles = (0, styles_1.useStyles)({ color: color, isOpaque: !isDimmed, isFocused: isFocused });
66
65
  var _j = (0, react_dnd_1.useDrag)({
67
66
  item: {
68
67
  type: 'Crosswalk',
@@ -27,20 +27,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  var react_1 = __importStar(require("react"));
30
- var react_redux_1 = require("react-redux");
30
+ var mdm_sdk_1 = require("@reltio/mdm-sdk");
31
31
  var Typography_1 = __importDefault(require("@mui/material/Typography"));
32
32
  var Visibility_1 = __importDefault(require("@mui/icons-material/Visibility"));
33
33
  var SourceIcon_1 = __importDefault(require("../../SourceIcon/SourceIcon"));
34
34
  var SmallIconButton_1 = __importDefault(require("../../SmallIconButton/SmallIconButton"));
35
35
  var CrosswalksDisplayContext_1 = require("../../../contexts/CrosswalksDisplayContext");
36
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
37
- var mdm_sdk_1 = require("@reltio/mdm-sdk");
36
+ var contexts_1 = require("../../../contexts");
38
37
  var styles_1 = require("./styles");
39
38
  var DummyCrosswalkRow = function (_a) {
40
39
  var crosswalkType = _a.crosswalkType, _b = _a.focusable, focusable = _b === void 0 ? true : _b;
41
40
  var isDimmed = (0, CrosswalksDisplayContext_1.useCrosswalkHighlight)().isDimmed;
42
41
  var styles = (0, styles_1.useStyles)({ isOpaque: !isDimmed });
43
- var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
42
+ var metadata = (0, contexts_1.useMdmMetadata)();
44
43
  var sourceSystemLabel = (0, mdm_sdk_1.getSourceSystemLabel)(metadata, crosswalkType);
45
44
  return (react_1.default.createElement("div", { className: styles.root },
46
45
  react_1.default.createElement(SmallIconButton_1.default, { size: "XXS", className: styles.focusedIcon, icon: focusable && Visibility_1.default, disabled: true }),