@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.
Files changed (431) 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/TenantLabel/TenantLabel.js +3 -4
  52. package/cjs/components/TenantsDropDownSelector/TenantsDropDownSelector.js +3 -4
  53. package/cjs/components/UploadImageDialog/TargetBox/styles.d.ts +1 -1
  54. package/cjs/components/UploadImageDialog/UploadImageDialog.js +4 -5
  55. package/cjs/components/UserSelector/UserSelector.js +3 -4
  56. package/cjs/components/activityLog/ActivityExportButton/ActivityExportButton.js +6 -7
  57. package/cjs/components/activityLog/ActivityFilterEditor/ActivityFilterEditor.js +2 -3
  58. package/cjs/components/activityLog/ActivityFilterEditor/EntityChangedSelectors.js +2 -3
  59. package/cjs/components/activityLog/ActivityFilterEditor/SourceSelector.js +3 -4
  60. package/cjs/components/activityLog/ActivityLogFilter/ActivityLogFilter.d.ts +1 -1
  61. package/cjs/components/activityLog/ActivityLogFilter/ActivityLogFilter.js +5 -3
  62. package/cjs/components/activityLog/activities/GroupActivity.js +2 -3
  63. package/cjs/components/activityLog/activities/RelationObject/styles.d.ts +1 -1
  64. package/cjs/components/activityLog/activities/SearchActivity.js +6 -7
  65. package/cjs/components/activityLog/activities/fields/DeltaField.js +7 -8
  66. package/cjs/components/activityLog/activities/fields/commonStyles.d.ts +1 -1
  67. package/cjs/components/activityLog/activities/records/EntityRecord.js +8 -9
  68. package/cjs/components/attributes/AttributesView/AttributesView.d.ts +2 -2
  69. package/cjs/components/attributes/AttributesView/AttributesView.js +8 -4
  70. package/cjs/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +1 -1
  71. package/cjs/components/attributes/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  72. package/cjs/components/attributes/ImageAttributesLine/ImageAttributesLine.js +8 -9
  73. package/cjs/components/attributes/OvIcon/OvIcon.d.ts +1 -1
  74. package/cjs/components/attributes/OvIcon/OvIcon.js +4 -6
  75. package/cjs/components/attributes/PivotingAttributes/PivotingTooltip.js +3 -5
  76. package/cjs/components/attributes/PivotingAttributes/PivotingTooltipContent.js +3 -4
  77. package/cjs/components/attributes/PivotingAttributes/styles.d.ts +1 -1
  78. package/cjs/components/attributes/editMode/AttributesFactory/AttributesFactory.js +1 -1
  79. package/cjs/components/attributes/editMode/AttributesPager/AttributeRenderer.d.ts +7 -2
  80. package/cjs/components/attributes/editMode/AttributesPager/AttributesPager.d.ts +2 -38
  81. package/cjs/components/attributes/editMode/AttributesPager/AttributesPager.js +10 -2
  82. package/cjs/components/attributes/editMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
  83. package/cjs/components/attributes/editMode/AttributesPager/index.d.ts +2 -39
  84. package/cjs/components/attributes/editMode/AttributesPager/index.js +5 -44
  85. package/cjs/components/attributes/editMode/AttributesPager/styles.d.ts +1 -1
  86. package/cjs/components/attributes/editMode/AttributesPager/types.d.ts +21 -0
  87. package/cjs/components/attributes/editMode/AttributesView/AttributesView.d.ts +1 -1
  88. package/cjs/components/attributes/editMode/AttributesView/AttributesView.js +10 -12
  89. package/cjs/components/attributes/editMode/EntityCreator/EntityCreator.d.ts +9 -24
  90. package/cjs/components/attributes/editMode/EntityCreator/EntityCreator.js +7 -15
  91. package/cjs/components/attributes/editMode/EntitySelector/EntitySelector.js +1 -1
  92. package/cjs/components/attributes/editMode/EntitySelector/components/SingleValue.js +3 -6
  93. package/cjs/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  94. package/cjs/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.js +8 -10
  95. package/cjs/components/attributes/editMode/MoreAttributesButton/useMoreAttributesItems.js +2 -3
  96. package/cjs/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.js +16 -15
  97. package/cjs/components/attributes/editMode/Roles/Roles.js +4 -5
  98. package/cjs/components/attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor.js +4 -9
  99. package/cjs/components/attributes/editMode/SimpleAttributeEditor/useAutopopulationContextValue.js +7 -30
  100. package/cjs/components/attributes/editMode/Tags/Tags.js +3 -4
  101. package/cjs/components/attributes/inline/ReferenceAttribute/ReferenceAttribute.js +3 -5
  102. package/cjs/components/attributes/inline/common/SourceItem.js +2 -4
  103. package/cjs/components/attributes/readMode/AttributesList/AttributesList.js +1 -1
  104. package/cjs/components/attributes/readMode/AttributesPager/AttributesPager.d.ts +1 -3
  105. package/cjs/components/attributes/readMode/AttributesPager/AttributesPager.js +7 -2
  106. package/cjs/components/attributes/readMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
  107. package/cjs/components/attributes/readMode/AttributesPager/MultiLineRenderer.d.ts +1 -2
  108. package/cjs/components/attributes/readMode/AttributesPager/styles.d.ts +1 -1
  109. package/cjs/components/attributes/readMode/AttributesView/AttributesView.d.ts +2 -2
  110. package/cjs/components/attributes/readMode/AttributesView/AttributesView.js +3 -4
  111. package/cjs/components/attributes/readMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  112. package/cjs/components/attributes/readMode/ReferenceAttribute/ReferenceAttribute.js +2 -4
  113. package/cjs/components/attributes/readMode/SpecialAttributes/Roles/Role.js +2 -6
  114. package/cjs/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +2 -4
  115. package/cjs/components/attributes/types/attributesView.d.ts +2 -7
  116. package/cjs/components/crosswalks/AttributesTable/AddAttributesButton/AddAttributesButton.js +2 -3
  117. package/cjs/components/crosswalks/AttributesTable/AttributesTable.js +2 -3
  118. package/cjs/components/crosswalks/AttributesTable/cell-renderers/RuleTypeInfoButton.js +21 -17
  119. package/cjs/components/crosswalks/AttributesTable/cell-renderers/WinnerSourcesRenderer.js +1 -3
  120. package/cjs/components/crosswalks/CrosswalkAttributes/CrosswalkAttributes.js +9 -10
  121. package/cjs/components/crosswalks/CrosswalkDragLayer/CrosswalkDragPreview.js +3 -4
  122. package/cjs/components/crosswalks/CrosswalkRow/CrosswalkRow.js +11 -12
  123. package/cjs/components/crosswalks/DummyCrosswalkRow/DummyCrosswalkRow.js +3 -4
  124. package/cjs/components/editors/DataTypeValueEditor/useEditorContext.d.ts +3 -3
  125. package/cjs/components/editors/DataTypeValueEditor/useEditorContext.js +10 -36
  126. package/cjs/components/editors/DateRangeEditor/DateRangeEditor.d.ts +3 -3
  127. package/cjs/components/editors/TypeaheadEditor/TypeaheadEditor.js +1 -1
  128. package/cjs/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
  129. package/cjs/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
  130. package/cjs/components/history/HistoryMenuButton/HistoryMenuButton.js +5 -32
  131. package/cjs/components/history/HistoryTree/HistoryTree.js +9 -8
  132. package/cjs/components/history/HistoryTree/styles.d.ts +1 -1
  133. package/cjs/components/history/ProfileBandHistory/ProfileBandHistory.js +5 -31
  134. package/cjs/components/history/hooks/useHistoryDiff.js +8 -32
  135. package/cjs/components/history/hooks/useHistorySlice.js +4 -28
  136. package/cjs/components/index.d.ts +6 -6
  137. package/cjs/components/index.js +6 -6
  138. package/cjs/components/workflow/cards/GenericWorkflowTaskCard/styles.d.ts +1 -1
  139. package/cjs/components/workflow/cards/PotentialMatchTaskCard/PotentialMatchTaskCard.js +4 -5
  140. package/cjs/components/workflow/components/AttributesChanges/AttributesChanges.js +2 -3
  141. package/cjs/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js +2 -3
  142. package/cjs/components/workflow/components/WorkflowComments/styles.d.ts +1 -1
  143. package/cjs/components/workflow/hooks/useWorkflowActions.js +6 -11
  144. package/cjs/components/workflow/hooks/useWorkflowAssignee.js +3 -8
  145. package/cjs/components/workflow/hooks/useWorkflowCheckPermission.js +24 -25
  146. package/cjs/components/workflow/hooks/useWorkflowComments.js +4 -8
  147. package/cjs/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.js +6 -30
  148. package/cjs/components/workflow/hooks/useWorkflowDefinitions.js +5 -9
  149. package/cjs/components/workflow/hooks/useWorkflowDueDate.js +4 -8
  150. package/cjs/components/workflow/hooks/useWorkflowPriority.js +4 -5
  151. package/cjs/components/workflow/hooks/useWorkflowProcessInstance.js +6 -10
  152. package/cjs/components/workflow/hooks/useWorkflowTasks.js +11 -15
  153. package/cjs/contexts/ActionsHookContext/index.d.ts +4 -1
  154. package/cjs/contexts/CollaborationContext/index.js +2 -2
  155. package/cjs/contexts/MdmModuleContext/context.d.ts +243 -0
  156. package/cjs/contexts/MdmModuleContext/context.js +7 -0
  157. package/cjs/contexts/MdmModuleContext/hooks.d.ts +139 -0
  158. package/cjs/contexts/MdmModuleContext/hooks.js +206 -0
  159. package/cjs/contexts/MdmModuleContext/index.d.ts +3 -0
  160. package/cjs/contexts/MdmModuleContext/index.js +70 -0
  161. package/cjs/contexts/MdmModuleContext/provider.d.ts +10 -0
  162. package/cjs/contexts/MdmModuleContext/provider.js +15 -0
  163. package/cjs/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.d.ts +22 -0
  164. package/cjs/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.js +132 -0
  165. package/cjs/contexts/MdmModuleContext/selectors/entity.d.ts +3 -0
  166. package/cjs/contexts/MdmModuleContext/selectors/entity.js +11 -0
  167. package/cjs/contexts/MdmModuleContext/selectors.d.ts +3 -0
  168. package/cjs/contexts/MdmModuleContext/selectors.js +11 -0
  169. package/cjs/contexts/index.d.ts +1 -0
  170. package/cjs/contexts/index.js +15 -0
  171. package/cjs/hooks/useAPI/useAPI.js +14 -40
  172. package/cjs/hooks/useCollaboration.js +5 -9
  173. package/cjs/hooks/useCommentsEntitiesMap.js +2 -6
  174. package/cjs/hooks/useConfigPermissions.js +3 -7
  175. package/cjs/hooks/useCustomScripts.js +13 -39
  176. package/cjs/hooks/useEditableConnection.js +2 -6
  177. package/cjs/hooks/useMarkAsNotMatchRequest.js +4 -8
  178. package/cjs/hooks/useMatchesLoader.js +5 -9
  179. package/cjs/hooks/useMergeAllRequest.js +16 -30
  180. package/cjs/hooks/useReadableSearchState.js +8 -32
  181. package/cjs/hooks/useRelationsLoader.js +9 -33
  182. package/cjs/hooks/useScrollToAttributeError/styles.d.ts +1 -1
  183. package/cjs/hooks/useUsers.js +4 -5
  184. package/esm/components/AttributeGroupIcon/AttributeGroupIcon.js +2 -3
  185. package/esm/components/AttributeSelector/AttributeSelector.js +2 -3
  186. package/esm/components/AttributesFiltersBuilder/AttributesFiltersBuilder.js +5 -6
  187. package/esm/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.d.ts +13 -19
  188. package/esm/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.js +7 -18
  189. package/esm/components/BasicView/BasicView.d.ts +1 -1
  190. package/esm/components/CollaborationItem/Comment/Comment.js +2 -4
  191. package/esm/components/CollaborationItem/CommentTarget/CommentTarget.js +3 -5
  192. package/esm/components/CollaborationItem/CommentTarget/styles.d.ts +1 -1
  193. package/esm/components/CollaborationItem/RepliedComment/RepliedComment.js +2 -4
  194. package/esm/components/CollaborationItem/SendMessageArea/SendMessageArea.js +2 -4
  195. package/esm/components/ColoredSourceIcon/ColoredSourceIcon.js +2 -4
  196. package/esm/components/ConnectionEditor/ConnectionEditor.js +3 -6
  197. package/esm/components/DataTenantBadge/DataTenantBadge.js +6 -4
  198. package/esm/components/DataTypeValue/DataTypeValue.js +4 -5
  199. package/esm/components/EntityAvatar/EntityAvatar.js +4 -5
  200. package/esm/components/EntityTypeBadge/EntityTypeBadge.js +4 -6
  201. package/esm/components/EntityTypeIcon/EntityTypeIcon.js +2 -3
  202. package/esm/components/EntityUriLink/EntityUriLink.js +5 -7
  203. package/esm/components/ErrorPopup/ErrorPopup.d.ts +13 -8
  204. package/esm/components/ErrorPopup/ErrorPopup.js +23 -18
  205. package/esm/components/ErrorPopup/styles.d.ts +1 -1
  206. package/esm/components/HierarchyNodeTitle/HierarchyNodeTitle.js +5 -7
  207. package/esm/components/ImageAttributesGallery/ImageAttributesGallery.js +2 -3
  208. package/esm/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.d.ts +0 -5
  209. package/esm/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.js +6 -7
  210. package/esm/components/ImageDetailsView/MetaInfo/MetaInfo.js +3 -4
  211. package/esm/components/ImageDetailsView/MetaInfoList/MetaInfoItem/styles.d.ts +1 -1
  212. package/esm/components/ImageDetailsView/MetaInfoList/MetaInfoList.js +3 -4
  213. package/esm/components/ImageDetailsView/hooks/useEditMetaInfo.js +4 -11
  214. package/esm/components/MatchRulesBlock/SimpleMatchRules/styles.d.ts +1 -1
  215. package/esm/components/MatchRulesSelector/MatchRulesSelector.d.ts +1 -4
  216. package/esm/components/MatchRulesSelector/MatchRulesSelector.js +2 -4
  217. package/esm/components/ModeSwitcher/styles.d.ts +1 -1
  218. package/esm/components/PivotingUriLink/PivotingUriLink.js +2 -4
  219. package/esm/components/Popper/Popper.d.ts +1 -1
  220. package/esm/components/PotentialMatchReviewCard/styles.d.ts +1 -1
  221. package/esm/components/ProfileBand/ProfileBand.js +3 -4
  222. package/esm/components/ProfileBandNavigation/ProfileBandNavigationWidget.d.ts +1 -1
  223. package/esm/components/ProfileBandNavigation/hooks/useSearchNavigation.js +20 -32
  224. package/esm/components/ProfileBandNavigation/hooks/useSearchNavigationVisibility.js +4 -5
  225. package/esm/components/ProfilesList/ProfilesList.d.ts +2 -3
  226. package/esm/components/ProfilesList/ProfilesList.js +3 -1
  227. package/esm/components/RelationEditor/RelationEditor.js +49 -36
  228. package/esm/components/RelevanceScoreBadge/RelevanceScoreBadge.js +3 -4
  229. package/esm/components/SelectAttributesList/SelectAttributesList.js +2 -3
  230. package/esm/components/SmallIconButton/SmallIconButton.d.ts +1 -1
  231. package/esm/components/SmallIconButton/index.d.ts +1 -1
  232. package/esm/components/SourceIcon/SourceIcon.js +2 -3
  233. package/esm/components/SourceSystemsSelector/SourceSystemsSelector.js +2 -3
  234. package/esm/components/TenantLabel/TenantLabel.js +3 -4
  235. package/esm/components/TenantsDropDownSelector/TenantsDropDownSelector.js +3 -4
  236. package/esm/components/UploadImageDialog/TargetBox/styles.d.ts +1 -1
  237. package/esm/components/UploadImageDialog/UploadImageDialog.js +4 -5
  238. package/esm/components/UserSelector/UserSelector.js +3 -4
  239. package/esm/components/activityLog/ActivityExportButton/ActivityExportButton.js +6 -7
  240. package/esm/components/activityLog/ActivityFilterEditor/ActivityFilterEditor.js +2 -3
  241. package/esm/components/activityLog/ActivityFilterEditor/EntityChangedSelectors.js +2 -3
  242. package/esm/components/activityLog/ActivityFilterEditor/SourceSelector.js +3 -4
  243. package/esm/components/activityLog/ActivityLogFilter/ActivityLogFilter.d.ts +1 -1
  244. package/esm/components/activityLog/ActivityLogFilter/ActivityLogFilter.js +5 -3
  245. package/esm/components/activityLog/activities/GroupActivity.js +2 -3
  246. package/esm/components/activityLog/activities/RelationObject/styles.d.ts +1 -1
  247. package/esm/components/activityLog/activities/SearchActivity.js +6 -7
  248. package/esm/components/activityLog/activities/fields/DeltaField.js +7 -8
  249. package/esm/components/activityLog/activities/fields/commonStyles.d.ts +1 -1
  250. package/esm/components/activityLog/activities/records/EntityRecord.js +8 -9
  251. package/esm/components/attributes/AttributesView/AttributesView.d.ts +2 -2
  252. package/esm/components/attributes/AttributesView/AttributesView.js +10 -6
  253. package/esm/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +1 -1
  254. package/esm/components/attributes/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  255. package/esm/components/attributes/ImageAttributesLine/ImageAttributesLine.js +9 -10
  256. package/esm/components/attributes/OvIcon/OvIcon.d.ts +1 -1
  257. package/esm/components/attributes/OvIcon/OvIcon.js +5 -7
  258. package/esm/components/attributes/PivotingAttributes/PivotingTooltip.js +4 -6
  259. package/esm/components/attributes/PivotingAttributes/PivotingTooltipContent.js +3 -4
  260. package/esm/components/attributes/PivotingAttributes/styles.d.ts +1 -1
  261. package/esm/components/attributes/editMode/AttributesFactory/AttributesFactory.js +1 -1
  262. package/esm/components/attributes/editMode/AttributesPager/AttributeRenderer.d.ts +7 -2
  263. package/esm/components/attributes/editMode/AttributesPager/AttributesPager.d.ts +2 -38
  264. package/esm/components/attributes/editMode/AttributesPager/AttributesPager.js +12 -4
  265. package/esm/components/attributes/editMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
  266. package/esm/components/attributes/editMode/AttributesPager/index.d.ts +2 -39
  267. package/esm/components/attributes/editMode/AttributesPager/index.js +2 -19
  268. package/esm/components/attributes/editMode/AttributesPager/styles.d.ts +1 -1
  269. package/esm/components/attributes/editMode/AttributesPager/types.d.ts +21 -0
  270. package/esm/components/attributes/editMode/AttributesView/AttributesView.d.ts +1 -1
  271. package/esm/components/attributes/editMode/AttributesView/AttributesView.js +11 -13
  272. package/esm/components/attributes/editMode/EntityCreator/EntityCreator.d.ts +9 -24
  273. package/esm/components/attributes/editMode/EntityCreator/EntityCreator.js +7 -15
  274. package/esm/components/attributes/editMode/EntitySelector/EntitySelector.js +1 -1
  275. package/esm/components/attributes/editMode/EntitySelector/components/SingleValue.js +4 -7
  276. package/esm/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  277. package/esm/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.js +8 -10
  278. package/esm/components/attributes/editMode/MoreAttributesButton/useMoreAttributesItems.js +2 -3
  279. package/esm/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.js +18 -17
  280. package/esm/components/attributes/editMode/Roles/Roles.js +4 -5
  281. package/esm/components/attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor.js +5 -10
  282. package/esm/components/attributes/editMode/SimpleAttributeEditor/useAutopopulationContextValue.js +7 -7
  283. package/esm/components/attributes/editMode/Tags/Tags.js +3 -4
  284. package/esm/components/attributes/inline/ReferenceAttribute/ReferenceAttribute.js +4 -6
  285. package/esm/components/attributes/inline/common/SourceItem.js +3 -5
  286. package/esm/components/attributes/readMode/AttributesList/AttributesList.js +1 -1
  287. package/esm/components/attributes/readMode/AttributesPager/AttributesPager.d.ts +1 -3
  288. package/esm/components/attributes/readMode/AttributesPager/AttributesPager.js +7 -2
  289. package/esm/components/attributes/readMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
  290. package/esm/components/attributes/readMode/AttributesPager/MultiLineRenderer.d.ts +1 -2
  291. package/esm/components/attributes/readMode/AttributesPager/styles.d.ts +1 -1
  292. package/esm/components/attributes/readMode/AttributesView/AttributesView.d.ts +2 -2
  293. package/esm/components/attributes/readMode/AttributesView/AttributesView.js +4 -5
  294. package/esm/components/attributes/readMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  295. package/esm/components/attributes/readMode/ReferenceAttribute/ReferenceAttribute.js +4 -6
  296. package/esm/components/attributes/readMode/SpecialAttributes/Roles/Role.js +2 -3
  297. package/esm/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +3 -5
  298. package/esm/components/attributes/types/attributesView.d.ts +2 -7
  299. package/esm/components/crosswalks/AttributesTable/AddAttributesButton/AddAttributesButton.js +2 -3
  300. package/esm/components/crosswalks/AttributesTable/AttributesTable.js +2 -3
  301. package/esm/components/crosswalks/AttributesTable/cell-renderers/RuleTypeInfoButton.js +21 -17
  302. package/esm/components/crosswalks/AttributesTable/cell-renderers/WinnerSourcesRenderer.js +2 -4
  303. package/esm/components/crosswalks/CrosswalkAttributes/CrosswalkAttributes.js +9 -10
  304. package/esm/components/crosswalks/CrosswalkDragLayer/CrosswalkDragPreview.js +3 -4
  305. package/esm/components/crosswalks/CrosswalkRow/CrosswalkRow.js +12 -13
  306. package/esm/components/crosswalks/DummyCrosswalkRow/DummyCrosswalkRow.js +3 -4
  307. package/esm/components/editors/DataTypeValueEditor/useEditorContext.d.ts +3 -3
  308. package/esm/components/editors/DataTypeValueEditor/useEditorContext.js +10 -13
  309. package/esm/components/editors/DateRangeEditor/DateRangeEditor.d.ts +3 -3
  310. package/esm/components/editors/TypeaheadEditor/TypeaheadEditor.js +1 -1
  311. package/esm/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
  312. package/esm/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
  313. package/esm/components/history/HistoryMenuButton/HistoryMenuButton.js +5 -9
  314. package/esm/components/history/HistoryTree/HistoryTree.js +9 -8
  315. package/esm/components/history/HistoryTree/styles.d.ts +1 -1
  316. package/esm/components/history/ProfileBandHistory/ProfileBandHistory.js +5 -8
  317. package/esm/components/history/hooks/useHistoryDiff.js +8 -9
  318. package/esm/components/history/hooks/useHistorySlice.js +4 -5
  319. package/esm/components/index.d.ts +6 -6
  320. package/esm/components/index.js +6 -6
  321. package/esm/components/workflow/cards/GenericWorkflowTaskCard/styles.d.ts +1 -1
  322. package/esm/components/workflow/cards/PotentialMatchTaskCard/PotentialMatchTaskCard.js +4 -5
  323. package/esm/components/workflow/components/AttributesChanges/AttributesChanges.js +2 -3
  324. package/esm/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js +2 -3
  325. package/esm/components/workflow/components/WorkflowComments/styles.d.ts +1 -1
  326. package/esm/components/workflow/hooks/useWorkflowActions.js +5 -7
  327. package/esm/components/workflow/hooks/useWorkflowAssignee.js +4 -6
  328. package/esm/components/workflow/hooks/useWorkflowCheckPermission.js +24 -22
  329. package/esm/components/workflow/hooks/useWorkflowComments.js +4 -5
  330. package/esm/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.js +7 -8
  331. package/esm/components/workflow/hooks/useWorkflowDefinitions.js +5 -6
  332. package/esm/components/workflow/hooks/useWorkflowDueDate.js +4 -5
  333. package/esm/components/workflow/hooks/useWorkflowPriority.js +4 -5
  334. package/esm/components/workflow/hooks/useWorkflowProcessInstance.js +6 -7
  335. package/esm/components/workflow/hooks/useWorkflowTasks.js +11 -12
  336. package/esm/contexts/ActionsHookContext/index.d.ts +4 -1
  337. package/esm/contexts/CollaborationContext/index.js +1 -1
  338. package/esm/contexts/MdmModuleContext/context.d.ts +243 -0
  339. package/esm/contexts/MdmModuleContext/context.js +4 -0
  340. package/esm/contexts/MdmModuleContext/hooks.d.ts +139 -0
  341. package/esm/contexts/MdmModuleContext/hooks.js +139 -0
  342. package/esm/contexts/MdmModuleContext/index.d.ts +3 -0
  343. package/esm/contexts/MdmModuleContext/index.js +2 -0
  344. package/esm/contexts/MdmModuleContext/provider.d.ts +10 -0
  345. package/esm/contexts/MdmModuleContext/provider.js +8 -0
  346. package/esm/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.d.ts +22 -0
  347. package/esm/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.js +123 -0
  348. package/esm/contexts/MdmModuleContext/selectors/entity.d.ts +3 -0
  349. package/esm/contexts/MdmModuleContext/selectors/entity.js +6 -0
  350. package/esm/contexts/MdmModuleContext/selectors.d.ts +3 -0
  351. package/esm/contexts/MdmModuleContext/selectors.js +6 -0
  352. package/esm/contexts/index.d.ts +1 -0
  353. package/esm/contexts/index.js +1 -0
  354. package/esm/hooks/useAPI/useAPI.js +15 -18
  355. package/esm/hooks/useCollaboration.js +5 -6
  356. package/esm/hooks/useCommentsEntitiesMap.js +2 -3
  357. package/esm/hooks/useConfigPermissions.js +3 -4
  358. package/esm/hooks/useCustomScripts.js +14 -17
  359. package/esm/hooks/useEditableConnection.js +2 -3
  360. package/esm/hooks/useMarkAsNotMatchRequest.js +4 -5
  361. package/esm/hooks/useMatchesLoader.js +5 -6
  362. package/esm/hooks/useMergeAllRequest.js +16 -7
  363. package/esm/hooks/useReadableSearchState.js +8 -9
  364. package/esm/hooks/useRelationsLoader.js +9 -10
  365. package/esm/hooks/useScrollToAttributeError/styles.d.ts +1 -1
  366. package/esm/hooks/useUsers.js +4 -5
  367. package/package.json +3 -4
  368. package/cjs/components/ProfileBandNavigation/helpers/index.d.ts +0 -7
  369. package/cjs/components/ProfileBandNavigation/helpers/index.js +0 -70
  370. package/cjs/components/ProfileBandNavigation/types/index.d.ts +0 -15
  371. package/cjs/components/ProfileBandNavigation/types/index.js +0 -2
  372. package/cjs/components/ProfilesList/index.d.ts +0 -27
  373. package/cjs/components/ProfilesList/index.js +0 -16
  374. package/cjs/components/RelationEditor/index.d.ts +0 -6
  375. package/cjs/components/RelationEditor/index.js +0 -50
  376. package/cjs/components/attributes/AttributesView/index.d.ts +0 -7
  377. package/cjs/components/attributes/AttributesView/index.js +0 -15
  378. package/cjs/components/attributes/editMode/AttributesView/index.d.ts +0 -23
  379. package/cjs/components/attributes/editMode/AttributesView/index.js +0 -14
  380. package/cjs/components/attributes/editMode/EntityCreator/index.d.ts +0 -25
  381. package/cjs/components/attributes/editMode/EntityCreator/index.js +0 -42
  382. package/cjs/components/attributes/editMode/ReferenceAttribute/index.d.ts +0 -4
  383. package/cjs/components/attributes/editMode/ReferenceAttribute/index.js +0 -48
  384. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.d.ts +0 -2
  385. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.js +0 -34
  386. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.d.ts +0 -1
  387. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.js +0 -19
  388. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.d.ts +0 -1
  389. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.js +0 -20
  390. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.d.ts +0 -5
  391. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.js +0 -79
  392. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/types.d.ts +0 -11
  393. package/cjs/components/attributes/readMode/AttributesPager/index.d.ts +0 -28
  394. package/cjs/components/attributes/readMode/AttributesPager/index.js +0 -43
  395. package/cjs/components/attributes/readMode/AttributesView/index.d.ts +0 -23
  396. package/cjs/components/attributes/readMode/AttributesView/index.js +0 -14
  397. package/cjs/test-utils/store-utils.d.ts +0 -78
  398. package/cjs/test-utils/store-utils.js +0 -19
  399. package/esm/components/ProfileBandNavigation/helpers/index.d.ts +0 -7
  400. package/esm/components/ProfileBandNavigation/helpers/index.js +0 -66
  401. package/esm/components/ProfileBandNavigation/types/index.d.ts +0 -15
  402. package/esm/components/ProfileBandNavigation/types/index.js +0 -1
  403. package/esm/components/ProfilesList/index.d.ts +0 -27
  404. package/esm/components/ProfilesList/index.js +0 -10
  405. package/esm/components/RelationEditor/index.d.ts +0 -6
  406. package/esm/components/RelationEditor/index.js +0 -21
  407. package/esm/components/attributes/AttributesView/index.d.ts +0 -7
  408. package/esm/components/attributes/AttributesView/index.js +0 -9
  409. package/esm/components/attributes/editMode/AttributesView/index.d.ts +0 -23
  410. package/esm/components/attributes/editMode/AttributesView/index.js +0 -8
  411. package/esm/components/attributes/editMode/EntityCreator/index.d.ts +0 -25
  412. package/esm/components/attributes/editMode/EntityCreator/index.js +0 -13
  413. package/esm/components/attributes/editMode/ReferenceAttribute/index.d.ts +0 -4
  414. package/esm/components/attributes/editMode/ReferenceAttribute/index.js +0 -19
  415. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.d.ts +0 -2
  416. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.js +0 -27
  417. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.d.ts +0 -1
  418. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.js +0 -15
  419. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.d.ts +0 -1
  420. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.js +0 -13
  421. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.d.ts +0 -5
  422. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.js +0 -72
  423. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/types.d.ts +0 -11
  424. package/esm/components/attributes/readMode/AttributesPager/index.d.ts +0 -28
  425. package/esm/components/attributes/readMode/AttributesPager/index.js +0 -14
  426. package/esm/components/attributes/readMode/AttributesView/index.d.ts +0 -23
  427. package/esm/components/attributes/readMode/AttributesView/index.js +0 -8
  428. package/esm/test-utils/store-utils.d.ts +0 -78
  429. package/esm/test-utils/store-utils.js +0 -12
  430. /package/cjs/components/attributes/editMode/{SimpleAttributeEditor/selectors → AttributesPager}/types.js +0 -0
  431. /package/esm/components/attributes/editMode/{SimpleAttributeEditor/selectors → AttributesPager}/types.js +0 -0
@@ -1,5 +1,4 @@
1
1
  import React, { useRef } from 'react';
2
- import { useSelector } from 'react-redux';
3
2
  import i18n from 'ui-i18n';
4
3
  import { defaultTo, pipe, pluck } from 'ramda';
5
4
  import classnames from 'classnames';
@@ -7,18 +6,18 @@ import Typography from '@mui/material/Typography';
7
6
  import MultiSelect from '../ReactSelect/MultiSelect';
8
7
  import DropdownIndicatorWithIconButton from '../commonReactSelectComponents/DropdownIndicatorWithIconButton';
9
8
  import { getAllUsersForTenant, utils } from '@reltio/mdm-sdk';
10
- import mdmModule from '@reltio/mdm-module';
9
+ import { useMdmServicesPath, useMdmTenant } from '../../contexts';
11
10
  import { customStyles, useStyles } from './styles';
12
11
  var UserSelector = function (_a) {
13
12
  var selectedUsers = _a.selectedUsers, onChange = _a.onChange, className = _a.className, disableUnderline = _a.disableUnderline;
14
13
  var styles = useStyles();
14
+ var tenant = useMdmTenant();
15
+ var servicesPath = useMdmServicesPath();
15
16
  var valueToOption = function (value) { return ({ value: value, label: value }); };
16
17
  var prepareValues = function (values) { return values.map(valueToOption); };
17
18
  var filterUsers = function (inputValue) { return function (users) {
18
19
  return inputValue ? users.filter(function (username) { return utils.strings.search(username, inputValue); }) : users;
19
20
  }; };
20
- var tenant = useSelector(mdmModule.selectors.getTenant);
21
- var servicesPath = useSelector(mdmModule.selectors.getServicesPath);
22
21
  var cachedRequest = useRef();
23
22
  var getOptions = function (inputValue) {
24
23
  if (!cachedRequest.current) {
@@ -1,5 +1,4 @@
1
1
  import React, { useMemo, useState, useCallback } from 'react';
2
- import { useDispatch, useSelector } from 'react-redux';
3
2
  import i18n from 'ui-i18n';
4
3
  import Button from '@mui/material/Button';
5
4
  import Portal from '@mui/material/Portal';
@@ -8,17 +7,17 @@ import GetAppIcon from '@mui/icons-material/GetApp';
8
7
  import { SmallIconButtonWithTooltip } from '../../SmallIconButton';
9
8
  import ErrorPopup from '../../ErrorPopup/ErrorPopup';
10
9
  import DropDownMenuButton from '../../DropDownMenuButton/DropDownMenuButton';
11
- import mdmModule, { ui } from '@reltio/mdm-module';
12
10
  import { exportActivities, getRequestErrorMessage } from '@reltio/mdm-sdk';
13
11
  import { buildActivitiesFilterString } from '../utils/filters';
12
+ import { useMdmAction, useMdmExportPath, useMdmTenant } from '../../../contexts';
14
13
  import { useStyles } from './styles';
15
14
  var ActivityExportButton = function (_a) {
16
15
  var filters = _a.filters, _b = _a.exportTypes, exportTypes = _b === void 0 ? [] : _b;
17
16
  var styles = useStyles();
18
- var dispatch = useDispatch();
17
+ var openConsoleApp = useMdmAction('openConsoleApp');
18
+ var exportPath = useMdmExportPath();
19
+ var tenant = useMdmTenant();
19
20
  var _c = useState(false), showSnackbar = _c[0], setShowSnackbar = _c[1];
20
- var exportPath = useSelector(mdmModule.selectors.getExportPath);
21
- var tenant = useSelector(mdmModule.selectors.getTenant);
22
21
  var handleClickExport = useCallback(function (type) {
23
22
  var options = {
24
23
  filter: buildActivitiesFilterString(filters),
@@ -36,8 +35,8 @@ var ActivityExportButton = function (_a) {
36
35
  });
37
36
  };
38
37
  var handleOpenAppClick = useCallback(function () {
39
- dispatch(ui.actions.openConsoleApp('Export'));
40
- }, [dispatch]);
38
+ openConsoleApp('Export');
39
+ }, [openConsoleApp]);
41
40
  var menuItems = useMemo(function () {
42
41
  return exportTypes.map(function (type) { return ({
43
42
  text: type.toUpperCase(),
@@ -1,7 +1,5 @@
1
1
  import React, { useState } from 'react';
2
2
  import { curry, pipe, assoc, when, mergeLeft, always } from 'ramda';
3
- import { useSelector } from 'react-redux';
4
- import mdmModule from '@reltio/mdm-module';
5
3
  import i18n from 'ui-i18n';
6
4
  import Button from '@mui/material/Button';
7
5
  import Popover from '@mui/material/Popover';
@@ -16,12 +14,13 @@ import UserSelector from '../../UserSelector/UserSelector';
16
14
  import DateRangeSelector from './DateRangeSelector';
17
15
  import EntityChangedSelectors from './EntityChangedSelectors';
18
16
  import { useDidUpdateEffect } from '../../../hooks';
17
+ import { useMdmMetadata } from '../../../contexts';
19
18
  import { useStyles } from './styles';
20
19
  var ActivityFilterEditor = function (_a) {
21
20
  var value = _a.value, open = _a.open, entityType = _a.entityType, anchorEl = _a.anchorEl, onApply = _a.onApply, onCancel = _a.onCancel, onClear = _a.onClear;
22
21
  var styles = useStyles();
23
- var metadata = useSelector(mdmModule.selectors.getMetadata);
24
22
  var _b = useState(value), currentFilter = _b[0], setCurrentFilter = _b[1];
23
+ var metadata = useMdmMetadata();
25
24
  var clearCurrentFilter = function () { return setCurrentFilter(null); };
26
25
  var handlePropChange = curry(function (propName, value) {
27
26
  setCurrentFilter(pipe(when(always(propName === 'entityTypes'), assoc('attributes', [])), when(always(propName === 'activities'), mergeLeft({ attributes: [], entityTypes: [], sources: [] })), assoc(propName, value)));
@@ -1,17 +1,16 @@
1
1
  import React from 'react';
2
2
  import { map, prop } from 'ramda';
3
- import { useSelector } from 'react-redux';
4
- import mdmModule from '@reltio/mdm-module';
5
3
  import { findClosestCommonAncestor, getEntityType } from '@reltio/mdm-sdk';
6
4
  import AttributeSelector from '../../AttributeSelector/AttributeSelector';
7
5
  import EntityTypesSelector from './EntityTypesSelector';
8
6
  import SourceSelector from './SourceSelector';
7
+ import { useMdmMetadata } from '../../../contexts';
9
8
  import { useStyles } from './styles';
10
9
  var EntityChangedSelectors = function (_a) {
11
10
  var filter = _a.filter, entityType = _a.entityType, onPropChange = _a.onPropChange;
12
11
  var styles = useStyles();
13
- var metadata = useSelector(mdmModule.selectors.getMetadata);
14
12
  var _b = filter || {}, _c = _b.attributes, attributes = _c === void 0 ? [] : _c, _d = _b.sources, sources = _d === void 0 ? [] : _d, _e = _b.entityTypes, entityTypes = _e === void 0 ? [] : _e;
13
+ var metadata = useMdmMetadata();
15
14
  var closestEntityTypeAncestor = findClosestCommonAncestor(metadata, map(prop('uri'), entityTypes));
16
15
  var attributesEntityType = entityType || getEntityType(metadata, closestEntityTypeAncestor);
17
16
  return (React.createElement("div", { className: styles.selectorsGroup },
@@ -1,17 +1,16 @@
1
1
  import React from 'react';
2
2
  import i18n from 'ui-i18n';
3
+ import classnames from 'classnames';
3
4
  import { defaultTo, pipe, sortBy, prop } from 'ramda';
4
5
  import Typography from '@mui/material/Typography';
5
6
  import MultiSelect from '../../ReactSelect/MultiSelect';
6
- import { useSelector } from 'react-redux';
7
- import classnames from 'classnames';
8
- import mdmModule from '@reltio/mdm-module';
9
7
  import DropdownIndicatorWithIconButton from '../../commonReactSelectComponents/DropdownIndicatorWithIconButton';
8
+ import { useMdmMetadata } from '../../../contexts';
10
9
  import { customStyles, useStyles } from './styles';
11
10
  var SourceSelector = function (_a) {
12
11
  var selectedSources = _a.selectedSources, onChange = _a.onChange;
13
12
  var styles = useStyles();
14
- var metadata = useSelector(mdmModule.selectors.getMetadata);
13
+ var metadata = useMdmMetadata();
15
14
  var options = sortBy(function (option) { return option.label; })(metadata.sources);
16
15
  return (React.createElement("div", { className: styles.selectorWrapper, "data-reltio-id": "source-selector" },
17
16
  React.createElement(Typography, { className: classnames(styles.filterSubtitle, styles.labels), variant: 'subtitle1' }, i18n.text('Source')),
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { ActivitiesFilter } from '../types';
3
2
  import { TEntityType } from '@reltio/mdm-sdk';
3
+ import { ActivitiesFilter } from '../types';
4
4
  type Props = {
5
5
  value: ActivitiesFilter;
6
6
  onChange: (value: ActivitiesFilter) => void;
@@ -11,19 +11,21 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import React from 'react';
13
13
  import i18n from 'ui-i18n';
14
- import { useSelector } from 'react-redux';
15
- import mdmModule from '@reltio/mdm-module';
14
+ import { canUserMakeActivitiesExport } from '@reltio/mdm-sdk';
16
15
  import Tooltip from '@mui/material/Tooltip';
17
16
  import Typography from '@mui/material/Typography';
18
17
  import ActivityExportButton from '../ActivityExportButton/ActivityExportButton';
19
18
  import ActivityFilterButton from '../ActivityFilterButton/ActivityFilterButton';
20
19
  import { getFilterLabel } from './helpers';
20
+ import { useMdmTenant, useMdmUser } from '../../../contexts';
21
21
  import { useStyles } from './styles';
22
22
  var ActivityLogFilter = function (_a) {
23
23
  var value = _a.value, entityType = _a.entityType, entityUri = _a.entityUri, onChange = _a.onChange, exportTypes = _a.exportTypes;
24
24
  var styles = useStyles();
25
+ var user = useMdmUser();
26
+ var tenant = useMdmTenant();
27
+ var canExport = canUserMakeActivitiesExport(user, tenant);
25
28
  var filterLabel = getFilterLabel(value);
26
- var canExport = useSelector(mdmModule.selectors.getCanUserMakeActivitiesExport);
27
29
  return (React.createElement("div", { className: styles.header },
28
30
  React.createElement(Typography, { variant: "body2", className: styles.label }, i18n.text('Filter:')),
29
31
  React.createElement(Tooltip, { title: filterLabel },
@@ -1,14 +1,13 @@
1
1
  import React from 'react';
2
- import { useSelector } from 'react-redux';
3
- import mdmModule from '@reltio/mdm-module';
4
2
  import ActivityTitle from './ActivityTitle/ActivityTitle';
5
3
  import { getGroupLabelByTypeUri, getLabel } from '@reltio/mdm-sdk';
4
+ import { useMdmMetadata } from '../../../contexts';
6
5
  import { useStyles } from './styles';
7
6
  var GroupActivity = function (_a) {
8
7
  var _b, _c;
9
8
  var data = _a.data, type = _a.type;
10
9
  var styles = useStyles();
11
- var metadata = useSelector(mdmModule.selectors.getMetadata);
10
+ var metadata = useMdmMetadata();
12
11
  var label = getGroupLabelByTypeUri(metadata, (_c = (_b = data.items) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.objectType);
13
12
  return (React.createElement(ActivityTitle, { type: type },
14
13
  React.createElement("span", { className: styles.objectLabel }, getLabel(label))));
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"link" | "delimiter" | "relationship">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"link" | "relationship" | "delimiter">;
@@ -1,23 +1,22 @@
1
1
  import React, { useMemo } from 'react';
2
- import { useDispatch } from 'react-redux';
3
- import { ui } from '@reltio/mdm-module';
4
- import ActivityTitle from './ActivityTitle/ActivityTitle';
5
2
  import { always, pipe } from 'ramda';
3
+ import i18n from 'ui-i18n';
4
+ import ActivityTitle from './ActivityTitle/ActivityTitle';
6
5
  import { parseJSON } from '../../../core';
7
6
  import { useReadableSearchState } from '../../../hooks';
8
- import i18n from 'ui-i18n';
7
+ import { useMdmAction } from '../../../contexts';
9
8
  import { useStyles } from './styles';
10
9
  var SearchActivity = function (_a) {
11
10
  var data = _a.data, type = _a.type;
12
11
  var styles = useStyles();
13
- var dispatch = useDispatch();
12
+ var openSearch = useMdmAction('openSearch');
14
13
  var searchState = useMemo(function () {
15
14
  var searchData = parseJSON(data.description);
16
15
  return searchData.version === '2.0' ? searchData.activity.uiState : searchData;
17
16
  }, [data.description]);
18
- var openSearch = pipe(always(searchState), ui.actions.openSearch, dispatch);
17
+ var handleOpenSearch = pipe(always(searchState), openSearch);
19
18
  var searchString = useReadableSearchState(searchState);
20
19
  return (React.createElement(ActivityTitle, { type: type },
21
- React.createElement("span", { className: styles.link, onClick: openSearch }, searchString || i18n.text('all profiles'))));
20
+ React.createElement("span", { className: styles.link, onClick: handleOpenSearch }, searchString || i18n.text('all profiles'))));
22
21
  };
23
22
  export default SearchActivity;
@@ -1,21 +1,20 @@
1
+ import React from 'react';
2
+ import classnames from 'classnames';
3
+ import { DeltaTypes } from '../../types';
1
4
  import Chip from '@mui/material/Chip';
2
5
  import ArrowForwardIcon from '@mui/icons-material/ArrowForward';
3
- import mdmModule from '@reltio/mdm-module';
4
6
  import { findAttributeTypeByUri } from '@reltio/mdm-sdk';
5
- import classnames from 'classnames';
6
- import React from 'react';
7
- import { useSelector } from 'react-redux';
8
- import { DeltaTypes } from '../../types';
9
7
  import { stringifyDeltaValue } from '../../utils/activities';
10
- import { useStyles } from './styles';
8
+ import { useMdmMetadata, useMdmAttributePresentations } from '../../../../contexts';
11
9
  import { useCommonStyles } from './commonStyles';
10
+ import { useStyles } from './styles';
12
11
  var DeltaField = function (_a) {
13
12
  var _b, _c;
14
13
  var delta = _a.delta;
15
14
  var styles = useStyles();
16
15
  var commonStyles = useCommonStyles();
17
- var metadata = useSelector(mdmModule.selectors.getMetadata);
18
- var attributePresentations = useSelector(mdmModule.selectors.getAttributePresentations);
16
+ var metadata = useMdmMetadata();
17
+ var attributePresentations = useMdmAttributePresentations();
19
18
  var attribute = findAttributeTypeByUri(metadata, delta.attributeType);
20
19
  var newValue = (_b = delta.newValue) === null || _b === void 0 ? void 0 : _b.value;
21
20
  var oldValue = (_c = delta.oldValue) === null || _c === void 0 ? void 0 : _c.value;
@@ -1 +1 @@
1
- export declare const useCommonStyles: (props?: any) => import("@mui/styles").ClassNameMap<"fieldName" | "link" | "field">;
1
+ export declare const useCommonStyles: (props?: any) => import("@mui/styles").ClassNameMap<"link" | "fieldName" | "field">;
@@ -1,23 +1,22 @@
1
- import Typography from '@mui/material/Typography';
2
- import RestoreIcon from '@mui/icons-material/Restore';
3
- import { ui } from '@reltio/mdm-module';
4
- import { getEntityPreviousChange } from '@reltio/mdm-sdk';
5
1
  import React from 'react';
6
- import { useDispatch } from 'react-redux';
7
2
  import i18n from 'ui-i18n';
8
3
  import { path } from 'ramda';
4
+ import { getEntityPreviousChange } from '@reltio/mdm-sdk';
5
+ import Typography from '@mui/material/Typography';
6
+ import RestoreIcon from '@mui/icons-material/Restore';
9
7
  import { ActivityTypes } from '../../types';
10
8
  import EntityObject from '../EntityObject/EntityObject';
11
9
  import RecordUpdates from './RecordUpdates';
10
+ import { useMdmAction } from '../../../../contexts';
12
11
  import { useStyles } from './styles';
13
12
  var EntityRecord = function (_a) {
14
13
  var _b;
15
14
  var item = _a.item;
16
15
  var styles = useStyles();
17
- var dispatch = useDispatch();
16
+ var openHistoryEvent = useMdmAction('openHistoryEvent');
18
17
  var deltaArray = (_b = item.deltaCollection) === null || _b === void 0 ? void 0 : _b.delta;
19
18
  var isEntityChanged = path(['data', 'type'])(item) === ActivityTypes.ENTITY_CHANGED;
20
- var openHistoryEvent = function () {
19
+ var handleOpenHistoryEvent = function () {
21
20
  getEntityPreviousChange(item.objectUri, item.timestamp)
22
21
  .then(function (previousTimestamp) {
23
22
  if (previousTimestamp !== -1) {
@@ -25,7 +24,7 @@ var EntityRecord = function (_a) {
25
24
  aStamp: item.timestamp,
26
25
  bStamp: previousTimestamp
27
26
  };
28
- dispatch(ui.actions.openHistoryEvent({ entityUri: item.objectUri, historyEvent: historyEvent }));
27
+ openHistoryEvent({ entityUri: item.objectUri, historyEvent: historyEvent });
29
28
  }
30
29
  })
31
30
  .catch(function (err) { return console.error(err); });
@@ -34,7 +33,7 @@ var EntityRecord = function (_a) {
34
33
  React.createElement(Typography, { className: styles.label },
35
34
  !deltaArray && React.createElement("span", { className: styles.description }, i18n.text('Profile changed')),
36
35
  React.createElement(EntityObject, { item: item })),
37
- isEntityChanged && React.createElement(RestoreIcon, { className: styles.restoreIcon, onClick: openHistoryEvent }),
36
+ isEntityChanged && (React.createElement(RestoreIcon, { "data-reltio-id": "reltio-entity-record-restore-icon", className: styles.restoreIcon, onClick: handleOpenHistoryEvent })),
38
37
  React.createElement(RecordUpdates, { updates: deltaArray, recordId: item.id })));
39
38
  };
40
39
  export default EntityRecord;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { AttributesViewOwnProps } from '../types';
3
- declare const AttributesView: ({ mode, attributesCount, pinnedAttributes, entity, ...restProps }: AttributesViewOwnProps) => JSX.Element;
2
+ import { AttributesViewProps } from '../types';
3
+ declare const AttributesView: ({ attributesCount, pinnedAttributes, ...restProps }: AttributesViewProps) => JSX.Element;
4
4
  export default AttributesView;
@@ -21,12 +21,16 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  return t;
22
22
  };
23
23
  import React from 'react';
24
- import { isViewMode, Mode } from '@reltio/mdm-sdk';
25
- import ReadModeAttributesView from '../readMode/AttributesView';
26
- import EditModeAttributesView from '../editMode/AttributesView';
27
- import { EntityContext } from '../../../contexts';
24
+ import { isViewMode } from '@reltio/mdm-sdk';
25
+ import ReadModeAttributesView from '../readMode/AttributesView/AttributesView';
26
+ import EditModeAttributesView from '../editMode/AttributesView/AttributesView';
27
+ import { useMdmEntityWithDiff, useMdmMode, EntityContext } from '../../../contexts';
28
28
  var AttributesView = function (_a) {
29
- var _b = _a.mode, mode = _b === void 0 ? Mode.Viewing : _b, attributesCount = _a.attributesCount, pinnedAttributes = _a.pinnedAttributes, entity = _a.entity, restProps = __rest(_a, ["mode", "attributesCount", "pinnedAttributes", "entity"]);
30
- return (React.createElement(EntityContext.Provider, { value: entity }, isViewMode(mode) ? (React.createElement(ReadModeAttributesView, __assign({ attributesCount: attributesCount, entity: entity }, restProps))) : (React.createElement(EditModeAttributesView, __assign({ mode: mode, pinnedAttributes: pinnedAttributes, entity: entity }, restProps)))));
29
+ var attributesCount = _a.attributesCount, pinnedAttributes = _a.pinnedAttributes, restProps = __rest(_a, ["attributesCount", "pinnedAttributes"]);
30
+ var mdmEntity = useMdmEntityWithDiff();
31
+ var mdmMode = useMdmMode();
32
+ var entity = restProps.entity || mdmEntity;
33
+ var mode = restProps.mode || mdmMode;
34
+ return (React.createElement(EntityContext.Provider, { value: entity }, isViewMode(mode) ? (React.createElement(ReadModeAttributesView, __assign({}, restProps, { attributesCount: attributesCount, entity: entity }))) : (React.createElement(EditModeAttributesView, __assign({}, restProps, { mode: mode, pinnedAttributes: pinnedAttributes, entity: entity })))));
31
35
  };
32
36
  export default AttributesView;
@@ -25,7 +25,7 @@ export declare const ChipWithTooltip: React.ForwardRefExoticComponent<import("pr
25
25
  variant?: import("@mui/types").OverridableStringUnion<"filled" | "outlined", import("@mui/material/Chip").ChipPropsVariantOverrides>;
26
26
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
27
27
  ref?: React.Ref<HTMLDivElement>;
28
- }, "label" | "icon" | "children" | "size" | "color" | "disabled" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "tabIndex" | "variant" | "deleteIcon" | "avatar" | "clickable" | "onDelete" | "skipFocusWhenDisabled">>;
28
+ }, "label" | "icon" | "children" | "size" | "color" | "disabled" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "tabIndex" | "variant" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled">>;
29
29
  type Props = {
30
30
  className?: string;
31
31
  description?: string;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- import { RequestNextPageOfAttributeValuesPayload } from '@reltio/mdm-module';
3
- import { AttributeType, ImageAttributeValue, Paging, AttributeItem } from '@reltio/mdm-sdk';
2
+ import { AttributeType, ImageAttributeValue, Paging, AttributeItem, RequestNextPageOfAttributeValuesPayload } from '@reltio/mdm-sdk';
4
3
  import { SIZES_TYPE } from './styles';
5
4
  export type ImageRenderProps = {
6
5
  onDownload?: (url: string[]) => void;
@@ -10,21 +10,16 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import React, { useCallback, useContext, useEffect, useRef, useState } from 'react';
13
- import { useDispatch, useSelector } from 'react-redux';
14
13
  import ReactResizeDetector from 'react-resize-detector';
15
14
  import Typography from '@mui/material/Typography';
16
- import mdm, { profile } from '@reltio/mdm-module';
17
15
  import { insertDefaultImageByAttrUri } from '@reltio/mdm-sdk';
18
- import { BlockImageGalleryDialogContext } from '../../../contexts';
16
+ import { BlockImageGalleryDialogContext, useMdmAction, useMdmEntity, useMdmIsViewMode } from '../../../contexts';
19
17
  import ImageAttributesGallery from '../../ImageAttributesGallery/ImageAttributesGallery';
20
18
  import { downloadImagesByURLs } from '../helpers/imageAttributes';
21
19
  import { DEFAULT_IMAGE_SIZE, IMAGE_MIN_VISIBLE_WIDTH } from './constants';
22
20
  import { useStyles } from './styles';
23
21
  var ImageAttributesLine = function (_a) {
24
22
  var attributeType = _a.attributeType, _b = _a.attributeValues, attributeValues = _b === void 0 ? [] : _b, renderImage = _a.renderImage, _c = _a.overlay, overlay = _c === void 0 ? false : _c, _d = _a.countFixedItems, countFixedItems = _d === void 0 ? 0 : _d, children = _a.children, onUpload = _a.onUpload, onDeleteAttribute = _a.onDeleteAttribute, _e = _a.imageSize, imageSize = _e === void 0 ? DEFAULT_IMAGE_SIZE : _e, paging = _a.paging, parentUri = _a.parentUri, showNonOv = _a.showNonOv, requestNextPageOfAttributeValues = _a.requestNextPageOfAttributeValues;
25
- var entity = useSelector(mdm.selectors.getEntity) || {};
26
- var isViewMode = useSelector(mdm.selectors.getIsViewMode);
27
- var dispatch = useDispatch();
28
23
  var styles = useStyles(imageSize);
29
24
  useEffect(function () {
30
25
  if (paging && requestNextPageOfAttributeValues) {
@@ -46,6 +41,10 @@ var ImageAttributesLine = function (_a) {
46
41
  var isBlockImageGalleryDialog = useContext(BlockImageGalleryDialogContext);
47
42
  var _h = useState(false), isOpenDialog = _h[0], setIsOpenDialog = _h[1];
48
43
  var _j = useState(), currentAttributeValueUri = _j[0], setCurrentAttributeValueUri = _j[1];
44
+ var setDefaultProfilePicForEntity = useMdmAction('setDefaultProfilePicForEntity');
45
+ var setDefaultProfilePicForModifiedEntity = useMdmAction('setDefaultProfilePicForModifiedEntity');
46
+ var entity = useMdmEntity() || {};
47
+ var isViewMode = useMdmIsViewMode();
49
48
  var adjustMaxItemsToScreenWidth = useCallback(function (width) {
50
49
  var imageMargin = imageSize.imageMargin, imageWidth = imageSize.imageWidth;
51
50
  var maxItemsPerScreen = Math.floor((width + imageMargin) / (imageWidth + imageMargin)) - countFixedItems;
@@ -84,17 +83,17 @@ var ImageAttributesLine = function (_a) {
84
83
  insertDefaultImageByAttrUri(entity.uri, attributeValue.uri).then(function (_a) {
85
84
  var status = _a.status;
86
85
  if (status === 'success') {
87
- dispatch(profile.entity.actions.setDefaultProfilePic(attributeValue));
86
+ setDefaultProfilePicForEntity(attributeValue);
88
87
  }
89
88
  });
90
89
  }
91
90
  else {
92
- dispatch(profile.modifiedEntities.actions.setDefaultProfilePic({
91
+ setDefaultProfilePicForModifiedEntity({
93
92
  entityUri: entity.uri,
94
93
  value: attributeValue
95
- }));
94
+ });
96
95
  }
97
- }, [isViewMode, entity.uri, dispatch]);
96
+ }, [isViewMode, entity.uri, setDefaultProfilePicForEntity, setDefaultProfilePicForModifiedEntity]);
98
97
  var renderImageProps = __assign({ onOpenImageGalleryDialog: handleOpenImageGalleryDialog }, (overlay && {
99
98
  onDownload: handleDownload,
100
99
  onShareLink: handleShareLink,
@@ -26,7 +26,7 @@ export declare const ChipWithTooltip: React.ForwardRefExoticComponent<import("pr
26
26
  variant?: import("@mui/types").OverridableStringUnion<"filled" | "outlined", import("@mui/material/Chip").ChipPropsVariantOverrides>;
27
27
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
28
28
  ref?: React.Ref<HTMLDivElement>;
29
- }, "label" | "icon" | "children" | "size" | "color" | "disabled" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "tabIndex" | "variant" | "deleteIcon" | "avatar" | "clickable" | "onDelete" | "skipFocusWhenDisabled">>;
29
+ }, "label" | "icon" | "children" | "size" | "color" | "disabled" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "tabIndex" | "variant" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled">>;
30
30
  type ComplexWithLabel = NestedAttributeValue | ReferenceAttributeValue;
31
31
  type Props = {
32
32
  className?: string;
@@ -1,24 +1,22 @@
1
1
  import React, { useCallback, useContext } from 'react';
2
2
  import classnames from 'classnames';
3
- import { useDispatch } from 'react-redux';
4
- import Chip from '@mui/material/Chip';
5
3
  import { getAttrDataTypeDefinition, getAttributeValue, isComplexAttribute, getLabel } from '@reltio/mdm-sdk';
6
- import { ui } from '@reltio/mdm-module';
4
+ import Chip from '@mui/material/Chip';
7
5
  import DataTypeValue from '../../DataTypeValue/DataTypeValue';
8
6
  import { withTooltip } from '../../../HOCs';
9
- import { EntityContext } from '../../../contexts';
7
+ import { EntityContext, useMdmAction } from '../../../contexts';
10
8
  import { getEntityUri } from './heplers';
11
9
  import { useStyles } from './styles';
12
10
  export var ChipWithTooltip = withTooltip(Chip);
13
11
  var OvIcon = function (_a) {
14
12
  var className = _a.className, attributeType = _a.attributeType, _b = _a.nonOvValues, nonOvValues = _b === void 0 ? [] : _b, nonOvTotal = _a.nonOvTotal;
15
13
  var styles = useStyles();
16
- var dispatch = useDispatch();
14
+ var openEntity = useMdmAction('openEntity');
17
15
  var entity = useContext(EntityContext);
18
16
  var entityUri = getEntityUri(entity, nonOvValues);
19
17
  var onClick = useCallback(function () {
20
- dispatch(ui.actions.openEntity({ uri: entityUri, viewId: null, screen: 'sources' }));
21
- }, [dispatch, entityUri]);
18
+ openEntity({ uri: entityUri, viewId: null, screen: 'sources' });
19
+ }, [openEntity, entityUri]);
22
20
  if (!nonOvTotal) {
23
21
  return null;
24
22
  }
@@ -1,10 +1,8 @@
1
1
  import React, { useContext } from 'react';
2
- import { useDispatch, useSelector } from 'react-redux';
3
2
  import Tooltip from '@mui/material/Tooltip';
4
- import mdm, { ui as mdmModuleUi } from '@reltio/mdm-module';
5
3
  import { isNested } from '@reltio/mdm-sdk';
6
4
  import { isNil } from 'ramda';
7
- import { PivotingAttributeContext } from '../../../contexts';
5
+ import { PivotingAttributeContext, useMdmAction, useMdmMetadata } from '../../../contexts';
8
6
  import { convertNestedAttributePivotingValue, convertSimpleAttributePivotingValue, generatePivotingValue, preparePivotingAttributeValue } from './helpers';
9
7
  import PivotingIcon from '../../../icons/PivotingIcon';
10
8
  import { PivotingTooltipContent } from './PivotingTooltipContent';
@@ -14,10 +12,10 @@ export var PivotingTooltip = function (_a) {
14
12
  var value = _a.value, attributeType = _a.attributeType, children = _a.children, className = _a.className;
15
13
  var styles = usePivotingTooltipStyles();
16
14
  var contentStyles = useStyles();
17
- var dispatch = useDispatch();
18
15
  var pivotingAttributesList = useContext(PivotingAttributeContext) || [];
16
+ var openPivotingPerspective = useMdmAction('openPivotingPerspective');
17
+ var metadata = useMdmMetadata() || {};
19
18
  var isNestedAttribute = isNested(attributeType);
20
- var metadata = useSelector(mdm.selectors.getMetadata) || {};
21
19
  var pivotingValue = isNestedAttribute
22
20
  ? generatePivotingValue(attributeType, value.value, pivotingAttributesList, metadata)
23
21
  : preparePivotingAttributeValue(value.lookupCode || value.value, attributeType);
@@ -38,7 +36,7 @@ export var PivotingTooltip = function (_a) {
38
36
  };
39
37
  var generatedValue = isPivotingAttribute ? convertPivotingValue() : undefined;
40
38
  var handleSeeAllClick = function () {
41
- dispatch(mdmModuleUi.actions.openPivotingPerspective({ value: generatedValue, attributeType: attributeType }));
39
+ openPivotingPerspective({ value: generatedValue, attributeType: attributeType });
42
40
  };
43
41
  return isPivotingAttribute ? (React.createElement(Tooltip, { arrow: true, placement: "right-start", classes: styles, disableInteractive: false, title: React.createElement(PivotingTooltipContent, { value: pivotingValue, generatedValue: generatedValue, attributeType: attributeType, config: pivotingAttribute.popup, onSeeAllClick: handleSeeAllClick }) },
44
42
  React.createElement("span", { className: className },
@@ -10,24 +10,23 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import React, { useEffect, useState } from 'react';
13
- import { useSelector } from 'react-redux';
14
13
  import i18n from 'ui-i18n';
15
- import mdm from '@reltio/mdm-module';
16
14
  import { getEntityUriForLink, getFilteredEntities, getLabel, getTotals, convertPivotingValueToSearchFilters } from '@reltio/mdm-sdk';
17
15
  import EntityAvatar from '../../EntityAvatar/EntityAvatar';
18
16
  import EntityUriLink from '../../EntityUriLink/EntityUriLink';
19
17
  import PivotingUriLink from '../../PivotingUriLink/PivotingUriLink';
20
18
  import { useSafePromise } from '../../../hooks';
19
+ import { useMdmEntity, useMdmGlobalSearchRequestOptions } from '../../../contexts';
21
20
  import { useStyles } from './styles';
22
21
  var MAX_ENTITIES_PIVOTING_TOOLTIP = 6;
23
22
  export var PivotingTooltipContent = function (_a) {
24
23
  var value = _a.value, attributeType = _a.attributeType, _b = _a.config, config = _b === void 0 ? {} : _b, generatedValue = _a.generatedValue, onSeeAllClick = _a.onSeeAllClick;
25
24
  var _c = useState([]), entities = _c[0], setEntities = _c[1];
26
25
  var _d = useState(0), total = _d[0], setTotal = _d[1];
27
- var entity = useSelector(mdm.selectors.getEntity) || {};
28
26
  var safePromise = useSafePromise();
29
27
  var styles = useStyles();
30
- var globalSearchRequestOptions = useSelector(mdm.selectors.getGlobalSearchRequestOptions) || {};
28
+ var entity = useMdmEntity() || {};
29
+ var globalSearchRequestOptions = useMdmGlobalSearchRequestOptions() || {};
31
30
  var entityType = config.entityType || entity.type;
32
31
  var shouldShowSeeAllButton = total > MAX_ENTITIES_PIVOTING_TOOLTIP;
33
32
  useEffect(function () {
@@ -1,2 +1,2 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"content" | "title" | "icon" | "entityLabel" | "body" | "entityTypeLabel" | "footer" | "header" | "container" | "divider" | "headerCount" | "profileIcon" | "entityContainer" | "seeAllButton">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"content" | "icon" | "entityLabel" | "title" | "body" | "entityTypeLabel" | "footer" | "header" | "container" | "divider" | "headerCount" | "profileIcon" | "entityContainer" | "seeAllButton">;
2
2
  export declare const usePivotingTooltipStyles: (props?: any) => import("@mui/styles").ClassNameMap<"tooltip" | "arrow">;
@@ -24,7 +24,7 @@ import React from 'react';
24
24
  import { DataTypes, isReltioCrosswalk } from '@reltio/mdm-sdk';
25
25
  import SimpleAttributeEditor from '../SimpleAttributeEditor/SimpleAttributeEditor';
26
26
  import NestedAttribute from '../NestedAttribute/NestedAttribute';
27
- import ReferenceAttribute from '../ReferenceAttribute';
27
+ import ReferenceAttribute from '../ReferenceAttribute/ReferenceAttribute';
28
28
  var EditModeAttributesFactory = /** @class */ (function () {
29
29
  function EditModeAttributesFactory() {
30
30
  }
@@ -1,9 +1,14 @@
1
1
  import React from 'react';
2
- import { AttributeValue, NestedAttributeValue, ReferenceAttributeValue, SimpleAttributeValue } from '@reltio/mdm-sdk';
3
- import { AttributePagerProps } from './index';
2
+ import { AttributeValue, NestedAttributeValue, ReferenceAttributeValue, SimpleAttributeValue, AttributeError, RequestNextPageOfAttributeValuesPayload } from '@reltio/mdm-sdk';
3
+ import { AttributePagerProps } from './types';
4
4
  type Props = Omit<AttributePagerProps, 'values'> & {
5
5
  values?: (SimpleAttributeValue | NestedAttributeValue | ReferenceAttributeValue)[];
6
6
  nonVisibleValues: AttributeValue[];
7
+ errorMessage?: string;
8
+ errors?: AttributeError[];
9
+ max?: number;
10
+ onDeactivateError?: (id: string) => void;
11
+ requestNextPageOfAttributeValues?: (payload: RequestNextPageOfAttributeValuesPayload) => void;
7
12
  };
8
13
  declare const _default: React.MemoExoticComponent<{
9
14
  ({ max, values, attributeType, parentUri, mode, drawLines, showEmptyEditors, errorMessage, errors, paging, crosswalks, showNonOv, nonVisibleValues, highlightedError, highlightedAttribute, onAddAttributes, onDeleteAttribute, onChangeAttribute, onDeactivateError, additionalControlsRenderer, requestNextPageOfAttributeValues }: Props): JSX.Element;
@@ -1,40 +1,4 @@
1
1
  import React from 'react';
2
- import { AttributeError, AttributeType, Mode, NestedAttributeValue, ReferenceAttributeValue, SimpleAttributeValue } from '@reltio/mdm-sdk';
3
- declare const _default: React.ComponentType<{
4
- errorMessage: string;
5
- errors: AttributeError[];
6
- max: number;
7
- } & {
8
- onDeactivateError: (id: string) => void;
9
- requestNextPageOfAttributeValues: (payload: import("@reltio/mdm-module").RequestNextPageOfAttributeValuesPayload) => void;
10
- } & {
11
- values: (string | number | SimpleAttributeValue | NestedAttributeValue | ReferenceAttributeValue | import("@reltio/mdm-sdk").ImageAttributeValue)[];
12
- attributeType: AttributeType;
13
- paging?: import("@reltio/mdm-sdk").Paging;
14
- mode?: Mode;
15
- crosswalks?: import("@reltio/mdm-sdk").Crosswalk[];
16
- parentUri: string;
17
- drawLines: boolean;
18
- max?: number;
19
- showEmptyEditors: boolean;
20
- showNonOv?: boolean;
21
- onAddAttributes: (params: import("@reltio/mdm-sdk").AttributeItem[]) => void;
22
- onDeleteAttribute: (param: import("@reltio/mdm-sdk").AttributeItem) => void;
23
- onChangeAttribute: (param: import("@reltio/mdm-sdk").AttributeItem) => void;
24
- additionalControlsRenderer?: (props: any) => JSX.Element;
25
- highlightedError?: {
26
- element: unknown;
27
- type: import("../../../../contexts").ScrollType;
28
- highlightError?: (element: unknown) => void;
29
- highlightAttribute?: (element: unknown) => void;
30
- scrollIntoRef: (ref: React.MutableRefObject<HTMLDivElement>) => void;
31
- };
32
- highlightedAttribute?: {
33
- element: unknown;
34
- type: import("../../../../contexts").ScrollType;
35
- highlightError?: (element: unknown) => void;
36
- highlightAttribute?: (element: unknown) => void;
37
- scrollIntoRef: (ref: React.MutableRefObject<HTMLDivElement>) => void;
38
- };
39
- }>;
2
+ import { AttributePagerProps } from './types';
3
+ declare const _default: React.ComponentType<AttributePagerProps>;
40
4
  export default _default;