@pega/angular-sdk-overrides 0.25.7 → 0.25.8
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/material-summary-item/material-summary-item.component.scss +2 -0
- package/lib/field/phone/phone.component.html +18 -20
- package/lib/field/phone/phone.component.ts +1 -2
- package/lib/infra/assignment/assignment.component.ts +6 -3
- package/lib/infra/stages/stages.component.html +2 -1
- package/lib/infra/stages/stages.component.scss +5 -1
- package/lib/template/case-view/case-view.component.html +1 -1
- package/lib/template/case-view/case-view.component.ts +0 -9
- package/lib/template/data-reference/data-reference.component.ts +1 -1
- package/lib/template/self-service-case-view/self-service-case-view.component.ts +0 -9
- package/lib/widget/attachment/attachment.component.scss +2 -0
- package/lib/widget/attachment/attachment.component.ts +15 -4
- package/lib/widget/list-utility/list-utility.component.scss +1 -0
- package/package.json +1 -1
- package/lib/template/data-reference/data-reference-advanced-search.service.ts +0 -16
package/lib/designSystemExtension/material-summary-item/material-summary-item.component.scss
CHANGED
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
.psdk-utility-card-icon {
|
|
63
63
|
flex-grow: 1;
|
|
64
64
|
max-width: 2.813rem;
|
|
65
|
+
filter: var(--app-primary-color-filter);
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
.psdk-utility-card-svg-icon {
|
|
@@ -107,4 +108,5 @@
|
|
|
107
108
|
width: 1.4rem;
|
|
108
109
|
display: inline-block;
|
|
109
110
|
vertical-align: bottom;
|
|
111
|
+
filter: var(--app-primary-color-filter);
|
|
110
112
|
}
|
|
@@ -2,26 +2,24 @@
|
|
|
2
2
|
<component-mapper *ngIf="bVisible$ !== false" name="FieldValueList" [props]="{ label$, value$, displayMode$ }"></component-mapper>
|
|
3
3
|
</div>
|
|
4
4
|
<ng-template #noDisplayMode>
|
|
5
|
-
<div *ngIf="bHasForm$; else noEdit">
|
|
6
|
-
<
|
|
7
|
-
<mat-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
</mat-form-field>
|
|
24
|
-
</div>
|
|
5
|
+
<div *ngIf="bHasForm$ && bVisible$; else noEdit">
|
|
6
|
+
<mat-form-field class="psdk-full-width" subscriptSizing="dynamic" [hintLabel]="helperText" floatLabel="always">
|
|
7
|
+
<mat-tel-input
|
|
8
|
+
[attr.data-test-id]="testId"
|
|
9
|
+
[formControl]="fieldControl"
|
|
10
|
+
[preferredCountries]="preferredCountries"
|
|
11
|
+
[enablePlaceholder]="true"
|
|
12
|
+
[enableSearch]="true"
|
|
13
|
+
[placeholder]="placeholder"
|
|
14
|
+
[required]="bRequired$"
|
|
15
|
+
[disabled]="bDisabled$ || bReadonly$"
|
|
16
|
+
(change)="fieldOnChange()"
|
|
17
|
+
(blur)="fieldOnBlur()"
|
|
18
|
+
>
|
|
19
|
+
</mat-tel-input>
|
|
20
|
+
<mat-label>{{ label$ }}</mat-label>
|
|
21
|
+
<mat-error *ngIf="fieldControl.invalid">{{ getErrorMessage() }}</mat-error>
|
|
22
|
+
</mat-form-field>
|
|
25
23
|
</div>
|
|
26
24
|
</ng-template>
|
|
27
25
|
<ng-template #noEdit>
|
|
@@ -54,8 +54,7 @@ export class PhoneComponent extends FieldBase {
|
|
|
54
54
|
const isValueChanged = newVal?.toString() !== oldVal.toString();
|
|
55
55
|
|
|
56
56
|
if (isValueChanged) {
|
|
57
|
-
|
|
58
|
-
handleEvent(this.actionsApi, 'changeNblur', this.propName, value);
|
|
57
|
+
handleEvent(this.actionsApi, 'changeNblur', this.propName, newVal);
|
|
59
58
|
}
|
|
60
59
|
}
|
|
61
60
|
|
|
@@ -435,12 +435,13 @@ export class AssignmentComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
435
435
|
const finishPromise = this.finishAssignment(this.itemKey$); // JA - was itemID but Nebula/Constellation uses itemKey
|
|
436
436
|
finishPromise
|
|
437
437
|
.then(() => {
|
|
438
|
-
this.psService.sendMessage(false);
|
|
439
438
|
this.updateChanges();
|
|
440
439
|
})
|
|
441
440
|
.catch(() => {
|
|
442
|
-
this.psService.sendMessage(false);
|
|
443
441
|
this.snackBarRef = this.snackBar.open(`${this.localizedVal('Submit failed!', this.localeCategory)}`, 'Ok');
|
|
442
|
+
})
|
|
443
|
+
.finally(() => {
|
|
444
|
+
this.psService.sendMessage(false);
|
|
444
445
|
});
|
|
445
446
|
break;
|
|
446
447
|
|
|
@@ -450,8 +451,10 @@ export class AssignmentComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
450
451
|
approvePromise
|
|
451
452
|
.then(() => {})
|
|
452
453
|
.catch(() => {
|
|
453
|
-
this.psService.sendMessage(false);
|
|
454
454
|
this.snackBarRef = this.snackBar.open(`${this.localizedVal('Approve failed!', this.localeCategory)}`, 'Ok');
|
|
455
|
+
})
|
|
456
|
+
.finally(() => {
|
|
457
|
+
this.psService.sendMessage(false);
|
|
455
458
|
});
|
|
456
459
|
|
|
457
460
|
break;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<div class="psdk-stages-bar">
|
|
2
2
|
<div class="psdk-stages-chevron" *ngFor="let stage of arStageResults$">
|
|
3
3
|
<div *ngIf="stage.visited_status == 'completed'" class="psdk-stages-inner-past">
|
|
4
|
-
<img class="psdk-stages-icon" src="{{ checkSvgIcon$ }}" />
|
|
4
|
+
<img class="psdk-stages-icon" src="{{ checkSvgIcon$ }}" />
|
|
5
|
+
<div>{{ PCore$.getLocaleUtils().getLocaleValue(stage.name, '', key) }}</div>
|
|
5
6
|
</div>
|
|
6
7
|
<div *ngIf="stage.visited_status == 'active'" class="psdk-stages-inner-present">
|
|
7
8
|
{{ localizationService.getLocalizedText(stage.name) }}
|
|
@@ -21,9 +21,11 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.psdk-stages-icon {
|
|
24
|
-
width:
|
|
24
|
+
width: 18px;
|
|
25
25
|
display: inline-block;
|
|
26
26
|
vertical-align: top;
|
|
27
|
+
filter: var(--app-primary-color-filter);
|
|
28
|
+
margin-right: 2px;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
.psdk-stages-bar {
|
|
@@ -66,6 +68,8 @@
|
|
|
66
68
|
.psdk-stages-inner-past {
|
|
67
69
|
color: var(--mat-sys-outline-variant);
|
|
68
70
|
font-size: 1rem;
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
69
73
|
}
|
|
70
74
|
|
|
71
75
|
.psdk-stages-inner-present {
|
|
@@ -49,7 +49,6 @@ export class CaseViewComponent implements OnInit, OnDestroy {
|
|
|
49
49
|
caseSummaryPConn$: any;
|
|
50
50
|
currentCaseID = '';
|
|
51
51
|
editAction: boolean;
|
|
52
|
-
bHasNewAttachments = false;
|
|
53
52
|
localizedVal: any;
|
|
54
53
|
localeCategory = 'CaseView';
|
|
55
54
|
localeKey: string;
|
|
@@ -113,14 +112,6 @@ export class CaseViewComponent implements OnInit, OnDestroy {
|
|
|
113
112
|
|
|
114
113
|
updateHeaderAndSummary() {
|
|
115
114
|
this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as CaseViewProps;
|
|
116
|
-
const hasNewAttachments = this.pConn$.getDataObject().caseInfo?.hasNewAttachments;
|
|
117
|
-
|
|
118
|
-
if (hasNewAttachments !== this.bHasNewAttachments) {
|
|
119
|
-
this.bHasNewAttachments = hasNewAttachments;
|
|
120
|
-
if (this.bHasNewAttachments) {
|
|
121
|
-
PCore.getPubSubUtils().publish(PCore.getEvents().getCaseEvent().CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW, true);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
115
|
|
|
125
116
|
const kids = this.pConn$.getChildren() as any[];
|
|
126
117
|
for (const kid of kids) {
|
|
@@ -6,7 +6,7 @@ import { ComponentMapperComponent } from '@pega/angular-sdk-components';
|
|
|
6
6
|
import { getMappedKey } from '@pega/angular-sdk-components';
|
|
7
7
|
import { componentCachePersistUtils } from '@pega/angular-sdk-components';
|
|
8
8
|
import { getFirstChildConfig } from '@pega/angular-sdk-components';
|
|
9
|
-
import { DataReferenceAdvancedSearchService } from '
|
|
9
|
+
import { DataReferenceAdvancedSearchService } from '@pega/angular-sdk-components';
|
|
10
10
|
|
|
11
11
|
const SELECTION_MODE = { SINGLE: 'single', MULTI: 'multi' };
|
|
12
12
|
|
|
@@ -49,7 +49,6 @@ export class SelfServiceCaseViewComponent implements OnInit, OnDestroy {
|
|
|
49
49
|
caseSummaryPConn$: any;
|
|
50
50
|
currentCaseID = '';
|
|
51
51
|
editAction: boolean;
|
|
52
|
-
bHasNewAttachments = false;
|
|
53
52
|
localizedVal: any;
|
|
54
53
|
localeCategory = 'CaseView';
|
|
55
54
|
localeKey: any;
|
|
@@ -117,14 +116,6 @@ export class SelfServiceCaseViewComponent implements OnInit, OnDestroy {
|
|
|
117
116
|
|
|
118
117
|
updateHeaderAndSummary() {
|
|
119
118
|
this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as SelfServiceCaseViewProps;
|
|
120
|
-
const hasNewAttachments = this.pConn$.getDataObject().caseInfo?.hasNewAttachments;
|
|
121
|
-
|
|
122
|
-
if (hasNewAttachments !== this.bHasNewAttachments) {
|
|
123
|
-
this.bHasNewAttachments = hasNewAttachments;
|
|
124
|
-
if (this.bHasNewAttachments) {
|
|
125
|
-
PCore.getPubSubUtils().publish(PCore.getEvents().getCaseEvent().CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW, true);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
119
|
|
|
129
120
|
const kids = this.pConn$.getChildren() as any[];
|
|
130
121
|
for (const kid of kids) {
|
|
@@ -126,6 +126,7 @@
|
|
|
126
126
|
|
|
127
127
|
.psdk-attachment-card-svg-icon {
|
|
128
128
|
width: 2.5rem;
|
|
129
|
+
filter: var(--app-primary-color-filter);
|
|
129
130
|
}
|
|
130
131
|
|
|
131
132
|
.psdk-utility-button {
|
|
@@ -138,6 +139,7 @@
|
|
|
138
139
|
.psdk-utility-card-action-svg-icon {
|
|
139
140
|
width: 1.4rem;
|
|
140
141
|
display: inline-block;
|
|
142
|
+
filter: var(--app-primary-color-filter);
|
|
141
143
|
}
|
|
142
144
|
|
|
143
145
|
.file-div {
|
|
@@ -156,8 +156,16 @@ export class AttachmentComponent implements OnInit, OnDestroy {
|
|
|
156
156
|
this.displayMode = displayMode;
|
|
157
157
|
this.isMultiAttachmentInInlineEditTable = isTableFormatter && allowMultiple && editMode === 'tableRows';
|
|
158
158
|
|
|
159
|
+
const rawValue = this.pConn$.getComponentConfig().value;
|
|
160
|
+
const isAttachmentAnnotationPresent = typeof rawValue === 'object' ? false : rawValue?.includes('@ATTACHMENT');
|
|
161
|
+
const { attachments, isOldAttachment } = isAttachmentAnnotationPresent ? value : PCore.getAttachmentUtils().prepareAttachmentData(value);
|
|
162
|
+
this.isOldAttachment = isOldAttachment;
|
|
163
|
+
this.attachments = attachments;
|
|
164
|
+
|
|
159
165
|
// update the attachments shown in the UI
|
|
160
|
-
this.
|
|
166
|
+
if (this.attachments.length) {
|
|
167
|
+
this.updateAttachments();
|
|
168
|
+
}
|
|
161
169
|
}
|
|
162
170
|
|
|
163
171
|
updateAttachments() {
|
|
@@ -245,7 +253,9 @@ export class AttachmentComponent implements OnInit, OnDestroy {
|
|
|
245
253
|
}
|
|
246
254
|
}
|
|
247
255
|
|
|
248
|
-
this.fileInput
|
|
256
|
+
if (this.fileInput?.nativeElement) {
|
|
257
|
+
this.fileInput.nativeElement.value = '';
|
|
258
|
+
}
|
|
249
259
|
}
|
|
250
260
|
|
|
251
261
|
onFileAdded(event) {
|
|
@@ -437,12 +447,13 @@ export class AttachmentComponent implements OnInit, OnDestroy {
|
|
|
437
447
|
if (this.filesWithError?.length === 0) {
|
|
438
448
|
clearFieldErrorMessages(this.pConn$);
|
|
439
449
|
}
|
|
440
|
-
|
|
441
|
-
this.actionSequencer.deRegisterBlockingAction(this.contextName).catch(() => {});
|
|
442
450
|
}
|
|
451
|
+
|
|
452
|
+
this.actionSequencer.deRegisterBlockingAction(this.contextName).catch(() => {});
|
|
443
453
|
})
|
|
444
454
|
.catch(error => {
|
|
445
455
|
console.log(error);
|
|
456
|
+
this.actionSequencer.cancelDeferredActionsOnError(this.contextName);
|
|
446
457
|
});
|
|
447
458
|
}
|
|
448
459
|
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
|
|
4
|
-
@Injectable({ providedIn: 'root' })
|
|
5
|
-
export class DataReferenceAdvancedSearchService {
|
|
6
|
-
private configSubject = new BehaviorSubject(null);
|
|
7
|
-
config$ = this.configSubject.asObservable();
|
|
8
|
-
|
|
9
|
-
setConfig(config) {
|
|
10
|
-
this.configSubject.next(config);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
getConfig() {
|
|
14
|
-
return this.configSubject.getValue();
|
|
15
|
-
}
|
|
16
|
-
}
|