@reltio/components 1.4.1637 → 1.4.1639

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (453) hide show
  1. package/cjs/components/AttributeGroupIcon/AttributeGroupIcon.js +2 -3
  2. package/cjs/components/AttributeSelector/AttributeSelector.js +2 -3
  3. package/cjs/components/AttributesFiltersBuilder/AttributesFiltersBuilder.js +4 -5
  4. package/cjs/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.d.ts +13 -19
  5. package/cjs/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.js +6 -17
  6. package/cjs/components/BasicView/BasicView.d.ts +1 -1
  7. package/cjs/components/CollaborationItem/Comment/Comment.js +1 -3
  8. package/cjs/components/CollaborationItem/CommentTarget/CommentTarget.js +2 -4
  9. package/cjs/components/CollaborationItem/CommentTarget/styles.d.ts +1 -1
  10. package/cjs/components/CollaborationItem/RepliedComment/RepliedComment.js +1 -3
  11. package/cjs/components/CollaborationItem/SendMessageArea/SendMessageArea.js +1 -3
  12. package/cjs/components/ColoredSourceIcon/ColoredSourceIcon.js +1 -3
  13. package/cjs/components/ConnectionEditor/ConnectionEditor.js +3 -6
  14. package/cjs/components/DataTenantBadge/DataTenantBadge.js +6 -4
  15. package/cjs/components/DataTypeValue/DataTypeValue.js +4 -5
  16. package/cjs/components/EntityAvatar/EntityAvatar.js +4 -5
  17. package/cjs/components/EntityTypeBadge/EntityTypeBadge.js +4 -6
  18. package/cjs/components/EntityTypeIcon/EntityTypeIcon.js +2 -3
  19. package/cjs/components/EntityUriLink/EntityUriLink.js +4 -6
  20. package/cjs/components/ErrorPopup/ErrorPopup.d.ts +13 -8
  21. package/cjs/components/ErrorPopup/ErrorPopup.js +23 -18
  22. package/cjs/components/ErrorPopup/styles.d.ts +1 -1
  23. package/cjs/components/HierarchyNodeTitle/HierarchyNodeTitle.js +4 -6
  24. package/cjs/components/ImageAttributesGallery/ImageAttributesGallery.js +2 -6
  25. package/cjs/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.d.ts +0 -5
  26. package/cjs/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.js +6 -7
  27. package/cjs/components/ImageDetailsView/MetaInfo/MetaInfo.js +3 -4
  28. package/cjs/components/ImageDetailsView/MetaInfoList/MetaInfoItem/styles.d.ts +1 -1
  29. package/cjs/components/ImageDetailsView/MetaInfoList/MetaInfoList.js +3 -4
  30. package/cjs/components/ImageDetailsView/hooks/useEditMetaInfo.js +3 -10
  31. package/cjs/components/MatchRulesBlock/SimpleMatchRules/styles.d.ts +1 -1
  32. package/cjs/components/MatchRulesSelector/MatchRulesSelector.d.ts +1 -4
  33. package/cjs/components/MatchRulesSelector/MatchRulesSelector.js +2 -4
  34. package/cjs/components/ModeSwitcher/styles.d.ts +1 -1
  35. package/cjs/components/PivotingUriLink/PivotingUriLink.js +1 -3
  36. package/cjs/components/Popper/Popper.d.ts +1 -1
  37. package/cjs/components/PotentialMatchReviewCard/styles.d.ts +1 -1
  38. package/cjs/components/ProfileBand/ProfileBand.js +3 -4
  39. package/cjs/components/ProfileBandNavigation/ProfileBandNavigationWidget.d.ts +1 -1
  40. package/cjs/components/ProfileBandNavigation/hooks/useSearchNavigation.js +19 -54
  41. package/cjs/components/ProfileBandNavigation/hooks/useSearchNavigationVisibility.js +4 -8
  42. package/cjs/components/ProfilesList/ProfilesList.d.ts +2 -3
  43. package/cjs/components/ProfilesList/ProfilesList.js +3 -1
  44. package/cjs/components/RelationEditor/RelationEditor.js +46 -33
  45. package/cjs/components/RelevanceScoreBadge/RelevanceScoreBadge.js +3 -4
  46. package/cjs/components/SelectAttributesList/SelectAttributesList.js +2 -3
  47. package/cjs/components/SmallIconButton/SmallIconButton.d.ts +1 -1
  48. package/cjs/components/SmallIconButton/index.d.ts +1 -1
  49. package/cjs/components/SourceIcon/SourceIcon.js +2 -3
  50. package/cjs/components/SourceSystemsSelector/SourceSystemsSelector.js +2 -3
  51. package/cjs/components/StepNavigation/ProgressButton.d.ts +12 -0
  52. package/cjs/components/StepNavigation/ProgressButton.js +41 -0
  53. package/cjs/components/StepNavigation/StepNavigation.d.ts +13 -0
  54. package/cjs/components/StepNavigation/StepNavigation.js +62 -0
  55. package/cjs/components/StepNavigation/styles.d.ts +2 -0
  56. package/cjs/components/StepNavigation/styles.js +44 -0
  57. package/cjs/components/TenantLabel/TenantLabel.d.ts +6 -0
  58. package/cjs/components/TenantLabel/TenantLabel.js +22 -0
  59. package/cjs/components/TenantLabel/styles.d.ts +1 -0
  60. package/cjs/components/TenantLabel/styles.js +22 -0
  61. package/cjs/components/TenantsDropDownSelector/TenantsDropDownSelector.js +3 -4
  62. package/cjs/components/UploadImageDialog/TargetBox/styles.d.ts +1 -1
  63. package/cjs/components/UploadImageDialog/UploadImageDialog.js +4 -5
  64. package/cjs/components/UserSelector/UserSelector.js +3 -4
  65. package/cjs/components/activityLog/ActivityExportButton/ActivityExportButton.js +6 -7
  66. package/cjs/components/activityLog/ActivityFilterEditor/ActivityFilterEditor.js +2 -3
  67. package/cjs/components/activityLog/ActivityFilterEditor/EntityChangedSelectors.js +2 -3
  68. package/cjs/components/activityLog/ActivityFilterEditor/SourceSelector.js +3 -4
  69. package/cjs/components/activityLog/ActivityLogFilter/ActivityLogFilter.d.ts +1 -1
  70. package/cjs/components/activityLog/ActivityLogFilter/ActivityLogFilter.js +5 -3
  71. package/cjs/components/activityLog/activities/GroupActivity.js +2 -3
  72. package/cjs/components/activityLog/activities/RelationObject/styles.d.ts +1 -1
  73. package/cjs/components/activityLog/activities/SearchActivity.js +6 -7
  74. package/cjs/components/activityLog/activities/fields/DeltaField.js +7 -8
  75. package/cjs/components/activityLog/activities/fields/commonStyles.d.ts +1 -1
  76. package/cjs/components/activityLog/activities/records/EntityRecord.js +8 -9
  77. package/cjs/components/attributes/AttributesView/AttributesView.d.ts +2 -2
  78. package/cjs/components/attributes/AttributesView/AttributesView.js +8 -4
  79. package/cjs/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +1 -1
  80. package/cjs/components/attributes/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  81. package/cjs/components/attributes/ImageAttributesLine/ImageAttributesLine.js +8 -9
  82. package/cjs/components/attributes/OvIcon/OvIcon.d.ts +1 -1
  83. package/cjs/components/attributes/OvIcon/OvIcon.js +4 -6
  84. package/cjs/components/attributes/PivotingAttributes/PivotingTooltip.js +3 -5
  85. package/cjs/components/attributes/PivotingAttributes/PivotingTooltipContent.js +3 -4
  86. package/cjs/components/attributes/PivotingAttributes/styles.d.ts +1 -1
  87. package/cjs/components/attributes/editMode/AttributesFactory/AttributesFactory.js +1 -1
  88. package/cjs/components/attributes/editMode/AttributesPager/AttributeRenderer.d.ts +7 -2
  89. package/cjs/components/attributes/editMode/AttributesPager/AttributesPager.d.ts +2 -38
  90. package/cjs/components/attributes/editMode/AttributesPager/AttributesPager.js +10 -2
  91. package/cjs/components/attributes/editMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
  92. package/cjs/components/attributes/editMode/AttributesPager/index.d.ts +2 -39
  93. package/cjs/components/attributes/editMode/AttributesPager/index.js +5 -44
  94. package/cjs/components/attributes/editMode/AttributesPager/styles.d.ts +1 -1
  95. package/cjs/components/attributes/editMode/AttributesPager/types.d.ts +21 -0
  96. package/cjs/components/attributes/editMode/AttributesView/AttributesView.d.ts +1 -1
  97. package/cjs/components/attributes/editMode/AttributesView/AttributesView.js +10 -12
  98. package/cjs/components/attributes/editMode/EntityCreator/EntityCreator.d.ts +9 -24
  99. package/cjs/components/attributes/editMode/EntityCreator/EntityCreator.js +7 -15
  100. package/cjs/components/attributes/editMode/EntitySelector/EntitySelector.js +1 -1
  101. package/cjs/components/attributes/editMode/EntitySelector/components/SingleValue.js +3 -6
  102. package/cjs/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  103. package/cjs/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.js +8 -10
  104. package/cjs/components/attributes/editMode/MoreAttributesButton/useMoreAttributesItems.js +2 -3
  105. package/cjs/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.js +16 -15
  106. package/cjs/components/attributes/editMode/Roles/Roles.js +4 -5
  107. package/cjs/components/attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor.js +4 -9
  108. package/cjs/components/attributes/editMode/SimpleAttributeEditor/useAutopopulationContextValue.js +7 -30
  109. package/cjs/components/attributes/editMode/Tags/Tags.js +3 -4
  110. package/cjs/components/attributes/inline/ReferenceAttribute/ReferenceAttribute.js +3 -5
  111. package/cjs/components/attributes/inline/common/SourceItem.js +2 -4
  112. package/cjs/components/attributes/readMode/AttributesList/AttributesList.js +1 -1
  113. package/cjs/components/attributes/readMode/AttributesPager/AttributesPager.d.ts +1 -3
  114. package/cjs/components/attributes/readMode/AttributesPager/AttributesPager.js +7 -2
  115. package/cjs/components/attributes/readMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
  116. package/cjs/components/attributes/readMode/AttributesPager/MultiLineRenderer.d.ts +1 -2
  117. package/cjs/components/attributes/readMode/AttributesPager/styles.d.ts +1 -1
  118. package/cjs/components/attributes/readMode/AttributesView/AttributesView.d.ts +2 -2
  119. package/cjs/components/attributes/readMode/AttributesView/AttributesView.js +3 -4
  120. package/cjs/components/attributes/readMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  121. package/cjs/components/attributes/readMode/ReferenceAttribute/ReferenceAttribute.js +2 -4
  122. package/cjs/components/attributes/readMode/SpecialAttributes/Roles/Role.js +2 -6
  123. package/cjs/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +2 -4
  124. package/cjs/components/attributes/types/attributesView.d.ts +2 -7
  125. package/cjs/components/crosswalks/AttributesTable/AddAttributesButton/AddAttributesButton.js +2 -3
  126. package/cjs/components/crosswalks/AttributesTable/AttributesTable.js +2 -3
  127. package/cjs/components/crosswalks/AttributesTable/cell-renderers/RuleTypeInfoButton.js +21 -17
  128. package/cjs/components/crosswalks/AttributesTable/cell-renderers/WinnerSourcesRenderer.js +1 -3
  129. package/cjs/components/crosswalks/CrosswalkAttributes/CrosswalkAttributes.js +9 -10
  130. package/cjs/components/crosswalks/CrosswalkDragLayer/CrosswalkDragPreview.js +3 -4
  131. package/cjs/components/crosswalks/CrosswalkRow/CrosswalkRow.js +11 -12
  132. package/cjs/components/crosswalks/DummyCrosswalkRow/DummyCrosswalkRow.js +3 -4
  133. package/cjs/components/editors/DataTypeValueEditor/useEditorContext.d.ts +3 -3
  134. package/cjs/components/editors/DataTypeValueEditor/useEditorContext.js +10 -36
  135. package/cjs/components/editors/DateRangeEditor/DateRangeEditor.d.ts +3 -3
  136. package/cjs/components/editors/TypeaheadEditor/TypeaheadEditor.js +1 -1
  137. package/cjs/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
  138. package/cjs/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
  139. package/cjs/components/history/HistoryMenuButton/HistoryMenuButton.js +5 -32
  140. package/cjs/components/history/HistoryTree/HistoryTree.js +9 -8
  141. package/cjs/components/history/HistoryTree/styles.d.ts +1 -1
  142. package/cjs/components/history/ProfileBandHistory/ProfileBandHistory.js +5 -31
  143. package/cjs/components/history/hooks/useHistoryDiff.js +8 -32
  144. package/cjs/components/history/hooks/useHistorySlice.js +4 -28
  145. package/cjs/components/index.d.ts +8 -6
  146. package/cjs/components/index.js +11 -6
  147. package/cjs/components/workflow/cards/GenericWorkflowTaskCard/styles.d.ts +1 -1
  148. package/cjs/components/workflow/cards/PotentialMatchTaskCard/PotentialMatchTaskCard.js +4 -5
  149. package/cjs/components/workflow/components/AttributesChanges/AttributesChanges.js +2 -3
  150. package/cjs/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js +2 -3
  151. package/cjs/components/workflow/components/WorkflowComments/styles.d.ts +1 -1
  152. package/cjs/components/workflow/hooks/useWorkflowActions.js +6 -11
  153. package/cjs/components/workflow/hooks/useWorkflowAssignee.js +3 -8
  154. package/cjs/components/workflow/hooks/useWorkflowCheckPermission.js +24 -25
  155. package/cjs/components/workflow/hooks/useWorkflowComments.js +4 -8
  156. package/cjs/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.js +6 -30
  157. package/cjs/components/workflow/hooks/useWorkflowDefinitions.js +5 -9
  158. package/cjs/components/workflow/hooks/useWorkflowDueDate.js +4 -8
  159. package/cjs/components/workflow/hooks/useWorkflowPriority.js +4 -5
  160. package/cjs/components/workflow/hooks/useWorkflowProcessInstance.js +6 -10
  161. package/cjs/components/workflow/hooks/useWorkflowTasks.js +11 -15
  162. package/cjs/contexts/ActionsHookContext/index.d.ts +4 -1
  163. package/cjs/contexts/CollaborationContext/index.js +2 -2
  164. package/cjs/contexts/MdmModuleContext/context.d.ts +243 -0
  165. package/cjs/contexts/MdmModuleContext/context.js +7 -0
  166. package/cjs/contexts/MdmModuleContext/hooks.d.ts +139 -0
  167. package/cjs/contexts/MdmModuleContext/hooks.js +206 -0
  168. package/cjs/contexts/MdmModuleContext/index.d.ts +3 -0
  169. package/cjs/contexts/MdmModuleContext/index.js +70 -0
  170. package/cjs/contexts/MdmModuleContext/provider.d.ts +10 -0
  171. package/cjs/contexts/MdmModuleContext/provider.js +15 -0
  172. package/cjs/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.d.ts +22 -0
  173. package/cjs/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.js +132 -0
  174. package/cjs/contexts/MdmModuleContext/selectors/entity.d.ts +3 -0
  175. package/cjs/contexts/MdmModuleContext/selectors/entity.js +11 -0
  176. package/cjs/contexts/MdmModuleContext/selectors.d.ts +3 -0
  177. package/cjs/contexts/MdmModuleContext/selectors.js +11 -0
  178. package/cjs/contexts/index.d.ts +1 -0
  179. package/cjs/contexts/index.js +15 -0
  180. package/cjs/hooks/useAPI/useAPI.js +14 -40
  181. package/cjs/hooks/useCollaboration.js +5 -9
  182. package/cjs/hooks/useCommentsEntitiesMap.js +2 -6
  183. package/cjs/hooks/useConfigPermissions.js +3 -7
  184. package/cjs/hooks/useCustomScripts.js +13 -39
  185. package/cjs/hooks/useEditableConnection.js +2 -6
  186. package/cjs/hooks/useMarkAsNotMatchRequest.js +4 -8
  187. package/cjs/hooks/useMatchesLoader.js +5 -9
  188. package/cjs/hooks/useMergeAllRequest.js +16 -30
  189. package/cjs/hooks/useReadableSearchState.js +8 -32
  190. package/cjs/hooks/useRelationsLoader.js +9 -33
  191. package/cjs/hooks/useScrollToAttributeError/styles.d.ts +1 -1
  192. package/cjs/hooks/useUsers.js +4 -5
  193. package/cjs/icons/Tenant.d.ts +3 -0
  194. package/cjs/icons/Tenant.js +22 -0
  195. package/esm/components/AttributeGroupIcon/AttributeGroupIcon.js +2 -3
  196. package/esm/components/AttributeSelector/AttributeSelector.js +2 -3
  197. package/esm/components/AttributesFiltersBuilder/AttributesFiltersBuilder.js +5 -6
  198. package/esm/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.d.ts +13 -19
  199. package/esm/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.js +7 -18
  200. package/esm/components/BasicView/BasicView.d.ts +1 -1
  201. package/esm/components/CollaborationItem/Comment/Comment.js +2 -4
  202. package/esm/components/CollaborationItem/CommentTarget/CommentTarget.js +3 -5
  203. package/esm/components/CollaborationItem/CommentTarget/styles.d.ts +1 -1
  204. package/esm/components/CollaborationItem/RepliedComment/RepliedComment.js +2 -4
  205. package/esm/components/CollaborationItem/SendMessageArea/SendMessageArea.js +2 -4
  206. package/esm/components/ColoredSourceIcon/ColoredSourceIcon.js +2 -4
  207. package/esm/components/ConnectionEditor/ConnectionEditor.js +3 -6
  208. package/esm/components/DataTenantBadge/DataTenantBadge.js +6 -4
  209. package/esm/components/DataTypeValue/DataTypeValue.js +4 -5
  210. package/esm/components/EntityAvatar/EntityAvatar.js +4 -5
  211. package/esm/components/EntityTypeBadge/EntityTypeBadge.js +4 -6
  212. package/esm/components/EntityTypeIcon/EntityTypeIcon.js +2 -3
  213. package/esm/components/EntityUriLink/EntityUriLink.js +5 -7
  214. package/esm/components/ErrorPopup/ErrorPopup.d.ts +13 -8
  215. package/esm/components/ErrorPopup/ErrorPopup.js +23 -18
  216. package/esm/components/ErrorPopup/styles.d.ts +1 -1
  217. package/esm/components/HierarchyNodeTitle/HierarchyNodeTitle.js +5 -7
  218. package/esm/components/ImageAttributesGallery/ImageAttributesGallery.js +2 -3
  219. package/esm/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.d.ts +0 -5
  220. package/esm/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.js +6 -7
  221. package/esm/components/ImageDetailsView/MetaInfo/MetaInfo.js +3 -4
  222. package/esm/components/ImageDetailsView/MetaInfoList/MetaInfoItem/styles.d.ts +1 -1
  223. package/esm/components/ImageDetailsView/MetaInfoList/MetaInfoList.js +3 -4
  224. package/esm/components/ImageDetailsView/hooks/useEditMetaInfo.js +4 -11
  225. package/esm/components/MatchRulesBlock/SimpleMatchRules/styles.d.ts +1 -1
  226. package/esm/components/MatchRulesSelector/MatchRulesSelector.d.ts +1 -4
  227. package/esm/components/MatchRulesSelector/MatchRulesSelector.js +2 -4
  228. package/esm/components/ModeSwitcher/styles.d.ts +1 -1
  229. package/esm/components/PivotingUriLink/PivotingUriLink.js +2 -4
  230. package/esm/components/Popper/Popper.d.ts +1 -1
  231. package/esm/components/PotentialMatchReviewCard/styles.d.ts +1 -1
  232. package/esm/components/ProfileBand/ProfileBand.js +3 -4
  233. package/esm/components/ProfileBandNavigation/ProfileBandNavigationWidget.d.ts +1 -1
  234. package/esm/components/ProfileBandNavigation/hooks/useSearchNavigation.js +20 -32
  235. package/esm/components/ProfileBandNavigation/hooks/useSearchNavigationVisibility.js +4 -5
  236. package/esm/components/ProfilesList/ProfilesList.d.ts +2 -3
  237. package/esm/components/ProfilesList/ProfilesList.js +3 -1
  238. package/esm/components/RelationEditor/RelationEditor.js +49 -36
  239. package/esm/components/RelevanceScoreBadge/RelevanceScoreBadge.js +3 -4
  240. package/esm/components/SelectAttributesList/SelectAttributesList.js +2 -3
  241. package/esm/components/SmallIconButton/SmallIconButton.d.ts +1 -1
  242. package/esm/components/SmallIconButton/index.d.ts +1 -1
  243. package/esm/components/SourceIcon/SourceIcon.js +2 -3
  244. package/esm/components/SourceSystemsSelector/SourceSystemsSelector.js +2 -3
  245. package/esm/components/StepNavigation/ProgressButton.d.ts +12 -0
  246. package/esm/components/StepNavigation/ProgressButton.js +36 -0
  247. package/esm/components/StepNavigation/StepNavigation.d.ts +13 -0
  248. package/esm/components/StepNavigation/StepNavigation.js +57 -0
  249. package/esm/components/StepNavigation/styles.d.ts +2 -0
  250. package/esm/components/StepNavigation/styles.js +41 -0
  251. package/esm/components/TenantLabel/TenantLabel.d.ts +6 -0
  252. package/esm/components/TenantLabel/TenantLabel.js +17 -0
  253. package/esm/components/TenantLabel/styles.d.ts +1 -0
  254. package/esm/components/TenantLabel/styles.js +19 -0
  255. package/esm/components/TenantsDropDownSelector/TenantsDropDownSelector.js +3 -4
  256. package/esm/components/UploadImageDialog/TargetBox/styles.d.ts +1 -1
  257. package/esm/components/UploadImageDialog/UploadImageDialog.js +4 -5
  258. package/esm/components/UserSelector/UserSelector.js +3 -4
  259. package/esm/components/activityLog/ActivityExportButton/ActivityExportButton.js +6 -7
  260. package/esm/components/activityLog/ActivityFilterEditor/ActivityFilterEditor.js +2 -3
  261. package/esm/components/activityLog/ActivityFilterEditor/EntityChangedSelectors.js +2 -3
  262. package/esm/components/activityLog/ActivityFilterEditor/SourceSelector.js +3 -4
  263. package/esm/components/activityLog/ActivityLogFilter/ActivityLogFilter.d.ts +1 -1
  264. package/esm/components/activityLog/ActivityLogFilter/ActivityLogFilter.js +5 -3
  265. package/esm/components/activityLog/activities/GroupActivity.js +2 -3
  266. package/esm/components/activityLog/activities/RelationObject/styles.d.ts +1 -1
  267. package/esm/components/activityLog/activities/SearchActivity.js +6 -7
  268. package/esm/components/activityLog/activities/fields/DeltaField.js +7 -8
  269. package/esm/components/activityLog/activities/fields/commonStyles.d.ts +1 -1
  270. package/esm/components/activityLog/activities/records/EntityRecord.js +8 -9
  271. package/esm/components/attributes/AttributesView/AttributesView.d.ts +2 -2
  272. package/esm/components/attributes/AttributesView/AttributesView.js +10 -6
  273. package/esm/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +1 -1
  274. package/esm/components/attributes/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  275. package/esm/components/attributes/ImageAttributesLine/ImageAttributesLine.js +9 -10
  276. package/esm/components/attributes/OvIcon/OvIcon.d.ts +1 -1
  277. package/esm/components/attributes/OvIcon/OvIcon.js +5 -7
  278. package/esm/components/attributes/PivotingAttributes/PivotingTooltip.js +4 -6
  279. package/esm/components/attributes/PivotingAttributes/PivotingTooltipContent.js +3 -4
  280. package/esm/components/attributes/PivotingAttributes/styles.d.ts +1 -1
  281. package/esm/components/attributes/editMode/AttributesFactory/AttributesFactory.js +1 -1
  282. package/esm/components/attributes/editMode/AttributesPager/AttributeRenderer.d.ts +7 -2
  283. package/esm/components/attributes/editMode/AttributesPager/AttributesPager.d.ts +2 -38
  284. package/esm/components/attributes/editMode/AttributesPager/AttributesPager.js +12 -4
  285. package/esm/components/attributes/editMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
  286. package/esm/components/attributes/editMode/AttributesPager/index.d.ts +2 -39
  287. package/esm/components/attributes/editMode/AttributesPager/index.js +2 -19
  288. package/esm/components/attributes/editMode/AttributesPager/styles.d.ts +1 -1
  289. package/esm/components/attributes/editMode/AttributesPager/types.d.ts +21 -0
  290. package/esm/components/attributes/editMode/AttributesView/AttributesView.d.ts +1 -1
  291. package/esm/components/attributes/editMode/AttributesView/AttributesView.js +11 -13
  292. package/esm/components/attributes/editMode/EntityCreator/EntityCreator.d.ts +9 -24
  293. package/esm/components/attributes/editMode/EntityCreator/EntityCreator.js +7 -15
  294. package/esm/components/attributes/editMode/EntitySelector/EntitySelector.js +1 -1
  295. package/esm/components/attributes/editMode/EntitySelector/components/SingleValue.js +4 -7
  296. package/esm/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  297. package/esm/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.js +8 -10
  298. package/esm/components/attributes/editMode/MoreAttributesButton/useMoreAttributesItems.js +2 -3
  299. package/esm/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.js +18 -17
  300. package/esm/components/attributes/editMode/Roles/Roles.js +4 -5
  301. package/esm/components/attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor.js +5 -10
  302. package/esm/components/attributes/editMode/SimpleAttributeEditor/useAutopopulationContextValue.js +7 -7
  303. package/esm/components/attributes/editMode/Tags/Tags.js +3 -4
  304. package/esm/components/attributes/inline/ReferenceAttribute/ReferenceAttribute.js +4 -6
  305. package/esm/components/attributes/inline/common/SourceItem.js +3 -5
  306. package/esm/components/attributes/readMode/AttributesList/AttributesList.js +1 -1
  307. package/esm/components/attributes/readMode/AttributesPager/AttributesPager.d.ts +1 -3
  308. package/esm/components/attributes/readMode/AttributesPager/AttributesPager.js +7 -2
  309. package/esm/components/attributes/readMode/AttributesPager/ImageLineRenderer.d.ts +1 -2
  310. package/esm/components/attributes/readMode/AttributesPager/MultiLineRenderer.d.ts +1 -2
  311. package/esm/components/attributes/readMode/AttributesPager/styles.d.ts +1 -1
  312. package/esm/components/attributes/readMode/AttributesView/AttributesView.d.ts +2 -2
  313. package/esm/components/attributes/readMode/AttributesView/AttributesView.js +4 -5
  314. package/esm/components/attributes/readMode/ImageAttributesLine/ImageAttributesLine.d.ts +1 -2
  315. package/esm/components/attributes/readMode/ReferenceAttribute/ReferenceAttribute.js +4 -6
  316. package/esm/components/attributes/readMode/SpecialAttributes/Roles/Role.js +2 -3
  317. package/esm/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +3 -5
  318. package/esm/components/attributes/types/attributesView.d.ts +2 -7
  319. package/esm/components/crosswalks/AttributesTable/AddAttributesButton/AddAttributesButton.js +2 -3
  320. package/esm/components/crosswalks/AttributesTable/AttributesTable.js +2 -3
  321. package/esm/components/crosswalks/AttributesTable/cell-renderers/RuleTypeInfoButton.js +21 -17
  322. package/esm/components/crosswalks/AttributesTable/cell-renderers/WinnerSourcesRenderer.js +2 -4
  323. package/esm/components/crosswalks/CrosswalkAttributes/CrosswalkAttributes.js +9 -10
  324. package/esm/components/crosswalks/CrosswalkDragLayer/CrosswalkDragPreview.js +3 -4
  325. package/esm/components/crosswalks/CrosswalkRow/CrosswalkRow.js +12 -13
  326. package/esm/components/crosswalks/DummyCrosswalkRow/DummyCrosswalkRow.js +3 -4
  327. package/esm/components/editors/DataTypeValueEditor/useEditorContext.d.ts +3 -3
  328. package/esm/components/editors/DataTypeValueEditor/useEditorContext.js +10 -13
  329. package/esm/components/editors/DateRangeEditor/DateRangeEditor.d.ts +3 -3
  330. package/esm/components/editors/TypeaheadEditor/TypeaheadEditor.js +1 -1
  331. package/esm/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
  332. package/esm/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
  333. package/esm/components/history/HistoryMenuButton/HistoryMenuButton.js +5 -9
  334. package/esm/components/history/HistoryTree/HistoryTree.js +9 -8
  335. package/esm/components/history/HistoryTree/styles.d.ts +1 -1
  336. package/esm/components/history/ProfileBandHistory/ProfileBandHistory.js +5 -8
  337. package/esm/components/history/hooks/useHistoryDiff.js +8 -9
  338. package/esm/components/history/hooks/useHistorySlice.js +4 -5
  339. package/esm/components/index.d.ts +8 -6
  340. package/esm/components/index.js +8 -6
  341. package/esm/components/workflow/cards/GenericWorkflowTaskCard/styles.d.ts +1 -1
  342. package/esm/components/workflow/cards/PotentialMatchTaskCard/PotentialMatchTaskCard.js +4 -5
  343. package/esm/components/workflow/components/AttributesChanges/AttributesChanges.js +2 -3
  344. package/esm/components/workflow/components/AttributesChanges/components/DiffRenderer/DiffRenderer.js +2 -3
  345. package/esm/components/workflow/components/WorkflowComments/styles.d.ts +1 -1
  346. package/esm/components/workflow/hooks/useWorkflowActions.js +5 -7
  347. package/esm/components/workflow/hooks/useWorkflowAssignee.js +4 -6
  348. package/esm/components/workflow/hooks/useWorkflowCheckPermission.js +24 -22
  349. package/esm/components/workflow/hooks/useWorkflowComments.js +4 -5
  350. package/esm/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.js +7 -8
  351. package/esm/components/workflow/hooks/useWorkflowDefinitions.js +5 -6
  352. package/esm/components/workflow/hooks/useWorkflowDueDate.js +4 -5
  353. package/esm/components/workflow/hooks/useWorkflowPriority.js +4 -5
  354. package/esm/components/workflow/hooks/useWorkflowProcessInstance.js +6 -7
  355. package/esm/components/workflow/hooks/useWorkflowTasks.js +11 -12
  356. package/esm/contexts/ActionsHookContext/index.d.ts +4 -1
  357. package/esm/contexts/CollaborationContext/index.js +1 -1
  358. package/esm/contexts/MdmModuleContext/context.d.ts +243 -0
  359. package/esm/contexts/MdmModuleContext/context.js +4 -0
  360. package/esm/contexts/MdmModuleContext/hooks.d.ts +139 -0
  361. package/esm/contexts/MdmModuleContext/hooks.js +139 -0
  362. package/esm/contexts/MdmModuleContext/index.d.ts +3 -0
  363. package/esm/contexts/MdmModuleContext/index.js +2 -0
  364. package/esm/contexts/MdmModuleContext/provider.d.ts +10 -0
  365. package/esm/contexts/MdmModuleContext/provider.js +8 -0
  366. package/esm/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.d.ts +22 -0
  367. package/esm/contexts/MdmModuleContext/selectors/dependentLookupEditorContext.js +123 -0
  368. package/esm/contexts/MdmModuleContext/selectors/entity.d.ts +3 -0
  369. package/esm/contexts/MdmModuleContext/selectors/entity.js +6 -0
  370. package/esm/contexts/MdmModuleContext/selectors.d.ts +3 -0
  371. package/esm/contexts/MdmModuleContext/selectors.js +6 -0
  372. package/esm/contexts/index.d.ts +1 -0
  373. package/esm/contexts/index.js +1 -0
  374. package/esm/hooks/useAPI/useAPI.js +15 -18
  375. package/esm/hooks/useCollaboration.js +5 -6
  376. package/esm/hooks/useCommentsEntitiesMap.js +2 -3
  377. package/esm/hooks/useConfigPermissions.js +3 -4
  378. package/esm/hooks/useCustomScripts.js +14 -17
  379. package/esm/hooks/useEditableConnection.js +2 -3
  380. package/esm/hooks/useMarkAsNotMatchRequest.js +4 -5
  381. package/esm/hooks/useMatchesLoader.js +5 -6
  382. package/esm/hooks/useMergeAllRequest.js +16 -7
  383. package/esm/hooks/useReadableSearchState.js +8 -9
  384. package/esm/hooks/useRelationsLoader.js +9 -10
  385. package/esm/hooks/useScrollToAttributeError/styles.d.ts +1 -1
  386. package/esm/hooks/useUsers.js +4 -5
  387. package/esm/icons/Tenant.d.ts +3 -0
  388. package/esm/icons/Tenant.js +17 -0
  389. package/package.json +3 -4
  390. package/cjs/components/ProfileBandNavigation/helpers/index.d.ts +0 -7
  391. package/cjs/components/ProfileBandNavigation/helpers/index.js +0 -70
  392. package/cjs/components/ProfileBandNavigation/types/index.d.ts +0 -15
  393. package/cjs/components/ProfileBandNavigation/types/index.js +0 -2
  394. package/cjs/components/ProfilesList/index.d.ts +0 -27
  395. package/cjs/components/ProfilesList/index.js +0 -16
  396. package/cjs/components/RelationEditor/index.d.ts +0 -6
  397. package/cjs/components/RelationEditor/index.js +0 -50
  398. package/cjs/components/attributes/AttributesView/index.d.ts +0 -7
  399. package/cjs/components/attributes/AttributesView/index.js +0 -15
  400. package/cjs/components/attributes/editMode/AttributesView/index.d.ts +0 -23
  401. package/cjs/components/attributes/editMode/AttributesView/index.js +0 -14
  402. package/cjs/components/attributes/editMode/EntityCreator/index.d.ts +0 -25
  403. package/cjs/components/attributes/editMode/EntityCreator/index.js +0 -42
  404. package/cjs/components/attributes/editMode/ReferenceAttribute/index.d.ts +0 -4
  405. package/cjs/components/attributes/editMode/ReferenceAttribute/index.js +0 -48
  406. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.d.ts +0 -2
  407. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.js +0 -34
  408. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.d.ts +0 -1
  409. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.js +0 -19
  410. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.d.ts +0 -1
  411. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.js +0 -20
  412. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.d.ts +0 -5
  413. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.js +0 -79
  414. package/cjs/components/attributes/editMode/SimpleAttributeEditor/selectors/types.d.ts +0 -11
  415. package/cjs/components/attributes/readMode/AttributesPager/index.d.ts +0 -28
  416. package/cjs/components/attributes/readMode/AttributesPager/index.js +0 -43
  417. package/cjs/components/attributes/readMode/AttributesView/index.d.ts +0 -23
  418. package/cjs/components/attributes/readMode/AttributesView/index.js +0 -14
  419. package/cjs/test-utils/store-utils.d.ts +0 -78
  420. package/cjs/test-utils/store-utils.js +0 -19
  421. package/esm/components/ProfileBandNavigation/helpers/index.d.ts +0 -7
  422. package/esm/components/ProfileBandNavigation/helpers/index.js +0 -66
  423. package/esm/components/ProfileBandNavigation/types/index.d.ts +0 -15
  424. package/esm/components/ProfileBandNavigation/types/index.js +0 -1
  425. package/esm/components/ProfilesList/index.d.ts +0 -27
  426. package/esm/components/ProfilesList/index.js +0 -10
  427. package/esm/components/RelationEditor/index.d.ts +0 -6
  428. package/esm/components/RelationEditor/index.js +0 -21
  429. package/esm/components/attributes/AttributesView/index.d.ts +0 -7
  430. package/esm/components/attributes/AttributesView/index.js +0 -9
  431. package/esm/components/attributes/editMode/AttributesView/index.d.ts +0 -23
  432. package/esm/components/attributes/editMode/AttributesView/index.js +0 -8
  433. package/esm/components/attributes/editMode/EntityCreator/index.d.ts +0 -25
  434. package/esm/components/attributes/editMode/EntityCreator/index.js +0 -13
  435. package/esm/components/attributes/editMode/ReferenceAttribute/index.d.ts +0 -4
  436. package/esm/components/attributes/editMode/ReferenceAttribute/index.js +0 -19
  437. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.d.ts +0 -2
  438. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.js +0 -27
  439. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.d.ts +0 -1
  440. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.js +0 -15
  441. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.d.ts +0 -1
  442. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.js +0 -13
  443. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.d.ts +0 -5
  444. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.js +0 -72
  445. package/esm/components/attributes/editMode/SimpleAttributeEditor/selectors/types.d.ts +0 -11
  446. package/esm/components/attributes/readMode/AttributesPager/index.d.ts +0 -28
  447. package/esm/components/attributes/readMode/AttributesPager/index.js +0 -14
  448. package/esm/components/attributes/readMode/AttributesView/index.d.ts +0 -23
  449. package/esm/components/attributes/readMode/AttributesView/index.js +0 -8
  450. package/esm/test-utils/store-utils.d.ts +0 -78
  451. package/esm/test-utils/store-utils.js +0 -12
  452. /package/cjs/components/attributes/editMode/{SimpleAttributeEditor/selectors → AttributesPager}/types.js +0 -0
  453. /package/esm/components/attributes/editMode/{SimpleAttributeEditor/selectors → AttributesPager}/types.js +0 -0
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useMdmIsCollaborationEnabled = exports.useMdmSearchProviderData = exports.useMdmSearchNavigationData = exports.useMdmDataTenants = exports.useMdmEnvironment = exports.useMdmTenantName = exports.useMdmTenant = exports.useMdmTenantObject = exports.useMdmUserRoles = exports.useMdmUsername = exports.useMdmUser = exports.useMdmMetadata = exports.useMdmDependentLookups = exports.useMdmLookups = exports.useMdmProfileLastLoadedTime = exports.useMdmHistoryEvent = exports.useMdmHistorySlice = exports.useMdmHistoryMode = exports.useMdmHistoryDiff = exports.useMdmIsEditableMode = exports.useMdmIsViewMode = exports.useMdmMode = exports.useMdmEntityUriWithDataTenant = exports.useMdmEntityWithDiff = exports.useMdmEntityUri = exports.useMdmEntity = exports.useMdmModifiedEntities = exports.useMdmLookupAutocomplete = exports.useMdmAttributesSortingStrategy = exports.useMdmDefaultMaxValues = exports.useMdmAttributePresentations = exports.useMdmDateTimeMask = exports.useMdmDateMask = exports.useMdmPivotingAttributes = exports.useMdmShowEntityId = exports.useMdmImageAttributesFieldsOrder = exports.useMdmCollaborationPath = exports.useMdmApiPath = exports.useMdmReltioPath = exports.useMdmImageServicePath = exports.useMdmWorkflowPath = exports.useMdmServicesPath = exports.useMdmDtssPath = exports.useMdmUiPath = exports.useMdmAbsoluteImagePath = exports.useMdmExportPath = exports.useMdmWorkflowEnvironmentUrl = exports.useMdmUiError = exports.useMdmAutoCloseInterval = exports.MdmModuleProvider = void 0;
4
+ exports.useMdmListener = exports.useMdmAction = exports.useMdmGlobalSearchRequestOptions = exports.useMdmDependentLookupEditorContext = exports.useMdmAllRelationsToAddAndEdit = exports.useMdmDependentLookupsStructureNode = exports.useMdmActiveErrorsForAttributesPager = exports.useMdmDependentLookupEditorState = exports.useMdmInitialConnection = exports.useMdmInitialConnectionTempEntity = exports.useMdmModifiedEntity = exports.useMdmModifiedEntityDefaultProfilePic = exports.useMdmProfileErrors = exports.useMdmIsWorkflowEnabled = void 0;
5
+ var provider_1 = require("./provider");
6
+ Object.defineProperty(exports, "MdmModuleProvider", { enumerable: true, get: function () { return provider_1.MdmModuleProvider; } });
7
+ var hooks_1 = require("./hooks");
8
+ Object.defineProperty(exports, "useMdmAutoCloseInterval", { enumerable: true, get: function () { return hooks_1.useMdmAutoCloseInterval; } });
9
+ Object.defineProperty(exports, "useMdmUiError", { enumerable: true, get: function () { return hooks_1.useMdmUiError; } });
10
+ Object.defineProperty(exports, "useMdmWorkflowEnvironmentUrl", { enumerable: true, get: function () { return hooks_1.useMdmWorkflowEnvironmentUrl; } });
11
+ Object.defineProperty(exports, "useMdmExportPath", { enumerable: true, get: function () { return hooks_1.useMdmExportPath; } });
12
+ Object.defineProperty(exports, "useMdmAbsoluteImagePath", { enumerable: true, get: function () { return hooks_1.useMdmAbsoluteImagePath; } });
13
+ Object.defineProperty(exports, "useMdmUiPath", { enumerable: true, get: function () { return hooks_1.useMdmUiPath; } });
14
+ Object.defineProperty(exports, "useMdmDtssPath", { enumerable: true, get: function () { return hooks_1.useMdmDtssPath; } });
15
+ Object.defineProperty(exports, "useMdmServicesPath", { enumerable: true, get: function () { return hooks_1.useMdmServicesPath; } });
16
+ Object.defineProperty(exports, "useMdmWorkflowPath", { enumerable: true, get: function () { return hooks_1.useMdmWorkflowPath; } });
17
+ Object.defineProperty(exports, "useMdmImageServicePath", { enumerable: true, get: function () { return hooks_1.useMdmImageServicePath; } });
18
+ Object.defineProperty(exports, "useMdmReltioPath", { enumerable: true, get: function () { return hooks_1.useMdmReltioPath; } });
19
+ Object.defineProperty(exports, "useMdmApiPath", { enumerable: true, get: function () { return hooks_1.useMdmApiPath; } });
20
+ Object.defineProperty(exports, "useMdmCollaborationPath", { enumerable: true, get: function () { return hooks_1.useMdmCollaborationPath; } });
21
+ Object.defineProperty(exports, "useMdmImageAttributesFieldsOrder", { enumerable: true, get: function () { return hooks_1.useMdmImageAttributesFieldsOrder; } });
22
+ Object.defineProperty(exports, "useMdmShowEntityId", { enumerable: true, get: function () { return hooks_1.useMdmShowEntityId; } });
23
+ Object.defineProperty(exports, "useMdmPivotingAttributes", { enumerable: true, get: function () { return hooks_1.useMdmPivotingAttributes; } });
24
+ Object.defineProperty(exports, "useMdmDateMask", { enumerable: true, get: function () { return hooks_1.useMdmDateMask; } });
25
+ Object.defineProperty(exports, "useMdmDateTimeMask", { enumerable: true, get: function () { return hooks_1.useMdmDateTimeMask; } });
26
+ Object.defineProperty(exports, "useMdmAttributePresentations", { enumerable: true, get: function () { return hooks_1.useMdmAttributePresentations; } });
27
+ Object.defineProperty(exports, "useMdmDefaultMaxValues", { enumerable: true, get: function () { return hooks_1.useMdmDefaultMaxValues; } });
28
+ Object.defineProperty(exports, "useMdmAttributesSortingStrategy", { enumerable: true, get: function () { return hooks_1.useMdmAttributesSortingStrategy; } });
29
+ Object.defineProperty(exports, "useMdmLookupAutocomplete", { enumerable: true, get: function () { return hooks_1.useMdmLookupAutocomplete; } });
30
+ Object.defineProperty(exports, "useMdmModifiedEntities", { enumerable: true, get: function () { return hooks_1.useMdmModifiedEntities; } });
31
+ Object.defineProperty(exports, "useMdmEntity", { enumerable: true, get: function () { return hooks_1.useMdmEntity; } });
32
+ Object.defineProperty(exports, "useMdmEntityUri", { enumerable: true, get: function () { return hooks_1.useMdmEntityUri; } });
33
+ Object.defineProperty(exports, "useMdmEntityWithDiff", { enumerable: true, get: function () { return hooks_1.useMdmEntityWithDiff; } });
34
+ Object.defineProperty(exports, "useMdmEntityUriWithDataTenant", { enumerable: true, get: function () { return hooks_1.useMdmEntityUriWithDataTenant; } });
35
+ Object.defineProperty(exports, "useMdmMode", { enumerable: true, get: function () { return hooks_1.useMdmMode; } });
36
+ Object.defineProperty(exports, "useMdmIsViewMode", { enumerable: true, get: function () { return hooks_1.useMdmIsViewMode; } });
37
+ Object.defineProperty(exports, "useMdmIsEditableMode", { enumerable: true, get: function () { return hooks_1.useMdmIsEditableMode; } });
38
+ Object.defineProperty(exports, "useMdmHistoryDiff", { enumerable: true, get: function () { return hooks_1.useMdmHistoryDiff; } });
39
+ Object.defineProperty(exports, "useMdmHistoryMode", { enumerable: true, get: function () { return hooks_1.useMdmHistoryMode; } });
40
+ Object.defineProperty(exports, "useMdmHistorySlice", { enumerable: true, get: function () { return hooks_1.useMdmHistorySlice; } });
41
+ Object.defineProperty(exports, "useMdmHistoryEvent", { enumerable: true, get: function () { return hooks_1.useMdmHistoryEvent; } });
42
+ Object.defineProperty(exports, "useMdmProfileLastLoadedTime", { enumerable: true, get: function () { return hooks_1.useMdmProfileLastLoadedTime; } });
43
+ Object.defineProperty(exports, "useMdmLookups", { enumerable: true, get: function () { return hooks_1.useMdmLookups; } });
44
+ Object.defineProperty(exports, "useMdmDependentLookups", { enumerable: true, get: function () { return hooks_1.useMdmDependentLookups; } });
45
+ Object.defineProperty(exports, "useMdmMetadata", { enumerable: true, get: function () { return hooks_1.useMdmMetadata; } });
46
+ Object.defineProperty(exports, "useMdmUser", { enumerable: true, get: function () { return hooks_1.useMdmUser; } });
47
+ Object.defineProperty(exports, "useMdmUsername", { enumerable: true, get: function () { return hooks_1.useMdmUsername; } });
48
+ Object.defineProperty(exports, "useMdmUserRoles", { enumerable: true, get: function () { return hooks_1.useMdmUserRoles; } });
49
+ Object.defineProperty(exports, "useMdmTenantObject", { enumerable: true, get: function () { return hooks_1.useMdmTenantObject; } });
50
+ Object.defineProperty(exports, "useMdmTenant", { enumerable: true, get: function () { return hooks_1.useMdmTenant; } });
51
+ Object.defineProperty(exports, "useMdmTenantName", { enumerable: true, get: function () { return hooks_1.useMdmTenantName; } });
52
+ Object.defineProperty(exports, "useMdmEnvironment", { enumerable: true, get: function () { return hooks_1.useMdmEnvironment; } });
53
+ Object.defineProperty(exports, "useMdmDataTenants", { enumerable: true, get: function () { return hooks_1.useMdmDataTenants; } });
54
+ Object.defineProperty(exports, "useMdmSearchNavigationData", { enumerable: true, get: function () { return hooks_1.useMdmSearchNavigationData; } });
55
+ Object.defineProperty(exports, "useMdmSearchProviderData", { enumerable: true, get: function () { return hooks_1.useMdmSearchProviderData; } });
56
+ Object.defineProperty(exports, "useMdmIsCollaborationEnabled", { enumerable: true, get: function () { return hooks_1.useMdmIsCollaborationEnabled; } });
57
+ Object.defineProperty(exports, "useMdmIsWorkflowEnabled", { enumerable: true, get: function () { return hooks_1.useMdmIsWorkflowEnabled; } });
58
+ Object.defineProperty(exports, "useMdmProfileErrors", { enumerable: true, get: function () { return hooks_1.useMdmProfileErrors; } });
59
+ Object.defineProperty(exports, "useMdmModifiedEntityDefaultProfilePic", { enumerable: true, get: function () { return hooks_1.useMdmModifiedEntityDefaultProfilePic; } });
60
+ Object.defineProperty(exports, "useMdmModifiedEntity", { enumerable: true, get: function () { return hooks_1.useMdmModifiedEntity; } });
61
+ Object.defineProperty(exports, "useMdmInitialConnectionTempEntity", { enumerable: true, get: function () { return hooks_1.useMdmInitialConnectionTempEntity; } });
62
+ Object.defineProperty(exports, "useMdmInitialConnection", { enumerable: true, get: function () { return hooks_1.useMdmInitialConnection; } });
63
+ Object.defineProperty(exports, "useMdmDependentLookupEditorState", { enumerable: true, get: function () { return hooks_1.useMdmDependentLookupEditorState; } });
64
+ Object.defineProperty(exports, "useMdmActiveErrorsForAttributesPager", { enumerable: true, get: function () { return hooks_1.useMdmActiveErrorsForAttributesPager; } });
65
+ Object.defineProperty(exports, "useMdmDependentLookupsStructureNode", { enumerable: true, get: function () { return hooks_1.useMdmDependentLookupsStructureNode; } });
66
+ Object.defineProperty(exports, "useMdmAllRelationsToAddAndEdit", { enumerable: true, get: function () { return hooks_1.useMdmAllRelationsToAddAndEdit; } });
67
+ Object.defineProperty(exports, "useMdmDependentLookupEditorContext", { enumerable: true, get: function () { return hooks_1.useMdmDependentLookupEditorContext; } });
68
+ Object.defineProperty(exports, "useMdmGlobalSearchRequestOptions", { enumerable: true, get: function () { return hooks_1.useMdmGlobalSearchRequestOptions; } });
69
+ Object.defineProperty(exports, "useMdmAction", { enumerable: true, get: function () { return hooks_1.useMdmAction; } });
70
+ Object.defineProperty(exports, "useMdmListener", { enumerable: true, get: function () { return hooks_1.useMdmListener; } });
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { MdmModuleActionsContextProps, MdmModuleValuesContextProps, MdmModuleListenersContextProps } from './context';
3
+ type Props = {
4
+ children: React.ReactNode;
5
+ actions?: MdmModuleActionsContextProps;
6
+ values?: MdmModuleValuesContextProps;
7
+ listeners?: MdmModuleListenersContextProps;
8
+ };
9
+ export declare const MdmModuleProvider: ({ children, actions, values, listeners }: Props) => JSX.Element;
10
+ export {};
@@ -0,0 +1,15 @@
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.MdmModuleProvider = void 0;
7
+ var react_1 = __importDefault(require("react"));
8
+ var context_1 = require("./context");
9
+ var MdmModuleProvider = function (_a) {
10
+ var children = _a.children, _b = _a.actions, actions = _b === void 0 ? {} : _b, _c = _a.values, values = _c === void 0 ? {} : _c, _d = _a.listeners, listeners = _d === void 0 ? {} : _d;
11
+ return (react_1.default.createElement(context_1.MdmModuleActionsContext.Provider, { value: actions },
12
+ react_1.default.createElement(context_1.MdmModuleValuesContext.Provider, { value: values },
13
+ react_1.default.createElement(context_1.MdmModuleListenersContext.Provider, { value: listeners }, children))));
14
+ };
15
+ exports.MdmModuleProvider = MdmModuleProvider;
@@ -0,0 +1,22 @@
1
+ import { SimpleAttributeValue, DependentLookupsParentForApi, AttributeType, DependentLookupsState, Metadata, Entity, RelationsState } from '@reltio/mdm-sdk';
2
+ type DependentLookupEditorContext = {
3
+ parents: DependentLookupsParentForApi[];
4
+ disabled: boolean;
5
+ placeholder: string;
6
+ value?: null;
7
+ };
8
+ export declare const fromCache: (valueUri: string, context: DependentLookupEditorContext) => DependentLookupEditorContext;
9
+ export declare const buildMissedParentsMessage: (missedAttributeTypes: AttributeType[]) => string;
10
+ type CommonProps = {
11
+ dependentLookups: DependentLookupsState;
12
+ metadata: Metadata;
13
+ modifiedEntities: Record<string, Entity>;
14
+ entityUri: string;
15
+ relations: RelationsState;
16
+ };
17
+ type GetDependentLookupEditorContextProps = CommonProps & {
18
+ attributeValue: SimpleAttributeValue;
19
+ attributeType: AttributeType;
20
+ };
21
+ export declare const getDependentLookupEditorContext: ({ dependentLookups, metadata, modifiedEntities, entityUri, relations, attributeValue, attributeType }: GetDependentLookupEditorContextProps) => DependentLookupEditorContext;
22
+ export {};
@@ -0,0 +1,132 @@
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
23
+ return (mod && mod.__esModule) ? mod : { "default": mod };
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.getDependentLookupEditorContext = exports.buildMissedParentsMessage = exports.fromCache = void 0;
27
+ var ramda_1 = require("ramda");
28
+ var mdm_sdk_1 = require("@reltio/mdm-sdk");
29
+ var ui_i18n_1 = __importDefault(require("ui-i18n"));
30
+ var DLEditorContextCache = {};
31
+ var fromCache = function (valueUri, context) {
32
+ var cachedContext = DLEditorContextCache[valueUri];
33
+ if ((0, ramda_1.equals)(context, cachedContext)) {
34
+ return cachedContext;
35
+ }
36
+ else {
37
+ if ((0, ramda_1.equals)(cachedContext === null || cachedContext === void 0 ? void 0 : cachedContext.parents, context.parents)) {
38
+ context.parents = cachedContext.parents;
39
+ }
40
+ DLEditorContextCache[valueUri] = context;
41
+ return context;
42
+ }
43
+ };
44
+ exports.fromCache = fromCache;
45
+ var joinWords = function (words) {
46
+ return words.reduce(function (result, word, i) { return [result, word].join(i === words.length - 1 ? " ".concat(ui_i18n_1.default.text('and'), " ") : ', '); });
47
+ };
48
+ var buildMissedParentsMessage = function (missedAttributeTypes) {
49
+ if (!missedAttributeTypes.length)
50
+ return '';
51
+ return ui_i18n_1.default.text('Please select value for ${labels} ${attributes}.', {
52
+ labels: joinWords(missedAttributeTypes.map((0, ramda_1.pipe)((0, ramda_1.prop)('label'), function (label) { return "'".concat(label, "'"); }))),
53
+ attributes: missedAttributeTypes.length === 1 ? ui_i18n_1.default.text('attribute') : ui_i18n_1.default.text('attributes')
54
+ });
55
+ };
56
+ exports.buildMissedParentsMessage = buildMissedParentsMessage;
57
+ var getTypesMapKey = function (parent) { return "".concat(parent.type, "_").concat((0, mdm_sdk_1.getParentUri)(parent.uri)); };
58
+ var getParents = function (_a) {
59
+ var _b;
60
+ var dependentLookups = _a.dependentLookups, metadata = _a.metadata, modifiedEntities = _a.modifiedEntities, entityUri = _a.entityUri, relations = _a.relations, node = _a.node, valueUri = _a.valueUri;
61
+ var parentNodesValues = node.parents.flatMap(function (type) {
62
+ var parentNode = (0, mdm_sdk_1.getDependentLookupsStructureNode)(dependentLookups, type);
63
+ return parentNode.values.map(function (value) { return (__assign(__assign({}, value), { type: type, dependentLookupCode: parentNode.attrType.dependentLookupCode })); });
64
+ });
65
+ var connections = (0, mdm_sdk_1.getAllRelationsToAddAndEdit)(relations);
66
+ var ownParentNodesValues = (0, mdm_sdk_1.filterRelatedParentValuesForDependentLookupValueUri)({
67
+ parentValues: parentNodesValues,
68
+ valueUri: valueUri,
69
+ entityUri: entityUri,
70
+ modifiedEntities: modifiedEntities,
71
+ connections: connections
72
+ });
73
+ var possibleParentBaseTypeUris = (0, ramda_1.pipe)(mdm_sdk_1.getAttributeValuePath, (0, ramda_1.defaultTo)([]), (0, ramda_1.map)((0, ramda_1.pipe)((0, ramda_1.path)(['valueType', 'uri']), mdm_sdk_1.getBaseUri)), (0, ramda_1.prepend)((_b = modifiedEntities[entityUri]) === null || _b === void 0 ? void 0 : _b.type), (0, ramda_1.reject)(ramda_1.isNil), ramda_1.uniq)({ entityUri: entityUri, entitiesMap: modifiedEntities, connections: connections, metadata: metadata }, valueUri);
74
+ var neededParentsAttributeTypes = node.parents
75
+ .filter(function (typeUri) { return possibleParentBaseTypeUris.some((0, mdm_sdk_1.areOneHierarchyUris)(typeUri)); })
76
+ .map(function (typeUri) {
77
+ var parentNode = (0, mdm_sdk_1.getDependentLookupsStructureNode)(dependentLookups, typeUri);
78
+ return parentNode.attrType;
79
+ });
80
+ var missedParentsAttributeTypes = neededParentsAttributeTypes.filter(function (attrType) { return !ownParentNodesValues.some(function (_a) {
81
+ var type = _a.type, value = _a.value;
82
+ return value && type === attrType.uri;
83
+ }); });
84
+ var parents = Object.values(ownParentNodesValues.reduce(function (typesMap, parent) {
85
+ var _a;
86
+ var _b;
87
+ var key = getTypesMapKey(parent);
88
+ return __assign(__assign({}, typesMap), (_a = {}, _a[key] = {
89
+ type: parent.dependentLookupCode,
90
+ codeValues: (0, ramda_1.uniq)(__spreadArray([parent.value], (((_b = typesMap[key]) === null || _b === void 0 ? void 0 : _b.codeValues) || []), true))
91
+ .filter(Boolean)
92
+ .sort()
93
+ }, _a));
94
+ }, {})).filter(function (item) { return !!item.codeValues.length; });
95
+ return { parents: parents, missedParentsAttributeTypes: missedParentsAttributeTypes };
96
+ };
97
+ var getDependentLookupEditorContext = function (_a) {
98
+ var dependentLookups = _a.dependentLookups, metadata = _a.metadata, modifiedEntities = _a.modifiedEntities, entityUri = _a.entityUri, relations = _a.relations, attributeValue = _a.attributeValue, attributeType = _a.attributeType;
99
+ if (!(0, mdm_sdk_1.isDependentLookupAttrType)(attributeType)) {
100
+ return null;
101
+ }
102
+ var attributeTypeUri = attributeType.uri;
103
+ var node = (0, mdm_sdk_1.getDependentLookupsStructureNode)(dependentLookups, attributeTypeUri);
104
+ if (node) {
105
+ var valueUri = attributeValue.uri;
106
+ var _b = getParents({
107
+ dependentLookups: dependentLookups,
108
+ metadata: metadata,
109
+ modifiedEntities: modifiedEntities,
110
+ entityUri: entityUri,
111
+ relations: relations,
112
+ valueUri: valueUri,
113
+ node: node
114
+ }), parents = _b.parents, missedParentsAttributeTypes = _b.missedParentsAttributeTypes;
115
+ var _c = ((0, mdm_sdk_1.getDependentLookupEditorState)(dependentLookups, valueUri) || {}).isBlocked, isBlocked = _c === void 0 ? false : _c;
116
+ var missedParentsMessage = (0, exports.buildMissedParentsMessage)(missedParentsAttributeTypes);
117
+ var isEmptyValue = !(attributeValue === null || attributeValue === void 0 ? void 0 : attributeValue.lookupCode) && !(attributeValue === null || attributeValue === void 0 ? void 0 : attributeValue.value);
118
+ var placeholder = (isEmptyValue && isBlocked && ui_i18n_1.default.text('Populating values...')) ||
119
+ (isEmptyValue && missedParentsMessage) ||
120
+ '';
121
+ var context = {
122
+ parents: missedParentsMessage ? null : parents,
123
+ disabled: (!!missedParentsMessage && isEmptyValue) || isBlocked,
124
+ placeholder: placeholder
125
+ };
126
+ if (placeholder) {
127
+ context.value = null;
128
+ }
129
+ return (0, exports.fromCache)(valueUri, context);
130
+ }
131
+ };
132
+ exports.getDependentLookupEditorContext = getDependentLookupEditorContext;
@@ -0,0 +1,3 @@
1
+ import { Entity } from '@reltio/mdm-sdk';
2
+ export declare const getModifiedEntity: (modifiedEntities: Record<string, Entity>, entityUri: string) => Entity;
3
+ export declare const getModifiedEntityDefaultProfilePic: (state: Record<string, Entity>, uri: string) => string;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getModifiedEntityDefaultProfilePic = exports.getModifiedEntity = void 0;
4
+ var getModifiedEntity = function (modifiedEntities, entityUri) {
5
+ return entityUri && modifiedEntities[entityUri];
6
+ };
7
+ exports.getModifiedEntity = getModifiedEntity;
8
+ var getModifiedEntityDefaultProfilePic = function (state, uri) {
9
+ return uri && state[uri] && state[uri].defaultProfilePic;
10
+ };
11
+ exports.getModifiedEntityDefaultProfilePic = getModifiedEntityDefaultProfilePic;
@@ -0,0 +1,3 @@
1
+ import { Entity } from '@reltio/mdm-sdk';
2
+ export declare const getModifiedEntity: (modifiedEntities: Record<string, Entity>, entityUri: string) => Entity;
3
+ export declare const getModifiedEntityDefaultProfilePic: (state: Record<string, Entity>, uri: string) => string;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getModifiedEntityDefaultProfilePic = exports.getModifiedEntity = void 0;
4
+ var getModifiedEntity = function (modifiedEntities, entityUri) {
5
+ return entityUri && modifiedEntities[entityUri];
6
+ };
7
+ exports.getModifiedEntity = getModifiedEntity;
8
+ var getModifiedEntityDefaultProfilePic = function (state, uri) {
9
+ return uri && state[uri] && state[uri].defaultProfilePic;
10
+ };
11
+ exports.getModifiedEntityDefaultProfilePic = getModifiedEntityDefaultProfilePic;
@@ -31,3 +31,4 @@ export { FeaturesContext } from './FeaturesContext';
31
31
  export { DependentLookupAutopopulationContext } from './DependentLookupAutopopulationContext';
32
32
  export { PageRequestsAbortingContext } from './PageRequestsAbortingContext';
33
33
  export { ActionsHookProvider, useActionsHook } from './ActionsHookContext';
34
+ export * from './MdmModuleContext';
@@ -1,4 +1,18 @@
1
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
3
17
  exports.useActionsHook = exports.ActionsHookProvider = exports.PageRequestsAbortingContext = exports.DependentLookupAutopopulationContext = exports.FeaturesContext = exports.LabelsContext = exports.UrlGeneratorsContext = exports.isHighlightedAttributeType = exports.isHighlightedErrorType = exports.ScrollType = exports.ScrollToElementProvider = exports.ScrollToElementContext = exports.SearchValueContext = exports.InterceptHandlersContext = exports.HighlightedValuesContext = exports.SnackbarContext = exports.SearchFiltersContext = exports.useReloadFacet = exports.ReloadFacetProvider = exports.useReloadAllFacets = exports.SandboxAPIContext = exports.EntityContext = exports.RelatedObjectUrisContext = exports.WorkflowTasksContext = exports.useEntityLoadingIndication = exports.EntityLoadingIndicationProvider = exports.EntityMarkerContext = exports.useAttributeExpanded = exports.ExpandedAttributesProvider = exports.useHighlightedCrosswalks = exports.useCrosswalkHighlight = exports.useCrosswalkFocus = exports.useCrosswalkColor = exports.CrosswalksDisplayProvider = exports.EntitiesMapContext = exports.IdContext = exports.ProfilePerspectiveViewContext = exports.usePerspectivesSettings = exports.PerspectivesSettingsContext = exports.PivotingAttributeContext = exports.UsersContext = exports.CollaborationContextProvider = exports.CollaborationContext = exports.BlockImageGalleryDialogContext = exports.ViewIdContext = exports.PopupBoundariesContext = exports.HistoryDiffContext = exports.AsyncMountContext = void 0;
4
18
  var AsyncMountContext_1 = require("./AsyncMountContext");
@@ -82,3 +96,4 @@ Object.defineProperty(exports, "PageRequestsAbortingContext", { enumerable: true
82
96
  var ActionsHookContext_1 = require("./ActionsHookContext");
83
97
  Object.defineProperty(exports, "ActionsHookProvider", { enumerable: true, get: function () { return ActionsHookContext_1.ActionsHookProvider; } });
84
98
  Object.defineProperty(exports, "useActionsHook", { enumerable: true, get: function () { return ActionsHookContext_1.useActionsHook; } });
99
+ __exportStar(require("./MdmModuleContext"), exports);
@@ -10,34 +10,9 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- var desc = Object.getOwnPropertyDescriptor(m, k);
16
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
- desc = { enumerable: true, get: function() { return m[k]; } };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }) : (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- o[k2] = m[k];
23
- }));
24
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
- Object.defineProperty(o, "default", { enumerable: true, value: v });
26
- }) : function(o, v) {
27
- o["default"] = v;
28
- });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
36
13
  Object.defineProperty(exports, "__esModule", { value: true });
37
14
  exports.useAPI = void 0;
38
15
  var react_1 = require("react");
39
- var react_redux_1 = require("react-redux");
40
- var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
41
16
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
42
17
  var ramda_1 = require("ramda");
43
18
  var workflow_1 = require("../../components/workflow");
@@ -58,28 +33,27 @@ var useAPI = function (config) {
58
33
  var workerRef = (0, react_1.useRef)();
59
34
  var requestListeners = (0, react_1.useRef)({});
60
35
  var responseListeners = (0, react_1.useRef)({});
61
- var dispatch = (0, react_redux_1.useDispatch)();
62
36
  var sanitizeHtml = (0, useHtmlSanitizer_1.useHtmlSanitizer)();
63
- var uiPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getUIPath);
64
- var tenant = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getTenant);
37
+ var openSearch = (0, contexts_1.useMdmAction)('openSearch');
38
+ var uiPath = (0, contexts_1.useMdmUiPath)();
39
+ var tenant = (0, contexts_1.useMdmTenant)();
65
40
  var workerUrl = (0, helpers_1.getWorkerURL)(uiPath, tenant);
66
41
  var showSnackbarMessage = (0, react_1.useContext)(contexts_1.SnackbarContext);
67
42
  var qxApi = (0, react_1.useContext)(contexts_1.SandboxAPIContext);
68
43
  var interceptHandlers = (0, react_1.useContext)(contexts_1.InterceptHandlersContext);
69
44
  var workflowCheckPermission = (0, workflow_1.useWorkflowCheckPermission)();
70
- var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata) || {};
71
- var entity = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getEntity) || {};
72
- var apiPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getApiPath);
73
- var servicesPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getServicesPath);
74
- var reltioPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getReltioPath);
75
- var workflowPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getWorkflowPath);
76
- var user = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getUser);
77
- var entityUri = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getEntityUri);
78
- var isEditableMode = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getIsEditableMode);
79
- var environment = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getWorkflowEnvironmentUrl);
80
- var _j = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getSearchProviderData) || {}, typeSearch = _j.type, search = _j.data;
45
+ var metadata = (0, contexts_1.useMdmMetadata)() || {};
46
+ var entity = (0, contexts_1.useMdmEntity)() || {};
47
+ var apiPath = (0, contexts_1.useMdmApiPath)();
48
+ var servicesPath = (0, contexts_1.useMdmServicesPath)();
49
+ var reltioPath = (0, contexts_1.useMdmReltioPath)();
50
+ var workflowPath = (0, contexts_1.useMdmWorkflowPath)();
51
+ var user = (0, contexts_1.useMdmUser)();
52
+ var entityUri = (0, contexts_1.useMdmEntityUri)();
53
+ var isEditableMode = (0, contexts_1.useMdmIsEditableMode)();
54
+ var environment = (0, contexts_1.useMdmWorkflowEnvironmentUrl)();
55
+ var _j = (0, contexts_1.useMdmSearchProviderData)() || {}, typeSearch = _j.type, search = _j.data;
81
56
  var searchQuery = typeSearch === 'search' ? search === null || search === void 0 ? void 0 : search.query : null;
82
- var openSearch = function (search) { return dispatch(mdm_module_1.ui.actions.openSearch(search)); };
83
57
  var innerText = '';
84
58
  var popupText = '';
85
59
  var process = function (_a) {
@@ -19,16 +19,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
19
19
  }
20
20
  return to.concat(ar || Array.prototype.slice.call(from));
21
21
  };
22
- var __importDefault = (this && this.__importDefault) || function (mod) {
23
- return (mod && mod.__esModule) ? mod : { "default": mod };
24
- };
25
22
  Object.defineProperty(exports, "__esModule", { value: true });
26
23
  exports.useCollaboration = void 0;
27
24
  var react_1 = require("react");
28
- var react_redux_1 = require("react-redux");
29
25
  var ramda_1 = require("ramda");
30
26
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
31
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
27
+ var contexts_1 = require("../contexts");
32
28
  var filterReplies = function (replyId, replies) { return replies.filter(function (reply) { return reply.replyId !== replyId; }); };
33
29
  var getUpdatedReplies = function (comment, reply) {
34
30
  var changedReplyIndex = comment.replies.findIndex(function (_a) {
@@ -43,10 +39,10 @@ var defaultObjectIds = [];
43
39
  var catchErrorInRequest = function (e) { return console.error('Collaboration error', e); };
44
40
  var useCollaboration = function (_a) {
45
41
  var _b = _a.objectIds, objectIds = _b === void 0 ? defaultObjectIds : _b, objectTypes = _a.objectTypes, _c = _a.enabled, enabled = _c === void 0 ? true : _c;
46
- var entity = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getEntity);
47
- var tenant = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getTenant);
48
- var collaborationPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getCollaborationPath);
49
- var isCollaborationEnabled = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.isCollaborationEnabled) && enabled;
42
+ var entity = (0, contexts_1.useMdmEntity)();
43
+ var tenant = (0, contexts_1.useMdmTenant)();
44
+ var collaborationPath = (0, contexts_1.useMdmCollaborationPath)();
45
+ var isCollaborationEnabled = (0, contexts_1.useMdmIsCollaborationEnabled)() && enabled;
50
46
  var _d = (0, react_1.useState)(null), pageToken = _d[0], setPageToken = _d[1];
51
47
  var _e = (0, react_1.useState)([]), comments = _e[0], setComments = _e[1];
52
48
  var _f = (0, react_1.useState)(null), commentsMap = _f[0], setCommentsMap = _f[1];
@@ -10,21 +10,17 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
13
  Object.defineProperty(exports, "__esModule", { value: true });
17
14
  exports.useCommentsEntitiesMap = void 0;
18
15
  var react_1 = require("react");
19
16
  var ramda_1 = require("ramda");
20
- var react_redux_1 = require("react-redux");
21
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
22
17
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
23
18
  var useSafePromise_1 = require("./useSafePromise");
19
+ var contexts_1 = require("../contexts");
24
20
  var SELECT_OPTION = 'uri,label,type';
25
21
  var useCommentsEntitiesMap = function (comments) {
26
22
  var safePromise = (0, useSafePromise_1.useSafePromise)();
27
- var currentEntityUri = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getEntityUriWithDataTenant);
23
+ var currentEntityUri = (0, contexts_1.useMdmEntityUriWithDataTenant)();
28
24
  var _a = (0, react_1.useState)({}), entitiesMap = _a[0], setEntitiesMap = _a[1];
29
25
  var getEntities = (0, react_1.useCallback)(function (entitiesUris) {
30
26
  var requestFilters = [
@@ -1,16 +1,12 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.useConfigPermissions = void 0;
7
- var react_redux_1 = require("react-redux");
8
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
9
- var mdm_sdk_1 = require("@reltio/mdm-sdk");
10
4
  var react_1 = require("react");
5
+ var mdm_sdk_1 = require("@reltio/mdm-sdk");
6
+ var contexts_1 = require("../contexts");
11
7
  var emptyArray = [];
12
8
  var useConfigPermissions = function () {
13
- var userRoles = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getUserRoles) || emptyArray;
9
+ var userRoles = (0, contexts_1.useMdmUserRoles)() || emptyArray;
14
10
  return {
15
11
  canCreate: (0, react_1.useCallback)((0, mdm_sdk_1.checkConfigPermission)(mdm_sdk_1.ConfigPermissions.CREATE, userRoles), [userRoles]),
16
12
  canRead: (0, react_1.useCallback)((0, mdm_sdk_1.checkConfigPermission)(mdm_sdk_1.ConfigPermissions.READ, userRoles), [userRoles]),
@@ -10,29 +10,6 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- var desc = Object.getOwnPropertyDescriptor(m, k);
16
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
- desc = { enumerable: true, get: function() { return m[k]; } };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }) : (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- o[k2] = m[k];
23
- }));
24
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
- Object.defineProperty(o, "default", { enumerable: true, value: v });
26
- }) : function(o, v) {
27
- o["default"] = v;
28
- });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
36
13
  var __rest = (this && this.__rest) || function (s, e) {
37
14
  var t = {};
38
15
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -56,8 +33,6 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
56
33
  Object.defineProperty(exports, "__esModule", { value: true });
57
34
  exports.useCustomScripts = void 0;
58
35
  var react_1 = require("react");
59
- var react_redux_1 = require("react-redux");
60
- var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
61
36
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
62
37
  var nanoid_1 = require("nanoid");
63
38
  var ramda_1 = require("ramda");
@@ -80,22 +55,21 @@ var useCustomScripts = function (config) {
80
55
  var showSnackbarMessage = (0, react_1.useContext)(contexts_1.SnackbarContext);
81
56
  var _b = (0, react_1.useContext)(contexts_1.InterceptHandlersContext), addInternalRequestInterceptor = _b.addInternalRequestInterceptor, addInternalResponseInterceptor = _b.addInternalResponseInterceptor, removeInternalRequestInterceptor = _b.removeInternalRequestInterceptor, removeInternalResponseInterceptor = _b.removeInternalResponseInterceptor;
82
57
  var qxApi = (0, react_1.useContext)(contexts_1.SandboxAPIContext);
83
- var dispatch = (0, react_redux_1.useDispatch)();
84
- var metadata = (_a = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata)) !== null && _a !== void 0 ? _a : null;
85
- var entity = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getEntity) || {};
86
- var uiPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getUIPath);
87
- var servicesPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getServicesPath);
88
- var reltioPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getReltioPath);
89
- var tenant = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getTenant);
58
+ var openSearch = (0, contexts_1.useMdmAction)('openSearch');
59
+ var metadata = (_a = (0, contexts_1.useMdmMetadata)()) !== null && _a !== void 0 ? _a : null;
60
+ var entity = (0, contexts_1.useMdmEntity)() || {};
61
+ var uiPath = (0, contexts_1.useMdmUiPath)();
62
+ var servicesPath = (0, contexts_1.useMdmServicesPath)();
63
+ var reltioPath = (0, contexts_1.useMdmReltioPath)();
64
+ var tenant = (0, contexts_1.useMdmTenant)();
90
65
  var workerUrl = (0, useAPI_1.getWorkerURL)(uiPath, tenant);
91
- var apiPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getApiPath);
92
- var workflowPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getWorkflowPath);
93
- var user = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getUser);
94
- var entityUri = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getEntityUri);
95
- var environment = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getWorkflowEnvironmentUrl);
66
+ var apiPath = (0, contexts_1.useMdmApiPath)();
67
+ var workflowPath = (0, contexts_1.useMdmWorkflowPath)();
68
+ var user = (0, contexts_1.useMdmUser)();
69
+ var entityUri = (0, contexts_1.useMdmEntityUri)();
70
+ var environment = (0, contexts_1.useMdmWorkflowEnvironmentUrl)();
96
71
  var workflowCheckPermission = (0, workflow_1.useWorkflowCheckPermission)();
97
- var _c = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getSearchProviderData) || {}, typeSearch = _c.type, search = _c.data;
98
- var openSearch = function (search) { return dispatch(mdm_module_1.ui.actions.openSearch(search)); };
72
+ var _c = (0, contexts_1.useMdmSearchProviderData)() || {}, typeSearch = _c.type, search = _c.data;
99
73
  var requestListeners = (0, react_1.useRef)({});
100
74
  var responseListeners = (0, react_1.useRef)({});
101
75
  var workers = (0, react_1.useRef)({});
@@ -10,19 +10,15 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
13
  Object.defineProperty(exports, "__esModule", { value: true });
17
14
  exports.useEditableConnection = void 0;
18
15
  var react_1 = require("react");
19
16
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
20
17
  var ramda_1 = require("ramda");
21
- var react_redux_1 = require("react-redux");
22
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
18
+ var contexts_1 = require("../contexts");
23
19
  var useEditableConnection = function (_a) {
24
20
  var connection = _a.connection, onConnectionChange = _a.onConnectionChange, relatedEntity = _a.relatedEntity;
25
- var metadata = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getMetadata);
21
+ var metadata = (0, contexts_1.useMdmMetadata)();
26
22
  var onRelationChange = (0, react_1.useCallback)(function (relation) { return onConnectionChange(__assign(__assign({}, connection), { relation: relation })); }, [connection, onConnectionChange]);
27
23
  var handleAddAttributes = (0, react_1.useCallback)((0, ramda_1.pipe)((0, mdm_sdk_1.addEntityAttributes)(connection.relation), onRelationChange), [
28
24
  connection.relation,
@@ -1,21 +1,17 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.useMarkAsNotMatchRequest = void 0;
7
- var mdm_sdk_1 = require("@reltio/mdm-sdk");
8
- var react_redux_1 = require("react-redux");
9
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
10
4
  var react_1 = require("react");
5
+ var mdm_sdk_1 = require("@reltio/mdm-sdk");
11
6
  var core_1 = require("../core");
12
7
  var useIsMountedRef_1 = require("./useIsMountedRef");
8
+ var contexts_1 = require("../contexts");
13
9
  var useMarkAsNotMatchRequest = function (_a) {
14
10
  var entities = _a.entities, entity = _a.entity, onFinishRequest = _a.onFinishRequest, onStartRequest = _a.onStartRequest, onSuccess = _a.onSuccess, _b = _a.onError, onError = _b === void 0 ? core_1.noop : _b;
15
11
  var isMountedRef = (0, useIsMountedRef_1.useIsMountedRef)();
16
- var tenant = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getTenant);
17
- var dtssPath = (0, react_redux_1.useSelector)(mdm_module_1.default.selectors.getDtssPath);
18
12
  var _c = (0, react_1.useState)(false), isPending = _c[0], setIsPending = _c[1];
13
+ var tenant = (0, contexts_1.useMdmTenant)();
14
+ var dtssPath = (0, contexts_1.useMdmDtssPath)();
19
15
  var sendMarkAsNotMatchRequest = (0, react_1.useCallback)(function () {
20
16
  onStartRequest === null || onStartRequest === void 0 ? void 0 : onStartRequest();
21
17
  setIsPending(true);