@reltio/components 1.4.1944 → 1.4.1946

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 (301) hide show
  1. package/cjs/AttributeListItem/AttributeListItem.spec.js +4 -4
  2. package/cjs/AttributesErrorsPanel/components/Error/Error.specs.js +1 -1
  3. package/cjs/AttributesFiltersBuilder/AttributesFiltersBuilder.test.js +8 -8
  4. package/cjs/AttributesFiltersBuilder/components/AttributeSelector/AttributeSelector.test.js +2 -2
  5. package/cjs/AttributesFiltersBuilder/components/RowActions/RowActions.test.js +3 -3
  6. package/cjs/AttributesFiltersButton/AttributesFiltersButton.test.js +1 -1
  7. package/cjs/AttributesView/AttributesView.d.ts +2 -1
  8. package/cjs/AttributesView/AttributesView.js +4 -2
  9. package/cjs/AttributesView/AttributesView.test.js +32 -0
  10. package/cjs/AutoSizeList/AutoSizeList.test.js +27 -30
  11. package/cjs/BasicTable/BasicTable.test.js +26 -5
  12. package/cjs/BasicTable/IntegrationBasicTable.test.js +16 -5
  13. package/cjs/BasicTable/helpers.test.js +1 -1
  14. package/cjs/CollapseRowButton/CollapseRowButton.test.js +3 -3
  15. package/cjs/CommentsContainer/CommentsContainer.test.js +2 -2
  16. package/cjs/CustomDateRangeEditor/CustomDateRangeEditor.test.js +2 -2
  17. package/cjs/DataTypeValue/DataTypeValue.test.js +2 -25
  18. package/cjs/DataTypeValueEditor/useEditorContext.test.js +2 -2
  19. package/cjs/DependentLookupEditor/DependentLookupEditor.test.js +116 -70
  20. package/cjs/DropDownEditor/DropDownEditor.test.js +1 -1
  21. package/cjs/EditModeAttributesFactory/components/EditModeAttribute/EditModeAttribute.test.js +4 -27
  22. package/cjs/EditModeAttributesList/EditModeAttributesList.d.ts +1 -1
  23. package/cjs/EditModeAttributesList/EditModeAttributesList.js +16 -5
  24. package/cjs/EditModeAttributesList/EditModeAttributesList.test.js +7 -4
  25. package/cjs/EditModeAttributesPager/EditModeAttributesPager.js +1 -2
  26. package/cjs/EditModeAttributesPager/components/AttributeRenderer/AttributeRenderer.js +4 -1
  27. package/cjs/EditModeAttributesView/IntegrationEditModeAttributesView.test.js +28 -37
  28. package/cjs/EntitySelector/EntitySelector.test.js +13 -42
  29. package/cjs/EntitySelector/components/ClearIndicator/ClearIndicator.test.js +1 -1
  30. package/cjs/EntitySelector/components/EntityOption/EntityOption.test.js +1 -1
  31. package/cjs/EntitySelector/components/Group/Group.test.js +1 -1
  32. package/cjs/EntityUriLink/EntityUriLink.test.js +1 -0
  33. package/cjs/ErrorBoundary/ErrorBoundary.test.js +2 -0
  34. package/cjs/ExpandedValueTooltip/ExpandedValueTooltip.test.js +4 -1
  35. package/cjs/FilterButton/FilterButton.test.js +1 -1
  36. package/cjs/HOCs/withFilter/components/ColumnFilter/ColumnFilter.spec.js +3 -3
  37. package/cjs/HOCs/withTableContext/withTableContext.test.js +1 -1
  38. package/cjs/HierarchyNodeTitle/HierarchyNodeTitle.test.js +4 -27
  39. package/cjs/HierarchyNodeTitle/useEntityDetails.test.js +18 -32
  40. package/cjs/ImageAttributesGallery/ImageAttributesGallery.test.js +6 -4
  41. package/cjs/ImageAttributesGallery/components/HeaderRight/HeaderRight.test.js +1 -1
  42. package/cjs/ImageAttributesLine/ImageAttributesLine.test.js +110 -68
  43. package/cjs/ImageAttributesLineEditor/ImageAttributesLineEditor.test.js +4 -4
  44. package/cjs/ImageGalleryDialog/ImageGalleryDialog.specs.js +3 -3
  45. package/cjs/ImportButton/ImportButton.test.js +1 -1
  46. package/cjs/InlineAttributesPager/components/InlineNestedAttributesBlock/InlineNestedAttributesBlock.test.js +1 -1
  47. package/cjs/InlineAttributesPager/components/InlineSimpleAttributesBlock/InlineSimpleAttributesBlock.test.js +1 -1
  48. package/cjs/InlineComplexAttribute/InlineComplexAttribute.test.js +3 -3
  49. package/cjs/InlineSimpleAttribute/InlineSimpleAttribute.spec.js +31 -22
  50. package/cjs/LineChart/LineChart.test.js +1 -1
  51. package/cjs/Link/Link.test.js +1 -0
  52. package/cjs/LookupEditor/LookupEditor.test.js +3 -3
  53. package/cjs/LookupEditor/components/GroupedDropDownEditor/GroupedDropDownEditor.test.js +1 -1
  54. package/cjs/MapChart/MapChart.test.js +3 -3
  55. package/cjs/MetadataTypesSelector/MetadataTypesSelector.test.js +3 -3
  56. package/cjs/MoreAttributesButton/MoreAttributesButton.test.js +1 -1
  57. package/cjs/MultipleInput/MultipleInput.test.js +11 -11
  58. package/cjs/MultipliableSelect/MultipliableSelect.test.js +14 -8
  59. package/cjs/NestedAttributeEditor/NestedAttributeEditor.test.js +4 -27
  60. package/cjs/NumberEditor/NumberEditor.test.js +4 -4
  61. package/cjs/PieChart/PieChart.test.js +1 -1
  62. package/cjs/PivotingTooltip/IntegrationPivotingTooltip.test.js +11 -34
  63. package/cjs/PivotingTooltip/components/PivotingTooltipContent/PivotingTooltipContent.test.js +4 -30
  64. package/cjs/PivotingUriLink/PivotingUriLink.spec.js +1 -0
  65. package/cjs/ProfileBandNavigation/useSearchNavigation.test.js +3 -3
  66. package/cjs/ProfilesList/ProfilesList.spec.js +1 -1
  67. package/cjs/ReactSelectLoadMoreButton/ReactSelectLoadMoreButton.test.js +1 -1
  68. package/cjs/ReadOnlyAttributesList/ReadOnlyAttributesList.d.ts +2 -2
  69. package/cjs/ReadOnlyAttributesList/ReadOnlyAttributesList.js +6 -4
  70. package/cjs/ReadOnlyAttributesList/ReadOnlyAttributesList.test.js +1 -1
  71. package/cjs/ReadOnlyAttributesPager/ReadOnlyAttributesPager.js +11 -2
  72. package/cjs/ReadOnlyAttributesPager/components/EmptyRenderer/EmptyRenderer.d.ts +9 -0
  73. package/cjs/ReadOnlyAttributesPager/components/EmptyRenderer/EmptyRenderer.js +20 -0
  74. package/cjs/ReadOnlyAttributesPager/components/EmptyRenderer/index.d.ts +1 -0
  75. package/cjs/ReadOnlyAttributesPager/components/EmptyRenderer/index.js +5 -0
  76. package/cjs/ReadOnlyAttributesPager/styles.d.ts +1 -0
  77. package/cjs/ReadOnlyAttributesPager/styles.js +5 -1
  78. package/cjs/ReferenceAttributeEditor/ReferenceAttributeEditor.test.js +6 -30
  79. package/cjs/RelationEditor/IntegrationRelationEditor.test.js +1 -1
  80. package/cjs/RelationEditor/RelationEditor.test.js +20 -44
  81. package/cjs/ReltioMap/ReltioMap.spec.js +10 -8
  82. package/cjs/ReltioMap/components/EntityMarker/EntityMarker.spec.js +2 -26
  83. package/cjs/ScrollableTabs/ScrollableTabs.test.js +1 -1
  84. package/cjs/SearchInput/SearchInput.spec.js +2 -2
  85. package/cjs/SelectionPopup/SelectionPopup.spec.js +9 -12
  86. package/cjs/SelectorWithOnlyOptionAutoSelect/SelectorWithOnlyOptionAutoSelect.test.js +4 -4
  87. package/cjs/ShowLess/ShowLess.test.js +1 -1
  88. package/cjs/ShowMore/ShowMore.test.js +2 -2
  89. package/cjs/SideButtonsPanel/SideButtonsPanel.spec.js +3 -3
  90. package/cjs/SimpleAttribute/IntegrationSimpleAttribute.test.js +15 -34
  91. package/cjs/SimpleDropDownSelector/SimpleDropDownSelector.test.js +1 -1
  92. package/cjs/TableWithBars/TableWithBars.test.js +1 -1
  93. package/cjs/TreeChart/TreeChart.test.js +1 -1
  94. package/cjs/TypeaheadEditor/TypeaheadEditor.test.js +8 -1
  95. package/cjs/UploadFileButton/UploadFileButton.spec.js +103 -69
  96. package/cjs/VerticalHeadingsTable/components/TableCellWithDnd/TableCellWithDnd.test.js +4 -1
  97. package/cjs/VerticalHeadingsTable/components/TableRowWithDnd/TableRowWithDnd.test.js +3 -1
  98. package/cjs/constants/attributes.d.ts +1 -1
  99. package/cjs/constants/attributes.js +2 -2
  100. package/cjs/constants/index.d.ts +1 -1
  101. package/cjs/constants/index.js +2 -2
  102. package/cjs/contexts/AllwaysVisibleAttributesContext/index.d.ts +2 -0
  103. package/cjs/contexts/AllwaysVisibleAttributesContext/index.js +6 -0
  104. package/cjs/features/activity-log/ActivitiesFactory/components/SearchActivity/SearchActivity.test.js +2 -2
  105. package/cjs/features/activity-log/ActivityExportButton/ActivityExportButton.specs.js +1 -25
  106. package/cjs/features/activity-log/ActivityFilterEditor/components/EntityChangedSelectors/EntityChangedSelectors.specs.js +1 -25
  107. package/cjs/features/activity-log/ActivityLog/ActivityLog.test.js +4 -0
  108. package/cjs/features/activity-log/ActivityLog/components/GroupItem/GroupItem.test.js +1 -1
  109. package/cjs/features/activity-log/ActivityLogFilter/ActivityLogFilter.specs.js +1 -2
  110. package/cjs/features/crosswalks/AttributesTable/AttributesTable.test.js +13 -13
  111. package/cjs/features/crosswalks/AttributesTable/IntegrationAttributesTable.test.js +5 -5
  112. package/cjs/features/crosswalks/AttributesTable/components/AddAttributesButton/AddAttributesButton.test.js +4 -4
  113. package/cjs/features/crosswalks/AttributesTable/components/ConfirmEditIgnoredDialog/ConfirmEditIgnoredDialog.test.js +5 -5
  114. package/cjs/features/crosswalks/AttributesTable/components/WinnerSourcesRenderer/WinnerSourcesRenderer.test.js +2 -2
  115. package/cjs/features/crosswalks/CrosswalkDragLayer/components/CrosswalkDragPreview/CrosswalkDragPreview.d.ts +2 -2
  116. package/cjs/features/crosswalks/CrosswalkDragLayer/components/CrosswalkDragPreview/CrosswalkDragPreview.js +27 -4
  117. package/cjs/features/crosswalks/CrosswalkRow/CrosswalkRow.test.js +15 -16
  118. package/cjs/features/crosswalks/ShowDependentLink/ShowDependentLink.test.js +1 -1
  119. package/cjs/features/crosswalks/SourceCrosswalksRow/SourceCrosswalksRow.test.js +2 -2
  120. package/cjs/features/crosswalks/hooks/useAttributeActions.test.js +95 -118
  121. package/cjs/features/crosswalks/hooks/useCrosswalkActions.test.js +38 -61
  122. package/cjs/features/crosswalks/hooks/useModifiedEntity.test.js +8 -8
  123. package/cjs/features/graph/DataModelGraph/hooks/useEdgeLabelsRenderer.test.js +2 -2
  124. package/cjs/features/history/ContributorsPanel/components/ContributorItem/ContributorItem.specs.js +5 -26
  125. package/cjs/features/history/HistoryGraph/components/HistoryLink/HistoryLink.specs.js +2 -2
  126. package/cjs/features/history/HistoryRow/HistoryRow.specs.js +2 -26
  127. package/cjs/features/history/HistoryTree/HistoryTree.specs.js +1 -1
  128. package/cjs/features/history/HistoryView/HistoryView.specs.js +1 -1
  129. package/cjs/features/history/helpers/filters.test.js +6 -6
  130. package/cjs/features/history/hooks/useHistory.test.js +23 -48
  131. package/cjs/features/workflow/AddWorkflowDialog/AddWorkflowDialog.spec.js +24 -8
  132. package/cjs/features/workflow/AssigneeSelector/AssigneeSelector.spec.js +1 -26
  133. package/cjs/features/workflow/WorkflowTaskCard/components/GenericWorkflowTaskCard/GenericWorkflowTaskCard.spec.js +4 -30
  134. package/cjs/features/workflow/hooks/useChangeRequest.specs.js +11 -36
  135. package/cjs/helpers/attributesView.d.ts +1 -1
  136. package/cjs/helpers/attributesView.js +2 -2
  137. package/cjs/helpers/customScript.test.js +19 -19
  138. package/cjs/hooks/useAPI/useAPI.test.js +12 -12
  139. package/cjs/hooks/useBasicTableCellRenderer/CellRenderer.test.js +2 -1
  140. package/cjs/hooks/useCollapsibleTableRows/dataHelpers.test.js +1 -1
  141. package/cjs/hooks/useCollapsibleTableRows/useCollapsibleTableRows.test.js +1 -1
  142. package/cjs/hooks/useConfigPermissions/useConfigPermissions.specs.js +5 -29
  143. package/cjs/hooks/useCustomScripts/useCustomScripts.test.js +8 -8
  144. package/cjs/hooks/useLayoutResetter/useLayoutResetter.test.js +8 -8
  145. package/cjs/hooks/useMarkers/helpers.js +1 -2
  146. package/cjs/hooks/useReadableSearchState/useReadableSearchState.test.js +14 -44
  147. package/cjs/hooks/useRelationsLoader/useRelationsLoader.specs.js +3 -4
  148. package/cjs/hooks/useSavedStateForEntityType/useSavedStateForEntityType.test.js +4 -4
  149. package/cjs/hooks/useScrollToAttributeError/useScrollToAttributeError.test.js +1 -1
  150. package/cjs/hooks/useSnackbar/useSnackbar.test.js +24 -17
  151. package/esm/AttributeListItem/AttributeListItem.spec.js +4 -4
  152. package/esm/AttributesErrorsPanel/components/Error/Error.specs.js +1 -1
  153. package/esm/AttributesFiltersBuilder/AttributesFiltersBuilder.test.js +8 -8
  154. package/esm/AttributesFiltersBuilder/components/AttributeSelector/AttributeSelector.test.js +2 -2
  155. package/esm/AttributesFiltersBuilder/components/RowActions/RowActions.test.js +3 -3
  156. package/esm/AttributesFiltersButton/AttributesFiltersButton.test.js +1 -1
  157. package/esm/AttributesView/AttributesView.d.ts +2 -1
  158. package/esm/AttributesView/AttributesView.js +4 -2
  159. package/esm/AttributesView/AttributesView.test.js +32 -0
  160. package/esm/AutoSizeList/AutoSizeList.test.js +28 -31
  161. package/esm/BasicTable/BasicTable.test.js +26 -5
  162. package/esm/BasicTable/IntegrationBasicTable.test.js +17 -6
  163. package/esm/BasicTable/helpers.test.js +1 -1
  164. package/esm/CollapseRowButton/CollapseRowButton.test.js +3 -3
  165. package/esm/CommentsContainer/CommentsContainer.test.js +2 -2
  166. package/esm/CustomDateRangeEditor/CustomDateRangeEditor.test.js +2 -2
  167. package/esm/DataTypeValue/DataTypeValue.test.js +2 -2
  168. package/esm/DataTypeValueEditor/useEditorContext.test.js +2 -2
  169. package/esm/DependentLookupEditor/DependentLookupEditor.test.js +116 -70
  170. package/esm/DropDownEditor/DropDownEditor.test.js +1 -1
  171. package/esm/EditModeAttributesFactory/components/EditModeAttribute/EditModeAttribute.test.js +4 -4
  172. package/esm/EditModeAttributesList/EditModeAttributesList.d.ts +1 -1
  173. package/esm/EditModeAttributesList/EditModeAttributesList.js +17 -6
  174. package/esm/EditModeAttributesList/EditModeAttributesList.test.js +5 -2
  175. package/esm/EditModeAttributesPager/EditModeAttributesPager.js +1 -2
  176. package/esm/EditModeAttributesPager/components/AttributeRenderer/AttributeRenderer.js +4 -1
  177. package/esm/EditModeAttributesView/IntegrationEditModeAttributesView.test.js +30 -16
  178. package/esm/EntitySelector/EntitySelector.test.js +13 -19
  179. package/esm/EntitySelector/components/ClearIndicator/ClearIndicator.test.js +1 -1
  180. package/esm/EntitySelector/components/EntityOption/EntityOption.test.js +1 -1
  181. package/esm/EntitySelector/components/Group/Group.test.js +1 -1
  182. package/esm/EntityUriLink/EntityUriLink.test.js +1 -0
  183. package/esm/ErrorBoundary/ErrorBoundary.test.js +2 -0
  184. package/esm/ExpandedValueTooltip/ExpandedValueTooltip.test.js +4 -1
  185. package/esm/FilterButton/FilterButton.test.js +1 -1
  186. package/esm/HOCs/withFilter/components/ColumnFilter/ColumnFilter.spec.js +3 -3
  187. package/esm/HOCs/withTableContext/withTableContext.test.js +1 -1
  188. package/esm/HierarchyNodeTitle/HierarchyNodeTitle.test.js +4 -4
  189. package/esm/HierarchyNodeTitle/useEntityDetails.test.js +19 -10
  190. package/esm/ImageAttributesGallery/ImageAttributesGallery.test.js +6 -4
  191. package/esm/ImageAttributesGallery/components/HeaderRight/HeaderRight.test.js +1 -1
  192. package/esm/ImageAttributesLine/ImageAttributesLine.test.js +110 -68
  193. package/esm/ImageAttributesLineEditor/ImageAttributesLineEditor.test.js +4 -4
  194. package/esm/ImageGalleryDialog/ImageGalleryDialog.specs.js +3 -3
  195. package/esm/ImportButton/ImportButton.test.js +1 -1
  196. package/esm/InlineAttributesPager/components/InlineNestedAttributesBlock/InlineNestedAttributesBlock.test.js +1 -1
  197. package/esm/InlineAttributesPager/components/InlineSimpleAttributesBlock/InlineSimpleAttributesBlock.test.js +1 -1
  198. package/esm/InlineComplexAttribute/InlineComplexAttribute.test.js +3 -3
  199. package/esm/InlineSimpleAttribute/InlineSimpleAttribute.spec.js +32 -23
  200. package/esm/LineChart/LineChart.test.js +1 -1
  201. package/esm/Link/Link.test.js +1 -0
  202. package/esm/LookupEditor/LookupEditor.test.js +3 -3
  203. package/esm/LookupEditor/components/GroupedDropDownEditor/GroupedDropDownEditor.test.js +1 -1
  204. package/esm/MapChart/MapChart.test.js +3 -3
  205. package/esm/MetadataTypesSelector/MetadataTypesSelector.test.js +3 -3
  206. package/esm/MoreAttributesButton/MoreAttributesButton.test.js +1 -1
  207. package/esm/MultipleInput/MultipleInput.test.js +11 -11
  208. package/esm/MultipliableSelect/MultipliableSelect.test.js +14 -8
  209. package/esm/NestedAttributeEditor/NestedAttributeEditor.test.js +4 -4
  210. package/esm/NumberEditor/NumberEditor.test.js +4 -4
  211. package/esm/PieChart/PieChart.test.js +1 -1
  212. package/esm/PivotingTooltip/IntegrationPivotingTooltip.test.js +11 -11
  213. package/esm/PivotingTooltip/components/PivotingTooltipContent/PivotingTooltipContent.test.js +4 -7
  214. package/esm/PivotingUriLink/PivotingUriLink.spec.js +1 -0
  215. package/esm/ProfileBandNavigation/useSearchNavigation.test.js +3 -3
  216. package/esm/ProfilesList/ProfilesList.spec.js +1 -1
  217. package/esm/ReactSelectLoadMoreButton/ReactSelectLoadMoreButton.test.js +1 -1
  218. package/esm/ReadOnlyAttributesList/ReadOnlyAttributesList.d.ts +2 -2
  219. package/esm/ReadOnlyAttributesList/ReadOnlyAttributesList.js +7 -5
  220. package/esm/ReadOnlyAttributesList/ReadOnlyAttributesList.test.js +1 -1
  221. package/esm/ReadOnlyAttributesPager/ReadOnlyAttributesPager.js +12 -3
  222. package/esm/ReadOnlyAttributesPager/components/EmptyRenderer/EmptyRenderer.d.ts +9 -0
  223. package/esm/ReadOnlyAttributesPager/components/EmptyRenderer/EmptyRenderer.js +13 -0
  224. package/esm/ReadOnlyAttributesPager/components/EmptyRenderer/index.d.ts +1 -0
  225. package/esm/ReadOnlyAttributesPager/components/EmptyRenderer/index.js +1 -0
  226. package/esm/ReadOnlyAttributesPager/styles.d.ts +1 -0
  227. package/esm/ReadOnlyAttributesPager/styles.js +4 -0
  228. package/esm/ReferenceAttributeEditor/ReferenceAttributeEditor.test.js +7 -8
  229. package/esm/RelationEditor/IntegrationRelationEditor.test.js +1 -1
  230. package/esm/RelationEditor/RelationEditor.test.js +21 -22
  231. package/esm/ReltioMap/ReltioMap.spec.js +11 -9
  232. package/esm/ReltioMap/components/EntityMarker/EntityMarker.spec.js +3 -4
  233. package/esm/ScrollableTabs/ScrollableTabs.test.js +1 -1
  234. package/esm/SearchInput/SearchInput.spec.js +2 -2
  235. package/esm/SelectionPopup/SelectionPopup.spec.js +9 -12
  236. package/esm/SelectorWithOnlyOptionAutoSelect/SelectorWithOnlyOptionAutoSelect.test.js +4 -4
  237. package/esm/ShowLess/ShowLess.test.js +1 -1
  238. package/esm/ShowMore/ShowMore.test.js +2 -2
  239. package/esm/SideButtonsPanel/SideButtonsPanel.spec.js +3 -3
  240. package/esm/SimpleAttribute/IntegrationSimpleAttribute.test.js +16 -12
  241. package/esm/SimpleDropDownSelector/SimpleDropDownSelector.test.js +1 -1
  242. package/esm/TableWithBars/TableWithBars.test.js +1 -1
  243. package/esm/TreeChart/TreeChart.test.js +1 -1
  244. package/esm/TypeaheadEditor/TypeaheadEditor.test.js +8 -1
  245. package/esm/UploadFileButton/UploadFileButton.spec.js +103 -69
  246. package/esm/VerticalHeadingsTable/components/TableCellWithDnd/TableCellWithDnd.test.js +4 -1
  247. package/esm/VerticalHeadingsTable/components/TableRowWithDnd/TableRowWithDnd.test.js +3 -1
  248. package/esm/constants/attributes.d.ts +1 -1
  249. package/esm/constants/attributes.js +1 -1
  250. package/esm/constants/index.d.ts +1 -1
  251. package/esm/constants/index.js +1 -1
  252. package/esm/contexts/AllwaysVisibleAttributesContext/index.d.ts +2 -0
  253. package/esm/contexts/AllwaysVisibleAttributesContext/index.js +3 -0
  254. package/esm/features/activity-log/ActivitiesFactory/components/SearchActivity/SearchActivity.test.js +2 -2
  255. package/esm/features/activity-log/ActivityExportButton/ActivityExportButton.specs.js +1 -2
  256. package/esm/features/activity-log/ActivityFilterEditor/components/EntityChangedSelectors/EntityChangedSelectors.specs.js +2 -3
  257. package/esm/features/activity-log/ActivityLog/ActivityLog.test.js +4 -0
  258. package/esm/features/activity-log/ActivityLog/components/GroupItem/GroupItem.test.js +1 -1
  259. package/esm/features/activity-log/ActivityLogFilter/ActivityLogFilter.specs.js +1 -2
  260. package/esm/features/crosswalks/AttributesTable/AttributesTable.test.js +13 -13
  261. package/esm/features/crosswalks/AttributesTable/IntegrationAttributesTable.test.js +5 -5
  262. package/esm/features/crosswalks/AttributesTable/components/AddAttributesButton/AddAttributesButton.test.js +4 -4
  263. package/esm/features/crosswalks/AttributesTable/components/ConfirmEditIgnoredDialog/ConfirmEditIgnoredDialog.test.js +5 -5
  264. package/esm/features/crosswalks/AttributesTable/components/WinnerSourcesRenderer/WinnerSourcesRenderer.test.js +2 -2
  265. package/esm/features/crosswalks/CrosswalkDragLayer/components/CrosswalkDragPreview/CrosswalkDragPreview.d.ts +2 -2
  266. package/esm/features/crosswalks/CrosswalkDragLayer/components/CrosswalkDragPreview/CrosswalkDragPreview.js +4 -3
  267. package/esm/features/crosswalks/CrosswalkRow/CrosswalkRow.test.js +15 -16
  268. package/esm/features/crosswalks/ShowDependentLink/ShowDependentLink.test.js +1 -1
  269. package/esm/features/crosswalks/SourceCrosswalksRow/SourceCrosswalksRow.test.js +2 -2
  270. package/esm/features/crosswalks/hooks/useAttributeActions.test.js +95 -95
  271. package/esm/features/crosswalks/hooks/useCrosswalkActions.test.js +38 -38
  272. package/esm/features/crosswalks/hooks/useModifiedEntity.test.js +8 -8
  273. package/esm/features/graph/DataModelGraph/hooks/useEdgeLabelsRenderer.test.js +2 -2
  274. package/esm/features/history/ContributorsPanel/components/ContributorItem/ContributorItem.specs.js +5 -3
  275. package/esm/features/history/HistoryGraph/components/HistoryLink/HistoryLink.specs.js +2 -2
  276. package/esm/features/history/HistoryRow/HistoryRow.specs.js +2 -3
  277. package/esm/features/history/HistoryTree/HistoryTree.specs.js +1 -1
  278. package/esm/features/history/HistoryView/HistoryView.specs.js +1 -1
  279. package/esm/features/history/helpers/filters.test.js +6 -6
  280. package/esm/features/history/hooks/useHistory.test.js +23 -25
  281. package/esm/features/workflow/AddWorkflowDialog/AddWorkflowDialog.spec.js +25 -9
  282. package/esm/features/workflow/AssigneeSelector/AssigneeSelector.spec.js +1 -3
  283. package/esm/features/workflow/WorkflowTaskCard/components/GenericWorkflowTaskCard/GenericWorkflowTaskCard.spec.js +5 -8
  284. package/esm/features/workflow/hooks/useChangeRequest.specs.js +11 -13
  285. package/esm/helpers/attributesView.d.ts +1 -1
  286. package/esm/helpers/attributesView.js +2 -2
  287. package/esm/helpers/customScript.test.js +19 -19
  288. package/esm/hooks/useAPI/useAPI.test.js +12 -12
  289. package/esm/hooks/useBasicTableCellRenderer/CellRenderer.test.js +2 -1
  290. package/esm/hooks/useCollapsibleTableRows/dataHelpers.test.js +1 -1
  291. package/esm/hooks/useCollapsibleTableRows/useCollapsibleTableRows.test.js +1 -1
  292. package/esm/hooks/useConfigPermissions/useConfigPermissions.specs.js +6 -7
  293. package/esm/hooks/useCustomScripts/useCustomScripts.test.js +8 -8
  294. package/esm/hooks/useLayoutResetter/useLayoutResetter.test.js +9 -9
  295. package/esm/hooks/useMarkers/helpers.js +1 -2
  296. package/esm/hooks/useReadableSearchState/useReadableSearchState.test.js +8 -15
  297. package/esm/hooks/useRelationsLoader/useRelationsLoader.specs.js +1 -2
  298. package/esm/hooks/useSavedStateForEntityType/useSavedStateForEntityType.test.js +4 -4
  299. package/esm/hooks/useScrollToAttributeError/useScrollToAttributeError.test.js +1 -1
  300. package/esm/hooks/useSnackbar/useSnackbar.test.js +25 -18
  301. package/package.json +2 -2
@@ -9,5 +9,6 @@ export type AttributesViewProps = {
9
9
  includeUris?: string[];
10
10
  pinnedAttributes?: PinnedAttribute[];
11
11
  mode?: Mode;
12
+ alwaysVisible?: string[];
12
13
  };
13
- export declare const AttributesView: ({ attributesCount, pinnedAttributes, ...restProps }: AttributesViewProps) => JSX.Element;
14
+ export declare const AttributesView: ({ attributesCount, pinnedAttributes, alwaysVisible, ...restProps }: AttributesViewProps) => JSX.Element;
@@ -26,11 +26,13 @@ import { ReadOnlyAttributesView } from '../ReadOnlyAttributesView';
26
26
  import { EditModeAttributesView } from '../EditModeAttributesView';
27
27
  import { EntityContext } from '../contexts/EntityContext';
28
28
  import { useMdmEntityWithDiff, useMdmMode } from '../contexts/MdmModuleContext';
29
+ import { AlwaysVisibleAttributesContext } from '../contexts/AllwaysVisibleAttributesContext';
29
30
  export var AttributesView = function (_a) {
30
- var attributesCount = _a.attributesCount, pinnedAttributes = _a.pinnedAttributes, restProps = __rest(_a, ["attributesCount", "pinnedAttributes"]);
31
+ var attributesCount = _a.attributesCount, pinnedAttributes = _a.pinnedAttributes, _b = _a.alwaysVisible, alwaysVisible = _b === void 0 ? [] : _b, restProps = __rest(_a, ["attributesCount", "pinnedAttributes", "alwaysVisible"]);
31
32
  var mdmEntity = useMdmEntityWithDiff();
32
33
  var mdmMode = useMdmMode();
33
34
  var entity = restProps.entity || mdmEntity;
34
35
  var mode = restProps.mode || mdmMode;
35
- return (React.createElement(EntityContext.Provider, { value: entity }, isViewMode(mode) ? (React.createElement(ReadOnlyAttributesView, __assign({}, restProps, { attributesCount: attributesCount, entity: entity }))) : (React.createElement(EditModeAttributesView, __assign({}, restProps, { mode: mode, pinnedAttributes: pinnedAttributes, entity: entity })))));
36
+ return (React.createElement(EntityContext.Provider, { value: entity },
37
+ React.createElement(AlwaysVisibleAttributesContext.Provider, { value: alwaysVisible }, isViewMode(mode) ? (React.createElement(ReadOnlyAttributesView, __assign({}, restProps, { attributesCount: attributesCount, entity: entity }))) : (React.createElement(EditModeAttributesView, __assign({}, restProps, { mode: mode, pinnedAttributes: pinnedAttributes, entity: entity }))))));
36
38
  };
@@ -40,6 +40,20 @@ describe('AttributesView tests', function () {
40
40
  name: 'FirstName',
41
41
  label: 'First Name',
42
42
  access: ['READ', 'CREATE', 'UPDATE', 'INITIATE_CHANGE_REQUEST']
43
+ },
44
+ {
45
+ uri: 'configuration/entityTypes/HCP/attributes/LastName',
46
+ type: 'String',
47
+ name: 'LastName',
48
+ label: 'Last Name',
49
+ access: ['READ', 'CREATE', 'UPDATE', 'INITIATE_CHANGE_REQUEST']
50
+ },
51
+ {
52
+ uri: 'configuration/entityTypes/HCP/attributes/Phone',
53
+ type: 'String',
54
+ name: 'Phone',
55
+ label: 'Phone',
56
+ access: ['READ', 'CREATE', 'UPDATE', 'INITIATE_CHANGE_REQUEST']
43
57
  }
44
58
  ]
45
59
  }
@@ -86,4 +100,22 @@ describe('AttributesView tests', function () {
86
100
  setUp({ entity: entity }, __assign(__assign({}, mdmDefaultValues), { mode: Mode.Suggesting }));
87
101
  expect(screen.getByRole('textbox')).toHaveValue('nameValue');
88
102
  });
103
+ it('should render always visible attributes in read mode', function () {
104
+ var alwaysVisible = [
105
+ 'configuration/entityTypes/HCP/attributes/LastName',
106
+ 'configuration/entityTypes/HCP/attributes/Phone'
107
+ ];
108
+ setUp({ mode: Mode.Viewing, entity: entity, alwaysVisible: alwaysVisible });
109
+ expect(screen.getByText('Last Name')).toBeInTheDocument();
110
+ expect(screen.getByText('Phone')).toBeInTheDocument();
111
+ });
112
+ it('should render always visible attributes in editing mode', function () {
113
+ var alwaysVisible = [
114
+ 'configuration/entityTypes/HCP/attributes/LastName',
115
+ 'configuration/entityTypes/HCP/attributes/Phone'
116
+ ];
117
+ setUp({ mode: Mode.Editing, entity: entity, alwaysVisible: alwaysVisible });
118
+ expect(screen.getByText('Last Name')).toBeInTheDocument();
119
+ expect(screen.getByText('Phone')).toBeInTheDocument();
120
+ });
89
121
  });
@@ -47,8 +47,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
47
47
  };
48
48
  import React from 'react';
49
49
  import AutoSizeList from './AutoSizeList';
50
- import { delayPromise } from '../test-utils';
51
- import { render, screen } from '@testing-library/react';
50
+ import { mockResizeObserver } from 'jsdom-testing-mocks';
51
+ import { render, screen, act, waitFor } from '@testing-library/react';
52
52
  describe('AutoSizeList tests', function () {
53
53
  var defaultProps = {
54
54
  width: 100,
@@ -60,32 +60,32 @@ describe('AutoSizeList tests', function () {
60
60
  return "child-".concat(data[index]);
61
61
  }
62
62
  };
63
+ var resizeObserver = mockResizeObserver();
63
64
  var setUp = function (props) {
64
65
  if (props === void 0) { props = defaultProps; }
65
66
  return render(React.createElement(AutoSizeList, __assign({}, props)));
66
67
  };
67
- beforeAll(function () {
68
- window.ResizeObserver = jest.fn().mockImplementation(function (onResize) {
69
- onResize([{ contentRect: { width: 100, height: 50 } }]);
70
- return {
71
- observe: jest.fn(),
72
- unobserve: jest.fn(),
73
- disconnect: jest.fn()
74
- };
75
- });
76
- });
77
68
  it('should render correctly', function () { return __awaiter(void 0, void 0, void 0, function () {
69
+ var child1, child2, child3;
78
70
  return __generator(this, function (_a) {
79
71
  switch (_a.label) {
80
72
  case 0:
81
73
  setUp();
82
- expect(screen.getByText('child-1')).toHaveStyle({ visibility: 'hidden' });
83
- expect(screen.getByText('child-2')).toHaveStyle({ visibility: 'hidden' });
84
- expect(screen.getByText('child-3')).toHaveStyle({ visibility: 'hidden' });
85
- return [4 /*yield*/, delayPromise(100)];
74
+ child1 = screen.getByText('child-1');
75
+ child2 = screen.getByText('child-2');
76
+ child3 = screen.getByText('child-3');
77
+ expect(child1).toHaveStyle({ visibility: 'hidden' });
78
+ expect(child2).toHaveStyle({ visibility: 'hidden' });
79
+ expect(child3).toHaveStyle({ visibility: 'hidden' });
80
+ resizeObserver.mockElementSize(child1, { contentBoxSize: { blockSize: 50, inlineSize: 100 } });
81
+ resizeObserver.mockElementSize(child2, { contentBoxSize: { blockSize: 50, inlineSize: 100 } });
82
+ resizeObserver.mockElementSize(child3, { contentBoxSize: { blockSize: 50, inlineSize: 100 } });
83
+ act(function () {
84
+ resizeObserver.resize();
85
+ });
86
+ return [4 /*yield*/, waitFor(function () { return expect(screen.getByText('child-1')).toHaveStyle({ visibility: 'visible' }); })];
86
87
  case 1:
87
88
  _a.sent();
88
- expect(screen.getByText('child-1')).toHaveStyle({ visibility: 'visible' });
89
89
  expect(screen.getByText('child-2')).toHaveStyle({ visibility: 'visible' });
90
90
  expect(screen.getByText('child-3')).toHaveStyle({ visibility: 'visible' });
91
91
  return [2 /*return*/];
@@ -94,20 +94,17 @@ describe('AutoSizeList tests', function () {
94
94
  }); });
95
95
  it('should not add style.visibility to items if props.showNotMeasuredItems is true', function () { return __awaiter(void 0, void 0, void 0, function () {
96
96
  return __generator(this, function (_a) {
97
- switch (_a.label) {
98
- case 0:
99
- setUp(__assign(__assign({}, defaultProps), { showNotMeasuredItems: true }));
100
- expect(screen.getByText('child-1')).not.toHaveAttribute('visibility');
101
- expect(screen.getByText('child-2')).not.toHaveAttribute('visibility');
102
- expect(screen.getByText('child-3')).not.toHaveAttribute('visibility');
103
- return [4 /*yield*/, delayPromise(100)];
104
- case 1:
105
- _a.sent();
106
- expect(screen.getByText('child-1')).not.toHaveAttribute('visibility');
107
- expect(screen.getByText('child-2')).not.toHaveAttribute('visibility');
108
- expect(screen.getByText('child-3')).not.toHaveAttribute('visibility');
109
- return [2 /*return*/];
110
- }
97
+ jest.useFakeTimers();
98
+ setUp(__assign(__assign({}, defaultProps), { showNotMeasuredItems: true }));
99
+ expect(screen.getByText('child-1')).not.toHaveAttribute('visibility');
100
+ expect(screen.getByText('child-2')).not.toHaveAttribute('visibility');
101
+ expect(screen.getByText('child-3')).not.toHaveAttribute('visibility');
102
+ jest.advanceTimersByTime(100);
103
+ expect(screen.getByText('child-1')).not.toHaveAttribute('visibility');
104
+ expect(screen.getByText('child-2')).not.toHaveAttribute('visibility');
105
+ expect(screen.getByText('child-3')).not.toHaveAttribute('visibility');
106
+ jest.useRealTimers();
107
+ return [2 /*return*/];
111
108
  });
112
109
  }); });
113
110
  it('should support props.listRef', function () {
@@ -138,6 +138,9 @@ describe('BasicTable', function () {
138
138
  });
139
139
  it('should render Table with correct props', function () {
140
140
  var props = {
141
+ defaultColumnWidth: 100,
142
+ defaultColumnMinWidth: 100,
143
+ headRowHeight: 48,
141
144
  columnsData: [],
142
145
  filters: null,
143
146
  onFilter: jest.fn(),
@@ -157,8 +160,8 @@ describe('BasicTable', function () {
157
160
  sortOrder: props.sorting.order,
158
161
  onSort: props.onSort
159
162
  });
160
- expect(dataHelpers.getTableHeadData).toBeCalledWith(props.columnsData, props.filters, props.onFilter);
161
- expect(useCollapsibleTableRows).toBeCalledWith({
163
+ expect(dataHelpers.getTableHeadData).toHaveBeenCalledWith(props.columnsData, props.filters, props.onFilter);
164
+ expect(useCollapsibleTableRows).toHaveBeenCalledWith({
162
165
  rowsData: props.rowsData,
163
166
  columnsData: props.columnsData,
164
167
  renderRowCell: props.renderRowCell,
@@ -171,6 +174,9 @@ describe('BasicTable', function () {
171
174
  });
172
175
  it('should provide Table with context', function () {
173
176
  var props = {
177
+ defaultColumnWidth: 100,
178
+ defaultColumnMinWidth: 100,
179
+ headRowHeight: 48,
174
180
  columnsData: [],
175
181
  filters: null,
176
182
  onFilter: jest.fn(),
@@ -188,6 +194,9 @@ describe('BasicTable', function () {
188
194
  });
189
195
  it('should render Table without fixed head if row data is empty', function () {
190
196
  var props = {
197
+ defaultColumnWidth: 100,
198
+ defaultColumnMinWidth: 100,
199
+ headRowHeight: 48,
191
200
  columnsData: [],
192
201
  filters: null,
193
202
  onFilter: jest.fn(),
@@ -206,6 +215,9 @@ describe('BasicTable', function () {
206
215
  });
207
216
  it('should use default row cell renderer if it is not provided in props', function () {
208
217
  var props = {
218
+ defaultColumnWidth: 100,
219
+ defaultColumnMinWidth: 100,
220
+ headRowHeight: 48,
209
221
  columnsData: [],
210
222
  rowsData: [],
211
223
  sorting: { field: 'column', order: 'asc' },
@@ -214,7 +226,7 @@ describe('BasicTable', function () {
214
226
  maxRowValuesCount: 3
215
227
  };
216
228
  shallow(React.createElement(BasicTable, __assign({}, props)));
217
- expect(useCollapsibleTableRows).toBeCalledWith({
229
+ expect(useCollapsibleTableRows).toHaveBeenCalledWith({
218
230
  rowsData: props.rowsData,
219
231
  columnsData: props.columnsData,
220
232
  renderRowCell: defaultRenderRowCell,
@@ -224,6 +236,9 @@ describe('BasicTable', function () {
224
236
  });
225
237
  it('should use default getRowCellHeight if it is not provided in props', function () {
226
238
  var props = {
239
+ defaultColumnWidth: 100,
240
+ defaultColumnMinWidth: 100,
241
+ headRowHeight: 48,
227
242
  columnsData: [],
228
243
  rowsData: [],
229
244
  sorting: { field: 'column', order: 'asc' },
@@ -232,7 +247,7 @@ describe('BasicTable', function () {
232
247
  maxRowValuesCount: 3
233
248
  };
234
249
  shallow(React.createElement(BasicTable, __assign({}, props)));
235
- expect(useCollapsibleTableRows).toBeCalledWith({
250
+ expect(useCollapsibleTableRows).toHaveBeenCalledWith({
236
251
  rowsData: props.rowsData,
237
252
  columnsData: props.columnsData,
238
253
  renderRowCell: props.renderRowCell,
@@ -242,6 +257,9 @@ describe('BasicTable', function () {
242
257
  });
243
258
  it('should use Infinity as maxRowValuesCount if it is not provided in props', function () {
244
259
  var props = {
260
+ defaultColumnWidth: 100,
261
+ defaultColumnMinWidth: 100,
262
+ headRowHeight: 48,
245
263
  columnsData: [],
246
264
  rowsData: [],
247
265
  sorting: { field: 'column', order: 'asc' },
@@ -250,7 +268,7 @@ describe('BasicTable', function () {
250
268
  getRowCellHeight: jest.fn()
251
269
  };
252
270
  shallow(React.createElement(BasicTable, __assign({}, props)));
253
- expect(useCollapsibleTableRows).toBeCalledWith({
271
+ expect(useCollapsibleTableRows).toHaveBeenCalledWith({
254
272
  rowsData: props.rowsData,
255
273
  columnsData: props.columnsData,
256
274
  renderRowCell: props.renderRowCell,
@@ -261,6 +279,9 @@ describe('BasicTable', function () {
261
279
  it('should not render Table when columnsData is empty array', function () {
262
280
  jest.spyOn(dataHelpers, 'getTableHeadData').mockReturnValue([]);
263
281
  var props = {
282
+ defaultColumnWidth: 100,
283
+ defaultColumnMinWidth: 100,
284
+ headRowHeight: 48,
264
285
  columnsData: [],
265
286
  filters: null,
266
287
  onFilter: jest.fn(),
@@ -46,7 +46,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
46
46
  }
47
47
  };
48
48
  import React from 'react';
49
- import { screen, render, within, fireEvent } from '@testing-library/react';
49
+ import { screen, render, within, fireEvent, act } from '@testing-library/react';
50
50
  import userEvent from '@testing-library/user-event';
51
51
  import HTML5Backend from 'react-dnd-html5-backend';
52
52
  import { DndProvider } from 'react-dnd';
@@ -150,18 +150,29 @@ describe('basic table tests', function () {
150
150
  expect(within(getCellByIndexes(0, 1)).queryByText('row 1 value 3')).toBeInTheDocument();
151
151
  expect(within(getCellByIndexes(1, 1)).queryByText('row 2 value 1')).toBeInTheDocument();
152
152
  expect(within(getCellByIndexes(1, 1)).queryByText('row 2 value 2')).toBeInTheDocument();
153
- jest.useFakeTimers();
154
153
  dragIndicator = within(getCellByIndexes(1, 0)).queryByText('drag el');
155
- fireEvent.dragStart(dragIndicator);
156
- jest.runOnlyPendingTimers();
154
+ return [4 /*yield*/, act(function () { return __awaiter(void 0, void 0, void 0, function () {
155
+ return __generator(this, function (_a) {
156
+ fireEvent.dragStart(dragIndicator);
157
+ return [2 /*return*/];
158
+ });
159
+ }); })];
160
+ case 3:
161
+ _a.sent();
157
162
  expect(within(getCellByIndexes(0, 1)).queryByText('row 1 value 1')).toBeInTheDocument();
158
163
  expect(within(getCellByIndexes(0, 1)).queryByText('row 1 value 2')).not.toBeInTheDocument();
159
164
  expect(within(getCellByIndexes(0, 1)).queryByText('row 1 value 3')).not.toBeInTheDocument();
160
165
  expect(within(getCellByIndexes(1, 1)).queryByText('row 2 value 1')).toBeInTheDocument();
161
166
  expect(within(getCellByIndexes(1, 1)).queryByText('row 2 value 2')).not.toBeInTheDocument();
162
- fireEvent.dragEnd(getCellByIndexes(1, 0));
167
+ return [4 /*yield*/, act(function () { return __awaiter(void 0, void 0, void 0, function () {
168
+ return __generator(this, function (_a) {
169
+ fireEvent.dragEnd(getCellByIndexes(1, 0));
170
+ return [2 /*return*/];
171
+ });
172
+ }); })];
173
+ case 4:
174
+ _a.sent();
163
175
  unmockTableSizing();
164
- jest.useRealTimers();
165
176
  return [2 /*return*/];
166
177
  }
167
178
  });
@@ -75,7 +75,7 @@ describe('helpers', function () {
75
75
  minWidth: 100
76
76
  }
77
77
  ]);
78
- expect(withFilter).toBeCalledWith({
78
+ expect(withFilter).toHaveBeenCalledWith({
79
79
  filterable: false,
80
80
  dataTypeDefinition: dataTypeDefinition,
81
81
  filter: filter,
@@ -82,7 +82,7 @@ describe('CollapseRowButton tests', function () {
82
82
  expect(getMuiIconByName('ExpandMore')).not.toHaveClass('expandLess');
83
83
  rerender(React.createElement(CollapseRowButton, __assign({}, defaultProps)));
84
84
  expect(getMuiIconByName('ExpandMore')).toHaveClass('expandLess');
85
- expect(getIsRowCollapsed).toBeCalledWith(defaultProps.rowIndex);
85
+ expect(getIsRowCollapsed).toHaveBeenCalledWith(defaultProps.rowIndex);
86
86
  });
87
87
  it('should call toggleRowCollapse on button click correctly', function () { return __awaiter(void 0, void 0, void 0, function () {
88
88
  var user;
@@ -93,7 +93,7 @@ describe('CollapseRowButton tests', function () {
93
93
  return [4 /*yield*/, user.click(screen.getByRole('button'))];
94
94
  case 1:
95
95
  _a.sent();
96
- expect(toggleRowCollapse).toBeCalledWith(defaultProps.rowIndex);
96
+ expect(toggleRowCollapse).toHaveBeenCalledWith(defaultProps.rowIndex);
97
97
  return [2 /*return*/];
98
98
  }
99
99
  });
@@ -104,6 +104,6 @@ describe('CollapseRowButton tests', function () {
104
104
  expect(screen.getByRole('button')).not.toHaveClass('hidden');
105
105
  rerender(React.createElement(CollapseRowButton, __assign({}, defaultProps)));
106
106
  expect(screen.getByRole('button')).toHaveClass('hidden');
107
- expect(getIsRowCollapsible).toBeCalledWith(defaultProps.rowValue);
107
+ expect(getIsRowCollapsible).toHaveBeenCalledWith(defaultProps.rowValue);
108
108
  });
109
109
  });
@@ -251,7 +251,7 @@ describe('CommentsContainer tests', function () {
251
251
  case 2:
252
252
  _b.sent();
253
253
  expect(screen.queryByText('Comments')).not.toBeInTheDocument();
254
- expect(clearCurrentComment).toBeCalled();
254
+ expect(clearCurrentComment).toHaveBeenCalled();
255
255
  return [2 /*return*/];
256
256
  }
257
257
  });
@@ -272,7 +272,7 @@ describe('CommentsContainer tests', function () {
272
272
  return [4 /*yield*/, user.click(screen.getByLabelText('Show comment'))];
273
273
  case 1:
274
274
  _b.sent();
275
- expect(getComment).toBeCalledWith(currentComment.commentId);
275
+ expect(getComment).toHaveBeenCalledWith(currentComment.commentId);
276
276
  return [2 /*return*/];
277
277
  }
278
278
  });
@@ -96,7 +96,7 @@ describe('CustomDateRangeEditor tests', function () {
96
96
  return [4 /*yield*/, user.click(screen.getByRole('textbox'))];
97
97
  case 1:
98
98
  _a.sent();
99
- expect(onFocusSpy).toBeCalledTimes(1);
99
+ expect(onFocusSpy).toHaveBeenCalledTimes(1);
100
100
  return [2 /*return*/];
101
101
  }
102
102
  });
@@ -145,7 +145,7 @@ describe('CustomDateRangeEditor tests', function () {
145
145
  case 4:
146
146
  _a.sent();
147
147
  expect(screen.queryByRole('presentation')).not.toBeInTheDocument();
148
- expect(defaultProps.onChange).not.toBeCalled();
148
+ expect(defaultProps.onChange).not.toHaveBeenCalled();
149
149
  return [2 /*return*/];
150
150
  }
151
151
  });
@@ -12,7 +12,7 @@ var __assign = (this && this.__assign) || function () {
12
12
  import React from 'react';
13
13
  import { screen, render } from '@testing-library/react';
14
14
  import moment from 'moment';
15
- import * as mdmSdk from '@reltio/mdm-sdk';
15
+ import { formatDataTypeValue } from '@reltio/mdm-sdk';
16
16
  import { MdmModuleProvider } from '../contexts/MdmModuleContext';
17
17
  import { DataTypeValue } from './DataTypeValue';
18
18
  jest.mock('@reltio/mdm-sdk', function () { return (__assign(__assign({}, jest.requireActual('@reltio/mdm-sdk')), { formatDataTypeValue: jest.fn().mockImplementation(jest.requireActual('@reltio/mdm-sdk').formatDataTypeValue) })); });
@@ -35,7 +35,7 @@ var setUp = function (props, mdmValues) {
35
35
  describe('DataTypeValue tests', function () {
36
36
  var checkFormatDataTypeCall = function (_a) {
37
37
  var _b = _a.attributesPresentation, attributesPresentation = _b === void 0 ? defaultAttributesPresentation : _b, _c = _a.dateMask, dateMask = _c === void 0 ? defaultDateMask : _c, _d = _a.dateTimeMask, dateTimeMask = _d === void 0 ? defaultDateTimeMask : _d, dataTypeDefinition = _a.dataTypeDefinition, value = _a.value;
38
- expect(mdmSdk.formatDataTypeValue).toHaveBeenCalledWith({ attributesPresentation: attributesPresentation, dateMask: dateMask, dateTimeMask: dateTimeMask, dataTypeDefinition: dataTypeDefinition }, value);
38
+ expect(formatDataTypeValue).toHaveBeenCalledWith({ attributesPresentation: attributesPresentation, dateMask: dateMask, dateTimeMask: dateTimeMask, dataTypeDefinition: dataTypeDefinition }, value);
39
39
  };
40
40
  afterEach(function () {
41
41
  jest.clearAllMocks();
@@ -163,7 +163,7 @@ describe('useEditorContext tests', function () {
163
163
  return [4 /*yield*/, result.current.getLookups(params)];
164
164
  case 1:
165
165
  lookups = _a.sent();
166
- expect(getDependentLookups).toBeCalledWith(params);
166
+ expect(getDependentLookups).toHaveBeenCalledWith(params);
167
167
  expect(lookups).toEqual({ DE: { displayName: 'Germany' }, RU: { displayName: 'Russia' } });
168
168
  return [2 /*return*/];
169
169
  }
@@ -182,7 +182,7 @@ describe('useEditorContext tests', function () {
182
182
  return [4 /*yield*/, result.current.resolveLookups('COUNTRY_CD', ['DE'])];
183
183
  case 1:
184
184
  _a.sent();
185
- expect(resolveLookupsList).toBeCalledWith([{ type: 'COUNTRY_CD', codeValue: 'DE' }]);
185
+ expect(resolveLookupsList).toHaveBeenCalledWith([{ type: 'COUNTRY_CD', codeValue: 'DE' }]);
186
186
  expect(lookupsForTypeResolved).toHaveBeenCalledWith({
187
187
  type: 'COUNTRY_CD',
188
188
  values: { DE: { displayName: 'Germany' } }