@pega/react-sdk-components 0.23.2 → 0.23.3
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/lib/components/templates/Details/Details/Details.d.ts.map +1 -1
- package/lib/components/templates/Details/Details/Details.js +2 -0
- package/lib/components/templates/Details/Details/Details.js.map +1 -1
- package/lib/components/templates/Details/DetailsThreeColumn/DetailsThreeColumn.d.ts.map +1 -1
- package/lib/components/templates/Details/DetailsThreeColumn/DetailsThreeColumn.js +2 -0
- package/lib/components/templates/Details/DetailsThreeColumn/DetailsThreeColumn.js.map +1 -1
- package/lib/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn.d.ts.map +1 -1
- package/lib/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn.js +2 -0
- package/lib/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../../../../src/components/templates/Details/Details/Details.tsx"],"names":[],"mappings":";AAKA,iBAAwB,OAAO,CAAC,KAAK,KAAA,
|
|
1
|
+
{"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../../../../src/components/templates/Details/Details/Details.tsx"],"names":[],"mappings":";AAKA,iBAAwB,OAAO,CAAC,KAAK,KAAA,eAqBpC;kBArBuB,OAAO;;;;eAAP,OAAO"}
|
|
@@ -7,6 +7,8 @@ export default function Details(props) {
|
|
|
7
7
|
const arFields = [];
|
|
8
8
|
for (const child of children) {
|
|
9
9
|
const theChildPConn = child.props.getPConnect();
|
|
10
|
+
theChildPConn.setInheritedProp('displayMode', 'LABELS_LEFT');
|
|
11
|
+
theChildPConn.setInheritedProp('readOnly', true);
|
|
10
12
|
const theChildrenOfChild = theChildPConn.getChildren();
|
|
11
13
|
arFields.push(theChildrenOfChild);
|
|
12
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Details.js","sourceRoot":"","sources":["../../../../../src/components/templates/Details/Details/Details.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,sCAAsC;AACtC,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,aAAa,MAAM,+CAA+C,CAAC;AAE1E,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK;IACnC,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,QAAQ,GAAe,EAAE,CAAC;IAEhC,KAAK,MAAM,KAAK,IAAI,QAAQ,EAAE;QAC5B,MAAM,aAAa,GAAG,KAAK,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;QAChD,MAAM,kBAAkB,GAAG,aAAa,CAAC,WAAW,EAAE,CAAC;QACvD,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;KACnC;IAED,OAAO,CACH,6BAAK,EAAE,EAAC,kBAAkB;QACxB,oBAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC;YACxB,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE;gBACf,oBAAC,aAAa,IAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAI,CACjC,CACF,CACH,CACP,CAAC;AACN,CAAC;AAED,OAAO,CAAC,YAAY,GAAG;AACrB,eAAe;CAChB,CAAA;AAED,OAAO,CAAC,SAAS,GAAG;AAClB,8CAA8C;CAC/C,CAAC","sourcesContent":["import React from \"react\";\n// import PropTypes from \"prop-types\";\nimport Grid from '@material-ui/core/Grid';\nimport DetailsFields from '../../../designSystemExtensions/DetailsFields';\n\nexport default function Details(props) {\n const { children } = props;\n const arFields: Array<any> = [];\n\n for (const child of children) {\n const theChildPConn = child.props.getPConnect();\n const theChildrenOfChild = theChildPConn.getChildren();\n arFields.push(theChildrenOfChild);\n }\n\n return (\n <div id=\"DetailsOneColumn\">\n <Grid container spacing={1}>\n <Grid item xs={12}>\n <DetailsFields fields={arFields[0]} />\n </Grid>\n </Grid>\n </div>\n );\n}\n\nDetails.defaultProps = {\n // children: []\n}\n\nDetails.propTypes = {\n // children: PropTypes.arrayOf(PropTypes.node)\n};\n"]}
|
|
1
|
+
{"version":3,"file":"Details.js","sourceRoot":"","sources":["../../../../../src/components/templates/Details/Details/Details.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,sCAAsC;AACtC,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,aAAa,MAAM,+CAA+C,CAAC;AAE1E,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,KAAK;IACnC,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,QAAQ,GAAe,EAAE,CAAC;IAEhC,KAAK,MAAM,KAAK,IAAI,QAAQ,EAAE;QAC5B,MAAM,aAAa,GAAG,KAAK,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;QAChD,aAAa,CAAC,gBAAgB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;QAC7D,aAAa,CAAC,gBAAgB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QACjD,MAAM,kBAAkB,GAAG,aAAa,CAAC,WAAW,EAAE,CAAC;QACvD,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;KACnC;IAED,OAAO,CACH,6BAAK,EAAE,EAAC,kBAAkB;QACxB,oBAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC;YACxB,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,EAAE;gBACf,oBAAC,aAAa,IAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAI,CACjC,CACF,CACH,CACP,CAAC;AACN,CAAC;AAED,OAAO,CAAC,YAAY,GAAG;AACrB,eAAe;CAChB,CAAA;AAED,OAAO,CAAC,SAAS,GAAG;AAClB,8CAA8C;CAC/C,CAAC","sourcesContent":["import React from \"react\";\n// import PropTypes from \"prop-types\";\nimport Grid from '@material-ui/core/Grid';\nimport DetailsFields from '../../../designSystemExtensions/DetailsFields';\n\nexport default function Details(props) {\n const { children } = props;\n const arFields: Array<any> = [];\n\n for (const child of children) {\n const theChildPConn = child.props.getPConnect();\n theChildPConn.setInheritedProp('displayMode', 'LABELS_LEFT');\n theChildPConn.setInheritedProp('readOnly', true);\n const theChildrenOfChild = theChildPConn.getChildren();\n arFields.push(theChildrenOfChild);\n }\n\n return (\n <div id=\"DetailsOneColumn\">\n <Grid container spacing={1}>\n <Grid item xs={12}>\n <DetailsFields fields={arFields[0]} />\n </Grid>\n </Grid>\n </div>\n );\n}\n\nDetails.defaultProps = {\n // children: []\n}\n\nDetails.propTypes = {\n // children: PropTypes.arrayOf(PropTypes.node)\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailsThreeColumn.d.ts","sourceRoot":"","sources":["../../../../../src/components/templates/Details/DetailsThreeColumn/DetailsThreeColumn.tsx"],"names":[],"mappings":";AAKA,iBAAwB,kBAAkB,CAAC,KAAK,KAAA,
|
|
1
|
+
{"version":3,"file":"DetailsThreeColumn.d.ts","sourceRoot":"","sources":["../../../../../src/components/templates/Details/DetailsThreeColumn/DetailsThreeColumn.tsx"],"names":[],"mappings":";AAKA,iBAAwB,kBAAkB,CAAC,KAAK,KAAA,eAgC/C;kBAhCuB,kBAAkB;;;eAAlB,kBAAkB"}
|
|
@@ -7,6 +7,8 @@ export default function DetailsThreeColumn(props) {
|
|
|
7
7
|
const arFields = [];
|
|
8
8
|
for (const child of children) {
|
|
9
9
|
const theChildPConn = child.props.getPConnect();
|
|
10
|
+
theChildPConn.setInheritedProp('displayMode', 'LABELS_LEFT');
|
|
11
|
+
theChildPConn.setInheritedProp('readOnly', true);
|
|
10
12
|
const theChildrenOfChild = theChildPConn.getChildren();
|
|
11
13
|
arFields.push(theChildrenOfChild);
|
|
12
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailsThreeColumn.js","sourceRoot":"","sources":["../../../../../src/components/templates/Details/DetailsThreeColumn/DetailsThreeColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,sCAAsC;AACtC,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,aAAa,MAAM,+CAA+C,CAAC;AAE1E,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,KAAK;IAC9C,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,QAAQ,GAAe,EAAE,CAAC;IAEhC,KAAK,MAAM,KAAK,IAAI,QAAQ,EAAE;QAC5B,MAAM,aAAa,GAAG,KAAK,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;QAChD,MAAM,kBAAkB,GAAG,aAAa,CAAC,WAAW,EAAE,CAAC;QACvD,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;KACnC;IAED,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;QACzB,sCAAsC;QACtC,OAAO,CAAC,KAAK,CAAC,sDAAsD,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;KACxF;IAED,OAAO,CACL,6BAAK,EAAE,EAAC,oBAAoB;QAC1B,oBAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC;YACxB,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC;gBACd,oBAAC,aAAa,IAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAI,CACjC;YACP,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC;gBACd,oBAAC,aAAa,IAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAI,CACjC;YACP,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC;gBACd,oBAAC,aAAa,IAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAI,CACjC,CACF,CACH,CACP,CAAC;AACJ,CAAC;AAED,kBAAkB,CAAC,SAAS,GAAG;AAC7B,6BAA6B;AAC7B,2BAA2B;AAC3B,0CAA0C;AAC1C,wCAAwC;CACzC,CAAC","sourcesContent":["import React from 'react';\n// import PropTypes from \"prop-types\";\nimport Grid from '@material-ui/core/Grid';\nimport DetailsFields from '../../../designSystemExtensions/DetailsFields';\n\nexport default function DetailsThreeColumn(props) {\n const { children } = props;\n const arFields: Array<any> = [];\n\n for (const child of children) {\n const theChildPConn = child.props.getPConnect();\n const theChildrenOfChild = theChildPConn.getChildren();\n arFields.push(theChildrenOfChild);\n }\n\n if (arFields.length !== 3) {\n // eslint-disable-next-line no-console\n console.error(`DetailsThreeColumn expects 3 children and received ${arFields.length}`);\n }\n\n return (\n <div id='DetailsThreeColumn'>\n <Grid container spacing={1}>\n <Grid item xs={4}>\n <DetailsFields fields={arFields[0]} />\n </Grid>\n <Grid item xs={4}>\n <DetailsFields fields={arFields[1]} />\n </Grid>\n <Grid item xs={4}>\n <DetailsFields fields={arFields[2]} />\n </Grid>\n </Grid>\n </div>\n );\n}\n\nDetailsThreeColumn.propTypes = {\n // showLabel: PropTypes.bool,\n // label: PropTypes.string,\n // getPConnect: PropTypes.func.isRequired,\n // template: PropTypes.string.isRequired\n};\n"]}
|
|
1
|
+
{"version":3,"file":"DetailsThreeColumn.js","sourceRoot":"","sources":["../../../../../src/components/templates/Details/DetailsThreeColumn/DetailsThreeColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,sCAAsC;AACtC,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,aAAa,MAAM,+CAA+C,CAAC;AAE1E,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,KAAK;IAC9C,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,QAAQ,GAAe,EAAE,CAAC;IAEhC,KAAK,MAAM,KAAK,IAAI,QAAQ,EAAE;QAC5B,MAAM,aAAa,GAAG,KAAK,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;QAChD,aAAa,CAAC,gBAAgB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;QAC7D,aAAa,CAAC,gBAAgB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QACjD,MAAM,kBAAkB,GAAG,aAAa,CAAC,WAAW,EAAE,CAAC;QACvD,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;KACnC;IAED,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;QACzB,sCAAsC;QACtC,OAAO,CAAC,KAAK,CAAC,sDAAsD,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;KACxF;IAED,OAAO,CACL,6BAAK,EAAE,EAAC,oBAAoB;QAC1B,oBAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC;YACxB,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC;gBACd,oBAAC,aAAa,IAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAI,CACjC;YACP,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC;gBACd,oBAAC,aAAa,IAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAI,CACjC;YACP,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC;gBACd,oBAAC,aAAa,IAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAI,CACjC,CACF,CACH,CACP,CAAC;AACJ,CAAC;AAED,kBAAkB,CAAC,SAAS,GAAG;AAC7B,6BAA6B;AAC7B,2BAA2B;AAC3B,0CAA0C;AAC1C,wCAAwC;CACzC,CAAC","sourcesContent":["import React from 'react';\n// import PropTypes from \"prop-types\";\nimport Grid from '@material-ui/core/Grid';\nimport DetailsFields from '../../../designSystemExtensions/DetailsFields';\n\nexport default function DetailsThreeColumn(props) {\n const { children } = props;\n const arFields: Array<any> = [];\n\n for (const child of children) {\n const theChildPConn = child.props.getPConnect();\n theChildPConn.setInheritedProp('displayMode', 'LABELS_LEFT');\n theChildPConn.setInheritedProp('readOnly', true);\n const theChildrenOfChild = theChildPConn.getChildren();\n arFields.push(theChildrenOfChild);\n }\n\n if (arFields.length !== 3) {\n // eslint-disable-next-line no-console\n console.error(`DetailsThreeColumn expects 3 children and received ${arFields.length}`);\n }\n\n return (\n <div id='DetailsThreeColumn'>\n <Grid container spacing={1}>\n <Grid item xs={4}>\n <DetailsFields fields={arFields[0]} />\n </Grid>\n <Grid item xs={4}>\n <DetailsFields fields={arFields[1]} />\n </Grid>\n <Grid item xs={4}>\n <DetailsFields fields={arFields[2]} />\n </Grid>\n </Grid>\n </div>\n );\n}\n\nDetailsThreeColumn.propTypes = {\n // showLabel: PropTypes.bool,\n // label: PropTypes.string,\n // getPConnect: PropTypes.func.isRequired,\n // template: PropTypes.string.isRequired\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailsTwoColumn.d.ts","sourceRoot":"","sources":["../../../../../src/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn.tsx"],"names":[],"mappings":";AAKA,iBAAwB,gBAAgB,CAAC,KAAK,KAAA,
|
|
1
|
+
{"version":3,"file":"DetailsTwoColumn.d.ts","sourceRoot":"","sources":["../../../../../src/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn.tsx"],"names":[],"mappings":";AAKA,iBAAwB,gBAAgB,CAAC,KAAK,KAAA,eA8B7C;kBA9BuB,gBAAgB;;;eAAhB,gBAAgB"}
|
|
@@ -7,6 +7,8 @@ export default function DetailsTwoColumn(props) {
|
|
|
7
7
|
const arFields = [];
|
|
8
8
|
for (const child of children) {
|
|
9
9
|
const theChildPConn = child.props.getPConnect();
|
|
10
|
+
theChildPConn.setInheritedProp('displayMode', 'LABELS_LEFT');
|
|
11
|
+
theChildPConn.setInheritedProp('readOnly', true);
|
|
10
12
|
const theChildrenOfChild = theChildPConn.getChildren();
|
|
11
13
|
arFields.push(theChildrenOfChild);
|
|
12
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailsTwoColumn.js","sourceRoot":"","sources":["../../../../../src/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,sCAAsC;AACtC,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,aAAa,MAAM,+CAA+C,CAAC;AAE1E,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,KAAK;IAC5C,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,QAAQ,GAAe,EAAE,CAAC;IAEhC,KAAK,MAAM,KAAK,IAAI,QAAQ,EAAE;QAC5B,MAAM,aAAa,GAAG,KAAK,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;QAChD,MAAM,kBAAkB,GAAG,aAAa,CAAC,WAAW,EAAE,CAAC;QACvD,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;KACnC;IAED,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;QACzB,sCAAsC;QACtC,OAAO,CAAC,KAAK,CAAC,oDAAoD,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;KACtF;IAGD,OAAO,CACL,6BAAK,EAAE,EAAC,kBAAkB;QACxB,oBAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC;YACxB,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC;gBACd,oBAAC,aAAa,IAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAI,CACjC;YACP,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC;gBACd,oBAAC,aAAa,IAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAI,CACjC,CACF,CACH,CACP,CAAA;AACH,CAAC;AAED,gBAAgB,CAAC,SAAS,GAAG;AAC3B,6BAA6B;AAC7B,2BAA2B;AAC3B,0CAA0C;AAC1C,wCAAwC;CACzC,CAAC","sourcesContent":["import React from \"react\";\n// import PropTypes from \"prop-types\";\nimport Grid from '@material-ui/core/Grid';\nimport DetailsFields from '../../../designSystemExtensions/DetailsFields';\n\nexport default function DetailsTwoColumn(props) {\n const { children } = props;\n const arFields: Array<any> = [];\n\n for (const child of children) {\n const theChildPConn = child.props.getPConnect();\n const theChildrenOfChild = theChildPConn.getChildren();\n arFields.push(theChildrenOfChild);\n }\n\n if (arFields.length !== 2) {\n // eslint-disable-next-line no-console\n console.error(`DetailsTwoColumn expects 2 children and received ${arFields.length}`);\n }\n\n\n return (\n <div id=\"DetailsTwoColumn\">\n <Grid container spacing={1}>\n <Grid item xs={6}>\n <DetailsFields fields={arFields[0]} />\n </Grid>\n <Grid item xs={6}>\n <DetailsFields fields={arFields[1]} />\n </Grid>\n </Grid>\n </div>\n )\n}\n\nDetailsTwoColumn.propTypes = {\n // showLabel: PropTypes.bool,\n // label: PropTypes.string,\n // getPConnect: PropTypes.func.isRequired,\n // template: PropTypes.string.isRequired\n};\n"]}
|
|
1
|
+
{"version":3,"file":"DetailsTwoColumn.js","sourceRoot":"","sources":["../../../../../src/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,sCAAsC;AACtC,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,aAAa,MAAM,+CAA+C,CAAC;AAE1E,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,KAAK;IAC5C,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,QAAQ,GAAe,EAAE,CAAC;IAEhC,KAAK,MAAM,KAAK,IAAI,QAAQ,EAAE;QAC5B,MAAM,aAAa,GAAG,KAAK,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;QAChD,aAAa,CAAC,gBAAgB,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;QAC7D,aAAa,CAAC,gBAAgB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QACjD,MAAM,kBAAkB,GAAG,aAAa,CAAC,WAAW,EAAE,CAAC;QACvD,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;KACnC;IAED,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;QACzB,sCAAsC;QACtC,OAAO,CAAC,KAAK,CAAC,oDAAoD,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;KACtF;IAGD,OAAO,CACL,6BAAK,EAAE,EAAC,kBAAkB;QACxB,oBAAC,IAAI,IAAC,SAAS,QAAC,OAAO,EAAE,CAAC;YACxB,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC;gBACd,oBAAC,aAAa,IAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAI,CACjC;YACP,oBAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC;gBACd,oBAAC,aAAa,IAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAI,CACjC,CACF,CACH,CACP,CAAA;AACH,CAAC;AAED,gBAAgB,CAAC,SAAS,GAAG;AAC3B,6BAA6B;AAC7B,2BAA2B;AAC3B,0CAA0C;AAC1C,wCAAwC;CACzC,CAAC","sourcesContent":["import React from \"react\";\n// import PropTypes from \"prop-types\";\nimport Grid from '@material-ui/core/Grid';\nimport DetailsFields from '../../../designSystemExtensions/DetailsFields';\n\nexport default function DetailsTwoColumn(props) {\n const { children } = props;\n const arFields: Array<any> = [];\n\n for (const child of children) {\n const theChildPConn = child.props.getPConnect();\n theChildPConn.setInheritedProp('displayMode', 'LABELS_LEFT');\n theChildPConn.setInheritedProp('readOnly', true);\n const theChildrenOfChild = theChildPConn.getChildren();\n arFields.push(theChildrenOfChild);\n }\n\n if (arFields.length !== 2) {\n // eslint-disable-next-line no-console\n console.error(`DetailsTwoColumn expects 2 children and received ${arFields.length}`);\n }\n\n\n return (\n <div id=\"DetailsTwoColumn\">\n <Grid container spacing={1}>\n <Grid item xs={6}>\n <DetailsFields fields={arFields[0]} />\n </Grid>\n <Grid item xs={6}>\n <DetailsFields fields={arFields[1]} />\n </Grid>\n </Grid>\n </div>\n )\n}\n\nDetailsTwoColumn.propTypes = {\n // showLabel: PropTypes.bool,\n // label: PropTypes.string,\n // getPConnect: PropTypes.func.isRequired,\n // template: PropTypes.string.isRequired\n};\n"]}
|
package/package.json
CHANGED