@elliemae/ds-query-builder 2.0.0-rc.5 → 2.0.0-rc.9
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/package.json +12 -7
- package/types/DSQueryBuilder.d.ts +169 -24
- package/types/propTypes.d.ts +133 -23
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-query-builder",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Query Builder",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -168,12 +168,17 @@
|
|
|
168
168
|
"build": "node ../../scripts/build/build.js"
|
|
169
169
|
},
|
|
170
170
|
"dependencies": {
|
|
171
|
-
"@elliemae/ds-
|
|
172
|
-
"@elliemae/ds-
|
|
173
|
-
"@elliemae/ds-
|
|
174
|
-
"@elliemae/ds-
|
|
175
|
-
"@elliemae/ds-
|
|
176
|
-
"@elliemae/ds-
|
|
171
|
+
"@elliemae/ds-accordion": "2.0.0-rc.9",
|
|
172
|
+
"@elliemae/ds-button": "2.0.0-rc.9",
|
|
173
|
+
"@elliemae/ds-classnames": "2.0.0-rc.9",
|
|
174
|
+
"@elliemae/ds-form": "2.0.0-rc.9",
|
|
175
|
+
"@elliemae/ds-grid": "2.0.0-rc.9",
|
|
176
|
+
"@elliemae/ds-icon": "2.0.0-rc.9",
|
|
177
|
+
"@elliemae/ds-icons": "2.0.0-rc.9",
|
|
178
|
+
"@elliemae/ds-popper": "2.0.0-rc.9",
|
|
179
|
+
"@elliemae/ds-shared": "2.0.0-rc.9",
|
|
180
|
+
"@elliemae/ds-tooltip": "2.0.0-rc.9",
|
|
181
|
+
"@elliemae/ds-utilities": "2.0.0-rc.9",
|
|
177
182
|
"classnames": "~2.2.6",
|
|
178
183
|
"prop-types": "~15.7.2",
|
|
179
184
|
"react-addons-update": "~15.6.3",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
/// <reference types="react" />
|
|
2
3
|
import { QB_FIELD_TYPES, QB_OPERATOR_TYPES, QB_GROUP_CONDITION_TYPES, QB_DRAG_TYPES, QB_DRAG_LOCATIONS, QB_EXPORT_FORMAT_TYPES, QB_ADD_FILTER_METHOD_TYPES, QB_GROUP_FILTER_METHOD_TYPES, QB_FIELD_SHARED_ACTIONS } from './components/helpers/types';
|
|
3
4
|
import { QB_OPERATOR_OPTIONS, QB_DEFAULT_VALUES_OPTIONS, QB_FIELD_OPTIONS, QB_LOAN_VALUES_OPTIONS, QB_SUBJECT_VALUES_OPTIONS } from './components/helpers/selectors';
|
|
@@ -36,31 +37,175 @@ declare const DSQueryBuilder: {
|
|
|
36
37
|
toolTipZIndex?: number | undefined;
|
|
37
38
|
}): JSX.Element;
|
|
38
39
|
propTypes: {
|
|
39
|
-
containerProps:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
40
|
+
containerProps: {
|
|
41
|
+
defaultValue<T = unknown>(arg: T): {
|
|
42
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
43
|
+
};
|
|
44
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
45
|
+
};
|
|
46
|
+
addFilterMethod: {
|
|
47
|
+
defaultValue<T = unknown>(arg: T): {
|
|
48
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
49
|
+
};
|
|
50
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
51
|
+
};
|
|
52
|
+
groupFilterMethod: {
|
|
53
|
+
defaultValue<T = unknown>(arg: T): {
|
|
54
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
55
|
+
};
|
|
56
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
57
|
+
};
|
|
58
|
+
onChange: {
|
|
59
|
+
defaultValue<T = unknown>(arg: T): {
|
|
60
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
61
|
+
};
|
|
62
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
63
|
+
};
|
|
64
|
+
fields: {
|
|
65
|
+
defaultValue<T = unknown>(arg: T): {
|
|
66
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
67
|
+
};
|
|
68
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
69
|
+
};
|
|
70
|
+
fieldsSharedActions: {
|
|
71
|
+
defaultValue<T = unknown>(arg: T): {
|
|
72
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
73
|
+
};
|
|
74
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
75
|
+
};
|
|
76
|
+
format: {
|
|
77
|
+
defaultValue<T = unknown>(arg: T): {
|
|
78
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
79
|
+
};
|
|
80
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
81
|
+
};
|
|
82
|
+
init: {
|
|
83
|
+
defaultValue<T = unknown>(arg: T): {
|
|
84
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
85
|
+
};
|
|
86
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
87
|
+
};
|
|
88
|
+
ruleContainerClassName: {
|
|
89
|
+
defaultValue<T = unknown>(arg: T): {
|
|
90
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
91
|
+
};
|
|
92
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
93
|
+
};
|
|
94
|
+
handleDrop: {
|
|
95
|
+
defaultValue<T = unknown>(arg: T): {
|
|
96
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
97
|
+
};
|
|
98
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
99
|
+
};
|
|
100
|
+
handleDropFilter: {
|
|
101
|
+
defaultValue<T = unknown>(arg: T): {
|
|
102
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
103
|
+
};
|
|
104
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
105
|
+
};
|
|
106
|
+
handleDropGroup: {
|
|
107
|
+
defaultValue<T = unknown>(arg: T): {
|
|
108
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
109
|
+
};
|
|
110
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
111
|
+
};
|
|
112
|
+
handleFieldChange: {
|
|
113
|
+
defaultValue<T = unknown>(arg: T): {
|
|
114
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
115
|
+
};
|
|
116
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
117
|
+
};
|
|
118
|
+
handleRuleContainerOperator: {
|
|
119
|
+
defaultValue<T = unknown>(arg: T): {
|
|
120
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
121
|
+
};
|
|
122
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
123
|
+
};
|
|
124
|
+
handleRuleContainerUnGroup: {
|
|
125
|
+
defaultValue<T = unknown>(arg: T): {
|
|
126
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
127
|
+
};
|
|
128
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
129
|
+
};
|
|
130
|
+
onAddFilter: {
|
|
131
|
+
defaultValue<T = unknown>(arg: T): {
|
|
132
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
133
|
+
};
|
|
134
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
135
|
+
};
|
|
136
|
+
onAddRuleContainer: {
|
|
137
|
+
defaultValue<T = unknown>(arg: T): {
|
|
138
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
139
|
+
};
|
|
140
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
141
|
+
};
|
|
142
|
+
onRemoveFilter: {
|
|
143
|
+
defaultValue<T = unknown>(arg: T): {
|
|
144
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
145
|
+
};
|
|
146
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
147
|
+
};
|
|
148
|
+
displayFixedOutput: {
|
|
149
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
150
|
+
};
|
|
151
|
+
displayOutput: {
|
|
152
|
+
defaultValue<T = unknown>(arg: T): {
|
|
153
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
154
|
+
};
|
|
155
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
156
|
+
};
|
|
157
|
+
displayOutputLabel: {
|
|
158
|
+
defaultValue<T = unknown>(arg: T): {
|
|
159
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
160
|
+
};
|
|
161
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
162
|
+
};
|
|
163
|
+
singleRow: {
|
|
164
|
+
defaultValue<T = unknown>(arg: T): {
|
|
165
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
166
|
+
};
|
|
167
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
168
|
+
};
|
|
169
|
+
toolTipZIndex: {
|
|
170
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
171
|
+
};
|
|
62
172
|
};
|
|
63
173
|
};
|
|
64
|
-
declare const DSQueryBuilderWithSchema:
|
|
174
|
+
declare const DSQueryBuilderWithSchema: {
|
|
175
|
+
(props?: {
|
|
176
|
+
containerProps?: {} | undefined;
|
|
177
|
+
addFilterMethod?: string | undefined;
|
|
178
|
+
groupFilterMethod?: string | undefined;
|
|
179
|
+
onChange?: (() => null) | undefined;
|
|
180
|
+
fields?: never[] | undefined;
|
|
181
|
+
fieldsSharedActions?: {
|
|
182
|
+
onFieldChange: never[];
|
|
183
|
+
onOperatorChange: never[];
|
|
184
|
+
onValueChange: never[];
|
|
185
|
+
} | undefined;
|
|
186
|
+
format?: string | undefined;
|
|
187
|
+
init?: null | undefined;
|
|
188
|
+
ruleContainerClassName?: string | undefined;
|
|
189
|
+
handleDrop?: (() => null) | undefined;
|
|
190
|
+
handleDropFilter?: (() => null) | undefined;
|
|
191
|
+
handleDropGroup?: (() => null) | undefined;
|
|
192
|
+
handleFieldChange?: (() => null) | undefined;
|
|
193
|
+
handleRuleContainerOperator?: (() => null) | undefined;
|
|
194
|
+
handleRuleContainerUnGroup?: (() => null) | undefined;
|
|
195
|
+
onAddFilter?: (() => null) | undefined;
|
|
196
|
+
onAddRuleContainer?: (() => null) | undefined;
|
|
197
|
+
onRemoveFilter?: (() => null) | undefined;
|
|
198
|
+
displayFixedOutput: any;
|
|
199
|
+
displayOutput?: boolean | undefined;
|
|
200
|
+
displayOutputLabel?: {
|
|
201
|
+
show: string;
|
|
202
|
+
hide: string;
|
|
203
|
+
} | undefined;
|
|
204
|
+
singleRow?: boolean | undefined;
|
|
205
|
+
toolTipZIndex?: number | undefined;
|
|
206
|
+
} | undefined): JSX.Element;
|
|
207
|
+
propTypes: unknown;
|
|
208
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
209
|
+
};
|
|
65
210
|
export { QB_FIELD_SHARED_ACTIONS, QB_FIELD_TYPES, QB_OPERATOR_TYPES, QB_OPERATOR_OPTIONS, QB_DEFAULT_VALUES_OPTIONS, QB_FIELD_OPTIONS, QB_LOAN_VALUES_OPTIONS, QB_SUBJECT_VALUES_OPTIONS, QB_GROUP_CONDITION_TYPES, QB_DRAG_TYPES, QB_DRAG_LOCATIONS, QB_EXPORT_FORMAT_TYPES, QB_ADD_FILTER_METHOD_TYPES, QB_GROUP_FILTER_METHOD_TYPES, QueryBuilderFormat, DSQueryBuilderWithSchema, DSQueryBuilder, };
|
|
66
211
|
export default DSQueryBuilder;
|
package/types/propTypes.d.ts
CHANGED
|
@@ -1,46 +1,156 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
1
2
|
export declare const props: {
|
|
2
3
|
/** inpect props to component wrapper */
|
|
3
|
-
containerProps:
|
|
4
|
+
containerProps: {
|
|
5
|
+
defaultValue<T = unknown>(arg: T): {
|
|
6
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
7
|
+
};
|
|
8
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
9
|
+
};
|
|
4
10
|
/** add filter strategy */
|
|
5
|
-
addFilterMethod:
|
|
11
|
+
addFilterMethod: {
|
|
12
|
+
defaultValue<T = unknown>(arg: T): {
|
|
13
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
14
|
+
};
|
|
15
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
16
|
+
};
|
|
6
17
|
/** group filter strategy */
|
|
7
|
-
groupFilterMethod:
|
|
18
|
+
groupFilterMethod: {
|
|
19
|
+
defaultValue<T = unknown>(arg: T): {
|
|
20
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
21
|
+
};
|
|
22
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
23
|
+
};
|
|
8
24
|
/** change callback */
|
|
9
|
-
onChange:
|
|
25
|
+
onChange: {
|
|
26
|
+
defaultValue<T = unknown>(arg: T): {
|
|
27
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
28
|
+
};
|
|
29
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
30
|
+
};
|
|
10
31
|
/** fields to query */
|
|
11
|
-
fields:
|
|
32
|
+
fields: {
|
|
33
|
+
defaultValue<T = unknown>(arg: T): {
|
|
34
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
35
|
+
};
|
|
36
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
37
|
+
};
|
|
12
38
|
/** fields actions */
|
|
13
|
-
fieldsSharedActions:
|
|
39
|
+
fieldsSharedActions: {
|
|
40
|
+
defaultValue<T = unknown>(arg: T): {
|
|
41
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
42
|
+
};
|
|
43
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
44
|
+
};
|
|
14
45
|
/** query builder format */
|
|
15
|
-
format:
|
|
46
|
+
format: {
|
|
47
|
+
defaultValue<T = unknown>(arg: T): {
|
|
48
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
49
|
+
};
|
|
50
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
51
|
+
};
|
|
16
52
|
/** initial values */
|
|
17
|
-
init:
|
|
53
|
+
init: {
|
|
54
|
+
defaultValue<T = unknown>(arg: T): {
|
|
55
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
56
|
+
};
|
|
57
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
58
|
+
};
|
|
18
59
|
/** class for rule container */
|
|
19
|
-
ruleContainerClassName:
|
|
60
|
+
ruleContainerClassName: {
|
|
61
|
+
defaultValue<T = unknown>(arg: T): {
|
|
62
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
63
|
+
};
|
|
64
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
65
|
+
};
|
|
20
66
|
/** handle field change */
|
|
21
|
-
handleDrop:
|
|
67
|
+
handleDrop: {
|
|
68
|
+
defaultValue<T = unknown>(arg: T): {
|
|
69
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
70
|
+
};
|
|
71
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
72
|
+
};
|
|
22
73
|
/** handle field change drop */
|
|
23
|
-
handleDropFilter:
|
|
74
|
+
handleDropFilter: {
|
|
75
|
+
defaultValue<T = unknown>(arg: T): {
|
|
76
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
77
|
+
};
|
|
78
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
79
|
+
};
|
|
24
80
|
/** handle field group change */
|
|
25
|
-
handleDropGroup:
|
|
81
|
+
handleDropGroup: {
|
|
82
|
+
defaultValue<T = unknown>(arg: T): {
|
|
83
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
84
|
+
};
|
|
85
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
86
|
+
};
|
|
26
87
|
/** handle field change */
|
|
27
|
-
handleFieldChange:
|
|
88
|
+
handleFieldChange: {
|
|
89
|
+
defaultValue<T = unknown>(arg: T): {
|
|
90
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
91
|
+
};
|
|
92
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
93
|
+
};
|
|
28
94
|
/** handle rule container operator change */
|
|
29
|
-
handleRuleContainerOperator:
|
|
95
|
+
handleRuleContainerOperator: {
|
|
96
|
+
defaultValue<T = unknown>(arg: T): {
|
|
97
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
98
|
+
};
|
|
99
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
100
|
+
};
|
|
30
101
|
/** handle rule container grouping change */
|
|
31
|
-
handleRuleContainerUnGroup:
|
|
102
|
+
handleRuleContainerUnGroup: {
|
|
103
|
+
defaultValue<T = unknown>(arg: T): {
|
|
104
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
105
|
+
};
|
|
106
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
107
|
+
};
|
|
32
108
|
/** filter add callback */
|
|
33
|
-
onAddFilter:
|
|
109
|
+
onAddFilter: {
|
|
110
|
+
defaultValue<T = unknown>(arg: T): {
|
|
111
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
112
|
+
};
|
|
113
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
114
|
+
};
|
|
34
115
|
/** rule container add callback */
|
|
35
|
-
onAddRuleContainer:
|
|
116
|
+
onAddRuleContainer: {
|
|
117
|
+
defaultValue<T = unknown>(arg: T): {
|
|
118
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
119
|
+
};
|
|
120
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
121
|
+
};
|
|
36
122
|
/** remove filter callback */
|
|
37
|
-
onRemoveFilter:
|
|
38
|
-
|
|
123
|
+
onRemoveFilter: {
|
|
124
|
+
defaultValue<T = unknown>(arg: T): {
|
|
125
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
126
|
+
};
|
|
127
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
128
|
+
};
|
|
129
|
+
displayFixedOutput: {
|
|
130
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
131
|
+
};
|
|
39
132
|
/** show output */
|
|
40
|
-
displayOutput:
|
|
133
|
+
displayOutput: {
|
|
134
|
+
defaultValue<T = unknown>(arg: T): {
|
|
135
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
136
|
+
};
|
|
137
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
138
|
+
};
|
|
41
139
|
/** show output label */
|
|
42
|
-
displayOutputLabel:
|
|
140
|
+
displayOutputLabel: {
|
|
141
|
+
defaultValue<T = unknown>(arg: T): {
|
|
142
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
143
|
+
};
|
|
144
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
145
|
+
};
|
|
43
146
|
/** one or multiple rows for query */
|
|
44
|
-
singleRow:
|
|
45
|
-
|
|
147
|
+
singleRow: {
|
|
148
|
+
defaultValue<T = unknown>(arg: T): {
|
|
149
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
150
|
+
};
|
|
151
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
152
|
+
};
|
|
153
|
+
toolTipZIndex: {
|
|
154
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
155
|
+
};
|
|
46
156
|
};
|