@pega/react-sdk-overrides 0.23.25 → 0.23.27
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 +39 -0
- package/lib/designSystemExtension/AlertBanner/index.tsx +1 -0
- package/lib/designSystemExtension/Banner/Banner.css +4 -0
- package/lib/designSystemExtension/Banner/Banner.tsx +33 -16
- package/lib/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
- package/lib/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +36 -26
- package/lib/designSystemExtension/DetailsFields/DetailsFields.tsx +21 -28
- package/lib/designSystemExtension/DetailsFields/index.tsx +1 -1
- package/lib/designSystemExtension/FieldGroup/FieldGroup.tsx +50 -18
- package/lib/designSystemExtension/FieldGroupList/FieldGroupList.tsx +13 -12
- package/lib/designSystemExtension/FieldValueList/FieldValueList.tsx +18 -27
- package/lib/designSystemExtension/Operator/Operator.tsx +106 -87
- package/lib/designSystemExtension/Pulse/Pulse.tsx +21 -19
- package/lib/designSystemExtension/RichTextEditor/RichTextEditor.tsx +122 -0
- package/lib/designSystemExtension/RichTextEditor/index.tsx +1 -0
- package/lib/designSystemExtension/WssQuickCreate/WssQuickCreate.css +6 -2
- package/lib/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx +21 -12
- package/lib/field/AutoComplete/AutoComplete.tsx +33 -16
- package/lib/field/AutoComplete/config-ext.json +2 -3
- package/lib/field/CancelAlert/CancelAlert.tsx +21 -15
- package/lib/field/CancelAlert/index.tsx +1 -1
- package/lib/field/Checkbox/Checkbox.tsx +29 -19
- package/lib/field/Checkbox/config-ext.json +2 -3
- package/lib/field/Currency/Currency.tsx +27 -38
- package/lib/field/Currency/config-ext.json +2 -3
- package/lib/field/Currency/currency-utils.ts +10 -18
- package/lib/field/Date/Date.tsx +33 -15
- package/lib/field/Date/config-ext.json +2 -3
- package/lib/field/DateTime/DateTime.tsx +22 -11
- package/lib/field/DateTime/config-ext.json +1 -2
- package/lib/field/Decimal/Decimal.tsx +64 -17
- package/lib/field/Decimal/config-ext.json +1 -2
- package/lib/field/Decimal/index.tsx +1 -1
- package/lib/field/Dropdown/Dropdown.tsx +154 -18
- package/lib/field/Dropdown/config-ext.json +1 -2
- package/lib/field/Email/Email.tsx +16 -7
- package/lib/field/Email/config-ext.json +1 -2
- package/lib/field/Email/index.tsx +1 -1
- package/lib/field/Group/Group.tsx +37 -0
- package/lib/field/Group/config-ext.json +7 -0
- package/lib/field/Group/index.tsx +1 -0
- package/lib/field/Integer/Integer.tsx +15 -6
- package/lib/field/Integer/config-ext.json +1 -2
- package/lib/field/Percentage/Percentage.tsx +14 -6
- package/lib/field/Percentage/config-ext.json +1 -2
- package/lib/field/Phone/Phone.tsx +17 -7
- package/lib/field/Phone/index.tsx +1 -1
- package/lib/field/RadioButtons/RadioButtons.tsx +55 -24
- package/lib/field/RadioButtons/config-ext.json +1 -2
- package/lib/field/RichText/RichText.tsx +96 -0
- package/lib/field/RichText/index.tsx +1 -0
- package/lib/field/ScalarList/ScalarList.tsx +63 -0
- package/lib/field/ScalarList/config-ext.json +7 -0
- package/lib/field/ScalarList/index.tsx +1 -0
- package/lib/field/SemanticLink/SemanticLink.tsx +26 -25
- package/lib/field/SemanticLink/config-ext.json +1 -2
- package/lib/field/SemanticLink/utils.ts +8 -10
- package/lib/field/TextArea/TextArea.tsx +15 -5
- package/lib/field/TextArea/config-ext.json +1 -2
- package/lib/field/TextContent/TextContent.tsx +9 -2
- package/lib/field/TextContent/config-ext.json +1 -2
- package/lib/field/TextInput/TextInput.tsx +41 -10
- package/lib/field/TextInput/config-ext.json +1 -2
- package/lib/field/TextInput/index.tsx +1 -1
- package/lib/field/Time/Time.tsx +21 -18
- package/lib/field/Time/config-ext.json +1 -2
- package/lib/field/URL/URL.tsx +23 -6
- package/lib/field/URL/config-ext.json +1 -2
- package/lib/field/URL/index.tsx +1 -1
- package/lib/field/UserReference/UserReference.tsx +52 -58
- package/lib/field/UserReference/UserReferenceUtils.ts +2 -2
- package/lib/field/UserReference/config-ext.json +1 -2
- package/lib/helpers/{attachmentHelpers.js → attachmentHelpers.ts} +16 -11
- package/lib/helpers/case-utils.tsx +99 -0
- package/lib/helpers/common-utils.ts +8 -0
- package/lib/helpers/data_page.ts +3 -6
- package/lib/helpers/date-format-utils.ts +29 -19
- package/lib/helpers/{event-utils.js → event-utils.ts} +4 -4
- package/lib/helpers/{field-group-utils.js → field-group-utils.ts} +9 -10
- package/lib/helpers/formatters/Boolean.ts +21 -0
- package/lib/helpers/formatters/{Currency.js → Currency.ts} +22 -27
- package/lib/helpers/formatters/CurrencyMap.ts +915 -0
- package/lib/helpers/formatters/{Date.js → Date.ts} +20 -26
- package/lib/helpers/formatters/{common.js → common.ts} +3 -4
- package/lib/helpers/formatters/{index.js → index.ts} +22 -22
- package/lib/helpers/{reactContextHelpers.js → reactContextHelpers.ts} +2 -2
- package/lib/helpers/simpleTableHelpers.ts +65 -85
- package/lib/helpers/state-utils.tsx +43 -0
- package/lib/helpers/template-utils.ts +4 -8
- package/lib/helpers/utils.ts +16 -8
- package/lib/helpers/versionHelpers.ts +1 -5
- package/lib/infra/ActionButtons/ActionButtons.tsx +46 -42
- package/lib/infra/ActionButtons/index.tsx +1 -1
- package/lib/infra/Assignment/Assignment.tsx +99 -84
- package/lib/infra/Assignment/index.tsx +1 -1
- package/lib/infra/AssignmentCard/AssignmentCard.tsx +19 -26
- package/lib/infra/AssignmentCard/index.tsx +1 -1
- package/lib/infra/Containers/FlowContainer/FlowContainer.tsx +98 -232
- package/lib/infra/Containers/FlowContainer/helpers.ts +138 -0
- package/lib/infra/Containers/FlowContainer/index.tsx +1 -1
- package/lib/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.tsx +66 -0
- package/lib/infra/Containers/ModalViewContainer/ListViewActionButtons/index.tsx +1 -0
- package/lib/infra/Containers/ModalViewContainer/ModalViewContainer.tsx +105 -70
- 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 +49 -64
- package/lib/infra/Containers/helpers.ts +6 -0
- package/lib/infra/DashboardFilter/DashboardFilter.tsx +26 -51
- package/lib/infra/DashboardFilter/filterUtils.tsx +12 -40
- package/lib/infra/DeferLoad/DeferLoad.tsx +22 -31
- package/lib/infra/DeferLoad/index.tsx +1 -1
- package/lib/infra/ErrorBoundary/ErrorBoundary.tsx +25 -38
- package/lib/infra/MultiStep/MultiStep.css +11 -15
- package/lib/infra/MultiStep/MultiStep.tsx +180 -216
- package/lib/infra/MultiStep/index.tsx +1 -1
- package/lib/infra/NavBar/NavBar.css +103 -105
- package/lib/infra/NavBar/NavBar.tsx +28 -43
- package/lib/infra/Reference/Reference.tsx +16 -22
- package/lib/infra/Region/Region.tsx +9 -9
- package/lib/infra/RootContainer/RootContainer.tsx +82 -125
- package/lib/infra/RootContainer/index.tsx +1 -1
- package/lib/infra/Stages/Stages.tsx +38 -39
- package/lib/infra/VerticalTabs/LeftAlignVerticalTabs/LeftAlignVerticalTabs.tsx +17 -10
- package/lib/infra/VerticalTabs/VerticalTabs/VerticalTabs.tsx +29 -36
- package/lib/infra/View/View.tsx +34 -65
- package/lib/template/AppShell/AppShell.css +22 -23
- package/lib/template/AppShell/AppShell.tsx +51 -69
- package/lib/template/BannerPage/BannerPage.tsx +26 -33
- package/lib/template/CaseSummary/CaseSummary.tsx +23 -18
- package/lib/template/CaseSummary/config-ext.json +1 -2
- package/lib/template/CaseView/CaseView.tsx +122 -114
- package/lib/template/CaseView/config-ext.json +1 -2
- package/lib/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx +46 -35
- package/lib/template/Confirmation/Confirmation.tsx +25 -53
- package/lib/template/Confirmation/config-ext.json +1 -2
- package/lib/template/DataReference/DataReference.tsx +112 -140
- package/lib/template/DataReference/config-ext.json +1 -2
- package/lib/template/DefaultForm/DefaultForm.css +7 -3
- package/lib/template/DefaultForm/DefaultForm.tsx +26 -20
- package/lib/template/DefaultForm/config-ext.json +1 -2
- package/lib/template/DefaultForm/utils/index.ts +33 -0
- package/lib/template/Details/Details/Details.tsx +24 -28
- package/lib/template/Details/DetailsSubTabs/DetailsSubTabs.tsx +15 -22
- package/lib/template/Details/DetailsSubTabs/config-ext.json +1 -2
- package/lib/template/Details/DetailsThreeColumn/DetailsThreeColumn.tsx +25 -29
- package/lib/template/Details/DetailsThreeColumn/config-ext.json +1 -2
- package/lib/template/Details/DetailsTwoColumn/DetailsTwoColumn.tsx +25 -29
- 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 +79 -0
- package/lib/template/Details/DynamicTabs/config.json +36 -0
- package/lib/template/Details/DynamicTabs/index.tsx +1 -0
- package/lib/template/FieldGroupTemplate/FieldGroupTemplate.tsx +24 -34
- package/lib/template/InlineDashboard/InlineDashboard.tsx +16 -14
- package/lib/template/InlineDashboardPage/InlineDashboardPage.tsx +19 -21
- package/lib/template/ListPage/ListPage.tsx +12 -16
- package/lib/template/ListPage/config-ext.json +1 -2
- package/lib/template/ListView/{DefaultViewMeta.js → DefaultViewMeta.ts} +1 -3
- package/lib/template/ListView/ListView.tsx +245 -306
- package/lib/template/ListView/config-ext.json +1 -2
- package/lib/template/ListView/{hooks.js → hooks.ts} +24 -24
- package/lib/template/ListView/{utils.js → utils.ts} +202 -91
- package/lib/template/MultiReferenceReadOnly/MultiReferenceReadOnly.tsx +25 -30
- package/lib/template/NarrowWide/NarrowWide/NarrowWide.css +0 -2
- package/lib/template/NarrowWide/NarrowWide/NarrowWide.tsx +31 -29
- package/lib/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.tsx +27 -31
- 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 +17 -19
- package/lib/template/NarrowWide/NarrowWideForm/config-ext.json +1 -2
- package/lib/template/NarrowWide/NarrowWidePage/NarrowWidePage.tsx +16 -26
- package/lib/template/NarrowWide/NarrowWidePage/config-ext.json +1 -2
- package/lib/template/OneColumn/OneColumn/OneColumn.tsx +17 -17
- package/lib/template/OneColumn/OneColumn/config-ext.json +1 -2
- package/lib/template/OneColumn/OneColumnPage/OneColumnPage.tsx +9 -16
- package/lib/template/OneColumn/OneColumnPage/config-ext.json +1 -2
- package/lib/template/OneColumn/OneColumnTab/OneColumnTab.tsx +8 -14
- package/lib/template/OneColumn/OneColumnTab/config-ext.json +1 -2
- package/lib/template/PromotedFilters/PromotedFilters.css +1 -1
- package/lib/template/PromotedFilters/PromotedFilters.tsx +44 -34
- package/lib/template/SimpleTable/SimpleTable/SimpleTable.tsx +115 -14
- package/lib/template/SimpleTable/SimpleTable/config-ext.json +1 -2
- package/lib/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx +171 -100
- package/lib/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.tsx +34 -40
- package/lib/template/SingleReferenceReadOnly/SingleReferenceReadOnly.tsx +45 -48
- package/lib/template/SubTabs/SubTabs.tsx +26 -45
- package/lib/template/SubTabs/config-ext.json +1 -2
- package/lib/template/SubTabs/tabUtils.ts +2 -7
- package/lib/template/TwoColumn/TwoColumn/TwoColumn.css +0 -1
- package/lib/template/TwoColumn/TwoColumn/TwoColumn.tsx +33 -36
- package/lib/template/TwoColumn/TwoColumn/config-ext.json +1 -2
- package/lib/template/TwoColumn/TwoColumnPage/TwoColumnPage.tsx +9 -16
- package/lib/template/TwoColumn/TwoColumnPage/config-ext.json +1 -2
- package/lib/template/TwoColumn/TwoColumnTab/TwoColumnTab.tsx +33 -33
- 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 +29 -27
- package/lib/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.tsx +39 -33
- 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 +16 -18
- package/lib/template/WideNarrow/WideNarrowForm/config-ext.json +1 -2
- package/lib/template/WideNarrow/WideNarrowPage/WideNarrowPage.tsx +15 -25
- 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 +33 -17
- package/lib/widget/AppAnnouncement/AppAnnouncement.tsx +34 -41
- package/lib/widget/AppAnnouncement/config-ext.json +1 -2
- package/lib/widget/Attachment/Attachment.css +75 -4
- package/lib/widget/Attachment/Attachment.tsx +370 -388
- package/lib/widget/Attachment/index.tsx +1 -1
- package/lib/widget/CaseHistory/CaseHistory.tsx +67 -67
- package/lib/widget/CaseHistory/config-ext.json +1 -2
- package/lib/widget/CaseHistory/index.tsx +1 -1
- package/lib/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx +19 -9
- package/lib/widget/FileUtility/FileUtility/FileUtility.css +2 -2
- package/lib/widget/FileUtility/FileUtility/FileUtility.tsx +324 -246
- package/lib/widget/FileUtility/FileUtility/config-ext.json +1 -2
- package/lib/widget/Followers/Followers.tsx +27 -25
- package/lib/widget/Followers/config-ext.json +1 -2
- package/lib/widget/QuickCreate/QuickCreate.tsx +24 -16
- package/lib/widget/SummaryItem/SummaryItem.css +9 -9
- package/lib/widget/SummaryItem/SummaryItem.tsx +62 -54
- package/lib/widget/SummaryItem/index.tsx +1 -1
- package/lib/widget/SummaryList/SummaryList.tsx +15 -4
- package/lib/widget/ToDo/ToDo.css +4 -4
- package/lib/widget/ToDo/ToDo.tsx +80 -116
- package/lib/widget/ToDo/config-ext.json +1 -2
- package/package.json +5 -2
- package/lib/helpers/auth.js +0 -483
- package/lib/helpers/authManager.js +0 -631
- package/lib/helpers/config_access.js +0 -268
- package/lib/helpers/formatters/Boolean.js +0 -38
- package/lib/helpers/formatters/CurrencyMap.js +0 -908
- package/lib/infra/Containers/FlowContainer/helpers.js +0 -147
|
@@ -1,170 +1,168 @@
|
|
|
1
1
|
.psdk-nav-divider {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
border-bottom: 0.0625rem solid var(--app-nav-color);
|
|
3
|
+
width: 100%;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.psdk-nav-header {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
display: flex;
|
|
8
|
+
padding-top: 0.625rem;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.psdk-nav-logo {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
/* override vertical-align coming in from Bootstrap "reboot" */
|
|
13
|
+
vertical-align: baseline;
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
width: 3.5rem;
|
|
16
|
+
margin-left: 0.5rem;
|
|
17
|
+
margin-right: 0.5rem;
|
|
18
|
+
margin-top: 0.25rem;
|
|
19
|
+
margin-bottom: 0.25rem;
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
padding-left: 0.5rem;
|
|
22
|
+
padding-right: 0.5rem;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/* background color white */
|
|
26
26
|
/* filter: var(--app-white-color-filter); */
|
|
27
27
|
.psdk-nav-svg-icon {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
width: 2.6rem;
|
|
29
|
+
/* padding-right: 0.625rem; */
|
|
30
|
+
-webkit-filter: invert(0.75); /* safari 6.0 - 9.0 */
|
|
31
|
+
filter: invert(0.75);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.psdk-nav-portal-info {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
margin-top: 0.15rem;
|
|
36
|
+
margin-bottom: 0.25rem;
|
|
37
|
+
padding-left: 0.15rem;
|
|
38
|
+
padding-right: 0.5rem;
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
.psdk-nav-portal-name {
|
|
43
|
-
|
|
42
|
+
font-size: 1rem;
|
|
44
43
|
}
|
|
45
44
|
|
|
46
45
|
.psdk-nav-portal-app {
|
|
47
|
-
|
|
46
|
+
font-size: 1rem;
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
.psdk-appshell-nav {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
50
|
+
top: 0px; /* JEA */
|
|
51
|
+
position: relative; /* JEA was fixed */
|
|
52
|
+
z-index: 3;
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
justify-content: flex-start;
|
|
56
|
+
background: var(--app-nav-bg);
|
|
57
|
+
width: var(--app-nav-width);
|
|
58
|
+
height: 100%;
|
|
59
|
+
color: var(--app-nav-color);
|
|
60
|
+
/* overflow: hidden; */
|
|
61
|
+
white-space: nowrap;
|
|
62
|
+
transition: width var(--transition-medium) var(--natural-ease);
|
|
63
|
+
will-change: width;
|
|
66
64
|
}
|
|
67
65
|
|
|
68
66
|
.psdk-appshell-nav:hover {
|
|
69
|
-
|
|
67
|
+
width: var(--app-nav-width-expanded);
|
|
70
68
|
}
|
|
71
69
|
|
|
72
70
|
.psdk-appshell-topnav {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
justify-content: flex-start;
|
|
74
|
+
background: var(--app-nav-bg);
|
|
75
|
+
width: var(--app-nav-width);
|
|
76
|
+
height: 15%;
|
|
77
|
+
color: var(--app-nav-color);
|
|
78
|
+
/* overflow: hidden; */
|
|
79
|
+
white-space: nowrap;
|
|
80
|
+
transition: width var(--transition-medium) var(--natural-ease);
|
|
81
|
+
will-change: width;
|
|
84
82
|
}
|
|
85
83
|
|
|
86
84
|
.psdk-appshell-middlenav {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-direction: column;
|
|
87
|
+
justify-content: space-between;
|
|
88
|
+
background: var(--app-nav-bg);
|
|
89
|
+
width: var(--app-nav-width);
|
|
90
|
+
height: 50%;
|
|
91
|
+
color: var(--app-nav-color);
|
|
92
|
+
/* overflow: hidden; */
|
|
93
|
+
white-space: nowrap;
|
|
94
|
+
transition: width var(--transition-medium) var(--natural-ease);
|
|
95
|
+
will-change: width;
|
|
98
96
|
}
|
|
99
97
|
|
|
100
98
|
.psdk-appshell-bottom {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
99
|
+
/* to make NavBar logout button stay fixed to bottom of window */
|
|
100
|
+
/* position: fixed; */
|
|
101
|
+
bottom: 0px;
|
|
102
|
+
background: var(--app-nav-bg);
|
|
103
|
+
width: var(--app-nav-width); /* inherit; */
|
|
104
|
+
border-top: 0.0625rem solid var(--app-nav-color);
|
|
107
105
|
}
|
|
108
106
|
|
|
109
107
|
/* Added for nav bar buttons to be like middlenav but with no additional flex direction and left justify */
|
|
110
108
|
.psdk-appshell-buttonnav {
|
|
111
|
-
|
|
109
|
+
/* display: flex;
|
|
112
110
|
flex-direction: row; */
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
111
|
+
border: none;
|
|
112
|
+
justify-content: left;
|
|
113
|
+
background: var(--app-nav-bg);
|
|
114
|
+
width: var(--app-nav-width);
|
|
115
|
+
height: 50%;
|
|
116
|
+
color: var(--app-nav-color);
|
|
117
|
+
/* overflow: hidden; */
|
|
118
|
+
white-space: nowrap;
|
|
119
|
+
transition: width var(--transition-medium) var(--natural-ease);
|
|
120
|
+
will-change: width;
|
|
123
121
|
}
|
|
124
122
|
|
|
125
123
|
.psdk-nav-ul-middle {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
124
|
+
display: block;
|
|
125
|
+
list-style-type: none;
|
|
126
|
+
margin: 0rem;
|
|
127
|
+
padding-inline-start: 30px;
|
|
130
128
|
}
|
|
131
129
|
|
|
132
130
|
.psdk-nav-li-middle {
|
|
133
|
-
|
|
134
|
-
|
|
131
|
+
box-sizing: border-box;
|
|
132
|
+
text-align: left;
|
|
135
133
|
}
|
|
136
134
|
|
|
137
135
|
.psdk-icon {
|
|
138
|
-
|
|
139
|
-
|
|
136
|
+
padding: 0rem 0.125rem;
|
|
137
|
+
min-width: unset;
|
|
140
138
|
}
|
|
141
139
|
|
|
142
140
|
.psdk-nav-button-span {
|
|
143
|
-
|
|
141
|
+
padding: 1rem;
|
|
144
142
|
}
|
|
145
143
|
|
|
146
144
|
.psdk-nav-oper-avatar {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
145
|
+
margin: 0rem;
|
|
146
|
+
padding: 0rem;
|
|
147
|
+
min-width: 2.5rem;
|
|
148
|
+
min-height: 2.5rem;
|
|
149
|
+
max-width: 2.5rem;
|
|
150
|
+
max-height: 2.5rem;
|
|
151
|
+
border-radius: 50%;
|
|
152
|
+
justify-content: center;
|
|
153
|
+
align-items: center;
|
|
154
|
+
text-align: center;
|
|
155
|
+
display: inline-flex;
|
|
156
|
+
background: var(--app-neutral-color);
|
|
157
|
+
color: white;
|
|
158
|
+
font-weight: normal;
|
|
159
|
+
font-size: 1rem;
|
|
162
160
|
}
|
|
163
161
|
|
|
164
162
|
.marginTopAuto {
|
|
165
|
-
|
|
163
|
+
margin-top: auto !important;
|
|
166
164
|
}
|
|
167
165
|
|
|
168
166
|
.scrollable {
|
|
169
|
-
|
|
167
|
+
overflow-y: scroll !important;
|
|
170
168
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
2
|
import { makeStyles, useTheme } from '@material-ui/core/styles';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
|
|
5
|
-
import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
6
|
-
import './NavBar.css';
|
|
4
|
+
|
|
7
5
|
import {
|
|
8
6
|
Drawer,
|
|
9
7
|
List,
|
|
@@ -18,7 +16,6 @@ import {
|
|
|
18
16
|
MenuItem,
|
|
19
17
|
Typography
|
|
20
18
|
} from '@material-ui/core';
|
|
21
|
-
|
|
22
19
|
import PersonOutlineIcon from '@material-ui/icons/PersonOutlineOutlined';
|
|
23
20
|
import ChevronLeftIcon from '@material-ui/icons/ChevronLeft';
|
|
24
21
|
import ChevronRightIcon from '@material-ui/icons/ChevronRight';
|
|
@@ -31,15 +28,27 @@ import WorkOutlineIcon from '@material-ui/icons/WorkOutline';
|
|
|
31
28
|
import ClearOutlinedIcon from '@material-ui/icons/ClearOutlined';
|
|
32
29
|
import ArrowBackIcon from '@material-ui/icons/ArrowBack';
|
|
33
30
|
import useMediaQuery from '@material-ui/core/useMediaQuery';
|
|
31
|
+
import { logout } from '@pega/auth/lib/sdk-auth-manager';
|
|
34
32
|
|
|
35
33
|
import { useNavBar } from '@pega/react-sdk-components/lib/components/helpers/reactContextHelpers';
|
|
36
|
-
import {
|
|
34
|
+
import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
|
|
35
|
+
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
37
36
|
|
|
38
|
-
|
|
37
|
+
import './NavBar.css';
|
|
38
|
+
|
|
39
|
+
interface NavBarProps extends PConnProps {
|
|
40
|
+
// If any, enter additional props that only exist on this component
|
|
41
|
+
// eslint-disable-next-line react/no-unused-prop-types
|
|
42
|
+
appName?: string;
|
|
43
|
+
pages?: any[];
|
|
44
|
+
caseTypes: any[];
|
|
45
|
+
pConn?: any;
|
|
46
|
+
}
|
|
39
47
|
|
|
40
48
|
const iconMap = {
|
|
41
49
|
'pi pi-headline': <HomeOutlinedIcon fontSize='large' />,
|
|
42
|
-
'pi pi-flag-solid': <FlagOutlinedIcon fontSize='large'
|
|
50
|
+
'pi pi-flag-solid': <FlagOutlinedIcon fontSize='large' />,
|
|
51
|
+
'pi pi-home-solid': <HomeOutlinedIcon fontSize='large' />
|
|
43
52
|
};
|
|
44
53
|
|
|
45
54
|
const drawerWidth = 300;
|
|
@@ -95,8 +104,8 @@ const useStyles = makeStyles(theme => ({
|
|
|
95
104
|
}
|
|
96
105
|
}));
|
|
97
106
|
|
|
98
|
-
export default function NavBar(props) {
|
|
99
|
-
const { pConn, pages, caseTypes } = props;
|
|
107
|
+
export default function NavBar(props: NavBarProps) {
|
|
108
|
+
const { pConn, pages = [], caseTypes = [] } = props;
|
|
100
109
|
|
|
101
110
|
const classes = useStyles();
|
|
102
111
|
const theme = useTheme();
|
|
@@ -108,9 +117,10 @@ export default function NavBar(props) {
|
|
|
108
117
|
const [bShowOperatorButtons, setBShowOperatorButtons] = useState(false);
|
|
109
118
|
const [anchorEl, setAnchorEl] = useState(null);
|
|
110
119
|
|
|
111
|
-
const
|
|
112
|
-
|
|
113
|
-
|
|
120
|
+
const localizedVal = PCore.getLocaleUtils().getLocaleValue;
|
|
121
|
+
const localeCategory = 'AppShell';
|
|
122
|
+
|
|
123
|
+
const portalLogoImage = Utils.getIconPath(Utils.getSDKStaticConentUrl()).concat('pzpega-logo-mark.svg');
|
|
114
124
|
const portalOperator = PCore.getEnvironmentInfo().getOperatorName();
|
|
115
125
|
const portalApp = PCore.getEnvironmentInfo().getApplicationLabel();
|
|
116
126
|
|
|
@@ -126,7 +136,7 @@ export default function NavBar(props) {
|
|
|
126
136
|
.showPage(pyRuleName, pyClassName)
|
|
127
137
|
.then(() => {
|
|
128
138
|
// eslint-disable-next-line no-console
|
|
129
|
-
console.log(
|
|
139
|
+
console.log(`${localizedVal('showPage completed', localeCategory)}`);
|
|
130
140
|
});
|
|
131
141
|
}
|
|
132
142
|
|
|
@@ -142,7 +152,7 @@ export default function NavBar(props) {
|
|
|
142
152
|
.createWork(sCaseType, actionInfo)
|
|
143
153
|
.then(() => {
|
|
144
154
|
// eslint-disable-next-line no-console
|
|
145
|
-
console.log(
|
|
155
|
+
console.log(`${localizedVal('createWork completed', localeCategory)}`);
|
|
146
156
|
});
|
|
147
157
|
}
|
|
148
158
|
|
|
@@ -199,22 +209,12 @@ export default function NavBar(props) {
|
|
|
199
209
|
</List>
|
|
200
210
|
) : (
|
|
201
211
|
<div className={classes.appListDiv} onClick={handleDrawerOpen}>
|
|
202
|
-
<ChevronRightIcon
|
|
203
|
-
className={classes.appListIcon}
|
|
204
|
-
id='chevron-right-icon'
|
|
205
|
-
fontSize='large'
|
|
206
|
-
/>
|
|
212
|
+
<ChevronRightIcon className={classes.appListIcon} id='chevron-right-icon' fontSize='large' />
|
|
207
213
|
</div>
|
|
208
214
|
)}
|
|
209
215
|
<List>
|
|
210
216
|
<ListItem button onClick={handleCaseItemClick}>
|
|
211
|
-
<ListItemIcon>
|
|
212
|
-
{bShowCaseTypes && open ? (
|
|
213
|
-
<ClearOutlinedIcon fontSize='large' />
|
|
214
|
-
) : (
|
|
215
|
-
<AddIcon fontSize='large' />
|
|
216
|
-
)}
|
|
217
|
-
</ListItemIcon>
|
|
217
|
+
<ListItemIcon>{bShowCaseTypes && open ? <ClearOutlinedIcon fontSize='large' /> : <AddIcon fontSize='large' />}</ListItemIcon>
|
|
218
218
|
<ListItemText primary='Create' />
|
|
219
219
|
{bShowCaseTypes ? <ExpandLess /> : <ExpandMore />}
|
|
220
220
|
</ListItem>
|
|
@@ -278,7 +278,7 @@ export default function NavBar(props) {
|
|
|
278
278
|
<ListItemIcon>
|
|
279
279
|
<ArrowBackIcon fontSize='large' />
|
|
280
280
|
</ListItemIcon>
|
|
281
|
-
<Typography variant='inherit'>Logout</Typography>
|
|
281
|
+
<Typography variant='inherit'>{localizedVal('Logout', localeCategory)}</Typography>
|
|
282
282
|
</MenuItem>
|
|
283
283
|
</Menu>
|
|
284
284
|
</>
|
|
@@ -286,18 +286,3 @@ export default function NavBar(props) {
|
|
|
286
286
|
</Drawer>
|
|
287
287
|
);
|
|
288
288
|
}
|
|
289
|
-
|
|
290
|
-
NavBar.defaultProps = {
|
|
291
|
-
pConn: null,
|
|
292
|
-
appName: '',
|
|
293
|
-
pages: [],
|
|
294
|
-
caseTypes: []
|
|
295
|
-
};
|
|
296
|
-
|
|
297
|
-
NavBar.propTypes = {
|
|
298
|
-
pConn: PropTypes.object,
|
|
299
|
-
// eslint-disable-next-line react/no-unused-prop-types
|
|
300
|
-
appName: PropTypes.string,
|
|
301
|
-
pages: PropTypes.arrayOf(PropTypes.object),
|
|
302
|
-
caseTypes: PropTypes.arrayOf(PropTypes.object)
|
|
303
|
-
};
|
|
@@ -1,17 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
|
|
2
|
+
|
|
3
|
+
interface ReferenceProps extends PConnProps {
|
|
4
|
+
// If any, enter additional props that only exist on this component
|
|
5
|
+
visibility?: boolean;
|
|
6
|
+
context?: string;
|
|
7
|
+
readOnly?: boolean;
|
|
8
|
+
displayMode?: string;
|
|
9
|
+
}
|
|
3
10
|
|
|
4
|
-
export default function Reference(props) {
|
|
5
|
-
const { visibility, context, getPConnect, readOnly, displayMode } = props;
|
|
11
|
+
export default function Reference(props: ReferenceProps) {
|
|
12
|
+
const { visibility = true, context = '', getPConnect, readOnly = false, displayMode = '' } = props;
|
|
6
13
|
|
|
7
14
|
const pConnect = getPConnect();
|
|
15
|
+
// @ts-ignore - Property 'getComponentConfig' is private and only accessible within class 'C11nEnv'.
|
|
8
16
|
const referenceConfig = { ...pConnect.getComponentConfig() } || {};
|
|
9
17
|
|
|
10
18
|
delete referenceConfig?.name;
|
|
11
19
|
delete referenceConfig?.type;
|
|
12
20
|
delete referenceConfig?.visibility;
|
|
13
21
|
|
|
14
|
-
const viewMetadata = pConnect.getReferencedView();
|
|
22
|
+
const viewMetadata: any = pConnect.getReferencedView();
|
|
15
23
|
|
|
16
24
|
if (!viewMetadata) {
|
|
17
25
|
// console.log("View not found ", pConnect.getComponentConfig());
|
|
@@ -26,7 +34,8 @@ export default function Reference(props) {
|
|
|
26
34
|
}
|
|
27
35
|
};
|
|
28
36
|
|
|
29
|
-
|
|
37
|
+
// @ts-ignore - Argument of type 'null' is not assignable to parameter of type 'string'.
|
|
38
|
+
const viewComponent: any = pConnect.createComponent(viewObject, null, null, {
|
|
30
39
|
pageReference: context
|
|
31
40
|
});
|
|
32
41
|
|
|
@@ -37,22 +46,7 @@ export default function Reference(props) {
|
|
|
37
46
|
});
|
|
38
47
|
|
|
39
48
|
if (visibility !== false) {
|
|
40
|
-
return
|
|
49
|
+
return <>{viewComponent}</>;
|
|
41
50
|
}
|
|
42
51
|
return null;
|
|
43
52
|
}
|
|
44
|
-
|
|
45
|
-
Reference.defaultProps = {
|
|
46
|
-
visibility: true,
|
|
47
|
-
context: null,
|
|
48
|
-
readOnly: false,
|
|
49
|
-
displayMode: null
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
Reference.propTypes = {
|
|
53
|
-
getPConnect: PropTypes.func.isRequired,
|
|
54
|
-
visibility: PropTypes.bool,
|
|
55
|
-
context: PropTypes.string,
|
|
56
|
-
readOnly: PropTypes.bool,
|
|
57
|
-
displayMode: PropTypes.string
|
|
58
|
-
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import PropTypes from "prop-types";
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
// Region does NOT have getPConnect. So, no need to extend from PConnProps
|
|
4
|
+
interface RegionProps {
|
|
5
|
+
// If any, enter additional props that only exist on this component
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default function Region(props: PropsWithChildren<RegionProps>) {
|
|
5
9
|
const { children } = props;
|
|
6
10
|
|
|
7
|
-
return
|
|
11
|
+
return (
|
|
8
12
|
<>
|
|
9
13
|
{/* <div>Region</div> */}
|
|
10
14
|
{children}
|
|
11
15
|
</>
|
|
12
|
-
|
|
16
|
+
);
|
|
13
17
|
}
|
|
14
|
-
|
|
15
|
-
Region.propTypes = {
|
|
16
|
-
children: PropTypes.arrayOf(PropTypes.node).isRequired
|
|
17
|
-
};
|