@pega/react-sdk-components 0.23.3 → 0.23.4

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.
@@ -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;AAoBpB,iBAAwB,IAAI,CAAC,KAAK,KAAA,eAqQjC;kBArQuB,IAAI;;;;;;;;;;;;;;;;;;;;;;;eAAJ,IAAI"}
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;AAoCpB,iBAAwB,IAAI,CAAC,KAAK,KAAA,eA6OjC;kBA7OuB,IAAI;;;;;;;;;;;;;;;;;;;;;;;eAAJ,IAAI"}
@@ -11,6 +11,20 @@ import { useTheme } from '@material-ui/core/styles';
11
11
  import useMediaQuery from '@material-ui/core/useMediaQuery';
12
12
  import './ToDo.css';
13
13
  // import { useNavBar } from "../templates/AppShell";
14
+ function getCaseInfoAssignment(assignmentsSource, caseInfoID) {
15
+ const result = [];
16
+ for (const source of assignmentsSource) {
17
+ if (source.ID.indexOf(caseInfoID) >= 0) {
18
+ const listRow = JSON.parse(JSON.stringify(source));
19
+ // urgency becomes priority
20
+ listRow['priority'] = listRow.urgency || undefined;
21
+ // mimic regular list
22
+ listRow['id'] = listRow['ID'] || undefined;
23
+ result.push(listRow);
24
+ }
25
+ }
26
+ return result;
27
+ }
14
28
  const useStyles = makeStyles((theme) => ({
15
29
  root: {
16
30
  marginTop: theme.spacing(1),
@@ -56,25 +70,6 @@ export default function ToDo(props) {
56
70
  }
57
71
  return arList3;
58
72
  }
59
- function getCaseInfoAssignment(arList, inCaseInfoID) {
60
- const arList1 = new Array();
61
- for (const aIndex in arList) {
62
- if (arList[aIndex].ID.indexOf(inCaseInfoID) >= 0) {
63
- const listRow = JSON.parse(JSON.stringify(arList[aIndex]));
64
- // urgency becomes priority
65
- if (listRow.urgency) {
66
- listRow["priority"] = listRow.urgency;
67
- }
68
- if (listRow.ID) {
69
- // mimic regular list
70
- listRow["id"] = listRow["ID"];
71
- }
72
- arList1.push(listRow);
73
- break;
74
- }
75
- }
76
- return arList1;
77
- }
78
73
  function getID(assignment) {
79
74
  let sID = "";
80
75
  if (assignment.value) {
@@ -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,GACxB,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;AAEpB,qDAAqD;AAErD,MAAM,SAAS,GAAG,UAAU,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACvC,IAAI,EAAE;QACJ,SAAS,EAAE,KAAK,CAAC,OAAO,C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AQ,IACP,IAAI,EAAE,YAAY,EAClB,gBAAgB,EAAE,IAAI,EACtB,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,eAAe,EACxB,MAAM,EACJ,oBAAC,UAAU,IAAC,IAAI,EAAC,OAAO,gBAAY,OAAO,EAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAE,mBAAmB;gBACtF,oBAAC,SAAS,IAAC,QAAQ,EAAC,OAAO,GAAG,CACnB,GAEf,CACa,CAClB,CAAC;AACJ,CAAC;AAED,IAAI,CAAC,SAAS,GAAG;IACf,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC;IACxC,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC;IACxC,UAAU,EAAE,SAAS,CAAC,MAAM;IAC5B,+BAA+B;IAC/B,WAAW,EAAE,SAAS,CAAC,IAAI,CAAC,UAAU;IACtC,UAAU,EAAE,SAAS,CAAC,MAAM;IAC5B,sDAAsD;IACtD,OAAO,EAAE,SAAS,CAAC,MAAM;IACzB,YAAY,EAAE,SAAS,CAAC,IAAI;IAC5B,4BAA4B;IAC5B,sDAAsD;IACtD,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\n// import { useNavBar } from \"../templates/AppShell\";\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\ndeclare const PCore: any;\n\nexport default function ToDo(props) {\n const {\n caseInfoID,\n datasource,\n getPConnect,\n headerText,\n showTodoList,\n myWorkList\n } = props;\n\n const bLogging = true;\n const [bShowMore, setBShowMore] = useState( true );\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n const[currentUser, setCurrentUser] = useState(PCore.getEnvironmentInfo().getOperatorName());\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n const[currentUserInitials, setCurrentUserInitials] = useState(Utils.getInitials(currentUser));\n const [showSnackbar, setShowSnackbar] = useState(false);\n const [snackbarMessage, setSnackbarMessage]: any = useState(\"\");\n\n\n const thePConn = getPConnect();\n let assignmentCount = 0;\n const assignmentsSource = datasource?.source || myWorkList?.source;\n // let arAssignments : Array<any> = [];\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n const[arAssignments, setArAssignments] = useState<Array<any>>( initAssignments() );\n const classes = useStyles();\n const theme = useTheme();\n const isDesktop = useMediaQuery(theme.breakpoints.up('md'));\n // const { setOpen } = useNavBar();\n\n function topThreeAssignments(arList: Array<any>): Array<any> {\n const arList3: Array<any> = new Array<any>();\n\n if (arList && typeof(arList) === \"object\") {\n let len = arList.length;\n if (len > 3) len = 3;\n\n for (let i =0; i < len; i+=1) {\n arList3.push(arList[i]);\n }\n }\n return arList3;\n }\n\n function getCaseInfoAssignment(arList: Array<any>, inCaseInfoID: string) {\n const arList1: Array<any> = new Array<any>();\n for ( const aIndex in arList) {\n if (arList[aIndex].ID.indexOf(inCaseInfoID) >= 0) {\n\n const listRow = JSON.parse(JSON.stringify(arList[aIndex]));\n\n // urgency becomes priority\n if (listRow.urgency) {\n listRow[\"priority\"] = listRow.urgency;\n }\n\n if (listRow.ID) {\n // mimic regular list\n listRow[\"id\"] = listRow[\"ID\"];\n }\n\n arList1.push(listRow);\n break;\n }\n }\n return arList1;\n }\n\n function getID(assignment: any) {\n let sID = \"\";\n if (assignment.value) {\n const refKey = assignment.value;\n sID = refKey.substring(refKey.lastIndexOf(\" \") + 1);\n }\n else {\n const refKey = assignment.ID;\n const arKeys = refKey.split(\"!\")[0].split(\" \");\n sID = arKeys[2];\n }\n return sID;\n }\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\n function handleSnackbarClose(event: React.SyntheticEvent | React.MouseEvent, reason?: string) {\n if (reason === 'clickaway') {\n return;\n }\n setShowSnackbar(false);\n };\n\n\n function _showMore() {\n setBShowMore(false);\n setArAssignments(assignmentsSource);\n }\n\n\n function _showLess() {\n setBShowMore(true);\n setArAssignments(topThreeAssignments(assignmentsSource));\n }\n\n\n function clickGo(inAssignmentArray: any) {\n //\n // By Sherif\n // Disable closing the side bar per standup vote\n //\n // setOpen(false);\n\n const { id } = inAssignmentArray[0];\n let { classname = \"\" } = inAssignmentArray[0];\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 }\n else {\n options[\"isActionFromToDoList\"] = false;\n options[\"target\"] = sTarget;\n }\n\n thePConn.getActionsApi().openAssignment(id, classname, options).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\n\n function initAssignments() : Array<any> {\n if (showTodoList) {\n if (assignmentsSource) {\n assignmentCount = (assignmentsSource !== null) ? assignmentsSource.length : 0;\n return topThreeAssignments(assignmentsSource);\n }else {\n // turn off todolist\n return [];\n }\n }\n else if (caseInfoID !== undefined) {\n // get caseInfoId assignment.\n return getCaseInfoAssignment(assignmentsSource, caseInfoID);\n }\n return [];\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 `}<span className=\"psdk-todo-assignment-status\">{assignment.status}</span>\n {` \\u2022 Priority ${assignment.priority}`}\n </>\n )\n } return (\n <>\n <Button size=\"small\" color=\"primary\">{`${assignment.name} ${getID(assignment)}`}</Button>\n {` \\u2022 Priority ${assignment.priority}`}\n </>\n )\n }\n\n return (\n <React.Fragment>\n <Card className={classes.root}>\n {\n showTodoList && (\n <CardHeader\n title={\n <Badge badgeContent={assignmentCount} color=\"primary\">\n <Typography variant=\"h6\">{headerText}&nbsp;&nbsp;&nbsp;</Typography>\n </Badge>\n }\n avatar={\n <Avatar className={classes.avatar}>\n {currentUserInitials}\n </Avatar>\n }\n ></CardHeader>\n )\n }\n <CardContent>\n <List>\n {\n arAssignments.map(assignment => (\n <ListItem\n key={assignment.id}\n dense\n divider\n onClick={() => clickGo([assignment])}\n >\n <ListItemText\n primary={assignment.stepName}\n secondary={getListItemComponent(assignment)}\n />\n <ListItemSecondaryAction>\n <IconButton onClick={() => clickGo([assignment])}>\n <ArrowForwardIosOutlinedIcon />\n </IconButton>\n </ListItemSecondaryAction>\n </ListItem>\n ))\n }\n </List>\n </CardContent>\n {\n showTodoList && (\n <Box\n display=\"flex\"\n justifyContent=\"center\"\n >\n {\n bShowMore ? <Button color=\"primary\" onClick={_showMore}>Show more</Button>\n : <Button onClick={_showLess}>Show less</Button>\n }\n </Box>\n )\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 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 // eslint-disable-next-line react/no-unused-prop-types\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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AAC,MAAM;IACzB,YAAY,EAAE,SAAS,CAAC,IAAI;IAC5B,4BAA4B;IAC5B,sDAAsD;IACtD,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\n// import { useNavBar } from \"../templates/AppShell\";\n\nfunction getCaseInfoAssignment(assignmentsSource: Array<any>, caseInfoID: string) {\n const result: Array<any> = [];\n for (const source of assignmentsSource) {\n if (source.ID.indexOf(caseInfoID) >= 0) {\n const listRow = JSON.parse(JSON.stringify(source));\n // urgency becomes priority\n listRow['priority'] = listRow.urgency || undefined;\n // mimic regular list\n listRow['id'] = listRow['ID'] || undefined;\n result.push(listRow);\n }\n }\n\n return result;\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\ndeclare const PCore: any;\n\nexport default function ToDo(props) {\n const {\n caseInfoID,\n datasource,\n getPConnect,\n headerText,\n showTodoList,\n myWorkList\n } = props;\n\n const bLogging = true;\n const [bShowMore, setBShowMore] = useState( true );\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n const[currentUser, setCurrentUser] = useState(PCore.getEnvironmentInfo().getOperatorName());\n // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars\n const[currentUserInitials, setCurrentUserInitials] = useState(Utils.getInitials(currentUser));\n const [showSnackbar, setShowSnackbar] = useState(false);\n const [snackbarMessage, setSnackbarMessage]: any = useState(\"\");\n\n\n const thePConn = getPConnect();\n let assignmentCount = 0;\n const assignmentsSource = datasource?.source || myWorkList?.source;\n // let arAssignments : Array<any> = [];\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n const[arAssignments, setArAssignments] = useState<Array<any>>( initAssignments() );\n const classes = useStyles();\n const theme = useTheme();\n const isDesktop = useMediaQuery(theme.breakpoints.up('md'));\n // const { setOpen } = useNavBar();\n\n function topThreeAssignments(arList: Array<any>): Array<any> {\n const arList3: Array<any> = new Array<any>();\n\n if (arList && typeof(arList) === \"object\") {\n let len = arList.length;\n if (len > 3) len = 3;\n\n for (let i =0; i < len; i+=1) {\n arList3.push(arList[i]);\n }\n }\n return arList3;\n }\n\n function getID(assignment: any) {\n let sID = \"\";\n if (assignment.value) {\n const refKey = assignment.value;\n sID = refKey.substring(refKey.lastIndexOf(\" \") + 1);\n }\n else {\n const refKey = assignment.ID;\n const arKeys = refKey.split(\"!\")[0].split(\" \");\n sID = arKeys[2];\n }\n return sID;\n }\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\n function handleSnackbarClose(event: React.SyntheticEvent | React.MouseEvent, reason?: string) {\n if (reason === 'clickaway') {\n return;\n }\n setShowSnackbar(false);\n };\n\n\n function _showMore() {\n setBShowMore(false);\n setArAssignments(assignmentsSource);\n }\n\n\n function _showLess() {\n setBShowMore(true);\n setArAssignments(topThreeAssignments(assignmentsSource));\n }\n\n\n function clickGo(inAssignmentArray: any) {\n //\n // By Sherif\n // Disable closing the side bar per standup vote\n //\n // setOpen(false);\n\n const { id } = inAssignmentArray[0];\n let { classname = \"\" } = inAssignmentArray[0];\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 }\n else {\n options[\"isActionFromToDoList\"] = false;\n options[\"target\"] = sTarget;\n }\n\n thePConn.getActionsApi().openAssignment(id, classname, options).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\n\n function initAssignments() : Array<any> {\n if (showTodoList) {\n if (assignmentsSource) {\n assignmentCount = (assignmentsSource !== null) ? assignmentsSource.length : 0;\n return topThreeAssignments(assignmentsSource);\n }else {\n // turn off todolist\n return [];\n }\n }\n else if (caseInfoID !== undefined) {\n // get caseInfoId assignment.\n return getCaseInfoAssignment(assignmentsSource, caseInfoID);\n }\n return [];\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 `}<span className=\"psdk-todo-assignment-status\">{assignment.status}</span>\n {` \\u2022 Priority ${assignment.priority}`}\n </>\n )\n } return (\n <>\n <Button size=\"small\" color=\"primary\">{`${assignment.name} ${getID(assignment)}`}</Button>\n {` \\u2022 Priority ${assignment.priority}`}\n </>\n )\n }\n\n return (\n <React.Fragment>\n <Card className={classes.root}>\n {\n showTodoList && (\n <CardHeader\n title={\n <Badge badgeContent={assignmentCount} color=\"primary\">\n <Typography variant=\"h6\">{headerText}&nbsp;&nbsp;&nbsp;</Typography>\n </Badge>\n }\n avatar={\n <Avatar className={classes.avatar}>\n {currentUserInitials}\n </Avatar>\n }\n ></CardHeader>\n )\n }\n <CardContent>\n <List>\n {\n arAssignments.map(assignment => (\n <ListItem\n key={assignment.id}\n dense\n divider\n onClick={() => clickGo([assignment])}\n >\n <ListItemText\n primary={assignment.stepName}\n secondary={getListItemComponent(assignment)}\n />\n <ListItemSecondaryAction>\n <IconButton onClick={() => clickGo([assignment])}>\n <ArrowForwardIosOutlinedIcon />\n </IconButton>\n </ListItemSecondaryAction>\n </ListItem>\n ))\n }\n </List>\n </CardContent>\n {\n showTodoList && (\n <Box\n display=\"flex\"\n justifyContent=\"center\"\n >\n {\n bShowMore ? <Button color=\"primary\" onClick={_showMore}>Show more</Button>\n : <Button onClick={_showLess}>Show less</Button>\n }\n </Box>\n )\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 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 // eslint-disable-next-line react/no-unused-prop-types\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"]}
@@ -21,11 +21,13 @@ declare namespace pegaSdkComponentMap {
21
21
  export { DefaultForm };
22
22
  export { Details };
23
23
  export { DetailsSubTabs };
24
+ export { DetailsThreeColumn };
24
25
  export { DetailsTwoColumn };
25
26
  export { DeferLoad };
26
27
  export { Dropdown };
27
28
  export { Email };
28
29
  export { ErrorBoundary };
30
+ export { FieldGroupTemplate };
29
31
  export { FileUtility };
30
32
  export { FlowContainer };
31
33
  export { Followers };
@@ -35,6 +37,7 @@ declare namespace pegaSdkComponentMap {
35
37
  export { ListPage };
36
38
  export { ListView };
37
39
  export { ModalViewContainer };
40
+ export { MultiReferenceReadOnly };
38
41
  export { MultiStep };
39
42
  export { NarrowWide };
40
43
  export { NarrowWideDetails };
@@ -56,6 +59,7 @@ declare namespace pegaSdkComponentMap {
56
59
  export { SimpleTable };
57
60
  export { SimpleTableManual };
58
61
  export { SimpleTableSelect };
62
+ export { SingleReferenceReadOnly };
59
63
  export { Stages };
60
64
  export { SubTabs };
61
65
  export { SummaryItem };
@@ -67,6 +71,7 @@ declare namespace pegaSdkComponentMap {
67
71
  export { ToDo as Todo };
68
72
  export { TwoColumn };
69
73
  export { TwoColumnPage };
74
+ export { TwoColumnTab };
70
75
  export { URL };
71
76
  export { UserReference };
72
77
  export { VerticalTabs };
@@ -98,11 +103,13 @@ import Decimal from "../lib/components/forms/Decimal";
98
103
  import DefaultForm from "../lib/components/templates/DefaultForm";
99
104
  import Details from "../lib/components/templates/Details/Details";
100
105
  import DetailsSubTabs from "../lib/components/templates/Details/DetailsSubTabs";
106
+ import DetailsThreeColumn from "./components/templates/Details/DetailsThreeColumn";
101
107
  import DetailsTwoColumn from "../lib/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn";
102
108
  import DeferLoad from "../lib/components/infra/DeferLoad";
103
109
  import Dropdown from "../lib/components/forms/Dropdown";
104
110
  import Email from "../lib/components/forms/Email/Email";
105
111
  import ErrorBoundary from "../lib/components/infra/ErrorBoundary";
112
+ import FieldGroupTemplate from "./components/templates/FieldGroupTemplate";
106
113
  import FileUtility from "../lib/components/widgets/FileUtility/FileUtility";
107
114
  import FlowContainer from "../lib/components/infra/Containers/FlowContainer";
108
115
  import Followers from "../lib/components/widgets/Followers";
@@ -112,6 +119,7 @@ import Integer from "../lib/components/forms/Integer";
112
119
  import ListPage from "../lib/components/templates/ListPage/ListPage";
113
120
  import ListView from "../lib/components/templates/ListView";
114
121
  import ModalViewContainer from "../lib/components/infra/Containers/ModalViewContainer/ModalViewContainer";
122
+ import MultiReferenceReadOnly from "./components/templates/MultiReferenceReadOnly";
115
123
  import MultiStep from "../lib/components/infra/MultiStep";
116
124
  import NarrowWide from "../lib/components/templates/NarrowWide/NarrowWide";
117
125
  import NarrowWideDetails from "../lib/components/templates/NarrowWide/NarrowWideDetails";
@@ -133,6 +141,7 @@ import SemanticLink from "../lib/components/forms/SemanticLink";
133
141
  import SimpleTable from "../lib/components/templates/SimpleTable/SimpleTable";
134
142
  import SimpleTableManual from "../lib/components/templates/SimpleTable/SimpleTableManual";
135
143
  import SimpleTableSelect from "../lib/components/templates/SimpleTable/SimpleTableSelect";
144
+ import SingleReferenceReadOnly from "./components/templates/SingleReferenceReadOnly";
136
145
  import Stages from "../lib/components/infra/Stages";
137
146
  import SubTabs from "../lib/components/templates/SubTabs";
138
147
  import SummaryItem from "../lib/components/widgets/SummaryItem";
@@ -144,6 +153,7 @@ import Time from "../lib/components/forms/Time";
144
153
  import ToDo from "../lib/components/infra/ToDo";
145
154
  import TwoColumn from "../lib/components/templates/TwoColumn/TwoColumn";
146
155
  import TwoColumnPage from "../lib/components/templates/TwoColumn/TwoColumnPage";
156
+ import TwoColumnTab from "./components/templates/TwoColumn/TwoColumnTab";
147
157
  import URL from "../lib/components/forms/URL";
148
158
  import UserReference from "../lib/components/forms/UserReference";
149
159
  import VerticalTabs from "../lib/components/infra/VerticalTabs";
@@ -1,6 +1,6 @@
1
1
  // When this code is run from the generated npm module, the components are
2
2
  // placed in the npm module's 'lib' directory. So, we expect to import from there.
3
- // This file should import and expose ALL of the components that may be
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
5
  import ActionButtons from '../lib/components/infra/ActionButtons'; // '../lib/components/infra/ActionButtons';
6
6
  import AppAnnouncement from '../lib/components/widgets/AppAnnouncement';
@@ -24,10 +24,12 @@ import DefaultForm from '../lib/components/templates/DefaultForm';
24
24
  import DeferLoad from '../lib/components/infra/DeferLoad';
25
25
  import Details from '../lib/components/templates/Details/Details';
26
26
  import DetailsSubTabs from '../lib/components/templates/Details/DetailsSubTabs';
27
+ import DetailsThreeColumn from './components/templates/Details/DetailsThreeColumn';
27
28
  import DetailsTwoColumn from '../lib/components/templates/Details/DetailsTwoColumn/DetailsTwoColumn';
28
29
  import Dropdown from '../lib/components/forms/Dropdown';
29
30
  import ErrorBoundary from '../lib/components/infra/ErrorBoundary';
30
31
  import Email from '../lib/components/forms/Email/Email';
32
+ import FieldGroupTemplate from './components/templates/FieldGroupTemplate';
31
33
  import FileUtility from '../lib/components/widgets/FileUtility/FileUtility';
32
34
  import FlowContainer from '../lib/components/infra/Containers/FlowContainer';
33
35
  import Followers from '../lib/components/widgets/Followers';
@@ -37,6 +39,7 @@ import Integer from '../lib/components/forms/Integer';
37
39
  import ListPage from '../lib/components/templates/ListPage/ListPage';
38
40
  import ListView from '../lib/components/templates/ListView';
39
41
  import ModalViewContainer from '../lib/components/infra/Containers/ModalViewContainer/ModalViewContainer';
42
+ import MultiReferenceReadOnly from './components/templates/MultiReferenceReadOnly';
40
43
  import MultiStep from '../lib/components/infra/MultiStep';
41
44
  import NarrowWide from '../lib/components/templates/NarrowWide/NarrowWide';
42
45
  import NarrowWideDetails from '../lib/components/templates/NarrowWide/NarrowWideDetails';
@@ -57,18 +60,20 @@ import RootContainer from '../lib/components/infra/RootContainer/RootContainer';
57
60
  import SemanticLink from '../lib/components/forms/SemanticLink';
58
61
  import Stages from '../lib/components/infra/Stages';
59
62
  import SubTabs from '../lib/components/templates/SubTabs';
60
- import TextArea from '../lib/components/forms/TextArea';
61
- import TextContent from '../lib/components/forms/TextContent';
62
- import TextInput from '../lib/components/forms/TextInput/TextInput';
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
+ import SingleReferenceReadOnly from './components/templates/SingleReferenceReadOnly';
66
67
  import SummaryItem from '../lib/components/widgets/SummaryItem';
67
68
  import SummaryList from '../lib/components/widgets/SummaryList';
69
+ import TextArea from '../lib/components/forms/TextArea';
70
+ import TextContent from '../lib/components/forms/TextContent';
71
+ import TextInput from '../lib/components/forms/TextInput/TextInput';
68
72
  import Time from '../lib/components/forms/Time';
69
73
  import ToDo from '../lib/components/infra/ToDo';
70
74
  import TwoColumn from '../lib/components/templates/TwoColumn/TwoColumn';
71
75
  import TwoColumnPage from '../lib/components/templates/TwoColumn/TwoColumnPage';
76
+ import TwoColumnTab from './components/templates/TwoColumn/TwoColumnTab';
72
77
  import URL from '../lib/components/forms/URL';
73
78
  import UserReference from '../lib/components/forms/UserReference';
74
79
  import VerticalTabs from '../lib/components/infra/VerticalTabs';
@@ -107,11 +112,13 @@ const pegaSdkComponentMap = {
107
112
  'DefaultForm': DefaultForm,
108
113
  'Details': Details,
109
114
  'DetailsSubTabs': DetailsSubTabs,
115
+ 'DetailsThreeColumn': DetailsThreeColumn,
110
116
  'DetailsTwoColumn': DetailsTwoColumn,
111
117
  'DeferLoad': DeferLoad,
112
118
  'Dropdown': Dropdown,
113
119
  'Email': Email,
114
120
  'ErrorBoundary': ErrorBoundary,
121
+ 'FieldGroupTemplate': FieldGroupTemplate,
115
122
  'FileUtility': FileUtility,
116
123
  'FlowContainer': FlowContainer,
117
124
  'Followers': Followers,
@@ -121,6 +128,7 @@ const pegaSdkComponentMap = {
121
128
  'ListPage': ListPage,
122
129
  'ListView': ListView,
123
130
  'ModalViewContainer': ModalViewContainer,
131
+ 'MultiReferenceReadOnly': MultiReferenceReadOnly,
124
132
  'MultiStep': MultiStep,
125
133
  'NarrowWide': NarrowWide,
126
134
  'NarrowWideDetails': NarrowWideDetails,
@@ -142,6 +150,7 @@ const pegaSdkComponentMap = {
142
150
  'SimpleTable': SimpleTable,
143
151
  'SimpleTableManual': SimpleTableManual,
144
152
  'SimpleTableSelect': SimpleTableSelect,
153
+ 'SingleReferenceReadOnly': SingleReferenceReadOnly,
145
154
  'Stages': Stages,
146
155
  'SubTabs': SubTabs,
147
156
  'SummaryItem': SummaryItem,
@@ -153,6 +162,7 @@ const pegaSdkComponentMap = {
153
162
  'Todo': ToDo,
154
163
  'TwoColumn': TwoColumn,
155
164
  'TwoColumnPage': TwoColumnPage,
165
+ 'TwoColumnTab': TwoColumnTab,
156
166
  'URL': URL,
157
167
  'UserReference': UserReference,
158
168
  'VerticalTabs': VerticalTabs,
@@ -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,yEAAyE;AACzE,qFAAqF;AAErF,OAAO,aAAa,MAAM,uCAAuC,CAAC,CAAC,2CAA2C;AAC9G,OAAO,eAAe,MAAM,2CAA2C,CAAC;AACxE,OAAO,QAAQ,M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gB,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 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 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 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 TextArea from '../lib/components/forms/TextArea';\nimport TextContent from '../lib/components/forms/TextContent';\nimport TextInput from '../lib/components/forms/TextInput/TextInput';\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 SummaryItem from '../lib/components/widgets/SummaryItem';\nimport SummaryList from '../lib/components/widgets/SummaryList';\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 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 'DetailsTwoColumn': DetailsTwoColumn,\n 'DeferLoad': DeferLoad,\n 'Dropdown': Dropdown,\n 'Email': Email,\n 'ErrorBoundary': ErrorBoundary,\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 '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 '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 '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;"]}
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,OA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E,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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/react-sdk-components",
3
- "version": "0.23.3",
3
+ "version": "0.23.4",
4
4
  "description": "React SDK Infrastructure: bridge and components",
5
5
  "_filesComment": "During packing, npm ignores everything NOT in the files list",
6
6
  "files": [