@reltio/components 1.4.876 → 1.4.877

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 (845) 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.js +2 -5
  65. package/components/CollaborationItem/CommentContent/CommentContent.js +13 -39
  66. package/components/CollaborationItem/CommentContent/styles.js +2 -5
  67. package/components/CollaborationItem/CommentTarget/CommentTarget.js +49 -75
  68. package/components/CollaborationItem/CommentTarget/styles.js +2 -5
  69. package/components/CollaborationItem/RepliedComment/RepliedComment.js +20 -27
  70. package/components/CollaborationItem/RepliedComment/styles.js +2 -5
  71. package/components/CollaborationItem/SendMessageArea/SendMessageArea.js +39 -65
  72. package/components/CollaborationItem/SendMessageArea/styles.js +2 -5
  73. package/components/CollaborationItem/TextFieldWithMentions/TextFieldWithMentions.js +12 -38
  74. package/components/CollaborationItem/TextFieldWithMentions/styles.js +2 -5
  75. package/components/CollaborationItem/styles.js +2 -5
  76. package/components/CollaborationItem/utils/index.js +5 -15
  77. package/components/CollaborationPopup/CollaborationPopup.js +24 -50
  78. package/components/CollaborationPopup/styles.js +2 -5
  79. package/components/CollapseButton/CollapseButton.js +10 -15
  80. package/components/CollapseButton/styles.js +2 -5
  81. package/components/ColorBar/ColorBar.js +9 -33
  82. package/components/ColorBar/styles.js +2 -5
  83. package/components/CommentsContainer/CommentsContainer.js +18 -42
  84. package/components/CommentsContainer/buttons/AddCommentButton.js +11 -16
  85. package/components/CommentsContainer/buttons/CommentButton.js +12 -17
  86. package/components/CommentsContainer/buttons/styles.js +2 -5
  87. package/components/CommentsContainer/styles.js +4 -7
  88. package/components/ConfigureColumnsPopup/ConfigureColumnsPopup.js +46 -72
  89. package/components/ConfigureColumnsPopup/styles.js +3 -5
  90. package/components/ConfirmDeleteDialog/ConfirmDeleteDialog.js +14 -19
  91. package/components/ConfirmationDialog/ConfirmationDialog.js +21 -26
  92. package/components/ConfirmationDialog/styles.js +3 -6
  93. package/components/ConnectionRelationTypeSelector/ConnectionRelationTypeSelector.js +20 -44
  94. package/components/DataTypeValue/DataTypeValue.js +18 -23
  95. package/components/DateIntervalSelector/DateIntervalSelector.js +22 -27
  96. package/components/DateIntervalSelector/styles.js +2 -5
  97. package/components/DateRangePicker/DateRangePicker.js +38 -62
  98. package/components/DateRangePicker/styles.js +2 -5
  99. package/components/Drawer/Drawer.js +8 -32
  100. package/components/DropDownMenuButton/DropDownMenuButton.js +19 -43
  101. package/components/DropDownMenuButton/MenuItemRenderer.js +13 -37
  102. package/components/DropDownMenuButton/styles.js +4 -7
  103. package/components/DropDownSelector/DropDownSelector.js +39 -63
  104. package/components/DropDownSelector/components/Menu.js +13 -18
  105. package/components/DropDownSelector/components/SingleValue.js +9 -15
  106. package/components/DropDownSelector/components/styles.js +3 -6
  107. package/components/DropDownSelector/styles.js +5 -8
  108. package/components/EmptySearchResult/NoData.js +6 -13
  109. package/components/EmptySearchResult/NoMessageComponent.js +9 -14
  110. package/components/EmptySearchResult/NoResults.js +5 -12
  111. package/components/EmptySearchResult/index.js +2 -7
  112. package/components/EmptySearchResult/styles.js +2 -5
  113. package/components/EmptyState/EmptyState.js +23 -29
  114. package/components/EmptyState/styles.js +2 -5
  115. package/components/EntityAvatar/EntityAvatar.js +15 -20
  116. package/components/EntityAvatar/no-photo.svg.js +1 -4
  117. package/components/EntityTypeBadge/EntityTypeBadge.js +15 -20
  118. package/components/EntityTypeBadge/styles.js +3 -5
  119. package/components/EntityTypeIcon/EntityTypeIcon.js +7 -12
  120. package/components/EntityTypesSelector/EntityTypesSelector.js +54 -78
  121. package/components/EntityTypesSelector/ListLabel/ListLabel.js +20 -44
  122. package/components/EntityTypesSelector/ListLabel/helpers.js +3 -8
  123. package/components/EntityTypesSelector/ListLabel/styles.js +2 -5
  124. package/components/EntityTypesSelector/SelectEntityTypesList.js +13 -37
  125. package/components/EntityTypesSelector/styles.js +2 -5
  126. package/components/EntityUriLink/EntityUriLink.js +14 -35
  127. package/components/ErrorBoundary/ErrorBoundary.js +3 -8
  128. package/components/ErrorPopup/ErrorPopup.js +14 -19
  129. package/components/ErrorPopup/styles.js +2 -5
  130. package/components/ErrorWrapper/ErrorMessage.js +7 -12
  131. package/components/ErrorWrapper/ErrorWrapper.js +11 -35
  132. package/components/ErrorWrapper/styles.js +2 -5
  133. package/components/ExpandableSearchInput/ExpandableSearchInput.js +19 -45
  134. package/components/ExpandableSearchInput/styles.js +2 -5
  135. package/components/ExpandedValueTooltip/ExpandedValueTooltip.js +22 -47
  136. package/components/FacetViewHeader/FacetViewHeader.js +7 -12
  137. package/components/FacetViewHeader/styles.js +2 -5
  138. package/components/FlipCard/FlipCard.js +11 -35
  139. package/components/FlipCard/styles.js +2 -5
  140. package/components/FlipCard/types/index.js +1 -2
  141. package/components/HideOnShrink/HideOnShrink.js +9 -14
  142. package/components/HierarchicalAttributeTooltip/HierarchicalAttributeTooltip.js +13 -18
  143. package/components/HierarchicalAttributeTooltip/styles.js +4 -7
  144. package/components/Highlighter/Highlighter.js +6 -11
  145. package/components/Highlighter/styles.js +2 -5
  146. package/components/Image/CheckedIcon/CheckedIcon.js +9 -16
  147. package/components/Image/CheckedIcon/styles.js +2 -5
  148. package/components/Image/Image.js +18 -43
  149. package/components/Image/ImageActionsOverlay/ImageActionsOverlay.js +30 -54
  150. package/components/Image/ImageActionsOverlay/styles.js +2 -5
  151. package/components/Image/styles.js +2 -5
  152. package/components/ImageAttributesGallery/GalleryView/GalleryView.js +13 -39
  153. package/components/ImageAttributesGallery/GalleryView/styles.js +2 -5
  154. package/components/ImageAttributesGallery/HeaderLeft/HeaderLeft.js +7 -14
  155. package/components/ImageAttributesGallery/HeaderLeft/styles.js +2 -5
  156. package/components/ImageAttributesGallery/HeaderRight/HeaderRight.js +17 -24
  157. package/components/ImageAttributesGallery/HeaderRight/styles.js +2 -5
  158. package/components/ImageAttributesGallery/ImageAttributesGallery.js +32 -56
  159. package/components/ImageDetailsView/ImageDetailsView.js +13 -39
  160. package/components/ImageDetailsView/ImageDetailsViewCarousel/ImageDetailsViewCarousel.js +18 -44
  161. package/components/ImageDetailsView/ImageDetailsViewCarousel/Thumbnails/Thumbnails.js +23 -49
  162. package/components/ImageDetailsView/ImageDetailsViewCarousel/Thumbnails/styles.js +2 -5
  163. package/components/ImageDetailsView/ImageDetailsViewCarousel/styles.js +2 -5
  164. package/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.js +27 -53
  165. package/components/ImageDetailsView/ImageDetailsViewSidebar/styles.js +2 -5
  166. package/components/ImageDetailsView/MetaInfo/MetaInfo.js +20 -27
  167. package/components/ImageDetailsView/MetaInfoForm/MetaInfoForm.js +20 -27
  168. package/components/ImageDetailsView/MetaInfoForm/styles.js +2 -5
  169. package/components/ImageDetailsView/MetaInfoHeader/MetaInfoHeader.js +17 -43
  170. package/components/ImageDetailsView/MetaInfoHeader/styles.js +2 -5
  171. package/components/ImageDetailsView/MetaInfoList/MetaInfoItem/MetaInfoItem.js +8 -15
  172. package/components/ImageDetailsView/MetaInfoList/MetaInfoItem/styles.js +2 -5
  173. package/components/ImageDetailsView/MetaInfoList/MetaInfoList.js +16 -23
  174. package/components/ImageDetailsView/MetaInfoList/styles.js +2 -5
  175. package/components/ImageDetailsView/constants/index.js +13 -19
  176. package/components/ImageDetailsView/helpers/index.js +24 -36
  177. package/components/ImageDetailsView/hooks/useEditMetaInfo.js +21 -25
  178. package/components/ImageDetailsView/styles.js +2 -5
  179. package/components/ImageDetailsView/theme/index.js +4 -7
  180. package/components/ImageDetailsView/types/index.js +1 -2
  181. package/components/ImageGalleryDialog/ImageGalleryDialog.js +31 -57
  182. package/components/ImageGalleryDialog/styles.js +2 -5
  183. package/components/ImportButton/ImportButton.js +17 -23
  184. package/components/ImportButton/styles.js +2 -5
  185. package/components/LightArrowTooltip/LightArrowTooltip.js +6 -11
  186. package/components/LightArrowTooltip/styles.js +2 -5
  187. package/components/LinearLoadIndicator/LinearLoadIndicator.js +8 -13
  188. package/components/LinearLoadIndicator/styles.js +2 -5
  189. package/components/Link/Link.js +5 -10
  190. package/components/Link/styles.js +2 -5
  191. package/components/LoadingSpinner/LoadingSpinner.js +6 -13
  192. package/components/LoadingSpinner/SpinnerSmall.gif.js +1 -4
  193. package/components/Marginator/Marginator.js +3 -8
  194. package/components/MatchRulesBlock/MatchRulesBadge/MatchRulesBadge.js +10 -34
  195. package/components/MatchRulesBlock/MatchRulesBadge/styles.js +3 -5
  196. package/components/MatchRulesBlock/MatchRulesBlock.js +13 -18
  197. package/components/MatchRulesBlock/MatchRulesTitle.js +4 -9
  198. package/components/MatchRulesBlock/MatchRulesTooltip/MatchRulesTooltip.js +9 -14
  199. package/components/MatchRulesBlock/MatchRulesTooltip/styles.js +3 -5
  200. package/components/MatchRulesBlock/SimpleMatchRules/SimpleMatchRules.js +10 -15
  201. package/components/MatchRulesBlock/SimpleMatchRules/styles.js +3 -5
  202. package/components/MatchRulesBlock/SimpleMatchRulesBlock/SimpleMatchRulesBlock.js +18 -43
  203. package/components/MatchRulesBlock/SimpleMatchRulesBlock/styles.js +3 -5
  204. package/components/MatchRulesBlock/SimpleMatchRulesBuilder/SimpleMatchRulesBuilder.js +11 -16
  205. package/components/MatchRulesBlock/TransitiveMatchBlock/TransitiveMatchBlock.js +15 -40
  206. package/components/MatchRulesBlock/TransitiveMatchBlock/styles.js +3 -5
  207. package/components/MatchRulesBlock/TransitiveMatchRules/TransitiveMatchRule.js +14 -38
  208. package/components/MatchRulesBlock/TransitiveMatchRules/styles.js +3 -5
  209. package/components/MatchRulesBlock/TransitiveMatchRulesTooltip/TransitiveMatchRulesTooltip.js +9 -14
  210. package/components/MatchRulesBlock/TransitiveMatchRulesTooltip/styles.js +3 -5
  211. package/components/MatchRulesBlock/types/index.js +1 -2
  212. package/components/ModeSwitcher/ModeSwitcher.js +13 -18
  213. package/components/ModeSwitcher/styles.js +5 -7
  214. package/components/ModeSwitcherSelect/ModeSwitcherSelect.js +25 -32
  215. package/components/ModeSwitcherSelect/index.js +1 -5
  216. package/components/ModeSwitcherSelect/styles.js +2 -5
  217. package/components/MultipleInput/MultipleInput.js +33 -57
  218. package/components/MultipleInput/styles.js +2 -5
  219. package/components/MultipliableSelect/MultipliableSelect.js +24 -29
  220. package/components/MultipliableSelect/styles.js +2 -5
  221. package/components/Popper/Popper.js +25 -49
  222. package/components/Popper/styles.js +2 -5
  223. package/components/Popper/utils.js +4 -8
  224. package/components/PopupWithArrow/PopupWithArrow.js +16 -23
  225. package/components/PopupWithArrow/styles.js +2 -5
  226. package/components/PotentialMatchReviewCard/PotentialMatchReviewCard.js +31 -55
  227. package/components/PotentialMatchReviewCard/styles.js +2 -5
  228. package/components/ProfileBand/ProfileBand.js +47 -71
  229. package/components/ProfileBand/styles.js +3 -5
  230. package/components/ProfileBandNavigation/ProfileBandNavigation.js +8 -14
  231. package/components/ProfileBandNavigation/ProfileBandNavigationWidget.js +18 -25
  232. package/components/ProfileBandNavigation/hooks/useSearchNavigation.js +42 -64
  233. package/components/ProfileBandNavigation/hooks/useSearchNavigationVisibility.js +8 -14
  234. package/components/ProfileBandNavigation/index.js +1 -5
  235. package/components/ProfileBandNavigation/searchProviders/GraphSearchProvider.js +6 -9
  236. package/components/ProfileBandNavigation/searchProviders/MainSearchProvider.js +6 -9
  237. package/components/ProfileBandNavigation/searchProviders/SearchProvider.js +1 -2
  238. package/components/ProfileBandNavigation/searchProviders/SearchProviderFactory.js +5 -9
  239. package/components/ProfileBandNavigation/styles.js +2 -5
  240. package/components/ProfileBandNavigation/types/index.js +1 -2
  241. package/components/ProfileCard/ProfileCard.js +35 -59
  242. package/components/ProfileCard/styles.js +3 -5
  243. package/components/QueryBuilderRow/QueryBuilderRow.js +39 -63
  244. package/components/QueryBuilderRow/components/ReadOnlyFilter.js +11 -16
  245. package/components/QueryBuilderRow/components/ReadOnlyLogicOperator.js +11 -16
  246. package/components/QueryBuilderRow/components/styles.js +3 -5
  247. package/components/QueryBuilderRow/styles.js +3 -5
  248. package/components/QueryBuilderRowsGroup/QueryBuilderRowsGroup.js +29 -53
  249. package/components/ReactSelect/AsyncSelect.js +3 -8
  250. package/components/ReactSelect/CreatableSelect.js +3 -8
  251. package/components/ReactSelect/MultiSelect/MultiSelect.js +98 -122
  252. package/components/ReactSelect/MultiSelect/components/Option.js +30 -36
  253. package/components/ReactSelect/MultiSelect/components/index.js +3 -8
  254. package/components/ReactSelect/MultiSelect/index.js +2 -7
  255. package/components/ReactSelect/Select.js +3 -8
  256. package/components/ReactSelect/commonComponents/ClearIndicator.js +13 -19
  257. package/components/ReactSelect/commonComponents/Control.js +22 -28
  258. package/components/ReactSelect/commonComponents/DropdownIndicator.js +13 -19
  259. package/components/ReactSelect/commonComponents/GroupHeading.js +10 -16
  260. package/components/ReactSelect/commonComponents/Menu.js +14 -20
  261. package/components/ReactSelect/commonComponents/MultiValue.js +14 -20
  262. package/components/ReactSelect/commonComponents/NoOptionsMessage.js +7 -13
  263. package/components/ReactSelect/commonComponents/Option.js +29 -35
  264. package/components/ReactSelect/commonComponents/Placeholder.js +8 -14
  265. package/components/ReactSelect/commonComponents/SingleValue.js +8 -14
  266. package/components/ReactSelect/commonComponents/ValueContainer.js +8 -14
  267. package/components/ReactSelect/commonComponents/index.js +23 -28
  268. package/components/ReactSelect/optionFilters.js +5 -7
  269. package/components/ReactSelect/styles.js +2 -4
  270. package/components/ReactSelect/withMuiSkin.js +51 -57
  271. package/components/ReactSortableTree/index.js +8 -30
  272. package/components/ReactSortableTree/node-renderer-default.js +43 -48
  273. package/components/ReactSortableTree/nodeRendererDefaultStyle.js +2 -5
  274. package/components/ReactSortableTree/placeholder-renderer-default.js +9 -14
  275. package/components/ReactSortableTree/placeholderRendererDefaultStyle.js +2 -5
  276. package/components/ReactSortableTree/react-sortable-tree.js +115 -137
  277. package/components/ReactSortableTree/reactSortableTreeStyles.js +1 -5
  278. package/components/ReactSortableTree/tree-node.js +29 -53
  279. package/components/ReactSortableTree/tree-placeholder.js +13 -37
  280. package/components/ReactSortableTree/treeNodeStyle.js +2 -5
  281. package/components/ReactSortableTree/utils/classnames.js +1 -4
  282. package/components/ReactSortableTree/utils/default-handlers.js +3 -8
  283. package/components/ReactSortableTree/utils/dnd-manager.js +13 -15
  284. package/components/ReactSortableTree/utils/generic-utils.js +1 -5
  285. package/components/ReactSortableTree/utils/memoized-tree-data-utils.js +4 -7
  286. package/components/ReactSortableTree/utils/tree-data-utils.js +20 -40
  287. package/components/ReltioGridLayout/ReltioGridLayout.js +40 -64
  288. package/components/ReltioGridLayout/helpers.js +11 -20
  289. package/components/ReltioGridLayout/icons/ResizeIcon.svg.js +1 -4
  290. package/components/ReltioGridLayout/styles.js +5 -8
  291. package/components/ReltioMap/EntityMarker/EntityMarker.js +28 -52
  292. package/components/ReltioMap/EntityMarker/icons/marker-hover.inline.svg.js +1 -4
  293. package/components/ReltioMap/EntityMarker/icons/marker.inline.svg.js +1 -4
  294. package/components/ReltioMap/EntityMarker/styles.js +2 -5
  295. package/components/ReltioMap/MapControls/MapControlContainer/MapControlContrainer.js +7 -11
  296. package/components/ReltioMap/MapControls/TopCenterMapControls/TopCenterMapControls.js +9 -16
  297. package/components/ReltioMap/MapControls/TopCenterMapControls/styles.js +2 -5
  298. package/components/ReltioMap/MapControls/TopRightMapControls/TopRightMapControls.js +20 -27
  299. package/components/ReltioMap/MapControls/TopRightMapControls/styles.js +2 -5
  300. package/components/ReltioMap/constants.js +3 -6
  301. package/components/ReltioMap/helpers/index.js +10 -17
  302. package/components/ReltioMap/index.js +48 -74
  303. package/components/ReltioMap/styles.js +2 -5
  304. package/components/ReltioMap/types.js +1 -2
  305. package/components/RequiredMark/RequiredMark.js +5 -10
  306. package/components/RequiredMark/styles.js +2 -5
  307. package/components/ResizablePanes/ResizablePanes.js +24 -48
  308. package/components/ResizablePanes/styles.js +3 -6
  309. package/components/Score/DQLabel.js +7 -12
  310. package/components/Score/Score.js +16 -21
  311. package/components/Score/ScoreLabel.js +14 -19
  312. package/components/Score/styles.js +3 -6
  313. package/components/ScrollableTabs/ScrollableTabs.js +12 -17
  314. package/components/ScrollableTabs/styles.js +2 -5
  315. package/components/SearchInput/SearchInput.js +19 -43
  316. package/components/SearchInput/WhiteSearchInput.js +6 -11
  317. package/components/SearchInput/styles.js +2 -5
  318. package/components/SelectionPopup/SelectionPopup.js +26 -31
  319. package/components/SelectionPopup/SelectionPopupPopper/SelectionPopupPopper.js +26 -31
  320. package/components/SelectionPopup/helpers.js +14 -17
  321. package/components/SelectionPopup/styles.js +3 -5
  322. package/components/SelectorWithOnlyOptionAutoSelect/SelectorWithOnlyOptionAutoSelect.js +21 -45
  323. package/components/SelectorWithOnlyOptionAutoSelect/styles.js +2 -5
  324. package/components/SideIconPanel/SideButtonsPanel.js +8 -15
  325. package/components/SideIconPanel/styles.js +3 -6
  326. package/components/SidePanel/SidePanel.js +6 -13
  327. package/components/SidePanel/SidePanelContentHeader/SidePanelContentHeader.js +14 -21
  328. package/components/SidePanel/SidePanelContentHeader/styles.js +2 -5
  329. package/components/SidePanel/styles.js +2 -5
  330. package/components/SimpleDropDownSelector/DropDownPlaceholder.js +10 -15
  331. package/components/SimpleDropDownSelector/DropDownValue.js +11 -16
  332. package/components/SimpleDropDownSelector/SimpleDropDownSelector.js +8 -32
  333. package/components/SimpleDropDownSelector/styles.js +3 -5
  334. package/components/SimpleInput/SimpleInput.js +16 -40
  335. package/components/SmallIconButton/SmallIconButton.js +6 -30
  336. package/components/SmallIconButton/index.js +4 -11
  337. package/components/SourceIcon/SourceIcon.js +9 -14
  338. package/components/Spacer/Spacer.js +3 -8
  339. package/components/Title/Title.js +17 -22
  340. package/components/Title/styles.js +2 -5
  341. package/components/UploadFileButton/UploadFileButton.js +45 -69
  342. package/components/UploadFileButton/styles.js +2 -5
  343. package/components/UploadImageDialog/DividerWithText/DividerWithText.js +11 -18
  344. package/components/UploadImageDialog/DividerWithText/styles.js +2 -5
  345. package/components/UploadImageDialog/ErrorSnackbar/ErrorSnackbar.js +9 -16
  346. package/components/UploadImageDialog/ErrorSnackbar/styles.js +2 -5
  347. package/components/UploadImageDialog/ImageByUrlField/ImageByUrlField.js +18 -44
  348. package/components/UploadImageDialog/ImageByUrlField/styles.js +2 -5
  349. package/components/UploadImageDialog/SelectImageButton/SelectImageButton.js +9 -16
  350. package/components/UploadImageDialog/TargetBox/TargetBox.js +20 -27
  351. package/components/UploadImageDialog/TargetBox/styles.js +2 -5
  352. package/components/UploadImageDialog/UploadImageDialog.js +38 -64
  353. package/components/UploadImageDialog/constants/index.js +2 -5
  354. package/components/UploadImageDialog/styles.js +2 -5
  355. package/components/UserSelector/UserSelector.js +24 -48
  356. package/components/UserSelector/styles.js +3 -6
  357. package/components/ValueChip/ValueChip.js +16 -21
  358. package/components/ValueChip/styles.js +3 -6
  359. package/components/VerticalDivider/VerticalDivider.js +6 -11
  360. package/components/VerticalHeadingsTable/VerticalHeadingsTable.js +19 -43
  361. package/components/ViewMoreToggle/ViewMoreToggle.js +15 -20
  362. package/components/ViewMoreToggle/styles.js +2 -5
  363. package/components/VirtualGroupedList/VirtualGroupedList.js +41 -66
  364. package/components/VirtualGroupedList/helpers.js +13 -17
  365. package/components/VirtualGroupedList/styles.js +2 -5
  366. package/components/activityLog/ActivityExportButton/ActivityExportButton.js +35 -59
  367. package/components/activityLog/ActivityExportButton/styles.js +2 -5
  368. package/components/activityLog/ActivityFilterEditor/ActivityFilterEditor.js +35 -59
  369. package/components/activityLog/ActivityFilterEditor/ActivitySelector.js +18 -23
  370. package/components/activityLog/ActivityFilterEditor/DateRangeSelector.js +41 -65
  371. package/components/activityLog/ActivityFilterEditor/SourceSelector.js +19 -24
  372. package/components/activityLog/ActivityFilterEditor/styles.js +3 -6
  373. package/components/activityLog/ActivityFilterEditor/utils/getSelectorActivityTypes.js +24 -28
  374. package/components/activityLog/ActivityLog/ActivityLog.js +29 -53
  375. package/components/activityLog/ActivityLog/helpers.js +9 -16
  376. package/components/activityLog/ActivityLog/items/ActivityItem/ActivityItem.js +18 -23
  377. package/components/activityLog/ActivityLog/items/ActivityItem/styles.js +2 -5
  378. package/components/activityLog/ActivityLog/items/GroupItem/GroupItem.js +14 -19
  379. package/components/activityLog/ActivityLog/items/GroupItem/styles.js +2 -5
  380. package/components/activityLog/ActivityLog/styles.js +2 -5
  381. package/components/activityLog/ActivityLogFilter/ActivityLogFilter.js +15 -39
  382. package/components/activityLog/ActivityLogFilter/ActivityLogFilterHeader.js +17 -22
  383. package/components/activityLog/ActivityLogFilter/helpers.js +19 -26
  384. package/components/activityLog/ActivityLogFilter/styles.js +2 -5
  385. package/components/activityLog/activities/ActivitiesFactory.js +98 -103
  386. package/components/activityLog/activities/ActivityTitle/ActivityTitle.js +7 -12
  387. package/components/activityLog/activities/ActivityTitle/styles.js +2 -5
  388. package/components/activityLog/activities/CommentActivity.js +4 -9
  389. package/components/activityLog/activities/EntityObject/EntityObject.js +10 -15
  390. package/components/activityLog/activities/EntityObject/styles.js +2 -5
  391. package/components/activityLog/activities/GroupActivity.js +12 -17
  392. package/components/activityLog/activities/MergeActivity.js +9 -14
  393. package/components/activityLog/activities/MoreItemsLink/MoreItemsLink.js +7 -14
  394. package/components/activityLog/activities/PotentialMatchActivity.js +8 -13
  395. package/components/activityLog/activities/ProfileActivity.js +9 -14
  396. package/components/activityLog/activities/RelationActivity.js +9 -14
  397. package/components/activityLog/activities/RelationObject/RelationObject.js +11 -16
  398. package/components/activityLog/activities/RelationObject/styles.js +2 -5
  399. package/components/activityLog/activities/SearchActivity.js +18 -42
  400. package/components/activityLog/activities/SimpleActivity.js +13 -18
  401. package/components/activityLog/activities/fields/DeltaField.js +25 -30
  402. package/components/activityLog/activities/fields/PotentialMatchField.js +26 -31
  403. package/components/activityLog/activities/fields/commonStyles.js +2 -5
  404. package/components/activityLog/activities/fields/styles.js +2 -5
  405. package/components/activityLog/activities/records/CollapsibleActivityRecords.js +9 -16
  406. package/components/activityLog/activities/records/EntityRecord.js +24 -29
  407. package/components/activityLog/activities/records/PotentialMatchRecord.js +10 -15
  408. package/components/activityLog/activities/records/RecordUpdates.js +12 -17
  409. package/components/activityLog/activities/records/RelationRecord.js +13 -18
  410. package/components/activityLog/activities/records/styles.js +2 -5
  411. package/components/activityLog/activities/styles.js +2 -5
  412. package/components/activityLog/contexts/CollapsibleItemsContext/index.js +8 -32
  413. package/components/activityLog/hooks/useActivitiesLoader.js +8 -12
  414. package/components/activityLog/hooks/useProfileActivitiesLoader.js +8 -12
  415. package/components/activityLog/hooks/useReadableSearchState.js +18 -41
  416. package/components/activityLog/index.js +5 -25
  417. package/components/activityLog/types/ActivitiesFilter.js +1 -2
  418. package/components/activityLog/types/ActivityData.js +1 -2
  419. package/components/activityLog/types/ActivityDelta.js +1 -2
  420. package/components/activityLog/types/ActivityItem.js +1 -2
  421. package/components/activityLog/types/ActivityTypes.js +2 -5
  422. package/components/activityLog/types/DeltaTypes.js +2 -5
  423. package/components/activityLog/types/DeltaValue.js +1 -2
  424. package/components/activityLog/types/index.js +2 -7
  425. package/components/activityLog/utils/activities.js +43 -54
  426. package/components/activityLog/utils/filters.js +23 -30
  427. package/components/attributes/AttributesView/AttributesView.js +7 -12
  428. package/components/attributes/AttributesView/index.js +7 -13
  429. package/components/attributes/BranchDecorator/BranchDecorator.js +7 -12
  430. package/components/attributes/BranchDecorator/styles.js +2 -5
  431. package/components/attributes/ImageAttributesLine/ImageAttributesLine.js +41 -65
  432. package/components/attributes/ImageAttributesLine/constants.js +6 -9
  433. package/components/attributes/ImageAttributesLine/index.js +1 -8
  434. package/components/attributes/ImageAttributesLine/styles.js +4 -7
  435. package/components/attributes/OvIcon/OvIcon.js +18 -24
  436. package/components/attributes/OvIcon/index.js +1 -8
  437. package/components/attributes/OvIcon/styles.js +3 -6
  438. package/components/attributes/PivotingAttributes/PivotingTooltip.js +24 -50
  439. package/components/attributes/PivotingAttributes/PivotingTooltipContent.js +31 -57
  440. package/components/attributes/PivotingAttributes/helpers.js +16 -22
  441. package/components/attributes/PivotingAttributes/styles.js +3 -6
  442. package/components/attributes/editMode/AttributesFactory/Attribute.js +3 -8
  443. package/components/attributes/editMode/AttributesFactory/AttributesFactory.js +11 -16
  444. package/components/attributes/editMode/AttributesList/AttributesList.js +37 -61
  445. package/components/attributes/editMode/AttributesList/helpers.js +9 -13
  446. package/components/attributes/editMode/AttributesList/index.js +1 -8
  447. package/components/attributes/editMode/AttributesPager/AttributeRenderer.js +34 -58
  448. package/components/attributes/editMode/AttributesPager/AttributesPager.js +24 -48
  449. package/components/attributes/editMode/AttributesPager/CardinalityMessage.js +30 -35
  450. package/components/attributes/editMode/AttributesPager/SpecialRenderer.js +24 -48
  451. package/components/attributes/editMode/AttributesPager/index.js +12 -38
  452. package/components/attributes/editMode/AttributesPager/styles.js +2 -5
  453. package/components/attributes/editMode/AttributesPager/utils.js +4 -7
  454. package/components/attributes/editMode/AttributesView/AttributesView.js +27 -51
  455. package/components/attributes/editMode/AttributesView/index.js +6 -12
  456. package/components/attributes/editMode/AttributesView/styles.js +2 -5
  457. package/components/attributes/editMode/ComplexAttribute/ComplexAttribute.js +38 -62
  458. package/components/attributes/editMode/ComplexAttribute/styles.js +2 -5
  459. package/components/attributes/editMode/EntityCreator/EntityCreator.js +16 -40
  460. package/components/attributes/editMode/EntityCreator/index.js +9 -34
  461. package/components/attributes/editMode/EntitySelector/EntitySelector.js +43 -67
  462. package/components/attributes/editMode/EntitySelector/components/ClearIndicator.js +10 -15
  463. package/components/attributes/editMode/EntitySelector/components/EntityOption.js +26 -31
  464. package/components/attributes/editMode/EntitySelector/components/EntityTypeOption.js +20 -25
  465. package/components/attributes/editMode/EntitySelector/components/Group.js +18 -23
  466. package/components/attributes/editMode/EntitySelector/components/SingleValue.js +26 -50
  467. package/components/attributes/editMode/EntitySelector/components/styles.js +5 -8
  468. package/components/attributes/editMode/EntitySelector/styles.js +2 -5
  469. package/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.js +35 -59
  470. package/components/attributes/editMode/ImageAttributesLine/index.js +2 -7
  471. package/components/attributes/editMode/ImageAttributesLine/styles.js +2 -5
  472. package/components/attributes/editMode/MoreAttributesButton/MoreAttributesButton.js +46 -70
  473. package/components/attributes/editMode/MoreAttributesButton/index.js +1 -8
  474. package/components/attributes/editMode/MoreAttributesButton/styles.js +2 -5
  475. package/components/attributes/editMode/NestedAttribute/NestedAttribute.js +7 -31
  476. package/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.js +46 -70
  477. package/components/attributes/editMode/ReferenceAttribute/index.js +13 -38
  478. package/components/attributes/editMode/ReferenceAttribute/styles.js +2 -5
  479. package/components/attributes/editMode/RelationTypeSelector/RelationTypeSelector.js +18 -42
  480. package/components/attributes/editMode/RelationTypeSelector/components/RelationOption.js +31 -36
  481. package/components/attributes/editMode/RelationTypeSelector/components/styles.js +2 -5
  482. package/components/attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor.js +57 -81
  483. package/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.js +15 -22
  484. package/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.js +4 -8
  485. package/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.js +7 -14
  486. package/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.js +10 -17
  487. package/components/attributes/editMode/SimpleAttributeEditor/selectors/types.js +1 -2
  488. package/components/attributes/editMode/SimpleAttributeEditor/styles.js +2 -5
  489. package/components/attributes/editMode/SimpleAttributeEditor/utils.js +27 -35
  490. package/components/attributes/helpers/attributesView.js +6 -11
  491. package/components/attributes/helpers/imageAttributes.js +1 -5
  492. package/components/attributes/inline/AttributesList/AttributesList.js +12 -17
  493. package/components/attributes/inline/AttributesList/styles.js +2 -5
  494. package/components/attributes/inline/AttributesPager/AttributesPager.js +24 -48
  495. package/components/attributes/inline/AttributesPager/styles.js +2 -5
  496. package/components/attributes/inline/ComplexAttribute/ComplexAttribute.js +35 -59
  497. package/components/attributes/inline/ComplexAttribute/styles.js +2 -5
  498. package/components/attributes/inline/ImageAttribute/ImageAttribute.js +8 -13
  499. package/components/attributes/inline/ImageAttribute/styles.js +2 -5
  500. package/components/attributes/inline/ImageAttributesBlock/ImageAttributesBlock.js +4 -9
  501. package/components/attributes/inline/NestedAttribute/NestedAttribute.js +7 -12
  502. package/components/attributes/inline/NestedAttributesBlock/NestedAttributesBlock.js +9 -14
  503. package/components/attributes/inline/ReferenceAttribute/ReferenceAttribute.js +18 -23
  504. package/components/attributes/inline/ReferenceAttribute/styles.js +2 -5
  505. package/components/attributes/inline/ReferenceAttributesBlock/ReferenceAttributesBlock.js +4 -9
  506. package/components/attributes/inline/SimpleAttribute/CrosswalkMenuItem/CrosswalkMenuItem.js +14 -38
  507. package/components/attributes/inline/SimpleAttribute/CrosswalkMenuItem/styles.js +2 -5
  508. package/components/attributes/inline/SimpleAttribute/SimpleAttribute.js +44 -68
  509. package/components/attributes/inline/SimpleAttribute/index.js +1 -8
  510. package/components/attributes/inline/SimpleAttribute/styles.js +2 -5
  511. package/components/attributes/inline/SimpleAttributeEditor/SimpleAttributeEditor.js +23 -49
  512. package/components/attributes/inline/SimpleAttributeEditor/styles.js +2 -5
  513. package/components/attributes/inline/SimpleAttributesBlock/SimpleAttributesBlock.js +17 -22
  514. package/components/attributes/inline/SimpleAttributesBlock/styles.js +2 -5
  515. package/components/attributes/inline/common/ComplexAttributeLabel.js +6 -13
  516. package/components/attributes/inline/common/CrosswalkIcon.js +12 -17
  517. package/components/attributes/inline/common/DeleteButton.js +6 -11
  518. package/components/attributes/inline/common/IgnoreButton.js +7 -12
  519. package/components/attributes/inline/common/PinButton.js +7 -12
  520. package/components/attributes/inline/common/SourceItem.js +23 -28
  521. package/components/attributes/inline/common/__test__/CrosswalkIcon.spec.js +8 -32
  522. package/components/attributes/inline/common/__test__/DeleteButton.spec.js +8 -13
  523. package/components/attributes/inline/common/__test__/IgnoreButton.spec.js +10 -15
  524. package/components/attributes/inline/common/__test__/PinButton.spec.js +10 -15
  525. package/components/attributes/inline/common/__test__/SourceItem.spec.js +14 -38
  526. package/components/attributes/inline/common/styles.js +3 -6
  527. package/components/attributes/inline/hooks/useAttributeState.js +10 -14
  528. package/components/attributes/inline/index.js +5 -25
  529. package/components/attributes/inline/types/AddAttributeEvent.js +1 -2
  530. package/components/attributes/inline/types/CrosswalksMap.js +1 -2
  531. package/components/attributes/inline/types/DeleteAttributeEvent.js +1 -2
  532. package/components/attributes/inline/types/EditAttributeEvent.js +1 -2
  533. package/components/attributes/inline/types/IgnoreAttributeEvent.js +1 -2
  534. package/components/attributes/inline/types/PinAttributeEvent.js +1 -2
  535. package/components/attributes/inline/types/index.js +1 -2
  536. package/components/attributes/pagersCommon/ShowLess.js +10 -15
  537. package/components/attributes/pagersCommon/ShowMore.js +11 -16
  538. package/components/attributes/pagersCommon/styles.js +2 -5
  539. package/components/attributes/readMode/AttributeValuesBlock/AttributeValuesBlock.js +12 -36
  540. package/components/attributes/readMode/AttributesFactory/Attribute.js +3 -8
  541. package/components/attributes/readMode/AttributesFactory/AttributesFactory.js +11 -16
  542. package/components/attributes/readMode/AttributesList/AttributesList.js +19 -43
  543. package/components/attributes/readMode/AttributesList/index.js +1 -8
  544. package/components/attributes/readMode/AttributesPager/AttributesPager.js +29 -53
  545. package/components/attributes/readMode/AttributesPager/MultiLineRenderer.js +19 -43
  546. package/components/attributes/readMode/AttributesPager/OneLineRenderer.js +18 -23
  547. package/components/attributes/readMode/AttributesPager/SpecialRenderer.js +20 -25
  548. package/components/attributes/readMode/AttributesPager/index.js +7 -32
  549. package/components/attributes/readMode/AttributesPager/styles.js +4 -7
  550. package/components/attributes/readMode/AttributesView/AttributesView.js +24 -48
  551. package/components/attributes/readMode/AttributesView/index.js +6 -12
  552. package/components/attributes/readMode/AttributesView/styles.js +2 -5
  553. package/components/attributes/readMode/ComplexAttribute/ComplexAttribute.js +30 -54
  554. package/components/attributes/readMode/ComplexAttribute/styles.js +2 -5
  555. package/components/attributes/readMode/ImageAttributesLine/ImageAttributesLine.js +19 -43
  556. package/components/attributes/readMode/ImageAttributesLine/cross.inline.svg.js +1 -4
  557. package/components/attributes/readMode/ImageAttributesLine/index.js +1 -8
  558. package/components/attributes/readMode/ImageAttributesLine/styles.js +11 -14
  559. package/components/attributes/readMode/NestedAttribute/NestedAttribute.js +20 -44
  560. package/components/attributes/readMode/NestedAttribute/index.js +1 -8
  561. package/components/attributes/readMode/NestedAttribute/styles.js +7 -9
  562. package/components/attributes/readMode/ReferenceAttribute/ReferenceAttribute.js +20 -44
  563. package/components/attributes/readMode/ReferenceAttribute/index.js +7 -13
  564. package/components/attributes/readMode/ReferenceAttribute/styles.js +7 -9
  565. package/components/attributes/readMode/SimpleAttribute/SimpleAttribute.js +23 -47
  566. package/components/attributes/readMode/SimpleAttribute/index.js +1 -8
  567. package/components/attributes/readMode/SimpleAttribute/styles.js +6 -9
  568. package/components/attributes/readMode/SpecialAttributes/Roles/Role.js +14 -38
  569. package/components/attributes/readMode/SpecialAttributes/Roles/Roles.js +5 -10
  570. package/components/attributes/readMode/SpecialAttributes/Roles/index.js +1 -8
  571. package/components/attributes/readMode/SpecialAttributes/SpecialAttributesArray.js +4 -25
  572. package/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +16 -40
  573. package/components/attributes/readMode/SpecialAttributes/Tags/Tags.js +5 -10
  574. package/components/attributes/readMode/SpecialAttributes/Tags/index.js +1 -8
  575. package/components/attributes/readMode/SpecialAttributes/styles.js +5 -8
  576. package/components/attributes/readMode/helpers/historyAppearance.js +14 -20
  577. package/components/attributes/types/attributesView.js +1 -2
  578. package/components/attributes/types/index.js +1 -13
  579. package/components/charts/ActiveShape/ActiveShape.js +12 -17
  580. package/components/charts/BarChart/BarChart.js +14 -19
  581. package/components/charts/BarChart/getBarChartSettings.js +1 -3
  582. package/components/charts/BubbleChart/BubbleChart.js +33 -59
  583. package/components/charts/BubbleChart/helpers.js +1 -4
  584. package/components/charts/BubbleChart/styles.js +2 -5
  585. package/components/charts/BubbleChart/useBubbles.js +6 -8
  586. package/components/charts/ChartsFactory.js +30 -35
  587. package/components/charts/CloudChart/CloudChart.js +22 -48
  588. package/components/charts/CloudChart/styles.js +2 -5
  589. package/components/charts/CloudChart/useCloud.js +5 -10
  590. package/components/charts/CustomLegend/CustomLegend.js +8 -13
  591. package/components/charts/CustomLegend/getLegendProps.js +4 -9
  592. package/components/charts/CustomLegend/styles.js +2 -5
  593. package/components/charts/CustomTooltip/CustomTooltip.js +10 -17
  594. package/components/charts/CustomTooltip/styles.js +2 -5
  595. package/components/charts/HOCs/withPercents.js +7 -28
  596. package/components/charts/LineChart/LineChart.js +15 -20
  597. package/components/charts/LineChart/getLineChartSettings.js +1 -3
  598. package/components/charts/MapChart/Legend/Legend.js +11 -16
  599. package/components/charts/MapChart/Legend/styles.js +2 -5
  600. package/components/charts/MapChart/MapChart.js +34 -60
  601. package/components/charts/MapChart/styles.js +2 -5
  602. package/components/charts/MapChart/useGeography.js +4 -6
  603. package/components/charts/PieChart/PieChart.js +17 -43
  604. package/components/charts/TableWithBars/TableWithBars.js +21 -45
  605. package/components/charts/TableWithBars/cell-renderers/AttributeCellRenderer.js +13 -20
  606. package/components/charts/TableWithBars/cell-renderers/HeadCellRenderer.js +10 -15
  607. package/components/charts/TableWithBars/cell-renderers/NumberCellValueRenderer.js +12 -17
  608. package/components/charts/TableWithBars/cell-renderers/styles.js +2 -5
  609. package/components/charts/TableWithBars/styles.js +2 -5
  610. package/components/charts/TreeChart/TreeChart.js +17 -41
  611. package/components/charts/TreeChart/styles.js +2 -5
  612. package/components/charts/hooks/useClickableStyle.js +3 -7
  613. package/components/charts/hooks/useTooltipState.js +5 -7
  614. package/components/charts/index.js +7 -20
  615. package/components/charts/types/BarChartOptions.js +1 -2
  616. package/components/charts/types/ChartData.js +1 -2
  617. package/components/charts/types/ChartProps.js +1 -2
  618. package/components/charts/types/LineChartOptions.js +1 -2
  619. package/components/charts/types/TableWithBarsOptions.js +1 -2
  620. package/components/charts/types/index.js +1 -2
  621. package/components/commonReactSelectComponents/DropdownIndicator.js +14 -19
  622. package/components/commonReactSelectComponents/DropdownIndicatorWithIconButton.js +14 -19
  623. package/components/commonReactSelectComponents/MenuWithPopper.js +27 -51
  624. package/components/commonReactSelectComponents/arrowIndicatorStyles.js +2 -5
  625. package/components/commonReactSelectComponents/menuStyles.js +2 -5
  626. package/components/crosswalks/AttributesTable/AddAttributesButton/AddAttributesButton.js +20 -27
  627. package/components/crosswalks/AttributesTable/AddAttributesButton/styles.js +2 -5
  628. package/components/crosswalks/AttributesTable/AttributesTable.js +43 -67
  629. package/components/crosswalks/AttributesTable/ConfirmEditIgnoredDialog/ConfirmEditIgnoredDialog.js +28 -52
  630. package/components/crosswalks/AttributesTable/cell-renderers/AttributeValuesRenderer.js +6 -13
  631. package/components/crosswalks/AttributesTable/cell-renderers/AttributesHeadCellRenderer.js +11 -18
  632. package/components/crosswalks/AttributesTable/cell-renderers/CountRenderer.js +6 -11
  633. package/components/crosswalks/AttributesTable/cell-renderers/DefaultCellValueRenderer.js +5 -10
  634. package/components/crosswalks/AttributesTable/cell-renderers/HeadCellRenderer.js +8 -13
  635. package/components/crosswalks/AttributesTable/cell-renderers/OvValuesRenderer.js +9 -14
  636. package/components/crosswalks/AttributesTable/cell-renderers/RowCellRenderer.js +6 -11
  637. package/components/crosswalks/AttributesTable/cell-renderers/RuleTypeInfoButton.js +49 -73
  638. package/components/crosswalks/AttributesTable/cell-renderers/RuleTypeRenderer.js +9 -14
  639. package/components/crosswalks/AttributesTable/cell-renderers/WinnerSourcesRenderer.js +21 -26
  640. package/components/crosswalks/AttributesTable/cell-renderers/attribute-renderers/AttributesFactory.js +14 -19
  641. package/components/crosswalks/AttributesTable/cell-renderers/attribute-renderers/ImageAttributesRenderer.js +7 -12
  642. package/components/crosswalks/AttributesTable/cell-renderers/attribute-renderers/NestedAttributesRenderer.js +8 -13
  643. package/components/crosswalks/AttributesTable/cell-renderers/attribute-renderers/ReferenceAttributesRenderer.js +8 -13
  644. package/components/crosswalks/AttributesTable/cell-renderers/attribute-renderers/SimpleAttributesRenderer.js +7 -12
  645. package/components/crosswalks/AttributesTable/cell-renderers/attribute-renderers/styles.js +2 -5
  646. package/components/crosswalks/AttributesTable/cell-renderers/styles.js +2 -5
  647. package/components/crosswalks/AttributesTable/helpers.js +58 -68
  648. package/components/crosswalks/AttributesTable/styles.js +2 -5
  649. package/components/crosswalks/ColoredBlock/ColoredBlock.js +7 -31
  650. package/components/crosswalks/ColoredBlock/styles.js +2 -5
  651. package/components/crosswalks/CopyableValueField/CopyableValueField.js +10 -15
  652. package/components/crosswalks/CopyableValueField/styles.js +2 -5
  653. package/components/crosswalks/CrosswalkAttributes/CrosswalkAttributes.js +55 -79
  654. package/components/crosswalks/CrosswalkAttributes/styles.js +2 -5
  655. package/components/crosswalks/CrosswalkDateEditor/CrosswalkDateEditor.js +10 -34
  656. package/components/crosswalks/CrosswalkDateEditor/styles.js +2 -5
  657. package/components/crosswalks/CrosswalkDragLayer/CrosswalkDragLayer.js +11 -35
  658. package/components/crosswalks/CrosswalkDragLayer/CrosswalkDragPreview.js +17 -22
  659. package/components/crosswalks/CrosswalkDragLayer/styles.js +2 -5
  660. package/components/crosswalks/CrosswalkEditor/CrosswalkEditor.js +18 -42
  661. package/components/crosswalks/CrosswalkEditor/styles.js +2 -5
  662. package/components/crosswalks/CrosswalkRow/CrosswalkRow.js +56 -80
  663. package/components/crosswalks/CrosswalkRow/styles.js +2 -5
  664. package/components/crosswalks/DummyCrosswalkRow/DummyCrosswalkRow.js +20 -44
  665. package/components/crosswalks/DummyCrosswalkRow/styles.js +2 -5
  666. package/components/crosswalks/ShowDependentLink/ShowDependentLink.js +8 -13
  667. package/components/crosswalks/ShowDependentLink/styles.js +2 -5
  668. package/components/crosswalks/SourceCrosswalksRow/SourceCrosswalksRow.js +19 -43
  669. package/components/crosswalks/hooks/useAttributeActions.js +22 -26
  670. package/components/crosswalks/hooks/useCrosswalkActions.js +17 -21
  671. package/components/crosswalks/hooks/useModifiedEntity.js +39 -43
  672. package/components/crosswalks/index.js +8 -22
  673. package/components/crosswalks/types/AddCrosswalkEvent.js +1 -2
  674. package/components/crosswalks/types/CreateAttributeEvent.js +1 -2
  675. package/components/crosswalks/types/CrosswalkType.js +2 -5
  676. package/components/crosswalks/types/CrosswalksByOwnerTypeMap.js +1 -2
  677. package/components/crosswalks/types/CrosswalksByTypes.js +1 -2
  678. package/components/crosswalks/types/DeleteCrosswalkEvent.js +1 -2
  679. package/components/crosswalks/types/EditCrosswalkEvent.js +1 -2
  680. package/components/crosswalks/types/index.js +1 -5
  681. package/components/crosswalks/utils/legend.js +23 -26
  682. package/components/editors/BooleanEditor/BooleanEditor.js +9 -14
  683. package/components/editors/BooleanRadioEditor/BooleanRadioEditor.js +15 -20
  684. package/components/editors/BooleanRadioEditor/styles.js +2 -5
  685. package/components/editors/CustomDateRangeEditor/CustomDateRangeEditor.js +26 -50
  686. package/components/editors/CustomDateRangeEditor/styles.js +2 -5
  687. package/components/editors/DataTypeValueEditor/DataTypeValueEditor.js +16 -21
  688. package/components/editors/DataTypeValueEditor/useEditorContext.js +30 -51
  689. package/components/editors/DateEditor/DateEditor.js +26 -50
  690. package/components/editors/DateEditor/styles.js +2 -5
  691. package/components/editors/DateRangeEditor/DateRangeEditor.js +53 -77
  692. package/components/editors/DateRangeEditor/styles.js +2 -5
  693. package/components/editors/DependentLookupEditor/DependentLookupEditor.js +56 -81
  694. package/components/editors/DependentLookupEditor/OptionWithCheckIcon.js +11 -16
  695. package/components/editors/DependentLookupEditor/helpers.js +4 -8
  696. package/components/editors/DependentLookupEditor/styles.js +2 -5
  697. package/components/editors/DependentLookupEditor/useAutopopulation.js +4 -6
  698. package/components/editors/DependentLookupEditor/useDefaultOptions.js +8 -10
  699. package/components/editors/DependentLookupEditor/useLookupsResolver.js +10 -12
  700. package/components/editors/DependentLookupEditor/useSavingFocus.js +4 -6
  701. package/components/editors/DropDownEditor/DropDownEditor.js +12 -17
  702. package/components/editors/EditorsFactory.js +58 -63
  703. package/components/editors/FileTypeEditor/FileTypeEditor.js +12 -36
  704. package/components/editors/FileTypeEditor/styles.js +2 -5
  705. package/components/editors/FilterEditor/FilterEditor.js +21 -26
  706. package/components/editors/FilterEditor/FilterValueEditor.js +35 -40
  707. package/components/editors/GroupedDropDownEditor/GroupedDropDownEditor.js +26 -33
  708. package/components/editors/GroupedDropDownEditor/entriesHelpers.js +7 -11
  709. package/components/editors/GroupedDropDownEditor/styles.js +2 -5
  710. package/components/editors/LookupEditor/LookupEditor.js +19 -43
  711. package/components/editors/LookupEditor/entriesHelpers.js +8 -11
  712. package/components/editors/NumberEditor/NumberEditor.js +26 -31
  713. package/components/editors/RangeDataTypeValueEditor/RangeDataTypeValueEditor.js +28 -52
  714. package/components/editors/RangeDataTypeValueEditor/styles.js +2 -5
  715. package/components/editors/SelectEditor/SelectEditor.js +11 -16
  716. package/components/editors/TextEditor/TextEditor.js +14 -19
  717. package/components/editors/TimestampEditor/TimestampEditor.js +30 -54
  718. package/components/editors/TimestampEditor/styles.js +2 -5
  719. package/components/editors/TypeaheadEditor/TypeaheadEditor.js +44 -68
  720. package/components/editors/TypeaheadEditor/styles.js +2 -5
  721. package/components/editors/commonComponents/MultiValueChip/MultiValueChip.js +16 -21
  722. package/components/editors/constants.js +4 -7
  723. package/components/editors/index.js +10 -26
  724. package/components/history/ContributorsPanel/ContributorItem.js +8 -13
  725. package/components/history/ContributorsPanel/ContributorsPanel.js +11 -16
  726. package/components/history/ContributorsPanel/styles.js +3 -6
  727. package/components/history/DateRangeSelector/DateRangeSelector.js +27 -51
  728. package/components/history/DateRangeSelector/styles.js +2 -5
  729. package/components/history/DateRangeSelector/utils.js +7 -14
  730. package/components/history/HistoryActivitySelector/HistoryActivitySelector.js +18 -23
  731. package/components/history/HistoryActivitySelector/styles.js +3 -6
  732. package/components/history/HistoryActivitySelector/utils.js +10 -17
  733. package/components/history/HistoryFilterButton/HistoryFilterButton.js +32 -56
  734. package/components/history/HistoryFilterButton/styles.js +2 -5
  735. package/components/history/HistoryGraph/HistoryCircle.js +11 -17
  736. package/components/history/HistoryGraph/HistoryGraph.js +20 -44
  737. package/components/history/HistoryGraph/HistoryLink.js +5 -10
  738. package/components/history/HistoryGraph/helpers.js +4 -9
  739. package/components/history/HistoryHeader/HistoryHeader.js +20 -25
  740. package/components/history/HistoryHeader/styles.js +2 -5
  741. package/components/history/HistoryMenuButton/HistoryMenuButton.js +7 -12
  742. package/components/history/HistoryMenuButton/styles.js +2 -5
  743. package/components/history/HistoryRow/HistoryRow.js +18 -42
  744. package/components/history/HistoryRow/styles.js +2 -5
  745. package/components/history/HistoryTree/HistoryTree.js +25 -49
  746. package/components/history/HistoryTree/styles.js +2 -5
  747. package/components/history/HistoryView/HistoryView.js +13 -37
  748. package/components/history/HistoryView/styles.js +2 -5
  749. package/components/history/ProfileBandHistory/ProfileBandHistory.js +18 -42
  750. package/components/history/ProfileBandHistory/styles.js +2 -5
  751. package/components/history/hooks/useHistoricUris.js +10 -14
  752. package/components/history/hooks/useHistory.js +10 -14
  753. package/components/history/hooks/useHistorySlice.js +16 -39
  754. package/components/history/hooks/useHistoryTree.js +36 -40
  755. package/components/history/hooks/useHistoryWithTotal.js +12 -16
  756. package/components/history/index.js +8 -31
  757. package/components/history/types/HistoryChangeTypes.js +2 -5
  758. package/components/history/types/HistoryData.js +1 -2
  759. package/components/history/types/HistoryFilter.js +2 -5
  760. package/components/history/types/HistoryLane.js +1 -2
  761. package/components/history/types/HistoryLife.js +1 -2
  762. package/components/history/types/HistoryRowData.js +1 -2
  763. package/components/history/types/index.js +2 -7
  764. package/components/index.js +120 -257
  765. package/constants/attributes.js +2 -5
  766. package/constants/classnames.js +1 -4
  767. package/constants/index.js +4 -17
  768. package/constants/map.js +3 -6
  769. package/constants/prop-types.js +52 -69
  770. package/contexts/AsyncMountContext/index.js +8 -14
  771. package/contexts/BlockImageGalleryDialogContext/index.js +3 -9
  772. package/contexts/CollaborationContext/index.js +3 -9
  773. package/contexts/CrosswalksDisplayContext/index.js +20 -47
  774. package/contexts/EntitiesMapContext/index.js +3 -9
  775. package/contexts/EntityMarkerContext/index.js +3 -9
  776. package/contexts/ExpandedAttributesContext/index.js +8 -32
  777. package/contexts/HistoryAppearanceContext/index.js +3 -9
  778. package/contexts/IdContext/index.js +3 -9
  779. package/contexts/PivotingAttributeContext/index.js +2 -8
  780. package/contexts/PopupBoundariesContext/index.js +8 -14
  781. package/contexts/ProfilePerspectiveViewContext/index.js +3 -9
  782. package/contexts/UsersContext/index.js +3 -9
  783. package/contexts/ViewIdContext/index.js +3 -9
  784. package/contexts/index.js +14 -36
  785. package/core/index.js +1 -13
  786. package/core/utils.js +6 -21
  787. package/hooks/index.js +13 -29
  788. package/hooks/useActions.js +5 -9
  789. package/hooks/useAsyncMount.js +8 -12
  790. package/hooks/useCollaboration.js +37 -44
  791. package/hooks/useConfigPermissions.js +10 -17
  792. package/hooks/useDidUpdateEffect.js +4 -8
  793. package/hooks/usePrevious.js +4 -8
  794. package/hooks/useRelationTypeSelector.js +17 -21
  795. package/hooks/useRelationsLoader.js +28 -51
  796. package/hooks/useRunOnceAfterValueInitialization.js +4 -8
  797. package/hooks/useSafePromise.js +6 -10
  798. package/hooks/useSavedState.js +5 -9
  799. package/hooks/useUsers.js +10 -17
  800. package/hooks/useWhyDidYouUpdate.js +4 -8
  801. package/icons/Add.js +4 -9
  802. package/icons/AddComment.js +4 -9
  803. package/icons/Calendar.js +4 -9
  804. package/icons/Comment.js +4 -9
  805. package/icons/CommentBubble.js +4 -9
  806. package/icons/Copy.js +9 -14
  807. package/icons/Create.js +4 -9
  808. package/icons/DefaultImage.js +6 -11
  809. package/icons/Details.js +9 -14
  810. package/icons/Download.js +9 -14
  811. package/icons/Draw.js +10 -15
  812. package/icons/EmptySearchResults.js +66 -71
  813. package/icons/Filter.js +4 -9
  814. package/icons/Ignored.js +4 -9
  815. package/icons/IgnoredOutlined.js +4 -9
  816. package/icons/LogIn.js +5 -10
  817. package/icons/LogOut.js +5 -10
  818. package/icons/Merge.js +4 -9
  819. package/icons/MlMatch.js +44 -49
  820. package/icons/NestedAttribute.js +4 -9
  821. package/icons/NoData.js +62 -67
  822. package/icons/NoDataSearch.js +7 -12
  823. package/icons/NoMatches.js +4 -9
  824. package/icons/Pin.js +4 -9
  825. package/icons/PinOutlined.js +4 -9
  826. package/icons/PivotingIcon.js +4 -9
  827. package/icons/PmIcon.js +4 -9
  828. package/icons/Polygon.js +4 -9
  829. package/icons/PotentialMatch.js +4 -9
  830. package/icons/Profile.js +4 -9
  831. package/icons/Radius.js +4 -9
  832. package/icons/Recommended.js +9 -14
  833. package/icons/ReferenceAttribute.js +4 -9
  834. package/icons/Remove.js +4 -9
  835. package/icons/ResizeIconInline.js +4 -9
  836. package/icons/Search.js +4 -9
  837. package/icons/SelectAttributes.js +39 -44
  838. package/icons/SimpleAttribute.js +4 -9
  839. package/icons/Table.js +4 -9
  840. package/icons/UnMerge.js +4 -9
  841. package/icons/UploadIcon.js +28 -33
  842. package/icons/index.js +37 -80
  843. package/index.js +7 -19
  844. package/package.json +5 -4
  845. 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,96 +9,73 @@ 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 prop_types_1 = __importDefault(require("prop-types"));
38
- var classnames_1 = __importDefault(require("classnames"));
39
- var Button_1 = __importDefault(require("@material-ui/core/Button"));
40
- var SmallIconButton_1 = __importDefault(require("../../../SmallIconButton/SmallIconButton"));
41
- var Delete_1 = __importDefault(require("@material-ui/icons/Delete"));
42
- var Typography_1 = __importDefault(require("@material-ui/core/Typography"));
43
- var ui_i18n_1 = __importDefault(require("ui-i18n"));
44
- var mdm_sdk_1 = require("@reltio/mdm-sdk");
45
- var styles_1 = require("./styles");
46
- var ErrorWrapper_1 = __importDefault(require("../../../ErrorWrapper/ErrorWrapper"));
47
- var AttributesList_1 = __importDefault(require("../AttributesList/AttributesList"));
48
- var ArrowExpandButton_1 = __importDefault(require("../../../ArrowExpandButton/ArrowExpandButton"));
12
+ import React, { useMemo, useState, useEffect } from 'react';
13
+ import PropTypes from 'prop-types';
14
+ import classnames from 'classnames';
15
+ import Button from '@material-ui/core/Button';
16
+ import SmallIconButton from '../../../SmallIconButton/SmallIconButton';
17
+ import DeleteIcon from '@material-ui/icons/Delete';
18
+ import Typography from '@material-ui/core/Typography';
19
+ import i18n from 'ui-i18n';
20
+ import { checkCanDeleteAttribute, isReltioCrosswalk, isTempUri, ComplexAttributeType, ReferenceAttributeValueType, NestedAttributeValueType, AttributeTypeType, getErrorMessage, hasAttributeDescendantsWithErrors, isAnalyticAttribute } from '@reltio/mdm-sdk';
21
+ import { useStyles } from './styles';
22
+ import ErrorWrapper from '../../../ErrorWrapper/ErrorWrapper';
23
+ import AttributesList from '../AttributesList/AttributesList';
24
+ import ArrowExpandButton from '../../../ArrowExpandButton/ArrowExpandButton';
49
25
  var ComplexAttribute = function (_a) {
50
26
  var _b;
51
27
  var label = _a.label, attributeTypesList = _a.attributeTypesList, attributeType = _a.attributeType, attributeValue = _a.attributeValue, children = _a.children, errors = _a.errors, ownError = _a.ownError, mode = _a.mode, metadata = _a.metadata, crosswalks = _a.crosswalks, lazy = _a.lazy, showEmptyEditors = _a.showEmptyEditors, onAddOneMore = _a.onAddOneMore, onAddAttributes = _a.onAddAttributes, onDeleteAttribute = _a.onDeleteAttribute, onChangeAttribute = _a.onChangeAttribute, additionalControlsRenderer = _a.additionalControlsRenderer, hideDeleteButton = _a.hideDeleteButton, state = _a.state, showNonOv = _a.showNonOv;
52
- var styles = styles_1.useStyles();
28
+ var styles = useStyles();
53
29
  var deleted = state === 'deleted';
54
30
  var edited = state === 'edited';
55
31
  var uri = attributeValue.uri;
56
- var isNew = mdm_sdk_1.isTempUri(uri);
57
- var _c = react_1.useState(isNew), expanded = _c[0], setExpanded = _c[1];
58
- var canDelete = react_1.useMemo(function () {
59
- return mdm_sdk_1.checkCanDeleteAttribute({
32
+ var isNew = isTempUri(uri);
33
+ var _c = useState(isNew), expanded = _c[0], setExpanded = _c[1];
34
+ var canDelete = useMemo(function () {
35
+ return checkCanDeleteAttribute({
60
36
  attributeType: attributeType,
61
37
  attributeValue: attributeValue,
62
38
  mode: mode,
63
39
  metadata: metadata,
64
- isReltioCrosswalk: mdm_sdk_1.isReltioCrosswalk(crosswalks, attributeValue)
40
+ isReltioCrosswalk: isReltioCrosswalk(crosswalks, attributeValue)
65
41
  });
66
42
  }, [attributeType, attributeValue, mode, metadata, crosswalks]);
67
43
  var showDeleteButton = !deleted && !hideDeleteButton && !!onDeleteAttribute && canDelete;
68
44
  var onDeleteThis = function () { return onDeleteAttribute({ uri: uri, attributeType: attributeType, attributeValue: attributeValue }); };
69
- var hasDescendantsWithErrors = react_1.useMemo(function () { return mdm_sdk_1.hasAttributeDescendantsWithErrors(attributeValue, errors); }, [
45
+ var hasDescendantsWithErrors = useMemo(function () { return hasAttributeDescendantsWithErrors(attributeValue, errors); }, [
70
46
  errors,
71
47
  attributeValue
72
48
  ]);
73
- react_1.useEffect(function () {
49
+ useEffect(function () {
74
50
  if (hasDescendantsWithErrors) {
75
51
  setExpanded(true);
76
52
  }
77
53
  }, [errors, hasDescendantsWithErrors]);
78
- react_1.useEffect(function () {
54
+ useEffect(function () {
79
55
  if (deleted) {
80
56
  setExpanded(false);
81
57
  }
82
58
  }, [deleted]);
83
- var hasAnalyticValue = (attributeTypesList || []).some(function (attributeType) { return mdm_sdk_1.isAnalyticAttribute(attributeType); });
84
- var attributeListEntity = react_1.useMemo(function () { return ({
59
+ var hasAnalyticValue = (attributeTypesList || []).some(function (attributeType) { return isAnalyticAttribute(attributeType); });
60
+ var attributeListEntity = useMemo(function () { return ({
85
61
  attributes: hasAnalyticValue ? null : attributeValue.value,
86
62
  analyticsAttributes: hasAnalyticValue ? attributeValue.value : null
87
63
  }); }, [attributeValue, hasAnalyticValue]);
88
- var errorMessage = mdm_sdk_1.getErrorMessage(ownError) || (hasDescendantsWithErrors && ui_i18n_1.default.text('Has an incorrect value')) || '';
89
- return lazy ? (react_1.default.createElement(Button_1.default, { variant: "text", color: "primary", onClick: onAddOneMore }, "Create attribute")) : (react_1.default.createElement(react_1.default.Fragment, null,
90
- react_1.default.createElement("div", { className: styles.editor },
91
- react_1.default.createElement("div", { className: styles.titleContainer },
92
- react_1.default.createElement(ArrowExpandButton_1.default, { onClick: function () { return setExpanded(function (value) { return !value; }); }, expanded: expanded, className: styles.expandButton, disabled: deleted }),
93
- react_1.default.createElement(ErrorWrapper_1.default, { errorMessage: errorMessage, classes: { helperText: styles.errorWrapperHelperText } },
94
- react_1.default.createElement("div", { className: classnames_1.default(styles.label, (_b = {}, _b[styles.deleted] = deleted, _b)) }, label))),
95
- react_1.default.createElement("div", { className: styles.actions },
96
- edited && (react_1.default.createElement(Typography_1.default, { variant: "caption", className: styles.editedLabel },
64
+ var errorMessage = getErrorMessage(ownError) || (hasDescendantsWithErrors && i18n.text('Has an incorrect value')) || '';
65
+ return lazy ? (React.createElement(Button, { variant: "text", color: "primary", onClick: onAddOneMore }, "Create attribute")) : (React.createElement(React.Fragment, null,
66
+ React.createElement("div", { className: styles.editor },
67
+ React.createElement("div", { className: styles.titleContainer },
68
+ React.createElement(ArrowExpandButton, { onClick: function () { return setExpanded(function (value) { return !value; }); }, expanded: expanded, className: styles.expandButton, disabled: deleted }),
69
+ React.createElement(ErrorWrapper, { errorMessage: errorMessage, classes: { helperText: styles.errorWrapperHelperText } },
70
+ React.createElement("div", { className: classnames(styles.label, (_b = {}, _b[styles.deleted] = deleted, _b)) }, label))),
71
+ React.createElement("div", { className: styles.actions },
72
+ edited && (React.createElement(Typography, { variant: "caption", className: styles.editedLabel },
97
73
  "(",
98
- ui_i18n_1.default.text('edited'),
74
+ i18n.text('edited'),
99
75
  ")")),
100
76
  additionalControlsRenderer && additionalControlsRenderer({ attributeType: attributeType, attributeValue: attributeValue }),
101
- showDeleteButton && react_1.default.createElement(SmallIconButton_1.default, { icon: Delete_1.default, onClick: onDeleteThis, size: "L" }))),
102
- expanded && (react_1.default.createElement(AttributesList_1.default, { attrTypes: attributeTypesList, entity: attributeListEntity, showEmptyEditors: showEmptyEditors || isNew, drawLines: true, parentUri: uri, mode: mode, crosswalks: crosswalks, onAddAttributes: onAddAttributes, onChangeAttribute: onChangeAttribute, onDeleteAttribute: onDeleteAttribute, additionalControlsRenderer: additionalControlsRenderer, showNonOv: showNonOv }, children))));
77
+ showDeleteButton && React.createElement(SmallIconButton, { icon: DeleteIcon, onClick: onDeleteThis, size: "L" }))),
78
+ expanded && (React.createElement(AttributesList, { attrTypes: attributeTypesList, entity: attributeListEntity, showEmptyEditors: showEmptyEditors || isNew, drawLines: true, parentUri: uri, mode: mode, crosswalks: crosswalks, onAddAttributes: onAddAttributes, onChangeAttribute: onChangeAttribute, onDeleteAttribute: onDeleteAttribute, additionalControlsRenderer: additionalControlsRenderer, showNonOv: showNonOv }, children))));
103
79
  };
104
- ComplexAttribute.propTypes = __assign({ label: prop_types_1.default.string, children: prop_types_1.default.node, attributeTypesList: prop_types_1.default.arrayOf(mdm_sdk_1.AttributeTypeType), attributeValue: prop_types_1.default.oneOfType([mdm_sdk_1.NestedAttributeValueType, mdm_sdk_1.ReferenceAttributeValueType]) }, mdm_sdk_1.ComplexAttributeType);
105
- exports.default = ComplexAttribute;
80
+ ComplexAttribute.propTypes = __assign({ label: PropTypes.string, children: PropTypes.node, attributeTypesList: PropTypes.arrayOf(AttributeTypeType), attributeValue: PropTypes.oneOfType([NestedAttributeValueType, ReferenceAttributeValueType]) }, ComplexAttributeType);
81
+ export default ComplexAttribute;
@@ -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(function (theme) { return ({
1
+ import { makeStyles } from '@material-ui/core/styles';
2
+ export var useStyles = makeStyles(function (theme) { return ({
6
3
  editor: {
7
4
  display: 'flex',
8
5
  flex: 1,
@@ -1,49 +1,25 @@
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 prop_types_1 = __importDefault(require("prop-types"));
27
- var AttributesList_1 = __importDefault(require("../AttributesList"));
28
- var mdm_sdk_1 = require("@reltio/mdm-sdk");
1
+ import React, { useMemo } from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import AttributesList from '../AttributesList';
4
+ import { ModeType } from '@reltio/mdm-sdk';
29
5
  var defaultAttributeTypesSelectionStrategy = function (entityType) { return entityType && entityType.attributes; };
30
6
  var EntityCreator = function (_a) {
31
7
  var entity = _a.entity, entityType = _a.entityType, _b = _a.attributeTypesSelectionStrategy, attributeTypesSelectionStrategy = _b === void 0 ? defaultAttributeTypesSelectionStrategy : _b, mode = _a.mode, onAddAttributes = _a.onAddAttributes, onDeleteAttribute = _a.onDeleteAttribute, onChangeAttribute = _a.onChangeAttribute;
32
- var attributeTypes = react_1.useMemo(function () { return attributeTypesSelectionStrategy(entityType); }, [
8
+ var attributeTypes = useMemo(function () { return attributeTypesSelectionStrategy(entityType); }, [
33
9
  attributeTypesSelectionStrategy,
34
10
  entityType
35
11
  ]);
36
- return entity ? (react_1.default.createElement(AttributesList_1.default, { attrTypes: attributeTypes, entity: entity, showEmptyEditors: true, drawLines: true, parentUri: entity.uri, mode: mode, crosswalks: entity.crosswalks, onAddAttributes: onAddAttributes, onChangeAttribute: onChangeAttribute, onDeleteAttribute: onDeleteAttribute })) : null;
12
+ return entity ? (React.createElement(AttributesList, { attrTypes: attributeTypes, entity: entity, showEmptyEditors: true, drawLines: true, parentUri: entity.uri, mode: mode, crosswalks: entity.crosswalks, onAddAttributes: onAddAttributes, onChangeAttribute: onChangeAttribute, onDeleteAttribute: onDeleteAttribute })) : null;
37
13
  };
38
14
  EntityCreator.propTypes = {
39
- entityUri: prop_types_1.default.string,
40
- parentUri: prop_types_1.default.string,
41
- entity: prop_types_1.default.object,
42
- entityType: prop_types_1.default.object,
43
- attributeTypesSelectionStrategy: prop_types_1.default.func,
44
- mode: mdm_sdk_1.ModeType,
45
- onAddAttributes: prop_types_1.default.func,
46
- onDeleteAttribute: prop_types_1.default.func,
47
- onChangeAttribute: prop_types_1.default.func
15
+ entityUri: PropTypes.string,
16
+ parentUri: PropTypes.string,
17
+ entity: PropTypes.object,
18
+ entityType: PropTypes.object,
19
+ attributeTypesSelectionStrategy: PropTypes.func,
20
+ mode: ModeType,
21
+ onAddAttributes: PropTypes.func,
22
+ onDeleteAttribute: PropTypes.func,
23
+ onChangeAttribute: PropTypes.func
48
24
  };
49
- exports.default = EntityCreator;
25
+ export default EntityCreator;
@@ -1,38 +1,13 @@
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.EntityCreator = void 0;
26
- var react_redux_1 = require("react-redux");
27
- var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
28
- var EntityCreator_1 = __importDefault(require("./EntityCreator"));
29
- exports.EntityCreator = EntityCreator_1.default;
1
+ import { connect } from 'react-redux';
2
+ import mdmModule, { profile } from '@reltio/mdm-module';
3
+ import EntityCreator from './EntityCreator';
30
4
  var mapStateToProps = function (state, ownProps) { return ({
31
- entity: ownProps.entityUri && mdm_module_1.default.selectors.getModifiedEntity(state, ownProps.entityUri)
5
+ entity: ownProps.entityUri && mdmModule.selectors.getModifiedEntity(state, ownProps.entityUri)
32
6
  }); };
33
7
  var mapDispatchToProps = {
34
- onAddAttributes: mdm_module_1.profile.actions.addAttributes,
35
- onDeleteAttribute: mdm_module_1.profile.actions.removeAttribute,
36
- onChangeAttribute: mdm_module_1.profile.actions.modifyAttribute
8
+ onAddAttributes: profile.actions.addAttributes,
9
+ onDeleteAttribute: profile.actions.removeAttribute,
10
+ onChangeAttribute: profile.actions.modifyAttribute
37
11
  };
38
- exports.default = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(EntityCreator_1.default);
12
+ export { EntityCreator };
13
+ export default connect(mapStateToProps, mapDispatchToProps)(EntityCreator);
@@ -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,25 +9,6 @@ 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
12
  var __rest = (this && this.__rest) || function (s, e) {
33
13
  var t = {};
34
14
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -40,30 +20,26 @@ var __rest = (this && this.__rest) || function (s, e) {
40
20
  }
41
21
  return t;
42
22
  };
43
- var __importDefault = (this && this.__importDefault) || function (mod) {
44
- return (mod && mod.__esModule) ? mod : { "default": mod };
45
- };
46
- Object.defineProperty(exports, "__esModule", { value: true });
47
- var react_1 = __importStar(require("react"));
48
- var prop_types_1 = __importDefault(require("prop-types"));
49
- var ui_i18n_1 = __importDefault(require("ui-i18n"));
50
- var ramda_1 = require("ramda");
51
- var mdm_sdk_1 = require("@reltio/mdm-sdk");
52
- var DropDownSelector_1 = __importDefault(require("../../../DropDownSelector/DropDownSelector"));
53
- var EntityOption_1 = __importDefault(require("./components/EntityOption"));
54
- var SingleValue_1 = __importDefault(require("./components/SingleValue"));
55
- var ClearIndicator_1 = __importDefault(require("./components/ClearIndicator"));
56
- var EntityCreator_1 = __importDefault(require("../EntityCreator"));
57
- var core_1 = require("../../../../core");
58
- var Group_1 = __importDefault(require("./components/Group"));
59
- var styles_1 = require("./styles");
23
+ import React, { useState, useMemo } from 'react';
24
+ import PropTypes from 'prop-types';
25
+ import i18n from 'ui-i18n';
26
+ import { isEmpty, prop } from 'ramda';
27
+ import { getFilteredEntities, getEntityType, MetadataType, ConnectionEntityType, ModeType, isTempUri, getLastUriPart, getLabel } from '@reltio/mdm-sdk';
28
+ import DropDownSelector from '../../../DropDownSelector/DropDownSelector';
29
+ import EntityOption from './components/EntityOption';
30
+ import SingleValue from './components/SingleValue';
31
+ import ClearIndicator from './components/ClearIndicator';
32
+ import EntityCreator from '../EntityCreator';
33
+ import { EmptyStub } from '../../../../core';
34
+ import Group from './components/Group';
35
+ import { useStyles } from './styles';
60
36
  var buildEntityOptions = function (entityTypes) { return function (entities) {
61
- var newOptions = entities.map(function (entity) { return (__assign(__assign({}, entity), { label: mdm_sdk_1.getLabel(entity.label), entityType: entityTypes.find(function (_a) {
37
+ var newOptions = entities.map(function (entity) { return (__assign(__assign({}, entity), { label: getLabel(entity.label), entityType: entityTypes.find(function (_a) {
62
38
  var uri = _a.uri;
63
39
  return uri === entity.type;
64
40
  }) })); });
65
41
  var addDummyOptionToEmptyOptionList = function (options) {
66
- return ramda_1.isEmpty(options)
42
+ return isEmpty(options)
67
43
  ? [
68
44
  {
69
45
  label: '',
@@ -85,9 +61,9 @@ var buildEntityOptions = function (entityTypes) { return function (entities) {
85
61
  }; };
86
62
  var EntitySelector = function (_a) {
87
63
  var _b = _a.entity, entity = _b === void 0 ? {} : _b, _c = _a.entityTypesUris, entityTypesUris = _c === void 0 ? [] : _c, mode = _a.mode, max = _a.max, onChange = _a.onChange, onCreate = _a.onCreate, metadata = _a.metadata, globalSearchRequestOptions = _a.globalSearchRequestOptions, attributeTypesSelectionStrategy = _a.attributeTypesSelectionStrategy, disableLinkClick = _a.disableLinkClick, otherProps = __rest(_a, ["entity", "entityTypesUris", "mode", "max", "onChange", "onCreate", "metadata", "globalSearchRequestOptions", "attributeTypesSelectionStrategy", "disableLinkClick"]);
88
- var styles = styles_1.useStyles();
89
- var _d = react_1.useState(''), inputValue = _d[0], setInputValue = _d[1];
90
- var entityTypes = react_1.useMemo(function () { return entityTypesUris.map(function (type) { return mdm_sdk_1.getEntityType(metadata, type); }); }, [
64
+ var styles = useStyles();
65
+ var _d = useState(''), inputValue = _d[0], setInputValue = _d[1];
66
+ var entityTypes = useMemo(function () { return entityTypesUris.map(function (type) { return getEntityType(metadata, type); }); }, [
91
67
  entityTypesUris,
92
68
  metadata
93
69
  ]);
@@ -95,7 +71,7 @@ var EntitySelector = function (_a) {
95
71
  {
96
72
  filter: 'equals',
97
73
  fieldName: 'type',
98
- values: entityTypesUris.map(mdm_sdk_1.getLastUriPart)
74
+ values: entityTypesUris.map(getLastUriPart)
99
75
  }
100
76
  ];
101
77
  var options = __assign(__assign({}, globalSearchRequestOptions), { max: max });
@@ -117,30 +93,30 @@ var EntitySelector = function (_a) {
117
93
  var handleClear = function () {
118
94
  handleChange({});
119
95
  };
120
- var groupMode = react_1.useMemo(function () { return entityTypes.length !== 1; }, [entityTypes]);
121
- var getOptions = function (value) { return mdm_sdk_1.getFilteredEntities(filters, options, value).then(buildEntityOptions(entityTypes)); };
122
- var currentEntityType = (ramda_1.isEmpty(entity) ? entityTypes[0] : mdm_sdk_1.getEntityType(metadata, entity.entityType)) || {};
123
- var createLabel = onCreate && ui_i18n_1.default.text("Create " + (inputValue ? "\"" + inputValue + "\" as " : '') + "new " + currentEntityType.label);
124
- var label = ui_i18n_1.default.text("Select " + (entityTypes.length === 1 ? entityTypes[0].label + " " : '') + "profile");
125
- var isTempEntity = !ramda_1.isEmpty(entity) && mdm_sdk_1.isTempUri(entity.entityUri);
126
- var groupComponent = groupMode ? { Group: Group_1.default, GroupHeading: core_1.EmptyStub } : {};
127
- var clearComponent = isTempEntity ? { ClearIndicator: ClearIndicator_1.default } : {};
128
- return (react_1.default.createElement(react_1.default.Fragment, null,
129
- react_1.default.createElement(DropDownSelector_1.default, __assign({ value: !ramda_1.isEmpty(entity) ? entity : undefined, inputValue: inputValue, onInputChange: handleInputChange, getOptions: getOptions, getOptionLabel: ramda_1.prop('entityLabel'), onChange: handleChange, onCreate: handleCreate, onClear: handleClear, label: label, createLabel: createLabel, components: __assign(__assign({ Option: EntityOption_1.default, SingleValue: SingleValue_1.default }, groupComponent), clearComponent), currentEntityType: currentEntityType, isClearable: true, disableLinkClick: disableLinkClick }, otherProps)),
130
- isTempEntity && (react_1.default.createElement("div", { className: styles.creatorWrapper },
131
- react_1.default.createElement(EntityCreator_1.default, { mode: mode, attributeTypesSelectionStrategy: attributeTypesSelectionStrategy, entityType: currentEntityType, entityUri: entity.entityUri })))));
96
+ var groupMode = useMemo(function () { return entityTypes.length !== 1; }, [entityTypes]);
97
+ var getOptions = function (value) { return getFilteredEntities(filters, options, value).then(buildEntityOptions(entityTypes)); };
98
+ var currentEntityType = (isEmpty(entity) ? entityTypes[0] : getEntityType(metadata, entity.entityType)) || {};
99
+ var createLabel = onCreate && i18n.text("Create " + (inputValue ? "\"" + inputValue + "\" as " : '') + "new " + currentEntityType.label);
100
+ var label = i18n.text("Select " + (entityTypes.length === 1 ? entityTypes[0].label + " " : '') + "profile");
101
+ var isTempEntity = !isEmpty(entity) && isTempUri(entity.entityUri);
102
+ var groupComponent = groupMode ? { Group: Group, GroupHeading: EmptyStub } : {};
103
+ var clearComponent = isTempEntity ? { ClearIndicator: ClearIndicator } : {};
104
+ return (React.createElement(React.Fragment, null,
105
+ React.createElement(DropDownSelector, __assign({ value: !isEmpty(entity) ? entity : undefined, inputValue: inputValue, onInputChange: handleInputChange, getOptions: getOptions, getOptionLabel: prop('entityLabel'), onChange: handleChange, onCreate: handleCreate, onClear: handleClear, label: label, createLabel: createLabel, components: __assign(__assign({ Option: EntityOption, SingleValue: SingleValue }, groupComponent), clearComponent), currentEntityType: currentEntityType, isClearable: true, disableLinkClick: disableLinkClick }, otherProps)),
106
+ isTempEntity && (React.createElement("div", { className: styles.creatorWrapper },
107
+ React.createElement(EntityCreator, { mode: mode, attributeTypesSelectionStrategy: attributeTypesSelectionStrategy, entityType: currentEntityType, entityUri: entity.entityUri })))));
132
108
  };
133
109
  EntitySelector.propTypes = {
134
- entity: mdm_sdk_1.ConnectionEntityType,
135
- entityTypesUris: prop_types_1.default.arrayOf(prop_types_1.default.string),
136
- max: prop_types_1.default.number,
137
- mode: mdm_sdk_1.ModeType,
138
- dispatch: prop_types_1.default.func,
139
- metadata: mdm_sdk_1.MetadataType,
140
- onChange: prop_types_1.default.func.isRequired,
141
- onCreate: prop_types_1.default.func,
142
- attributeTypesSelectionStrategy: prop_types_1.default.func,
143
- globalSearchRequestOptions: prop_types_1.default.object,
144
- disableLinkClick: prop_types_1.default.bool
110
+ entity: ConnectionEntityType,
111
+ entityTypesUris: PropTypes.arrayOf(PropTypes.string),
112
+ max: PropTypes.number,
113
+ mode: ModeType,
114
+ dispatch: PropTypes.func,
115
+ metadata: MetadataType,
116
+ onChange: PropTypes.func.isRequired,
117
+ onCreate: PropTypes.func,
118
+ attributeTypesSelectionStrategy: PropTypes.func,
119
+ globalSearchRequestOptions: PropTypes.object,
120
+ disableLinkClick: PropTypes.bool
145
121
  };
146
- exports.default = EntitySelector;
122
+ export default EntitySelector;
@@ -1,20 +1,15 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- var react_1 = __importDefault(require("react"));
7
- var prop_types_1 = __importDefault(require("prop-types"));
8
- var Clear_1 = __importDefault(require("@material-ui/icons/Clear"));
9
- var styles_1 = require("./styles");
10
- var IconButton_1 = __importDefault(require("@material-ui/core/IconButton"));
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import ClearIcon from '@material-ui/icons/Clear';
4
+ import { useClearIconStyles } from './styles';
5
+ import IconButton from '@material-ui/core/IconButton';
11
6
  var ClearIndicator = function (props) {
12
7
  var onClear = props.selectProps.onClear;
13
- var styles = styles_1.useClearIconStyles();
14
- return (react_1.default.createElement(IconButton_1.default, { onClick: onClear },
15
- react_1.default.createElement(Clear_1.default, { className: styles.clearIcon })));
8
+ var styles = useClearIconStyles();
9
+ return (React.createElement(IconButton, { onClick: onClear },
10
+ React.createElement(ClearIcon, { className: styles.clearIcon })));
16
11
  };
17
12
  ClearIndicator.propTypes = {
18
- selectProps: prop_types_1.default.object.isRequired
13
+ selectProps: PropTypes.object.isRequired
19
14
  };
20
- exports.default = ClearIndicator;
15
+ export default ClearIndicator;
@@ -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,49 +9,45 @@ var __assign = (this && this.__assign) || function () {
10
9
  };
11
10
  return __assign.apply(this, arguments);
12
11
  };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- var react_1 = __importDefault(require("react"));
18
- var prop_types_1 = __importDefault(require("prop-types"));
19
- var ui_i18n_1 = __importDefault(require("ui-i18n"));
20
- var EntityTypeIcon_1 = __importDefault(require("../../../../EntityTypeIcon/EntityTypeIcon"));
21
- var MenuItem_1 = __importDefault(require("@material-ui/core/MenuItem"));
22
- var mdm_sdk_1 = require("@reltio/mdm-sdk");
23
- var styles_1 = require("./styles");
12
+ import React from 'react';
13
+ import PropTypes from 'prop-types';
14
+ import i18n from 'ui-i18n';
15
+ import EntityTypeIcon from '../../../../EntityTypeIcon/EntityTypeIcon';
16
+ import MenuItem from '@material-ui/core/MenuItem';
17
+ import { EntityType } from '@reltio/mdm-sdk';
18
+ import { useStyles } from './styles';
24
19
  var EntityOption = function (_a) {
25
20
  var innerRef = _a.innerRef, innerProps = _a.innerProps, selectOption = _a.selectOption, data = _a.data;
26
- var styles = styles_1.useStyles();
21
+ var styles = useStyles();
27
22
  var uri = data.uri, entityType = data.entityType, label = data.label, secondaryLabel = data.secondaryLabel;
28
23
  if (uri !== '') {
29
- return (react_1.default.createElement(MenuItem_1.default, __assign({ className: styles.entityContainer, ref: innerRef, key: uri, onClick: function () { return selectOption({ label: label, uri: uri, entityType: entityType }); } }, innerProps),
30
- react_1.default.createElement(EntityTypeIcon_1.default, { className: styles.entityAvatar, entityType: entityType }),
31
- react_1.default.createElement("span", { className: styles.entityLabel },
24
+ return (React.createElement(MenuItem, __assign({ className: styles.entityContainer, ref: innerRef, key: uri, onClick: function () { return selectOption({ label: label, uri: uri, entityType: entityType }); } }, innerProps),
25
+ React.createElement(EntityTypeIcon, { className: styles.entityAvatar, entityType: entityType }),
26
+ React.createElement("span", { className: styles.entityLabel },
32
27
  label,
33
- secondaryLabel && react_1.default.createElement("span", { className: styles.entitySecondaryLabel },
28
+ secondaryLabel && React.createElement("span", { className: styles.entitySecondaryLabel },
34
29
  ", ",
35
30
  secondaryLabel))));
36
31
  }
37
32
  else {
38
- return (react_1.default.createElement(MenuItem_1.default, __assign({ className: styles.entityContainer, ref: innerRef, key: uri }, innerProps, { disabled: true }),
39
- react_1.default.createElement("span", { className: styles.emptyEntityLabel }, ui_i18n_1.default.text('No results found'))));
33
+ return (React.createElement(MenuItem, __assign({ className: styles.entityContainer, ref: innerRef, key: uri }, innerProps, { disabled: true }),
34
+ React.createElement("span", { className: styles.emptyEntityLabel }, i18n.text('No results found'))));
40
35
  }
41
36
  };
42
37
  EntityOption.propTypes = {
43
- innerRef: prop_types_1.default.oneOfType([
44
- prop_types_1.default.oneOf([null]),
45
- prop_types_1.default.func,
46
- prop_types_1.default.shape({
47
- current: prop_types_1.default.any.isRequired
38
+ innerRef: PropTypes.oneOfType([
39
+ PropTypes.oneOf([null]),
40
+ PropTypes.func,
41
+ PropTypes.shape({
42
+ current: PropTypes.any.isRequired
48
43
  })
49
44
  ]),
50
- innerProps: prop_types_1.default.object.isRequired,
51
- selectOption: prop_types_1.default.func.isRequired,
52
- data: prop_types_1.default.shape({
53
- uri: prop_types_1.default.string.isRequired,
54
- label: prop_types_1.default.string.isRequired,
55
- entityType: mdm_sdk_1.EntityType.isRequired
45
+ innerProps: PropTypes.object.isRequired,
46
+ selectOption: PropTypes.func.isRequired,
47
+ data: PropTypes.shape({
48
+ uri: PropTypes.string.isRequired,
49
+ label: PropTypes.string.isRequired,
50
+ entityType: EntityType.isRequired
56
51
  })
57
52
  };
58
- exports.default = EntityOption;
53
+ export default EntityOption;
@@ -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,36 +9,32 @@ var __assign = (this && this.__assign) || function () {
10
9
  };
11
10
  return __assign.apply(this, arguments);
12
11
  };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- var react_1 = __importDefault(require("react"));
18
- var prop_types_1 = __importDefault(require("prop-types"));
19
- var EntityTypeIcon_1 = __importDefault(require("../../../../EntityTypeIcon/EntityTypeIcon"));
20
- var MenuItem_1 = __importDefault(require("@material-ui/core/MenuItem"));
21
- var styles_1 = require("./styles");
12
+ import React from 'react';
13
+ import PropTypes from 'prop-types';
14
+ import EntityTypeIcon from '../../../../EntityTypeIcon/EntityTypeIcon';
15
+ import MenuItem from '@material-ui/core/MenuItem';
16
+ import { useStyles } from './styles';
22
17
  var EntityTypeOption = function (_a) {
23
18
  var innerRef = _a.innerRef, innerProps = _a.innerProps, selectOption = _a.selectOption, data = _a.data;
24
- var styles = styles_1.useStyles();
19
+ var styles = useStyles();
25
20
  var label = data.label, uri = data.uri;
26
- return (react_1.default.createElement(MenuItem_1.default, __assign({ className: styles.entityContainer, ref: innerRef, key: uri, onClick: function () { return selectOption({ label: label, uri: uri }); } }, innerProps),
27
- react_1.default.createElement(EntityTypeIcon_1.default, { className: styles.entityAvatar, entityType: data }),
28
- react_1.default.createElement("span", { className: styles.entityLabel }, label)));
21
+ return (React.createElement(MenuItem, __assign({ className: styles.entityContainer, ref: innerRef, key: uri, onClick: function () { return selectOption({ label: label, uri: uri }); } }, innerProps),
22
+ React.createElement(EntityTypeIcon, { className: styles.entityAvatar, entityType: data }),
23
+ React.createElement("span", { className: styles.entityLabel }, label)));
29
24
  };
30
25
  EntityTypeOption.propTypes = {
31
- innerRef: prop_types_1.default.oneOfType([
32
- prop_types_1.default.oneOf([null]),
33
- prop_types_1.default.func,
34
- prop_types_1.default.shape({
35
- current: prop_types_1.default.any.isRequired
26
+ innerRef: PropTypes.oneOfType([
27
+ PropTypes.oneOf([null]),
28
+ PropTypes.func,
29
+ PropTypes.shape({
30
+ current: PropTypes.any.isRequired
36
31
  })
37
32
  ]),
38
- innerProps: prop_types_1.default.object.isRequired,
39
- selectOption: prop_types_1.default.func.isRequired,
40
- data: prop_types_1.default.shape({
41
- uri: prop_types_1.default.string.isRequired,
42
- label: prop_types_1.default.string.isRequired
33
+ innerProps: PropTypes.object.isRequired,
34
+ selectOption: PropTypes.func.isRequired,
35
+ data: PropTypes.shape({
36
+ uri: PropTypes.string.isRequired,
37
+ label: PropTypes.string.isRequired
43
38
  })
44
39
  };
45
- exports.default = EntityTypeOption;
40
+ export default EntityTypeOption;