@reltio/components 1.4.1853 → 1.4.1855
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/cjs/AttributesFiltersBuilder/AttributesFiltersBuilder.js +1 -1
- package/cjs/ConnectionEditor/ConnectionEditor.d.ts +3 -3
- package/cjs/ConnectionEditor/ConnectionEditor.test.js +2 -2
- package/cjs/ConnectionRelationTypeSelector/ConnectionRelationTypeSelector.d.ts +14 -34
- package/cjs/ConnectionRelationTypeSelector/ConnectionRelationTypeSelector.js +1 -20
- package/cjs/DependentLookupEditor/DependentLookupEditor.d.ts +27 -44
- package/cjs/DependentLookupEditor/DependentLookupEditor.js +3 -21
- package/cjs/DropDownEditor/DropDownEditor.d.ts +14 -15
- package/cjs/DropDownEditor/DropDownEditor.js +0 -6
- package/cjs/EditModeAttributesList/EditModeAttributesList.d.ts +14 -3
- package/cjs/EditModeAttributesList/EditModeAttributesList.js +0 -20
- package/cjs/EditModeAttributesPager/EditModeAttributesPager.d.ts +3 -2
- package/cjs/EditModeAttributesPager/components/AttributeRenderer/AttributeRenderer.d.ts +2 -3
- package/cjs/EditModeAttributesPager/types.d.ts +7 -6
- package/cjs/EditModeComplexAttribute/EditModeComplexAttribute.d.ts +41 -4
- package/cjs/EditModeComplexAttribute/EditModeComplexAttribute.js +6 -17
- package/cjs/EditModeComplexAttribute/index.d.ts +1 -0
- package/cjs/EntitySelector/EntitySelector.d.ts +19 -31
- package/cjs/EntitySelector/EntitySelector.js +0 -14
- package/cjs/EntitySelector/components/EntityOption/EntityOption.d.ts +17 -22
- package/cjs/EntitySelector/components/EntityOption/EntityOption.js +0 -18
- package/cjs/ErrorWrapper/ErrorWrapper.d.ts +2 -2
- package/cjs/FilterEditor/FilterEditor.d.ts +16 -23
- package/cjs/FilterEditor/FilterEditor.js +2 -14
- package/cjs/FilterValueEditor/FilterValueEditor.d.ts +14 -24
- package/cjs/FilterValueEditor/FilterValueEditor.js +0 -9
- package/cjs/HOCs/withFilter/ColumnFilter.js +1 -1
- package/cjs/LookupEditor/LookupEditor.d.ts +11 -33
- package/cjs/LookupEditor/LookupEditor.js +1 -14
- package/cjs/LookupEditor/components/GroupedDropDownEditor/GroupedDropDownEditor.d.ts +11 -21
- package/cjs/LookupEditor/components/GroupedDropDownEditor/GroupedDropDownEditor.js +0 -7
- package/cjs/LookupEditor/components/GroupedDropDownEditor/helpers.d.ts +9 -2
- package/cjs/LookupEditor/components/GroupedDropDownEditor/helpers.js +7 -7
- package/cjs/LookupEditor/components/GroupedDropDownEditor/styles.d.ts +1 -1
- package/cjs/NestedAttribute/NestedAttribute.d.ts +4 -124
- package/cjs/NestedAttribute/NestedAttribute.js +0 -1
- package/cjs/NestedAttributeEditor/NestedAttributeEditor.d.ts +5 -1
- package/cjs/NestedAttributeEditor/NestedAttributeEditor.js +0 -1
- package/cjs/ReadOnlyComplexAttribute/ReadOnlyComplexAttribute.d.ts +14 -44
- package/cjs/ReadOnlyComplexAttribute/ReadOnlyComplexAttribute.js +0 -12
- package/cjs/ReadOnlyComplexAttribute/index.d.ts +1 -0
- package/cjs/ReferenceAttribute/ReferenceAttribute.d.ts +3 -24
- package/cjs/ReferenceAttribute/ReferenceAttribute.test.js +2 -2
- package/cjs/ReferenceAttributeEditor/ReferenceAttributeEditor.d.ts +5 -2
- package/cjs/ReferenceAttributeEditor/ReferenceAttributeEditor.js +2 -3
- package/cjs/RelationTypeSelector/RelationTypeSelector.d.ts +9 -26
- package/cjs/RelationTypeSelector/RelationTypeSelector.js +2 -14
- package/cjs/SaveSegmentDialog/SaveSegmentDialog.d.ts +3 -1
- package/cjs/SaveSegmentDialog/SaveSegmentDialog.js +9 -6
- package/cjs/SimpleAttributeEditor/SimpleAttributeEditor.d.ts +39 -16
- package/cjs/SimpleAttributeEditor/SimpleAttributeEditor.js +0 -17
- package/cjs/SimpleAttributeEditor/useAttributeValuePermissions.d.ts +1 -1
- package/cjs/components/ImageDetailsView/helpers/index.d.ts +5 -2
- package/cjs/components/ImportButton/ImportButton.d.ts +2 -1
- package/cjs/components/MultipliableSelect/MultipliableSelect.d.ts +20 -30
- package/cjs/components/MultipliableSelect/MultipliableSelect.js +0 -15
- package/cjs/components/ProfileBand/styles.d.ts +1 -1
- package/cjs/components/QueryBuilderRow/QueryBuilderRow.d.ts +43 -107
- package/cjs/components/QueryBuilderRow/QueryBuilderRow.js +0 -25
- package/cjs/components/QueryBuilderRow/components/ReadOnlyFilter.d.ts +4 -3
- package/cjs/components/QueryBuilderRow/components/ReadOnlyLogicOperator.d.ts +4 -10
- package/cjs/components/QueryBuilderRow/components/ReadOnlyLogicOperator.js +1 -6
- package/cjs/components/QueryBuilderRowsGroup/QueryBuilderRowsGroup.d.ts +33 -64
- package/cjs/components/QueryBuilderRowsGroup/QueryBuilderRowsGroup.js +3 -51
- package/cjs/components/ReactSelect/AsyncSelect.d.ts +0 -45
- package/cjs/components/ReactSelect/CreatableSelect.d.ts +0 -45
- package/cjs/components/ReactSelect/Select.d.ts +0 -45
- package/cjs/components/ReactSelect/withMuiSkin.d.ts +3 -48
- package/cjs/components/ReactSelect/withMuiSkin.js +0 -50
- package/cjs/components/ReactSortableTree/node-renderer-default.d.ts +2 -2
- package/cjs/components/ReadableSearchQuery/ReadableSearchQuery.d.ts +2 -4
- package/cjs/components/SearchInput/SearchInput.d.ts +1 -1
- package/cjs/components/SelectionPopup/SelectionPopup.d.ts +1 -1
- package/cjs/constants/index.d.ts +1 -1
- package/cjs/constants/index.js +1 -4
- package/cjs/constants/prop-types.d.ts +0 -81
- package/cjs/constants/prop-types.js +17 -46
- package/cjs/constants/textField.d.ts +2 -2
- package/cjs/contexts/ScrollToElementContext/index.d.ts +1 -1
- package/cjs/helpers/basicTable.d.ts +2 -7
- package/cjs/hooks/useRelationTypeSelector.d.ts +12 -8
- package/cjs/hooks/useRelationTypeSelector.js +3 -1
- package/cjs/hooks/useSavedSearchesRequest/useSavedSearchesRequest.d.ts +1 -1
- package/cjs/hooks/useSavedSearchesRequest/useSavedSearchesRequest.js +7 -3
- package/cjs/types/index.d.ts +19 -2
- package/esm/AttributesFiltersBuilder/AttributesFiltersBuilder.js +1 -1
- package/esm/ConnectionEditor/ConnectionEditor.d.ts +3 -3
- package/esm/ConnectionEditor/ConnectionEditor.test.js +2 -2
- package/esm/ConnectionRelationTypeSelector/ConnectionRelationTypeSelector.d.ts +14 -34
- package/esm/ConnectionRelationTypeSelector/ConnectionRelationTypeSelector.js +1 -17
- package/esm/DependentLookupEditor/DependentLookupEditor.d.ts +27 -44
- package/esm/DependentLookupEditor/DependentLookupEditor.js +4 -22
- package/esm/DropDownEditor/DropDownEditor.d.ts +14 -15
- package/esm/DropDownEditor/DropDownEditor.js +0 -6
- package/esm/EditModeAttributesList/EditModeAttributesList.d.ts +14 -3
- package/esm/EditModeAttributesList/EditModeAttributesList.js +1 -21
- package/esm/EditModeAttributesPager/EditModeAttributesPager.d.ts +3 -2
- package/esm/EditModeAttributesPager/components/AttributeRenderer/AttributeRenderer.d.ts +2 -3
- package/esm/EditModeAttributesPager/types.d.ts +7 -6
- package/esm/EditModeComplexAttribute/EditModeComplexAttribute.d.ts +41 -4
- package/esm/EditModeComplexAttribute/EditModeComplexAttribute.js +7 -18
- package/esm/EditModeComplexAttribute/index.d.ts +1 -0
- package/esm/EntitySelector/EntitySelector.d.ts +19 -31
- package/esm/EntitySelector/EntitySelector.js +1 -15
- package/esm/EntitySelector/components/EntityOption/EntityOption.d.ts +17 -22
- package/esm/EntitySelector/components/EntityOption/EntityOption.js +0 -18
- package/esm/ErrorWrapper/ErrorWrapper.d.ts +2 -2
- package/esm/FilterEditor/FilterEditor.d.ts +16 -23
- package/esm/FilterEditor/FilterEditor.js +3 -15
- package/esm/FilterValueEditor/FilterValueEditor.d.ts +14 -24
- package/esm/FilterValueEditor/FilterValueEditor.js +1 -10
- package/esm/HOCs/withFilter/ColumnFilter.js +1 -1
- package/esm/LookupEditor/LookupEditor.d.ts +11 -33
- package/esm/LookupEditor/LookupEditor.js +1 -11
- package/esm/LookupEditor/components/GroupedDropDownEditor/GroupedDropDownEditor.d.ts +11 -21
- package/esm/LookupEditor/components/GroupedDropDownEditor/GroupedDropDownEditor.js +0 -7
- package/esm/LookupEditor/components/GroupedDropDownEditor/helpers.d.ts +9 -2
- package/esm/LookupEditor/components/GroupedDropDownEditor/helpers.js +7 -7
- package/esm/LookupEditor/components/GroupedDropDownEditor/styles.d.ts +1 -1
- package/esm/NestedAttribute/NestedAttribute.d.ts +4 -124
- package/esm/NestedAttribute/NestedAttribute.js +1 -2
- package/esm/NestedAttributeEditor/NestedAttributeEditor.d.ts +5 -1
- package/esm/NestedAttributeEditor/NestedAttributeEditor.js +1 -2
- package/esm/ReadOnlyComplexAttribute/ReadOnlyComplexAttribute.d.ts +14 -44
- package/esm/ReadOnlyComplexAttribute/ReadOnlyComplexAttribute.js +1 -13
- package/esm/ReadOnlyComplexAttribute/index.d.ts +1 -0
- package/esm/ReferenceAttribute/ReferenceAttribute.d.ts +3 -24
- package/esm/ReferenceAttribute/ReferenceAttribute.test.js +2 -2
- package/esm/ReferenceAttributeEditor/ReferenceAttributeEditor.d.ts +5 -2
- package/esm/ReferenceAttributeEditor/ReferenceAttributeEditor.js +3 -4
- package/esm/RelationTypeSelector/RelationTypeSelector.d.ts +9 -26
- package/esm/RelationTypeSelector/RelationTypeSelector.js +2 -14
- package/esm/SaveSegmentDialog/SaveSegmentDialog.d.ts +3 -1
- package/esm/SaveSegmentDialog/SaveSegmentDialog.js +9 -6
- package/esm/SimpleAttributeEditor/SimpleAttributeEditor.d.ts +39 -16
- package/esm/SimpleAttributeEditor/SimpleAttributeEditor.js +1 -18
- package/esm/SimpleAttributeEditor/useAttributeValuePermissions.d.ts +1 -1
- package/esm/components/ImageDetailsView/helpers/index.d.ts +5 -2
- package/esm/components/ImportButton/ImportButton.d.ts +2 -1
- package/esm/components/MultipliableSelect/MultipliableSelect.d.ts +20 -30
- package/esm/components/MultipliableSelect/MultipliableSelect.js +0 -15
- package/esm/components/ProfileBand/styles.d.ts +1 -1
- package/esm/components/QueryBuilderRow/QueryBuilderRow.d.ts +43 -107
- package/esm/components/QueryBuilderRow/QueryBuilderRow.js +0 -25
- package/esm/components/QueryBuilderRow/components/ReadOnlyFilter.d.ts +4 -3
- package/esm/components/QueryBuilderRow/components/ReadOnlyLogicOperator.d.ts +4 -10
- package/esm/components/QueryBuilderRow/components/ReadOnlyLogicOperator.js +1 -6
- package/esm/components/QueryBuilderRowsGroup/QueryBuilderRowsGroup.d.ts +33 -64
- package/esm/components/QueryBuilderRowsGroup/QueryBuilderRowsGroup.js +3 -28
- package/esm/components/ReactSelect/AsyncSelect.d.ts +0 -45
- package/esm/components/ReactSelect/CreatableSelect.d.ts +0 -45
- package/esm/components/ReactSelect/Select.d.ts +0 -45
- package/esm/components/ReactSelect/withMuiSkin.d.ts +3 -48
- package/esm/components/ReactSelect/withMuiSkin.js +0 -50
- package/esm/components/ReactSortableTree/node-renderer-default.d.ts +2 -2
- package/esm/components/ReadableSearchQuery/ReadableSearchQuery.d.ts +2 -4
- package/esm/components/SearchInput/SearchInput.d.ts +1 -1
- package/esm/components/SelectionPopup/SelectionPopup.d.ts +1 -1
- package/esm/constants/index.d.ts +1 -1
- package/esm/constants/index.js +1 -1
- package/esm/constants/prop-types.d.ts +0 -81
- package/esm/constants/prop-types.js +17 -38
- package/esm/constants/textField.d.ts +2 -2
- package/esm/contexts/ScrollToElementContext/index.d.ts +1 -1
- package/esm/helpers/basicTable.d.ts +2 -7
- package/esm/hooks/useRelationTypeSelector.d.ts +12 -8
- package/esm/hooks/useRelationTypeSelector.js +3 -1
- package/esm/hooks/useSavedSearchesRequest/useSavedSearchesRequest.d.ts +1 -1
- package/esm/hooks/useSavedSearchesRequest/useSavedSearchesRequest.js +8 -4
- package/esm/types/index.d.ts +19 -2
- package/package.json +2 -2
|
@@ -21,14 +21,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import React, { useCallback, useContext, useEffect, useMemo } from 'react';
|
|
24
|
-
import PropTypes from 'prop-types';
|
|
25
24
|
import classnames from 'classnames';
|
|
26
25
|
import { has, pipe } from 'ramda';
|
|
27
26
|
import AddIcon from '@mui/icons-material/Add';
|
|
28
27
|
import DeleteIcon from '@mui/icons-material/Delete';
|
|
29
28
|
import Typography from '@mui/material/Typography';
|
|
30
29
|
import i18n from 'ui-i18n';
|
|
31
|
-
import {
|
|
30
|
+
import { attributeUriToSearchUri, ErrorType, getAttributeValue, getAttrDataTypeDefinition, getErrorId, getErrorMessage, getErrorType, isDependentLookupAttrType, isEditableMode as checkIsEditableMode } from '@reltio/mdm-sdk';
|
|
32
31
|
import { DataTypeValue } from '../DataTypeValue';
|
|
33
32
|
import { DataTypeValueEditor } from '../DataTypeValueEditor';
|
|
34
33
|
import { ErrorWrapper } from '../ErrorWrapper';
|
|
@@ -114,22 +113,6 @@ var SimpleAttributeEditor = function (_a) {
|
|
|
114
113
|
additionalControlsRenderer && additionalControlsRenderer({ attributeType: attributeType, attributeValue: attributeValue }),
|
|
115
114
|
showDeleteButton && (React.createElement(SmallIconButton, { className: styles.button, icon: DeleteIcon, onClick: onDelete, size: "L", "data-reltio-id": "reltio-delete-simple-attribute-button" })))));
|
|
116
115
|
};
|
|
117
|
-
SimpleAttributeEditor.propTypes = {
|
|
118
|
-
className: PropTypes.string,
|
|
119
|
-
attributeValue: SimpleAttributeValueType,
|
|
120
|
-
attributeType: AttributeTypeType,
|
|
121
|
-
ownError: AttributeErrorType,
|
|
122
|
-
isReltioCrosswalk: PropTypes.bool,
|
|
123
|
-
state: PropTypes.oneOf(['deleted', 'edited']),
|
|
124
|
-
mode: ModeType,
|
|
125
|
-
onAddOneMore: PropTypes.func,
|
|
126
|
-
onDeleteAttribute: PropTypes.func,
|
|
127
|
-
onChangeAttribute: PropTypes.func,
|
|
128
|
-
onDeactivateError: PropTypes.func,
|
|
129
|
-
additionalControlsRenderer: PropTypes.func,
|
|
130
|
-
highlightedError: PropTypes.object,
|
|
131
|
-
isEmptyEditor: PropTypes.bool
|
|
132
|
-
};
|
|
133
116
|
var SimpleAttributeEditorWithScrollToElementContext = withContext(ScrollToElementContext, function (contextValue, _a) {
|
|
134
117
|
var attributeValue = _a.attributeValue;
|
|
135
118
|
var _b = contextValue || {}, element = _b.element, type = _b.type;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ImageAttributeValue, AttributeType } from '@reltio/mdm-sdk';
|
|
1
|
+
import { ImageAttributeValue, AttributeType, SimpleAttributeValue, NestedAttributeValue } from '@reltio/mdm-sdk';
|
|
2
2
|
import { ImageAttributeFieldsOrder } from '../types';
|
|
3
3
|
export declare const getFormattedSystemImageAttributeValue: ({ value }: ImageAttributeValue, name: string) => any;
|
|
4
4
|
export declare const filterByFieldsOrder: (keys: string[], fieldsOrder: ImageAttributeFieldsOrder) => string[];
|
|
@@ -8,5 +8,8 @@ export declare const getSystemAttributesList: (attrValue: ImageAttributeValue, f
|
|
|
8
8
|
value: any;
|
|
9
9
|
isLink: boolean;
|
|
10
10
|
}[];
|
|
11
|
-
export declare const getNotSystemAttributesList: (attrValue: ImageAttributeValue, attrType: AttributeType, fieldsOrder: ImageAttributeFieldsOrder) =>
|
|
11
|
+
export declare const getNotSystemAttributesList: (attrValue: ImageAttributeValue, attrType: AttributeType, fieldsOrder: ImageAttributeFieldsOrder) => {
|
|
12
|
+
attrType: AttributeType;
|
|
13
|
+
values: SimpleAttributeValue[] | NestedAttributeValue[];
|
|
14
|
+
}[];
|
|
12
15
|
export declare const isLink: (key: string) => boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MouseEventHandler } from 'react';
|
|
1
2
|
export declare enum ImportModes {
|
|
2
3
|
INIT = 1,
|
|
3
4
|
PROGRESS = 2,
|
|
@@ -6,7 +7,7 @@ export declare enum ImportModes {
|
|
|
6
7
|
}
|
|
7
8
|
type Props = {
|
|
8
9
|
tooltip?: string;
|
|
9
|
-
onClick?:
|
|
10
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
10
11
|
classes?: Partial<Record<'root' | 'spinner' | 'button' | 'check', string>>;
|
|
11
12
|
mode?: ImportModes;
|
|
12
13
|
};
|
|
@@ -1,31 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextFieldProps } from '@mui/material/TextField';
|
|
3
|
+
import { MenuProps } from '@mui/material/Menu';
|
|
4
|
+
import { PrimitiveValue } from '@reltio/mdm-sdk';
|
|
5
|
+
import { DropDownEntryType } from '../../types';
|
|
6
|
+
type Props<T> = {
|
|
7
|
+
multiple?: boolean;
|
|
8
|
+
fullWidth?: boolean;
|
|
9
|
+
value: T;
|
|
10
|
+
TextFieldProps?: TextFieldProps;
|
|
11
|
+
MenuProps?: Partial<MenuProps>;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
classes?: Record<string, string>;
|
|
14
|
+
className?: string;
|
|
15
|
+
onChange?: (value: T) => void;
|
|
16
|
+
getValueLabel?: (value: T) => string;
|
|
17
|
+
getValuePlaceholder?: (value: T) => string;
|
|
18
|
+
isCrossedOut?: boolean;
|
|
19
|
+
};
|
|
20
|
+
declare const MultipliableSelect: <T extends PrimitiveValue | DropDownEntryType>({ multiple, value, children, getValueLabel, getValuePlaceholder, onChange, fullWidth, TextFieldProps, MenuProps, classes, isCrossedOut, ...otherProps }: Props<T>) => JSX.Element;
|
|
1
21
|
export default MultipliableSelect;
|
|
2
|
-
declare function MultipliableSelect({ multiple, value, children, getValueLabel, getValuePlaceholder, onChange, fullWidth, TextFieldProps, MenuProps, classes, isCrossedOut, ...otherProps }: {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
multiple: any;
|
|
5
|
-
value: any;
|
|
6
|
-
children: any;
|
|
7
|
-
getValueLabel?: () => void;
|
|
8
|
-
getValuePlaceholder?: any;
|
|
9
|
-
onChange?: () => void;
|
|
10
|
-
fullWidth: any;
|
|
11
|
-
TextFieldProps: any;
|
|
12
|
-
MenuProps: any;
|
|
13
|
-
classes: any;
|
|
14
|
-
isCrossedOut: any;
|
|
15
|
-
}): JSX.Element;
|
|
16
|
-
declare namespace MultipliableSelect {
|
|
17
|
-
namespace propTypes {
|
|
18
|
-
let multiple: PropTypes.Requireable<boolean>;
|
|
19
|
-
let fullWidth: PropTypes.Requireable<boolean>;
|
|
20
|
-
let value: PropTypes.Requireable<NonNullable<NonNullable<string | number | object>>>;
|
|
21
|
-
let TextFieldProps: PropTypes.Requireable<object>;
|
|
22
|
-
let MenuProps: PropTypes.Requireable<object>;
|
|
23
|
-
let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
24
|
-
let classes: PropTypes.Requireable<object>;
|
|
25
|
-
let onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
26
|
-
let getValueLabel: PropTypes.Requireable<(...args: any[]) => any>;
|
|
27
|
-
let getValuePlaceholder: PropTypes.Requireable<(...args: any[]) => any>;
|
|
28
|
-
let isCrossedOut: PropTypes.Requireable<boolean>;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
import PropTypes from 'prop-types';
|
|
@@ -21,11 +21,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import React from 'react';
|
|
24
|
-
import PropTypes from 'prop-types';
|
|
25
24
|
import classnames from 'classnames';
|
|
26
25
|
import { defaultTo, identity, pipe, prop, remove } from 'ramda';
|
|
27
26
|
import TextField from '@mui/material/TextField';
|
|
28
|
-
import { SelectValueType } from '../../constants/prop-types';
|
|
29
27
|
import { getValue, noop } from '../../core/utils';
|
|
30
28
|
import ValueChip from '../ValueChip/ValueChip';
|
|
31
29
|
import { useStyles } from './styles';
|
|
@@ -39,17 +37,4 @@ var MultipliableSelect = function (_a) {
|
|
|
39
37
|
return multiple ? (React.createElement("div", { className: styles.chips }, selected.map(function (value, index) { return (React.createElement(ValueChip, { key: value, label: getValueLabel(value) || getValuePlaceholder(value), onMouseDown: function (event) { return event.stopPropagation(); }, onDelete: function () { return onChange(remove(index, 1, selected)); } })); }))) : (getValueLabel(selected) || getValuePlaceholder(selected));
|
|
40
38
|
} }) }), children));
|
|
41
39
|
};
|
|
42
|
-
MultipliableSelect.propTypes = {
|
|
43
|
-
multiple: PropTypes.bool,
|
|
44
|
-
fullWidth: PropTypes.bool,
|
|
45
|
-
value: PropTypes.oneOfType([SelectValueType, PropTypes.arrayOf(SelectValueType)]),
|
|
46
|
-
TextFieldProps: PropTypes.object,
|
|
47
|
-
MenuProps: PropTypes.object,
|
|
48
|
-
children: PropTypes.node,
|
|
49
|
-
classes: PropTypes.object,
|
|
50
|
-
onChange: PropTypes.func,
|
|
51
|
-
getValueLabel: PropTypes.func,
|
|
52
|
-
getValuePlaceholder: PropTypes.func,
|
|
53
|
-
isCrossedOut: PropTypes.bool
|
|
54
|
-
};
|
|
55
40
|
export default MultipliableSelect;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"inactive" | "label" | "
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"inactive" | "label" | "secondaryLabel" | "entityType" | "profileBand" | "entityId" | "badge" | "profileBandWrapper" | "profileIcon" | "imageProfileIcon" | "profileInfo" | "businessCard" | "specialInfo">;
|
|
2
2
|
export default useStyles;
|
|
@@ -1,109 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
AttributeSelectorComponent: any;
|
|
18
|
-
FilterSelectorComponent?: ({ className, rowData }: {
|
|
19
|
-
className: string;
|
|
20
|
-
rowData: import("../..").QueryBuilderAttribute;
|
|
21
|
-
}) => JSX.Element;
|
|
22
|
-
ValuesEditorComponent: any;
|
|
23
|
-
ActionsComponent: any;
|
|
24
|
-
filterSelectorRef: any;
|
|
25
|
-
attributeSelectorProps?: {};
|
|
26
|
-
}): JSX.Element;
|
|
27
|
-
propTypes: {
|
|
28
|
-
classes: PropTypes.Requireable<PropTypes.InferProps<{
|
|
29
|
-
root: PropTypes.Requireable<string>;
|
|
30
|
-
logicOperatorContainer: PropTypes.Requireable<string>;
|
|
31
|
-
attributeSelectorContainer: PropTypes.Requireable<string>;
|
|
32
|
-
filterSelectorContainer: PropTypes.Requireable<string>;
|
|
33
|
-
valuesEditorContainer: PropTypes.Requireable<string>;
|
|
34
|
-
actionsContainer: PropTypes.Requireable<string>;
|
|
35
|
-
}>>;
|
|
36
|
-
rowData: PropTypes.Requireable<PropTypes.InferProps<{
|
|
37
|
-
id: PropTypes.Requireable<NonNullable<string | number>>;
|
|
38
|
-
values: PropTypes.Requireable<any[]>;
|
|
39
|
-
data: PropTypes.Requireable<PropTypes.InferProps<{
|
|
40
|
-
title: PropTypes.Requireable<string>;
|
|
41
|
-
pathToTitle: PropTypes.Requireable<string[]>;
|
|
42
|
-
fieldName: PropTypes.Requireable<string>;
|
|
43
|
-
entityTypeUri: PropTypes.Requireable<string>;
|
|
44
|
-
attrType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
45
|
-
label: PropTypes.Requireable<string>;
|
|
46
|
-
name: PropTypes.Requireable<string>;
|
|
47
|
-
description: PropTypes.Requireable<string>;
|
|
48
|
-
type: PropTypes.Requireable<string>;
|
|
49
|
-
hidden: PropTypes.Requireable<boolean>;
|
|
50
|
-
faceted: PropTypes.Requireable<boolean>;
|
|
51
|
-
searchable: PropTypes.Requireable<boolean>;
|
|
52
|
-
uri: PropTypes.Requireable<string>;
|
|
53
|
-
access: PropTypes.Requireable<string[]>;
|
|
54
|
-
cardinality: PropTypes.Requireable<PropTypes.InferProps<{
|
|
55
|
-
minValue: PropTypes.Requireable<number>;
|
|
56
|
-
maxValue: PropTypes.Requireable<number>;
|
|
57
|
-
}>>;
|
|
58
|
-
}>>;
|
|
59
|
-
uri: PropTypes.Requireable<string>;
|
|
60
|
-
groupName: PropTypes.Requireable<string>;
|
|
61
|
-
}>>;
|
|
62
|
-
filter: PropTypes.Requireable<string>;
|
|
63
|
-
operator: PropTypes.Requireable<string>;
|
|
64
|
-
}>>;
|
|
65
|
-
previousRowData: PropTypes.Requireable<PropTypes.InferProps<{
|
|
66
|
-
id: PropTypes.Requireable<NonNullable<string | number>>;
|
|
67
|
-
values: PropTypes.Requireable<any[]>;
|
|
68
|
-
data: PropTypes.Requireable<PropTypes.InferProps<{
|
|
69
|
-
title: PropTypes.Requireable<string>;
|
|
70
|
-
pathToTitle: PropTypes.Requireable<string[]>;
|
|
71
|
-
fieldName: PropTypes.Requireable<string>;
|
|
72
|
-
entityTypeUri: PropTypes.Requireable<string>;
|
|
73
|
-
attrType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
74
|
-
label: PropTypes.Requireable<string>;
|
|
75
|
-
name: PropTypes.Requireable<string>;
|
|
76
|
-
description: PropTypes.Requireable<string>;
|
|
77
|
-
type: PropTypes.Requireable<string>;
|
|
78
|
-
hidden: PropTypes.Requireable<boolean>;
|
|
79
|
-
faceted: PropTypes.Requireable<boolean>;
|
|
80
|
-
searchable: PropTypes.Requireable<boolean>;
|
|
81
|
-
uri: PropTypes.Requireable<string>;
|
|
82
|
-
access: PropTypes.Requireable<string[]>;
|
|
83
|
-
cardinality: PropTypes.Requireable<PropTypes.InferProps<{
|
|
84
|
-
minValue: PropTypes.Requireable<number>;
|
|
85
|
-
maxValue: PropTypes.Requireable<number>;
|
|
86
|
-
}>>;
|
|
87
|
-
}>>;
|
|
88
|
-
uri: PropTypes.Requireable<string>;
|
|
89
|
-
groupName: PropTypes.Requireable<string>;
|
|
90
|
-
}>>;
|
|
91
|
-
filter: PropTypes.Requireable<string>;
|
|
92
|
-
operator: PropTypes.Requireable<string>;
|
|
93
|
-
}>>;
|
|
94
|
-
LogicOperatorComponent: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
95
|
-
AttributeSelectorComponent: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
96
|
-
FilterSelectorComponent: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
97
|
-
ValuesEditorComponent: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
98
|
-
ActionsComponent: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
99
|
-
filterSelectorRef: PropTypes.Requireable<object>;
|
|
100
|
-
attributeSelectorProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
101
|
-
onRestoreFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
102
|
-
onOpen: PropTypes.Requireable<(...args: any[]) => any>;
|
|
103
|
-
disablePopoverRestoreFocus: PropTypes.Requireable<boolean>;
|
|
104
|
-
}>>;
|
|
1
|
+
import React, { ComponentType, ForwardedRef } from 'react';
|
|
2
|
+
type AttributeSelectorProps = {
|
|
3
|
+
onRestoreFocus?: () => void;
|
|
4
|
+
onOpen?: () => void;
|
|
5
|
+
disablePopoverRestoreFocus?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type Props<T, U extends Record<string, unknown>> = {
|
|
8
|
+
classes?: {
|
|
9
|
+
root?: string;
|
|
10
|
+
logicOperatorContainer?: string;
|
|
11
|
+
attributeSelectorContainer?: string;
|
|
12
|
+
filterSelectorContainer?: string;
|
|
13
|
+
valuesEditorContainer?: string;
|
|
14
|
+
actionsContainer?: string;
|
|
105
15
|
};
|
|
106
|
-
|
|
16
|
+
rowData: T;
|
|
17
|
+
previousRowData: T;
|
|
18
|
+
LogicOperatorComponent?: ComponentType<{
|
|
19
|
+
rowContext: U;
|
|
20
|
+
className?: string;
|
|
21
|
+
rowData: T;
|
|
22
|
+
}>;
|
|
23
|
+
AttributeSelectorComponent: ComponentType<{
|
|
24
|
+
rowContext: U;
|
|
25
|
+
rowData: T;
|
|
26
|
+
attributeSelectorProps?: AttributeSelectorProps;
|
|
27
|
+
}>;
|
|
28
|
+
FilterSelectorComponent: ComponentType<{
|
|
29
|
+
rowContext: U;
|
|
30
|
+
textFieldInputRef: ForwardedRef<HTMLInputElement>;
|
|
31
|
+
rowData: T;
|
|
32
|
+
}>;
|
|
33
|
+
ValuesEditorComponent: ComponentType<{
|
|
34
|
+
rowContext: U;
|
|
35
|
+
rowData: T;
|
|
36
|
+
}>;
|
|
37
|
+
ActionsComponent: ComponentType<{
|
|
38
|
+
rowContext: U;
|
|
39
|
+
rowData: T;
|
|
40
|
+
}>;
|
|
41
|
+
filterSelectorRef: ForwardedRef<HTMLInputElement>;
|
|
42
|
+
attributeSelectorProps?: AttributeSelectorProps;
|
|
43
|
+
};
|
|
44
|
+
declare const _default: React.MemoExoticComponent<(<T, U extends Record<string, unknown>>({ classes, rowData, previousRowData, LogicOperatorComponent, AttributeSelectorComponent, FilterSelectorComponent, ValuesEditorComponent, ActionsComponent, filterSelectorRef, attributeSelectorProps, ...rowContext }: Props<T, U>) => JSX.Element)>;
|
|
107
45
|
export default _default;
|
|
108
|
-
import PropTypes from 'prop-types';
|
|
109
|
-
import React from 'react';
|
|
@@ -10,11 +10,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
12
|
import React, { memo } from 'react';
|
|
13
|
-
import PropTypes from 'prop-types';
|
|
14
13
|
import classnames from 'classnames';
|
|
15
14
|
import ReadOnlyLogicOperator from './components/ReadOnlyLogicOperator';
|
|
16
15
|
import ReadOnlyFilter from './components/ReadOnlyFilter';
|
|
17
|
-
import { QueryBuilderAttributeType } from '../../constants';
|
|
18
16
|
import useStyles from './styles';
|
|
19
17
|
var QueryBuilderRow = function (_a) {
|
|
20
18
|
var _b;
|
|
@@ -31,27 +29,4 @@ var QueryBuilderRow = function (_a) {
|
|
|
31
29
|
React.createElement("div", { className: classnames(styles.rowItem, classes.actionsContainer, (_b = {}, _b[styles.hidden] = !rowData, _b)) },
|
|
32
30
|
React.createElement(ActionsComponent, { rowContext: rowContext, rowData: rowData }))));
|
|
33
31
|
};
|
|
34
|
-
QueryBuilderRow.propTypes = {
|
|
35
|
-
classes: PropTypes.shape({
|
|
36
|
-
root: PropTypes.string,
|
|
37
|
-
logicOperatorContainer: PropTypes.string,
|
|
38
|
-
attributeSelectorContainer: PropTypes.string,
|
|
39
|
-
filterSelectorContainer: PropTypes.string,
|
|
40
|
-
valuesEditorContainer: PropTypes.string,
|
|
41
|
-
actionsContainer: PropTypes.string
|
|
42
|
-
}),
|
|
43
|
-
rowData: QueryBuilderAttributeType,
|
|
44
|
-
previousRowData: QueryBuilderAttributeType,
|
|
45
|
-
LogicOperatorComponent: PropTypes.elementType,
|
|
46
|
-
AttributeSelectorComponent: PropTypes.elementType,
|
|
47
|
-
FilterSelectorComponent: PropTypes.elementType,
|
|
48
|
-
ValuesEditorComponent: PropTypes.elementType,
|
|
49
|
-
ActionsComponent: PropTypes.elementType,
|
|
50
|
-
filterSelectorRef: PropTypes.object,
|
|
51
|
-
attributeSelectorProps: PropTypes.shape({
|
|
52
|
-
onRestoreFocus: PropTypes.func,
|
|
53
|
-
onOpen: PropTypes.func,
|
|
54
|
-
disablePopoverRestoreFocus: PropTypes.bool
|
|
55
|
-
})
|
|
56
|
-
};
|
|
57
32
|
export default memo(QueryBuilderRow);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { QueryBuilderAttribute } from '../../../types';
|
|
2
1
|
type Props = {
|
|
3
|
-
className
|
|
4
|
-
rowData:
|
|
2
|
+
className?: string;
|
|
3
|
+
rowData: {
|
|
4
|
+
filter?: string;
|
|
5
|
+
};
|
|
5
6
|
};
|
|
6
7
|
declare const ReadOnlyFilter: ({ className, rowData }: Props) => JSX.Element;
|
|
7
8
|
export default ReadOnlyFilter;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
import { QueryBuilderAttribute } from '../../../types';
|
|
3
1
|
type Props = {
|
|
4
|
-
className
|
|
5
|
-
rowData:
|
|
6
|
-
|
|
7
|
-
declare const ReadOnlyLogicOperator: {
|
|
8
|
-
({ className, rowData }: Props): JSX.Element;
|
|
9
|
-
propTypes: {
|
|
10
|
-
className: PropTypes.Requireable<string>;
|
|
11
|
-
rowData: PropTypes.Requireable<object>;
|
|
2
|
+
className?: string;
|
|
3
|
+
rowData: {
|
|
4
|
+
operator?: string;
|
|
12
5
|
};
|
|
13
6
|
};
|
|
7
|
+
declare const ReadOnlyLogicOperator: ({ className, rowData }: Props) => JSX.Element;
|
|
14
8
|
export default ReadOnlyLogicOperator;
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import classnames from 'classnames';
|
|
4
3
|
import i18n from 'ui-i18n';
|
|
5
|
-
import useStyles from './styles';
|
|
6
4
|
import { capitalize } from '@mui/material/utils';
|
|
5
|
+
import useStyles from './styles';
|
|
7
6
|
var ReadOnlyLogicOperator = function (_a) {
|
|
8
7
|
var className = _a.className, rowData = _a.rowData;
|
|
9
8
|
var styles = useStyles();
|
|
10
9
|
return (React.createElement("div", { className: classnames(styles.readOnlyLogicOperatorContainer, className) }, rowData && rowData.operator ? capitalize(rowData.operator) : i18n.text('Where')));
|
|
11
10
|
};
|
|
12
|
-
ReadOnlyLogicOperator.propTypes = {
|
|
13
|
-
className: PropTypes.string,
|
|
14
|
-
rowData: PropTypes.object
|
|
15
|
-
};
|
|
16
11
|
export default ReadOnlyLogicOperator;
|
|
@@ -1,66 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
entityTypeUri: PropTypes.Requireable<string>;
|
|
29
|
-
attrType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
30
|
-
label: PropTypes.Requireable<string>;
|
|
31
|
-
name: PropTypes.Requireable<string>;
|
|
32
|
-
description: PropTypes.Requireable<string>;
|
|
33
|
-
type: PropTypes.Requireable<string>;
|
|
34
|
-
hidden: PropTypes.Requireable<boolean>;
|
|
35
|
-
faceted: PropTypes.Requireable<boolean>;
|
|
36
|
-
searchable: PropTypes.Requireable<boolean>;
|
|
37
|
-
uri: PropTypes.Requireable<string>;
|
|
38
|
-
access: PropTypes.Requireable<string[]>;
|
|
39
|
-
cardinality: PropTypes.Requireable<PropTypes.InferProps<{
|
|
40
|
-
minValue: PropTypes.Requireable<number>;
|
|
41
|
-
maxValue: PropTypes.Requireable<number>;
|
|
42
|
-
}>>;
|
|
43
|
-
}>>;
|
|
44
|
-
uri: PropTypes.Requireable<string>;
|
|
45
|
-
groupName: PropTypes.Requireable<string>;
|
|
46
|
-
}>>;
|
|
47
|
-
filter: PropTypes.Requireable<string>;
|
|
48
|
-
operator: PropTypes.Requireable<string>;
|
|
49
|
-
}>[]>;
|
|
50
|
-
LogicOperatorComponent: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
51
|
-
AttributeSelectorComponent: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
52
|
-
FilterSelectorComponent: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
53
|
-
ValuesEditorComponent: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
54
|
-
ActionsComponent: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
55
|
-
filterSelectorRef: PropTypes.Requireable<object>;
|
|
56
|
-
filterSelectorRefIndex: PropTypes.Requireable<number>;
|
|
57
|
-
lastRowAttributeSelectorProps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
58
|
-
onRestoreFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
59
|
-
onOpen: PropTypes.Requireable<(...args: any[]) => any>;
|
|
60
|
-
disablePopoverRestoreFocus: PropTypes.Requireable<boolean>;
|
|
61
|
-
}>>;
|
|
1
|
+
import { ForwardedRef } from 'react';
|
|
2
|
+
import { Metadata, Optional } from '@reltio/mdm-sdk';
|
|
3
|
+
import { QueryBuilderAttribute } from '../../types';
|
|
4
|
+
import { Props as QueryBuilderRowProps } from '../QueryBuilderRow/QueryBuilderRow';
|
|
5
|
+
type QueryBuilderRowClasses = {
|
|
6
|
+
root?: string;
|
|
7
|
+
logicOperatorContainer?: string;
|
|
8
|
+
attributeSelectorContainer?: string;
|
|
9
|
+
filterSelectorContainer?: string;
|
|
10
|
+
valuesEditorContainer?: string;
|
|
11
|
+
actionsContainer?: string;
|
|
12
|
+
};
|
|
13
|
+
type Props<T, U extends Record<string, unknown>> = {
|
|
14
|
+
className?: string;
|
|
15
|
+
rowClasses?: QueryBuilderRowClasses;
|
|
16
|
+
rowsData: Optional<QueryBuilderAttribute, 'data'>[];
|
|
17
|
+
LogicOperatorComponent?: QueryBuilderRowProps<T, U>['LogicOperatorComponent'];
|
|
18
|
+
AttributeSelectorComponent: QueryBuilderRowProps<T, U>['AttributeSelectorComponent'];
|
|
19
|
+
FilterSelectorComponent: QueryBuilderRowProps<T, U>['FilterSelectorComponent'];
|
|
20
|
+
ValuesEditorComponent: QueryBuilderRowProps<T, U>['ValuesEditorComponent'];
|
|
21
|
+
ActionsComponent: QueryBuilderRowProps<T, U>['ActionsComponent'];
|
|
22
|
+
filterSelectorRef?: ForwardedRef<HTMLInputElement>;
|
|
23
|
+
filterSelectorRefIndex?: number;
|
|
24
|
+
lastRowAttributeSelectorProps?: {
|
|
25
|
+
onRestoreFocus?: () => void;
|
|
26
|
+
onOpen?: () => void;
|
|
27
|
+
disablePopoverRestoreFocus?: boolean;
|
|
62
28
|
};
|
|
63
|
-
|
|
29
|
+
entityTypeUri?: string;
|
|
30
|
+
dispatchGroupAction?: (action: () => void, attributeId: string, selectInfo: string) => void;
|
|
31
|
+
metadata?: Metadata;
|
|
32
|
+
[key: string]: unknown;
|
|
33
|
+
};
|
|
34
|
+
declare const _default: <T, U extends Record<string, unknown>>({ className, rowClasses, rowsData, lastRowAttributeSelectorProps, filterSelectorRef, filterSelectorRefIndex, ...rowProps }: Props<T, U>) => JSX.Element;
|
|
64
35
|
export default _default;
|
|
65
|
-
import PropTypes from 'prop-types';
|
|
66
|
-
import React from 'react';
|
|
@@ -20,11 +20,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
-
import React, { memo } from 'react';
|
|
24
|
-
import PropTypes from 'prop-types';
|
|
25
23
|
import { path } from 'ramda';
|
|
24
|
+
import React from 'react';
|
|
26
25
|
import QueryBuilderRow from '../QueryBuilderRow/QueryBuilderRow';
|
|
27
|
-
import { QueryBuilderAttributeType } from '../../constants';
|
|
28
26
|
var QueryBuilderRowsGroup = function (_a) {
|
|
29
27
|
var _b = _a.className, className = _b === void 0 ? undefined : _b, rowClasses = _a.rowClasses, rowsData = _a.rowsData, lastRowAttributeSelectorProps = _a.lastRowAttributeSelectorProps, filterSelectorRef = _a.filterSelectorRef, filterSelectorRefIndex = _a.filterSelectorRefIndex, rowProps = __rest(_a, ["className", "rowClasses", "rowsData", "lastRowAttributeSelectorProps", "filterSelectorRef", "filterSelectorRefIndex"]);
|
|
30
28
|
var renderRow = function (rowData, index, rowsData) {
|
|
@@ -40,28 +38,5 @@ var QueryBuilderRowsGroup = function (_a) {
|
|
|
40
38
|
rowsData.map(renderRow),
|
|
41
39
|
renderRow(null, rowsData.length, rowsData)));
|
|
42
40
|
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
rowClasses: PropTypes.shape({
|
|
46
|
-
root: PropTypes.string,
|
|
47
|
-
logicOperatorContainer: PropTypes.string,
|
|
48
|
-
attributeSelectorContainer: PropTypes.string,
|
|
49
|
-
filterSelectorContainer: PropTypes.string,
|
|
50
|
-
valuesEditorContainer: PropTypes.string,
|
|
51
|
-
actionsContainer: PropTypes.string
|
|
52
|
-
}),
|
|
53
|
-
rowsData: PropTypes.arrayOf(QueryBuilderAttributeType),
|
|
54
|
-
LogicOperatorComponent: PropTypes.elementType,
|
|
55
|
-
AttributeSelectorComponent: PropTypes.elementType,
|
|
56
|
-
FilterSelectorComponent: PropTypes.elementType,
|
|
57
|
-
ValuesEditorComponent: PropTypes.elementType,
|
|
58
|
-
ActionsComponent: PropTypes.elementType,
|
|
59
|
-
filterSelectorRef: PropTypes.object,
|
|
60
|
-
filterSelectorRefIndex: PropTypes.number,
|
|
61
|
-
lastRowAttributeSelectorProps: PropTypes.shape({
|
|
62
|
-
onRestoreFocus: PropTypes.func,
|
|
63
|
-
onOpen: PropTypes.func,
|
|
64
|
-
disablePopoverRestoreFocus: PropTypes.bool
|
|
65
|
-
})
|
|
66
|
-
};
|
|
67
|
-
export default memo(QueryBuilderRowsGroup);
|
|
41
|
+
var typedMemo = React.memo;
|
|
42
|
+
export default typedMemo(QueryBuilderRowsGroup);
|
|
@@ -5,50 +5,5 @@ declare const _default: {
|
|
|
5
5
|
components: {};
|
|
6
6
|
classes: {};
|
|
7
7
|
};
|
|
8
|
-
propTypes: {
|
|
9
|
-
components: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
10
|
-
ClearIndicator: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
11
|
-
Control: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
12
|
-
DropdownIndicator: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
13
|
-
DownChevron: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
14
|
-
CrossIcon: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
15
|
-
Group: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
16
|
-
GroupHeading: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
17
|
-
IndicatorsContainer: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
18
|
-
IndicatorSeparator: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
19
|
-
Input: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
20
|
-
LoadingIndicator: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
21
|
-
Menu: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
22
|
-
MenuList: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
23
|
-
MenuPortal: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
24
|
-
LoadingMessage: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
25
|
-
NoOptionsMessage: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
26
|
-
MultiValue: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
27
|
-
MultiValueContainer: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
28
|
-
MultiValueLabel: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
29
|
-
MultiValueRemove: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
30
|
-
Option: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
31
|
-
Placeholder: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
32
|
-
SelectContainer: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
33
|
-
SingleValue: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
34
|
-
ValueContainer: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
35
|
-
}>>;
|
|
36
|
-
classes: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
37
|
-
control: import("prop-types").Requireable<string>;
|
|
38
|
-
valueContainer: import("prop-types").Requireable<string>;
|
|
39
|
-
multiValue: import("prop-types").Requireable<string>;
|
|
40
|
-
noOptionsMessage: import("prop-types").Requireable<string>;
|
|
41
|
-
singleValue: import("prop-types").Requireable<string>;
|
|
42
|
-
placeholder: import("prop-types").Requireable<string>;
|
|
43
|
-
menu: import("prop-types").Requireable<string>;
|
|
44
|
-
clearIndicator: import("prop-types").Requireable<string>;
|
|
45
|
-
dropdownIndicator: import("prop-types").Requireable<string>;
|
|
46
|
-
option: import("prop-types").Requireable<string>;
|
|
47
|
-
'option--selected': import("prop-types").Requireable<string>;
|
|
48
|
-
}>>;
|
|
49
|
-
TextFieldProps: import("prop-types").Requireable<object>;
|
|
50
|
-
error: import("prop-types").Requireable<boolean>;
|
|
51
|
-
innerRef: import("prop-types").Requireable<object>;
|
|
52
|
-
};
|
|
53
8
|
};
|
|
54
9
|
export default _default;
|