@pega/react-sdk-overrides 23.1.10 → 23.1.12
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/LICENSE +201 -0
- package/README.md +17 -0
- package/SECURITY.md +10 -0
- package/lib/designSystemExtension/AlertBanner/AlertBanner.tsx +6 -14
- package/lib/designSystemExtension/Banner/Banner.tsx +14 -11
- package/lib/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
- package/lib/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +27 -22
- package/lib/designSystemExtension/DetailsFields/DetailsFields.tsx +14 -20
- package/lib/designSystemExtension/DetailsFields/index.tsx +1 -1
- package/lib/designSystemExtension/FieldGroup/FieldGroup.tsx +44 -19
- package/lib/designSystemExtension/FieldGroupList/FieldGroupList.tsx +7 -12
- package/lib/designSystemExtension/FieldValueList/FieldValueList.tsx +21 -32
- package/lib/designSystemExtension/Operator/Operator.tsx +94 -82
- package/lib/designSystemExtension/Pulse/Pulse.tsx +14 -16
- package/lib/designSystemExtension/RichTextEditor/RichTextEditor.tsx +6 -5
- package/lib/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx +14 -14
- package/lib/field/AutoComplete/AutoComplete.tsx +24 -26
- package/lib/field/AutoComplete/config-ext.json +2 -3
- package/lib/field/CancelAlert/CancelAlert.tsx +98 -84
- package/lib/field/CancelAlert/index.tsx +1 -1
- package/lib/field/Checkbox/Checkbox.tsx +120 -63
- package/lib/field/Checkbox/config-ext.json +2 -3
- package/lib/field/Currency/Currency.tsx +25 -50
- package/lib/field/Currency/config-ext.json +2 -3
- package/lib/field/Currency/currency-utils.ts +9 -16
- package/lib/field/Date/Date.tsx +15 -11
- package/lib/field/Date/config-ext.json +2 -3
- package/lib/field/DateTime/DateTime.tsx +9 -9
- package/lib/field/DateTime/config-ext.json +1 -2
- package/lib/field/Decimal/Decimal.tsx +33 -44
- package/lib/field/Decimal/config-ext.json +1 -2
- package/lib/field/Decimal/index.tsx +1 -1
- package/lib/field/Dropdown/Dropdown.tsx +122 -31
- package/lib/field/Dropdown/config-ext.json +1 -2
- package/lib/field/Email/Email.tsx +11 -10
- package/lib/field/Email/config-ext.json +1 -2
- package/lib/field/Email/index.tsx +1 -1
- package/lib/field/Group/Group.tsx +39 -0
- package/lib/field/Group/config-ext.json +7 -0
- package/lib/field/Group/index.tsx +1 -0
- package/lib/field/Integer/Integer.tsx +8 -7
- package/lib/field/Integer/config-ext.json +1 -2
- package/lib/field/MultiSelect/Multiselect.tsx +244 -0
- package/lib/field/MultiSelect/index.tsx +1 -0
- package/lib/field/MultiSelect/utils.ts +230 -0
- package/lib/field/Percentage/Percentage.tsx +46 -41
- package/lib/field/Percentage/config-ext.json +1 -2
- package/lib/field/Phone/Phone.tsx +13 -12
- package/lib/field/Phone/index.tsx +1 -1
- package/lib/field/RadioButtons/RadioButtons.tsx +20 -18
- package/lib/field/RadioButtons/config-ext.json +1 -2
- package/lib/field/RichText/RichText.tsx +8 -7
- package/lib/field/ScalarList/ScalarList.tsx +3 -13
- package/lib/field/ScalarList/config-ext.json +1 -2
- package/lib/field/SemanticLink/SemanticLink.tsx +7 -7
- package/lib/field/SemanticLink/config-ext.json +1 -2
- package/lib/field/SemanticLink/utils.ts +8 -11
- package/lib/field/TextArea/TextArea.tsx +7 -6
- package/lib/field/TextArea/config-ext.json +1 -2
- package/lib/field/TextContent/TextContent.tsx +4 -6
- package/lib/field/TextContent/config-ext.json +1 -2
- package/lib/field/TextInput/TextInput.tsx +9 -7
- package/lib/field/TextInput/config-ext.json +1 -2
- package/lib/field/TextInput/index.tsx +1 -1
- package/lib/field/Time/Time.tsx +11 -11
- package/lib/field/Time/config-ext.json +1 -2
- package/lib/field/URL/URL.tsx +9 -8
- package/lib/field/URL/config-ext.json +1 -2
- package/lib/field/URL/index.tsx +1 -1
- package/lib/field/UserReference/UserReference.tsx +18 -16
- package/lib/field/UserReference/UserReferenceUtils.ts +2 -2
- package/lib/field/UserReference/config-ext.json +1 -2
- package/lib/helpers/attachmentHelpers.ts +13 -8
- package/lib/helpers/case-utils.tsx +4 -8
- package/lib/helpers/common-utils.ts +5 -1
- package/lib/helpers/data_page.ts +3 -7
- package/lib/helpers/date-format-utils.ts +3 -3
- package/lib/helpers/event-utils.ts +3 -3
- package/lib/helpers/field-group-utils.ts +1 -1
- package/lib/helpers/formatters/Boolean.ts +9 -26
- package/lib/helpers/formatters/Currency.ts +15 -21
- package/lib/helpers/formatters/CurrencyMap.ts +505 -501
- package/lib/helpers/formatters/Date.ts +20 -26
- package/lib/helpers/formatters/common.ts +1 -2
- package/lib/helpers/formatters/index.ts +26 -19
- package/lib/helpers/instructions-utils.ts +38 -0
- package/lib/helpers/reactContextHelpers.ts +2 -2
- package/lib/helpers/simpleTableHelpers.ts +59 -83
- package/lib/helpers/state-utils.tsx +5 -9
- package/lib/helpers/template-utils.ts +3 -6
- package/lib/helpers/utils.ts +5 -5
- package/lib/helpers/versionHelpers.ts +1 -4
- package/lib/infra/ActionButtons/ActionButtons.tsx +38 -29
- package/lib/infra/ActionButtons/index.tsx +1 -1
- package/lib/infra/Assignment/Assignment.tsx +99 -79
- package/lib/infra/Assignment/index.tsx +1 -1
- package/lib/infra/AssignmentCard/AssignmentCard.tsx +13 -16
- package/lib/infra/AssignmentCard/index.tsx +1 -1
- package/lib/infra/Containers/FlowContainer/FlowContainer.tsx +67 -213
- package/lib/infra/Containers/FlowContainer/helpers.ts +34 -45
- package/lib/infra/Containers/FlowContainer/index.tsx +1 -1
- package/lib/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.tsx +65 -0
- package/lib/infra/Containers/ModalViewContainer/ListViewActionButtons/index.tsx +1 -0
- package/lib/infra/Containers/ModalViewContainer/ModalViewContainer.tsx +227 -218
- package/lib/infra/Containers/ModalViewContainer/index.tsx +1 -1
- package/lib/infra/Containers/SimpleView/SimpleView.tsx +48 -0
- package/lib/infra/Containers/SimpleView/helper.ts +125 -0
- package/lib/infra/Containers/SimpleView/index.tsx +1 -0
- package/lib/infra/Containers/ViewContainer/ViewContainer.tsx +36 -46
- package/lib/infra/Containers/helpers.ts +6 -0
- package/lib/infra/DashboardFilter/DashboardFilter.tsx +21 -42
- package/lib/infra/DashboardFilter/filterUtils.tsx +12 -43
- package/lib/infra/DeferLoad/DeferLoad.tsx +22 -28
- package/lib/infra/DeferLoad/index.tsx +1 -1
- package/lib/infra/ErrorBoundary/ErrorBoundary.tsx +16 -30
- package/lib/infra/MultiStep/MultiStep.css +11 -15
- package/lib/infra/MultiStep/MultiStep.tsx +176 -212
- package/lib/infra/MultiStep/index.tsx +1 -1
- package/lib/infra/NavBar/NavBar.css +103 -105
- package/lib/infra/NavBar/NavBar.tsx +19 -31
- package/lib/infra/Reference/Reference.tsx +16 -18
- package/lib/infra/Region/Region.tsx +4 -6
- package/lib/infra/RootContainer/RootContainer.tsx +75 -111
- package/lib/infra/RootContainer/index.tsx +1 -1
- package/lib/infra/Stages/Stages.tsx +32 -39
- package/lib/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.tsx +11 -11
- package/lib/infra/VerticalTabs/VerticalTabs/VerticalTabs.tsx +21 -28
- package/lib/infra/View/View.tsx +17 -21
- package/lib/template/AppShell/AppShell.css +22 -23
- package/lib/template/AppShell/AppShell.tsx +39 -74
- package/lib/template/BannerPage/BannerPage.tsx +12 -14
- package/lib/template/CaseSummary/CaseSummary.tsx +58 -18
- package/lib/template/CaseSummary/config-ext.json +1 -2
- package/lib/template/CaseView/CaseView.tsx +34 -63
- package/lib/template/CaseView/config-ext.json +1 -2
- package/lib/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx +63 -19
- package/lib/template/Confirmation/Confirmation.tsx +12 -17
- package/lib/template/Confirmation/config-ext.json +1 -2
- package/lib/template/DataReference/DataReference.tsx +95 -121
- package/lib/template/DataReference/config-ext.json +1 -2
- package/lib/template/DefaultForm/DefaultForm.css +7 -3
- package/lib/template/DefaultForm/DefaultForm.tsx +13 -16
- package/lib/template/DefaultForm/config-ext.json +1 -2
- package/lib/template/Details/Details/Details.tsx +19 -22
- package/lib/template/Details/DetailsSubTabs/DetailsSubTabs.tsx +9 -13
- package/lib/template/Details/DetailsSubTabs/config-ext.json +1 -2
- package/lib/template/Details/DetailsThreeColumn/DetailsThreeColumn.tsx +19 -24
- package/lib/template/Details/DetailsThreeColumn/config-ext.json +1 -2
- package/lib/template/Details/DetailsTwoColumn/DetailsTwoColumn.tsx +19 -25
- package/lib/template/Details/DetailsTwoColumn/config-ext.json +1 -2
- package/lib/template/Details/DetailsTwoColumn/index.tsx +1 -1
- package/lib/template/Details/DynamicTabs/DynamicTabs.tsx +15 -14
- package/lib/template/FieldGroupTemplate/FieldGroupTemplate.tsx +15 -22
- package/lib/template/InlineDashboard/InlineDashboard.tsx +12 -14
- package/lib/template/InlineDashboardPage/InlineDashboardPage.tsx +12 -16
- package/lib/template/ListPage/ListPage.tsx +5 -10
- package/lib/template/ListPage/config-ext.json +1 -2
- package/lib/template/ListView/DefaultViewMeta.ts +1 -3
- package/lib/template/ListView/ListView.tsx +185 -175
- package/lib/template/ListView/config-ext.json +1 -2
- package/lib/template/ListView/hooks.ts +24 -26
- package/lib/template/ListView/utils.ts +51 -87
- package/lib/template/MultiReferenceReadOnly/MultiReferenceReadOnly.tsx +20 -20
- package/lib/template/NarrowWide/NarrowWide/NarrowWide.css +0 -2
- package/lib/template/NarrowWide/NarrowWide/NarrowWide.tsx +25 -38
- package/lib/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.tsx +20 -25
- package/lib/template/NarrowWide/NarrowWideDetails/config-ext.json +1 -2
- package/lib/template/NarrowWide/NarrowWideForm/NarrowWideForm.css +0 -2
- package/lib/template/NarrowWide/NarrowWideForm/NarrowWideForm.tsx +14 -24
- package/lib/template/NarrowWide/NarrowWideForm/config-ext.json +1 -2
- package/lib/template/NarrowWide/NarrowWidePage/NarrowWidePage.tsx +9 -19
- package/lib/template/NarrowWide/NarrowWidePage/config-ext.json +1 -2
- package/lib/template/OneColumn/OneColumn/OneColumn.tsx +14 -15
- package/lib/template/OneColumn/OneColumn/config-ext.json +1 -2
- package/lib/template/OneColumn/OneColumnPage/OneColumnPage.tsx +3 -10
- package/lib/template/OneColumn/OneColumnPage/config-ext.json +1 -2
- package/lib/template/OneColumn/OneColumnTab/OneColumnTab.tsx +6 -10
- package/lib/template/OneColumn/OneColumnTab/config-ext.json +1 -2
- package/lib/template/PromotedFilters/PromotedFilters.css +1 -1
- package/lib/template/PromotedFilters/PromotedFilters.tsx +32 -28
- package/lib/template/SimpleTable/SimpleTable/SimpleTable.tsx +37 -33
- package/lib/template/SimpleTable/SimpleTable/config-ext.json +1 -2
- package/lib/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx +187 -121
- package/lib/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.tsx +24 -25
- package/lib/template/SingleReferenceReadOnly/SingleReferenceReadOnly.tsx +30 -30
- package/lib/template/SubTabs/SubTabs.tsx +22 -40
- package/lib/template/SubTabs/config-ext.json +1 -2
- package/lib/template/SubTabs/tabUtils.ts +2 -5
- package/lib/template/TwoColumn/TwoColumn/TwoColumn.css +0 -1
- package/lib/template/TwoColumn/TwoColumn/TwoColumn.tsx +30 -28
- package/lib/template/TwoColumn/TwoColumn/config-ext.json +1 -2
- package/lib/template/TwoColumn/TwoColumnPage/TwoColumnPage.tsx +3 -10
- package/lib/template/TwoColumn/TwoColumnPage/config-ext.json +1 -2
- package/lib/template/TwoColumn/TwoColumnTab/TwoColumnTab.tsx +30 -28
- package/lib/template/TwoColumn/TwoColumnTab/config-ext.json +1 -2
- package/lib/template/WideNarrow/WideNarrow/WideNarrow.css +0 -2
- package/lib/template/WideNarrow/WideNarrow/WideNarrow.tsx +22 -34
- package/lib/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.tsx +24 -28
- package/lib/template/WideNarrow/WideNarrowDetails/config-ext.json +1 -2
- package/lib/template/WideNarrow/WideNarrowForm/WideNarrowForm.css +0 -2
- package/lib/template/WideNarrow/WideNarrowForm/WideNarrowForm.tsx +13 -21
- package/lib/template/WideNarrow/WideNarrowForm/config-ext.json +1 -2
- package/lib/template/WideNarrow/WideNarrowPage/WideNarrowPage.tsx +8 -16
- package/lib/template/WideNarrow/WideNarrowPage/config-ext.json +1 -2
- package/lib/template/WideNarrow/WideNarrowPage/index.tsx +1 -1
- package/lib/template/WssNavBar/WssNavBar.tsx +18 -21
- package/lib/widget/AppAnnouncement/AppAnnouncement.tsx +29 -28
- package/lib/widget/AppAnnouncement/config-ext.json +1 -2
- package/lib/widget/Attachment/Attachment.css +60 -1
- package/lib/widget/Attachment/Attachment.tsx +378 -405
- package/lib/widget/Attachment/index.tsx +1 -1
- package/lib/widget/CaseHistory/CaseHistory.tsx +64 -66
- package/lib/widget/CaseHistory/config-ext.json +1 -2
- package/lib/widget/CaseHistory/index.tsx +1 -1
- package/lib/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx +16 -18
- package/lib/widget/FileUtility/FileUtility/FileUtility.css +2 -2
- package/lib/widget/FileUtility/FileUtility/FileUtility.tsx +310 -246
- package/lib/widget/FileUtility/FileUtility/config-ext.json +1 -2
- package/lib/widget/Followers/Followers.tsx +23 -20
- package/lib/widget/Followers/config-ext.json +1 -2
- package/lib/widget/QuickCreate/QuickCreate.tsx +68 -42
- package/lib/widget/SummaryItem/SummaryItem.css +9 -9
- package/lib/widget/SummaryItem/SummaryItem.tsx +58 -58
- package/lib/widget/SummaryItem/index.tsx +1 -1
- package/lib/widget/SummaryList/SummaryList.tsx +7 -10
- package/lib/widget/ToDo/ToDo.css +4 -4
- package/lib/widget/ToDo/ToDo.tsx +52 -53
- package/lib/widget/ToDo/config-ext.json +1 -2
- package/package.json +5 -2
- package/lib/helpers/auth.js +0 -834
- package/lib/helpers/authManager.ts +0 -933
- package/lib/helpers/config_access.js +0 -186
|
@@ -1,30 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { PropsWithChildren, ReactElement } from 'react';
|
|
2
|
+
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
3
3
|
import './WideNarrowForm.css';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
interface WideNarrowFormProps {
|
|
5
|
+
interface WideNarrowFormProps extends PConnProps {
|
|
7
6
|
// If any, enter additional props that only exist on this component
|
|
8
|
-
children: Array<any>
|
|
9
7
|
}
|
|
10
8
|
|
|
11
|
-
export default function WideNarrowForm(props: WideNarrowFormProps) {
|
|
12
|
-
const {children} = props;
|
|
9
|
+
export default function WideNarrowForm(props: PropsWithChildren<WideNarrowFormProps>) {
|
|
10
|
+
const { children } = props;
|
|
13
11
|
|
|
14
12
|
return (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
{children[
|
|
20
|
-
</div>
|
|
21
|
-
<div className="psdk-narrow-column-column">
|
|
22
|
-
{children[1]}
|
|
13
|
+
<>
|
|
14
|
+
{children && (children as ReactElement[]).length === 2 && (
|
|
15
|
+
<div className='psdk-wide-narrow-column'>
|
|
16
|
+
<div className='psdk-wide-column-column'>{children[0]}</div>
|
|
17
|
+
<div className='psdk-narrow-column-column'>{children[1]}</div>
|
|
23
18
|
</div>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
)
|
|
29
|
-
|
|
19
|
+
)}
|
|
20
|
+
</>
|
|
21
|
+
);
|
|
30
22
|
}
|
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Children, PropsWithChildren } 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
4
|
|
|
4
|
-
|
|
5
|
-
interface WideNarrowPageProps {
|
|
5
|
+
interface WideNarrowPageProps extends PConnProps {
|
|
6
6
|
// If any, enter additional props that only exist on this component
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
icon?: string
|
|
7
|
+
title: string;
|
|
8
|
+
templateCol?: string;
|
|
9
|
+
icon?: string;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
|
-
|
|
14
12
|
/*
|
|
15
13
|
* The wrapper handles knowing how to take in just children and mapping
|
|
16
14
|
* to the Cosmos template.
|
|
17
15
|
*/
|
|
18
|
-
export default function WideNarrowPage(props: WideNarrowPageProps) {
|
|
16
|
+
export default function WideNarrowPage(props: PropsWithChildren<WideNarrowPageProps>) {
|
|
19
17
|
// Get emitted components from map (so we can get any override that may exist)
|
|
20
18
|
const WideNarrow = getComponentFromMap('WideNarrow');
|
|
21
19
|
|
|
@@ -24,13 +22,7 @@ export default function WideNarrowPage(props: WideNarrowPageProps) {
|
|
|
24
22
|
|
|
25
23
|
return (
|
|
26
24
|
<div>
|
|
27
|
-
|
|
28
|
-
a={childArray[0]}
|
|
29
|
-
b={childArray[1]}
|
|
30
|
-
title={title}
|
|
31
|
-
cols={templateCol}
|
|
32
|
-
icon={icon?.replace("pi pi-", "")}
|
|
33
|
-
/>
|
|
25
|
+
<WideNarrow a={childArray[0]} b={childArray[1]} title={title} cols={templateCol} icon={icon?.replace('pi pi-', '')} />
|
|
34
26
|
</div>
|
|
35
27
|
);
|
|
36
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './WideNarrowPage';
|
|
1
|
+
export { default } from './WideNarrowPage';
|
|
@@ -4,30 +4,27 @@ import AppBar from '@material-ui/core/AppBar';
|
|
|
4
4
|
import Box from '@material-ui/core/Box';
|
|
5
5
|
import Toolbar from '@material-ui/core/Toolbar';
|
|
6
6
|
import Container from '@material-ui/core/Container';
|
|
7
|
-
import { IconButton, Menu, MenuItem, Typography } from '@material-ui/core';
|
|
8
|
-
import { Button } from '@material-ui/core';
|
|
7
|
+
import { IconButton, Menu, MenuItem, Typography, Button } from '@material-ui/core';
|
|
9
8
|
import Avatar from '@material-ui/core/Avatar';
|
|
10
9
|
import MenuIcon from '@material-ui/icons/Menu';
|
|
11
|
-
import { logout } from '@pega/
|
|
10
|
+
import { logout } from '@pega/auth/lib/sdk-auth-manager';
|
|
11
|
+
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
12
12
|
import './WssNavBar.css';
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
interface WssNavBarProps {
|
|
14
|
+
interface WssNavBarProps extends PConnProps {
|
|
17
15
|
// If any, enter additional props that only exist on this component
|
|
18
|
-
appInfo: any
|
|
19
|
-
navLinks:
|
|
20
|
-
operator: { currentUserInitials: string }
|
|
21
|
-
navDisplayOptions: { alignment: string
|
|
16
|
+
appInfo: any;
|
|
17
|
+
navLinks: any[];
|
|
18
|
+
operator: { currentUserInitials: string };
|
|
19
|
+
navDisplayOptions: { alignment: string; position: string };
|
|
22
20
|
// eslint-disable-next-line react/no-unused-prop-types
|
|
23
|
-
portalName: string
|
|
24
|
-
imageSrc: string
|
|
21
|
+
portalName: string;
|
|
22
|
+
imageSrc: string;
|
|
25
23
|
// eslint-disable-next-line react/no-unused-prop-types
|
|
26
|
-
fullImageSrc: string
|
|
27
|
-
|
|
24
|
+
fullImageSrc: string;
|
|
25
|
+
appName: any;
|
|
28
26
|
}
|
|
29
27
|
|
|
30
|
-
|
|
31
28
|
const useStyles = makeStyles(theme => ({
|
|
32
29
|
root: {
|
|
33
30
|
display: 'flex'
|
|
@@ -57,6 +54,9 @@ export default function WssNavBar(props: WssNavBarProps) {
|
|
|
57
54
|
const [anchorElNav, setAnchorElNav] = useState<null | HTMLElement>(null);
|
|
58
55
|
const [anchorElUser, setAnchorElUser] = useState<null | HTMLElement>(null);
|
|
59
56
|
|
|
57
|
+
const localizedVal = PCore.getLocaleUtils().getLocaleValue;
|
|
58
|
+
const localeCategory = 'AppShell';
|
|
59
|
+
|
|
60
60
|
const handleOpenNavMenu = (event: React.MouseEvent<HTMLElement>) => {
|
|
61
61
|
setAnchorElNav(event.currentTarget);
|
|
62
62
|
};
|
|
@@ -73,10 +73,7 @@ export default function WssNavBar(props: WssNavBarProps) {
|
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
const navLinksContent = (
|
|
76
|
-
<Box id=
|
|
77
|
-
sx={{ flexGrow: 1, display: { xs: 'none', md: 'flex' } }}
|
|
78
|
-
style={{ justifyContent: alignment }}
|
|
79
|
-
>
|
|
76
|
+
<Box id='nav-links' sx={{ flexGrow: 1, display: { xs: 'none', md: 'flex' } }} style={{ justifyContent: alignment }}>
|
|
80
77
|
{navLinks.map(link => (
|
|
81
78
|
<Button className='link-style' key={link.text} onClick={link.onClick}>
|
|
82
79
|
{link.text}
|
|
@@ -90,7 +87,7 @@ export default function WssNavBar(props: WssNavBarProps) {
|
|
|
90
87
|
<AppBar position='static' color='primary'>
|
|
91
88
|
<Container maxWidth='xl'>
|
|
92
89
|
<Toolbar disableGutters style={{ justifyContent: 'space-between' }}>
|
|
93
|
-
<Button id=
|
|
90
|
+
<Button id='appName' style={{ textTransform: 'capitalize' }} onClick={appInfo.onClick}>
|
|
94
91
|
<img src={appInfo.imageSrc} className={classes.appListLogo} />
|
|
95
92
|
<span className={classes.appName}>{appInfo.appName}</span>
|
|
96
93
|
</Button>
|
|
@@ -150,7 +147,7 @@ export default function WssNavBar(props: WssNavBarProps) {
|
|
|
150
147
|
onClose={handleCloseUserMenu}
|
|
151
148
|
>
|
|
152
149
|
<MenuItem onClick={logout}>
|
|
153
|
-
<Typography>
|
|
150
|
+
<Typography>{localizedVal('Log off', localeCategory)}</Typography>
|
|
154
151
|
</MenuItem>
|
|
155
152
|
</Menu>
|
|
156
153
|
</Box>
|
|
@@ -1,32 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Card, CardContent, CardHeader, Typography, CardActions, Button } from "@material-ui/core";
|
|
1
|
+
import { Card, CardContent, CardHeader, Typography, CardActions, Button } from '@material-ui/core';
|
|
3
2
|
import { makeStyles } from '@material-ui/core/styles';
|
|
3
|
+
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
// So, no need to extend PConnProps
|
|
7
|
-
interface AppAnnouncementProps {
|
|
5
|
+
interface AppAnnouncementProps extends PConnProps {
|
|
8
6
|
// If any, enter additional props that only exist on this component
|
|
9
|
-
header?: string
|
|
10
|
-
description?: string
|
|
11
|
-
datasource?: any
|
|
12
|
-
whatsnewlink?: string
|
|
7
|
+
header?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
datasource?: any;
|
|
10
|
+
whatsnewlink?: string;
|
|
13
11
|
}
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
const useStyles = makeStyles((theme) => ({
|
|
13
|
+
const useStyles = makeStyles(theme => ({
|
|
17
14
|
root: {
|
|
18
15
|
marginTop: theme.spacing(1),
|
|
19
16
|
marginBottom: theme.spacing(1),
|
|
20
|
-
borderLeft:
|
|
17
|
+
borderLeft: '6px solid',
|
|
21
18
|
borderLeftColor: theme.palette.primary.light
|
|
22
|
-
}
|
|
19
|
+
}
|
|
23
20
|
}));
|
|
24
21
|
|
|
25
22
|
export default function AppAnnouncement(props: AppAnnouncementProps) {
|
|
26
23
|
const { header = '', description = '', datasource = [], whatsnewlink = '' } = props;
|
|
27
24
|
let details = [];
|
|
28
25
|
if (datasource && datasource.source) {
|
|
29
|
-
details = datasource.source.map(
|
|
26
|
+
details = datasource.source.map(item => {
|
|
30
27
|
return item.name;
|
|
31
28
|
});
|
|
32
29
|
}
|
|
@@ -35,25 +32,29 @@ export default function AppAnnouncement(props: AppAnnouncementProps) {
|
|
|
35
32
|
|
|
36
33
|
const handleClick = () => {
|
|
37
34
|
window.open(whatsnewlink);
|
|
38
|
-
}
|
|
35
|
+
};
|
|
39
36
|
|
|
40
37
|
return (
|
|
41
|
-
<Card title=
|
|
42
|
-
<CardHeader title={<Typography variant=
|
|
38
|
+
<Card title='AppAnnouncement' className={classes.root}>
|
|
39
|
+
<CardHeader title={<Typography variant='h6'>{header}</Typography>} />
|
|
43
40
|
<CardContent>
|
|
44
|
-
<Typography variant=
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
41
|
+
<Typography variant='body1' gutterBottom>
|
|
42
|
+
{description}
|
|
43
|
+
</Typography>
|
|
44
|
+
{details.map((itm, idx) => {
|
|
45
|
+
const theKey = `AppAnn-item-${idx}`;
|
|
46
|
+
return (
|
|
47
|
+
<Typography key={theKey} variant='body2'>
|
|
48
|
+
- {itm}
|
|
49
|
+
</Typography>
|
|
50
|
+
);
|
|
51
|
+
})}
|
|
53
52
|
</CardContent>
|
|
54
53
|
<CardActions>
|
|
55
|
-
<Button color=
|
|
54
|
+
<Button color='primary' onClick={handleClick} size='small'>
|
|
55
|
+
See what's new
|
|
56
|
+
</Button>
|
|
56
57
|
</CardActions>
|
|
57
58
|
</Card>
|
|
58
59
|
);
|
|
59
|
-
}
|
|
60
|
+
}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
.file-label::after {
|
|
29
29
|
display: inline;
|
|
30
|
-
content:
|
|
30
|
+
content: ' *';
|
|
31
31
|
vertical-align: top;
|
|
32
32
|
color: var(--app-neutral-dark-color);
|
|
33
33
|
}
|
|
@@ -35,3 +35,62 @@
|
|
|
35
35
|
.file-error {
|
|
36
36
|
color: var(--app-error-color);
|
|
37
37
|
}
|
|
38
|
+
|
|
39
|
+
.psdk-utility-card {
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: row;
|
|
42
|
+
padding: 0.25rem 0rem 0.25rem 0.25rem;
|
|
43
|
+
margin-bottom: 0.5rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.psdk-utility-card-icon {
|
|
47
|
+
flex-grow: 1;
|
|
48
|
+
max-width: 2.813rem;
|
|
49
|
+
align-content: center;
|
|
50
|
+
display: flex;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.psdk-utility-card-svg-icon {
|
|
54
|
+
width: 2.5rem;
|
|
55
|
+
display: inline-block;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.psdk-utility-card-main {
|
|
59
|
+
flex-grow: 2;
|
|
60
|
+
margin-left: 5px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.psdk-utility-card-main-primary-label {
|
|
64
|
+
font-weight: bold;
|
|
65
|
+
text-overflow: ellipsis;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
white-space: normal;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.psdk-utility-card-action-svg-icon {
|
|
71
|
+
width: 1.4rem;
|
|
72
|
+
display: inline-block;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.psdk-utility-card {
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
border: 0.0625rem solid rgb(207, 207, 207);
|
|
79
|
+
border-radius: calc(0.25rem);
|
|
80
|
+
min-height: 3rem;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.psdk-utility-button {
|
|
84
|
+
background: none;
|
|
85
|
+
border: none;
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.psdk-utility-action {
|
|
90
|
+
flex-grow: 1;
|
|
91
|
+
text-align: right;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.file-disabled {
|
|
95
|
+
opacity: 0.4;
|
|
96
|
+
}
|