@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
@@ -30,13 +30,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
30
30
  return to.concat(ar || Array.prototype.slice.call(from));
31
31
  };
32
32
  import { useContext, useEffect, useRef } from 'react';
33
- import { useDispatch, useSelector } from 'react-redux';
34
- import mdmModule, { ui } from '@reltio/mdm-module';
35
33
  import { CustomAction, initializeWebWorker, isEmptyValue } from '@reltio/mdm-sdk';
36
34
  import { nanoid } from 'nanoid';
37
35
  import { omit } from 'ramda';
38
36
  import { useWorkflowCheckPermission } from '../components/workflow';
39
- import { InterceptHandlersContext, SandboxAPIContext, SnackbarContext } from '../contexts';
37
+ import { InterceptHandlersContext, SandboxAPIContext, SnackbarContext, useMdmAction, useMdmApiPath, useMdmEntity, useMdmEntityUri, useMdmMetadata, useMdmReltioPath, useMdmSearchProviderData, useMdmServicesPath, useMdmTenant, useMdmUiPath, useMdmUser, useMdmWorkflowEnvironmentUrl, useMdmWorkflowPath } from '../contexts';
40
38
  import { getWorkerURL, processRequest } from './useAPI';
41
39
  import { isValidCustomScript, isURLtoProcess, getProcessedTask, getRequestFakeUrl, getResponseFakeUrl } from './useAPI/helpers';
42
40
  var getCustomViewConfig = function (config) {
@@ -54,22 +52,21 @@ export var useCustomScripts = function (config) {
54
52
  var showSnackbarMessage = useContext(SnackbarContext);
55
53
  var _b = useContext(InterceptHandlersContext), addInternalRequestInterceptor = _b.addInternalRequestInterceptor, addInternalResponseInterceptor = _b.addInternalResponseInterceptor, removeInternalRequestInterceptor = _b.removeInternalRequestInterceptor, removeInternalResponseInterceptor = _b.removeInternalResponseInterceptor;
56
54
  var qxApi = useContext(SandboxAPIContext);
57
- var dispatch = useDispatch();
58
- var metadata = (_a = useSelector(mdmModule.selectors.getMetadata)) !== null && _a !== void 0 ? _a : null;
59
- var entity = useSelector(mdmModule.selectors.getEntity) || {};
60
- var uiPath = useSelector(mdmModule.selectors.getUIPath);
61
- var servicesPath = useSelector(mdmModule.selectors.getServicesPath);
62
- var reltioPath = useSelector(mdmModule.selectors.getReltioPath);
63
- var tenant = useSelector(mdmModule.selectors.getTenant);
55
+ var openSearch = useMdmAction('openSearch');
56
+ var metadata = (_a = useMdmMetadata()) !== null && _a !== void 0 ? _a : null;
57
+ var entity = useMdmEntity() || {};
58
+ var uiPath = useMdmUiPath();
59
+ var servicesPath = useMdmServicesPath();
60
+ var reltioPath = useMdmReltioPath();
61
+ var tenant = useMdmTenant();
64
62
  var workerUrl = getWorkerURL(uiPath, tenant);
65
- var apiPath = useSelector(mdmModule.selectors.getApiPath);
66
- var workflowPath = useSelector(mdmModule.selectors.getWorkflowPath);
67
- var user = useSelector(mdmModule.selectors.getUser);
68
- var entityUri = useSelector(mdmModule.selectors.getEntityUri);
69
- var environment = useSelector(mdmModule.selectors.getWorkflowEnvironmentUrl);
63
+ var apiPath = useMdmApiPath();
64
+ var workflowPath = useMdmWorkflowPath();
65
+ var user = useMdmUser();
66
+ var entityUri = useMdmEntityUri();
67
+ var environment = useMdmWorkflowEnvironmentUrl();
70
68
  var workflowCheckPermission = useWorkflowCheckPermission();
71
- var _c = useSelector(mdmModule.selectors.getSearchProviderData) || {}, typeSearch = _c.type, search = _c.data;
72
- var openSearch = function (search) { return dispatch(ui.actions.openSearch(search)); };
69
+ var _c = useMdmSearchProviderData() || {}, typeSearch = _c.type, search = _c.data;
73
70
  var requestListeners = useRef({});
74
71
  var responseListeners = useRef({});
75
72
  var workers = useRef({});
@@ -12,11 +12,10 @@ var __assign = (this && this.__assign) || function () {
12
12
  import { useCallback } from 'react';
13
13
  import { isAvailableRelationBetweenEntities, Directions, getRelationType, removeEntityAttribute, addEntityAttributes, changeEntityAttribute } from '@reltio/mdm-sdk';
14
14
  import { pipe } from 'ramda';
15
- import { useSelector } from 'react-redux';
16
- import mdmModule from '@reltio/mdm-module';
15
+ import { useMdmMetadata } from '../contexts';
17
16
  export var useEditableConnection = function (_a) {
18
17
  var connection = _a.connection, onConnectionChange = _a.onConnectionChange, relatedEntity = _a.relatedEntity;
19
- var metadata = useSelector(mdmModule.selectors.getMetadata);
18
+ var metadata = useMdmMetadata();
20
19
  var onRelationChange = useCallback(function (relation) { return onConnectionChange(__assign(__assign({}, connection), { relation: relation })); }, [connection, onConnectionChange]);
21
20
  var handleAddAttributes = useCallback(pipe(addEntityAttributes(connection.relation), onRelationChange), [
22
21
  connection.relation,
@@ -1,15 +1,14 @@
1
- import { isDataTenantEntity, markDataTenantEntityAsNotMatch, markMixedEntitiesAsNotMatches } from '@reltio/mdm-sdk';
2
- import { useSelector } from 'react-redux';
3
- import mdmModule from '@reltio/mdm-module';
4
1
  import { useCallback, useState } from 'react';
2
+ import { isDataTenantEntity, markDataTenantEntityAsNotMatch, markMixedEntitiesAsNotMatches } from '@reltio/mdm-sdk';
5
3
  import { noop } from '../core';
6
4
  import { useIsMountedRef } from './useIsMountedRef';
5
+ import { useMdmDtssPath, useMdmTenant } from '../contexts';
7
6
  export var useMarkAsNotMatchRequest = function (_a) {
8
7
  var entities = _a.entities, entity = _a.entity, onFinishRequest = _a.onFinishRequest, onStartRequest = _a.onStartRequest, onSuccess = _a.onSuccess, _b = _a.onError, onError = _b === void 0 ? noop : _b;
9
8
  var isMountedRef = useIsMountedRef();
10
- var tenant = useSelector(mdmModule.selectors.getTenant);
11
- var dtssPath = useSelector(mdmModule.selectors.getDtssPath);
12
9
  var _c = useState(false), isPending = _c[0], setIsPending = _c[1];
10
+ var tenant = useMdmTenant();
11
+ var dtssPath = useMdmDtssPath();
13
12
  var sendMarkAsNotMatchRequest = useCallback(function () {
14
13
  onStartRequest === null || onStartRequest === void 0 ? void 0 : onStartRequest();
15
14
  setIsPending(true);
@@ -1,19 +1,18 @@
1
1
  import { useCallback, useEffect, useMemo, useState } from 'react';
2
- import { useSelector } from 'react-redux';
3
- import mdmModule from '@reltio/mdm-module';
4
2
  import { ActivityFilters, collectAllTransitiveEntitiesUris, getEntitiesMapForTransitiveMatches, getMatchesForDataTenantEntity, getMatchesFromDataTenants, getTransitiveMatches, isDataTenantEntity, isTempUri, withDtssPotentialItems, addGlobalFilterToQuery } from '@reltio/mdm-sdk';
5
3
  import { usePagingSimulator } from './usePagingSimulator';
6
4
  import { useSafePromise } from './useSafePromise';
5
+ import { useMdmDataTenants, useMdmDtssPath, useMdmGlobalSearchRequestOptions, useMdmTenant } from '../contexts';
7
6
  export var useMatchesLoader = function (_a) {
8
7
  var enabled = _a.enabled, entity = _a.entity, filter = _a.filter, rules = _a.rules, onFinishLoading = _a.onFinishLoading, onStartLoading = _a.onStartLoading, options = _a.options, page = _a.page, rowsPerPage = _a.rowsPerPage, sorting = _a.sorting, markMatchedValues = _a.markMatchedValues;
9
8
  var _b = sorting || {}, order = _b.order, field = _b.field;
10
9
  var _c = useState(0), total = _c[0], setTotal = _c[1];
11
10
  var _d = useState([]), matches = _d[0], setMatches = _d[1];
12
11
  var _e = useState({}), entitiesMap = _e[0], setEntitiesMap = _e[1];
13
- var tenant = useSelector(mdmModule.selectors.getTenant);
14
- var dtssPath = useSelector(mdmModule.selectors.getDtssPath);
15
- var dataTenants = useSelector(mdmModule.selectors.getDataTenants);
16
- var _f = useSelector(mdmModule.selectors.getGlobalSearchRequestOptions) || {}, activityFilter = _f.activityFilter, globalFilter = _f.globalFilter;
12
+ var tenant = useMdmTenant();
13
+ var dtssPath = useMdmDtssPath();
14
+ var dataTenants = useMdmDataTenants();
15
+ var _f = useMdmGlobalSearchRequestOptions() || {}, activityFilter = _f.activityFilter, globalFilter = _f.globalFilter;
17
16
  var activeness = typeof options.showInactiveEntities === 'boolean'
18
17
  ? options.showInactiveEntities
19
18
  ? ActivityFilters.ALL
@@ -1,17 +1,16 @@
1
1
  import { useCallback, useState } from 'react';
2
- import { useDispatch, useSelector } from 'react-redux';
3
- import mdmModule, { search } from '@reltio/mdm-module';
4
2
  import { isDataTenantEntity, mergeCustomerTenantEntityWithMixedEntities, mergeDataTenantEntity } from '@reltio/mdm-sdk';
5
3
  import { noop } from '../core';
6
4
  import { useIsMountedRef } from './useIsMountedRef';
7
5
  import { getWinnerLosersUrisFromMergeResponses } from './helpers/merge';
6
+ import { useMdmAction, useMdmDtssPath, useMdmTenant } from '../contexts';
8
7
  export var useMergeAllRequest = function (_a) {
9
8
  var entities = _a.entities, entity = _a.entity, onFinishRequest = _a.onFinishRequest, onStartRequest = _a.onStartRequest, onSuccess = _a.onSuccess, _b = _a.onError, onError = _b === void 0 ? noop : _b;
10
9
  var isMountedRef = useIsMountedRef();
11
- var tenant = useSelector(mdmModule.selectors.getTenant);
12
- var dtssPath = useSelector(mdmModule.selectors.getDtssPath);
13
10
  var _c = useState(false), isPending = _c[0], setIsPending = _c[1];
14
- var dispatch = useDispatch();
11
+ var updateSearchNavigationDataOnMerge = useMdmAction('updateSearchNavigationDataOnMerge');
12
+ var tenant = useMdmTenant();
13
+ var dtssPath = useMdmDtssPath();
15
14
  var sendMergeAllRequest = useCallback(function () {
16
15
  onStartRequest === null || onStartRequest === void 0 ? void 0 : onStartRequest();
17
16
  setIsPending(true);
@@ -24,7 +23,7 @@ export var useMergeAllRequest = function (_a) {
24
23
  var uris = getWinnerLosersUrisFromMergeResponses(entity, entities, responses);
25
24
  if (uris) {
26
25
  var winnerUri = uris.winnerUri, losersUris = uris.losersUris;
27
- dispatch(search.actions.updateSearchNavigationDataOnMerge({ winnerUri: winnerUri, losersUris: losersUris }));
26
+ updateSearchNavigationDataOnMerge({ winnerUri: winnerUri, losersUris: losersUris });
28
27
  }
29
28
  })
30
29
  .catch(onError)
@@ -32,6 +31,16 @@ export var useMergeAllRequest = function (_a) {
32
31
  onFinishRequest === null || onFinishRequest === void 0 ? void 0 : onFinishRequest();
33
32
  isMountedRef.current && setIsPending(false);
34
33
  });
35
- }, [dtssPath, entities, entity, onError, onFinishRequest, onStartRequest, onSuccess, tenant, dispatch]);
34
+ }, [
35
+ dtssPath,
36
+ entities,
37
+ entity,
38
+ onError,
39
+ onFinishRequest,
40
+ onStartRequest,
41
+ onSuccess,
42
+ tenant,
43
+ updateSearchNavigationDataOnMerge
44
+ ]);
36
45
  return { isPending: isPending, sendMergeAllRequest: sendMergeAllRequest };
37
46
  };
@@ -1,24 +1,23 @@
1
1
  import { useEffect } from 'react';
2
- import { useDispatch, useSelector } from 'react-redux';
3
- import mdmModule, { profile } from '@reltio/mdm-module';
4
- import { buildReadableQueryToString, getKeywordFromSearchState, getUnresolvedLookupsListFromSearchGroups, resolveLookupsList, getGroupsFromSearchState } from '@reltio/mdm-sdk';
5
2
  import { andThen, chain, pipe } from 'ramda';
3
+ import { buildReadableQueryToString, getKeywordFromSearchState, getUnresolvedLookupsListFromSearchGroups, resolveLookupsList, getGroupsFromSearchState } from '@reltio/mdm-sdk';
4
+ import { useMdmAction, useMdmAttributePresentations, useMdmDataTenants, useMdmLookups, useMdmMetadata } from '../contexts';
6
5
  export var useReadableSearchState = function (searchState) {
7
- var metadata = useSelector(mdmModule.selectors.getMetadata);
8
- var dataTenants = useSelector(mdmModule.selectors.getDataTenants);
9
- var attributePresentations = useSelector(mdmModule.selectors.getAttributePresentations);
10
- var lookups = useSelector(mdmModule.selectors.getLookups);
6
+ var lookupsListResolved = useMdmAction('lookupsListResolved');
7
+ var metadata = useMdmMetadata();
8
+ var dataTenants = useMdmDataTenants();
9
+ var attributePresentations = useMdmAttributePresentations();
10
+ var lookups = useMdmLookups();
11
11
  var map = searchState.map;
12
12
  var keyword = getKeywordFromSearchState(searchState);
13
13
  var groups = getGroupsFromSearchState(metadata, dataTenants, true, searchState);
14
14
  var unresolvedLookups = getUnresolvedLookupsListFromSearchGroups(groups, lookups);
15
- var dispatch = useDispatch();
16
15
  useEffect(function () {
17
16
  if (unresolvedLookups.length > 0) {
18
17
  pipe(chain(function (_a) {
19
18
  var type = _a.type, codeValues = _a.codeValues;
20
19
  return codeValues.map(function (codeValue) { return ({ type: type, codeValue: codeValue }); });
21
- }), resolveLookupsList, andThen(pipe(profile.lookups.actions.lookupsListResolved, dispatch)))(unresolvedLookups);
20
+ }), resolveLookupsList, andThen(lookupsListResolved))(unresolvedLookups);
22
21
  }
23
22
  }, [searchState]); // eslint-disable-line
24
23
  return buildReadableQueryToString(metadata, attributePresentations, lookups, groups, keyword, map);
@@ -10,12 +10,11 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
13
- import { useDispatch, useSelector } from 'react-redux';
14
13
  import { cond, pipe, prop, T, evolve, filter as filterFn, when, identity, times, length, ifElse, always } from 'ramda';
15
- import mdm, { profile } from '@reltio/mdm-module';
16
14
  import { ActivityFilter, addGlobalFilterToQuery, getRelationsForDataTenantEntity, getRelationsForEntity, isAvailableEntityTypeUri, isAvailableRelationTypeUri, isDataTenantEntity, isObject, isTempUri, Mode, wrapInArrayIfNeeded } from '@reltio/mdm-sdk';
17
15
  import { useSafePromise } from './useSafePromise';
18
16
  import { usePrevious } from './usePrevious';
17
+ import { useMdmAction, useMdmDtssPath, useMdmGlobalSearchRequestOptions, useMdmMetadata, useMdmProfileLastLoadedTime, useMdmTenant } from '../contexts';
19
18
  var buildSuggestedIds = when(identity, pipe(wrapInArrayIfNeeded, length, times(function (n) { return n + 1; })));
20
19
  var isValidRequestConfig = function (config) {
21
20
  var _a;
@@ -31,12 +30,12 @@ var isValidRequestConfig = function (config) {
31
30
  export var useRelationsLoader = function (_a) {
32
31
  var sorting = _a.sorting, filter = _a.filter, page = _a.page, rowsPerPage = _a.rowsPerPage, config = _a.config, entity = _a.entity, relationActivityFilter = _a.relationActivityFilter, mode = _a.mode, _b = _a.searchByOv, searchByOv = _b === void 0 ? false : _b;
33
32
  var _c = useState(false), isLoading = _c[0], setIsLoading = _c[1];
34
- var dispatch = useDispatch();
35
- var tenant = useSelector(mdm.selectors.getTenant);
36
- var metadata = useSelector(mdm.selectors.getMetadata);
37
- var dtssPath = useSelector(mdm.selectors.getDtssPath);
38
- var _d = useSelector(mdm.selectors.getGlobalSearchRequestOptions) || {}, activityFilter = _d.activityFilter, globalFilter = _d.globalFilter;
39
- var lastLoadedTime = useSelector(mdm.selectors.getProfileLastLoadedTime);
33
+ var relationsLoaded = useMdmAction('relationsLoaded');
34
+ var tenant = useMdmTenant();
35
+ var metadata = useMdmMetadata();
36
+ var dtssPath = useMdmDtssPath();
37
+ var _d = useMdmGlobalSearchRequestOptions() || {}, activityFilter = _d.activityFilter, globalFilter = _d.globalFilter;
38
+ var lastLoadedTime = useMdmProfileLastLoadedTime();
40
39
  var safePromise = useSafePromise();
41
40
  var processContent = function (content) {
42
41
  var getUri = when(isObject, prop('uri'));
@@ -94,7 +93,7 @@ export var useRelationsLoader = function (_a) {
94
93
  throw Error(JSON.stringify(result));
95
94
  }
96
95
  var _a = result[0], connections = _a.connections, total = _a.total;
97
- dispatch(profile.relations.actions.relationsLoaded({ id: config.id, connections: connections, total: total }));
96
+ relationsLoaded({ id: config.id, connections: connections, total: total });
98
97
  })
99
98
  .catch(function (e) {
100
99
  console.warn('Failed to load relations data', e);
@@ -108,7 +107,7 @@ export var useRelationsLoader = function (_a) {
108
107
  activityFilter,
109
108
  metadata,
110
109
  config,
111
- dispatch,
110
+ relationsLoaded,
112
111
  dtssPath,
113
112
  entity === null || entity === void 0 ? void 0 : entity.uri,
114
113
  entity === null || entity === void 0 ? void 0 : entity.dataTenant,
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"@keyframes highlightAnimation" | "highlightError" | "highlightWarning" | "simpleAttribute">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"highlightError" | "@keyframes highlightAnimation" | "highlightWarning" | "simpleAttribute">;
@@ -1,13 +1,12 @@
1
1
  import { useEffect, useState } from 'react';
2
- import { useSelector } from 'react-redux';
3
- import { getAllUsersForTenant } from '@reltio/mdm-sdk';
4
- import mdm from '@reltio/mdm-module';
5
2
  import memoizeOne from 'memoize-one';
3
+ import { getAllUsersForTenant } from '@reltio/mdm-sdk';
4
+ import { useMdmServicesPath, useMdmTenant } from '../contexts';
6
5
  var getAllUsersForTenantMemoized = memoizeOne(function (tenant, servicesPath) { return getAllUsersForTenant({ tenant: tenant, servicesPath: servicesPath }); });
7
6
  export var useUsers = function () {
8
7
  var _a = useState([]), users = _a[0], setUsers = _a[1];
9
- var tenant = useSelector(mdm.selectors.getTenant);
10
- var servicesPath = useSelector(mdm.selectors.getServicesPath);
8
+ var tenant = useMdmTenant();
9
+ var servicesPath = useMdmServicesPath();
11
10
  var onError = function (e) {
12
11
  console.warn('Users error', e);
13
12
  setUsers([]);
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@reltio/components",
3
- "version": "1.4.1638",
3
+ "version": "1.4.1639",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
7
7
  "dependencies": {
8
8
  "@date-io/moment": "^1.3.5",
9
+ "@fluentui/react-context-selector": "^9.1.26",
9
10
  "@react-google-maps/api": "2.7.0",
10
- "@reltio/mdm-module": "^1.4.1638",
11
- "@reltio/mdm-sdk": "^1.4.1638",
11
+ "@reltio/mdm-sdk": "^1.4.1639",
12
12
  "classnames": "^2.2.5",
13
13
  "d3-cloud": "^1.2.5",
14
14
  "d3-geo": "^2.0.1",
@@ -27,7 +27,6 @@
27
27
  "react-lifecycles-compat": "^3.0.4",
28
28
  "react-mentions": "4.3.0",
29
29
  "react-number-format": "^4.3.0",
30
- "react-redux": "^7.2.3",
31
30
  "react-resize-detector": "^4.2.0",
32
31
  "react-router-dom": "^6.2.1",
33
32
  "react-select": "^3.0.4",
@@ -1,7 +0,0 @@
1
- import { SearchNavigationData } from '../types';
2
- type Payload = {
3
- winnerUri: string;
4
- losersUris: string[];
5
- };
6
- export declare const applyMergeToSearchNavigationData: (searchNavigationData: SearchNavigationData, payload: Payload) => SearchNavigationData;
7
- export {};
@@ -1,70 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
14
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
15
- if (ar || !(i in from)) {
16
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
17
- ar[i] = from[i];
18
- }
19
- }
20
- return to.concat(ar || Array.prototype.slice.call(from));
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- exports.applyMergeToSearchNavigationData = void 0;
24
- var replaceWithWinnerUri = function (searchNavigationData, winnerUri) {
25
- var uri = searchNavigationData.uri, index = searchNavigationData.index, total = searchNavigationData.total, cache = searchNavigationData.cache;
26
- if (winnerUri && winnerUri !== uri) {
27
- if (cache && cache.includes(uri)) {
28
- cache = __spreadArray([], cache, true);
29
- var winnerIndex = cache.indexOf(winnerUri);
30
- var uriIndex = cache.indexOf(uri);
31
- if (winnerIndex >= 0) {
32
- cache.splice(winnerIndex, 1);
33
- total--;
34
- if (winnerIndex < uriIndex) {
35
- index--;
36
- }
37
- }
38
- uriIndex = cache.indexOf(uri);
39
- cache.splice(uriIndex, 1, winnerUri);
40
- }
41
- uri = winnerUri;
42
- return __assign(__assign({}, searchNavigationData), { uri: uri, index: index, cache: cache, total: total });
43
- }
44
- return searchNavigationData;
45
- };
46
- var removeLosersUris = function (searchNavigationData, losersUris) {
47
- var _a = searchNavigationData.cache, cache = _a === void 0 ? [] : _a, index = searchNavigationData.index, total = searchNavigationData.total, uri = searchNavigationData.uri;
48
- var losersInCache = losersUris.filter(function (uri) { return cache.includes(uri); });
49
- if (losersInCache.length === 0) {
50
- return searchNavigationData;
51
- }
52
- var updatedTotal = total - losersInCache.length;
53
- var uriIndex = cache.indexOf(uri);
54
- var updatedIndex = index;
55
- for (var _i = 0, losersInCache_1 = losersInCache; _i < losersInCache_1.length; _i++) {
56
- var loser = losersInCache_1[_i];
57
- var loserIndex = cache.indexOf(loser);
58
- if (loserIndex < uriIndex) {
59
- updatedIndex--;
60
- }
61
- }
62
- var updatedCache = cache.filter(function (uri) { return !losersInCache.includes(uri); });
63
- return __assign(__assign({}, searchNavigationData), { cache: updatedCache, index: updatedIndex, total: updatedTotal });
64
- };
65
- var applyMergeToSearchNavigationData = function (searchNavigationData, payload) {
66
- var winnerUri = payload.winnerUri, _a = payload.losersUris, losersUris = _a === void 0 ? [] : _a;
67
- var updatedSearchNavigationData = replaceWithWinnerUri(searchNavigationData, winnerUri);
68
- return removeLosersUris(updatedSearchNavigationData, losersUris);
69
- };
70
- exports.applyMergeToSearchNavigationData = applyMergeToSearchNavigationData;
@@ -1,15 +0,0 @@
1
- export type SearchNavigationData = {
2
- uri: string;
3
- index: number;
4
- total: number;
5
- tenant: string;
6
- cache: string[];
7
- };
8
- export type SearchProviderData = {
9
- type: 'search' | 'graphsearch';
10
- data: {
11
- query: string;
12
- sortField: string;
13
- sortOrder: string;
14
- } | Record<string, unknown>;
15
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,27 +0,0 @@
1
- /// <reference types="react" />
2
- import ProfilesList from './ProfilesList';
3
- export { ProfilesList };
4
- declare const _default: import("react-redux").ConnectedComponent<({ entities, metadata, entityToHighlight, selectedEntityUri, onEntityClick, onEntityHover, entitiesImportStatus, entityButtonsRenderer }: {
5
- metadata: import("@reltio/mdm-sdk").Metadata;
6
- entities: import("@reltio/mdm-sdk").Entity[];
7
- entityToHighlight?: string;
8
- selectedEntityUri?: string;
9
- onEntityClick?: (entityUri: string) => void;
10
- onEntityHover?: (entityUri: string) => void;
11
- entitiesImportStatus?: {
12
- entityUri: string;
13
- };
14
- entityButtonsRenderer?: (entity: import("@reltio/mdm-sdk").Entity) => void;
15
- }) => JSX.Element, import("react-redux").Omit<{
16
- metadata: import("@reltio/mdm-sdk").Metadata;
17
- entities: import("@reltio/mdm-sdk").Entity[];
18
- entityToHighlight?: string;
19
- selectedEntityUri?: string;
20
- onEntityClick?: (entityUri: string) => void;
21
- onEntityHover?: (entityUri: string) => void;
22
- entitiesImportStatus?: {
23
- entityUri: string;
24
- };
25
- entityButtonsRenderer?: (entity: import("@reltio/mdm-sdk").Entity) => void;
26
- }, "metadata">>;
27
- export default _default;
@@ -1,16 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ProfilesList = void 0;
7
- var react_redux_1 = require("react-redux");
8
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
9
- var ProfilesList_1 = __importDefault(require("./ProfilesList"));
10
- exports.ProfilesList = ProfilesList_1.default;
11
- var mapStateToProps = function (state) {
12
- return {
13
- metadata: mdm_module_1.default.selectors.getMetadata(state)
14
- };
15
- };
16
- exports.default = (0, react_redux_1.connect)(mapStateToProps)(ProfilesList_1.default);
@@ -1,6 +0,0 @@
1
- export { RelationEditor };
2
- declare const _default: import("react-redux").ConnectedComponent<import("react").ComponentType<{
3
- [x: string]: unknown;
4
- }>, any>;
5
- export default _default;
6
- import RelationEditor from './RelationEditor';
@@ -1,50 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.RelationEditor = void 0;
30
- var RelationEditor_1 = __importDefault(require("./RelationEditor"));
31
- exports.RelationEditor = RelationEditor_1.default;
32
- var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
33
- var react_redux_1 = require("react-redux");
34
- var mdm_sdk_1 = require("@reltio/mdm-sdk");
35
- var getConnectionEntityUri = function (props) { return mdm_module_1.profile.relations.selectors.getEntityUriFromConnection(props.connection); };
36
- var getConnectionRelationUri = function (props) { return mdm_module_1.profile.relations.selectors.getRelationUriFromConnection(props.connection); };
37
- var mapStateToProps = function (state, ownProps) {
38
- var entityUri = getConnectionEntityUri(ownProps);
39
- var relationUri = getConnectionRelationUri(ownProps);
40
- var isTempEntity = (0, mdm_sdk_1.isTempUri)(entityUri);
41
- return {
42
- initialConnection: mdm_module_1.default.selectors.getInitialConnection(state, ownProps.config.id, relationUri),
43
- initialModifiedEntity: mdm_module_1.default.selectors.getInitialConnectionTempEntity(state, ownProps.config.id, relationUri),
44
- modifiedEntity: isTempEntity ? mdm_module_1.default.selectors.getModifiedEntity(state, entityUri) : null,
45
- allModifiedEntities: isTempEntity ? mdm_module_1.default.selectors.getModifiedEntities(state) : null,
46
- globalSearchRequestOptions: mdm_module_1.default.selectors.getGlobalSearchRequestOptions(state, ['ovOnly']),
47
- error: (0, mdm_sdk_1.getRelationEditorActiveError)(ownProps.connection, mdm_module_1.default.selectors.getProfileErrors(state))
48
- };
49
- };
50
- exports.default = (0, react_redux_1.connect)(mapStateToProps)(RelationEditor_1.default);
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { AttributesViewOwnProps } from '../types';
3
- import AttributesView from './AttributesView';
4
- type Props = Pick<AttributesViewOwnProps, 'entity' | 'mode'>;
5
- export { AttributesView };
6
- declare const _default: import("react-redux").ConnectedComponent<({ mode, attributesCount, pinnedAttributes, entity, ...restProps }: AttributesViewOwnProps) => JSX.Element, import("react-redux").Omit<AttributesViewOwnProps, "entity" | "mode"> & Props>;
7
- export default _default;
@@ -1,15 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AttributesView = void 0;
7
- var react_redux_1 = require("react-redux");
8
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
9
- var AttributesView_1 = __importDefault(require("./AttributesView"));
10
- exports.AttributesView = AttributesView_1.default;
11
- var mapStateToProps = function (state, ownProps) { return ({
12
- entity: ownProps.entity || mdm_module_1.default.selectors.getEntityWithDiff(state),
13
- mode: ownProps.mode || mdm_module_1.default.selectors.getMode(state)
14
- }); };
15
- exports.default = (0, react_redux_1.connect)(mapStateToProps)(AttributesView_1.default);
@@ -1,23 +0,0 @@
1
- /// <reference types="react" />
2
- import AttributesView from './AttributesView';
3
- export { AttributesView };
4
- declare const _default: import("react-redux").ConnectedComponent<({ className, entity, mode, metadata, caption, excludeUris, includeUris, pinnedAttributes }: {
5
- entity?: import("@reltio/mdm-sdk").Entity;
6
- caption?: string;
7
- mode?: import("@reltio/mdm-sdk").Mode;
8
- metadata: import("@reltio/mdm-sdk").Metadata;
9
- includeUris?: string[];
10
- excludeUris?: string[];
11
- className?: string;
12
- pinnedAttributes?: import("@reltio/mdm-sdk").PinnedAttribute[];
13
- }) => JSX.Element, import("react-redux").Omit<{
14
- entity?: import("@reltio/mdm-sdk").Entity;
15
- caption?: string;
16
- mode?: import("@reltio/mdm-sdk").Mode;
17
- metadata: import("@reltio/mdm-sdk").Metadata;
18
- includeUris?: string[];
19
- excludeUris?: string[];
20
- className?: string;
21
- pinnedAttributes?: import("@reltio/mdm-sdk").PinnedAttribute[];
22
- }, "metadata">>;
23
- export default _default;
@@ -1,14 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AttributesView = void 0;
7
- var react_redux_1 = require("react-redux");
8
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
9
- var AttributesView_1 = __importDefault(require("./AttributesView"));
10
- exports.AttributesView = AttributesView_1.default;
11
- var mapStateToProps = function (state) { return ({
12
- metadata: mdm_module_1.default.selectors.getMetadata(state)
13
- }); };
14
- exports.default = (0, react_redux_1.connect)(mapStateToProps)(AttributesView_1.default);
@@ -1,25 +0,0 @@
1
- export { EntityCreator };
2
- declare const _default: import("react-redux").ConnectedComponent<{
3
- ({ entity, entityType, attributeTypesSelectionStrategy, mode, onAddAttributes, onDeleteAttribute, onChangeAttribute }: {
4
- entity: any;
5
- entityType: any;
6
- attributeTypesSelectionStrategy?: (entityType: any) => any;
7
- mode: any;
8
- onAddAttributes: any;
9
- onDeleteAttribute: any;
10
- onChangeAttribute: any;
11
- }): JSX.Element;
12
- propTypes: {
13
- entityUri: import("prop-types").Requireable<string>;
14
- parentUri: import("prop-types").Requireable<string>;
15
- entity: import("prop-types").Requireable<object>;
16
- entityType: import("prop-types").Requireable<object>;
17
- attributeTypesSelectionStrategy: import("prop-types").Requireable<(...args: any[]) => any>;
18
- mode: import("prop-types").Requireable<any>;
19
- onAddAttributes: import("prop-types").Requireable<(...args: any[]) => any>;
20
- onDeleteAttribute: import("prop-types").Requireable<(...args: any[]) => any>;
21
- onChangeAttribute: import("prop-types").Requireable<(...args: any[]) => any>;
22
- };
23
- }, any>;
24
- export default _default;
25
- import EntityCreator from './EntityCreator';