@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,87 @@
|
|
|
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 __rest = (this && this.__rest) || function (s, e) {
|
|
33
|
+
var t = {};
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
37
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
38
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
39
|
+
t[p[i]] = s[p[i]];
|
|
40
|
+
}
|
|
41
|
+
return t;
|
|
42
|
+
};
|
|
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 nanoid_1 = __importDefault(require("nanoid"));
|
|
50
|
+
var FormControl_1 = __importDefault(require("@material-ui/core/FormControl"));
|
|
51
|
+
var InputLabel_1 = __importDefault(require("@material-ui/core/InputLabel"));
|
|
52
|
+
var DataTypeValueEditor_1 = __importDefault(require("../DataTypeValueEditor/DataTypeValueEditor"));
|
|
53
|
+
var ramda_1 = require("ramda");
|
|
54
|
+
var styles_1 = require("./styles");
|
|
55
|
+
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
56
|
+
var RangeDataTypeValueEditor = function (_a) {
|
|
57
|
+
var _b = _a.value, value = _b === void 0 ? new Array(2) : _b, onChange = _a.onChange, _c = _a.orientation, orientation = _c === void 0 ? 'vertical' : _c, otherProps = __rest(_a, ["value", "onChange", "orientation"]);
|
|
58
|
+
var styles = styles_1.useStyles();
|
|
59
|
+
var rangeEditorFromId = react_1.useRef(nanoid_1.default());
|
|
60
|
+
var rangeEditorToId = react_1.useRef(nanoid_1.default());
|
|
61
|
+
var fromEditor = (react_1.default.createElement(DataTypeValueEditor_1.default, __assign({ id: rangeEditorFromId.current, value: value[0], onChange: ramda_1.pipe(ramda_1.update(0, ramda_1.__, value), onChange) }, otherProps)));
|
|
62
|
+
var toEditor = (react_1.default.createElement(DataTypeValueEditor_1.default, __assign({ id: rangeEditorToId.current, value: value[1], onChange: ramda_1.pipe(ramda_1.update(1, ramda_1.__, value), onChange) }, otherProps)));
|
|
63
|
+
if (orientation === 'horizontal') {
|
|
64
|
+
return (react_1.default.createElement("div", { className: styles['range-inline-editor'] },
|
|
65
|
+
fromEditor,
|
|
66
|
+
react_1.default.createElement("div", { className: styles['range-editor__dash'] }, '—'),
|
|
67
|
+
toEditor));
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
return (react_1.default.createElement("div", { className: styles['range-editor'] },
|
|
71
|
+
react_1.default.createElement(FormControl_1.default, { fullWidth: true, className: styles['range-editor__control'] },
|
|
72
|
+
react_1.default.createElement(InputLabel_1.default, { htmlFor: rangeEditorFromId.current, shrink: true }, ui_i18n_1.default.text('From')),
|
|
73
|
+
fromEditor),
|
|
74
|
+
react_1.default.createElement(FormControl_1.default, { fullWidth: true, className: styles['range-editor__control'] },
|
|
75
|
+
react_1.default.createElement(InputLabel_1.default, { htmlFor: rangeEditorToId.current, shrink: true }, ui_i18n_1.default.text('To')),
|
|
76
|
+
toEditor)));
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
RangeDataTypeValueEditor.propTypes = {
|
|
80
|
+
value: prop_types_1.default.arrayOf(prop_types_1.default.any),
|
|
81
|
+
onChange: prop_types_1.default.func,
|
|
82
|
+
fieldName: prop_types_1.default.string,
|
|
83
|
+
orientation: prop_types_1.default.oneOf(['horizontal', 'vertical']),
|
|
84
|
+
dataTypeDefinition: prop_types_1.default.object,
|
|
85
|
+
classes: prop_types_1.default.object
|
|
86
|
+
};
|
|
87
|
+
exports.default = RangeDataTypeValueEditor;
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
'range-editor': {
|
|
7
|
+
width: '100%'
|
|
8
|
+
},
|
|
9
|
+
'range-editor__control': {
|
|
10
|
+
marginTop: '10px',
|
|
11
|
+
paddingTop: '15px',
|
|
12
|
+
'& > label + *': {
|
|
13
|
+
marginTop: 0
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
'range-inline-editor': {
|
|
17
|
+
display: 'flex',
|
|
18
|
+
alignItems: 'center',
|
|
19
|
+
flexGrow: 1
|
|
20
|
+
},
|
|
21
|
+
'range-editor__dash': {
|
|
22
|
+
padding: '0 5px'
|
|
23
|
+
}
|
|
24
|
+
});
|
|
@@ -0,0 +1,44 @@
|
|
|
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 __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
var react_1 = __importDefault(require("react"));
|
|
29
|
+
var prop_types_1 = __importDefault(require("prop-types"));
|
|
30
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
31
|
+
var ramda_1 = require("ramda");
|
|
32
|
+
var DropDownEditor_1 = __importDefault(require("../DropDownEditor/DropDownEditor"));
|
|
33
|
+
var constants_1 = require("../constants");
|
|
34
|
+
var SelectEditor = function (_a) {
|
|
35
|
+
var classes = _a.classes, otherProps = __rest(_a, ["classes"]);
|
|
36
|
+
var styles = constants_1.useSelectStyles();
|
|
37
|
+
return (react_1.default.createElement(DropDownEditor_1.default, __assign({ MenuProps: {
|
|
38
|
+
disableAutoFocusItem: true
|
|
39
|
+
}, classes: __assign(__assign({}, classes), { root: classnames_1.default(styles.root, ramda_1.prop('root', classes)), icon: classnames_1.default(styles.icon, ramda_1.prop('icon', classes)) }) }, otherProps)));
|
|
40
|
+
};
|
|
41
|
+
SelectEditor.propTypes = {
|
|
42
|
+
classes: prop_types_1.default.object
|
|
43
|
+
};
|
|
44
|
+
exports.default = SelectEditor;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
var prop_types_1 = __importDefault(require("prop-types"));
|
|
29
|
+
var react_1 = __importDefault(require("react"));
|
|
30
|
+
var MultipleInput_1 = __importDefault(require("../../MultipleInput/MultipleInput"));
|
|
31
|
+
var SimpleInput_1 = __importDefault(require("../../SimpleInput/SimpleInput"));
|
|
32
|
+
var TextEditor = function (_a) {
|
|
33
|
+
var multiple = _a.multiple, value = _a.value, getValueLabel = _a.getValueLabel, multiline = _a.multiline, otherProps = __rest(_a, ["multiple", "value", "getValueLabel", "multiline"]);
|
|
34
|
+
return multiple ? (react_1.default.createElement(MultipleInput_1.default, __assign({}, otherProps, { values: value, getValueLabel: getValueLabel }))) : (react_1.default.createElement(SimpleInput_1.default, __assign({}, otherProps, { value: value, multiline: multiline })));
|
|
35
|
+
};
|
|
36
|
+
TextEditor.propTypes = {
|
|
37
|
+
multiple: prop_types_1.default.bool,
|
|
38
|
+
multiline: prop_types_1.default.bool,
|
|
39
|
+
value: prop_types_1.default.oneOfType([
|
|
40
|
+
prop_types_1.default.string,
|
|
41
|
+
prop_types_1.default.arrayOf(prop_types_1.default.string),
|
|
42
|
+
prop_types_1.default.number,
|
|
43
|
+
prop_types_1.default.arrayOf(prop_types_1.default.number)
|
|
44
|
+
]),
|
|
45
|
+
getValueLabel: prop_types_1.default.func
|
|
46
|
+
};
|
|
47
|
+
exports.default = TextEditor;
|
|
@@ -0,0 +1,100 @@
|
|
|
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 __rest = (this && this.__rest) || function (s, e) {
|
|
33
|
+
var t = {};
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
37
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
38
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
39
|
+
t[p[i]] = s[p[i]];
|
|
40
|
+
}
|
|
41
|
+
return t;
|
|
42
|
+
};
|
|
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 prop_types_1 = __importDefault(require("prop-types"));
|
|
48
|
+
var react_1 = __importStar(require("react"));
|
|
49
|
+
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
50
|
+
var moment_1 = __importDefault(require("moment"));
|
|
51
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
52
|
+
var ramda_1 = require("ramda");
|
|
53
|
+
var text_field_helper_1 = require("@material-ui/pickers/_helpers/text-field-helper");
|
|
54
|
+
var pickers_1 = require("@material-ui/pickers");
|
|
55
|
+
var DateRange_1 = __importDefault(require("@material-ui/icons/DateRange"));
|
|
56
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
57
|
+
var prop_types_2 = require("../../../constants/prop-types");
|
|
58
|
+
var styles_1 = require("./styles");
|
|
59
|
+
var dateFormat = moment_1.default.localeData().longDateFormat('L');
|
|
60
|
+
var timeFormat = moment_1.default.localeData().longDateFormat('LTS');
|
|
61
|
+
var makeAmPmFormatter = function (format) { return text_field_helper_1.maskedDateFormatter(text_field_helper_1.makeMaskFromFormat(format, '_'), '_', /[^\dap]+/gi); };
|
|
62
|
+
var TimestampEditor = function (_a) {
|
|
63
|
+
var _b;
|
|
64
|
+
var _c = _a.value, value = _c === void 0 ? null : _c, label = _a.label, _d = _a.variant, variant = _d === void 0 ? 'filled' : _d, onChange = _a.onChange, InputProps = _a.InputProps, format = _a.format, otherProps = __rest(_a, ["value", "label", "variant", "onChange", "InputProps", "format"]);
|
|
65
|
+
var styles = styles_1.useStyles();
|
|
66
|
+
var _e = react_1.useState(false), isCalendarOpen = _e[0], setIsCalendarOpen = _e[1];
|
|
67
|
+
var timestampFormat = format || dateFormat + " " + timeFormat;
|
|
68
|
+
var isAmPmFormat = timestampFormat && timestampFormat.toLowerCase().includes('a');
|
|
69
|
+
return (react_1.default.createElement(pickers_1.KeyboardDateTimePicker, __assign({ format: timestampFormat, rifmFormatter: isAmPmFormat ? makeAmPmFormatter(timestampFormat) : undefined, variant: "inline", invalidDateMessage: ui_i18n_1.default.text('Invalid Date Format'), maxDateMessage: ui_i18n_1.default.text('Date should not be after maximal date'), minDateMessage: ui_i18n_1.default.text('Date should not be before minimal date'), inputVariant: variant, views: ['year', 'date', 'hours', 'minutes', 'seconds'], autoOk: true, InputAdornmentProps: { position: 'end' }, KeyboardButtonProps: {
|
|
70
|
+
classes: { root: styles.iconButtonRoot },
|
|
71
|
+
onKeyPress: ramda_1.invoker(0, 'stopPropagation')
|
|
72
|
+
}, keyboardIcon: react_1.default.createElement(DateRange_1.default, null), onChange: ramda_1.when(mdm_sdk_1.utils.dates.isValidMomentDateOrNull, ramda_1.pipe(mdm_sdk_1.utils.dates.momentToDate, onChange)), label: label, "aria-label": label, value: value, placeholder: ui_i18n_1.default.text((dateFormat + " HH:MM").toUpperCase()), ampm: false, disableToolbar: true, onClose: function () { return setIsCalendarOpen(false); }, onOpen: function () { return setIsCalendarOpen(true); }, InputProps: __assign({ classes: {
|
|
73
|
+
root: styles.inputRoot,
|
|
74
|
+
underline: classnames_1.default((_b = {}, _b[styles.underline] = isCalendarOpen, _b)),
|
|
75
|
+
adornedEnd: styles.adornedEnd
|
|
76
|
+
}, disableUnderline: ramda_1.isNil(value) }, InputProps), PopoverProps: {
|
|
77
|
+
anchorOrigin: {
|
|
78
|
+
vertical: 'bottom',
|
|
79
|
+
horizontal: 'left'
|
|
80
|
+
},
|
|
81
|
+
transformOrigin: {
|
|
82
|
+
vertical: 'top',
|
|
83
|
+
horizontal: 'left'
|
|
84
|
+
}
|
|
85
|
+
}, InputLabelProps: {
|
|
86
|
+
classes: {
|
|
87
|
+
root: isCalendarOpen ? styles.inputLabel : undefined
|
|
88
|
+
},
|
|
89
|
+
shrink: !ramda_1.isNil(label)
|
|
90
|
+
} }, otherProps)));
|
|
91
|
+
};
|
|
92
|
+
TimestampEditor.propTypes = {
|
|
93
|
+
value: prop_types_1.default.oneOfType([prop_types_1.default.number, prop_types_1.default.instanceOf(Date)]),
|
|
94
|
+
format: prop_types_1.default.string,
|
|
95
|
+
label: prop_types_1.default.string,
|
|
96
|
+
variant: prop_types_2.InputVariant,
|
|
97
|
+
InputProps: prop_types_1.default.object,
|
|
98
|
+
onChange: prop_types_1.default.func.isRequired
|
|
99
|
+
};
|
|
100
|
+
exports.default = TimestampEditor;
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
iconButtonRoot: {
|
|
7
|
+
padding: 8
|
|
8
|
+
},
|
|
9
|
+
underline: {
|
|
10
|
+
'&:after': {
|
|
11
|
+
transform: 'scaleX(1)'
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
inputLabel: {
|
|
15
|
+
color: theme.palette.primary.main
|
|
16
|
+
},
|
|
17
|
+
adornedEnd: {
|
|
18
|
+
paddingRight: 4
|
|
19
|
+
},
|
|
20
|
+
inputRoot: {
|
|
21
|
+
fontSize: '14px',
|
|
22
|
+
letterSpacing: 0,
|
|
23
|
+
lineHeight: '16px'
|
|
24
|
+
}
|
|
25
|
+
}); });
|
|
@@ -0,0 +1,151 @@
|
|
|
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 __rest = (this && this.__rest) || function (s, e) {
|
|
33
|
+
var t = {};
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
37
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
38
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
39
|
+
t[p[i]] = s[p[i]];
|
|
40
|
+
}
|
|
41
|
+
return t;
|
|
42
|
+
};
|
|
43
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
44
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
45
|
+
to[j] = from[i];
|
|
46
|
+
return to;
|
|
47
|
+
};
|
|
48
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
49
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
50
|
+
};
|
|
51
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52
|
+
var react_autosuggest_1 = __importDefault(require("react-autosuggest"));
|
|
53
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
54
|
+
var TextField_1 = __importDefault(require("@material-ui/core/TextField"));
|
|
55
|
+
var MenuItem_1 = __importDefault(require("@material-ui/core/MenuItem"));
|
|
56
|
+
var Paper_1 = __importDefault(require("@material-ui/core/Paper"));
|
|
57
|
+
var Popper_1 = __importDefault(require("../../Popper/Popper"));
|
|
58
|
+
var prop_types_1 = __importDefault(require("prop-types"));
|
|
59
|
+
var react_1 = __importStar(require("react"));
|
|
60
|
+
var EmptySearchResult_1 = require("../../../components/EmptySearchResult");
|
|
61
|
+
var ramda_1 = require("ramda");
|
|
62
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
63
|
+
var utils_1 = require("../../../core/utils");
|
|
64
|
+
var styles_1 = require("./styles");
|
|
65
|
+
var ExpandedValueTooltip_1 = __importDefault(require("../../ExpandedValueTooltip/ExpandedValueTooltip"));
|
|
66
|
+
var ValueChip_1 = __importDefault(require("../../ValueChip/ValueChip"));
|
|
67
|
+
var FETCH_DEBOUNCE_INTERVAL = 300;
|
|
68
|
+
var TypeaheadEditor = function (_a) {
|
|
69
|
+
var value = _a.value, getSuggestions = _a.getSuggestions, onChange = _a.onChange, multiple = _a.multiple, fullWidth = _a.fullWidth, InputProps = _a.InputProps, inputProps = __rest(_a, ["value", "getSuggestions", "onChange", "multiple", "fullWidth", "InputProps"]);
|
|
70
|
+
var _b = react_1.useState([]), suggestions = _b[0], setSuggestions = _b[1];
|
|
71
|
+
var _c = react_1.useState(false), isPlaceholderVisible = _c[0], setPlaceholderVisibility = _c[1];
|
|
72
|
+
var inputRef = react_1.useRef();
|
|
73
|
+
var styles = styles_1.useStyles();
|
|
74
|
+
var isFocused = function () { var _a; return ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.querySelector('input')) === document.activeElement; };
|
|
75
|
+
var fetchSuggestions = ramda_1.pipe(ramda_1.prop('value'), ramda_1.trim, getSuggestions, ramda_1.andThen(ramda_1.pipe(ramda_1.tap(setSuggestions), ramda_1.both(ramda_1.isEmpty, isFocused), setPlaceholderVisibility)));
|
|
76
|
+
var debouncedFetchSuggestions = react_1.useCallback(mdm_sdk_1.debounce(fetchSuggestions, FETCH_DEBOUNCE_INTERVAL), [
|
|
77
|
+
getSuggestions
|
|
78
|
+
]);
|
|
79
|
+
value = ramda_1.defaultTo(multiple ? [] : '', value);
|
|
80
|
+
var _d = react_1.useState(''), currentValue = _d[0], setCurrentValue = _d[1];
|
|
81
|
+
var _e = react_1.useState(false), hasHighlightedItem = _e[0], setHasHighlightedItem = _e[1];
|
|
82
|
+
var onInputChange = function (_a) {
|
|
83
|
+
var newValue = _a.newValue, method = _a.method;
|
|
84
|
+
switch (method) {
|
|
85
|
+
case 'type': {
|
|
86
|
+
if (multiple) {
|
|
87
|
+
setCurrentValue(newValue);
|
|
88
|
+
}
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
case 'escape': {
|
|
92
|
+
if (multiple) {
|
|
93
|
+
setCurrentValue(newValue);
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
onChange(newValue);
|
|
97
|
+
}
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
case 'click':
|
|
101
|
+
case 'enter': {
|
|
102
|
+
if (multiple) {
|
|
103
|
+
setCurrentValue('');
|
|
104
|
+
if (newValue) {
|
|
105
|
+
onChange(ramda_1.uniq(__spreadArray(__spreadArray([], value), [newValue])));
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
onChange(newValue);
|
|
110
|
+
}
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
return (react_1.default.createElement(react_autosuggest_1.default, { suggestions: suggestions, shouldRenderSuggestions: ramda_1.T, inputProps: __assign(__assign({ value: multiple ? currentValue : value, onChange: ramda_1.pipe(ramda_1.nthArg(1), onInputChange), onKeyDown: function (event) {
|
|
116
|
+
if (event.keyCode === 13 && multiple && !hasHighlightedItem) {
|
|
117
|
+
onInputChange({ method: 'enter', newValue: currentValue });
|
|
118
|
+
}
|
|
119
|
+
}, fullWidth: fullWidth }, inputProps), { autoComplete: 'nope' }), getSuggestionValue: ramda_1.identity, onSuggestionsFetchRequested: ramda_1.ifElse(ramda_1.propEq('reason', 'input-changed'), debouncedFetchSuggestions, fetchSuggestions), onSuggestionsClearRequested: ramda_1.pipe(ramda_1.always([]), setSuggestions, ramda_1.F, setPlaceholderVisibility), renderInputComponent: function (_a) {
|
|
120
|
+
var _b;
|
|
121
|
+
var ref = _a.ref, onInputChange = _a.onChange, otherProps = __rest(_a, ["ref", "onChange"]);
|
|
122
|
+
var commonClasses = {
|
|
123
|
+
underline: classnames_1.default((_b = {}, _b[styles['input__underline']] = mdm_sdk_1.isEmptyValue(value), _b)),
|
|
124
|
+
input: classnames_1.default(styles['rawInput'], ramda_1.path(['classes', 'input'], InputProps))
|
|
125
|
+
};
|
|
126
|
+
return multiple ? (react_1.default.createElement(TextField_1.default, __assign({}, otherProps, { ref: inputRef, inputRef: ref, InputProps: __assign(__assign({}, InputProps), { startAdornment: value.map(function (item, index) { return (react_1.default.createElement(ValueChip_1.default, { key: item, label: item, onDelete: function () { return onChange(ramda_1.remove(index, 1, value)); } })); }), classes: __assign({ root: classnames_1.default(styles['multiple-input__input'], ramda_1.path(['classes', 'root'], InputProps)), adornedStart: styles['multiple-input__adornedStart'] }, commonClasses) }), value: currentValue, onChange: onInputChange, classes: { root: styles['multiple-input__root'] } }))) : (react_1.default.createElement(TextField_1.default, __assign({}, otherProps, { ref: inputRef, inputRef: ref, value: value, onChange: ramda_1.pipe(ramda_1.tap(onInputChange), utils_1.getValue, onChange), InputProps: __assign(__assign({}, InputProps), { classes: __assign({ root: classnames_1.default(styles['input__root'], ramda_1.path(['classes', 'root'], InputProps)) }, commonClasses) }) })));
|
|
127
|
+
}, renderSuggestionsContainer: function (_a) {
|
|
128
|
+
var children = _a.children, _b = _a.containerProps, ref = _b.ref, restContainerProps = __rest(_b, ["ref"]);
|
|
129
|
+
return (react_1.default.createElement(Popper_1.default, { anchorEl: inputRef.current, open: Boolean(children) || isPlaceholderVisible },
|
|
130
|
+
react_1.default.createElement(Paper_1.default, __assign({ ref: ref, square: true }, restContainerProps, { style: { width: ramda_1.prop('clientWidth', inputRef.current) } }), children || react_1.default.createElement(EmptySearchResult_1.NoResults, { className: styles['typeahead__suggestions-placeholder'] }))));
|
|
131
|
+
}, renderSuggestion: function (suggestion, _a) {
|
|
132
|
+
var isHighlighted = _a.isHighlighted;
|
|
133
|
+
return (react_1.default.createElement(MenuItem_1.default, { className: styles['typeahead__suggestions-menuItem'], selected: isHighlighted, component: "div" },
|
|
134
|
+
react_1.default.createElement(ExpandedValueTooltip_1.default, { value: suggestion },
|
|
135
|
+
react_1.default.createElement("div", { className: styles['menuItem--item'] }, suggestion))));
|
|
136
|
+
}, theme: {
|
|
137
|
+
container: fullWidth ? styles['typeahead__suggestions-container'] : '',
|
|
138
|
+
suggestionsList: styles['typeahead__suggestions-list'],
|
|
139
|
+
suggestionsContainerOpen: styles['typeahead__suggestions-container--open']
|
|
140
|
+
}, onSuggestionHighlighted: ramda_1.pipe(ramda_1.prop('suggestion'), Boolean, setHasHighlightedItem) }));
|
|
141
|
+
};
|
|
142
|
+
TypeaheadEditor.propTypes = {
|
|
143
|
+
multiple: prop_types_1.default.bool,
|
|
144
|
+
fullWidth: prop_types_1.default.bool,
|
|
145
|
+
placeholder: prop_types_1.default.string,
|
|
146
|
+
value: prop_types_1.default.oneOfType([prop_types_1.default.string, prop_types_1.default.arrayOf(prop_types_1.default.string)]),
|
|
147
|
+
onChange: prop_types_1.default.func.isRequired,
|
|
148
|
+
getSuggestions: prop_types_1.default.func.isRequired,
|
|
149
|
+
InputProps: prop_types_1.default.object
|
|
150
|
+
};
|
|
151
|
+
exports.default = TypeaheadEditor;
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
'typeahead__suggestions-placeholder': {
|
|
7
|
+
padding: '8px 16px',
|
|
8
|
+
textAlign: 'center'
|
|
9
|
+
},
|
|
10
|
+
'typeahead__suggestions-container--open': {
|
|
11
|
+
maxHeight: '230px',
|
|
12
|
+
overflowY: 'auto'
|
|
13
|
+
},
|
|
14
|
+
'typeahead__suggestions-list': {
|
|
15
|
+
margin: 0,
|
|
16
|
+
padding: 0,
|
|
17
|
+
listStyleType: 'none'
|
|
18
|
+
},
|
|
19
|
+
'typeahead__suggestions-menuItem': {
|
|
20
|
+
color: 'rgba(0,0,0,0.87)',
|
|
21
|
+
fontSize: '14px'
|
|
22
|
+
},
|
|
23
|
+
input__root: {
|
|
24
|
+
color: 'rgba(0,0,0,0.87)',
|
|
25
|
+
fontSize: '14px'
|
|
26
|
+
},
|
|
27
|
+
rawInput: {
|
|
28
|
+
height: '19px'
|
|
29
|
+
},
|
|
30
|
+
'multiple-input__root': {
|
|
31
|
+
flexWrap: 'wrap',
|
|
32
|
+
color: 'rgba(0,0,0,0.87)',
|
|
33
|
+
fontSize: '14px'
|
|
34
|
+
},
|
|
35
|
+
'multiple-input__input': {
|
|
36
|
+
flex: '1 0 25px',
|
|
37
|
+
flexWrap: 'wrap'
|
|
38
|
+
},
|
|
39
|
+
'multiple-input__adornedStart': {
|
|
40
|
+
paddingLeft: '8px'
|
|
41
|
+
},
|
|
42
|
+
input__underline: {
|
|
43
|
+
'&:before': {
|
|
44
|
+
display: 'none'
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
'typeahead__suggestions-container': {
|
|
48
|
+
width: '100%'
|
|
49
|
+
},
|
|
50
|
+
'menuItem--item': {
|
|
51
|
+
overflow: 'hidden',
|
|
52
|
+
textOverflow: 'ellipsis',
|
|
53
|
+
display: 'block'
|
|
54
|
+
}
|
|
55
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
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 __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 ramda_1 = require("ramda");
|
|
20
|
+
var ValueChip_1 = __importDefault(require("../../../ValueChip/ValueChip"));
|
|
21
|
+
var Cancel_1 = __importDefault(require("@material-ui/icons/Cancel"));
|
|
22
|
+
var MultiValueChip = function (props) {
|
|
23
|
+
var children = props.children, data = props.data, removeProps = props.removeProps;
|
|
24
|
+
return (react_1.default.createElement(ValueChip_1.default, { tabIndex: -1, label: children, count: ramda_1.prop('formattedNumber', data), onDelete: removeProps.onClick, deleteIcon: react_1.default.createElement(Cancel_1.default, __assign({}, props.removeProps)) }));
|
|
25
|
+
};
|
|
26
|
+
MultiValueChip.propTypes = {
|
|
27
|
+
children: prop_types_1.default.node,
|
|
28
|
+
data: prop_types_1.default.shape({
|
|
29
|
+
value: prop_types_1.default.string,
|
|
30
|
+
label: prop_types_1.default.string,
|
|
31
|
+
number: prop_types_1.default.number
|
|
32
|
+
}).isRequired,
|
|
33
|
+
removeProps: prop_types_1.default.shape({
|
|
34
|
+
onClick: prop_types_1.default.func.isRequired,
|
|
35
|
+
onMouseDown: prop_types_1.default.func.isRequired,
|
|
36
|
+
onTouchEnd: prop_types_1.default.func.isRequired
|
|
37
|
+
}).isRequired
|
|
38
|
+
};
|
|
39
|
+
exports.default = MultiValueChip;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useSelectStyles = exports.useInputStyles = exports.commonTextFieldProps = void 0;
|
|
4
|
+
var styles_1 = require("@material-ui/core/styles");
|
|
5
|
+
exports.commonTextFieldProps = {
|
|
6
|
+
variant: 'filled',
|
|
7
|
+
margin: 'dense',
|
|
8
|
+
hiddenLabel: true
|
|
9
|
+
};
|
|
10
|
+
exports.useInputStyles = styles_1.makeStyles({
|
|
11
|
+
filledInputUnderline: {
|
|
12
|
+
'&:before': {
|
|
13
|
+
display: 'none'
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
marginDense: {
|
|
17
|
+
margin: 0
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
exports.useSelectStyles = styles_1.makeStyles({
|
|
21
|
+
root: {
|
|
22
|
+
paddingRight: '48px !important'
|
|
23
|
+
},
|
|
24
|
+
icon: {
|
|
25
|
+
right: '12px'
|
|
26
|
+
}
|
|
27
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TimestampEditor = exports.DataTypeValueEditor = exports.DateEditor = exports.DateRangeEditor = exports.NumberEditor = exports.MultiValueChip = exports.FilterValueEditor = exports.TextEditor = exports.DropDownEditor = void 0;
|
|
7
|
+
var DropDownEditor_1 = require("./DropDownEditor/DropDownEditor");
|
|
8
|
+
Object.defineProperty(exports, "DropDownEditor", { enumerable: true, get: function () { return __importDefault(DropDownEditor_1).default; } });
|
|
9
|
+
var TextEditor_1 = require("./TextEditor/TextEditor");
|
|
10
|
+
Object.defineProperty(exports, "TextEditor", { enumerable: true, get: function () { return __importDefault(TextEditor_1).default; } });
|
|
11
|
+
var FilterValueEditor_1 = require("./FilterEditor/FilterValueEditor");
|
|
12
|
+
Object.defineProperty(exports, "FilterValueEditor", { enumerable: true, get: function () { return __importDefault(FilterValueEditor_1).default; } });
|
|
13
|
+
var MultiValueChip_1 = require("./commonComponents/MultiValueChip/MultiValueChip");
|
|
14
|
+
Object.defineProperty(exports, "MultiValueChip", { enumerable: true, get: function () { return __importDefault(MultiValueChip_1).default; } });
|
|
15
|
+
var NumberEditor_1 = require("./NumberEditor/NumberEditor");
|
|
16
|
+
Object.defineProperty(exports, "NumberEditor", { enumerable: true, get: function () { return __importDefault(NumberEditor_1).default; } });
|
|
17
|
+
var DateRangeEditor_1 = require("./DateRangeEditor/DateRangeEditor");
|
|
18
|
+
Object.defineProperty(exports, "DateRangeEditor", { enumerable: true, get: function () { return __importDefault(DateRangeEditor_1).default; } });
|
|
19
|
+
var DateEditor_1 = require("./DateEditor/DateEditor");
|
|
20
|
+
Object.defineProperty(exports, "DateEditor", { enumerable: true, get: function () { return __importDefault(DateEditor_1).default; } });
|
|
21
|
+
var DataTypeValueEditor_1 = require("./DataTypeValueEditor/DataTypeValueEditor");
|
|
22
|
+
Object.defineProperty(exports, "DataTypeValueEditor", { enumerable: true, get: function () { return __importDefault(DataTypeValueEditor_1).default; } });
|
|
23
|
+
var TimestampEditor_1 = require("./TimestampEditor/TimestampEditor");
|
|
24
|
+
Object.defineProperty(exports, "TimestampEditor", { enumerable: true, get: function () { return __importDefault(TimestampEditor_1).default; } });
|