@pega/angular-sdk-overrides 0.23.7 → 0.24.2
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-case-summary/material-case-summary.component.html +5 -2
- package/lib/designSystemExtension/material-case-summary/material-case-summary.component.ts +3 -1
- package/lib/designSystemExtension/material-vertical-tabs/material-vertical-tabs.component.html +1 -1
- package/lib/designSystemExtension/operator/operator.component.ts +6 -4
- package/lib/field/check-box/check-box.component.html +16 -15
- package/lib/field/check-box/check-box.component.scss +14 -1
- package/lib/field/check-box/check-box.component.ts +127 -44
- package/lib/field/currency/currency.component.html +4 -4
- package/lib/field/currency/currency.component.ts +31 -19
- package/lib/field/date-time/date-time.component.html +5 -5
- package/lib/field/date-time/date-time.component.ts +8 -39
- package/lib/field/decimal/decimal.component.html +13 -4
- package/lib/field/decimal/decimal.component.ts +41 -5
- package/lib/field/multiselect/multiselect.component.html +34 -0
- package/lib/field/multiselect/multiselect.component.scss +7 -0
- package/lib/field/multiselect/multiselect.component.spec.ts +21 -0
- package/lib/field/multiselect/multiselect.component.ts +363 -0
- package/lib/field/multiselect/utils.ts +209 -0
- package/lib/field/percentage/percentage.component.html +4 -3
- package/lib/field/percentage/percentage.component.ts +24 -5
- package/lib/field/user-reference/user-reference.component.html +50 -45
- package/lib/field/user-reference/user-reference.component.ts +33 -15
- package/lib/infra/Containers/flow-container/flow-container.component.ts +15 -9
- package/lib/infra/assignment/assignment.component.ts +30 -1
- package/lib/infra/multi-step/multi-step.component.html +1 -1
- package/lib/infra/navbar/navbar.component.html +4 -4
- package/lib/infra/navbar/navbar.component.ts +7 -3
- package/lib/template/case-summary/case-summary.component.ts +37 -3
- package/lib/template/case-view/case-view.component.html +1 -1
- package/lib/template/wss-nav-bar/wss-nav-bar.component.html +1 -1
- package/lib/template/wss-nav-bar/wss-nav-bar.component.ts +2 -1
- package/lib/widget/attachment/attachment.component.html +9 -1
- package/lib/widget/attachment/attachment.component.ts +4 -1
- package/lib/widget/case-history/case-history.component.ts +1 -1
- package/lib/widget/file-utility/file-utility.component.html +2 -2
- package/lib/widget/file-utility/file-utility.component.ts +13 -13
- package/lib/widget/list-utility/list-utility.component.html +1 -1
- package/lib/widget/todo/todo.component.html +3 -3
- package/package.json +1 -1
|
@@ -51,7 +51,8 @@ export class NavbarComponent implements OnInit, OnDestroy {
|
|
|
51
51
|
navIcon$: string;
|
|
52
52
|
localizedVal: any;
|
|
53
53
|
localeCategory = 'AppShell';
|
|
54
|
-
|
|
54
|
+
localeUtils = PCore.getLocaleUtils();
|
|
55
|
+
localeReference: any;
|
|
55
56
|
constructor(
|
|
56
57
|
private angularPConnect: AngularPConnectService,
|
|
57
58
|
private chRef: ChangeDetectorRef,
|
|
@@ -119,7 +120,8 @@ export class NavbarComponent implements OnInit, OnDestroy {
|
|
|
119
120
|
this.navPages$.forEach(page => {
|
|
120
121
|
page.iconName = this.utils.getImageSrc(page.pxPageViewIcon, this.utils.getSDKStaticContentUrl());
|
|
121
122
|
});
|
|
122
|
-
|
|
123
|
+
// @ts-ignore - second parameter pageReference for getValue method should be optional
|
|
124
|
+
this.localeReference = this.pConn$.getValue('.pyLocaleReference');
|
|
123
125
|
this.actionsAPI = this.pConn$.getActionsApi();
|
|
124
126
|
this.createWork = this.actionsAPI.createWork.bind(this.actionsAPI);
|
|
125
127
|
this.showPage = this.actionsAPI.showPage.bind(this.actionsAPI);
|
|
@@ -163,7 +165,9 @@ export class NavbarComponent implements OnInit, OnDestroy {
|
|
|
163
165
|
containerName: 'primary',
|
|
164
166
|
flowType: sFlowType || 'pyStartCase'
|
|
165
167
|
};
|
|
166
|
-
this.createWork(sCaseType, actionInfo)
|
|
168
|
+
this.createWork(sCaseType, actionInfo).then(() => {
|
|
169
|
+
console.log('createWork completed');
|
|
170
|
+
});
|
|
167
171
|
}
|
|
168
172
|
|
|
169
173
|
navPanelLogoutClick() {
|
|
@@ -92,9 +92,43 @@ export class CaseSummaryComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
92
92
|
this.primaryFields$.push(kid.resolveConfigProps(kid.getRawMetadata()));
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
const secondarySummaryFields = this.prepareCaseSummaryData(this.arChildren$[1].getPConnect());
|
|
96
|
+
const secondaryChildren = this.arChildren$[1].getPConnect().getChildren();
|
|
97
|
+
secondaryChildren.forEach((oField, index) => {
|
|
96
98
|
const kid = oField.getPConnect();
|
|
97
|
-
|
|
98
|
-
|
|
99
|
+
const displayLabel = secondarySummaryFields[index].value.getPConnect().getConfigProps().label;
|
|
100
|
+
this.secondaryFields$.push({ ...kid.resolveConfigProps(kid.getRawMetadata()), kid, displayLabel });
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
prepareComponentInCaseSummary(pConnectMeta, getPConnect) {
|
|
105
|
+
const { config, children } = pConnectMeta;
|
|
106
|
+
const pConnect = getPConnect();
|
|
107
|
+
|
|
108
|
+
const caseSummaryComponentObject: any = {};
|
|
109
|
+
|
|
110
|
+
const { type } = pConnectMeta;
|
|
111
|
+
const createdComponent = pConnect.createComponent({
|
|
112
|
+
type,
|
|
113
|
+
children: children ? [...children] : [],
|
|
114
|
+
config: {
|
|
115
|
+
...config
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
caseSummaryComponentObject.value = createdComponent;
|
|
120
|
+
return caseSummaryComponentObject;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
prepareCaseSummaryData(summaryFieldChildren) {
|
|
124
|
+
const convertChildrenToSummaryData = kid => {
|
|
125
|
+
return kid?.map((childItem, index) => {
|
|
126
|
+
const childMeta = childItem.getPConnect().meta;
|
|
127
|
+
const caseSummaryComponentObject = this.prepareComponentInCaseSummary(childMeta, childItem.getPConnect);
|
|
128
|
+
caseSummaryComponentObject.id = index + 1;
|
|
129
|
+
return caseSummaryComponentObject;
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
return summaryFieldChildren ? convertChildrenToSummaryData(summaryFieldChildren?.getChildren()) : undefined;
|
|
99
133
|
}
|
|
100
134
|
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
</mat-list-item>
|
|
26
26
|
<mat-menu #menu="matMenu">
|
|
27
27
|
<button mat-menu-item>Profile</button>
|
|
28
|
-
<button mat-menu-item (click)="navPanelLogoutClick()">
|
|
28
|
+
<button mat-menu-item (click)="navPanelLogoutClick()">{{ localizedVal('Log off', localeCategory) }}</button>
|
|
29
29
|
</mat-menu>
|
|
30
30
|
</mat-list>
|
|
31
31
|
</mat-toolbar-row>
|
|
@@ -50,7 +50,8 @@ export class WssNavBarComponent implements OnInit, OnDestroy {
|
|
|
50
50
|
logout: any;
|
|
51
51
|
|
|
52
52
|
navIcon$: string;
|
|
53
|
-
|
|
53
|
+
localizedVal = PCore.getLocaleUtils().getLocaleValue;
|
|
54
|
+
localeCategory = 'AppShell';
|
|
54
55
|
constructor(
|
|
55
56
|
private angularPConnect: AngularPConnectService,
|
|
56
57
|
private cdRef: ChangeDetectorRef,
|
|
@@ -11,7 +11,15 @@
|
|
|
11
11
|
<input hidden type="file" [required]="bRequired$" #uploader [id]="att_valueRef" [multiple]="allowMultiple$" (change)="uploadMyFiles($event)" />
|
|
12
12
|
|
|
13
13
|
<button mat-stroked-button color="primary" [disabled]="bDisabled$" (click)="uploader.click()">
|
|
14
|
-
{{
|
|
14
|
+
{{
|
|
15
|
+
allowMultiple$
|
|
16
|
+
? uploadMultipleFilesLabel === 'file_upload_text_multiple'
|
|
17
|
+
? 'Choose files'
|
|
18
|
+
: uploadMultipleFilesLabel
|
|
19
|
+
: uploadSingleFileLabel === 'file_upload_text_one'
|
|
20
|
+
? 'Choose a file'
|
|
21
|
+
: uploadSingleFileLabel
|
|
22
|
+
}}
|
|
15
23
|
</button>
|
|
16
24
|
</div>
|
|
17
25
|
<span *ngIf="validateMessage" class="file-error">{{ validateMessage }}</span>
|
|
@@ -55,7 +55,10 @@ export class AttachmentComponent implements OnInit, OnDestroy {
|
|
|
55
55
|
validateMessage: string | undefined = '';
|
|
56
56
|
valueRef: string;
|
|
57
57
|
imagePath$: string;
|
|
58
|
-
|
|
58
|
+
localizedVal = PCore.getLocaleUtils().getLocaleValue;
|
|
59
|
+
localeCategory = 'CosmosFields';
|
|
60
|
+
uploadMultipleFilesLabel = this.localizedVal('file_upload_text_multiple', this.localeCategory);
|
|
61
|
+
uploadSingleFileLabel = this.localizedVal('file_upload_text_one', this.localeCategory);
|
|
59
62
|
constructor(
|
|
60
63
|
private angularPConnect: AngularPConnectService,
|
|
61
64
|
private utils: Utils,
|
|
@@ -46,7 +46,7 @@ export class CaseHistoryComponent implements OnInit {
|
|
|
46
46
|
this.fields$ = [
|
|
47
47
|
{ label: this.pConn$.getLocalizedValue('Date', '', ''), type: 'DateTime', fieldName: 'pxTimeCreated' },
|
|
48
48
|
{ label: this.pConn$.getLocalizedValue('Description', '', ''), type: 'TextInput', fieldName: 'pyMessageKey' },
|
|
49
|
-
{ label: this.pConn$.getLocalizedValue('
|
|
49
|
+
{ label: this.pConn$.getLocalizedValue('Performed by', '', ''), type: 'TextInput', fieldName: 'pyPerformer' }
|
|
50
50
|
];
|
|
51
51
|
|
|
52
52
|
const tableDataResults = this.updateData(historyJSON.data.data, this.fields$);
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
|
|
42
42
|
<div *ngIf="bShowLinkModal$" class="psdk-dialog-background">
|
|
43
43
|
<div class="psdk-modal-link-top">
|
|
44
|
-
<h3>{{ pConn$.getLocalizedValue('Add
|
|
44
|
+
<h3>{{ pConn$.getLocalizedValue('Add links', '', '') }}</h3>
|
|
45
45
|
<div class="psdk-modal-link-entry">
|
|
46
46
|
<div class="psdk-modal-body">
|
|
47
47
|
<div class="psdk-modal-links-row">
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
</div>
|
|
62
62
|
|
|
63
63
|
<div class="psdk-modal-link-add">
|
|
64
|
-
<button mat-raised-button color="primary" (click)="_addLink()">{{ pConn$.getLocalizedValue('Add
|
|
64
|
+
<button mat-raised-button color="primary" (click)="_addLink()">{{ pConn$.getLocalizedValue('Add link', '', '') }}</button>
|
|
65
65
|
</div>
|
|
66
66
|
</div>
|
|
67
67
|
|
|
@@ -64,18 +64,7 @@ export class FileUtilityComponent implements OnInit, OnDestroy {
|
|
|
64
64
|
|
|
65
65
|
currentCaseID = '';
|
|
66
66
|
|
|
67
|
-
addAttachmentsActions: any
|
|
68
|
-
{
|
|
69
|
-
text: 'Add files',
|
|
70
|
-
id: 'addNewFiles',
|
|
71
|
-
onClick: () => this.createModal('addLocalFile')
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
text: 'Add links',
|
|
75
|
-
id: 'addNewLinks',
|
|
76
|
-
onClick: () => this.createModal('addLocalLink')
|
|
77
|
-
}
|
|
78
|
-
];
|
|
67
|
+
addAttachmentsActions: any;
|
|
79
68
|
|
|
80
69
|
constructor(
|
|
81
70
|
private angularPConnect: AngularPConnectService,
|
|
@@ -93,7 +82,18 @@ export class FileUtilityComponent implements OnInit, OnDestroy {
|
|
|
93
82
|
this.lu_icon$ = 'paper-clip';
|
|
94
83
|
|
|
95
84
|
this.closeSvgIcon$ = this.utils.getImageSrc('times', this.utils.getSDKStaticContentUrl());
|
|
96
|
-
|
|
85
|
+
this.addAttachmentsActions = [
|
|
86
|
+
{
|
|
87
|
+
text: this.pConn$.getLocalizedValue('Add files', '', ''),
|
|
88
|
+
id: 'addNewFiles',
|
|
89
|
+
onClick: () => this.createModal('addLocalFile')
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
text: this.pConn$.getLocalizedValue('Add links', '', ''),
|
|
93
|
+
id: 'addNewLinks',
|
|
94
|
+
onClick: () => this.createModal('addLocalLink')
|
|
95
|
+
}
|
|
96
|
+
];
|
|
97
97
|
// const onViewAllCallback = () => this.onViewAll(this.arFullListAttachments);
|
|
98
98
|
|
|
99
99
|
this.lu_onViewAllFunction = { onClick: this.onViewAll.bind(this) };
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<div class="psdk-utility-count" id="attachments-count">{{ count$ }}</div>
|
|
9
9
|
<div style="flex-grow: 1"></div>
|
|
10
10
|
<div class="header-icon">
|
|
11
|
-
<button mat-icon-button [matMenuTriggerFor]="utilityMenu">
|
|
11
|
+
<button id="file-menu" mat-icon-button [matMenuTriggerFor]="utilityMenu">
|
|
12
12
|
<img class="psdk-utility-card-actions-svg-icon" src="{{ settingsSvgIcon$ }}" />
|
|
13
13
|
</button>
|
|
14
14
|
<mat-menu #utilityMenu="matMenu" overlapTrigger="false">
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<div class="psdk-todo-assignment-title">{{ getAssignmentName(assignment) }}</div>
|
|
16
16
|
<div class="psdk-todo-assignment-data">
|
|
17
17
|
<div class="psdk-todo-assignment-task">
|
|
18
|
-
Task in
|
|
18
|
+
{{ localizedVal('Task in', localeCategory) }}
|
|
19
19
|
<button class="psdk-todo-id" style="cursor: pointer" (click)="clickGo(assignment)">
|
|
20
20
|
{{ assignment.name }} {{ getID(assignment) }}
|
|
21
21
|
</button>
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
|
|
38
38
|
<div *ngIf="assignmentCount$ > 3">
|
|
39
39
|
<div *ngIf="bShowMore$; else showLess" class="psdk-todo-show-more">
|
|
40
|
-
<button mat-stroked-button (click)="_showMore()">Show more</button>
|
|
40
|
+
<button mat-stroked-button (click)="_showMore()">{{ showMoreLocalizedValue === 'show_more' ? 'Show more' : showMoreLocalizedValue }}</button>
|
|
41
41
|
</div>
|
|
42
42
|
<ng-template #showLess>
|
|
43
43
|
<div class="psdk-todo-show-more">
|
|
44
|
-
<button mat-stroked-button (click)="_showLess()">Show less</button>
|
|
44
|
+
<button mat-stroked-button (click)="_showLess()">{{ showlessLocalizedValue === 'show_less' ? 'Show less' : showlessLocalizedValue }}</button>
|
|
45
45
|
</div>
|
|
46
46
|
</ng-template>
|
|
47
47
|
</div>
|