@pega/angular-sdk-overrides 0.24.2 → 0.24.4
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/field/cancel-alert/cancel-alert.component.ts +0 -2
- package/lib/field/currency/currency.component.html +12 -3
- package/lib/field/currency/currency.component.ts +7 -1
- package/lib/field/decimal/decimal.component.html +1 -0
- package/lib/field/decimal/decimal.component.ts +1 -0
- package/lib/field/dropdown/dropdown.component.ts +0 -3
- package/lib/field/percentage/percentage.component.html +12 -2
- package/lib/field/percentage/percentage.component.ts +6 -1
- package/lib/field/radio-buttons/radio-buttons.component.ts +0 -3
- package/lib/field/scalar-list/scalar-list.component.ts +2 -1
- package/lib/field/text-area/text-area.component.ts +0 -2
- package/lib/infra/Containers/flow-container/flow-container.component.html +2 -1
- package/lib/infra/Containers/flow-container/flow-container.component.ts +0 -12
- package/lib/infra/Containers/modal-view-container/modal-view-container.component.ts +0 -1
- package/lib/infra/Containers/view-container/view-container.component.ts +0 -1
- package/lib/infra/assignment/assignment.component.ts +1 -6
- package/lib/infra/dashboard-filter/dashboard-filter.component.ts +0 -1
- package/lib/infra/defer-load/defer-load.component.ts +5 -8
- package/lib/infra/navbar/navbar.component.ts +0 -1
- package/lib/template/case-view/case-view.component.html +2 -2
- package/lib/template/case-view/case-view.component.scss +2 -0
- package/lib/template/case-view/case-view.component.ts +0 -6
- package/lib/template/data-reference/data-reference.component.ts +1 -3
- package/lib/template/dynamic-tabs/dynamic-tabs.component.ts +0 -1
- package/lib/template/field-group-template/field-group-template.component.ts +4 -12
- package/lib/template/list-view/list-view.component.html +2 -2
- package/lib/template/list-view/list-view.component.ts +15 -4
- package/lib/template/list-view/listViewHelpers.ts +0 -1
- package/lib/template/repeating-structures/repeating-structures.component.ts +1 -2
- package/lib/template/simple-table/simple-table.component.ts +0 -2
- package/lib/template/simple-table-manual/simple-table-manual.component.ts +5 -10
- package/lib/template/simple-table-select/simple-table-select.component.ts +2 -4
- package/lib/widget/attachment/attachment.component.html +50 -34
- package/lib/widget/attachment/attachment.component.scss +118 -0
- package/lib/widget/attachment/attachment.component.ts +252 -500
- package/lib/widget/case-history/case-history.component.ts +0 -1
- package/lib/widget/feed-container/feed-container.component.ts +0 -4
- package/lib/widget/file-utility/file-utility.component.ts +0 -4
- package/lib/widget/quick-create/quick-create.component.ts +1 -1
- package/lib/widget/todo/todo.component.html +1 -1
- package/lib/widget/todo/todo.component.ts +6 -5
- package/package.json +1 -1
|
@@ -29,7 +29,6 @@ export class CaseHistoryComponent implements OnInit {
|
|
|
29
29
|
ngOnInit(): void {
|
|
30
30
|
this.configProps$ = this.pConn$.getConfigProps();
|
|
31
31
|
|
|
32
|
-
// @ts-ignore - second parameter pageReference for getValue method should be optional
|
|
33
32
|
const caseID = this.pConn$.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);
|
|
34
33
|
const dataViewName = 'D_pyWorkHistory';
|
|
35
34
|
const context = this.pConn$.getContextName();
|
|
@@ -387,7 +387,6 @@ export class FeedContainerComponent implements OnInit, OnDestroy {
|
|
|
387
387
|
if (bUpdateSelf) {
|
|
388
388
|
this.updateSelf();
|
|
389
389
|
} else {
|
|
390
|
-
// @ts-ignore - parameter “contextName” for getDataObject method should be optional
|
|
391
390
|
const newPulseData = this.pConn$.getDataObject().pulse;
|
|
392
391
|
|
|
393
392
|
if (!isEqual(newPulseData, this.pulseData)) {
|
|
@@ -395,7 +394,6 @@ export class FeedContainerComponent implements OnInit, OnDestroy {
|
|
|
395
394
|
}
|
|
396
395
|
}
|
|
397
396
|
|
|
398
|
-
// @ts-ignore - parameter “contextName” for getDataObject method should be optional
|
|
399
397
|
this.pulseData = this.pConn$.getDataObject().pulse;
|
|
400
398
|
}
|
|
401
399
|
|
|
@@ -406,10 +404,8 @@ export class FeedContainerComponent implements OnInit, OnDestroy {
|
|
|
406
404
|
getMessageData() {
|
|
407
405
|
const messageIDs = (this.pConn$.getConfigProps() as any).messageIDs;
|
|
408
406
|
const userName = (this.pConn$.getConfigProps() as any).currentUser;
|
|
409
|
-
// @ts-ignore - second parameter pageReference for getValue method should be optional
|
|
410
407
|
const imageKey = this.pConn$.getValue('OperatorID.pyImageInsKey');
|
|
411
408
|
|
|
412
|
-
// @ts-ignore - parameter “contextName” for getDataObject method should be optional
|
|
413
409
|
const oData: any = this.pConn$.getDataObject();
|
|
414
410
|
|
|
415
411
|
if (messageIDs && messageIDs.length > 0) {
|
|
@@ -142,7 +142,6 @@ export class FileUtilityComponent implements OnInit, OnDestroy {
|
|
|
142
142
|
|
|
143
143
|
onAttachFiles(files) {
|
|
144
144
|
const attachmentUtils = PCore.getAttachmentUtils();
|
|
145
|
-
// @ts-ignore - second parameter pageReference for getValue method should be optional
|
|
146
145
|
const caseID = this.pConn$.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);
|
|
147
146
|
|
|
148
147
|
if (files.length > 0) {
|
|
@@ -185,7 +184,6 @@ export class FileUtilityComponent implements OnInit, OnDestroy {
|
|
|
185
184
|
|
|
186
185
|
onAttachLinks(links) {
|
|
187
186
|
const attachmentUtils = PCore.getAttachmentUtils();
|
|
188
|
-
// @ts-ignore - second parameter pageReference for getValue method should be optional
|
|
189
187
|
const caseID = this.pConn$.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);
|
|
190
188
|
|
|
191
189
|
if (links.length > 0) {
|
|
@@ -711,7 +709,6 @@ export class FileUtilityComponent implements OnInit, OnDestroy {
|
|
|
711
709
|
}
|
|
712
710
|
|
|
713
711
|
getCaseID() {
|
|
714
|
-
// @ts-ignore - second parameter pageReference for getValue method should be optional
|
|
715
712
|
return this.pConn$.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID) || '';
|
|
716
713
|
}
|
|
717
714
|
|
|
@@ -760,7 +757,6 @@ export class FileUtilityComponent implements OnInit, OnDestroy {
|
|
|
760
757
|
}
|
|
761
758
|
|
|
762
759
|
caseHasChanged(): boolean {
|
|
763
|
-
// @ts-ignore - second parameter pageReference for getValue method should be optional
|
|
764
760
|
const caseID = this.pConn$.getValue(PCore.getConstants().CASE_INFO.CASE_INFO_ID);
|
|
765
761
|
if (this.currentCaseID !== caseID) {
|
|
766
762
|
this.currentCaseID = caseID;
|
|
@@ -56,7 +56,7 @@ export class QuickCreateComponent implements OnInit, OnChanges {
|
|
|
56
56
|
this.classFilter$.forEach(item => {
|
|
57
57
|
let icon = this.utils.getImageSrc('polaris-solid', this.utils.getSDKStaticContentUrl());
|
|
58
58
|
let label = '';
|
|
59
|
-
envInfo.environmentInfoObject.pyCaseTypeList.forEach(casetype => {
|
|
59
|
+
(envInfo.environmentInfoObject as any).pyCaseTypeList.forEach(casetype => {
|
|
60
60
|
if (casetype.pyWorkTypeImplementationClassName === item) {
|
|
61
61
|
icon = casetype.pxIcon && this.utils.getImageSrc(casetype?.pxIcon, this.utils.getSDKStaticContentUrl());
|
|
62
62
|
label = casetype.pyWorkTypeName ?? '';
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
</div>
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
29
|
-
<div class="psdk-todo-assignment-action">
|
|
29
|
+
<div class="psdk-todo-assignment-action" *ngIf="!isConfirm || canPerform">
|
|
30
30
|
<button mat-flat-button color="primary" (click)="clickGo(assignment)">{{ localizedVal('Go', localeCategory) }}</button>
|
|
31
31
|
</div>
|
|
32
32
|
</div>
|
|
@@ -48,6 +48,7 @@ export class TodoComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
48
48
|
localeCategory = 'Todo';
|
|
49
49
|
showlessLocalizedValue = this.localizedVal('show_less', 'CosmosFields');
|
|
50
50
|
showMoreLocalizedValue = this.localizedVal('show_more', 'CosmosFields');
|
|
51
|
+
canPerform: boolean;
|
|
51
52
|
|
|
52
53
|
constructor(
|
|
53
54
|
private psService: ProgressSpinnerService,
|
|
@@ -105,11 +106,9 @@ export class TodoComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
105
106
|
}
|
|
106
107
|
|
|
107
108
|
updateWorkList(key) {
|
|
108
|
-
(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
.getData(key) as Promise<any>
|
|
112
|
-
)
|
|
109
|
+
PCore.getDataApiUtils()
|
|
110
|
+
// @ts-ignore - 2nd parameter "payload" and 3rd parameter "context" should be optional in getData method
|
|
111
|
+
.getData(key)
|
|
113
112
|
.then(responseData => {
|
|
114
113
|
const dataObject = {};
|
|
115
114
|
dataObject[key] = {
|
|
@@ -151,6 +150,8 @@ export class TodoComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
151
150
|
}
|
|
152
151
|
}
|
|
153
152
|
|
|
153
|
+
this.canPerform = this.arAssignments$?.[0]?.canPerform === 'true' || this.arAssignments$?.[0]?.canPerform === true;
|
|
154
|
+
|
|
154
155
|
this.currentUser$ = PCore.getEnvironmentInfo().getOperatorName();
|
|
155
156
|
this.currentUserInitials$ = this.utils.getInitials(this.currentUser$);
|
|
156
157
|
}
|