@elliemae/ds-query-builder 2.0.0-alpha.1 → 2.0.0-alpha.13

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.
Files changed (62) hide show
  1. package/cjs/DSQueryBuilder.js +61 -55
  2. package/cjs/components/AndOrController/AndOrController.js +44 -52
  3. package/cjs/components/ConditionController/ConditionController.js +35 -41
  4. package/cjs/components/DisplayOutput/DisplayOutput.js +38 -24
  5. package/cjs/components/DragContainerController/DragContainerController.js +16 -18
  6. package/cjs/components/DragControllerRow/DragControllerRow.js +12 -8
  7. package/cjs/components/FieldControllerRow/FieldControllerRow.js +22 -22
  8. package/cjs/components/Nestable/Nestable.js +54 -40
  9. package/cjs/components/Nestable/NestableItem.js +24 -16
  10. package/cjs/components/Nestable/actions/events.js +7 -2
  11. package/cjs/components/Nestable/actions/getPaths.js +11 -1
  12. package/cjs/components/Nestable/actions/moveItem.js +15 -8
  13. package/cjs/components/Nestable/actions/paths.js +15 -3
  14. package/cjs/components/QueryBuilderContext/QueryBuilderContext.js +1 -1
  15. package/cjs/components/QueryBuilderImpl.js +44 -38
  16. package/cjs/components/QueryBuilderItem/QueryBuilderItem.js +30 -22
  17. package/cjs/components/QueryBuilderRow/QueryBuilderRow.js +64 -49
  18. package/cjs/components/ToolBarAnimation/ToolBarAnimation.js +7 -2
  19. package/cjs/components/format/format.js +8 -14
  20. package/cjs/components/format/sqlFormat.js +25 -23
  21. package/cjs/components/format/sqlSafeFormat.js +27 -25
  22. package/cjs/components/format/xmlFormat.js +25 -23
  23. package/cjs/components/helpers/actions.js +62 -37
  24. package/cjs/components/helpers/dependencies.js +19 -12
  25. package/cjs/components/helpers/store.js +39 -40
  26. package/cjs/index.js +2 -1
  27. package/cjs/propTypes.js +1 -0
  28. package/esm/DSQueryBuilder.js +60 -55
  29. package/esm/components/AndOrController/AndOrController.js +21 -24
  30. package/esm/components/ConditionController/ConditionController.js +21 -23
  31. package/esm/components/DisplayOutput/DisplayOutput.js +32 -15
  32. package/esm/components/DragContainerController/DragContainerController.js +11 -11
  33. package/esm/components/DragControllerRow/DragControllerRow.js +7 -2
  34. package/esm/components/FieldControllerRow/FieldControllerRow.js +22 -20
  35. package/esm/components/Nestable/Nestable.js +46 -32
  36. package/esm/components/Nestable/NestableItem.js +21 -13
  37. package/esm/components/Nestable/actions/events.js +6 -1
  38. package/esm/components/Nestable/actions/getPaths.js +11 -1
  39. package/esm/components/Nestable/actions/moveItem.js +12 -5
  40. package/esm/components/Nestable/actions/paths.js +15 -3
  41. package/esm/components/QueryBuilderImpl.js +38 -32
  42. package/esm/components/QueryBuilderItem/QueryBuilderItem.js +28 -20
  43. package/esm/components/QueryBuilderRow/QueryBuilderRow.js +54 -38
  44. package/esm/components/ToolBarAnimation/ToolBarAnimation.js +5 -0
  45. package/esm/components/format/format.js +8 -10
  46. package/esm/components/format/sqlFormat.js +25 -23
  47. package/esm/components/format/sqlSafeFormat.js +27 -25
  48. package/esm/components/format/xmlFormat.js +25 -23
  49. package/esm/components/helpers/actions.js +61 -36
  50. package/esm/components/helpers/dependencies.js +17 -8
  51. package/esm/components/helpers/store.js +38 -39
  52. package/esm/index.js +1 -1
  53. package/esm/propTypes.js +1 -0
  54. package/package.json +14 -7
  55. package/types/DSQueryBuilder.d.ts +172 -25
  56. package/types/components/AndOrController/AndOrController.d.ts +4 -4
  57. package/types/components/ConditionController/ConditionController.d.ts +2 -2
  58. package/types/components/DragContainerController/DragContainerController.d.ts +3 -3
  59. package/types/components/DragControllerRow/DragControllerRow.d.ts +2 -2
  60. package/types/propTypes.d.ts +133 -22
  61. package/cjs/package.json +0 -7
  62. package/esm/package.json +0 -7
@@ -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, resolveBy = QB_GROUP_CONDITION_TYPES.AND) => {
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
- target,
34
- component,
35
- condition,
36
- resolveBy,
37
- validation
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
 
@@ -19,36 +24,30 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
19
24
 
20
25
  class QueryBuilderStore {
21
26
  constructor(init, _format) {
22
- _defineProperty(this, "items", []);
27
+ this.items = [];
28
+ this.step = 0;
29
+ this.steps = {};
30
+ this.mapFilters = {};
31
+ this.mapGroups = {};
32
+ this.main = null;
33
+ this.format = null;
23
34
 
24
- _defineProperty(this, "step", 0);
35
+ this.createNewFilter = idGroup => createNewFilter.call(this, idGroup);
25
36
 
26
- _defineProperty(this, "steps", {});
37
+ this.createNewGroup = parentIdGroup => createNewGroup.call(this, parentIdGroup);
27
38
 
28
- _defineProperty(this, "mapFilters", {});
29
-
30
- _defineProperty(this, "mapGroups", {});
31
-
32
- _defineProperty(this, "main", null);
33
-
34
- _defineProperty(this, "format", null);
35
-
36
- _defineProperty(this, "createNewFilter", idGroup => createNewFilter.call(this, idGroup));
37
-
38
- _defineProperty(this, "createNewGroup", parentIdGroup => createNewGroup.call(this, parentIdGroup));
39
-
40
- _defineProperty(this, "onOrderDragAndDrop", items => {
39
+ this.onOrderDragAndDrop = items => {
41
40
  this.items = items;
42
41
  return this.getState();
43
- });
42
+ };
44
43
 
45
- _defineProperty(this, "addFilterNextToFilterId", (idGroup, idFilter) => {
44
+ this.addFilterNextToFilterId = (idGroup, idFilter) => {
46
45
  // eslint-disable-line
47
46
  this.addFilter(idGroup);
48
47
  return this.getState();
49
- });
48
+ };
50
49
 
51
- _defineProperty(this, "addFilter", idGroup => {
50
+ this.addFilter = idGroup => {
52
51
  const newFilter = this.createNewFilter(idGroup);
53
52
  addFilterToMap.call(this, newFilter); // new API
54
53
 
@@ -63,22 +62,22 @@ class QueryBuilderStore {
63
62
  }
64
63
 
65
64
  return this.getState();
66
- });
65
+ };
67
66
 
68
- _defineProperty(this, "onRemoveFilter", idFilter => {
67
+ this.onRemoveFilter = idFilter => {
69
68
  // new API
70
69
  removeFilterItem.call(this, idFilter);
71
70
  return this.getState();
72
- });
71
+ };
73
72
 
74
- _defineProperty(this, "addRuleContainerInPlace", (idGroup, idFilter) => {
73
+ this.addRuleContainerInPlace = (idGroup, idFilter) => {
75
74
  // Create a new group
76
75
  const newGroup = this.createNewGroup(idGroup);
77
76
  addGroupFilterToItem.call(this, idGroup, idFilter, newGroup);
78
77
  return this.getState();
79
- });
78
+ };
80
79
 
81
- _defineProperty(this, "addRuleContainer", (idGroup, idFilter) => {
80
+ this.addRuleContainer = (idGroup, idFilter) => {
82
81
  // eslint-disable-line
83
82
  const newGroup = this.createNewGroup(idGroup);
84
83
  addGroupToMap.call(this, newGroup);
@@ -94,33 +93,33 @@ class QueryBuilderStore {
94
93
  }
95
94
 
96
95
  return this.getState();
97
- });
96
+ };
98
97
 
99
- _defineProperty(this, "unGroup", idGroup => {
98
+ this.unGroup = idGroup => {
100
99
  unGroupFilterToItem.call(this, idGroup);
101
100
  return this.getState();
102
- });
101
+ };
103
102
 
104
- _defineProperty(this, "changeGroupOperator", (idGroup, value) => {
103
+ this.changeGroupOperator = (idGroup, value) => {
105
104
  this.getGroupById(idGroup).condition = value;
106
105
  changeGroupOperator.call(this, idGroup, value);
107
106
  return this.getState();
108
- });
107
+ };
109
108
 
110
- _defineProperty(this, "changeFilter", data => {
109
+ this.changeFilter = data => {
111
110
  const {
112
111
  idFilter
113
112
  } = data;
114
113
  this.mapFilters[idFilter] = _objectSpread(_objectSpread({}, this.mapFilters[idFilter]), data);
115
114
  changeFilterItem.call(this, data);
116
115
  return this.getState();
117
- });
116
+ };
118
117
 
119
- _defineProperty(this, "getGroupById", idGroup => this.mapGroups[idGroup] || {});
118
+ this.getGroupById = idGroup => this.mapGroups[idGroup] || {};
120
119
 
121
- _defineProperty(this, "getFilterById", idFilter => this.mapFilters[idFilter]);
120
+ this.getFilterById = idFilter => this.mapFilters[idFilter];
122
121
 
123
- _defineProperty(this, "getInitialState", () => {
122
+ this.getInitialState = () => {
124
123
  const newFilters = {
125
124
  step: this.step,
126
125
  mapFilters: _objectSpread({}, this.mapFilters),
@@ -132,9 +131,9 @@ class QueryBuilderStore {
132
131
  return _objectSpread(_objectSpread({}, newFilters), {}, {
133
132
  format
134
133
  });
135
- });
134
+ };
136
135
 
137
- _defineProperty(this, "getState", () => {
136
+ this.getState = () => {
138
137
  this.step += 1;
139
138
  const newFilters = {
140
139
  step: this.step,
@@ -147,7 +146,7 @@ class QueryBuilderStore {
147
146
  return _objectSpread(_objectSpread({}, newFilters), {}, {
148
147
  format
149
148
  });
150
- });
149
+ };
151
150
 
152
151
  this.firstLoad = true;
153
152
  this.format = _format;
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/esm/propTypes.js CHANGED
@@ -73,6 +73,7 @@ const props = {
73
73
 
74
74
  /** remove filter callback */
75
75
  onRemoveFilter: PropTypes.func.description('remove filter callback'),
76
+ displayFixedOutput: PropTypes.string.description("Label for fixed output.Using this props it will ignore 'displayOutput' and 'displayOutputLabel' \n and it will always render the output without the ability to close it. \n ").defaultValue(''),
76
77
 
77
78
  /** show output */
78
79
  displayOutput: PropTypes.bool.description('show output'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-query-builder",
3
- "version": "2.0.0-alpha.1",
3
+ "version": "2.0.0-alpha.13",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Query Builder",
6
6
  "module": "./esm/index.js",
@@ -168,14 +168,21 @@
168
168
  "build": "node ../../scripts/build/build.js"
169
169
  },
170
170
  "dependencies": {
171
- "@elliemae/ds-basic": "2.0.0-alpha.1",
172
- "@elliemae/ds-classnames": "2.0.0-alpha.1",
173
- "@elliemae/ds-icons": "2.0.0-alpha.1",
174
- "@elliemae/ds-shared": "2.0.0-alpha.1",
175
- "@elliemae/ds-utilities": "2.0.0-alpha.1",
171
+ "@elliemae/ds-accordion": "2.0.0-alpha.13",
172
+ "@elliemae/ds-button": "2.0.0-alpha.13",
173
+ "@elliemae/ds-classnames": "2.0.0-alpha.13",
174
+ "@elliemae/ds-form": "2.0.0-alpha.13",
175
+ "@elliemae/ds-grid": "2.0.0-alpha.13",
176
+ "@elliemae/ds-icon": "2.0.0-alpha.13",
177
+ "@elliemae/ds-icons": "2.0.0-alpha.13",
178
+ "@elliemae/ds-popper": "2.0.0-alpha.13",
179
+ "@elliemae/ds-shared": "2.0.0-alpha.13",
180
+ "@elliemae/ds-tooltip": "2.0.0-alpha.13",
181
+ "@elliemae/ds-utilities": "2.0.0-alpha.13",
176
182
  "classnames": "~2.2.6",
177
183
  "prop-types": "~15.7.2",
178
- "react-addons-update": "~15.6.3"
184
+ "react-addons-update": "~15.6.3",
185
+ "react-desc": "~4.1.3"
179
186
  },
180
187
  "peerDependencies": {
181
188
  "lodash": "^4.17.21",
@@ -1,9 +1,10 @@
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';
4
5
  import QueryBuilderFormat from './components/format/format';
5
6
  declare const DSQueryBuilder: {
6
- ({ containerProps, addFilterMethod, groupFilterMethod, onChange, fields, fieldsSharedActions, format, init, ruleContainerClassName, handleDrop, handleDropFilter, handleDropGroup, handleFieldChange, handleRuleContainerOperator, handleRuleContainerUnGroup, onAddFilter, onAddRuleContainer, onRemoveFilter, displayOutput, displayOutputLabel, singleRow, toolTipZIndex, }: {
7
+ ({ containerProps, addFilterMethod, groupFilterMethod, onChange, fields, fieldsSharedActions, format, init, ruleContainerClassName, handleDrop, handleDropFilter, handleDropGroup, handleFieldChange, handleRuleContainerOperator, handleRuleContainerUnGroup, onAddFilter, onAddRuleContainer, onRemoveFilter, displayFixedOutput, displayOutput, displayOutputLabel, singleRow, toolTipZIndex, }: {
7
8
  containerProps?: {} | undefined;
8
9
  addFilterMethod?: string | undefined;
9
10
  groupFilterMethod?: string | undefined;
@@ -26,6 +27,7 @@ declare const DSQueryBuilder: {
26
27
  onAddFilter?: (() => null) | undefined;
27
28
  onAddRuleContainer?: (() => null) | undefined;
28
29
  onRemoveFilter?: (() => null) | undefined;
30
+ displayFixedOutput: any;
29
31
  displayOutput?: boolean | undefined;
30
32
  displayOutputLabel?: {
31
33
  show: string;
@@ -35,30 +37,175 @@ declare const DSQueryBuilder: {
35
37
  toolTipZIndex?: number | undefined;
36
38
  }): JSX.Element;
37
39
  propTypes: {
38
- containerProps: any;
39
- addFilterMethod: any;
40
- groupFilterMethod: any;
41
- onChange: any;
42
- fields: any;
43
- fieldsSharedActions: any;
44
- format: any;
45
- init: any;
46
- ruleContainerClassName: any;
47
- handleDrop: any;
48
- handleDropFilter: any;
49
- handleDropGroup: any;
50
- handleFieldChange: any;
51
- handleRuleContainerOperator: any;
52
- handleRuleContainerUnGroup: any;
53
- onAddFilter: any;
54
- onAddRuleContainer: any;
55
- onRemoveFilter: any;
56
- displayOutput: any;
57
- displayOutputLabel: any;
58
- singleRow: any;
59
- toolTipZIndex: any;
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
+ };
60
172
  };
61
173
  };
62
- declare const DSQueryBuilderWithSchema: any;
63
- 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, };
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
+ };
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, };
64
211
  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: any;
19
+ buttonActionSize: string;
20
20
  buttonActionType: string;
21
- toogleActionSize: any;
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: any;
29
- toolBarPosition: any;
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?: any;
7
+ buttonTriggerSize?: string | undefined;
8
8
  buttonTriggerType?: string | undefined;
9
- buttonActionSize?: any;
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?: any;
4
- icon?: any;
5
- size?: any;
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?: any;
6
+ icon?: ((rest: any) => JSX.Element) | undefined;
7
+ size?: string | undefined;
8
8
  }) => JSX.Element;
9
9
  export default DragControllerRow;