@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
|
@@ -38,11 +38,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
38
38
|
};
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
40
|
var react_1 = __importStar(require("react"));
|
|
41
|
-
var prop_types_1 = __importDefault(require("prop-types"));
|
|
42
41
|
var classnames_1 = __importDefault(require("classnames"));
|
|
43
42
|
var ReadOnlyLogicOperator_1 = __importDefault(require("./components/ReadOnlyLogicOperator"));
|
|
44
43
|
var ReadOnlyFilter_1 = __importDefault(require("./components/ReadOnlyFilter"));
|
|
45
|
-
var constants_1 = require("../../constants");
|
|
46
44
|
var styles_1 = __importDefault(require("./styles"));
|
|
47
45
|
var QueryBuilderRow = function (_a) {
|
|
48
46
|
var _b;
|
|
@@ -59,27 +57,4 @@ var QueryBuilderRow = function (_a) {
|
|
|
59
57
|
react_1.default.createElement("div", { className: (0, classnames_1.default)(styles.rowItem, classes.actionsContainer, (_b = {}, _b[styles.hidden] = !rowData, _b)) },
|
|
60
58
|
react_1.default.createElement(ActionsComponent, { rowContext: rowContext, rowData: rowData }))));
|
|
61
59
|
};
|
|
62
|
-
QueryBuilderRow.propTypes = {
|
|
63
|
-
classes: prop_types_1.default.shape({
|
|
64
|
-
root: prop_types_1.default.string,
|
|
65
|
-
logicOperatorContainer: prop_types_1.default.string,
|
|
66
|
-
attributeSelectorContainer: prop_types_1.default.string,
|
|
67
|
-
filterSelectorContainer: prop_types_1.default.string,
|
|
68
|
-
valuesEditorContainer: prop_types_1.default.string,
|
|
69
|
-
actionsContainer: prop_types_1.default.string
|
|
70
|
-
}),
|
|
71
|
-
rowData: constants_1.QueryBuilderAttributeType,
|
|
72
|
-
previousRowData: constants_1.QueryBuilderAttributeType,
|
|
73
|
-
LogicOperatorComponent: prop_types_1.default.elementType,
|
|
74
|
-
AttributeSelectorComponent: prop_types_1.default.elementType,
|
|
75
|
-
FilterSelectorComponent: prop_types_1.default.elementType,
|
|
76
|
-
ValuesEditorComponent: prop_types_1.default.elementType,
|
|
77
|
-
ActionsComponent: prop_types_1.default.elementType,
|
|
78
|
-
filterSelectorRef: prop_types_1.default.object,
|
|
79
|
-
attributeSelectorProps: prop_types_1.default.shape({
|
|
80
|
-
onRestoreFocus: prop_types_1.default.func,
|
|
81
|
-
onOpen: prop_types_1.default.func,
|
|
82
|
-
disablePopoverRestoreFocus: prop_types_1.default.bool
|
|
83
|
-
})
|
|
84
|
-
};
|
|
85
60
|
exports.default = (0, react_1.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;
|
|
@@ -4,18 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var react_1 = __importDefault(require("react"));
|
|
7
|
-
var prop_types_1 = __importDefault(require("prop-types"));
|
|
8
7
|
var classnames_1 = __importDefault(require("classnames"));
|
|
9
8
|
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
10
|
-
var styles_1 = __importDefault(require("./styles"));
|
|
11
9
|
var utils_1 = require("@mui/material/utils");
|
|
10
|
+
var styles_1 = __importDefault(require("./styles"));
|
|
12
11
|
var ReadOnlyLogicOperator = function (_a) {
|
|
13
12
|
var className = _a.className, rowData = _a.rowData;
|
|
14
13
|
var styles = (0, styles_1.default)();
|
|
15
14
|
return (react_1.default.createElement("div", { className: (0, classnames_1.default)(styles.readOnlyLogicOperatorContainer, className) }, rowData && rowData.operator ? (0, utils_1.capitalize)(rowData.operator) : ui_i18n_1.default.text('Where')));
|
|
16
15
|
};
|
|
17
|
-
ReadOnlyLogicOperator.propTypes = {
|
|
18
|
-
className: prop_types_1.default.string,
|
|
19
|
-
rowData: prop_types_1.default.object
|
|
20
|
-
};
|
|
21
16
|
exports.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';
|
|
@@ -10,29 +10,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
13
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
14
|
var t = {};
|
|
38
15
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -48,11 +25,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
48
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
26
|
};
|
|
50
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
-
var react_1 = __importStar(require("react"));
|
|
52
|
-
var prop_types_1 = __importDefault(require("prop-types"));
|
|
53
28
|
var ramda_1 = require("ramda");
|
|
29
|
+
var react_1 = __importDefault(require("react"));
|
|
54
30
|
var QueryBuilderRow_1 = __importDefault(require("../QueryBuilderRow/QueryBuilderRow"));
|
|
55
|
-
var constants_1 = require("../../constants");
|
|
56
31
|
var QueryBuilderRowsGroup = function (_a) {
|
|
57
32
|
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"]);
|
|
58
33
|
var renderRow = function (rowData, index, rowsData) {
|
|
@@ -68,28 +43,5 @@ var QueryBuilderRowsGroup = function (_a) {
|
|
|
68
43
|
rowsData.map(renderRow),
|
|
69
44
|
renderRow(null, rowsData.length, rowsData)));
|
|
70
45
|
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
rowClasses: prop_types_1.default.shape({
|
|
74
|
-
root: prop_types_1.default.string,
|
|
75
|
-
logicOperatorContainer: prop_types_1.default.string,
|
|
76
|
-
attributeSelectorContainer: prop_types_1.default.string,
|
|
77
|
-
filterSelectorContainer: prop_types_1.default.string,
|
|
78
|
-
valuesEditorContainer: prop_types_1.default.string,
|
|
79
|
-
actionsContainer: prop_types_1.default.string
|
|
80
|
-
}),
|
|
81
|
-
rowsData: prop_types_1.default.arrayOf(constants_1.QueryBuilderAttributeType),
|
|
82
|
-
LogicOperatorComponent: prop_types_1.default.elementType,
|
|
83
|
-
AttributeSelectorComponent: prop_types_1.default.elementType,
|
|
84
|
-
FilterSelectorComponent: prop_types_1.default.elementType,
|
|
85
|
-
ValuesEditorComponent: prop_types_1.default.elementType,
|
|
86
|
-
ActionsComponent: prop_types_1.default.elementType,
|
|
87
|
-
filterSelectorRef: prop_types_1.default.object,
|
|
88
|
-
filterSelectorRefIndex: prop_types_1.default.number,
|
|
89
|
-
lastRowAttributeSelectorProps: prop_types_1.default.shape({
|
|
90
|
-
onRestoreFocus: prop_types_1.default.func,
|
|
91
|
-
onOpen: prop_types_1.default.func,
|
|
92
|
-
disablePopoverRestoreFocus: prop_types_1.default.bool
|
|
93
|
-
})
|
|
94
|
-
};
|
|
95
|
-
exports.default = (0, react_1.memo)(QueryBuilderRowsGroup);
|
|
46
|
+
var typedMemo = react_1.default.memo;
|
|
47
|
+
exports.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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -1,54 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { Props } from 'react-select';
|
|
2
|
+
export default function withMuiSkin<OptionType>(SelectComponent: any): {
|
|
3
|
+
(props: Props<OptionType, true>['selectProps']): JSX.Element;
|
|
3
4
|
displayName: string;
|
|
4
5
|
defaultProps: {
|
|
5
6
|
components: {};
|
|
6
7
|
classes: {};
|
|
7
8
|
};
|
|
8
|
-
propTypes: {
|
|
9
|
-
components: PropTypes.Requireable<PropTypes.InferProps<{
|
|
10
|
-
ClearIndicator: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
|
-
Control: PropTypes.Requireable<(...args: any[]) => any>;
|
|
12
|
-
DropdownIndicator: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
|
-
DownChevron: PropTypes.Requireable<(...args: any[]) => any>;
|
|
14
|
-
CrossIcon: PropTypes.Requireable<(...args: any[]) => any>;
|
|
15
|
-
Group: PropTypes.Requireable<(...args: any[]) => any>;
|
|
16
|
-
GroupHeading: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
|
-
IndicatorsContainer: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
|
-
IndicatorSeparator: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
|
-
Input: PropTypes.Requireable<(...args: any[]) => any>;
|
|
20
|
-
LoadingIndicator: PropTypes.Requireable<(...args: any[]) => any>;
|
|
21
|
-
Menu: PropTypes.Requireable<(...args: any[]) => any>;
|
|
22
|
-
MenuList: PropTypes.Requireable<(...args: any[]) => any>;
|
|
23
|
-
MenuPortal: PropTypes.Requireable<(...args: any[]) => any>;
|
|
24
|
-
LoadingMessage: PropTypes.Requireable<(...args: any[]) => any>;
|
|
25
|
-
NoOptionsMessage: PropTypes.Requireable<(...args: any[]) => any>;
|
|
26
|
-
MultiValue: PropTypes.Requireable<(...args: any[]) => any>;
|
|
27
|
-
MultiValueContainer: PropTypes.Requireable<(...args: any[]) => any>;
|
|
28
|
-
MultiValueLabel: PropTypes.Requireable<(...args: any[]) => any>;
|
|
29
|
-
MultiValueRemove: PropTypes.Requireable<(...args: any[]) => any>;
|
|
30
|
-
Option: PropTypes.Requireable<(...args: any[]) => any>;
|
|
31
|
-
Placeholder: PropTypes.Requireable<(...args: any[]) => any>;
|
|
32
|
-
SelectContainer: PropTypes.Requireable<(...args: any[]) => any>;
|
|
33
|
-
SingleValue: PropTypes.Requireable<(...args: any[]) => any>;
|
|
34
|
-
ValueContainer: PropTypes.Requireable<(...args: any[]) => any>;
|
|
35
|
-
}>>;
|
|
36
|
-
classes: PropTypes.Requireable<PropTypes.InferProps<{
|
|
37
|
-
control: PropTypes.Requireable<string>;
|
|
38
|
-
valueContainer: PropTypes.Requireable<string>;
|
|
39
|
-
multiValue: PropTypes.Requireable<string>;
|
|
40
|
-
noOptionsMessage: PropTypes.Requireable<string>;
|
|
41
|
-
singleValue: PropTypes.Requireable<string>;
|
|
42
|
-
placeholder: PropTypes.Requireable<string>;
|
|
43
|
-
menu: PropTypes.Requireable<string>;
|
|
44
|
-
clearIndicator: PropTypes.Requireable<string>;
|
|
45
|
-
dropdownIndicator: PropTypes.Requireable<string>;
|
|
46
|
-
option: PropTypes.Requireable<string>;
|
|
47
|
-
'option--selected': PropTypes.Requireable<string>;
|
|
48
|
-
}>>;
|
|
49
|
-
TextFieldProps: PropTypes.Requireable<object>;
|
|
50
|
-
error: PropTypes.Requireable<boolean>;
|
|
51
|
-
innerRef: PropTypes.Requireable<object>;
|
|
52
|
-
};
|
|
53
9
|
};
|
|
54
|
-
import PropTypes from 'prop-types';
|
|
@@ -26,7 +26,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
28
|
var react_1 = __importDefault(require("react"));
|
|
29
|
-
var prop_types_1 = __importDefault(require("prop-types"));
|
|
30
29
|
var commonComponents_1 = __importDefault(require("./commonComponents"));
|
|
31
30
|
var styles_1 = __importDefault(require("./styles"));
|
|
32
31
|
var utils_1 = require("../../core/utils");
|
|
@@ -43,55 +42,6 @@ function withMuiSkin(SelectComponent) {
|
|
|
43
42
|
components: {},
|
|
44
43
|
classes: {}
|
|
45
44
|
};
|
|
46
|
-
WrappedSelectComponent.propTypes = {
|
|
47
|
-
/* You could redefine any of these components */
|
|
48
|
-
components: prop_types_1.default.shape({
|
|
49
|
-
ClearIndicator: prop_types_1.default.func,
|
|
50
|
-
Control: prop_types_1.default.func,
|
|
51
|
-
DropdownIndicator: prop_types_1.default.func,
|
|
52
|
-
DownChevron: prop_types_1.default.func,
|
|
53
|
-
CrossIcon: prop_types_1.default.func,
|
|
54
|
-
Group: prop_types_1.default.func,
|
|
55
|
-
GroupHeading: prop_types_1.default.func,
|
|
56
|
-
IndicatorsContainer: prop_types_1.default.func,
|
|
57
|
-
IndicatorSeparator: prop_types_1.default.func,
|
|
58
|
-
Input: prop_types_1.default.func,
|
|
59
|
-
LoadingIndicator: prop_types_1.default.func,
|
|
60
|
-
Menu: prop_types_1.default.func,
|
|
61
|
-
MenuList: prop_types_1.default.func,
|
|
62
|
-
MenuPortal: prop_types_1.default.func,
|
|
63
|
-
LoadingMessage: prop_types_1.default.func,
|
|
64
|
-
NoOptionsMessage: prop_types_1.default.func,
|
|
65
|
-
MultiValue: prop_types_1.default.func,
|
|
66
|
-
MultiValueContainer: prop_types_1.default.func,
|
|
67
|
-
MultiValueLabel: prop_types_1.default.func,
|
|
68
|
-
MultiValueRemove: prop_types_1.default.func,
|
|
69
|
-
Option: prop_types_1.default.func,
|
|
70
|
-
Placeholder: prop_types_1.default.func,
|
|
71
|
-
SelectContainer: prop_types_1.default.func,
|
|
72
|
-
SingleValue: prop_types_1.default.func,
|
|
73
|
-
ValueContainer: prop_types_1.default.func
|
|
74
|
-
}),
|
|
75
|
-
/* Classes are passed to mui skin components. Provided classes will be merged with existing ones. */
|
|
76
|
-
classes: prop_types_1.default.shape({
|
|
77
|
-
control: prop_types_1.default.string,
|
|
78
|
-
valueContainer: prop_types_1.default.string,
|
|
79
|
-
multiValue: prop_types_1.default.string,
|
|
80
|
-
noOptionsMessage: prop_types_1.default.string,
|
|
81
|
-
singleValue: prop_types_1.default.string,
|
|
82
|
-
placeholder: prop_types_1.default.string,
|
|
83
|
-
menu: prop_types_1.default.string,
|
|
84
|
-
clearIndicator: prop_types_1.default.string,
|
|
85
|
-
dropdownIndicator: prop_types_1.default.string,
|
|
86
|
-
option: prop_types_1.default.string,
|
|
87
|
-
'option--selected': prop_types_1.default.string
|
|
88
|
-
}),
|
|
89
|
-
/* Props from https://material-ui.com/api/text-field/ */
|
|
90
|
-
TextFieldProps: prop_types_1.default.object,
|
|
91
|
-
error: prop_types_1.default.bool,
|
|
92
|
-
/* Plus all necessary props for wrapped react-select component. See docs on https://react-select.com */
|
|
93
|
-
innerRef: prop_types_1.default.object
|
|
94
|
-
};
|
|
95
45
|
return WrappedSelectComponent;
|
|
96
46
|
}
|
|
97
47
|
exports.default = withMuiSkin;
|
|
@@ -43,9 +43,9 @@ declare namespace NodeRendererDefault {
|
|
|
43
43
|
}
|
|
44
44
|
namespace propTypes {
|
|
45
45
|
export let node: PropTypes.Validator<NonNullable<PropTypes.InferProps<{}>>>;
|
|
46
|
-
let title_1: PropTypes.Requireable<NonNullable<((...args: any[]) => any)
|
|
46
|
+
let title_1: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike | ((...args: any[]) => any)>>;
|
|
47
47
|
export { title_1 as title };
|
|
48
|
-
let subtitle_1: PropTypes.Requireable<NonNullable<((...args: any[]) => any)
|
|
48
|
+
let subtitle_1: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike | ((...args: any[]) => any)>>;
|
|
49
49
|
export { subtitle_1 as subtitle };
|
|
50
50
|
export let path: PropTypes.Validator<NonNullable<string | number>[]>;
|
|
51
51
|
export let treeIndex: PropTypes.Validator<number>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ReadableQueryPrimitive } from '@reltio/mdm-sdk';
|
|
3
|
-
|
|
3
|
+
declare const ReadableSearchQuery: React.ForwardRefExoticComponent<{
|
|
4
4
|
readableQuery?: ReadableQueryPrimitive[];
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
declare const ReadableSearchQuery: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLElement>>;
|
|
5
|
+
} & React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLElement>>;
|
|
8
6
|
export default ReadableSearchQuery;
|
|
@@ -3,7 +3,7 @@ import { InputProps } from '@mui/material/Input';
|
|
|
3
3
|
export type SearchInputProps = InputProps & {
|
|
4
4
|
value?: string;
|
|
5
5
|
autofocus?: boolean;
|
|
6
|
-
onSearch
|
|
6
|
+
onSearch?: (value?: string) => void;
|
|
7
7
|
rootRef?: React.MutableRefObject<HTMLInputElement>;
|
|
8
8
|
height: number;
|
|
9
9
|
placeholder?: string;
|
|
@@ -7,7 +7,7 @@ type Props = {
|
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
PaperProps?: Record<string, unknown>;
|
|
9
9
|
searchInputOnKeyDown: (event: React.KeyboardEvent) => void;
|
|
10
|
-
onSearch
|
|
10
|
+
onSearch?: (value?: string) => void;
|
|
11
11
|
className?: string;
|
|
12
12
|
hideTitle?: boolean;
|
|
13
13
|
hideSearchInput?: boolean;
|
package/cjs/constants/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { SortingType,
|
|
1
|
+
export { SortingType, QueryBuilderAttributeType } from './prop-types';
|
|
2
2
|
export { COMMENTS_CONTAINER_VISIBILITY_AREA } from './classnames';
|
|
3
3
|
export { ALWAYS_VISIBLE_TYPE_URIS } from './attributes';
|
|
4
4
|
export { MAP_DRAWING_MODES, DEFAULT_GOOGLE_MAP_OPTIONS, DEFAULT_OVERLAY_OPTIONS, MAP_MINIMUM_SCALE_RADIUS } from './map';
|
package/cjs/constants/index.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.POPUP_Z_INDEX = exports.COMMON_TEXT_FIELD_PROPS = exports.MAP_MINIMUM_SCALE_RADIUS = exports.DEFAULT_OVERLAY_OPTIONS = exports.DEFAULT_GOOGLE_MAP_OPTIONS = exports.MAP_DRAWING_MODES = exports.ALWAYS_VISIBLE_TYPE_URIS = exports.COMMENTS_CONTAINER_VISIBILITY_AREA = exports.
|
|
3
|
+
exports.POPUP_Z_INDEX = exports.COMMON_TEXT_FIELD_PROPS = exports.MAP_MINIMUM_SCALE_RADIUS = exports.DEFAULT_OVERLAY_OPTIONS = exports.DEFAULT_GOOGLE_MAP_OPTIONS = exports.MAP_DRAWING_MODES = exports.ALWAYS_VISIBLE_TYPE_URIS = exports.COMMENTS_CONTAINER_VISIBILITY_AREA = exports.QueryBuilderAttributeType = exports.SortingType = void 0;
|
|
4
4
|
var prop_types_1 = require("./prop-types");
|
|
5
5
|
Object.defineProperty(exports, "SortingType", { enumerable: true, get: function () { return prop_types_1.SortingType; } });
|
|
6
|
-
Object.defineProperty(exports, "ColumnFilterType", { enumerable: true, get: function () { return prop_types_1.ColumnFilterType; } });
|
|
7
|
-
Object.defineProperty(exports, "ColumnsDataType", { enumerable: true, get: function () { return prop_types_1.ColumnsDataType; } });
|
|
8
6
|
Object.defineProperty(exports, "QueryBuilderAttributeType", { enumerable: true, get: function () { return prop_types_1.QueryBuilderAttributeType; } });
|
|
9
|
-
Object.defineProperty(exports, "QueryBuilderAttributeDataType", { enumerable: true, get: function () { return prop_types_1.QueryBuilderAttributeDataType; } });
|
|
10
7
|
var classnames_1 = require("./classnames");
|
|
11
8
|
Object.defineProperty(exports, "COMMENTS_CONTAINER_VISIBILITY_AREA", { enumerable: true, get: function () { return classnames_1.COMMENTS_CONTAINER_VISIBILITY_AREA; } });
|
|
12
9
|
var attributes_1 = require("./attributes");
|