@pega/react-sdk-overrides 0.23.6
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/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.css +19 -0
- package/lib/designSystemExtensions/CaseSummaryFields/CaseSummaryFields.tsx +156 -0
- package/lib/designSystemExtensions/CaseSummaryFields/index.tsx +1 -0
- package/lib/designSystemExtensions/DetailsFields/DetailsFields.tsx +154 -0
- package/lib/designSystemExtensions/DetailsFields/index.tsx +1 -0
- package/lib/designSystemExtensions/FieldGroup/FieldGroup.tsx +113 -0
- package/lib/designSystemExtensions/FieldGroup/index.tsx +1 -0
- package/lib/designSystemExtensions/FieldGroupList/FieldGroupList.tsx +53 -0
- package/lib/designSystemExtensions/FieldGroupList/index.tsx +1 -0
- package/lib/designSystemExtensions/FieldValueList/FieldValueList.tsx +106 -0
- package/lib/designSystemExtensions/FieldValueList/index.tsx +1 -0
- package/lib/designSystemExtensions/Operator/Operator.tsx +195 -0
- package/lib/designSystemExtensions/Operator/index.tsx +1 -0
- package/lib/designSystemExtensions/Pulse/Pulse.tsx +31 -0
- package/lib/designSystemExtensions/Pulse/index.tsx +1 -0
- package/lib/forms/AutoComplete/AutoComplete.tsx +183 -0
- package/lib/forms/AutoComplete/index.tsx +1 -0
- package/lib/forms/CancelAlert/CancelAlert.css +24 -0
- package/lib/forms/CancelAlert/CancelAlert.tsx +126 -0
- package/lib/forms/CancelAlert/index.tsx +1 -0
- package/lib/forms/Checkbox/Checkbox.tsx +68 -0
- package/lib/forms/Checkbox/index.tsx +1 -0
- package/lib/forms/Currency/Currency.tsx +89 -0
- package/lib/forms/Currency/index.tsx +1 -0
- package/lib/forms/Date/Date.tsx +79 -0
- package/lib/forms/Date/index.tsx +1 -0
- package/lib/forms/DateTime/DateTime.tsx +75 -0
- package/lib/forms/DateTime/index.tsx +1 -0
- package/lib/forms/Decimal/Decimal.tsx +51 -0
- package/lib/forms/Decimal/index.tsx +1 -0
- package/lib/forms/Dropdown/Dropdown.tsx +82 -0
- package/lib/forms/Dropdown/index.tsx +1 -0
- package/lib/forms/Email/Email.tsx +68 -0
- package/lib/forms/Email/index.tsx +1 -0
- package/lib/forms/Integer/Integer.tsx +77 -0
- package/lib/forms/Integer/index.tsx +1 -0
- package/lib/forms/Percentage/Percentage.tsx +82 -0
- package/lib/forms/Percentage/index.tsx +1 -0
- package/lib/forms/Phone/Phone.tsx +90 -0
- package/lib/forms/Phone/index.tsx +1 -0
- package/lib/forms/RadioButtons/RadioButtons.tsx +73 -0
- package/lib/forms/RadioButtons/index.tsx +1 -0
- package/lib/forms/SemanticLink/SemanticLink.tsx +69 -0
- package/lib/forms/SemanticLink/index.tsx +1 -0
- package/lib/forms/SemanticLink/utils.ts +51 -0
- package/lib/forms/TextArea/TextArea.tsx +66 -0
- package/lib/forms/TextArea/index.tsx +1 -0
- package/lib/forms/TextContent/TextContent.tsx +40 -0
- package/lib/forms/TextContent/index.tsx +1 -0
- package/lib/forms/TextInput/TextInput.tsx +61 -0
- package/lib/forms/TextInput/index.tsx +1 -0
- package/lib/forms/Time/Time.tsx +71 -0
- package/lib/forms/Time/index.tsx +1 -0
- package/lib/forms/URL/URL.tsx +53 -0
- package/lib/forms/URL/index.tsx +1 -0
- package/lib/forms/UserReference/UserReference.tsx +197 -0
- package/lib/forms/UserReference/UserReferenceUtils.ts +13 -0
- package/lib/forms/UserReference/index.tsx +1 -0
- package/lib/helpers/auth.js +483 -0
- package/lib/helpers/authManager.js +630 -0
- package/lib/helpers/config_access.js +268 -0
- package/lib/helpers/data_page.ts +24 -0
- package/lib/helpers/event-utils.js +20 -0
- package/lib/helpers/field-group-utils.js +61 -0
- package/lib/helpers/formatters/Boolean.js +38 -0
- package/lib/helpers/formatters/Currency.js +74 -0
- package/lib/helpers/formatters/CurrencyMap.js +908 -0
- package/lib/helpers/formatters/Date.js +77 -0
- package/lib/helpers/formatters/common.js +10 -0
- package/lib/helpers/formatters/index.js +120 -0
- package/lib/helpers/utils.ts +334 -0
- package/lib/helpers/versionHelpers.ts +50 -0
- package/lib/infra/ActionButtons/ActionButtons.tsx +70 -0
- package/lib/infra/ActionButtons/index.tsx +1 -0
- package/lib/infra/Assignment/Assignment.tsx +301 -0
- package/lib/infra/Assignment/index.tsx +1 -0
- package/lib/infra/AssignmentCard/AssignmentCard.tsx +47 -0
- package/lib/infra/AssignmentCard/index.tsx +1 -0
- package/lib/infra/Attachment/Attachment.css +18 -0
- package/lib/infra/Attachment/Attachment.tsx +404 -0
- package/lib/infra/Attachment/AttachmentUtils.js +71 -0
- package/lib/infra/Attachment/index.tsx +1 -0
- package/lib/infra/Containers/FlowContainer/FlowContainer.tsx +511 -0
- package/lib/infra/Containers/FlowContainer/helpers.js +147 -0
- package/lib/infra/Containers/FlowContainer/index.tsx +1 -0
- package/lib/infra/Containers/ModalViewContainer/ModalViewContainer.tsx +320 -0
- package/lib/infra/Containers/ModalViewContainer/index.tsx +1 -0
- package/lib/infra/Containers/ViewContainer/ViewContainer.tsx +216 -0
- package/lib/infra/Containers/ViewContainer/index.tsx +1 -0
- package/lib/infra/DashboardFilter/DashboardFilter.tsx +180 -0
- package/lib/infra/DashboardFilter/filterUtils.tsx +188 -0
- package/lib/infra/DashboardFilter/index.tsx +1 -0
- package/lib/infra/DeferLoad/DeferLoad.tsx +175 -0
- package/lib/infra/DeferLoad/index.tsx +1 -0
- package/lib/infra/ErrorBoundary/ErrorBoundary.tsx +103 -0
- package/lib/infra/ErrorBoundary/index.tsx +1 -0
- package/lib/infra/MultiStep/MultiStep.css +261 -0
- package/lib/infra/MultiStep/MultiStep.tsx +225 -0
- package/lib/infra/MultiStep/index.tsx +1 -0
- package/lib/infra/NavBar/NavBar.css +170 -0
- package/lib/infra/NavBar/NavBar.tsx +393 -0
- package/lib/infra/NavBar/index.tsx +1 -0
- package/lib/infra/Reference/Reference.tsx +58 -0
- package/lib/infra/Reference/index.tsx +1 -0
- package/lib/infra/Region/Region.tsx +17 -0
- package/lib/infra/Region/index.tsx +1 -0
- package/lib/infra/RootContainer/RootContainer.tsx +336 -0
- package/lib/infra/RootContainer/index.tsx +1 -0
- package/lib/infra/Stages/Stages.tsx +120 -0
- package/lib/infra/Stages/index.tsx +1 -0
- package/lib/infra/ToDo/ToDo.css +87 -0
- package/lib/infra/ToDo/ToDo.tsx +285 -0
- package/lib/infra/ToDo/index.tsx +1 -0
- package/lib/infra/VerticalTabs/LeftAlignVerticalTab.tsx +27 -0
- package/lib/infra/VerticalTabs/VerticalTabs.tsx +75 -0
- package/lib/infra/VerticalTabs/index.tsx +1 -0
- package/lib/infra/View/View.css +8 -0
- package/lib/infra/View/View.tsx +175 -0
- package/lib/infra/View/index.tsx +1 -0
- package/lib/templates/AppShell/AppShell.css +40 -0
- package/lib/templates/AppShell/AppShell.tsx +439 -0
- package/lib/templates/AppShell/index.tsx +1 -0
- package/lib/templates/CaseSummary/CaseSummary.tsx +50 -0
- package/lib/templates/CaseSummary/index.tsx +1 -0
- package/lib/templates/CaseView/CaseView.tsx +261 -0
- package/lib/templates/CaseView/CaseViewActionsMenu.tsx +73 -0
- package/lib/templates/CaseView/index.tsx +1 -0
- package/lib/templates/DataReference/DataReference.tsx +290 -0
- package/lib/templates/DataReference/index.tsx +1 -0
- package/lib/templates/DefaultForm/DefaultForm.css +25 -0
- package/lib/templates/DefaultForm/DefaultForm.tsx +52 -0
- package/lib/templates/DefaultForm/index.tsx +1 -0
- package/lib/templates/Details/Details/Details.tsx +35 -0
- package/lib/templates/Details/Details/index.tsx +1 -0
- package/lib/templates/Details/DetailsSubTabs/DetailsSubTabs.tsx +65 -0
- package/lib/templates/Details/DetailsSubTabs/index.tsx +1 -0
- package/lib/templates/Details/DetailsThreeColumn/DetailsThreeColumn.tsx +45 -0
- package/lib/templates/Details/DetailsThreeColumn/index.tsx +1 -0
- package/lib/templates/Details/DetailsTwoColumn/DetailsTwoColumn.tsx +43 -0
- package/lib/templates/Details/DetailsTwoColumn/index.tsx +1 -0
- package/lib/templates/FieldGroupTemplate/FieldGroupTemplate.tsx +94 -0
- package/lib/templates/FieldGroupTemplate/index.tsx +1 -0
- package/lib/templates/InlineDashboard/InlineDashboard.tsx +72 -0
- package/lib/templates/InlineDashboard/index.tsx +1 -0
- package/lib/templates/InlineDashboardPage/InlineDashboardPage.tsx +41 -0
- package/lib/templates/InlineDashboardPage/index.tsx +1 -0
- package/lib/templates/ListPage/ListPage.tsx +20 -0
- package/lib/templates/ListPage/index.tsx +1 -0
- package/lib/templates/ListView/ListView.css +10 -0
- package/lib/templates/ListView/ListView.tsx +1230 -0
- package/lib/templates/ListView/index.tsx +1 -0
- package/lib/templates/MultiReferenceReadOnly/MultiReferenceReadOnly.tsx +42 -0
- package/lib/templates/MultiReferenceReadOnly/index.tsx +1 -0
- package/lib/templates/NarrowWide/NarrowWide/NarrowWide.css +21 -0
- package/lib/templates/NarrowWide/NarrowWide/NarrowWide.tsx +35 -0
- package/lib/templates/NarrowWide/NarrowWide/index.tsx +1 -0
- package/lib/templates/NarrowWide/NarrowWideDetails/NarrowWideDetails.tsx +53 -0
- package/lib/templates/NarrowWide/NarrowWideDetails/index.tsx +1 -0
- package/lib/templates/NarrowWide/NarrowWideForm/NarrowWideForm.css +21 -0
- package/lib/templates/NarrowWide/NarrowWideForm/NarrowWideForm.tsx +24 -0
- package/lib/templates/NarrowWide/NarrowWideForm/index.tsx +1 -0
- package/lib/templates/NarrowWide/NarrowWidePage/NarrowWidePage.tsx +38 -0
- package/lib/templates/NarrowWide/NarrowWidePage/index.tsx +1 -0
- package/lib/templates/OneColumn/OneColumn/OneColumn.tsx +32 -0
- package/lib/templates/OneColumn/OneColumn/index.tsx +1 -0
- package/lib/templates/OneColumn/OneColumnPage/OneColumnPage.tsx +24 -0
- package/lib/templates/OneColumn/OneColumnPage/index.tsx +1 -0
- package/lib/templates/OneColumn/OneColumnTab/OneColumnTab.tsx +17 -0
- package/lib/templates/OneColumn/OneColumnTab/index.tsx +1 -0
- package/lib/templates/PromotedFilters/PromotedFilters.css +7 -0
- package/lib/templates/PromotedFilters/PromotedFilters.tsx +160 -0
- package/lib/templates/PromotedFilters/index.tsx +1 -0
- package/lib/templates/SimpleTable/SimpleTable/SimpleTable.tsx +28 -0
- package/lib/templates/SimpleTable/SimpleTable/index.tsx +1 -0
- package/lib/templates/SimpleTable/SimpleTableManual/SimpleTableManual.tsx +719 -0
- package/lib/templates/SimpleTable/SimpleTableManual/index.tsx +1 -0
- package/lib/templates/SimpleTable/SimpleTableSelect/SimpleTableSelect.tsx +129 -0
- package/lib/templates/SimpleTable/SimpleTableSelect/index.tsx +1 -0
- package/lib/templates/SimpleTable/helpers.ts +360 -0
- package/lib/templates/SingleReferenceReadOnly/SingleReferenceReadOnly.tsx +66 -0
- package/lib/templates/SingleReferenceReadOnly/index.tsx +1 -0
- package/lib/templates/SubTabs/SubTabs.tsx +65 -0
- package/lib/templates/SubTabs/index.tsx +1 -0
- package/lib/templates/SubTabs/tabUtils.ts +73 -0
- package/lib/templates/TwoColumn/TwoColumn/TwoColumn.css +13 -0
- package/lib/templates/TwoColumn/TwoColumn/TwoColumn.tsx +58 -0
- package/lib/templates/TwoColumn/TwoColumn/index.tsx +1 -0
- package/lib/templates/TwoColumn/TwoColumnPage/TwoColumnPage.tsx +25 -0
- package/lib/templates/TwoColumn/TwoColumnPage/index.tsx +1 -0
- package/lib/templates/TwoColumn/TwoColumnTab/TwoColumnTab.css +12 -0
- package/lib/templates/TwoColumn/TwoColumnTab/TwoColumnTab.tsx +55 -0
- package/lib/templates/TwoColumn/TwoColumnTab/index.tsx +1 -0
- package/lib/templates/WideNarrow/WideNarrow/WideNarrow.css +21 -0
- package/lib/templates/WideNarrow/WideNarrow/WideNarrow.tsx +35 -0
- package/lib/templates/WideNarrow/WideNarrow/index.tsx +1 -0
- package/lib/templates/WideNarrow/WideNarrowDetails/WideNarrowDetails.tsx +54 -0
- package/lib/templates/WideNarrow/WideNarrowDetails/index.tsx +1 -0
- package/lib/templates/WideNarrow/WideNarrowForm/WideNarrowForm.css +21 -0
- package/lib/templates/WideNarrow/WideNarrowForm/WideNarrowForm.tsx +24 -0
- package/lib/templates/WideNarrow/WideNarrowForm/index.tsx +1 -0
- package/lib/templates/WideNarrow/WideNarrowPage/WideNarrowPage.tsx +38 -0
- package/lib/templates/WideNarrow/WideNarrowPage/index.tsx +1 -0
- package/lib/templates/utils.ts +23 -0
- package/lib/widgets/AppAnnouncement/AppAnnouncement.tsx +67 -0
- package/lib/widgets/AppAnnouncement/index.tsx +1 -0
- package/lib/widgets/CaseHistory/CaseHistory.tsx +169 -0
- package/lib/widgets/CaseHistory/index.tsx +1 -0
- package/lib/widgets/FileUtility/ActionButtonsForFileUtil.css +27 -0
- package/lib/widgets/FileUtility/ActionButtonsForFileUtil.tsx +22 -0
- package/lib/widgets/FileUtility/FileUtility.css +117 -0
- package/lib/widgets/FileUtility/FileUtility.tsx +567 -0
- package/lib/widgets/FileUtility/index.tsx +0 -0
- package/lib/widgets/Followers/Followers.tsx +43 -0
- package/lib/widgets/Followers/index.tsx +1 -0
- package/lib/widgets/SummaryItem/SummaryItem.css +78 -0
- package/lib/widgets/SummaryItem/SummaryItem.tsx +80 -0
- package/lib/widgets/SummaryItem/index.tsx +1 -0
- package/lib/widgets/SummaryList/SummaryList.tsx +12 -0
- package/lib/widgets/SummaryList/index.tsx +1 -0
- package/package.json +14 -0
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
.psdk-case-view-divider {
|
|
2
|
+
border-bottom: 0.0625rem solid var(--app-neutral-light-color);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.psdk-icon {
|
|
6
|
+
padding: 0rem 0.125rem;
|
|
7
|
+
min-width: unset;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.psdk-icon-current {
|
|
11
|
+
color: var(--app-primary-color);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.psdk-icon-not-current {
|
|
15
|
+
color: var(--app-neutral-color);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.psdk-current-svg-icon {
|
|
19
|
+
width: 1.0rem;
|
|
20
|
+
filter: var(--app-primary-color-filter);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.psdk-not-current-svg-icon {
|
|
24
|
+
width: 1.0rem;
|
|
25
|
+
filter: var(--app-neutral-color-filter);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
mat-vertical-stepper {
|
|
30
|
+
background-color: transparent;
|
|
31
|
+
}
|
|
32
|
+
mat-horizontal-stepper {
|
|
33
|
+
background-color: transparent;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.psdk-sub-step-current {
|
|
37
|
+
padding-left: 0.625rem;
|
|
38
|
+
font-weight: bold;
|
|
39
|
+
color: rgba(0,0,0,.87);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.psdk-sub-step-not-current {
|
|
43
|
+
padding-left: 0.625rem;
|
|
44
|
+
color: rgba(0,0,0,.54);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.psdk-flow-container-top {
|
|
48
|
+
border-radius: 0.3125rem;
|
|
49
|
+
|
|
50
|
+
}
|
|
51
|
+
.psdk-flow-container {
|
|
52
|
+
padding-left: 2.1875rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.psdk-sub-step-list {
|
|
56
|
+
list-style: none;
|
|
57
|
+
padding-bottom: 0.625rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
.psdk-vertical-stepper {
|
|
63
|
+
background-color: transparent;
|
|
64
|
+
display: block;
|
|
65
|
+
text-align: left;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.psdk-vertical-step {
|
|
69
|
+
display: block;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.psdk-vertical-step-header {
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
outline: none;
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
position: relative;
|
|
77
|
+
box-sizing: content-box;
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
height: 24px;
|
|
81
|
+
padding: 24px 24px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.psdk-vertical-step-icon {
|
|
85
|
+
margin-right: 12px;
|
|
86
|
+
background-color: var(--app-neutral-color);
|
|
87
|
+
color: #fff;
|
|
88
|
+
border-radius: 50%;
|
|
89
|
+
height: 24px;
|
|
90
|
+
width: 24px;
|
|
91
|
+
flex-shrink: 0;
|
|
92
|
+
position: relative;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.psdk-vertical-step-icon-content {
|
|
96
|
+
position: absolute;
|
|
97
|
+
top: 50%;
|
|
98
|
+
left: 50%;
|
|
99
|
+
transform: translate(-50%, -50%);
|
|
100
|
+
color: #fff;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.psdk-vertical-step-icon-selected {
|
|
104
|
+
margin-right: 12px;
|
|
105
|
+
background-color: var(--app-primary-color);
|
|
106
|
+
color: #fff;
|
|
107
|
+
border-radius: 50%;
|
|
108
|
+
height: 24px;
|
|
109
|
+
width: 24px;
|
|
110
|
+
flex-shrink: 0;
|
|
111
|
+
position: relative;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.psdk-vertical-step-label {
|
|
115
|
+
color: rgba(0,0,0,.54);
|
|
116
|
+
display: inline-block;
|
|
117
|
+
white-space: nowrap;
|
|
118
|
+
overflow: hidden;
|
|
119
|
+
text-overflow: ellipsis;
|
|
120
|
+
min-width: 50px;
|
|
121
|
+
vertical-align: middle;
|
|
122
|
+
font-size: 14px;
|
|
123
|
+
font-weight: 500;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.psdk-vertical-step-label-selected {
|
|
127
|
+
color: rgba(0,0,0,.87);
|
|
128
|
+
display: inline-block;
|
|
129
|
+
white-space: nowrap;
|
|
130
|
+
overflow: hidden;
|
|
131
|
+
text-overflow: ellipsis;
|
|
132
|
+
min-width: 50px;
|
|
133
|
+
vertical-align: middle;
|
|
134
|
+
font-size: 14px;
|
|
135
|
+
font-weight: 500;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.psdk-vertical-step-body {
|
|
139
|
+
margin-left: 36px;
|
|
140
|
+
border: 0;
|
|
141
|
+
position: relative;
|
|
142
|
+
display: block;
|
|
143
|
+
text-align: left;
|
|
144
|
+
}
|
|
145
|
+
.psdk-vertical-step-line {
|
|
146
|
+
display: block;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.psdk-vertical-step-line::before {
|
|
150
|
+
content: "";
|
|
151
|
+
position: absolute;
|
|
152
|
+
left: 0;
|
|
153
|
+
border-left-width: 1px;
|
|
154
|
+
border-left-style: solid;
|
|
155
|
+
top: -16px;
|
|
156
|
+
bottom: -16px;
|
|
157
|
+
border-left-color: rgba(0,0,0,.12);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.psdk-horizontal-stepper {
|
|
161
|
+
background-color: transparent;
|
|
162
|
+
display: block;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.psdk-horizontal-stepper-header-container {
|
|
166
|
+
white-space: nowrap;
|
|
167
|
+
display: flex;
|
|
168
|
+
align-items: center;
|
|
169
|
+
text-align: left;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.psdk-horizontal-step-header {
|
|
173
|
+
overflow: hidden;
|
|
174
|
+
outline: none;
|
|
175
|
+
cursor: pointer;
|
|
176
|
+
position: relative;
|
|
177
|
+
box-sizing: content-box;
|
|
178
|
+
display: flex;
|
|
179
|
+
height: 72px;
|
|
180
|
+
overflow: hidden;
|
|
181
|
+
align-items: center;
|
|
182
|
+
padding: 0 24px;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.psdk-horizontal-step-icon {
|
|
186
|
+
background-color: var(--app-neutral-color);
|
|
187
|
+
color: #fff;
|
|
188
|
+
border-radius: 50%;
|
|
189
|
+
height: 24px;
|
|
190
|
+
width: 24px;
|
|
191
|
+
flex-shrink: 0;
|
|
192
|
+
position: relative;
|
|
193
|
+
display: block;
|
|
194
|
+
margin-right: 8px;
|
|
195
|
+
flex: none;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.psdk-horizontal-step-icon-content {
|
|
199
|
+
display: block;
|
|
200
|
+
position: absolute;
|
|
201
|
+
top: 50%;
|
|
202
|
+
left: 50%;
|
|
203
|
+
transform: translate(-50%, -50%);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.psdk-horizontal-step-icon-selected {
|
|
207
|
+
background-color: var(--app-primary-color);
|
|
208
|
+
color: #fff;
|
|
209
|
+
border-radius: 50%;
|
|
210
|
+
height: 24px;
|
|
211
|
+
width: 24px;
|
|
212
|
+
flex-shrink: 0;
|
|
213
|
+
position: relative;
|
|
214
|
+
display: block;
|
|
215
|
+
margin-right: 8px;
|
|
216
|
+
flex: none;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.psdk-horizontal-step-label {
|
|
220
|
+
color: rgba(0,0,0,.54);
|
|
221
|
+
display: inline-block;
|
|
222
|
+
white-space: nowrap;
|
|
223
|
+
overflow: hidden;
|
|
224
|
+
text-overflow: ellipsis;
|
|
225
|
+
min-width: 50px;
|
|
226
|
+
vertical-align: middle;
|
|
227
|
+
font-size: 14px;
|
|
228
|
+
font-weight: 500;
|
|
229
|
+
text-overflow: ellipsis;
|
|
230
|
+
overflow: hidden;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.psdk-horizontal-step-label-selected {
|
|
234
|
+
color: rgba(0,0,0,.87);
|
|
235
|
+
display: inline-block;
|
|
236
|
+
white-space: nowrap;
|
|
237
|
+
overflow: hidden;
|
|
238
|
+
text-overflow: ellipsis;
|
|
239
|
+
min-width: 50px;
|
|
240
|
+
vertical-align: middle;
|
|
241
|
+
font-size: 14px;
|
|
242
|
+
font-weight: 500;
|
|
243
|
+
text-overflow: ellipsis;
|
|
244
|
+
overflow: hidden;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.psdk-horizontal-step-text-label {
|
|
248
|
+
text-overflow: ellipsis;
|
|
249
|
+
overflow: hidden;
|
|
250
|
+
display: block;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.psdk-horizontal-step-line {
|
|
254
|
+
border-top-color: rgba(0,0,0,.12);
|
|
255
|
+
border-top-width: 1px;
|
|
256
|
+
border-top-style: solid;
|
|
257
|
+
flex: auto;
|
|
258
|
+
height: 0;
|
|
259
|
+
margin: 0 -16px;
|
|
260
|
+
min-width: 32px;
|
|
261
|
+
}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
|
|
4
|
+
import './MultiStep.css';
|
|
5
|
+
|
|
6
|
+
import AssignmentCard from '@pega/react-sdk-components/lib/components/infra/AssignmentCard';
|
|
7
|
+
|
|
8
|
+
// import { useConstellationContext } from "../../bridge/Context/StoreContext";
|
|
9
|
+
|
|
10
|
+
export default function MultiStep(props) {
|
|
11
|
+
const { getPConnect, children, itemKey, actionButtons, onButtonPress} = props;
|
|
12
|
+
const { bIsVertical, arNavigationSteps } = props;
|
|
13
|
+
|
|
14
|
+
// const svgCurrent = Utils.getImageSrc("circle-solid", PCore.getAssetLoader().getStaticServerUrl());
|
|
15
|
+
// const svgNotCurrent = Utils.getImageSrc("circle-solid", PCore.getAssetLoader().getStaticServerUrl());
|
|
16
|
+
|
|
17
|
+
function _getVIconClass(status): string {
|
|
18
|
+
if (status === "current") {
|
|
19
|
+
return "psdk-vertical-step-icon-selected";
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
return "psdk-vertical-step-icon";
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function _getVLabelClass(status): string {
|
|
26
|
+
if (status === "current") {
|
|
27
|
+
return "psdk-vertical-step-label-selected";
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return "psdk-vertical-step-label";
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function _getVBodyClass(index: number): string {
|
|
34
|
+
if (index < arNavigationSteps.length - 1) {
|
|
35
|
+
return "psdk-vertical-step-body psdk-vertical-step-line";
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return "psdk-vertical-step-body";
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function _getHIconClass(status): string {
|
|
42
|
+
if (status === "current") {
|
|
43
|
+
return "psdk-horizontal-step-icon-selected";
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return "psdk-horizontal-step-icon";
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function _getHLabelClass(status): string {
|
|
50
|
+
if (status === "current") {
|
|
51
|
+
return "psdk-horizontal-step-label-selected";
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return "psdk-horizontal-step-label";
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function _showHLine(index: number): boolean {
|
|
58
|
+
// eslint-disable-next-line sonarjs/prefer-single-boolean-return
|
|
59
|
+
if (index < arNavigationSteps.length - 1) {
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function buttonPress(sAction: string, sButtonType: string) {
|
|
67
|
+
onButtonPress(sAction, sButtonType);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return (
|
|
71
|
+
<React.Fragment>
|
|
72
|
+
<div>
|
|
73
|
+
{bIsVertical ?
|
|
74
|
+
<div className="psdk-vertical-stepper">
|
|
75
|
+
{arNavigationSteps.map((mainStep, index) => {
|
|
76
|
+
return (
|
|
77
|
+
<React.Fragment key={mainStep.actionID}>
|
|
78
|
+
<div className="psdk-vertical-step">
|
|
79
|
+
<div className="psdk-vertical-step-header">
|
|
80
|
+
<div className={ _getVIconClass(mainStep.visited_status)}>
|
|
81
|
+
<div className="psdk-vertical-step-icon-content">
|
|
82
|
+
<span>{index + 1}</span>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
<div className={ _getVLabelClass(mainStep.visited_status)}>
|
|
86
|
+
{mainStep.name}
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
<div className={ _getVBodyClass(index)}>
|
|
90
|
+
{mainStep?.steps &&
|
|
91
|
+
<React.Fragment>
|
|
92
|
+
<ul style={{paddingInlineStart: "0rem", marginLeft: "-7px"}}>
|
|
93
|
+
{mainStep.steps.forEach((subStep) => {
|
|
94
|
+
<li className="psdk-sub-step-list">
|
|
95
|
+
<div style={{display: "inline-flex"}}>
|
|
96
|
+
{subStep.visited_status === 'current' &&
|
|
97
|
+
<img className="psdk-current-svg-icon" src="{svgCurrent}" />
|
|
98
|
+
}
|
|
99
|
+
{subStep.visited_status !== 'current' &&
|
|
100
|
+
<img className="psdk-not-current-svg-icon" src="{svgNotCurrent}" />
|
|
101
|
+
}
|
|
102
|
+
{subStep.visited_status === 'current' &&
|
|
103
|
+
<label className="psdk-sub-step-current">{subStep.name}</label>
|
|
104
|
+
}
|
|
105
|
+
{subStep.visited_status !== 'current' &&
|
|
106
|
+
<label className="psdk-sub-step-not-current">{subStep.name}</label>
|
|
107
|
+
}
|
|
108
|
+
</div>
|
|
109
|
+
{subStep.visited_status === 'current' &&
|
|
110
|
+
<div>
|
|
111
|
+
<AssignmentCard getPConnect={getPConnect} itemKey={itemKey} actionButtons={actionButtons} onButtonPress={buttonPress} >
|
|
112
|
+
{children}
|
|
113
|
+
</AssignmentCard>
|
|
114
|
+
</div>
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
</li>
|
|
119
|
+
})}
|
|
120
|
+
|
|
121
|
+
</ul>
|
|
122
|
+
</React.Fragment>
|
|
123
|
+
}
|
|
124
|
+
{!mainStep?.steps && mainStep.visited_status === 'current' &&
|
|
125
|
+
<AssignmentCard getPConnect={getPConnect} itemKey={itemKey} actionButtons={actionButtons} onButtonPress={buttonPress} >
|
|
126
|
+
{children}
|
|
127
|
+
</AssignmentCard>
|
|
128
|
+
}
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
</React.Fragment>
|
|
132
|
+
)})}
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
:
|
|
136
|
+
<div className="psdk-horizontal-stepper">
|
|
137
|
+
<div className="psdk-horizontal-stepper-header-container">
|
|
138
|
+
{arNavigationSteps.map((mainStep, index) => {
|
|
139
|
+
return (
|
|
140
|
+
<React.Fragment key={mainStep.actionID}>
|
|
141
|
+
<div className="psdk-horizontal-step-header">
|
|
142
|
+
<div className={ _getHIconClass(mainStep.visited_status)}>
|
|
143
|
+
<div className="psdk-horizontal-step-icon-content">
|
|
144
|
+
<span>{index + 1}</span>
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
<div className={ _getHLabelClass(mainStep.visited_status)}>
|
|
148
|
+
<div className="psdk-horizontal-step-text-label">
|
|
149
|
+
{mainStep.name}
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
{ _showHLine(index) &&
|
|
154
|
+
<div className="psdk-horizontal-step-line"></div>
|
|
155
|
+
}
|
|
156
|
+
</React.Fragment>
|
|
157
|
+
)})}
|
|
158
|
+
</div>
|
|
159
|
+
{arNavigationSteps.map((mainStep) => {
|
|
160
|
+
return (
|
|
161
|
+
<React.Fragment key={mainStep.actionID}>
|
|
162
|
+
{mainStep.steps &&
|
|
163
|
+
<React.Fragment>
|
|
164
|
+
<ul style={{paddingInlineStart: "0rem", marginLeft: "35px"}}>
|
|
165
|
+
{mainStep.steps.map((subStep) => (
|
|
166
|
+
<React.Fragment>
|
|
167
|
+
<li className="psdk-sub-step-list">
|
|
168
|
+
<div style={{display: "inline-flex"}}>
|
|
169
|
+
{subStep.visited_status === 'current' &&
|
|
170
|
+
<img className="psdk-current-svg-icon" src="{svgCurrent}" />
|
|
171
|
+
}
|
|
172
|
+
{subStep.visited_status !== 'current' &&
|
|
173
|
+
<img className="psdk-not-current-svg-icon" src="{svgNotCurrent}" />
|
|
174
|
+
}
|
|
175
|
+
{subStep.visited_status === 'current' &&
|
|
176
|
+
<label className="psdk-sub-step-current">{subStep.name}</label>
|
|
177
|
+
}
|
|
178
|
+
{subStep.visited_status !== 'current' &&
|
|
179
|
+
<label className="psdk-sub-step-not-current">{subStep.name}</label>
|
|
180
|
+
}
|
|
181
|
+
</div>
|
|
182
|
+
{subStep.visited_status === 'current' &&
|
|
183
|
+
<AssignmentCard getPConnect={getPConnect} itemKey={itemKey} actionButtons={actionButtons} onButtonPress={buttonPress} >
|
|
184
|
+
{children}
|
|
185
|
+
</AssignmentCard>
|
|
186
|
+
}
|
|
187
|
+
</li>
|
|
188
|
+
</React.Fragment>
|
|
189
|
+
))}
|
|
190
|
+
|
|
191
|
+
</ul>
|
|
192
|
+
</React.Fragment>
|
|
193
|
+
}
|
|
194
|
+
{ !mainStep?.steps && mainStep.visited_status === 'current' &&
|
|
195
|
+
<AssignmentCard getPConnect={getPConnect} itemKey={itemKey} actionButtons={actionButtons} onButtonPress={buttonPress} >
|
|
196
|
+
{children}
|
|
197
|
+
</AssignmentCard>
|
|
198
|
+
}
|
|
199
|
+
</React.Fragment>
|
|
200
|
+
)})}
|
|
201
|
+
</div>
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
</div>
|
|
205
|
+
|
|
206
|
+
</React.Fragment>
|
|
207
|
+
|
|
208
|
+
)
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
MultiStep.propTypes = {
|
|
212
|
+
children: PropTypes.node.isRequired,
|
|
213
|
+
getPConnect: PropTypes.func.isRequired,
|
|
214
|
+
itemKey: PropTypes.string,
|
|
215
|
+
actionButtons: PropTypes.object,
|
|
216
|
+
onButtonPress: PropTypes.func,
|
|
217
|
+
bIsVertical: PropTypes.bool,
|
|
218
|
+
// eslint-disable-next-line react/no-unused-prop-types
|
|
219
|
+
arCurrentStepIndicies: PropTypes.array,
|
|
220
|
+
arNavigationSteps: PropTypes.array
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
MultiStep.defaultProps = {
|
|
224
|
+
itemKey: null
|
|
225
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './MultiStep';
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
.psdk-nav-divider {
|
|
2
|
+
border-bottom: 0.0625rem solid var(--app-nav-color);
|
|
3
|
+
width: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.psdk-nav-header {
|
|
7
|
+
display: flex;
|
|
8
|
+
padding-top: 0.625rem;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.psdk-nav-logo {
|
|
12
|
+
/* override vertical-align coming in from Bootstrap "reboot" */
|
|
13
|
+
vertical-align: baseline;
|
|
14
|
+
|
|
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
|
+
|
|
21
|
+
padding-left: 0.5rem;
|
|
22
|
+
padding-right: 0.5rem;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* background color white */
|
|
26
|
+
/* filter: var(--app-white-color-filter); */
|
|
27
|
+
.psdk-nav-svg-icon {
|
|
28
|
+
width: 2.6rem;
|
|
29
|
+
/* padding-right: 0.625rem; */
|
|
30
|
+
-webkit-filter: invert(.75); /* safari 6.0 - 9.0 */
|
|
31
|
+
filter: invert(.75);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.psdk-nav-portal-info {
|
|
35
|
+
margin-top: 0.15rem;
|
|
36
|
+
margin-bottom: 0.25rem;
|
|
37
|
+
padding-left: 0.15rem;
|
|
38
|
+
padding-right: 0.5rem;
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.psdk-nav-portal-name {
|
|
43
|
+
font-size: 1rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.psdk-nav-portal-app {
|
|
47
|
+
font-size: 1.0rem;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.psdk-appshell-nav {
|
|
51
|
+
top: 0px; /* JEA */
|
|
52
|
+
position: relative; /* JEA was fixed */
|
|
53
|
+
z-index: 3;
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
justify-content: flex-start;
|
|
57
|
+
background: var(--app-nav-bg);
|
|
58
|
+
width: var(--app-nav-width);
|
|
59
|
+
height: 100%;
|
|
60
|
+
color: var(--app-nav-color);
|
|
61
|
+
/* overflow: hidden; */
|
|
62
|
+
white-space: nowrap;
|
|
63
|
+
transition: width var(--transition-medium) var(--natural-ease);
|
|
64
|
+
will-change: width;
|
|
65
|
+
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.psdk-appshell-nav:hover {
|
|
69
|
+
width: var(--app-nav-width-expanded);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.psdk-appshell-topnav {
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
justify-content: flex-start;
|
|
76
|
+
background: var(--app-nav-bg);
|
|
77
|
+
width: var(--app-nav-width);
|
|
78
|
+
height: 15%;
|
|
79
|
+
color: var(--app-nav-color);
|
|
80
|
+
/* overflow: hidden; */
|
|
81
|
+
white-space: nowrap;
|
|
82
|
+
transition: width var(--transition-medium) var(--natural-ease);
|
|
83
|
+
will-change: width;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.psdk-appshell-middlenav {
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
justify-content: space-between;
|
|
90
|
+
background: var(--app-nav-bg);
|
|
91
|
+
width: var(--app-nav-width);
|
|
92
|
+
height: 50%;
|
|
93
|
+
color: var(--app-nav-color);
|
|
94
|
+
/* overflow: hidden; */
|
|
95
|
+
white-space: nowrap;
|
|
96
|
+
transition: width var(--transition-medium) var(--natural-ease);
|
|
97
|
+
will-change: width;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.psdk-appshell-bottom {
|
|
101
|
+
/* to make NavBar logout button stay fixed to bottom of window */
|
|
102
|
+
/* position: fixed; */
|
|
103
|
+
bottom: 0px;
|
|
104
|
+
background: var(--app-nav-bg);
|
|
105
|
+
width: var(--app-nav-width); /* inherit; */
|
|
106
|
+
border-top: 0.0625rem solid var(--app-nav-color);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* Added for nav bar buttons to be like middlenav but with no additional flex direction and left justify */
|
|
110
|
+
.psdk-appshell-buttonnav {
|
|
111
|
+
/* display: flex;
|
|
112
|
+
flex-direction: row; */
|
|
113
|
+
border: none;
|
|
114
|
+
justify-content: left;
|
|
115
|
+
background: var(--app-nav-bg);
|
|
116
|
+
width: var(--app-nav-width);
|
|
117
|
+
height: 50%;
|
|
118
|
+
color: var(--app-nav-color);
|
|
119
|
+
/* overflow: hidden; */
|
|
120
|
+
white-space: nowrap;
|
|
121
|
+
transition: width var(--transition-medium) var(--natural-ease);
|
|
122
|
+
will-change: width;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.psdk-nav-ul-middle {
|
|
126
|
+
display: block;
|
|
127
|
+
list-style-type: none;
|
|
128
|
+
margin: 0rem;
|
|
129
|
+
padding-inline-start: 30px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.psdk-nav-li-middle {
|
|
133
|
+
box-sizing: border-box;
|
|
134
|
+
text-align: left;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.psdk-icon {
|
|
138
|
+
padding: 0rem 0.125rem;
|
|
139
|
+
min-width: unset;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.psdk-nav-button-span {
|
|
143
|
+
padding: 1rem;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.psdk-nav-oper-avatar {
|
|
147
|
+
margin: 0rem;
|
|
148
|
+
padding: 0rem;
|
|
149
|
+
min-width: 2.5rem;
|
|
150
|
+
min-height: 2.5rem;
|
|
151
|
+
max-width: 2.5rem;
|
|
152
|
+
max-height: 2.5rem;
|
|
153
|
+
border-radius: 50%;
|
|
154
|
+
justify-content: center;
|
|
155
|
+
align-items: center;
|
|
156
|
+
text-align: center;
|
|
157
|
+
display: inline-flex;
|
|
158
|
+
background: var(--app-neutral-color);
|
|
159
|
+
color: white;
|
|
160
|
+
font-weight: normal;
|
|
161
|
+
font-size: 1rem;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.marginTopAuto {
|
|
165
|
+
margin-top: auto !important;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.scrollable {
|
|
169
|
+
overflow-y: scroll !important;
|
|
170
|
+
}
|