@elliemae/ds-query-builder 2.2.0-next.4 → 2.3.0-alpha.2
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,87 +1,59 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Component } from
|
|
3
|
-
import { Grid } from
|
|
4
|
-
import { convertPropToCssClassName } from
|
|
5
|
-
import { DSAccordion, DSAccordionItem } from
|
|
6
|
-
import {
|
|
7
|
-
import { QueryBuilderContext } from
|
|
8
|
-
|
|
9
|
-
const {
|
|
10
|
-
cssClassName
|
|
11
|
-
} = convertPropToCssClassName('query-builder-output');
|
|
12
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2, { Component } from "react";
|
|
3
|
+
import { Grid } from "@elliemae/ds-grid";
|
|
4
|
+
import { convertPropToCssClassName } from "@elliemae/ds-classnames";
|
|
5
|
+
import { DSAccordion, DSAccordionItem } from "@elliemae/ds-accordion";
|
|
6
|
+
import { ChevronDown, ChevronRight } from "@elliemae/ds-icons";
|
|
7
|
+
import { QueryBuilderContext } from "../QueryBuilderContext/QueryBuilderContext";
|
|
8
|
+
const { cssClassName } = convertPropToCssClassName("query-builder-output");
|
|
13
9
|
class DisplayOutput extends Component {
|
|
14
10
|
constructor(props) {
|
|
15
11
|
super(props);
|
|
16
|
-
|
|
17
12
|
this.handleChange = () => {
|
|
18
|
-
this.setState(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} = _ref;
|
|
22
|
-
return {
|
|
23
|
-
show: !show
|
|
24
|
-
};
|
|
25
|
-
});
|
|
13
|
+
this.setState(({ show }) => ({
|
|
14
|
+
show: !show
|
|
15
|
+
}));
|
|
26
16
|
};
|
|
27
|
-
|
|
28
17
|
this.state = {
|
|
29
18
|
show: props.show
|
|
30
19
|
};
|
|
31
20
|
}
|
|
32
|
-
|
|
33
21
|
render() {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} = this.state;
|
|
39
|
-
const {
|
|
40
|
-
showLabel,
|
|
41
|
-
hideLabel,
|
|
42
|
-
displayFixedOutput
|
|
43
|
-
} = this.props;
|
|
44
|
-
return /*#__PURE__*/_jsx(QueryBuilderContext.Consumer, {}, void 0, _ref2 => {
|
|
45
|
-
let {
|
|
46
|
-
format
|
|
47
|
-
} = _ref2;
|
|
48
|
-
let display = '';
|
|
49
|
-
|
|
22
|
+
const { show } = this.state;
|
|
23
|
+
const { showLabel, hideLabel, displayFixedOutput } = this.props;
|
|
24
|
+
return /* @__PURE__ */ React2.createElement(QueryBuilderContext.Consumer, null, ({ format }) => {
|
|
25
|
+
let display = "";
|
|
50
26
|
try {
|
|
51
|
-
display = typeof format ===
|
|
27
|
+
display = typeof format === "object" ? JSON.stringify(format) : format;
|
|
52
28
|
} catch (e) {
|
|
53
29
|
display = e;
|
|
54
30
|
}
|
|
55
|
-
|
|
56
31
|
if (displayFixedOutput) {
|
|
57
|
-
return
|
|
58
|
-
className: cssClassName
|
|
59
|
-
|
|
60
|
-
}, void 0, _Grid || (_Grid = /*#__PURE__*/_jsx(Grid, {
|
|
32
|
+
return /* @__PURE__ */ React2.createElement("div", {
|
|
33
|
+
className: cssClassName
|
|
34
|
+
}, /* @__PURE__ */ React2.createElement(Grid, {
|
|
61
35
|
p: "xxs"
|
|
62
|
-
},
|
|
63
|
-
"data-testid": "qb-fixed-output-label"
|
|
64
|
-
}, void 0, displayFixedOutput))), /*#__PURE__*/_jsx(Grid, {
|
|
36
|
+
}, /* @__PURE__ */ React2.createElement("strong", null, displayFixedOutput)), /* @__PURE__ */ React2.createElement(Grid, {
|
|
65
37
|
pl: "xxs",
|
|
66
|
-
pr: "xxs"
|
|
67
|
-
|
|
68
|
-
}, void 0, display));
|
|
38
|
+
pr: "xxs"
|
|
39
|
+
}, display));
|
|
69
40
|
}
|
|
70
|
-
|
|
71
|
-
return /*#__PURE__*/_jsx("div", {
|
|
41
|
+
return /* @__PURE__ */ React2.createElement("div", {
|
|
72
42
|
className: cssClassName
|
|
73
|
-
},
|
|
43
|
+
}, /* @__PURE__ */ React2.createElement(DSAccordion, {
|
|
74
44
|
activeValue: show,
|
|
75
45
|
onChange: this.handleChange
|
|
76
|
-
},
|
|
46
|
+
}, /* @__PURE__ */ React2.createElement(DSAccordionItem, {
|
|
77
47
|
iconClosed: ChevronRight,
|
|
78
48
|
iconOpened: ChevronDown,
|
|
79
49
|
title: show ? hideLabel : showLabel,
|
|
80
50
|
value: true
|
|
81
|
-
},
|
|
51
|
+
}, /* @__PURE__ */ React2.createElement("div", null, display))));
|
|
82
52
|
});
|
|
83
53
|
}
|
|
84
|
-
|
|
85
54
|
}
|
|
86
|
-
|
|
87
|
-
export {
|
|
55
|
+
var DisplayOutput_default = DisplayOutput;
|
|
56
|
+
export {
|
|
57
|
+
DisplayOutput_default as default
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=DisplayOutput.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/components/DisplayOutput/DisplayOutput.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { Component } from 'react';\nimport { Grid } from '@elliemae/ds-grid';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport { DSAccordion, DSAccordionItem } from '@elliemae/ds-accordion';\nimport { ChevronDown, ChevronRight } from '@elliemae/ds-icons';\nimport { QueryBuilderContext } from '../QueryBuilderContext/QueryBuilderContext';\n\nconst { cssClassName } = convertPropToCssClassName('query-builder-output');\n\nclass DisplayOutput extends Component {\n constructor(props) {\n super(props);\n this.state = {\n show: props.show,\n };\n }\n\n handleChange = () => {\n this.setState(({ show }) => ({\n show: !show,\n }));\n };\n\n render() {\n const { show } = this.state;\n const { showLabel, hideLabel, displayFixedOutput } = this.props;\n return (\n <QueryBuilderContext.Consumer>\n {({ format }) => {\n let display = '';\n try {\n display = typeof format === 'object' ? JSON.stringify(format) : format;\n } catch (e) {\n display = e;\n }\n if (displayFixedOutput) {\n return (\n <div className={cssClassName}>\n <Grid p=\"xxs\">\n <strong>{displayFixedOutput}</strong>\n </Grid>\n <Grid pl=\"xxs\" pr=\"xxs\">\n {display}\n </Grid>\n </div>\n );\n }\n\n return (\n <div className={cssClassName}>\n <DSAccordion activeValue={show} onChange={this.handleChange}>\n <DSAccordionItem\n iconClosed={ChevronRight}\n iconOpened={ChevronDown}\n title={show ? hideLabel : showLabel}\n value\n >\n <div>{display}</div>\n </DSAccordionItem>\n </DSAccordion>\n </div>\n );\n }}\n </QueryBuilderContext.Consumer>\n );\n }\n}\n\nexport default DisplayOutput;\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AACA;AAEA,MAAM,EAAE,iBAAiB,0BAA0B;AAEnD,4BAA4B,UAAU;AAAA,EACpC,YAAY,OAAO;AACjB,UAAM;AAMR,wBAAe,MAAM;AACnB,WAAK,SAAS,CAAC,EAAE,WAAY;AAAA,QAC3B,MAAM,CAAC;AAAA;AAAA;AAPT,SAAK,QAAQ;AAAA,MACX,MAAM,MAAM;AAAA;AAAA;AAAA,EAUhB,SAAS;AACP,UAAM,EAAE,SAAS,KAAK;AACtB,UAAM,EAAE,WAAW,WAAW,uBAAuB,KAAK;AAC1D,WACE,qCAAC,oBAAoB,UAArB,MACG,CAAC,EAAE,aAAa;AACf,UAAI,UAAU;AACd,UAAI;AACF,kBAAU,OAAO,WAAW,WAAW,KAAK,UAAU,UAAU;AAAA,eACzD,GAAP;AACA,kBAAU;AAAA;AAEZ,UAAI,oBAAoB;AACtB,eACE,qCAAC,OAAD;AAAA,UAAK,WAAW;AAAA,WACd,qCAAC,MAAD;AAAA,UAAM,GAAE;AAAA,WACN,qCAAC,UAAD,MAAS,sBAEX,qCAAC,MAAD;AAAA,UAAM,IAAG;AAAA,UAAM,IAAG;AAAA,WACf;AAAA;AAMT,aACE,qCAAC,OAAD;AAAA,QAAK,WAAW;AAAA,SACd,qCAAC,aAAD;AAAA,QAAa,aAAa;AAAA,QAAM,UAAU,KAAK;AAAA,SAC7C,qCAAC,iBAAD;AAAA,QACE,YAAY;AAAA,QACZ,YAAY;AAAA,QACZ,OAAO,OAAO,YAAY;AAAA,QAC1B,OAAK;AAAA,SAEL,qCAAC,OAAD,MAAM;AAAA;AAAA;AAAA;AAWxB,IAAO,wBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,39 +1,36 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { convertPropToCssClassName } from
|
|
4
|
-
import { DSIconColors, DSIconSizes } from
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
return /*#__PURE__*/_jsx("div", {
|
|
21
|
-
className: "".concat(cssClassName)
|
|
22
|
-
}, void 0, /*#__PURE__*/_jsx(Icon, {
|
|
23
|
-
color: color,
|
|
24
|
-
size: size
|
|
25
|
-
}), _div || (_div = /*#__PURE__*/_jsx("div", {
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { convertPropToCssClassName } from "@elliemae/ds-classnames";
|
|
4
|
+
import { DSIconColors, DSIconSizes } from "@elliemae/ds-icon";
|
|
5
|
+
import { MoreOptionsVert, GripperVertical } from "@elliemae/ds-icons";
|
|
6
|
+
const DragContainerController = ({
|
|
7
|
+
color = DSIconColors.NEUTRAL,
|
|
8
|
+
icon: Icon = GripperVertical,
|
|
9
|
+
size = DSIconSizes.S,
|
|
10
|
+
multipleSize = false,
|
|
11
|
+
onClick
|
|
12
|
+
}) => {
|
|
13
|
+
const { cssClassName } = convertPropToCssClassName("query-builder-drag-group");
|
|
14
|
+
return /* @__PURE__ */ React2.createElement("div", {
|
|
15
|
+
className: `${cssClassName}`
|
|
16
|
+
}, /* @__PURE__ */ React2.createElement(Icon, {
|
|
17
|
+
color,
|
|
18
|
+
size
|
|
19
|
+
}), /* @__PURE__ */ React2.createElement("div", {
|
|
26
20
|
className: "separator"
|
|
27
|
-
})
|
|
28
|
-
color
|
|
29
|
-
onClick
|
|
30
|
-
size
|
|
31
|
-
}), multipleSize &&
|
|
21
|
+
}), /* @__PURE__ */ React2.createElement(MoreOptionsVert, {
|
|
22
|
+
color,
|
|
23
|
+
onClick,
|
|
24
|
+
size
|
|
25
|
+
}), multipleSize && /* @__PURE__ */ React2.createElement(Icon, {
|
|
32
26
|
className: "additional-drag",
|
|
33
|
-
color
|
|
34
|
-
onClick
|
|
35
|
-
size
|
|
27
|
+
color,
|
|
28
|
+
onClick,
|
|
29
|
+
size
|
|
36
30
|
}));
|
|
37
31
|
};
|
|
38
|
-
|
|
39
|
-
export {
|
|
32
|
+
var DragContainerController_default = DragContainerController;
|
|
33
|
+
export {
|
|
34
|
+
DragContainerController_default as default
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=DragContainerController.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/components/DragContainerController/DragContainerController.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport { DSIconColors, DSIconSizes } from '@elliemae/ds-icon';\nimport { MoreOptionsVert, GripperVertical } from '@elliemae/ds-icons';\n\nconst DragContainerController = ({\n color = DSIconColors.NEUTRAL,\n icon: Icon = GripperVertical,\n size = DSIconSizes.S,\n multipleSize = false,\n onClick,\n}) => {\n const { cssClassName } = convertPropToCssClassName('query-builder-drag-group');\n return (\n <div className={`${cssClassName}`}>\n <Icon color={color} size={size} />\n <div className=\"separator\" />\n <MoreOptionsVert color={color} onClick={onClick} size={size} />\n {multipleSize && <Icon className=\"additional-drag\" color={color} onClick={onClick} size={size} />}\n </div>\n );\n};\nexport default DragContainerController;\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AAEA,MAAM,0BAA0B,CAAC;AAAA,EAC/B,QAAQ,aAAa;AAAA,EACrB,MAAM,OAAO;AAAA,EACb,OAAO,YAAY;AAAA,EACnB,eAAe;AAAA,EACf;AAAA,MACI;AACJ,QAAM,EAAE,iBAAiB,0BAA0B;AACnD,SACE,qCAAC,OAAD;AAAA,IAAK,WAAW,GAAG;AAAA,KACjB,qCAAC,MAAD;AAAA,IAAM;AAAA,IAAc;AAAA,MACpB,qCAAC,OAAD;AAAA,IAAK,WAAU;AAAA,MACf,qCAAC,iBAAD;AAAA,IAAiB;AAAA,IAAc;AAAA,IAAkB;AAAA,MAChD,gBAAgB,qCAAC,MAAD;AAAA,IAAM,WAAU;AAAA,IAAkB;AAAA,IAAc;AAAA,IAAkB;AAAA;AAAA;AAIzF,IAAO,kCAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,39 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
let {
|
|
22
|
-
className = 'drag-controller',
|
|
23
|
-
color = ['neutral', '500'],
|
|
24
|
-
icon: Icon = GripperVertical,
|
|
25
|
-
size = DSIconSizes.M
|
|
26
|
-
} = _ref,
|
|
27
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
28
|
-
|
|
29
|
-
return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({
|
|
30
|
-
className: className
|
|
31
|
-
}, rest), {}, {
|
|
32
|
-
children: /*#__PURE__*/_jsx(Icon, {
|
|
33
|
-
color: color,
|
|
34
|
-
size: size
|
|
35
|
-
})
|
|
36
|
-
}));
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { DSIconSizes } from "@elliemae/ds-icon";
|
|
4
|
+
import { GripperVertical } from "@elliemae/ds-icons";
|
|
5
|
+
const DragControllerRow = ({
|
|
6
|
+
className = "drag-controller",
|
|
7
|
+
color = ["neutral", "500"],
|
|
8
|
+
icon: Icon = GripperVertical,
|
|
9
|
+
size = DSIconSizes.M,
|
|
10
|
+
...rest
|
|
11
|
+
}) => /* @__PURE__ */ React2.createElement("div", {
|
|
12
|
+
className,
|
|
13
|
+
...rest
|
|
14
|
+
}, /* @__PURE__ */ React2.createElement(Icon, {
|
|
15
|
+
color,
|
|
16
|
+
size
|
|
17
|
+
}));
|
|
18
|
+
var DragControllerRow_default = DragControllerRow;
|
|
19
|
+
export {
|
|
20
|
+
DragControllerRow_default as default
|
|
37
21
|
};
|
|
38
|
-
|
|
39
|
-
export { DragControllerRow as default };
|
|
22
|
+
//# sourceMappingURL=DragControllerRow.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/components/DragControllerRow/DragControllerRow.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { DSIconSizes } from '@elliemae/ds-icon';\nimport { GripperVertical } from '@elliemae/ds-icons';\n\nconst DragControllerRow = ({\n className = 'drag-controller',\n color = ['neutral', '500'],\n icon: Icon = GripperVertical,\n size = DSIconSizes.M,\n ...rest\n}) => (\n <div className={className} {...rest}>\n <Icon color={color} size={size} />\n </div>\n);\nexport default DragControllerRow;\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AACA;AAEA,MAAM,oBAAoB,CAAC;AAAA,EACzB,YAAY;AAAA,EACZ,QAAQ,CAAC,WAAW;AAAA,EACpB,MAAM,OAAO;AAAA,EACb,OAAO,YAAY;AAAA,KAChB;AAAA,MAEH,qCAAC,OAAD;AAAA,EAAK;AAAA,KAA0B;AAAA,GAC7B,qCAAC,MAAD;AAAA,EAAM;AAAA,EAAc;AAAA;AAGxB,IAAO,4BAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { DSTextBox, DSComboBox } from "@elliemae/ds-form";
|
|
4
|
+
const FieldControllerRow = ({
|
|
5
|
+
className = "",
|
|
6
|
+
onChange = () => null,
|
|
7
|
+
options = [],
|
|
8
|
+
value = "",
|
|
9
|
+
type = "DSComboBox"
|
|
10
|
+
}) => /* @__PURE__ */ React2.createElement("div", {
|
|
11
|
+
className
|
|
12
|
+
}, type === "DSComboBox" && /* @__PURE__ */ React2.createElement(DSComboBox, {
|
|
13
|
+
onChange,
|
|
14
|
+
options,
|
|
15
|
+
value
|
|
16
|
+
}), type === "DSTextBox" && /* @__PURE__ */ React2.createElement(DSTextBox, {
|
|
17
|
+
fluidWidth: true,
|
|
18
|
+
onChange,
|
|
19
|
+
options,
|
|
20
|
+
value
|
|
21
|
+
}));
|
|
22
|
+
var FieldControllerRow_default = FieldControllerRow;
|
|
23
|
+
export {
|
|
24
|
+
FieldControllerRow_default as default
|
|
25
25
|
};
|
|
26
|
-
|
|
27
|
-
export { FieldControllerRow as default };
|
|
26
|
+
//# sourceMappingURL=FieldControllerRow.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/components/FieldControllerRow/FieldControllerRow.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { DSTextBox, DSComboBox } from '@elliemae/ds-form';\n\nconst FieldControllerRow = ({\n className = '',\n onChange = () => null,\n options = [],\n value = '',\n type = 'DSComboBox',\n}) => (\n <div className={className}>\n {type === 'DSComboBox' && <DSComboBox onChange={onChange} options={options} value={value} />}\n {type === 'DSTextBox' && <DSTextBox fluidWidth onChange={onChange} options={options} value={value} />}\n </div>\n);\nexport default FieldControllerRow;\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AACA;AAEA,MAAM,qBAAqB,CAAC;AAAA,EAC1B,YAAY;AAAA,EACZ,WAAW,MAAM;AAAA,EACjB,UAAU;AAAA,EACV,QAAQ;AAAA,EACR,OAAO;AAAA,MAEP,qCAAC,OAAD;AAAA,EAAK;AAAA,GACF,SAAS,gBAAgB,qCAAC,YAAD;AAAA,EAAY;AAAA,EAAoB;AAAA,EAAkB;AAAA,IAC3E,SAAS,eAAe,qCAAC,WAAD;AAAA,EAAW,YAAU;AAAA,EAAC;AAAA,EAAoB;AAAA,EAAkB;AAAA;AAGzF,IAAO,6BAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|