@reltio/components 1.4.2270 → 1.4.2272
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/ActionButton/ActionButton.d.ts +1 -1
- package/ActionButton/ActionButton.js +1 -1
- package/ActionsPanel/types.d.ts +1 -1
- package/AsyncReactSelect/AsyncReactSelect.d.ts +1 -5
- package/AttributesFiltersBuilder/AttributesFiltersBuilder.js +2 -1
- package/AttributesFiltersButton/AttributesFiltersButton.js +1 -1
- package/AttributesValuesEditor/AttributesValuesEditor.js +3 -1
- package/AutoSizeList/AutoSizeList.js +1 -1
- package/BasicAttributeSelector/BasicAttributeSelector.js +1 -1
- package/BasicView/BasicView.d.ts +2 -10
- package/BubbleChart/BubbleChart.d.ts +1 -4
- package/CloudChart/CloudChart.d.ts +1 -4
- package/CollaborationItem/CollaborationItem.js +1 -1
- package/CollaborationItem/components/Comment/Comment.js +1 -1
- package/CollaborationItem/components/RepliedComment/RepliedComment.js +1 -1
- package/ConfigureColumnsPopup/ConfigureColumnsPopup.js +2 -1
- package/CreatableReactSelect/CreatableReactSelect.d.ts +1 -5
- package/DataTypeValueEditor/useEditorContext.test.js +1 -1
- package/DependentLookupEditor/styles.d.ts +1 -1
- package/DropDownMenuButton/DropDownMenuButton.d.ts +1 -1
- package/DropDownMenuButton/DropDownMenuButton.js +4 -2
- package/DropDownSelector/DropDownSelector.js +2 -1
- package/EditModeAttributesFactory/components/EditModeAttribute/EditModeAttribute.d.ts +4 -2
- package/EditModeAttributesList/EditModeAttributesList.d.ts +3 -2
- package/EmptyState/styles.d.ts +1 -1
- package/EntitySelector/EntitySelector.js +3 -1
- package/EntityUriLink/EntityUriLink.d.ts +4 -2
- package/ErrorBoundary/ErrorBoundary.d.ts +1 -0
- package/ExpandedValueTooltip/ExpandedValueTooltip.js +1 -1
- package/FacetsSelector/components/AttributeSelectorPopup/AttributeSelectorPopup.js +1 -1
- package/GaugeChart/GaugeChart.js +1 -1
- package/HOCs/withAsyncMount/withAsyncMount.js +2 -1
- package/HOCs/withReactSelectMuiSkin/components/ReactSelectControl/ReactSelectControl.js +2 -1
- package/HOCs/withReactSelectMuiSkin/styles.d.ts +1 -1
- package/HOCs/withReactSelectMuiSkin/withReactSelectMuiSkin.d.ts +1 -5
- package/HOCs/withReactSelectMuiSkin/withReactSelectMuiSkin.js +3 -6
- package/HierarchyNodeTitle/useEntityDetails.test.js +1 -1
- package/ImageActionsOverlay/styles.d.ts +1 -1
- package/ImageAttributesLine/ImageAttributesLine.js +1 -1
- package/ImageDetailsView/components/MetaInfo/useEditMetaInfo.d.ts +9 -2
- package/InlineSimpleAttribute/InlineSimpleAttribute.js +1 -1
- package/MapChart/MapChart.d.ts +5 -4
- package/MetadataTypesSelector/MetadataTypesSelector.js +1 -1
- package/MetadataTypesSelector/components/ListLabel/ListLabel.js +1 -1
- package/MoreAttributesButton/MoreAttributesButton.js +1 -1
- package/MultiSelect/MultiSelect.d.ts +22 -40
- package/MultiSelect/MultiSelect.js +8 -18
- package/MultiSelect/styles.d.ts +1 -1
- package/MultiValueSelector/MultiValueSelector.js +3 -1
- package/PieChart/PieChart.d.ts +1 -5
- package/Popper/Popper.d.ts +5 -9
- package/Popper/Popper.js +5 -5
- package/PopupWithArrow/PopupWithArrow.d.ts +2 -1
- package/ProfileBandNavigation/useSearchNavigation.test.js +123 -123
- package/ProfilesList/ProfilesList.d.ts +1 -1
- package/RCTree/RCTree.d.ts +3 -4
- package/RCTree/RCTree.js +10 -2
- package/RCTree/RCTreeSwitchRenderer.d.ts +4 -4
- package/RCTree/index.d.ts +1 -0
- package/RCTree/types.d.ts +2 -0
- package/RCTree/useDelayedDragEventCall.d.ts +4 -1
- package/RCTree/useDnd.js +20 -9
- package/ReactSelect/ReactSelect.d.ts +1 -5
- package/ReactSortableTree/ReactSortableTree.js +0 -2
- package/ReactSortableTree/components/NodeRendererDefault/NodeRendererDefault.d.ts +36 -64
- package/ReactSortableTree/components/NodeRendererDefault/NodeRendererDefault.js +8 -18
- package/ReactSortableTree/components/PlaceholderRendererDefault/PlaceholderRendererDefault.d.ts +4 -10
- package/ReactSortableTree/components/PlaceholderRendererDefault/PlaceholderRendererDefault.js +1 -5
- package/ReactSortableTree/components/TreeNode/TreeNode.d.ts +23 -37
- package/ReactSortableTree/components/TreeNode/TreeNode.js +4 -10
- package/ReltioGridLayout/ReltioGridLayout.js +1 -1
- package/ReltioGridLayout/ReltioGridLayout.test.js +3 -3
- package/ResizablePanes/ResizablePanes.js +1 -1
- package/RowCellAutoSizer/RowCellAutoSizer.js +1 -1
- package/SegmentIdLink/SegmentIdLink.d.ts +4 -2
- package/SidePanelEmptyState/styles.d.ts +1 -1
- package/SimpleAttributeEditor/SimpleAttributeEditor.d.ts +6 -11
- package/SimpleAttributeEditor/styles.d.ts +1 -1
- package/SimpleAttributeEditor/useAutopopulationContextValue.test.js +1 -1
- package/SimpleDropDownSelector/styles.d.ts +1 -1
- package/SmallIconButton/SmallIconButton.d.ts +4 -2
- package/SyncedValueHeight/ValueHeightReporter.js +1 -1
- package/UploadFileButton/components/UploadMode/UploadMode.js +1 -1
- package/UserSelector/UserSelector.js +1 -1
- package/VirtualGroupedList/useScrollToFocusItem.d.ts +4 -1
- package/VirtualGroupedList/useScrollToFocusItem.test.js +1 -1
- package/cjs/ActionButton/ActionButton.d.ts +1 -1
- package/cjs/ActionButton/ActionButton.js +1 -1
- package/cjs/ActionsPanel/types.d.ts +1 -1
- package/cjs/AsyncReactSelect/AsyncReactSelect.d.ts +1 -5
- package/cjs/AttributesFiltersBuilder/AttributesFiltersBuilder.js +2 -1
- package/cjs/AttributesFiltersButton/AttributesFiltersButton.js +1 -1
- package/cjs/AttributesValuesEditor/AttributesValuesEditor.js +3 -1
- package/cjs/AutoSizeList/AutoSizeList.js +1 -1
- package/cjs/BasicAttributeSelector/BasicAttributeSelector.js +1 -1
- package/cjs/BasicView/BasicView.d.ts +2 -10
- package/cjs/BubbleChart/BubbleChart.d.ts +1 -4
- package/cjs/CloudChart/CloudChart.d.ts +1 -4
- package/cjs/CollaborationItem/CollaborationItem.js +1 -1
- package/cjs/CollaborationItem/components/Comment/Comment.js +1 -1
- package/cjs/CollaborationItem/components/RepliedComment/RepliedComment.js +1 -1
- package/cjs/ConfigureColumnsPopup/ConfigureColumnsPopup.js +2 -1
- package/cjs/CreatableReactSelect/CreatableReactSelect.d.ts +1 -5
- package/cjs/DataTypeValueEditor/useEditorContext.test.js +2 -2
- package/cjs/DependentLookupEditor/styles.d.ts +1 -1
- package/cjs/DropDownMenuButton/DropDownMenuButton.d.ts +1 -1
- package/cjs/DropDownMenuButton/DropDownMenuButton.js +4 -2
- package/cjs/DropDownSelector/DropDownSelector.js +2 -1
- package/cjs/EditModeAttributesFactory/components/EditModeAttribute/EditModeAttribute.d.ts +4 -2
- package/cjs/EditModeAttributesList/EditModeAttributesList.d.ts +3 -2
- package/cjs/EmptyState/styles.d.ts +1 -1
- package/cjs/EntitySelector/EntitySelector.js +3 -1
- package/cjs/EntityUriLink/EntityUriLink.d.ts +4 -2
- package/cjs/ErrorBoundary/ErrorBoundary.d.ts +1 -0
- package/cjs/ExpandedValueTooltip/ExpandedValueTooltip.js +1 -1
- package/cjs/FacetsSelector/components/AttributeSelectorPopup/AttributeSelectorPopup.js +1 -1
- package/cjs/GaugeChart/GaugeChart.js +1 -1
- package/cjs/HOCs/withAsyncMount/withAsyncMount.js +2 -1
- package/cjs/HOCs/withReactSelectMuiSkin/components/ReactSelectControl/ReactSelectControl.js +2 -1
- package/cjs/HOCs/withReactSelectMuiSkin/styles.d.ts +1 -1
- package/cjs/HOCs/withReactSelectMuiSkin/withReactSelectMuiSkin.d.ts +1 -5
- package/cjs/HOCs/withReactSelectMuiSkin/withReactSelectMuiSkin.js +3 -6
- package/cjs/HierarchyNodeTitle/useEntityDetails.test.js +18 -18
- package/cjs/ImageActionsOverlay/styles.d.ts +1 -1
- package/cjs/ImageAttributesLine/ImageAttributesLine.js +1 -1
- package/cjs/ImageDetailsView/components/MetaInfo/useEditMetaInfo.d.ts +9 -2
- package/cjs/InlineSimpleAttribute/InlineSimpleAttribute.js +1 -1
- package/cjs/MapChart/MapChart.d.ts +5 -4
- package/cjs/MetadataTypesSelector/MetadataTypesSelector.js +1 -1
- package/cjs/MetadataTypesSelector/components/ListLabel/ListLabel.js +1 -1
- package/cjs/MoreAttributesButton/MoreAttributesButton.js +1 -1
- package/cjs/MultiSelect/MultiSelect.d.ts +22 -40
- package/cjs/MultiSelect/MultiSelect.js +7 -17
- package/cjs/MultiSelect/styles.d.ts +1 -1
- package/cjs/MultiValueSelector/MultiValueSelector.js +3 -1
- package/cjs/PieChart/PieChart.d.ts +1 -5
- package/cjs/Popper/Popper.d.ts +5 -9
- package/cjs/Popper/Popper.js +5 -5
- package/cjs/PopupWithArrow/PopupWithArrow.d.ts +2 -1
- package/cjs/ProfileBandNavigation/useSearchNavigation.test.js +177 -177
- package/cjs/ProfilesList/ProfilesList.d.ts +1 -1
- package/cjs/RCTree/RCTree.d.ts +3 -4
- package/cjs/RCTree/RCTree.js +10 -2
- package/cjs/RCTree/RCTreeSwitchRenderer.d.ts +4 -4
- package/cjs/RCTree/index.d.ts +1 -0
- package/cjs/RCTree/types.d.ts +2 -0
- package/cjs/RCTree/useDelayedDragEventCall.d.ts +4 -1
- package/cjs/RCTree/useDnd.js +19 -8
- package/cjs/ReactSelect/ReactSelect.d.ts +1 -5
- package/cjs/ReactSortableTree/ReactSortableTree.js +0 -2
- package/cjs/ReactSortableTree/components/NodeRendererDefault/NodeRendererDefault.d.ts +36 -64
- package/cjs/ReactSortableTree/components/NodeRendererDefault/NodeRendererDefault.js +8 -18
- package/cjs/ReactSortableTree/components/PlaceholderRendererDefault/PlaceholderRendererDefault.d.ts +4 -10
- package/cjs/ReactSortableTree/components/PlaceholderRendererDefault/PlaceholderRendererDefault.js +1 -5
- package/cjs/ReactSortableTree/components/TreeNode/TreeNode.d.ts +23 -37
- package/cjs/ReactSortableTree/components/TreeNode/TreeNode.js +4 -10
- package/cjs/ReltioGridLayout/ReltioGridLayout.js +1 -1
- package/cjs/ReltioGridLayout/ReltioGridLayout.test.js +3 -3
- package/cjs/ResizablePanes/ResizablePanes.js +1 -1
- package/cjs/RowCellAutoSizer/RowCellAutoSizer.js +1 -1
- package/cjs/SegmentIdLink/SegmentIdLink.d.ts +4 -2
- package/cjs/SidePanelEmptyState/styles.d.ts +1 -1
- package/cjs/SimpleAttributeEditor/SimpleAttributeEditor.d.ts +6 -11
- package/cjs/SimpleAttributeEditor/styles.d.ts +1 -1
- package/cjs/SimpleAttributeEditor/useAutopopulationContextValue.test.js +2 -2
- package/cjs/SimpleDropDownSelector/styles.d.ts +1 -1
- package/cjs/SmallIconButton/SmallIconButton.d.ts +4 -2
- package/cjs/SyncedValueHeight/ValueHeightReporter.js +1 -1
- package/cjs/UploadFileButton/components/UploadMode/UploadMode.js +1 -1
- package/cjs/UserSelector/UserSelector.js +1 -1
- package/cjs/VirtualGroupedList/useScrollToFocusItem.d.ts +4 -1
- package/cjs/VirtualGroupedList/useScrollToFocusItem.test.js +5 -5
- package/cjs/contexts/AutoExpandedAttributesContext/useAttributeAutoExpanded.test.js +2 -2
- package/cjs/contexts/ReloadDataContext/ReloadDataContext.spec.js +4 -4
- package/cjs/features/activity-log/ActivityFilterButton/ActivityFilterButton.js +1 -1
- package/cjs/features/crosswalks/AttributesTable/AttributesTable.test.js +10 -3
- package/cjs/features/crosswalks/CrosswalkAttributes/CrosswalkAttributes.test.js +11 -6
- package/cjs/features/crosswalks/CrosswalkEditor/CrosswalkEditor.test.js +15 -10
- package/cjs/features/crosswalks/CrosswalkRow/CrosswalkRow.test.js +11 -6
- package/cjs/features/crosswalks/hooks/useAttributeActions.test.js +26 -26
- package/cjs/features/crosswalks/hooks/useCrosswalkActions.test.js +12 -12
- package/cjs/features/crosswalks/hooks/useModifiedEntity.js +4 -4
- package/cjs/features/crosswalks/hooks/useModifiedEntity.test.js +17 -17
- package/cjs/features/graph/DataModelGraph/hooks/useDataModelGraphAppearance.test.js +17 -28
- package/cjs/features/graph/DataModelGraph/hooks/useEdgeLabelsRenderer.test.js +10 -10
- package/cjs/features/graph/DataModelGraph/hooks/useFakeCenterNode.test.js +3 -3
- package/cjs/features/graph/DataModelGraph/hooks/useSelectedNodeRenderer.test.js +4 -4
- package/cjs/features/graph/hooks/useLoopRenderer.test.js +3 -3
- package/cjs/features/graph/hooks/useSigmaCustomRenderers.test.js +28 -28
- package/cjs/features/history/HistoryFilterButton/HistoryFilterButton.js +1 -1
- package/cjs/features/history/hooks/useHistory.test.js +36 -36
- package/cjs/features/history/hooks/useHistoryDiff.test.js +2 -2
- package/cjs/features/history/hooks/useHistoryEnabled.test.js +2 -2
- package/cjs/features/history/hooks/useHistorySlice.test.js +8 -8
- package/cjs/features/history/hooks/useHistoryTree.test.js +2 -2
- package/cjs/features/workflow/AddWorkflowDialog/styles.d.ts +1 -1
- package/cjs/features/workflow/hooks/useChangeRequest.test.js +7 -7
- package/cjs/features/workflow/hooks/useWorkflowCheckPermission.test.js +2 -2
- package/cjs/features/workflow/hooks/useWorkflowColor.test.js +2 -2
- package/cjs/helpers/customScript.test.js +3 -3
- package/cjs/hooks/useAPI/useAPI.js +2 -2
- package/cjs/hooks/useAPI/useAPI.test.js +134 -134
- package/cjs/hooks/useChangedAttributes/useChangedAttributes.js +2 -2
- package/cjs/hooks/useCollaboration/useCollaboration.d.ts +47 -9
- package/cjs/hooks/useCollaboration/useCollaboration.js +10 -13
- package/cjs/hooks/useCollaboration/useCollaboration.test.js +55 -54
- package/cjs/hooks/useCollapsibleTableRows/useCollapsibleTableRows.test.js +8 -8
- package/cjs/hooks/useCommentsEntitiesMap/useCommentsEntitiesMap.test.js +10 -10
- package/cjs/hooks/useConfigPermissions/useConfigPermissions.test.js +2 -2
- package/cjs/hooks/useCustomScripts/useCustomScripts.test.js +25 -25
- package/cjs/hooks/useDndBasicTableScrollModifier/useDndBasicTableScrollModifier.js +1 -1
- package/cjs/hooks/useEditableConnection/useEditableConnection.test.js +2 -2
- package/cjs/hooks/useFilterAutoFocus/useFilterAutoFocus.d.ts +3 -3
- package/cjs/hooks/useHiddenAttributes/useHiddenAttributes.test.js +2 -2
- package/cjs/hooks/useHtmlSanitizer/useHtmlSanitizer.test.js +2 -2
- package/cjs/hooks/useKeyboardNavigation/useKeyboardNavigation.d.ts +1 -1
- package/cjs/hooks/useKeyboardNavigation/useKeyboardNavigation.test.js +3 -3
- package/cjs/hooks/useMatchesLoader/useMatchesLoader.test.js +24 -16
- package/cjs/hooks/usePrevious/usePrevious.js +1 -1
- package/cjs/hooks/useReadableSearchState/useReadableSearchState.test.js +5 -5
- package/cjs/hooks/useRelationsLoader/useRelationsLoader.test.js +50 -50
- package/cjs/hooks/useSavedSearchesRequest/useSavedSearchesRequest.test.js +36 -36
- package/cjs/hooks/useSavedStateForEntityType/useSavedStateForEntityType.test.js +20 -16
- package/cjs/hooks/useScrollToAttributeError/useScrollToAttributeError.test.js +3 -3
- package/cjs/hooks/useUsers/useUsers.test.js +14 -15
- package/cjs/hooks/useWhyDidYouUpdate/useWhyDidYouUpdate.js +1 -1
- package/cjs/test-utils/dndKit/DndContextComponent.js +3 -0
- package/cjs/test-utils/dndKit/index.d.ts +1 -0
- package/cjs/test-utils/dndKit/useDndMonitorProvider.d.ts +4 -1
- package/cjs/test-utils/dndKit/useDraggable.d.ts +1 -0
- package/cjs/test-utils/dndKit/useDraggable.js +8 -1
- package/cjs/test-utils/index.d.ts +1 -1
- package/cjs/test-utils/index.js +4 -1
- package/cjs/test-utils/mockStoreHooks.d.ts +4 -0
- package/cjs/test-utils/mockStoreHooks.js +21 -0
- package/cjs/utils/withChildrenProp.d.ts +10 -0
- package/cjs/utils/withChildrenProp.js +13 -0
- package/contexts/AutoExpandedAttributesContext/useAttributeAutoExpanded.test.js +1 -1
- package/contexts/ReloadDataContext/ReloadDataContext.spec.js +1 -1
- package/features/activity-log/ActivityFilterButton/ActivityFilterButton.js +1 -1
- package/features/crosswalks/AttributesTable/AttributesTable.test.js +11 -4
- package/features/crosswalks/CrosswalkAttributes/CrosswalkAttributes.test.js +11 -6
- package/features/crosswalks/CrosswalkEditor/CrosswalkEditor.test.js +15 -10
- package/features/crosswalks/CrosswalkRow/CrosswalkRow.test.js +11 -6
- package/features/crosswalks/hooks/useAttributeActions.test.js +1 -1
- package/features/crosswalks/hooks/useCrosswalkActions.test.js +1 -1
- package/features/crosswalks/hooks/useModifiedEntity.js +4 -4
- package/features/crosswalks/hooks/useModifiedEntity.test.js +1 -1
- package/features/graph/DataModelGraph/hooks/useDataModelGraphAppearance.test.js +14 -25
- package/features/graph/DataModelGraph/hooks/useEdgeLabelsRenderer.test.js +1 -1
- package/features/graph/DataModelGraph/hooks/useFakeCenterNode.test.js +1 -1
- package/features/graph/DataModelGraph/hooks/useSelectedNodeRenderer.test.js +1 -1
- package/features/graph/hooks/useLoopRenderer.test.js +1 -1
- package/features/graph/hooks/useSigmaCustomRenderers.test.js +1 -1
- package/features/history/HistoryFilterButton/HistoryFilterButton.js +1 -1
- package/features/history/hooks/useHistory.test.js +1 -1
- package/features/history/hooks/useHistoryDiff.test.js +1 -1
- package/features/history/hooks/useHistoryEnabled.test.js +1 -1
- package/features/history/hooks/useHistorySlice.test.js +1 -1
- package/features/history/hooks/useHistoryTree.test.js +1 -1
- package/features/workflow/AddWorkflowDialog/styles.d.ts +1 -1
- package/features/workflow/hooks/useChangeRequest.test.js +1 -1
- package/features/workflow/hooks/useWorkflowCheckPermission.test.js +1 -1
- package/features/workflow/hooks/useWorkflowColor.test.js +1 -1
- package/helpers/customScript.test.js +1 -1
- package/hooks/useAPI/useAPI.js +2 -2
- package/hooks/useAPI/useAPI.test.js +44 -44
- package/hooks/useChangedAttributes/useChangedAttributes.js +2 -2
- package/hooks/useCollaboration/useCollaboration.d.ts +47 -9
- package/hooks/useCollaboration/useCollaboration.js +10 -13
- package/hooks/useCollaboration/useCollaboration.test.js +3 -2
- package/hooks/useCollapsibleTableRows/useCollapsibleTableRows.test.js +1 -1
- package/hooks/useCommentsEntitiesMap/useCommentsEntitiesMap.test.js +1 -1
- package/hooks/useConfigPermissions/useConfigPermissions.test.js +1 -1
- package/hooks/useCustomScripts/useCustomScripts.test.js +11 -11
- package/hooks/useDndBasicTableScrollModifier/useDndBasicTableScrollModifier.js +1 -1
- package/hooks/useEditableConnection/useEditableConnection.test.js +1 -1
- package/hooks/useFilterAutoFocus/useFilterAutoFocus.d.ts +3 -3
- package/hooks/useHiddenAttributes/useHiddenAttributes.test.js +1 -1
- package/hooks/useHtmlSanitizer/useHtmlSanitizer.test.js +1 -1
- package/hooks/useKeyboardNavigation/useKeyboardNavigation.d.ts +1 -1
- package/hooks/useKeyboardNavigation/useKeyboardNavigation.test.js +1 -1
- package/hooks/useMatchesLoader/useMatchesLoader.test.js +23 -15
- package/hooks/usePrevious/usePrevious.js +1 -1
- package/hooks/useReadableSearchState/useReadableSearchState.test.js +3 -3
- package/hooks/useRelationsLoader/useRelationsLoader.test.js +38 -38
- package/hooks/useSavedSearchesRequest/useSavedSearchesRequest.test.js +1 -1
- package/hooks/useSavedStateForEntityType/useSavedStateForEntityType.test.js +7 -3
- package/hooks/useScrollToAttributeError/useScrollToAttributeError.test.js +1 -1
- package/hooks/useUsers/useUsers.test.js +12 -13
- package/hooks/useWhyDidYouUpdate/useWhyDidYouUpdate.js +1 -1
- package/package.json +5 -6
- package/test-utils/dndKit/DndContextComponent.js +3 -0
- package/test-utils/dndKit/index.d.ts +1 -0
- package/test-utils/dndKit/useDndMonitorProvider.d.ts +4 -1
- package/test-utils/dndKit/useDraggable.d.ts +1 -0
- package/test-utils/dndKit/useDraggable.js +8 -1
- package/test-utils/index.d.ts +1 -1
- package/test-utils/index.js +1 -0
- package/test-utils/mockStoreHooks.d.ts +4 -0
- package/test-utils/mockStoreHooks.js +16 -0
- package/utils/withChildrenProp.d.ts +10 -0
- package/utils/withChildrenProp.js +9 -0
|
@@ -1,39 +1,23 @@
|
|
|
1
1
|
export function MultiSelect(props: any): React.JSX.Element;
|
|
2
2
|
export namespace MultiSelect {
|
|
3
|
-
namespace defaultProps {
|
|
4
|
-
let creatable: boolean;
|
|
5
|
-
let cacheOptions: boolean;
|
|
6
|
-
let components: {};
|
|
7
|
-
let classes: {};
|
|
8
|
-
let placeholder: string;
|
|
9
|
-
let loadingIndicator: boolean;
|
|
10
|
-
function onInputChange(): void;
|
|
11
|
-
function onChange(): void;
|
|
12
|
-
}
|
|
13
3
|
namespace propTypes {
|
|
14
|
-
let
|
|
15
|
-
|
|
16
|
-
let
|
|
17
|
-
|
|
18
|
-
export let defaultOptions: PropTypes.Requireable<boolean>;
|
|
19
|
-
export let value: PropTypes.Requireable<PropTypes.InferProps<{
|
|
4
|
+
let creatable: PropTypes.Requireable<boolean>;
|
|
5
|
+
let cacheOptions: PropTypes.Requireable<boolean>;
|
|
6
|
+
let defaultOptions: PropTypes.Requireable<boolean>;
|
|
7
|
+
let value: PropTypes.Requireable<PropTypes.InferProps<{
|
|
20
8
|
label: PropTypes.Validator<string>;
|
|
21
9
|
value: PropTypes.Requireable<any>;
|
|
22
10
|
}>[]>;
|
|
23
|
-
|
|
11
|
+
let options: PropTypes.Requireable<PropTypes.InferProps<{
|
|
24
12
|
label: PropTypes.Validator<string>;
|
|
25
13
|
value: PropTypes.Requireable<any>;
|
|
26
14
|
}>[]>;
|
|
27
|
-
let
|
|
28
|
-
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
let
|
|
32
|
-
|
|
33
|
-
export let label: PropTypes.Requireable<string>;
|
|
34
|
-
let loadingIndicator_1: PropTypes.Requireable<boolean>;
|
|
35
|
-
export { loadingIndicator_1 as loadingIndicator };
|
|
36
|
-
let components_1: PropTypes.Requireable<PropTypes.InferProps<{
|
|
15
|
+
let onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
16
|
+
let onInputChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
|
+
let placeholder: PropTypes.Requireable<string>;
|
|
18
|
+
let label: PropTypes.Requireable<string>;
|
|
19
|
+
let loadingIndicator: PropTypes.Requireable<boolean>;
|
|
20
|
+
let components: PropTypes.Requireable<PropTypes.InferProps<{
|
|
37
21
|
ClearIndicator: PropTypes.Requireable<(...args: any[]) => any>;
|
|
38
22
|
Control: PropTypes.Requireable<(...args: any[]) => any>;
|
|
39
23
|
DropdownIndicator: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -60,8 +44,7 @@ export namespace MultiSelect {
|
|
|
60
44
|
SingleValue: PropTypes.Requireable<(...args: any[]) => any>;
|
|
61
45
|
ValueContainer: PropTypes.Requireable<(...args: any[]) => any>;
|
|
62
46
|
}>>;
|
|
63
|
-
|
|
64
|
-
let classes_1: PropTypes.Requireable<PropTypes.InferProps<{
|
|
47
|
+
let classes: PropTypes.Requireable<PropTypes.InferProps<{
|
|
65
48
|
control: PropTypes.Requireable<string>;
|
|
66
49
|
valueContainer: PropTypes.Requireable<string>;
|
|
67
50
|
multiValue: PropTypes.Requireable<string>;
|
|
@@ -75,8 +58,7 @@ export namespace MultiSelect {
|
|
|
75
58
|
'option--selected': PropTypes.Requireable<string>;
|
|
76
59
|
label: PropTypes.Requireable<string>;
|
|
77
60
|
}>>;
|
|
78
|
-
|
|
79
|
-
export let styles: PropTypes.Requireable<PropTypes.InferProps<{
|
|
61
|
+
let styles: PropTypes.Requireable<PropTypes.InferProps<{
|
|
80
62
|
clearIndicator: PropTypes.Requireable<(...args: any[]) => any>;
|
|
81
63
|
container: PropTypes.Requireable<(...args: any[]) => any>;
|
|
82
64
|
control: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -100,15 +82,15 @@ export namespace MultiSelect {
|
|
|
100
82
|
singleValue: PropTypes.Requireable<(...args: any[]) => any>;
|
|
101
83
|
valueContainer: PropTypes.Requireable<(...args: any[]) => any>;
|
|
102
84
|
}>>;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
85
|
+
let TextFieldProps: PropTypes.Requireable<object>;
|
|
86
|
+
let getOptions: PropTypes.Requireable<(...args: any[]) => any>;
|
|
87
|
+
let menuPlacement: PropTypes.Requireable<string>;
|
|
88
|
+
let menuPortalTarget: PropTypes.Requireable<object>;
|
|
89
|
+
let menuShouldBlockScroll: PropTypes.Requireable<boolean>;
|
|
90
|
+
let captureMenuScroll: PropTypes.Requireable<boolean>;
|
|
91
|
+
let getOptionValue: PropTypes.Requireable<(...args: any[]) => any>;
|
|
92
|
+
let isSearchable: PropTypes.Requireable<boolean>;
|
|
93
|
+
let inputRef: PropTypes.Requireable<PropTypes.InferProps<{
|
|
112
94
|
current: PropTypes.Requireable<object>;
|
|
113
95
|
}>>;
|
|
114
96
|
}
|
|
@@ -20,9 +20,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
-
import React, { useState, useRef } from 'react';
|
|
23
|
+
import React, { useState, useRef, useId } from 'react';
|
|
24
24
|
import PropTypes from 'prop-types';
|
|
25
25
|
import { omit, prop } from 'ramda';
|
|
26
|
+
import { noop } from '@reltio/mdm-sdk';
|
|
26
27
|
import { CreatableReactSelect } from '../CreatableReactSelect';
|
|
27
28
|
import { ReactSelect } from '../ReactSelect';
|
|
28
29
|
import { AsyncReactSelect } from '../AsyncReactSelect';
|
|
@@ -37,15 +38,14 @@ var getControlRef = function (innerRef) {
|
|
|
37
38
|
}
|
|
38
39
|
return controlRef;
|
|
39
40
|
};
|
|
40
|
-
var
|
|
41
|
-
var getInputId = function () { return "custom-select-".concat(id++); };
|
|
41
|
+
var EMPTY_OBJECT = {};
|
|
42
42
|
export var MultiSelect = function (props) {
|
|
43
|
-
var label = props.label,
|
|
43
|
+
var label = props.label, _a = props.creatable, creatable = _a === void 0 ? false : _a, getOptions = props.getOptions, _b = props.loadingIndicator, loadingIndicator = _b === void 0 ? false : _b, _c = props.components, componentsProp = _c === void 0 ? EMPTY_OBJECT : _c, _d = props.classes, classesProp = _d === void 0 ? EMPTY_OBJECT : _d, stylesProp = props.styles, _e = props.onChange, onChangeProp = _e === void 0 ? noop : _e, _f = props.onInputChange, onInputChangeProp = _f === void 0 ? noop : _f, _g = props.menuPlacement, menuPlacement = _g === void 0 ? 'auto' : _g, _h = props.cacheOptions, cacheOptions = _h === void 0 ? true : _h, _j = props.placeholder, placeholder = _j === void 0 ? '' : _j, reactSelectProps = __rest(props, ["label", "creatable", "getOptions", "loadingIndicator", "components", "classes", "styles", "onChange", "onInputChange", "menuPlacement", "cacheOptions", "placeholder"]);
|
|
44
44
|
var SelectComponent = creatable ? CreatableReactSelect : getOptions ? AsyncReactSelect : ReactSelect;
|
|
45
|
-
var
|
|
45
|
+
var _k = useState(''), inputValue = _k[0], setInputValue = _k[1];
|
|
46
46
|
var multiSelectClasses = useStyles(omit(['classes'], props));
|
|
47
|
-
var inputId =
|
|
48
|
-
var innerRef = useRef();
|
|
47
|
+
var inputId = useId();
|
|
48
|
+
var innerRef = useRef(null);
|
|
49
49
|
useKeepInputVisible(props.value, getControlRef(innerRef));
|
|
50
50
|
var components = __assign(__assign({}, customComponents), componentsProp);
|
|
51
51
|
var classes = mergeClasses(multiSelectClasses, classesProp);
|
|
@@ -74,17 +74,7 @@ export var MultiSelect = function (props) {
|
|
|
74
74
|
} }, props.TextFieldProps)
|
|
75
75
|
}
|
|
76
76
|
: {};
|
|
77
|
-
return (React.createElement(SelectComponent, __assign({ isMulti: true, inputId: inputId, inputValue: inputValue, onChange: handleChange, onInputChange: handleInputChange, closeMenuOnSelect: false, hideSelectedOptions: false, classes: classes, components: components, styles: styles, menuPlacement: menuPlacement, loadOptions: getOptions, innerRef: innerRef }, labelProps, reactSelectProps)));
|
|
78
|
-
};
|
|
79
|
-
MultiSelect.defaultProps = {
|
|
80
|
-
creatable: false,
|
|
81
|
-
cacheOptions: true,
|
|
82
|
-
components: {},
|
|
83
|
-
classes: {},
|
|
84
|
-
placeholder: '',
|
|
85
|
-
loadingIndicator: false,
|
|
86
|
-
onInputChange: function () { },
|
|
87
|
-
onChange: function () { }
|
|
77
|
+
return (React.createElement(SelectComponent, __assign({ isMulti: true, inputId: inputId, inputValue: inputValue, onChange: handleChange, onInputChange: handleInputChange, closeMenuOnSelect: false, hideSelectedOptions: false, classes: classes, components: components, styles: styles, menuPlacement: menuPlacement, cacheOptions: cacheOptions, placeholder: placeholder, loadOptions: getOptions, innerRef: innerRef }, labelProps, reactSelectProps)));
|
|
88
78
|
};
|
|
89
79
|
MultiSelect.propTypes = {
|
|
90
80
|
/**
|
package/MultiSelect/styles.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ type PlaceholderProps = {
|
|
|
2
2
|
placeholder?: string;
|
|
3
3
|
label?: string;
|
|
4
4
|
};
|
|
5
|
-
export declare const useStyles: (props: PlaceholderProps) => import("@mui/styles").ClassNameMap<"
|
|
5
|
+
export declare const useStyles: (props: PlaceholderProps) => import("@mui/styles").ClassNameMap<"label" | "placeholder" | "dropdownIndicator" | "clearIndicator" | "option--selected">;
|
|
6
6
|
export {};
|
|
@@ -30,8 +30,10 @@ import { MultiValueChip } from '../MultiValueChip';
|
|
|
30
30
|
import { EmptyStub } from '../EmptyStub';
|
|
31
31
|
import { MultiSelect } from '../MultiSelect';
|
|
32
32
|
import { useStyles, customStyles } from './styles';
|
|
33
|
+
var EMPTY_ARRAY = [];
|
|
34
|
+
var EMPTY_TEXT_FIELD_PROPS = {};
|
|
33
35
|
var MultiValueSelector = function (_a) {
|
|
34
|
-
var _b = _a.values, values = _b === void 0 ?
|
|
36
|
+
var _b = _a.values, values = _b === void 0 ? EMPTY_ARRAY : _b, onChange = _a.onChange, options = _a.options, fullWidth = _a.fullWidth, _c = _a.TextFieldProps, TextFieldProps = _c === void 0 ? EMPTY_TEXT_FIELD_PROPS : _c;
|
|
35
37
|
var styles = useStyles();
|
|
36
38
|
var inputRef = useRef(null);
|
|
37
39
|
var valueToOption = useCallback(function (value) { return options.find(function (option) { return option.value === value; }) || { value: value, label: value }; }, [options]);
|
package/PieChart/PieChart.d.ts
CHANGED
|
@@ -8,11 +8,7 @@ type Props = BaseChartProps & {
|
|
|
8
8
|
};
|
|
9
9
|
export declare const PieChart: ({ width, height, data, options, isDonut, onItemClick }: Props) => React.JSX.Element;
|
|
10
10
|
declare const _default: {
|
|
11
|
-
({ data, ...otherProps }:
|
|
12
|
-
chartType?: ChartType.PIE | ChartType.DONUT;
|
|
13
|
-
isDonut?: boolean;
|
|
14
|
-
options?: PieChartOptions;
|
|
15
|
-
}): React.JSX.Element;
|
|
11
|
+
({ data, ...otherProps }: Props): React.JSX.Element;
|
|
16
12
|
displayName: string;
|
|
17
13
|
};
|
|
18
14
|
export default _default;
|
package/Popper/Popper.d.ts
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
components?: {
|
|
5
|
-
Root?: React.ElementType;
|
|
6
|
-
};
|
|
7
|
-
componentsProps?: import("@mui/base").PopperProps["slotProps"];
|
|
8
|
-
sx?: import("@mui/system").SxProps<import("@mui/material").Theme>;
|
|
9
|
-
} & {
|
|
2
|
+
import { PopperProps } from '@mui/material/Popper';
|
|
3
|
+
type Props = PopperProps & {
|
|
10
4
|
modal?: boolean;
|
|
11
5
|
anchorEl?: HTMLElement | null;
|
|
12
6
|
excludeAnchorFromBackdrop?: boolean;
|
|
13
7
|
onClose?: () => void;
|
|
14
|
-
}
|
|
8
|
+
};
|
|
9
|
+
export declare const Popper: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export {};
|
package/Popper/Popper.js
CHANGED
|
@@ -32,11 +32,11 @@ export var Popper = forwardRef(function (_a, ref) {
|
|
|
32
32
|
var _b;
|
|
33
33
|
var open = _a.open, anchorEl = _a.anchorEl, className = _a.className, _c = _a.modal, modal = _c === void 0 ? true : _c, _d = _a.excludeAnchorFromBackdrop, excludeAnchorFromBackdrop = _d === void 0 ? true : _d, _e = _a.onClose, onClose = _e === void 0 ? identity : _e, otherProps = __rest(_a, ["open", "anchorEl", "className", "modal", "excludeAnchorFromBackdrop", "onClose"]);
|
|
34
34
|
var styles = useStyles();
|
|
35
|
-
var leftBackdropRef = useRef();
|
|
36
|
-
var rightBackdropRef = useRef();
|
|
37
|
-
var topBackdropRef = useRef();
|
|
38
|
-
var bottomBackdropRef = useRef();
|
|
39
|
-
var rafIdRef = useRef();
|
|
35
|
+
var leftBackdropRef = useRef(null);
|
|
36
|
+
var rightBackdropRef = useRef(null);
|
|
37
|
+
var topBackdropRef = useRef(null);
|
|
38
|
+
var bottomBackdropRef = useRef(null);
|
|
39
|
+
var rafIdRef = useRef(null);
|
|
40
40
|
var currentTheme = useTheme();
|
|
41
41
|
useEffect(function () {
|
|
42
42
|
if (open && modal) {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Popper } from '../Popper';
|
|
3
|
-
type Props = React.ComponentPropsWithoutRef<typeof Popper> & {
|
|
3
|
+
type Props = Omit<React.ComponentPropsWithoutRef<typeof Popper>, 'children'> & {
|
|
4
4
|
classes?: {
|
|
5
5
|
root?: string;
|
|
6
6
|
arrow?: string;
|
|
7
7
|
};
|
|
8
|
+
children?: React.ReactNode;
|
|
8
9
|
};
|
|
9
10
|
export declare const PopupWithArrow: ({ children, className, classes, transition, ...otherProps }: Props) => React.JSX.Element;
|
|
10
11
|
export {};
|