@reltio/components 1.4.698 → 1.4.702
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.
- package/HOCs/index.js +10 -0
- package/HOCs/withAsyncMount/withAsyncMount.js +44 -0
- package/HOCs/withTooltip/propTypes.js +11 -0
- package/HOCs/withTooltip/withTooltip.js +71 -0
- package/components/ArrowExpandButton/ArrowExpandButton.js +39 -0
- package/components/ArrowExpandButton/styles.js +17 -0
- package/components/AttributeListItem/AttrTypeIcon.js +29 -0
- package/components/AttributeListItem/AttributeListItem.js +70 -0
- package/components/AttributeListItem/styles.js +97 -0
- package/components/AutoSizeList/AutoSizeList.js +70 -0
- package/components/AvatarWithFallback/AvatarWithFallback.js +79 -0
- package/components/BasicTableView/BasicTable/BasicTable.js +106 -0
- package/components/BasicTableView/BasicTable/HOCs/withFilter.js +38 -0
- package/components/BasicTableView/BasicTable/HOCs/withFilterAtBottom.js +43 -0
- package/components/BasicTableView/BasicTable/HOCs/withTableContext.js +47 -0
- package/components/BasicTableView/BasicTable/cell-value-renderers/BlobRenderer.js +20 -0
- package/components/BasicTableView/BasicTable/cell-value-renderers/DefaultCellValueRenderer.js +43 -0
- package/components/BasicTableView/BasicTable/cell-value-renderers/index.js +8 -0
- package/components/BasicTableView/BasicTable/cell-value-renderers/styles.js +22 -0
- package/components/BasicTableView/BasicTable/contexts/RowCollapseContext.js +9 -0
- package/components/BasicTableView/BasicTable/contexts/TableContext.js +9 -0
- package/components/BasicTableView/BasicTable/contexts/index.js +5 -0
- package/components/BasicTableView/BasicTable/helpers/dataHelpers.js +122 -0
- package/components/BasicTableView/BasicTable/helpers/defaultGetRowCellHeight.js +20 -0
- package/components/BasicTableView/BasicTable/helpers/defaultRenderRowCell.js +33 -0
- package/components/BasicTableView/BasicTable/helpers/nestedHelpers.js +80 -0
- package/components/BasicTableView/BasicTable/hooks/index.js +10 -0
- package/components/BasicTableView/BasicTable/hooks/useBasicTableCellRenderer.js +94 -0
- package/components/BasicTableView/BasicTable/hooks/useCollapsibleTableRows.js +43 -0
- package/components/BasicTableView/BasicTable/hooks/useDynamicRowCellHeight.js +37 -0
- package/components/BasicTableView/BasicTableHeader/ColumnsSettings/ColumnListItem.js +30 -0
- package/components/BasicTableView/BasicTableHeader/ColumnsSettings/ColumnsSettings.js +91 -0
- package/components/BasicTableView/BasicTableHeader/ColumnsSettings/columnHelpers.js +86 -0
- package/components/BasicTableView/BasicTableHeader/ColumnsSettings/styles.js +12 -0
- package/components/BasicTableView/BasicTableHeader/FilterButton/FilterButton.js +26 -0
- package/components/BasicTableView/BasicTableHeader/FilterButton/styles.js +18 -0
- package/components/BasicTableView/BasicTablePagination/BasicTablePagination.js +80 -0
- package/components/BasicTableView/BasicTablePagination/styles.js +32 -0
- package/components/BasicTableView/CollapseRowButton/CollapseRowButton.js +48 -0
- package/components/BasicTableView/CollapseRowButton/styles.js +9 -0
- package/components/BasicTableView/ColumnFilter/ColumnFilter.js +113 -0
- package/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.js +40 -0
- package/components/BasicTableView/ColumnFilter/FilterChip/styles.js +27 -0
- package/components/BasicTableView/ColumnFilter/helpers.js +18 -0
- package/components/BasicTableView/ColumnFilter/styles.js +30 -0
- package/components/BasicTableView/RowCellAutoSizer/RowCellAutoSizer.js +56 -0
- package/components/BasicTableView/index.js +45 -0
- package/components/BasicTableView/viewState/basicTableViewState.js +82 -0
- package/components/BasicView/BasicView.js +61 -0
- package/components/BasicView/styles.js +13 -0
- package/components/BasicViewContent/BasicViewContent.js +36 -0
- package/components/BasicViewContent/styles.js +13 -0
- package/components/BasicViewHeader/BasicViewHeader.js +39 -0
- package/components/BasicViewHeader/styles.js +19 -0
- package/components/ClickAwayProvider/ClickAwayProvider.js +22 -0
- package/components/CollaborationItem/Avatar/Avatar.js +39 -0
- package/components/CollaborationItem/Avatar/styles.js +13 -0
- package/components/CollaborationItem/CollaborationItem.js +48 -0
- package/components/CollaborationItem/Comment/Comment.js +78 -0
- package/components/CollaborationItem/Comment/styles.js +51 -0
- package/components/CollaborationItem/CommentContent/CommentContent.js +42 -0
- package/components/CollaborationItem/CommentContent/styles.js +12 -0
- package/components/CollaborationItem/CommentTarget/CommentTarget.js +98 -0
- package/components/CollaborationItem/CommentTarget/styles.js +23 -0
- package/components/CollaborationItem/RepliedComment/RepliedComment.js +30 -0
- package/components/CollaborationItem/RepliedComment/styles.js +44 -0
- package/components/CollaborationItem/SendMessageArea/SendMessageArea.js +113 -0
- package/components/CollaborationItem/SendMessageArea/styles.js +33 -0
- package/components/CollaborationItem/TextFieldWithMentions/TextFieldWithMentions.js +70 -0
- package/components/CollaborationItem/TextFieldWithMentions/styles.js +54 -0
- package/components/CollaborationItem/styles.js +21 -0
- package/components/CollaborationItem/utils/index.js +53 -0
- package/components/CollaborationPopup/CollaborationPopup.js +68 -0
- package/components/CollaborationPopup/styles.js +69 -0
- package/components/CollapseButton/CollapseButton.js +47 -0
- package/components/CollapseButton/styles.js +12 -0
- package/components/ColorBar/ColorBar.js +38 -0
- package/components/ColorBar/styles.js +17 -0
- package/components/CommentsContainer/CommentsContainer.js +70 -0
- package/components/CommentsContainer/buttons/AddCommentButton.js +19 -0
- package/components/CommentsContainer/buttons/CommentButton.js +20 -0
- package/components/CommentsContainer/buttons/styles.js +36 -0
- package/components/CommentsContainer/styles.js +25 -0
- package/components/ConfigureColumnsPopup/ConfigureColumnsPopup.js +121 -0
- package/components/ConfigureColumnsPopup/styles.js +13 -0
- package/components/ConfirmationDialog/ConfirmationDialog.js +28 -0
- package/components/ConfirmationDialog/styles.js +40 -0
- package/components/ConnectionRelationTypeSelector/ConnectionRelationTypeSelector.js +83 -0
- package/components/DataTypeValue/DataTypeValue.js +28 -0
- package/components/DateRangePicker/DateRangePicker.js +87 -0
- package/components/DateRangePicker/styles.js +43 -0
- package/components/Drawer/Drawer.js +72 -0
- package/components/DropDownMenuButton/DropDownMenuButton.js +74 -0
- package/components/DropDownMenuButton/MenuItemRenderer.js +44 -0
- package/components/DropDownMenuButton/styles.js +28 -0
- package/components/DropDownSelector/DropDownSelector.js +97 -0
- package/components/DropDownSelector/components/Menu.js +36 -0
- package/components/DropDownSelector/components/SingleValue.js +30 -0
- package/components/DropDownSelector/components/styles.js +36 -0
- package/components/DropDownSelector/styles.js +69 -0
- package/components/EmptySearchResult/NoData.js +25 -0
- package/components/EmptySearchResult/NoMessageComponent.js +39 -0
- package/components/EmptySearchResult/NoResults.js +24 -0
- package/components/EmptySearchResult/index.js +7 -0
- package/components/EmptySearchResult/styles.js +26 -0
- package/components/EmptyState/EmptyState.js +36 -0
- package/components/EmptyState/styles.js +68 -0
- package/components/EntityAvatar/EntityAvatar.js +26 -0
- package/components/EntityAvatar/no-photo.svg.js +4 -0
- package/components/EntityTypeBadge/EntityTypeBadge.js +25 -0
- package/components/EntityTypeBadge/styles.js +23 -0
- package/components/EntityTypeIcon/EntityTypeIcon.js +26 -0
- package/components/EntityTypesSelector/EntityTypesSelector.js +141 -0
- package/components/EntityTypesSelector/ListLabel/ListLabel.js +51 -0
- package/components/EntityTypesSelector/ListLabel/helpers.js +49 -0
- package/components/EntityTypesSelector/ListLabel/styles.js +36 -0
- package/components/EntityTypesSelector/SelectEntityTypesList.js +70 -0
- package/components/EntityTypesSelector/styles.js +72 -0
- package/components/EntityUriLink/EntityUriLink.js +43 -0
- package/components/ErrorBoundary/ErrorBoundary.js +46 -0
- package/components/ErrorPopup/ErrorPopup.js +32 -0
- package/components/ErrorPopup/styles.js +11 -0
- package/components/ErrorWrapper/ErrorMessage.js +17 -0
- package/components/ErrorWrapper/ErrorWrapper.js +62 -0
- package/components/ErrorWrapper/styles.js +18 -0
- package/components/ExpandableSearchInput/ExpandableSearchInput.js +50 -0
- package/components/ExpandableSearchInput/styles.js +23 -0
- package/components/ExpandedValueTooltip/ExpandedValueTooltip.js +88 -0
- package/components/FacetViewHeader/FacetViewHeader.js +15 -0
- package/components/FacetViewHeader/styles.js +17 -0
- package/components/FlipCard/FlipCard.js +41 -0
- package/components/FlipCard/styles.js +55 -0
- package/components/FlipCard/types/index.js +2 -0
- package/components/HideOnShrink/HideOnShrink.js +21 -0
- package/components/HierarchicalAttributeTooltip/HierarchicalAttributeTooltip.js +45 -0
- package/components/HierarchicalAttributeTooltip/styles.js +54 -0
- package/components/Highlighter/Highlighter.js +18 -0
- package/components/Highlighter/styles.js +9 -0
- package/components/Image/CheckedIcon/CheckedIcon.js +18 -0
- package/components/Image/CheckedIcon/styles.js +10 -0
- package/components/Image/Image.js +104 -0
- package/components/Image/ImageActionsOverlay/ImageActionsOverlay.js +81 -0
- package/components/Image/ImageActionsOverlay/styles.js +61 -0
- package/components/Image/styles.js +33 -0
- package/components/ImageAttributesGallery/GalleryView/GalleryView.js +45 -0
- package/components/ImageAttributesGallery/GalleryView/styles.js +14 -0
- package/components/ImageAttributesGallery/HeaderLeft/HeaderLeft.js +17 -0
- package/components/ImageAttributesGallery/HeaderLeft/styles.js +12 -0
- package/components/ImageAttributesGallery/HeaderRight/HeaderRight.js +26 -0
- package/components/ImageAttributesGallery/HeaderRight/styles.js +27 -0
- package/components/ImageAttributesGallery/ImageAttributesGallery.js +121 -0
- package/components/ImageDetailsView/ImageDetailsView.js +52 -0
- package/components/ImageDetailsView/ImageDetailsViewCarousel/ImageDetailsViewCarousel.js +53 -0
- package/components/ImageDetailsView/ImageDetailsViewCarousel/Thumbnails/Thumbnails.js +72 -0
- package/components/ImageDetailsView/ImageDetailsViewCarousel/Thumbnails/styles.js +26 -0
- package/components/ImageDetailsView/ImageDetailsViewCarousel/styles.js +47 -0
- package/components/ImageDetailsView/ImageDetailsViewSidebar/ImageDetailsViewSidebar.js +61 -0
- package/components/ImageDetailsView/ImageDetailsViewSidebar/styles.js +45 -0
- package/components/ImageDetailsView/MetaInfo/MetaInfo.js +29 -0
- package/components/ImageDetailsView/MetaInfoForm/MetaInfoForm.js +32 -0
- package/components/ImageDetailsView/MetaInfoForm/styles.js +24 -0
- package/components/ImageDetailsView/MetaInfoHeader/MetaInfoHeader.js +52 -0
- package/components/ImageDetailsView/MetaInfoHeader/styles.js +21 -0
- package/components/ImageDetailsView/MetaInfoList/MetaInfoItem/MetaInfoItem.js +17 -0
- package/components/ImageDetailsView/MetaInfoList/MetaInfoItem/styles.js +25 -0
- package/components/ImageDetailsView/MetaInfoList/MetaInfoList.js +32 -0
- package/components/ImageDetailsView/MetaInfoList/styles.js +17 -0
- package/components/ImageDetailsView/constants/index.js +42 -0
- package/components/ImageDetailsView/helpers/index.js +97 -0
- package/components/ImageDetailsView/hooks/useEditMetaInfo.js +70 -0
- package/components/ImageDetailsView/styles.js +18 -0
- package/components/ImageDetailsView/theme/index.js +12 -0
- package/components/ImageDetailsView/types/index.js +2 -0
- package/components/ImageGalleryDialog/ImageGalleryDialog.js +70 -0
- package/components/ImageGalleryDialog/styles.js +49 -0
- package/components/ImportButton/ImportButton.js +40 -0
- package/components/ImportButton/styles.js +16 -0
- package/components/LightArrowTooltip/LightArrowTooltip.js +24 -0
- package/components/LightArrowTooltip/styles.js +15 -0
- package/components/LinearLoadIndicator/LinearLoadIndicator.js +17 -0
- package/components/LinearLoadIndicator/styles.js +19 -0
- package/components/Link/Link.js +19 -0
- package/components/Link/styles.js +14 -0
- package/components/LoadingSpinner/LoadingSpinner.js +15 -0
- package/components/LoadingSpinner/SpinnerSmall.gif.js +4 -0
- package/components/Marginator/Marginator.js +16 -0
- package/components/MatchRulesBlock/MatchRulesBadge/MatchRulesBadge.js +59 -0
- package/components/MatchRulesBlock/MatchRulesBadge/styles.js +23 -0
- package/components/MatchRulesBlock/MatchRulesBlock.js +24 -0
- package/components/MatchRulesBlock/MatchRulesTitle.js +12 -0
- package/components/MatchRulesBlock/MatchRulesTooltip/MatchRulesTooltip.js +18 -0
- package/components/MatchRulesBlock/MatchRulesTooltip/styles.js +19 -0
- package/components/MatchRulesBlock/SimpleMatchRules/SimpleMatchRules.js +18 -0
- package/components/MatchRulesBlock/SimpleMatchRules/styles.js +18 -0
- package/components/MatchRulesBlock/SimpleMatchRulesBlock/SimpleMatchRulesBlock.js +46 -0
- package/components/MatchRulesBlock/SimpleMatchRulesBlock/styles.js +19 -0
- package/components/MatchRulesBlock/SimpleMatchRulesBuilder/SimpleMatchRulesBuilder.js +43 -0
- package/components/MatchRulesBlock/TransitiveMatchBlock/TransitiveMatchBlock.js +58 -0
- package/components/MatchRulesBlock/TransitiveMatchBlock/styles.js +14 -0
- package/components/MatchRulesBlock/TransitiveMatchRules/TransitiveMatchRule.js +41 -0
- package/components/MatchRulesBlock/TransitiveMatchRules/styles.js +23 -0
- package/components/MatchRulesBlock/TransitiveMatchRulesTooltip/TransitiveMatchRulesTooltip.js +19 -0
- package/components/MatchRulesBlock/TransitiveMatchRulesTooltip/styles.js +13 -0
- package/components/MatchRulesBlock/types/index.js +2 -0
- package/components/ModeSwitcher/ModeSwitcher.js +25 -0
- package/components/ModeSwitcher/styles.js +36 -0
- package/components/ModeSwitcherSelect/ModeSwitcherSelect.js +87 -0
- package/components/ModeSwitcherSelect/index.js +5 -0
- package/components/ModeSwitcherSelect/styles.js +70 -0
- package/components/MultipleInput/MultipleInput.js +113 -0
- package/components/MultipleInput/styles.js +22 -0
- package/components/MultipliableSelect/MultipliableSelect.js +59 -0
- package/components/MultipliableSelect/styles.js +14 -0
- package/components/Popper/Popper.js +94 -0
- package/components/Popper/styles.js +17 -0
- package/components/Popper/utils.js +45 -0
- package/components/PopupWithArrow/PopupWithArrow.js +34 -0
- package/components/PopupWithArrow/styles.js +75 -0
- package/components/PotentialMatchReviewCard/PotentialMatchReviewCard.js +65 -0
- package/components/PotentialMatchReviewCard/styles.js +65 -0
- package/components/ProfileBand/ProfileBand.js +96 -0
- package/components/ProfileBand/styles.js +92 -0
- package/components/ProfileCard/ProfileCard.js +89 -0
- package/components/ProfileCard/styles.js +64 -0
- package/components/QueryBuilderRow/QueryBuilderRow.js +78 -0
- package/components/QueryBuilderRow/components/ReadOnlyFilter.js +21 -0
- package/components/QueryBuilderRow/components/ReadOnlyLogicOperator.js +21 -0
- package/components/QueryBuilderRow/components/styles.js +25 -0
- package/components/QueryBuilderRow/styles.js +22 -0
- package/components/QueryBuilderRowsGroup/QueryBuilderRowsGroup.js +88 -0
- package/components/ReactSelect/AsyncSelect.js +8 -0
- package/components/ReactSelect/CreatableSelect.js +8 -0
- package/components/ReactSelect/MultiSelect/MultiSelect.js +233 -0
- package/components/ReactSelect/MultiSelect/components/Option.js +57 -0
- package/components/ReactSelect/MultiSelect/components/index.js +10 -0
- package/components/ReactSelect/MultiSelect/index.js +7 -0
- package/components/ReactSelect/Select.js +8 -0
- package/components/ReactSelect/commonComponents/ClearIndicator.js +36 -0
- package/components/ReactSelect/commonComponents/Control.js +66 -0
- package/components/ReactSelect/commonComponents/DropdownIndicator.js +36 -0
- package/components/ReactSelect/commonComponents/GroupHeading.js +22 -0
- package/components/ReactSelect/commonComponents/Menu.js +37 -0
- package/components/ReactSelect/commonComponents/MultiValue.js +37 -0
- package/components/ReactSelect/commonComponents/NoOptionsMessage.js +17 -0
- package/components/ReactSelect/commonComponents/Option.js +56 -0
- package/components/ReactSelect/commonComponents/Placeholder.js +29 -0
- package/components/ReactSelect/commonComponents/SingleValue.js +29 -0
- package/components/ReactSelect/commonComponents/ValueContainer.js +19 -0
- package/components/ReactSelect/commonComponents/index.js +30 -0
- package/components/ReactSelect/optionFilters.js +9 -0
- package/components/ReactSelect/styles.js +69 -0
- package/components/ReactSelect/withMuiSkin.js +97 -0
- package/components/ReactSortableTree/index.js +30 -0
- package/components/ReactSortableTree/node-renderer-default.js +148 -0
- package/components/ReactSortableTree/nodeRendererDefaultStyle.js +278 -0
- package/components/ReactSortableTree/placeholder-renderer-default.js +23 -0
- package/components/ReactSortableTree/placeholderRendererDefaultStyle.js +46 -0
- package/components/ReactSortableTree/react-sortable-tree.js +809 -0
- package/components/ReactSortableTree/reactSortableTreeStyles.js +23 -0
- package/components/ReactSortableTree/tree-node.js +200 -0
- package/components/ReactSortableTree/tree-placeholder.js +92 -0
- package/components/ReactSortableTree/treeNodeStyle.js +236 -0
- package/components/ReactSortableTree/utils/classnames.js +28 -0
- package/components/ReactSortableTree/utils/default-handlers.js +45 -0
- package/components/ReactSortableTree/utils/dnd-manager.js +326 -0
- package/components/ReactSortableTree/utils/generic-utils.js +15 -0
- package/components/ReactSortableTree/utils/memoized-tree-data-utils.js +26 -0
- package/components/ReactSortableTree/utils/tree-data-utils.js +960 -0
- package/components/ReltioGridLayout/ReltioGridLayout.js +79 -0
- package/components/ReltioGridLayout/helpers.js +52 -0
- package/components/ReltioGridLayout/icons/ResizeIcon.svg.js +4 -0
- package/components/ReltioGridLayout/styles.js +71 -0
- package/components/RequiredMark/RequiredMark.js +12 -0
- package/components/RequiredMark/styles.js +9 -0
- package/components/ResizablePanes/ResizablePanes.js +75 -0
- package/components/ResizablePanes/styles.js +48 -0
- package/components/Score/DQLabel.js +14 -0
- package/components/Score/Score.js +26 -0
- package/components/Score/ScoreLabel.js +29 -0
- package/components/Score/styles.js +36 -0
- package/components/ScrollableTabs/ScrollableTabs.js +51 -0
- package/components/ScrollableTabs/styles.js +32 -0
- package/components/SearchInput/SearchInput.js +68 -0
- package/components/SearchInput/WhiteSearchInput.js +36 -0
- package/components/SearchInput/styles.js +32 -0
- package/components/SelectionPopup/SelectionPopup.js +70 -0
- package/components/SelectionPopup/SelectionPopupPopper/SelectionPopupPopper.js +60 -0
- package/components/SelectionPopup/helpers.js +70 -0
- package/components/SelectionPopup/styles.js +41 -0
- package/components/SelectorWithOnlyOptionAutoSelect/SelectorWithOnlyOptionAutoSelect.js +74 -0
- package/components/SelectorWithOnlyOptionAutoSelect/styles.js +31 -0
- package/components/SideIconPanel/SideButtonsPanel.js +42 -0
- package/components/SideIconPanel/styles.js +41 -0
- package/components/SidePanel/SidePanel.js +16 -0
- package/components/SidePanel/SidePanelContentHeader/SidePanelContentHeader.js +24 -0
- package/components/SidePanel/SidePanelContentHeader/styles.js +23 -0
- package/components/SidePanel/styles.js +16 -0
- package/components/SimpleDropDownSelector/DropDownPlaceholder.js +31 -0
- package/components/SimpleDropDownSelector/DropDownValue.js +23 -0
- package/components/SimpleDropDownSelector/SimpleDropDownSelector.js +59 -0
- package/components/SimpleDropDownSelector/styles.js +13 -0
- package/components/SimpleInput/SimpleInput.js +77 -0
- package/components/SmallIconButton/SmallIconButton.js +109 -0
- package/components/SmallIconButton/index.js +11 -0
- package/components/SourceIcon/SourceIcon.js +18 -0
- package/components/Spacer/Spacer.js +8 -0
- package/components/Title/Title.js +27 -0
- package/components/Title/styles.js +11 -0
- package/components/UploadFileButton/UploadFileButton.js +122 -0
- package/components/UploadFileButton/styles.js +20 -0
- package/components/UploadImageDialog/DividerWithText/DividerWithText.js +20 -0
- package/components/UploadImageDialog/DividerWithText/styles.js +24 -0
- package/components/UploadImageDialog/ErrorSnackbar/ErrorSnackbar.js +18 -0
- package/components/UploadImageDialog/ErrorSnackbar/styles.js +9 -0
- package/components/UploadImageDialog/ImageByUrlField/ImageByUrlField.js +63 -0
- package/components/UploadImageDialog/ImageByUrlField/styles.js +32 -0
- package/components/UploadImageDialog/SelectImageButton/SelectImageButton.js +23 -0
- package/components/UploadImageDialog/TargetBox/TargetBox.js +45 -0
- package/components/UploadImageDialog/TargetBox/styles.js +30 -0
- package/components/UploadImageDialog/UploadImageDialog.js +87 -0
- package/components/UploadImageDialog/constants/index.js +5 -0
- package/components/UploadImageDialog/styles.js +32 -0
- package/components/ValueChip/ValueChip.js +48 -0
- package/components/ValueChip/styles.js +37 -0
- package/components/VerticalDivider/VerticalDivider.js +22 -0
- package/components/VerticalHeadingsTable/VerticalHeadingsTable.js +72 -0
- package/components/ViewMoreToggle/ViewMoreToggle.js +26 -0
- package/components/ViewMoreToggle/styles.js +20 -0
- package/components/VirtualGroupedList/VirtualGroupedList.js +223 -0
- package/components/VirtualGroupedList/helpers.js +43 -0
- package/components/VirtualGroupedList/styles.js +17 -0
- package/components/activityLog/ActivityExportButton/ActivityExportButton.js +80 -0
- package/components/activityLog/ActivityExportButton/styles.js +15 -0
- package/components/activityLog/ActivityFilterEditor/ActivityDateRangeEditor.js +85 -0
- package/components/activityLog/ActivityFilterEditor/ActivityFilterEditor.js +89 -0
- package/components/activityLog/ActivityFilterEditor/ActivitySelector.js +30 -0
- package/components/activityLog/ActivityFilterEditor/AttributeSelector.js +103 -0
- package/components/activityLog/ActivityFilterEditor/DateRangeSelector.js +114 -0
- package/components/activityLog/ActivityFilterEditor/IntervalSelector.js +51 -0
- package/components/activityLog/ActivityFilterEditor/SourceSelector.js +30 -0
- package/components/activityLog/ActivityFilterEditor/UserSelector.js +62 -0
- package/components/activityLog/ActivityFilterEditor/styles.js +103 -0
- package/components/activityLog/ActivityFilterEditor/utils/getSelectorActivityTypes.js +35 -0
- package/components/activityLog/ActivityLog/ActivityLog.js +67 -0
- package/components/activityLog/ActivityLog/helpers.js +33 -0
- package/components/activityLog/ActivityLog/items/ActivityItem/ActivityItem.js +30 -0
- package/components/activityLog/ActivityLog/items/ActivityItem/styles.js +56 -0
- package/components/activityLog/ActivityLog/items/GroupItem/GroupItem.js +22 -0
- package/components/activityLog/ActivityLog/items/GroupItem/styles.js +27 -0
- package/components/activityLog/ActivityLog/styles.js +39 -0
- package/components/activityLog/ActivityLogFilter/ActivityLogFilter.js +63 -0
- package/components/activityLog/ActivityLogFilter/ActivityLogFilterHeader.js +26 -0
- package/components/activityLog/ActivityLogFilter/helpers.js +42 -0
- package/components/activityLog/ActivityLogFilter/styles.js +21 -0
- package/components/activityLog/activities/ActivitiesFactory.js +121 -0
- package/components/activityLog/activities/ActivityTitle/ActivityTitle.js +16 -0
- package/components/activityLog/activities/ActivityTitle/styles.js +20 -0
- package/components/activityLog/activities/CommentActivity.js +12 -0
- package/components/activityLog/activities/EntityObject/EntityObject.js +19 -0
- package/components/activityLog/activities/EntityObject/styles.js +17 -0
- package/components/activityLog/activities/GroupActivity.js +21 -0
- package/components/activityLog/activities/MergeActivity.js +19 -0
- package/components/activityLog/activities/MoreItemsLink/MoreItemsLink.js +40 -0
- package/components/activityLog/activities/PotentialMatchActivity.js +16 -0
- package/components/activityLog/activities/ProfileActivity.js +19 -0
- package/components/activityLog/activities/RelationActivity.js +19 -0
- package/components/activityLog/activities/RelationObject/RelationObject.js +20 -0
- package/components/activityLog/activities/RelationObject/styles.js +20 -0
- package/components/activityLog/activities/SearchActivity.js +47 -0
- package/components/activityLog/activities/SimpleActivity.js +22 -0
- package/components/activityLog/activities/fields/DeltaField.js +39 -0
- package/components/activityLog/activities/fields/PotentialMatchField.js +51 -0
- package/components/activityLog/activities/fields/commonStyles.js +22 -0
- package/components/activityLog/activities/fields/styles.js +42 -0
- package/components/activityLog/activities/records/CollapsibleActivityRecords.js +21 -0
- package/components/activityLog/activities/records/EntityRecord.js +25 -0
- package/components/activityLog/activities/records/PotentialMatchRecord.js +19 -0
- package/components/activityLog/activities/records/RecordUpdates.js +23 -0
- package/components/activityLog/activities/records/RelationRecord.js +23 -0
- package/components/activityLog/activities/records/styles.js +38 -0
- package/components/activityLog/activities/styles.js +17 -0
- package/components/activityLog/contexts/CollapsibleItemsContext/index.js +51 -0
- package/components/activityLog/hooks/useActivitiesLoader.js +62 -0
- package/components/activityLog/hooks/useProfileActivitiesLoader.js +62 -0
- package/components/activityLog/hooks/useReadableSearchState.js +48 -0
- package/components/activityLog/index.js +25 -0
- package/components/activityLog/types/ActivitiesFilter.js +2 -0
- package/components/activityLog/types/ActivityData.js +2 -0
- package/components/activityLog/types/ActivityDelta.js +2 -0
- package/components/activityLog/types/ActivityItem.js +2 -0
- package/components/activityLog/types/ActivityTypes.js +33 -0
- package/components/activityLog/types/AttributeOption.js +2 -0
- package/components/activityLog/types/DateRangeTypes.js +9 -0
- package/components/activityLog/types/DeltaTypes.js +9 -0
- package/components/activityLog/types/DeltaValue.js +2 -0
- package/components/activityLog/types/index.js +9 -0
- package/components/activityLog/utils/activities.js +89 -0
- package/components/activityLog/utils/filters.js +80 -0
- package/components/attributes/AttributesView/AttributesView.js +36 -0
- package/components/attributes/AttributesView/index.js +15 -0
- package/components/attributes/BranchDecorator/BranchDecorator.js +16 -0
- package/components/attributes/BranchDecorator/styles.js +39 -0
- package/components/attributes/ImageAttributesLine/ImageAttributesLine.js +123 -0
- package/components/attributes/ImageAttributesLine/constants.js +9 -0
- package/components/attributes/ImageAttributesLine/index.js +8 -0
- package/components/attributes/ImageAttributesLine/styles.js +49 -0
- package/components/attributes/OvIcon/OvIcon.js +33 -0
- package/components/attributes/OvIcon/index.js +8 -0
- package/components/attributes/OvIcon/styles.js +17 -0
- package/components/attributes/PivotingAttributes/PivotingTooltip.js +62 -0
- package/components/attributes/PivotingAttributes/PivotingTooltipContent.js +82 -0
- package/components/attributes/PivotingAttributes/helpers.js +118 -0
- package/components/attributes/PivotingAttributes/styles.js +95 -0
- package/components/attributes/editMode/AttributesFactory/Attribute.js +11 -0
- package/components/attributes/editMode/AttributesFactory/AttributesFactory.js +50 -0
- package/components/attributes/editMode/AttributesList/AttributesList.js +89 -0
- package/components/attributes/editMode/AttributesList/helpers.js +43 -0
- package/components/attributes/editMode/AttributesList/index.js +8 -0
- package/components/attributes/editMode/AttributesPager/AttributeRenderer.js +99 -0
- package/components/attributes/editMode/AttributesPager/AttributesPager.js +88 -0
- package/components/attributes/editMode/AttributesPager/CardinalityMessage.js +72 -0
- package/components/attributes/editMode/AttributesPager/SpecialRenderer.js +86 -0
- package/components/attributes/editMode/AttributesPager/index.js +54 -0
- package/components/attributes/editMode/AttributesPager/styles.js +33 -0
- package/components/attributes/editMode/AttributesPager/utils.js +7 -0
- package/components/attributes/editMode/AttributesView/AttributesView.js +67 -0
- package/components/attributes/editMode/AttributesView/index.js +14 -0
- package/components/attributes/editMode/AttributesView/styles.js +15 -0
- package/components/attributes/editMode/ComplexAttribute/ComplexAttribute.js +91 -0
- package/components/attributes/editMode/ComplexAttribute/styles.js +31 -0
- package/components/attributes/editMode/EntityCreator/EntityCreator.js +49 -0
- package/components/attributes/editMode/EntityCreator/index.js +38 -0
- package/components/attributes/editMode/EntitySelector/EntitySelector.js +146 -0
- package/components/attributes/editMode/EntitySelector/components/ClearIndicator.js +20 -0
- package/components/attributes/editMode/EntitySelector/components/EntityOption.js +58 -0
- package/components/attributes/editMode/EntitySelector/components/EntityTypeOption.js +45 -0
- package/components/attributes/editMode/EntitySelector/components/Group.js +40 -0
- package/components/attributes/editMode/EntitySelector/components/SingleValue.js +80 -0
- package/components/attributes/editMode/EntitySelector/components/styles.js +89 -0
- package/components/attributes/editMode/EntitySelector/styles.js +9 -0
- package/components/attributes/editMode/ImageAttributesLine/ImageAttributesLine.js +107 -0
- package/components/attributes/editMode/ImageAttributesLine/index.js +7 -0
- package/components/attributes/editMode/ImageAttributesLine/styles.js +43 -0
- package/components/attributes/editMode/MoreAttributesButton/MoreAttributesButton.js +111 -0
- package/components/attributes/editMode/MoreAttributesButton/index.js +8 -0
- package/components/attributes/editMode/MoreAttributesButton/styles.js +31 -0
- package/components/attributes/editMode/NestedAttribute/NestedAttribute.js +45 -0
- package/components/attributes/editMode/ReferenceAttribute/ReferenceAttribute.js +152 -0
- package/components/attributes/editMode/ReferenceAttribute/index.js +44 -0
- package/components/attributes/editMode/ReferenceAttribute/styles.js +12 -0
- package/components/attributes/editMode/RelationTypeSelector/RelationTypeSelector.js +72 -0
- package/components/attributes/editMode/RelationTypeSelector/components/RelationOption.js +57 -0
- package/components/attributes/editMode/RelationTypeSelector/components/styles.js +55 -0
- package/components/attributes/editMode/SimpleAttributeEditor/SimpleAttributeEditor.js +125 -0
- package/components/attributes/editMode/SimpleAttributeEditor/selectors/getDependentLookupEditorContext.js +36 -0
- package/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/cache.js +19 -0
- package/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/missedParentsMessage.js +20 -0
- package/components/attributes/editMode/SimpleAttributeEditor/selectors/helpers/parents.js +59 -0
- package/components/attributes/editMode/SimpleAttributeEditor/selectors/types.js +2 -0
- package/components/attributes/editMode/SimpleAttributeEditor/styles.js +33 -0
- package/components/attributes/editMode/SimpleAttributeEditor/utils.js +65 -0
- package/components/attributes/helpers/attributesView.js +22 -0
- package/components/attributes/helpers/imageAttributes.js +37 -0
- package/components/attributes/inline/AttributesList/AttributesList.js +42 -0
- package/components/attributes/inline/AttributesList/styles.js +13 -0
- package/components/attributes/inline/AttributesPager/AttributesPager.js +96 -0
- package/components/attributes/inline/AttributesPager/styles.js +14 -0
- package/components/attributes/inline/ComplexAttribute/ComplexAttribute.js +72 -0
- package/components/attributes/inline/ComplexAttribute/styles.js +24 -0
- package/components/attributes/inline/ImageAttribute/ImageAttribute.js +39 -0
- package/components/attributes/inline/ImageAttribute/styles.js +17 -0
- package/components/attributes/inline/ImageAttributesBlock/ImageAttributesBlock.js +34 -0
- package/components/attributes/inline/NestedAttribute/NestedAttribute.js +37 -0
- package/components/attributes/inline/NestedAttributesBlock/NestedAttributesBlock.js +43 -0
- package/components/attributes/inline/ReferenceAttribute/ReferenceAttribute.js +48 -0
- package/components/attributes/inline/ReferenceAttribute/styles.js +14 -0
- package/components/attributes/inline/ReferenceAttributesBlock/ReferenceAttributesBlock.js +34 -0
- package/components/attributes/inline/SimpleAttribute/CrosswalkMenuItem/CrosswalkMenuItem.js +50 -0
- package/components/attributes/inline/SimpleAttribute/CrosswalkMenuItem/styles.js +23 -0
- package/components/attributes/inline/SimpleAttribute/SimpleAttribute.js +99 -0
- package/components/attributes/inline/SimpleAttribute/index.js +8 -0
- package/components/attributes/inline/SimpleAttribute/styles.js +32 -0
- package/components/attributes/inline/SimpleAttributeEditor/SimpleAttributeEditor.js +88 -0
- package/components/attributes/inline/SimpleAttributeEditor/styles.js +24 -0
- package/components/attributes/inline/SimpleAttributesBlock/SimpleAttributesBlock.js +61 -0
- package/components/attributes/inline/SimpleAttributesBlock/styles.js +24 -0
- package/components/attributes/inline/common/ComplexAttributeLabel.js +15 -0
- package/components/attributes/inline/common/CrosswalkIcon.js +20 -0
- package/components/attributes/inline/common/DeleteButton.js +13 -0
- package/components/attributes/inline/common/IgnoreButton.js +14 -0
- package/components/attributes/inline/common/PinButton.js +14 -0
- package/components/attributes/inline/common/SourceItem.js +27 -0
- package/components/attributes/inline/common/__test__/CrosswalkIcon.spec.js +75 -0
- package/components/attributes/inline/common/__test__/IgnoreButton.spec.js +28 -0
- package/components/attributes/inline/common/__test__/PinButton.spec.js +28 -0
- package/components/attributes/inline/common/__test__/SourceItem.spec.js +70 -0
- package/components/attributes/inline/common/styles.js +61 -0
- package/components/attributes/inline/hooks/useAttributeState.js +43 -0
- package/components/attributes/inline/index.js +25 -0
- package/components/attributes/inline/types/AddAttributeEvent.js +2 -0
- package/components/attributes/inline/types/CrosswalksMap.js +2 -0
- package/components/attributes/inline/types/DeleteAttributeEvent.js +2 -0
- package/components/attributes/inline/types/EditAttributeEvent.js +2 -0
- package/components/attributes/inline/types/IgnoreAttributeEvent.js +2 -0
- package/components/attributes/inline/types/PinAttributeEvent.js +2 -0
- package/components/attributes/inline/types/index.js +2 -0
- package/components/attributes/pagersCommon/ShowLess.js +18 -0
- package/components/attributes/pagersCommon/ShowMore.js +20 -0
- package/components/attributes/pagersCommon/styles.js +13 -0
- package/components/attributes/readMode/AttributeValuesBlock/AttributeValuesBlock.js +73 -0
- package/components/attributes/readMode/AttributesFactory/Attribute.js +11 -0
- package/components/attributes/readMode/AttributesFactory/AttributesFactory.js +38 -0
- package/components/attributes/readMode/AttributesList/AttributesList.js +71 -0
- package/components/attributes/readMode/AttributesList/index.js +8 -0
- package/components/attributes/readMode/AttributesPager/AttributesPager.js +76 -0
- package/components/attributes/readMode/AttributesPager/MultiLineRenderer.js +67 -0
- package/components/attributes/readMode/AttributesPager/OneLineRenderer.js +28 -0
- package/components/attributes/readMode/AttributesPager/SpecialRenderer.js +41 -0
- package/components/attributes/readMode/AttributesPager/index.js +15 -0
- package/components/attributes/readMode/AttributesPager/styles.js +92 -0
- package/components/attributes/readMode/AttributesView/AttributesView.js +60 -0
- package/components/attributes/readMode/AttributesView/index.js +14 -0
- package/components/attributes/readMode/AttributesView/styles.js +19 -0
- package/components/attributes/readMode/ComplexAttribute/ComplexAttribute.js +65 -0
- package/components/attributes/readMode/ComplexAttribute/styles.js +23 -0
- package/components/attributes/readMode/ImageAttributesLine/ImageAttributesLine.js +55 -0
- package/components/attributes/readMode/ImageAttributesLine/cross.inline.svg.js +4 -0
- package/components/attributes/readMode/ImageAttributesLine/index.js +8 -0
- package/components/attributes/readMode/ImageAttributesLine/styles.js +90 -0
- package/components/attributes/readMode/NestedAttribute/NestedAttribute.js +72 -0
- package/components/attributes/readMode/NestedAttribute/index.js +8 -0
- package/components/attributes/readMode/NestedAttribute/styles.js +28 -0
- package/components/attributes/readMode/ReferenceAttribute/ReferenceAttribute.js +81 -0
- package/components/attributes/readMode/ReferenceAttribute/index.js +17 -0
- package/components/attributes/readMode/ReferenceAttribute/styles.js +30 -0
- package/components/attributes/readMode/SimpleAttribute/SimpleAttribute.js +52 -0
- package/components/attributes/readMode/SimpleAttribute/index.js +8 -0
- package/components/attributes/readMode/SimpleAttribute/styles.js +37 -0
- package/components/attributes/readMode/SpecialAttributes/Roles/Role.js +41 -0
- package/components/attributes/readMode/SpecialAttributes/Roles/Roles.js +13 -0
- package/components/attributes/readMode/SpecialAttributes/Roles/index.js +8 -0
- package/components/attributes/readMode/SpecialAttributes/SpecialAttributesArray.js +29 -0
- package/components/attributes/readMode/SpecialAttributes/Tags/Tag.js +43 -0
- package/components/attributes/readMode/SpecialAttributes/Tags/Tags.js +13 -0
- package/components/attributes/readMode/SpecialAttributes/Tags/index.js +8 -0
- package/components/attributes/readMode/SpecialAttributes/styles.js +20 -0
- package/components/attributes/readMode/helpers/historyAppearance.js +65 -0
- package/components/attributes/types/attributesView.js +2 -0
- package/components/attributes/types/index.js +13 -0
- package/components/charts/ActiveShape/ActiveShape.js +52 -0
- package/components/charts/BarChart/BarChart.js +37 -0
- package/components/charts/BarChart/getBarChartSettings.js +52 -0
- package/components/charts/BubbleChart/BubbleChart.js +84 -0
- package/components/charts/BubbleChart/helpers.js +28 -0
- package/components/charts/BubbleChart/styles.js +10 -0
- package/components/charts/BubbleChart/useBubbles.js +18 -0
- package/components/charts/ChartsFactory.js +57 -0
- package/components/charts/CloudChart/CloudChart.js +72 -0
- package/components/charts/CloudChart/styles.js +34 -0
- package/components/charts/CloudChart/useCloud.js +36 -0
- package/components/charts/CustomLegend/CustomLegend.js +17 -0
- package/components/charts/CustomLegend/getLegendProps.js +23 -0
- package/components/charts/CustomLegend/styles.js +41 -0
- package/components/charts/CustomTooltip/CustomTooltip.js +29 -0
- package/components/charts/CustomTooltip/styles.js +31 -0
- package/components/charts/HOCs/withPercents.js +60 -0
- package/components/charts/LineChart/LineChart.js +48 -0
- package/components/charts/LineChart/getLineChartSettings.js +60 -0
- package/components/charts/MapChart/Legend/Legend.js +22 -0
- package/components/charts/MapChart/Legend/styles.js +49 -0
- package/components/charts/MapChart/MapChart.js +115 -0
- package/components/charts/MapChart/styles.js +16 -0
- package/components/charts/MapChart/useGeography.js +23 -0
- package/components/charts/PieChart/PieChart.js +67 -0
- package/components/charts/TableWithBars/TableWithBars.js +71 -0
- package/components/charts/TableWithBars/cell-renderers/AttributeCellRenderer.js +30 -0
- package/components/charts/TableWithBars/cell-renderers/HeadCellRenderer.js +40 -0
- package/components/charts/TableWithBars/cell-renderers/NumberCellValueRenderer.js +20 -0
- package/components/charts/TableWithBars/cell-renderers/styles.js +71 -0
- package/components/charts/TableWithBars/styles.js +19 -0
- package/components/charts/TreeChart/TreeChart.js +66 -0
- package/components/charts/TreeChart/styles.js +16 -0
- package/components/charts/hooks/useClickableStyle.js +14 -0
- package/components/charts/hooks/useTooltipState.js +30 -0
- package/components/charts/index.js +18 -0
- package/components/charts/types/BarChartOptions.js +2 -0
- package/components/charts/types/ChartData.js +2 -0
- package/components/charts/types/ChartProps.js +2 -0
- package/components/charts/types/LineChartOptions.js +2 -0
- package/components/charts/types/TableWithBarsOptions.js +2 -0
- package/components/charts/types/index.js +2 -0
- package/components/commonReactSelectComponents/DropdownIndicator.js +38 -0
- package/components/commonReactSelectComponents/DropdownIndicatorWithIconButton.js +38 -0
- package/components/commonReactSelectComponents/MenuWithPopper.js +79 -0
- package/components/commonReactSelectComponents/arrowIndicatorStyles.js +12 -0
- package/components/commonReactSelectComponents/menuStyles.js +13 -0
- package/components/editors/BooleanEditor/BooleanEditor.js +41 -0
- package/components/editors/BooleanRadioEditor/BooleanRadioEditor.js +24 -0
- package/components/editors/BooleanRadioEditor/styles.js +12 -0
- package/components/editors/DataTypeValueEditor/DataTypeValueEditor.js +54 -0
- package/components/editors/DataTypeValueEditor/useEditorContext.js +108 -0
- package/components/editors/DateEditor/DateEditor.js +94 -0
- package/components/editors/DateEditor/styles.js +31 -0
- package/components/editors/DateRangeEditor/DateRangeEditor.js +146 -0
- package/components/editors/DateRangeEditor/styles.js +39 -0
- package/components/editors/DependentLookupEditor/DependentLookupEditor.js +129 -0
- package/components/editors/DependentLookupEditor/OptionWithCheckIcon.js +33 -0
- package/components/editors/DependentLookupEditor/helpers.js +25 -0
- package/components/editors/DependentLookupEditor/styles.js +25 -0
- package/components/editors/DependentLookupEditor/useAutopopulation.js +25 -0
- package/components/editors/DependentLookupEditor/useDefaultOptions.js +25 -0
- package/components/editors/DependentLookupEditor/useLookupsResolver.js +29 -0
- package/components/editors/DropDownEditor/DropDownEditor.js +47 -0
- package/components/editors/EditorsFactory.js +97 -0
- package/components/editors/FileTypeEditor/FileTypeEditor.js +52 -0
- package/components/editors/FileTypeEditor/styles.js +9 -0
- package/components/editors/FilterEditor/FilterEditor.js +46 -0
- package/components/editors/FilterEditor/FilterValueEditor.js +84 -0
- package/components/editors/GroupedDropDownEditor/GroupedDropDownEditor.js +64 -0
- package/components/editors/GroupedDropDownEditor/entriesHelpers.js +32 -0
- package/components/editors/GroupedDropDownEditor/styles.js +14 -0
- package/components/editors/LookupEditor/LookupEditor.js +78 -0
- package/components/editors/LookupEditor/entriesHelpers.js +28 -0
- package/components/editors/NumberEditor/NumberEditor.js +70 -0
- package/components/editors/RangeDataTypeValueEditor/RangeDataTypeValueEditor.js +87 -0
- package/components/editors/RangeDataTypeValueEditor/styles.js +24 -0
- package/components/editors/SelectEditor/SelectEditor.js +44 -0
- package/components/editors/TextEditor/TextEditor.js +47 -0
- package/components/editors/TimestampEditor/TimestampEditor.js +100 -0
- package/components/editors/TimestampEditor/styles.js +25 -0
- package/components/editors/TypeaheadEditor/TypeaheadEditor.js +151 -0
- package/components/editors/TypeaheadEditor/styles.js +55 -0
- package/components/editors/commonComponents/MultiValueChip/MultiValueChip.js +39 -0
- package/components/editors/constants.js +27 -0
- package/components/editors/index.js +24 -0
- package/components/index.js +242 -0
- package/constants/attributes.js +5 -0
- package/constants/classnames.js +4 -0
- package/constants/index.js +13 -0
- package/constants/prop-types.js +82 -0
- package/contexts/AsyncMountContext/index.js +19 -0
- package/contexts/BlockImageGalleryDialogContext/index.js +9 -0
- package/contexts/CollaborationContext/index.js +21 -0
- package/contexts/CrosswalksDisplayContext/index.js +70 -0
- package/contexts/EntitiesMapContext/index.js +9 -0
- package/contexts/HistoryAppearanceContext/index.js +12 -0
- package/contexts/IdContext/index.js +9 -0
- package/contexts/PivotingAttributeContext/index.js +8 -0
- package/contexts/PopupBoundariesContext/index.js +16 -0
- package/contexts/ProfilePerspectiveViewContext/index.js +9 -0
- package/contexts/UsersContext/index.js +9 -0
- package/contexts/ViewIdContext/index.js +9 -0
- package/contexts/index.js +30 -0
- package/core/index.js +13 -0
- package/core/utils.js +54 -0
- package/hooks/index.js +29 -0
- package/hooks/useActions.js +27 -0
- package/hooks/useAsyncMount.js +27 -0
- package/hooks/useCollaboration.js +151 -0
- package/hooks/useConfigPermissions.js +20 -0
- package/hooks/useDidUpdateEffect.js +14 -0
- package/hooks/usePrevious.js +12 -0
- package/hooks/useRelationTypeSelector.js +53 -0
- package/hooks/useRelationsLoader.js +111 -0
- package/hooks/useRunOnceAfterValueInitialization.js +14 -0
- package/hooks/useSafePromise.js +34 -0
- package/hooks/useSavedState.js +18 -0
- package/hooks/useUsers.js +29 -0
- package/hooks/useWhyDidYouUpdate.js +46 -0
- package/icons/Add.js +11 -0
- package/icons/AddComment.js +11 -0
- package/icons/Calendar.js +11 -0
- package/icons/Comment.js +11 -0
- package/icons/CommentBubble.js +11 -0
- package/icons/Create.js +11 -0
- package/icons/DefaultImage.js +13 -0
- package/icons/Details.js +16 -0
- package/icons/Download.js +16 -0
- package/icons/EmptySearchResults.js +73 -0
- package/icons/Eye.js +16 -0
- package/icons/Filter.js +11 -0
- package/icons/Ignored.js +11 -0
- package/icons/IgnoredOutlined.js +11 -0
- package/icons/LogIn.js +12 -0
- package/icons/LogOut.js +12 -0
- package/icons/Merge.js +11 -0
- package/icons/MlMatch.js +51 -0
- package/icons/NestedAttribute.js +11 -0
- package/icons/NoData.js +73 -0
- package/icons/NoDataSearch.js +14 -0
- package/icons/NoMatches.js +11 -0
- package/icons/Pin.js +11 -0
- package/icons/PinOutlined.js +11 -0
- package/icons/PivotingIcon.js +11 -0
- package/icons/PmIcon.js +11 -0
- package/icons/PotentialMatch.js +11 -0
- package/icons/Profile.js +11 -0
- package/icons/Recommended.js +16 -0
- package/icons/ReferenceAttribute.js +11 -0
- package/icons/Remove.js +11 -0
- package/icons/ResizeIconInline.js +11 -0
- package/icons/Search.js +11 -0
- package/icons/SelectAttributes.js +46 -0
- package/icons/SimpleAttribute.js +11 -0
- package/icons/Table.js +11 -0
- package/icons/UnMerge.js +11 -0
- package/icons/UploadIcon.js +35 -0
- package/icons/index.js +82 -0
- package/index.js +19 -0
- package/package.json +8 -5
- package/types/index.js +2 -0
- package/bundle.js +0 -2
- package/bundle.js.LICENSE.txt +0 -25
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var react_1 = require("react");
|
|
4
|
+
var ramda_1 = require("ramda");
|
|
5
|
+
var dataHelpers_1 = require("../helpers/dataHelpers");
|
|
6
|
+
var hooks_1 = require("../../../../hooks");
|
|
7
|
+
var useCollapsibleTableRows = function (_a) {
|
|
8
|
+
var rowsData = _a.rowsData, columnsData = _a.columnsData, renderRowCell = _a.renderRowCell, getRowCellHeight = _a.getRowCellHeight, maxRowValuesCount = _a.maxRowValuesCount;
|
|
9
|
+
var _b = react_1.useState([]), expandedIndexes = _b[0], setExpandedIndexes = _b[1];
|
|
10
|
+
var getRowMaxValuesCount = react_1.useCallback(function (rowIndex) {
|
|
11
|
+
return expandedIndexes.includes(rowIndex) ? Infinity : maxRowValuesCount;
|
|
12
|
+
}, [expandedIndexes, maxRowValuesCount]);
|
|
13
|
+
var tableRowsData = react_1.useMemo(function () { return dataHelpers_1.getTableRowsData(rowsData, columnsData, renderRowCell, getRowCellHeight, getRowMaxValuesCount); }, [rowsData, columnsData, renderRowCell, getRowCellHeight, getRowMaxValuesCount]);
|
|
14
|
+
var toggleRowCollapse = react_1.useCallback(function (rowIndex) {
|
|
15
|
+
setExpandedIndexes(function (expandedIndexes) {
|
|
16
|
+
var index = expandedIndexes.findIndex(ramda_1.equals(rowIndex));
|
|
17
|
+
return index === -1 ? expandedIndexes.concat(rowIndex) : ramda_1.remove(index, 1, expandedIndexes);
|
|
18
|
+
});
|
|
19
|
+
}, []);
|
|
20
|
+
var getIsRowCollapsible = react_1.useCallback(function (rowValue) {
|
|
21
|
+
return dataHelpers_1.getMaxRowValuesCount(columnsData, rowValue) > maxRowValuesCount;
|
|
22
|
+
}, [maxRowValuesCount, columnsData]);
|
|
23
|
+
var getIsRowCollapsed = react_1.useCallback(function (rowIndex) {
|
|
24
|
+
return !expandedIndexes.includes(rowIndex);
|
|
25
|
+
}, [expandedIndexes]);
|
|
26
|
+
var collapseContextValue = react_1.useMemo(function () { return ({
|
|
27
|
+
toggleRowCollapse: toggleRowCollapse,
|
|
28
|
+
getIsRowCollapsible: getIsRowCollapsible,
|
|
29
|
+
getIsRowCollapsed: getIsRowCollapsed
|
|
30
|
+
}); }, [toggleRowCollapse, getIsRowCollapsible, getIsRowCollapsed]);
|
|
31
|
+
var prevRowsData = hooks_1.usePrevious(rowsData);
|
|
32
|
+
hooks_1.useDidUpdateEffect(function () {
|
|
33
|
+
if (expandedIndexes.length > 0) {
|
|
34
|
+
setExpandedIndexes(ramda_1.filter(function (index) {
|
|
35
|
+
var rowValue = rowsData[index] || {};
|
|
36
|
+
var prevRowValue = prevRowsData[index] || {};
|
|
37
|
+
return rowValue.rawValue === prevRowValue.rawValue && getIsRowCollapsible(rowValue);
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
}, [rowsData]);
|
|
41
|
+
return { tableRowsData: tableRowsData, collapseContextValue: collapseContextValue };
|
|
42
|
+
};
|
|
43
|
+
exports.default = useCollapsibleTableRows;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
var react_1 = require("react");
|
|
15
|
+
var ramda_1 = require("ramda");
|
|
16
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
17
|
+
var getRowCellKey = function (_a) {
|
|
18
|
+
var rowIndex = _a.rowIndex, id = _a.columnData.id, cellIndex = _a.cellIndex;
|
|
19
|
+
return id + "[" + rowIndex + "][" + cellIndex + "]";
|
|
20
|
+
};
|
|
21
|
+
var useDynamicRowCellHeight = function () {
|
|
22
|
+
var _a = react_1.useState({}), rowCellHeightsMap = _a[0], setRowCellHeightsMap = _a[1];
|
|
23
|
+
var rowCellHeightsMapCache = react_1.useRef({});
|
|
24
|
+
var batchHeightUpdate = function (key, value) {
|
|
25
|
+
rowCellHeightsMapCache.current[key] = value;
|
|
26
|
+
};
|
|
27
|
+
var flushHeightUpdates = react_1.useCallback(mdm_sdk_1.debounce(function () {
|
|
28
|
+
setRowCellHeightsMap(__assign({}, rowCellHeightsMapCache.current));
|
|
29
|
+
}), []);
|
|
30
|
+
var clearHeightsCache = react_1.useCallback(function () {
|
|
31
|
+
rowCellHeightsMapCache.current = {};
|
|
32
|
+
}, []);
|
|
33
|
+
var getDynamicRowCellHeight = react_1.useCallback(ramda_1.pipe(getRowCellKey, ramda_1.prop(ramda_1.__, rowCellHeightsMap)), [rowCellHeightsMap]);
|
|
34
|
+
var changeRowCellHeight = react_1.useCallback(ramda_1.curry(ramda_1.useWith(ramda_1.pipe(batchHeightUpdate, flushHeightUpdates), [getRowCellKey, ramda_1.identity])), []);
|
|
35
|
+
return { getDynamicRowCellHeight: getDynamicRowCellHeight, changeRowCellHeight: changeRowCellHeight, clearHeightsCache: clearHeightsCache };
|
|
36
|
+
};
|
|
37
|
+
exports.default = useDynamicRowCellHeight;
|
|
@@ -0,0 +1,30 @@
|
|
|
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 AttributeListItem_1 = __importDefault(require("../../../AttributeListItem/AttributeListItem"));
|
|
9
|
+
var Highlighter_1 = __importDefault(require("../../../Highlighter/Highlighter"));
|
|
10
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
11
|
+
var styles_1 = require("./styles");
|
|
12
|
+
var ColumnListItem = function (_a) {
|
|
13
|
+
var _b;
|
|
14
|
+
var item = _a.item, onClick = _a.onClick, checked = _a.checked, level = _a.level, style = _a.style, isFocused = _a.isFocused, isGroupItem = _a.isGroupItem;
|
|
15
|
+
var styles = styles_1.useStyles();
|
|
16
|
+
return (react_1.default.createElement(AttributeListItem_1.default, { key: item.id, onClick: onClick, checked: checked, level: level, data: item, label: react_1.default.createElement(Highlighter_1.default, { text: item.label, highlight: item.filterText }), labelInText: item.label, style: style, isFocused: isFocused, hideIcon: isGroupItem, className: classnames_1.default((_b = {}, _b[styles.groupItem] = isGroupItem, _b)) }));
|
|
17
|
+
};
|
|
18
|
+
ColumnListItem.propTypes = {
|
|
19
|
+
item: prop_types_1.default.shape({
|
|
20
|
+
label: prop_types_1.default.string,
|
|
21
|
+
filterText: prop_types_1.default.string
|
|
22
|
+
}),
|
|
23
|
+
level: prop_types_1.default.number,
|
|
24
|
+
onClick: prop_types_1.default.func,
|
|
25
|
+
checked: prop_types_1.default.bool,
|
|
26
|
+
style: prop_types_1.default.object,
|
|
27
|
+
isGroupItem: prop_types_1.default.bool,
|
|
28
|
+
isFocused: prop_types_1.default.bool
|
|
29
|
+
};
|
|
30
|
+
exports.default = ColumnListItem;
|
|
@@ -0,0 +1,91 @@
|
|
|
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 constants_1 = require("../../../../constants");
|
|
28
|
+
var Table_1 = __importDefault(require("../../../../icons/Table"));
|
|
29
|
+
var ramda_1 = require("ramda");
|
|
30
|
+
var columnHelpers_1 = require("./columnHelpers");
|
|
31
|
+
var SmallIconButton_1 = require("../../../SmallIconButton");
|
|
32
|
+
var SelectionPopup_1 = __importDefault(require("../../../SelectionPopup/SelectionPopup"));
|
|
33
|
+
var VirtualGroupedList_1 = __importDefault(require("../../../VirtualGroupedList/VirtualGroupedList"));
|
|
34
|
+
var helpers_1 = require("../../../SelectionPopup/helpers");
|
|
35
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
36
|
+
var helpers_2 = require("../../../VirtualGroupedList/helpers");
|
|
37
|
+
var ColumnListItem_1 = __importDefault(require("./ColumnListItem"));
|
|
38
|
+
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
39
|
+
var styles_1 = require("./styles");
|
|
40
|
+
var ITEM_HEIGHT = 32;
|
|
41
|
+
var MAX_LIST_CONTAINER_HEIGHT = 300;
|
|
42
|
+
var DEFAULT_MIN_CONTAINER_WIDTH = 308;
|
|
43
|
+
var CONTAINER_HEADER_HEIGHT = 108;
|
|
44
|
+
var MIN_CONTAINER_HEIGHT = 140;
|
|
45
|
+
var ColumnsSettings = function (_a) {
|
|
46
|
+
var columnsData = _a.columnsData, selectedColumns = _a.selectedColumns, onChangeColumns = _a.onChangeColumns, title = _a.title, tooltipTitle = _a.tooltipTitle;
|
|
47
|
+
var styles = styles_1.useStyles();
|
|
48
|
+
var _b = react_1.useState(null), anchorEl = _b[0], setAnchorEl = _b[1];
|
|
49
|
+
var openPopup = function (event) { return setAnchorEl(event.currentTarget); };
|
|
50
|
+
var closePopup = function () { return setAnchorEl(null); };
|
|
51
|
+
var _c = react_1.useState(''), filterText = _c[0], setFilterText = _c[1];
|
|
52
|
+
var clearFilter = function () { return setFilterText(''); };
|
|
53
|
+
var groupedItems = react_1.useMemo(function () { return columnHelpers_1.buildColumnItems(columnsData, filterText); }, [columnsData, filterText]);
|
|
54
|
+
var containerWidth = mdm_sdk_1.getMaxItemWidth('label')(groupedItems) || DEFAULT_MIN_CONTAINER_WIDTH;
|
|
55
|
+
var items = react_1.useMemo(function () { return helpers_2.flattenGroupedItemsData(groupedItems); }, [groupedItems]);
|
|
56
|
+
var handleColumnClick = react_1.useCallback(function (column) {
|
|
57
|
+
var changedColumns = ramda_1.pipe(columnHelpers_1.getChildColumns, ramda_1.pluck('id'))(column);
|
|
58
|
+
var wasSelected = columnHelpers_1.isColumnSelected(selectedColumns, column);
|
|
59
|
+
onChangeColumns(wasSelected
|
|
60
|
+
? ramda_1.difference(selectedColumns, changedColumns)
|
|
61
|
+
: ramda_1.uniq(ramda_1.concat(selectedColumns, changedColumns)));
|
|
62
|
+
}, [selectedColumns, onChangeColumns]);
|
|
63
|
+
var handleSearchOnEnter = react_1.useCallback(function (_a) {
|
|
64
|
+
var item = _a.item;
|
|
65
|
+
return handleColumnClick(item);
|
|
66
|
+
}, [handleColumnClick]);
|
|
67
|
+
var _d = helpers_1.useKeyboardNavigation({
|
|
68
|
+
items: items,
|
|
69
|
+
open: open,
|
|
70
|
+
onSelectFocusedItem: handleSearchOnEnter,
|
|
71
|
+
selectedItems: selectedColumns
|
|
72
|
+
}), focusIndex = _d.focusIndex, handleKeyDown = _d.handleKeyDown;
|
|
73
|
+
var renderColumnItem = function (style, _a, index) {
|
|
74
|
+
var item = _a.item, _b = _a.level, level = _b === void 0 ? 0 : _b;
|
|
75
|
+
return (react_1.default.createElement(ColumnListItem_1.default, { style: style, item: item, level: level, isFocused: focusIndex === index, checked: columnHelpers_1.isColumnSelected(selectedColumns, item), isGroupItem: columnHelpers_1.isGroupColumn(item), onClick: handleColumnClick }));
|
|
76
|
+
};
|
|
77
|
+
var listHeight = Math.min(MAX_LIST_CONTAINER_HEIGHT, ITEM_HEIGHT * items.length);
|
|
78
|
+
var containerHeight = Math.max(MIN_CONTAINER_HEIGHT, listHeight + CONTAINER_HEADER_HEIGHT);
|
|
79
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
80
|
+
react_1.default.createElement(SmallIconButton_1.SmallIconButtonWithTooltip, { tooltipTitle: tooltipTitle || ui_i18n_1.default.text('Show/hide columns'), size: "L", icon: Table_1.default, onClick: openPopup }),
|
|
81
|
+
react_1.default.createElement(SelectionPopup_1.default, { className: styles.popup, open: !!anchorEl, anchorEl: anchorEl, onClose: ramda_1.pipe(closePopup, clearFilter), onSearch: setFilterText, title: title || ui_i18n_1.default.text('Show/hide columns'), containerWidth: containerWidth, containerHeight: containerHeight, searchInputOnKeyDown: handleKeyDown },
|
|
82
|
+
react_1.default.createElement(VirtualGroupedList_1.default, { fixedTitle: false, height: listHeight, renderItem: renderColumnItem, items: items, getItemSize: function () { return ITEM_HEIGHT; }, containerWidth: containerWidth, focusIndex: focusIndex }))));
|
|
83
|
+
};
|
|
84
|
+
ColumnsSettings.propTypes = {
|
|
85
|
+
columnsData: constants_1.ColumnsDataType,
|
|
86
|
+
selectedColumns: prop_types_1.default.arrayOf(prop_types_1.default.string),
|
|
87
|
+
onChangeColumns: prop_types_1.default.func,
|
|
88
|
+
title: prop_types_1.default.string,
|
|
89
|
+
tooltipTitle: prop_types_1.default.string
|
|
90
|
+
};
|
|
91
|
+
exports.default = ColumnsSettings;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
14
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
15
|
+
to[j] = from[i];
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.isColumnSelected = exports.isGroupColumn = exports.getChildColumns = exports.buildColumnItems = void 0;
|
|
20
|
+
var ramda_1 = require("ramda");
|
|
21
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
22
|
+
var isGroupColumn = function (column) { return column.id === column.groupId; };
|
|
23
|
+
exports.isGroupColumn = isGroupColumn;
|
|
24
|
+
var isParentToColumn = ramda_1.curry(function (_a, parent) {
|
|
25
|
+
var id = _a.id, groupId = _a.groupId;
|
|
26
|
+
return parent.groupId === groupId && (id === parent.id || id.startsWith(parent.id + "."));
|
|
27
|
+
});
|
|
28
|
+
var isGroupToColumn = ramda_1.curry(function (_a, group) {
|
|
29
|
+
var groupId = _a.groupId;
|
|
30
|
+
return groupId === group.id;
|
|
31
|
+
});
|
|
32
|
+
var isHideableColumn = ramda_1.propOr(true, 'hideable');
|
|
33
|
+
var getColumnRoot = function (columns, column) { return columns.find(ramda_1.either(isGroupToColumn(column), isParentToColumn(column))); };
|
|
34
|
+
var addColumn = function (columns, column) {
|
|
35
|
+
var root = getColumnRoot(columns, column);
|
|
36
|
+
if (root) {
|
|
37
|
+
root.children = addColumn(root.children || [], column);
|
|
38
|
+
return columns;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
return columns.concat(column);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
var filterColumnsByLabel = ramda_1.curry(function (filterText, column) {
|
|
45
|
+
return mdm_sdk_1.utils.strings.search(column.label, filterText) || (column.children || []).some(filterColumnsByLabel(filterText));
|
|
46
|
+
});
|
|
47
|
+
var buildColumnsTrees = ramda_1.reduce(function (acc, columnData) {
|
|
48
|
+
return addColumn(acc, {
|
|
49
|
+
id: columnData.id,
|
|
50
|
+
groupId: columnData.groupId,
|
|
51
|
+
label: columnData.label,
|
|
52
|
+
attrType: columnData.dataTypeDefinition
|
|
53
|
+
});
|
|
54
|
+
}, []);
|
|
55
|
+
var buildFilteredColumnItems = ramda_1.curry(function (filterText, columns, level) {
|
|
56
|
+
if (level === void 0) { level = 0; }
|
|
57
|
+
return ramda_1.pipe(ramda_1.filter(filterColumnsByLabel(filterText)), ramda_1.chain(function (column) {
|
|
58
|
+
var item = {
|
|
59
|
+
item: __assign(__assign({}, column), { filterText: filterText }),
|
|
60
|
+
level: level
|
|
61
|
+
};
|
|
62
|
+
var childrenItems = column.children
|
|
63
|
+
? buildFilteredColumnItems(filterText, column.children, level + 1)
|
|
64
|
+
: [];
|
|
65
|
+
return __spreadArray([item], childrenItems);
|
|
66
|
+
}))(columns);
|
|
67
|
+
});
|
|
68
|
+
var isGroupedColumnsData = ramda_1.has('columns');
|
|
69
|
+
var flattenGroupedColumnsData = function (_a) {
|
|
70
|
+
var id = _a.id, label = _a.label, columns = _a.columns;
|
|
71
|
+
return __spreadArray([
|
|
72
|
+
{ id: id, groupId: id, label: label }
|
|
73
|
+
], columns.map(ramda_1.assoc('groupId', id)));
|
|
74
|
+
};
|
|
75
|
+
var buildColumnItems = function (columnsData, filterText) {
|
|
76
|
+
return ramda_1.pipe(ramda_1.chain(ramda_1.when(isGroupedColumnsData, flattenGroupedColumnsData)), ramda_1.filter(ramda_1.either(isGroupColumn, isHideableColumn)), buildColumnsTrees, buildFilteredColumnItems(filterText))(columnsData);
|
|
77
|
+
};
|
|
78
|
+
exports.buildColumnItems = buildColumnItems;
|
|
79
|
+
var getChildColumns = function (column) { return (column.children ? ramda_1.chain(getChildColumns, column.children) : [column]); };
|
|
80
|
+
exports.getChildColumns = getChildColumns;
|
|
81
|
+
var isColumnSelected = function (selectedColumns, column) {
|
|
82
|
+
var childColumns = getChildColumns(column);
|
|
83
|
+
var isColumnSelected = function (column) { return selectedColumns.includes(column.id); };
|
|
84
|
+
return isGroupColumn(column) ? childColumns.every(isColumnSelected) : childColumns.some(isColumnSelected);
|
|
85
|
+
};
|
|
86
|
+
exports.isColumnSelected = isColumnSelected;
|
|
@@ -0,0 +1,12 @@
|
|
|
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({
|
|
6
|
+
popup: {
|
|
7
|
+
minWidth: '200px'
|
|
8
|
+
},
|
|
9
|
+
groupItem: {
|
|
10
|
+
backgroundColor: 'rgba(0,0,0,0.04)'
|
|
11
|
+
}
|
|
12
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
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 ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
9
|
+
var IconButton_1 = __importDefault(require("@material-ui/core/IconButton"));
|
|
10
|
+
var Close_1 = __importDefault(require("@material-ui/icons/Close"));
|
|
11
|
+
var Tooltip_1 = __importDefault(require("@material-ui/core/Tooltip"));
|
|
12
|
+
var Filter_1 = __importDefault(require("../../../../icons/Filter"));
|
|
13
|
+
var styles_1 = require("./styles");
|
|
14
|
+
var FilterButton = function (_a) {
|
|
15
|
+
var enabled = _a.enabled, onClick = _a.onClick;
|
|
16
|
+
var styles = styles_1.useStyles();
|
|
17
|
+
return (react_1.default.createElement(Tooltip_1.default, { title: enabled ? ui_i18n_1.default.text('Clear all filters') : ui_i18n_1.default.text('Filter') },
|
|
18
|
+
react_1.default.createElement(IconButton_1.default, { onClick: onClick, classes: { root: styles.button } }, enabled ? (react_1.default.createElement(react_1.default.Fragment, null,
|
|
19
|
+
react_1.default.createElement(Filter_1.default, { className: styles['filterIcon--enabled'] }),
|
|
20
|
+
react_1.default.createElement(Close_1.default, { color: "primary", className: styles.closeIcon }))) : (react_1.default.createElement(Filter_1.default, null)))));
|
|
21
|
+
};
|
|
22
|
+
FilterButton.propTypes = {
|
|
23
|
+
enabled: prop_types_1.default.bool,
|
|
24
|
+
onClick: prop_types_1.default.func
|
|
25
|
+
};
|
|
26
|
+
exports.default = FilterButton;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 ({
|
|
6
|
+
'filterIcon--enabled': {
|
|
7
|
+
color: theme.palette.primary.main
|
|
8
|
+
},
|
|
9
|
+
closeIcon: {
|
|
10
|
+
position: 'absolute',
|
|
11
|
+
right: '3px',
|
|
12
|
+
bottom: '3px',
|
|
13
|
+
transform: 'scale(0.5)'
|
|
14
|
+
},
|
|
15
|
+
button: {
|
|
16
|
+
padding: '11px'
|
|
17
|
+
}
|
|
18
|
+
}); });
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __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 prop_types_1 = __importDefault(require("prop-types"));
|
|
37
|
+
var react_1 = __importStar(require("react"));
|
|
38
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
39
|
+
var TablePagination_1 = __importDefault(require("@material-ui/core/TablePagination"));
|
|
40
|
+
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
41
|
+
var utils_1 = require("../../../core/utils");
|
|
42
|
+
var ramda_1 = require("ramda");
|
|
43
|
+
var styles_1 = require("./styles");
|
|
44
|
+
var BasicTablePagination = function (_a) {
|
|
45
|
+
var _b = _a.classes, classes = _b === void 0 ? {} : _b, count = _a.count, rowsPerPageOptions = _a.rowsPerPageOptions, page = _a.page, onChangePage = _a.onChangePage, rowsPerPage = _a.rowsPerPage, onChangeRowsPerPage = _a.onChangeRowsPerPage, basicTableRef = _a.basicTableRef, labelRowsPerPage = _a.labelRowsPerPage;
|
|
46
|
+
var labelDisplayedRows = function (_a) {
|
|
47
|
+
var from = _a.from, to = _a.to, count = _a.count;
|
|
48
|
+
return ui_i18n_1.default.text('${fromRow}-${toRow} of ${countRows}', {
|
|
49
|
+
fromRow: ui_i18n_1.default.number(from, '0,0'),
|
|
50
|
+
toRow: ui_i18n_1.default.number(to, '0,0'),
|
|
51
|
+
countRows: ui_i18n_1.default.number(count, '0,0')
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
var styles = styles_1.useStyles();
|
|
55
|
+
var resetScrollbarPosition = react_1.useCallback(function () {
|
|
56
|
+
ramda_1.pathOr(ramda_1.identity, ['current', 'resetScrollbarPosition'], basicTableRef)();
|
|
57
|
+
}, [basicTableRef]);
|
|
58
|
+
var handleChangePage = react_1.useCallback(function (value) {
|
|
59
|
+
onChangePage(value);
|
|
60
|
+
resetScrollbarPosition();
|
|
61
|
+
}, [onChangePage, resetScrollbarPosition]);
|
|
62
|
+
var handleChangeRowsPerPage = react_1.useCallback(function (value) {
|
|
63
|
+
onChangePage(0);
|
|
64
|
+
onChangeRowsPerPage(value);
|
|
65
|
+
resetScrollbarPosition();
|
|
66
|
+
}, [onChangePage, onChangeRowsPerPage, resetScrollbarPosition]);
|
|
67
|
+
return (react_1.default.createElement(TablePagination_1.default, { classes: __assign(__assign({}, classes), { root: classnames_1.default(styles.pagination, classes.root), select: classnames_1.default(styles.select, classes.select), caption: styles.caption, selectRoot: styles.selectRoot, actions: styles.actions }), component: "div", labelRowsPerPage: labelRowsPerPage || ui_i18n_1.default.text('Rows per page:'), labelDisplayedRows: labelDisplayedRows, count: count, rowsPerPageOptions: rowsPerPageOptions, page: page, onChangePage: ramda_1.pipe(ramda_1.nthArg(1), handleChangePage), rowsPerPage: rowsPerPage, onChangeRowsPerPage: ramda_1.pipe(utils_1.getValue, handleChangeRowsPerPage) }));
|
|
68
|
+
};
|
|
69
|
+
BasicTablePagination.propTypes = {
|
|
70
|
+
classes: prop_types_1.default.object,
|
|
71
|
+
rowsPerPageOptions: prop_types_1.default.arrayOf(prop_types_1.default.number),
|
|
72
|
+
count: prop_types_1.default.number,
|
|
73
|
+
page: prop_types_1.default.number,
|
|
74
|
+
onChangePage: prop_types_1.default.func,
|
|
75
|
+
rowsPerPage: prop_types_1.default.number,
|
|
76
|
+
onChangeRowsPerPage: prop_types_1.default.func,
|
|
77
|
+
basicTableRef: prop_types_1.default.shape({ current: prop_types_1.default.object }),
|
|
78
|
+
labelRowsPerPage: prop_types_1.default.string
|
|
79
|
+
};
|
|
80
|
+
exports.default = react_1.default.memo(BasicTablePagination);
|
|
@@ -0,0 +1,32 @@
|
|
|
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({
|
|
6
|
+
pagination: {
|
|
7
|
+
display: 'flex',
|
|
8
|
+
alignItems: 'center',
|
|
9
|
+
justifyContent: 'flex-end',
|
|
10
|
+
height: '56px',
|
|
11
|
+
borderTop: '1px solid rgba(0,0,0,0.12)',
|
|
12
|
+
boxShadow: 'none'
|
|
13
|
+
},
|
|
14
|
+
caption: {
|
|
15
|
+
color: 'rgba(0,0,0,0.6)',
|
|
16
|
+
fontSize: '12px',
|
|
17
|
+
lineHeight: '16px'
|
|
18
|
+
},
|
|
19
|
+
selectRoot: {
|
|
20
|
+
marginLeft: '5px',
|
|
21
|
+
marginRight: '36px'
|
|
22
|
+
},
|
|
23
|
+
select: {
|
|
24
|
+
color: 'rgba(0,0,0,0.6)',
|
|
25
|
+
fontSize: '12px',
|
|
26
|
+
lineHeight: '16px',
|
|
27
|
+
textAlign: 'right'
|
|
28
|
+
},
|
|
29
|
+
actions: {
|
|
30
|
+
marginLeft: '32px'
|
|
31
|
+
}
|
|
32
|
+
});
|
|
@@ -0,0 +1,48 @@
|
|
|
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 RowCollapseContext_1 = require("../BasicTable/contexts/RowCollapseContext");
|
|
28
|
+
var CollapseButton_1 = __importDefault(require("../../CollapseButton/CollapseButton"));
|
|
29
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
30
|
+
var styles_1 = require("./styles");
|
|
31
|
+
var CollapseRowButton = function (_a) {
|
|
32
|
+
var _b;
|
|
33
|
+
var rowIndex = _a.rowIndex, rowValue = _a.rowValue, className = _a.className;
|
|
34
|
+
var styles = styles_1.useStyles();
|
|
35
|
+
var _c = react_1.useContext(RowCollapseContext_1.RowCollapseContext), toggleRowCollapse = _c.toggleRowCollapse, getIsRowCollapsible = _c.getIsRowCollapsible, getIsRowCollapsed = _c.getIsRowCollapsed;
|
|
36
|
+
var isCollapsibleRow = getIsRowCollapsible(rowValue);
|
|
37
|
+
var isCollapsedRow = getIsRowCollapsed(rowIndex);
|
|
38
|
+
return (react_1.default.createElement(CollapseButton_1.default, { className: classnames_1.default(className, (_b = {}, _b[styles.hidden] = !isCollapsibleRow, _b)), isOpen: !isCollapsedRow, onClick: function (e) {
|
|
39
|
+
toggleRowCollapse(rowIndex);
|
|
40
|
+
e.stopPropagation();
|
|
41
|
+
} }));
|
|
42
|
+
};
|
|
43
|
+
CollapseRowButton.propTypes = {
|
|
44
|
+
rowIndex: prop_types_1.default.number,
|
|
45
|
+
rowValue: prop_types_1.default.object,
|
|
46
|
+
className: prop_types_1.default.string
|
|
47
|
+
};
|
|
48
|
+
exports.default = CollapseRowButton;
|
|
@@ -0,0 +1,9 @@
|
|
|
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 () { return ({
|
|
6
|
+
hidden: {
|
|
7
|
+
visibility: 'hidden'
|
|
8
|
+
}
|
|
9
|
+
}); });
|
|
@@ -0,0 +1,113 @@
|
|
|
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 ArrowDropDown_1 = __importDefault(require("@material-ui/icons/ArrowDropDown"));
|
|
26
|
+
var FilterChip_1 = __importDefault(require("./FilterChip/FilterChip"));
|
|
27
|
+
var FilterEditor_1 = __importDefault(require("../../editors/FilterEditor/FilterEditor"));
|
|
28
|
+
var IconButton_1 = __importDefault(require("@material-ui/core/IconButton"));
|
|
29
|
+
var Popover_1 = __importDefault(require("@material-ui/core/Popover"));
|
|
30
|
+
var prop_types_1 = __importDefault(require("prop-types"));
|
|
31
|
+
var react_1 = __importStar(require("react"));
|
|
32
|
+
var constants_1 = require("../../../constants");
|
|
33
|
+
var ramda_1 = require("ramda");
|
|
34
|
+
var styles_1 = require("./styles");
|
|
35
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
36
|
+
var helpers_1 = require("./helpers");
|
|
37
|
+
var ColumnFilter = function (_a) {
|
|
38
|
+
var columnId = _a.columnId, dataTypeDefinition = _a.dataTypeDefinition, filter = _a.filter, filterOptionsData = _a.filterOptionsData, onFilter = _a.onFilter;
|
|
39
|
+
var styles = styles_1.useStyles();
|
|
40
|
+
var _b = react_1.useState(null), anchorEl = _b[0], setAnchorEl = _b[1];
|
|
41
|
+
var openFilterPopup = function (event) { return setAnchorEl(event.currentTarget); };
|
|
42
|
+
var closeFilterPopup = function () { return setAnchorEl(null); };
|
|
43
|
+
var _c = react_1.useState(filter), columnFilter = _c[0], setColumnFilter = _c[1];
|
|
44
|
+
var initColumnFilter = function () { return setColumnFilter(filter); };
|
|
45
|
+
var containerRef = react_1.useRef(null);
|
|
46
|
+
var mdmFilter = helpers_1.columnFilterToMdmFilter({ id: columnId, dataTypeDefinition: dataTypeDefinition }, columnFilter);
|
|
47
|
+
var applyFilterChange = function (newFilter) {
|
|
48
|
+
if (newFilter !== filter) {
|
|
49
|
+
onFilter({ columnId: columnId, filter: newFilter });
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
var clearFilter = function () { return applyFilterChange(); };
|
|
53
|
+
var applyChangesAndClose = function () {
|
|
54
|
+
var isValidFilter = mdm_sdk_1.validateFilter(mdmFilter);
|
|
55
|
+
isValidFilter ? applyFilterChange(columnFilter) : clearFilter();
|
|
56
|
+
closeFilterPopup();
|
|
57
|
+
};
|
|
58
|
+
var handleValueEditorKeyPress = function (event) {
|
|
59
|
+
if (event.key !== 'Enter')
|
|
60
|
+
return;
|
|
61
|
+
event.stopPropagation();
|
|
62
|
+
event.preventDefault();
|
|
63
|
+
applyChangesAndClose();
|
|
64
|
+
};
|
|
65
|
+
var getFilterOptionData = function (filterOption) {
|
|
66
|
+
return filterOptionsData && filterOptionsData.find(ramda_1.propEq('value', filterOption));
|
|
67
|
+
};
|
|
68
|
+
var getFilterLabel = function (filterOption) {
|
|
69
|
+
return ramda_1.pipe(getFilterOptionData, ramda_1.prop('label'), ramda_1.defaultTo(mdm_sdk_1.getFilterOptionLabel(filterOption)))(filterOption);
|
|
70
|
+
};
|
|
71
|
+
var getFilterDataTypeDefinition = function (filterOption) {
|
|
72
|
+
return ramda_1.pipe(getFilterOptionData, ramda_1.prop('dataTypeDefinition'), ramda_1.defaultTo(mdm_sdk_1.getDataTypeDefinitionForFilterValue(dataTypeDefinition, filterOption)))(filterOption);
|
|
73
|
+
};
|
|
74
|
+
var filterOptions = mdm_sdk_1.Maybe.fromNull(filterOptionsData)
|
|
75
|
+
.map(ramda_1.pluck('value'))
|
|
76
|
+
.orSome(mdm_sdk_1.getFilterOptionsForDataTypeDefinition(dataTypeDefinition))
|
|
77
|
+
.map(function (value) { return ({
|
|
78
|
+
value: value,
|
|
79
|
+
label: getFilterLabel(value)
|
|
80
|
+
}); });
|
|
81
|
+
return (react_1.default.createElement("div", { ref: containerRef, className: styles.columnFilter },
|
|
82
|
+
filter && (react_1.default.createElement(FilterChip_1.default, { filterValue: filter.value, filterOption: filterOptions.find(ramda_1.propEq('value', filter.filter)), onDelete: clearFilter, dataTypeDefinition: getFilterDataTypeDefinition(filter.filter) })),
|
|
83
|
+
react_1.default.createElement(IconButton_1.default, { className: styles.dropDownButton, onClick: openFilterPopup, disableFocusRipple: true },
|
|
84
|
+
react_1.default.createElement(ArrowDropDown_1.default, null)),
|
|
85
|
+
react_1.default.createElement(Popover_1.default, { PaperProps: {
|
|
86
|
+
style: {
|
|
87
|
+
width: (containerRef.current ? containerRef.current.getBoundingClientRect().width : 0) + "px"
|
|
88
|
+
}
|
|
89
|
+
}, open: !!anchorEl, anchorEl: anchorEl, anchorOrigin: {
|
|
90
|
+
vertical: 'bottom',
|
|
91
|
+
horizontal: 'right'
|
|
92
|
+
}, transformOrigin: {
|
|
93
|
+
vertical: 'top',
|
|
94
|
+
horizontal: 'right'
|
|
95
|
+
}, classes: { paper: styles.filterMenu }, onEnter: initColumnFilter, onClose: applyChangesAndClose },
|
|
96
|
+
react_1.default.createElement(FilterEditor_1.default, { classes: { option: styles['filter-editor__option'] }, value: mdmFilter, onChange: ramda_1.pipe(helpers_1.mdmFilterToColumnFilter, setColumnFilter), filterOptions: filterOptions, dataTypeDefinition: getFilterDataTypeDefinition(mdmFilter.filter), valueEditorProps: {
|
|
97
|
+
TextFieldProps: {
|
|
98
|
+
onKeyPress: handleValueEditorKeyPress
|
|
99
|
+
}
|
|
100
|
+
} }))));
|
|
101
|
+
};
|
|
102
|
+
ColumnFilter.propTypes = {
|
|
103
|
+
columnId: prop_types_1.default.string,
|
|
104
|
+
dataTypeDefinition: prop_types_1.default.object,
|
|
105
|
+
filter: constants_1.ColumnFilterType,
|
|
106
|
+
onFilter: prop_types_1.default.func,
|
|
107
|
+
filterOptionsData: prop_types_1.default.arrayOf(prop_types_1.default.shape({
|
|
108
|
+
value: prop_types_1.default.string,
|
|
109
|
+
label: prop_types_1.default.string,
|
|
110
|
+
dataTypeDefinition: prop_types_1.default.object
|
|
111
|
+
}))
|
|
112
|
+
};
|
|
113
|
+
exports.default = ColumnFilter;
|