@pega/angular-sdk-overrides 24.2.12 → 25.1.11
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/alert/alert.component.scss +3 -3
- package/lib/designSystemExtension/alert/alert.component.ts +0 -1
- package/lib/designSystemExtension/alert-banner/alert-banner.component.ts +0 -1
- package/lib/designSystemExtension/banner/banner.component.html +1 -1
- package/lib/designSystemExtension/banner/banner.component.scss +17 -3
- package/lib/designSystemExtension/banner/banner.component.ts +0 -1
- package/lib/designSystemExtension/case-create-stage/case-create-stage.component.ts +0 -1
- package/lib/designSystemExtension/field-group/field-group.component.ts +0 -1
- package/lib/designSystemExtension/material-case-summary/material-case-summary.component.html +6 -3
- package/lib/designSystemExtension/material-case-summary/material-case-summary.component.scss +5 -34
- package/lib/designSystemExtension/material-case-summary/material-case-summary.component.ts +0 -1
- package/lib/designSystemExtension/material-details/material-details.component.scss +0 -5
- package/lib/designSystemExtension/material-details/material-details.component.ts +0 -1
- package/lib/designSystemExtension/material-details-fields/material-details-fields.component.html +2 -2
- package/lib/designSystemExtension/material-details-fields/material-details-fields.component.scss +4 -3
- package/lib/designSystemExtension/material-details-fields/material-details-fields.component.ts +0 -1
- package/lib/designSystemExtension/material-summary-item/material-summary-item.component.scss +4 -17
- package/lib/designSystemExtension/material-summary-item/material-summary-item.component.ts +0 -1
- package/lib/designSystemExtension/material-summary-list/material-summary-list.component.ts +0 -1
- package/lib/designSystemExtension/material-utility/material-utility.component.scss +1 -2
- package/lib/designSystemExtension/material-vertical-tabs/material-vertical-tabs.component.scss +1 -1
- package/lib/designSystemExtension/material-vertical-tabs/material-vertical-tabs.component.ts +0 -1
- package/lib/designSystemExtension/operator/operator.component.html +1 -1
- package/lib/designSystemExtension/operator/operator.component.scss +3 -10
- package/lib/designSystemExtension/operator/operator.component.ts +0 -2
- package/lib/designSystemExtension/pulse/pulse.component.scss +2 -2
- package/lib/designSystemExtension/pulse/pulse.component.ts +0 -1
- package/lib/designSystemExtension/rich-text-editor/rich-text-editor.component.html +4 -17
- package/lib/designSystemExtension/rich-text-editor/rich-text-editor.component.scss +0 -1
- package/lib/designSystemExtension/rich-text-editor/rich-text-editor.component.ts +30 -1
- package/lib/designSystemExtension/wss-quick-create/wss-quick-create.component.scss +16 -9
- package/lib/designSystemExtension/wss-quick-create/wss-quick-create.component.ts +0 -1
- package/lib/field/auto-complete/auto-complete.component.html +0 -1
- package/lib/field/auto-complete/auto-complete.component.ts +35 -173
- package/lib/field/cancel-alert/cancel-alert.component.html +8 -12
- package/lib/field/cancel-alert/cancel-alert.component.scss +2 -3
- package/lib/field/cancel-alert/cancel-alert.component.ts +24 -37
- package/lib/field/check-box/check-box.component.html +19 -10
- package/lib/field/check-box/check-box.component.scss +6 -1
- package/lib/field/check-box/check-box.component.ts +25 -151
- package/lib/field/currency/currency.component.ts +36 -169
- package/lib/field/date/date.component.html +2 -2
- package/lib/field/date/date.component.ts +30 -151
- package/lib/field/date-time/date-time.component.html +1 -1
- package/lib/field/date-time/date-time.component.ts +34 -149
- package/lib/field/decimal/decimal.component.ts +38 -164
- package/lib/field/dropdown/dropdown.component.ts +29 -152
- package/lib/field/email/email.component.ts +16 -156
- package/lib/field/field.base.ts +149 -0
- package/lib/field/group/group.component.ts +7 -5
- package/lib/field/integer/integer.component.ts +18 -158
- package/lib/field/list-view-action-buttons/list-view-action-buttons.component.ts +0 -1
- package/lib/field/location/config-ext.json +8 -0
- package/lib/field/location/location.component.html +46 -0
- package/lib/field/location/location.component.scss +18 -0
- package/lib/field/location/location.component.spec.ts +22 -0
- package/lib/field/location/location.component.ts +280 -0
- package/lib/field/multiselect/multiselect.component.ts +47 -152
- package/lib/field/multiselect/utils.ts +55 -47
- package/lib/field/object-reference/object-reference.component.html +17 -0
- package/lib/field/object-reference/object-reference.component.scss +0 -0
- package/lib/field/object-reference/object-reference.component.spec.ts +22 -0
- package/lib/field/object-reference/object-reference.component.ts +237 -0
- package/lib/field/percentage/percentage.component.ts +37 -155
- package/lib/field/phone/phone.component.html +18 -19
- package/lib/field/phone/phone.component.scss +4 -0
- package/lib/field/phone/phone.component.ts +43 -145
- package/lib/field/radio-buttons/radio-buttons.component.html +14 -6
- package/lib/field/radio-buttons/radio-buttons.component.scss +4 -2
- package/lib/field/radio-buttons/radio-buttons.component.ts +37 -160
- package/lib/field/rich-text/rich-text.component.html +2 -0
- package/lib/field/rich-text/rich-text.component.scss +172 -0
- package/lib/field/rich-text/rich-text.component.ts +21 -91
- package/lib/field/scalar-list/scalar-list.component.ts +17 -73
- package/lib/field/selectable-card/selectable-card.component.html +70 -0
- package/lib/field/selectable-card/selectable-card.component.scss +11 -0
- package/lib/field/selectable-card/selectable-card.component.spec.ts +22 -0
- package/lib/field/selectable-card/selectable-card.component.ts +219 -0
- package/lib/field/semantic-link/semantic-link.component.html +4 -8
- package/lib/field/semantic-link/semantic-link.component.scss +0 -13
- package/lib/field/semantic-link/semantic-link.component.ts +165 -6
- package/lib/field/text/text.component.scss +0 -1
- package/lib/field/text/text.component.ts +0 -1
- package/lib/field/text-area/text-area.component.ts +18 -153
- package/lib/field/text-content/text-content.component.ts +0 -1
- package/lib/field/text-input/text-input.component.ts +16 -156
- package/lib/field/time/time.component.ts +17 -152
- package/lib/field/url/url.component.ts +16 -155
- package/lib/field/user-reference/user-reference.component.scss +0 -1
- package/lib/field/user-reference/user-reference.component.ts +2 -4
- package/lib/infra/Containers/flow-container/flow-container.component.html +2 -2
- package/lib/infra/Containers/flow-container/flow-container.component.ts +8 -9
- package/lib/infra/Containers/hybrid-view-container/hybrid-view-container.component.ts +0 -1
- package/lib/infra/Containers/modal-view-container/modal-view-container.component.ts +5 -11
- package/lib/infra/Containers/view-container/helper.ts +35 -2
- package/lib/infra/Containers/view-container/view-container.component.ts +1 -2
- package/lib/infra/action-buttons/action-buttons.component.html +13 -8
- package/lib/infra/action-buttons/action-buttons.component.scss +23 -0
- package/lib/infra/action-buttons/action-buttons.component.ts +1 -3
- package/lib/infra/assignment/assignment.component.ts +21 -10
- package/lib/infra/assignment-card/assignment-card.component.html +1 -2
- package/lib/infra/assignment-card/assignment-card.component.scss +0 -4
- package/lib/infra/assignment-card/assignment-card.component.ts +21 -5
- package/lib/infra/dashboard-filter/dashboard-filter.component.ts +0 -1
- package/lib/infra/defer-load/defer-load.component.html +6 -2
- package/lib/infra/defer-load/defer-load.component.ts +22 -12
- package/lib/infra/error-boundary/error-boundary.component.ts +0 -1
- package/lib/infra/multi-step/multi-step.component.html +22 -38
- package/lib/infra/multi-step/multi-step.component.scss +14 -27
- package/lib/infra/multi-step/multi-step.component.ts +0 -1
- package/lib/infra/navbar/navbar.component.html +36 -41
- package/lib/infra/navbar/navbar.component.scss +22 -4
- package/lib/infra/navbar/navbar.component.ts +8 -4
- package/lib/infra/reference/reference.component.ts +5 -0
- package/lib/infra/region/region.component.ts +0 -1
- package/lib/infra/root-container/root-container.component.scss +0 -1
- package/lib/infra/root-container/root-container.component.ts +1 -5
- package/lib/infra/stages/stages.component.html +4 -3
- package/lib/infra/stages/stages.component.scss +12 -36
- package/lib/infra/stages/stages.component.ts +4 -3
- package/lib/infra/view/view.component.html +1 -1
- package/lib/infra/view/view.component.ts +3 -7
- package/lib/template/advanced-search/advanced-search.component.html +12 -0
- package/lib/template/advanced-search/advanced-search.component.scss +0 -0
- package/lib/template/advanced-search/advanced-search.component.spec.ts +0 -0
- package/lib/template/advanced-search/advanced-search.component.ts +112 -0
- package/lib/template/advanced-search/advanced-search.service.ts +27 -0
- package/lib/template/advanced-search/search-group/persist-utils.ts +56 -0
- package/lib/template/advanced-search/search-groups/search-groups.component.html +32 -0
- package/lib/template/advanced-search/search-groups/search-groups.component.scss +0 -0
- package/lib/template/advanced-search/search-groups/search-groups.component.spec.ts +0 -0
- package/lib/template/advanced-search/search-groups/search-groups.component.ts +294 -0
- package/lib/template/advanced-search/search-groups/utils.ts +29 -0
- package/lib/template/app-shell/app-shell.component.html +4 -1
- package/lib/template/app-shell/app-shell.component.scss +0 -3
- package/lib/template/app-shell/app-shell.component.ts +46 -8
- package/lib/template/banner-page/banner-page.component.ts +0 -1
- package/lib/template/case-summary/case-summary.component.scss +0 -2
- package/lib/template/case-summary/case-summary.component.ts +6 -22
- package/lib/template/case-view/case-view.component.html +4 -4
- package/lib/template/case-view/case-view.component.scss +18 -10
- package/lib/template/case-view/case-view.component.ts +1 -11
- package/lib/template/confirmation/confirmation.component.html +1 -1
- package/lib/template/confirmation/confirmation.component.ts +0 -1
- package/lib/template/data-reference/data-reference.component.html +11 -8
- package/lib/template/data-reference/data-reference.component.ts +346 -113
- package/lib/template/data-reference/search-form/search-form.component.html +39 -0
- package/lib/template/data-reference/search-form/search-form.component.scss +11 -0
- package/lib/template/data-reference/search-form/search-form.component.spec.ts +0 -0
- package/lib/template/data-reference/search-form/search-form.component.ts +167 -0
- package/lib/template/data-reference/search-form/tabsData.ts +160 -0
- package/lib/template/data-reference/utils.ts +92 -0
- package/lib/template/default-form/default-form.component.ts +10 -3
- package/lib/template/default-page/default-page.component.html +34 -0
- package/lib/template/default-page/default-page.component.scss +31 -0
- package/lib/template/default-page/default-page.component.spec.ts +24 -0
- package/lib/template/default-page/default-page.component.ts +64 -0
- package/lib/template/details/details.component.ts +0 -1
- package/lib/template/details-narrow-wide/details-narrow-wide.component.ts +0 -1
- package/lib/template/details-one-column/details-one-column.component.ts +0 -1
- package/lib/template/details-sub-tabs/details-sub-tabs.component.ts +0 -1
- package/lib/template/details-three-column/details-three-column.component.ts +0 -1
- package/lib/template/details-two-column/details-two-column.component.ts +0 -1
- package/lib/template/details-wide-narrow/details-wide-narrow.component.ts +0 -1
- package/lib/template/dynamic-tabs/dynamic-tabs.component.ts +0 -1
- package/lib/template/field-group-list/field-group-list.component.scss +0 -1
- package/lib/template/field-group-list/field-group-list.component.ts +0 -1
- package/lib/template/field-group-template/field-group-template.component.ts +14 -28
- package/lib/template/field-value-list/field-value-list.component.ts +0 -1
- package/lib/template/inline-dashboard/inline-dashboard.component.ts +0 -1
- package/lib/template/inline-dashboard-page/inline-dashboard-page.component.ts +1 -2
- package/lib/template/list-page/list-page.component.ts +0 -1
- package/lib/template/list-view/list-view.component.html +170 -162
- package/lib/template/list-view/list-view.component.scss +25 -21
- package/lib/template/list-view/list-view.component.ts +207 -119
- package/lib/template/list-view/listViewHelpers.ts +1 -4
- package/lib/template/list-view/utils.ts +25 -2
- package/lib/template/multi-reference-readonly/multi-reference-readonly.component.ts +0 -1
- package/lib/template/narrow-wide-form/narrow-wide-form.component.ts +0 -1
- package/lib/template/object-page/object-page.component.html +1 -0
- package/lib/template/object-page/object-page.component.scss +0 -0
- package/lib/template/object-page/object-page.component.spec.ts +22 -0
- package/lib/template/object-page/object-page.component.ts +14 -0
- package/lib/template/one-column/one-column.component.ts +0 -1
- package/lib/template/one-column-page/one-column-page.component.ts +0 -1
- package/lib/template/one-column-tab/one-column-tab.component.scss +1 -1
- package/lib/template/one-column-tab/one-column-tab.component.ts +0 -1
- package/lib/template/page/page.component.ts +0 -1
- package/lib/template/promoted-filters/promoted-filters.component.ts +0 -1
- package/lib/template/repeating-structures/repeating-structures.component.ts +0 -2
- package/lib/template/self-service-case-view/self-service-case-view.component.html +78 -0
- package/lib/template/self-service-case-view/self-service-case-view.component.scss +132 -0
- package/lib/template/self-service-case-view/self-service-case-view.component.spec.ts +24 -0
- package/lib/template/self-service-case-view/self-service-case-view.component.ts +207 -0
- package/lib/template/simple-table/simple-table.component.ts +0 -2
- package/lib/template/simple-table-manual/helpers.ts +117 -3
- package/lib/template/simple-table-manual/simple-table-manual.component.html +4 -4
- package/lib/template/simple-table-manual/simple-table-manual.component.scss +4 -14
- package/lib/template/simple-table-manual/simple-table-manual.component.ts +45 -25
- package/lib/template/simple-table-select/simple-table-select.component.ts +0 -1
- package/lib/template/single-reference-readonly/single-reference-readonly.component.html +4 -1
- package/lib/template/single-reference-readonly/single-reference-readonly.component.scss +21 -0
- package/lib/template/single-reference-readonly/single-reference-readonly.component.ts +104 -4
- package/lib/template/sub-tabs/sub-tabs.component.ts +0 -1
- package/lib/template/three-column/three-column.component.ts +0 -1
- package/lib/template/three-column-page/three-column-page.component.ts +0 -1
- package/lib/template/two-column/two-column.component.ts +0 -1
- package/lib/template/two-column-page/two-column-page.component.ts +0 -1
- package/lib/template/two-column-tab/two-column-tab.component.ts +0 -1
- package/lib/template/utils.ts +42 -0
- package/lib/template/wide-narrow-form/wide-narrow-form.component.ts +0 -1
- package/lib/template/wide-narrow-page/wide-narrow-page.component.ts +0 -1
- package/lib/template/wss-nav-bar/wss-nav-bar.component.html +6 -5
- package/lib/template/wss-nav-bar/wss-nav-bar.component.scss +8 -17
- package/lib/template/wss-nav-bar/wss-nav-bar.component.ts +1 -9
- package/lib/widget/app-announcement/app-announcement.component.html +1 -2
- package/lib/widget/app-announcement/app-announcement.component.scss +2 -2
- package/lib/widget/app-announcement/app-announcement.component.ts +0 -1
- package/lib/widget/attachment/Attachment.types.ts +92 -0
- package/lib/widget/attachment/AttachmentUtils.ts +287 -0
- package/lib/widget/attachment/attachment.component.html +3 -3
- package/lib/widget/attachment/attachment.component.scss +9 -12
- package/lib/widget/attachment/attachment.component.ts +267 -254
- package/lib/widget/case-history/case-history.component.ts +0 -1
- package/lib/widget/feed-container/feed-container.component.scss +3 -9
- package/lib/widget/feed-container/feed-container.component.ts +2 -3
- package/lib/widget/file-utility/file-utility.component.html +3 -3
- package/lib/widget/file-utility/file-utility.component.scss +6 -17
- package/lib/widget/file-utility/file-utility.component.ts +24 -9
- package/lib/widget/list-utility/list-utility.component.scss +4 -5
- package/lib/widget/list-utility/list-utility.component.ts +0 -1
- package/lib/widget/quick-create/quick-create.component.ts +41 -23
- package/lib/widget/todo/todo.component.html +8 -5
- package/lib/widget/todo/todo.component.scss +11 -10
- package/lib/widget/todo/todo.component.ts +7 -4
- package/lib/widget/utility/utility.component.ts +0 -1
- package/package.json +1 -1
|
@@ -11,7 +11,6 @@ interface CaseHistoryProps {
|
|
|
11
11
|
selector: 'app-case-history',
|
|
12
12
|
templateUrl: './case-history.component.html',
|
|
13
13
|
styleUrls: ['./case-history.component.scss'],
|
|
14
|
-
standalone: true,
|
|
15
14
|
imports: [CommonModule, MatTableModule]
|
|
16
15
|
})
|
|
17
16
|
export class CaseHistoryComponent implements OnInit {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.psdk-pulse-divider {
|
|
2
|
-
border-bottom: 0.0625rem solid var(--
|
|
2
|
+
border-bottom: 0.0625rem solid var(--mat-sys-outline-variant);
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.psdk-full-width {
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
padding: 0rem 0.125rem;
|
|
18
18
|
min-width: unset;
|
|
19
19
|
display: inline-block;
|
|
20
|
-
color: var(--app-primary-color);
|
|
21
20
|
}
|
|
22
21
|
|
|
23
22
|
.psdk-send-svg-icon {
|
|
@@ -52,8 +51,6 @@
|
|
|
52
51
|
align-items: center;
|
|
53
52
|
text-align: center;
|
|
54
53
|
display: flex;
|
|
55
|
-
background: var(--app-primary-color);
|
|
56
|
-
color: var(--app-form-color);
|
|
57
54
|
font-weight: bold;
|
|
58
55
|
font-size: 1.25rem;
|
|
59
56
|
}
|
|
@@ -70,8 +67,8 @@
|
|
|
70
67
|
align-items: center;
|
|
71
68
|
text-align: center;
|
|
72
69
|
display: flex;
|
|
73
|
-
background: var(--
|
|
74
|
-
color: var(--
|
|
70
|
+
background: var(--mat-sys-primary);
|
|
71
|
+
color: var(--mat-sys-on-primary);
|
|
75
72
|
font-weight: bold;
|
|
76
73
|
font-size: 1.5625rem;
|
|
77
74
|
}
|
|
@@ -95,7 +92,6 @@
|
|
|
95
92
|
}
|
|
96
93
|
|
|
97
94
|
.psdk-pulse-message-time {
|
|
98
|
-
color: var(--app-pulse-message-color);
|
|
99
95
|
}
|
|
100
96
|
|
|
101
97
|
.psdk-pulse-message-text {
|
|
@@ -141,7 +137,6 @@
|
|
|
141
137
|
}
|
|
142
138
|
|
|
143
139
|
.psdk-pulse-reply-message {
|
|
144
|
-
background-color: var(--app-pulse-message-background-color);
|
|
145
140
|
border-radius: 0.625rem;
|
|
146
141
|
padding: 0rem 1.25rem;
|
|
147
142
|
white-space: pre-line;
|
|
@@ -170,7 +165,6 @@
|
|
|
170
165
|
}
|
|
171
166
|
|
|
172
167
|
.psdk-pulse-reply-time {
|
|
173
|
-
color: var(--app-pulse-message-color);
|
|
174
168
|
padding-left: 0.625rem;
|
|
175
169
|
}
|
|
176
170
|
|
|
@@ -14,7 +14,6 @@ import { Utils } from '@pega/angular-sdk-components';
|
|
|
14
14
|
templateUrl: './feed-container.component.html',
|
|
15
15
|
styleUrls: ['./feed-container.component.scss'],
|
|
16
16
|
providers: [Utils],
|
|
17
|
-
standalone: true,
|
|
18
17
|
imports: [CommonModule, MatFormFieldModule, MatInputModule, MatGridListModule, MatButtonModule]
|
|
19
18
|
})
|
|
20
19
|
export class FeedContainerComponent implements OnInit, OnDestroy {
|
|
@@ -30,7 +29,7 @@ export class FeedContainerComponent implements OnInit, OnDestroy {
|
|
|
30
29
|
currentUserName$: string;
|
|
31
30
|
|
|
32
31
|
pulseMessages$: any[];
|
|
33
|
-
showReplyComment$:
|
|
32
|
+
showReplyComment$: object = {};
|
|
34
33
|
|
|
35
34
|
svgComment$: string;
|
|
36
35
|
svgLike$: string;
|
|
@@ -40,7 +39,7 @@ export class FeedContainerComponent implements OnInit, OnDestroy {
|
|
|
40
39
|
pulseConversation: string;
|
|
41
40
|
userData: Map<any, any> = new Map();
|
|
42
41
|
|
|
43
|
-
pulseComment:
|
|
42
|
+
pulseComment: object = {};
|
|
44
43
|
|
|
45
44
|
// functions
|
|
46
45
|
actionsAPI: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
</div>
|
|
16
16
|
|
|
17
17
|
<div *ngIf="bShowFileModal$" class="psdk-dialog-background">
|
|
18
|
-
<div class="psdk-modal-
|
|
18
|
+
<div class="psdk-modal-top">
|
|
19
19
|
<h3>{{ pConn$.getLocalizedValue('Add local files', '', '') }}</h3>
|
|
20
20
|
<div class="psdk-modal-body">
|
|
21
21
|
<div class="psdk-modal-file-selector">
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
</div>
|
|
41
41
|
|
|
42
42
|
<div *ngIf="bShowLinkModal$" class="psdk-dialog-background">
|
|
43
|
-
<div class="psdk-modal-
|
|
43
|
+
<div class="psdk-modal-top">
|
|
44
44
|
<h3>{{ pConn$.getLocalizedValue('Add links', '', '') }}</h3>
|
|
45
45
|
<div class="psdk-modal-link-entry">
|
|
46
46
|
<div class="psdk-modal-body">
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
</div>
|
|
83
83
|
|
|
84
84
|
<div *ngIf="bShowViewAllModal$" class="psdk-dialog-background">
|
|
85
|
-
<div class="psdk-modal-
|
|
85
|
+
<div class="psdk-modal-top">
|
|
86
86
|
<div class="psdk-view-all-header">
|
|
87
87
|
<div>
|
|
88
88
|
<h3>{{ pConn$.getLocalizedValue('Attachments', '', '') }}</h3>
|
|
@@ -5,37 +5,26 @@
|
|
|
5
5
|
align-items: center;
|
|
6
6
|
height: 100%;
|
|
7
7
|
width: 100%;
|
|
8
|
-
background-color:
|
|
8
|
+
background-color: rgba(0, 0, 0, 0.6);
|
|
9
9
|
position: fixed;
|
|
10
10
|
z-index: 999;
|
|
11
11
|
top: 0px;
|
|
12
12
|
left: 0px;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.psdk-modal-
|
|
15
|
+
.psdk-modal-top {
|
|
16
16
|
display: table;
|
|
17
17
|
margin: auto;
|
|
18
18
|
min-width: 650px;
|
|
19
|
-
background-color: var(--
|
|
20
|
-
border: 1px solid var(--
|
|
19
|
+
background-color: var(--mat-sys-surface-container);
|
|
20
|
+
border: 1px solid var(--mat-sys-outline-variant);
|
|
21
21
|
border-radius: 10px;
|
|
22
22
|
padding: 20px;
|
|
23
|
-
box-shadow: 0 0 10px 3px var(--
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.psdk-modal-link-top {
|
|
27
|
-
display: table;
|
|
28
|
-
margin: auto;
|
|
29
|
-
min-width: 650px;
|
|
30
|
-
background-color: var(--app-form-color);
|
|
31
|
-
border: 1px solid var(--app-inverse-form-color);
|
|
32
|
-
border-radius: 10px;
|
|
33
|
-
padding: 20px;
|
|
34
|
-
box-shadow: 0 0 10px 3px var(--app-box-shadow-color);
|
|
23
|
+
box-shadow: 0 0 10px 3px var(--mat-sys-level3);
|
|
35
24
|
}
|
|
36
25
|
|
|
37
26
|
.psdk-modal-file-selector {
|
|
38
|
-
border: 1px dashed var(--
|
|
27
|
+
border: 1px dashed var(--mat-sys-neutral-variant20);
|
|
39
28
|
width: 100%;
|
|
40
29
|
padding: 0.3rem;
|
|
41
30
|
text-align: center;
|
|
@@ -4,20 +4,23 @@ import { MatButtonModule } from '@angular/material/button';
|
|
|
4
4
|
import { MatInputModule } from '@angular/material/input';
|
|
5
5
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
6
6
|
import download from 'downloadjs';
|
|
7
|
+
import debounce from 'lodash.debounce';
|
|
8
|
+
|
|
7
9
|
import { AngularPConnectData, AngularPConnectService } from '@pega/angular-sdk-components';
|
|
8
10
|
import { Utils } from '@pega/angular-sdk-components';
|
|
9
11
|
import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
12
|
+
import { getResolvedConstantValue } from '@pega/angular-sdk-components';
|
|
10
13
|
|
|
11
14
|
interface FileUtilityProps {
|
|
12
15
|
// If any, enter additional props that only exist on this component
|
|
13
16
|
label?: string;
|
|
17
|
+
caseId?: string;
|
|
14
18
|
}
|
|
15
19
|
|
|
16
20
|
@Component({
|
|
17
21
|
selector: 'app-file-utility',
|
|
18
22
|
templateUrl: './file-utility.component.html',
|
|
19
23
|
styleUrls: ['./file-utility.component.scss'],
|
|
20
|
-
standalone: true,
|
|
21
24
|
imports: [CommonModule, MatButtonModule, MatFormFieldModule, MatInputModule, forwardRef(() => ComponentMapperComponent)]
|
|
22
25
|
})
|
|
23
26
|
export class FileUtilityComponent implements OnInit, OnDestroy {
|
|
@@ -63,6 +66,8 @@ export class FileUtilityComponent implements OnInit, OnDestroy {
|
|
|
63
66
|
closeSvgIcon$ = '';
|
|
64
67
|
|
|
65
68
|
currentCaseID = '';
|
|
69
|
+
debouncedGetAttachments: any;
|
|
70
|
+
attachSubId;
|
|
66
71
|
|
|
67
72
|
addAttachmentsActions: any;
|
|
68
73
|
|
|
@@ -78,7 +83,9 @@ export class FileUtilityComponent implements OnInit, OnDestroy {
|
|
|
78
83
|
|
|
79
84
|
const configProps: FileUtilityProps = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps());
|
|
80
85
|
|
|
81
|
-
|
|
86
|
+
const { caseId, label } = configProps;
|
|
87
|
+
|
|
88
|
+
this.lu_name$ = label ?? '';
|
|
82
89
|
this.lu_icon$ = 'paper-clip';
|
|
83
90
|
|
|
84
91
|
this.closeSvgIcon$ = this.utils.getImageSrc('times', this.utils.getSDKStaticContentUrl());
|
|
@@ -101,15 +108,23 @@ export class FileUtilityComponent implements OnInit, OnDestroy {
|
|
|
101
108
|
this.removeFileFromList$ = { onClick: this.removeFileFromList.bind(this) };
|
|
102
109
|
this.removeLinksFromList$ = { onClick: this.removeLinksFromList.bind(this) };
|
|
103
110
|
|
|
111
|
+
this.debouncedGetAttachments = debounce(this.refreshAttachments.bind(this), 1000);
|
|
112
|
+
|
|
104
113
|
this.updateSelf();
|
|
105
114
|
|
|
106
115
|
this.createModalButtons();
|
|
107
116
|
|
|
108
|
-
PCore.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
'
|
|
112
|
-
|
|
117
|
+
const caseID = caseId ?? getResolvedConstantValue(this.pConn$, PCore.getConstants().CASE_INFO.CASE_INFO_ID);
|
|
118
|
+
|
|
119
|
+
const attachSubObject = {
|
|
120
|
+
matcher: 'ATTACHMENTS',
|
|
121
|
+
criteria: {
|
|
122
|
+
ID: caseID
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
this.attachSubId = PCore.getMessagingServiceManager().subscribe(attachSubObject, this.debouncedGetAttachments, this.pConn$.getContextName());
|
|
126
|
+
|
|
127
|
+
this.debouncedGetAttachments();
|
|
113
128
|
}
|
|
114
129
|
|
|
115
130
|
ngOnDestroy(): void {
|
|
@@ -117,7 +132,7 @@ export class FileUtilityComponent implements OnInit, OnDestroy {
|
|
|
117
132
|
this.angularPConnectData.unsubscribeFn();
|
|
118
133
|
}
|
|
119
134
|
|
|
120
|
-
PCore.
|
|
135
|
+
PCore.getMessagingServiceManager().unsubscribe(this.attachSubId);
|
|
121
136
|
}
|
|
122
137
|
|
|
123
138
|
// Callback passed when subscribing to store change
|
|
@@ -137,7 +152,7 @@ export class FileUtilityComponent implements OnInit, OnDestroy {
|
|
|
137
152
|
}
|
|
138
153
|
}
|
|
139
154
|
|
|
140
|
-
onAttachFiles(files) {
|
|
155
|
+
onAttachFiles(files: any[] = []) {
|
|
141
156
|
const attachmentUtils = PCore.getAttachmentUtils();
|
|
142
157
|
const caseID = this.pConn$.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);
|
|
143
158
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.psdk-utility-divider {
|
|
14
|
-
border-bottom: 0.0625rem solid var(--
|
|
14
|
+
border-bottom: 0.0625rem solid var(--mat-sys-outline-variant);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.psdk-utility-view-all {
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.psdk-utility-count {
|
|
24
|
-
background: var(--
|
|
24
|
+
background: var(--mat-sys-inverse-primary);
|
|
25
|
+
color: var(--mat-sys-on-primary);
|
|
25
26
|
border-radius: calc(1.125 * 0.5rem);
|
|
26
|
-
color: var(--app-inverse-form-color);
|
|
27
27
|
display: inline-block;
|
|
28
28
|
font-size: 0.75rem;
|
|
29
29
|
font-weight: bold;
|
|
@@ -50,7 +50,6 @@
|
|
|
50
50
|
width: 100%;
|
|
51
51
|
padding: 0.625rem 0rem;
|
|
52
52
|
text-align: left;
|
|
53
|
-
background-color: var(--app-form-color);
|
|
54
53
|
border-radius: 0.6125rem;
|
|
55
54
|
margin: 0.3125rem 0rem;
|
|
56
55
|
position: relative;
|
|
@@ -64,6 +63,7 @@
|
|
|
64
63
|
.psdk-utility-svg-icon {
|
|
65
64
|
width: 1.4rem;
|
|
66
65
|
display: inline-block;
|
|
66
|
+
filter: var(--app-primary-color-filter);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.psdk-settings-svg-icon {
|
|
@@ -98,7 +98,6 @@
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.psdk-utility-card-main-primary-url {
|
|
101
|
-
color: var(--app-primary-color);
|
|
102
101
|
}
|
|
103
102
|
|
|
104
103
|
.psdk-utility-card-main-primary-url .mat-mdc-button.mat-primary {
|
|
@@ -10,7 +10,6 @@ import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
|
10
10
|
selector: 'app-list-utility',
|
|
11
11
|
templateUrl: './list-utility.component.html',
|
|
12
12
|
styleUrls: ['./list-utility.component.scss'],
|
|
13
|
-
standalone: true,
|
|
14
13
|
imports: [CommonModule, MatButtonModule, MatMenuModule, MatProgressSpinnerModule, forwardRef(() => ComponentMapperComponent)]
|
|
15
14
|
})
|
|
16
15
|
export class ListUtilityComponent implements OnInit {
|
|
@@ -14,7 +14,6 @@ interface QuickCreateProps {
|
|
|
14
14
|
selector: 'app-quick-create',
|
|
15
15
|
templateUrl: './quick-create.component.html',
|
|
16
16
|
styleUrls: ['./quick-create.component.scss'],
|
|
17
|
-
standalone: true,
|
|
18
17
|
imports: [CommonModule, forwardRef(() => ComponentMapperComponent)]
|
|
19
18
|
})
|
|
20
19
|
export class QuickCreateComponent implements OnInit, OnChanges {
|
|
@@ -41,38 +40,57 @@ export class QuickCreateComponent implements OnInit, OnChanges {
|
|
|
41
40
|
|
|
42
41
|
initComponent() {
|
|
43
42
|
this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as QuickCreateProps;
|
|
44
|
-
|
|
45
43
|
this.heading$ = this.configProps$.heading;
|
|
46
44
|
this.showCaseIcons$ = this.configProps$.showCaseIcons;
|
|
47
45
|
this.classFilter$ = this.configProps$.classFilter;
|
|
48
|
-
|
|
46
|
+
const cases: any = [];
|
|
47
|
+
const defaultCases: any = [];
|
|
49
48
|
const envInfo = PCore.getEnvironmentInfo();
|
|
50
|
-
if (
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
49
|
+
if (envInfo?.environmentInfoObject?.pyCaseTypeList) {
|
|
50
|
+
envInfo.environmentInfoObject.pyCaseTypeList.forEach((casetype: any) => {
|
|
51
|
+
if (casetype.pyWorkTypeName && casetype.pyWorkTypeImplementationClassName) {
|
|
52
|
+
defaultCases.push({
|
|
53
|
+
classname: casetype.pyWorkTypeImplementationClassName,
|
|
54
|
+
onClick: () => {
|
|
55
|
+
this.createCase(casetype.pyWorkTypeImplementationClassName);
|
|
56
|
+
},
|
|
57
|
+
...(this.showCaseIcons$ && { icon: this.utils.getImageSrc(casetype?.pxIcon, this.utils.getSDKStaticContentUrl()) }),
|
|
58
|
+
label: casetype.pyWorkTypeName
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
} else {
|
|
63
|
+
const pConnectInAppContext = PCore.createPConnect({
|
|
64
|
+
options: { context: PCore.getConstants().APP.APP }
|
|
65
|
+
}).getPConnect();
|
|
66
|
+
const pyPortalInAppContext = pConnectInAppContext.getValue('pyPortal') as any;
|
|
67
|
+
pyPortalInAppContext?.pyCaseTypesAvailableToCreate?.forEach(casetype => {
|
|
68
|
+
if (casetype.pyClassName && casetype.pyLabel) {
|
|
69
|
+
defaultCases.push({
|
|
70
|
+
classname: casetype.pyClassName,
|
|
68
71
|
onClick: () => {
|
|
69
|
-
this.createCase(
|
|
72
|
+
this.createCase(casetype.pyClassName);
|
|
70
73
|
},
|
|
71
|
-
...(this.showCaseIcons$ && { icon })
|
|
74
|
+
...(this.showCaseIcons$ && { icon: this.utils.getImageSrc(casetype?.pxIcon, this.utils.getSDKStaticContentUrl()) }),
|
|
75
|
+
label: casetype.pyLabel
|
|
72
76
|
});
|
|
73
77
|
}
|
|
74
78
|
});
|
|
75
79
|
}
|
|
80
|
+
|
|
81
|
+
/* If classFilter is not empty - filter from the list of defaultCases */
|
|
82
|
+
if (this.classFilter$?.length > 0) {
|
|
83
|
+
this.classFilter$.forEach(item => {
|
|
84
|
+
defaultCases.forEach(casetype => {
|
|
85
|
+
if (casetype.classname === item) {
|
|
86
|
+
cases.push(casetype);
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
this.cases$ = cases;
|
|
91
|
+
} else {
|
|
92
|
+
this.cases$ = defaultCases;
|
|
93
|
+
}
|
|
76
94
|
}
|
|
77
95
|
|
|
78
96
|
ngOnInit() {
|
|
@@ -14,20 +14,23 @@
|
|
|
14
14
|
<div class="psdk-todo-assignment-title">{{ getAssignmentName(assignment) }}</div>
|
|
15
15
|
<div class="psdk-todo-assignment-data">
|
|
16
16
|
<div class="psdk-todo-assignment-task">
|
|
17
|
-
{{ localizedVal('
|
|
17
|
+
{{ localizedVal('In', localeCategory) }}
|
|
18
18
|
<button class="psdk-todo-id" style="cursor: pointer" (click)="clickGo(assignment)" *ngIf="!isConfirm || canPerform; else readOnlyText">
|
|
19
|
-
{{ assignment
|
|
19
|
+
{{ localizedVal(assignment?.name, '', localeUtils.getCaseLocaleReference(assignment.classname)) }} {{ getID(assignment) }}
|
|
20
20
|
</button>
|
|
21
|
-
<ng-template #readOnlyText> {{ assignment
|
|
21
|
+
<ng-template #readOnlyText> {{ localizedVal(assignment?.name, localeCategory) }} {{ getID(assignment) }} </ng-template>
|
|
22
22
|
<span *ngIf="assignment.status != undefined">
|
|
23
|
-
•
|
|
23
|
+
•
|
|
24
|
+
<span class="psdk-todo-assignment-status">{{
|
|
25
|
+
localizedVal(assignment.status, '', localeUtils.getCaseLocaleReference(assignment.classname))
|
|
26
|
+
}}</span>
|
|
24
27
|
</span>
|
|
25
28
|
• {{ localizedVal('Urgency', localeCategory) }} {{ getPriority(assignment) }}
|
|
26
29
|
</div>
|
|
27
30
|
</div>
|
|
28
31
|
</div>
|
|
29
32
|
<div *ngIf="!isConfirm || canPerform" class="psdk-todo-assignment-action">
|
|
30
|
-
<button mat-flat-button color="primary" (click)="clickGo(assignment)">{{
|
|
33
|
+
<button mat-flat-button color="primary" (click)="clickGo(assignment)">{{ goLocalizedValue === 'go' ? 'Go' : goLocalizedValue }}</button>
|
|
31
34
|
</div>
|
|
32
35
|
</div>
|
|
33
36
|
<div class="psdk-display-divider"></div>
|
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.psdk-display-divider {
|
|
8
|
-
border-bottom: 0.0625rem solid var(--
|
|
8
|
+
border-bottom: 0.0625rem solid var(--mat-sys-outline-variant);
|
|
9
9
|
margin-block: 0.5rem;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.psdk-todo {
|
|
13
13
|
padding: 1rem;
|
|
14
|
-
background-color: var(--
|
|
14
|
+
background-color: var(--mat-sys-surface-container);
|
|
15
15
|
border-radius: 0.6125rem;
|
|
16
16
|
border-left: 6px solid;
|
|
17
|
-
border-left-color: var(--
|
|
17
|
+
border-left-color: var(--mat-sys-primary);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.psdk-todo-header {
|
|
@@ -29,14 +29,15 @@
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.psdk-assignment-count {
|
|
32
|
-
background-color: var(--
|
|
32
|
+
background-color: var(--mat-sys-inverse-primary);
|
|
33
|
+
color: var(--mat-sys-on-primary);
|
|
33
34
|
margin: 0.5rem;
|
|
34
35
|
border-radius: 45%;
|
|
35
36
|
padding: 0.15rem 0.4rem;
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
.psdk-todo-id {
|
|
39
|
-
color: var(--
|
|
40
|
+
color: var(--mat-sys-primary);
|
|
40
41
|
padding: 0;
|
|
41
42
|
cursor: pointer;
|
|
42
43
|
border: 0;
|
|
@@ -56,8 +57,8 @@
|
|
|
56
57
|
align-items: center;
|
|
57
58
|
text-align: center;
|
|
58
59
|
display: flex;
|
|
59
|
-
background: var(--
|
|
60
|
-
color: var(--
|
|
60
|
+
background: var(--mat-sys-primary);
|
|
61
|
+
color: var(--mat-sys-on-primary);
|
|
61
62
|
font-weight: bold;
|
|
62
63
|
font-size: 1.25rem;
|
|
63
64
|
}
|
|
@@ -74,9 +75,9 @@
|
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
.psdk-todo-assignment-status {
|
|
77
|
-
background-color: var(--
|
|
78
|
+
background-color: var(--mat-sys-surface-container-highest);
|
|
78
79
|
border-radius: 0.125rem;
|
|
79
|
-
color: var(--
|
|
80
|
+
color: var(--mat-sys-on-surface);
|
|
80
81
|
font-size: 0.75rem;
|
|
81
82
|
font-weight: bold;
|
|
82
83
|
line-height: calc(0.5rem * 2.5);
|
|
@@ -86,7 +87,7 @@
|
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
.psdk-todo-assignment-task {
|
|
89
|
-
color: var(--
|
|
90
|
+
color: var(--mat-sys-on-surface);
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
.psdk-todo-assignment-action {
|
|
@@ -64,7 +64,6 @@ interface ToDoProps {
|
|
|
64
64
|
templateUrl: './todo.component.html',
|
|
65
65
|
styleUrls: ['./todo.component.scss'],
|
|
66
66
|
providers: [Utils],
|
|
67
|
-
standalone: true,
|
|
68
67
|
imports: [CommonModule, MatButtonModule]
|
|
69
68
|
})
|
|
70
69
|
export class TodoComponent implements OnInit, OnDestroy {
|
|
@@ -88,9 +87,11 @@ export class TodoComponent implements OnInit, OnDestroy {
|
|
|
88
87
|
CONSTS: typeof publicConstants;
|
|
89
88
|
bLogging = true;
|
|
90
89
|
localizedVal = PCore.getLocaleUtils().getLocaleValue;
|
|
90
|
+
localeUtils = PCore.getLocaleUtils();
|
|
91
91
|
localeCategory = 'Todo';
|
|
92
92
|
showlessLocalizedValue = this.localizedVal('show_less', 'CosmosFields');
|
|
93
93
|
showMoreLocalizedValue = this.localizedVal('show_more', 'CosmosFields');
|
|
94
|
+
goLocalizedValue = this.localizedVal('go', 'CosmosFields');
|
|
94
95
|
count: number;
|
|
95
96
|
|
|
96
97
|
constructor(
|
|
@@ -128,7 +129,7 @@ export class TodoComponent implements OnInit, OnDestroy {
|
|
|
128
129
|
DATA_PAGES: { D__PY_MY_WORK_LIST }
|
|
129
130
|
}
|
|
130
131
|
} = PCore.getConstants();
|
|
131
|
-
updateWorkList(
|
|
132
|
+
updateWorkList(this.pConn$, getMappedValue(D__PY_MY_WORK_LIST));
|
|
132
133
|
}
|
|
133
134
|
|
|
134
135
|
updateToDo() {
|
|
@@ -153,7 +154,7 @@ export class TodoComponent implements OnInit, OnDestroy {
|
|
|
153
154
|
}
|
|
154
155
|
} else {
|
|
155
156
|
// get caseInfoId assignment.
|
|
156
|
-
|
|
157
|
+
|
|
157
158
|
if (this.caseInfoID$ != undefined) {
|
|
158
159
|
this.arAssignments$ = this.getCaseInfoAssignment(this.assignmentsSource$, this.caseInfoID$);
|
|
159
160
|
}
|
|
@@ -191,7 +192,9 @@ export class TodoComponent implements OnInit, OnDestroy {
|
|
|
191
192
|
}
|
|
192
193
|
|
|
193
194
|
getAssignmentName(assignment) {
|
|
194
|
-
return this.type$ === this.CONSTS.TODO
|
|
195
|
+
return this.type$ === this.CONSTS.TODO
|
|
196
|
+
? this.localizedVal(assignment.name, '', PCore.getLocaleUtils().getCaseLocaleReference(assignment.classname))
|
|
197
|
+
: this.localizedVal(assignment.stepName, '', PCore.getLocaleUtils().getCaseLocaleReference(assignment.classname));
|
|
195
198
|
}
|
|
196
199
|
|
|
197
200
|
getCaseInfoAssignment(assignmentsSource: any[], caseInfoID: string) {
|
|
@@ -13,7 +13,6 @@ interface UtilityProps {
|
|
|
13
13
|
selector: 'app-utility',
|
|
14
14
|
templateUrl: './utility.component.html',
|
|
15
15
|
styleUrls: ['./utility.component.scss'],
|
|
16
|
-
standalone: true,
|
|
17
16
|
imports: [forwardRef(() => ComponentMapperComponent)]
|
|
18
17
|
})
|
|
19
18
|
export class UtilityComponent implements OnInit, OnChanges {
|