@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,6 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
4
+ require('core-js/modules/esnext.async-iterator.for-each.js');
5
+ require('core-js/modules/esnext.iterator.constructor.js');
6
+ require('core-js/modules/esnext.iterator.for-each.js');
7
+ require('core-js/modules/esnext.async-iterator.filter.js');
8
+ require('core-js/modules/esnext.iterator.filter.js');
4
9
  var actions = require('./actions.js');
5
10
  var format = require('../format/format.js');
6
11
 
@@ -10,7 +15,7 @@ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_definePropert
10
15
 
11
16
  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; }
12
17
 
13
- 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__default['default'](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; }
18
+ 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__default["default"](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; }
14
19
  /**
15
20
  * Fluent interface: https://en.wikipedia.org/wiki/Fluent_interface
16
21
  *
@@ -25,36 +30,30 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
25
30
 
26
31
  class QueryBuilderStore {
27
32
  constructor(init, _format) {
28
- _defineProperty__default['default'](this, "items", []);
33
+ this.items = [];
34
+ this.step = 0;
35
+ this.steps = {};
36
+ this.mapFilters = {};
37
+ this.mapGroups = {};
38
+ this.main = null;
39
+ this.format = null;
29
40
 
30
- _defineProperty__default['default'](this, "step", 0);
41
+ this.createNewFilter = idGroup => actions.createNewFilter.call(this, idGroup);
31
42
 
32
- _defineProperty__default['default'](this, "steps", {});
43
+ this.createNewGroup = parentIdGroup => actions.createNewGroup.call(this, parentIdGroup);
33
44
 
34
- _defineProperty__default['default'](this, "mapFilters", {});
35
-
36
- _defineProperty__default['default'](this, "mapGroups", {});
37
-
38
- _defineProperty__default['default'](this, "main", null);
39
-
40
- _defineProperty__default['default'](this, "format", null);
41
-
42
- _defineProperty__default['default'](this, "createNewFilter", idGroup => actions.createNewFilter.call(this, idGroup));
43
-
44
- _defineProperty__default['default'](this, "createNewGroup", parentIdGroup => actions.createNewGroup.call(this, parentIdGroup));
45
-
46
- _defineProperty__default['default'](this, "onOrderDragAndDrop", items => {
45
+ this.onOrderDragAndDrop = items => {
47
46
  this.items = items;
48
47
  return this.getState();
49
- });
48
+ };
50
49
 
51
- _defineProperty__default['default'](this, "addFilterNextToFilterId", (idGroup, idFilter) => {
50
+ this.addFilterNextToFilterId = (idGroup, idFilter) => {
52
51
  // eslint-disable-line
53
52
  this.addFilter(idGroup);
54
53
  return this.getState();
55
- });
54
+ };
56
55
 
57
- _defineProperty__default['default'](this, "addFilter", idGroup => {
56
+ this.addFilter = idGroup => {
58
57
  const newFilter = this.createNewFilter(idGroup);
59
58
  actions.addFilterToMap.call(this, newFilter); // new API
60
59
 
@@ -69,22 +68,22 @@ class QueryBuilderStore {
69
68
  }
70
69
 
71
70
  return this.getState();
72
- });
71
+ };
73
72
 
74
- _defineProperty__default['default'](this, "onRemoveFilter", idFilter => {
73
+ this.onRemoveFilter = idFilter => {
75
74
  // new API
76
75
  actions.removeFilterItem.call(this, idFilter);
77
76
  return this.getState();
78
- });
77
+ };
79
78
 
80
- _defineProperty__default['default'](this, "addRuleContainerInPlace", (idGroup, idFilter) => {
79
+ this.addRuleContainerInPlace = (idGroup, idFilter) => {
81
80
  // Create a new group
82
81
  const newGroup = this.createNewGroup(idGroup);
83
82
  actions.addGroupFilterToItem.call(this, idGroup, idFilter, newGroup);
84
83
  return this.getState();
85
- });
84
+ };
86
85
 
87
- _defineProperty__default['default'](this, "addRuleContainer", (idGroup, idFilter) => {
86
+ this.addRuleContainer = (idGroup, idFilter) => {
88
87
  // eslint-disable-line
89
88
  const newGroup = this.createNewGroup(idGroup);
90
89
  actions.addGroupToMap.call(this, newGroup);
@@ -100,33 +99,33 @@ class QueryBuilderStore {
100
99
  }
101
100
 
102
101
  return this.getState();
103
- });
102
+ };
104
103
 
105
- _defineProperty__default['default'](this, "unGroup", idGroup => {
104
+ this.unGroup = idGroup => {
106
105
  actions.unGroupFilterToItem.call(this, idGroup);
107
106
  return this.getState();
108
- });
107
+ };
109
108
 
110
- _defineProperty__default['default'](this, "changeGroupOperator", (idGroup, value) => {
109
+ this.changeGroupOperator = (idGroup, value) => {
111
110
  this.getGroupById(idGroup).condition = value;
112
111
  actions.changeGroupOperator.call(this, idGroup, value);
113
112
  return this.getState();
114
- });
113
+ };
115
114
 
116
- _defineProperty__default['default'](this, "changeFilter", data => {
115
+ this.changeFilter = data => {
117
116
  const {
118
117
  idFilter
119
118
  } = data;
120
119
  this.mapFilters[idFilter] = _objectSpread(_objectSpread({}, this.mapFilters[idFilter]), data);
121
120
  actions.changeFilterItem.call(this, data);
122
121
  return this.getState();
123
- });
122
+ };
124
123
 
125
- _defineProperty__default['default'](this, "getGroupById", idGroup => this.mapGroups[idGroup] || {});
124
+ this.getGroupById = idGroup => this.mapGroups[idGroup] || {};
126
125
 
127
- _defineProperty__default['default'](this, "getFilterById", idFilter => this.mapFilters[idFilter]);
126
+ this.getFilterById = idFilter => this.mapFilters[idFilter];
128
127
 
129
- _defineProperty__default['default'](this, "getInitialState", () => {
128
+ this.getInitialState = () => {
130
129
  const newFilters = {
131
130
  step: this.step,
132
131
  mapFilters: _objectSpread({}, this.mapFilters),
@@ -138,9 +137,9 @@ class QueryBuilderStore {
138
137
  return _objectSpread(_objectSpread({}, newFilters), {}, {
139
138
  format: format$1
140
139
  });
141
- });
140
+ };
142
141
 
143
- _defineProperty__default['default'](this, "getState", () => {
142
+ this.getState = () => {
144
143
  this.step += 1;
145
144
  const newFilters = {
146
145
  step: this.step,
@@ -153,7 +152,7 @@ class QueryBuilderStore {
153
152
  return _objectSpread(_objectSpread({}, newFilters), {}, {
154
153
  format: format$1
155
154
  });
156
- });
155
+ };
157
156
 
158
157
  this.firstLoad = true;
159
158
  this.format = _format;
package/cjs/index.js CHANGED
@@ -9,8 +9,9 @@ var format = require('./components/format/format.js');
9
9
 
10
10
 
11
11
 
12
+ exports.DSQueryBuilder = DSQueryBuilder.DSQueryBuilder;
12
13
  exports.DSQueryBuilderWithSchema = DSQueryBuilder.DSQueryBuilderWithSchema;
13
- exports.default = DSQueryBuilder['default'];
14
+ exports["default"] = DSQueryBuilder.DSQueryBuilder;
14
15
  exports.QB_ADD_FILTER_METHOD_TYPES = types.QB_ADD_FILTER_METHOD_TYPES;
15
16
  exports.QB_DRAG_LOCATIONS = types.QB_DRAG_LOCATIONS;
16
17
  exports.QB_DRAG_TYPES = types.QB_DRAG_TYPES;
package/cjs/propTypes.js CHANGED
@@ -77,6 +77,7 @@ const props = {
77
77
 
78
78
  /** remove filter callback */
79
79
  onRemoveFilter: reactDesc.PropTypes.func.description('remove filter callback'),
80
+ displayFixedOutput: reactDesc.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(''),
80
81
 
81
82
  /** show output */
82
83
  displayOutput: reactDesc.PropTypes.bool.description('show output'),
@@ -8,62 +8,67 @@ export { QB_DEFAULT_VALUES_OPTIONS, QB_FIELD_OPTIONS, QB_LOAN_VALUES_OPTIONS, QB
8
8
  export { default as QueryBuilderFormat } from './components/format/format.js';
9
9
  import { props } from './propTypes.js';
10
10
 
11
- const DSQueryBuilder = ({
12
- containerProps = {},
13
- addFilterMethod = QB_ADD_FILTER_METHOD_TYPES.IN_PLACE,
14
- groupFilterMethod = QB_GROUP_FILTER_METHOD_TYPES.IN_PLACE,
15
- onChange = () => null,
16
- fields = [],
17
- fieldsSharedActions = {
18
- onFieldChange: [],
19
- onOperatorChange: [],
20
- onValueChange: []
21
- },
22
- format = QB_EXPORT_FORMAT_TYPES.DEFAULT,
23
- init = null,
24
- ruleContainerClassName = '',
25
- handleDrop = () => null,
26
- handleDropFilter = () => null,
27
- handleDropGroup = () => null,
28
- handleFieldChange = () => null,
29
- handleRuleContainerOperator = () => null,
30
- handleRuleContainerUnGroup = () => null,
31
- onAddFilter = () => null,
32
- onAddRuleContainer = () => null,
33
- onRemoveFilter = () => null,
34
- displayOutput = false,
35
- displayOutputLabel = {
36
- show: 'Show output',
37
- hide: 'Hide output'
38
- },
39
- singleRow = false,
40
- toolTipZIndex = 110
41
- }) => /*#__PURE__*/_jsx(QueryBuilderImpl, {
42
- addFilterMethod: addFilterMethod,
43
- containerProps: containerProps,
44
- displayOutput: displayOutput,
45
- displayOutputLabel: displayOutputLabel,
46
- fields: fields,
47
- fieldsSharedActions: fieldsSharedActions,
48
- format: format,
49
- groupFilterMethod: groupFilterMethod,
50
- handleDrop: handleDrop,
51
- handleDropFilter: handleDropFilter,
52
- handleDropGroup: handleDropGroup,
53
- handleFieldChange: handleFieldChange,
54
- handleRuleContainerOperator: handleRuleContainerOperator,
55
- handleRuleContainerUnGroup: handleRuleContainerUnGroup,
56
- init: init,
57
- onAddFilter: onAddFilter,
58
- onAddRuleContainer: onAddRuleContainer,
59
- onChange: onChange,
60
- onRemoveFilter: onRemoveFilter,
61
- ruleContainerClassName: ruleContainerClassName,
62
- singleRow: singleRow,
63
- toolTipZIndex: toolTipZIndex
64
- });
11
+ const DSQueryBuilder = _ref => {
12
+ let {
13
+ containerProps = {},
14
+ addFilterMethod = QB_ADD_FILTER_METHOD_TYPES.IN_PLACE,
15
+ groupFilterMethod = QB_GROUP_FILTER_METHOD_TYPES.IN_PLACE,
16
+ onChange = () => null,
17
+ fields = [],
18
+ fieldsSharedActions = {
19
+ onFieldChange: [],
20
+ onOperatorChange: [],
21
+ onValueChange: []
22
+ },
23
+ format = QB_EXPORT_FORMAT_TYPES.DEFAULT,
24
+ init = null,
25
+ ruleContainerClassName = '',
26
+ handleDrop = () => null,
27
+ handleDropFilter = () => null,
28
+ handleDropGroup = () => null,
29
+ handleFieldChange = () => null,
30
+ handleRuleContainerOperator = () => null,
31
+ handleRuleContainerUnGroup = () => null,
32
+ onAddFilter = () => null,
33
+ onAddRuleContainer = () => null,
34
+ onRemoveFilter = () => null,
35
+ displayFixedOutput,
36
+ displayOutput = false,
37
+ displayOutputLabel = {
38
+ show: 'Show output',
39
+ hide: 'Hide output'
40
+ },
41
+ singleRow = false,
42
+ toolTipZIndex = 110
43
+ } = _ref;
44
+ return /*#__PURE__*/_jsx(QueryBuilderImpl, {
45
+ addFilterMethod: addFilterMethod,
46
+ containerProps: containerProps,
47
+ displayFixedOutput: displayFixedOutput,
48
+ displayOutput: displayOutput,
49
+ displayOutputLabel: displayOutputLabel,
50
+ fields: fields,
51
+ fieldsSharedActions: fieldsSharedActions,
52
+ format: format,
53
+ groupFilterMethod: groupFilterMethod,
54
+ handleDrop: handleDrop,
55
+ handleDropFilter: handleDropFilter,
56
+ handleDropGroup: handleDropGroup,
57
+ handleFieldChange: handleFieldChange,
58
+ handleRuleContainerOperator: handleRuleContainerOperator,
59
+ handleRuleContainerUnGroup: handleRuleContainerUnGroup,
60
+ init: init,
61
+ onAddFilter: onAddFilter,
62
+ onAddRuleContainer: onAddRuleContainer,
63
+ onChange: onChange,
64
+ onRemoveFilter: onRemoveFilter,
65
+ ruleContainerClassName: ruleContainerClassName,
66
+ singleRow: singleRow,
67
+ toolTipZIndex: toolTipZIndex
68
+ });
69
+ };
65
70
 
66
71
  const DSQueryBuilderWithSchema = describe(DSQueryBuilder);
67
72
  DSQueryBuilderWithSchema.propTypes = props;
68
73
 
69
- export { DSQueryBuilderWithSchema, DSQueryBuilder as default };
74
+ export { DSQueryBuilder, DSQueryBuilderWithSchema, DSQueryBuilder as default };
@@ -1,15 +1,12 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
- import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
3
2
  import React, { Component } from 'react';
4
3
  import { convertPropToCssClassName } from '@elliemae/ds-classnames';
5
- import DSTooltip, { TooltipType } from '@elliemae/ds-basic/Tooltip';
6
- import { PopperInteractions, PopperPositions } from '@elliemae/ds-basic/Popper';
7
- import DSToggle from '@elliemae/ds-basic/form/Toggle';
8
- import DSButton from '@elliemae/ds-basic/Button';
9
- import QueryAdd from '@elliemae/ds-icons/QueryAdd';
10
- import ParenthesisRemove from '@elliemae/ds-icons/ParenthesisRemove';
11
- import MoreOptionsVert from '@elliemae/ds-icons/MoreOptionsVert';
12
- import { DSIconSizes, DSIconColors } from '@elliemae/ds-basic/Icon';
4
+ import DSTooltip, { TooltipType } from '@elliemae/ds-tooltip';
5
+ import { PopperInteractions, PopperPositions } from '@elliemae/ds-popper';
6
+ import { DSToggle } from '@elliemae/ds-form';
7
+ import DSButton from '@elliemae/ds-button';
8
+ import { QueryAdd, ParenthesisRemove, MoreOptionsVert } from '@elliemae/ds-icons';
9
+ import { DSIconSizes, DSIconColors } from '@elliemae/ds-icon';
13
10
  import { DELAY_CLOSE, DELAY_OPEN, TOOLBAR_ANIMATION_DURATION } from '../helpers/constants.js';
14
11
  import { ToolBarAnimation } from '../ToolBarAnimation/ToolBarAnimation.js';
15
12
  import DragContainerController from '../DragContainerController/DragContainerController.js';
@@ -34,11 +31,11 @@ class AndOrController extends Component {
34
31
  constructor(props) {
35
32
  super(props);
36
33
 
37
- _defineProperty(this, "handleMouseEnterRow", e => {
34
+ this.handleMouseEnterRow = e => {
38
35
  this.handleTooltipRow(true); // this.handleMouseMove(e)
39
- });
36
+ };
40
37
 
41
- _defineProperty(this, "handleMouseMove", e => {
38
+ this.handleMouseMove = e => {
42
39
  if (!this.contenerRef.current) return;
43
40
  const mouse = e.clientY;
44
41
  const {
@@ -50,13 +47,13 @@ class AndOrController extends Component {
50
47
  this.setState({
51
48
  top: mouse - topDiff - refHeight / 2 - delta
52
49
  });
53
- });
50
+ };
54
51
 
55
- _defineProperty(this, "handleMouseLeaveRow", () => {
52
+ this.handleMouseLeaveRow = () => {
56
53
  this.handleTooltipRow(false);
57
- });
54
+ };
58
55
 
59
- _defineProperty(this, "handleTooltipRow", isOpen => {
56
+ this.handleTooltipRow = isOpen => {
60
57
  this.setState({
61
58
  isOpen
62
59
  });
@@ -64,7 +61,7 @@ class AndOrController extends Component {
64
61
  handleTooltipGroup
65
62
  } = this.props;
66
63
  handleTooltipGroup(isOpen);
67
- });
64
+ };
68
65
 
69
66
  this.contenerRef = /*#__PURE__*/React.createRef();
70
67
  this.myRef = /*#__PURE__*/React.createRef();
@@ -105,12 +102,12 @@ class AndOrController extends Component {
105
102
  } = this.state;
106
103
  return /*#__PURE__*/jsx("div", {
107
104
  ref: this.myRef,
108
- className: `${cssClassName} ${mainModifier(condition ? 'active' : 'default')} step-${step} ${isMain ? 'is-main-group-join' : ''}` // onMouseEnter={this.handleMouseEnterRow}
105
+ className: "".concat(cssClassName, " ").concat(mainModifier(condition ? 'active' : 'default'), " step-").concat(step, " ").concat(isMain ? 'is-main-group-join' : '') // onMouseEnter={this.handleMouseEnterRow}
109
106
  ,
110
107
  onMouseLeave: this.handleMouseLeaveRow // onMouseMove={this.handleMouseMove}
111
108
  ,
112
109
  children: /*#__PURE__*/_jsx("div", {
113
- className: `${classNameBlock('content')} step-${step}`
110
+ className: "".concat(classNameBlock('content'), " step-").concat(step)
114
111
  }, void 0, /*#__PURE__*/_jsx(DSTooltip, {
115
112
  delayClose: delayClose,
116
113
  delayOpen: delayOpen,
@@ -128,8 +125,8 @@ class AndOrController extends Component {
128
125
  style: {
129
126
  transition: '0.2s',
130
127
  position: 'absolute',
131
- top: `${top}px`,
132
- right: `${right}px`
128
+ top: "".concat(top, "px"),
129
+ right: "".concat(right, "px")
133
130
  },
134
131
  children: [/*#__PURE__*/_jsx(DSButton, {
135
132
  buttonType: buttonActionType,
@@ -163,7 +160,7 @@ class AndOrController extends Component {
163
160
  }),
164
161
  tooltipType: TooltipType.TOOLBAR,
165
162
  triggerComponent: /*#__PURE__*/_jsx("div", {
166
- className: `${classNameBlock('trigger-controller')} ${showDragController ? classNameBlockModifier('draggable', 'trigger-controller') : ''} step-${step}`
163
+ className: "".concat(classNameBlock('trigger-controller'), " ").concat(showDragController ? classNameBlockModifier('draggable', 'trigger-controller') : '', " step-").concat(step)
167
164
  }, void 0, /*#__PURE__*/_jsx("div", {
168
165
  className: classNameElement('condition-display')
169
166
  }, void 0, /*#__PURE__*/_jsx("span", {
@@ -190,7 +187,7 @@ class AndOrController extends Component {
190
187
 
191
188
  }
192
189
 
193
- _defineProperty(AndOrController, "defaultProps", {
190
+ AndOrController.defaultProps = {
194
191
  isMain: false,
195
192
  handleRuleContainerOperator: () => null,
196
193
  handleRuleContainerUnGroup: () => null,
@@ -211,6 +208,6 @@ _defineProperty(AndOrController, "defaultProps", {
211
208
  toolBarAnimationDuration: TOOLBAR_ANIMATION_DURATION,
212
209
  toolBarInteractionType: PopperInteractions.CLICK,
213
210
  toolBarPosition: PopperPositions.LEFT
214
- });
211
+ };
215
212
 
216
213
  export { AndOrController as default };
@@ -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,
@@ -1,10 +1,9 @@
1
1
  import _jsx from '@babel/runtime/helpers/esm/jsx';
2
- import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
3
2
  import { Component } from 'react';
3
+ import { Grid } from '@elliemae/ds-grid';
4
4
  import { convertPropToCssClassName } from '@elliemae/ds-classnames';
5
- import { DSAccordion, DSAccordionItem } from '@elliemae/ds-basic/Accordion';
6
- import ChevronDown from '@elliemae/ds-icons/ChevronDown';
7
- import ChevronRight from '@elliemae/ds-icons/ChevronRight';
5
+ import { DSAccordion, DSAccordionItem } from '@elliemae/ds-accordion';
6
+ import { ChevronRight, ChevronDown } from '@elliemae/ds-icons';
8
7
  import { QueryBuilderContext } from '../QueryBuilderContext/QueryBuilderContext.js';
9
8
 
10
9
  const {
@@ -15,13 +14,16 @@ class DisplayOutput extends Component {
15
14
  constructor(props) {
16
15
  super(props);
17
16
 
18
- _defineProperty(this, "handleChange", () => {
19
- this.setState(({
20
- show
21
- }) => ({
22
- show: !show
23
- }));
24
- });
17
+ this.handleChange = () => {
18
+ this.setState(_ref => {
19
+ let {
20
+ show
21
+ } = _ref;
22
+ return {
23
+ show: !show
24
+ };
25
+ });
26
+ };
25
27
 
26
28
  this.state = {
27
29
  show: props.show
@@ -29,16 +31,20 @@ class DisplayOutput extends Component {
29
31
  }
30
32
 
31
33
  render() {
34
+ var _Grid;
35
+
32
36
  const {
33
37
  show
34
38
  } = this.state;
35
39
  const {
36
40
  showLabel,
37
- hideLabel
41
+ hideLabel,
42
+ displayFixedOutput
38
43
  } = this.props;
39
- return /*#__PURE__*/_jsx(QueryBuilderContext.Consumer, {}, void 0, ({
40
- format
41
- }) => {
44
+ return /*#__PURE__*/_jsx(QueryBuilderContext.Consumer, {}, void 0, _ref2 => {
45
+ let {
46
+ format
47
+ } = _ref2;
42
48
  let display = '';
43
49
 
44
50
  try {
@@ -47,6 +53,17 @@ class DisplayOutput extends Component {
47
53
  display = e;
48
54
  }
49
55
 
56
+ if (displayFixedOutput) {
57
+ return /*#__PURE__*/_jsx("div", {
58
+ className: cssClassName
59
+ }, void 0, _Grid || (_Grid = /*#__PURE__*/_jsx(Grid, {
60
+ p: "xxs"
61
+ }, void 0, /*#__PURE__*/_jsx("strong", {}, void 0, displayFixedOutput))), /*#__PURE__*/_jsx(Grid, {
62
+ pl: "xxs",
63
+ pr: "xxs"
64
+ }, void 0, display));
65
+ }
66
+
50
67
  return /*#__PURE__*/_jsx("div", {
51
68
  className: cssClassName
52
69
  }, void 0, /*#__PURE__*/_jsx(DSAccordion, {
@@ -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"];