@pega/react-sdk-overrides 0.23.36 → 0.23.37

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.
@@ -109,9 +109,9 @@ export default function CaseSummaryFields(props: CaseSummaryFieldsProps) {
109
109
  label={field.config.label}
110
110
  InputProps={{
111
111
  readOnly: true,
112
+ disableUnderline: true,
112
113
  inputProps: {
113
- style: { cursor: 'pointer' },
114
- disableUnderline: true
114
+ style: { cursor: 'pointer' }
115
115
  }
116
116
  }}
117
117
  />
@@ -9,6 +9,7 @@ interface FieldValueListProps {
9
9
  name?: string;
10
10
  value: any;
11
11
  variant?: string;
12
+ isHtml?: boolean;
12
13
  }
13
14
 
14
15
  const useStyles = makeStyles(theme => ({
@@ -45,7 +46,7 @@ function formatItemValue(value) {
45
46
  }
46
47
 
47
48
  export default function FieldValueList(props: FieldValueListProps) {
48
- const { name, value, variant = 'inline' } = props;
49
+ const { name, value, variant = 'inline', isHtml = false } = props;
49
50
  const classes = useStyles();
50
51
 
51
52
  function getGridItemLabel() {
@@ -63,9 +64,14 @@ export default function FieldValueList(props: FieldValueListProps) {
63
64
 
64
65
  return (
65
66
  <Grid item xs={variant === 'stacked' ? 12 : 6} className={variant === 'stacked' ? classes.noPaddingTop : ''}>
66
- <Typography variant={variant === 'stacked' ? 'h6' : 'body2'} component='span' className={classes.fieldValue}>
67
- {formattedValue}
68
- </Typography>
67
+ {isHtml ? (
68
+ // eslint-disable-next-line react/no-danger
69
+ <div dangerouslySetInnerHTML={{ __html: formattedValue }} />
70
+ ) : (
71
+ <Typography variant={variant === 'stacked' ? 'h6' : 'body2'} component='span' className={classes.fieldValue}>
72
+ {formattedValue}
73
+ </Typography>
74
+ )}
69
75
  </Grid>
70
76
  );
71
77
  }
@@ -24,11 +24,11 @@ export default function RichText(props: RichTextProps) {
24
24
  const helperTextToDisplay = validatemessage || helperText;
25
25
 
26
26
  if (displayMode === 'LABELS_LEFT') {
27
- return <FieldValueList name={hideLabel ? '' : label} value={value} />;
27
+ return <FieldValueList name={hideLabel ? '' : label} value={value} isHtml />;
28
28
  }
29
29
 
30
30
  if (displayMode === 'STACKED_LARGE_VAL') {
31
- return <FieldValueList name={hideLabel ? '' : label} value={value} variant='stacked' />;
31
+ return <FieldValueList name={hideLabel ? '' : label} value={value} isHtml variant='stacked' />;
32
32
  }
33
33
 
34
34
  let richTextComponent;
@@ -4,5 +4,5 @@ export function isEmptyObject(obj: Object): boolean {
4
4
 
5
5
  export function isInfinity23OrHigher() {
6
6
  const pCoreVersion = PCore.getPCoreVersion();
7
- return ['8.23.0', '23.1.1'].includes(pCoreVersion);
7
+ return ['8.23.0', '23.1.1', '23.1.2'].includes(pCoreVersion);
8
8
  }
@@ -249,7 +249,7 @@ export default function NavBar(props: NavBarProps) {
249
249
  <Divider />
250
250
  <List className='marginTopAuto'>
251
251
  <>
252
- <ListItem onClick={navPanelOperatorButtonClick}>
252
+ <ListItem onClick={navPanelOperatorButtonClick} style={{ cursor: 'pointer' }}>
253
253
  <ListItemIcon>
254
254
  <PersonOutlineIcon fontSize='large' />
255
255
  </ListItemIcon>
@@ -1047,7 +1047,7 @@ export default function ListView(props: ListViewProps) {
1047
1047
  .slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
1048
1048
  .map(row => {
1049
1049
  return (
1050
- <TableRow key={row.pxRefObjectInsName || row.pyID}>
1050
+ <TableRow key={row.pxRefObjectInsName || row.pyID || row.pyGUID}>
1051
1051
  {arColumns.map(column => {
1052
1052
  const value = row[column.id];
1053
1053
  return (
@@ -1104,7 +1104,7 @@ export default function ListView(props: ListViewProps) {
1104
1104
  .slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
1105
1105
  .map(row => {
1106
1106
  return (
1107
- <TableRow key={row[rowID]}>
1107
+ <TableRow key={row.pxRefObjectInsName || row.pyGUID || row.pyID}>
1108
1108
  {selectionMode === SELECTION_MODE.SINGLE && (
1109
1109
  <TableCell>
1110
1110
  <Radio
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/react-sdk-overrides",
3
- "version": "0.23.36",
3
+ "version": "0.23.37",
4
4
  "description": "React SDK - Code for overriding components",
5
5
  "_filesComment": "During packing, npm ignores everything NOT in the files list",
6
6
  "files": [