@pega/react-sdk-overrides 0.24.3 → 0.242.1
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.
- package/lib/designSystemExtension/AlertBanner/AlertBanner.tsx +1 -1
- package/lib/designSystemExtension/Banner/Banner.tsx +1 -1
- package/lib/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +11 -2
- package/lib/designSystemExtension/DetailsFields/DetailsFields.tsx +3 -3
- package/lib/designSystemExtension/FieldGroup/FieldGroup.tsx +4 -4
- package/lib/designSystemExtension/FieldGroupList/FieldGroupList.tsx +4 -4
- package/lib/designSystemExtension/FieldValueList/FieldValueList.tsx +3 -3
- package/lib/designSystemExtension/Operator/Operator.tsx +6 -5
- package/lib/designSystemExtension/Pulse/Pulse.tsx +2 -2
- package/lib/designSystemExtension/RichTextEditor/RichTextEditor.tsx +3 -2
- package/lib/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx +1 -1
- package/lib/field/AutoComplete/AutoComplete.tsx +3 -3
- package/lib/field/CancelAlert/CancelAlert.tsx +3 -3
- package/lib/field/Checkbox/Checkbox.tsx +3 -3
- package/lib/field/Currency/Currency.tsx +1 -1
- package/lib/field/Date/Date.tsx +22 -41
- package/lib/field/DateTime/DateTime.tsx +22 -34
- package/lib/field/Decimal/Decimal.tsx +1 -1
- package/lib/field/Dropdown/Dropdown.tsx +2 -2
- package/lib/field/Email/Email.tsx +2 -2
- package/lib/field/Group/Group.tsx +1 -1
- package/lib/field/Integer/Integer.tsx +1 -1
- package/lib/field/Multiselect/Multiselect.tsx +8 -14
- package/lib/field/Percentage/Percentage.tsx +2 -2
- package/lib/field/Phone/Phone.tsx +17 -8
- package/lib/field/RadioButtons/RadioButtons.tsx +2 -2
- package/lib/field/SemanticLink/SemanticLink.tsx +3 -3
- package/lib/field/TextArea/TextArea.tsx +1 -1
- package/lib/field/TextContent/TextContent.tsx +1 -1
- package/lib/field/TextInput/TextInput.tsx +1 -1
- package/lib/field/Time/Time.tsx +19 -15
- package/lib/field/URL/URL.tsx +1 -1
- package/lib/field/UserReference/UserReference.tsx +1 -1
- package/lib/helpers/simpleTableHelpers.ts +1 -1
- package/lib/infra/ActionButtons/ActionButtons.tsx +3 -3
- package/lib/infra/Assignment/Assignment.tsx +35 -5
- package/lib/infra/Containers/FlowContainer/FlowContainer.tsx +8 -9
- package/lib/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.tsx +2 -2
- package/lib/infra/Containers/ModalViewContainer/ModalViewContainer.tsx +8 -8
- package/lib/infra/Containers/ViewContainer/ViewContainer.tsx +1 -1
- package/lib/infra/DashboardFilter/DashboardFilter.tsx +1 -1
- package/lib/infra/DashboardFilter/filterUtils.tsx +2 -1
- package/lib/infra/DeferLoad/DeferLoad.tsx +2 -2
- package/lib/infra/NavBar/NavBar.tsx +17 -16
- package/lib/infra/RootContainer/RootContainer.tsx +5 -6
- package/lib/infra/Stages/Stages.tsx +4 -4
- package/lib/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.tsx +2 -2
- package/lib/infra/VerticalTabs/VerticalTabs/VerticalTabs.tsx +2 -2
- package/lib/template/AppShell/AppShell.tsx +21 -2
- package/lib/template/CaseView/CaseView.tsx +5 -5
- package/lib/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx +7 -7
- package/lib/template/Confirmation/Confirmation.tsx +2 -1
- package/lib/template/DataReference/DataReference.tsx +1 -1
- package/lib/template/Details/Details/Details.tsx +1 -1
- package/lib/template/Details/DetailsSubTabs/DetailsSubTabs.tsx +3 -3
- package/lib/template/Details/DetailsThreeColumn/DetailsThreeColumn.tsx +1 -1
- package/lib/template/Details/DetailsTwoColumn/DetailsTwoColumn.tsx +1 -1
- package/lib/template/Details/DynamicTabs/DynamicTabs.tsx +3 -2
- package/lib/template/InlineDashboard/InlineDashboard.tsx +2 -2
- package/lib/template/ListView/ListView.tsx +57 -63
- package/lib/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.tsx +1 -1
- package/lib/template/OneColumn/OneColumn/OneColumn.tsx +2 -2
- package/lib/template/PromotedFilters/PromotedFilters.tsx +1 -1
- package/lib/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx +29 -25
- package/lib/template/SubTabs/SubTabs.tsx +2 -2
- package/lib/template/TwoColumn/TwoColumn/TwoColumn.tsx +2 -2
- package/lib/template/TwoColumn/TwoColumnTab/TwoColumnTab.tsx +2 -2
- package/lib/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.tsx +1 -1
- package/lib/template/WssNavBar/WssNavBar.tsx +9 -9
- package/lib/widget/AppAnnouncement/AppAnnouncement.tsx +2 -2
- package/lib/widget/Attachment/Attachment.tsx +3 -2
- package/lib/widget/CaseHistory/CaseHistory.tsx +12 -10
- package/lib/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx +1 -1
- package/lib/widget/FileUtility/FileUtility/FileUtility.tsx +4 -3
- package/lib/widget/Followers/Followers.tsx +2 -2
- package/lib/widget/SummaryItem/SummaryItem.tsx +3 -2
- package/lib/widget/ToDo/ToDo.tsx +85 -21
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren, ReactElement } from 'react';
|
|
2
|
-
import { Grid, Typography } from '@material
|
|
3
|
-
import
|
|
2
|
+
import { Grid, 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 InlineDashboardProps extends PConnProps {
|
|
@@ -4,37 +4,39 @@
|
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-shadow */
|
|
5
5
|
|
|
6
6
|
import React, { useState, useEffect, useRef } from 'react';
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
7
|
+
import { Theme } from '@mui/material/styles';
|
|
8
|
+
import createStyles from '@mui/styles/createStyles';
|
|
9
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
10
|
+
import Table from '@mui/material/Table';
|
|
11
|
+
import TableBody from '@mui/material/TableBody';
|
|
12
|
+
import TableCell from '@mui/material/TableCell';
|
|
13
|
+
import TableContainer from '@mui/material/TableContainer';
|
|
14
|
+
import TableHead from '@mui/material/TableHead';
|
|
15
|
+
import TablePagination from '@mui/material/TablePagination';
|
|
16
|
+
import TableRow from '@mui/material/TableRow';
|
|
17
|
+
import TableSortLabel from '@mui/material/TableSortLabel';
|
|
18
|
+
import Paper from '@mui/material/Paper';
|
|
19
|
+
import MoreIcon from '@mui/icons-material/MoreVert';
|
|
20
|
+
import FilterListIcon from '@mui/icons-material/FilterList';
|
|
21
|
+
import SubjectIcon from '@mui/icons-material/Subject';
|
|
22
|
+
import SearchIcon from '@mui/icons-material/Search';
|
|
23
|
+
import TextField from '@mui/material/TextField';
|
|
24
|
+
import Grid from '@mui/material/Grid';
|
|
25
|
+
import Menu from '@mui/material/Menu';
|
|
26
|
+
import MenuItem from '@mui/material/MenuItem';
|
|
27
|
+
import Dialog from '@mui/material/Dialog';
|
|
28
|
+
import DialogActions from '@mui/material/DialogActions';
|
|
29
|
+
import DialogContent from '@mui/material/DialogContent';
|
|
30
|
+
import DialogTitle from '@mui/material/DialogTitle';
|
|
31
|
+
import Select from '@mui/material/Select';
|
|
32
|
+
import Button from '@mui/material/Button';
|
|
33
|
+
import Link from '@mui/material/Link';
|
|
34
|
+
import Typography from '@mui/material/Typography';
|
|
35
|
+
import Snackbar from '@mui/material/Snackbar';
|
|
36
|
+
import IconButton from '@mui/material/IconButton';
|
|
37
|
+
import CloseIcon from '@mui/icons-material/Close';
|
|
38
|
+
import { Radio } from '@mui/material';
|
|
39
|
+
import Checkbox from '@mui/material/Checkbox';
|
|
38
40
|
|
|
39
41
|
import { filterData } from '@pega/react-sdk-components/lib/components/helpers/simpleTableHelpers';
|
|
40
42
|
|
|
@@ -65,7 +67,6 @@ interface ListViewProps extends PConnProps {
|
|
|
65
67
|
const SELECTION_MODE = { SINGLE: 'single', MULTI: 'multi' };
|
|
66
68
|
|
|
67
69
|
let myRows: any[];
|
|
68
|
-
let myDisplayColumnList: any[];
|
|
69
70
|
|
|
70
71
|
let menuColumnId = '';
|
|
71
72
|
let menuColumnType = '';
|
|
@@ -119,6 +120,7 @@ export default function ListView(props: ListViewProps) {
|
|
|
119
120
|
const rowID = compositeKeys && compositeKeys?.length === 1 ? compositeKeys[0] : defRowID;
|
|
120
121
|
|
|
121
122
|
const [arRows, setRows] = useState<any[]>([]);
|
|
123
|
+
const [rowsData, setRowsData] = useState<any[]>([]);
|
|
122
124
|
const [arColumns, setColumns] = useState<any[]>([]);
|
|
123
125
|
const [response, setResponse] = useState<any[]>([]);
|
|
124
126
|
|
|
@@ -291,16 +293,6 @@ export default function ListView(props: ListViewProps) {
|
|
|
291
293
|
});
|
|
292
294
|
}
|
|
293
295
|
|
|
294
|
-
function getMyColumnList(arCols: any[]): string[] {
|
|
295
|
-
const myColList: string[] = [];
|
|
296
|
-
|
|
297
|
-
arCols.forEach(col => {
|
|
298
|
-
myColList.push(col.id);
|
|
299
|
-
});
|
|
300
|
-
|
|
301
|
-
return myColList;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
296
|
/** Will return field from a filter expression */
|
|
305
297
|
function getFieldFromFilter(filter, dateRange = false) {
|
|
306
298
|
let fieldValue;
|
|
@@ -543,8 +535,8 @@ export default function ListView(props: ListViewProps) {
|
|
|
543
535
|
|
|
544
536
|
// store globally, so can be searched, filtered, etc.
|
|
545
537
|
myRows = usingDataResults;
|
|
546
|
-
myDisplayColumnList = getMyColumnList(myColumns);
|
|
547
538
|
|
|
539
|
+
setRowsData(myRows);
|
|
548
540
|
// At this point, if we have data ready to render and haven't been asked
|
|
549
541
|
// to NOT call setRows and setColumns, call them
|
|
550
542
|
if (bCallSetRowsColumns) {
|
|
@@ -604,24 +596,22 @@ export default function ListView(props: ListViewProps) {
|
|
|
604
596
|
}, [listContext]);
|
|
605
597
|
|
|
606
598
|
function searchFilter(value: string, rows: any[]) {
|
|
599
|
+
const cols = arColumns.map(ele => {
|
|
600
|
+
return ele.id;
|
|
601
|
+
});
|
|
602
|
+
|
|
607
603
|
function filterArray(el: any): boolean {
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
myVal = myVal.toString();
|
|
616
|
-
}
|
|
617
|
-
if (myVal.toLowerCase().indexOf(value.toLowerCase()) >= 0) {
|
|
618
|
-
return true;
|
|
619
|
-
}
|
|
604
|
+
return Object.keys(el).some(key => {
|
|
605
|
+
// only search columns that are displayed (pzInsKey and pxRefObjectClass are added and may or may not be displayed)
|
|
606
|
+
if (cols.includes(key)) {
|
|
607
|
+
const myVal = el[key];
|
|
608
|
+
if (myVal !== null && typeof myVal !== 'undefined') {
|
|
609
|
+
const strVal = String(myVal); // Ensure myVal is a string
|
|
610
|
+
return strVal.toLowerCase().includes(value.toLowerCase());
|
|
620
611
|
}
|
|
621
612
|
}
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
return bReturn;
|
|
613
|
+
return false;
|
|
614
|
+
});
|
|
625
615
|
}
|
|
626
616
|
|
|
627
617
|
rows = rows.filter(filterArray);
|
|
@@ -631,8 +621,7 @@ export default function ListView(props: ListViewProps) {
|
|
|
631
621
|
|
|
632
622
|
function _onSearch(event: any) {
|
|
633
623
|
const searchValue = event.target.value;
|
|
634
|
-
|
|
635
|
-
const filteredRows = searchFilter(searchValue, myRows.slice());
|
|
624
|
+
const filteredRows = searchFilter(searchValue, rowsData?.slice());
|
|
636
625
|
|
|
637
626
|
setRows(filteredRows);
|
|
638
627
|
}
|
|
@@ -683,7 +672,7 @@ export default function ListView(props: ListViewProps) {
|
|
|
683
672
|
}
|
|
684
673
|
}
|
|
685
674
|
|
|
686
|
-
function handleSnackbarClose(event: React.SyntheticEvent |
|
|
675
|
+
function handleSnackbarClose(event: React.SyntheticEvent<any> | Event, reason?: string) {
|
|
687
676
|
if (reason === 'clickaway') {
|
|
688
677
|
return;
|
|
689
678
|
}
|
|
@@ -1060,6 +1049,7 @@ export default function ListView(props: ListViewProps) {
|
|
|
1060
1049
|
onClick={() => {
|
|
1061
1050
|
_listViewClick(row, column);
|
|
1062
1051
|
}}
|
|
1052
|
+
underline='hover'
|
|
1063
1053
|
>
|
|
1064
1054
|
{column.format && typeof value === 'number' ? column.format(value) : value}
|
|
1065
1055
|
</Link>
|
|
@@ -1171,7 +1161,7 @@ export default function ListView(props: ListViewProps) {
|
|
|
1171
1161
|
<DialogContent>
|
|
1172
1162
|
{containsDateOrTime ? (
|
|
1173
1163
|
<>
|
|
1174
|
-
<Select value={displayDialogDateFilter} onChange={_dialogDateFilter} fullWidth>
|
|
1164
|
+
<Select variant='standard' value={displayDialogDateFilter} onChange={_dialogDateFilter} fullWidth>
|
|
1175
1165
|
<MenuItem value='notequal'>is not equal to</MenuItem>
|
|
1176
1166
|
<MenuItem value='after'>after</MenuItem>
|
|
1177
1167
|
<MenuItem value='before'>before</MenuItem>
|
|
@@ -1180,6 +1170,7 @@ export default function ListView(props: ListViewProps) {
|
|
|
1180
1170
|
</Select>
|
|
1181
1171
|
{filterType === 'Date' && (
|
|
1182
1172
|
<TextField
|
|
1173
|
+
variant='standard'
|
|
1183
1174
|
autoFocus
|
|
1184
1175
|
margin='dense'
|
|
1185
1176
|
id='containsFilter'
|
|
@@ -1191,6 +1182,7 @@ export default function ListView(props: ListViewProps) {
|
|
|
1191
1182
|
)}
|
|
1192
1183
|
{filterType === 'DateTime' && (
|
|
1193
1184
|
<TextField
|
|
1185
|
+
variant='standard'
|
|
1194
1186
|
autoFocus
|
|
1195
1187
|
margin='dense'
|
|
1196
1188
|
id='containsFilter'
|
|
@@ -1202,6 +1194,7 @@ export default function ListView(props: ListViewProps) {
|
|
|
1202
1194
|
)}
|
|
1203
1195
|
{filterType === 'Time' && (
|
|
1204
1196
|
<TextField
|
|
1197
|
+
variant='standard'
|
|
1205
1198
|
autoFocus
|
|
1206
1199
|
margin='dense'
|
|
1207
1200
|
id='containsFilter'
|
|
@@ -1214,12 +1207,13 @@ export default function ListView(props: ListViewProps) {
|
|
|
1214
1207
|
</>
|
|
1215
1208
|
) : (
|
|
1216
1209
|
<>
|
|
1217
|
-
<Select fullWidth onChange={_dialogContainsFilter} value={displayDialogContainsFilter}>
|
|
1210
|
+
<Select variant='standard' fullWidth onChange={_dialogContainsFilter} value={displayDialogContainsFilter}>
|
|
1218
1211
|
<MenuItem value='contains'>Contains</MenuItem>
|
|
1219
1212
|
<MenuItem value='equals'>Equals</MenuItem>
|
|
1220
1213
|
<MenuItem value='startswith'>Starts with</MenuItem>
|
|
1221
1214
|
</Select>
|
|
1222
1215
|
<TextField
|
|
1216
|
+
variant='standard'
|
|
1223
1217
|
autoFocus
|
|
1224
1218
|
margin='dense'
|
|
1225
1219
|
id='containsFilter'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElement } from 'react';
|
|
2
|
-
import Grid, { GridSize } from '@material
|
|
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';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren, ReactElement } from 'react';
|
|
2
|
-
import { Grid } from '@material
|
|
3
|
-
import
|
|
2
|
+
import { Grid } 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 OneColumnProps extends PConnProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback, useMemo, useState, createElement } from 'react';
|
|
2
|
-
import Button from '@material
|
|
2
|
+
import Button from '@mui/material/Button';
|
|
3
3
|
|
|
4
4
|
import createPConnectComponent from '@pega/react-sdk-components/lib/bridge/react_pconnect';
|
|
5
5
|
import { isEmptyObject } from '@pega/react-sdk-components/lib/components/helpers/common-utils';
|
|
@@ -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
|
|
4
|
-
import TableBody from '@material
|
|
5
|
-
import TableCell from '@material
|
|
6
|
-
import TableContainer from '@material
|
|
7
|
-
import TableHead from '@material
|
|
8
|
-
import TableRow from '@material
|
|
9
|
-
import Paper from '@material
|
|
10
|
-
import
|
|
11
|
-
import Link from '@material
|
|
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
|
|
14
|
-
import MoreIcon from '@
|
|
15
|
-
import Menu from '@material
|
|
16
|
-
import MenuItem from '@material
|
|
17
|
-
import FilterListIcon from '@
|
|
18
|
-
import SubjectIcon from '@
|
|
19
|
-
import Dialog from '@material
|
|
20
|
-
import DialogActions from '@material
|
|
21
|
-
import DialogContent from '@material
|
|
22
|
-
import DialogTitle from '@material
|
|
23
|
-
import Select from '@material
|
|
24
|
-
import Button from '@material
|
|
25
|
-
import TextField from '@material
|
|
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';
|
|
@@ -698,7 +698,7 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
|
|
|
698
698
|
</TableContainer>
|
|
699
699
|
{showAddRowButton && (
|
|
700
700
|
<div style={{ fontSize: '1rem' }}>
|
|
701
|
-
<Link style={{ cursor: 'pointer' }} onClick={addRecord}>
|
|
701
|
+
<Link style={{ cursor: 'pointer' }} onClick={addRecord} underline='hover'>
|
|
702
702
|
+ Add
|
|
703
703
|
</Link>
|
|
704
704
|
</div>
|
|
@@ -716,7 +716,7 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
|
|
|
716
716
|
<DialogContent>
|
|
717
717
|
{containsDateOrTime ? (
|
|
718
718
|
<>
|
|
719
|
-
<Select value={displayDialogDateFilter} onChange={_dialogDateFilter} fullWidth>
|
|
719
|
+
<Select variant='standard' value={displayDialogDateFilter} onChange={_dialogDateFilter} fullWidth>
|
|
720
720
|
<MenuItem value='notequal'>is not equal to</MenuItem>
|
|
721
721
|
<MenuItem value='equal'>is equal to</MenuItem>
|
|
722
722
|
<MenuItem value='after'>after</MenuItem>
|
|
@@ -726,6 +726,7 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
|
|
|
726
726
|
</Select>
|
|
727
727
|
{filterType === 'Date' && (
|
|
728
728
|
<TextField
|
|
729
|
+
variant='standard'
|
|
729
730
|
autoFocus
|
|
730
731
|
margin='dense'
|
|
731
732
|
id='containsFilter'
|
|
@@ -737,6 +738,7 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
|
|
|
737
738
|
)}
|
|
738
739
|
{filterType === 'DateTime' && (
|
|
739
740
|
<TextField
|
|
741
|
+
variant='standard'
|
|
740
742
|
autoFocus
|
|
741
743
|
margin='dense'
|
|
742
744
|
id='containsFilter'
|
|
@@ -748,6 +750,7 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
|
|
|
748
750
|
)}
|
|
749
751
|
{filterType === 'Time' && (
|
|
750
752
|
<TextField
|
|
753
|
+
variant='standard'
|
|
751
754
|
autoFocus
|
|
752
755
|
margin='dense'
|
|
753
756
|
id='containsFilter'
|
|
@@ -760,12 +763,13 @@ export default function SimpleTableManual(props: PropsWithChildren<SimpleTableMa
|
|
|
760
763
|
</>
|
|
761
764
|
) : (
|
|
762
765
|
<>
|
|
763
|
-
<Select id='filter' fullWidth onChange={_dialogContainsFilter} value={displayDialogContainsFilter}>
|
|
766
|
+
<Select variant='standard' id='filter' fullWidth onChange={_dialogContainsFilter} value={displayDialogContainsFilter}>
|
|
764
767
|
<MenuItem value='contains'>Contains</MenuItem>
|
|
765
768
|
<MenuItem value='equals'>Equals</MenuItem>
|
|
766
769
|
<MenuItem value='startswith'>Starts with</MenuItem>
|
|
767
770
|
</Select>
|
|
768
771
|
<TextField
|
|
772
|
+
variant='standard'
|
|
769
773
|
autoFocus
|
|
770
774
|
margin='dense'
|
|
771
775
|
id='containsFilter'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Children, PropsWithChildren, useEffect, useState } from 'react';
|
|
2
|
-
import { Tab, Tabs } from '@material
|
|
3
|
-
import { TabContext, TabPanel } from '@
|
|
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
|
|
3
|
-
import
|
|
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
|
|
3
|
-
import
|
|
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
|
|
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';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import
|
|
3
|
-
import AppBar from '@material
|
|
4
|
-
import Box from '@material
|
|
5
|
-
import Toolbar from '@material
|
|
6
|
-
import Container from '@material
|
|
7
|
-
import { IconButton, Menu, MenuItem, Typography, Button } from '@material
|
|
8
|
-
import Avatar from '@material
|
|
9
|
-
import MenuIcon from '@
|
|
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
|
|
2
|
-
import
|
|
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,8 +2,8 @@
|
|
|
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
|
|
6
|
-
import MoreVertIcon from '@
|
|
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';
|
|
@@ -430,6 +430,7 @@ export default function Attachment(props: AttachmentProps) {
|
|
|
430
430
|
aria-expanded={open ? 'true' : undefined}
|
|
431
431
|
aria-haspopup='true'
|
|
432
432
|
onClick={handleClick}
|
|
433
|
+
size='large'
|
|
433
434
|
>
|
|
434
435
|
<MoreVertIcon />
|
|
435
436
|
</IconButton>
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { useEffect, useRef, useState } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
|
-
import TextField from '@material
|
|
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
|
|
11
|
-
import MoreVertIcon from '@
|
|
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';
|
|
@@ -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
|
|
3
|
-
import
|
|
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 {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
|
-
import { IconButton, Menu, MenuItem } from '@material
|
|
3
|
-
import MoreVertIcon from '@
|
|
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>
|