@elliemae/ds-query-builder 3.56.0-rc.1 → 3.57.0-next.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.
|
@@ -33,11 +33,10 @@ __export(DisplayOutput_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(DisplayOutput_exports);
|
|
34
34
|
var React = __toESM(require("react"));
|
|
35
35
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
-
var import_react = require("react");
|
|
37
|
-
var import_ds_grid = require("@elliemae/ds-grid");
|
|
38
|
-
var import_ds_classnames = require("@elliemae/ds-classnames");
|
|
39
36
|
var import_ds_accordion = require("@elliemae/ds-accordion");
|
|
40
|
-
var
|
|
37
|
+
var import_ds_classnames = require("@elliemae/ds-classnames");
|
|
38
|
+
var import_ds_grid = require("@elliemae/ds-grid");
|
|
39
|
+
var import_react = require("react");
|
|
41
40
|
var import_QueryBuilderContext = require("../QueryBuilderContext/QueryBuilderContext.js");
|
|
42
41
|
const { cssClassName } = (0, import_ds_classnames.convertPropToCssClassName)("query-builder-output");
|
|
43
42
|
class DisplayOutput extends import_react.Component {
|
|
@@ -68,16 +67,7 @@ class DisplayOutput extends import_react.Component {
|
|
|
68
67
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_grid.Grid, { pl: "xxs", pr: "xxs", "data-testid": "qb-fixed-output-content", children: display })
|
|
69
68
|
] });
|
|
70
69
|
}
|
|
71
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: cssClassName, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_accordion.DSAccordion, { activeValue: show, onChange: this.handleChange, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
72
|
-
import_ds_accordion.DSAccordionItem,
|
|
73
|
-
{
|
|
74
|
-
iconClosed: import_ds_icons.ChevronRight,
|
|
75
|
-
iconOpened: import_ds_icons.ChevronDown,
|
|
76
|
-
title: show ? hideLabel : showLabel,
|
|
77
|
-
value: true,
|
|
78
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: display })
|
|
79
|
-
}
|
|
80
|
-
) }) });
|
|
70
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: cssClassName, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_accordion.DSAccordion, { activeValue: show, onChange: this.handleChange, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_accordion.DSAccordionItem, { title: show ? hideLabel : showLabel, value: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: display }) }) }) });
|
|
81
71
|
} });
|
|
82
72
|
}
|
|
83
73
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/components/DisplayOutput/DisplayOutput.tsx", "../../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;
|
|
4
|
+
"sourcesContent": ["import { DSAccordion, DSAccordionItem } from '@elliemae/ds-accordion';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport { Grid } from '@elliemae/ds-grid';\nimport { Component } from 'react';\nimport { QueryBuilderContext } from '../QueryBuilderContext/QueryBuilderContext.js';\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} data-testid=\"qb-fixed-output-wrapper\">\n <Grid p=\"xxs\">\n <strong data-testid=\"qb-fixed-output-label\">{displayFixedOutput}</strong>\n </Grid>\n <Grid pl=\"xxs\" pr=\"xxs\" data-testid=\"qb-fixed-output-content\">\n {display}\n </Grid>\n </div>\n );\n }\n\n return (\n <div className={cssClassName}>\n <DSAccordion activeValue={show} onChange={this.handleChange}>\n <DSAccordionItem title={show ? hideLabel : showLabel} value>\n <div>{display}</div>\n </DSAccordionItem>\n </DSAccordion>\n </div>\n );\n }}\n </QueryBuilderContext.Consumer>\n );\n }\n}\n\nexport default DisplayOutput;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADoCT;AApCd,0BAA6C;AAC7C,2BAA0C;AAC1C,qBAAqB;AACrB,mBAA0B;AAC1B,iCAAoC;AAEpC,MAAM,EAAE,aAAa,QAAI,gDAA0B,sBAAsB;AAEzE,MAAM,sBAAsB,uBAAU;AAAA,EACpC,YAAY,OAAO;AACjB,UAAM,KAAK;AACX,SAAK,QAAQ;AAAA,MACX,MAAM,MAAM;AAAA,IACd;AAAA,EACF;AAAA,EAEA,eAAe,MAAM;AACnB,SAAK,SAAS,CAAC,EAAE,KAAK,OAAO;AAAA,MAC3B,MAAM,CAAC;AAAA,IACT,EAAE;AAAA,EACJ;AAAA,EAEA,SAAS;AACP,UAAM,EAAE,KAAK,IAAI,KAAK;AACtB,UAAM,EAAE,WAAW,WAAW,mBAAmB,IAAI,KAAK;AAC1D,WACE,4CAAC,+CAAoB,UAApB,EACE,WAAC,EAAE,OAAO,MAAM;AACf,UAAI,UAAU;AACd,UAAI;AACF,kBAAU,OAAO,WAAW,WAAW,KAAK,UAAU,MAAM,IAAI;AAAA,MAClE,SAAS,GAAG;AACV,kBAAU;AAAA,MACZ;AACA,UAAI,oBAAoB;AACtB,eACE,6CAAC,SAAI,WAAW,cAAc,eAAY,2BACxC;AAAA,sDAAC,uBAAK,GAAE,OACN,sDAAC,YAAO,eAAY,yBAAyB,8BAAmB,GAClE;AAAA,UACA,4CAAC,uBAAK,IAAG,OAAM,IAAG,OAAM,eAAY,2BACjC,mBACH;AAAA,WACF;AAAA,MAEJ;AAEA,aACE,4CAAC,SAAI,WAAW,cACd,sDAAC,mCAAY,aAAa,MAAM,UAAU,KAAK,cAC7C,sDAAC,uCAAgB,OAAO,OAAO,YAAY,WAAW,OAAK,MACzD,sDAAC,SAAK,mBAAQ,GAChB,GACF,GACF;AAAA,IAEJ,GACF;AAAA,EAEJ;AACF;AAEA,IAAO,wBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Component } from "react";
|
|
4
|
-
import { Grid } from "@elliemae/ds-grid";
|
|
5
|
-
import { convertPropToCssClassName } from "@elliemae/ds-classnames";
|
|
6
3
|
import { DSAccordion, DSAccordionItem } from "@elliemae/ds-accordion";
|
|
7
|
-
import {
|
|
4
|
+
import { convertPropToCssClassName } from "@elliemae/ds-classnames";
|
|
5
|
+
import { Grid } from "@elliemae/ds-grid";
|
|
6
|
+
import { Component } from "react";
|
|
8
7
|
import { QueryBuilderContext } from "../QueryBuilderContext/QueryBuilderContext.js";
|
|
9
8
|
const { cssClassName } = convertPropToCssClassName("query-builder-output");
|
|
10
9
|
class DisplayOutput extends Component {
|
|
@@ -35,16 +34,7 @@ class DisplayOutput extends Component {
|
|
|
35
34
|
/* @__PURE__ */ jsx(Grid, { pl: "xxs", pr: "xxs", "data-testid": "qb-fixed-output-content", children: display })
|
|
36
35
|
] });
|
|
37
36
|
}
|
|
38
|
-
return /* @__PURE__ */ jsx("div", { className: cssClassName, children: /* @__PURE__ */ jsx(DSAccordion, { activeValue: show, onChange: this.handleChange, children: /* @__PURE__ */ jsx(
|
|
39
|
-
DSAccordionItem,
|
|
40
|
-
{
|
|
41
|
-
iconClosed: ChevronRight,
|
|
42
|
-
iconOpened: ChevronDown,
|
|
43
|
-
title: show ? hideLabel : showLabel,
|
|
44
|
-
value: true,
|
|
45
|
-
children: /* @__PURE__ */ jsx("div", { children: display })
|
|
46
|
-
}
|
|
47
|
-
) }) });
|
|
37
|
+
return /* @__PURE__ */ jsx("div", { className: cssClassName, children: /* @__PURE__ */ jsx(DSAccordion, { activeValue: show, onChange: this.handleChange, children: /* @__PURE__ */ jsx(DSAccordionItem, { title: show ? hideLabel : showLabel, value: true, children: /* @__PURE__ */ jsx("div", { children: display }) }) }) });
|
|
48
38
|
} });
|
|
49
39
|
}
|
|
50
40
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
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
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { DSAccordion, DSAccordionItem } from '@elliemae/ds-accordion';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport { Grid } from '@elliemae/ds-grid';\nimport { Component } from 'react';\nimport { QueryBuilderContext } from '../QueryBuilderContext/QueryBuilderContext.js';\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} data-testid=\"qb-fixed-output-wrapper\">\n <Grid p=\"xxs\">\n <strong data-testid=\"qb-fixed-output-label\">{displayFixedOutput}</strong>\n </Grid>\n <Grid pl=\"xxs\" pr=\"xxs\" data-testid=\"qb-fixed-output-content\">\n {display}\n </Grid>\n </div>\n );\n }\n\n return (\n <div className={cssClassName}>\n <DSAccordion activeValue={show} onChange={this.handleChange}>\n <DSAccordionItem title={show ? hideLabel : showLabel} value>\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,YAAY,WAAW;ACoCT,SAEI,KAFJ;AApCd,SAAS,aAAa,uBAAuB;AAC7C,SAAS,iCAAiC;AAC1C,SAAS,YAAY;AACrB,SAAS,iBAAiB;AAC1B,SAAS,2BAA2B;AAEpC,MAAM,EAAE,aAAa,IAAI,0BAA0B,sBAAsB;AAEzE,MAAM,sBAAsB,UAAU;AAAA,EACpC,YAAY,OAAO;AACjB,UAAM,KAAK;AACX,SAAK,QAAQ;AAAA,MACX,MAAM,MAAM;AAAA,IACd;AAAA,EACF;AAAA,EAEA,eAAe,MAAM;AACnB,SAAK,SAAS,CAAC,EAAE,KAAK,OAAO;AAAA,MAC3B,MAAM,CAAC;AAAA,IACT,EAAE;AAAA,EACJ;AAAA,EAEA,SAAS;AACP,UAAM,EAAE,KAAK,IAAI,KAAK;AACtB,UAAM,EAAE,WAAW,WAAW,mBAAmB,IAAI,KAAK;AAC1D,WACE,oBAAC,oBAAoB,UAApB,EACE,WAAC,EAAE,OAAO,MAAM;AACf,UAAI,UAAU;AACd,UAAI;AACF,kBAAU,OAAO,WAAW,WAAW,KAAK,UAAU,MAAM,IAAI;AAAA,MAClE,SAAS,GAAG;AACV,kBAAU;AAAA,MACZ;AACA,UAAI,oBAAoB;AACtB,eACE,qBAAC,SAAI,WAAW,cAAc,eAAY,2BACxC;AAAA,8BAAC,QAAK,GAAE,OACN,8BAAC,YAAO,eAAY,yBAAyB,8BAAmB,GAClE;AAAA,UACA,oBAAC,QAAK,IAAG,OAAM,IAAG,OAAM,eAAY,2BACjC,mBACH;AAAA,WACF;AAAA,MAEJ;AAEA,aACE,oBAAC,SAAI,WAAW,cACd,8BAAC,eAAY,aAAa,MAAM,UAAU,KAAK,cAC7C,8BAAC,mBAAgB,OAAO,OAAO,YAAY,WAAW,OAAK,MACzD,8BAAC,SAAK,mBAAQ,GAChB,GACF,GACF;AAAA,IAEJ,GACF;AAAA,EAEJ;AACF;AAEA,IAAO,wBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-query-builder",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.57.0-next.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Query Builder",
|
|
6
6
|
"files": [
|
|
@@ -39,23 +39,23 @@
|
|
|
39
39
|
"classnames": "~2.3.2",
|
|
40
40
|
"prop-types": "~15.8.1",
|
|
41
41
|
"react-addons-update": "~15.6.3",
|
|
42
|
-
"@elliemae/ds-accordion": "3.
|
|
43
|
-
"@elliemae/ds-
|
|
44
|
-
"@elliemae/ds-
|
|
45
|
-
"@elliemae/ds-
|
|
46
|
-
"@elliemae/ds-
|
|
47
|
-
"@elliemae/ds-
|
|
48
|
-
"@elliemae/ds-
|
|
49
|
-
"@elliemae/ds-
|
|
50
|
-
"@elliemae/ds-
|
|
51
|
-
"@elliemae/ds-
|
|
52
|
-
"@elliemae/ds-
|
|
42
|
+
"@elliemae/ds-accordion": "3.57.0-next.2",
|
|
43
|
+
"@elliemae/ds-classnames": "3.57.0-next.2",
|
|
44
|
+
"@elliemae/ds-form": "3.57.0-next.2",
|
|
45
|
+
"@elliemae/ds-button": "3.57.0-next.2",
|
|
46
|
+
"@elliemae/ds-icon": "3.57.0-next.2",
|
|
47
|
+
"@elliemae/ds-icons": "3.57.0-next.2",
|
|
48
|
+
"@elliemae/ds-grid": "3.57.0-next.2",
|
|
49
|
+
"@elliemae/ds-popper": "3.57.0-next.2",
|
|
50
|
+
"@elliemae/ds-props-helpers": "3.57.0-next.2",
|
|
51
|
+
"@elliemae/ds-tooltip": "3.57.0-next.2",
|
|
52
|
+
"@elliemae/ds-shared": "3.57.0-next.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@elliemae/pui-cli": "9.0.0-next.65",
|
|
56
56
|
"jest": "~29.7.0",
|
|
57
57
|
"styled-components": "~5.3.9",
|
|
58
|
-
"@elliemae/ds-monorepo-devops": "3.
|
|
58
|
+
"@elliemae/ds-monorepo-devops": "3.57.0-next.2"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"lodash-es": "^4.17.21",
|