@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
|
@@ -32,7 +32,7 @@ import { SmallIconButtonWithTooltip } from '../SmallIconButton';
|
|
|
32
32
|
import { ActionButtonMode } from '../types';
|
|
33
33
|
import { useStyles } from './styles';
|
|
34
34
|
export var ActionButton = forwardRef(function (_a, ref) {
|
|
35
|
-
var className = _a.className, _b = _a.mode, mode = _b === void 0 ? ActionButtonMode.iconButton : _b,
|
|
35
|
+
var className = _a.className, _b = _a.mode, mode = _b === void 0 ? ActionButtonMode.iconButton : _b, _c = _a.label, label = _c === void 0 ? '' : _c, description = _a.description, disabled = _a.disabled, Icon = _a.icon, _d = _a.onClick, onClick = _d === void 0 ? identity : _d, _e = _a.onMenuClose, onMenuClose = _e === void 0 ? identity : _e, otherProps = __rest(_a, ["className", "mode", "label", "description", "disabled", "icon", "onClick", "onMenuClose"]);
|
|
36
36
|
var styles = useStyles();
|
|
37
37
|
var getButtonView = function () {
|
|
38
38
|
var _a, _b;
|
package/ActionsPanel/types.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export declare const AsyncReactSelect: {
|
|
2
|
-
(
|
|
2
|
+
({ components: componentsProp, classes: classesProp, error, TextFieldProps, innerRef, ...selectProps }: Omit<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<unknown, boolean, import("react-select").GroupBase<unknown>>, "onChange" | "value" | "onMenuClose" | "onMenuOpen" | "menuIsOpen" | "inputValue" | "onInputChange"> & Partial<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<unknown, boolean, import("react-select").GroupBase<unknown>>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<unknown> & import("..").ReactSelectMuiSkinProps): import("react").JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
|
-
defaultProps: {
|
|
5
|
-
components: {};
|
|
6
|
-
classes: {};
|
|
7
|
-
};
|
|
8
4
|
};
|
|
@@ -33,8 +33,9 @@ import { useFilterAutoFocus } from '../hooks/useFilterAutoFocus';
|
|
|
33
33
|
import { AttributesValuesEditor } from '../AttributesValuesEditor';
|
|
34
34
|
import styles from './AttributesFiltersBuilder.module.css';
|
|
35
35
|
var EMPTY_FILTER = { fieldName: null, filter: null, operator: SearchOperator.and, values: [] };
|
|
36
|
+
var EMPTY_OBJECT = {};
|
|
36
37
|
var AttributesFiltersBuilder = function (_a) {
|
|
37
|
-
var _b = _a.classes, classes = _b === void 0 ?
|
|
38
|
+
var _b = _a.classes, classes = _b === void 0 ? EMPTY_OBJECT : _b, attributesTypesGroups = _a.attributesTypesGroups, attributesTypesGroupFilter = _a.attributesTypesGroupFilter, filters = _a.filters, onChange = _a.onChange, _c = _a.components, components = _c === void 0 ? EMPTY_OBJECT : _c, onFilterAttributeChange = _a.onFilterAttributeChange;
|
|
38
39
|
var _d = components, CustomValuesEditor = _d.ValuesEditor, CustomFilterSelector = _d.FilterSelector, _e = _d.LogicalOperator, LogicalOperator = _e === void 0 ? EmptyStub : _e;
|
|
39
40
|
var actualFilters = useRef(filters);
|
|
40
41
|
var attributesCountRef = useRef(null);
|
|
@@ -14,7 +14,7 @@ var AttributesFiltersButton = function (_a) {
|
|
|
14
14
|
var _b;
|
|
15
15
|
var filtersProp = _a.filters, classes = _a.classes, attributesTypesGroups = _a.attributesTypesGroups, attributesTypesGroupFilter = _a.attributesTypesGroupFilter, onChange = _a.onChange, components = _a.components, children = _a.children, onTogglePopup = _a.onTogglePopup, isFiltersAppliedProp = _a.isFiltersApplied, dataReltioId = _a.dataReltioId, onFilterAttributeChange = _a.onFilterAttributeChange, onCancel = _a.onCancel, onClear = _a.onClear, onApply = _a.onApply, FilterButton = _a.FilterButton, _c = _a.ButtonIcon, ButtonIcon = _c === void 0 ? FilterIcon : _c, popoverAnchorRef = _a.popoverAnchorRef, title = _a.title, anchorOrigin = _a.anchorOrigin;
|
|
16
16
|
var styles = useStyles();
|
|
17
|
-
var buttonRef = useRef();
|
|
17
|
+
var buttonRef = useRef(null);
|
|
18
18
|
var _d = useState(false), isOpen = _d[0], setIsOpen = _d[1];
|
|
19
19
|
var _e = useState([]), filters = _e[0], setFilters = _e[1];
|
|
20
20
|
var isFiltersApplied = isFiltersAppliedProp !== null && isFiltersAppliedProp !== void 0 ? isFiltersAppliedProp : !!buildFilterQueryString()(filtersProp);
|
|
@@ -3,12 +3,14 @@ import { checkIfOptionHasValues, getAttrDataTypeDefinition, getDataTypeDefinitio
|
|
|
3
3
|
import { FilterValueEditor } from '../FilterValueEditor';
|
|
4
4
|
import { useMdmDisableTimestampLocalization } from '../contexts/MdmModuleContext';
|
|
5
5
|
import { useStyles } from './styles';
|
|
6
|
+
var EMPTY_ARRAY = [];
|
|
7
|
+
var EMPTY_OBJECT = {};
|
|
6
8
|
var AttributesValuesEditor = function (_a) {
|
|
7
9
|
var rowData = _a.rowData, rowContext = _a.rowContext;
|
|
8
10
|
var styles = useStyles();
|
|
9
11
|
var canFilterAcceptValues = (rowData === null || rowData === void 0 ? void 0 : rowData.attribute) && checkIfOptionHasValues(rowData.filter);
|
|
10
12
|
var changeFilter = rowContext.changeFilter;
|
|
11
|
-
var _b = (rowData ||
|
|
13
|
+
var _b = (rowData || EMPTY_OBJECT), _c = _b.values, values = _c === void 0 ? EMPTY_ARRAY : _c, _d = _b.attribute, _e = _d === void 0 ? EMPTY_OBJECT : _d, attrType = _e.attrType, _f = _e.fieldName, fieldName = _f === void 0 ? null : _f, filter = _b.filter, id = _b.id, operator = _b.operator;
|
|
12
14
|
var disableTimestampLocalizationFlag = useMdmDisableTimestampLocalization();
|
|
13
15
|
var disableTimestampLocalization = shouldDisableTimestampLocalizationForAttribute(attrType, {
|
|
14
16
|
disableTimestampLocalization: disableTimestampLocalizationFlag
|
|
@@ -30,7 +30,7 @@ var AutoSizeList = function (_a) {
|
|
|
30
30
|
var getItemKeyFromData = useCallback(function (data, index) { return (itemKey ? itemKey(index, data) : index); }, [itemKey]);
|
|
31
31
|
var getItemKey = function (index) { return getItemKeyFromData(data, index); };
|
|
32
32
|
var getItemSize = function (index) { return rowHeights[getItemKey(index)] || defaultItemSize; };
|
|
33
|
-
var localListRef = useRef();
|
|
33
|
+
var localListRef = useRef(null);
|
|
34
34
|
var listRef = listRefProp || localListRef;
|
|
35
35
|
(_b = listRef.current) === null || _b === void 0 ? void 0 : _b.resetAfterIndex(0, false);
|
|
36
36
|
var Row = useMemo(function () {
|
|
@@ -32,7 +32,7 @@ var BasicAttributeSelector = function (_a) {
|
|
|
32
32
|
return Math.min(Math.max(getContainerWidth(filteredItemsGroups), ATTRIBUTES_LIST_WIDTH), ATTRIBUTES_LIST_MAX_WIDTH);
|
|
33
33
|
}, [filteredItemsGroups]);
|
|
34
34
|
var handleOnClose = pipe(tap(pipe(clearSelectedAttributes, clearFilterText, closePopup)), onRestoreFocus);
|
|
35
|
-
var searchInputRef = useRef();
|
|
35
|
+
var searchInputRef = useRef(null);
|
|
36
36
|
var onListItemClick = useCallback(function (attribute, checked) {
|
|
37
37
|
onSelect({
|
|
38
38
|
checked: checked,
|
package/BasicView/BasicView.d.ts
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
classes?: Partial<import("@mui/material/Paper").PaperClasses>;
|
|
5
|
-
elevation?: number;
|
|
6
|
-
square?: boolean;
|
|
7
|
-
sx?: import("@mui/system").SxProps<import("@mui/material").Theme>;
|
|
8
|
-
variant?: import("@mui/types").OverridableStringUnion<"elevation" | "outlined", import("@mui/material/Paper").PaperPropsVariantOverrides>;
|
|
9
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
11
|
-
}, "square" | "children" | "sx" | keyof import("@mui/material/OverridableComponent").CommonProps | "elevation" | "variant">, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2
|
+
import { PaperProps } from '@mui/material/Paper';
|
|
3
|
+
export declare const BasicView: React.ForwardRefExoticComponent<Omit<PaperProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -7,10 +7,7 @@ type Props = BaseChartProps & {
|
|
|
7
7
|
};
|
|
8
8
|
export declare const BubbleChart: ({ width, height, data, options, onItemClick }: Props) => React.JSX.Element;
|
|
9
9
|
declare const _default: {
|
|
10
|
-
({ data, ...otherProps }:
|
|
11
|
-
chartType?: ChartType.BUBBLE;
|
|
12
|
-
options?: BubbleChartOptions;
|
|
13
|
-
}): React.JSX.Element;
|
|
10
|
+
({ data, ...otherProps }: Props): React.JSX.Element;
|
|
14
11
|
displayName: string;
|
|
15
12
|
};
|
|
16
13
|
export default _default;
|
|
@@ -7,10 +7,7 @@ type Props = BaseChartProps & {
|
|
|
7
7
|
};
|
|
8
8
|
export declare const CloudChart: ({ width, height, data, options, onItemClick }: Props) => React.JSX.Element;
|
|
9
9
|
declare const _default: {
|
|
10
|
-
({ data, ...otherProps }:
|
|
11
|
-
chartType?: ChartType.CLOUD;
|
|
12
|
-
options?: CloudChartOptions;
|
|
13
|
-
}): React.JSX.Element;
|
|
10
|
+
({ data, ...otherProps }: Props): React.JSX.Element;
|
|
14
11
|
displayName: string;
|
|
15
12
|
};
|
|
16
13
|
export default _default;
|
|
@@ -6,7 +6,7 @@ import { SendMessageArea } from './components/SendMessageArea';
|
|
|
6
6
|
import { useStyles } from './styles';
|
|
7
7
|
var CollaborationItem = function (_a) {
|
|
8
8
|
var uri = _a.uri, relatedObjectUris = _a.relatedObjectUris, objectType = _a.objectType, classes = _a.classes, popperRef = _a.popperRef, messagesRef = _a.messagesRef, comment = _a.comment;
|
|
9
|
-
var inputRef = useRef();
|
|
9
|
+
var inputRef = useRef(null);
|
|
10
10
|
var styles = useStyles({ classes: classes });
|
|
11
11
|
var handleReply = function () {
|
|
12
12
|
inputRef.current.focus();
|
|
@@ -18,7 +18,7 @@ import { useStyles } from './styles';
|
|
|
18
18
|
export var Comment = function (_a) {
|
|
19
19
|
var onReply = _a.onReply, className = _a.className, uri = _a.uri, comment = _a.comment, relatedObjectUris = _a.relatedObjectUris, objectType = _a.objectType;
|
|
20
20
|
var styles = useStyles();
|
|
21
|
-
var inputRef = useRef();
|
|
21
|
+
var inputRef = useRef(null);
|
|
22
22
|
var username = useMdmUsername();
|
|
23
23
|
var commentId = comment.commentId, createdBy = comment.createdBy, createdTime = comment.createdTime, status = comment.status;
|
|
24
24
|
var isResolved = status === 'resolved';
|
|
@@ -16,7 +16,7 @@ import { SendMessageArea } from '../SendMessageArea';
|
|
|
16
16
|
import { useStyles } from './styles';
|
|
17
17
|
export var RepliedComment = function (_a) {
|
|
18
18
|
var className = _a.className, reply = _a.reply, uri = _a.uri, comment = _a.comment, popperRef = _a.popperRef;
|
|
19
|
-
var inputRef = useRef();
|
|
19
|
+
var inputRef = useRef(null);
|
|
20
20
|
var username = useMdmUsername();
|
|
21
21
|
var createdBy = reply.createdBy, action = reply.action, createdTime = reply.createdTime;
|
|
22
22
|
var canChangeReply = createdBy === username && comment.status !== 'resolved';
|
|
@@ -43,8 +43,9 @@ import { useStyles } from './styles';
|
|
|
43
43
|
var ITEM_HEIGHT = 32;
|
|
44
44
|
var LIST_CONTAINER_HEIGHT = 300;
|
|
45
45
|
var DEFAULT_MIN_CONTAINER_WIDTH = 318;
|
|
46
|
+
var EMPTY_ARRAY = [];
|
|
46
47
|
export var ConfigureColumnsPopup = function (_a) {
|
|
47
|
-
var open = _a.open, anchorEl = _a.anchorEl, _b = _a.data, data = _b === void 0 ?
|
|
48
|
+
var open = _a.open, anchorEl = _a.anchorEl, _b = _a.data, data = _b === void 0 ? EMPTY_ARRAY : _b, onSearch = _a.onSearch, onClose = _a.onClose, _c = _a.titleText, titleText = _c === void 0 ? i18n.text('Show/hide columns') : _c, _d = _a.filterText, filterText = _d === void 0 ? '' : _d, onListItemClick = _a.onListItemClick, _e = _a.selected, selected = _e === void 0 ? EMPTY_ARRAY : _e, _f = _a.hideCheckBox, hideCheckBox = _f === void 0 ? false : _f, renderGroupTitle = _a.renderGroupTitle, otherProps = __rest(_a, ["open", "anchorEl", "data", "onSearch", "onClose", "titleText", "filterText", "onListItemClick", "selected", "hideCheckBox", "renderGroupTitle"]);
|
|
48
49
|
var filterItem = useCallback(function (item) {
|
|
49
50
|
return item.label.toLowerCase().includes(filterText.toLowerCase());
|
|
50
51
|
}, [filterText]);
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export declare const CreatableReactSelect: {
|
|
2
|
-
(
|
|
2
|
+
({ components: componentsProp, classes: classesProp, error, TextFieldProps, innerRef, ...selectProps }: Omit<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<unknown, boolean, import("react-select").GroupBase<unknown>>, "onChange" | "value" | "onMenuClose" | "onMenuOpen" | "menuIsOpen" | "inputValue" | "onInputChange"> & Partial<import("react-select/dist/declarations/src/Select").PublicBaseSelectProps<unknown, boolean, import("react-select").GroupBase<unknown>>> & import("react-select/dist/declarations/src/useStateManager").StateManagerAdditionalProps<unknown> & import("..").ReactSelectMuiSkinProps): import("react").JSX.Element;
|
|
3
3
|
displayName: string;
|
|
4
|
-
defaultProps: {
|
|
5
|
-
components: {};
|
|
6
|
-
classes: {};
|
|
7
|
-
};
|
|
8
4
|
};
|
|
@@ -46,7 +46,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
import React from 'react';
|
|
49
|
-
import { renderHook } from '@testing-library/react
|
|
49
|
+
import { renderHook } from '@testing-library/react';
|
|
50
50
|
import { getFacetedAttributeData, DataTypes, getLookups, getDependentLookups, resolveLookupsList } from '@reltio/mdm-sdk';
|
|
51
51
|
import { MdmModuleProvider } from '../contexts/MdmModuleContext';
|
|
52
52
|
import { useEditorContext } from './useEditorContext';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"
|
|
1
|
+
export const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"option" | "placeholder" | "dropdownIndicator" | "clearIndicator" | "isCrossedOut">;
|
|
@@ -11,7 +11,7 @@ type Props<T> = {
|
|
|
11
11
|
menuId: string;
|
|
12
12
|
onMenuOpen?: () => void;
|
|
13
13
|
onMenuClose?: () => void;
|
|
14
|
-
MenuItemRenderer?: (props: any) => React.
|
|
14
|
+
MenuItemRenderer?: (props: any) => React.ReactNode;
|
|
15
15
|
};
|
|
16
16
|
export declare function DropDownMenuButton<T = DropDownMenuItem>({ className, menuId, buttonComponent, buttonContent, menuItems, buttonProps, popoverProps, onMenuOpen, onMenuClose, MenuItemRenderer }: Props<T>): React.JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -17,12 +17,14 @@ import Menu from '@mui/material/Menu';
|
|
|
17
17
|
import { DefaultMenuItemRenderer } from './components/DefaultMenuItemRenderer';
|
|
18
18
|
import { useDidUpdateEffect } from '../hooks/useDidUpdateEffect';
|
|
19
19
|
import { useStyles } from './styles';
|
|
20
|
+
var EMPTY_ARRAY = [];
|
|
21
|
+
var EMPTY_OBJECT = {};
|
|
20
22
|
export function DropDownMenuButton(_a) {
|
|
21
23
|
var _b;
|
|
22
|
-
var className = _a.className, menuId = _a.menuId, _c = _a.buttonComponent, buttonComponent = _c === void 0 ? Button : _c, buttonContent = _a.buttonContent, _d = _a.menuItems, menuItems = _d === void 0 ?
|
|
24
|
+
var className = _a.className, menuId = _a.menuId, _c = _a.buttonComponent, buttonComponent = _c === void 0 ? Button : _c, buttonContent = _a.buttonContent, _d = _a.menuItems, menuItems = _d === void 0 ? EMPTY_ARRAY : _d, _e = _a.buttonProps, buttonProps = _e === void 0 ? EMPTY_OBJECT : _e, _f = _a.popoverProps, popoverProps = _f === void 0 ? EMPTY_OBJECT : _f, _g = _a.onMenuOpen, onMenuOpen = _g === void 0 ? identity : _g, _h = _a.onMenuClose, onMenuClose = _h === void 0 ? identity : _h, _j = _a.MenuItemRenderer, MenuItemRenderer = _j === void 0 ? DefaultMenuItemRenderer : _j;
|
|
23
25
|
var ButtonComponent = buttonComponent;
|
|
24
26
|
var styles = useStyles();
|
|
25
|
-
var buttonRef = useRef();
|
|
27
|
+
var buttonRef = useRef(null);
|
|
26
28
|
var _k = useState(false), isOpen = _k[0], setIsOpen = _k[1];
|
|
27
29
|
useDidUpdateEffect(function () {
|
|
28
30
|
if (isOpen) {
|
|
@@ -31,9 +31,10 @@ import { EmptyStub } from '../EmptyStub';
|
|
|
31
31
|
import { Menu } from './components/Menu';
|
|
32
32
|
import { SingleValue } from './components/SingleValue';
|
|
33
33
|
import { useStyles, customStyles, overloadMenuListStyle, withoutLabelInputStyle } from './styles';
|
|
34
|
+
var EMPTY_OBJECT = {};
|
|
34
35
|
export var DropDownSelector = function (_a) {
|
|
35
36
|
var _b;
|
|
36
|
-
var value = _a.value, label = _a.label, options = _a.options, getOptions = _a.getOptions, createLabel = _a.createLabel, _c = _a.height, height = _c === void 0 ? 46 : _c, _d = _a.onChange, onChange = _d === void 0 ? identity : _d, onCreate = _a.onCreate, _e = _a.canCreateOption, canCreateOption = _e === void 0 ? function () { return Boolean(onCreate); } : _e, _f = _a.onClear, onClear = _f === void 0 ? identity : _f, _g = _a.components, components = _g === void 0 ?
|
|
37
|
+
var value = _a.value, label = _a.label, options = _a.options, getOptions = _a.getOptions, createLabel = _a.createLabel, _c = _a.height, height = _c === void 0 ? 46 : _c, _d = _a.onChange, onChange = _d === void 0 ? identity : _d, onCreate = _a.onCreate, _e = _a.canCreateOption, canCreateOption = _e === void 0 ? function () { return Boolean(onCreate); } : _e, _f = _a.onClear, onClear = _f === void 0 ? identity : _f, _g = _a.components, components = _g === void 0 ? EMPTY_OBJECT : _g, textFieldInputRef = _a.textFieldInputRef, TextFieldProps = _a.TextFieldProps, _h = _a.classes, classes = _h === void 0 ? EMPTY_OBJECT : _h, required = _a.required, otherProps = __rest(_a, ["value", "label", "options", "getOptions", "createLabel", "height", "onChange", "onCreate", "canCreateOption", "onClear", "components", "textFieldInputRef", "TextFieldProps", "classes", "required"]);
|
|
37
38
|
var styles = useStyles({ height: height });
|
|
38
39
|
var _j = useState(false), open = _j[0], setOpen = _j[1];
|
|
39
40
|
var inputRef = useRef(null);
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AttributeType } from '@reltio/mdm-sdk';
|
|
3
|
-
|
|
3
|
+
type Props = {
|
|
4
4
|
className?: string;
|
|
5
5
|
attributeType: AttributeType;
|
|
6
|
-
} & Record<string, unknown
|
|
6
|
+
} & Record<string, unknown>;
|
|
7
|
+
export declare const EditModeAttribute: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export {};
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { AttributeType, Entity, AttributeValue } from '@reltio/mdm-sdk';
|
|
3
3
|
import { ScrollType } from '../contexts/ScrollToElementContext';
|
|
4
4
|
import { EditModeAttributesPagerProps } from '../EditModeAttributesPager/types';
|
|
5
|
-
|
|
5
|
+
type Props = {
|
|
6
6
|
parentAttributeType?: AttributeType;
|
|
7
7
|
attrTypes: AttributeType[];
|
|
8
8
|
entity: Entity;
|
|
@@ -12,5 +12,6 @@ declare const _default: React.ComponentType<{
|
|
|
12
12
|
className?: string;
|
|
13
13
|
fixedTypeUris?: string[];
|
|
14
14
|
highlightAttribute?: (element: AttributeType, type: ScrollType) => void;
|
|
15
|
-
} & Pick<EditModeAttributesPagerProps<AttributeValue>,
|
|
15
|
+
} & Pick<EditModeAttributesPagerProps<AttributeValue>, 'mode' | 'crosswalks' | 'parentUri' | 'drawLines' | 'showEmptyEditors' | 'onAddAttributes' | 'onDeleteAttribute' | 'onChangeAttribute' | 'additionalControlsRenderer'>;
|
|
16
|
+
declare const _default: React.ComponentType<Props>;
|
|
16
17
|
export default _default;
|
package/EmptyState/styles.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"button" | "text" | "small" | "root" | "embedded" | "root_small" | "logo" | "full" | "
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"textBox" | "button" | "text" | "small" | "root" | "embedded" | "root_small" | "logo" | "full" | "secondaryText">;
|
|
@@ -34,8 +34,10 @@ import { EntityCreator } from '../EntityCreator';
|
|
|
34
34
|
import { buildEntityOptions } from './helpers';
|
|
35
35
|
import { useStyles } from './styles';
|
|
36
36
|
var DEFAULT_MAX_TYPEAHEAD_SEARCH_OPTION = 20;
|
|
37
|
+
var EMPTY_OBJECT = {};
|
|
38
|
+
var EMPTY_ARRAY = [];
|
|
37
39
|
export var EntitySelector = function (_a) {
|
|
38
|
-
var _b = _a.entity, entity = _b === void 0 ?
|
|
40
|
+
var _b = _a.entity, entity = _b === void 0 ? EMPTY_OBJECT : _b, _c = _a.entityTypesUris, entityTypesUris = _c === void 0 ? EMPTY_ARRAY : _c, mode = _a.mode, _d = _a.max, max = _d === void 0 ? DEFAULT_MAX_TYPEAHEAD_SEARCH_OPTION : _d, onChange = _a.onChange, onCreate = _a.onCreate, metadata = _a.metadata, globalSearchRequestOptions = _a.globalSearchRequestOptions, attributeTypesSelectionStrategy = _a.attributeTypesSelectionStrategy, _e = _a.disableLinkClick, disableLinkClick = _e === void 0 ? false : _e, customLabel = _a.label, _f = _a.isMasked, isMasked = _f === void 0 ? false : _f, required = _a.required, otherProps = __rest(_a, ["entity", "entityTypesUris", "mode", "max", "onChange", "onCreate", "metadata", "globalSearchRequestOptions", "attributeTypesSelectionStrategy", "disableLinkClick", "label", "isMasked", "required"]);
|
|
39
41
|
var styles = useStyles();
|
|
40
42
|
var _g = useState(''), inputValue = _g[0], setInputValue = _g[1];
|
|
41
43
|
var entityTypes = useMemo(function () { return entityTypesUris.map(function (type) { return getEntityType(metadata, type); }).filter(isAvailableEntityType); }, [entityTypesUris, metadata]);
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type Props = Omit<React.HTMLProps<HTMLAnchorElement>, 'href' | 'onClick' | 'target'> & {
|
|
3
3
|
value: string;
|
|
4
4
|
screen?: string;
|
|
5
5
|
shouldOpenInNewTab?: boolean;
|
|
6
6
|
disabled?: boolean;
|
|
7
|
-
}
|
|
7
|
+
};
|
|
8
|
+
export declare const EntityUriLink: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
9
|
+
export {};
|
|
@@ -28,7 +28,7 @@ import { useStyles } from './styles';
|
|
|
28
28
|
export var ExpandedValueTooltip = function (_a) {
|
|
29
29
|
var children = _a.children, _b = _a.value, value = _b === void 0 ? '' : _b, className = _a.className, _c = _a.showOnExceededWidth, showOnExceededWidth = _c === void 0 ? true : _c, showOnExceededHeight = _a.showOnExceededHeight, otherProps = __rest(_a, ["children", "value", "className", "showOnExceededWidth", "showOnExceededHeight"]);
|
|
30
30
|
var tooltipStyles = useStyles();
|
|
31
|
-
var childrenRef = useRef();
|
|
31
|
+
var childrenRef = useRef(null);
|
|
32
32
|
var _d = useState(false), isOverflowing = _d[0], setIsOverflowing = _d[1];
|
|
33
33
|
var updateOverflowState = function () {
|
|
34
34
|
return setIsOverflowing(checkOverflow(childrenRef.current, showOnExceededWidth, showOnExceededHeight));
|
|
@@ -21,7 +21,7 @@ export var AttributeSelectorPopup = function (_a) {
|
|
|
21
21
|
setListHeight(maxListHeight);
|
|
22
22
|
}, [maxListHeight]);
|
|
23
23
|
var handleResizeList = useCallback(function (width, height) { return setListHeight(clamp(MIN_LIST_HEIGHT, maxListHeight, height)); }, [maxListHeight]);
|
|
24
|
-
var popupActionRef = useRef();
|
|
24
|
+
var popupActionRef = useRef(null);
|
|
25
25
|
useEffect(function () {
|
|
26
26
|
var updatePopupPosition = path(['current', 'updatePosition'], popupActionRef);
|
|
27
27
|
if (updatePopupPosition)
|
package/GaugeChart/GaugeChart.js
CHANGED
|
@@ -18,7 +18,7 @@ import { useStyles } from './styles';
|
|
|
18
18
|
export var GaugeChart = function (_a) {
|
|
19
19
|
var width = _a.width, height = _a.height, data = _a.data, value = _a.value, label = _a.label, _b = _a.renderValue, renderValue = _b === void 0 ? identity : _b, _c = _a.isAnimationActive, isAnimationActive = _c === void 0 ? true : _c;
|
|
20
20
|
var styles = useStyles();
|
|
21
|
-
var labelElRef = useRef();
|
|
21
|
+
var labelElRef = useRef(null);
|
|
22
22
|
var _d = useState(!isAnimationActive), animationIsEnd = _d[0], setAnimationIsEnd = _d[1];
|
|
23
23
|
var _e = useState({ bottom: 0, top: 0, left: 0, right: 0 }), margin = _e[0], setMargin = _e[1];
|
|
24
24
|
var _f = useState(0), textOffset = _f[0], setTextOffset = _f[1];
|
|
@@ -15,7 +15,8 @@ export var withAsyncMount = function (Component, PlaceholderComponent) {
|
|
|
15
15
|
if (PlaceholderComponent === void 0) { PlaceholderComponent = null; }
|
|
16
16
|
var WithAsyncMount = forwardRef(function (componentProps, ref) {
|
|
17
17
|
var shouldMount = useAsyncMount();
|
|
18
|
-
|
|
18
|
+
var propsWithRef = __assign(__assign({}, componentProps), { ref: ref });
|
|
19
|
+
return shouldMount ? (React.createElement(Component, __assign({}, propsWithRef))) : (PlaceholderComponent && React.createElement(PlaceholderComponent, __assign({}, propsWithRef)));
|
|
19
20
|
});
|
|
20
21
|
WithAsyncMount.displayName = 'WithAsyncMount';
|
|
21
22
|
return WithAsyncMount;
|
|
@@ -15,7 +15,8 @@ var InputComponent = React.forwardRef(function (props, ref) {
|
|
|
15
15
|
return React.createElement("div", __assign({ ref: ref }, props));
|
|
16
16
|
});
|
|
17
17
|
InputComponent.displayName = 'InputComponent';
|
|
18
|
+
var EMPTY_TEXT_FIELD_PROPS = {};
|
|
18
19
|
export var ReactSelectControl = function (props) {
|
|
19
|
-
var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, _a = props.selectProps, classes = _a.classes, _b = _a.TextFieldProps, TextFieldProps = _b === void 0 ?
|
|
20
|
+
var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, _a = props.selectProps, classes = _a.classes, _b = _a.TextFieldProps, TextFieldProps = _b === void 0 ? EMPTY_TEXT_FIELD_PROPS : _b;
|
|
20
21
|
return (React.createElement(TextField, __assign({ variant: "standard", fullWidth: true }, TextFieldProps, { InputProps: __assign(__assign({ inputComponent: InputComponent }, TextFieldProps.InputProps), { inputProps: __assign(__assign({ className: classes.control, ref: innerRef, children: children }, innerProps), TextFieldProps.inputProps) }) })));
|
|
21
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"menu" | "
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"menu" | "option" | "placeholder" | "singleValue" | "dropdownIndicator" | "clearIndicator" | "control" | "groupHeading" | "multiValue" | "noOptionsMessage" | "valueContainer" | "multiValue__label" | "option--selected" | "option--item" | "valueContainer--multi">;
|
|
@@ -2,10 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { Props, GroupBase } from 'react-select';
|
|
3
3
|
import { ReactSelectMuiSkinProps } from '../../types';
|
|
4
4
|
export declare const withReactSelectMuiSkin: <Option, IsMulti extends boolean, Group extends GroupBase<Option> = GroupBase<Option>>(SelectComponent: any) => {
|
|
5
|
-
(
|
|
5
|
+
({ components: componentsProp, classes: classesProp, error, TextFieldProps, innerRef, ...selectProps }: Props<Option, IsMulti, Group> & ReactSelectMuiSkinProps): React.JSX.Element;
|
|
6
6
|
displayName: string;
|
|
7
|
-
defaultProps: {
|
|
8
|
-
components: {};
|
|
9
|
-
classes: {};
|
|
10
|
-
};
|
|
11
7
|
};
|
|
@@ -24,18 +24,15 @@ import React from 'react';
|
|
|
24
24
|
import { reactSelectComponents } from './helpers';
|
|
25
25
|
import { mergeClasses } from '../../helpers/classes';
|
|
26
26
|
import { useStyles } from './styles';
|
|
27
|
+
var EMPTY_OBJECT = {};
|
|
27
28
|
export var withReactSelectMuiSkin = function (SelectComponent) {
|
|
28
|
-
function WrappedSelectComponent(
|
|
29
|
-
var
|
|
29
|
+
function WrappedSelectComponent(_a) {
|
|
30
|
+
var _b = _a.components, componentsProp = _b === void 0 ? EMPTY_OBJECT : _b, _c = _a.classes, classesProp = _c === void 0 ? EMPTY_OBJECT : _c, error = _a.error, TextFieldProps = _a.TextFieldProps, innerRef = _a.innerRef, selectProps = __rest(_a, ["components", "classes", "error", "TextFieldProps", "innerRef"]);
|
|
30
31
|
var skinClasses = useStyles();
|
|
31
32
|
var components = __assign(__assign({}, reactSelectComponents), componentsProp);
|
|
32
33
|
var classes = mergeClasses(skinClasses, classesProp);
|
|
33
34
|
return (React.createElement(SelectComponent, __assign({ ref: innerRef, components: components, classes: classes, TextFieldProps: __assign(__assign({}, TextFieldProps), { error: error }) }, selectProps)));
|
|
34
35
|
}
|
|
35
36
|
WrappedSelectComponent.displayName = "withMuiSkin(".concat(SelectComponent.displayName || SelectComponent.name, ")");
|
|
36
|
-
WrappedSelectComponent.defaultProps = {
|
|
37
|
-
components: {},
|
|
38
|
-
classes: {}
|
|
39
|
-
};
|
|
40
37
|
return WrappedSelectComponent;
|
|
41
38
|
};
|
|
@@ -46,7 +46,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
import React from 'react';
|
|
49
|
-
import { renderHook, act } from '@testing-library/react
|
|
49
|
+
import { renderHook, act } from '@testing-library/react';
|
|
50
50
|
import { getEntity, debounce } from '@reltio/mdm-sdk';
|
|
51
51
|
import { MdmModuleProvider } from '../contexts/MdmModuleContext';
|
|
52
52
|
import { useEntityDetails } from './useEntityDetails';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"overlay" | "button" | "selected" | "checkedIcon" | "actions" | "selectionMode" | "actionButton" | "dropDownMenuButton">;
|
|
@@ -36,7 +36,7 @@ export var ImageAttributesLine = function (_a) {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}, [paging, requestNextPageOfAttributeValues, attributeType, parentUri, attributeValues.length, showNonOv]);
|
|
39
|
-
var lastWidth = useRef();
|
|
39
|
+
var lastWidth = useRef(null);
|
|
40
40
|
var _f = useState(attributeValues.length), maxItems = _f[0], setMaxItems = _f[1];
|
|
41
41
|
var _g = useState(0), hiddenItemsLength = _g[0], setHiddenItemsLength = _g[1];
|
|
42
42
|
var isBlockImageGalleryDialog = useContext(BlockImageGalleryDialogContext);
|
|
@@ -5,8 +5,15 @@ type Params = {
|
|
|
5
5
|
};
|
|
6
6
|
export declare const useEditMetaInfo: ({ initialAttributeValue, attributeType }: Params) => {
|
|
7
7
|
addAttributes: (attributes: AttributeItem[]) => void;
|
|
8
|
-
changeAttribute: ({ value, attributeType, uri }:
|
|
9
|
-
|
|
8
|
+
changeAttribute: ({ value, attributeType, uri }: {
|
|
9
|
+
value: any;
|
|
10
|
+
attributeType: any;
|
|
11
|
+
uri: any;
|
|
12
|
+
}) => void;
|
|
13
|
+
deleteAttribute: ({ attributeType, uri }: {
|
|
14
|
+
attributeType: any;
|
|
15
|
+
uri: any;
|
|
16
|
+
}) => void;
|
|
10
17
|
clearLocalChanges: () => void;
|
|
11
18
|
applyLocalChanges: () => void;
|
|
12
19
|
attributeValue: ImageAttributeValue;
|
|
@@ -24,7 +24,7 @@ export var InlineSimpleAttribute = function (_a) {
|
|
|
24
24
|
attributeType: attributeType,
|
|
25
25
|
attributeValue: rawAttributeValue
|
|
26
26
|
}), isUnmaskingNeeded = _d.isUnmaskingNeeded, isMasked = _d.isMasked, toggleMasking = _d.toggleMasking, attributeValue = _d.attributeValue, isUnmasking = _d.isUnmasking, unmask = _d.unmask;
|
|
27
|
-
var containerRef = useRef();
|
|
27
|
+
var containerRef = useRef(null);
|
|
28
28
|
var id = getLastUriPart(attributeValue.uri);
|
|
29
29
|
var crosswalkDisabled = isCrosswalkDisabled(crosswalk);
|
|
30
30
|
var canModifyAttribute = !attributeType.system && !crosswalkDisabled;
|
package/MapChart/MapChart.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ChartType, MapChartOptions } from '@reltio/mdm-sdk';
|
|
3
3
|
import { BaseChartProps } from '../types/charts';
|
|
4
|
+
type Props = BaseChartProps & {
|
|
5
|
+
chartType?: ChartType.MAP;
|
|
6
|
+
options?: MapChartOptions;
|
|
7
|
+
};
|
|
4
8
|
declare const _default: {
|
|
5
|
-
({ data, ...otherProps }:
|
|
6
|
-
chartType?: ChartType.MAP;
|
|
7
|
-
options?: MapChartOptions;
|
|
8
|
-
}): React.JSX.Element;
|
|
9
|
+
({ data, ...otherProps }: Props): React.JSX.Element;
|
|
9
10
|
displayName: string;
|
|
10
11
|
};
|
|
11
12
|
export default _default;
|
|
@@ -67,7 +67,7 @@ export var MetadataTypesSelector = memo(function (_a) {
|
|
|
67
67
|
selectedItems: selectedItemsUris,
|
|
68
68
|
onClose: handleClose
|
|
69
69
|
}), focusIndex = _k.focusIndex, handleKeyDown = _k.handleKeyDown;
|
|
70
|
-
var rootRef = useRef();
|
|
70
|
+
var rootRef = useRef(null);
|
|
71
71
|
var rootWidth = rootRef.current ? rootRef.current.getBoundingClientRect().width : 0;
|
|
72
72
|
var containerWidth = Math.max(rootWidth, MIN_CONTAINER_WIDTH);
|
|
73
73
|
var noTypesSelected = selectedItemsUris.length === 0;
|
|
@@ -5,7 +5,7 @@ import { useStyles } from './styles';
|
|
|
5
5
|
export var ListLabel = function (_a) {
|
|
6
6
|
var list = _a.list, maxWidth = _a.maxWidth;
|
|
7
7
|
var styles = useStyles();
|
|
8
|
-
var labelRef = useRef();
|
|
8
|
+
var labelRef = useRef(null);
|
|
9
9
|
var _b = useState(0), hiddenItemsCount = _b[0], setHiddenItemsCount = _b[1];
|
|
10
10
|
useEffect(function () {
|
|
11
11
|
setHiddenItemsCount(countHiddenItems(list, labelRef.current));
|
|
@@ -18,7 +18,7 @@ export var MoreAttributesButton = function (_a) {
|
|
|
18
18
|
var _b;
|
|
19
19
|
var label = _a.label, _c = _a.popupTitle, popupTitle = _c === void 0 ? label : _c, data = _a.data, parent = _a.parent, dense = _a.dense, onApply = _a.onApply, _d = _a.disabled, disabled = _d === void 0 ? false : _d;
|
|
20
20
|
var styles = useStyles();
|
|
21
|
-
var inputRef = useRef();
|
|
21
|
+
var inputRef = useRef(null);
|
|
22
22
|
var _e = useState(false), isOpen = _e[0], setIsOpen = _e[1];
|
|
23
23
|
var togglePopupOpen = function () { return setIsOpen(!isOpen); };
|
|
24
24
|
var closePopup = function () { return setIsOpen(false); };
|