@pega/react-sdk-components 0.23.5 → 0.23.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.js +1 -1
- package/lib/components/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.js.map +1 -1
- package/lib/components/helpers/versionHelpers.d.ts.map +1 -1
- package/lib/components/helpers/versionHelpers.js +25 -0
- package/lib/components/helpers/versionHelpers.js.map +1 -1
- package/lib/components/infra/ToDo/ToDo.d.ts.map +1 -1
- package/lib/components/infra/ToDo/ToDo.js +7 -4
- package/lib/components/infra/ToDo/ToDo.js.map +1 -1
- package/lib/sdk-pega-component-map.d.ts +6 -2
- package/lib/sdk-pega-component-map.js +9 -5
- package/lib/sdk-pega-component-map.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import PropTypes from "prop-types";
|
|
|
3
3
|
import isDeepEqual from 'fast-deep-equal/react';
|
|
4
4
|
import Grid from '@material-ui/core/Grid';
|
|
5
5
|
import TextField from '@material-ui/core/TextField';
|
|
6
|
-
import Operator from '../Operator
|
|
6
|
+
import Operator from '../Operator';
|
|
7
7
|
import './CaseSummaryFields.css';
|
|
8
8
|
import { format } from '../../helpers/formatters';
|
|
9
9
|
export default function CaseSummaryFields(props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseSummaryFields.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAEhD,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,SAAS,MAAM,6BAA6B,CAAC;AACpD,OAAO,QAAQ,MAAM,
|
|
1
|
+
{"version":3,"file":"CaseSummaryFields.js","sourceRoot":"","sources":["../../../../src/components/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAEhD,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,SAAS,MAAM,6BAA6B,CAAC;AACpD,OAAO,QAAQ,MAAM,aAAa,CAAC;AAEnC,OAAO,yBAAyB,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,KAAK;IAC7C,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAEhD,MAAM,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC5D,MAAM,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,GAAG,QAAQ,CAAa,EAAE,CAAC,CAAC;IAG9E,SAAS,aAAa,CAAC,KAAU;QAC/B,MAAM,cAAc,GAAG,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;QAEhD,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,KAAK,EAAE,EAAE;YAC5D,qCAAqC;YACrC,mDAAmD;YACnD,QAAO,cAAc,EAAE;gBACrB,KAAK,cAAc;oBACjB,OAAO,oBAAC,QAAQ,IAAC,YAAY,EAAE,KAAK,CAAC,MAAM,GAAI,CAAC;oBAChD,MAAM;gBAER;oBACE,OAAO,oBAAC,SAAS,IACf,KAAK,EAAC,KAAK,EACX,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,EACz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,CAAC,IAAI,KAAK,QAAQ,EAAE;QAClD,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAC,CAAC;QAE9E,MAAM,KAAK,GAAG,mBAAmB,CAAC,MAAM,CAAC;QACzC,IAAI,KAAK,GAAG,CAAC,EAAE;YACb,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SACnC;aACI;YACH,mBAAmB,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC;SAC3C;KACF;IAED,0DAA0D;IAC1D,wCAAwC;IACxC,IAAI,CAAC,WAAW,CAAC,iBAAiB,EAAE,mBAAmB,CAAC,EAAE;QACxD,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;KACxC;IAGD,OAAO,oBAAC,KAAK,CAAC,QAAQ;QACpB,oBAAC,IAAI,IAAC,SAAS,QAAC,SAAS,EAAC,0BAA0B,IACjD,oBAAoB,CAChB,CACQ,CAAC;AACpB,CAAC;AAED,iBAAiB,CAAC,SAAS,GAAG;IAC5B,MAAM,EAAE,SAAS,CAAC,MAAM;IACxB,UAAU,EAAE,SAAS,CAAC,IAAI;IAC1B,SAAS,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC;CAC/C,CAAC","sourcesContent":["import React, { useState, useEffect } from \"react\";\nimport PropTypes from \"prop-types\";\nimport isDeepEqual from 'fast-deep-equal/react';\n\nimport Grid from '@material-ui/core/Grid';\nimport TextField from '@material-ui/core/TextField';\nimport Operator from '../Operator';\n\nimport './CaseSummaryFields.css';\n\nimport { format } from '../../helpers/formatters';\n\nexport default function CaseSummaryFields(props) {\n const { status, showStatus, theFields } = props;\n\n const [theFieldsToRender, setFieldsToRender] = useState([]);\n const [theFieldsAsGridItems, setFieldsAsGridItems] = useState<Array<any>>([]);\n\n\n function getFieldValue(field: any): any {\n const fieldTypeLower = field.type.toLowerCase();\n\n if (field.config.value === null || field.config.value === \"\") {\n // Special handling for missing value\n // eslint-disable-next-line sonarjs/no-small-switch\n switch(fieldTypeLower) {\n case \"caseoperator\" :\n return <Operator caseOpConfig={field.config} />;\n break;\n\n default:\n return <TextField\n value=\"---\"\n label={field.config.label}\n InputProps={{\n readOnly: true\n }} />;\n }\n }\n\n switch(fieldTypeLower) {\n case \"textinput\" :\n return <TextField\n value={field.config.value}\n label={field.config.label}\n InputProps={{\n readOnly: true\n }} />;\n\n case \"status\" :\n return <TextField\n className=\"psdk-csf-status-style\"\n value={field.config.value}\n label={field.config.label}\n InputProps={{\n readOnly: true\n }} />;\n\n case \"phone\":\n {\n const displayPhone = (field.config.value !== \"\") ? field.config.value : \"---\";\n return <a href={`tel:${displayPhone}`}>\n <TextField\n value={field.config.value}\n label={field.config.label}\n InputProps={{\n readOnly: true,\n inputProps: {style: {cursor: 'pointer'}}\n }}\n />\n </a>;\n }\n\n case \"email\":\n {\n const displayEmail = format(field.config.value, field.type);\n return <a href={`mailto:${displayEmail}`}>\n <TextField\n value={field.config.value}\n label={field.config.label}\n InputProps={{\n readOnly: true,\n inputProps: {style: {cursor: 'pointer'}}\n }}\n />\n </a>;\n\n }\n\n case \"date\":\n return <TextField\n value={format(field.config.value, field.type)}\n label={field.config.label}\n InputProps={{\n readOnly: true\n }} />;\n\n case \"caseoperator\":\n return <Operator caseOpConfig={field.config} />;\n break;\n\n default:\n return (\n <span>{field.type.toLowerCase()} {field.config.value}</span>\n );\n\n }\n\n }\n\n\n // Whenever theFieldsToRender changes, update theFieldsAsGridItems that's used during render\n useEffect(() => {\n const arGridItems = theFieldsToRender.map((field: any) => {\n return ( <Grid item xs={6} key={field.config.label}>{getFieldValue(field)}</Grid> );\n });\n setFieldsAsGridItems(arGridItems);\n },\n [theFieldsToRender]);\n\n\n const theFieldsModifiable = theFields;\n\n // Special Case: if showStatus is true, splice the status value to be 2nd in theFields\n // if it's not already there\n if (showStatus && theFields?.[1].type !== \"status\") {\n const oStatus = { type: \"status\", config: { value: status, label: \"Status\" }};\n\n const count = theFieldsModifiable.length;\n if (count < 2) {\n theFieldsModifiable.push(oStatus);\n }\n else {\n theFieldsModifiable.splice(1, 0, oStatus);\n }\n }\n\n // At this point, we know what fields we want to render...\n // So, update our state if it's changed\n if (!isDeepEqual(theFieldsToRender, theFieldsModifiable)) {\n setFieldsToRender(theFieldsModifiable);\n }\n\n\n return <React.Fragment>\n <Grid container className=\"psdk-case-summary-fields\">\n {theFieldsAsGridItems}\n </Grid>\n </React.Fragment>;\n}\n\nCaseSummaryFields.propTypes = {\n status: PropTypes.string,\n showStatus: PropTypes.bool,\n theFields: PropTypes.arrayOf(PropTypes.object)\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versionHelpers.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/versionHelpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,eAAO,MAAM,UAAU,QAAQ,CAAC;AAEhC,wBAAgB,uBAAuB,
|
|
1
|
+
{"version":3,"file":"versionHelpers.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/versionHelpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,eAAO,MAAM,UAAU,QAAQ,CAAC;AAEhC,wBAAgB,uBAAuB,SAsCtC"}
|
|
@@ -9,5 +9,30 @@ export function compareSdkPCoreVersions() {
|
|
|
9
9
|
// const theConstellationVersion = PCore.getPCoreVersion();
|
|
10
10
|
// eslint-disable-next-line no-console
|
|
11
11
|
console.warn(`Using Constellation version ${PCore.getPCoreVersion()}. Ensure this is the same version as your Infinity server.`);
|
|
12
|
+
// JA Testing
|
|
13
|
+
// debugger;
|
|
14
|
+
// const svcParams = [
|
|
15
|
+
// {
|
|
16
|
+
// "field" : "type",
|
|
17
|
+
// "value" : "Field"
|
|
18
|
+
// },
|
|
19
|
+
// {
|
|
20
|
+
// "field" : "subtype",
|
|
21
|
+
// "value" : "Text",
|
|
22
|
+
// }
|
|
23
|
+
// ];
|
|
24
|
+
// const options = {};
|
|
25
|
+
// const AssetLoader = PCore.getAssetLoader();
|
|
26
|
+
// AssetLoader
|
|
27
|
+
// .getSvcComponentsConfig(svcParams, options)
|
|
28
|
+
// .then((response) => {
|
|
29
|
+
// if (response?.data?.components?.[0]) {
|
|
30
|
+
// console.log(response.data.components[0]);
|
|
31
|
+
// }
|
|
32
|
+
// throw new Error('bad response');
|
|
33
|
+
// })
|
|
34
|
+
// .catch(() => {
|
|
35
|
+
// throw new Error('no response:');
|
|
36
|
+
// });
|
|
12
37
|
}
|
|
13
38
|
//# sourceMappingURL=versionHelpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versionHelpers.js","sourceRoot":"","sources":["../../../src/components/helpers/versionHelpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC;AAEhC,MAAM,UAAU,uBAAuB;IAErC,2DAA2D;IAE3D,sCAAsC;IACtC,OAAO,CAAC,IAAI,CAAC,+BAA+B,KAAK,CAAC,eAAe,EAAE,4DAA4D,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"versionHelpers.js","sourceRoot":"","sources":["../../../src/components/helpers/versionHelpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC;AAEhC,MAAM,UAAU,uBAAuB;IAErC,2DAA2D;IAE3D,sCAAsC;IACtC,OAAO,CAAC,IAAI,CAAC,+BAA+B,KAAK,CAAC,eAAe,EAAE,4DAA4D,CAAC,CAAC;IAEjI,aAAa;IACb,YAAY;IAEZ,sBAAsB;IACtB,MAAM;IACN,wBAAwB;IACxB,wBAAwB;IACxB,OAAO;IACP,MAAM;IACN,2BAA2B;IAC3B,wBAAwB;IACxB,MAAM;IACN,KAAK;IAEL,sBAAsB;IAEtB,8CAA8C;IAE9C,cAAc;IACd,iDAAiD;IACjD,2BAA2B;IAC3B,+CAA+C;IAC/C,oDAAoD;IACpD,UAAU;IACV,yCAAyC;IACzC,QAAQ;IACR,oBAAoB;IACpB,yCAAyC;IACzC,SAAS;AAGX,CAAC","sourcesContent":["/**\n * versionHelpers.ts\n *\n * Container helper functions that can identify which version of\n * PCore/PConnect is being run\n */\n\ndeclare const PCore;\n\nexport const sdkVersion = \"8.7\";\n\nexport function compareSdkPCoreVersions() {\n\n // const theConstellationVersion = PCore.getPCoreVersion();\n\n // eslint-disable-next-line no-console\n console.warn(`Using Constellation version ${PCore.getPCoreVersion()}. Ensure this is the same version as your Infinity server.`);\n\n // JA Testing\n // debugger;\n\n // const svcParams = [\n // {\n // \"field\" : \"type\",\n // \"value\" : \"Field\"\n // },\n // {\n // \"field\" : \"subtype\",\n // \"value\" : \"Text\",\n // }\n // ];\n\n // const options = {};\n\n // const AssetLoader = PCore.getAssetLoader();\n\n // AssetLoader\n // .getSvcComponentsConfig(svcParams, options)\n // .then((response) => {\n // if (response?.data?.components?.[0]) {\n // console.log(response.data.components[0]);\n // }\n // throw new Error('bad response');\n // })\n // .catch(() => {\n // throw new Error('no response:');\n // });\n\n\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToDo.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/ToDo/ToDo.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAyBnC,OAAO,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"ToDo.d.ts","sourceRoot":"","sources":["../../../../src/components/infra/ToDo/ToDo.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAyBnC,OAAO,YAAY,CAAC;AAqCpB,iBAAwB,IAAI,CAAC,KAAK,KAAA,eA2LjC;kBA3LuB,IAAI;;;;;;;;;;;;;;;;;;;;;;;eAAJ,IAAI"}
|
|
@@ -10,6 +10,9 @@ import { makeStyles } from '@material-ui/core/styles';
|
|
|
10
10
|
import { useTheme } from '@material-ui/core/styles';
|
|
11
11
|
import useMediaQuery from '@material-ui/core/useMediaQuery';
|
|
12
12
|
import './ToDo.css';
|
|
13
|
+
const isChildCase = (assignment) => {
|
|
14
|
+
return assignment.isChild;
|
|
15
|
+
};
|
|
13
16
|
function topThreeAssignments(assignmentsSource) {
|
|
14
17
|
return Array.isArray(assignmentsSource) ? assignmentsSource.slice(0, 3) : [];
|
|
15
18
|
}
|
|
@@ -65,7 +68,7 @@ export default function ToDo(props) {
|
|
|
65
68
|
return [];
|
|
66
69
|
}
|
|
67
70
|
}
|
|
68
|
-
const
|
|
71
|
+
const getAssignmentId = assignment => {
|
|
69
72
|
return type === CONSTS.TODO ? assignment.ID : assignment.id;
|
|
70
73
|
};
|
|
71
74
|
const getPriority = assignment => {
|
|
@@ -96,7 +99,7 @@ export default function ToDo(props) {
|
|
|
96
99
|
setAssignments(topThreeAssignments(assignmentsSource));
|
|
97
100
|
}
|
|
98
101
|
function clickGo(assignment) {
|
|
99
|
-
const
|
|
102
|
+
const id = getAssignmentId(assignment);
|
|
100
103
|
let { classname = '' } = assignment;
|
|
101
104
|
const sTarget = thePConn.getContainerName();
|
|
102
105
|
const sTargetContainerName = sTarget;
|
|
@@ -108,7 +111,7 @@ export default function ToDo(props) {
|
|
|
108
111
|
options['isActionFromToDoList'] = true;
|
|
109
112
|
options['target'] = '';
|
|
110
113
|
options['context'] = null;
|
|
111
|
-
options['isChild'] =
|
|
114
|
+
options['isChild'] = isChildCase(assignment);
|
|
112
115
|
}
|
|
113
116
|
else {
|
|
114
117
|
options['isActionFromToDoList'] = false;
|
|
@@ -147,7 +150,7 @@ export default function ToDo(props) {
|
|
|
147
150
|
headerText,
|
|
148
151
|
"\u00A0\u00A0\u00A0")), avatar: React.createElement(Avatar, { className: classes.avatar }, currentUserInitials) })),
|
|
149
152
|
React.createElement(CardContent, null,
|
|
150
|
-
React.createElement(List, null, assignments.map(assignment => (React.createElement(ListItem, { key:
|
|
153
|
+
React.createElement(List, null, assignments.map(assignment => (React.createElement(ListItem, { key: getAssignmentId(assignment), dense: true, divider: true, onClick: () => clickGo(assignment) },
|
|
151
154
|
React.createElement(ListItemText, { primary: getAssignmentName(assignment), secondary: getListItemComponent(assignment) }),
|
|
152
155
|
React.createElement(ListItemSecondaryAction, null,
|
|
153
156
|
React.createElement(IconButton, { onClick: () => clickGo(assignment) },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToDo.js","sourceRoot":"","sources":["../../../../src/components/infra/ToDo/ToDo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EACL,GAAG,EACH,MAAM,EACN,IAAI,EACJ,WAAW,EACX,UAAU,EACV,MAAM,EACN,UAAU,EACV,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,uBAAuB,EACxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,QAAQ,MAAM,4BAA4B,CAAC;AAClD,OAAO,UAAU,MAAM,8BAA8B,CAAC;AACtD,OAAO,SAAS,MAAM,0BAA0B,CAAC;AAEjD,OAAO,2BAA2B,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,aAAa,MAAM,iCAAiC,CAAC;AAE5D,OAAO,YAAY,CAAC;AAIpB,SAAS,mBAAmB,CAAC,iBAA6B;IACxD,OAAO,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAC/E,CAAC;AAED,SAAS,KAAK,C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;IAClB,cAAc;IACd,IAAI,EAAE,UAAU;IAChB,sBAAsB;IACtB,OAAO,EAAE,EAAE;IACX,2BAA2B;CAC5B,CAAC","sourcesContent":["import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { Utils } from '../../helpers/utils';\nimport {\n Box,\n Button,\n Card,\n CardContent,\n CardHeader,\n Avatar,\n Typography,\n Badge,\n List,\n ListItem,\n ListItemText,\n ListItemSecondaryAction\n} from '@material-ui/core';\nimport Snackbar from '@material-ui/core/Snackbar';\nimport IconButton from '@material-ui/core/IconButton';\nimport CloseIcon from '@material-ui/icons/Close';\n\nimport ArrowForwardIosOutlinedIcon from '@material-ui/icons/ArrowForwardIosOutlined';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { useTheme } from '@material-ui/core/styles';\nimport useMediaQuery from '@material-ui/core/useMediaQuery';\n\nimport './ToDo.css';\n\ndeclare const PCore: any;\n\nfunction topThreeAssignments(assignmentsSource: Array<any>): Array<any> {\n return Array.isArray(assignmentsSource) ? assignmentsSource.slice(0, 3) : [];\n}\n\nfunction getID(assignment: any) {\n if (assignment.value) {\n const refKey = assignment.value;\n return refKey.substring(refKey.lastIndexOf(' ') + 1);\n } else {\n const refKey = assignment.ID;\n const arKeys = refKey.split('!')[0].split(' ');\n return arKeys[2];\n }\n}\n\nconst useStyles = makeStyles(theme => ({\n root: {\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n borderLeft: '6px solid',\n borderLeftColor: theme.palette.primary.light\n },\n avatar: {\n backgroundColor: theme.palette.primary.light,\n color: theme.palette.getContrastText(theme.palette.primary.light)\n }\n}));\n\nexport default function ToDo(props) {\n const { datasource, getPConnect, headerText, showTodoList, myWorkList, type } = props;\n\n const CONSTS = PCore.getConstants();\n\n const bLogging = true;\n let assignmentCount = 0;\n const currentUser = PCore.getEnvironmentInfo().getOperatorName();\n const currentUserInitials = Utils.getInitials(currentUser);\n const assignmentsSource = datasource?.source || myWorkList?.source;\n\n const [bShowMore, setBShowMore] = useState(true);\n const [showSnackbar, setShowSnackbar] = useState(false);\n const [snackbarMessage, setSnackbarMessage]: any = useState('');\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n const [assignments, setAssignments] = useState<Array<any>>(initAssignments());\n\n const thePConn = getPConnect();\n const classes = useStyles();\n const theme = useTheme();\n const isDesktop = useMediaQuery(theme.breakpoints.up('md'));\n // const { setOpen } = useNavBar();\n\n function initAssignments(): Array<any> {\n if (assignmentsSource) {\n assignmentCount = assignmentsSource.length;\n return topThreeAssignments(assignmentsSource);\n } else {\n // turn off todolist\n return [];\n }\n }\n\n const getAssignmentkey = assignment => {\n return type === CONSTS.TODO ? assignment.ID : assignment.id;\n };\n\n const getPriority = assignment => {\n return type === CONSTS.TODO ? assignment.urgency : assignment.priority;\n };\n\n const getAssignmentName = assignment => {\n return type === CONSTS.TODO ? assignment.name : assignment.stepName;\n };\n\n function showToast(message: string) {\n const theMessage = `Assignment: ${message}`;\n // eslint-disable-next-line no-console\n console.error(theMessage);\n setSnackbarMessage(message);\n setShowSnackbar(true);\n }\n\n function handleSnackbarClose(event: React.SyntheticEvent | React.MouseEvent, reason?: string) {\n if (reason === 'clickaway') {\n return;\n }\n setShowSnackbar(false);\n }\n\n function _showMore() {\n setBShowMore(false);\n setAssignments(assignmentsSource);\n }\n\n function _showLess() {\n setBShowMore(true);\n setAssignments(topThreeAssignments(assignmentsSource));\n }\n\n function clickGo(assignment) {\n const { id } = assignment;\n let { classname = '' } = assignment;\n const sTarget = thePConn.getContainerName();\n const sTargetContainerName = sTarget;\n\n const options = { containerName: sTargetContainerName };\n\n if (classname === null || classname === '') {\n classname = thePConn.getCaseInfo().getClassName();\n }\n\n if (sTarget === 'workarea') {\n options['isActionFromToDoList'] = true;\n options['target'] = '';\n options['context'] = null;\n options['isChild'] = undefined;\n } else {\n options['isActionFromToDoList'] = false;\n options['target'] = sTarget;\n }\n\n thePConn\n .getActionsApi()\n .openAssignment(id, classname, options)\n .then(() => {\n if (bLogging) {\n // eslint-disable-next-line no-console\n console.log(`openAssignment completed`);\n }\n })\n .catch(() => {\n showToast(`Submit failed!`);\n });\n }\n\n const getListItemComponent = assignment => {\n if (isDesktop) {\n return (\n <>\n Task in\n <Button size='small' color='primary'>{`${assignment.name} ${getID(assignment)}`}</Button>\n {` \\u2022 `}\n <span className='psdk-todo-assignment-status'>{assignment.status}</span>\n {` \\u2022 Urgency ${getPriority(assignment)}`}\n </>\n );\n }\n return (\n <>\n <Button size='small' color='primary'>{`${assignment.name} ${getID(assignment)}`}</Button>\n {` \\u2022 Urgency ${getPriority(assignment)}`}\n </>\n );\n };\n\n return (\n <React.Fragment>\n <Card className={classes.root}>\n {showTodoList && (\n <CardHeader\n title={\n <Badge badgeContent={assignmentCount} color='primary'>\n <Typography variant='h6'>{headerText} </Typography>\n </Badge>\n }\n avatar={<Avatar className={classes.avatar}>{currentUserInitials}</Avatar>}\n ></CardHeader>\n )}\n <CardContent>\n <List>\n {assignments.map(assignment => (\n <ListItem\n key={getAssignmentkey(assignment)}\n dense\n divider\n onClick={() => clickGo(assignment)}\n >\n <ListItemText\n primary={getAssignmentName(assignment)}\n secondary={getListItemComponent(assignment)}\n />\n <ListItemSecondaryAction>\n <IconButton onClick={() => clickGo(assignment)}>\n <ArrowForwardIosOutlinedIcon />\n </IconButton>\n </ListItemSecondaryAction>\n </ListItem>\n ))}\n </List>\n </CardContent>\n {assignmentCount > 3 && (\n <Box display='flex' justifyContent='center'>\n {bShowMore ? (\n <Button color='primary' onClick={_showMore}>\n Show more\n </Button>\n ) : (\n <Button onClick={_showLess}>Show less</Button>\n )}\n </Box>\n )}\n </Card>\n\n <Snackbar\n open={showSnackbar}\n autoHideDuration={3000}\n onClose={handleSnackbarClose}\n message={snackbarMessage}\n action={\n <IconButton size='small' aria-label='close' color='inherit' onClick={handleSnackbarClose}>\n <CloseIcon fontSize='small' />\n </IconButton>\n }\n />\n </React.Fragment>\n );\n}\n\nToDo.propTypes = {\n datasource: PropTypes.instanceOf(Object),\n myWorkList: PropTypes.instanceOf(Object),\n // eslint-disable-next-line react/no-unused-prop-types\n caseInfoID: PropTypes.string,\n // buildName: PropTypes.string,\n getPConnect: PropTypes.func.isRequired,\n headerText: PropTypes.string,\n // eslint-disable-next-line react/no-unused-prop-types\n itemKey: PropTypes.string,\n showTodoList: PropTypes.bool,\n // target: PropTypes.string,\n type: PropTypes.string,\n // pageMessages: PropTypes.arrayOf(PropTypes.any),\n // eslint-disable-next-line react/no-unused-prop-types\n context: PropTypes.string\n // hideActionButtons: PropTypes.bool\n};\n\nToDo.defaultProps = {\n caseInfoID: '',\n datasource: [],\n myWorkList: {},\n // buildName: \"\",\n headerText: 'To do',\n itemKey: '',\n showTodoList: true,\n // target: \"\",\n type: 'worklist',\n // pageMessages: null,\n context: ''\n // hideActionButtons: false\n};\n"]}
|
|
1
|
+
{"version":3,"file":"ToDo.js","sourceRoot":"","sources":["../../../../src/components/infra/ToDo/ToDo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EACL,GAAG,EACH,MAAM,EACN,IAAI,EACJ,WAAW,EACX,UAAU,EACV,MAAM,EACN,UAAU,EACV,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,uBAAuB,EACxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,QAAQ,MAAM,4BAA4B,CAAC;AAClD,OAAO,UAAU,MAAM,8BAA8B,CAAC;AACtD,OAAO,SAAS,MAAM,0BAA0B,CAAC;AAEjD,OAAO,2BAA2B,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,aAAa,MAAM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AAS,CAAC,MAAM;IACzB,YAAY,EAAE,SAAS,CAAC,IAAI;IAC5B,4BAA4B;IAC5B,IAAI,EAAE,SAAS,CAAC,MAAM;IACtB,kDAAkD;IAClD,sDAAsD;IACtD,OAAO,EAAE,SAAS,CAAC,MAAM;IACzB,oCAAoC;CACrC,CAAC;AAEF,IAAI,CAAC,YAAY,GAAG;IAClB,UAAU,EAAE,EAAE;IACd,UAAU,EAAE,EAAE;IACd,UAAU,EAAE,EAAE;IACd,iBAAiB;IACjB,UAAU,EAAE,OAAO;IACnB,OAAO,EAAE,EAAE;IACX,YAAY,EAAE,IAAI;IAClB,cAAc;IACd,IAAI,EAAE,UAAU;IAChB,sBAAsB;IACtB,OAAO,EAAE,EAAE;IACX,2BAA2B;CAC5B,CAAC","sourcesContent":["import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { Utils } from '../../helpers/utils';\nimport {\n Box,\n Button,\n Card,\n CardContent,\n CardHeader,\n Avatar,\n Typography,\n Badge,\n List,\n ListItem,\n ListItemText,\n ListItemSecondaryAction\n} from '@material-ui/core';\nimport Snackbar from '@material-ui/core/Snackbar';\nimport IconButton from '@material-ui/core/IconButton';\nimport CloseIcon from '@material-ui/icons/Close';\n\nimport ArrowForwardIosOutlinedIcon from '@material-ui/icons/ArrowForwardIosOutlined';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { useTheme } from '@material-ui/core/styles';\nimport useMediaQuery from '@material-ui/core/useMediaQuery';\n\nimport './ToDo.css';\n\ndeclare const PCore: any;\n\nconst isChildCase = (assignment) => {\n return assignment.isChild;\n};\n\nfunction topThreeAssignments(assignmentsSource: Array<any>): Array<any> {\n return Array.isArray(assignmentsSource) ? assignmentsSource.slice(0, 3) : [];\n}\n\nfunction getID(assignment: any) {\n if (assignment.value) {\n const refKey = assignment.value;\n return refKey.substring(refKey.lastIndexOf(' ') + 1);\n } else {\n const refKey = assignment.ID;\n const arKeys = refKey.split('!')[0].split(' ');\n return arKeys[2];\n }\n}\n\nconst useStyles = makeStyles(theme => ({\n root: {\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1),\n paddingBottom: theme.spacing(1),\n borderLeft: '6px solid',\n borderLeftColor: theme.palette.primary.light\n },\n avatar: {\n backgroundColor: theme.palette.primary.light,\n color: theme.palette.getContrastText(theme.palette.primary.light)\n }\n}));\n\nexport default function ToDo(props) {\n const { datasource, getPConnect, headerText, showTodoList, myWorkList, type } = props;\n\n const CONSTS = PCore.getConstants();\n\n const bLogging = true;\n let assignmentCount = 0;\n const currentUser = PCore.getEnvironmentInfo().getOperatorName();\n const currentUserInitials = Utils.getInitials(currentUser);\n const assignmentsSource = datasource?.source || myWorkList?.source;\n\n const [bShowMore, setBShowMore] = useState(true);\n const [showSnackbar, setShowSnackbar] = useState(false);\n const [snackbarMessage, setSnackbarMessage]: any = useState('');\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n const [assignments, setAssignments] = useState<Array<any>>(initAssignments());\n\n const thePConn = getPConnect();\n const classes = useStyles();\n const theme = useTheme();\n const isDesktop = useMediaQuery(theme.breakpoints.up('md'));\n // const { setOpen } = useNavBar();\n\n function initAssignments(): Array<any> {\n if (assignmentsSource) {\n assignmentCount = assignmentsSource.length;\n return topThreeAssignments(assignmentsSource);\n } else {\n // turn off todolist\n return [];\n }\n }\n\n const getAssignmentId = assignment => {\n return type === CONSTS.TODO ? assignment.ID : assignment.id;\n };\n\n const getPriority = assignment => {\n return type === CONSTS.TODO ? assignment.urgency : assignment.priority;\n };\n\n const getAssignmentName = assignment => {\n return type === CONSTS.TODO ? assignment.name : assignment.stepName;\n };\n\n function showToast(message: string) {\n const theMessage = `Assignment: ${message}`;\n // eslint-disable-next-line no-console\n console.error(theMessage);\n setSnackbarMessage(message);\n setShowSnackbar(true);\n }\n\n function handleSnackbarClose(event: React.SyntheticEvent | React.MouseEvent, reason?: string) {\n if (reason === 'clickaway') {\n return;\n }\n setShowSnackbar(false);\n }\n\n function _showMore() {\n setBShowMore(false);\n setAssignments(assignmentsSource);\n }\n\n function _showLess() {\n setBShowMore(true);\n setAssignments(topThreeAssignments(assignmentsSource));\n }\n\n function clickGo(assignment) {\n const id = getAssignmentId(assignment);\n let { classname = '' } = assignment;\n const sTarget = thePConn.getContainerName();\n const sTargetContainerName = sTarget;\n\n const options = { containerName: sTargetContainerName };\n\n if (classname === null || classname === '') {\n classname = thePConn.getCaseInfo().getClassName();\n }\n\n if (sTarget === 'workarea') {\n options['isActionFromToDoList'] = true;\n options['target'] = '';\n options['context'] = null;\n options['isChild'] = isChildCase(assignment);\n } else {\n options['isActionFromToDoList'] = false;\n options['target'] = sTarget;\n }\n\n thePConn\n .getActionsApi()\n .openAssignment(id, classname, options)\n .then(() => {\n if (bLogging) {\n // eslint-disable-next-line no-console\n console.log(`openAssignment completed`);\n }\n })\n .catch(() => {\n showToast(`Submit failed!`);\n });\n }\n\n const getListItemComponent = assignment => {\n if (isDesktop) {\n return (\n <>\n Task in\n <Button size='small' color='primary'>{`${assignment.name} ${getID(assignment)}`}</Button>\n {` \\u2022 `}\n <span className='psdk-todo-assignment-status'>{assignment.status}</span>\n {` \\u2022 Urgency ${getPriority(assignment)}`}\n </>\n );\n }\n return (\n <>\n <Button size='small' color='primary'>{`${assignment.name} ${getID(assignment)}`}</Button>\n {` \\u2022 Urgency ${getPriority(assignment)}`}\n </>\n );\n };\n\n return (\n <React.Fragment>\n <Card className={classes.root}>\n {showTodoList && (\n <CardHeader\n title={\n <Badge badgeContent={assignmentCount} color='primary'>\n <Typography variant='h6'>{headerText} </Typography>\n </Badge>\n }\n avatar={<Avatar className={classes.avatar}>{currentUserInitials}</Avatar>}\n ></CardHeader>\n )}\n <CardContent>\n <List>\n {assignments.map(assignment => (\n <ListItem\n key={getAssignmentId(assignment)}\n dense\n divider\n onClick={() => clickGo(assignment)}\n >\n <ListItemText\n primary={getAssignmentName(assignment)}\n secondary={getListItemComponent(assignment)}\n />\n <ListItemSecondaryAction>\n <IconButton onClick={() => clickGo(assignment)}>\n <ArrowForwardIosOutlinedIcon />\n </IconButton>\n </ListItemSecondaryAction>\n </ListItem>\n ))}\n </List>\n </CardContent>\n {assignmentCount > 3 && (\n <Box display='flex' justifyContent='center'>\n {bShowMore ? (\n <Button color='primary' onClick={_showMore}>\n Show more\n </Button>\n ) : (\n <Button onClick={_showLess}>Show less</Button>\n )}\n </Box>\n )}\n </Card>\n\n <Snackbar\n open={showSnackbar}\n autoHideDuration={3000}\n onClose={handleSnackbarClose}\n message={snackbarMessage}\n action={\n <IconButton size='small' aria-label='close' color='inherit' onClick={handleSnackbarClose}>\n <CloseIcon fontSize='small' />\n </IconButton>\n }\n />\n </React.Fragment>\n );\n}\n\nToDo.propTypes = {\n datasource: PropTypes.instanceOf(Object),\n myWorkList: PropTypes.instanceOf(Object),\n // eslint-disable-next-line react/no-unused-prop-types\n caseInfoID: PropTypes.string,\n // buildName: PropTypes.string,\n getPConnect: PropTypes.func.isRequired,\n headerText: PropTypes.string,\n // eslint-disable-next-line react/no-unused-prop-types\n itemKey: PropTypes.string,\n showTodoList: PropTypes.bool,\n // target: PropTypes.string,\n type: PropTypes.string,\n // pageMessages: PropTypes.arrayOf(PropTypes.any),\n // eslint-disable-next-line react/no-unused-prop-types\n context: PropTypes.string\n // hideActionButtons: PropTypes.bool\n};\n\nToDo.defaultProps = {\n caseInfoID: '',\n datasource: [],\n myWorkList: {},\n // buildName: \"\",\n headerText: 'To do',\n itemKey: '',\n showTodoList: true,\n // target: \"\",\n type: 'worklist',\n // pageMessages: null,\n context: ''\n // hideActionButtons: false\n};\n"]}
|
|
@@ -10,6 +10,7 @@ declare namespace pegaSdkComponentMap {
|
|
|
10
10
|
export { CancelAlert };
|
|
11
11
|
export { CaseHistory };
|
|
12
12
|
export { CaseSummary };
|
|
13
|
+
export { CaseSummaryFields };
|
|
13
14
|
export { CaseView };
|
|
14
15
|
export { Checkbox };
|
|
15
16
|
export { Currency };
|
|
@@ -19,11 +20,11 @@ declare namespace pegaSdkComponentMap {
|
|
|
19
20
|
export { DateTime };
|
|
20
21
|
export { Decimal };
|
|
21
22
|
export { DefaultForm };
|
|
23
|
+
export { DeferLoad };
|
|
22
24
|
export { Details };
|
|
23
25
|
export { DetailsSubTabs };
|
|
24
26
|
export { DetailsThreeColumn };
|
|
25
27
|
export { DetailsTwoColumn };
|
|
26
|
-
export { DeferLoad };
|
|
27
28
|
export { Dropdown };
|
|
28
29
|
export { Email };
|
|
29
30
|
export { ErrorBoundary };
|
|
@@ -47,6 +48,7 @@ declare namespace pegaSdkComponentMap {
|
|
|
47
48
|
export { OneColumn };
|
|
48
49
|
export { OneColumnPage };
|
|
49
50
|
export { OneColumnTab };
|
|
51
|
+
export { Operator };
|
|
50
52
|
export { Percentage };
|
|
51
53
|
export { Phone };
|
|
52
54
|
export { PromotedFilters };
|
|
@@ -92,6 +94,7 @@ import AutoComplete from "../lib/components/forms/AutoComplete";
|
|
|
92
94
|
import CancelAlert from "../lib/components/forms/CancelAlert";
|
|
93
95
|
import CaseHistory from "../lib/components/widgets/CaseHistory";
|
|
94
96
|
import CaseSummary from "../lib/components/templates/CaseSummary";
|
|
97
|
+
import CaseSummaryFields from "../lib/components/designSystemExtensions/CaseSummaryFields";
|
|
95
98
|
import CaseView from "../lib/components/templates/CaseView";
|
|
96
99
|
import Checkbox from "../lib/components/forms/Checkbox";
|
|
97
100
|
import Currency from "../lib/components/forms/Currency";
|
|
@@ -101,11 +104,11 @@ import Date from "../lib/components/forms/Date";
|
|
|
101
104
|
import DateTime from "../lib/components/forms/DateTime";
|
|
102
105
|
import Decimal from "../lib/components/forms/Decimal";
|
|
103
106
|
import DefaultForm from "../lib/components/templates/DefaultForm";
|
|
107
|
+
import DeferLoad from "../lib/components/infra/DeferLoad";
|
|
104
108
|
import Details from "../lib/components/templates/Details/Details";
|
|
105
109
|
import DetailsSubTabs from "../lib/components/templates/Details/DetailsSubTabs";
|
|
106
110
|
import DetailsThreeColumn from "./components/templates/Details/DetailsThreeColumn";
|
|
107
111
|
import DetailsTwoColumn from "../lib/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn";
|
|
108
|
-
import DeferLoad from "../lib/components/infra/DeferLoad";
|
|
109
112
|
import Dropdown from "../lib/components/forms/Dropdown";
|
|
110
113
|
import Email from "../lib/components/forms/Email/Email";
|
|
111
114
|
import ErrorBoundary from "../lib/components/infra/ErrorBoundary";
|
|
@@ -129,6 +132,7 @@ import NavBar from "../lib/components/infra/NavBar";
|
|
|
129
132
|
import OneColumn from "../lib/components/templates/OneColumn/OneColumn";
|
|
130
133
|
import OneColumnPage from "../lib/components/templates/OneColumn/OneColumnPage";
|
|
131
134
|
import OneColumnTab from "../lib/components/templates/OneColumn/OneColumnTab";
|
|
135
|
+
import Operator from "../lib/components/designSystemExtensions/Operator";
|
|
132
136
|
import Percentage from "../lib/components/forms/Percentage";
|
|
133
137
|
import Phone from "../lib/components/forms/Phone/Phone";
|
|
134
138
|
import PromotedFilters from "../lib/components/templates/PromotedFilters";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// placed in the npm module's 'lib' directory. So, we expect to import from there.
|
|
3
3
|
// This file should import and expose ALL of the components that may be
|
|
4
4
|
// dynamically rendered at runtime via calls to react_pconnect or the View component
|
|
5
|
-
import ActionButtons from '../lib/components/infra/ActionButtons';
|
|
5
|
+
import ActionButtons from '../lib/components/infra/ActionButtons';
|
|
6
6
|
import AppAnnouncement from '../lib/components/widgets/AppAnnouncement';
|
|
7
7
|
import AppShell from '../lib/components/templates/AppShell/AppShell';
|
|
8
8
|
import Assignment from '../lib/components/infra/Assignment/Assignment';
|
|
@@ -12,6 +12,7 @@ import AutoComplete from '../lib/components/forms/AutoComplete';
|
|
|
12
12
|
import CancelAlert from '../lib/components/forms/CancelAlert';
|
|
13
13
|
import CaseHistory from '../lib/components/widgets/CaseHistory';
|
|
14
14
|
import CaseSummary from '../lib/components/templates/CaseSummary';
|
|
15
|
+
import CaseSummaryFields from '../lib/components/designSystemExtensions/CaseSummaryFields';
|
|
15
16
|
import CaseView from '../lib/components/templates/CaseView';
|
|
16
17
|
import Checkbox from '../lib/components/forms/Checkbox';
|
|
17
18
|
import Currency from '../lib/components/forms/Currency';
|
|
@@ -27,8 +28,8 @@ import DetailsSubTabs from '../lib/components/templates/Details/DetailsSubTabs';
|
|
|
27
28
|
import DetailsThreeColumn from './components/templates/Details/DetailsThreeColumn';
|
|
28
29
|
import DetailsTwoColumn from '../lib/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn';
|
|
29
30
|
import Dropdown from '../lib/components/forms/Dropdown';
|
|
30
|
-
import ErrorBoundary from '../lib/components/infra/ErrorBoundary';
|
|
31
31
|
import Email from '../lib/components/forms/Email/Email';
|
|
32
|
+
import ErrorBoundary from '../lib/components/infra/ErrorBoundary';
|
|
32
33
|
import FieldGroupTemplate from './components/templates/FieldGroupTemplate';
|
|
33
34
|
import FileUtility from '../lib/components/widgets/FileUtility/FileUtility';
|
|
34
35
|
import FlowContainer from '../lib/components/infra/Containers/FlowContainer';
|
|
@@ -49,6 +50,7 @@ import NavBar from '../lib/components/infra/NavBar';
|
|
|
49
50
|
import OneColumn from '../lib/components/templates/OneColumn/OneColumn';
|
|
50
51
|
import OneColumnPage from '../lib/components/templates/OneColumn/OneColumnPage';
|
|
51
52
|
import OneColumnTab from '../lib/components/templates/OneColumn/OneColumnTab';
|
|
53
|
+
import Operator from '../lib/components/designSystemExtensions/Operator';
|
|
52
54
|
import Percentage from '../lib/components/forms/Percentage';
|
|
53
55
|
import Phone from '../lib/components/forms/Phone/Phone';
|
|
54
56
|
import PromotedFilters from '../lib/components/templates/PromotedFilters';
|
|
@@ -58,12 +60,12 @@ import Reference from '../lib/components/infra/Reference/Reference';
|
|
|
58
60
|
import Region from '../lib/components/infra/Region/Region';
|
|
59
61
|
import RootContainer from '../lib/components/infra/RootContainer/RootContainer';
|
|
60
62
|
import SemanticLink from '../lib/components/forms/SemanticLink';
|
|
61
|
-
import Stages from '../lib/components/infra/Stages';
|
|
62
|
-
import SubTabs from '../lib/components/templates/SubTabs';
|
|
63
63
|
import SimpleTable from '../lib/components/templates/SimpleTable/SimpleTable';
|
|
64
64
|
import SimpleTableManual from '../lib/components/templates/SimpleTable/SimpleTableManual';
|
|
65
65
|
import SimpleTableSelect from '../lib/components/templates/SimpleTable/SimpleTableSelect';
|
|
66
66
|
import SingleReferenceReadOnly from './components/templates/SingleReferenceReadOnly';
|
|
67
|
+
import Stages from '../lib/components/infra/Stages';
|
|
68
|
+
import SubTabs from '../lib/components/templates/SubTabs';
|
|
67
69
|
import SummaryItem from '../lib/components/widgets/SummaryItem';
|
|
68
70
|
import SummaryList from '../lib/components/widgets/SummaryList';
|
|
69
71
|
import TextArea from '../lib/components/forms/TextArea';
|
|
@@ -101,6 +103,7 @@ const pegaSdkComponentMap = {
|
|
|
101
103
|
'CancelAlert': CancelAlert,
|
|
102
104
|
'CaseHistory': CaseHistory,
|
|
103
105
|
'CaseSummary': CaseSummary,
|
|
106
|
+
'CaseSummaryFields': CaseSummaryFields,
|
|
104
107
|
'CaseView': CaseView,
|
|
105
108
|
'Checkbox': Checkbox,
|
|
106
109
|
'Currency': Currency,
|
|
@@ -110,11 +113,11 @@ const pegaSdkComponentMap = {
|
|
|
110
113
|
'DateTime': DateTime,
|
|
111
114
|
'Decimal': Decimal,
|
|
112
115
|
'DefaultForm': DefaultForm,
|
|
116
|
+
'DeferLoad': DeferLoad,
|
|
113
117
|
'Details': Details,
|
|
114
118
|
'DetailsSubTabs': DetailsSubTabs,
|
|
115
119
|
'DetailsThreeColumn': DetailsThreeColumn,
|
|
116
120
|
'DetailsTwoColumn': DetailsTwoColumn,
|
|
117
|
-
'DeferLoad': DeferLoad,
|
|
118
121
|
'Dropdown': Dropdown,
|
|
119
122
|
'Email': Email,
|
|
120
123
|
'ErrorBoundary': ErrorBoundary,
|
|
@@ -138,6 +141,7 @@ const pegaSdkComponentMap = {
|
|
|
138
141
|
'OneColumn': OneColumn,
|
|
139
142
|
'OneColumnPage': OneColumnPage,
|
|
140
143
|
'OneColumnTab': OneColumnTab,
|
|
144
|
+
'Operator': Operator,
|
|
141
145
|
'Percentage': Percentage,
|
|
142
146
|
'Phone': Phone,
|
|
143
147
|
'PromotedFilters': PromotedFilters,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk-pega-component-map.js","sourceRoot":"","sources":["../lib/sdk-pega-component-map.js"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,mFAAmF;AACnF,wEAAwE;AACxE,qFAAqF;AAErF,OAAO,aAAa,MAAM,uCAAuC,CAAC,CAAC,2CAA2C;AAC9G,OAAO,eAAe,MAAM,2CAA2C,CAAC;AACxE,OAAO,QAAQ,MAAM,+CAA+C,CAAC;AACrE,OAAO,UAAU,MAAM,+CAA+C,CAAC;AACvE,OAAO,cAAc,MAAM,uDAAuD,CAAC;AACnF,OAAO,UAAU,MAAM,+CAA+C,CAAC;AACvE,OAAO,YAAY,MAAM,sCAAsC,CAAC;AAChE,OAAO,WAAW,MAAM,qCAAqC,CAAC;AAC9D,OAAO,WAAW,MAAM,uCAAuC,CAAC;AAChE,OAAO,WAAW,MAAM,yCAAyC,CAAC;AAClE,OAAO,QAAQ,MAAM,sCAAsC,CAAC;AAC5D,OAAO,QAAQ,MAAM,kCAAkC,CAAC;AACxD,OAAO,QAAQ,MAAM,kCAAkC,CAAC;AACxD,OAAO,eAAe,MAAM,yCAAyC,CAAC;AACtE,OAAO,aAAa,MAAM,2CAA2C,CAAC;AACtE,OAAO,IAAI,MAAM,8BAA8B,CAAC;AAChD,OAAO,QAAQ,MAAM,kCAAkC,CAAC;AACxD,OAAO,OAAO,MAAM,iCAAiC,CAAC;AACtD,OAAO,WAAW,MAAM,yCAAyC,CAAC;AAClE,OAAO,SAAS,MAAM,mCAAmC,CAAC;AAC1D,OAAO,OAAO,MAAM,6CAA6C,CAAC;AAClE,OAAO,cAAc,MAAM,oDAAoD,CAAC;AAChF,OAAO,kBAAkB,MAAM,mDAAmD,CAAC;AACnF,OAAO,gBAAgB,MA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,KAAK;IACd,WAAW,EAAE,SAAS;IACtB,cAAc,EAAE,YAAY;IAC5B,QAAQ,EAAE,MAAM;IAChB,eAAe,EAAE,aAAa;IAC9B,cAAc,EAAE,YAAY;IAC5B,aAAa,EAAE,WAAW;IAC1B,mBAAmB,EAAE,iBAAiB;IACtC,mBAAmB,EAAE,iBAAiB;IACtC,yBAAyB,EAAE,uBAAuB;IAClD,QAAQ,EAAE,MAAM;IAChB,SAAS,EAAE,OAAO;IAClB,aAAa,EAAE,WAAW;IAC1B,aAAa,EAAE,WAAW;IAC1B,UAAU,EAAE,QAAQ;IACpB,aAAa,EAAE,WAAW;IAC1B,WAAW,EAAE,SAAS;IACtB,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,WAAW,EAAE,SAAS;IACtB,eAAe,EAAE,aAAa;IAC9B,cAAc,EAAE,YAAY;IAC5B,KAAK,EAAE,GAAG;IACV,eAAe,EAAE,aAAa;IAC9B,cAAc,EAAE,YAAY;IAC5B,MAAM,EAAE,IAAI;IACZ,eAAe,EAAE,aAAa;IAC9B,YAAY,EAAE,UAAU;IACxB,mBAAmB,EAAE,iBAAiB;IACtC,gBAAgB,EAAE,cAAc;IAChC,gBAAgB,EAAE,cAAc;CACjC,CAAC;AAEF,eAAe,mBAAmB,CAAC","sourcesContent":["// When this code is run from the generated npm module, the components are\n// placed in the npm module's 'lib' directory. So, we expect to import from there.\n// This file should import and expose ALL of the components that may be\n// dynamically rendered at runtime via calls to react_pconnect or the View component\n\nimport ActionButtons from '../lib/components/infra/ActionButtons'; // '../lib/components/infra/ActionButtons';\nimport AppAnnouncement from '../lib/components/widgets/AppAnnouncement';\nimport AppShell from '../lib/components/templates/AppShell/AppShell';\nimport Assignment from '../lib/components/infra/Assignment/Assignment';\nimport AssignmentCard from '../lib/components/infra/AssignmentCard/AssignmentCard';\nimport Attachment from '../lib/components/infra/Attachment/Attachment';\nimport AutoComplete from '../lib/components/forms/AutoComplete';\nimport CancelAlert from '../lib/components/forms/CancelAlert';\nimport CaseHistory from '../lib/components/widgets/CaseHistory';\nimport CaseSummary from '../lib/components/templates/CaseSummary';\nimport CaseView from '../lib/components/templates/CaseView';\nimport Checkbox from '../lib/components/forms/Checkbox';\nimport Currency from '../lib/components/forms/Currency';\nimport DashboardFilter from '../lib/components/infra/DashboardFilter';\nimport DataReference from '../lib/components/templates/DataReference';\nimport Date from '../lib/components/forms/Date';\nimport DateTime from '../lib/components/forms/DateTime';\nimport Decimal from '../lib/components/forms/Decimal';\nimport DefaultForm from '../lib/components/templates/DefaultForm';\nimport DeferLoad from '../lib/components/infra/DeferLoad';\nimport Details from '../lib/components/templates/Details/Details';\nimport DetailsSubTabs from '../lib/components/templates/Details/DetailsSubTabs';\nimport DetailsThreeColumn from './components/templates/Details/DetailsThreeColumn';\nimport DetailsTwoColumn from '../lib/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn';\nimport Dropdown from '../lib/components/forms/Dropdown';\nimport ErrorBoundary from '../lib/components/infra/ErrorBoundary';\nimport Email from '../lib/components/forms/Email/Email';\nimport FieldGroupTemplate from './components/templates/FieldGroupTemplate';\nimport FileUtility from '../lib/components/widgets/FileUtility/FileUtility';\nimport FlowContainer from '../lib/components/infra/Containers/FlowContainer';\nimport Followers from '../lib/components/widgets/Followers';\nimport InlineDashboard from '../lib/components/templates/InlineDashboard';\nimport InlineDashboardPage from '../lib/components/templates/InlineDashboardPage/InlineDashboardPage';\nimport Integer from '../lib/components/forms/Integer';\nimport ListPage from '../lib/components/templates/ListPage/ListPage';\nimport ListView from '../lib/components/templates/ListView';\nimport ModalViewContainer from '../lib/components/infra/Containers/ModalViewContainer/ModalViewContainer';\nimport MultiReferenceReadOnly from './components/templates/MultiReferenceReadOnly';\nimport MultiStep from '../lib/components/infra/MultiStep';\nimport NarrowWide from '../lib/components/templates/NarrowWide/NarrowWide';\nimport NarrowWideDetails from '../lib/components/templates/NarrowWide/NarrowWideDetails';\nimport NarrowWideForm from '../lib/components/templates/NarrowWide/NarrowWideForm';\nimport NarrowWidePage from '../lib/components/templates/NarrowWide/NarrowWidePage';\nimport NavBar from '../lib/components/infra/NavBar';\nimport OneColumn from '../lib/components/templates/OneColumn/OneColumn';\nimport OneColumnPage from '../lib/components/templates/OneColumn/OneColumnPage';\nimport OneColumnTab from '../lib/components/templates/OneColumn/OneColumnTab';\nimport Percentage from '../lib/components/forms/Percentage';\nimport Phone from '../lib/components/forms/Phone/Phone';\nimport PromotedFilters from '../lib/components/templates/PromotedFilters';\nimport Pulse from '../lib/components/designSystemExtensions/Pulse';\nimport RadioButtons from '../lib/components/forms/RadioButtons';\nimport Reference from '../lib/components/infra/Reference/Reference';\nimport Region from '../lib/components/infra/Region/Region';\nimport RootContainer from '../lib/components/infra/RootContainer/RootContainer';\nimport SemanticLink from '../lib/components/forms/SemanticLink';\nimport Stages from '../lib/components/infra/Stages';\nimport SubTabs from '../lib/components/templates/SubTabs';\nimport SimpleTable from '../lib/components/templates/SimpleTable/SimpleTable';\nimport SimpleTableManual from '../lib/components/templates/SimpleTable/SimpleTableManual';\nimport SimpleTableSelect from '../lib/components/templates/SimpleTable/SimpleTableSelect';\nimport SingleReferenceReadOnly from './components/templates/SingleReferenceReadOnly';\nimport SummaryItem from '../lib/components/widgets/SummaryItem';\nimport SummaryList from '../lib/components/widgets/SummaryList';\nimport TextArea from '../lib/components/forms/TextArea';\nimport TextContent from '../lib/components/forms/TextContent';\nimport TextInput from '../lib/components/forms/TextInput/TextInput';\nimport Time from '../lib/components/forms/Time';\nimport ToDo from '../lib/components/infra/ToDo';\nimport TwoColumn from '../lib/components/templates/TwoColumn/TwoColumn';\nimport TwoColumnPage from '../lib/components/templates/TwoColumn/TwoColumnPage';\nimport TwoColumnTab from './components/templates/TwoColumn/TwoColumnTab';\nimport URL from '../lib/components/forms/URL';\nimport UserReference from '../lib/components/forms/UserReference';\nimport VerticalTabs from '../lib/components/infra/VerticalTabs';\nimport View from '../lib/components/infra/View';\nimport ViewContainer from '../lib/components/infra/Containers/ViewContainer';\nimport WideNarrow from '../lib/components/templates/WideNarrow/WideNarrow';\nimport WideNarrowDetails from '../lib/components/templates/WideNarrow/WideNarrowDetails';\nimport WideNarrowForm from '../lib/components/templates/WideNarrow/WideNarrowForm';\nimport WideNarrowPage from '../lib/components/templates/WideNarrow/WideNarrowPage';\n\n\n// pegaSdkComponentMap is the JSON object where we'll store the components that are\n// the default implementations provided by the SDK. These will be used if there isn't\n// an entry in the localSdkComponentMap\n\n// NOTE: A few components have non-standard capitalization:\n// 'reference' is what's in the metadata, not Reference\n// 'Todo' is what's in the metadata, not ToDo\n// Also, note that \"Checkbox\" component is named/exported as CheckboxComponent\n\nconst pegaSdkComponentMap = {\n 'ActionButtons': ActionButtons,\n 'AppAnnouncement': AppAnnouncement,\n 'AppShell': AppShell,\n 'Assignment': Assignment,\n 'AssignmentCard': AssignmentCard,\n 'Attachment': Attachment,\n 'AutoComplete': AutoComplete,\n 'CancelAlert': CancelAlert,\n 'CaseHistory': CaseHistory,\n 'CaseSummary': CaseSummary,\n 'CaseView': CaseView,\n 'Checkbox': Checkbox,\n 'Currency': Currency,\n 'DashboardFilter': DashboardFilter,\n 'DataReference': DataReference,\n 'Date': Date,\n 'DateTime': DateTime,\n 'Decimal': Decimal,\n 'DefaultForm': DefaultForm,\n 'Details': Details,\n 'DetailsSubTabs': DetailsSubTabs,\n 'DetailsThreeColumn': DetailsThreeColumn,\n 'DetailsTwoColumn': DetailsTwoColumn,\n 'DeferLoad': DeferLoad,\n 'Dropdown': Dropdown,\n 'Email': Email,\n 'ErrorBoundary': ErrorBoundary,\n 'FieldGroupTemplate': FieldGroupTemplate,\n 'FileUtility': FileUtility,\n 'FlowContainer': FlowContainer,\n 'Followers': Followers,\n 'InlineDashboard': InlineDashboard,\n 'InlineDashboardPage': InlineDashboardPage,\n 'Integer': Integer,\n 'ListPage': ListPage,\n 'ListView': ListView,\n 'ModalViewContainer': ModalViewContainer,\n 'MultiReferenceReadOnly': MultiReferenceReadOnly,\n 'MultiStep': MultiStep,\n 'NarrowWide': NarrowWide,\n 'NarrowWideDetails': NarrowWideDetails,\n 'NarrowWideForm': NarrowWideForm,\n 'NarrowWidePage': NarrowWidePage,\n 'NavBar': NavBar,\n 'OneColumn': OneColumn,\n 'OneColumnPage': OneColumnPage,\n 'OneColumnTab': OneColumnTab,\n 'Percentage': Percentage,\n 'Phone': Phone,\n 'PromotedFilters': PromotedFilters,\n 'Pulse': Pulse,\n 'reference': Reference,\n 'RadioButtons': RadioButtons,\n 'Region': Region,\n 'RootContainer': RootContainer,\n 'SemanticLink': SemanticLink,\n 'SimpleTable': SimpleTable,\n 'SimpleTableManual': SimpleTableManual,\n 'SimpleTableSelect': SimpleTableSelect,\n 'SingleReferenceReadOnly': SingleReferenceReadOnly,\n 'Stages': Stages,\n 'SubTabs': SubTabs,\n 'SummaryItem': SummaryItem,\n 'SummaryList': SummaryList,\n 'TextArea': TextArea,\n 'TextContent': TextContent,\n 'TextInput': TextInput,\n 'Time': Time,\n 'Todo': ToDo,\n 'TwoColumn': TwoColumn,\n 'TwoColumnPage': TwoColumnPage,\n 'TwoColumnTab': TwoColumnTab,\n 'URL': URL,\n 'UserReference': UserReference,\n 'VerticalTabs': VerticalTabs,\n 'View': View,\n 'ViewContainer': ViewContainer,\n 'WideNarrow': WideNarrow,\n 'WideNarrowDetails': WideNarrowDetails,\n 'WideNarrowForm': WideNarrowForm,\n 'WideNarrowPage': WideNarrowPage\n};\n\nexport default pegaSdkComponentMap;\n"]}
|
|
1
|
+
{"version":3,"file":"sdk-pega-component-map.js","sourceRoot":"","sources":["../lib/sdk-pega-component-map.js"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,mFAAmF;AACnF,wEAAwE;AACxE,qFAAqF;AAErF,OAAO,aAAa,MAAM,uCAAuC,CAAC;AAClE,OAAO,eAAe,MAAM,2CAA2C,CAAC;AACxE,OAAO,QAAQ,MAAM,+CAA+C,CAAC;AACrE,OAAO,UAAU,MAAM,+CAA+C,CAAC;AACvE,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AAW;IAC1B,UAAU,EAAE,QAAQ;IACpB,aAAa,EAAE,WAAW;IAC1B,WAAW,EAAE,SAAS;IACtB,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,IAAI;IACZ,WAAW,EAAE,SAAS;IACtB,eAAe,EAAE,aAAa;IAC9B,cAAc,EAAE,YAAY;IAC5B,KAAK,EAAE,GAAG;IACV,eAAe,EAAE,aAAa;IAC9B,cAAc,EAAE,YAAY;IAC5B,MAAM,EAAE,IAAI;IACZ,eAAe,EAAE,aAAa;IAC9B,YAAY,EAAE,UAAU;IACxB,mBAAmB,EAAE,iBAAiB;IACtC,gBAAgB,EAAE,cAAc;IAChC,gBAAgB,EAAE,cAAc;CACjC,CAAC;AAEF,eAAe,mBAAmB,CAAC","sourcesContent":["// When this code is run from the generated npm module, the components are\n// placed in the npm module's 'lib' directory. So, we expect to import from there.\n// This file should import and expose ALL of the components that may be\n// dynamically rendered at runtime via calls to react_pconnect or the View component\n\nimport ActionButtons from '../lib/components/infra/ActionButtons';\nimport AppAnnouncement from '../lib/components/widgets/AppAnnouncement';\nimport AppShell from '../lib/components/templates/AppShell/AppShell';\nimport Assignment from '../lib/components/infra/Assignment/Assignment';\nimport AssignmentCard from '../lib/components/infra/AssignmentCard/AssignmentCard';\nimport Attachment from '../lib/components/infra/Attachment/Attachment';\nimport AutoComplete from '../lib/components/forms/AutoComplete';\nimport CancelAlert from '../lib/components/forms/CancelAlert';\nimport CaseHistory from '../lib/components/widgets/CaseHistory';\nimport CaseSummary from '../lib/components/templates/CaseSummary';\nimport CaseSummaryFields from '../lib/components/designSystemExtensions/CaseSummaryFields';\nimport CaseView from '../lib/components/templates/CaseView';\nimport Checkbox from '../lib/components/forms/Checkbox';\nimport Currency from '../lib/components/forms/Currency';\nimport DashboardFilter from '../lib/components/infra/DashboardFilter';\nimport DataReference from '../lib/components/templates/DataReference';\nimport Date from '../lib/components/forms/Date';\nimport DateTime from '../lib/components/forms/DateTime';\nimport Decimal from '../lib/components/forms/Decimal';\nimport DefaultForm from '../lib/components/templates/DefaultForm';\nimport DeferLoad from '../lib/components/infra/DeferLoad';\nimport Details from '../lib/components/templates/Details/Details';\nimport DetailsSubTabs from '../lib/components/templates/Details/DetailsSubTabs';\nimport DetailsThreeColumn from './components/templates/Details/DetailsThreeColumn';\nimport DetailsTwoColumn from '../lib/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn';\nimport Dropdown from '../lib/components/forms/Dropdown';\nimport Email from '../lib/components/forms/Email/Email';\nimport ErrorBoundary from '../lib/components/infra/ErrorBoundary';\nimport FieldGroupTemplate from './components/templates/FieldGroupTemplate';\nimport FileUtility from '../lib/components/widgets/FileUtility/FileUtility';\nimport FlowContainer from '../lib/components/infra/Containers/FlowContainer';\nimport Followers from '../lib/components/widgets/Followers';\nimport InlineDashboard from '../lib/components/templates/InlineDashboard';\nimport InlineDashboardPage from '../lib/components/templates/InlineDashboardPage/InlineDashboardPage';\nimport Integer from '../lib/components/forms/Integer';\nimport ListPage from '../lib/components/templates/ListPage/ListPage';\nimport ListView from '../lib/components/templates/ListView';\nimport ModalViewContainer from '../lib/components/infra/Containers/ModalViewContainer/ModalViewContainer';\nimport MultiReferenceReadOnly from './components/templates/MultiReferenceReadOnly';\nimport MultiStep from '../lib/components/infra/MultiStep';\nimport NarrowWide from '../lib/components/templates/NarrowWide/NarrowWide';\nimport NarrowWideDetails from '../lib/components/templates/NarrowWide/NarrowWideDetails';\nimport NarrowWideForm from '../lib/components/templates/NarrowWide/NarrowWideForm';\nimport NarrowWidePage from '../lib/components/templates/NarrowWide/NarrowWidePage';\nimport NavBar from '../lib/components/infra/NavBar';\nimport OneColumn from '../lib/components/templates/OneColumn/OneColumn';\nimport OneColumnPage from '../lib/components/templates/OneColumn/OneColumnPage';\nimport OneColumnTab from '../lib/components/templates/OneColumn/OneColumnTab';\nimport Operator from '../lib/components/designSystemExtensions/Operator';\nimport Percentage from '../lib/components/forms/Percentage';\nimport Phone from '../lib/components/forms/Phone/Phone';\nimport PromotedFilters from '../lib/components/templates/PromotedFilters';\nimport Pulse from '../lib/components/designSystemExtensions/Pulse';\nimport RadioButtons from '../lib/components/forms/RadioButtons';\nimport Reference from '../lib/components/infra/Reference/Reference';\nimport Region from '../lib/components/infra/Region/Region';\nimport RootContainer from '../lib/components/infra/RootContainer/RootContainer';\nimport SemanticLink from '../lib/components/forms/SemanticLink';\nimport SimpleTable from '../lib/components/templates/SimpleTable/SimpleTable';\nimport SimpleTableManual from '../lib/components/templates/SimpleTable/SimpleTableManual';\nimport SimpleTableSelect from '../lib/components/templates/SimpleTable/SimpleTableSelect';\nimport SingleReferenceReadOnly from './components/templates/SingleReferenceReadOnly';\nimport Stages from '../lib/components/infra/Stages';\nimport SubTabs from '../lib/components/templates/SubTabs';\nimport SummaryItem from '../lib/components/widgets/SummaryItem';\nimport SummaryList from '../lib/components/widgets/SummaryList';\nimport TextArea from '../lib/components/forms/TextArea';\nimport TextContent from '../lib/components/forms/TextContent';\nimport TextInput from '../lib/components/forms/TextInput/TextInput';\nimport Time from '../lib/components/forms/Time';\nimport ToDo from '../lib/components/infra/ToDo';\nimport TwoColumn from '../lib/components/templates/TwoColumn/TwoColumn';\nimport TwoColumnPage from '../lib/components/templates/TwoColumn/TwoColumnPage';\nimport TwoColumnTab from './components/templates/TwoColumn/TwoColumnTab';\nimport URL from '../lib/components/forms/URL';\nimport UserReference from '../lib/components/forms/UserReference';\nimport VerticalTabs from '../lib/components/infra/VerticalTabs';\nimport View from '../lib/components/infra/View';\nimport ViewContainer from '../lib/components/infra/Containers/ViewContainer';\nimport WideNarrow from '../lib/components/templates/WideNarrow/WideNarrow';\nimport WideNarrowDetails from '../lib/components/templates/WideNarrow/WideNarrowDetails';\nimport WideNarrowForm from '../lib/components/templates/WideNarrow/WideNarrowForm';\nimport WideNarrowPage from '../lib/components/templates/WideNarrow/WideNarrowPage';\n\n\n// pegaSdkComponentMap is the JSON object where we'll store the components that are\n// the default implementations provided by the SDK. These will be used if there isn't\n// an entry in the localSdkComponentMap\n\n// NOTE: A few components have non-standard capitalization:\n// 'reference' is what's in the metadata, not Reference\n// 'Todo' is what's in the metadata, not ToDo\n// Also, note that \"Checkbox\" component is named/exported as CheckboxComponent\n\nconst pegaSdkComponentMap = {\n 'ActionButtons': ActionButtons,\n 'AppAnnouncement': AppAnnouncement,\n 'AppShell': AppShell,\n 'Assignment': Assignment,\n 'AssignmentCard': AssignmentCard,\n 'Attachment': Attachment,\n 'AutoComplete': AutoComplete,\n 'CancelAlert': CancelAlert,\n 'CaseHistory': CaseHistory,\n 'CaseSummary': CaseSummary,\n 'CaseSummaryFields': CaseSummaryFields,\n 'CaseView': CaseView,\n 'Checkbox': Checkbox,\n 'Currency': Currency,\n 'DashboardFilter': DashboardFilter,\n 'DataReference': DataReference,\n 'Date': Date,\n 'DateTime': DateTime,\n 'Decimal': Decimal,\n 'DefaultForm': DefaultForm,\n 'DeferLoad': DeferLoad,\n 'Details': Details,\n 'DetailsSubTabs': DetailsSubTabs,\n 'DetailsThreeColumn': DetailsThreeColumn,\n 'DetailsTwoColumn': DetailsTwoColumn,\n 'Dropdown': Dropdown,\n 'Email': Email,\n 'ErrorBoundary': ErrorBoundary,\n 'FieldGroupTemplate': FieldGroupTemplate,\n 'FileUtility': FileUtility,\n 'FlowContainer': FlowContainer,\n 'Followers': Followers,\n 'InlineDashboard': InlineDashboard,\n 'InlineDashboardPage': InlineDashboardPage,\n 'Integer': Integer,\n 'ListPage': ListPage,\n 'ListView': ListView,\n 'ModalViewContainer': ModalViewContainer,\n 'MultiReferenceReadOnly': MultiReferenceReadOnly,\n 'MultiStep': MultiStep,\n 'NarrowWide': NarrowWide,\n 'NarrowWideDetails': NarrowWideDetails,\n 'NarrowWideForm': NarrowWideForm,\n 'NarrowWidePage': NarrowWidePage,\n 'NavBar': NavBar,\n 'OneColumn': OneColumn,\n 'OneColumnPage': OneColumnPage,\n 'OneColumnTab': OneColumnTab,\n 'Operator': Operator,\n 'Percentage': Percentage,\n 'Phone': Phone,\n 'PromotedFilters': PromotedFilters,\n 'Pulse': Pulse,\n 'reference': Reference,\n 'RadioButtons': RadioButtons,\n 'Region': Region,\n 'RootContainer': RootContainer,\n 'SemanticLink': SemanticLink,\n 'SimpleTable': SimpleTable,\n 'SimpleTableManual': SimpleTableManual,\n 'SimpleTableSelect': SimpleTableSelect,\n 'SingleReferenceReadOnly': SingleReferenceReadOnly,\n 'Stages': Stages,\n 'SubTabs': SubTabs,\n 'SummaryItem': SummaryItem,\n 'SummaryList': SummaryList,\n 'TextArea': TextArea,\n 'TextContent': TextContent,\n 'TextInput': TextInput,\n 'Time': Time,\n 'Todo': ToDo,\n 'TwoColumn': TwoColumn,\n 'TwoColumnPage': TwoColumnPage,\n 'TwoColumnTab': TwoColumnTab,\n 'URL': URL,\n 'UserReference': UserReference,\n 'VerticalTabs': VerticalTabs,\n 'View': View,\n 'ViewContainer': ViewContainer,\n 'WideNarrow': WideNarrow,\n 'WideNarrowDetails': WideNarrowDetails,\n 'WideNarrowForm': WideNarrowForm,\n 'WideNarrowPage': WideNarrowPage\n};\n\nexport default pegaSdkComponentMap;\n"]}
|
package/package.json
CHANGED