@pega/react-sdk-overrides 24.2.11 → 25.1.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 (164) hide show
  1. package/lib/designSystemExtension/Banner/Banner.css +1 -1
  2. package/lib/designSystemExtension/Banner/Banner.tsx +10 -7
  3. package/lib/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  4. package/lib/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +53 -37
  5. package/lib/designSystemExtension/DetailsFields/DetailsFields.tsx +11 -13
  6. package/lib/designSystemExtension/FieldGroup/FieldGroup.tsx +8 -9
  7. package/lib/designSystemExtension/FieldGroupList/FieldGroupList.tsx +9 -9
  8. package/lib/designSystemExtension/FieldValueList/FieldValueList.tsx +7 -8
  9. package/lib/designSystemExtension/Operator/Operator.tsx +21 -19
  10. package/lib/designSystemExtension/Pulse/Pulse.tsx +1 -1
  11. package/lib/designSystemExtension/RichTextEditor/RichTextEditor.tsx +32 -4
  12. package/lib/designSystemExtension/WssQuickCreate/WssQuickCreate.css +7 -14
  13. package/lib/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx +13 -2
  14. package/lib/field/AutoComplete/AutoComplete.tsx +1 -1
  15. package/lib/field/CancelAlert/CancelAlert.css +4 -4
  16. package/lib/field/CancelAlert/CancelAlert.tsx +6 -6
  17. package/lib/field/Checkbox/Checkbox.tsx +97 -4
  18. package/lib/field/Currency/Currency.tsx +3 -3
  19. package/lib/field/Currency/currency-utils.ts +1 -2
  20. package/lib/field/Date/Date.tsx +3 -7
  21. package/lib/field/DateTime/DateTime.tsx +3 -8
  22. package/lib/field/Decimal/Decimal.tsx +3 -5
  23. package/lib/field/Dropdown/Dropdown.tsx +5 -7
  24. package/lib/field/Email/Email.tsx +11 -13
  25. package/lib/field/Group/Group.tsx +10 -8
  26. package/lib/field/Integer/Integer.tsx +5 -7
  27. package/lib/field/Location/Location.css +4 -0
  28. package/lib/field/Location/Location.tsx +258 -0
  29. package/lib/field/Location/config-ext.json +8 -0
  30. package/lib/field/Location/index.tsx +1 -0
  31. package/lib/field/Multiselect/utils.ts +1 -1
  32. package/lib/field/ObjectReference/ObjectReference.tsx +235 -0
  33. package/lib/field/ObjectReference/index.tsx +1 -0
  34. package/lib/field/ObjectReference/utils.ts +111 -0
  35. package/lib/field/Percentage/Percentage.tsx +3 -7
  36. package/lib/field/Phone/Phone.tsx +7 -5
  37. package/lib/field/RadioButtons/RadioButtons.tsx +47 -2
  38. package/lib/field/RichText/RichText.css +79 -0
  39. package/lib/field/RichText/RichText.tsx +3 -1
  40. package/lib/field/ScalarList/ScalarList.tsx +2 -3
  41. package/lib/field/SelectableCard/SelectableCard.tsx +175 -0
  42. package/lib/field/SelectableCard/index.tsx +1 -0
  43. package/lib/field/SelectableCard/utils.tsx +223 -0
  44. package/lib/field/SemanticLink/SemanticLink.tsx +160 -28
  45. package/lib/field/SemanticLink/utils.ts +1 -1
  46. package/lib/field/TextArea/TextArea.tsx +5 -7
  47. package/lib/field/TextContent/TextContent.tsx +1 -2
  48. package/lib/field/TextInput/TextInput.tsx +5 -7
  49. package/lib/field/Time/Time.tsx +3 -7
  50. package/lib/field/URL/URL.tsx +5 -7
  51. package/lib/field/UserReference/UserReference.tsx +2 -3
  52. package/lib/helpers/attachmentShared.ts +6 -0
  53. package/lib/helpers/common-utils.ts +3 -4
  54. package/lib/helpers/data_page.ts +0 -1
  55. package/lib/helpers/field-group-utils.ts +1 -1
  56. package/lib/helpers/formatters/Currency.ts +9 -4
  57. package/lib/helpers/formatters/CurrencyMap.ts +0 -2
  58. package/lib/helpers/object-utils.ts +10 -0
  59. package/lib/helpers/simpleTableHelpers.ts +118 -6
  60. package/lib/helpers/utils.ts +8 -1
  61. package/lib/helpers/versionHelpers.ts +0 -1
  62. package/lib/infra/ActionButtons/ActionButtons.tsx +28 -21
  63. package/lib/infra/Assignment/Assignment.tsx +37 -30
  64. package/lib/infra/AssignmentCard/AssignmentCard.tsx +2 -2
  65. package/lib/infra/Containers/FlowContainer/FlowContainer.tsx +17 -96
  66. package/lib/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.tsx +1 -2
  67. package/lib/infra/Containers/ModalViewContainer/ModalViewContainer.tsx +7 -6
  68. package/lib/infra/Containers/ViewContainer/ViewContainer.tsx +4 -5
  69. package/lib/infra/Containers/container-helpers.ts +47 -1
  70. package/lib/infra/DashboardFilter/DashboardFilter.tsx +3 -6
  71. package/lib/infra/DashboardFilter/filterUtils.tsx +3 -4
  72. package/lib/infra/DeferLoad/DeferLoad.tsx +2 -4
  73. package/lib/infra/ErrorBoundary/ErrorBoundary.tsx +1 -3
  74. package/lib/infra/MultiStep/MultiStep.css +48 -70
  75. package/lib/infra/MultiStep/MultiStep.tsx +27 -53
  76. package/lib/infra/NavBar/NavBar.css +1 -1
  77. package/lib/infra/NavBar/NavBar.tsx +43 -32
  78. package/lib/infra/Reference/Reference.tsx +3 -4
  79. package/lib/infra/Region/Region.tsx +1 -1
  80. package/lib/infra/RootContainer/RootContainer.tsx +2 -3
  81. package/lib/infra/Stages/Stages.tsx +3 -4
  82. package/lib/infra/View/View.tsx +4 -3
  83. package/lib/template/AdvancedSearch/AdvancedSearch.tsx +86 -0
  84. package/lib/template/AdvancedSearch/SearchGroup/persistUtils.ts +52 -0
  85. package/lib/template/AdvancedSearch/SearchGroups/SearchGroups.tsx +244 -0
  86. package/lib/template/AdvancedSearch/SearchGroups/hooks.ts +37 -0
  87. package/lib/template/AdvancedSearch/SearchGroups/index.tsx +1 -0
  88. package/lib/template/AdvancedSearch/SearchGroups/utils.ts +29 -0
  89. package/lib/template/AdvancedSearch/TemplateContext.ts +11 -0
  90. package/lib/template/AdvancedSearch/config-ext.json +9 -0
  91. package/lib/template/AdvancedSearch/index.tsx +1 -0
  92. package/lib/template/AppShell/AppShell.css +1 -1
  93. package/lib/template/AppShell/AppShell.tsx +16 -17
  94. package/lib/template/BannerPage/BannerPage.tsx +2 -2
  95. package/lib/template/CaseSummary/CaseSummary.tsx +28 -41
  96. package/lib/template/CaseView/CaseView.tsx +28 -35
  97. package/lib/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx +1 -1
  98. package/lib/template/Confirmation/Confirmation.tsx +2 -3
  99. package/lib/template/DataReference/DataReference.tsx +312 -106
  100. package/lib/template/DataReference/DataReferenceAdvancedSearchContext.ts +10 -0
  101. package/lib/template/DataReference/SearchForm.tsx +149 -0
  102. package/lib/template/DataReference/utils.ts +90 -0
  103. package/lib/template/DefaultForm/DefaultForm.tsx +3 -3
  104. package/lib/template/DefaultForm/utils/index.ts +1 -3
  105. package/lib/template/DefaultPage/DefaultPage.tsx +108 -0
  106. package/lib/template/DefaultPage/index.tsx +1 -0
  107. package/lib/template/Details/Details/Details.tsx +11 -11
  108. package/lib/template/Details/DetailsSubTabs/DetailsSubTabs.tsx +2 -2
  109. package/lib/template/Details/DetailsThreeColumn/DetailsThreeColumn.tsx +11 -11
  110. package/lib/template/Details/DetailsTwoColumn/DetailsTwoColumn.tsx +11 -11
  111. package/lib/template/Details/DynamicTabs/DynamicTabs.tsx +1 -1
  112. package/lib/template/FieldGroupTemplate/FieldGroupTemplate.tsx +2 -3
  113. package/lib/template/InlineDashboard/InlineDashboard.tsx +14 -16
  114. package/lib/template/InlineDashboardPage/InlineDashboardPage.tsx +2 -2
  115. package/lib/template/ListPage/ListPage.tsx +1 -1
  116. package/lib/template/ListView/ListView.tsx +278 -198
  117. package/lib/template/ListView/hooks.ts +1 -5
  118. package/lib/template/ListView/utils.ts +38 -5
  119. package/lib/template/MultiReferenceReadOnly/MultiReferenceReadOnly.tsx +1 -1
  120. package/lib/template/NarrowWide/NarrowWide/NarrowWide.tsx +5 -5
  121. package/lib/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.tsx +11 -11
  122. package/lib/template/NarrowWide/NarrowWideForm/NarrowWideForm.tsx +2 -2
  123. package/lib/template/NarrowWide/NarrowWidePage/NarrowWidePage.tsx +2 -2
  124. package/lib/template/OneColumn/OneColumn/OneColumn.tsx +7 -7
  125. package/lib/template/OneColumn/OneColumnPage/OneColumnPage.tsx +1 -1
  126. package/lib/template/OneColumn/OneColumnTab/OneColumnTab.tsx +2 -2
  127. package/lib/template/PromotedFilters/PromotedFilters.tsx +1 -2
  128. package/lib/template/SelfServiceCaseView/SelfServiceCaseView.tsx +145 -0
  129. package/lib/template/SelfServiceCaseView/index.tsx +1 -0
  130. package/lib/template/SimpleTable/SimpleTable/SimpleTable.tsx +2 -3
  131. package/lib/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx +36 -33
  132. package/lib/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.tsx +1 -1
  133. package/lib/template/SingleReferenceReadOnly/SingleReferenceReadOnly.tsx +10 -2
  134. package/lib/template/SubTabs/SubTabs.tsx +2 -2
  135. package/lib/template/SubTabs/tabUtils.ts +118 -1
  136. package/lib/template/TwoColumn/TwoColumn/TwoColumn.tsx +9 -10
  137. package/lib/template/TwoColumn/TwoColumnPage/TwoColumnPage.tsx +1 -1
  138. package/lib/template/TwoColumn/TwoColumnTab/TwoColumnTab.tsx +9 -10
  139. package/lib/template/WideNarrow/WideNarrow/WideNarrow.tsx +5 -5
  140. package/lib/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.tsx +11 -11
  141. package/lib/template/WideNarrow/WideNarrowForm/WideNarrowForm.tsx +2 -2
  142. package/lib/template/WideNarrow/WideNarrowPage/WideNarrowPage.tsx +2 -2
  143. package/lib/template/WssNavBar/WssNavBar.css +1 -1
  144. package/lib/template/WssNavBar/WssNavBar.tsx +6 -6
  145. package/lib/template/utils.tsx +58 -0
  146. package/lib/widget/AppAnnouncement/AppAnnouncement.tsx +1 -1
  147. package/lib/widget/Attachment/Attachment.css +6 -8
  148. package/lib/widget/Attachment/Attachment.tsx +303 -225
  149. package/lib/widget/Attachment/Attachment.types.ts +96 -0
  150. package/lib/widget/Attachment/AttachmentUtils.ts +316 -0
  151. package/lib/widget/CaseHistory/CaseHistory.tsx +5 -5
  152. package/lib/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.css +0 -14
  153. package/lib/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx +3 -3
  154. package/lib/widget/FileUtility/FileUtility/FileUtility.css +7 -6
  155. package/lib/widget/FileUtility/FileUtility/FileUtility.tsx +29 -22
  156. package/lib/widget/Followers/Followers.tsx +2 -4
  157. package/lib/widget/QuickCreate/QuickCreate.tsx +1 -2
  158. package/lib/widget/SummaryItem/SummaryItem.css +9 -11
  159. package/lib/widget/SummaryItem/SummaryItem.tsx +2 -2
  160. package/lib/widget/SummaryList/SummaryList.tsx +1 -1
  161. package/lib/widget/ToDo/ToDo.css +1 -13
  162. package/lib/widget/ToDo/ToDo.tsx +37 -36
  163. package/package.json +1 -1
  164. package/lib/helpers/attachmentHelpers.ts +0 -76
@@ -1,8 +1,10 @@
1
- import { PropsWithChildren, ReactElement } from 'react';
1
+ import type { PropsWithChildren, ReactElement } 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 CaseSummaryProps extends PConnProps {
6
+ arPrimaryFields: any[];
7
+ arSecondaryFields: any[];
6
8
  // If any, enter additional props that only exist on this component
7
9
  }
8
10
 
@@ -11,26 +13,16 @@ export default function CaseSummary(props: PropsWithChildren<CaseSummaryProps>)
11
13
  const CaseSummaryFields = getComponentFromMap('CaseSummaryFields');
12
14
 
13
15
  const { getPConnect, children } = props;
16
+ let { arPrimaryFields = [], arSecondaryFields = [] } = props;
14
17
 
15
- const thePConn = getPConnect();
16
- const theConfigProps: any = thePConn.getConfigProps();
17
- // const { status, showStatus } = theConfigProps;
18
- const status = theConfigProps.status;
19
- const showStatus = theConfigProps.showStatus;
18
+ const thePConn = getPConnect && getPConnect();
19
+ const theConfigProps: any = thePConn?.getConfigProps();
20
+
21
+ const status = theConfigProps?.status;
22
+ const showStatus = theConfigProps?.showStatus;
20
23
  const localizedVal = PCore.getLocaleUtils().getLocaleValue;
21
24
  const localeCategory = 'ModalContainer';
22
- // from Constellation DX Components
23
- // get the primary and secondary fields with the raw data (which has the non-resolved property values)
24
- // const regionsRaw = getPConnect().getRawMetadata().children;
25
- // const primaryFieldsRaw = regionsRaw[0].children;
26
- // const secondaryFieldsRaw = regionsRaw[1].children;
27
-
28
- // From other SDKs
29
- // may want to move these into useEffect/useState combo
30
- let arPrimaryFields: any[] = [];
31
- let arSecondaryFields: any[] = [];
32
25
 
33
- /* eslint-disable @typescript-eslint/no-shadow */
34
26
  function prepareComponentInCaseSummary(pConnectMeta, getPConnect) {
35
27
  const { config, children } = pConnectMeta;
36
28
  const pConnect = getPConnect();
@@ -62,32 +54,27 @@ export default function CaseSummary(props: PropsWithChildren<CaseSummaryProps>)
62
54
  return summaryFieldChildren ? convertChildrenToSummaryData(summaryFieldChildren?.getChildren()) : undefined;
63
55
  }
64
56
 
65
- for (const child of children as ReactElement[]) {
66
- const childPConn = (child as ReactElement).props.getPConnect();
67
- const childPConnData = childPConn.resolveConfigProps(childPConn.getRawMetadata());
68
- if (childPConnData.name.toLowerCase() === 'primary fields') {
69
- arPrimaryFields = childPConnData.children;
70
- arPrimaryFields.forEach(field => {
71
- if (field.config?.value && typeof field.config?.value === 'string') {
72
- field.config.value = localizedVal(field.config.value, localeCategory);
73
- }
74
- });
75
- } else if (childPConnData.name.toLowerCase() === 'secondary fields') {
76
- const secondarySummaryFields = prepareCaseSummaryData(childPConn);
77
- arSecondaryFields = childPConnData.children;
78
- arSecondaryFields.forEach((field, index) => {
79
- field.config.displayLabel = secondarySummaryFields[index]?.value?.props?.label;
80
- });
57
+ if (arPrimaryFields.length === 0 && arSecondaryFields.length === 0) {
58
+ for (const child of children as ReactElement[]) {
59
+ const childPConn = (child as ReactElement).props.getPConnect();
60
+ const childPConnData = childPConn.resolveConfigProps(childPConn.getRawMetadata());
61
+ if (childPConnData.name.toLowerCase() === 'primary fields') {
62
+ arPrimaryFields = childPConnData.children;
63
+ arPrimaryFields.forEach(field => {
64
+ if (field.config?.value && typeof field.config?.value === 'string') {
65
+ field.config.value = localizedVal(field.config.value, localeCategory);
66
+ }
67
+ });
68
+ } else if (childPConnData.name.toLowerCase() === 'secondary fields') {
69
+ const secondarySummaryFields = prepareCaseSummaryData(childPConn);
70
+ arSecondaryFields = childPConnData.children;
71
+ arSecondaryFields.forEach((field, index) => {
72
+ field.config.displayLabel = secondarySummaryFields[index]?.value?.props?.label;
73
+ });
74
+ }
81
75
  }
82
76
  }
83
77
 
84
- // At this point, should hand off to another component for layout and rendering
85
- // of primary and secondary fields in the Case Summary
86
-
87
- // debugging/investigation help
88
- // console.log(`CaseSummary: arPrimaryFields: ${JSON.stringify(arPrimaryFields)}`);
89
- // console.log(`CaseSummary: arSecondaryFields: ${JSON.stringify(arSecondaryFields)}`);
90
-
91
78
  return (
92
79
  <div id='CaseSummary'>
93
80
  <CaseSummaryFields status={status} showStatus={showStatus} theFields={arPrimaryFields} />
@@ -1,16 +1,14 @@
1
- /* eslint-disable react/jsx-boolean-value */
2
-
3
- import { PropsWithChildren, ReactElement, useContext, useEffect, useState } from 'react';
1
+ import { type PropsWithChildren, type ReactElement, useContext, useEffect, useState } from 'react';
4
2
  import { Avatar, Card, CardHeader, Divider, Typography } from '@mui/material';
5
3
  import makeStyles from '@mui/styles/makeStyles';
6
4
  import Box from '@mui/material/Box';
7
5
  import Button from '@mui/material/Button';
8
- import Grid from '@mui/material/Grid';
6
+ import Grid2 from '@mui/material/Grid2';
9
7
 
10
8
  import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
11
9
  import StoreContext from '@pega/react-sdk-components/lib/bridge/Context/StoreContext';
12
10
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
13
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
11
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
14
12
 
15
13
  interface CaseViewProps extends PConnProps {
16
14
  // If any, enter additional props that only exist on this component
@@ -43,9 +41,6 @@ const useStyles = makeStyles(theme => ({
43
41
  width: theme.spacing(8),
44
42
  height: theme.spacing(8),
45
43
  padding: theme.spacing(1)
46
- },
47
- caseViewIconImage: {
48
- filter: 'invert(100%)'
49
44
  }
50
45
  }));
51
46
 
@@ -61,12 +56,9 @@ export default function CaseView(props: PropsWithChildren<CaseViewProps>) {
61
56
  header,
62
57
  subheader,
63
58
  children = [],
64
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
65
- showIconInHeader = true,
66
- caseInfo: { availableActions = [], availableProcesses = [], hasNewAttachments, caseTypeID = '', caseTypeName = '' }
59
+ caseInfo: { availableActions = [], availableProcesses = [], hasNewAttachments, caseTypeID = '', caseTypeName = '', caseTypeIcon }
67
60
  } = props;
68
61
  const { lastUpdateCaseTime = getPConnect().getValue('caseInfo.lastUpdateTime') } = props;
69
-
70
62
  const currentCaseID = props.caseInfo.ID;
71
63
  let isComponentMounted = true;
72
64
  const { displayOnlyFA } = useContext<any>(StoreContext);
@@ -78,17 +70,17 @@ export default function CaseView(props: PropsWithChildren<CaseViewProps>) {
78
70
  const editAction = availableActions.find(action => action.ID === 'pyUpdateCaseDetails');
79
71
 
80
72
  const localizedVal = PCore.getLocaleUtils().getLocaleValue;
73
+ const localizationService = thePConn.getLocalizationService();
81
74
  const localeCategory = 'CaseView';
82
- const localeKey = `${caseTypeID}!CASE!${caseTypeName}`.toUpperCase();
75
+
83
76
  /**
84
77
  *
85
78
  * @param inName the metadata <em>name</em> that will cause a region to be returned
86
79
  */
87
80
  function getChildRegionByName(inName: string): any {
88
81
  for (const child of children as ReactElement[]) {
89
- const theMetadataType: string = (child as ReactElement).props.getPConnect().getRawMetadata().type.toLowerCase();
90
- const theMetadataName: string = (child as ReactElement).props.getPConnect().getRawMetadata().name.toLowerCase();
91
-
82
+ const theMetadataType: string = (child as ReactElement).props.getPConnect().getRawMetadata().type?.toLowerCase();
83
+ const theMetadataName: string = (child as ReactElement).props.getPConnect().getRawMetadata().name?.toLowerCase();
92
84
  if (theMetadataType === 'region' && theMetadataName === inName) {
93
85
  return child;
94
86
  }
@@ -103,7 +95,12 @@ export default function CaseView(props: PropsWithChildren<CaseViewProps>) {
103
95
  const theUtilitiesRegion = getChildRegionByName('utilities');
104
96
  const theTabsRegion = getChildRegionByName('tabs');
105
97
 
106
- const svgCase = Utils.getImageSrc(icon, Utils.getSDKStaticConentUrl());
98
+ let iconForCaseType = caseTypeIcon ? caseTypeIcon.replace('pi pi-', '') : icon;
99
+
100
+ if (!iconForCaseType || iconForCaseType.includes('.')) {
101
+ iconForCaseType = 'polaris-solid';
102
+ }
103
+ const caseSvgIconUrl = Utils.getImageSrc(iconForCaseType, Utils.getSDKStaticConentUrl());
107
104
 
108
105
  const [activeVertTab, setActiveVertTab] = useState(0);
109
106
 
@@ -111,10 +108,10 @@ export default function CaseView(props: PropsWithChildren<CaseViewProps>) {
111
108
  // const tmpLoadData2 = { config: { label: "Case History", name: "CaseHistory" }, type: "DeferLoad" };
112
109
 
113
110
  // Extract the tabs we need to display from theTabsRegion (one tab per entry in theTabsRegionChildren)
114
- const theTabsRegionChildren = theTabsRegion.props.getPConnect().getChildren();
111
+ const theTabsRegionChildren = theTabsRegion?.props.getPConnect().getChildren();
115
112
 
116
113
  // vertTabInfo is sent to VerticalTabs component
117
- const vertTabInfo: Object[] = [];
114
+ const vertTabInfo: object[] = [];
118
115
 
119
116
  // deferLoadInfo is sent to DeferLoad component (currently selected entry)
120
117
  const deferLoadInfo: any[] = [];
@@ -208,8 +205,8 @@ export default function CaseView(props: PropsWithChildren<CaseViewProps>) {
208
205
  if (!displayOnlyFA) {
209
206
  // show full portal
210
207
  return (
211
- <Grid container>
212
- <Grid item xs={3}>
208
+ <Grid2 container>
209
+ <Grid2 size={{ xs: 3 }}>
213
210
  <div hidden={true} id='current-caseID'>
214
211
  {currentCaseID}
215
212
  </div>
@@ -218,7 +215,7 @@ export default function CaseView(props: PropsWithChildren<CaseViewProps>) {
218
215
  className={classes.caseViewHeader}
219
216
  title={
220
217
  <Typography variant='h6' component='div' id='case-name'>
221
- {PCore.getLocaleUtils().getLocaleValue(header, '', localeKey)}
218
+ {localizationService.getLocalizedText(header)}
222
219
  </Typography>
223
220
  }
224
221
  subheader={
@@ -228,7 +225,7 @@ export default function CaseView(props: PropsWithChildren<CaseViewProps>) {
228
225
  }
229
226
  avatar={
230
227
  <Avatar className={classes.caseViewIconBox} variant='square'>
231
- <img src={svgCase} className={classes.caseViewIconImage} />
228
+ <img src={caseSvgIconUrl} />
232
229
  </Avatar>
233
230
  }
234
231
  />
@@ -238,29 +235,25 @@ export default function CaseView(props: PropsWithChildren<CaseViewProps>) {
238
235
  <Divider />
239
236
  {vertTabInfo.length > 1 && <VerticalTabs tabconfig={vertTabInfo} />}
240
237
  </Card>
241
- </Grid>
238
+ </Grid2>
242
239
 
243
- <Grid item xs={6}>
240
+ <Grid2 size={{ xs: 6 }}>
244
241
  {theStagesRegion}
245
242
  {theTodoRegion}
246
243
  {deferLoadInfo.length > 0 && (
247
244
  <DeferLoad getPConnect={getPConnect} name={deferLoadInfo[activeVertTab].config.name} isTab lastUpdateCaseTime={lastUpdateCaseTime} />
248
245
  )}
249
- </Grid>
246
+ </Grid2>
250
247
 
251
- <Grid item xs={3}>
252
- {theUtilitiesRegion}
253
- </Grid>
254
- </Grid>
248
+ <Grid2 size={{ xs: 3 }}>{theUtilitiesRegion}</Grid2>
249
+ </Grid2>
255
250
  );
256
251
  }
257
252
  // displayOnlyFA - only show the "todo" region
258
253
  return (
259
- <Grid container>
260
- <Grid item xs={12}>
261
- {theTodoRegion}
262
- </Grid>
263
- </Grid>
254
+ <Grid2 container>
255
+ <Grid2 size={{ xs: 12 }}>{theTodoRegion}</Grid2>
256
+ </Grid2>
264
257
  );
265
258
  }
266
259
 
@@ -3,7 +3,7 @@ import Button from '@mui/material/Button';
3
3
  import Menu from '@mui/material/Menu';
4
4
  import MenuItem from '@mui/material/MenuItem';
5
5
 
6
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
6
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
7
7
  import Snackbar from '@mui/material/Snackbar';
8
8
  import IconButton from '@mui/material/IconButton';
9
9
  import CloseIcon from '@mui/icons-material/Close';
@@ -1,11 +1,10 @@
1
- /* eslint-disable no-nested-ternary */
2
- import { PropsWithChildren, useState } from 'react';
1
+ import { type PropsWithChildren, useState } from 'react';
3
2
  import { Button, Card } from '@mui/material';
4
3
  import makeStyles from '@mui/styles/makeStyles';
5
4
 
6
5
  import { getToDoAssignments } from '@pega/react-sdk-components/lib/components/infra/Containers/FlowContainer/helpers';
7
6
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
8
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
7
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
9
8
 
10
9
  interface ConfirmationProps extends PConnProps {
11
10
  // If any, enter additional props that only exist on this component