@pega/react-sdk-overrides 0.25.1 → 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.
- package/lib/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
- package/lib/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +48 -30
- package/lib/designSystemExtension/FieldGroup/FieldGroup.tsx +1 -1
- package/lib/designSystemExtension/Operator/Operator.tsx +10 -7
- package/lib/designSystemExtension/Pulse/Pulse.tsx +1 -1
- package/lib/field/AutoComplete/AutoComplete.tsx +1 -1
- package/lib/field/CancelAlert/CancelAlert.tsx +1 -1
- package/lib/field/Checkbox/Checkbox.tsx +1 -1
- package/lib/field/Currency/Currency.tsx +3 -3
- package/lib/field/Date/Date.tsx +3 -7
- package/lib/field/DateTime/DateTime.tsx +3 -8
- package/lib/field/Decimal/Decimal.tsx +3 -5
- package/lib/field/Dropdown/Dropdown.tsx +5 -5
- package/lib/field/Email/Email.tsx +11 -13
- package/lib/field/Group/Group.tsx +2 -2
- package/lib/field/Integer/Integer.tsx +5 -7
- package/lib/field/Percentage/Percentage.tsx +3 -7
- package/lib/field/Phone/Phone.tsx +7 -5
- package/lib/field/RadioButtons/RadioButtons.tsx +1 -1
- package/lib/field/RichText/RichText.tsx +1 -1
- package/lib/field/ScalarList/ScalarList.tsx +1 -1
- package/lib/field/SemanticLink/SemanticLink.tsx +1 -1
- package/lib/field/TextArea/TextArea.tsx +5 -7
- package/lib/field/TextContent/TextContent.tsx +1 -1
- package/lib/field/TextInput/TextInput.tsx +5 -7
- package/lib/field/Time/Time.tsx +3 -7
- package/lib/field/URL/URL.tsx +5 -7
- package/lib/field/UserReference/UserReference.tsx +1 -1
- package/lib/helpers/field-group-utils.ts +1 -1
- package/lib/helpers/simpleTableHelpers.ts +1 -1
- package/lib/infra/Assignment/Assignment.tsx +2 -2
- package/lib/infra/AssignmentCard/AssignmentCard.tsx +2 -2
- package/lib/infra/Containers/FlowContainer/FlowContainer.tsx +1 -1
- package/lib/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.tsx +1 -1
- package/lib/infra/Containers/ModalViewContainer/ModalViewContainer.tsx +1 -1
- package/lib/infra/Containers/ViewContainer/ViewContainer.tsx +1 -1
- package/lib/infra/DashboardFilter/DashboardFilter.tsx +2 -2
- package/lib/infra/DeferLoad/DeferLoad.tsx +1 -1
- package/lib/infra/ErrorBoundary/ErrorBoundary.tsx +1 -1
- package/lib/infra/MultiStep/MultiStep.tsx +2 -2
- package/lib/infra/NavBar/NavBar.tsx +26 -23
- package/lib/infra/Reference/Reference.tsx +1 -1
- package/lib/infra/Region/Region.tsx +1 -1
- package/lib/infra/RootContainer/RootContainer.tsx +2 -2
- package/lib/infra/Stages/Stages.tsx +1 -1
- package/lib/infra/View/View.tsx +2 -2
- package/lib/template/AppShell/AppShell.tsx +2 -2
- package/lib/template/BannerPage/BannerPage.tsx +2 -2
- package/lib/template/CaseSummary/CaseSummary.tsx +2 -2
- package/lib/template/CaseView/CaseView.tsx +2 -2
- package/lib/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx +1 -1
- package/lib/template/Confirmation/Confirmation.tsx +2 -2
- package/lib/template/DataReference/DataReference.tsx +2 -2
- package/lib/template/DefaultForm/DefaultForm.tsx +2 -2
- package/lib/template/Details/Details/Details.tsx +1 -1
- package/lib/template/Details/DetailsSubTabs/DetailsSubTabs.tsx +2 -2
- 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 +1 -1
- package/lib/template/FieldGroupTemplate/FieldGroupTemplate.tsx +1 -1
- package/lib/template/InlineDashboard/InlineDashboard.tsx +2 -2
- package/lib/template/InlineDashboardPage/InlineDashboardPage.tsx +2 -2
- package/lib/template/ListPage/ListPage.tsx +1 -1
- package/lib/template/ListView/ListView.tsx +2 -2
- package/lib/template/MultiReferenceReadOnly/MultiReferenceReadOnly.tsx +1 -1
- package/lib/template/NarrowWide/NarrowWide/NarrowWide.tsx +2 -2
- package/lib/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.tsx +2 -2
- package/lib/template/NarrowWide/NarrowWideForm/NarrowWideForm.tsx +2 -2
- package/lib/template/NarrowWide/NarrowWidePage/NarrowWidePage.tsx +2 -2
- package/lib/template/OneColumn/OneColumn/OneColumn.tsx +2 -2
- package/lib/template/OneColumn/OneColumnPage/OneColumnPage.tsx +1 -1
- package/lib/template/OneColumn/OneColumnTab/OneColumnTab.tsx +2 -2
- package/lib/template/PromotedFilters/PromotedFilters.tsx +1 -1
- package/lib/template/SimpleTable/SimpleTable/SimpleTable.tsx +1 -1
- package/lib/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx +2 -2
- package/lib/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.tsx +1 -1
- package/lib/template/SingleReferenceReadOnly/SingleReferenceReadOnly.tsx +1 -1
- package/lib/template/SubTabs/SubTabs.tsx +2 -2
- package/lib/template/TwoColumn/TwoColumn/TwoColumn.tsx +9 -9
- package/lib/template/TwoColumn/TwoColumnPage/TwoColumnPage.tsx +1 -1
- package/lib/template/TwoColumn/TwoColumnTab/TwoColumnTab.tsx +9 -9
- package/lib/template/WideNarrow/WideNarrow/WideNarrow.tsx +2 -2
- package/lib/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.tsx +2 -2
- package/lib/template/WideNarrow/WideNarrowForm/WideNarrowForm.tsx +2 -2
- package/lib/template/WideNarrow/WideNarrowPage/WideNarrowPage.tsx +2 -2
- package/lib/template/WssNavBar/WssNavBar.tsx +1 -1
- package/lib/widget/AppAnnouncement/AppAnnouncement.tsx +1 -1
- package/lib/widget/Attachment/Attachment.tsx +1 -1
- package/lib/widget/CaseHistory/CaseHistory.tsx +2 -2
- package/lib/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx +1 -1
- package/lib/widget/FileUtility/FileUtility/FileUtility.tsx +1 -1
- package/lib/widget/Followers/Followers.tsx +2 -2
- package/lib/widget/QuickCreate/QuickCreate.tsx +1 -1
- package/lib/widget/SummaryItem/SummaryItem.tsx +1 -1
- package/lib/widget/SummaryList/SummaryList.tsx +1 -1
- package/lib/widget/ToDo/ToDo.tsx +11 -19
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { TextField } from '@mui/material';
|
|
|
3
3
|
|
|
4
4
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
5
5
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
6
|
-
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
6
|
+
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
7
7
|
|
|
8
8
|
interface TextInputProps extends PConnFieldProps {
|
|
9
9
|
// If any, enter additional props that only exist on TextInput here
|
|
@@ -59,11 +59,7 @@ export default function TextInput(props: TextInputProps) {
|
|
|
59
59
|
readOnlyProp = { readOnly: true };
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
testProp = {
|
|
65
|
-
'data-test-id': testId
|
|
66
|
-
};
|
|
62
|
+
const testProps: any = { 'data-test-id': testId };
|
|
67
63
|
|
|
68
64
|
function handleChange(event) {
|
|
69
65
|
// update internal value
|
|
@@ -88,7 +84,9 @@ export default function TextInput(props: TextInputProps) {
|
|
|
88
84
|
error={status === 'error'}
|
|
89
85
|
label={label}
|
|
90
86
|
value={inputValue}
|
|
91
|
-
|
|
87
|
+
slotProps={{
|
|
88
|
+
input: { ...readOnlyProp, inputProps: { maxLength, ...testProps } }
|
|
89
|
+
}}
|
|
92
90
|
/>
|
|
93
91
|
);
|
|
94
92
|
}
|
package/lib/field/Time/Time.tsx
CHANGED
|
@@ -4,7 +4,7 @@ import dayjs from 'dayjs';
|
|
|
4
4
|
|
|
5
5
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
6
6
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
7
|
-
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
7
|
+
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
8
8
|
|
|
9
9
|
interface TimeProps extends PConnFieldProps {
|
|
10
10
|
// If any, enter additional props that only exist on Time here
|
|
@@ -32,11 +32,7 @@ export default function Time(props: TimeProps) {
|
|
|
32
32
|
return <TextInput {...props} />;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
testProp = {
|
|
38
|
-
'data-test-id': testId
|
|
39
|
-
};
|
|
35
|
+
const testProps: any = { 'data-test-id': testId };
|
|
40
36
|
|
|
41
37
|
const handleChange = date => {
|
|
42
38
|
const theValue = date && date.isValid() ? date.format('HH:mm:ss') : null;
|
|
@@ -75,7 +71,7 @@ export default function Time(props: TimeProps) {
|
|
|
75
71
|
error: status === 'error',
|
|
76
72
|
helperText: helperTextToDisplay,
|
|
77
73
|
size: 'small',
|
|
78
|
-
InputProps: { ...
|
|
74
|
+
InputProps: { ...testProps }
|
|
79
75
|
}
|
|
80
76
|
}}
|
|
81
77
|
/>
|
package/lib/field/URL/URL.tsx
CHANGED
|
@@ -3,7 +3,7 @@ import { TextField } from '@mui/material';
|
|
|
3
3
|
|
|
4
4
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
5
5
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
6
|
-
import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
6
|
+
import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
7
7
|
|
|
8
8
|
interface URLComponentProps extends PConnFieldProps {
|
|
9
9
|
// If any, enter additional props that only exist on URLComponent here
|
|
@@ -56,11 +56,7 @@ export default function URLComponent(props: URLComponentProps) {
|
|
|
56
56
|
return <TextInput {...props} />;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
testProp = {
|
|
62
|
-
'data-test-id': testId
|
|
63
|
-
};
|
|
59
|
+
const testProps: any = { 'data-test-id': testId };
|
|
64
60
|
|
|
65
61
|
const handleChange = event => {
|
|
66
62
|
setInputValue(event?.target?.value);
|
|
@@ -85,7 +81,9 @@ export default function URLComponent(props: URLComponentProps) {
|
|
|
85
81
|
error={status === 'error'}
|
|
86
82
|
label={label}
|
|
87
83
|
value={inputValue}
|
|
88
|
-
|
|
84
|
+
slotProps={{
|
|
85
|
+
input: { inputProps: { ...testProps } }
|
|
86
|
+
}}
|
|
89
87
|
/>
|
|
90
88
|
);
|
|
91
89
|
}
|
|
@@ -2,7 +2,7 @@ import { memo, useEffect, useState } from 'react';
|
|
|
2
2
|
import { Typography } from '@mui/material';
|
|
3
3
|
|
|
4
4
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
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 FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
8
8
|
import { getUserId, isUserNameAvailable } from './UserReferenceUtils';
|
|
@@ -231,7 +231,7 @@ export const filterData = filterByColumns => {
|
|
|
231
231
|
case 'Date':
|
|
232
232
|
case 'DateTime':
|
|
233
233
|
case 'Time':
|
|
234
|
-
value =
|
|
234
|
+
value = item[filterObj.ref] !== null || item[filterObj.ref] !== '' ? Utils.getSeconds(item[filterObj.ref]) : null;
|
|
235
235
|
filterValue =
|
|
236
236
|
filterObj.containsFilterValue !== null && filterObj.containsFilterValue !== '' ? Utils.getSeconds(filterObj.containsFilterValue) : null;
|
|
237
237
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { PropsWithChildren, useEffect, useState } from 'react';
|
|
1
|
+
import React, { type PropsWithChildren, useEffect, useState } from 'react';
|
|
2
2
|
import Snackbar from '@mui/material/Snackbar';
|
|
3
3
|
import IconButton from '@mui/material/IconButton';
|
|
4
4
|
import CloseIcon from '@mui/icons-material/Close';
|
|
@@ -6,7 +6,7 @@ import CloseIcon from '@mui/icons-material/Close';
|
|
|
6
6
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
7
7
|
import { useFocusFirstField, useScrolltoTop } from '@pega/react-sdk-components/lib/hooks';
|
|
8
8
|
|
|
9
|
-
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
9
|
+
import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
10
10
|
|
|
11
11
|
interface AssignmentProps extends PConnProps {
|
|
12
12
|
// If any, enter additional props that only exist on this component
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PropsWithChildren, useEffect, useState } from 'react';
|
|
1
|
+
import { type PropsWithChildren, useEffect, useState } from 'react';
|
|
2
2
|
|
|
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
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
5
5
|
|
|
6
6
|
interface AssignmentCardProps extends PConnProps {
|
|
@@ -11,7 +11,7 @@ import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpe
|
|
|
11
11
|
import { withSimpleViewContainerRenderer } from '@pega/react-sdk-components/lib/components/infra/Containers/SimpleView/SimpleView';
|
|
12
12
|
|
|
13
13
|
import { addContainerItem, getToDoAssignments, showBanner, hasContainerItems } from './helpers';
|
|
14
|
-
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
14
|
+
import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
15
15
|
import { LocalizationProvider } from '@mui/x-date-pickers';
|
|
16
16
|
import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
|
|
17
17
|
|
package/lib/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import Button from '@mui/material/Button';
|
|
3
3
|
import makeStyles from '@mui/styles/makeStyles';
|
|
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
|
const useStyles = makeStyles((/* theme */) => ({
|
|
7
7
|
button: {
|
|
@@ -11,7 +11,7 @@ import createPConnectComponent from '@pega/react-sdk-components/lib/bridge/react
|
|
|
11
11
|
// Need to get correct implementation from component map for Assignment and CancelAlert
|
|
12
12
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
13
13
|
import { getBanners } from '@pega/react-sdk-components/lib/components/helpers/case-utils';
|
|
14
|
-
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
14
|
+
import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
15
15
|
|
|
16
16
|
interface ModalViewContainerProps extends PConnProps {
|
|
17
17
|
// If any, enter additional props that only exist on this component
|
|
@@ -4,7 +4,7 @@ import { Box, CircularProgress } from '@mui/material';
|
|
|
4
4
|
import createPConnectComponent from '@pega/react-sdk-components/lib/bridge/react_pconnect';
|
|
5
5
|
import StoreContext from '@pega/react-sdk-components/lib/bridge/Context/StoreContext';
|
|
6
6
|
import { isEmptyObject } from '@pega/react-sdk-components/lib/components/helpers/common-utils';
|
|
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 ViewContainerProps extends PConnProps {
|
|
10
10
|
// If any, enter additional props that only exist on this component
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-shadow */
|
|
2
|
-
import { forwardRef, PropsWithChildren, useEffect, useRef, useState } from 'react';
|
|
2
|
+
import { forwardRef, type PropsWithChildren, useEffect, useRef, useState } from 'react';
|
|
3
3
|
import { TextField } from '@mui/material';
|
|
4
4
|
import { debounce } from 'throttle-debounce';
|
|
5
5
|
import DatePicker from 'react-datepicker';
|
|
6
6
|
|
|
7
7
|
import { createFilter, combineFilters, getFormattedDate, getFilterExpression } from './filterUtils';
|
|
8
|
-
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
8
|
+
import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
9
9
|
|
|
10
10
|
import 'react-datepicker/dist/react-datepicker.css';
|
|
11
11
|
|
|
@@ -4,7 +4,7 @@ import makeStyles from '@mui/styles/makeStyles';
|
|
|
4
4
|
|
|
5
5
|
import createPConnectComponent from '@pega/react-sdk-components/lib/bridge/react_pconnect';
|
|
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 DeferLoadProps extends PConnProps {
|
|
10
10
|
// If any, enter additional props that only exist on this component
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
1
|
+
import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
2
2
|
|
|
3
3
|
interface ErrorBoundaryProps extends PConnProps {
|
|
4
4
|
// If any, enter additional props that only exist on this component
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
2
|
|
|
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
|
import './MultiStep.css';
|
|
7
7
|
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
Drawer,
|
|
8
8
|
List,
|
|
9
9
|
ListItem,
|
|
10
|
+
ListItemButton,
|
|
10
11
|
ListItemIcon,
|
|
11
12
|
ListItemText,
|
|
12
|
-
ListItemSecondaryAction,
|
|
13
13
|
Collapse,
|
|
14
14
|
Divider,
|
|
15
15
|
IconButton,
|
|
@@ -36,7 +36,7 @@ import { logout } from '@pega/auth/lib/sdk-auth-manager';
|
|
|
36
36
|
|
|
37
37
|
import { useNavBar } from '@pega/react-sdk-components/lib/components/helpers/reactContextHelpers';
|
|
38
38
|
import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
39
|
-
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
39
|
+
import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
40
40
|
|
|
41
41
|
import './NavBar.css';
|
|
42
42
|
|
|
@@ -199,7 +199,14 @@ export default function NavBar(props: NavBarProps) {
|
|
|
199
199
|
>
|
|
200
200
|
{open ? (
|
|
201
201
|
<List className={classes.appListItem}>
|
|
202
|
-
<ListItem
|
|
202
|
+
<ListItem
|
|
203
|
+
onClick={handleDrawerOpen}
|
|
204
|
+
secondaryAction={
|
|
205
|
+
<IconButton edge='end' onClick={handleDrawerOpen} size='large'>
|
|
206
|
+
<ChevronLeftIcon className={classes.appListIcon} />
|
|
207
|
+
</IconButton>
|
|
208
|
+
}
|
|
209
|
+
>
|
|
203
210
|
<ListItemIcon>
|
|
204
211
|
<img src={portalLogoImage} className={classes.appListLogo} />
|
|
205
212
|
</ListItemIcon>
|
|
@@ -210,11 +217,6 @@ export default function NavBar(props: NavBarProps) {
|
|
|
210
217
|
</Typography>
|
|
211
218
|
}
|
|
212
219
|
/>
|
|
213
|
-
<ListItemSecondaryAction>
|
|
214
|
-
<IconButton edge='end' onClick={handleDrawerOpen} size='large'>
|
|
215
|
-
<ChevronLeftIcon className={classes.appListIcon} />
|
|
216
|
-
</IconButton>
|
|
217
|
-
</ListItemSecondaryAction>
|
|
218
220
|
</ListItem>
|
|
219
221
|
</List>
|
|
220
222
|
) : (
|
|
@@ -223,17 +225,16 @@ export default function NavBar(props: NavBarProps) {
|
|
|
223
225
|
</div>
|
|
224
226
|
)}
|
|
225
227
|
<List>
|
|
226
|
-
<
|
|
228
|
+
<ListItemButton onClick={handleCaseItemClick}>
|
|
227
229
|
<ListItemIcon>{bShowCaseTypes && open ? <ClearOutlinedIcon fontSize='large' /> : <AddIcon fontSize='large' />}</ListItemIcon>
|
|
228
230
|
<ListItemText primary='Create' />
|
|
229
231
|
{bShowCaseTypes ? <ExpandLess /> : <ExpandMore />}
|
|
230
|
-
</
|
|
232
|
+
</ListItemButton>
|
|
231
233
|
</List>
|
|
232
234
|
<Collapse in={bShowCaseTypes && open} timeout='auto' unmountOnExit className='scrollable'>
|
|
233
235
|
<List component='div' disablePadding>
|
|
234
236
|
{caseTypes.map(caseType => (
|
|
235
|
-
<
|
|
236
|
-
button
|
|
237
|
+
<ListItemButton
|
|
237
238
|
className={classes.nested}
|
|
238
239
|
onClick={() => navPanelCreateCaseType(caseType.pyClassName, caseType.pyFlowType)}
|
|
239
240
|
key={caseType.pyLabel}
|
|
@@ -242,33 +243,35 @@ export default function NavBar(props: NavBarProps) {
|
|
|
242
243
|
<WorkOutlineIcon fontSize='large' />
|
|
243
244
|
</ListItemIcon>
|
|
244
245
|
<ListItemText primary={localeUtils.getLocaleValue(caseType.pyLabel, '', localeReference)} />
|
|
245
|
-
</
|
|
246
|
+
</ListItemButton>
|
|
246
247
|
))}
|
|
247
248
|
</List>
|
|
248
249
|
</Collapse>
|
|
249
250
|
<List>
|
|
250
251
|
{navPages.map(page => (
|
|
251
|
-
<
|
|
252
|
+
<ListItemButton onClick={() => navPanelButtonClick(page)} key={page.pyLabel}>
|
|
252
253
|
<ListItemIcon>{iconMap[page.pxPageViewIcon]}</ListItemIcon>
|
|
253
254
|
<ListItemText primary={localeUtils.getLocaleValue(page.pyLabel, '', localeReference)} />
|
|
254
|
-
</
|
|
255
|
+
</ListItemButton>
|
|
255
256
|
))}
|
|
256
257
|
</List>
|
|
257
258
|
<Divider />
|
|
258
259
|
<List className='marginTopAuto'>
|
|
259
260
|
<>
|
|
260
|
-
<ListItem
|
|
261
|
+
<ListItem
|
|
262
|
+
onClick={navPanelOperatorButtonClick}
|
|
263
|
+
secondaryAction={
|
|
264
|
+
open ? (
|
|
265
|
+
<IconButton edge='end' onClick={navPanelOperatorButtonClick} size='large'>
|
|
266
|
+
<ChevronRightIcon />
|
|
267
|
+
</IconButton>
|
|
268
|
+
) : null
|
|
269
|
+
}
|
|
270
|
+
>
|
|
261
271
|
<ListItemIcon id='person-icon'>
|
|
262
272
|
<PersonOutlineIcon fontSize='large' />
|
|
263
273
|
</ListItemIcon>
|
|
264
274
|
<ListItemText primary={portalOperator} />
|
|
265
|
-
{open && (
|
|
266
|
-
<ListItemSecondaryAction>
|
|
267
|
-
<IconButton edge='end' onClick={navPanelOperatorButtonClick} size='large'>
|
|
268
|
-
<ChevronRightIcon />
|
|
269
|
-
</IconButton>
|
|
270
|
-
</ListItemSecondaryAction>
|
|
271
|
-
)}
|
|
272
275
|
</ListItem>
|
|
273
276
|
<Menu
|
|
274
277
|
anchorEl={anchorEl}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
1
|
+
import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
2
2
|
|
|
3
3
|
interface ReferenceProps extends PConnProps {
|
|
4
4
|
// If any, enter additional props that only exist on this component
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Children, createElement, PropsWithChildren, useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
1
|
+
import { Children, createElement, type PropsWithChildren, useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
2
2
|
import { Box, CircularProgress } from '@mui/material';
|
|
3
3
|
|
|
4
4
|
import createPConnectComponent from '@pega/react-sdk-components/lib/bridge/react_pconnect';
|
|
5
5
|
import StoreContext from '@pega/react-sdk-components/lib/bridge/Context/StoreContext';
|
|
6
6
|
import { LazyMap as LazyComponentMap } from '@pega/react-sdk-components/lib/components_map';
|
|
7
7
|
import { isEmptyObject } from '@pega/react-sdk-components/lib/components/helpers/common-utils';
|
|
8
|
-
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
8
|
+
import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
9
9
|
|
|
10
10
|
interface RootContainerProps extends PConnProps {
|
|
11
11
|
// If any, enter additional props that only exist on this component
|
|
@@ -3,7 +3,7 @@ import DoubleArrowIcon from '@mui/icons-material/DoubleArrow';
|
|
|
3
3
|
import DoneIcon from '@mui/icons-material/Done';
|
|
4
4
|
import makeStyles from '@mui/styles/makeStyles';
|
|
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
|
|
|
8
8
|
interface StagesProps extends PConnProps {
|
|
9
9
|
// If any, enter additional props that only exist on this component
|
package/lib/infra/View/View.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PropsWithChildren, useEffect } from 'react';
|
|
1
|
+
import { type PropsWithChildren, useEffect } from 'react';
|
|
2
2
|
|
|
3
3
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
4
4
|
import { getAllFields } from '@pega/react-sdk-components/lib/components/helpers/template-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
|
// Need to import any templates that we might render
|
|
8
8
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { PropsWithChildren, useEffect, useState } from 'react';
|
|
1
|
+
import { type PropsWithChildren, useEffect, useState } from 'react';
|
|
2
2
|
import makeStyles from '@mui/styles/makeStyles';
|
|
3
3
|
import Avatar from '@mui/material/Avatar';
|
|
4
4
|
|
|
5
5
|
import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
6
6
|
import { NavContext } from '@pega/react-sdk-components/lib/components/helpers/reactContextHelpers';
|
|
7
7
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
8
|
-
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
8
|
+
import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
9
9
|
|
|
10
10
|
import './AppShell.css';
|
|
11
11
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Children, PropsWithChildren, useMemo } from 'react';
|
|
1
|
+
import { Children, type PropsWithChildren, useMemo } from 'react';
|
|
2
2
|
|
|
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 BannerPageProps extends PConnProps {
|
|
7
7
|
// If any, enter additional props that only exist on this component
|
|
@@ -1,6 +1,6 @@
|
|
|
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
6
|
// If any, enter additional props that only exist on this component
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable react/jsx-boolean-value */
|
|
2
2
|
|
|
3
|
-
import { PropsWithChildren, ReactElement, useContext, useEffect, useState } from 'react';
|
|
3
|
+
import { type PropsWithChildren, type ReactElement, useContext, useEffect, useState } from 'react';
|
|
4
4
|
import { Avatar, Card, CardHeader, Divider, Typography } from '@mui/material';
|
|
5
5
|
import makeStyles from '@mui/styles/makeStyles';
|
|
6
6
|
import Box from '@mui/material/Box';
|
|
@@ -10,7 +10,7 @@ import Grid from '@mui/material/Grid';
|
|
|
10
10
|
import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
11
11
|
import StoreContext from '@pega/react-sdk-components/lib/bridge/Context/StoreContext';
|
|
12
12
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
13
|
-
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
13
|
+
import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
14
14
|
|
|
15
15
|
interface CaseViewProps extends PConnProps {
|
|
16
16
|
// If any, enter additional props that only exist on this component
|
|
@@ -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,11 @@
|
|
|
1
1
|
/* eslint-disable no-nested-ternary */
|
|
2
|
-
import { PropsWithChildren, useState } from 'react';
|
|
2
|
+
import { type PropsWithChildren, useState } from 'react';
|
|
3
3
|
import { Button, Card } from '@mui/material';
|
|
4
4
|
import makeStyles from '@mui/styles/makeStyles';
|
|
5
5
|
|
|
6
6
|
import { getToDoAssignments } from '@pega/react-sdk-components/lib/components/infra/Containers/FlowContainer/helpers';
|
|
7
7
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
8
|
-
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
8
|
+
import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
9
9
|
|
|
10
10
|
interface ConfirmationProps extends PConnProps {
|
|
11
11
|
// If any, enter additional props that only exist on this component
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React, { PropsWithChildren, ReactElement, useEffect, useMemo, useState } from 'react';
|
|
1
|
+
import React, { type PropsWithChildren, type ReactElement, useEffect, useMemo, useState } from 'react';
|
|
2
2
|
|
|
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
|
import useIsMount from '@pega/react-sdk-components/lib/hooks/useIsMount';
|
|
6
6
|
import componentCachePersistUtils from '@pega/react-sdk-components/lib/components/template/AdvancedSearch/SearchGroup/persistUtils';
|
|
7
7
|
import { getMappedKey } from '@pega/react-sdk-components/lib/components/template/AdvancedSearch/SearchGroup/persistUtils';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { createElement, PropsWithChildren } from 'react';
|
|
1
|
+
import { createElement, type PropsWithChildren } from 'react';
|
|
2
2
|
|
|
3
3
|
import { getInstructions } from '@pega/react-sdk-components/lib/components/helpers/template-utils';
|
|
4
4
|
import createPConnectComponent from '@pega/react-sdk-components/lib/bridge/react_pconnect';
|
|
5
5
|
import connectToState from '@pega/react-sdk-components/lib/components/helpers/state-utils';
|
|
6
6
|
|
|
7
7
|
import { getKeyForMappedField, mapStateToProps } from './utils';
|
|
8
|
-
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
8
|
+
import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
9
9
|
|
|
10
10
|
import './DefaultForm.css';
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@ import Grid 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
|
-
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
6
|
+
import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
7
7
|
|
|
8
8
|
interface DetailsProps extends PConnProps {
|
|
9
9
|
// If any, enter additional props that only exist on this component
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Children, PropsWithChildren, useEffect, useState } from 'react';
|
|
1
|
+
import { Children, type PropsWithChildren, useEffect, useState } from 'react';
|
|
2
2
|
import { Tab, Tabs } from '@mui/material';
|
|
3
3
|
import { TabContext, TabPanel } from '@mui/lab';
|
|
4
4
|
|
|
5
5
|
import { getTransientTabs, getVisibleTabs, tabClick } from '@pega/react-sdk-components/lib/components/template/SubTabs/tabUtils';
|
|
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
|
|
|
8
8
|
interface DetailsSubTabsProps extends PConnProps {
|
|
9
9
|
// If any, enter additional props that only exist on this component
|
|
@@ -3,7 +3,7 @@ import Grid 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
|
-
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
6
|
+
import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
7
7
|
|
|
8
8
|
interface DetailsThreeColumnProps extends PConnProps {
|
|
9
9
|
// If any, enter additional props that only exist on this component
|
|
@@ -3,7 +3,7 @@ import Grid 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
|
-
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
6
|
+
import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
7
7
|
|
|
8
8
|
interface DetailsTwoColumnProps extends PConnProps {
|
|
9
9
|
// If any, enter additional props that only exist on this component
|
|
@@ -4,7 +4,7 @@ import { TabContext, TabPanel } from '@mui/lab';
|
|
|
4
4
|
import makeStyles from '@mui/styles/makeStyles';
|
|
5
5
|
|
|
6
6
|
import { buildView } from '@pega/react-sdk-components/lib/components/helpers/field-group-utils';
|
|
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
|
const useStyles = makeStyles(() => ({
|
|
10
10
|
tab: {
|
|
@@ -3,7 +3,7 @@ import { useLayoutEffect, useMemo } from 'react';
|
|
|
3
3
|
|
|
4
4
|
import { getReferenceList, buildView } from '@pega/react-sdk-components/lib/components/helpers/field-group-utils';
|
|
5
5
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
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
|
|
|
8
8
|
interface FieldGroupTemplateProps extends PConnProps {
|
|
9
9
|
// If any, enter additional props that only exist on this component
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PropsWithChildren, ReactElement } from 'react';
|
|
1
|
+
import type { PropsWithChildren, ReactElement } from 'react';
|
|
2
2
|
import { Grid, Typography } from '@mui/material';
|
|
3
3
|
import makeStyles from '@mui/styles/makeStyles';
|
|
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 InlineDashboardProps extends PConnProps {
|
|
7
7
|
// If any, enter additional props that only exist on this component
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useMemo, Children, useEffect, useState, PropsWithChildren } from 'react';
|
|
1
|
+
import { useMemo, Children, useEffect, useState, type PropsWithChildren } from 'react';
|
|
2
2
|
|
|
3
3
|
import { buildFilterComponents } from '@pega/react-sdk-components/lib/components/infra/DashboardFilter/filterUtils';
|
|
4
4
|
import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
|
|
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
|
interface InlineDashboardPageProps extends PConnProps {
|
|
8
8
|
// If any, enter additional props that only exist on this component
|
|
@@ -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 ListPageProps extends PConnProps {
|
|
5
5
|
// If any, enter additional props that only exist on this component
|