@pega/react-sdk-overrides 0.25.2 → 0.25.3
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/Banner/Banner.css +1 -1
- package/lib/designSystemExtension/Banner/Banner.tsx +7 -7
- package/lib/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +8 -10
- package/lib/designSystemExtension/DetailsFields/DetailsFields.tsx +11 -13
- package/lib/designSystemExtension/FieldGroup/FieldGroup.tsx +7 -8
- package/lib/designSystemExtension/FieldGroupList/FieldGroupList.tsx +9 -9
- package/lib/designSystemExtension/FieldValueList/FieldValueList.tsx +7 -8
- package/lib/designSystemExtension/Operator/Operator.tsx +11 -12
- package/lib/designSystemExtension/RichTextEditor/RichTextEditor.tsx +28 -3
- package/lib/designSystemExtension/WssQuickCreate/WssQuickCreate.css +4 -4
- package/lib/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx +1 -1
- package/lib/field/CancelAlert/CancelAlert.css +4 -4
- package/lib/field/CancelAlert/CancelAlert.tsx +5 -5
- package/lib/field/Checkbox/Checkbox.tsx +96 -3
- package/lib/field/Currency/currency-utils.ts +1 -2
- package/lib/field/Dropdown/Dropdown.tsx +0 -2
- package/lib/field/Group/Group.tsx +5 -5
- package/lib/field/Location/Location.tsx +256 -0
- package/lib/field/Location/config-ext.json +8 -0
- package/lib/field/Location/index.tsx +1 -0
- package/lib/field/ObjectReference/ObjectReference.tsx +235 -0
- package/lib/field/ObjectReference/index.tsx +1 -0
- package/lib/field/ObjectReference/utils.ts +111 -0
- package/lib/field/RadioButtons/RadioButtons.tsx +46 -1
- package/lib/field/ScalarList/ScalarList.tsx +1 -2
- package/lib/field/SelectableCard/SelectableCard.tsx +175 -0
- package/lib/field/SelectableCard/index.tsx +1 -0
- package/lib/field/SelectableCard/utils.tsx +226 -0
- package/lib/field/SemanticLink/SemanticLink.tsx +159 -27
- package/lib/field/SemanticLink/utils.ts +1 -1
- package/lib/field/TextContent/TextContent.tsx +0 -1
- package/lib/field/UserReference/UserReference.tsx +0 -1
- package/lib/helpers/attachmentHelpers.ts +56 -35
- package/lib/helpers/common-utils.ts +2 -2
- package/lib/helpers/data_page.ts +0 -1
- package/lib/helpers/formatters/CurrencyMap.ts +0 -2
- package/lib/helpers/simpleTableHelpers.ts +117 -5
- package/lib/helpers/utils.ts +8 -1
- package/lib/helpers/versionHelpers.ts +0 -1
- package/lib/infra/ActionButtons/ActionButtons.tsx +28 -21
- package/lib/infra/Assignment/Assignment.tsx +2 -2
- package/lib/infra/Containers/FlowContainer/FlowContainer.tsx +14 -93
- package/lib/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.tsx +0 -1
- package/lib/infra/Containers/ModalViewContainer/ModalViewContainer.tsx +2 -2
- package/lib/infra/Containers/ViewContainer/ViewContainer.tsx +3 -4
- package/lib/infra/Containers/container-helpers.ts +47 -1
- package/lib/infra/DashboardFilter/DashboardFilter.tsx +0 -2
- package/lib/infra/DashboardFilter/filterUtils.tsx +3 -4
- package/lib/infra/DeferLoad/DeferLoad.tsx +1 -3
- package/lib/infra/ErrorBoundary/ErrorBoundary.tsx +0 -2
- package/lib/infra/MultiStep/MultiStep.css +8 -8
- package/lib/infra/NavBar/NavBar.css +1 -1
- package/lib/infra/NavBar/NavBar.tsx +3 -4
- package/lib/infra/Reference/Reference.tsx +2 -3
- package/lib/infra/RootContainer/RootContainer.tsx +0 -1
- package/lib/template/AdvancedSearch/AdvancedSearch.tsx +0 -1
- package/lib/template/AdvancedSearch/SearchGroup/persistUtils.ts +3 -9
- package/lib/template/AdvancedSearch/SearchGroups/SearchGroups.tsx +3 -4
- package/lib/template/AdvancedSearch/SearchGroups/hooks.ts +1 -1
- package/lib/template/AppShell/AppShell.css +1 -1
- package/lib/template/AppShell/AppShell.tsx +4 -8
- package/lib/template/CaseSummary/CaseSummary.tsx +0 -1
- package/lib/template/CaseView/CaseView.tsx +13 -19
- package/lib/template/Confirmation/Confirmation.tsx +0 -1
- package/lib/template/DataReference/DataReference.tsx +7 -10
- package/lib/template/DataReference/SearchForm.tsx +6 -5
- package/lib/template/DataReference/{utils.js → utils.ts} +3 -3
- package/lib/template/DefaultForm/DefaultForm.tsx +1 -1
- package/lib/template/Details/Details/Details.tsx +10 -10
- package/lib/template/Details/DetailsThreeColumn/DetailsThreeColumn.tsx +10 -10
- package/lib/template/Details/DetailsTwoColumn/DetailsTwoColumn.tsx +10 -10
- package/lib/template/FieldGroupTemplate/FieldGroupTemplate.tsx +1 -2
- package/lib/template/InlineDashboard/InlineDashboard.tsx +12 -14
- package/lib/template/ListView/ListView.tsx +8 -20
- package/lib/template/ListView/hooks.ts +1 -5
- package/lib/template/ListView/utils.ts +1 -1
- package/lib/template/NarrowWide/NarrowWide/NarrowWide.tsx +3 -3
- package/lib/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.tsx +10 -10
- package/lib/template/OneColumn/OneColumn/OneColumn.tsx +5 -5
- package/lib/template/PromotedFilters/PromotedFilters.tsx +0 -1
- package/lib/template/SimpleTable/SimpleTable/SimpleTable.tsx +1 -2
- package/lib/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx +33 -30
- package/lib/template/TwoColumn/TwoColumn/TwoColumn.tsx +1 -2
- package/lib/template/TwoColumn/TwoColumnTab/TwoColumnTab.tsx +1 -2
- package/lib/template/WideNarrow/WideNarrow/WideNarrow.tsx +3 -3
- package/lib/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.tsx +10 -10
- package/lib/template/WssNavBar/WssNavBar.css +1 -1
- package/lib/template/WssNavBar/WssNavBar.tsx +4 -4
- package/lib/widget/Attachment/Attachment.css +6 -8
- package/lib/widget/Attachment/Attachment.tsx +61 -57
- package/lib/widget/CaseHistory/CaseHistory.tsx +3 -3
- package/lib/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.css +0 -14
- package/lib/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx +2 -2
- package/lib/widget/FileUtility/FileUtility/FileUtility.css +7 -6
- package/lib/widget/FileUtility/FileUtility/FileUtility.tsx +4 -6
- package/lib/widget/Followers/Followers.tsx +0 -2
- package/lib/widget/QuickCreate/QuickCreate.tsx +0 -1
- package/lib/widget/SummaryItem/SummaryItem.css +9 -11
- package/lib/widget/SummaryItem/SummaryItem.tsx +1 -1
- package/lib/widget/ToDo/ToDo.css +1 -13
- package/lib/widget/ToDo/ToDo.tsx +15 -7
- package/package.json +1 -1
- /package/lib/template/DataReference/{DataReferenceAdvancedSearchContext.js → DataReferenceAdvancedSearchContext.ts} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
width: 100%;
|
|
3
3
|
padding: 0.625rem 0rem;
|
|
4
4
|
text-align: left;
|
|
5
|
-
background-color:
|
|
5
|
+
/* background-color: var(--utility-background-color); */
|
|
6
6
|
border-radius: 0.6125rem;
|
|
7
7
|
margin: 0.3125rem 0rem;
|
|
8
8
|
position: relative;
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
.psdk-file-utility-card-svg-icon {
|
|
17
17
|
width: 1.4rem;
|
|
18
18
|
display: inline-block;
|
|
19
|
+
filter: var(--svg-color);
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
.header-text {
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
.psdk-utility-count {
|
|
28
|
-
background:
|
|
29
|
+
background: var(--utility-count-background-color);
|
|
29
30
|
border-radius: calc(1.125 * 0.5rem);
|
|
30
31
|
font-size: 0.75rem;
|
|
31
32
|
font-weight: bold;
|
|
@@ -40,7 +41,7 @@
|
|
|
40
41
|
align-items: center;
|
|
41
42
|
height: 100%;
|
|
42
43
|
width: 100%;
|
|
43
|
-
background-color:
|
|
44
|
+
background-color: var(--modal-background-color);
|
|
44
45
|
position: fixed;
|
|
45
46
|
z-index: 999;
|
|
46
47
|
top: 0px;
|
|
@@ -51,11 +52,11 @@
|
|
|
51
52
|
display: table;
|
|
52
53
|
margin: auto;
|
|
53
54
|
min-width: 650px;
|
|
54
|
-
background-color:
|
|
55
|
-
border: 1px solid
|
|
55
|
+
background-color: var(--modal-top-color);
|
|
56
|
+
border: 1px solid var(--modal-border-color);
|
|
56
57
|
border-radius: 10px;
|
|
57
58
|
padding: 20px;
|
|
58
|
-
box-shadow: 0 0 10px 3px
|
|
59
|
+
box-shadow: 0 0 10px 3px var(--modal-box-shadow-color);
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
.psdk-modal-file-selector {
|
|
@@ -7,7 +7,7 @@ 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 '@mui/material';
|
|
10
|
+
import { IconButton, Menu, MenuItem, Button, CircularProgress, Card } from '@mui/material';
|
|
11
11
|
import MoreVertIcon from '@mui/icons-material/MoreVert';
|
|
12
12
|
|
|
13
13
|
import { validateMaxSize } from '@pega/react-sdk-components/lib/components/helpers/attachmentHelpers';
|
|
@@ -179,7 +179,7 @@ export default function FileUtility(props: FileUtilityProps) {
|
|
|
179
179
|
const context = thePConn.getContextName();
|
|
180
180
|
|
|
181
181
|
attachUtils
|
|
182
|
-
// @ts-
|
|
182
|
+
// @ts-expect-error - 3rd parameter "responseEncoding" is optional
|
|
183
183
|
.downloadAttachment(ID, context)
|
|
184
184
|
.then((content: any) => {
|
|
185
185
|
if (type === 'FILE') {
|
|
@@ -203,7 +203,6 @@ export default function FileUtility(props: FileUtilityProps) {
|
|
|
203
203
|
attachUtils
|
|
204
204
|
.deleteAttachment(ID, context)
|
|
205
205
|
.then(() => {
|
|
206
|
-
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
207
206
|
getAttachments();
|
|
208
207
|
})
|
|
209
208
|
.catch();
|
|
@@ -488,7 +487,7 @@ export default function FileUtility(props: FileUtilityProps) {
|
|
|
488
487
|
}
|
|
489
488
|
|
|
490
489
|
return (
|
|
491
|
-
<
|
|
490
|
+
<Card className='psdk-utility' id='file-utility'>
|
|
492
491
|
{inProgress && (
|
|
493
492
|
<div className='progress-div'>
|
|
494
493
|
<CircularProgress />
|
|
@@ -630,7 +629,6 @@ export default function FileUtility(props: FileUtilityProps) {
|
|
|
630
629
|
<div className='psdk-modal-file-top'>
|
|
631
630
|
<div className='psdk-view-all-header'>
|
|
632
631
|
<h3>{thePConn.getLocalizedValue('Attachments', '', '')}</h3> {/* 2nd and 3rd args empty string until typedef marked correctly */}
|
|
633
|
-
{/* eslint-disable-next-line jsx-a11y/control-has-associated-label */}
|
|
634
632
|
<button type='button' className='psdk-close-button' onClick={() => setViewAll(false)}>
|
|
635
633
|
<img className='psdk-utility-card-actions-svg-icon' src={closeSvgIcon} />
|
|
636
634
|
</button>
|
|
@@ -641,6 +639,6 @@ export default function FileUtility(props: FileUtilityProps) {
|
|
|
641
639
|
</div>
|
|
642
640
|
</div>
|
|
643
641
|
)}
|
|
644
|
-
</
|
|
642
|
+
</Card>
|
|
645
643
|
);
|
|
646
644
|
}
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
flex-direction: row;
|
|
12
12
|
padding: 0.25rem 0rem 0.25rem 0.25rem;
|
|
13
13
|
margin-bottom: 0.5rem;
|
|
14
|
+
align-items: center;
|
|
15
|
+
border: 0.0625rem solid var(--utility-card-border-color);
|
|
16
|
+
border-radius: calc(0.25rem);
|
|
17
|
+
min-height: 3rem;
|
|
14
18
|
}
|
|
15
19
|
|
|
16
20
|
.psdk-utility-card-icon {
|
|
@@ -23,6 +27,7 @@
|
|
|
23
27
|
.psdk-utility-card-svg-icon {
|
|
24
28
|
width: 2.5rem;
|
|
25
29
|
display: inline-block;
|
|
30
|
+
filter: var(--svg-color);
|
|
26
31
|
}
|
|
27
32
|
|
|
28
33
|
.psdk-utility-card-main {
|
|
@@ -40,14 +45,7 @@
|
|
|
40
45
|
.psdk-utility-card-action-svg-icon {
|
|
41
46
|
width: 1.4rem;
|
|
42
47
|
display: inline-block;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
.psdk-utility-card {
|
|
46
|
-
display: flex;
|
|
47
|
-
align-items: center;
|
|
48
|
-
border: 0.0625rem solid rgb(207, 207, 207);
|
|
49
|
-
border-radius: calc(0.25rem);
|
|
50
|
-
min-height: 3rem;
|
|
48
|
+
filter: var(--svg-color);
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
.psdk-utility-button {
|
|
@@ -65,14 +63,14 @@
|
|
|
65
63
|
width: 1.4rem;
|
|
66
64
|
display: inline-block;
|
|
67
65
|
vertical-align: middle;
|
|
68
|
-
filter:
|
|
66
|
+
filter: var(--svg-color);
|
|
69
67
|
}
|
|
70
68
|
|
|
71
|
-
.psdk-link-button {
|
|
69
|
+
.psdk-utility-link-button {
|
|
72
70
|
background: none;
|
|
73
71
|
border: none;
|
|
74
72
|
align-items: center;
|
|
75
73
|
display: flex;
|
|
76
74
|
padding: 0;
|
|
77
|
-
color:
|
|
75
|
+
color: var(--link-button-color);
|
|
78
76
|
}
|
|
@@ -47,7 +47,7 @@ export default function SummaryItem(props: SummaryItemProps) {
|
|
|
47
47
|
{item.primary.type !== 'URL' && <div className='psdk-utility-card-main-primary-label'>{item.primary.name}</div>}
|
|
48
48
|
{item.primary.type === 'URL' && (
|
|
49
49
|
<div className='psdk-utility-card-main-primary-url'>
|
|
50
|
-
<button type='button' className='psdk-link-button'>
|
|
50
|
+
<button type='button' className='psdk-utility-link-button'>
|
|
51
51
|
{item.primary.name}
|
|
52
52
|
<img className='psdk-utility-card-actions-svg-icon' src={`${imagePath$}${item.primary.icon}.svg`} />
|
|
53
53
|
</button>
|
package/lib/widget/ToDo/ToDo.css
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
text-align: center;
|
|
42
42
|
display: flex;
|
|
43
43
|
background: var(--app-primary-color);
|
|
44
|
-
color:
|
|
44
|
+
color: var(--app-text-color);
|
|
45
45
|
font-weight: bold;
|
|
46
46
|
font-size: 1.25rem;
|
|
47
47
|
}
|
|
@@ -56,18 +56,6 @@
|
|
|
56
56
|
display: inline-flex;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
.psdk-todo-assignment-status {
|
|
60
|
-
background-color: var(--app-neutral-light-color);
|
|
61
|
-
border-radius: 0.125rem;
|
|
62
|
-
color: darkslategray;
|
|
63
|
-
font-size: 0.75rem;
|
|
64
|
-
font-weight: bold;
|
|
65
|
-
line-height: calc(0.5rem * 2.5);
|
|
66
|
-
height: calc(0.5rem * 2.5);
|
|
67
|
-
padding: 0 0.5rem;
|
|
68
|
-
text-transform: uppercase;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
59
|
.psdk-todo-assignment-task {
|
|
72
60
|
color: var(--app-neutral-color);
|
|
73
61
|
}
|
package/lib/widget/ToDo/ToDo.tsx
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-shadow */
|
|
2
1
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
3
2
|
import { Box, Button, Card, CardContent, CardHeader, Avatar, Typography, Badge, List, ListItem, ListItemText } from '@mui/material';
|
|
4
3
|
import Snackbar from '@mui/material/Snackbar';
|
|
@@ -51,10 +50,10 @@ interface ToDoProps extends PConnProps {
|
|
|
51
50
|
// If any, enter additional props that only exist on this component
|
|
52
51
|
datasource?: any;
|
|
53
52
|
myWorkList?: any;
|
|
54
|
-
|
|
53
|
+
|
|
55
54
|
caseInfoID?: string;
|
|
56
55
|
headerText?: string;
|
|
57
|
-
|
|
56
|
+
|
|
58
57
|
itemKey?: string;
|
|
59
58
|
showTodoList?: boolean;
|
|
60
59
|
type?: string;
|
|
@@ -98,6 +97,17 @@ const useStyles = makeStyles(theme => ({
|
|
|
98
97
|
borderLeftColor: theme.palette.primary.light,
|
|
99
98
|
padding: theme.spacing(1),
|
|
100
99
|
margin: theme.spacing(1)
|
|
100
|
+
},
|
|
101
|
+
psdkTodoAssignmentStatus: {
|
|
102
|
+
backgroundColor: 'var(--app-neutral-light-color)',
|
|
103
|
+
borderRadius: '0.125rem',
|
|
104
|
+
color: theme.embedded.resolutionTextColor,
|
|
105
|
+
fontSize: '0.75rem',
|
|
106
|
+
fontWeight: 'bold',
|
|
107
|
+
lineHeight: 'calc(0.5rem * 2.5)',
|
|
108
|
+
height: 'calc(0.5rem * 2.5)',
|
|
109
|
+
padding: '0 0.5rem',
|
|
110
|
+
textTransform: 'uppercase'
|
|
101
111
|
}
|
|
102
112
|
}));
|
|
103
113
|
|
|
@@ -123,7 +133,7 @@ export default function ToDo(props: ToDoProps) {
|
|
|
123
133
|
const [bShowMore, setBShowMore] = useState(true);
|
|
124
134
|
const [showSnackbar, setShowSnackbar] = useState(false);
|
|
125
135
|
const [snackbarMessage, setSnackbarMessage]: any = useState('');
|
|
126
|
-
|
|
136
|
+
|
|
127
137
|
const [assignments, setAssignments] = useState<any[]>(initAssignments());
|
|
128
138
|
|
|
129
139
|
const thePConn = getPConnect();
|
|
@@ -179,7 +189,7 @@ export default function ToDo(props: ToDoProps) {
|
|
|
179
189
|
|
|
180
190
|
function showToast(message: string) {
|
|
181
191
|
const theMessage = `Assignment: ${message}`;
|
|
182
|
-
|
|
192
|
+
|
|
183
193
|
console.error(theMessage);
|
|
184
194
|
setSnackbarMessage(message);
|
|
185
195
|
setShowSnackbar(true);
|
|
@@ -238,7 +248,6 @@ export default function ToDo(props: ToDoProps) {
|
|
|
238
248
|
.openAssignment(id, classname, options)
|
|
239
249
|
.then(() => {
|
|
240
250
|
if (bLogging) {
|
|
241
|
-
// eslint-disable-next-line no-console
|
|
242
251
|
console.log(`openAssignment completed`);
|
|
243
252
|
}
|
|
244
253
|
})
|
|
@@ -277,7 +286,6 @@ export default function ToDo(props: ToDoProps) {
|
|
|
277
286
|
);
|
|
278
287
|
};
|
|
279
288
|
|
|
280
|
-
// eslint-disable-next-line no-nested-ternary
|
|
281
289
|
const getCount = () => (assignmentsSource ? assignmentsSource.length : type === CONSTS.WORKLIST ? count : 0);
|
|
282
290
|
|
|
283
291
|
const toDoContent = (
|
package/package.json
CHANGED
|
File without changes
|