@elliemae/ds-query-builder 3.0.0-next.2 → 3.0.0-next.6
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/dist/cjs/DSQueryBuilder.js +118 -0
- package/dist/cjs/DSQueryBuilder.js.map +7 -0
- package/dist/cjs/components/AndOrController/AndOrController.js +208 -0
- package/dist/cjs/components/AndOrController/AndOrController.js.map +7 -0
- package/dist/cjs/components/ConditionController/ConditionController.js +116 -0
- package/dist/cjs/components/ConditionController/ConditionController.js.map +7 -0
- package/dist/cjs/components/DisplayOutput/DisplayOutput.js +92 -0
- package/dist/cjs/components/DisplayOutput/DisplayOutput.js.map +7 -0
- package/dist/cjs/components/DragContainerController/DragContainerController.js +65 -0
- package/dist/cjs/components/DragContainerController/DragContainerController.js.map +7 -0
- package/dist/cjs/components/DragControllerRow/DragControllerRow.js +83 -0
- package/dist/cjs/components/DragControllerRow/DragControllerRow.js.map +7 -0
- package/dist/cjs/components/FieldControllerRow/FieldControllerRow.js +55 -0
- package/dist/cjs/components/FieldControllerRow/FieldControllerRow.js.map +7 -0
- package/dist/cjs/components/Nestable/Nestable.js +264 -0
- package/dist/cjs/components/Nestable/Nestable.js.map +7 -0
- package/dist/cjs/components/Nestable/NestableItem.js +127 -0
- package/dist/cjs/components/Nestable/NestableItem.js.map +7 -0
- package/dist/cjs/components/Nestable/actions/events.js +153 -0
- package/dist/cjs/components/Nestable/actions/events.js.map +7 -0
- package/dist/cjs/components/Nestable/actions/getItemOptions.js +49 -0
- package/dist/cjs/components/Nestable/actions/getItemOptions.js.map +7 -0
- package/dist/cjs/components/Nestable/actions/getPaths.js +119 -0
- package/dist/cjs/components/Nestable/actions/getPaths.js.map +7 -0
- package/dist/cjs/components/Nestable/actions/index.js +42 -0
- package/dist/cjs/components/Nestable/actions/index.js.map +7 -0
- package/dist/cjs/components/Nestable/actions/moveItem.js +69 -0
- package/dist/cjs/components/Nestable/actions/moveItem.js.map +7 -0
- package/dist/cjs/components/Nestable/actions/paths.js +119 -0
- package/dist/cjs/components/Nestable/actions/paths.js.map +7 -0
- package/dist/cjs/components/Nestable/actions/tryDecreaseDepth.js +51 -0
- package/dist/cjs/components/Nestable/actions/tryDecreaseDepth.js.map +7 -0
- package/dist/cjs/components/Nestable/actions/tryIncreaseDepth.js +51 -0
- package/dist/cjs/components/Nestable/actions/tryIncreaseDepth.js.map +7 -0
- package/dist/cjs/components/Nestable/index.js +36 -0
- package/dist/cjs/components/Nestable/index.js.map +7 -0
- package/dist/cjs/components/QueryBuilderContext/QueryBuilderContext.js +36 -0
- package/dist/cjs/components/QueryBuilderContext/QueryBuilderContext.js.map +7 -0
- package/dist/cjs/components/QueryBuilderImpl.js +253 -0
- package/dist/cjs/components/QueryBuilderImpl.js.map +7 -0
- package/dist/cjs/components/QueryBuilderItem/QueryBuilderItem.js +108 -0
- package/dist/cjs/components/QueryBuilderItem/QueryBuilderItem.js.map +7 -0
- package/dist/cjs/components/QueryBuilderRow/QueryBuilderRow.js +235 -0
- package/dist/cjs/components/QueryBuilderRow/QueryBuilderRow.js.map +7 -0
- package/dist/cjs/components/ToolBarAnimation/ToolBarAnimation.js +58 -0
- package/dist/cjs/components/ToolBarAnimation/ToolBarAnimation.js.map +7 -0
- package/dist/cjs/components/format/format.js +59 -0
- package/dist/cjs/components/format/format.js.map +7 -0
- package/dist/cjs/components/format/sqlFormat.js +94 -0
- package/dist/cjs/components/format/sqlFormat.js.map +7 -0
- package/dist/cjs/components/format/sqlSafeFormat.js +98 -0
- package/dist/cjs/components/format/sqlSafeFormat.js.map +7 -0
- package/dist/cjs/components/format/xmlFormat.js +94 -0
- package/dist/cjs/components/format/xmlFormat.js.map +7 -0
- package/dist/cjs/components/helpers/actions.js +253 -0
- package/dist/cjs/components/helpers/actions.js.map +7 -0
- package/dist/cjs/components/helpers/constants.js +39 -0
- package/dist/cjs/components/helpers/constants.js.map +7 -0
- package/dist/cjs/components/helpers/dependencies.js +69 -0
- package/dist/cjs/components/helpers/dependencies.js.map +7 -0
- package/dist/cjs/components/helpers/selectors.js +161 -0
- package/dist/cjs/components/helpers/selectors.js.map +7 -0
- package/dist/cjs/components/helpers/store.js +171 -0
- package/dist/cjs/components/helpers/store.js.map +7 -0
- package/dist/cjs/components/helpers/types.js +92 -0
- package/dist/cjs/components/helpers/types.js.map +7 -0
- package/dist/cjs/index.js +36 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/propTypes.js +105 -0
- package/dist/cjs/propTypes.js.map +7 -0
- package/dist/esm/DSQueryBuilder.js +105 -0
- package/dist/esm/DSQueryBuilder.js.map +7 -0
- package/dist/esm/components/AndOrController/AndOrController.js +179 -0
- package/dist/esm/components/AndOrController/AndOrController.js.map +7 -0
- package/dist/esm/components/ConditionController/ConditionController.js +87 -0
- package/dist/esm/components/ConditionController/ConditionController.js.map +7 -0
- package/dist/esm/components/DisplayOutput/DisplayOutput.js +63 -0
- package/dist/esm/components/DisplayOutput/DisplayOutput.js.map +7 -0
- package/dist/esm/components/DragContainerController/DragContainerController.js +36 -0
- package/dist/esm/components/DragContainerController/DragContainerController.js.map +7 -0
- package/dist/esm/components/DragControllerRow/DragControllerRow.js +56 -0
- package/dist/esm/components/DragControllerRow/DragControllerRow.js.map +7 -0
- package/dist/esm/components/FieldControllerRow/FieldControllerRow.js +26 -0
- package/dist/esm/components/FieldControllerRow/FieldControllerRow.js.map +7 -0
- package/dist/esm/components/Nestable/Nestable.js +253 -0
- package/dist/esm/components/Nestable/Nestable.js.map +7 -0
- package/dist/esm/components/Nestable/NestableItem.js +100 -0
- package/dist/esm/components/Nestable/NestableItem.js.map +7 -0
- package/dist/esm/components/Nestable/actions/events.js +131 -0
- package/dist/esm/components/Nestable/actions/events.js.map +7 -0
- package/{esm → dist/esm}/components/Nestable/actions/getItemOptions.js +7 -11
- package/dist/esm/components/Nestable/actions/getItemOptions.js.map +7 -0
- package/{esm → dist/esm}/components/Nestable/actions/getPaths.js +17 -43
- package/dist/esm/components/Nestable/actions/getPaths.js.map +7 -0
- package/dist/esm/components/Nestable/actions/index.js +13 -0
- package/dist/esm/components/Nestable/actions/index.js.map +7 -0
- package/dist/esm/components/Nestable/actions/moveItem.js +42 -0
- package/dist/esm/components/Nestable/actions/moveItem.js.map +7 -0
- package/{esm → dist/esm}/components/Nestable/actions/paths.js +19 -47
- package/dist/esm/components/Nestable/actions/paths.js.map +7 -0
- package/dist/esm/components/Nestable/actions/tryDecreaseDepth.js +22 -0
- package/dist/esm/components/Nestable/actions/tryDecreaseDepth.js.map +7 -0
- package/{esm → dist/esm}/components/Nestable/actions/tryIncreaseDepth.js +10 -22
- package/dist/esm/components/Nestable/actions/tryIncreaseDepth.js.map +7 -0
- package/dist/esm/components/Nestable/index.js +7 -0
- package/dist/esm/components/Nestable/index.js.map +7 -0
- package/dist/esm/components/QueryBuilderContext/QueryBuilderContext.js +7 -0
- package/dist/esm/components/QueryBuilderContext/QueryBuilderContext.js.map +7 -0
- package/dist/esm/components/QueryBuilderImpl.js +226 -0
- package/dist/esm/components/QueryBuilderImpl.js.map +7 -0
- package/dist/esm/components/QueryBuilderItem/QueryBuilderItem.js +81 -0
- package/dist/esm/components/QueryBuilderItem/QueryBuilderItem.js.map +7 -0
- package/dist/esm/components/QueryBuilderRow/QueryBuilderRow.js +208 -0
- package/dist/esm/components/QueryBuilderRow/QueryBuilderRow.js.map +7 -0
- package/dist/esm/components/ToolBarAnimation/ToolBarAnimation.js +31 -0
- package/dist/esm/components/ToolBarAnimation/ToolBarAnimation.js.map +7 -0
- package/dist/esm/components/format/format.js +30 -0
- package/dist/esm/components/format/format.js.map +7 -0
- package/dist/esm/components/format/sqlFormat.js +65 -0
- package/dist/esm/components/format/sqlFormat.js.map +7 -0
- package/dist/esm/components/format/sqlSafeFormat.js +69 -0
- package/dist/esm/components/format/sqlSafeFormat.js.map +7 -0
- package/dist/esm/components/format/xmlFormat.js +65 -0
- package/dist/esm/components/format/xmlFormat.js.map +7 -0
- package/dist/esm/components/helpers/actions.js +230 -0
- package/dist/esm/components/helpers/actions.js.map +7 -0
- package/dist/esm/components/helpers/constants.js +10 -0
- package/dist/esm/components/helpers/constants.js.map +7 -0
- package/dist/esm/components/helpers/dependencies.js +40 -0
- package/dist/esm/components/helpers/dependencies.js.map +7 -0
- package/dist/esm/components/helpers/selectors.js +132 -0
- package/dist/esm/components/helpers/selectors.js.map +7 -0
- package/dist/esm/components/helpers/store.js +157 -0
- package/dist/esm/components/helpers/store.js.map +7 -0
- package/dist/esm/components/helpers/types.js +63 -0
- package/dist/esm/components/helpers/types.js.map +7 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/propTypes.js +76 -0
- package/dist/esm/propTypes.js.map +7 -0
- package/package.json +103 -94
- package/cjs/DSQueryBuilder.js +0 -98
- package/cjs/components/AndOrController/AndOrController.js +0 -222
- package/cjs/components/ConditionController/ConditionController.js +0 -100
- package/cjs/components/DisplayOutput/DisplayOutput.js +0 -93
- package/cjs/components/DragContainerController/DragContainerController.js +0 -45
- package/cjs/components/DragControllerRow/DragControllerRow.js +0 -47
- package/cjs/components/FieldControllerRow/FieldControllerRow.js +0 -33
- package/cjs/components/Nestable/Nestable.js +0 -320
- package/cjs/components/Nestable/NestableItem.js +0 -111
- package/cjs/components/Nestable/actions/events.js +0 -166
- package/cjs/components/Nestable/actions/getItemOptions.js +0 -28
- package/cjs/components/Nestable/actions/getPaths.js +0 -124
- package/cjs/components/Nestable/actions/index.js +0 -28
- package/cjs/components/Nestable/actions/moveItem.js +0 -54
- package/cjs/components/Nestable/actions/paths.js +0 -126
- package/cjs/components/Nestable/actions/tryDecreaseDepth.js +0 -35
- package/cjs/components/Nestable/actions/tryIncreaseDepth.js +0 -38
- package/cjs/components/Nestable/index.js +0 -7
- package/cjs/components/QueryBuilderContext/QueryBuilderContext.js +0 -13
- package/cjs/components/QueryBuilderImpl.js +0 -309
- package/cjs/components/QueryBuilderItem/QueryBuilderItem.js +0 -90
- package/cjs/components/QueryBuilderRow/QueryBuilderRow.js +0 -276
- package/cjs/components/ToolBarAnimation/ToolBarAnimation.js +0 -29
- package/cjs/components/format/format.js +0 -33
- package/cjs/components/format/sqlFormat.js +0 -73
- package/cjs/components/format/sqlSafeFormat.js +0 -81
- package/cjs/components/format/xmlFormat.js +0 -73
- package/cjs/components/helpers/actions.js +0 -277
- package/cjs/components/helpers/constants.js +0 -11
- package/cjs/components/helpers/dependencies.js +0 -84
- package/cjs/components/helpers/selectors.js +0 -101
- package/cjs/components/helpers/store.js +0 -177
- package/cjs/components/helpers/types.js +0 -64
- package/cjs/index.js +0 -29
- package/cjs/propTypes.js +0 -97
- package/esm/DSQueryBuilder.js +0 -74
- package/esm/components/AndOrController/AndOrController.js +0 -213
- package/esm/components/ConditionController/ConditionController.js +0 -92
- package/esm/components/DisplayOutput/DisplayOutput.js +0 -87
- package/esm/components/DragContainerController/DragContainerController.js +0 -39
- package/esm/components/DragControllerRow/DragControllerRow.js +0 -39
- package/esm/components/FieldControllerRow/FieldControllerRow.js +0 -27
- package/esm/components/Nestable/Nestable.js +0 -312
- package/esm/components/Nestable/NestableItem.js +0 -103
- package/esm/components/Nestable/actions/events.js +0 -153
- package/esm/components/Nestable/actions/index.js +0 -6
- package/esm/components/Nestable/actions/moveItem.js +0 -45
- package/esm/components/Nestable/actions/tryDecreaseDepth.js +0 -31
- package/esm/components/Nestable/index.js +0 -2
- package/esm/components/QueryBuilderContext/QueryBuilderContext.js +0 -5
- package/esm/components/QueryBuilderImpl.js +0 -301
- package/esm/components/QueryBuilderItem/QueryBuilderItem.js +0 -83
- package/esm/components/QueryBuilderRow/QueryBuilderRow.js +0 -268
- package/esm/components/ToolBarAnimation/ToolBarAnimation.js +0 -20
- package/esm/components/format/format.js +0 -31
- package/esm/components/format/sqlFormat.js +0 -69
- package/esm/components/format/sqlSafeFormat.js +0 -76
- package/esm/components/format/xmlFormat.js +0 -69
- package/esm/components/helpers/actions.js +0 -254
- package/esm/components/helpers/constants.js +0 -5
- package/esm/components/helpers/dependencies.js +0 -60
- package/esm/components/helpers/selectors.js +0 -93
- package/esm/components/helpers/store.js +0 -171
- package/esm/components/helpers/types.js +0 -52
- package/esm/index.js +0 -4
- package/esm/propTypes.js +0 -93
- package/types/DSQueryBuilder.d.ts +0 -211
- package/types/components/AndOrController/AndOrController.d.ts +0 -38
- package/types/components/ConditionController/ConditionController.d.ts +0 -16
- package/types/components/DisplayOutput/DisplayOutput.d.ts +0 -7
- package/types/components/DragContainerController/DragContainerController.d.ts +0 -9
- package/types/components/DragControllerRow/DragControllerRow.d.ts +0 -9
- package/types/components/FieldControllerRow/FieldControllerRow.d.ts +0 -9
- package/types/components/Nestable/Nestable.d.ts +0 -51
- package/types/components/Nestable/NestableItem.d.ts +0 -12
- package/types/components/Nestable/actions/events.d.ts +0 -6
- package/types/components/Nestable/actions/getItemOptions.d.ts +0 -11
- package/types/components/Nestable/actions/getPaths.d.ts +0 -5
- package/types/components/Nestable/actions/index.d.ts +0 -6
- package/types/components/Nestable/actions/moveItem.d.ts +0 -5
- package/types/components/Nestable/actions/paths.d.ts +0 -5
- package/types/components/Nestable/actions/tryDecreaseDepth.d.ts +0 -1
- package/types/components/Nestable/actions/tryIncreaseDepth.d.ts +0 -1
- package/types/components/Nestable/index.d.ts +0 -2
- package/types/components/QueryBuilderContext/QueryBuilderContext.d.ts +0 -2
- package/types/components/QueryBuilderImpl.d.ts +0 -49
- package/types/components/QueryBuilderItem/QueryBuilderItem.d.ts +0 -5
- package/types/components/QueryBuilderRow/QueryBuilderRow.d.ts +0 -12
- package/types/components/ToolBarAnimation/ToolBarAnimation.d.ts +0 -3
- package/types/components/format/format.d.ts +0 -26
- package/types/components/format/sqlFormat.d.ts +0 -5
- package/types/components/format/sqlSafeFormat.d.ts +0 -6
- package/types/components/format/xmlFormat.d.ts +0 -5
- package/types/components/helpers/actions.d.ts +0 -63
- package/types/components/helpers/constants.d.ts +0 -3
- package/types/components/helpers/dependencies.d.ts +0 -1
- package/types/components/helpers/selectors.d.ts +0 -20
- package/types/components/helpers/store.d.ts +0 -144
- package/types/components/helpers/types.d.ts +0 -50
- package/types/index.d.ts +0 -2
- package/types/propTypes.d.ts +0 -156
|
@@ -1,268 +0,0 @@
|
|
|
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';
|
|
6
|
-
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
7
|
-
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
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';
|
|
11
|
-
import React, { Component } from 'react';
|
|
12
|
-
import { AlertsDetail } from '@elliemae/ds-icons';
|
|
13
|
-
import { DSTooltipV3 } from '@elliemae/ds-tooltip';
|
|
14
|
-
import { convertPropToCssClassName } from '@elliemae/ds-classnames';
|
|
15
|
-
import { resolveDependencies } from '../helpers/dependencies.js';
|
|
16
|
-
import ConditionController from '../ConditionController/ConditionController.js';
|
|
17
|
-
import DragControllerRow from '../DragControllerRow/DragControllerRow.js';
|
|
18
|
-
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
19
|
-
|
|
20
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
21
|
-
|
|
22
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
23
|
-
|
|
24
|
-
const RenderField = _ref => {
|
|
25
|
-
let {
|
|
26
|
-
target,
|
|
27
|
-
component,
|
|
28
|
-
valueProp,
|
|
29
|
-
additionalInfo,
|
|
30
|
-
handleMouseEnterInput,
|
|
31
|
-
handleMouseLeaveInput,
|
|
32
|
-
onChangeHandler,
|
|
33
|
-
hasError
|
|
34
|
-
} = _ref;
|
|
35
|
-
const ref = React.useRef();
|
|
36
|
-
const id = React.useMemo(() => "el_".concat(String.fromCharCode(65 + Math.floor(Math.random() * 26))), []);
|
|
37
|
-
return /*#__PURE__*/_jsx("div", {
|
|
38
|
-
className: "em-ds-query-builder-row-input child-type-".concat(target, " ").concat(hasError && hasError.error ? 'row-input-error' : ''),
|
|
39
|
-
onMouseDownCapture: () => {
|
|
40
|
-
var _ref$current;
|
|
41
|
-
|
|
42
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
43
|
-
const _refInput = (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.querySelector("#".concat(id));
|
|
44
|
-
|
|
45
|
-
if (_refInput && _refInput.focus) setTimeout(_refInput.focus());
|
|
46
|
-
handleMouseEnterInput();
|
|
47
|
-
},
|
|
48
|
-
onMouseEnter: () => handleMouseEnterInput(),
|
|
49
|
-
onMouseLeave: () => handleMouseLeaveInput()
|
|
50
|
-
}, void 0, /*#__PURE__*/jsx("div", {
|
|
51
|
-
ref: ref,
|
|
52
|
-
className: "em-ds-query-builder-row__input-controller",
|
|
53
|
-
children: /*#__PURE__*/React.cloneElement(component, {
|
|
54
|
-
id,
|
|
55
|
-
onChange: (e, extraData) => onChangeHandler(e, target, extraData),
|
|
56
|
-
value: valueProp != null ? valueProp : '',
|
|
57
|
-
checked: valueProp === true,
|
|
58
|
-
additionalInfo: additionalInfo ? additionalInfo[target] : additionalInfo || {},
|
|
59
|
-
'aria-invalid': Boolean(hasError)
|
|
60
|
-
})
|
|
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", {
|
|
68
|
-
tabIndex: 0,
|
|
69
|
-
className: "row-icon-alert",
|
|
70
|
-
"data-testid": "qb-error-state-icon",
|
|
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(
|
|
78
|
-
// () => (
|
|
79
|
-
// <div
|
|
80
|
-
// className={`em-ds-query-builder-row-input child-type-${target}`}
|
|
81
|
-
// onMouseDownCapture={() => {
|
|
82
|
-
// // eslint-disable-next-line no-underscore-dangle
|
|
83
|
-
// const _refInput = ref.current.querySelector(`#${id}`);
|
|
84
|
-
// if (_refInput && _refInput.focus) setTimeout(_refInput.focus());
|
|
85
|
-
// handleMouseEnterInput();
|
|
86
|
-
// }}
|
|
87
|
-
// onMouseEnter={() => handleMouseEnterInput()}
|
|
88
|
-
// onMouseLeave={() => handleMouseLeaveInput()}
|
|
89
|
-
// >
|
|
90
|
-
// <div ref={ref} className="em-ds-query-builder-row__input-controller">
|
|
91
|
-
// {React.cloneElement(component, {
|
|
92
|
-
// id,
|
|
93
|
-
// onChange: (e, extraData) => onChangeHandler(e, target, extraData),
|
|
94
|
-
// value: valueProp != null ? valueProp : '',
|
|
95
|
-
// checked: valueProp === true,
|
|
96
|
-
// additionalInfo: additionalInfo ? additionalInfo[target] : {},
|
|
97
|
-
// })}
|
|
98
|
-
// </div>
|
|
99
|
-
// </div>
|
|
100
|
-
// ),
|
|
101
|
-
// [target, component, valueProp, additionalInfo],
|
|
102
|
-
// );
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
class QueryBuilderRow extends Component {
|
|
106
|
-
constructor(props) {
|
|
107
|
-
super(props);
|
|
108
|
-
|
|
109
|
-
this.handleMouseEnterRow = () => {};
|
|
110
|
-
|
|
111
|
-
this.handleMouseLeaveRow = () => {
|
|
112
|
-
this.handleTooltipRow(false);
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
this.handleMouseEnterInput = () => {
|
|
116
|
-
const {
|
|
117
|
-
setDraggableItems
|
|
118
|
-
} = this.props;
|
|
119
|
-
setDraggableItems(false);
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
this.handleMouseLeaveInput = () => {
|
|
123
|
-
const {
|
|
124
|
-
setDraggableItems
|
|
125
|
-
} = this.props;
|
|
126
|
-
setDraggableItems(true);
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
this.handleTooltipRow = isOpen => {
|
|
130
|
-
this.setState({
|
|
131
|
-
isOpen
|
|
132
|
-
});
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
this.state = {
|
|
136
|
-
isOpen: false
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
onChangeHandler(e, target, extraData, hasError) {
|
|
141
|
-
const {
|
|
142
|
-
handleFieldChange,
|
|
143
|
-
idFilter,
|
|
144
|
-
idGroup,
|
|
145
|
-
additionalInfo,
|
|
146
|
-
field,
|
|
147
|
-
operator,
|
|
148
|
-
value
|
|
149
|
-
} = this.props;
|
|
150
|
-
let eventValue = e;
|
|
151
|
-
|
|
152
|
-
if (e && e.target) {
|
|
153
|
-
const {
|
|
154
|
-
value,
|
|
155
|
-
checked
|
|
156
|
-
} = e.target;
|
|
157
|
-
if (value || value === '' || typeof value === 'boolean') eventValue = value;else eventValue = checked || e;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
handleFieldChange({
|
|
161
|
-
[target]: eventValue,
|
|
162
|
-
idFilter,
|
|
163
|
-
idGroup,
|
|
164
|
-
additionalInfo: _objectSpread(_objectSpread({}, additionalInfo), {}, {
|
|
165
|
-
[target]: extraData,
|
|
166
|
-
["".concat(target, "_error")]: hasError,
|
|
167
|
-
["".concat(target, "_touched")]: true
|
|
168
|
-
}),
|
|
169
|
-
target
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
render() {
|
|
174
|
-
const {
|
|
175
|
-
isOpen
|
|
176
|
-
} = this.state;
|
|
177
|
-
const {
|
|
178
|
-
fields,
|
|
179
|
-
onAddFilter,
|
|
180
|
-
onRemoveFilter,
|
|
181
|
-
onAddRuleContainer,
|
|
182
|
-
field,
|
|
183
|
-
operator,
|
|
184
|
-
value,
|
|
185
|
-
additionalInfo,
|
|
186
|
-
items,
|
|
187
|
-
singleRow,
|
|
188
|
-
toolTipZIndex,
|
|
189
|
-
error
|
|
190
|
-
} = this.props;
|
|
191
|
-
const {
|
|
192
|
-
cssClassName,
|
|
193
|
-
classNameBlock,
|
|
194
|
-
classNameElement
|
|
195
|
-
} = convertPropToCssClassName('query-builder-row', isOpen ? 'has-open-tooltip' : 'has-close-tooltip', singleRow ? 'is-single-row' : 'is-multiple-row');
|
|
196
|
-
const test = resolveDependencies({
|
|
197
|
-
field,
|
|
198
|
-
operator,
|
|
199
|
-
value,
|
|
200
|
-
additionalInfo
|
|
201
|
-
}, fields);
|
|
202
|
-
const gridTemplateColumns = ['24px', ...test.map(r => {
|
|
203
|
-
if (r.handleWidth) {
|
|
204
|
-
return r.handleWidth(this.props[r.target], {
|
|
205
|
-
field,
|
|
206
|
-
operator,
|
|
207
|
-
value,
|
|
208
|
-
additionalInfo
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
return 'minmax(0, 1fr)';
|
|
213
|
-
}), '30px'].join(' ');
|
|
214
|
-
return /*#__PURE__*/jsx(Fragment, {
|
|
215
|
-
children: /*#__PURE__*/_jsx("div", {
|
|
216
|
-
className: cssClassName,
|
|
217
|
-
onMouseEnter: this.handleMouseEnterRow,
|
|
218
|
-
onMouseLeave: this.handleMouseLeaveRow,
|
|
219
|
-
style: {
|
|
220
|
-
gridTemplateColumns
|
|
221
|
-
}
|
|
222
|
-
}, void 0, !singleRow && /*#__PURE__*/_jsx(DragControllerRow, {
|
|
223
|
-
className: classNameElement('drag-controller'),
|
|
224
|
-
onMouseDownCapture: () => this.handleMouseLeaveInput()
|
|
225
|
-
}), test.map(renderField => {
|
|
226
|
-
const {
|
|
227
|
-
target,
|
|
228
|
-
component
|
|
229
|
-
} = renderField;
|
|
230
|
-
const {
|
|
231
|
-
[target]: valueProp
|
|
232
|
-
} = this.props;
|
|
233
|
-
const isTouched = additionalInfo && additionalInfo["".concat(target, "_touched")];
|
|
234
|
-
const hasError = renderField && renderField.validation ? renderField.validation(valueProp, {
|
|
235
|
-
field,
|
|
236
|
-
operator,
|
|
237
|
-
value,
|
|
238
|
-
additionalInfo
|
|
239
|
-
}) : false;
|
|
240
|
-
return /*#__PURE__*/_jsx(RenderField, {
|
|
241
|
-
component: component,
|
|
242
|
-
target: target,
|
|
243
|
-
valueProp: valueProp,
|
|
244
|
-
onChangeHandler: (e, target, extraData) => {
|
|
245
|
-
this.onChangeHandler(e, target, extraData, hasError);
|
|
246
|
-
},
|
|
247
|
-
handleMouseEnterInput: this.handleMouseEnterInput,
|
|
248
|
-
handleMouseLeaveInput: this.handleMouseLeaveInput,
|
|
249
|
-
additionalInfo: additionalInfo,
|
|
250
|
-
hasError: isTouched && hasError
|
|
251
|
-
});
|
|
252
|
-
}), !singleRow && /*#__PURE__*/_jsx("div", {
|
|
253
|
-
className: classNameBlock('controller')
|
|
254
|
-
}, void 0, /*#__PURE__*/_jsx(ConditionController, {
|
|
255
|
-
handleTooltipRow: this.handleTooltipRow,
|
|
256
|
-
isOpen: isOpen,
|
|
257
|
-
items: items,
|
|
258
|
-
onAddFilter: onAddFilter,
|
|
259
|
-
onAddRuleContainer: onAddRuleContainer,
|
|
260
|
-
onRemoveFilter: onRemoveFilter,
|
|
261
|
-
toolTipZIndex: toolTipZIndex
|
|
262
|
-
})))
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
export { QueryBuilderRow as default };
|
|
@@ -1,20 +0,0 @@
|
|
|
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';
|
|
6
|
-
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
7
|
-
import { createElement } from 'react';
|
|
8
|
-
import GrowRight from '@elliemae/ds-shared/Animations/GrowRight';
|
|
9
|
-
|
|
10
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11
|
-
|
|
12
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
|
-
|
|
14
|
-
const ToolBarAnimation = props => /*#__PURE__*/createElement(GrowRight, _objectSpread(_objectSpread({}, props), {}, {
|
|
15
|
-
key: "popper-animation-key",
|
|
16
|
-
from: 0.5,
|
|
17
|
-
to: 1
|
|
18
|
-
}));
|
|
19
|
-
|
|
20
|
-
export { ToolBarAnimation };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { sqlFormat } from './sqlFormat.js';
|
|
2
|
-
import { xmlFormat } from './xmlFormat.js';
|
|
3
|
-
import { sqlSafeFormat } from './sqlSafeFormat.js';
|
|
4
|
-
|
|
5
|
-
class QueryBuilderFormat {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.format = {
|
|
8
|
-
defaultFormat: query => query,
|
|
9
|
-
sqlFormat,
|
|
10
|
-
xmlFormat,
|
|
11
|
-
sqlSafeFormat
|
|
12
|
-
};
|
|
13
|
-
this.currentFormat = 'sqlFormat';
|
|
14
|
-
|
|
15
|
-
this.setDefaultFormat = formatName => {
|
|
16
|
-
if (this.format[formatName]) this.currentFormat = formatName;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
this.addFormat = (formatName, format) => this.format[formatName] = format;
|
|
20
|
-
|
|
21
|
-
this.run = (query, formatName) => {
|
|
22
|
-
if (this.format[formatName]) return this.format[formatName](query);
|
|
23
|
-
return this.format[this.currentFormat](query);
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
var QueryBuilderFormat$1 = new QueryBuilderFormat();
|
|
30
|
-
|
|
31
|
-
export { QueryBuilderFormat$1 as default };
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
2
|
-
import 'core-js/modules/esnext.iterator.map.js';
|
|
3
|
-
import { QB_OPERATOR_TYPES } from '../helpers/types.js';
|
|
4
|
-
|
|
5
|
-
const conditionSql = (condition, value) => {
|
|
6
|
-
const {
|
|
7
|
-
EQUAL,
|
|
8
|
-
NOT_EQUAL,
|
|
9
|
-
GREATER_THAN,
|
|
10
|
-
LESS_THAN,
|
|
11
|
-
CONTAINS,
|
|
12
|
-
NOT_CONTAINS,
|
|
13
|
-
BETWEEN,
|
|
14
|
-
GREATER_THAN_OR_EQUAL,
|
|
15
|
-
LESS_THAN_OR_EQUAL,
|
|
16
|
-
START_WITH
|
|
17
|
-
} = QB_OPERATOR_TYPES;
|
|
18
|
-
if (condition === EQUAL) return " = '".concat(value, "'");
|
|
19
|
-
if (condition === NOT_EQUAL) return " <> '".concat(value, "'");
|
|
20
|
-
if (condition === GREATER_THAN) return " > ".concat(value);
|
|
21
|
-
if (condition === LESS_THAN) return " < ".concat(value);
|
|
22
|
-
if (condition === CONTAINS) return " LIKE '%".concat(value, "%'");
|
|
23
|
-
if (condition === NOT_CONTAINS) return " NOT LIKE '%".concat(value, "%'");
|
|
24
|
-
if (condition === BETWEEN) return " BETWEEN ".concat(value[0], " AND ").concat(value[1], " ");
|
|
25
|
-
if (condition === GREATER_THAN_OR_EQUAL) return " >= ".concat(value);
|
|
26
|
-
if (condition === LESS_THAN_OR_EQUAL) return " <= ".concat(value);
|
|
27
|
-
if (condition === START_WITH) return " LIKE '".concat(value, "%'");
|
|
28
|
-
return condition;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
const renderFilterSQl = filter => {
|
|
32
|
-
const {
|
|
33
|
-
field,
|
|
34
|
-
operator,
|
|
35
|
-
value
|
|
36
|
-
} = filter.element;
|
|
37
|
-
return "".concat(field, " ").concat(conditionSql(operator, value) || '');
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
const sqlFormat = _ref => {
|
|
41
|
-
let {
|
|
42
|
-
main,
|
|
43
|
-
mapGroups,
|
|
44
|
-
items
|
|
45
|
-
} = _ref;
|
|
46
|
-
|
|
47
|
-
const groupSql = (item, idGroup) => {
|
|
48
|
-
if (idGroup === main) {
|
|
49
|
-
const groupCondition = mapGroups[idGroup].condition === true ? 'AND' : 'OR';
|
|
50
|
-
return " ( ".concat(filterSql(item, groupCondition), " ) "); // eslint-disable-line
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const groupCondition = item.element.condition === true ? 'AND' : 'OR';
|
|
54
|
-
return " ( ".concat(filterSql(item.children, groupCondition), " ) "); // eslint-disable-line
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
const filterSql = (filters, groupCondition) => {
|
|
58
|
-
const filterGroup = filters.map(filter => {
|
|
59
|
-
if (filter.element.type === 'filter') return " ".concat(renderFilterSQl(filter), " ");
|
|
60
|
-
return " ".concat(groupSql(filter) || '', " ");
|
|
61
|
-
});
|
|
62
|
-
return filterGroup.join(groupCondition);
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
const sql = " FROM [TABLE_NAME] WHERE ".concat(groupSql(items, main) || '', " ");
|
|
66
|
-
return sql;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export { sqlFormat };
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
2
|
-
import 'core-js/modules/esnext.iterator.map.js';
|
|
3
|
-
import { QB_OPERATOR_TYPES } from '../helpers/types.js';
|
|
4
|
-
|
|
5
|
-
const specialChar = /[ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/;
|
|
6
|
-
|
|
7
|
-
const conditionSql = (condition, value) => {
|
|
8
|
-
const {
|
|
9
|
-
EQUAL,
|
|
10
|
-
NOT_EQUAL,
|
|
11
|
-
GREATER_THAN,
|
|
12
|
-
LESS_THAN,
|
|
13
|
-
CONTAINS,
|
|
14
|
-
NOT_CONTAINS,
|
|
15
|
-
BETWEEN,
|
|
16
|
-
GREATER_THAN_OR_EQUAL,
|
|
17
|
-
LESS_THAN_OR_EQUAL,
|
|
18
|
-
START_WITH
|
|
19
|
-
} = QB_OPERATOR_TYPES; // eslint-disable-next-line no-restricted-globals
|
|
20
|
-
|
|
21
|
-
const valueDisplay = isNaN(value) ? "'".concat(value, "'") : value;
|
|
22
|
-
if (condition === EQUAL) return " = ".concat(valueDisplay);
|
|
23
|
-
if (condition === NOT_EQUAL) return " <> ".concat(valueDisplay);
|
|
24
|
-
if (condition === GREATER_THAN) return " > ".concat(valueDisplay);
|
|
25
|
-
if (condition === LESS_THAN) return " < ".concat(valueDisplay);
|
|
26
|
-
if (condition === CONTAINS) return " LIKE '%".concat(value, "%'");
|
|
27
|
-
if (condition === NOT_CONTAINS) return " NOT LIKE '%".concat(value, "%'");
|
|
28
|
-
if (condition === BETWEEN) return " BETWEEN ".concat(value[0], " AND ").concat(value[1], " ");
|
|
29
|
-
if (condition === GREATER_THAN_OR_EQUAL) return " >= ".concat(value);
|
|
30
|
-
if (condition === LESS_THAN_OR_EQUAL) return " <= ".concat(value);
|
|
31
|
-
if (condition === START_WITH) return " LIKE '".concat(value, "%'");
|
|
32
|
-
return condition;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
const renderFilterSQl = filter => {
|
|
36
|
-
const {
|
|
37
|
-
field,
|
|
38
|
-
operator,
|
|
39
|
-
value
|
|
40
|
-
} = filter.element; // eslint-disable-next-line no-restricted-globals
|
|
41
|
-
|
|
42
|
-
const fieldDisplay = // eslint-disable-next-line no-restricted-globals
|
|
43
|
-
/[.]/.test(field) || !isNaN(field) ? "\\\"".concat(field, "\\\"") : field;
|
|
44
|
-
return "".concat(fieldDisplay, " ").concat(conditionSql(operator, value) || '');
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
const sqlSafeFormat = _ref => {
|
|
48
|
-
let {
|
|
49
|
-
main,
|
|
50
|
-
mapGroups,
|
|
51
|
-
items
|
|
52
|
-
} = _ref;
|
|
53
|
-
|
|
54
|
-
const groupSql = (item, idGroup) => {
|
|
55
|
-
if (idGroup === main) {
|
|
56
|
-
const groupCondition = mapGroups[idGroup].condition === true ? 'AND' : 'OR';
|
|
57
|
-
return " ( ".concat(filterSql(item, groupCondition), " ) "); // eslint-disable-line
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
const groupCondition = item.element.condition === true ? 'AND' : 'OR';
|
|
61
|
-
return " ( ".concat(filterSql(item.children, groupCondition), " ) "); // eslint-disable-line
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
const filterSql = (filters, groupCondition) => {
|
|
65
|
-
const filterGroup = filters.map(filter => {
|
|
66
|
-
if (filter.element.type === 'filter') return " ".concat(renderFilterSQl(filter), " ");
|
|
67
|
-
return " ".concat(groupSql(filter) || '', " ");
|
|
68
|
-
});
|
|
69
|
-
return filterGroup.join(groupCondition);
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
const sql = " FROM [TABLE_NAME] WHERE ".concat(groupSql(items, main) || '', " ");
|
|
73
|
-
return sql;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
export { specialChar, sqlSafeFormat };
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import 'core-js/modules/esnext.async-iterator.map.js';
|
|
2
|
-
import 'core-js/modules/esnext.iterator.map.js';
|
|
3
|
-
import { QB_OPERATOR_TYPES } from '../helpers/types.js';
|
|
4
|
-
|
|
5
|
-
const conditionSql = (condition, value) => {
|
|
6
|
-
const {
|
|
7
|
-
EQUAL,
|
|
8
|
-
NOT_EQUAL,
|
|
9
|
-
GREATER_THAN,
|
|
10
|
-
LESS_THAN,
|
|
11
|
-
CONTAINS,
|
|
12
|
-
NOT_CONTAINS,
|
|
13
|
-
BETWEEN,
|
|
14
|
-
GREATER_THAN_OR_EQUAL,
|
|
15
|
-
LESS_THAN_OR_EQUAL,
|
|
16
|
-
START_WITH
|
|
17
|
-
} = QB_OPERATOR_TYPES;
|
|
18
|
-
if (condition === EQUAL) return "<condition>EQUAL</condition><value>".concat(value, "</value>");
|
|
19
|
-
if (condition === NOT_EQUAL) return "<condition>NOT_EQUAL</condition><value>".concat(value, "</value>");
|
|
20
|
-
if (condition === GREATER_THAN) return "<condition>GREATER_THAN</condition><value>".concat(value, "</value>");
|
|
21
|
-
if (condition === LESS_THAN) return "<condition>LESS_THAN</condition><value>".concat(value, "</value>");
|
|
22
|
-
if (condition === CONTAINS) return "<condition>LIKE</condition><value>".concat(value, "</value>");
|
|
23
|
-
if (condition === NOT_CONTAINS) return "<condition>NOT_LIKE</condition><value>".concat(value, "</value>");
|
|
24
|
-
if (condition === BETWEEN) return "<condition>NOT_LIKE</condition><value><from>".concat(value[0], "</from><to>").concat(value[1], "</to></value>");
|
|
25
|
-
if (condition === GREATER_THAN_OR_EQUAL) return "<condition>GREATER_THAN_OR_EQUAL</condition><value>".concat(value, "</value>");
|
|
26
|
-
if (condition === LESS_THAN_OR_EQUAL) return "<condition>LESS_THAN_OR_EQUAL</condition><value>".concat(value, "</value>");
|
|
27
|
-
if (condition === START_WITH) return "<condition>GREATER_THAN</condition><value>".concat(value, "</value>");
|
|
28
|
-
return condition;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
const renderFilterSQl = filter => {
|
|
32
|
-
const {
|
|
33
|
-
field,
|
|
34
|
-
operator,
|
|
35
|
-
value
|
|
36
|
-
} = filter.element;
|
|
37
|
-
return "<filter><field>".concat(field, "</field>").concat(conditionSql(operator, value) || '', "</filter>");
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
const xmlFormat = _ref => {
|
|
41
|
-
let {
|
|
42
|
-
main,
|
|
43
|
-
mapGroups,
|
|
44
|
-
items
|
|
45
|
-
} = _ref;
|
|
46
|
-
|
|
47
|
-
const groupXML = (item, idGroup) => {
|
|
48
|
-
if (idGroup === main) {
|
|
49
|
-
const groupCondition = mapGroups[idGroup].condition === true ? 'AND' : 'OR';
|
|
50
|
-
return "<group value=\"".concat(groupCondition, "\">").concat(filterXML(item), "</group>"); // eslint-disable-line
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const groupCondition = item.element.condition === true ? 'AND' : 'OR';
|
|
54
|
-
return "<group value=\"".concat(groupCondition, "\">").concat(filterXML(item.children), "</group>"); // eslint-disable-line
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
const filterXML = filters => {
|
|
58
|
-
const filterGroup = filters.map(filter => {
|
|
59
|
-
if (filter.element.type === 'filter') return "".concat(renderFilterSQl(filter) || '', " ");
|
|
60
|
-
return " ".concat(groupXML(filter), " ");
|
|
61
|
-
});
|
|
62
|
-
return filterGroup.join('');
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
const xml = "<xml><query>".concat(groupXML(items, main) || '', "</query></xml>");
|
|
66
|
-
return xml;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export { xmlFormat };
|