@pega/react-sdk-components 0.23.29 → 0.23.31

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.
Files changed (21) hide show
  1. package/lib/components/{infra/Containers/ModalViewContainer → field}/CancelAlert/CancelAlert.d.ts +1 -1
  2. package/lib/components/field/CancelAlert/CancelAlert.d.ts.map +1 -0
  3. package/lib/components/field/CancelAlert/CancelAlert.js.map +1 -0
  4. package/lib/components/field/CancelAlert/index.d.ts.map +1 -0
  5. package/lib/components/field/CancelAlert/index.js.map +1 -0
  6. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.d.ts.map +1 -1
  7. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js +20 -1
  8. package/lib/components/template/CaseViewActionsMenu/CaseViewActionsMenu.js.map +1 -1
  9. package/lib/doc/KeyReleaseUpdates.md +13 -9
  10. package/lib/sdk-pega-component-map.d.ts +1 -1
  11. package/lib/sdk-pega-component-map.js +1 -1
  12. package/lib/sdk-pega-component-map.js.map +1 -1
  13. package/package.json +1 -1
  14. package/lib/components/infra/Containers/ModalViewContainer/CancelAlert/CancelAlert.d.ts.map +0 -1
  15. package/lib/components/infra/Containers/ModalViewContainer/CancelAlert/CancelAlert.js.map +0 -1
  16. package/lib/components/infra/Containers/ModalViewContainer/CancelAlert/index.d.ts.map +0 -1
  17. package/lib/components/infra/Containers/ModalViewContainer/CancelAlert/index.js.map +0 -1
  18. /package/lib/components/{infra/Containers/ModalViewContainer → field}/CancelAlert/CancelAlert.css +0 -0
  19. /package/lib/components/{infra/Containers/ModalViewContainer → field}/CancelAlert/CancelAlert.js +0 -0
  20. /package/lib/components/{infra/Containers/ModalViewContainer → field}/CancelAlert/index.d.ts +0 -0
  21. /package/lib/components/{infra/Containers/ModalViewContainer → field}/CancelAlert/index.js +0 -0
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { PConnFieldProps } from '../../../../../types/PConnProps';
2
+ import { PConnFieldProps } from '../../../types/PConnProps';
3
3
  import './CancelAlert.css';
4
4
  interface CancelAlertProps extends PConnFieldProps {
5
5
  heading: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CancelAlert.d.ts","sourceRoot":"","sources":["../../../../src/components/field/CancelAlert/CancelAlert.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,mBAAmB,CAAC;AAE3B,UAAU,gBAAiB,SAAQ,eAAe;IAEhD,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,sBAAsB,EAAE,GAAG,CAAC;IAC5B,OAAO,EAAE,QAAQ,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,eAkI1D"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CancelAlert.js","sourceRoot":"","sources":["../../../../src/components/field/CancelAlert/CancelAlert.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,SAAS,MAAM,0BAA0B,CAAC;AAGjD,OAAO,mBAAmB,CAAC;AAa3B,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAuB;IACzD,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,sBAAsB,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IACrI,MAAM,UAAU,GAAG,WAAW,EAAE,CAAC,aAAa,EAAE,CAAC;IACjD,MAAM,mBAAmB,GAAG,WAAW,EAAE,CAAC,mBAAmB,E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C1B,GACH,IACF,GACF,EACN,KAAC,QAAQ,IACP,IAAI,EAAE,YAAY,EAClB,gBAAgB,EAAE,IAAI,EACtB,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,eAAe,EACxB,MAAM,EACJ,KAAC,UAAU,IAAC,IAAI,EAAC,OAAO,gBAAY,OAAO,EAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAE,mBAAmB,YACtF,KAAC,SAAS,IAAC,QAAQ,EAAC,OAAO,GAAG,GACnB,GAEf,IACD,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import React, { useState } from 'react';\nimport { Button, Grid, IconButton, Snackbar } from '@material-ui/core';\nimport CloseIcon from '@material-ui/icons/Close';\n\nimport { PConnFieldProps } from '../../../types/PConnProps';\nimport './CancelAlert.css';\n\ninterface CancelAlertProps extends PConnFieldProps {\n // If any, enter additional props that only exist on CancelAlert here\n heading: string;\n content: string;\n itemKey: string;\n hideDelete: boolean;\n isDataObject: boolean;\n skipReleaseLockRequest: any;\n dismiss: Function;\n}\n\nexport default function CancelAlert(props: CancelAlertProps) {\n const { heading, content, getPConnect, itemKey: containerItemID, hideDelete, isDataObject, skipReleaseLockRequest, dismiss } = props;\n const actionsAPI = getPConnect().getActionsApi();\n const containerManagerAPI = getPConnect().getContainerManager();\n const isLocalAction = getPConnect().getValue(PCore.getConstants().CASE_INFO.IS_LOCAL_ACTION);\n const isBulkAction = getPConnect()?.options?.isBulkAction;\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const broadCastUtils: any = PCore.getCoexistenceManager().getBroadcastUtils();\n const isReverseCoexistence = broadCastUtils.isReverseCoexistenceCaseLoaded();\n const localeCategory = 'ModalContainer';\n const btnIds = {\n SAVE_AND_CLOSE: 'saveAndClose',\n CONTINUE_WORKING: 'continueWorking',\n DELETE: 'delete'\n };\n\n const [buttonsState, setButtonsState] = useState({\n [btnIds.SAVE_AND_CLOSE]: false,\n [btnIds.DELETE]: false\n });\n\n const [showSnackbar, setShowSnackbar] = useState(false);\n const [snackbarMessage, setSnackbarMessage] = useState('');\n\n function disableButton(id) {\n setButtonsState(prevState => ({\n ...prevState,\n [id]: true\n }));\n }\n\n function enableButton(id) {\n setButtonsState(prevState => ({\n ...prevState,\n [id]: false\n }));\n }\n\n function cancelHandler() {\n if (isReverseCoexistence) {\n dismiss(true);\n // @ts-ignore - An argument for 'payload' was not provided.\n PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.REVERSE_COEXISTENCE_EVENTS.HANDLE_DISCARD);\n } else if (!isDataObject && !isLocalAction && !isBulkAction) {\n disableButton(btnIds.DELETE);\n actionsAPI\n .deleteCaseInCreateStage(containerItemID, hideDelete)\n .then(() => {\n // @ts-ignore - An argument for 'payload' was not provided.\n PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.EVENT_CANCEL);\n })\n .catch(() => {\n setSnackbarMessage(localizedVal('Delete failed.', localeCategory));\n setShowSnackbar(true);\n })\n .finally(() => {\n enableButton(btnIds.DELETE);\n dismiss(true);\n });\n } else if (isLocalAction) {\n dismiss(true);\n actionsAPI.cancelAssignment(containerItemID);\n } else if (isBulkAction) {\n dismiss(true);\n actionsAPI.cancelBulkAction(containerItemID);\n } else {\n dismiss(true);\n containerManagerAPI.removeContainerItem({ containerItemID, skipReleaseLockRequest });\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 const leftButton = (\n <Button\n name={btnIds.CONTINUE_WORKING}\n variant='contained'\n color='secondary'\n onClick={() => {\n dismiss();\n if (isReverseCoexistence) {\n broadCastUtils.setCallBackFunction(null);\n broadCastUtils.setIsDirtyDialogActive(false);\n }\n }}\n >\n {localizedVal('Go back', localeCategory)}\n </Button>\n );\n\n const rightButton = (\n <Button name={btnIds.DELETE} variant='contained' color='primary' disabled={buttonsState[btnIds.DELETE]} onClick={cancelHandler}>\n {localizedVal('Discard', localeCategory)}\n </Button>\n );\n\n return (\n <>\n <div className='cancel-alert-background'>\n <div className='cancel-alert-top'>\n <h3>{localizedVal(heading, localeCategory)}</h3>\n <div>\n <p>{localizedVal(content, localeCategory)}</p>\n </div>\n <div className='action-controls'>\n <Grid container spacing={4} justifyContent='space-between'>\n <Grid item>{leftButton}</Grid>\n <Grid item>{rightButton}</Grid>\n </Grid>\n </div>\n </div>\n </div>\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 </>\n );\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/field/CancelAlert/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/field/CancelAlert/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC","sourcesContent":["export { default } from './CancelAlert';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"CaseViewActionsMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,UAAU,wBAAyB,SAAQ,UAAU;IAEnD,gBAAgB,EAAE,GAAG,EAAE,CAAC;IACxB,kBAAkB,EAAE,GAAG,EAAE,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,eAoE1E"}
1
+ {"version":3,"file":"CaseViewActionsMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAKvD,UAAU,wBAAyB,SAAQ,UAAU;IAEnD,gBAAgB,EAAE,GAAG,EAAE,CAAC;IACxB,kBAAkB,EAAE,GAAG,EAAE,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,eAkG1E"}
@@ -3,6 +3,9 @@ import { useState } from 'react';
3
3
  import Button from '@material-ui/core/Button';
4
4
  import Menu from '@material-ui/core/Menu';
5
5
  import MenuItem from '@material-ui/core/MenuItem';
6
+ import Snackbar from '@material-ui/core/Snackbar';
7
+ import IconButton from '@material-ui/core/IconButton';
8
+ import CloseIcon from '@material-ui/icons/Close';
6
9
  export default function CaseViewActionsMenu(props) {
7
10
  const { getPConnect, availableActions, availableProcesses, caseTypeID, caseTypeName } = props;
8
11
  const thePConn = getPConnect();
@@ -10,6 +13,8 @@ export default function CaseViewActionsMenu(props) {
10
13
  const localeCategory = 'CaseView';
11
14
  const localeKey = `${caseTypeID}!CASE!${caseTypeName}`.toUpperCase();
12
15
  const [anchorEl, setAnchorEl] = useState(null);
16
+ const [showSnackbar, setShowSnackbar] = useState(false);
17
+ const [snackbarMessage, setSnackbarMessage] = useState('');
13
18
  const handleClick = (event) => {
14
19
  setAnchorEl(event.currentTarget);
15
20
  };
@@ -17,6 +22,16 @@ export default function CaseViewActionsMenu(props) {
17
22
  setAnchorEl(null);
18
23
  };
19
24
  const arMenuItems = [];
25
+ function showToast(message) {
26
+ setSnackbarMessage(message);
27
+ setShowSnackbar(true);
28
+ }
29
+ function handleSnackbarClose(event, reason) {
30
+ if (reason === 'clickaway') {
31
+ return;
32
+ }
33
+ setShowSnackbar(false);
34
+ }
20
35
  function _actionMenuActionsClick(data) {
21
36
  const actionsAPI = thePConn.getActionsApi();
22
37
  const openLocalAction = actionsAPI.openLocalAction.bind(actionsAPI);
@@ -33,6 +48,10 @@ export default function CaseViewActionsMenu(props) {
33
48
  const openProcessAction = actionsAPI.openProcessAction.bind(actionsAPI);
34
49
  openProcessAction(process.ID, {
35
50
  ...process
51
+ })
52
+ .then(() => { })
53
+ .catch(() => {
54
+ showToast(`${process.name} Submit failed!`);
36
55
  });
37
56
  handleClose();
38
57
  }
@@ -42,6 +61,6 @@ export default function CaseViewActionsMenu(props) {
42
61
  availableProcesses.forEach(process => {
43
62
  arMenuItems.push(_jsx(MenuItem, { onClick: () => _actionMenuProcessClick(process), children: localizedVal(process.name, '', localeKey) }, process.ID));
44
63
  });
45
- return (_jsxs(_Fragment, { children: [_jsx(Button, { "aria-controls": 'simple-menu', "aria-haspopup": 'true', onClick: handleClick, children: localizedVal('Actions...', localeCategory) }), _jsx(Menu, { id: 'simple-menu', anchorEl: anchorEl, keepMounted: true, open: Boolean(anchorEl), onClose: handleClose, children: arMenuItems })] }));
64
+ return (_jsxs(_Fragment, { children: [_jsx(Button, { "aria-controls": 'simple-menu', "aria-haspopup": 'true', onClick: handleClick, children: localizedVal('Actions...', localeCategory) }), _jsx(Menu, { id: 'simple-menu', anchorEl: anchorEl, keepMounted: true, open: Boolean(anchorEl), onClose: handleClose, children: arMenuItems }), _jsx(Snackbar, { open: showSnackbar, autoHideDuration: 3000, onClose: handleSnackbarClose, message: snackbarMessage, action: _jsx(IconButton, { size: 'small', "aria-label": 'close', color: 'inherit', onClick: handleSnackbarClose, children: _jsx(CloseIcon, { fontSize: 'small' }) }) })] }));
46
65
  }
47
66
  //# sourceMappingURL=CaseViewActionsMenu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CaseViewActionsMenu.js","sourceRoot":"","sources":["../../../../src/components/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,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UAAU,GAAG,QAAQ,CAAC,aAAa,EAAE,CAAC;QAC5C,MAAM,iBAAiB,GAAG,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxE,iBAAiB,CAAC,OAAO,CAAC,EAAE,EAAE;YAC5B,GAAG,OAAO;SACX,CAAC,CAAC;QACH,WAAW,EAAE,CAAC;IAChB,CAAC;IAED,gBAAgB,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;QAChC,WAAW,CAAC,IAAI,CACd,KAAC,QAAQ,IAAiB,OAAO,EAAE,GAAG,EAAE,CAAC,uBAAuB,CAAC,MAAM,CAAC,YACrE,YAAY,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,EAAE,SAAS,CAAC,IAD5B,MAAM,CAAC,EAAE,CAEb,CACZ,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,kBAAkB,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QACnC,WAAW,CAAC,IAAI,CACd,KAAC,QAAQ,IAAkB,OAAO,EAAE,GAAG,EAAE,CAAC,uBAAuB,CAAC,OAAO,CAAC,YACvE,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,EAAE,SAAS,CAAC,IAD7B,OAAO,CAAC,EAAE,CAEd,CACZ,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,CACL,8BACE,KAAC,MAAM,qBAAe,aAAa,mBAAe,MAAM,EAAC,OAAO,EAAE,WAAW,YAC1E,YAAY,CAAC,YAAY,EAAE,cAAc,CAAC,GACpC,EACT,KAAC,IAAI,IAAC,EAAE,EAAC,aAAa,EAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,QAAC,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,WAAW,YACjG,WAAW,GACP,IACN,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import React, { useState } from 'react';\nimport Button from '@material-ui/core/Button';\nimport Menu from '@material-ui/core/Menu';\nimport MenuItem from '@material-ui/core/MenuItem';\n\nimport { PConnProps } from '../../../types/PConnProps';\n\ninterface CaseViewActionsMenuProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n availableActions: any[];\n availableProcesses: any[];\n caseTypeID: string;\n caseTypeName: string;\n}\n\nexport default function CaseViewActionsMenu(props: CaseViewActionsMenuProps) {\n const { getPConnect, availableActions, availableProcesses, caseTypeID, caseTypeName } = props;\n const thePConn = getPConnect();\n\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'CaseView';\n const localeKey = `${caseTypeID}!CASE!${caseTypeName}`.toUpperCase();\n\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n const arMenuItems: any[] = [];\n\n function _actionMenuActionsClick(data) {\n const actionsAPI = thePConn.getActionsApi();\n const openLocalAction = actionsAPI.openLocalAction.bind(actionsAPI);\n\n openLocalAction(data.ID, {\n ...data,\n containerName: 'modal',\n type: 'express'\n });\n // after doing the action, close the menu...\n handleClose();\n }\n\n function _actionMenuProcessClick(process) {\n const actionsAPI = thePConn.getActionsApi();\n const openProcessAction = actionsAPI.openProcessAction.bind(actionsAPI);\n openProcessAction(process.ID, {\n ...process\n });\n handleClose();\n }\n\n availableActions.forEach(action => {\n arMenuItems.push(\n <MenuItem key={action.ID} onClick={() => _actionMenuActionsClick(action)}>\n {localizedVal(action.name, '', localeKey)}\n </MenuItem>\n );\n });\n\n availableProcesses.forEach(process => {\n arMenuItems.push(\n <MenuItem key={process.ID} onClick={() => _actionMenuProcessClick(process)}>\n {localizedVal(process.name, '', localeKey)}\n </MenuItem>\n );\n });\n\n return (\n <>\n <Button aria-controls='simple-menu' aria-haspopup='true' onClick={handleClick}>\n {localizedVal('Actions...', localeCategory)}\n </Button>\n <Menu id='simple-menu' anchorEl={anchorEl} keepMounted open={Boolean(anchorEl)} onClose={handleClose}>\n {arMenuItems}\n </Menu>\n </>\n );\n}\n"]}
1
+ {"version":3,"file":"CaseViewActionsMenu.js","sourceRoot":"","sources":["../../../../src/components/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAC1C,OAAO,QAAQ,MAAM,4BAA4B,CAAC;AAGlD,OAAO,QAAQ,MAAM,4BAA4B,CAAC;AAClD,OAAO,UAAU,MAAM,8BAA8B,CAAC;AACtD,OAAO,SAAS,MAAM,0BAA0B,CAAC;AAUjD,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAA+B;IACzE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;IAC9F,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,YAAY,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC,cAAc,CAAC;IAC3D,MAAM,cAAc,GAAG,UAAU,CAAC;IAClC,MAAM,SAAS,GAAG,GAAG,UAAU,SAAS,YAAY,EAAE,CAAC,WAAW,EAAE,CAAC;IAErE,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAqB,IAAI,CAAC,CAAC;IAEnE,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAQ,QAAQ,CAAC,EAAE,CAAC,CAAC;IAEhE,MAAM,WAAW,GAAG,CAAC,KAA0C,EAAE,EAAE;QACjE,WAAW,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IACnC,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE;QACv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AiB,OAAO,EAAE,GAAG,EAAE,CAAC,uBAAuB,CAAC,MAAM,CAAC,YACrE,YAAY,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,EAAE,SAAS,CAAC,IAD5B,MAAM,CAAC,EAAE,CAEb,CACZ,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,kBAAkB,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QACnC,WAAW,CAAC,IAAI,CACd,KAAC,QAAQ,IAAkB,OAAO,EAAE,GAAG,EAAE,CAAC,uBAAuB,CAAC,OAAO,CAAC,YACvE,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,EAAE,SAAS,CAAC,IAD7B,OAAO,CAAC,EAAE,CAEd,CACZ,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,CACL,8BACE,KAAC,MAAM,qBAAe,aAAa,mBAAe,MAAM,EAAC,OAAO,EAAE,WAAW,YAC1E,YAAY,CAAC,YAAY,EAAE,cAAc,CAAC,GACpC,EACT,KAAC,IAAI,IAAC,EAAE,EAAC,aAAa,EAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,QAAC,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,WAAW,YACjG,WAAW,GACP,EACP,KAAC,QAAQ,IACP,IAAI,EAAE,YAAY,EAClB,gBAAgB,EAAE,IAAI,EACtB,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,eAAe,EACxB,MAAM,EACJ,KAAC,UAAU,IAAC,IAAI,EAAC,OAAO,gBAAY,OAAO,EAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAE,mBAAmB,YACtF,KAAC,SAAS,IAAC,QAAQ,EAAC,OAAO,GAAG,GACnB,GAEf,IACD,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import React, { useState } from 'react';\nimport Button from '@material-ui/core/Button';\nimport Menu from '@material-ui/core/Menu';\nimport MenuItem from '@material-ui/core/MenuItem';\n\nimport { PConnProps } from '../../../types/PConnProps';\nimport Snackbar from '@material-ui/core/Snackbar';\nimport IconButton from '@material-ui/core/IconButton';\nimport CloseIcon from '@material-ui/icons/Close';\n\ninterface CaseViewActionsMenuProps extends PConnProps {\n // If any, enter additional props that only exist on this component\n availableActions: any[];\n availableProcesses: any[];\n caseTypeID: string;\n caseTypeName: string;\n}\n\nexport default function CaseViewActionsMenu(props: CaseViewActionsMenuProps) {\n const { getPConnect, availableActions, availableProcesses, caseTypeID, caseTypeName } = props;\n const thePConn = getPConnect();\n\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const localeCategory = 'CaseView';\n const localeKey = `${caseTypeID}!CASE!${caseTypeName}`.toUpperCase();\n\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);\n\n const [showSnackbar, setShowSnackbar] = useState(false);\n const [snackbarMessage, setSnackbarMessage]: any = useState('');\n\n const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(null);\n };\n\n const arMenuItems: any[] = [];\n\n function showToast(message: string) {\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 _actionMenuActionsClick(data) {\n const actionsAPI = thePConn.getActionsApi();\n const openLocalAction = actionsAPI.openLocalAction.bind(actionsAPI);\n\n openLocalAction(data.ID, {\n ...data,\n containerName: 'modal',\n type: 'express'\n });\n // after doing the action, close the menu...\n handleClose();\n }\n\n function _actionMenuProcessClick(process) {\n const actionsAPI = thePConn.getActionsApi();\n const openProcessAction = actionsAPI.openProcessAction.bind(actionsAPI);\n openProcessAction(process.ID, {\n ...process\n })\n .then(() => {})\n .catch(() => {\n showToast(`${process.name} Submit failed!`);\n });\n handleClose();\n }\n\n availableActions.forEach(action => {\n arMenuItems.push(\n <MenuItem key={action.ID} onClick={() => _actionMenuActionsClick(action)}>\n {localizedVal(action.name, '', localeKey)}\n </MenuItem>\n );\n });\n\n availableProcesses.forEach(process => {\n arMenuItems.push(\n <MenuItem key={process.ID} onClick={() => _actionMenuProcessClick(process)}>\n {localizedVal(process.name, '', localeKey)}\n </MenuItem>\n );\n });\n\n return (\n <>\n <Button aria-controls='simple-menu' aria-haspopup='true' onClick={handleClick}>\n {localizedVal('Actions...', localeCategory)}\n </Button>\n <Menu id='simple-menu' anchorEl={anchorEl} keepMounted open={Boolean(anchorEl)} onClose={handleClose}>\n {arMenuItems}\n </Menu>\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 </>\n );\n}\n"]}
@@ -2,19 +2,25 @@
2
2
 
3
3
  This release - **SDK-R v23.1.11** - is **only compatible with Pega Infinity 23**. This release is related to the [**release/23.1.11** branch of the React SDK repository](https://github.com/pegasystems/react-sdk/tree/release/23.1.11).
4
4
  <br>
5
- (If you currently are using the React SDK with Pega Infinity 8.8, update your SDK to
6
- the [SDK-R v8.8.20 - release/8.8.20 branch](https://github.com/pegasystems/react-sdk/tree/release/8.8.20).)
7
5
 
8
- The SDK-R v23.1.11 and v8.8.20 releases allow React SDK users to to take advantage of the latest
9
- [SDK enhancements and fixes noted in **What's New in the SDK?**](https://docs.pega.com/bundle/constellation-sdk/page/constellation-sdks/sdks/react-sdk-updates.html) including:
6
+ The SDK-R v23.1.11 release allow React SDK users to to take advantage of the latest [SDK enhancements and fixes noted in **What's New in the SDK?**](https://docs.pega.com/bundle/constellation-sdk/page/constellation-sdks/sdks/react-sdk-updates.html) including:
10
7
 
11
8
  * React version upgrade to 17
9
+ * Additional functionality including FieldGroup support, Multiple Attachement, Optional Process flows
10
+ * Added modal dialog edit view in table
11
+ * Enhanced security including token storage and item obfuscation support.
12
+ * Added Lint support to improve code quality and Prettier support for code formatting.
12
13
  * Bug fixes
13
- * Additional functionality including FieldGroup support.
14
+ * Full set of merged PRs can be found in the [react-sdk-components GitHub repo list of merged PRs](https://github.com/pegasystems/react-sdk-components/pulls?q=is%3Apr+is%3Amerged+base%3Amaster+). This release includes all PRs since (and including) #232.
14
15
 
15
- ### React SDK - Release Announcement - v23.1.10 (08 November 2023)
16
+ <br />
17
+ <hr />
16
18
 
17
- This release - **SDK-R v23.1.10** - is **only compatible with Pega Infinity 23**. This release is related to the [**main** branch of the React SDK repository](https://github.com/pegasystems/react-sdk/tree/main).
19
+ ### Previous Releases
20
+
21
+ #### React SDK - Release Announcement - v23.1.10 (08 November 2023)
22
+
23
+ This release - **SDK-R v23.1.10** - is **only compatible with Pega Infinity 23**. This release is related to the [**release/23.1.10** branch of the React SDK repository](https://github.com/pegasystems/react-sdk/tree/release/23.1.10).
18
24
  <br>
19
25
  (If you currently are using the React SDK with Pega Infinity 8.8, update your SDK to
20
26
  the [SDK-R v8.8.20 - release/8.8.20 branch](https://github.com/pegasystems/react-sdk/tree/release/8.8.20).)
@@ -32,8 +38,6 @@ For more information, see [Using type definitions - update link when published](
32
38
 
33
39
  <hr />
34
40
 
35
- ### Previous Releases
36
-
37
41
  #### **Release SDK-R-C 8.23.11 (10 August 2023)**
38
42
 
39
43
  * Many significant improvements to localization
@@ -114,7 +114,7 @@ import Attachment from "./components/widget/Attachment";
114
114
  import AutoComplete from "./components/field/AutoComplete";
115
115
  import Banner from "./components/designSystemExtension/Banner";
116
116
  import BannerPage from "./components/template/BannerPage";
117
- import CancelAlert from "./components/infra/Containers/ModalViewContainer/CancelAlert";
117
+ import CancelAlert from "./components/field/CancelAlert";
118
118
  import CaseHistory from "./components/widget/CaseHistory";
119
119
  import CaseSummary from "./components/template/CaseSummary";
120
120
  import CaseSummaryFields from "./components/designSystemExtension/CaseSummaryFields";
@@ -13,7 +13,7 @@ import Attachment from './components/widget/Attachment';
13
13
  import AutoComplete from './components/field/AutoComplete';
14
14
  import Banner from './components/designSystemExtension/Banner';
15
15
  import BannerPage from './components/template/BannerPage';
16
- import CancelAlert from './components/infra/Containers/ModalViewContainer/CancelAlert';
16
+ import CancelAlert from './components/field/CancelAlert';
17
17
  import CaseHistory from './components/widget/CaseHistory';
18
18
  import CaseSummary from './components/template/CaseSummary';
19
19
  import CaseSummaryFields from './components/designSystemExtension/CaseSummaryFields';
@@ -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;AAElE,OAAO,wBAAwB,MAAM,0DAA0D,CAAC;AAChG,OAAO,WAAW,MAAM,gDAAgD,CAAC;AACzE,OAAO,eAAe,MAAM,qCAAqC,CAAC;AAClE,OAAO,QAAQ,MAAM,yCAAyC,CAAC;AAC/D,OAAO,UAAU,MAAM,0CAA0C,CAAC;AAClE,OAAO,cAAc,MAAM,kDAAkD,CAAC;AAC9E,OAAO,UAAU,MAAM,gCAAgC,CAAC;AACxD,OAAO,YAAY,MAAM,iCAAiC,CAAC;AAC3D,OAAO,MAAM,MAAM,2CAA2C,CAAC;AAC/D,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAC1D,OAAO,WAAW,MAAM,8DAA8D,CAAC;AACvF,OAAO,WAAW,MAAM,iCAAiC,CAAC;AAC1D,OAAO,WAAW,MAAM,mCAAmC,CAAC;AAC5D,OAAO,iBAAiB,MAAM,sDAAsD,CAAC;AACrF,OAAO,QAAQ,MAAM,gCAAgC,CAAC;AACtD,OAAO,mBAAmB,MAAM,2CAA2C,CAAC;AAC5E,OAAO,QAAQ,MAAM,6BAA6B,CAAC;AACnD,OAAO,YAAY,MAAM,oCAAoC,CAAC;AAC9D,OAAO,QAAQ,MAAM,6BAA6B,CAAC;AACnD,OAAO,eAAe,MAAM,oCAAoC,CAAC;A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;IAChB,QAAQ;IACR,WAAW;IACX,KAAK;IACL,aAAa;IACb,UAAU;IACV,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,WAAW;IACX,aAAa;IACb,SAAS;IACT,KAAK;IACL,eAAe;IACf,mBAAmB;IACnB,OAAO;IACP,qBAAqB;IACrB,QAAQ;IACR,QAAQ;IACR,qBAAqB;IACrB,kBAAkB;IAClB,sBAAsB;IACtB,SAAS;IACT,UAAU;IACV,iBAAiB;IACjB,cAAc;IACd,cAAc;IACd,MAAM;IACN,SAAS;IACT,aAAa;IACb,YAAY;IACZ,QAAQ;IACR,UAAU;IACV,KAAK;IACL,eAAe;IACf,KAAK;IACL,WAAW;IACX,SAAS,EAAE,SAAS;IACpB,YAAY;IACZ,MAAM;IACN,QAAQ;IACR,cAAc;IACd,aAAa;IACb,UAAU;IACV,YAAY;IACZ,WAAW;IACX,iBAAiB;IACjB,iBAAiB;IACjB,uBAAuB;IACvB,MAAM;IACN,OAAO;IACP,WAAW;IACX,WAAW;IACX,QAAQ;IACR,WAAW;IACX,SAAS;IACT,IAAI;IACJ,IAAI,EAAE,IAAI;IACV,SAAS;IACT,aAAa;IACb,YAAY;IACZ,GAAG;IACH,aAAa;IACb,YAAY;IACZ,IAAI;IACJ,aAAa;IACb,UAAU;IACV,iBAAiB;IACjB,cAAc;IACd,cAAc;IACd,SAAS;IACT,cAAc;CACf,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';\n\nimport ActionButtonsForFileUtil from './components/widget/FileUtility/ActionButtonsForFileUtil';\nimport AlertBanner from './components/designSystemExtension/AlertBanner';\nimport AppAnnouncement from './components/widget/AppAnnouncement';\nimport AppShell from './components/template/AppShell/AppShell';\nimport Assignment from './components/infra/Assignment/Assignment';\nimport AssignmentCard from './components/infra/AssignmentCard/AssignmentCard';\nimport Attachment from './components/widget/Attachment';\nimport AutoComplete from './components/field/AutoComplete';\nimport Banner from './components/designSystemExtension/Banner';\nimport BannerPage from './components/template/BannerPage';\nimport CancelAlert from './components/infra/Containers/ModalViewContainer/CancelAlert';\nimport CaseHistory from './components/widget/CaseHistory';\nimport CaseSummary from './components/template/CaseSummary';\nimport CaseSummaryFields from './components/designSystemExtension/CaseSummaryFields';\nimport CaseView from './components/template/CaseView';\nimport CaseViewActionsMenu from './components/template/CaseViewActionsMenu';\nimport Checkbox from './components/field/Checkbox';\nimport Confirmation from './components/template/Confirmation';\nimport Currency from './components/field/Currency';\nimport DashboardFilter from './components/infra/DashboardFilter';\nimport DataReference from './components/template/DataReference';\nimport Date from './components/field/Date';\nimport DateTime from './components/field/DateTime';\nimport Decimal from './components/field/Decimal';\nimport DefaultForm from './components/template/DefaultForm';\nimport DeferLoad from './components/infra/DeferLoad';\nimport Details from './components/template/Details/Details';\nimport DetailsSubTabs from './components/template/Details/DetailsSubTabs';\nimport DetailsThreeColumn from './components/template/Details/DetailsThreeColumn';\nimport DetailsTwoColumn from './components/template/Details/DetailsTwoColumn/DetailsTwoColumn';\nimport Dropdown from './components/field/Dropdown';\nimport DynamicTabs from './components/template/Details/DynamicTabs';\nimport Email from './components/field/Email/Email';\nimport ErrorBoundary from './components/infra/ErrorBoundary';\nimport FieldGroup from './components/designSystemExtension/FieldGroup';\nimport FieldGroupList from './components/designSystemExtension/FieldGroupList';\nimport FieldGroupTemplate from './components/template/FieldGroupTemplate';\nimport FieldValueList from './components/designSystemExtension/FieldValueList';\nimport FileUtility from './components/widget/FileUtility/FileUtility';\nimport FlowContainer from './components/infra/Containers/FlowContainer';\nimport Followers from './components/widget/Followers';\nimport Group from './components/field/Group';\nimport InlineDashboard from './components/template/InlineDashboard';\nimport InlineDashboardPage from './components/template/InlineDashboardPage/InlineDashboardPage';\nimport Integer from './components/field/Integer';\nimport LeftAlignVerticalTabs from './components/infra/VerticalTabs/LeftAlignVerticalTabs';\nimport ListPage from './components/template/ListPage/ListPage';\nimport ListView from './components/template/ListView';\nimport ListViewActionButtons from './components/infra/Containers/ModalViewContainer/ListViewActionButtons';\nimport ModalViewContainer from './components/infra/Containers/ModalViewContainer/ModalViewContainer';\nimport MultiReferenceReadOnly from './components/template/MultiReferenceReadOnly';\nimport MultiStep from './components/infra/MultiStep';\nimport NarrowWide from './components/template/NarrowWide/NarrowWide';\nimport NarrowWideDetails from './components/template/NarrowWide/NarrowWideDetails';\nimport NarrowWideForm from './components/template/NarrowWide/NarrowWideForm';\nimport NarrowWidePage from './components/template/NarrowWide/NarrowWidePage';\nimport NavBar from './components/infra/NavBar';\nimport OneColumn from './components/template/OneColumn/OneColumn';\nimport OneColumnPage from './components/template/OneColumn/OneColumnPage';\nimport OneColumnTab from './components/template/OneColumn/OneColumnTab';\nimport Operator from './components/designSystemExtension/Operator';\nimport Percentage from './components/field/Percentage';\nimport Phone from './components/field/Phone/Phone';\nimport PromotedFilters from './components/template/PromotedFilters';\nimport Pulse from './components/designSystemExtension/Pulse';\nimport QuickCreate from './components/widget/QuickCreate';\nimport RadioButtons from './components/field/RadioButtons';\nimport Reference from './components/infra/Reference/Reference';\nimport Region from './components/infra/Region/Region';\nimport RichText from './components/field/RichText';\nimport RichTextEditor from './components/designSystemExtension/RichTextEditor';\nimport RootContainer from './components/infra/RootContainer/RootContainer';\nimport ScalarList from './components/field/ScalarList';\nimport SemanticLink from './components/field/SemanticLink';\nimport SimpleTable from './components/template/SimpleTable/SimpleTable';\nimport SimpleTableManual from './components/template/SimpleTable/SimpleTableManual';\nimport SimpleTableSelect from './components/template/SimpleTable/SimpleTableSelect';\nimport SingleReferenceReadOnly from './components/template/SingleReferenceReadOnly';\nimport Stages from './components/infra/Stages';\nimport SubTabs from './components/template/SubTabs';\nimport SummaryItem from './components/widget/SummaryItem';\nimport SummaryList from './components/widget/SummaryList';\nimport TextArea from './components/field/TextArea';\nimport TextContent from './components/field/TextContent';\nimport TextInput from './components/field/TextInput/TextInput';\nimport Time from './components/field/Time';\nimport ToDo from './components/widget/ToDo';\nimport TwoColumn from './components/template/TwoColumn/TwoColumn';\nimport TwoColumnPage from './components/template/TwoColumn/TwoColumnPage';\nimport TwoColumnTab from './components/template/TwoColumn/TwoColumnTab';\nimport URL from './components/field/URL';\nimport UserReference from './components/field/UserReference';\nimport VerticalTabs from './components/infra/VerticalTabs/VerticalTabs';\nimport View from './components/infra/View';\nimport ViewContainer from './components/infra/Containers/ViewContainer';\nimport WideNarrow from './components/template/WideNarrow/WideNarrow';\nimport WideNarrowDetails from './components/template/WideNarrow/WideNarrowDetails';\nimport WideNarrowForm from './components/template/WideNarrow/WideNarrowForm';\nimport WideNarrowPage from './components/template/WideNarrow/WideNarrowPage';\nimport WssNavBar from './components/template/WssNavBar/WssNavBar';\nimport WssQuickCreate from './components/designSystemExtension/WssQuickCreate';\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,\n ActionButtonsForFileUtil,\n AlertBanner,\n AppAnnouncement,\n AppShell,\n Assignment,\n AssignmentCard,\n Attachment,\n AutoComplete,\n Banner,\n BannerPage,\n CancelAlert,\n CaseHistory,\n CaseSummary,\n CaseSummaryFields,\n CaseView,\n CaseViewActionsMenu,\n Checkbox,\n Confirmation,\n Currency,\n DashboardFilter,\n DataReference,\n Date,\n DateTime,\n Decimal,\n DefaultForm,\n DeferLoad,\n Details,\n DetailsSubTabs,\n DetailsThreeColumn,\n DetailsTwoColumn,\n Dropdown,\n DynamicTabs,\n Email,\n ErrorBoundary,\n FieldGroup,\n FieldGroupList,\n FieldGroupTemplate,\n FieldValueList,\n FileUtility,\n FlowContainer,\n Followers,\n Group,\n InlineDashboard,\n InlineDashboardPage,\n Integer,\n LeftAlignVerticalTabs,\n ListPage,\n ListView,\n ListViewActionButtons,\n ModalViewContainer,\n MultiReferenceReadOnly,\n MultiStep,\n NarrowWide,\n NarrowWideDetails,\n NarrowWideForm,\n NarrowWidePage,\n NavBar,\n OneColumn,\n OneColumnPage,\n OneColumnTab,\n Operator,\n Percentage,\n Phone,\n PromotedFilters,\n Pulse,\n QuickCreate,\n reference: Reference, // See note about about non-standard capitalization\n RadioButtons,\n Region,\n RichText,\n RichTextEditor,\n RootContainer,\n ScalarList,\n SemanticLink,\n SimpleTable,\n SimpleTableManual,\n SimpleTableSelect,\n SingleReferenceReadOnly,\n Stages,\n SubTabs,\n SummaryItem,\n SummaryList,\n TextArea,\n TextContent,\n TextInput,\n Time,\n Todo: ToDo, // See note about about non-standard capitalization\n TwoColumn,\n TwoColumnPage,\n TwoColumnTab,\n URL,\n UserReference,\n VerticalTabs,\n View,\n ViewContainer,\n WideNarrow,\n WideNarrowDetails,\n WideNarrowForm,\n WideNarrowPage,\n WssNavBar,\n WssQuickCreate\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;AAElE,OAAO,wBAAwB,MAAM,0DAA0D,CAAC;AAChG,OAAO,WAAW,MAAM,gDAAgD,CAAC;AACzE,OAAO,eAAe,MAAM,qCAAqC,CAAC;AAClE,OAAO,QAAQ,MAAM,yCAAyC,CAAC;AAC/D,OAAO,UAAU,MAAM,0CAA0C,CAAC;AAClE,OAAO,cAAc,MAAM,kDAAkD,CAAC;AAC9E,OAAO,UAAU,MAAM,gCAAgC,CAAC;AACxD,OAAO,YAAY,MAAM,iCAAiC,CAAC;AAC3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Y;IACZ,IAAI;IACJ,aAAa;IACb,UAAU;IACV,iBAAiB;IACjB,cAAc;IACd,cAAc;IACd,SAAS;IACT,cAAc;CACf,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';\n\nimport ActionButtonsForFileUtil from './components/widget/FileUtility/ActionButtonsForFileUtil';\nimport AlertBanner from './components/designSystemExtension/AlertBanner';\nimport AppAnnouncement from './components/widget/AppAnnouncement';\nimport AppShell from './components/template/AppShell/AppShell';\nimport Assignment from './components/infra/Assignment/Assignment';\nimport AssignmentCard from './components/infra/AssignmentCard/AssignmentCard';\nimport Attachment from './components/widget/Attachment';\nimport AutoComplete from './components/field/AutoComplete';\nimport Banner from './components/designSystemExtension/Banner';\nimport BannerPage from './components/template/BannerPage';\nimport CancelAlert from './components/field/CancelAlert';\nimport CaseHistory from './components/widget/CaseHistory';\nimport CaseSummary from './components/template/CaseSummary';\nimport CaseSummaryFields from './components/designSystemExtension/CaseSummaryFields';\nimport CaseView from './components/template/CaseView';\nimport CaseViewActionsMenu from './components/template/CaseViewActionsMenu';\nimport Checkbox from './components/field/Checkbox';\nimport Confirmation from './components/template/Confirmation';\nimport Currency from './components/field/Currency';\nimport DashboardFilter from './components/infra/DashboardFilter';\nimport DataReference from './components/template/DataReference';\nimport Date from './components/field/Date';\nimport DateTime from './components/field/DateTime';\nimport Decimal from './components/field/Decimal';\nimport DefaultForm from './components/template/DefaultForm';\nimport DeferLoad from './components/infra/DeferLoad';\nimport Details from './components/template/Details/Details';\nimport DetailsSubTabs from './components/template/Details/DetailsSubTabs';\nimport DetailsThreeColumn from './components/template/Details/DetailsThreeColumn';\nimport DetailsTwoColumn from './components/template/Details/DetailsTwoColumn/DetailsTwoColumn';\nimport Dropdown from './components/field/Dropdown';\nimport DynamicTabs from './components/template/Details/DynamicTabs';\nimport Email from './components/field/Email/Email';\nimport ErrorBoundary from './components/infra/ErrorBoundary';\nimport FieldGroup from './components/designSystemExtension/FieldGroup';\nimport FieldGroupList from './components/designSystemExtension/FieldGroupList';\nimport FieldGroupTemplate from './components/template/FieldGroupTemplate';\nimport FieldValueList from './components/designSystemExtension/FieldValueList';\nimport FileUtility from './components/widget/FileUtility/FileUtility';\nimport FlowContainer from './components/infra/Containers/FlowContainer';\nimport Followers from './components/widget/Followers';\nimport Group from './components/field/Group';\nimport InlineDashboard from './components/template/InlineDashboard';\nimport InlineDashboardPage from './components/template/InlineDashboardPage/InlineDashboardPage';\nimport Integer from './components/field/Integer';\nimport LeftAlignVerticalTabs from './components/infra/VerticalTabs/LeftAlignVerticalTabs';\nimport ListPage from './components/template/ListPage/ListPage';\nimport ListView from './components/template/ListView';\nimport ListViewActionButtons from './components/infra/Containers/ModalViewContainer/ListViewActionButtons';\nimport ModalViewContainer from './components/infra/Containers/ModalViewContainer/ModalViewContainer';\nimport MultiReferenceReadOnly from './components/template/MultiReferenceReadOnly';\nimport MultiStep from './components/infra/MultiStep';\nimport NarrowWide from './components/template/NarrowWide/NarrowWide';\nimport NarrowWideDetails from './components/template/NarrowWide/NarrowWideDetails';\nimport NarrowWideForm from './components/template/NarrowWide/NarrowWideForm';\nimport NarrowWidePage from './components/template/NarrowWide/NarrowWidePage';\nimport NavBar from './components/infra/NavBar';\nimport OneColumn from './components/template/OneColumn/OneColumn';\nimport OneColumnPage from './components/template/OneColumn/OneColumnPage';\nimport OneColumnTab from './components/template/OneColumn/OneColumnTab';\nimport Operator from './components/designSystemExtension/Operator';\nimport Percentage from './components/field/Percentage';\nimport Phone from './components/field/Phone/Phone';\nimport PromotedFilters from './components/template/PromotedFilters';\nimport Pulse from './components/designSystemExtension/Pulse';\nimport QuickCreate from './components/widget/QuickCreate';\nimport RadioButtons from './components/field/RadioButtons';\nimport Reference from './components/infra/Reference/Reference';\nimport Region from './components/infra/Region/Region';\nimport RichText from './components/field/RichText';\nimport RichTextEditor from './components/designSystemExtension/RichTextEditor';\nimport RootContainer from './components/infra/RootContainer/RootContainer';\nimport ScalarList from './components/field/ScalarList';\nimport SemanticLink from './components/field/SemanticLink';\nimport SimpleTable from './components/template/SimpleTable/SimpleTable';\nimport SimpleTableManual from './components/template/SimpleTable/SimpleTableManual';\nimport SimpleTableSelect from './components/template/SimpleTable/SimpleTableSelect';\nimport SingleReferenceReadOnly from './components/template/SingleReferenceReadOnly';\nimport Stages from './components/infra/Stages';\nimport SubTabs from './components/template/SubTabs';\nimport SummaryItem from './components/widget/SummaryItem';\nimport SummaryList from './components/widget/SummaryList';\nimport TextArea from './components/field/TextArea';\nimport TextContent from './components/field/TextContent';\nimport TextInput from './components/field/TextInput/TextInput';\nimport Time from './components/field/Time';\nimport ToDo from './components/widget/ToDo';\nimport TwoColumn from './components/template/TwoColumn/TwoColumn';\nimport TwoColumnPage from './components/template/TwoColumn/TwoColumnPage';\nimport TwoColumnTab from './components/template/TwoColumn/TwoColumnTab';\nimport URL from './components/field/URL';\nimport UserReference from './components/field/UserReference';\nimport VerticalTabs from './components/infra/VerticalTabs/VerticalTabs';\nimport View from './components/infra/View';\nimport ViewContainer from './components/infra/Containers/ViewContainer';\nimport WideNarrow from './components/template/WideNarrow/WideNarrow';\nimport WideNarrowDetails from './components/template/WideNarrow/WideNarrowDetails';\nimport WideNarrowForm from './components/template/WideNarrow/WideNarrowForm';\nimport WideNarrowPage from './components/template/WideNarrow/WideNarrowPage';\nimport WssNavBar from './components/template/WssNavBar/WssNavBar';\nimport WssQuickCreate from './components/designSystemExtension/WssQuickCreate';\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,\n ActionButtonsForFileUtil,\n AlertBanner,\n AppAnnouncement,\n AppShell,\n Assignment,\n AssignmentCard,\n Attachment,\n AutoComplete,\n Banner,\n BannerPage,\n CancelAlert,\n CaseHistory,\n CaseSummary,\n CaseSummaryFields,\n CaseView,\n CaseViewActionsMenu,\n Checkbox,\n Confirmation,\n Currency,\n DashboardFilter,\n DataReference,\n Date,\n DateTime,\n Decimal,\n DefaultForm,\n DeferLoad,\n Details,\n DetailsSubTabs,\n DetailsThreeColumn,\n DetailsTwoColumn,\n Dropdown,\n DynamicTabs,\n Email,\n ErrorBoundary,\n FieldGroup,\n FieldGroupList,\n FieldGroupTemplate,\n FieldValueList,\n FileUtility,\n FlowContainer,\n Followers,\n Group,\n InlineDashboard,\n InlineDashboardPage,\n Integer,\n LeftAlignVerticalTabs,\n ListPage,\n ListView,\n ListViewActionButtons,\n ModalViewContainer,\n MultiReferenceReadOnly,\n MultiStep,\n NarrowWide,\n NarrowWideDetails,\n NarrowWideForm,\n NarrowWidePage,\n NavBar,\n OneColumn,\n OneColumnPage,\n OneColumnTab,\n Operator,\n Percentage,\n Phone,\n PromotedFilters,\n Pulse,\n QuickCreate,\n reference: Reference, // See note about about non-standard capitalization\n RadioButtons,\n Region,\n RichText,\n RichTextEditor,\n RootContainer,\n ScalarList,\n SemanticLink,\n SimpleTable,\n SimpleTableManual,\n SimpleTableSelect,\n SingleReferenceReadOnly,\n Stages,\n SubTabs,\n SummaryItem,\n SummaryList,\n TextArea,\n TextContent,\n TextInput,\n Time,\n Todo: ToDo, // See note about about non-standard capitalization\n TwoColumn,\n TwoColumnPage,\n TwoColumnTab,\n URL,\n UserReference,\n VerticalTabs,\n View,\n ViewContainer,\n WideNarrow,\n WideNarrowDetails,\n WideNarrowForm,\n WideNarrowPage,\n WssNavBar,\n WssQuickCreate\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.29",
3
+ "version": "0.23.31",
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": [
@@ -1 +0,0 @@
1
- {"version":3,"file":"CancelAlert.d.ts","sourceRoot":"","sources":["../../../../../../src/components/infra/Containers/ModalViewContainer/CancelAlert/CancelAlert.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,mBAAmB,CAAC;AAE3B,UAAU,gBAAiB,SAAQ,eAAe;IAEhD,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,sBAAsB,EAAE,GAAG,CAAC;IAC5B,OAAO,EAAE,QAAQ,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAK,EAAE,gBAAgB,eAkI1D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CancelAlert.js","sourceRoot":"","sources":["../../../../../../src/components/infra/Containers/ModalViewContainer/CancelAlert/CancelAlert.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,SAAS,MAAM,0BAA0B,CAAC;AAGjD,OAAO,mBAAmB,CAAC;AAa3B,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,KAAuB;IACzD,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,sBAAsB,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IACrI,MAAM,UAAU,GAAG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AAI,IAAC,IAAI,kBAAE,UAAU,GAAQ,EAC9B,KAAC,IAAI,IAAC,IAAI,kBAAE,WAAW,GAAQ,IAC1B,GACH,IACF,GACF,EACN,KAAC,QAAQ,IACP,IAAI,EAAE,YAAY,EAClB,gBAAgB,EAAE,IAAI,EACtB,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,eAAe,EACxB,MAAM,EACJ,KAAC,UAAU,IAAC,IAAI,EAAC,OAAO,gBAAY,OAAO,EAAC,KAAK,EAAC,SAAS,EAAC,OAAO,EAAE,mBAAmB,YACtF,KAAC,SAAS,IAAC,QAAQ,EAAC,OAAO,GAAG,GACnB,GAEf,IACD,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import React, { useState } from 'react';\nimport { Button, Grid, IconButton, Snackbar } from '@material-ui/core';\nimport CloseIcon from '@material-ui/icons/Close';\n\nimport { PConnFieldProps } from '../../../../../types/PConnProps';\nimport './CancelAlert.css';\n\ninterface CancelAlertProps extends PConnFieldProps {\n // If any, enter additional props that only exist on CancelAlert here\n heading: string;\n content: string;\n itemKey: string;\n hideDelete: boolean;\n isDataObject: boolean;\n skipReleaseLockRequest: any;\n dismiss: Function;\n}\n\nexport default function CancelAlert(props: CancelAlertProps) {\n const { heading, content, getPConnect, itemKey: containerItemID, hideDelete, isDataObject, skipReleaseLockRequest, dismiss } = props;\n const actionsAPI = getPConnect().getActionsApi();\n const containerManagerAPI = getPConnect().getContainerManager();\n const isLocalAction = getPConnect().getValue(PCore.getConstants().CASE_INFO.IS_LOCAL_ACTION);\n const isBulkAction = getPConnect()?.options?.isBulkAction;\n const localizedVal = PCore.getLocaleUtils().getLocaleValue;\n const broadCastUtils: any = PCore.getCoexistenceManager().getBroadcastUtils();\n const isReverseCoexistence = broadCastUtils.isReverseCoexistenceCaseLoaded();\n const localeCategory = 'ModalContainer';\n const btnIds = {\n SAVE_AND_CLOSE: 'saveAndClose',\n CONTINUE_WORKING: 'continueWorking',\n DELETE: 'delete'\n };\n\n const [buttonsState, setButtonsState] = useState({\n [btnIds.SAVE_AND_CLOSE]: false,\n [btnIds.DELETE]: false\n });\n\n const [showSnackbar, setShowSnackbar] = useState(false);\n const [snackbarMessage, setSnackbarMessage] = useState('');\n\n function disableButton(id) {\n setButtonsState(prevState => ({\n ...prevState,\n [id]: true\n }));\n }\n\n function enableButton(id) {\n setButtonsState(prevState => ({\n ...prevState,\n [id]: false\n }));\n }\n\n function cancelHandler() {\n if (isReverseCoexistence) {\n dismiss(true);\n // @ts-ignore - An argument for 'payload' was not provided.\n PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.REVERSE_COEXISTENCE_EVENTS.HANDLE_DISCARD);\n } else if (!isDataObject && !isLocalAction && !isBulkAction) {\n disableButton(btnIds.DELETE);\n actionsAPI\n .deleteCaseInCreateStage(containerItemID, hideDelete)\n .then(() => {\n // @ts-ignore - An argument for 'payload' was not provided.\n PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.EVENT_CANCEL);\n })\n .catch(() => {\n setSnackbarMessage(localizedVal('Delete failed.', localeCategory));\n setShowSnackbar(true);\n })\n .finally(() => {\n enableButton(btnIds.DELETE);\n dismiss(true);\n });\n } else if (isLocalAction) {\n dismiss(true);\n actionsAPI.cancelAssignment(containerItemID);\n } else if (isBulkAction) {\n dismiss(true);\n actionsAPI.cancelBulkAction(containerItemID);\n } else {\n dismiss(true);\n containerManagerAPI.removeContainerItem({ containerItemID, skipReleaseLockRequest });\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 const leftButton = (\n <Button\n name={btnIds.CONTINUE_WORKING}\n variant='contained'\n color='secondary'\n onClick={() => {\n dismiss();\n if (isReverseCoexistence) {\n broadCastUtils.setCallBackFunction(null);\n broadCastUtils.setIsDirtyDialogActive(false);\n }\n }}\n >\n {localizedVal('Go back', localeCategory)}\n </Button>\n );\n\n const rightButton = (\n <Button name={btnIds.DELETE} variant='contained' color='primary' disabled={buttonsState[btnIds.DELETE]} onClick={cancelHandler}>\n {localizedVal('Discard', localeCategory)}\n </Button>\n );\n\n return (\n <>\n <div className='cancel-alert-background'>\n <div className='cancel-alert-top'>\n <h3>{localizedVal(heading, localeCategory)}</h3>\n <div>\n <p>{localizedVal(content, localeCategory)}</p>\n </div>\n <div className='action-controls'>\n <Grid container spacing={4} justifyContent='space-between'>\n <Grid item>{leftButton}</Grid>\n <Grid item>{rightButton}</Grid>\n </Grid>\n </div>\n </div>\n </div>\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 </>\n );\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/infra/Containers/ModalViewContainer/CancelAlert/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/infra/Containers/ModalViewContainer/CancelAlert/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC","sourcesContent":["export { default } from './CancelAlert';\n"]}