@elliemae/ds-query-builder 2.0.0-next.0 → 2.0.0-next.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 (58) hide show
  1. package/cjs/DSQueryBuilder.js +60 -56
  2. package/cjs/components/AndOrController/AndOrController.js +21 -27
  3. package/cjs/components/ConditionController/ConditionController.js +27 -33
  4. package/cjs/components/DisplayOutput/DisplayOutput.js +18 -17
  5. package/cjs/components/DragContainerController/DragContainerController.js +14 -16
  6. package/cjs/components/DragControllerRow/DragControllerRow.js +10 -6
  7. package/cjs/components/FieldControllerRow/FieldControllerRow.js +22 -22
  8. package/cjs/components/Nestable/Nestable.js +27 -13
  9. package/cjs/components/Nestable/NestableItem.js +21 -13
  10. package/cjs/components/Nestable/actions/events.js +6 -1
  11. package/cjs/components/Nestable/actions/getPaths.js +11 -1
  12. package/cjs/components/Nestable/actions/moveItem.js +12 -5
  13. package/cjs/components/Nestable/actions/paths.js +15 -3
  14. package/cjs/components/QueryBuilderImpl.js +6 -1
  15. package/cjs/components/QueryBuilderItem/QueryBuilderItem.js +28 -20
  16. package/cjs/components/QueryBuilderRow/QueryBuilderRow.js +40 -30
  17. package/cjs/components/ToolBarAnimation/ToolBarAnimation.js +5 -0
  18. package/cjs/components/format/sqlFormat.js +25 -23
  19. package/cjs/components/format/sqlSafeFormat.js +27 -25
  20. package/cjs/components/format/xmlFormat.js +25 -23
  21. package/cjs/components/helpers/actions.js +61 -36
  22. package/cjs/components/helpers/dependencies.js +17 -8
  23. package/cjs/components/helpers/store.js +5 -0
  24. package/cjs/index.js +2 -1
  25. package/cjs/propTypes.js +1 -3
  26. package/esm/DSQueryBuilder.js +60 -57
  27. package/esm/components/AndOrController/AndOrController.js +11 -13
  28. package/esm/components/ConditionController/ConditionController.js +21 -23
  29. package/esm/components/DisplayOutput/DisplayOutput.js +14 -11
  30. package/esm/components/DragContainerController/DragContainerController.js +11 -11
  31. package/esm/components/DragControllerRow/DragControllerRow.js +7 -2
  32. package/esm/components/FieldControllerRow/FieldControllerRow.js +22 -20
  33. package/esm/components/Nestable/Nestable.js +26 -12
  34. package/esm/components/Nestable/NestableItem.js +21 -13
  35. package/esm/components/Nestable/actions/events.js +6 -1
  36. package/esm/components/Nestable/actions/getPaths.js +11 -1
  37. package/esm/components/Nestable/actions/moveItem.js +12 -5
  38. package/esm/components/Nestable/actions/paths.js +15 -3
  39. package/esm/components/QueryBuilderImpl.js +6 -1
  40. package/esm/components/QueryBuilderItem/QueryBuilderItem.js +28 -20
  41. package/esm/components/QueryBuilderRow/QueryBuilderRow.js +40 -29
  42. package/esm/components/ToolBarAnimation/ToolBarAnimation.js +5 -0
  43. package/esm/components/format/sqlFormat.js +25 -23
  44. package/esm/components/format/sqlSafeFormat.js +27 -25
  45. package/esm/components/format/xmlFormat.js +25 -23
  46. package/esm/components/helpers/actions.js +61 -36
  47. package/esm/components/helpers/dependencies.js +17 -8
  48. package/esm/components/helpers/store.js +5 -0
  49. package/esm/index.js +1 -1
  50. package/esm/propTypes.js +1 -3
  51. package/package.json +9 -7
  52. package/types/DSQueryBuilder.d.ts +1 -1
  53. package/types/components/AndOrController/AndOrController.d.ts +4 -4
  54. package/types/components/ConditionController/ConditionController.d.ts +2 -2
  55. package/types/components/DragContainerController/DragContainerController.d.ts +3 -3
  56. package/types/components/DragControllerRow/DragControllerRow.d.ts +2 -2
  57. package/cjs/package.json +0 -7
  58. package/esm/package.json +0 -7
@@ -1,33 +1,31 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
3
  import { convertPropToCssClassName } from '@elliemae/ds-classnames';
4
- import DSTooltip, { TooltipType } from '@elliemae/ds-basic/Tooltip';
5
- import { PopperInteractions, PopperPositions } from '@elliemae/ds-basic/Popper';
6
- import { DSIconSizes } from '@elliemae/ds-basic/Icon';
7
- import DSButton from '@elliemae/ds-basic/Button';
8
- import MoreOptionsVert from '@elliemae/ds-icons/MoreOptionsVert';
9
- import QueryRemove from '@elliemae/ds-icons/QueryRemove';
10
- import QueryAdd from '@elliemae/ds-icons/QueryAdd';
11
- import ParenthesisAdd from '@elliemae/ds-icons/ParenthesisAdd';
4
+ import DSTooltip, { TooltipType } from '@elliemae/ds-tooltip';
5
+ import { PopperInteractions, PopperPositions } from '@elliemae/ds-popper';
6
+ import { DSIconSizes } from '@elliemae/ds-icon';
7
+ import { QueryRemove, QueryAdd, ParenthesisAdd, MoreOptionsVert } from '@elliemae/ds-icons';
8
+ import DSButton from '@elliemae/ds-button';
12
9
  import { ToolBarAnimation } from '../ToolBarAnimation/ToolBarAnimation.js';
13
10
  import { DELAY_CLOSE, DELAY_OPEN, TOOLBAR_ANIMATION_DURATION } from '../helpers/constants.js';
14
11
 
15
12
  var _ToolBarAnimation, _QueryRemove, _QueryAdd, _ParenthesisAdd;
16
13
 
17
- const ConditionController = ({
18
- onAddFilter = () => null,
19
- onAddRuleContainer = () => null,
20
- onRemoveFilter = () => null,
21
- handleTooltipRow = () => null,
22
- buttonTriggerSize = DSIconSizes.M,
23
- buttonTriggerType = 'text',
24
- buttonActionSize = DSIconSizes.M,
25
- buttonActionType = 'text',
26
- delayClose = DELAY_CLOSE,
27
- delayOpen = DELAY_OPEN,
28
- isOpen = false,
29
- toolTipZIndex
30
- }) => {
14
+ const ConditionController = _ref => {
15
+ let {
16
+ onAddFilter = () => null,
17
+ onAddRuleContainer = () => null,
18
+ onRemoveFilter = () => null,
19
+ handleTooltipRow = () => null,
20
+ buttonTriggerSize = DSIconSizes.M,
21
+ buttonTriggerType = 'text',
22
+ buttonActionSize = DSIconSizes.M,
23
+ buttonActionType = 'text',
24
+ delayClose = DELAY_CLOSE,
25
+ delayOpen = DELAY_OPEN,
26
+ isOpen = false,
27
+ toolTipZIndex
28
+ } = _ref;
31
29
  const {
32
30
  cssClassName,
33
31
  classNameBlock,
@@ -67,7 +65,7 @@ const ConditionController = ({
67
65
  }
68
66
  }), /*#__PURE__*/_jsx(DSButton, {
69
67
  buttonType: buttonActionType,
70
- className: `${classNameElement('add-rule-container')} no-border-right`,
68
+ className: "".concat(classNameElement('add-rule-container'), " no-border-right"),
71
69
  icon: _ParenthesisAdd || (_ParenthesisAdd = /*#__PURE__*/_jsx(ParenthesisAdd, {})),
72
70
  onClick: onAddRuleContainer,
73
71
  size: buttonActionSize,
@@ -3,9 +3,8 @@ import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
3
3
  import { Component } from 'react';
4
4
  import { Grid } from '@elliemae/ds-grid';
5
5
  import { convertPropToCssClassName } from '@elliemae/ds-classnames';
6
- import { DSAccordion, DSAccordionItem } from '@elliemae/ds-basic/Accordion';
7
- import ChevronDown from '@elliemae/ds-icons/ChevronDown';
8
- import ChevronRight from '@elliemae/ds-icons/ChevronRight';
6
+ import { DSAccordion, DSAccordionItem } from '@elliemae/ds-accordion';
7
+ import { ChevronRight, ChevronDown } from '@elliemae/ds-icons';
9
8
  import { QueryBuilderContext } from '../QueryBuilderContext/QueryBuilderContext.js';
10
9
 
11
10
  const {
@@ -17,11 +16,14 @@ class DisplayOutput extends Component {
17
16
  super(props);
18
17
 
19
18
  _defineProperty(this, "handleChange", () => {
20
- this.setState(({
21
- show
22
- }) => ({
23
- show: !show
24
- }));
19
+ this.setState(_ref => {
20
+ let {
21
+ show
22
+ } = _ref;
23
+ return {
24
+ show: !show
25
+ };
26
+ });
25
27
  });
26
28
 
27
29
  this.state = {
@@ -40,9 +42,10 @@ class DisplayOutput extends Component {
40
42
  hideLabel,
41
43
  displayFixedOutput
42
44
  } = this.props;
43
- return /*#__PURE__*/_jsx(QueryBuilderContext.Consumer, {}, void 0, ({
44
- format
45
- }) => {
45
+ return /*#__PURE__*/_jsx(QueryBuilderContext.Consumer, {}, void 0, _ref2 => {
46
+ let {
47
+ format
48
+ } = _ref2;
46
49
  let display = '';
47
50
 
48
51
  try {
@@ -1,24 +1,24 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
3
  import { convertPropToCssClassName } from '@elliemae/ds-classnames';
4
- import MoreOptionsVert from '@elliemae/ds-icons/MoreOptionsVert';
5
- import { DSIconColors, DSIconSizes } from '@elliemae/ds-basic/Icon';
6
- import GripperVertical from '@elliemae/ds-icons/GripperVertical';
4
+ import { DSIconColors, DSIconSizes } from '@elliemae/ds-icon';
5
+ import { GripperVertical, MoreOptionsVert } from '@elliemae/ds-icons';
7
6
 
8
7
  var _div;
9
8
 
10
- const DragContainerController = ({
11
- color = DSIconColors.NEUTRAL,
12
- icon: Icon = GripperVertical,
13
- size = DSIconSizes.S,
14
- multipleSize = false,
15
- onClick
16
- }) => {
9
+ const DragContainerController = _ref => {
10
+ let {
11
+ color = DSIconColors.NEUTRAL,
12
+ icon: Icon = GripperVertical,
13
+ size = DSIconSizes.S,
14
+ multipleSize = false,
15
+ onClick
16
+ } = _ref;
17
17
  const {
18
18
  cssClassName
19
19
  } = convertPropToCssClassName('query-builder-drag-group');
20
20
  return /*#__PURE__*/_jsx("div", {
21
- className: `${cssClassName}`
21
+ className: "".concat(cssClassName)
22
22
  }, void 0, /*#__PURE__*/_jsx(Icon, {
23
23
  color: color,
24
24
  size: size
@@ -1,9 +1,14 @@
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 _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
4
9
  import 'react';
5
- import GripperVertical from '@elliemae/ds-icons/GripperVertical';
6
- import { DSIconSizes } from '@elliemae/ds-basic/Icon';
10
+ import { DSIconSizes } from '@elliemae/ds-icon';
11
+ import { GripperVertical } from '@elliemae/ds-icons';
7
12
  import { jsx } from 'react/jsx-runtime';
8
13
 
9
14
  const _excluded = ["className", "color", "icon", "size"];
@@ -1,25 +1,27 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
2
  import 'react';
3
- import DSComboBox from '@elliemae/ds-basic/form/ComboBox';
4
- import DSTextBox from '@elliemae/ds-basic/form/TextBox';
3
+ import { DSComboBox, DSTextBox } from '@elliemae/ds-form';
5
4
 
6
- const FieldControllerRow = ({
7
- className = '',
8
- onChange = () => null,
9
- options = [],
10
- value = '',
11
- type = 'DSComboBox'
12
- }) => /*#__PURE__*/_jsx("div", {
13
- className: className
14
- }, void 0, type === 'DSComboBox' && /*#__PURE__*/_jsx(DSComboBox, {
15
- onChange: onChange,
16
- options: options,
17
- value: value
18
- }), type === 'DSTextBox' && /*#__PURE__*/_jsx(DSTextBox, {
19
- fluidWidth: true,
20
- onChange: onChange,
21
- options: options,
22
- value: value
23
- }));
5
+ const FieldControllerRow = _ref => {
6
+ let {
7
+ className = '',
8
+ onChange = () => null,
9
+ options = [],
10
+ value = '',
11
+ type = 'DSComboBox'
12
+ } = _ref;
13
+ return /*#__PURE__*/_jsx("div", {
14
+ className: className
15
+ }, void 0, type === 'DSComboBox' && /*#__PURE__*/_jsx(DSComboBox, {
16
+ onChange: onChange,
17
+ options: options,
18
+ value: value
19
+ }), type === 'DSTextBox' && /*#__PURE__*/_jsx(DSTextBox, {
20
+ fluidWidth: true,
21
+ onChange: onChange,
22
+ options: options,
23
+ value: value
24
+ }));
25
+ };
24
26
 
25
27
  export { FieldControllerRow as default };
@@ -1,9 +1,18 @@
1
+ import 'core-js/modules/esnext.async-iterator.filter.js';
2
+ import 'core-js/modules/esnext.iterator.filter.js';
3
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
4
+ import 'core-js/modules/esnext.iterator.for-each.js';
1
5
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
6
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
7
+ import 'core-js/modules/esnext.async-iterator.find.js';
8
+ import 'core-js/modules/esnext.iterator.constructor.js';
9
+ import 'core-js/modules/esnext.iterator.find.js';
10
+ import 'core-js/modules/esnext.async-iterator.map.js';
11
+ import 'core-js/modules/esnext.iterator.map.js';
3
12
  import { Component } from 'react';
4
13
  import cn from 'classnames';
5
14
  import { listWithChildren } from '@elliemae/ds-shared/utils';
6
- import { isEqualWith } from '@elliemae/ds-utilities/utils';
15
+ import { isEqualWith } from '@elliemae/ds-utilities';
7
16
  import { tryIncreaseDepth } from './actions/tryIncreaseDepth.js';
8
17
  import { tryDecreaseDepth } from './actions/tryDecreaseDepth.js';
9
18
  import { moveItem } from './actions/moveItem.js';
@@ -162,15 +171,18 @@ class Nestable extends Component {
162
171
  return null;
163
172
  }
164
173
 
165
- getPathById(id, items = this.getDefaultItems()) {
174
+ getPathById(id) {
175
+ let items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getDefaultItems();
166
176
  return getPathById.call(this, id, items);
167
177
  }
168
178
 
169
- getItemByPath(path, items = this.getDefaultItems()) {
179
+ getItemByPath(path) {
180
+ let items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getDefaultItems();
170
181
  return getItemByPath.call(this, path, items);
171
182
  }
172
183
 
173
- getSplicePath(path, options = {}) {
184
+ getSplicePath(path) {
185
+ let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
174
186
  return getSplicePath.call(this, path, options);
175
187
  }
176
188
 
@@ -207,11 +219,13 @@ class Nestable extends Component {
207
219
  tryDecreaseDepth.call(this, dragItem);
208
220
  }
209
221
 
210
- moveItem({
211
- dragItem,
212
- pathFrom,
213
- pathTo
214
- }, extraProps = {}) {
222
+ moveItem(_ref) {
223
+ let {
224
+ dragItem,
225
+ pathFrom,
226
+ pathTo
227
+ } = _ref;
228
+ let extraProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
215
229
  moveItem.call(this, {
216
230
  dragItem,
217
231
  pathFrom,
@@ -226,7 +240,7 @@ class Nestable extends Component {
226
240
  const {
227
241
  dragItem
228
242
  } = this.state;
229
- const el = document.querySelector(`.nestable-${group} .nestable-item-${dragItem.id}`);
243
+ const el = document.querySelector(".nestable-".concat(group, " .nestable-item-").concat(dragItem.id));
230
244
  let listStyles = {};
231
245
 
232
246
  if (el) {
@@ -268,11 +282,11 @@ class Nestable extends Component {
268
282
  let childClass = 'single';
269
283
  if (childLength === 0) childClass = 'empty';else if (childLength > 1) childClass = 'multiple';
270
284
  return /*#__PURE__*/_jsx("div", {
271
- className: cn('nestable', `nestable-${group}`, {
285
+ className: cn('nestable', "nestable-".concat(group), {
272
286
  'is-drag-active': dragItem
273
287
  })
274
288
  }, void 0, /*#__PURE__*/_jsx("ol", {
275
- className: `nestable-list nestable-group nestable-child-count-${childClass}`
289
+ className: "nestable-list nestable-group nestable-child-count-".concat(childClass)
276
290
  }, void 0, items.map((item, i) => /*#__PURE__*/_jsx(NestableItem, {
277
291
  index: i,
278
292
  isAndItem: isAndItem,
@@ -1,5 +1,12 @@
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 _jsx from '@babel/runtime/helpers/esm/jsx';
2
7
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
8
+ import 'core-js/modules/esnext.async-iterator.map.js';
9
+ import 'core-js/modules/esnext.iterator.map.js';
3
10
  import 'react';
4
11
  import cn from 'classnames';
5
12
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -8,16 +15,17 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
8
15
 
9
16
  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; }
10
17
 
11
- const NestableItem = ({
12
- item,
13
- isCopy,
14
- options,
15
- index,
16
- isAndItem,
17
- isOrItem,
18
- isDraggableItem,
19
- singleRow
20
- }) => {
18
+ const NestableItem = _ref => {
19
+ let {
20
+ item,
21
+ isCopy,
22
+ options,
23
+ index,
24
+ isAndItem,
25
+ isOrItem,
26
+ isDraggableItem,
27
+ singleRow
28
+ } = _ref;
21
29
  const {
22
30
  dragItem,
23
31
  renderItem,
@@ -31,7 +39,7 @@ const NestableItem = ({
31
39
  const isOrGroup = item.element.type === 'group' && (item.element.condition === '' || item.element.condition === false);
32
40
  const isAndGroup = item.element.type === 'group' && !(item.element.condition === '' || item.element.condition === false);
33
41
  const itemProps = {
34
- className: cn(`nestable-item${isCopy ? '-copy' : ''}`, `nestable-item${isCopy ? '-copy' : ''}-${item.id}`, `nestable-item-type-${item.element.type}`, {
42
+ className: cn("nestable-item".concat(isCopy ? '-copy' : ''), "nestable-item".concat(isCopy ? '-copy' : '', "-").concat(item.id), "nestable-item-type-".concat(item.element.type), {
35
43
  'is-or-group': isOrGroup,
36
44
  'is-and-group': isAndGroup,
37
45
  'is-and-filter': item.element.type === 'filter' && isAndItem,
@@ -71,7 +79,7 @@ const NestableItem = ({
71
79
  if (childLength === 0) childClass = 'empty';else if (childLength > 1) childClass = 'multiple';
72
80
  return /*#__PURE__*/jsxs("li", _objectSpread(_objectSpread({}, itemProps), {}, {
73
81
  children: [/*#__PURE__*/jsx("div", _objectSpread(_objectSpread({
74
- className: `nestable-item-name nestable-item-name--${item.element.type} `
82
+ className: "nestable-item-name nestable-item-name--".concat(item.element.type, " ")
75
83
  }, rowProps), {}, {
76
84
  children: renderItem({
77
85
  item,
@@ -79,7 +87,7 @@ const NestableItem = ({
79
87
  index
80
88
  })
81
89
  })), hasChildren && item.element.type === 'group' && !isCollapsed && /*#__PURE__*/_jsx("ol", {
82
- className: `nestable-list nestable-child-count-${childClass} `
90
+ className: "nestable-list nestable-child-count-".concat(childClass, " ")
83
91
  }, void 0, item[childrenProp].map((currentitem, i) => /*#__PURE__*/_jsx(NestableItem, {
84
92
  index: i,
85
93
  isAndItem: isAndGroup,
@@ -1,4 +1,9 @@
1
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
2
+ import 'core-js/modules/esnext.iterator.for-each.js';
1
3
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
4
+ import 'core-js/modules/esnext.async-iterator.filter.js';
5
+ import 'core-js/modules/esnext.iterator.constructor.js';
6
+ import 'core-js/modules/esnext.iterator.filter.js';
2
7
  import { closest, getTransformProps, getOffsetRect, getTotalScroll } from '@elliemae/ds-shared/utils';
3
8
 
4
9
  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; }
@@ -46,7 +51,7 @@ function onMouseMove(e) {
46
51
  clientY
47
52
  } = e;
48
53
  const transformProps = getTransformProps(clientX, clientY);
49
- const elCopy = document.querySelector(`.nestable-${group} .nestable-drag-layer > .nestable-list`);
54
+ const elCopy = document.querySelector(".nestable-".concat(group, " .nestable-drag-layer > .nestable-list"));
50
55
 
51
56
  if (!this.elCopyStyles) {
52
57
  const offset = getOffsetRect(this.el);
@@ -1,3 +1,12 @@
1
+ import 'core-js/modules/esnext.async-iterator.map.js';
2
+ import 'core-js/modules/esnext.iterator.map.js';
3
+ import 'core-js/modules/esnext.async-iterator.every.js';
4
+ import 'core-js/modules/esnext.iterator.constructor.js';
5
+ import 'core-js/modules/esnext.iterator.every.js';
6
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
7
+ import 'core-js/modules/esnext.iterator.for-each.js';
8
+ import 'core-js/modules/web.dom-collections.iterator.js';
9
+
1
10
  function getRealNextPath(prevPath, nextPath) {
2
11
  const {
3
12
  childrenProp
@@ -83,7 +92,8 @@ function getItemDepth(item) {
83
92
 
84
93
  return level;
85
94
  }
86
- function getSplicePath(path, options = {}) {
95
+ function getSplicePath(path) {
96
+ let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
87
97
  const splicePath = {};
88
98
  const numToRemove = options.numToRemove || 0;
89
99
  const itemsToInsert = options.itemsToInsert || [];
@@ -1,14 +1,21 @@
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 update from 'react-addons-update';
3
8
 
4
9
  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; }
5
10
 
6
11
  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; }
7
- function moveItem({
8
- dragItem,
9
- pathFrom,
10
- pathTo
11
- }, extraProps = {}) {
12
+ function moveItem(_ref) {
13
+ let {
14
+ dragItem,
15
+ pathFrom,
16
+ pathTo
17
+ } = _ref;
18
+ let extraProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
12
19
  const {
13
20
  childrenProp
14
21
  } = this.props;
@@ -1,3 +1,12 @@
1
+ import 'core-js/modules/esnext.async-iterator.map.js';
2
+ import 'core-js/modules/esnext.iterator.map.js';
3
+ import 'core-js/modules/esnext.async-iterator.every.js';
4
+ import 'core-js/modules/esnext.iterator.constructor.js';
5
+ import 'core-js/modules/esnext.iterator.every.js';
6
+ import 'core-js/modules/esnext.async-iterator.for-each.js';
7
+ import 'core-js/modules/esnext.iterator.for-each.js';
8
+ import 'core-js/modules/web.dom-collections.iterator.js';
9
+
1
10
  function getRealNextPath(prevPath, nextPath) {
2
11
  const {
3
12
  childrenProp
@@ -39,7 +48,8 @@ function getRealNextPath(prevPath, nextPath) {
39
48
 
40
49
  return nextPath;
41
50
  }
42
- function getPathById(id, items = this.getDefaultItems()) {
51
+ function getPathById(id) {
52
+ let items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getDefaultItems();
43
53
  const {
44
54
  childrenProp
45
55
  } = this.props;
@@ -59,7 +69,8 @@ function getPathById(id, items = this.getDefaultItems()) {
59
69
  });
60
70
  return path;
61
71
  }
62
- function getItemByPath(path, items = this.getDefaultItems()) {
72
+ function getItemByPath(path) {
73
+ let items = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getDefaultItems();
63
74
  const {
64
75
  childrenProp
65
76
  } = this.props;
@@ -83,7 +94,8 @@ function getItemDepth(item) {
83
94
 
84
95
  return level;
85
96
  }
86
- function getSplicePath(path, options = {}) {
97
+ function getSplicePath(path) {
98
+ let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
87
99
  const splicePath = {};
88
100
  const numToRemove = options.numToRemove || 0;
89
101
  const itemsToInsert = options.itemsToInsert || [];
@@ -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 _jsx from '@babel/runtime/helpers/esm/jsx';
2
7
  import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
3
8
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
@@ -260,7 +265,7 @@ class QueryBuilderImpl extends Component {
260
265
  singleRow
261
266
  }
262
267
  }, void 0, /*#__PURE__*/jsxs("div", _objectSpread(_objectSpread({}, containerProps), {}, {
263
- className: `nested-main-group ${condition !== true ? 'is-or-group' : 'is-and-groupL'} ${singleRow ? 'query-main-single-row' : 'query-main-multiple-row'}`,
268
+ className: "nested-main-group ".concat(condition !== true ? 'is-or-group' : 'is-and-groupL', " ").concat(singleRow ? 'query-main-single-row' : 'query-main-multiple-row'),
264
269
  children: [/*#__PURE__*/_jsx(Nestable, {
265
270
  isAndItem: condition === true,
266
271
  isDraggableItem: this.isDraggableItem,
@@ -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 _jsx from '@babel/runtime/helpers/esm/jsx';
2
7
  import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
3
8
  import 'react';
@@ -11,9 +16,10 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
11
16
 
12
17
  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; }
13
18
 
14
- const QueryBuilderItem = ({
15
- item
16
- }) => {
19
+ const QueryBuilderItem = _ref => {
20
+ let {
21
+ item
22
+ } = _ref;
17
23
  const {
18
24
  element
19
25
  } = item;
@@ -23,23 +29,25 @@ const QueryBuilderItem = ({
23
29
  idGroup,
24
30
  condition
25
31
  } = element;
26
- return /*#__PURE__*/_jsx(QueryBuilderContext.Consumer, {}, void 0, ({
27
- fields,
28
- handleFieldChange,
29
- onAddFilter,
30
- onAddFilterToGroup,
31
- onAddRuleContainer,
32
- onRemoveFilter,
33
- showDragController,
34
- handleRuleContainerOperator,
35
- handleRuleContainerUnGroup,
36
- step,
37
- items,
38
- isDraggableItem,
39
- setDraggableItems,
40
- singleRow,
41
- toolTipZIndex
42
- }) => {
32
+ return /*#__PURE__*/_jsx(QueryBuilderContext.Consumer, {}, void 0, _ref2 => {
33
+ let {
34
+ fields,
35
+ handleFieldChange,
36
+ onAddFilter,
37
+ onAddFilterToGroup,
38
+ onAddRuleContainer,
39
+ onRemoveFilter,
40
+ showDragController,
41
+ handleRuleContainerOperator,
42
+ handleRuleContainerUnGroup,
43
+ step,
44
+ items,
45
+ isDraggableItem,
46
+ setDraggableItems,
47
+ singleRow,
48
+ toolTipZIndex
49
+ } = _ref2;
50
+
43
51
  if (type === QB_DRAG_TYPES.FILTER) {
44
52
  return /*#__PURE__*/jsx(QueryBuilderRow, _objectSpread(_objectSpread({}, element), {}, {
45
53
  fields: fields,