@pega/react-sdk-overrides 0.24.4 → 0.25.2

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 (139) 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 -2
  4. package/lib/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +59 -32
  5. package/lib/designSystemExtension/DetailsFields/DetailsFields.tsx +4 -4
  6. package/lib/designSystemExtension/FieldGroup/FieldGroup.tsx +5 -5
  7. package/lib/designSystemExtension/FieldGroupList/FieldGroupList.tsx +4 -4
  8. package/lib/designSystemExtension/FieldValueList/FieldValueList.tsx +6 -6
  9. package/lib/designSystemExtension/Operator/Operator.tsx +16 -12
  10. package/lib/designSystemExtension/Pulse/Pulse.tsx +3 -3
  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 +5 -5
  14. package/lib/field/CancelAlert/CancelAlert.tsx +5 -8
  15. package/lib/field/Checkbox/Checkbox.tsx +5 -5
  16. package/lib/field/Currency/Currency.tsx +12 -9
  17. package/lib/field/Date/Date.tsx +29 -48
  18. package/lib/field/DateTime/DateTime.tsx +37 -39
  19. package/lib/field/Decimal/Decimal.tsx +12 -9
  20. package/lib/field/Dropdown/Dropdown.tsx +34 -27
  21. package/lib/field/Email/Email.tsx +39 -20
  22. package/lib/field/Group/Group.tsx +4 -4
  23. package/lib/field/Integer/Integer.tsx +27 -15
  24. package/lib/field/Multiselect/Multiselect.tsx +8 -14
  25. package/lib/field/Multiselect/utils.ts +1 -1
  26. package/lib/field/Percentage/Percentage.tsx +11 -11
  27. package/lib/field/Phone/Phone.tsx +13 -10
  28. package/lib/field/Phone/config-ext.json +8 -0
  29. package/lib/field/RadioButtons/RadioButtons.tsx +4 -7
  30. package/lib/field/RichText/RichText.tsx +2 -2
  31. package/lib/field/RichText/config-ext.json +10 -0
  32. package/lib/field/ScalarList/ScalarList.tsx +4 -5
  33. package/lib/field/SemanticLink/SemanticLink.tsx +5 -5
  34. package/lib/field/TextArea/TextArea.tsx +30 -14
  35. package/lib/field/TextContent/TextContent.tsx +2 -2
  36. package/lib/field/TextInput/TextInput.tsx +7 -9
  37. package/lib/field/Time/Time.tsx +30 -27
  38. package/lib/field/URL/URL.tsx +29 -12
  39. package/lib/field/UserReference/UserReference.tsx +4 -6
  40. package/lib/helpers/common-utils.ts +24 -1
  41. package/lib/helpers/field-group-utils.ts +3 -3
  42. package/lib/helpers/formatters/Currency.ts +11 -16
  43. package/lib/helpers/formatters/common.ts +2 -1
  44. package/lib/helpers/formatters/index.ts +2 -4
  45. package/lib/helpers/simpleTableHelpers.ts +1 -1
  46. package/lib/infra/ActionButtons/ActionButtons.tsx +3 -3
  47. package/lib/infra/Assignment/Assignment.tsx +14 -14
  48. package/lib/infra/AssignmentCard/AssignmentCard.tsx +2 -2
  49. package/lib/infra/Containers/FlowContainer/FlowContainer.tsx +17 -29
  50. package/lib/infra/Containers/FlowContainer/helpers.ts +1 -5
  51. package/lib/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.tsx +10 -5
  52. package/lib/infra/Containers/ModalViewContainer/ModalViewContainer.tsx +9 -9
  53. package/lib/infra/Containers/SimpleView/helper.ts +1 -1
  54. package/lib/infra/Containers/ViewContainer/ViewContainer.tsx +2 -2
  55. package/lib/infra/DashboardFilter/DashboardFilter.tsx +6 -8
  56. package/lib/infra/DashboardFilter/filterUtils.tsx +3 -4
  57. package/lib/infra/DeferLoad/DeferLoad.tsx +9 -9
  58. package/lib/infra/ErrorBoundary/ErrorBoundary.tsx +1 -1
  59. package/lib/infra/MultiStep/MultiStep.tsx +17 -16
  60. package/lib/infra/NavBar/NavBar.css +1 -0
  61. package/lib/infra/NavBar/NavBar.tsx +49 -38
  62. package/lib/infra/Reference/Reference.tsx +1 -1
  63. package/lib/infra/Region/Region.tsx +1 -1
  64. package/lib/infra/RootContainer/RootContainer.tsx +7 -8
  65. package/lib/infra/Stages/Stages.tsx +5 -5
  66. package/lib/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.tsx +4 -3
  67. package/lib/infra/VerticalTabs/VerticalTabs/VerticalTabs.tsx +2 -2
  68. package/lib/infra/View/View.tsx +38 -4
  69. package/lib/template/AdvancedSearch/AdvancedSearch.tsx +87 -0
  70. package/lib/template/AdvancedSearch/SearchGroup/persistUtils.ts +58 -0
  71. package/lib/template/AdvancedSearch/SearchGroups/SearchGroups.tsx +245 -0
  72. package/lib/template/AdvancedSearch/SearchGroups/hooks.ts +37 -0
  73. package/lib/template/AdvancedSearch/SearchGroups/index.tsx +1 -0
  74. package/lib/template/AdvancedSearch/SearchGroups/utils.ts +29 -0
  75. package/lib/template/AdvancedSearch/TemplateContext.ts +11 -0
  76. package/lib/template/AdvancedSearch/config-ext.json +9 -0
  77. package/lib/template/AdvancedSearch/index.tsx +1 -0
  78. package/lib/template/AppShell/AppShell.tsx +62 -12
  79. package/lib/template/BannerPage/BannerPage.tsx +2 -2
  80. package/lib/template/BannerPage/config-ext.json +9 -0
  81. package/lib/template/CaseSummary/CaseSummary.tsx +2 -2
  82. package/lib/template/CaseView/CaseView.tsx +12 -11
  83. package/lib/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx +8 -8
  84. package/lib/template/Confirmation/Confirmation.tsx +5 -4
  85. package/lib/template/DataReference/DataReference.tsx +318 -108
  86. package/lib/template/DataReference/DataReferenceAdvancedSearchContext.js +10 -0
  87. package/lib/template/DataReference/SearchForm.tsx +148 -0
  88. package/lib/template/DataReference/utils.js +90 -0
  89. package/lib/template/DefaultForm/DefaultForm.tsx +2 -2
  90. package/lib/template/DefaultForm/utils/index.ts +1 -3
  91. package/lib/template/Details/Details/Details.tsx +3 -3
  92. package/lib/template/Details/DetailsSubTabs/DetailsSubTabs.tsx +5 -5
  93. package/lib/template/Details/DetailsThreeColumn/DetailsThreeColumn.tsx +3 -3
  94. package/lib/template/Details/DetailsTwoColumn/DetailsTwoColumn.tsx +3 -3
  95. package/lib/template/Details/DynamicTabs/DynamicTabs.tsx +5 -5
  96. package/lib/template/FieldGroupTemplate/FieldGroupTemplate.tsx +11 -6
  97. package/lib/template/InlineDashboard/InlineDashboard.tsx +4 -4
  98. package/lib/template/InlineDashboardPage/InlineDashboardPage.tsx +2 -2
  99. package/lib/template/InlineDashboardPage/config-ext.json +9 -0
  100. package/lib/template/ListPage/ListPage.tsx +1 -1
  101. package/lib/template/ListView/ListView.tsx +201 -95
  102. package/lib/template/ListView/utils.ts +38 -6
  103. package/lib/template/MultiReferenceReadOnly/MultiReferenceReadOnly.tsx +1 -1
  104. package/lib/template/NarrowWide/NarrowWide/NarrowWide.tsx +2 -2
  105. package/lib/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.tsx +3 -3
  106. package/lib/template/NarrowWide/NarrowWideForm/NarrowWideForm.tsx +2 -2
  107. package/lib/template/NarrowWide/NarrowWidePage/NarrowWidePage.tsx +2 -2
  108. package/lib/template/OneColumn/OneColumn/OneColumn.tsx +4 -4
  109. package/lib/template/OneColumn/OneColumnPage/OneColumnPage.tsx +1 -1
  110. package/lib/template/OneColumn/OneColumnTab/OneColumnTab.tsx +2 -2
  111. package/lib/template/PromotedFilters/PromotedFilters.tsx +2 -3
  112. package/lib/template/SimpleTable/SimpleTable/SimpleTable.tsx +1 -3
  113. package/lib/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx +112 -88
  114. package/lib/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.tsx +3 -5
  115. package/lib/template/SingleReferenceReadOnly/SingleReferenceReadOnly.tsx +1 -1
  116. package/lib/template/SubTabs/SubTabs.tsx +4 -4
  117. package/lib/template/SubTabs/tabUtils.ts +118 -1
  118. package/lib/template/TwoColumn/TwoColumn/TwoColumn.tsx +10 -10
  119. package/lib/template/TwoColumn/TwoColumnPage/TwoColumnPage.tsx +1 -1
  120. package/lib/template/TwoColumn/TwoColumnTab/TwoColumnTab.tsx +10 -10
  121. package/lib/template/WideNarrow/WideNarrow/WideNarrow.tsx +2 -2
  122. package/lib/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.tsx +3 -3
  123. package/lib/template/WideNarrow/WideNarrowForm/WideNarrowForm.tsx +2 -2
  124. package/lib/template/WideNarrow/WideNarrowPage/WideNarrowPage.tsx +2 -2
  125. package/lib/template/WssNavBar/WssNavBar.tsx +10 -10
  126. package/lib/widget/AppAnnouncement/AppAnnouncement.tsx +3 -3
  127. package/lib/widget/Attachment/Attachment.css +1 -0
  128. package/lib/widget/Attachment/Attachment.tsx +8 -10
  129. package/lib/widget/CaseHistory/CaseHistory.tsx +13 -11
  130. package/lib/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx +2 -2
  131. package/lib/widget/FileUtility/FileUtility/FileUtility.tsx +6 -5
  132. package/lib/widget/Followers/Followers.tsx +4 -4
  133. package/lib/widget/QuickCreate/QuickCreate.tsx +1 -2
  134. package/lib/widget/QuickCreate/config-ext.json +9 -0
  135. package/lib/widget/SummaryItem/SummaryItem.tsx +5 -4
  136. package/lib/widget/SummaryList/SummaryList.tsx +1 -1
  137. package/lib/widget/ToDo/ToDo.tsx +102 -40
  138. package/package.json +1 -1
  139. /package/lib/infra/Containers/{helpers.ts → container-helpers.ts} +0 -0
@@ -1,7 +1,7 @@
1
- import { PropsWithChildren, ReactElement } from 'react';
2
- import { Grid, GridSize } from '@material-ui/core';
3
- import { makeStyles } from '@material-ui/core/styles';
4
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
1
+ import type { PropsWithChildren, ReactElement } from 'react';
2
+ import { Grid2, type GridSize } from '@mui/material';
3
+ import makeStyles from '@mui/styles/makeStyles';
4
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
5
5
 
6
6
  interface TwoColumnProps extends PConnProps {
7
7
  // If any, enter additional props that only exist on this component
@@ -43,13 +43,13 @@ export default function TwoColumn(props: PropsWithChildren<TwoColumnProps>) {
43
43
  bSize = (ratio * colAArray[1]) as GridSize;
44
44
 
45
45
  return (
46
- <Grid container spacing={1}>
47
- <Grid item xs={12} md={aSize} className={classes.colStyles}>
46
+ <Grid2 container spacing={1}>
47
+ <Grid2 size={{ xs: 12, md: aSize }} className={classes.colStyles}>
48
48
  {childrenToRender[0]}
49
- </Grid>
50
- <Grid item xs={12} md={bSize} className={classes.colStyles}>
49
+ </Grid2>
50
+ <Grid2 size={{ xs: 12, md: bSize }} className={classes.colStyles}>
51
51
  {childrenToRender[1]}
52
- </Grid>
53
- </Grid>
52
+ </Grid2>
53
+ </Grid2>
54
54
  );
55
55
  }
@@ -1,5 +1,5 @@
1
1
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
2
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
2
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
3
3
 
4
4
  interface TwoColumnPageProps extends PConnProps {
5
5
  // If any, enter additional props that only exist on this component
@@ -1,7 +1,7 @@
1
- import { PropsWithChildren, ReactElement } from 'react';
2
- import { Grid, GridSize } from '@material-ui/core';
3
- import { makeStyles } from '@material-ui/core/styles';
4
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
1
+ import type { PropsWithChildren, ReactElement } from 'react';
2
+ import { Grid2, type GridSize } from '@mui/material';
3
+ import makeStyles from '@mui/styles/makeStyles';
4
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
5
5
 
6
6
  interface TwoColumnTabProps extends PConnProps {
7
7
  // If any, enter additional props that only exist on this component
@@ -43,13 +43,13 @@ export default function TwoColumnTab(props: PropsWithChildren<TwoColumnTabProps>
43
43
  bSize = (ratio * colAArray[1]) as GridSize;
44
44
 
45
45
  return (
46
- <Grid container spacing={1}>
47
- <Grid item xs={12} md={aSize} className={classes.colStyles}>
46
+ <Grid2 container spacing={1}>
47
+ <Grid2 size={{ xs: 12, md: aSize }} className={classes.colStyles}>
48
48
  {childrenToRender[0]}
49
- </Grid>
50
- <Grid item xs={12} md={bSize} className={classes.colStyles}>
49
+ </Grid2>
50
+ <Grid2 size={{ xs: 12, md: bSize }} className={classes.colStyles}>
51
51
  {childrenToRender[1]}
52
- </Grid>
53
- </Grid>
52
+ </Grid2>
53
+ </Grid2>
54
54
  );
55
55
  }
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren, ReactElement } from 'react';
2
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
1
+ import type { PropsWithChildren, ReactElement } from 'react';
2
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
3
3
  import './WideNarrow.css';
4
4
 
5
5
  interface WideNarrowProps extends PConnProps {
@@ -1,10 +1,10 @@
1
1
  import { createElement } from 'react';
2
- import Grid, { GridSize } from '@material-ui/core/Grid';
2
+ import Grid, { type 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';
6
6
 
7
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
7
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
8
8
 
9
9
  interface WideNarrowDetailsProps extends PConnProps {
10
10
  // If any, enter additional props that only exist on this component
@@ -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;
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren, ReactElement } from 'react';
2
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
1
+ import type { PropsWithChildren, ReactElement } from 'react';
2
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
3
3
  import './WideNarrowForm.css';
4
4
 
5
5
  interface WideNarrowFormProps extends PConnProps {
@@ -1,6 +1,6 @@
1
- import { Children, PropsWithChildren } from 'react';
1
+ import { Children, type PropsWithChildren } from 'react';
2
2
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
3
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
3
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
4
4
 
5
5
  interface WideNarrowPageProps extends PConnProps {
6
6
  // If any, enter additional props that only exist on this component
@@ -1,14 +1,14 @@
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
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
11
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
12
12
  import './WssNavBar.css';
13
13
 
14
14
  interface WssNavBarProps extends PConnProps {
@@ -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,6 +1,6 @@
1
- import { Card, CardContent, CardHeader, Typography, CardActions, Button } from '@material-ui/core';
2
- import { makeStyles } from '@material-ui/core/styles';
3
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
1
+ import { Card, CardContent, CardHeader, Typography, CardActions, Button } from '@mui/material';
2
+ import makeStyles from '@mui/styles/makeStyles';
3
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
4
4
 
5
5
  interface AppAnnouncementProps extends PConnProps {
6
6
  // If any, enter additional props that only exist on this component
@@ -34,6 +34,7 @@
34
34
 
35
35
  .file-error {
36
36
  color: var(--app-error-color);
37
+ font-size: 14px;
37
38
  }
38
39
 
39
40
  .psdk-utility-card {
@@ -2,13 +2,13 @@
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 { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
11
+ import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
12
12
 
13
13
  import './Attachment.css';
14
14
 
@@ -33,7 +33,7 @@ const updateAttachmentState = (pConn, key, attachments) => {
33
33
  };
34
34
 
35
35
  export default function Attachment(props: AttachmentProps) {
36
- const { value, getPConnect, label, validatemessage, allowMultiple, extensions, displayMode } = props;
36
+ const { value, getPConnect, label, validatemessage, allowMultiple, extensions, displayMode, helperText } = props;
37
37
  /* this is a temporary fix because required is supposed to be passed as a boolean and NOT as a string */
38
38
  let { required, disabled } = props;
39
39
  [required, disabled] = [required, disabled].map(prop => prop === true || (typeof prop === 'string' && prop === 'true'));
@@ -155,11 +155,9 @@ export default function Attachment(props: AttachmentProps) {
155
155
  const context = pConn.getContextName();
156
156
  // set errors to property to block submit even on errors in file upload
157
157
  PCore.getMessageManager().addMessages({
158
- // @ts-ignore
159
158
  messages: [
160
159
  {
161
160
  type: 'error',
162
- // @ts-ignore - Type '{ type: string; message: string; }' is not assignable to type 'MessagesConfigObject'.
163
161
  message: pConn.getLocalizedValue('Error with one or more files', '', '')
164
162
  }
165
163
  ],
@@ -192,7 +190,6 @@ export default function Attachment(props: AttachmentProps) {
192
190
  const clearFieldErrorMessages = () => {
193
191
  const fieldName = (pConn.getStateProps() as any).value;
194
192
  const context = pConn.getContextName();
195
- // @ts-ignore
196
193
  PCore.getMessageManager().clearMessages({
197
194
  type: PCore.getConstants().MESSAGES.MESSAGES_TYPE_ERROR,
198
195
  property: fieldName,
@@ -217,9 +214,11 @@ export default function Attachment(props: AttachmentProps) {
217
214
  };
218
215
  if (!validateMaxSize(f, maxAttachmentSize)) {
219
216
  f.props.error = true;
217
+ f.inProgress = false;
220
218
  f.props.meta = pConn.getLocalizedValue(`File is too big. Max allowed size is ${maxAttachmentSize}MB.`, '', '');
221
219
  } else if (!validateFileExtension(f, extensions)) {
222
220
  f.props.error = true;
221
+ f.inProgress = false;
223
222
  f.props.meta = `${pConn.getLocalizedValue('File has invalid extension. Allowed extensions are:', '', '')} ${extensions.replaceAll(
224
223
  '.',
225
224
  ''
@@ -229,11 +228,9 @@ export default function Attachment(props: AttachmentProps) {
229
228
  const fieldName = (pConn.getStateProps() as any).value;
230
229
  const context = pConn.getContextName();
231
230
  PCore.getMessageManager().addMessages({
232
- // @ts-ignore
233
231
  messages: [
234
232
  {
235
233
  type: 'error',
236
- // @ts-ignore - Type '{ type: string; message: string; }' is not assignable to type 'MessagesConfigObject'.
237
234
  message: pConn.getLocalizedValue('Error with one or more files', '', '')
238
235
  }
239
236
  ],
@@ -430,6 +427,7 @@ export default function Attachment(props: AttachmentProps) {
430
427
  aria-expanded={open ? 'true' : undefined}
431
428
  aria-haspopup='true'
432
429
  onClick={handleClick}
430
+ size='large'
433
431
  >
434
432
  <MoreVertIcon />
435
433
  </IconButton>
@@ -458,7 +456,7 @@ export default function Attachment(props: AttachmentProps) {
458
456
  <div className='file-upload-container'>
459
457
  <span className={`label ${required ? 'file-label' : ''}`}>{label}</span>
460
458
  {((files.length === 0 && allowMultiple !== 'true') || allowMultiple === 'true') && <section>{content}</section>}
461
- {validatemessage !== '' ? <span className='file-error'>{validatemessage}</span> : ''}
459
+ {validatemessage !== '' ? <span className='file-error'>{validatemessage}</span> : <span style={{ fontSize: '14px' }}>{helperText}</span>}
462
460
  {files && files.length > 0 && <section>{fileDisplay}</section>}
463
461
  </div>
464
462
  );
@@ -1,15 +1,17 @@
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 type { 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';
12
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
14
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
13
15
 
14
16
  interface CaseHistoryProps extends PConnProps {
15
17
  // If any, enter additional props that only exist on this component
@@ -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,5 +1,5 @@
1
- import { Button } from '@material-ui/core';
2
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
1
+ import { Button } from '@mui/material';
2
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
3
3
  import './ActionButtonsForFileUtil.css';
4
4
 
5
5
  interface ActionButtonsForFileUtilProps extends PConnProps {
@@ -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,12 +7,12 @@ 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';
15
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
15
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
16
16
 
17
17
  interface FileUtilityProps extends PConnProps {
18
18
  // If any, enter additional props that only exist on this component
@@ -508,10 +508,11 @@ 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>
514
- <Menu style={{ marginTop: '3rem' }} id='simple-menu' anchorEl={anchorEl} keepMounted open={Boolean(anchorEl)} onClose={handleClose}>
515
+ <Menu id='simple-menu' anchorEl={anchorEl} keepMounted open={Boolean(anchorEl)} onClose={handleClose}>
515
516
  <MenuItem style={{ fontSize: '14px' }} onClick={onAddFilesClick}>
516
517
  {thePConn.getLocalizedValue('Add files', '', '')}
517
518
  </MenuItem>{' '}
@@ -1,7 +1,7 @@
1
- import { PropsWithChildren } from 'react';
2
- import { Card, CardContent, CardHeader, Typography } from '@material-ui/core';
3
- import { makeStyles } from '@material-ui/core/styles';
4
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
1
+ import type { PropsWithChildren } from 'react';
2
+ import { Card, CardContent, CardHeader, Typography } from '@mui/material';
3
+ import makeStyles from '@mui/styles/makeStyles';
4
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
5
5
 
6
6
  interface FollowersProps extends PConnProps {
7
7
  // If any, enter additional props that only exist on this component
@@ -1,7 +1,7 @@
1
1
  import { useEffect, useState } from 'react';
2
2
  import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
3
3
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
4
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
4
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
5
5
 
6
6
  interface QuickCreateProps extends PConnProps {
7
7
  // If any, enter additional props that only exist on this component
@@ -35,7 +35,6 @@ 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'
39
38
  envInfo.environmentInfoObject.pyCaseTypeList.forEach(casetype => {
40
39
  if (casetype.pyWorkTypeName && casetype.pyWorkTypeImplementationClassName) {
41
40
  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,8 +1,8 @@
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
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
5
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
6
6
 
7
7
  import './SummaryItem.css';
8
8
 
@@ -69,10 +69,11 @@ 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>
75
- <Menu style={{ marginTop: '3rem' }} id='file-menu' anchorEl={anchorEl} keepMounted open={Boolean(anchorEl)} onClose={handleClose}>
76
+ <Menu id='file-menu' anchorEl={anchorEl} keepMounted open={Boolean(anchorEl)} onClose={handleClose}>
76
77
  {item.actions &&
77
78
  item.actions.map(option => (
78
79
  <MenuItem style={{ fontSize: '14px' }} key={option.id || option.text} onClick={option.onClick}>
@@ -1,5 +1,5 @@
1
1
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
2
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
2
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
3
3
 
4
4
  interface SummaryListProps extends PConnProps {
5
5
  // If any, enter additional props that only exist on this component