@elliemae/ds-query-builder 2.0.0-next.9 → 2.0.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/DSQueryBuilder.js +60 -56
- package/cjs/components/AndOrController/AndOrController.js +16 -22
- package/cjs/components/ConditionController/ConditionController.js +26 -32
- package/cjs/components/DisplayOutput/DisplayOutput.js +18 -17
- package/cjs/components/DragContainerController/DragContainerController.js +13 -15
- package/cjs/components/DragControllerRow/DragControllerRow.js +10 -6
- package/cjs/components/FieldControllerRow/FieldControllerRow.js +22 -22
- package/cjs/components/Nestable/Nestable.js +24 -10
- package/cjs/components/Nestable/NestableItem.js +18 -10
- package/cjs/components/Nestable/actions/events.js +5 -0
- package/cjs/components/Nestable/actions/getPaths.js +9 -1
- package/cjs/components/Nestable/actions/moveItem.js +12 -5
- package/cjs/components/Nestable/actions/paths.js +13 -3
- package/cjs/components/QueryBuilderImpl.js +5 -0
- package/cjs/components/QueryBuilderItem/QueryBuilderItem.js +28 -20
- package/cjs/components/QueryBuilderRow/QueryBuilderRow.js +33 -24
- package/cjs/components/ToolBarAnimation/ToolBarAnimation.js +5 -0
- package/cjs/components/format/sqlFormat.js +9 -7
- package/cjs/components/format/sqlSafeFormat.js +9 -7
- package/cjs/components/format/xmlFormat.js +9 -7
- package/cjs/components/helpers/actions.js +59 -34
- package/cjs/components/helpers/dependencies.js +17 -8
- package/cjs/components/helpers/store.js +5 -0
- package/cjs/index.js +2 -1
- package/esm/DSQueryBuilder.js +60 -57
- package/esm/components/AndOrController/AndOrController.js +6 -8
- package/esm/components/ConditionController/ConditionController.js +20 -22
- package/esm/components/DisplayOutput/DisplayOutput.js +14 -11
- package/esm/components/DragContainerController/DragContainerController.js +10 -10
- package/esm/components/DragControllerRow/DragControllerRow.js +7 -2
- package/esm/components/FieldControllerRow/FieldControllerRow.js +22 -20
- package/esm/components/Nestable/Nestable.js +23 -9
- package/esm/components/Nestable/NestableItem.js +18 -10
- package/esm/components/Nestable/actions/events.js +5 -0
- package/esm/components/Nestable/actions/getPaths.js +9 -1
- package/esm/components/Nestable/actions/moveItem.js +12 -5
- package/esm/components/Nestable/actions/paths.js +13 -3
- package/esm/components/QueryBuilderImpl.js +5 -0
- package/esm/components/QueryBuilderItem/QueryBuilderItem.js +28 -20
- package/esm/components/QueryBuilderRow/QueryBuilderRow.js +33 -23
- package/esm/components/ToolBarAnimation/ToolBarAnimation.js +5 -0
- package/esm/components/format/sqlFormat.js +9 -7
- package/esm/components/format/sqlSafeFormat.js +9 -7
- package/esm/components/format/xmlFormat.js +9 -7
- package/esm/components/helpers/actions.js +59 -34
- package/esm/components/helpers/dependencies.js +17 -8
- package/esm/components/helpers/store.js +5 -0
- package/esm/index.js +1 -1
- package/package.json +9 -7
- package/types/DSQueryBuilder.d.ts +1 -1
- package/types/components/AndOrController/AndOrController.d.ts +4 -4
- package/types/components/ConditionController/ConditionController.d.ts +2 -2
- package/types/components/DragContainerController/DragContainerController.d.ts +3 -3
- package/types/components/DragControllerRow/DragControllerRow.d.ts +2 -2
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
1
6
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
7
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
3
8
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
9
|
+
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
10
|
+
import 'core-js/modules/esnext.iterator.map.js';
|
|
4
11
|
import React, { Component } from 'react';
|
|
5
|
-
import AlertsDetail from '@elliemae/ds-icons
|
|
6
|
-
import {
|
|
12
|
+
import { AlertsDetail } from '@elliemae/ds-icons';
|
|
13
|
+
import { DSTooltipV3 } from '@elliemae/ds-tooltip';
|
|
7
14
|
import { convertPropToCssClassName } from '@elliemae/ds-classnames';
|
|
8
15
|
import { resolveDependencies } from '../helpers/dependencies.js';
|
|
9
16
|
import ConditionController from '../ConditionController/ConditionController.js';
|
|
@@ -14,16 +21,17 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
14
21
|
|
|
15
22
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
16
23
|
|
|
17
|
-
const RenderField =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
const RenderField = _ref => {
|
|
25
|
+
let {
|
|
26
|
+
target,
|
|
27
|
+
component,
|
|
28
|
+
valueProp,
|
|
29
|
+
additionalInfo,
|
|
30
|
+
handleMouseEnterInput,
|
|
31
|
+
handleMouseLeaveInput,
|
|
32
|
+
onChangeHandler,
|
|
33
|
+
hasError
|
|
34
|
+
} = _ref;
|
|
27
35
|
const ref = React.useRef();
|
|
28
36
|
const id = React.useMemo(() => "el_".concat(String.fromCharCode(65 + Math.floor(Math.random() * 26))), []);
|
|
29
37
|
return /*#__PURE__*/_jsx("div", {
|
|
@@ -51,20 +59,22 @@ const RenderField = ({
|
|
|
51
59
|
'aria-invalid': Boolean(hasError)
|
|
52
60
|
})
|
|
53
61
|
}), hasError && hasError.errorMessage ? /*#__PURE__*/_jsx("div", {
|
|
62
|
+
style: {
|
|
63
|
+
width: '40px'
|
|
64
|
+
}
|
|
65
|
+
}, void 0, /*#__PURE__*/_jsx(DSTooltipV3, {
|
|
66
|
+
text: hasError.errorMessage
|
|
67
|
+
}, void 0, /*#__PURE__*/_jsx("div", {
|
|
54
68
|
tabIndex: 0,
|
|
55
69
|
className: "row-icon-alert",
|
|
56
70
|
"data-testid": "qb-error-state-icon",
|
|
57
|
-
role: "alert"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
color: ['danger', 900],
|
|
65
|
-
title: hasError.message
|
|
66
|
-
})
|
|
67
|
-
})) : null); // return React.useMemo(
|
|
71
|
+
role: "alert"
|
|
72
|
+
}, void 0, /*#__PURE__*/_jsx(AlertsDetail, {
|
|
73
|
+
width: 20,
|
|
74
|
+
height: 20,
|
|
75
|
+
color: ['danger', 900],
|
|
76
|
+
title: hasError.errorMessage
|
|
77
|
+
})))) : null); // return React.useMemo(
|
|
68
78
|
// () => (
|
|
69
79
|
// <div
|
|
70
80
|
// className={`em-ds-query-builder-row-input child-type-${target}`}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
1
6
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
7
|
import { createElement } from 'react';
|
|
3
8
|
import GrowRight from '@elliemae/ds-shared/Animations/GrowRight';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.map.js';
|
|
1
3
|
import { QB_OPERATOR_TYPES } from '../helpers/types.js';
|
|
2
4
|
|
|
3
|
-
/* eslint-disable complexity */
|
|
4
|
-
|
|
5
5
|
const conditionSql = (condition, value) => {
|
|
6
6
|
const {
|
|
7
7
|
EQUAL,
|
|
@@ -37,11 +37,13 @@ const renderFilterSQl = filter => {
|
|
|
37
37
|
return "".concat(field, " ").concat(conditionSql(operator, value) || '');
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
const sqlFormat =
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
const sqlFormat = _ref => {
|
|
41
|
+
let {
|
|
42
|
+
main,
|
|
43
|
+
mapGroups,
|
|
44
|
+
items
|
|
45
|
+
} = _ref;
|
|
46
|
+
|
|
45
47
|
const groupSql = (item, idGroup) => {
|
|
46
48
|
if (idGroup === main) {
|
|
47
49
|
const groupCondition = mapGroups[idGroup].condition === true ? 'AND' : 'OR';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.map.js';
|
|
1
3
|
import { QB_OPERATOR_TYPES } from '../helpers/types.js';
|
|
2
4
|
|
|
3
|
-
/* eslint-disable complexity */
|
|
4
|
-
|
|
5
5
|
const specialChar = /[ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/;
|
|
6
6
|
|
|
7
7
|
const conditionSql = (condition, value) => {
|
|
@@ -44,11 +44,13 @@ const renderFilterSQl = filter => {
|
|
|
44
44
|
return "".concat(fieldDisplay, " ").concat(conditionSql(operator, value) || '');
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
const sqlSafeFormat =
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
const sqlSafeFormat = _ref => {
|
|
48
|
+
let {
|
|
49
|
+
main,
|
|
50
|
+
mapGroups,
|
|
51
|
+
items
|
|
52
|
+
} = _ref;
|
|
53
|
+
|
|
52
54
|
const groupSql = (item, idGroup) => {
|
|
53
55
|
if (idGroup === main) {
|
|
54
56
|
const groupCondition = mapGroups[idGroup].condition === true ? 'AND' : 'OR';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.map.js';
|
|
1
3
|
import { QB_OPERATOR_TYPES } from '../helpers/types.js';
|
|
2
4
|
|
|
3
|
-
/* eslint-disable complexity */
|
|
4
|
-
|
|
5
5
|
const conditionSql = (condition, value) => {
|
|
6
6
|
const {
|
|
7
7
|
EQUAL,
|
|
@@ -37,11 +37,13 @@ const renderFilterSQl = filter => {
|
|
|
37
37
|
return "<filter><field>".concat(field, "</field>").concat(conditionSql(operator, value) || '', "</filter>");
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
const xmlFormat =
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
const xmlFormat = _ref => {
|
|
41
|
+
let {
|
|
42
|
+
main,
|
|
43
|
+
mapGroups,
|
|
44
|
+
items
|
|
45
|
+
} = _ref;
|
|
46
|
+
|
|
45
47
|
const groupXML = (item, idGroup) => {
|
|
46
48
|
if (idGroup === main) {
|
|
47
49
|
const groupCondition = mapGroups[idGroup].condition === true ? 'AND' : 'OR';
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
|
+
import 'core-js/modules/esnext.async-iterator.find.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
4
|
+
import 'core-js/modules/esnext.iterator.find.js';
|
|
5
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
6
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
7
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
8
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
9
|
+
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
10
|
+
import 'core-js/modules/esnext.iterator.map.js';
|
|
2
11
|
import { QB_DRAG_TYPES, QB_GROUP_CONDITION_TYPES, QB_FIELD_SHARED_ACTIONS } from './types.js';
|
|
3
12
|
|
|
4
13
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -76,9 +85,12 @@ const addFilterToMainItem = function (items, newFilter) {
|
|
|
76
85
|
});
|
|
77
86
|
};
|
|
78
87
|
const findInChilds = function (childs, filterId) {
|
|
79
|
-
const found = childs.find(
|
|
80
|
-
|
|
81
|
-
|
|
88
|
+
const found = childs.find(_ref => {
|
|
89
|
+
let {
|
|
90
|
+
id
|
|
91
|
+
} = _ref;
|
|
92
|
+
return id === filterId;
|
|
93
|
+
});
|
|
82
94
|
|
|
83
95
|
if (!found) {
|
|
84
96
|
let findInChild;
|
|
@@ -94,9 +106,12 @@ const findItemFilterById = function (filterId) {
|
|
|
94
106
|
return findInChilds(this.items, filterId);
|
|
95
107
|
};
|
|
96
108
|
const findParentWithFilterId = function (childs, filterId) {
|
|
97
|
-
const found = childs.find(
|
|
98
|
-
|
|
99
|
-
|
|
109
|
+
const found = childs.find(_ref2 => {
|
|
110
|
+
let {
|
|
111
|
+
id
|
|
112
|
+
} = _ref2;
|
|
113
|
+
return id === filterId;
|
|
114
|
+
});
|
|
100
115
|
|
|
101
116
|
if (!found) {
|
|
102
117
|
let findInChild;
|
|
@@ -113,17 +128,23 @@ const findParentFilterById = function (filterId) {
|
|
|
113
128
|
};
|
|
114
129
|
const filterInChildren = function (childs, filterId, mainId) {
|
|
115
130
|
if (childs.children) {
|
|
116
|
-
childs.children = childs.children.filter(
|
|
117
|
-
|
|
118
|
-
|
|
131
|
+
childs.children = childs.children.filter(_ref3 => {
|
|
132
|
+
let {
|
|
133
|
+
id
|
|
134
|
+
} = _ref3;
|
|
135
|
+
return id !== filterId;
|
|
136
|
+
});
|
|
119
137
|
childs.children = childs.children.forEach(item => filterInChildren(item.children, filterId));
|
|
120
138
|
return childs;
|
|
121
139
|
} // main
|
|
122
140
|
|
|
123
141
|
|
|
124
|
-
if (childs.length > 1) childs = childs.filter(
|
|
125
|
-
|
|
126
|
-
|
|
142
|
+
if (childs.length > 1) childs = childs.filter(_ref4 => {
|
|
143
|
+
let {
|
|
144
|
+
id
|
|
145
|
+
} = _ref4;
|
|
146
|
+
return id !== filterId;
|
|
147
|
+
}); // https://jira.elliemae.io/browse/PUI-1252
|
|
127
148
|
|
|
128
149
|
if (childs.length === 0 && mainId) {
|
|
129
150
|
const emptyFilter = createNewFilter.call(this, mainId);
|
|
@@ -186,19 +207,20 @@ const changeGroupOperator = function (idGroup, value) {
|
|
|
186
207
|
group.element.condition = value;
|
|
187
208
|
}
|
|
188
209
|
};
|
|
189
|
-
const changeFilterItem = function ({
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}
|
|
210
|
+
const changeFilterItem = function (_ref5) {
|
|
211
|
+
let {
|
|
212
|
+
idFilter,
|
|
213
|
+
field,
|
|
214
|
+
value,
|
|
215
|
+
operator,
|
|
216
|
+
additionalInfo,
|
|
217
|
+
target,
|
|
218
|
+
fieldsSharedActions: {
|
|
219
|
+
onFieldChange,
|
|
220
|
+
onOperatorChange,
|
|
221
|
+
onValueChange
|
|
222
|
+
}
|
|
223
|
+
} = _ref5;
|
|
202
224
|
const child = findItemFilterById.call(this, idFilter);
|
|
203
225
|
if (field || field === '' || typeof field === 'boolean') child.element.field = field;
|
|
204
226
|
if (operator) child.element.operator = operator;
|
|
@@ -206,21 +228,24 @@ const changeFilterItem = function ({
|
|
|
206
228
|
if (additionalInfo) child.element.additionalInfo = additionalInfo; // shared fields actions
|
|
207
229
|
|
|
208
230
|
if (target === 'field') {
|
|
209
|
-
onFieldChange.forEach(
|
|
210
|
-
|
|
211
|
-
|
|
231
|
+
onFieldChange.forEach(_ref6 => {
|
|
232
|
+
let {
|
|
233
|
+
action
|
|
234
|
+
} = _ref6;
|
|
212
235
|
if (action === QB_FIELD_SHARED_ACTIONS.RESET_FIELD) child.element.field = null;else if (action === QB_FIELD_SHARED_ACTIONS.RESET_OPERATOR) child.element.operator = null;else if (action === QB_FIELD_SHARED_ACTIONS.RESET_VALUE) child.element.value = null;
|
|
213
236
|
});
|
|
214
237
|
} else if (target === 'operator') {
|
|
215
|
-
onOperatorChange.forEach(
|
|
216
|
-
|
|
217
|
-
|
|
238
|
+
onOperatorChange.forEach(_ref7 => {
|
|
239
|
+
let {
|
|
240
|
+
action
|
|
241
|
+
} = _ref7;
|
|
218
242
|
if (action === QB_FIELD_SHARED_ACTIONS.RESET_FIELD) child.element.field = null;else if (action === QB_FIELD_SHARED_ACTIONS.RESET_OPERATOR) child.element.operator = null;else if (action === QB_FIELD_SHARED_ACTIONS.RESET_VALUE) child.element.value = null;
|
|
219
243
|
});
|
|
220
244
|
} else if (target === 'value') {
|
|
221
|
-
onValueChange.forEach(
|
|
222
|
-
|
|
223
|
-
|
|
245
|
+
onValueChange.forEach(_ref8 => {
|
|
246
|
+
let {
|
|
247
|
+
action
|
|
248
|
+
} = _ref8;
|
|
224
249
|
if (action === QB_FIELD_SHARED_ACTIONS.RESET_FIELD) child.element.field = null;else if (action === QB_FIELD_SHARED_ACTIONS.RESET_OPERATOR) child.element.operator = null;else if (action === QB_FIELD_SHARED_ACTIONS.RESET_VALUE) child.element.value = null;
|
|
225
250
|
});
|
|
226
251
|
}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.every.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.every.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.some.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.some.js';
|
|
6
|
+
import 'core-js/modules/esnext.async-iterator.reduce.js';
|
|
7
|
+
import 'core-js/modules/esnext.iterator.reduce.js';
|
|
1
8
|
import { get } from 'lodash';
|
|
2
9
|
import * as operators from '@elliemae/ds-utilities/operators';
|
|
3
10
|
import { QB_GROUP_CONDITION_TYPES } from './types.js';
|
|
4
11
|
|
|
5
|
-
const resolveCondition = (condition, state
|
|
12
|
+
const resolveCondition = function (condition, state) {
|
|
13
|
+
let resolveBy = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : QB_GROUP_CONDITION_TYPES.AND;
|
|
6
14
|
if (condition.length === 0 || !condition) return true; // resolve by AND: all the conditions must be true
|
|
7
15
|
|
|
8
16
|
if (resolveBy) {
|
|
@@ -29,13 +37,14 @@ const resolveCondition = (condition, state, resolveBy = QB_GROUP_CONDITION_TYPES
|
|
|
29
37
|
};
|
|
30
38
|
|
|
31
39
|
const resolveDependencies = (state, fields) => {
|
|
32
|
-
const fieldsToRender = fields.reduce((result, {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
const fieldsToRender = fields.reduce((result, _ref) => {
|
|
41
|
+
let {
|
|
42
|
+
target,
|
|
43
|
+
component,
|
|
44
|
+
condition,
|
|
45
|
+
resolveBy,
|
|
46
|
+
validation
|
|
47
|
+
} = _ref;
|
|
39
48
|
if (resolveCondition(condition, state, resolveBy)) result.push({
|
|
40
49
|
target,
|
|
41
50
|
component,
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
1
3
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
6
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
2
7
|
import { createNewFilter, createNewGroup, addFilterToMap, addFilterToMainItem, findItemFilterById, addFilterToItem, removeFilterItem, addGroupFilterToItem, addGroupToMap, unGroupFilterToItem, changeGroupOperator, changeFilterItem } from './actions.js';
|
|
3
8
|
import QueryBuilderFormat from '../format/format.js';
|
|
4
9
|
|
package/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DSQueryBuilderWithSchema, default } from './DSQueryBuilder.js';
|
|
1
|
+
export { DSQueryBuilder, DSQueryBuilderWithSchema, DSQueryBuilder as default } from './DSQueryBuilder.js';
|
|
2
2
|
export { QB_ADD_FILTER_METHOD_TYPES, QB_DRAG_LOCATIONS, QB_DRAG_TYPES, QB_EXPORT_FORMAT_TYPES, QB_FIELD_SHARED_ACTIONS, QB_FIELD_TYPES, QB_GROUP_CONDITION_TYPES, QB_GROUP_FILTER_METHOD_TYPES, QB_OPERATOR_TYPES } from './components/helpers/types.js';
|
|
3
3
|
export { QB_DEFAULT_VALUES_OPTIONS, QB_FIELD_OPTIONS, QB_LOAN_VALUES_OPTIONS, QB_OPERATOR_OPTIONS, QB_SUBJECT_VALUES_OPTIONS } from './components/helpers/selectors.js';
|
|
4
4
|
export { default as QueryBuilderFormat } from './components/format/format.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-query-builder",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-rc.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Query Builder",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -168,14 +168,16 @@
|
|
|
168
168
|
"build": "node ../../scripts/build/build.js"
|
|
169
169
|
},
|
|
170
170
|
"dependencies": {
|
|
171
|
-
"@elliemae/ds-basic": "2.0.0-
|
|
172
|
-
"@elliemae/ds-classnames": "2.0.0-
|
|
173
|
-
"@elliemae/ds-
|
|
174
|
-
"@elliemae/ds-
|
|
175
|
-
"@elliemae/ds-
|
|
171
|
+
"@elliemae/ds-basic": "2.0.0-rc.4",
|
|
172
|
+
"@elliemae/ds-classnames": "2.0.0-rc.4",
|
|
173
|
+
"@elliemae/ds-grid": "2.0.0-rc.4",
|
|
174
|
+
"@elliemae/ds-icons": "2.0.0-rc.4",
|
|
175
|
+
"@elliemae/ds-shared": "2.0.0-rc.4",
|
|
176
|
+
"@elliemae/ds-utilities": "2.0.0-rc.4",
|
|
176
177
|
"classnames": "~2.2.6",
|
|
177
178
|
"prop-types": "~15.7.2",
|
|
178
|
-
"react-addons-update": "~15.6.3"
|
|
179
|
+
"react-addons-update": "~15.6.3",
|
|
180
|
+
"react-desc": "~4.1.3"
|
|
179
181
|
},
|
|
180
182
|
"peerDependencies": {
|
|
181
183
|
"lodash": "^4.17.21",
|
|
@@ -62,5 +62,5 @@ declare const DSQueryBuilder: {
|
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
64
|
declare const DSQueryBuilderWithSchema: any;
|
|
65
|
-
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, };
|
|
65
|
+
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
66
|
export default DSQueryBuilder;
|
|
@@ -16,17 +16,17 @@ declare class AndOrController extends Component {
|
|
|
16
16
|
condition: boolean;
|
|
17
17
|
showDragController: boolean;
|
|
18
18
|
allowUnGroup: boolean;
|
|
19
|
-
buttonActionSize:
|
|
19
|
+
buttonActionSize: string;
|
|
20
20
|
buttonActionType: string;
|
|
21
|
-
toogleActionSize:
|
|
21
|
+
toogleActionSize: string;
|
|
22
22
|
onAddFilter: () => null;
|
|
23
23
|
multipleSize: boolean;
|
|
24
24
|
delayClose: number;
|
|
25
25
|
delayOpen: number;
|
|
26
26
|
step: null;
|
|
27
27
|
toolBarAnimationDuration: number;
|
|
28
|
-
toolBarInteractionType:
|
|
29
|
-
toolBarPosition:
|
|
28
|
+
toolBarInteractionType: string;
|
|
29
|
+
toolBarPosition: string;
|
|
30
30
|
};
|
|
31
31
|
constructor(props: any);
|
|
32
32
|
handleMouseEnterRow: (e: any) => void;
|
|
@@ -4,9 +4,9 @@ declare const ConditionController: ({ onAddFilter, onAddRuleContainer, onRemoveF
|
|
|
4
4
|
onAddRuleContainer?: (() => null) | undefined;
|
|
5
5
|
onRemoveFilter?: (() => null) | undefined;
|
|
6
6
|
handleTooltipRow?: (() => null) | undefined;
|
|
7
|
-
buttonTriggerSize?:
|
|
7
|
+
buttonTriggerSize?: string | undefined;
|
|
8
8
|
buttonTriggerType?: string | undefined;
|
|
9
|
-
buttonActionSize?:
|
|
9
|
+
buttonActionSize?: string | undefined;
|
|
10
10
|
buttonActionType?: string | undefined;
|
|
11
11
|
delayClose?: number | undefined;
|
|
12
12
|
delayOpen?: number | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const DragContainerController: ({ color, icon: Icon, size, multipleSize, onClick, }: {
|
|
3
|
-
color?:
|
|
4
|
-
icon?: any;
|
|
5
|
-
size?:
|
|
3
|
+
color?: string[] | undefined;
|
|
4
|
+
icon?: ((rest: any) => JSX.Element) | undefined;
|
|
5
|
+
size?: string | undefined;
|
|
6
6
|
multipleSize?: boolean | undefined;
|
|
7
7
|
onClick: any;
|
|
8
8
|
}) => JSX.Element;
|
|
@@ -3,7 +3,7 @@ declare const DragControllerRow: ({ className, color, icon: Icon, size, ...rest
|
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
className?: string | undefined;
|
|
5
5
|
color?: string[] | undefined;
|
|
6
|
-
icon?: any;
|
|
7
|
-
size?:
|
|
6
|
+
icon?: ((rest: any) => JSX.Element) | undefined;
|
|
7
|
+
size?: string | undefined;
|
|
8
8
|
}) => JSX.Element;
|
|
9
9
|
export default DragControllerRow;
|