@pega/react-sdk-overrides 23.1.12 → 24.2.10

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 (99) hide show
  1. package/lib/designSystemExtension/AlertBanner/AlertBanner.tsx +1 -1
  2. package/lib/designSystemExtension/Banner/Banner.tsx +1 -1
  3. package/lib/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  4. package/lib/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +13 -4
  5. package/lib/designSystemExtension/DetailsFields/DetailsFields.tsx +4 -4
  6. package/lib/designSystemExtension/FieldGroup/FieldGroup.tsx +4 -4
  7. package/lib/designSystemExtension/FieldGroupList/FieldGroupList.tsx +4 -4
  8. package/lib/designSystemExtension/FieldValueList/FieldValueList.tsx +5 -5
  9. package/lib/designSystemExtension/Operator/Operator.tsx +6 -5
  10. package/lib/designSystemExtension/Pulse/Pulse.tsx +2 -2
  11. package/lib/designSystemExtension/RichTextEditor/RichTextEditor.tsx +3 -2
  12. package/lib/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx +1 -1
  13. package/lib/field/AutoComplete/AutoComplete.tsx +4 -4
  14. package/lib/field/CancelAlert/CancelAlert.tsx +5 -3
  15. package/lib/field/Checkbox/Checkbox.tsx +4 -4
  16. package/lib/field/Currency/Currency.tsx +37 -27
  17. package/lib/field/Date/Date.tsx +23 -42
  18. package/lib/field/DateTime/DateTime.tsx +29 -34
  19. package/lib/field/Decimal/Decimal.tsx +34 -20
  20. package/lib/field/Dropdown/Dropdown.tsx +3 -3
  21. package/lib/field/Email/Email.tsx +29 -8
  22. package/lib/field/Group/Group.tsx +2 -2
  23. package/lib/field/Integer/Integer.tsx +22 -8
  24. package/lib/field/{MultiSelect → Multiselect}/Multiselect.tsx +9 -15
  25. package/lib/field/Percentage/Percentage.tsx +34 -19
  26. package/lib/field/Phone/Phone.tsx +22 -12
  27. package/lib/field/Phone/config-ext.json +8 -0
  28. package/lib/field/RadioButtons/RadioButtons.tsx +3 -3
  29. package/lib/field/RichText/RichText.tsx +1 -1
  30. package/lib/field/RichText/config-ext.json +10 -0
  31. package/lib/field/ScalarList/ScalarList.tsx +4 -2
  32. package/lib/field/SemanticLink/SemanticLink.tsx +4 -4
  33. package/lib/field/TextArea/TextArea.tsx +26 -8
  34. package/lib/field/TextContent/TextContent.tsx +1 -1
  35. package/lib/field/TextInput/TextInput.tsx +2 -2
  36. package/lib/field/Time/Time.tsx +27 -20
  37. package/lib/field/URL/URL.tsx +26 -7
  38. package/lib/field/UserReference/UserReference.tsx +12 -2
  39. package/lib/helpers/common-utils.ts +1 -5
  40. package/lib/helpers/field-group-utils.ts +2 -2
  41. package/lib/helpers/simpleTableHelpers.ts +1 -1
  42. package/lib/infra/ActionButtons/ActionButtons.tsx +3 -3
  43. package/lib/infra/Assignment/Assignment.tsx +38 -7
  44. package/lib/infra/Containers/FlowContainer/FlowContainer.tsx +16 -13
  45. package/lib/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.tsx +7 -4
  46. package/lib/infra/Containers/ModalViewContainer/ModalViewContainer.tsx +8 -8
  47. package/lib/infra/Containers/ViewContainer/ViewContainer.tsx +1 -1
  48. package/lib/infra/DashboardFilter/DashboardFilter.tsx +2 -2
  49. package/lib/infra/DashboardFilter/filterUtils.tsx +2 -1
  50. package/lib/infra/DeferLoad/DeferLoad.tsx +8 -4
  51. package/lib/infra/MultiStep/MultiStep.tsx +17 -9
  52. package/lib/infra/NavBar/NavBar.css +1 -0
  53. package/lib/infra/NavBar/NavBar.tsx +27 -19
  54. package/lib/infra/RootContainer/RootContainer.tsx +5 -6
  55. package/lib/infra/Stages/Stages.tsx +4 -4
  56. package/lib/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.tsx +4 -3
  57. package/lib/infra/VerticalTabs/VerticalTabs/VerticalTabs.tsx +2 -2
  58. package/lib/infra/View/View.tsx +37 -3
  59. package/lib/template/AppShell/AppShell.tsx +55 -5
  60. package/lib/template/BannerPage/config-ext.json +9 -0
  61. package/lib/template/CaseView/CaseView.tsx +7 -6
  62. package/lib/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx +8 -8
  63. package/lib/template/Confirmation/Confirmation.tsx +2 -1
  64. package/lib/template/DataReference/DataReference.tsx +3 -3
  65. package/lib/template/DefaultForm/utils/index.ts +2 -7
  66. package/lib/template/Details/Details/Details.tsx +3 -3
  67. package/lib/template/Details/DetailsSubTabs/DetailsSubTabs.tsx +3 -3
  68. package/lib/template/Details/DetailsThreeColumn/DetailsThreeColumn.tsx +3 -3
  69. package/lib/template/Details/DetailsTwoColumn/DetailsTwoColumn.tsx +3 -3
  70. package/lib/template/Details/DynamicTabs/DynamicTabs.tsx +4 -3
  71. package/lib/template/FieldGroupTemplate/FieldGroupTemplate.tsx +12 -3
  72. package/lib/template/InlineDashboard/InlineDashboard.tsx +2 -2
  73. package/lib/template/InlineDashboardPage/config-ext.json +9 -0
  74. package/lib/template/ListView/ListView.tsx +88 -91
  75. package/lib/template/ListView/utils.ts +1 -1
  76. package/lib/template/MultiReferenceReadOnly/MultiReferenceReadOnly.tsx +1 -1
  77. package/lib/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.tsx +3 -3
  78. package/lib/template/OneColumn/OneColumn/OneColumn.tsx +2 -2
  79. package/lib/template/PromotedFilters/PromotedFilters.tsx +2 -1
  80. package/lib/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx +46 -30
  81. package/lib/template/SingleReferenceReadOnly/SingleReferenceReadOnly.tsx +1 -1
  82. package/lib/template/SubTabs/SubTabs.tsx +2 -2
  83. package/lib/template/TwoColumn/TwoColumn/TwoColumn.tsx +2 -2
  84. package/lib/template/TwoColumn/TwoColumnTab/TwoColumnTab.tsx +2 -2
  85. package/lib/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.tsx +3 -3
  86. package/lib/template/WssNavBar/WssNavBar.tsx +9 -9
  87. package/lib/widget/AppAnnouncement/AppAnnouncement.tsx +2 -2
  88. package/lib/widget/Attachment/Attachment.tsx +8 -4
  89. package/lib/widget/CaseHistory/CaseHistory.tsx +12 -10
  90. package/lib/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx +1 -1
  91. package/lib/widget/FileUtility/FileUtility/FileUtility.tsx +5 -4
  92. package/lib/widget/Followers/Followers.tsx +2 -2
  93. package/lib/widget/QuickCreate/QuickCreate.tsx +1 -0
  94. package/lib/widget/QuickCreate/config-ext.json +9 -0
  95. package/lib/widget/SummaryItem/SummaryItem.tsx +3 -2
  96. package/lib/widget/ToDo/ToDo.tsx +91 -21
  97. package/package.json +1 -1
  98. /package/lib/field/{MultiSelect → Multiselect}/index.tsx +0 -0
  99. /package/lib/field/{MultiSelect → Multiselect}/utils.ts +0 -0
@@ -1,28 +1,28 @@
1
1
  /* eslint-disable no-nested-ternary */
2
2
  import React, { PropsWithChildren, useEffect, useLayoutEffect, useRef, useState } from 'react';
3
- import Table from '@material-ui/core/Table';
4
- import TableBody from '@material-ui/core/TableBody';
5
- import TableCell from '@material-ui/core/TableCell';
6
- import TableContainer from '@material-ui/core/TableContainer';
7
- import TableHead from '@material-ui/core/TableHead';
8
- import TableRow from '@material-ui/core/TableRow';
9
- import Paper from '@material-ui/core/Paper';
10
- import { makeStyles } from '@material-ui/core/styles';
11
- import Link from '@material-ui/core/Link';
3
+ import Table from '@mui/material/Table';
4
+ import TableBody from '@mui/material/TableBody';
5
+ import TableCell from '@mui/material/TableCell';
6
+ import TableContainer from '@mui/material/TableContainer';
7
+ import TableHead from '@mui/material/TableHead';
8
+ import TableRow from '@mui/material/TableRow';
9
+ import Paper from '@mui/material/Paper';
10
+ import makeStyles from '@mui/styles/makeStyles';
11
+ import Link from '@mui/material/Link';
12
12
  import { createElement } from 'react';
13
- import TableSortLabel from '@material-ui/core/TableSortLabel';
14
- import MoreIcon from '@material-ui/icons/MoreVert';
15
- import Menu from '@material-ui/core/Menu';
16
- import MenuItem from '@material-ui/core/MenuItem';
17
- import FilterListIcon from '@material-ui/icons/FilterList';
18
- import SubjectIcon from '@material-ui/icons/Subject';
19
- import Dialog from '@material-ui/core/Dialog';
20
- import DialogActions from '@material-ui/core/DialogActions';
21
- import DialogContent from '@material-ui/core/DialogContent';
22
- import DialogTitle from '@material-ui/core/DialogTitle';
23
- import Select from '@material-ui/core/Select';
24
- import Button from '@material-ui/core/Button';
25
- import TextField from '@material-ui/core/TextField';
13
+ import TableSortLabel from '@mui/material/TableSortLabel';
14
+ import MoreIcon from '@mui/icons-material/MoreVert';
15
+ import Menu from '@mui/material/Menu';
16
+ import MenuItem from '@mui/material/MenuItem';
17
+ import FilterListIcon from '@mui/icons-material/FilterList';
18
+ import SubjectIcon from '@mui/icons-material/Subject';
19
+ import Dialog from '@mui/material/Dialog';
20
+ import DialogActions from '@mui/material/DialogActions';
21
+ import DialogContent from '@mui/material/DialogContent';
22
+ import DialogTitle from '@mui/material/DialogTitle';
23
+ import Select from '@mui/material/Select';
24
+ import Button from '@mui/material/Button';
25
+ import TextField from '@mui/material/TextField';
26
26
 
27
27
  import createPConnectComponent from '@pega/react-sdk-components/lib/bridge/react_pconnect';
28
28
  import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
@@ -201,6 +201,7 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
201
201
  if (allowEditingInModal) {
202
202
  getPConnect()
203
203
  .getListActions()
204
+ // @ts-ignore - An argument for 'uniqueField' was not provided.
204
205
  .initDefaultPageInstructions(
205
206
  getPConnect().getReferenceList(),
206
207
  fieldDefs.filter(item => item.name).map(item => item.name)
@@ -257,11 +258,16 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
257
258
  function generateRowsData() {
258
259
  // if referenceList is empty and dataPageName property value exists then make a datapage fetch call and get the list of data.
259
260
  if (!referenceList.length && dataPageName) {
260
- getDataPage(dataPageName, parameters, context).then(listData => {
261
- const data = formatRowsData(listData);
262
- myRows = data;
263
- setRowData(data);
264
- });
261
+ getDataPage(dataPageName, parameters, context)
262
+ .then(listData => {
263
+ const data = formatRowsData(listData);
264
+ myRows = data;
265
+ setRowData(data);
266
+ })
267
+ .catch(e => {
268
+ // eslint-disable-next-line no-console
269
+ console.log(e);
270
+ });
265
271
  } else {
266
272
  // The referenceList prop has the JSON data for each row to be displayed
267
273
  // in the table. So, iterate over referenceList to create the dataRows that
@@ -302,6 +308,7 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
302
308
  .getActionsApi()
303
309
  .openEmbeddedDataModal(defaultView, pConn, referenceListStr, referenceList.length, PCore.getConstants().RESOURCE_STATUS.CREATE);
304
310
  } else {
311
+ // @ts-ignore - An argument for 'pageRef' was not provided.
305
312
  pConn.getListActions().insert({ classID: contextClass }, referenceList.length);
306
313
  }
307
314
 
@@ -327,10 +334,12 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
327
334
 
328
335
  const deleteRecord = () => {
329
336
  setEditAnchorEl(null);
337
+ // @ts-ignore - An argument for 'pageRef' was not provided.
330
338
  pConn.getListActions().deleteEntry(selectedRowIndex.current);
331
339
  };
332
340
 
333
341
  const deleteRecordFromInlineEditable = (index: number) => {
342
+ // @ts-ignore - An argument for 'pageRef' was not provided.
334
343
  pConn.getListActions().deleteEntry(index);
335
344
  };
336
345
 
@@ -374,6 +383,9 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
374
383
  };
375
384
 
376
385
  function descendingComparator<T>(a: T, b: T, orderedBy: keyof T) {
386
+ if (!orderedBy || (!a[orderedBy] && !b[orderedBy])) {
387
+ return 0;
388
+ }
377
389
  if (!b[orderedBy] || b[orderedBy] < a[orderedBy]) {
378
390
  return -1;
379
391
  }
@@ -694,7 +706,7 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
694
706
  </TableContainer>
695
707
  {showAddRowButton && (
696
708
  <div style={{ fontSize: '1rem' }}>
697
- <Link style={{ cursor: 'pointer' }} onClick={addRecord}>
709
+ <Link style={{ cursor: 'pointer' }} onClick={addRecord} underline='hover'>
698
710
  + Add
699
711
  </Link>
700
712
  </div>
@@ -712,7 +724,7 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
712
724
  <DialogContent>
713
725
  {containsDateOrTime ? (
714
726
  <>
715
- <Select value={displayDialogDateFilter} onChange={_dialogDateFilter} fullWidth>
727
+ <Select variant='standard' value={displayDialogDateFilter} onChange={_dialogDateFilter} fullWidth>
716
728
  <MenuItem value='notequal'>is not equal to</MenuItem>
717
729
  <MenuItem value='equal'>is equal to</MenuItem>
718
730
  <MenuItem value='after'>after</MenuItem>
@@ -722,6 +734,7 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
722
734
  </Select>
723
735
  {filterType === 'Date' && (
724
736
  <TextField
737
+ variant='standard'
725
738
  autoFocus
726
739
  margin='dense'
727
740
  id='containsFilter'
@@ -733,6 +746,7 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
733
746
  )}
734
747
  {filterType === 'DateTime' && (
735
748
  <TextField
749
+ variant='standard'
736
750
  autoFocus
737
751
  margin='dense'
738
752
  id='containsFilter'
@@ -744,6 +758,7 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
744
758
  )}
745
759
  {filterType === 'Time' && (
746
760
  <TextField
761
+ variant='standard'
747
762
  autoFocus
748
763
  margin='dense'
749
764
  id='containsFilter'
@@ -756,12 +771,13 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
756
771
  </>
757
772
  ) : (
758
773
  <>
759
- <Select id='filter' fullWidth onChange={_dialogContainsFilter} value={displayDialogContainsFilter}>
774
+ <Select variant='standard' id='filter' fullWidth onChange={_dialogContainsFilter} value={displayDialogContainsFilter}>
760
775
  <MenuItem value='contains'>Contains</MenuItem>
761
776
  <MenuItem value='equals'>Equals</MenuItem>
762
777
  <MenuItem value='startswith'>Starts with</MenuItem>
763
778
  </Select>
764
779
  <TextField
780
+ variant='standard'
765
781
  autoFocus
766
782
  margin='dense'
767
783
  id='containsFilter'
@@ -55,7 +55,7 @@ export default function SingleReferenceReadOnly(props: SingleReferenceReadOnlyPr
55
55
  }
56
56
  },
57
57
  '',
58
- '',
58
+ 0,
59
59
  {}
60
60
  ); // 2nd, 3rd, and 4th args empty string/object/null until typedef marked correctly as optional
61
61
 
@@ -1,6 +1,6 @@
1
1
  import { Children, PropsWithChildren, useEffect, useState } from 'react';
2
- import { Tab, Tabs } from '@material-ui/core';
3
- import { TabContext, TabPanel } from '@material-ui/lab';
2
+ import { Tab, Tabs } from '@mui/material';
3
+ import { TabContext, TabPanel } from '@mui/lab';
4
4
 
5
5
  import { getTransientTabs, getVisibleTabs, tabClick } from './tabUtils';
6
6
  import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
@@ -1,6 +1,6 @@
1
1
  import { PropsWithChildren, ReactElement } from 'react';
2
- import { Grid, GridSize } from '@material-ui/core';
3
- import { makeStyles } from '@material-ui/core/styles';
2
+ import { Grid, GridSize } from '@mui/material';
3
+ import makeStyles from '@mui/styles/makeStyles';
4
4
  import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
5
5
 
6
6
  interface TwoColumnProps extends PConnProps {
@@ -1,6 +1,6 @@
1
1
  import { PropsWithChildren, ReactElement } from 'react';
2
- import { Grid, GridSize } from '@material-ui/core';
3
- import { makeStyles } from '@material-ui/core/styles';
2
+ import { Grid, GridSize } from '@mui/material';
3
+ import makeStyles from '@mui/styles/makeStyles';
4
4
  import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
5
5
 
6
6
  interface TwoColumnTabProps extends PConnProps {
@@ -1,5 +1,5 @@
1
1
  import { createElement } from 'react';
2
- import Grid, { GridSize } from '@material-ui/core/Grid';
2
+ import Grid, { GridSize } from '@mui/material/Grid';
3
3
 
4
4
  import createPConnectComponent from '@pega/react-sdk-components/lib/bridge/react_pconnect';
5
5
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
@@ -26,7 +26,7 @@ export default function WideNarrowDetails(props: WideNarrowDetailsProps) {
26
26
 
27
27
  // Set display mode prop and re-create the children so this part of the dom tree renders
28
28
  // in a readonly (display) mode instead of a editable
29
- getPConnect().setInheritedProp('displayMode', 'LABELS_LEFT');
29
+ getPConnect().setInheritedProp('displayMode', 'DISPLAY_ONLY');
30
30
  getPConnect().setInheritedProp('readOnly', true);
31
31
  const children = (getPConnect().getChildren() as any[])?.map((configObject, index) => {
32
32
  let theConfigObject: object = configObject;
@@ -54,7 +54,7 @@ export default function WideNarrowDetails(props: WideNarrowDetailsProps) {
54
54
  field.config.displayAsStatus = true;
55
55
  }
56
56
 
57
- return getPConnect().createComponent(field, '', '', {}); // 2nd, 3rd, and 4th args empty string/object/null until typedef marked correctly as optional
57
+ return getPConnect().createComponent(field, '', 0, {}); // 2nd, 3rd, and 4th args empty string/object/null until typedef marked correctly as optional
58
58
  });
59
59
  }
60
60
 
@@ -1,12 +1,12 @@
1
1
  import React, { useState } from 'react';
2
- import { makeStyles } from '@material-ui/core/styles';
3
- import AppBar from '@material-ui/core/AppBar';
4
- import Box from '@material-ui/core/Box';
5
- import Toolbar from '@material-ui/core/Toolbar';
6
- import Container from '@material-ui/core/Container';
7
- import { IconButton, Menu, MenuItem, Typography, Button } from '@material-ui/core';
8
- import Avatar from '@material-ui/core/Avatar';
9
- import MenuIcon from '@material-ui/icons/Menu';
2
+ import makeStyles from '@mui/styles/makeStyles';
3
+ import AppBar from '@mui/material/AppBar';
4
+ import Box from '@mui/material/Box';
5
+ import Toolbar from '@mui/material/Toolbar';
6
+ import Container from '@mui/material/Container';
7
+ import { IconButton, Menu, MenuItem, Typography, Button } from '@mui/material';
8
+ import Avatar from '@mui/material/Avatar';
9
+ import MenuIcon from '@mui/icons-material/Menu';
10
10
  import { logout } from '@pega/auth/lib/sdk-auth-manager';
11
11
  import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
12
12
  import './WssNavBar.css';
@@ -128,7 +128,7 @@ export default function WssNavBar(props: WssNavBarProps) {
128
128
  {position === 'inline' && <>{navLinksContent}</>}
129
129
 
130
130
  <Box sx={{ flexGrow: 0 }}>
131
- <IconButton onClick={handleOpenUserMenu}>
131
+ <IconButton onClick={handleOpenUserMenu} size='large'>
132
132
  <Avatar>{operator.currentUserInitials}</Avatar>
133
133
  </IconButton>
134
134
  <Menu
@@ -1,5 +1,5 @@
1
- import { Card, CardContent, CardHeader, Typography, CardActions, Button } from '@material-ui/core';
2
- import { makeStyles } from '@material-ui/core/styles';
1
+ import { Card, CardContent, CardHeader, Typography, CardActions, Button } from '@mui/material';
2
+ import makeStyles from '@mui/styles/makeStyles';
3
3
  import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
4
4
 
5
5
  interface AppAnnouncementProps extends PConnProps {
@@ -2,13 +2,12 @@
2
2
  /* eslint-disable react/no-array-index-key */
3
3
  /* eslint-disable no-nested-ternary */
4
4
  import { useState, useEffect, useCallback } from 'react';
5
- import { CircularProgress, IconButton, Menu, MenuItem, Button } from '@material-ui/core';
6
- import MoreVertIcon from '@material-ui/icons/MoreVert';
5
+ import { CircularProgress, IconButton, Menu, MenuItem, Button } from '@mui/material';
6
+ import MoreVertIcon from '@mui/icons-material/MoreVert';
7
7
  import download from 'downloadjs';
8
8
 
9
9
  import { buildFilePropsFromResponse, getIconFromFileType, validateMaxSize } from '@pega/react-sdk-components/lib/components/helpers/attachmentHelpers';
10
10
  import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
11
- import { isInfinity23OrHigher } from '@pega/react-sdk-components/lib/components/helpers/common-utils';
12
11
  import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
13
12
 
14
13
  import './Attachment.css';
@@ -61,7 +60,7 @@ export default function Attachment(props: AttachmentProps) {
61
60
  const [toggleUploadBegin, setToggleUploadBegin] = useState(false);
62
61
 
63
62
  const resetAttachmentStoredState = () => {
64
- PCore.getStateUtils().updateState(pConn.getContextName(), getAttachmentKey(isInfinity23OrHigher() ? valueRef : ''), undefined, {
63
+ PCore.getStateUtils().updateState(pConn.getContextName(), getAttachmentKey(valueRef), undefined, {
65
64
  pageReference: 'context_data',
66
65
  isArrayDeepMerge: false
67
66
  });
@@ -160,6 +159,7 @@ export default function Attachment(props: AttachmentProps) {
160
159
  messages: [
161
160
  {
162
161
  type: 'error',
162
+ // @ts-ignore - Type '{ type: string; message: string; }' is not assignable to type 'MessagesConfigObject'.
163
163
  message: pConn.getLocalizedValue('Error with one or more files', '', '')
164
164
  }
165
165
  ],
@@ -217,9 +217,11 @@ export default function Attachment(props: AttachmentProps) {
217
217
  };
218
218
  if (!validateMaxSize(f, maxAttachmentSize)) {
219
219
  f.props.error = true;
220
+ f.inProgress = false;
220
221
  f.props.meta = pConn.getLocalizedValue(`File is too big. Max allowed size is ${maxAttachmentSize}MB.`, '', '');
221
222
  } else if (!validateFileExtension(f, extensions)) {
222
223
  f.props.error = true;
224
+ f.inProgress = false;
223
225
  f.props.meta = `${pConn.getLocalizedValue('File has invalid extension. Allowed extensions are:', '', '')} ${extensions.replaceAll(
224
226
  '.',
225
227
  ''
@@ -233,6 +235,7 @@ export default function Attachment(props: AttachmentProps) {
233
235
  messages: [
234
236
  {
235
237
  type: 'error',
238
+ // @ts-ignore - Type '{ type: string; message: string; }' is not assignable to type 'MessagesConfigObject'.
236
239
  message: pConn.getLocalizedValue('Error with one or more files', '', '')
237
240
  }
238
241
  ],
@@ -429,6 +432,7 @@ export default function Attachment(props: AttachmentProps) {
429
432
  aria-expanded={open ? 'true' : undefined}
430
433
  aria-haspopup='true'
431
434
  onClick={handleClick}
435
+ size='large'
432
436
  >
433
437
  <MoreVertIcon />
434
438
  </IconButton>
@@ -1,11 +1,13 @@
1
1
  import { useEffect, useRef, useState } from 'react';
2
- import { withStyles, Theme, createStyles } from '@material-ui/core/styles';
3
- import Table from '@material-ui/core/Table';
4
- import TableBody from '@material-ui/core/TableBody';
5
- import TableCell from '@material-ui/core/TableCell';
6
- import TableContainer from '@material-ui/core/TableContainer';
7
- import TableHead from '@material-ui/core/TableHead';
8
- import TableRow from '@material-ui/core/TableRow';
2
+ import { Theme } from '@mui/material/styles';
3
+ import withStyles from '@mui/styles/withStyles';
4
+ import createStyles from '@mui/styles/createStyles';
5
+ import Table from '@mui/material/Table';
6
+ import TableBody from '@mui/material/TableBody';
7
+ import TableCell from '@mui/material/TableCell';
8
+ import TableContainer from '@mui/material/TableContainer';
9
+ import TableHead from '@mui/material/TableHead';
10
+ import TableRow from '@mui/material/TableRow';
9
11
  import isDeepEqual from 'fast-deep-equal/react';
10
12
 
11
13
  import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
@@ -145,9 +147,9 @@ export default function CaseHistory(props: CaseHistoryProps) {
145
147
  const theKey = `CaseHistory-${index}`;
146
148
  theDataRows.push(
147
149
  <TableRow key={theKey}>
148
- <StyledTableCell>{dataRow[0] ? dataRow[0] : '---'}</StyledTableCell>
149
- <StyledTableCell>{dataRow[1] ? dataRow[1] : '---'}</StyledTableCell>
150
- <StyledTableCell>{dataRow[2] ? dataRow[2] : '---'}</StyledTableCell>
150
+ <StyledTableCell>{dataRow[0] ? dataRow[0] : ('---' as any)}</StyledTableCell>
151
+ <StyledTableCell>{dataRow[1] ? dataRow[1] : ('---' as any)}</StyledTableCell>
152
+ <StyledTableCell>{dataRow[2] ? dataRow[2] : ('---' as any)}</StyledTableCell>
151
153
  </TableRow>
152
154
  );
153
155
  });
@@ -1,4 +1,4 @@
1
- import { Button } from '@material-ui/core';
1
+ import { Button } from '@mui/material';
2
2
  import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
3
3
  import './ActionButtonsForFileUtil.css';
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useState } from 'react';
2
- import TextField from '@material-ui/core/TextField';
2
+ import TextField from '@mui/material/TextField';
3
3
 
4
4
  import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
5
5
 
@@ -7,8 +7,8 @@ import download from 'downloadjs';
7
7
  // import SummaryList from '../../SummaryList';
8
8
  // import ActionButtonsForFileUtil from '../ActionButtonsForFileUtil';
9
9
  import './FileUtility.css';
10
- import { IconButton, Menu, MenuItem, Button, CircularProgress } from '@material-ui/core';
11
- import MoreVertIcon from '@material-ui/icons/MoreVert';
10
+ import { IconButton, Menu, MenuItem, Button, CircularProgress } from '@mui/material';
11
+ import MoreVertIcon from '@mui/icons-material/MoreVert';
12
12
 
13
13
  import { validateMaxSize } from '@pega/react-sdk-components/lib/components/helpers/attachmentHelpers';
14
14
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
@@ -488,7 +488,7 @@ export default function FileUtility(props: FileUtilityProps) {
488
488
  }
489
489
 
490
490
  return (
491
- <div className='psdk-utility'>
491
+ <div className='psdk-utility' id='file-utility'>
492
492
  {inProgress && (
493
493
  <div className='progress-div'>
494
494
  <CircularProgress />
@@ -508,6 +508,7 @@ export default function FileUtility(props: FileUtilityProps) {
508
508
  aria-expanded={open ? 'true' : undefined}
509
509
  aria-haspopup='true'
510
510
  onClick={handleClick}
511
+ size='large'
511
512
  >
512
513
  <MoreVertIcon />
513
514
  </IconButton>
@@ -1,6 +1,6 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import { Card, CardContent, CardHeader, Typography } from '@material-ui/core';
3
- import { makeStyles } from '@material-ui/core/styles';
2
+ import { Card, CardContent, CardHeader, Typography } from '@mui/material';
3
+ import makeStyles from '@mui/styles/makeStyles';
4
4
  import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
5
5
 
6
6
  interface FollowersProps extends PConnProps {
@@ -35,6 +35,7 @@ export default function QuickCreate(props: QuickCreateProps) {
35
35
  const defaultCases: any = [];
36
36
  const envInfo = PCore.getEnvironmentInfo();
37
37
  if (envInfo?.environmentInfoObject?.pyCaseTypeList) {
38
+ // @ts-ignore - Property 'forEach' does not exist on type 'string'
38
39
  envInfo.environmentInfoObject.pyCaseTypeList.forEach(casetype => {
39
40
  if (casetype.pyWorkTypeName && casetype.pyWorkTypeImplementationClassName) {
40
41
  defaultCases.push({
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "QuickCreate",
3
+ "label": "Quick create",
4
+ "description": "Quick create widget",
5
+ "type": "Widget",
6
+ "subtype": "PAGE",
7
+ "properties": [],
8
+ "defaultConfig": {}
9
+ }
@@ -1,6 +1,6 @@
1
1
  import { useState } from 'react';
2
- import { IconButton, Menu, MenuItem } from '@material-ui/core';
3
- import MoreVertIcon from '@material-ui/icons/MoreVert';
2
+ import { IconButton, Menu, MenuItem } from '@mui/material';
3
+ import MoreVertIcon from '@mui/icons-material/MoreVert';
4
4
  import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
5
5
  import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
6
6
 
@@ -69,6 +69,7 @@ export default function SummaryItem(props: SummaryItemProps) {
69
69
  aria-expanded={open ? 'true' : undefined}
70
70
  aria-haspopup='true'
71
71
  onClick={handleClick}
72
+ size='large'
72
73
  >
73
74
  <MoreVertIcon />
74
75
  </IconButton>