@elliemae/ds-query-builder 2.1.0-rc.0 → 2.1.0-rc.4
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/components/QueryBuilderRow/QueryBuilderRow.js +12 -1
- package/cjs/components/helpers/dependencies.js +4 -2
- package/esm/components/QueryBuilderRow/QueryBuilderRow.js +12 -1
- package/esm/components/helpers/dependencies.js +4 -2
- package/package.json +12 -12
- package/types/components/QueryBuilderRow/QueryBuilderRow.d.ts +1 -1
|
@@ -207,7 +207,18 @@ class QueryBuilderRow extends React.Component {
|
|
|
207
207
|
value,
|
|
208
208
|
additionalInfo
|
|
209
209
|
}, fields);
|
|
210
|
-
const gridTemplateColumns = ['24px', ...test.map(
|
|
210
|
+
const gridTemplateColumns = ['24px', ...test.map(r => {
|
|
211
|
+
if (r.handleWidth) {
|
|
212
|
+
return r.handleWidth(this.props[r.target], {
|
|
213
|
+
field,
|
|
214
|
+
operator,
|
|
215
|
+
value,
|
|
216
|
+
additionalInfo
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
return 'minmax(0, 1fr)';
|
|
221
|
+
}), '30px'].join(' ');
|
|
211
222
|
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
212
223
|
children: /*#__PURE__*/_jsx__default["default"]("div", {
|
|
213
224
|
className: cssClassName,
|
|
@@ -67,12 +67,14 @@ const resolveDependencies = (state, fields) => {
|
|
|
67
67
|
component,
|
|
68
68
|
condition,
|
|
69
69
|
resolveBy,
|
|
70
|
-
validation
|
|
70
|
+
validation,
|
|
71
|
+
handleWidth
|
|
71
72
|
} = _ref;
|
|
72
73
|
if (resolveCondition(condition, state, resolveBy)) result.push({
|
|
73
74
|
target,
|
|
74
75
|
component,
|
|
75
|
-
validation
|
|
76
|
+
validation,
|
|
77
|
+
handleWidth
|
|
76
78
|
});
|
|
77
79
|
return result;
|
|
78
80
|
}, []);
|
|
@@ -199,7 +199,18 @@ class QueryBuilderRow extends Component {
|
|
|
199
199
|
value,
|
|
200
200
|
additionalInfo
|
|
201
201
|
}, fields);
|
|
202
|
-
const gridTemplateColumns = ['24px', ...test.map(
|
|
202
|
+
const gridTemplateColumns = ['24px', ...test.map(r => {
|
|
203
|
+
if (r.handleWidth) {
|
|
204
|
+
return r.handleWidth(this.props[r.target], {
|
|
205
|
+
field,
|
|
206
|
+
operator,
|
|
207
|
+
value,
|
|
208
|
+
additionalInfo
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
return 'minmax(0, 1fr)';
|
|
213
|
+
}), '30px'].join(' ');
|
|
203
214
|
return /*#__PURE__*/jsx(Fragment, {
|
|
204
215
|
children: /*#__PURE__*/_jsx("div", {
|
|
205
216
|
className: cssClassName,
|
|
@@ -43,12 +43,14 @@ const resolveDependencies = (state, fields) => {
|
|
|
43
43
|
component,
|
|
44
44
|
condition,
|
|
45
45
|
resolveBy,
|
|
46
|
-
validation
|
|
46
|
+
validation,
|
|
47
|
+
handleWidth
|
|
47
48
|
} = _ref;
|
|
48
49
|
if (resolveCondition(condition, state, resolveBy)) result.push({
|
|
49
50
|
target,
|
|
50
51
|
component,
|
|
51
|
-
validation
|
|
52
|
+
validation,
|
|
53
|
+
handleWidth
|
|
52
54
|
});
|
|
53
55
|
return result;
|
|
54
56
|
}, []);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-query-builder",
|
|
3
|
-
"version": "2.1.0-rc.
|
|
3
|
+
"version": "2.1.0-rc.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Query Builder",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -168,17 +168,17 @@
|
|
|
168
168
|
"build": "node ../../scripts/build/build.js"
|
|
169
169
|
},
|
|
170
170
|
"dependencies": {
|
|
171
|
-
"@elliemae/ds-accordion": "2.1.0-rc.
|
|
172
|
-
"@elliemae/ds-button": "2.1.0-rc.
|
|
173
|
-
"@elliemae/ds-classnames": "2.1.0-rc.
|
|
174
|
-
"@elliemae/ds-form": "2.1.0-rc.
|
|
175
|
-
"@elliemae/ds-grid": "2.1.0-rc.
|
|
176
|
-
"@elliemae/ds-icon": "2.1.0-rc.
|
|
177
|
-
"@elliemae/ds-icons": "2.1.0-rc.
|
|
178
|
-
"@elliemae/ds-popper": "2.1.0-rc.
|
|
179
|
-
"@elliemae/ds-shared": "2.1.0-rc.
|
|
180
|
-
"@elliemae/ds-tooltip": "2.1.0-rc.
|
|
181
|
-
"@elliemae/ds-utilities": "2.1.0-rc.
|
|
171
|
+
"@elliemae/ds-accordion": "2.1.0-rc.4",
|
|
172
|
+
"@elliemae/ds-button": "2.1.0-rc.4",
|
|
173
|
+
"@elliemae/ds-classnames": "2.1.0-rc.4",
|
|
174
|
+
"@elliemae/ds-form": "2.1.0-rc.4",
|
|
175
|
+
"@elliemae/ds-grid": "2.1.0-rc.4",
|
|
176
|
+
"@elliemae/ds-icon": "2.1.0-rc.4",
|
|
177
|
+
"@elliemae/ds-icons": "2.1.0-rc.4",
|
|
178
|
+
"@elliemae/ds-popper": "2.1.0-rc.4",
|
|
179
|
+
"@elliemae/ds-shared": "2.1.0-rc.4",
|
|
180
|
+
"@elliemae/ds-tooltip": "2.1.0-rc.4",
|
|
181
|
+
"@elliemae/ds-utilities": "2.1.0-rc.4",
|
|
182
182
|
"classnames": "~2.2.6",
|
|
183
183
|
"prop-types": "~15.7.2",
|
|
184
184
|
"react-addons-update": "~15.6.3",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component } from 'react';
|
|
2
|
-
declare class QueryBuilderRow extends Component {
|
|
2
|
+
declare class QueryBuilderRow extends Component<any, any> {
|
|
3
3
|
constructor(props: any);
|
|
4
4
|
onChangeHandler(e: any, target: any, extraData: any, hasError: any): void;
|
|
5
5
|
handleMouseEnterRow: () => void;
|