@reltio/components 1.4.876 → 1.4.880

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 (929) hide show
  1. package/HOCs/index.js +2 -10
  2. package/HOCs/withAsyncMount/withAsyncMount.js +6 -27
  3. package/HOCs/withTooltip/propTypes.js +5 -10
  4. package/HOCs/withTooltip/withTooltip.js +11 -35
  5. package/components/ArrowExpandButton/ArrowExpandButton.js +8 -13
  6. package/components/ArrowExpandButton/styles.js +2 -5
  7. package/components/AttributeListItem/AttrTypeIcon.js +15 -20
  8. package/components/AttributeListItem/AttributeListItem.js +31 -56
  9. package/components/AttributeListItem/styles.js +2 -5
  10. package/components/AttributeSelector/AttributeSelector.js +27 -51
  11. package/components/AttributeSelector/styles.js +3 -6
  12. package/components/AutoSizeList/AutoSizeList.js +15 -39
  13. package/components/AutoSizeList/styles.js +2 -5
  14. package/components/AvatarWithFallback/AvatarWithFallback.js +7 -31
  15. package/components/BasicTableView/BasicTable/BasicTable.js +45 -70
  16. package/components/BasicTableView/BasicTable/HOCs/withFilter.js +10 -15
  17. package/components/BasicTableView/BasicTable/HOCs/withFilterAtBottom.js +7 -12
  18. package/components/BasicTableView/BasicTable/HOCs/withTableContext.js +5 -26
  19. package/components/BasicTableView/BasicTable/cell-value-renderers/BlobRenderer.js +7 -12
  20. package/components/BasicTableView/BasicTable/cell-value-renderers/DefaultCellValueRenderer.js +17 -22
  21. package/components/BasicTableView/BasicTable/cell-value-renderers/index.js +1 -8
  22. package/components/BasicTableView/BasicTable/cell-value-renderers/styles.js +4 -7
  23. package/components/BasicTableView/BasicTable/contexts/RowCollapseContext.js +3 -9
  24. package/components/BasicTableView/BasicTable/contexts/TableContext.js +3 -9
  25. package/components/BasicTableView/BasicTable/contexts/index.js +1 -5
  26. package/components/BasicTableView/BasicTable/helpers/dataHelpers.js +37 -45
  27. package/components/BasicTableView/BasicTable/helpers/defaultGetRowCellHeight.js +4 -6
  28. package/components/BasicTableView/BasicTable/helpers/defaultRenderRowCell.js +3 -8
  29. package/components/BasicTableView/BasicTable/helpers/nestedHelpers.js +15 -23
  30. package/components/BasicTableView/BasicTable/hooks/index.js +2 -10
  31. package/components/BasicTableView/BasicTable/hooks/useBasicTableCellRenderer.js +21 -45
  32. package/components/BasicTableView/BasicTable/hooks/useCollapsibleTableRows.js +18 -20
  33. package/components/BasicTableView/BasicTable/hooks/useDynamicRowCellHeight.js +10 -12
  34. package/components/BasicTableView/BasicTableHeader/ColumnsSettings/ColumnListItem.js +18 -23
  35. package/components/BasicTableView/BasicTableHeader/ColumnsSettings/ColumnsSettings.js +39 -63
  36. package/components/BasicTableView/BasicTableHeader/ColumnsSettings/columnHelpers.js +16 -22
  37. package/components/BasicTableView/BasicTableHeader/ColumnsSettings/styles.js +2 -5
  38. package/components/BasicTableView/BasicTableHeader/FilterButton/FilterButton.js +16 -21
  39. package/components/BasicTableView/BasicTableHeader/FilterButton/styles.js +2 -5
  40. package/components/BasicTableView/BasicTablePagination/BasicTablePagination.js +28 -52
  41. package/components/BasicTableView/BasicTablePagination/styles.js +2 -5
  42. package/components/BasicTableView/CollapseRowButton/CollapseRowButton.js +13 -37
  43. package/components/BasicTableView/CollapseRowButton/styles.js +2 -5
  44. package/components/BasicTableView/ColumnFilter/ColumnFilter.js +39 -63
  45. package/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.js +24 -29
  46. package/components/BasicTableView/ColumnFilter/FilterChip/styles.js +3 -6
  47. package/components/BasicTableView/ColumnFilter/helpers.js +6 -11
  48. package/components/BasicTableView/ColumnFilter/styles.js +4 -7
  49. package/components/BasicTableView/RowCellAutoSizer/RowCellAutoSizer.js +13 -37
  50. package/components/BasicTableView/index.js +17 -47
  51. package/components/BasicTableView/types/index.js +1 -2
  52. package/components/BasicTableView/viewState/basicTableViewState.js +25 -30
  53. package/components/BasicView/BasicView.js +10 -34
  54. package/components/BasicView/styles.js +2 -5
  55. package/components/BasicViewContent/BasicViewContent.js +6 -11
  56. package/components/BasicViewContent/styles.js +2 -5
  57. package/components/BasicViewHeader/BasicViewHeader.js +8 -13
  58. package/components/BasicViewHeader/styles.js +2 -5
  59. package/components/ClickAwayProvider/ClickAwayProvider.js +4 -9
  60. package/components/CollaborationItem/Avatar/Avatar.js +8 -15
  61. package/components/CollaborationItem/Avatar/styles.js +2 -5
  62. package/components/CollaborationItem/CollaborationItem.js +16 -41
  63. package/components/CollaborationItem/Comment/Comment.js +39 -65
  64. package/components/CollaborationItem/Comment/styles.d.ts +1 -1
  65. package/components/CollaborationItem/Comment/styles.js +2 -5
  66. package/components/CollaborationItem/CommentContent/CommentContent.js +13 -39
  67. package/components/CollaborationItem/CommentContent/styles.js +2 -5
  68. package/components/CollaborationItem/CommentTarget/CommentTarget.js +49 -75
  69. package/components/CollaborationItem/CommentTarget/styles.js +2 -5
  70. package/components/CollaborationItem/RepliedComment/RepliedComment.js +20 -27
  71. package/components/CollaborationItem/RepliedComment/styles.js +2 -5
  72. package/components/CollaborationItem/SendMessageArea/SendMessageArea.js +39 -65
  73. package/components/CollaborationItem/SendMessageArea/styles.js +2 -5
  74. package/components/CollaborationItem/TextFieldWithMentions/TextFieldWithMentions.js +12 -38
  75. package/components/CollaborationItem/TextFieldWithMentions/styles.js +2 -5
  76. package/components/CollaborationItem/styles.js +2 -5
  77. package/components/CollaborationItem/utils/index.js +5 -15
  78. package/components/CollaborationPopup/CollaborationPopup.js +24 -50
  79. package/components/CollaborationPopup/styles.js +2 -5
  80. package/components/CollapseButton/CollapseButton.js +10 -15
  81. package/components/CollapseButton/styles.js +2 -5
  82. package/components/ColorBar/ColorBar.js +9 -33
  83. package/components/ColorBar/styles.js +2 -5
  84. package/components/CommentsContainer/CommentsContainer.js +18 -42
  85. package/components/CommentsContainer/buttons/AddCommentButton.js +11 -16
  86. package/components/CommentsContainer/buttons/CommentButton.js +12 -17
  87. package/components/CommentsContainer/buttons/styles.js +2 -5
  88. package/components/CommentsContainer/styles.js +4 -7
  89. package/components/ConfigureColumnsPopup/ConfigureColumnsPopup.js +46 -72
  90. package/components/ConfigureColumnsPopup/styles.js +3 -5
  91. package/components/ConfirmDeleteDialog/ConfirmDeleteDialog.js +14 -19
  92. package/components/ConfirmationDialog/ConfirmationDialog.js +21 -26
  93. package/components/ConfirmationDialog/styles.js +3 -6
  94. package/components/ConnectionRelationTypeSelector/ConnectionRelationTypeSelector.js +20 -44
  95. package/components/DataTypeValue/DataTypeValue.js +18 -23
  96. package/components/DateIntervalSelector/DateIntervalSelector.js +22 -27
  97. package/components/DateIntervalSelector/styles.js +2 -5
  98. package/components/DateRangePicker/DateRangePicker.js +38 -62
  99. package/components/DateRangePicker/styles.js +2 -5
  100. package/components/Drawer/Drawer.js +8 -32
  101. package/components/DropDownMenuButton/DropDownMenuButton.js +19 -43
  102. package/components/DropDownMenuButton/MenuItemRenderer.js +13 -37
  103. package/components/DropDownMenuButton/styles.js +4 -7
  104. package/components/DropDownSelector/DropDownSelector.d.ts +16 -15
  105. package/components/DropDownSelector/DropDownSelector.js +41 -64
  106. package/components/DropDownSelector/components/Menu.js +13 -18
  107. package/components/DropDownSelector/components/SingleValue.js +9 -15
  108. package/components/DropDownSelector/components/styles.js +3 -6
  109. package/components/DropDownSelector/styles.d.ts +1 -1
  110. package/components/DropDownSelector/styles.js +5 -8
  111. package/components/EmptySearchResult/NoData.js +6 -13
  112. package/components/EmptySearchResult/NoMessageComponent.js +9 -14
  113. package/components/EmptySearchResult/NoResults.js +5 -12
  114. package/components/EmptySearchResult/index.js +2 -7
  115. package/components/EmptySearchResult/styles.js +2 -5
  116. package/components/EmptyState/EmptyState.js +23 -29
  117. package/components/EmptyState/styles.js +2 -5
  118. package/components/EntityAvatar/EntityAvatar.js +15 -20
  119. package/components/EntityAvatar/no-photo.svg.js +1 -4
  120. package/components/EntityTypeBadge/EntityTypeBadge.js +15 -20
  121. package/components/EntityTypeBadge/styles.js +3 -5
  122. package/components/EntityTypeIcon/EntityTypeIcon.js +7 -12
  123. package/components/EntityTypesSelector/EntityTypesSelector.js +54 -78
  124. package/components/EntityTypesSelector/ListLabel/ListLabel.js +20 -44
  125. package/components/EntityTypesSelector/ListLabel/helpers.js +3 -8
  126. package/components/EntityTypesSelector/ListLabel/styles.js +2 -5
  127. package/components/EntityTypesSelector/SelectEntityTypesList.js +13 -37
  128. package/components/EntityTypesSelector/styles.js +2 -5
  129. package/components/EntityUriLink/EntityUriLink.js +14 -35
  130. package/components/ErrorBoundary/ErrorBoundary.js +3 -8
  131. package/components/ErrorPopup/ErrorPopup.js +14 -19
  132. package/components/ErrorPopup/styles.js +2 -5
  133. package/components/ErrorWrapper/ErrorMessage.js +7 -12
  134. package/components/ErrorWrapper/ErrorWrapper.js +11 -35
  135. package/components/ErrorWrapper/styles.js +2 -5
  136. package/components/ExpandableSearchInput/ExpandableSearchInput.js +19 -45
  137. package/components/ExpandableSearchInput/styles.js +2 -5
  138. package/components/ExpandedValueTooltip/ExpandedValueTooltip.js +22 -47
  139. package/components/FacetViewHeader/FacetViewHeader.js +7 -12
  140. package/components/FacetViewHeader/styles.js +2 -5
  141. package/components/FlipCard/FlipCard.js +11 -35
  142. package/components/FlipCard/styles.js +2 -5
  143. package/components/FlipCard/types/index.js +1 -2
  144. package/components/HideOnShrink/HideOnShrink.js +9 -14
  145. package/components/HierarchicalAttributeTooltip/HierarchicalAttributeTooltip.js +13 -18
  146. package/components/HierarchicalAttributeTooltip/styles.js +4 -7
  147. package/components/Highlighter/Highlighter.js +6 -11
  148. package/components/Highlighter/styles.js +2 -5
  149. package/components/Image/CheckedIcon/CheckedIcon.js +9 -16
  150. package/components/Image/CheckedIcon/styles.js +2 -5
  151. package/components/Image/Image.js +18 -43
  152. package/components/Image/ImageActionsOverlay/ImageActionsOverlay.js +30 -54
  153. package/components/Image/ImageActionsOverlay/styles.js +2 -5
  154. package/components/Image/styles.js +2 -5
  155. package/components/ImageAttributesGallery/GalleryView/GalleryView.js +13 -39
  156. package/components/ImageAttributesGallery/GalleryView/styles.js +2 -5
  157. package/components/ImageAttributesGallery/HeaderLeft/HeaderLeft.js +7 -14
  158. package/components/ImageAttributesGallery/HeaderLeft/styles.js +2 -5
  159. package/components/ImageAttributesGallery/HeaderRight/HeaderRight.js +17 -24
  160. package/components/ImageAttributesGallery/HeaderRight/styles.js +2 -5
  161. package/components/ImageAttributesGallery/ImageAttributesGallery.js +32 -56
  162. package/components/ImageDetailsView/ImageDetailsView.js +13 -39
  163. package/components/ImageDetailsView/ImageDetailsViewCarousel/ImageDetailsViewCarousel.js +18 -44
  164. package/components/ImageDetailsView/ImageDetailsViewCarousel/Thumbnails/Thumbnails.js +23 -49
  165. package/components/ImageDetailsView/ImageDetailsViewCarousel/Thumbnails/styles.js +2 -5
  166. package/components/ImageDetailsView/ImageDetailsViewCarousel/styles.js +2 -5
  167. package/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.js +27 -53
  168. package/components/ImageDetailsView/ImageDetailsViewSidebar/styles.d.ts +1 -1
  169. package/components/ImageDetailsView/ImageDetailsViewSidebar/styles.js +2 -5
  170. package/components/ImageDetailsView/MetaInfo/MetaInfo.js +20 -27
  171. package/components/ImageDetailsView/MetaInfoForm/MetaInfoForm.js +20 -27
  172. package/components/ImageDetailsView/MetaInfoForm/styles.js +2 -5
  173. package/components/ImageDetailsView/MetaInfoHeader/MetaInfoHeader.js +17 -43
  174. package/components/ImageDetailsView/MetaInfoHeader/styles.js +2 -5
  175. package/components/ImageDetailsView/MetaInfoList/MetaInfoItem/MetaInfoItem.js +8 -15
  176. package/components/ImageDetailsView/MetaInfoList/MetaInfoItem/styles.js +2 -5
  177. package/components/ImageDetailsView/MetaInfoList/MetaInfoList.js +16 -23
  178. package/components/ImageDetailsView/MetaInfoList/styles.js +2 -5
  179. package/components/ImageDetailsView/constants/index.js +13 -19
  180. package/components/ImageDetailsView/helpers/index.js +24 -36
  181. package/components/ImageDetailsView/hooks/useEditMetaInfo.js +21 -25
  182. package/components/ImageDetailsView/styles.js +2 -5
  183. package/components/ImageDetailsView/theme/index.js +4 -7
  184. package/components/ImageDetailsView/types/index.js +1 -2
  185. package/components/ImageGalleryDialog/ImageGalleryDialog.js +31 -57
  186. package/components/ImageGalleryDialog/styles.d.ts +1 -1
  187. package/components/ImageGalleryDialog/styles.js +2 -5
  188. package/components/ImportButton/ImportButton.js +17 -23
  189. package/components/ImportButton/styles.js +2 -5
  190. package/components/LightArrowTooltip/LightArrowTooltip.js +6 -11
  191. package/components/LightArrowTooltip/styles.js +2 -5
  192. package/components/LinearLoadIndicator/LinearLoadIndicator.js +8 -13
  193. package/components/LinearLoadIndicator/styles.js +2 -5
  194. package/components/Link/Link.js +5 -10
  195. package/components/Link/styles.js +2 -5
  196. package/components/LoadingSpinner/LoadingSpinner.js +6 -13
  197. package/components/LoadingSpinner/SpinnerSmall.gif.js +1 -4
  198. package/components/Marginator/Marginator.js +3 -8
  199. package/components/MatchRulesBlock/MatchRulesBadge/MatchRulesBadge.js +10 -34
  200. package/components/MatchRulesBlock/MatchRulesBadge/styles.js +3 -5
  201. package/components/MatchRulesBlock/MatchRulesBlock.js +13 -18
  202. package/components/MatchRulesBlock/MatchRulesTitle.js +4 -9
  203. package/components/MatchRulesBlock/MatchRulesTooltip/MatchRulesTooltip.js +9 -14
  204. package/components/MatchRulesBlock/MatchRulesTooltip/styles.d.ts +1 -1
  205. package/components/MatchRulesBlock/MatchRulesTooltip/styles.js +3 -5
  206. package/components/MatchRulesBlock/SimpleMatchRules/SimpleMatchRules.js +10 -15
  207. package/components/MatchRulesBlock/SimpleMatchRules/styles.js +3 -5
  208. package/components/MatchRulesBlock/SimpleMatchRulesBlock/SimpleMatchRulesBlock.js +18 -43
  209. package/components/MatchRulesBlock/SimpleMatchRulesBlock/styles.js +3 -5
  210. package/components/MatchRulesBlock/SimpleMatchRulesBuilder/SimpleMatchRulesBuilder.js +11 -16
  211. package/components/MatchRulesBlock/TransitiveMatchBlock/TransitiveMatchBlock.js +15 -40
  212. package/components/MatchRulesBlock/TransitiveMatchBlock/styles.js +3 -5
  213. package/components/MatchRulesBlock/TransitiveMatchRules/TransitiveMatchRule.js +14 -38
  214. package/components/MatchRulesBlock/TransitiveMatchRules/styles.js +3 -5
  215. package/components/MatchRulesBlock/TransitiveMatchRulesTooltip/TransitiveMatchRulesTooltip.js +9 -14
  216. package/components/MatchRulesBlock/TransitiveMatchRulesTooltip/styles.js +3 -5
  217. package/components/MatchRulesBlock/types/index.js +1 -2
  218. package/components/ModeSwitcher/ModeSwitcher.js +13 -18
  219. package/components/ModeSwitcher/styles.js +5 -7
  220. package/components/ModeSwitcherSelect/ModeSwitcherSelect.js +25 -32
  221. package/components/ModeSwitcherSelect/index.js +1 -5
  222. package/components/ModeSwitcherSelect/styles.js +2 -5
  223. package/components/MultipleInput/MultipleInput.js +33 -57
  224. package/components/MultipleInput/styles.js +2 -5
  225. package/components/MultipliableSelect/MultipliableSelect.js +24 -29
  226. package/components/MultipliableSelect/styles.js +2 -5
  227. package/components/Popper/Popper.js +25 -49
  228. package/components/Popper/styles.js +2 -5
  229. package/components/Popper/utils.js +4 -8
  230. package/components/PopupWithArrow/PopupWithArrow.js +16 -23
  231. package/components/PopupWithArrow/styles.js +2 -5
  232. package/components/PotentialMatchReviewCard/PotentialMatchReviewCard.js +31 -55
  233. package/components/PotentialMatchReviewCard/styles.d.ts +1 -1
  234. package/components/PotentialMatchReviewCard/styles.js +2 -5
  235. package/components/ProfileBand/ProfileBand.js +47 -71
  236. package/components/ProfileBand/styles.js +3 -5
  237. package/components/ProfileBandNavigation/ProfileBandNavigation.js +8 -14
  238. package/components/ProfileBandNavigation/ProfileBandNavigationWidget.js +18 -25
  239. package/components/ProfileBandNavigation/hooks/useSearchNavigation.js +42 -64
  240. package/components/ProfileBandNavigation/hooks/useSearchNavigationVisibility.js +8 -14
  241. package/components/ProfileBandNavigation/index.js +1 -5
  242. package/components/ProfileBandNavigation/searchProviders/GraphSearchProvider.js +6 -9
  243. package/components/ProfileBandNavigation/searchProviders/MainSearchProvider.js +6 -9
  244. package/components/ProfileBandNavigation/searchProviders/SearchProvider.js +1 -2
  245. package/components/ProfileBandNavigation/searchProviders/SearchProviderFactory.js +5 -9
  246. package/components/ProfileBandNavigation/styles.js +2 -5
  247. package/components/ProfileBandNavigation/types/index.js +1 -2
  248. package/components/ProfileCard/ProfileCard.js +35 -59
  249. package/components/ProfileCard/styles.js +3 -5
  250. package/components/QueryBuilderRow/QueryBuilderRow.js +39 -63
  251. package/components/QueryBuilderRow/components/ReadOnlyFilter.js +11 -16
  252. package/components/QueryBuilderRow/components/ReadOnlyLogicOperator.js +11 -16
  253. package/components/QueryBuilderRow/components/styles.js +3 -5
  254. package/components/QueryBuilderRow/styles.js +3 -5
  255. package/components/QueryBuilderRowsGroup/QueryBuilderRowsGroup.js +29 -53
  256. package/components/ReactSelect/AsyncSelect.js +3 -8
  257. package/components/ReactSelect/CreatableSelect.js +3 -8
  258. package/components/ReactSelect/MultiSelect/MultiSelect.js +98 -122
  259. package/components/ReactSelect/MultiSelect/components/Option.js +30 -36
  260. package/components/ReactSelect/MultiSelect/components/index.js +3 -8
  261. package/components/ReactSelect/MultiSelect/index.js +2 -7
  262. package/components/ReactSelect/Select.js +3 -8
  263. package/components/ReactSelect/commonComponents/ClearIndicator.js +13 -19
  264. package/components/ReactSelect/commonComponents/Control.js +22 -28
  265. package/components/ReactSelect/commonComponents/DropdownIndicator.js +13 -19
  266. package/components/ReactSelect/commonComponents/GroupHeading.js +10 -16
  267. package/components/ReactSelect/commonComponents/Menu.js +14 -20
  268. package/components/ReactSelect/commonComponents/MultiValue.js +14 -20
  269. package/components/ReactSelect/commonComponents/NoOptionsMessage.js +7 -13
  270. package/components/ReactSelect/commonComponents/Option.js +29 -35
  271. package/components/ReactSelect/commonComponents/Placeholder.js +8 -14
  272. package/components/ReactSelect/commonComponents/SingleValue.js +8 -14
  273. package/components/ReactSelect/commonComponents/ValueContainer.js +8 -14
  274. package/components/ReactSelect/commonComponents/index.js +23 -28
  275. package/components/ReactSelect/optionFilters.js +5 -7
  276. package/components/ReactSelect/styles.js +2 -4
  277. package/components/ReactSelect/withMuiSkin.js +51 -57
  278. package/components/ReactSortableTree/index.js +8 -30
  279. package/components/ReactSortableTree/node-renderer-default.js +43 -48
  280. package/components/ReactSortableTree/nodeRendererDefaultStyle.js +2 -5
  281. package/components/ReactSortableTree/placeholder-renderer-default.js +9 -14
  282. package/components/ReactSortableTree/placeholderRendererDefaultStyle.js +2 -5
  283. package/components/ReactSortableTree/react-sortable-tree.js +115 -137
  284. package/components/ReactSortableTree/reactSortableTreeStyles.js +1 -5
  285. package/components/ReactSortableTree/tree-node.js +29 -53
  286. package/components/ReactSortableTree/tree-placeholder.js +13 -37
  287. package/components/ReactSortableTree/treeNodeStyle.js +2 -5
  288. package/components/ReactSortableTree/utils/classnames.js +1 -4
  289. package/components/ReactSortableTree/utils/default-handlers.js +3 -8
  290. package/components/ReactSortableTree/utils/dnd-manager.js +13 -15
  291. package/components/ReactSortableTree/utils/generic-utils.js +1 -5
  292. package/components/ReactSortableTree/utils/memoized-tree-data-utils.js +4 -7
  293. package/components/ReactSortableTree/utils/tree-data-utils.js +20 -40
  294. package/components/ReltioGridLayout/ReltioGridLayout.js +40 -64
  295. package/components/ReltioGridLayout/helpers.js +11 -20
  296. package/components/ReltioGridLayout/icons/ResizeIcon.svg.js +1 -4
  297. package/components/ReltioGridLayout/styles.js +5 -8
  298. package/components/ReltioMap/EntityMarker/EntityMarker.js +28 -52
  299. package/components/ReltioMap/EntityMarker/icons/marker-hover.inline.svg.js +1 -4
  300. package/components/ReltioMap/EntityMarker/icons/marker.inline.svg.js +1 -4
  301. package/components/ReltioMap/EntityMarker/styles.js +2 -5
  302. package/components/ReltioMap/MapControls/MapControlContainer/MapControlContrainer.js +7 -11
  303. package/components/ReltioMap/MapControls/TopCenterMapControls/TopCenterMapControls.js +9 -16
  304. package/components/ReltioMap/MapControls/TopCenterMapControls/styles.js +2 -5
  305. package/components/ReltioMap/MapControls/TopRightMapControls/TopRightMapControls.js +20 -27
  306. package/components/ReltioMap/MapControls/TopRightMapControls/styles.js +2 -5
  307. package/components/ReltioMap/constants.js +3 -6
  308. package/components/ReltioMap/helpers/index.js +10 -17
  309. package/components/ReltioMap/index.js +48 -74
  310. package/components/ReltioMap/styles.js +2 -5
  311. package/components/ReltioMap/types.js +1 -2
  312. package/components/RequiredMark/RequiredMark.js +5 -10
  313. package/components/RequiredMark/styles.js +2 -5
  314. package/components/ResizablePanes/ResizablePanes.js +24 -48
  315. package/components/ResizablePanes/styles.js +3 -6
  316. package/components/Score/DQLabel.js +7 -12
  317. package/components/Score/Score.js +16 -21
  318. package/components/Score/ScoreLabel.js +14 -19
  319. package/components/Score/styles.js +3 -6
  320. package/components/ScrollableTabs/ScrollableTabs.js +12 -17
  321. package/components/ScrollableTabs/styles.js +2 -5
  322. package/components/SearchInput/SearchInput.js +19 -43
  323. package/components/SearchInput/WhiteSearchInput.js +6 -11
  324. package/components/SearchInput/styles.js +2 -5
  325. package/components/SelectionPopup/SelectionPopup.js +26 -31
  326. package/components/SelectionPopup/SelectionPopupPopper/SelectionPopupPopper.js +26 -31
  327. package/components/SelectionPopup/helpers.js +14 -17
  328. package/components/SelectionPopup/styles.js +3 -5
  329. package/components/SelectorWithOnlyOptionAutoSelect/SelectorWithOnlyOptionAutoSelect.js +21 -45
  330. package/components/SelectorWithOnlyOptionAutoSelect/styles.js +2 -5
  331. package/components/SideIconPanel/SideButtonsPanel.js +8 -15
  332. package/components/SideIconPanel/styles.js +3 -6
  333. package/components/SidePanel/SidePanel.js +6 -13
  334. package/components/SidePanel/SidePanelContentHeader/SidePanelContentHeader.js +14 -21
  335. package/components/SidePanel/SidePanelContentHeader/styles.js +2 -5
  336. package/components/SidePanel/styles.js +3 -6
  337. package/components/SimpleDropDownSelector/DropDownPlaceholder.js +10 -15
  338. package/components/SimpleDropDownSelector/DropDownValue.js +11 -16
  339. package/components/SimpleDropDownSelector/SimpleDropDownSelector.js +8 -32
  340. package/components/SimpleDropDownSelector/styles.js +3 -5
  341. package/components/SimpleInput/SimpleInput.js +16 -40
  342. package/components/SmallIconButton/SmallIconButton.js +6 -30
  343. package/components/SmallIconButton/index.js +4 -11
  344. package/components/SourceIcon/SourceIcon.js +9 -14
  345. package/components/Spacer/Spacer.js +3 -8
  346. package/components/Title/Title.js +17 -22
  347. package/components/Title/styles.js +2 -5
  348. package/components/UploadFileButton/UploadFileButton.js +45 -69
  349. package/components/UploadFileButton/styles.js +2 -5
  350. package/components/UploadImageDialog/DividerWithText/DividerWithText.js +11 -18
  351. package/components/UploadImageDialog/DividerWithText/styles.js +2 -5
  352. package/components/UploadImageDialog/ErrorSnackbar/ErrorSnackbar.js +9 -16
  353. package/components/UploadImageDialog/ErrorSnackbar/styles.js +2 -5
  354. package/components/UploadImageDialog/ImageByUrlField/ImageByUrlField.js +18 -44
  355. package/components/UploadImageDialog/ImageByUrlField/styles.js +2 -5
  356. package/components/UploadImageDialog/SelectImageButton/SelectImageButton.js +9 -16
  357. package/components/UploadImageDialog/TargetBox/TargetBox.js +20 -27
  358. package/components/UploadImageDialog/TargetBox/styles.js +2 -5
  359. package/components/UploadImageDialog/UploadImageDialog.js +38 -64
  360. package/components/UploadImageDialog/constants/index.js +2 -5
  361. package/components/UploadImageDialog/styles.d.ts +1 -1
  362. package/components/UploadImageDialog/styles.js +2 -5
  363. package/components/UserSelector/UserSelector.js +24 -48
  364. package/components/UserSelector/styles.js +3 -6
  365. package/components/ValueChip/ValueChip.js +16 -21
  366. package/components/ValueChip/styles.js +3 -6
  367. package/components/VerticalDivider/VerticalDivider.js +6 -11
  368. package/components/VerticalHeadingsTable/VerticalHeadingsTable.js +19 -43
  369. package/components/ViewMoreToggle/ViewMoreToggle.js +15 -20
  370. package/components/ViewMoreToggle/styles.js +2 -5
  371. package/components/VirtualGroupedList/VirtualGroupedList.js +41 -66
  372. package/components/VirtualGroupedList/helpers.js +13 -17
  373. package/components/VirtualGroupedList/styles.js +2 -5
  374. package/components/activityLog/ActivityExportButton/ActivityExportButton.js +35 -59
  375. package/components/activityLog/ActivityExportButton/styles.js +2 -5
  376. package/components/activityLog/ActivityFilterEditor/ActivityFilterEditor.js +35 -59
  377. package/components/activityLog/ActivityFilterEditor/ActivitySelector.js +18 -23
  378. package/components/activityLog/ActivityFilterEditor/DateRangeSelector.js +41 -65
  379. package/components/activityLog/ActivityFilterEditor/SourceSelector.js +19 -24
  380. package/components/activityLog/ActivityFilterEditor/styles.js +3 -6
  381. package/components/activityLog/ActivityFilterEditor/utils/getSelectorActivityTypes.js +24 -28
  382. package/components/activityLog/ActivityLog/ActivityLog.js +29 -53
  383. package/components/activityLog/ActivityLog/helpers.js +9 -16
  384. package/components/activityLog/ActivityLog/items/ActivityItem/ActivityItem.js +18 -23
  385. package/components/activityLog/ActivityLog/items/ActivityItem/styles.js +2 -5
  386. package/components/activityLog/ActivityLog/items/GroupItem/GroupItem.js +14 -19
  387. package/components/activityLog/ActivityLog/items/GroupItem/styles.js +2 -5
  388. package/components/activityLog/ActivityLog/styles.js +2 -5
  389. package/components/activityLog/ActivityLogFilter/ActivityLogFilter.js +15 -39
  390. package/components/activityLog/ActivityLogFilter/ActivityLogFilterHeader.js +17 -22
  391. package/components/activityLog/ActivityLogFilter/helpers.js +19 -26
  392. package/components/activityLog/ActivityLogFilter/styles.js +2 -5
  393. package/components/activityLog/activities/ActivitiesFactory.js +98 -103
  394. package/components/activityLog/activities/ActivityTitle/ActivityTitle.js +7 -12
  395. package/components/activityLog/activities/ActivityTitle/styles.js +2 -5
  396. package/components/activityLog/activities/CommentActivity.js +4 -9
  397. package/components/activityLog/activities/EntityObject/EntityObject.js +10 -15
  398. package/components/activityLog/activities/EntityObject/styles.js +2 -5
  399. package/components/activityLog/activities/GroupActivity.js +12 -17
  400. package/components/activityLog/activities/MergeActivity.js +9 -14
  401. package/components/activityLog/activities/MoreItemsLink/MoreItemsLink.js +7 -14
  402. package/components/activityLog/activities/PotentialMatchActivity.js +8 -13
  403. package/components/activityLog/activities/ProfileActivity.js +9 -14
  404. package/components/activityLog/activities/RelationActivity.js +9 -14
  405. package/components/activityLog/activities/RelationObject/RelationObject.js +11 -16
  406. package/components/activityLog/activities/RelationObject/styles.js +2 -5
  407. package/components/activityLog/activities/SearchActivity.js +18 -42
  408. package/components/activityLog/activities/SimpleActivity.js +13 -18
  409. package/components/activityLog/activities/fields/DeltaField.js +25 -30
  410. package/components/activityLog/activities/fields/PotentialMatchField.js +26 -31
  411. package/components/activityLog/activities/fields/commonStyles.js +2 -5
  412. package/components/activityLog/activities/fields/styles.js +2 -5
  413. package/components/activityLog/activities/records/CollapsibleActivityRecords.js +9 -16
  414. package/components/activityLog/activities/records/EntityRecord.js +24 -29
  415. package/components/activityLog/activities/records/PotentialMatchRecord.js +10 -15
  416. package/components/activityLog/activities/records/RecordUpdates.js +12 -17
  417. package/components/activityLog/activities/records/RelationRecord.js +13 -18
  418. package/components/activityLog/activities/records/styles.js +2 -5
  419. package/components/activityLog/activities/styles.js +2 -5
  420. package/components/activityLog/contexts/CollapsibleItemsContext/index.js +8 -32
  421. package/components/activityLog/hooks/useActivitiesLoader.js +8 -12
  422. package/components/activityLog/hooks/useProfileActivitiesLoader.js +8 -12
  423. package/components/activityLog/hooks/useReadableSearchState.js +18 -41
  424. package/components/activityLog/index.js +5 -25
  425. package/components/activityLog/types/ActivitiesFilter.js +1 -2
  426. package/components/activityLog/types/ActivityData.js +1 -2
  427. package/components/activityLog/types/ActivityDelta.js +1 -2
  428. package/components/activityLog/types/ActivityItem.js +1 -2
  429. package/components/activityLog/types/ActivityTypes.js +2 -5
  430. package/components/activityLog/types/DeltaTypes.js +2 -5
  431. package/components/activityLog/types/DeltaValue.js +1 -2
  432. package/components/activityLog/types/index.js +2 -7
  433. package/components/activityLog/utils/activities.js +43 -54
  434. package/components/activityLog/utils/filters.js +23 -30
  435. package/components/attributes/AttributesView/AttributesView.js +7 -12
  436. package/components/attributes/AttributesView/index.js +7 -13
  437. package/components/attributes/BranchDecorator/BranchDecorator.js +7 -12
  438. package/components/attributes/BranchDecorator/styles.js +2 -5
  439. package/components/attributes/ImageAttributesLine/ImageAttributesLine.js +41 -65
  440. package/components/attributes/ImageAttributesLine/constants.js +6 -9
  441. package/components/attributes/ImageAttributesLine/index.js +1 -8
  442. package/components/attributes/ImageAttributesLine/styles.js +4 -7
  443. package/components/attributes/OvIcon/OvIcon.js +18 -24
  444. package/components/attributes/OvIcon/index.js +1 -8
  445. package/components/attributes/OvIcon/styles.js +3 -6
  446. package/components/attributes/PivotingAttributes/PivotingTooltip.js +24 -50
  447. package/components/attributes/PivotingAttributes/PivotingTooltipContent.js +31 -57
  448. package/components/attributes/PivotingAttributes/helpers.js +16 -22
  449. package/components/attributes/PivotingAttributes/styles.d.ts +1 -1
  450. package/components/attributes/PivotingAttributes/styles.js +3 -6
  451. package/components/attributes/editMode/AttributesFactory/Attribute.js +3 -8
  452. package/components/attributes/editMode/AttributesFactory/AttributesFactory.js +11 -16
  453. package/components/attributes/editMode/AttributesList/AttributesList.js +37 -61
  454. package/components/attributes/editMode/AttributesList/helpers.js +9 -13
  455. package/components/attributes/editMode/AttributesList/index.js +1 -8
  456. package/components/attributes/editMode/AttributesPager/AttributeRenderer.js +34 -58
  457. package/components/attributes/editMode/AttributesPager/AttributesPager.js +24 -48
  458. package/components/attributes/editMode/AttributesPager/CardinalityMessage.js +30 -35
  459. package/components/attributes/editMode/AttributesPager/SpecialRenderer.js +24 -48
  460. package/components/attributes/editMode/AttributesPager/index.js +12 -38
  461. package/components/attributes/editMode/AttributesPager/styles.js +2 -5
  462. package/components/attributes/editMode/AttributesPager/utils.js +4 -7
  463. package/components/attributes/editMode/AttributesView/AttributesView.js +27 -51
  464. package/components/attributes/editMode/AttributesView/index.js +6 -12
  465. package/components/attributes/editMode/AttributesView/styles.js +2 -5
  466. package/components/attributes/editMode/ComplexAttribute/ComplexAttribute.js +38 -62
  467. package/components/attributes/editMode/ComplexAttribute/styles.js +2 -5
  468. package/components/attributes/editMode/EntityCreator/EntityCreator.js +16 -40
  469. package/components/attributes/editMode/EntityCreator/index.js +9 -34
  470. package/components/attributes/editMode/EntitySelector/EntitySelector.js +43 -67
  471. package/components/attributes/editMode/EntitySelector/components/ClearIndicator.js +10 -15
  472. package/components/attributes/editMode/EntitySelector/components/EntityOption.js +26 -31
  473. package/components/attributes/editMode/EntitySelector/components/EntityTypeOption.js +20 -25
  474. package/components/attributes/editMode/EntitySelector/components/Group.js +18 -23
  475. package/components/attributes/editMode/EntitySelector/components/SingleValue.js +26 -50
  476. package/components/attributes/editMode/EntitySelector/components/styles.js +5 -8
  477. package/components/attributes/editMode/EntitySelector/styles.js +2 -5
  478. package/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.js +35 -59
  479. package/components/attributes/editMode/ImageAttributesLine/index.js +2 -7
  480. package/components/attributes/editMode/ImageAttributesLine/styles.js +2 -5
  481. package/components/attributes/editMode/MoreAttributesButton/MoreAttributesButton.js +46 -70
  482. package/components/attributes/editMode/MoreAttributesButton/index.js +1 -8
  483. package/components/attributes/editMode/MoreAttributesButton/styles.js +2 -5
  484. package/components/attributes/editMode/NestedAttribute/NestedAttribute.js +7 -31
  485. package/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.js +46 -70
  486. package/components/attributes/editMode/ReferenceAttribute/index.js +13 -38
  487. package/components/attributes/editMode/ReferenceAttribute/styles.js +2 -5
  488. package/components/attributes/editMode/RelationTypeSelector/RelationTypeSelector.js +18 -42
  489. package/components/attributes/editMode/RelationTypeSelector/components/RelationOption.js +31 -36
  490. package/components/attributes/editMode/RelationTypeSelector/components/styles.js +2 -5
  491. package/components/attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor.js +57 -81
  492. package/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.js +15 -22
  493. package/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.js +4 -8
  494. package/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.js +7 -14
  495. package/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.js +10 -17
  496. package/components/attributes/editMode/SimpleAttributeEditor/selectors/types.js +1 -2
  497. package/components/attributes/editMode/SimpleAttributeEditor/styles.js +2 -5
  498. package/components/attributes/editMode/SimpleAttributeEditor/utils.js +27 -35
  499. package/components/attributes/helpers/attributesView.js +6 -11
  500. package/components/attributes/helpers/imageAttributes.js +1 -5
  501. package/components/attributes/inline/AttributesList/AttributesList.js +12 -17
  502. package/components/attributes/inline/AttributesList/styles.js +2 -5
  503. package/components/attributes/inline/AttributesPager/AttributesPager.js +24 -48
  504. package/components/attributes/inline/AttributesPager/styles.js +2 -5
  505. package/components/attributes/inline/ComplexAttribute/ComplexAttribute.js +35 -59
  506. package/components/attributes/inline/ComplexAttribute/styles.js +2 -5
  507. package/components/attributes/inline/ImageAttribute/ImageAttribute.js +8 -13
  508. package/components/attributes/inline/ImageAttribute/styles.js +2 -5
  509. package/components/attributes/inline/ImageAttributesBlock/ImageAttributesBlock.js +4 -9
  510. package/components/attributes/inline/NestedAttribute/NestedAttribute.js +7 -12
  511. package/components/attributes/inline/NestedAttributesBlock/NestedAttributesBlock.js +9 -14
  512. package/components/attributes/inline/ReferenceAttribute/ReferenceAttribute.js +18 -23
  513. package/components/attributes/inline/ReferenceAttribute/styles.js +2 -5
  514. package/components/attributes/inline/ReferenceAttributesBlock/ReferenceAttributesBlock.js +4 -9
  515. package/components/attributes/inline/SimpleAttribute/CrosswalkMenuItem/CrosswalkMenuItem.js +14 -38
  516. package/components/attributes/inline/SimpleAttribute/CrosswalkMenuItem/styles.js +2 -5
  517. package/components/attributes/inline/SimpleAttribute/SimpleAttribute.js +44 -68
  518. package/components/attributes/inline/SimpleAttribute/index.js +1 -8
  519. package/components/attributes/inline/SimpleAttribute/styles.js +2 -5
  520. package/components/attributes/inline/SimpleAttributeEditor/SimpleAttributeEditor.js +23 -49
  521. package/components/attributes/inline/SimpleAttributeEditor/styles.js +2 -5
  522. package/components/attributes/inline/SimpleAttributesBlock/SimpleAttributesBlock.js +17 -22
  523. package/components/attributes/inline/SimpleAttributesBlock/styles.js +2 -5
  524. package/components/attributes/inline/common/ComplexAttributeLabel.js +6 -13
  525. package/components/attributes/inline/common/CrosswalkIcon.js +12 -17
  526. package/components/attributes/inline/common/DeleteButton.js +6 -11
  527. package/components/attributes/inline/common/IgnoreButton.js +7 -12
  528. package/components/attributes/inline/common/PinButton.js +7 -12
  529. package/components/attributes/inline/common/SourceItem.js +23 -28
  530. package/components/attributes/inline/common/__test__/CrosswalkIcon.spec.js +8 -32
  531. package/components/attributes/inline/common/__test__/DeleteButton.spec.js +8 -13
  532. package/components/attributes/inline/common/__test__/IgnoreButton.spec.js +10 -15
  533. package/components/attributes/inline/common/__test__/PinButton.spec.js +10 -15
  534. package/components/attributes/inline/common/__test__/SourceItem.spec.js +14 -38
  535. package/components/attributes/inline/common/styles.js +3 -6
  536. package/components/attributes/inline/hooks/useAttributeState.js +10 -14
  537. package/components/attributes/inline/index.js +5 -25
  538. package/components/attributes/inline/types/AddAttributeEvent.js +1 -2
  539. package/components/attributes/inline/types/CrosswalksMap.js +1 -2
  540. package/components/attributes/inline/types/DeleteAttributeEvent.js +1 -2
  541. package/components/attributes/inline/types/EditAttributeEvent.js +1 -2
  542. package/components/attributes/inline/types/IgnoreAttributeEvent.js +1 -2
  543. package/components/attributes/inline/types/PinAttributeEvent.js +1 -2
  544. package/components/attributes/inline/types/index.js +1 -2
  545. package/components/attributes/pagersCommon/ShowLess.js +10 -15
  546. package/components/attributes/pagersCommon/ShowMore.js +11 -16
  547. package/components/attributes/pagersCommon/styles.js +2 -5
  548. package/components/attributes/readMode/AttributeValuesBlock/AttributeValuesBlock.js +12 -36
  549. package/components/attributes/readMode/AttributesFactory/Attribute.js +3 -8
  550. package/components/attributes/readMode/AttributesFactory/AttributesFactory.js +11 -16
  551. package/components/attributes/readMode/AttributesList/AttributesList.js +19 -43
  552. package/components/attributes/readMode/AttributesList/index.js +1 -8
  553. package/components/attributes/readMode/AttributesPager/AttributesPager.js +29 -53
  554. package/components/attributes/readMode/AttributesPager/MultiLineRenderer.js +19 -43
  555. package/components/attributes/readMode/AttributesPager/OneLineRenderer.js +18 -23
  556. package/components/attributes/readMode/AttributesPager/SpecialRenderer.js +20 -25
  557. package/components/attributes/readMode/AttributesPager/index.js +7 -32
  558. package/components/attributes/readMode/AttributesPager/styles.js +4 -7
  559. package/components/attributes/readMode/AttributesView/AttributesView.js +24 -48
  560. package/components/attributes/readMode/AttributesView/index.js +6 -12
  561. package/components/attributes/readMode/AttributesView/styles.js +2 -5
  562. package/components/attributes/readMode/ComplexAttribute/ComplexAttribute.js +30 -54
  563. package/components/attributes/readMode/ComplexAttribute/styles.js +2 -5
  564. package/components/attributes/readMode/ImageAttributesLine/ImageAttributesLine.js +19 -43
  565. package/components/attributes/readMode/ImageAttributesLine/cross.inline.svg.js +1 -4
  566. package/components/attributes/readMode/ImageAttributesLine/index.js +1 -8
  567. package/components/attributes/readMode/ImageAttributesLine/styles.js +11 -14
  568. package/components/attributes/readMode/NestedAttribute/NestedAttribute.js +20 -44
  569. package/components/attributes/readMode/NestedAttribute/index.js +1 -8
  570. package/components/attributes/readMode/NestedAttribute/styles.js +7 -9
  571. package/components/attributes/readMode/ReferenceAttribute/ReferenceAttribute.js +20 -44
  572. package/components/attributes/readMode/ReferenceAttribute/index.js +7 -13
  573. package/components/attributes/readMode/ReferenceAttribute/styles.js +7 -9
  574. package/components/attributes/readMode/SimpleAttribute/SimpleAttribute.js +23 -47
  575. package/components/attributes/readMode/SimpleAttribute/index.js +1 -8
  576. package/components/attributes/readMode/SimpleAttribute/styles.js +6 -9
  577. package/components/attributes/readMode/SpecialAttributes/Roles/Role.js +14 -38
  578. package/components/attributes/readMode/SpecialAttributes/Roles/Roles.js +5 -10
  579. package/components/attributes/readMode/SpecialAttributes/Roles/index.js +1 -8
  580. package/components/attributes/readMode/SpecialAttributes/SpecialAttributesArray.js +4 -25
  581. package/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +16 -40
  582. package/components/attributes/readMode/SpecialAttributes/Tags/Tags.js +5 -10
  583. package/components/attributes/readMode/SpecialAttributes/Tags/index.js +1 -8
  584. package/components/attributes/readMode/SpecialAttributes/styles.js +5 -8
  585. package/components/attributes/readMode/helpers/historyAppearance.js +14 -20
  586. package/components/attributes/types/attributesView.js +1 -2
  587. package/components/attributes/types/index.js +1 -13
  588. package/components/charts/ActiveShape/ActiveShape.js +12 -17
  589. package/components/charts/BarChart/BarChart.js +14 -19
  590. package/components/charts/BarChart/getBarChartSettings.js +1 -3
  591. package/components/charts/BubbleChart/BubbleChart.js +33 -59
  592. package/components/charts/BubbleChart/helpers.js +1 -4
  593. package/components/charts/BubbleChart/styles.js +2 -5
  594. package/components/charts/BubbleChart/useBubbles.js +6 -8
  595. package/components/charts/ChartsFactory.js +30 -35
  596. package/components/charts/CloudChart/CloudChart.js +22 -48
  597. package/components/charts/CloudChart/styles.js +2 -5
  598. package/components/charts/CloudChart/useCloud.js +5 -10
  599. package/components/charts/CustomLegend/CustomLegend.js +8 -13
  600. package/components/charts/CustomLegend/getLegendProps.js +4 -9
  601. package/components/charts/CustomLegend/styles.js +2 -5
  602. package/components/charts/CustomTooltip/CustomTooltip.js +10 -17
  603. package/components/charts/CustomTooltip/styles.js +2 -5
  604. package/components/charts/HOCs/withPercents.js +7 -28
  605. package/components/charts/LineChart/LineChart.js +15 -20
  606. package/components/charts/LineChart/getLineChartSettings.js +1 -3
  607. package/components/charts/MapChart/Legend/Legend.js +11 -16
  608. package/components/charts/MapChart/Legend/styles.js +2 -5
  609. package/components/charts/MapChart/MapChart.js +34 -60
  610. package/components/charts/MapChart/styles.js +2 -5
  611. package/components/charts/MapChart/useGeography.js +4 -6
  612. package/components/charts/PieChart/PieChart.js +17 -43
  613. package/components/charts/TableWithBars/TableWithBars.js +21 -45
  614. package/components/charts/TableWithBars/cell-renderers/AttributeCellRenderer.js +13 -20
  615. package/components/charts/TableWithBars/cell-renderers/HeadCellRenderer.js +10 -15
  616. package/components/charts/TableWithBars/cell-renderers/NumberCellValueRenderer.js +12 -17
  617. package/components/charts/TableWithBars/cell-renderers/styles.js +2 -5
  618. package/components/charts/TableWithBars/styles.js +2 -5
  619. package/components/charts/TreeChart/TreeChart.js +17 -41
  620. package/components/charts/TreeChart/styles.js +2 -5
  621. package/components/charts/hooks/useClickableStyle.js +3 -7
  622. package/components/charts/hooks/useTooltipState.js +5 -7
  623. package/components/charts/index.js +7 -20
  624. package/components/charts/types/BarChartOptions.js +1 -2
  625. package/components/charts/types/ChartData.js +1 -2
  626. package/components/charts/types/ChartProps.js +1 -2
  627. package/components/charts/types/LineChartOptions.js +1 -2
  628. package/components/charts/types/TableWithBarsOptions.js +1 -2
  629. package/components/charts/types/index.js +1 -2
  630. package/components/commonReactSelectComponents/DropdownIndicator.js +14 -19
  631. package/components/commonReactSelectComponents/DropdownIndicatorWithIconButton.js +14 -19
  632. package/components/commonReactSelectComponents/MenuWithPopper.js +27 -51
  633. package/components/commonReactSelectComponents/arrowIndicatorStyles.js +2 -5
  634. package/components/commonReactSelectComponents/menuStyles.js +2 -5
  635. package/components/crosswalks/AttributesTable/AddAttributesButton/AddAttributesButton.js +20 -27
  636. package/components/crosswalks/AttributesTable/AddAttributesButton/styles.js +2 -5
  637. package/components/crosswalks/AttributesTable/AttributesTable.js +43 -67
  638. package/components/crosswalks/AttributesTable/ConfirmEditIgnoredDialog/ConfirmEditIgnoredDialog.js +28 -52
  639. package/components/crosswalks/AttributesTable/cell-renderers/AttributeValuesRenderer.js +6 -13
  640. package/components/crosswalks/AttributesTable/cell-renderers/AttributesHeadCellRenderer.js +11 -18
  641. package/components/crosswalks/AttributesTable/cell-renderers/CountRenderer.js +6 -11
  642. package/components/crosswalks/AttributesTable/cell-renderers/DefaultCellValueRenderer.js +5 -10
  643. package/components/crosswalks/AttributesTable/cell-renderers/HeadCellRenderer.js +8 -13
  644. package/components/crosswalks/AttributesTable/cell-renderers/OvValuesRenderer.js +9 -14
  645. package/components/crosswalks/AttributesTable/cell-renderers/RowCellRenderer.js +6 -11
  646. package/components/crosswalks/AttributesTable/cell-renderers/RuleTypeInfoButton.js +49 -73
  647. package/components/crosswalks/AttributesTable/cell-renderers/RuleTypeRenderer.js +9 -14
  648. package/components/crosswalks/AttributesTable/cell-renderers/WinnerSourcesRenderer.js +21 -26
  649. package/components/crosswalks/AttributesTable/cell-renderers/attribute-renderers/AttributesFactory.js +14 -19
  650. package/components/crosswalks/AttributesTable/cell-renderers/attribute-renderers/ImageAttributesRenderer.js +7 -12
  651. package/components/crosswalks/AttributesTable/cell-renderers/attribute-renderers/NestedAttributesRenderer.js +8 -13
  652. package/components/crosswalks/AttributesTable/cell-renderers/attribute-renderers/ReferenceAttributesRenderer.js +8 -13
  653. package/components/crosswalks/AttributesTable/cell-renderers/attribute-renderers/SimpleAttributesRenderer.js +7 -12
  654. package/components/crosswalks/AttributesTable/cell-renderers/attribute-renderers/styles.js +2 -5
  655. package/components/crosswalks/AttributesTable/cell-renderers/styles.js +2 -5
  656. package/components/crosswalks/AttributesTable/helpers.js +58 -68
  657. package/components/crosswalks/AttributesTable/styles.js +2 -5
  658. package/components/crosswalks/ColoredBlock/ColoredBlock.js +7 -31
  659. package/components/crosswalks/ColoredBlock/styles.js +2 -5
  660. package/components/crosswalks/CopyableValueField/CopyableValueField.js +10 -15
  661. package/components/crosswalks/CopyableValueField/styles.js +2 -5
  662. package/components/crosswalks/CrosswalkAttributes/CrosswalkAttributes.js +55 -79
  663. package/components/crosswalks/CrosswalkAttributes/styles.js +2 -5
  664. package/components/crosswalks/CrosswalkDateEditor/CrosswalkDateEditor.js +10 -34
  665. package/components/crosswalks/CrosswalkDateEditor/styles.js +2 -5
  666. package/components/crosswalks/CrosswalkDragLayer/CrosswalkDragLayer.js +11 -35
  667. package/components/crosswalks/CrosswalkDragLayer/CrosswalkDragPreview.js +17 -22
  668. package/components/crosswalks/CrosswalkDragLayer/styles.js +2 -5
  669. package/components/crosswalks/CrosswalkEditor/CrosswalkEditor.js +18 -42
  670. package/components/crosswalks/CrosswalkEditor/styles.js +2 -5
  671. package/components/crosswalks/CrosswalkRow/CrosswalkRow.js +56 -80
  672. package/components/crosswalks/CrosswalkRow/styles.js +2 -5
  673. package/components/crosswalks/DummyCrosswalkRow/DummyCrosswalkRow.js +20 -44
  674. package/components/crosswalks/DummyCrosswalkRow/styles.js +2 -5
  675. package/components/crosswalks/ShowDependentLink/ShowDependentLink.js +8 -13
  676. package/components/crosswalks/ShowDependentLink/styles.js +2 -5
  677. package/components/crosswalks/SourceCrosswalksRow/SourceCrosswalksRow.js +19 -43
  678. package/components/crosswalks/hooks/useAttributeActions.js +22 -26
  679. package/components/crosswalks/hooks/useCrosswalkActions.js +17 -21
  680. package/components/crosswalks/hooks/useModifiedEntity.js +39 -43
  681. package/components/crosswalks/index.js +8 -22
  682. package/components/crosswalks/types/AddCrosswalkEvent.js +1 -2
  683. package/components/crosswalks/types/CreateAttributeEvent.js +1 -2
  684. package/components/crosswalks/types/CrosswalkType.js +2 -5
  685. package/components/crosswalks/types/CrosswalksByOwnerTypeMap.js +1 -2
  686. package/components/crosswalks/types/CrosswalksByTypes.js +1 -2
  687. package/components/crosswalks/types/DeleteCrosswalkEvent.js +1 -2
  688. package/components/crosswalks/types/EditCrosswalkEvent.js +1 -2
  689. package/components/crosswalks/types/index.js +1 -5
  690. package/components/crosswalks/utils/legend.js +23 -26
  691. package/components/editors/BooleanEditor/BooleanEditor.js +9 -14
  692. package/components/editors/BooleanRadioEditor/BooleanRadioEditor.js +15 -20
  693. package/components/editors/BooleanRadioEditor/styles.js +2 -5
  694. package/components/editors/CustomDateRangeEditor/CustomDateRangeEditor.js +26 -50
  695. package/components/editors/CustomDateRangeEditor/styles.js +2 -5
  696. package/components/editors/DataTypeValueEditor/DataTypeValueEditor.js +16 -21
  697. package/components/editors/DataTypeValueEditor/useEditorContext.js +30 -51
  698. package/components/editors/DateEditor/DateEditor.d.ts +4 -2
  699. package/components/editors/DateEditor/DateEditor.js +30 -57
  700. package/components/editors/DateEditor/styles.js +2 -5
  701. package/components/editors/DateRangeEditor/DateRangeEditor.js +53 -77
  702. package/components/editors/DateRangeEditor/styles.js +2 -5
  703. package/components/editors/DependentLookupEditor/DependentLookupEditor.js +56 -81
  704. package/components/editors/DependentLookupEditor/OptionWithCheckIcon.js +11 -16
  705. package/components/editors/DependentLookupEditor/helpers.js +4 -8
  706. package/components/editors/DependentLookupEditor/styles.js +2 -5
  707. package/components/editors/DependentLookupEditor/useAutopopulation.js +4 -6
  708. package/components/editors/DependentLookupEditor/useDefaultOptions.js +8 -10
  709. package/components/editors/DependentLookupEditor/useLookupsResolver.js +10 -12
  710. package/components/editors/DependentLookupEditor/useSavingFocus.js +4 -6
  711. package/components/editors/DropDownEditor/DropDownEditor.js +12 -17
  712. package/components/editors/EditorsFactory.js +58 -63
  713. package/components/editors/FileTypeEditor/FileTypeEditor.js +12 -36
  714. package/components/editors/FileTypeEditor/styles.js +2 -5
  715. package/components/editors/FilterEditor/FilterEditor.js +21 -26
  716. package/components/editors/FilterEditor/FilterValueEditor.js +35 -40
  717. package/components/editors/GroupedDropDownEditor/GroupedDropDownEditor.js +26 -33
  718. package/components/editors/GroupedDropDownEditor/entriesHelpers.js +7 -11
  719. package/components/editors/GroupedDropDownEditor/styles.js +2 -5
  720. package/components/editors/LookupEditor/LookupEditor.js +19 -43
  721. package/components/editors/LookupEditor/entriesHelpers.js +8 -11
  722. package/components/editors/NumberEditor/NumberEditor.js +26 -31
  723. package/components/editors/RangeDataTypeValueEditor/RangeDataTypeValueEditor.js +28 -52
  724. package/components/editors/RangeDataTypeValueEditor/styles.js +2 -5
  725. package/components/editors/SelectEditor/SelectEditor.js +11 -16
  726. package/components/editors/TextEditor/TextEditor.js +14 -19
  727. package/components/editors/TimestampEditor/TimestampEditor.js +30 -54
  728. package/components/editors/TimestampEditor/styles.js +2 -5
  729. package/components/editors/TypeaheadEditor/TypeaheadEditor.js +44 -68
  730. package/components/editors/TypeaheadEditor/styles.js +2 -5
  731. package/components/editors/commonComponents/MultiValueChip/MultiValueChip.js +16 -21
  732. package/components/editors/constants.js +4 -7
  733. package/components/editors/index.js +10 -26
  734. package/components/history/ContributorsPanel/ContributorItem.js +8 -13
  735. package/components/history/ContributorsPanel/ContributorsPanel.js +11 -16
  736. package/components/history/ContributorsPanel/styles.js +3 -6
  737. package/components/history/DateRangeSelector/DateRangeSelector.js +27 -51
  738. package/components/history/DateRangeSelector/styles.js +2 -5
  739. package/components/history/DateRangeSelector/utils.js +7 -14
  740. package/components/history/HistoryActivitySelector/HistoryActivitySelector.js +18 -23
  741. package/components/history/HistoryActivitySelector/styles.js +3 -6
  742. package/components/history/HistoryActivitySelector/utils.js +10 -17
  743. package/components/history/HistoryFilterButton/HistoryFilterButton.js +32 -56
  744. package/components/history/HistoryFilterButton/styles.js +2 -5
  745. package/components/history/HistoryGraph/HistoryCircle.js +11 -17
  746. package/components/history/HistoryGraph/HistoryGraph.js +20 -44
  747. package/components/history/HistoryGraph/HistoryLink.js +5 -10
  748. package/components/history/HistoryGraph/helpers.js +4 -9
  749. package/components/history/HistoryHeader/HistoryHeader.js +20 -25
  750. package/components/history/HistoryHeader/styles.js +2 -5
  751. package/components/history/HistoryMenuButton/HistoryMenuButton.js +7 -12
  752. package/components/history/HistoryMenuButton/styles.js +2 -5
  753. package/components/history/HistoryRow/HistoryRow.js +18 -42
  754. package/components/history/HistoryRow/styles.js +2 -5
  755. package/components/history/HistoryTree/HistoryTree.js +25 -49
  756. package/components/history/HistoryTree/styles.js +2 -5
  757. package/components/history/HistoryView/HistoryView.js +13 -37
  758. package/components/history/HistoryView/styles.js +2 -5
  759. package/components/history/ProfileBandHistory/ProfileBandHistory.js +18 -42
  760. package/components/history/ProfileBandHistory/styles.js +2 -5
  761. package/components/history/hooks/useHistoricUris.js +10 -14
  762. package/components/history/hooks/useHistory.js +10 -14
  763. package/components/history/hooks/useHistorySlice.js +16 -39
  764. package/components/history/hooks/useHistoryTree.js +36 -40
  765. package/components/history/hooks/useHistoryWithTotal.js +12 -16
  766. package/components/history/index.js +8 -31
  767. package/components/history/types/HistoryChangeTypes.js +2 -5
  768. package/components/history/types/HistoryData.js +1 -2
  769. package/components/history/types/HistoryFilter.js +2 -5
  770. package/components/history/types/HistoryLane.js +1 -2
  771. package/components/history/types/HistoryLife.js +1 -2
  772. package/components/history/types/HistoryRowData.js +1 -2
  773. package/components/history/types/index.js +2 -7
  774. package/components/index.d.ts +1 -0
  775. package/components/index.js +121 -257
  776. package/components/workflow/cards/DataChangeRequestTaskCard/DataChangeRequestTaskCard.d.ts +7 -0
  777. package/components/workflow/cards/DataChangeRequestTaskCard/DataChangeRequestTaskCard.js +28 -0
  778. package/components/workflow/cards/GenericWorkflowTaskCard/GenericWorkflowTaskCard.d.ts +10 -0
  779. package/components/workflow/cards/GenericWorkflowTaskCard/GenericWorkflowTaskCard.js +76 -0
  780. package/components/workflow/cards/GenericWorkflowTaskCard/styles.d.ts +3 -0
  781. package/components/workflow/cards/GenericWorkflowTaskCard/styles.js +110 -0
  782. package/components/workflow/cards/WorkflowTaskCard.d.ts +3 -0
  783. package/components/workflow/cards/WorkflowTaskCard.js +5 -0
  784. package/components/workflow/cards/WorkflowTaskCardsFactory.d.ts +9 -0
  785. package/components/workflow/cards/WorkflowTaskCardsFactory.js +27 -0
  786. package/components/workflow/components/AssigneeSelector/AssigneeSelector.d.ts +5 -0
  787. package/components/workflow/components/AssigneeSelector/AssigneeSelector.js +14 -0
  788. package/components/workflow/components/DueDateField/DueDateField.d.ts +7 -0
  789. package/components/workflow/components/DueDateField/DueDateField.js +14 -0
  790. package/components/workflow/components/DueDateField/styles.d.ts +1 -0
  791. package/components/workflow/components/DueDateField/styles.js +13 -0
  792. package/components/workflow/components/LineDecorator/LineDecorator.d.ts +11 -0
  793. package/components/workflow/components/LineDecorator/LineDecorator.js +14 -0
  794. package/components/workflow/components/LineDecorator/styles.d.ts +1 -0
  795. package/components/workflow/components/LineDecorator/styles.js +59 -0
  796. package/components/workflow/components/PrioritySelector/PrioritySelector.d.ts +7 -0
  797. package/components/workflow/components/PrioritySelector/PrioritySelector.js +12 -0
  798. package/components/workflow/components/TaskActions/TaskActions.d.ts +5 -0
  799. package/components/workflow/components/TaskActions/TaskActions.js +15 -0
  800. package/components/workflow/components/WorkflowComments/CollapsedComments.d.ts +16 -0
  801. package/components/workflow/components/WorkflowComments/CollapsedComments.js +34 -0
  802. package/components/workflow/components/WorkflowComments/Comment.d.ts +20 -0
  803. package/components/workflow/components/WorkflowComments/Comment.js +29 -0
  804. package/components/workflow/components/WorkflowComments/ExpandedComments.d.ts +14 -0
  805. package/components/workflow/components/WorkflowComments/ExpandedComments.js +20 -0
  806. package/components/workflow/components/WorkflowComments/WorkflowComments.d.ts +16 -0
  807. package/components/workflow/components/WorkflowComments/WorkflowComments.js +42 -0
  808. package/components/workflow/components/WorkflowComments/index.d.ts +1 -0
  809. package/components/workflow/components/WorkflowComments/index.js +1 -0
  810. package/components/workflow/components/WorkflowComments/styles.d.ts +4 -0
  811. package/components/workflow/components/WorkflowComments/styles.js +105 -0
  812. package/components/workflow/helpers/errors.d.ts +2 -0
  813. package/components/workflow/helpers/errors.js +14 -0
  814. package/components/workflow/helpers/index.d.ts +3 -0
  815. package/components/workflow/helpers/index.js +10 -0
  816. package/components/workflow/hooks/useWorkflowActions.d.ts +10 -0
  817. package/components/workflow/hooks/useWorkflowActions.js +57 -0
  818. package/components/workflow/hooks/useWorkflowAssignee.d.ts +13 -0
  819. package/components/workflow/hooks/useWorkflowAssignee.js +83 -0
  820. package/components/workflow/hooks/useWorkflowCheckPermission.d.ts +1 -0
  821. package/components/workflow/hooks/useWorkflowCheckPermission.js +84 -0
  822. package/components/workflow/hooks/useWorkflowColor.d.ts +3 -0
  823. package/components/workflow/hooks/useWorkflowColor.js +31 -0
  824. package/components/workflow/hooks/useWorkflowComments.d.ts +7 -0
  825. package/components/workflow/hooks/useWorkflowComments.js +50 -0
  826. package/components/workflow/hooks/useWorkflowDueDate.d.ts +6 -0
  827. package/components/workflow/hooks/useWorkflowDueDate.js +39 -0
  828. package/components/workflow/hooks/useWorkflowPriority.d.ts +12 -0
  829. package/components/workflow/hooks/useWorkflowPriority.js +59 -0
  830. package/components/workflow/index.d.ts +5 -0
  831. package/components/workflow/index.js +5 -0
  832. package/constants/attributes.js +2 -5
  833. package/constants/classnames.js +1 -4
  834. package/constants/index.js +4 -17
  835. package/constants/map.js +3 -6
  836. package/constants/prop-types.js +52 -69
  837. package/contexts/AsyncMountContext/index.js +8 -14
  838. package/contexts/BlockImageGalleryDialogContext/index.js +3 -9
  839. package/contexts/CollaborationContext/index.js +3 -9
  840. package/contexts/CrosswalksDisplayContext/index.js +20 -47
  841. package/contexts/EntitiesMapContext/index.js +3 -9
  842. package/contexts/EntityMarkerContext/index.js +3 -9
  843. package/contexts/ExpandedAttributesContext/index.js +8 -32
  844. package/contexts/HistoryAppearanceContext/index.js +3 -9
  845. package/contexts/IdContext/index.js +3 -9
  846. package/contexts/PivotingAttributeContext/index.js +2 -8
  847. package/contexts/PopupBoundariesContext/index.js +8 -14
  848. package/contexts/ProfilePerspectiveViewContext/index.js +3 -9
  849. package/contexts/UsersContext/index.js +3 -9
  850. package/contexts/ViewIdContext/index.js +3 -9
  851. package/contexts/WorkflowTasksContext/index.d.ts +9 -0
  852. package/contexts/WorkflowTasksContext/index.js +3 -0
  853. package/contexts/index.d.ts +15 -14
  854. package/contexts/index.js +15 -36
  855. package/core/index.js +1 -13
  856. package/core/utils.js +6 -21
  857. package/hooks/index.d.ts +1 -0
  858. package/hooks/index.js +14 -29
  859. package/hooks/useActions.js +5 -9
  860. package/hooks/useAsyncMount.js +8 -12
  861. package/hooks/useCollaboration.js +37 -44
  862. package/hooks/useConfigPermissions.js +10 -17
  863. package/hooks/useDidUpdateEffect.js +4 -8
  864. package/hooks/usePrevious.js +4 -8
  865. package/hooks/useRelationTypeSelector.js +17 -21
  866. package/hooks/useRelationsLoader.js +28 -51
  867. package/hooks/useRunOnceAfterValueInitialization.js +4 -8
  868. package/hooks/useSafePromise.js +6 -10
  869. package/hooks/useSavedState.js +5 -9
  870. package/hooks/useUsers.js +10 -17
  871. package/hooks/useWhyDidYouUpdate.js +4 -8
  872. package/hooks/useWorkflowTasks.d.ts +8 -0
  873. package/hooks/useWorkflowTasks.js +65 -0
  874. package/icons/Add.js +4 -9
  875. package/icons/AddComment.js +4 -9
  876. package/icons/Calendar.js +4 -9
  877. package/icons/CollaborationIcon.d.ts +3 -0
  878. package/icons/CollaborationIcon.js +22 -0
  879. package/icons/Comment.js +4 -9
  880. package/icons/CommentBubble.js +4 -9
  881. package/icons/Copy.js +9 -14
  882. package/icons/Create.js +4 -9
  883. package/icons/DcrTaskIcon.d.ts +3 -0
  884. package/icons/DcrTaskIcon.js +19 -0
  885. package/icons/DefaultImage.js +6 -11
  886. package/icons/DefaultTaskIcon.d.ts +3 -0
  887. package/icons/DefaultTaskIcon.js +19 -0
  888. package/icons/DeleteRequestTaskIcon.d.ts +3 -0
  889. package/icons/DeleteRequestTaskIcon.js +19 -0
  890. package/icons/Details.js +9 -14
  891. package/icons/Download.js +9 -14
  892. package/icons/Draw.js +10 -15
  893. package/icons/EmptySearchResults.js +66 -71
  894. package/icons/Filter.js +4 -9
  895. package/icons/Ignored.js +4 -9
  896. package/icons/IgnoredOutlined.js +4 -9
  897. package/icons/LogIn.js +5 -10
  898. package/icons/LogOut.js +5 -10
  899. package/icons/Merge.js +4 -9
  900. package/icons/MlMatch.js +44 -49
  901. package/icons/NestedAttribute.js +4 -9
  902. package/icons/NoData.js +62 -67
  903. package/icons/NoDataSearch.js +7 -12
  904. package/icons/NoMatches.js +4 -9
  905. package/icons/Pin.js +4 -9
  906. package/icons/PinOutlined.js +4 -9
  907. package/icons/PivotingIcon.js +4 -9
  908. package/icons/PmIcon.js +4 -9
  909. package/icons/PmTaskIcon.d.ts +3 -0
  910. package/icons/PmTaskIcon.js +19 -0
  911. package/icons/Polygon.js +4 -9
  912. package/icons/PotentialMatch.js +4 -9
  913. package/icons/Profile.js +4 -9
  914. package/icons/Radius.js +4 -9
  915. package/icons/Recommended.js +9 -14
  916. package/icons/ReferenceAttribute.js +4 -9
  917. package/icons/Remove.js +4 -9
  918. package/icons/ResizeIconInline.js +4 -9
  919. package/icons/Search.js +4 -9
  920. package/icons/SelectAttributes.js +39 -44
  921. package/icons/SimpleAttribute.js +4 -9
  922. package/icons/Table.js +4 -9
  923. package/icons/UnMerge.js +4 -9
  924. package/icons/UploadIcon.js +28 -33
  925. package/icons/index.d.ts +11 -2
  926. package/icons/index.js +46 -80
  927. package/index.js +7 -19
  928. package/package.json +5 -4
  929. package/types/index.js +2 -5
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __assign = (this && this.__assign) || function () {
3
2
  __assign = Object.assign || function(t) {
4
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -10,47 +9,24 @@ var __assign = (this && this.__assign) || function () {
10
9
  };
11
10
  return __assign.apply(this, arguments);
12
11
  };
13
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
16
- }) : (function(o, m, k, k2) {
17
- if (k2 === undefined) k2 = k;
18
- o[k2] = m[k];
19
- }));
20
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
21
- Object.defineProperty(o, "default", { enumerable: true, value: v });
22
- }) : function(o, v) {
23
- o["default"] = v;
24
- });
25
- var __importStar = (this && this.__importStar) || function (mod) {
26
- if (mod && mod.__esModule) return mod;
27
- var result = {};
28
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
29
- __setModuleDefault(result, mod);
30
- return result;
31
- };
32
- var __importDefault = (this && this.__importDefault) || function (mod) {
33
- return (mod && mod.__esModule) ? mod : { "default": mod };
34
- };
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- var react_1 = __importStar(require("react"));
37
- var ramda_1 = require("ramda");
38
- var mdm_sdk_1 = require("@reltio/mdm-sdk");
39
- var BranchDecorator_1 = __importDefault(require("../../BranchDecorator/BranchDecorator"));
40
- var AttributesPager_1 = __importDefault(require("../AttributesPager"));
41
- var ShowMore_1 = __importDefault(require("../../pagersCommon/ShowMore"));
42
- var ShowLess_1 = __importDefault(require("../../pagersCommon/ShowLess"));
43
- var constants_1 = require("../../../../constants");
44
- var attributesView_1 = require("../../helpers/attributesView");
12
+ import React, { memo, useMemo, useState } from 'react';
13
+ import { path } from 'ramda';
14
+ import { getAttributesListForReadMode } from '@reltio/mdm-sdk';
15
+ import BranchDecorator from '../../BranchDecorator/BranchDecorator';
16
+ import AttributesPager from '../AttributesPager';
17
+ import ShowMore from '../../pagersCommon/ShowMore';
18
+ import ShowLess from '../../pagersCommon/ShowLess';
19
+ import { ALWAYS_VISIBLE_TYPE_URIS } from '../../../../constants';
20
+ import { splitPagersData } from '../../helpers/attributesView';
45
21
  var AttributesList = function (_a) {
46
- var attrTypes = _a.attrTypes, entity = _a.entity, parentUri = _a.parentUri, drawLines = _a.drawLines, children = _a.children, className = _a.className, max = _a.max, _b = _a.alwaysVisibleTypeUris, alwaysVisibleTypeUris = _b === void 0 ? constants_1.ALWAYS_VISIBLE_TYPE_URIS : _b, showNonOv = _a.showNonOv;
47
- var _c = react_1.useState(max || Infinity), visibleValuesCount = _c[0], setVisibleValuesCount = _c[1];
48
- var pagersData = react_1.useMemo(function () { return mdm_sdk_1.getAttributesListForReadMode(attrTypes, entity, showNonOv); }, [
22
+ var attrTypes = _a.attrTypes, entity = _a.entity, parentUri = _a.parentUri, drawLines = _a.drawLines, children = _a.children, className = _a.className, max = _a.max, _b = _a.alwaysVisibleTypeUris, alwaysVisibleTypeUris = _b === void 0 ? ALWAYS_VISIBLE_TYPE_URIS : _b, showNonOv = _a.showNonOv;
23
+ var _c = useState(max || Infinity), visibleValuesCount = _c[0], setVisibleValuesCount = _c[1];
24
+ var pagersData = useMemo(function () { return getAttributesListForReadMode(attrTypes, entity, showNonOv); }, [
49
25
  attrTypes,
50
26
  entity,
51
27
  showNonOv
52
28
  ]);
53
- var _d = react_1.useMemo(function () { return attributesView_1.splitPagersData(alwaysVisibleTypeUris, pagersData); }, [pagersData, alwaysVisibleTypeUris]), alwaysVisiblePagersData = _d[0], regularPagersData = _d[1];
29
+ var _d = useMemo(function () { return splitPagersData(alwaysVisibleTypeUris, pagersData); }, [pagersData, alwaysVisibleTypeUris]), alwaysVisiblePagersData = _d[0], regularPagersData = _d[1];
54
30
  var visibleAttributePagersData = regularPagersData.slice(0, visibleValuesCount);
55
31
  var showMore = max && visibleAttributePagersData.length < regularPagersData.length;
56
32
  var showLess = max && visibleAttributePagersData.length >= regularPagersData.length && max < visibleAttributePagersData.length;
@@ -63,13 +39,13 @@ var AttributesList = function (_a) {
63
39
  var onShowLess = function () {
64
40
  setVisibleValuesCount(max);
65
41
  };
66
- return (react_1.default.createElement("div", { className: className },
67
- children && react_1.default.createElement(BranchDecorator_1.default, __assign({}, decoratorProps), children),
42
+ return (React.createElement("div", { className: className },
43
+ children && React.createElement(BranchDecorator, __assign({}, decoratorProps), children),
68
44
  visibleAttributePagersData.concat(alwaysVisiblePagersData).map(function (_a) {
69
45
  var attrType = _a.attrType, values = _a.values;
70
- return (react_1.default.createElement(AttributesPager_1.default, { key: attrType.uri, attributeType: attrType, drawLines: drawLines, values: values, paging: ramda_1.path(['paging', attrType.uri], entity.attributes), parentUri: parentUri, showNonOv: showNonOv }));
46
+ return (React.createElement(AttributesPager, { key: attrType.uri, attributeType: attrType, drawLines: drawLines, values: values, paging: path(['paging', attrType.uri], entity.attributes), parentUri: parentUri, showNonOv: showNonOv }));
71
47
  }),
72
- showMore && react_1.default.createElement(ShowMore_1.default, { onClick: onShowMore }),
73
- showLess && react_1.default.createElement(ShowLess_1.default, { onClick: onShowLess })));
48
+ showMore && React.createElement(ShowMore, { onClick: onShowMore }),
49
+ showLess && React.createElement(ShowLess, { onClick: onShowLess })));
74
50
  };
75
- exports.default = react_1.memo(AttributesList);
51
+ export default memo(AttributesList);
@@ -1,8 +1 @@
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.default = void 0;
7
- var AttributesList_1 = require("./AttributesList");
8
- Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(AttributesList_1).default; } });
1
+ export { default } from './AttributesList';
@@ -1,38 +1,14 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
- var __importDefault = (this && this.__importDefault) || function (mod) {
22
- return (mod && mod.__esModule) ? mod : { "default": mod };
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- var classnames_1 = __importDefault(require("classnames"));
26
- var react_1 = __importStar(require("react"));
27
- var ramda_1 = require("ramda");
28
- var mdm_sdk_1 = require("@reltio/mdm-sdk");
29
- var styles_1 = require("./styles");
30
- var Title_1 = __importDefault(require("../../../Title/Title"));
31
- var BranchDecorator_1 = __importDefault(require("../../BranchDecorator/BranchDecorator"));
32
- var OneLineRenderer_1 = __importDefault(require("./OneLineRenderer"));
33
- var MultiLineRenderer_1 = __importDefault(require("./MultiLineRenderer"));
34
- var ImageAttributesLine_1 = __importDefault(require("../ImageAttributesLine"));
35
- var SpecialRenderer_1 = __importDefault(require("./SpecialRenderer"));
1
+ import classnames from 'classnames';
2
+ import React, { memo } from 'react';
3
+ import { always, cond, has, ifElse, partition, prop, T } from 'ramda';
4
+ import { isComplexAttribute, isImage, isSpecialAttribute, isOv } from '@reltio/mdm-sdk';
5
+ import { useStyles } from './styles';
6
+ import Title from '../../../Title/Title';
7
+ import BranchDecorator from '../../BranchDecorator/BranchDecorator';
8
+ import OneLineRenderer from './OneLineRenderer';
9
+ import MultiLineRenderer from './MultiLineRenderer';
10
+ import ImageAttributesLine from '../ImageAttributesLine';
11
+ import SpecialRenderer from './SpecialRenderer';
36
12
  var RENDERER_TYPES = {
37
13
  oneLine: 'oneLine',
38
14
  multiLine: 'multiLine',
@@ -42,8 +18,8 @@ var RENDERER_TYPES = {
42
18
  var AttributesPager = function (_a) {
43
19
  var _b, _c;
44
20
  var values = _a.values, attributeType = _a.attributeType, drawLines = _a.drawLines, _d = _a.paging, paging = _d === void 0 ? {} : _d, parentUri = _a.parentUri, _e = _a.max, max = _e === void 0 ? Infinity : _e, requestNextPageOfAttributeValues = _a.requestNextPageOfAttributeValues, titleClassName = _a.titleClassName, contentClassName = _a.contentClassName, _f = _a.showTitle, showTitle = _f === void 0 ? true : _f, showNonOv = _a.showNonOv;
45
- var styles = styles_1.useStyles();
46
- var partitionByOv = ramda_1.partition(mdm_sdk_1.isOv);
21
+ var styles = useStyles();
22
+ var partitionByOv = partition(isOv);
47
23
  if (!values || !values.length) {
48
24
  return null;
49
25
  }
@@ -51,32 +27,32 @@ var AttributesPager = function (_a) {
51
27
  var visibleValues = showNonOv ? values : ovValues;
52
28
  var nonVisibleValues = showNonOv ? [] : nonOvValues;
53
29
  var totalProp = showNonOv ? 'totalValues' : 'totalOvValues';
54
- var totalVisibleValues = ramda_1.ifElse(ramda_1.has(totalProp), ramda_1.prop(totalProp), ramda_1.always(visibleValues.length))(paging);
30
+ var totalVisibleValues = ifElse(has(totalProp), prop(totalProp), always(visibleValues.length))(paging);
55
31
  var totalNonVisibleValues = (paging === null || paging === void 0 ? void 0 : paging.totalValues)
56
32
  ? paging.totalValues - totalVisibleValues
57
33
  : nonVisibleValues.length;
58
- var isOneLineRender = totalVisibleValues === 1 && !mdm_sdk_1.isComplexAttribute(attributeType);
34
+ var isOneLineRender = totalVisibleValues === 1 && !isComplexAttribute(attributeType);
59
35
  var render = function () {
60
- var type = ramda_1.cond([
61
- [mdm_sdk_1.isSpecialAttribute, ramda_1.always(RENDERER_TYPES.special)],
62
- [mdm_sdk_1.isImage, ramda_1.always(RENDERER_TYPES.imageLine)],
63
- [ramda_1.always(isOneLineRender), ramda_1.always(RENDERER_TYPES.oneLine)],
64
- [ramda_1.T, ramda_1.always(RENDERER_TYPES.multiLine)]
36
+ var type = cond([
37
+ [isSpecialAttribute, always(RENDERER_TYPES.special)],
38
+ [isImage, always(RENDERER_TYPES.imageLine)],
39
+ [always(isOneLineRender), always(RENDERER_TYPES.oneLine)],
40
+ [T, always(RENDERER_TYPES.multiLine)]
65
41
  ])(attributeType);
66
42
  switch (type) {
67
43
  case RENDERER_TYPES.oneLine:
68
- return (react_1.default.createElement(OneLineRenderer_1.default, { value: visibleValues[0], nonVisibleValues: nonVisibleValues, totalNonVisibleValues: totalNonVisibleValues, attributeType: attributeType, titleClassName: titleClassName, contentClassName: contentClassName, showTitle: showTitle, showNonOv: showNonOv }));
44
+ return (React.createElement(OneLineRenderer, { value: visibleValues[0], nonVisibleValues: nonVisibleValues, totalNonVisibleValues: totalNonVisibleValues, attributeType: attributeType, titleClassName: titleClassName, contentClassName: contentClassName, showTitle: showTitle, showNonOv: showNonOv }));
69
45
  case RENDERER_TYPES.multiLine:
70
- return (react_1.default.createElement(MultiLineRenderer_1.default, { values: visibleValues, nonVisibleValues: nonVisibleValues, totalVisibleValues: totalVisibleValues, totalNonVisibleValues: totalNonVisibleValues, attributeType: attributeType, parentUri: parentUri, max: max, requestNextPageOfAttributeValues: requestNextPageOfAttributeValues, titleClassName: titleClassName, contentClassName: contentClassName, showTitle: showTitle, showNonOv: showNonOv }));
46
+ return (React.createElement(MultiLineRenderer, { values: visibleValues, nonVisibleValues: nonVisibleValues, totalVisibleValues: totalVisibleValues, totalNonVisibleValues: totalNonVisibleValues, attributeType: attributeType, parentUri: parentUri, max: max, requestNextPageOfAttributeValues: requestNextPageOfAttributeValues, titleClassName: titleClassName, contentClassName: contentClassName, showTitle: showTitle, showNonOv: showNonOv }));
71
47
  case RENDERER_TYPES.imageLine:
72
- return (react_1.default.createElement(react_1.default.Fragment, null,
73
- showTitle && react_1.default.createElement(Title_1.default, { label: attributeType === null || attributeType === void 0 ? void 0 : attributeType.label, attributeType: attributeType }),
74
- react_1.default.createElement(ImageAttributesLine_1.default, { attributeValues: visibleValues, attributeType: attributeType })));
48
+ return (React.createElement(React.Fragment, null,
49
+ showTitle && React.createElement(Title, { label: attributeType === null || attributeType === void 0 ? void 0 : attributeType.label, attributeType: attributeType }),
50
+ React.createElement(ImageAttributesLine, { attributeValues: visibleValues, attributeType: attributeType })));
75
51
  case RENDERER_TYPES.special:
76
- return react_1.default.createElement(SpecialRenderer_1.default, { values: visibleValues, attributeType: attributeType, showTitle: showTitle });
52
+ return React.createElement(SpecialRenderer, { values: visibleValues, attributeType: attributeType, showTitle: showTitle });
77
53
  }
78
54
  };
79
- return (react_1.default.createElement(BranchDecorator_1.default, { enabled: drawLines, className: classnames_1.default((_b = {}, _b[styles.paddingWrapperWithLines] = drawLines, _b)) },
80
- react_1.default.createElement("div", { className: classnames_1.default((_c = {}, _c[styles.paddingWrapper] = !drawLines, _c)) }, render())));
55
+ return (React.createElement(BranchDecorator, { enabled: drawLines, className: classnames((_b = {}, _b[styles.paddingWrapperWithLines] = drawLines, _b)) },
56
+ React.createElement("div", { className: classnames((_c = {}, _c[styles.paddingWrapper] = !drawLines, _c)) }, render())));
81
57
  };
82
- exports.default = react_1.memo(AttributesPager);
58
+ export default memo(AttributesPager);
@@ -1,40 +1,16 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
- var __importDefault = (this && this.__importDefault) || function (mod) {
22
- return (mod && mod.__esModule) ? mod : { "default": mod };
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- var react_1 = __importStar(require("react"));
26
- var ramda_1 = require("ramda");
27
- var classnames_1 = __importDefault(require("classnames"));
28
- var styles_1 = require("./styles");
29
- var Attribute_1 = __importDefault(require("../AttributesFactory/Attribute"));
30
- var Title_1 = __importDefault(require("../../../Title/Title"));
31
- var ShowMore_1 = __importDefault(require("../../pagersCommon/ShowMore"));
32
- var ShowLess_1 = __importDefault(require("../../pagersCommon/ShowLess"));
33
- var OvIcon_1 = __importDefault(require("../../OvIcon"));
1
+ import React, { useState } from 'react';
2
+ import { min } from 'ramda';
3
+ import classnames from 'classnames';
4
+ import { useMultiLineStyles } from './styles';
5
+ import Attribute from '../AttributesFactory/Attribute';
6
+ import Title from '../../../Title/Title';
7
+ import ShowMore from '../../pagersCommon/ShowMore';
8
+ import ShowLess from '../../pagersCommon/ShowLess';
9
+ import OvIcon from '../../OvIcon';
34
10
  var MultiLineRenderer = function (_a) {
35
11
  var max = _a.max, values = _a.values, nonVisibleValues = _a.nonVisibleValues, totalVisibleValues = _a.totalVisibleValues, attributeType = _a.attributeType, parentUri = _a.parentUri, requestNextPageOfAttributeValues = _a.requestNextPageOfAttributeValues, titleClassName = _a.titleClassName, contentClassName = _a.contentClassName, _b = _a.showTitle, showTitle = _b === void 0 ? true : _b, showNonOv = _a.showNonOv, totalNonVisibleValues = _a.totalNonVisibleValues;
36
- var styles = styles_1.useMultiLineStyles();
37
- var _c = react_1.useState(max), visibleValuesCount = _c[0], setVisibleValuesCount = _c[1];
12
+ var styles = useMultiLineStyles();
13
+ var _c = useState(max), visibleValuesCount = _c[0], setVisibleValuesCount = _c[1];
38
14
  var hasPaging = max < totalVisibleValues;
39
15
  var showMore = hasPaging && visibleValuesCount < totalVisibleValues;
40
16
  var showLess = hasPaging && visibleValuesCount >= totalVisibleValues;
@@ -56,12 +32,12 @@ var MultiLineRenderer = function (_a) {
56
32
  };
57
33
  var shownValues = values.slice(0, visibleValuesCount);
58
34
  var hiddenValuesCount = totalVisibleValues - visibleValuesCount;
59
- return (react_1.default.createElement("div", { className: styles.wrapper },
60
- showTitle && (react_1.default.createElement("div", { className: styles.titleRow },
61
- react_1.default.createElement(Title_1.default, { label: label, className: classnames_1.default(styles.title, titleClassName), attributeType: attributeType }),
62
- react_1.default.createElement(OvIcon_1.default, { nonOvValues: nonVisibleValues, attributeType: attributeType, className: styles.ovIcon, nonOvTotal: totalNonVisibleValues }))),
63
- react_1.default.createElement("div", { className: styles.attributes }, shownValues.map(function (value) { return (react_1.default.createElement(Attribute_1.default, { key: value.uri, className: classnames_1.default(styles.attribute, contentClassName), attributeValue: value, attributeType: attributeType, showNonOv: showNonOv })); })),
64
- showMore && (react_1.default.createElement(ShowMore_1.default, { moreNumber: ramda_1.min(max, hiddenValuesCount), valueNumber: hiddenValuesCount, onClick: onShowMore })),
65
- showLess && react_1.default.createElement(ShowLess_1.default, { onClick: onShowLess })));
35
+ return (React.createElement("div", { className: styles.wrapper },
36
+ showTitle && (React.createElement("div", { className: styles.titleRow },
37
+ React.createElement(Title, { label: label, className: classnames(styles.title, titleClassName), attributeType: attributeType }),
38
+ React.createElement(OvIcon, { nonOvValues: nonVisibleValues, attributeType: attributeType, className: styles.ovIcon, nonOvTotal: totalNonVisibleValues }))),
39
+ React.createElement("div", { className: styles.attributes }, shownValues.map(function (value) { return (React.createElement(Attribute, { key: value.uri, className: classnames(styles.attribute, contentClassName), attributeValue: value, attributeType: attributeType, showNonOv: showNonOv })); })),
40
+ showMore && (React.createElement(ShowMore, { moreNumber: min(max, hiddenValuesCount), valueNumber: hiddenValuesCount, onClick: onShowMore })),
41
+ showLess && React.createElement(ShowLess, { onClick: onShowLess })));
66
42
  };
67
- exports.default = MultiLineRenderer;
43
+ export default MultiLineRenderer;
@@ -1,28 +1,23 @@
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
- var react_1 = __importDefault(require("react"));
7
- var mdm_sdk_1 = require("@reltio/mdm-sdk");
8
- var classnames_1 = __importDefault(require("classnames"));
9
- var constants_1 = require("../../../../constants");
10
- var CommentsContainer_1 = __importDefault(require("../../../CommentsContainer/CommentsContainer"));
11
- var Title_1 = __importDefault(require("../../../Title/Title"));
12
- var OvIcon_1 = __importDefault(require("../../OvIcon"));
13
- var Attribute_1 = __importDefault(require("../AttributesFactory/Attribute"));
14
- var styles_1 = require("./styles");
1
+ import React from 'react';
2
+ import { CollaborationObjectTypes, createRelatedObjectUris } from '@reltio/mdm-sdk';
3
+ import classnames from 'classnames';
4
+ import { COMMENTS_CONTAINER_VISIBILITY_AREA } from '../../../../constants';
5
+ import CommentsContainer from '../../../CommentsContainer/CommentsContainer';
6
+ import Title from '../../../Title/Title';
7
+ import OvIcon from '../../OvIcon';
8
+ import Attribute from '../AttributesFactory/Attribute';
9
+ import { useOneLineStyles } from './styles';
15
10
  var OneLineRenderer = function (_a) {
16
11
  var value = _a.value, nonVisibleValues = _a.nonVisibleValues, attributeType = _a.attributeType, titleClassName = _a.titleClassName, contentClassName = _a.contentClassName, _b = _a.showTitle, showTitle = _b === void 0 ? true : _b, showNonOv = _a.showNonOv, totalNonVisibleValues = _a.totalNonVisibleValues;
17
- var styles = styles_1.useOneLineStyles();
12
+ var styles = useOneLineStyles();
18
13
  var label = attributeType.label;
19
- return (react_1.default.createElement("div", { className: classnames_1.default(styles.collaborationWrapper, constants_1.COMMENTS_CONTAINER_VISIBILITY_AREA) },
20
- react_1.default.createElement("div", { className: classnames_1.default(styles.titleRow, styles.wrapper) },
21
- showTitle && (react_1.default.createElement(Title_1.default, { label: label, className: classnames_1.default(styles.title, titleClassName), attributeType: attributeType })),
22
- react_1.default.createElement(OvIcon_1.default, { nonOvValues: nonVisibleValues, attributeType: attributeType, className: styles.ovIcon, nonOvTotal: totalNonVisibleValues }),
23
- react_1.default.createElement(Attribute_1.default, { className: classnames_1.default(styles.attribute, contentClassName), attributeValue: value, attributeType: attributeType, showNonOv: showNonOv, inlined: true })),
24
- react_1.default.createElement(CommentsContainer_1.default, { uri: value.uri, relatedObjectUris: mdm_sdk_1.createRelatedObjectUris(mdm_sdk_1.CollaborationObjectTypes.ENTITY_ATTRIBUTE, {
14
+ return (React.createElement("div", { className: classnames(styles.collaborationWrapper, COMMENTS_CONTAINER_VISIBILITY_AREA) },
15
+ React.createElement("div", { className: classnames(styles.titleRow, styles.wrapper) },
16
+ showTitle && (React.createElement(Title, { label: label, className: classnames(styles.title, titleClassName), attributeType: attributeType })),
17
+ React.createElement(OvIcon, { nonOvValues: nonVisibleValues, attributeType: attributeType, className: styles.ovIcon, nonOvTotal: totalNonVisibleValues }),
18
+ React.createElement(Attribute, { className: classnames(styles.attribute, contentClassName), attributeValue: value, attributeType: attributeType, showNonOv: showNonOv, inlined: true })),
19
+ React.createElement(CommentsContainer, { uri: value.uri, relatedObjectUris: createRelatedObjectUris(CollaborationObjectTypes.ENTITY_ATTRIBUTE, {
25
20
  uri: value.uri
26
- }), objectType: mdm_sdk_1.CollaborationObjectTypes.ENTITY_ATTRIBUTE })));
21
+ }), objectType: CollaborationObjectTypes.ENTITY_ATTRIBUTE })));
27
22
  };
28
- exports.default = OneLineRenderer;
23
+ export default OneLineRenderer;
@@ -1,41 +1,36 @@
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
- var react_1 = __importDefault(require("react"));
7
- var classnames_1 = __importDefault(require("classnames"));
8
- var mdm_sdk_1 = require("@reltio/mdm-sdk");
9
- var LocalOffer_1 = __importDefault(require("@material-ui/icons/LocalOffer"));
10
- var styles_1 = require("./styles");
11
- var Title_1 = __importDefault(require("../../../Title/Title"));
12
- var Attribute_1 = __importDefault(require("../AttributesFactory/Attribute"));
13
- var Roles_1 = __importDefault(require("../SpecialAttributes/Roles"));
14
- var Tags_1 = __importDefault(require("../SpecialAttributes/Tags"));
1
+ import React from 'react';
2
+ import classnames from 'classnames';
3
+ import { EntityAttrTypes } from '@reltio/mdm-sdk';
4
+ import TagIcon from '@material-ui/icons/LocalOffer';
5
+ import { useOneLineStyles } from './styles';
6
+ import Title from '../../../Title/Title';
7
+ import Attribute from '../AttributesFactory/Attribute';
8
+ import Roles from '../SpecialAttributes/Roles';
9
+ import Tags from '../SpecialAttributes/Tags';
15
10
  var SpecialRenderer = function (_a) {
16
11
  var values = _a.values, attributeType = _a.attributeType, _b = _a.showTitle, showTitle = _b === void 0 ? true : _b;
17
- var styles = styles_1.useOneLineStyles();
12
+ var styles = useOneLineStyles();
18
13
  var label = attributeType.label;
19
14
  var renderIcon = function (className) {
20
- return attributeType.uri === mdm_sdk_1.EntityAttrTypes.tags.uri ? react_1.default.createElement(LocalOffer_1.default, { className: className }) : null;
15
+ return attributeType.uri === EntityAttrTypes.tags.uri ? React.createElement(TagIcon, { className: className }) : null;
21
16
  };
22
17
  var renderValue = function (className) {
23
18
  switch (attributeType.uri) {
24
- case mdm_sdk_1.EntityAttrTypes.tags.uri:
25
- return react_1.default.createElement(Tags_1.default, { className: className, values: values });
26
- case mdm_sdk_1.EntityAttrTypes.roles.uri: {
27
- return react_1.default.createElement(Roles_1.default, { className: className, values: values });
19
+ case EntityAttrTypes.tags.uri:
20
+ return React.createElement(Tags, { className: className, values: values });
21
+ case EntityAttrTypes.roles.uri: {
22
+ return React.createElement(Roles, { className: className, values: values });
28
23
  }
29
24
  default: {
30
25
  //startDate, endDate
31
- return (react_1.default.createElement(Attribute_1.default, { className: className, attributeValue: { value: values[0] }, attributeType: attributeType, inlined: true }));
26
+ return (React.createElement(Attribute, { className: className, attributeValue: { value: values[0] }, attributeType: attributeType, inlined: true }));
32
27
  }
33
28
  }
34
29
  };
35
- return (react_1.default.createElement("div", { className: classnames_1.default(styles.titleRow, styles.wrapper) },
36
- showTitle && (react_1.default.createElement(react_1.default.Fragment, null,
30
+ return (React.createElement("div", { className: classnames(styles.titleRow, styles.wrapper) },
31
+ showTitle && (React.createElement(React.Fragment, null,
37
32
  renderIcon(styles.titleIcon),
38
- react_1.default.createElement(Title_1.default, { label: label, className: styles.title, attributeType: attributeType }))),
33
+ React.createElement(Title, { label: label, className: styles.title, attributeType: attributeType }))),
39
34
  renderValue(styles.attribute)));
40
35
  };
41
- exports.default = SpecialRenderer;
36
+ export default SpecialRenderer;
@@ -1,39 +1,14 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
- var __importDefault = (this && this.__importDefault) || function (mod) {
22
- return (mod && mod.__esModule) ? mod : { "default": mod };
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.AttributesPager = void 0;
26
- var react_redux_1 = require("react-redux");
27
- var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
28
- var AttributesPager_1 = __importDefault(require("./AttributesPager"));
29
- exports.AttributesPager = AttributesPager_1.default;
1
+ import { connect } from 'react-redux';
2
+ import mdmModule, { profile } from '@reltio/mdm-module';
3
+ import AttributesPager from './AttributesPager';
30
4
  var mapStateToProps = function (state, _a) {
31
5
  var _b = _a.max, max = _b === void 0 ? undefined : _b;
32
6
  return ({
33
- max: max || mdm_module_1.default.selectors.getDefaultMaxValues(state)
7
+ max: max || mdmModule.selectors.getDefaultMaxValues(state)
34
8
  });
35
9
  };
36
10
  var mapDispatchToProps = {
37
- requestNextPageOfAttributeValues: mdm_module_1.profile.actions.requestNextPageOfAttributeValues
11
+ requestNextPageOfAttributeValues: profile.actions.requestNextPageOfAttributeValues
38
12
  };
39
- exports.default = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(AttributesPager_1.default);
13
+ export { AttributesPager };
14
+ export default connect(mapStateToProps, mapDispatchToProps)(AttributesPager);
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __assign = (this && this.__assign) || function () {
3
2
  __assign = Object.assign || function(t) {
4
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -10,9 +9,7 @@ var __assign = (this && this.__assign) || function () {
10
9
  };
11
10
  return __assign.apply(this, arguments);
12
11
  };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.useMultiLineStyles = exports.useOneLineStyles = exports.useStyles = void 0;
15
- var styles_1 = require("@material-ui/core/styles");
12
+ import { makeStyles } from '@material-ui/core/styles';
16
13
  var fontSize = '13px';
17
14
  var lineHeight = '15px';
18
15
  var commonStyles = {
@@ -32,7 +29,7 @@ var commonStyles = {
32
29
  textIndent: 0
33
30
  }
34
31
  };
35
- exports.useStyles = styles_1.makeStyles({
32
+ export var useStyles = makeStyles({
36
33
  paddingWrapper: {
37
34
  paddingTop: '3px',
38
35
  paddingBottom: '5px',
@@ -47,7 +44,7 @@ exports.useStyles = styles_1.makeStyles({
47
44
  }
48
45
  }
49
46
  });
50
- exports.useOneLineStyles = styles_1.makeStyles(__assign({ wrapper: {
47
+ export var useOneLineStyles = makeStyles(__assign({ wrapper: {
51
48
  fontSize: fontSize,
52
49
  lineHeight: lineHeight,
53
50
  flex: 1
@@ -71,7 +68,7 @@ exports.useOneLineStyles = styles_1.makeStyles(__assign({ wrapper: {
71
68
  marginLeft: '1px',
72
69
  color: 'rgba(0, 0, 0, 0.38)'
73
70
  } }, commonStyles));
74
- exports.useMultiLineStyles = styles_1.makeStyles(__assign(__assign({ wrapper: {
71
+ export var useMultiLineStyles = makeStyles(__assign(__assign({ wrapper: {
75
72
  display: 'flex',
76
73
  flexDirection: 'column',
77
74
  alignItems: 'flex-start',
@@ -1,60 +1,36 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
- var __importDefault = (this && this.__importDefault) || function (mod) {
22
- return (mod && mod.__esModule) ? mod : { "default": mod };
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- var react_1 = __importStar(require("react"));
26
- var react_redux_1 = require("react-redux");
27
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
28
- var mdm_sdk_1 = require("@reltio/mdm-sdk");
29
- var classnames_1 = __importDefault(require("classnames"));
30
- var ui_i18n_1 = __importDefault(require("ui-i18n"));
31
- var Box_1 = __importDefault(require("@material-ui/core/Box"));
32
- var Typography_1 = __importDefault(require("@material-ui/core/Typography"));
33
- var contexts_1 = require("../../../../contexts");
34
- var BasicView_1 = __importDefault(require("../../../BasicView/BasicView"));
35
- var FacetViewHeader_1 = __importDefault(require("../../../FacetViewHeader/FacetViewHeader"));
36
- var AttributesList_1 = __importDefault(require("../AttributesList"));
37
- var attributesView_1 = require("../../helpers/attributesView");
38
- var styles_1 = require("./styles");
1
+ import React, { useMemo } from 'react';
2
+ import { useSelector } from 'react-redux';
3
+ import mdm from '@reltio/mdm-module';
4
+ import { getAttributesListForReadMode, isEmptyValue } from '@reltio/mdm-sdk';
5
+ import classnames from 'classnames';
6
+ import i18n from 'ui-i18n';
7
+ import Box from '@material-ui/core/Box';
8
+ import Typography from '@material-ui/core/Typography';
9
+ import { PivotingAttributeContext } from '../../../../contexts';
10
+ import BasicView from '../../../BasicView/BasicView';
11
+ import FacetViewHeader from '../../../FacetViewHeader/FacetViewHeader';
12
+ import AttributesList from '../AttributesList';
13
+ import { getFilteredAttrTypes } from '../../helpers/attributesView';
14
+ import { useStyles } from './styles';
39
15
  var AttributesView = function (_a) {
40
16
  var _b;
41
17
  var className = _a.className, _c = _a.entity, entity = _c === void 0 ? {} : _c, metadata = _a.metadata, _d = _a.caption, caption = _d === void 0 ? '' : _d, _e = _a.excludeUris, excludeUris = _e === void 0 ? [] : _e, _f = _a.includeUris, includeUris = _f === void 0 ? [] : _f, _g = _a.attributesCount, attributesCount = _g === void 0 ? 16 : _g;
42
- var styles = styles_1.useStyles();
43
- var pivotingAttributes = react_redux_1.useSelector(mdm_module_1.default.selectors.getPivotingAttributes);
44
- var filteredAttrTypes = react_1.useMemo(function () { return attributesView_1.getFilteredAttrTypes(metadata, entity.type, includeUris, excludeUris); }, [
18
+ var styles = useStyles();
19
+ var pivotingAttributes = useSelector(mdm.selectors.getPivotingAttributes);
20
+ var filteredAttrTypes = useMemo(function () { return getFilteredAttrTypes(metadata, entity.type, includeUris, excludeUris); }, [
45
21
  excludeUris,
46
22
  includeUris,
47
23
  metadata,
48
24
  entity.type
49
25
  ]);
50
- var attributesList = mdm_sdk_1.getAttributesListForReadMode(filteredAttrTypes, entity);
26
+ var attributesList = getAttributesListForReadMode(filteredAttrTypes, entity);
51
27
  var isShowAttributeList = attributesList.filter(function (_a) {
52
28
  var values = _a.values;
53
- return !mdm_sdk_1.isEmptyValue(values);
29
+ return !isEmptyValue(values);
54
30
  }).length > 0;
55
- return isShowAttributeList || !mdm_sdk_1.isEmptyValue(caption) ? (react_1.default.createElement(contexts_1.PivotingAttributeContext.Provider, { value: pivotingAttributes },
56
- react_1.default.createElement(BasicView_1.default, { className: className },
57
- caption && react_1.default.createElement(FacetViewHeader_1.default, { className: styles.header, title: caption }),
58
- react_1.default.createElement(Box_1.default, { className: classnames_1.default(styles.attributesContainer, (_b = {}, _b[styles.noCaption] = !caption, _b)) }, isShowAttributeList ? (react_1.default.createElement(AttributesList_1.default, { entity: entity, attrTypes: filteredAttrTypes, parentUri: entity.uri, drawLines: false, max: attributesCount })) : (react_1.default.createElement(Typography_1.default, { className: styles.noData }, ui_i18n_1.default.text('No data found'))))))) : null;
31
+ return isShowAttributeList || !isEmptyValue(caption) ? (React.createElement(PivotingAttributeContext.Provider, { value: pivotingAttributes },
32
+ React.createElement(BasicView, { className: className },
33
+ caption && React.createElement(FacetViewHeader, { className: styles.header, title: caption }),
34
+ React.createElement(Box, { className: classnames(styles.attributesContainer, (_b = {}, _b[styles.noCaption] = !caption, _b)) }, isShowAttributeList ? (React.createElement(AttributesList, { entity: entity, attrTypes: filteredAttrTypes, parentUri: entity.uri, drawLines: false, max: attributesCount })) : (React.createElement(Typography, { className: styles.noData }, i18n.text('No data found'))))))) : null;
59
35
  };
60
- exports.default = AttributesView;
36
+ export default AttributesView;
@@ -1,14 +1,8 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AttributesView = void 0;
7
- var react_redux_1 = require("react-redux");
8
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
9
- var AttributesView_1 = __importDefault(require("./AttributesView"));
10
- exports.AttributesView = AttributesView_1.default;
1
+ import { connect } from 'react-redux';
2
+ import mdmModule from '@reltio/mdm-module';
3
+ import AttributesView from './AttributesView';
11
4
  var mapStateToProps = function (state) { return ({
12
- metadata: mdm_module_1.default.selectors.getMetadata(state)
5
+ metadata: mdmModule.selectors.getMetadata(state)
13
6
  }); };
14
- exports.default = react_redux_1.connect(mapStateToProps)(AttributesView_1.default);
7
+ export { AttributesView };
8
+ export default connect(mapStateToProps)(AttributesView);
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useStyles = void 0;
4
- var styles_1 = require("@material-ui/core/styles");
5
- exports.useStyles = styles_1.makeStyles({
1
+ import { makeStyles } from '@material-ui/core/styles';
2
+ export var useStyles = makeStyles({
6
3
  attributesContainer: {
7
4
  padding: '0 16px 16px 16px'
8
5
  },