@elliemae/ds-query-builder 2.2.0-next.6 → 2.3.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/DSQueryBuilder.js +117 -97
- package/cjs/DSQueryBuilder.js.map +7 -0
- package/cjs/components/AndOrController/AndOrController.js +148 -162
- package/cjs/components/AndOrController/AndOrController.js.map +7 -0
- package/cjs/components/ConditionController/ConditionController.js +88 -72
- package/cjs/components/ConditionController/ConditionController.js.map +7 -0
- package/cjs/components/DisplayOutput/DisplayOutput.js +63 -68
- package/cjs/components/DisplayOutput/DisplayOutput.js.map +7 -0
- package/cjs/components/DragContainerController/DragContainerController.js +61 -41
- package/cjs/components/DragContainerController/DragContainerController.js.map +7 -0
- package/cjs/components/DragControllerRow/DragControllerRow.js +50 -46
- package/cjs/components/DragControllerRow/DragControllerRow.js.map +7 -0
- package/cjs/components/FieldControllerRow/FieldControllerRow.js +54 -32
- package/cjs/components/FieldControllerRow/FieldControllerRow.js.map +7 -0
- package/cjs/components/Nestable/Nestable.js +143 -209
- package/cjs/components/Nestable/Nestable.js.map +7 -0
- package/cjs/components/Nestable/NestableItem.js +98 -90
- package/cjs/components/Nestable/NestableItem.js.map +7 -0
- package/cjs/components/Nestable/actions/events.js +72 -95
- package/cjs/components/Nestable/actions/events.js.map +7 -0
- package/cjs/components/Nestable/actions/getItemOptions.js +36 -15
- package/cjs/components/Nestable/actions/getItemOptions.js.map +7 -0
- package/cjs/components/Nestable/actions/getPaths.js +46 -51
- package/cjs/components/Nestable/actions/getPaths.js.map +7 -0
- package/cjs/components/Nestable/actions/index.js +42 -28
- package/cjs/components/Nestable/actions/index.js.map +7 -0
- package/cjs/components/Nestable/actions/moveItem.js +44 -42
- package/cjs/components/Nestable/actions/moveItem.js.map +7 -0
- package/cjs/components/Nestable/actions/paths.js +48 -55
- package/cjs/components/Nestable/actions/paths.js.map +7 -0
- package/cjs/components/Nestable/actions/tryDecreaseDepth.js +39 -23
- package/cjs/components/Nestable/actions/tryDecreaseDepth.js.map +7 -0
- package/cjs/components/Nestable/actions/tryIncreaseDepth.js +39 -26
- package/cjs/components/Nestable/actions/tryIncreaseDepth.js.map +7 -0
- package/cjs/components/Nestable/index.js +36 -7
- package/cjs/components/Nestable/index.js.map +7 -0
- package/cjs/components/QueryBuilderContext/QueryBuilderContext.js +36 -13
- package/cjs/components/QueryBuilderContext/QueryBuilderContext.js.map +7 -0
- package/cjs/components/QueryBuilderImpl.js +118 -202
- package/cjs/components/QueryBuilderImpl.js.map +7 -0
- package/cjs/components/QueryBuilderItem/QueryBuilderItem.js +80 -78
- package/cjs/components/QueryBuilderItem/QueryBuilderItem.js.map +7 -0
- package/cjs/components/QueryBuilderRow/QueryBuilderRow.js +154 -211
- package/cjs/components/QueryBuilderRow/QueryBuilderRow.js.map +7 -0
- package/cjs/components/ToolBarAnimation/ToolBarAnimation.js +39 -26
- package/cjs/components/ToolBarAnimation/ToolBarAnimation.js.map +7 -0
- package/cjs/components/format/format.js +48 -22
- package/cjs/components/format/format.js.map +7 -0
- package/cjs/components/format/sqlFormat.js +69 -48
- package/cjs/components/format/sqlFormat.js.map +7 -0
- package/cjs/components/format/sqlSafeFormat.js +72 -55
- package/cjs/components/format/sqlSafeFormat.js.map +7 -0
- package/cjs/components/format/xmlFormat.js +71 -50
- package/cjs/components/format/xmlFormat.js.map +7 -0
- package/cjs/components/helpers/actions.js +151 -186
- package/cjs/components/helpers/actions.js.map +7 -0
- package/cjs/components/helpers/constants.js +36 -8
- package/cjs/components/helpers/constants.js.map +7 -0
- package/cjs/components/helpers/dependencies.js +49 -64
- package/cjs/components/helpers/dependencies.js.map +7 -0
- package/cjs/components/helpers/selectors.js +161 -101
- package/cjs/components/helpers/selectors.js.map +7 -0
- package/cjs/components/helpers/store.js +86 -104
- package/cjs/components/helpers/store.js.map +7 -0
- package/cjs/components/helpers/types.js +72 -44
- package/cjs/components/helpers/types.js.map +7 -0
- package/cjs/index.js +36 -29
- package/cjs/index.js.map +7 -0
- package/cjs/propTypes.js +102 -94
- package/cjs/propTypes.js.map +7 -0
- package/esm/DSQueryBuilder.js +103 -72
- package/esm/DSQueryBuilder.js.map +7 -0
- package/esm/components/AndOrController/AndOrController.js +113 -147
- package/esm/components/AndOrController/AndOrController.js.map +7 -0
- package/esm/components/ConditionController/ConditionController.js +57 -62
- package/esm/components/ConditionController/ConditionController.js.map +7 -0
- package/esm/components/DisplayOutput/DisplayOutput.js +31 -59
- package/esm/components/DisplayOutput/DisplayOutput.js.map +7 -0
- package/esm/components/DragContainerController/DragContainerController.js +32 -35
- package/esm/components/DragContainerController/DragContainerController.js.map +7 -0
- package/esm/components/DragControllerRow/DragControllerRow.js +21 -38
- package/esm/components/DragControllerRow/DragControllerRow.js.map +7 -0
- package/esm/components/FieldControllerRow/FieldControllerRow.js +25 -26
- package/esm/components/FieldControllerRow/FieldControllerRow.js.map +7 -0
- package/esm/components/Nestable/Nestable.js +115 -186
- package/esm/components/Nestable/Nestable.js.map +7 -0
- package/esm/components/Nestable/NestableItem.js +69 -82
- package/esm/components/Nestable/NestableItem.js.map +7 -0
- package/esm/components/Nestable/actions/events.js +45 -79
- package/esm/components/Nestable/actions/events.js.map +7 -0
- package/esm/components/Nestable/actions/getItemOptions.js +7 -11
- package/esm/components/Nestable/actions/getItemOptions.js.map +7 -0
- package/esm/components/Nestable/actions/getPaths.js +17 -43
- package/esm/components/Nestable/actions/getPaths.js.map +7 -0
- package/esm/components/Nestable/actions/index.js +13 -6
- package/esm/components/Nestable/actions/index.js.map +7 -0
- package/esm/components/Nestable/actions/moveItem.js +13 -31
- package/esm/components/Nestable/actions/moveItem.js.map +7 -0
- package/esm/components/Nestable/actions/paths.js +19 -47
- package/esm/components/Nestable/actions/paths.js.map +7 -0
- package/esm/components/Nestable/actions/tryDecreaseDepth.js +10 -19
- package/esm/components/Nestable/actions/tryDecreaseDepth.js.map +7 -0
- package/esm/components/Nestable/actions/tryIncreaseDepth.js +10 -22
- package/esm/components/Nestable/actions/tryIncreaseDepth.js.map +7 -0
- package/esm/components/Nestable/index.js +7 -2
- package/esm/components/Nestable/index.js.map +7 -0
- package/esm/components/QueryBuilderContext/QueryBuilderContext.js +7 -5
- package/esm/components/QueryBuilderContext/QueryBuilderContext.js.map +7 -0
- package/esm/components/QueryBuilderImpl.js +82 -187
- package/esm/components/QueryBuilderImpl.js.map +7 -0
- package/esm/components/QueryBuilderItem/QueryBuilderItem.js +50 -70
- package/esm/components/QueryBuilderItem/QueryBuilderItem.js.map +7 -0
- package/esm/components/QueryBuilderRow/QueryBuilderRow.js +123 -201
- package/esm/components/QueryBuilderRow/QueryBuilderRow.js.map +7 -0
- package/esm/components/ToolBarAnimation/ToolBarAnimation.js +10 -17
- package/esm/components/ToolBarAnimation/ToolBarAnimation.js.map +7 -0
- package/esm/components/format/format.js +16 -17
- package/esm/components/format/format.js.map +7 -0
- package/esm/components/format/sqlFormat.js +39 -43
- package/esm/components/format/sqlFormat.js.map +7 -0
- package/esm/components/format/sqlSafeFormat.js +43 -50
- package/esm/components/format/sqlSafeFormat.js.map +7 -0
- package/esm/components/format/xmlFormat.js +41 -45
- package/esm/components/format/xmlFormat.js.map +7 -0
- package/esm/components/helpers/actions.js +123 -160
- package/esm/components/helpers/actions.js.map +7 -0
- package/esm/components/helpers/constants.js +7 -2
- package/esm/components/helpers/constants.js.map +7 -0
- package/esm/components/helpers/dependencies.js +19 -39
- package/esm/components/helpers/dependencies.js.map +7 -0
- package/esm/components/helpers/selectors.js +132 -93
- package/esm/components/helpers/selectors.js.map +7 -0
- package/esm/components/helpers/store.js +54 -82
- package/esm/components/helpers/store.js.map +7 -0
- package/esm/components/helpers/types.js +44 -33
- package/esm/components/helpers/types.js.map +7 -0
- package/esm/index.js +7 -4
- package/esm/index.js.map +7 -0
- package/esm/propTypes.js +55 -72
- package/esm/propTypes.js.map +7 -0
- package/package.json +12 -12
- package/types/DSQueryBuilder.d.ts +1 -32
|
@@ -1,83 +1,63 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
type,
|
|
28
|
-
idFilter,
|
|
29
|
-
idGroup,
|
|
30
|
-
condition
|
|
31
|
-
} = element;
|
|
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
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { QueryBuilderContext } from "../QueryBuilderContext/QueryBuilderContext";
|
|
4
|
+
import { QB_DRAG_TYPES } from "../helpers/types";
|
|
5
|
+
import AndOrController from "../AndOrController/AndOrController";
|
|
6
|
+
import QueryBuilderRow from "../QueryBuilderRow/QueryBuilderRow";
|
|
7
|
+
const QueryBuilderItem = ({ item }) => {
|
|
8
|
+
const { element } = item;
|
|
9
|
+
const { type, idFilter, idGroup, condition } = element;
|
|
10
|
+
return /* @__PURE__ */ React2.createElement(QueryBuilderContext.Consumer, null, ({
|
|
11
|
+
fields,
|
|
12
|
+
handleFieldChange,
|
|
13
|
+
onAddFilter,
|
|
14
|
+
onAddFilterToGroup,
|
|
15
|
+
onAddRuleContainer,
|
|
16
|
+
onRemoveFilter,
|
|
17
|
+
showDragController,
|
|
18
|
+
handleRuleContainerOperator,
|
|
19
|
+
handleRuleContainerUnGroup,
|
|
20
|
+
step,
|
|
21
|
+
items,
|
|
22
|
+
isDraggableItem,
|
|
23
|
+
setDraggableItems,
|
|
24
|
+
singleRow,
|
|
25
|
+
toolTipZIndex
|
|
26
|
+
}) => {
|
|
51
27
|
if (type === QB_DRAG_TYPES.FILTER) {
|
|
52
|
-
return
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
28
|
+
return /* @__PURE__ */ React2.createElement(QueryBuilderRow, {
|
|
29
|
+
...element,
|
|
30
|
+
fields,
|
|
31
|
+
handleFieldChange,
|
|
32
|
+
isDraggableItem,
|
|
33
|
+
items,
|
|
57
34
|
onAddFilter: () => onAddFilter(idGroup, idFilter),
|
|
58
35
|
onAddRuleContainer: () => onAddRuleContainer(idGroup, idFilter),
|
|
59
36
|
onRemoveFilter: () => onRemoveFilter(idFilter),
|
|
60
|
-
setDraggableItems
|
|
61
|
-
showDragController
|
|
62
|
-
step
|
|
63
|
-
singleRow
|
|
64
|
-
toolTipZIndex
|
|
65
|
-
})
|
|
37
|
+
setDraggableItems,
|
|
38
|
+
showDragController,
|
|
39
|
+
step,
|
|
40
|
+
singleRow,
|
|
41
|
+
toolTipZIndex
|
|
42
|
+
});
|
|
66
43
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
return
|
|
44
|
+
if (singleRow)
|
|
45
|
+
return null;
|
|
46
|
+
return /* @__PURE__ */ React2.createElement(AndOrController, {
|
|
70
47
|
allowUnGroup: true,
|
|
71
|
-
condition
|
|
72
|
-
handleRuleContainerOperator: value => handleRuleContainerOperator(idGroup, value),
|
|
48
|
+
condition,
|
|
49
|
+
handleRuleContainerOperator: (value) => handleRuleContainerOperator(idGroup, value),
|
|
73
50
|
handleRuleContainerUnGroup: () => handleRuleContainerUnGroup(idGroup),
|
|
74
51
|
multipleSize: false,
|
|
75
52
|
onAddFilter: () => onAddFilterToGroup(idGroup),
|
|
76
53
|
showDragController: true,
|
|
77
|
-
step
|
|
78
|
-
toolTipZIndex
|
|
54
|
+
step,
|
|
55
|
+
toolTipZIndex
|
|
79
56
|
});
|
|
80
57
|
});
|
|
81
58
|
};
|
|
82
|
-
|
|
83
|
-
export {
|
|
59
|
+
var QueryBuilderItem_default = QueryBuilderItem;
|
|
60
|
+
export {
|
|
61
|
+
QueryBuilderItem_default as default
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=QueryBuilderItem.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/components/QueryBuilderItem/QueryBuilderItem.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable react/prop-types */\nimport React from 'react';\n\nimport { QueryBuilderContext } from '../QueryBuilderContext/QueryBuilderContext';\nimport { QB_DRAG_TYPES } from '../helpers/types';\nimport AndOrController from '../AndOrController/AndOrController';\nimport QueryBuilderRow from '../QueryBuilderRow/QueryBuilderRow';\n\nconst QueryBuilderItem = ({ item }) => {\n const { element } = item;\n const { type, idFilter, idGroup, condition } = element;\n return (\n <QueryBuilderContext.Consumer>\n {({\n fields,\n handleFieldChange,\n onAddFilter,\n onAddFilterToGroup,\n onAddRuleContainer,\n onRemoveFilter,\n showDragController,\n handleRuleContainerOperator,\n handleRuleContainerUnGroup,\n step,\n items,\n isDraggableItem,\n setDraggableItems,\n singleRow,\n toolTipZIndex,\n }) => {\n if (type === QB_DRAG_TYPES.FILTER) {\n return (\n <QueryBuilderRow\n {...element}\n fields={fields}\n handleFieldChange={handleFieldChange}\n isDraggableItem={isDraggableItem}\n items={items}\n onAddFilter={() => onAddFilter(idGroup, idFilter)}\n onAddRuleContainer={() => onAddRuleContainer(idGroup, idFilter)}\n onRemoveFilter={() => onRemoveFilter(idFilter)}\n setDraggableItems={setDraggableItems}\n showDragController={showDragController}\n step={step}\n singleRow={singleRow}\n toolTipZIndex={toolTipZIndex}\n />\n );\n }\n if (singleRow) return null;\n return (\n <AndOrController\n allowUnGroup\n condition={condition}\n handleRuleContainerOperator={(value) =>\n handleRuleContainerOperator(idGroup, value)\n }\n handleRuleContainerUnGroup={() =>\n handleRuleContainerUnGroup(idGroup)\n }\n multipleSize={false}\n onAddFilter={() => onAddFilterToGroup(idGroup)}\n showDragController\n step={step}\n toolTipZIndex={toolTipZIndex}\n />\n );\n }}\n </QueryBuilderContext.Consumer>\n );\n};\n\nexport default QueryBuilderItem;\n"],
|
|
5
|
+
"mappings": "AAAA;ACCA;AAEA;AACA;AACA;AACA;AAEA,MAAM,mBAAmB,CAAC,EAAE,WAAW;AACrC,QAAM,EAAE,YAAY;AACpB,QAAM,EAAE,MAAM,UAAU,SAAS,cAAc;AAC/C,SACE,qCAAC,oBAAoB,UAArB,MACG,CAAC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,QACI;AACJ,QAAI,SAAS,cAAc,QAAQ;AACjC,aACE,qCAAC,iBAAD;AAAA,WACM;AAAA,QACJ;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA,aAAa,MAAM,YAAY,SAAS;AAAA,QACxC,oBAAoB,MAAM,mBAAmB,SAAS;AAAA,QACtD,gBAAgB,MAAM,eAAe;AAAA,QACrC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAAA;AAIN,QAAI;AAAW,aAAO;AACtB,WACE,qCAAC,iBAAD;AAAA,MACE,cAAY;AAAA,MACZ;AAAA,MACA,6BAA6B,CAAC,UAC5B,4BAA4B,SAAS;AAAA,MAEvC,4BAA4B,MAC1B,2BAA2B;AAAA,MAE7B,cAAc;AAAA,MACd,aAAa,MAAM,mBAAmB;AAAA,MACtC,oBAAkB;AAAA,MAClB;AAAA,MACA;AAAA;AAAA;AAAA;AAQZ,IAAO,2BAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,179 +1,107 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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' : ''),
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2, { Component } from "react";
|
|
3
|
+
import { AlertsDetail } from "@elliemae/ds-icons";
|
|
4
|
+
import { DSTooltipV3 } from "@elliemae/ds-tooltip";
|
|
5
|
+
import { convertPropToCssClassName } from "@elliemae/ds-classnames";
|
|
6
|
+
import { resolveDependencies } from "../helpers/dependencies";
|
|
7
|
+
import ConditionController from "../ConditionController/ConditionController";
|
|
8
|
+
import DragControllerRow from "../DragControllerRow/DragControllerRow";
|
|
9
|
+
const RenderField = ({
|
|
10
|
+
target,
|
|
11
|
+
component,
|
|
12
|
+
valueProp,
|
|
13
|
+
additionalInfo,
|
|
14
|
+
handleMouseEnterInput,
|
|
15
|
+
handleMouseLeaveInput,
|
|
16
|
+
onChangeHandler,
|
|
17
|
+
hasError
|
|
18
|
+
}) => {
|
|
19
|
+
const ref = React2.useRef();
|
|
20
|
+
const id = React2.useMemo(() => `el_${String.fromCharCode(65 + Math.floor(Math.random() * 26))}`, []);
|
|
21
|
+
return /* @__PURE__ */ React2.createElement("div", {
|
|
22
|
+
className: `em-ds-query-builder-row-input child-type-${target} ${hasError && hasError.error ? "row-input-error" : ""}`,
|
|
39
23
|
onMouseDownCapture: () => {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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());
|
|
24
|
+
const _refInput = ref.current?.querySelector(`#${id}`);
|
|
25
|
+
if (_refInput && _refInput.focus)
|
|
26
|
+
setTimeout(_refInput.focus());
|
|
46
27
|
handleMouseEnterInput();
|
|
47
28
|
},
|
|
48
29
|
onMouseEnter: () => handleMouseEnterInput(),
|
|
49
30
|
onMouseLeave: () => handleMouseLeaveInput()
|
|
50
|
-
},
|
|
51
|
-
ref
|
|
52
|
-
className: "em-ds-query-builder-row__input-controller"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
width: '40px'
|
|
64
|
-
}
|
|
65
|
-
}, void 0, /*#__PURE__*/_jsx(DSTooltipV3, {
|
|
31
|
+
}, /* @__PURE__ */ React2.createElement("div", {
|
|
32
|
+
ref,
|
|
33
|
+
className: "em-ds-query-builder-row__input-controller"
|
|
34
|
+
}, React2.cloneElement(component, {
|
|
35
|
+
id,
|
|
36
|
+
onChange: (e, extraData) => onChangeHandler(e, target, extraData),
|
|
37
|
+
value: valueProp != null ? valueProp : "",
|
|
38
|
+
checked: valueProp === true,
|
|
39
|
+
additionalInfo: additionalInfo ? additionalInfo[target] : additionalInfo || {},
|
|
40
|
+
"aria-invalid": Boolean(hasError)
|
|
41
|
+
})), hasError && hasError.errorMessage ? /* @__PURE__ */ React2.createElement("div", {
|
|
42
|
+
style: { width: "40px" }
|
|
43
|
+
}, /* @__PURE__ */ React2.createElement(DSTooltipV3, {
|
|
66
44
|
text: hasError.errorMessage
|
|
67
|
-
},
|
|
45
|
+
}, /* @__PURE__ */ React2.createElement("div", {
|
|
68
46
|
tabIndex: 0,
|
|
69
47
|
className: "row-icon-alert",
|
|
70
48
|
"data-testid": "qb-error-state-icon",
|
|
71
49
|
role: "alert"
|
|
72
|
-
},
|
|
50
|
+
}, /* @__PURE__ */ React2.createElement(AlertsDetail, {
|
|
73
51
|
width: 20,
|
|
74
52
|
height: 20,
|
|
75
|
-
color: [
|
|
53
|
+
color: ["danger", 900],
|
|
76
54
|
title: hasError.errorMessage
|
|
77
|
-
})))) : null);
|
|
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
|
-
// );
|
|
55
|
+
})))) : null);
|
|
103
56
|
};
|
|
104
|
-
|
|
105
57
|
class QueryBuilderRow extends Component {
|
|
106
58
|
constructor(props) {
|
|
107
59
|
super(props);
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
60
|
+
this.handleMouseEnterRow = () => {
|
|
61
|
+
};
|
|
111
62
|
this.handleMouseLeaveRow = () => {
|
|
112
63
|
this.handleTooltipRow(false);
|
|
113
64
|
};
|
|
114
|
-
|
|
115
65
|
this.handleMouseEnterInput = () => {
|
|
116
|
-
const {
|
|
117
|
-
setDraggableItems
|
|
118
|
-
} = this.props;
|
|
66
|
+
const { setDraggableItems } = this.props;
|
|
119
67
|
setDraggableItems(false);
|
|
120
68
|
};
|
|
121
|
-
|
|
122
69
|
this.handleMouseLeaveInput = () => {
|
|
123
|
-
const {
|
|
124
|
-
setDraggableItems
|
|
125
|
-
} = this.props;
|
|
70
|
+
const { setDraggableItems } = this.props;
|
|
126
71
|
setDraggableItems(true);
|
|
127
72
|
};
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
this.setState({
|
|
131
|
-
isOpen
|
|
132
|
-
});
|
|
73
|
+
this.handleTooltipRow = (isOpen) => {
|
|
74
|
+
this.setState({ isOpen });
|
|
133
75
|
};
|
|
134
|
-
|
|
135
76
|
this.state = {
|
|
136
77
|
isOpen: false
|
|
137
78
|
};
|
|
138
79
|
}
|
|
139
|
-
|
|
140
80
|
onChangeHandler(e, target, extraData, hasError) {
|
|
141
|
-
const {
|
|
142
|
-
handleFieldChange,
|
|
143
|
-
idFilter,
|
|
144
|
-
idGroup,
|
|
145
|
-
additionalInfo,
|
|
146
|
-
field,
|
|
147
|
-
operator,
|
|
148
|
-
value
|
|
149
|
-
} = this.props;
|
|
81
|
+
const { handleFieldChange, idFilter, idGroup, additionalInfo, field, operator, value } = this.props;
|
|
150
82
|
let eventValue = e;
|
|
151
|
-
|
|
152
83
|
if (e && e.target) {
|
|
153
|
-
const {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
84
|
+
const { value: value2, checked } = e.target;
|
|
85
|
+
if (value2 || value2 === "" || typeof value2 === "boolean")
|
|
86
|
+
eventValue = value2;
|
|
87
|
+
else
|
|
88
|
+
eventValue = checked || e;
|
|
158
89
|
}
|
|
159
|
-
|
|
160
90
|
handleFieldChange({
|
|
161
91
|
[target]: eventValue,
|
|
162
92
|
idFilter,
|
|
163
93
|
idGroup,
|
|
164
|
-
additionalInfo:
|
|
94
|
+
additionalInfo: {
|
|
95
|
+
...additionalInfo,
|
|
165
96
|
[target]: extraData,
|
|
166
|
-
[
|
|
167
|
-
[
|
|
168
|
-
}
|
|
97
|
+
[`${target}_error`]: hasError,
|
|
98
|
+
[`${target}_touched`]: true
|
|
99
|
+
},
|
|
169
100
|
target
|
|
170
101
|
});
|
|
171
102
|
}
|
|
172
|
-
|
|
173
103
|
render() {
|
|
174
|
-
const {
|
|
175
|
-
isOpen
|
|
176
|
-
} = this.state;
|
|
104
|
+
const { isOpen } = this.state;
|
|
177
105
|
const {
|
|
178
106
|
fields,
|
|
179
107
|
onAddFilter,
|
|
@@ -188,81 +116,75 @@ class QueryBuilderRow extends Component {
|
|
|
188
116
|
toolTipZIndex,
|
|
189
117
|
error
|
|
190
118
|
} = 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');
|
|
119
|
+
const { cssClassName, classNameBlock, classNameElement } = convertPropToCssClassName("query-builder-row", isOpen ? "has-open-tooltip" : "has-close-tooltip", singleRow ? "is-single-row" : "is-multiple-row");
|
|
196
120
|
const test = resolveDependencies({
|
|
197
121
|
field,
|
|
198
122
|
operator,
|
|
199
123
|
value,
|
|
200
124
|
additionalInfo
|
|
201
125
|
}, fields);
|
|
202
|
-
const gridTemplateColumns = [
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
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
|
|
126
|
+
const gridTemplateColumns = [
|
|
127
|
+
"24px",
|
|
128
|
+
...test.map((r) => {
|
|
129
|
+
if (r.handleWidth) {
|
|
130
|
+
return r.handleWidth(this.props[r.target], {
|
|
131
|
+
field,
|
|
132
|
+
operator,
|
|
133
|
+
value,
|
|
134
|
+
additionalInfo
|
|
135
|
+
});
|
|
221
136
|
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
137
|
+
return "minmax(0, 1fr)";
|
|
138
|
+
}),
|
|
139
|
+
"30px"
|
|
140
|
+
].join(" ");
|
|
141
|
+
return /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement("div", {
|
|
142
|
+
className: cssClassName,
|
|
143
|
+
onMouseEnter: this.handleMouseEnterRow,
|
|
144
|
+
onMouseLeave: this.handleMouseLeaveRow,
|
|
145
|
+
style: {
|
|
146
|
+
gridTemplateColumns
|
|
147
|
+
}
|
|
148
|
+
}, !singleRow && /* @__PURE__ */ React2.createElement(DragControllerRow, {
|
|
149
|
+
className: classNameElement("drag-controller"),
|
|
150
|
+
onMouseDownCapture: () => this.handleMouseLeaveInput()
|
|
151
|
+
}), test.map((renderField) => {
|
|
152
|
+
const { target, component } = renderField;
|
|
153
|
+
const { [target]: valueProp } = this.props;
|
|
154
|
+
const isTouched = additionalInfo && additionalInfo[`${target}_touched`];
|
|
155
|
+
const hasError = renderField && renderField.validation ? renderField.validation(valueProp, {
|
|
156
|
+
field,
|
|
157
|
+
operator,
|
|
158
|
+
value,
|
|
159
|
+
additionalInfo
|
|
160
|
+
}) : false;
|
|
161
|
+
return /* @__PURE__ */ React2.createElement(RenderField, {
|
|
162
|
+
component,
|
|
163
|
+
target,
|
|
164
|
+
valueProp,
|
|
165
|
+
onChangeHandler: (e, target2, extraData) => {
|
|
166
|
+
this.onChangeHandler(e, target2, extraData, hasError);
|
|
167
|
+
},
|
|
168
|
+
handleMouseEnterInput: this.handleMouseEnterInput,
|
|
169
|
+
handleMouseLeaveInput: this.handleMouseLeaveInput,
|
|
170
|
+
additionalInfo,
|
|
171
|
+
hasError: isTouched && hasError
|
|
172
|
+
});
|
|
173
|
+
}), !singleRow && /* @__PURE__ */ React2.createElement("div", {
|
|
174
|
+
className: classNameBlock("controller")
|
|
175
|
+
}, /* @__PURE__ */ React2.createElement(ConditionController, {
|
|
176
|
+
handleTooltipRow: this.handleTooltipRow,
|
|
177
|
+
isOpen,
|
|
178
|
+
items,
|
|
179
|
+
onAddFilter,
|
|
180
|
+
onAddRuleContainer,
|
|
181
|
+
onRemoveFilter,
|
|
182
|
+
toolTipZIndex
|
|
183
|
+
}))));
|
|
264
184
|
}
|
|
265
|
-
|
|
266
185
|
}
|
|
267
|
-
|
|
268
|
-
export {
|
|
186
|
+
var QueryBuilderRow_default = QueryBuilderRow;
|
|
187
|
+
export {
|
|
188
|
+
QueryBuilderRow_default as default
|
|
189
|
+
};
|
|
190
|
+
//# sourceMappingURL=QueryBuilderRow.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/components/QueryBuilderRow/QueryBuilderRow.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unsafe-return */\n/* eslint-disable @typescript-eslint/no-unsafe-assignment */\nimport React, { Component } from 'react';\nimport { AlertsDetail } from '@elliemae/ds-icons';\nimport { DSTooltipV3 } from '@elliemae/ds-tooltip';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport { resolveDependencies } from '../helpers/dependencies';\nimport ConditionController from '../ConditionController/ConditionController';\nimport DragControllerRow from '../DragControllerRow/DragControllerRow';\n\nconst RenderField = ({\n target,\n component,\n valueProp,\n additionalInfo,\n handleMouseEnterInput,\n handleMouseLeaveInput,\n onChangeHandler,\n hasError,\n}) => {\n const ref = React.useRef<HTMLElement>();\n const id = React.useMemo(() => `el_${String.fromCharCode(65 + Math.floor(Math.random() * 26))}`, []);\n return (\n <div\n className={`em-ds-query-builder-row-input child-type-${target} ${hasError && hasError.error ? 'row-input-error' : ''\n }`}\n onMouseDownCapture={() => {\n // eslint-disable-next-line no-underscore-dangle\n const _refInput = ref.current?.querySelector(`#${id}`);\n if (_refInput && _refInput.focus) setTimeout(_refInput.focus());\n handleMouseEnterInput();\n }}\n onMouseEnter={() => handleMouseEnterInput()}\n onMouseLeave={() => handleMouseLeaveInput()}\n >\n <div ref={ref} className=\"em-ds-query-builder-row__input-controller\">\n {React.cloneElement(component, {\n id,\n onChange: (e, extraData) => onChangeHandler(e, target, extraData),\n value: valueProp != null ? valueProp : '',\n checked: valueProp === true,\n additionalInfo: additionalInfo ? additionalInfo[target] : additionalInfo || {},\n 'aria-invalid': Boolean(hasError),\n })}\n </div>\n {hasError && hasError.errorMessage ? (\n <div style={{ width: '40px' }}>\n <DSTooltipV3 text={hasError.errorMessage}>\n {/* eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex */}\n <div tabIndex={0} className=\"row-icon-alert\" data-testid=\"qb-error-state-icon\" role=\"alert\">\n <AlertsDetail width={20} height={20} color={['danger', 900]} title={hasError.errorMessage} />\n </div>\n </DSTooltipV3>\n </div>\n ) : null}\n </div>\n );\n // return React.useMemo(\n // () => (\n // <div\n // className={`em-ds-query-builder-row-input child-type-${target}`}\n // onMouseDownCapture={() => {\n // // eslint-disable-next-line no-underscore-dangle\n // const _refInput = ref.current.querySelector(`#${id}`);\n // if (_refInput && _refInput.focus) setTimeout(_refInput.focus());\n // handleMouseEnterInput();\n // }}\n // onMouseEnter={() => handleMouseEnterInput()}\n // onMouseLeave={() => handleMouseLeaveInput()}\n // >\n // <div ref={ref} className=\"em-ds-query-builder-row__input-controller\">\n // {React.cloneElement(component, {\n // id,\n // onChange: (e, extraData) => onChangeHandler(e, target, extraData),\n // value: valueProp != null ? valueProp : '',\n // checked: valueProp === true,\n // additionalInfo: additionalInfo ? additionalInfo[target] : {},\n // })}\n // </div>\n // </div>\n // ),\n // [target, component, valueProp, additionalInfo],\n // );\n};\nclass QueryBuilderRow extends Component<any, any> {\n constructor(props: any) {\n super(props);\n this.state = {\n isOpen: false,\n };\n }\n\n onChangeHandler(e, target, extraData, hasError) {\n const { handleFieldChange, idFilter, idGroup, additionalInfo, field, operator, value } = this.props;\n let eventValue = e;\n if (e && e.target) {\n const { value, checked } = e.target;\n if (value || value === '' || typeof value === 'boolean') eventValue = value;\n else eventValue = checked || e;\n }\n handleFieldChange({\n [target]: eventValue,\n idFilter,\n idGroup,\n additionalInfo: {\n ...additionalInfo,\n [target]: extraData,\n [`${target}_error`]: hasError,\n [`${target}_touched`]: true,\n },\n target,\n });\n }\n\n handleMouseEnterRow = () => { };\n\n handleMouseLeaveRow = () => {\n this.handleTooltipRow(false);\n };\n\n handleMouseEnterInput = () => {\n const { setDraggableItems } = this.props;\n setDraggableItems(false);\n };\n\n handleMouseLeaveInput = () => {\n const { setDraggableItems } = this.props;\n setDraggableItems(true);\n };\n\n handleTooltipRow = (isOpen) => {\n this.setState({ isOpen });\n };\n\n render() {\n const { isOpen } = this.state;\n const {\n fields,\n onAddFilter,\n onRemoveFilter,\n onAddRuleContainer,\n field,\n operator,\n value,\n additionalInfo,\n items,\n singleRow,\n toolTipZIndex,\n error,\n } = this.props;\n const { cssClassName, classNameBlock, classNameElement } = convertPropToCssClassName(\n 'query-builder-row',\n isOpen ? 'has-open-tooltip' : 'has-close-tooltip',\n singleRow ? 'is-single-row' : 'is-multiple-row',\n );\n const test = resolveDependencies(\n {\n field,\n operator,\n value,\n additionalInfo,\n },\n fields,\n );\n\n const gridTemplateColumns = [\n '24px',\n ...test.map((r) => {\n if (r.handleWidth) {\n return r.handleWidth(this.props[r.target], {\n field,\n operator,\n value,\n additionalInfo,\n });\n }\n return 'minmax(0, 1fr)';\n }),\n '30px',\n ].join(' ');\n\n return (\n <>\n <div\n className={cssClassName}\n onMouseEnter={this.handleMouseEnterRow}\n onMouseLeave={this.handleMouseLeaveRow}\n style={{\n gridTemplateColumns,\n }}\n >\n {!singleRow && (\n <DragControllerRow\n className={classNameElement('drag-controller')}\n onMouseDownCapture={() => this.handleMouseLeaveInput()}\n />\n )}\n {test.map((renderField) => {\n const { target, component } = renderField;\n const { [target]: valueProp } = this.props;\n\n const isTouched = additionalInfo && additionalInfo[`${target}_touched`];\n const hasError =\n renderField && renderField.validation\n ? renderField.validation(valueProp, {\n field,\n operator,\n value,\n additionalInfo,\n })\n : false;\n return (\n <RenderField\n component={component}\n target={target}\n valueProp={valueProp}\n onChangeHandler={(e, target, extraData) => {\n this.onChangeHandler(e, target, extraData, hasError);\n }}\n handleMouseEnterInput={this.handleMouseEnterInput}\n handleMouseLeaveInput={this.handleMouseLeaveInput}\n additionalInfo={additionalInfo}\n hasError={isTouched && hasError}\n />\n );\n })}\n {!singleRow && (\n <div className={classNameBlock('controller')}>\n <ConditionController\n handleTooltipRow={this.handleTooltipRow}\n isOpen={isOpen}\n items={items}\n onAddFilter={onAddFilter}\n onAddRuleContainer={onAddRuleContainer}\n onRemoveFilter={onRemoveFilter}\n toolTipZIndex={toolTipZIndex}\n />\n </div>\n )}\n </div>\n </>\n );\n }\n}\n\nexport default QueryBuilderRow;\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
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), {}, {
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import GrowRight from "@elliemae/ds-shared/Animations/GrowRight";
|
|
4
|
+
const ToolBarAnimation = (props) => /* @__PURE__ */ React2.createElement(GrowRight, {
|
|
5
|
+
...props,
|
|
15
6
|
key: "popper-animation-key",
|
|
16
7
|
from: 0.5,
|
|
17
8
|
to: 1
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
ToolBarAnimation
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=ToolBarAnimation.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/components/ToolBarAnimation/ToolBarAnimation.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport GrowRight from '@elliemae/ds-shared/Animations/GrowRight';\n\nconst ToolBarAnimation = props => (\n <GrowRight {...props} key=\"popper-animation-key\" from={0.5} to={1} />\n);\n\nexport { ToolBarAnimation };\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AAEA,MAAM,mBAAmB,WACvB,qCAAC,WAAD;AAAA,KAAe;AAAA,EAAO,KAAI;AAAA,EAAuB,MAAM;AAAA,EAAK,IAAI;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|