@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.
Files changed (42) hide show
  1. package/lib/field/cancel-alert/cancel-alert.component.ts +0 -2
  2. package/lib/field/currency/currency.component.html +12 -3
  3. package/lib/field/currency/currency.component.ts +7 -1
  4. package/lib/field/decimal/decimal.component.html +1 -0
  5. package/lib/field/decimal/decimal.component.ts +1 -0
  6. package/lib/field/dropdown/dropdown.component.ts +0 -3
  7. package/lib/field/percentage/percentage.component.html +12 -2
  8. package/lib/field/percentage/percentage.component.ts +6 -1
  9. package/lib/field/radio-buttons/radio-buttons.component.ts +0 -3
  10. package/lib/field/scalar-list/scalar-list.component.ts +2 -1
  11. package/lib/field/text-area/text-area.component.ts +0 -2
  12. package/lib/infra/Containers/flow-container/flow-container.component.html +2 -1
  13. package/lib/infra/Containers/flow-container/flow-container.component.ts +0 -12
  14. package/lib/infra/Containers/modal-view-container/modal-view-container.component.ts +0 -1
  15. package/lib/infra/Containers/view-container/view-container.component.ts +0 -1
  16. package/lib/infra/assignment/assignment.component.ts +1 -6
  17. package/lib/infra/dashboard-filter/dashboard-filter.component.ts +0 -1
  18. package/lib/infra/defer-load/defer-load.component.ts +5 -8
  19. package/lib/infra/navbar/navbar.component.ts +0 -1
  20. package/lib/template/case-view/case-view.component.html +2 -2
  21. package/lib/template/case-view/case-view.component.scss +2 -0
  22. package/lib/template/case-view/case-view.component.ts +0 -6
  23. package/lib/template/data-reference/data-reference.component.ts +1 -3
  24. package/lib/template/dynamic-tabs/dynamic-tabs.component.ts +0 -1
  25. package/lib/template/field-group-template/field-group-template.component.ts +4 -12
  26. package/lib/template/list-view/list-view.component.html +2 -2
  27. package/lib/template/list-view/list-view.component.ts +15 -4
  28. package/lib/template/list-view/listViewHelpers.ts +0 -1
  29. package/lib/template/repeating-structures/repeating-structures.component.ts +1 -2
  30. package/lib/template/simple-table/simple-table.component.ts +0 -2
  31. package/lib/template/simple-table-manual/simple-table-manual.component.ts +5 -10
  32. package/lib/template/simple-table-select/simple-table-select.component.ts +2 -4
  33. package/lib/widget/attachment/attachment.component.html +50 -34
  34. package/lib/widget/attachment/attachment.component.scss +118 -0
  35. package/lib/widget/attachment/attachment.component.ts +252 -500
  36. package/lib/widget/case-history/case-history.component.ts +0 -1
  37. package/lib/widget/feed-container/feed-container.component.ts +0 -4
  38. package/lib/widget/file-utility/file-utility.component.ts +0 -4
  39. package/lib/widget/quick-create/quick-create.component.ts +1 -1
  40. package/lib/widget/todo/todo.component.html +1 -1
  41. package/lib/widget/todo/todo.component.ts +6 -5
  42. package/package.json +1 -1
@@ -71,7 +71,6 @@ export class CancelAlertComponent implements OnChanges {
71
71
  this.psService.sendMessage(false);
72
72
  this.dismissAlert();
73
73
 
74
- // @ts-ignore - second parameter “payload” for publish method should be optional
75
74
  PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.CASE_EVENTS.CASE_CREATED);
76
75
  })
77
76
  .catch(() => {
@@ -92,7 +91,6 @@ export class CancelAlertComponent implements OnChanges {
92
91
  .then(() => {
93
92
  this.psService.sendMessage(false);
94
93
  this.dismissAlert();
95
- // @ts-ignore - second parameter “payload” for publish method should be optional
96
94
  PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.EVENT_CANCEL);
97
95
  })
98
96
  .catch(() => {
@@ -2,23 +2,32 @@
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="!bReadonly$ && bHasForm$; else noEdit">
5
+ <div *ngIf="bHasForm$; else noEdit">
6
6
  <div [formGroup]="formGroup$" *ngIf="bVisible$" class="psdk-currency-field">
7
7
  <mat-form-field class="psdk-full-width" subscriptSizing="dynamic" [hintLabel]="helperText">
8
8
  <mat-label>{{ label$ }}</mat-label>
9
9
  <div class="psdk-currency-input">
10
10
  <input
11
- style="margin-left: 5px"
11
+ style="margin-left: 5px; margin-top: -1rem"
12
12
  type="text"
13
13
  matInput
14
14
  currencyMask
15
- [options]="{ prefix: currSym, thousands: currSep, decimal: currDec, align: 'left', nullable: true }"
15
+ [options]="{
16
+ prefix: currSym,
17
+ thousands: currSep,
18
+ decimal: currDec,
19
+ align: 'left',
20
+ nullable: true,
21
+ precision: decimalPrecision,
22
+ inputMode: inputMode
23
+ }"
16
24
  [placeholder]="placeholder"
17
25
  [formControlName]="controlName$"
18
26
  [required]="bRequired$"
19
27
  [formControl]="fieldControl"
20
28
  [attr.data-test-id]="testId"
21
29
  (blur)="fieldOnBlur($event)"
30
+ [readonly]="bReadonly$"
22
31
  />
23
32
  </div>
24
33
  <mat-error *ngIf="fieldControl.invalid">{{ getErrorMessage() }}</mat-error>
@@ -4,7 +4,7 @@ import { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';
4
4
  import { MatInputModule } from '@angular/material/input';
5
5
  import { MatFormFieldModule } from '@angular/material/form-field';
6
6
  import { interval } from 'rxjs';
7
- import { NgxCurrencyDirective } from 'ngx-currency';
7
+ import { NgxCurrencyDirective, NgxCurrencyInputMode } from 'ngx-currency';
8
8
  import { AngularPConnectData, AngularPConnectService } from '@pega/angular-sdk-components';
9
9
  import { Utils } from '@pega/angular-sdk-components';
10
10
  import { ComponentMapperComponent } from '@pega/angular-sdk-components';
@@ -15,6 +15,7 @@ import { PConnFieldProps } from '@pega/angular-sdk-components';
15
15
  interface CurrrencyProps extends PConnFieldProps {
16
16
  // If any, enter additional props that only exist on Currency here
17
17
  currencyISOCode?: string;
18
+ allowDecimals: boolean;
18
19
  }
19
20
 
20
21
  @Component({
@@ -52,6 +53,8 @@ export class CurrencyComponent implements OnInit, OnDestroy {
52
53
  currSym: string;
53
54
  currSep: string;
54
55
  currDec: string;
56
+ inputMode: any;
57
+ decimalPrecision: number | undefined;
55
58
 
56
59
  constructor(
57
60
  private angularPConnect: AngularPConnectService,
@@ -116,6 +119,7 @@ export class CurrencyComponent implements OnInit, OnDestroy {
116
119
  this.testId = this.configProps$.testId;
117
120
  this.label$ = this.configProps$.label;
118
121
  this.displayMode$ = this.configProps$.displayMode;
122
+ this.inputMode = NgxCurrencyInputMode.Natural;
119
123
  let nValue: any = this.configProps$.value;
120
124
  if (nValue) {
121
125
  if (typeof nValue === 'string') {
@@ -163,6 +167,8 @@ export class CurrencyComponent implements OnInit, OnDestroy {
163
167
  this.currencyISOCode = this.configProps$.currencyISOCode;
164
168
  }
165
169
 
170
+ this.decimalPrecision = this.configProps$?.allowDecimals ? 2 : 0;
171
+
166
172
  this.componentReference = (this.pConn$.getStateProps() as any).value;
167
173
 
168
174
  // trigger display of error message with field control
@@ -16,6 +16,7 @@
16
16
  decimal: currDec,
17
17
  align: 'left',
18
18
  nullable: true,
19
+ precision: decimalPrecision,
19
20
  inputMode: inputMode
20
21
  }"
21
22
  [placeholder]="placeholder"
@@ -187,6 +187,7 @@ export class DecimalComponent implements OnInit, OnDestroy {
187
187
  } else {
188
188
  this.currSym = '';
189
189
  }
190
+ this.decimalPrecision = this.configProps$?.decimalPrecision ?? 2;
190
191
 
191
192
  this.componentReference = (this.pConn$.getStateProps() as any).value;
192
193
  }
@@ -159,7 +159,6 @@ export class DropdownComponent implements OnInit, OnDestroy {
159
159
 
160
160
  this.componentReference = (this.pConn$.getStateProps() as any).value;
161
161
 
162
- // @ts-ignore - parameter “contextName” for getDataObject method should be optional
163
162
  const optionsList = [...this.utils.getOptionList(this.configProps$, this.pConn$.getDataObject())];
164
163
  optionsList?.unshift({ key: 'Select', value: this.pConn$.getLocalizedValue('Select...', '', '') });
165
164
  this.options$ = optionsList;
@@ -184,7 +183,6 @@ export class DropdownComponent implements OnInit, OnDestroy {
184
183
  this.localizedValue = this.pConn$.getLocalizedValue(
185
184
  this.value$,
186
185
  this.localePath,
187
- // @ts-ignore - Property 'getLocaleRuleNameFromKeys' is private and only accessible within class 'C11nEnv'.
188
186
  this.pConn$.getLocaleRuleNameFromKeys(this.localeClass, this.localeContext, this.localeName)
189
187
  );
190
188
  // trigger display of error message with field control
@@ -223,7 +221,6 @@ export class DropdownComponent implements OnInit, OnDestroy {
223
221
  return this.pConn$.getLocalizedValue(
224
222
  opt.value,
225
223
  this.localePath,
226
- // @ts-ignore - Property 'getLocaleRuleNameFromKeys' is private and only accessible within class 'C11nEnv'.
227
224
  this.pConn$.getLocaleRuleNameFromKeys(this.localeClass, this.localeContext, this.localeName)
228
225
  );
229
226
  }
@@ -2,7 +2,7 @@
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="!bReadonly$ && bHasForm$; else noEdit">
5
+ <div *ngIf="bHasForm$; else noEdit">
6
6
  <div [formGroup]="formGroup$" *ngIf="bVisible$">
7
7
  <mat-form-field class="psdk-full-width" subscriptSizing="dynamic" [hintLabel]="helperText">
8
8
  <mat-label>{{ label$ }}</mat-label>
@@ -10,7 +10,16 @@
10
10
  type="text"
11
11
  matInput
12
12
  currencyMask
13
- [options]="{ prefix: '', suffix: '%', thousands: currSep, decimal: currDec, align: 'left', nullable: true }"
13
+ [options]="{
14
+ prefix: '',
15
+ suffix: '%',
16
+ thousands: currSep,
17
+ decimal: currDec,
18
+ align: 'left',
19
+ nullable: true,
20
+ precision: decimalPrecision,
21
+ inputMode: inputMode
22
+ }"
14
23
  [placeholder]="placeholder"
15
24
  step=".01"
16
25
  [formControlName]="controlName$"
@@ -19,6 +28,7 @@
19
28
  [attr.data-test-id]="testId"
20
29
  (change)="fieldOnChange($event)"
21
30
  (blur)="fieldOnBlur($event)"
31
+ [readonly]="bReadonly$"
22
32
  />
23
33
  <mat-error *ngIf="fieldControl.invalid">{{ getErrorMessage() }}</mat-error>
24
34
  </mat-form-field>
@@ -4,7 +4,7 @@ import { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';
4
4
  import { MatInputModule } from '@angular/material/input';
5
5
  import { MatFormFieldModule } from '@angular/material/form-field';
6
6
  import { interval } from 'rxjs';
7
- import { NgxCurrencyDirective } from 'ngx-currency';
7
+ import { NgxCurrencyDirective, NgxCurrencyInputMode } from 'ngx-currency';
8
8
  import { AngularPConnectData, AngularPConnectService } from '@pega/angular-sdk-components';
9
9
  import { Utils } from '@pega/angular-sdk-components';
10
10
  import { ComponentMapperComponent } from '@pega/angular-sdk-components';
@@ -48,6 +48,8 @@ export class PercentageComponent implements OnInit, OnDestroy {
48
48
  placeholder: string;
49
49
  currDec: string;
50
50
  currSep: string;
51
+ inputMode: any;
52
+ decimalPrecision: number | undefined;
51
53
  fieldControl = new FormControl<number | null>(null, null);
52
54
 
53
55
  constructor(
@@ -110,6 +112,7 @@ export class PercentageComponent implements OnInit, OnDestroy {
110
112
  this.testId = this.configProps$.testId;
111
113
  this.label$ = this.configProps$.label;
112
114
  this.displayMode$ = this.configProps$.displayMode;
115
+ this.inputMode = NgxCurrencyInputMode.Natural;
113
116
  let nValue: any = this.configProps$.value;
114
117
  if (nValue) {
115
118
  if (typeof nValue === 'string') {
@@ -152,6 +155,8 @@ export class PercentageComponent implements OnInit, OnDestroy {
152
155
  this.bReadonly$ = this.utils.getBooleanValue(this.configProps$.readOnly);
153
156
  }
154
157
 
158
+ this.decimalPrecision = this.configProps$?.decimalPrecision ?? 2;
159
+
155
160
  this.componentReference = (this.pConn$.getStateProps() as any).value;
156
161
 
157
162
  // trigger display of error message with field control
@@ -166,7 +166,6 @@ export class RadioButtonsComponent implements OnInit, OnDestroy {
166
166
 
167
167
  this.componentReference = (this.pConn$.getStateProps() as any).value;
168
168
 
169
- // @ts-ignore - parameter “contextName” for getDataObject method should be optional
170
169
  this.options$ = this.utils.getOptionList(this.configProps$, this.pConn$.getDataObject());
171
170
 
172
171
  const propName = (this.pConn$.getStateProps() as any).value;
@@ -186,7 +185,6 @@ export class RadioButtonsComponent implements OnInit, OnDestroy {
186
185
  this.localizedValue = this.pConn$.getLocalizedValue(
187
186
  this.value$,
188
187
  this.localePath,
189
- // @ts-ignore - Property 'getLocaleRuleNameFromKeys' is private and only accessible within class 'C11nEnv'
190
188
  this.pConn$.getLocaleRuleNameFromKeys(this.localeClass, this.localeContext, this.localeName)
191
189
  );
192
190
  // trigger display of error message with field control
@@ -217,7 +215,6 @@ export class RadioButtonsComponent implements OnInit, OnDestroy {
217
215
  return this.pConn$.getLocalizedValue(
218
216
  opt.value,
219
217
  this.localePath,
220
- // @ts-ignore - Property 'getLocaleRuleNameFromKeys' is private and only accessible within class 'C11nEnv'
221
218
  this.pConn$.getLocaleRuleNameFromKeys(this.localeClass, this.localeContext, this.localeName)
222
219
  );
223
220
  }
@@ -101,11 +101,12 @@ export class ScalarListComponent implements OnInit, OnDestroy {
101
101
  {
102
102
  type: componentType,
103
103
  config: {
104
+ // @ts-ignore - Object literal may only specify known properties, and 'value' does not exist in type 'ComponentMetadataConfig'.
104
105
  value: scalarValue,
105
106
  displayMode: 'LABELS_LEFT',
106
107
  label: this.label$,
107
108
  ...restProps,
108
- readOnly: 'true'
109
+ readOnly: true
109
110
  }
110
111
  },
111
112
  '',
@@ -107,8 +107,6 @@ export class TextAreaComponent implements OnInit, OnDestroy {
107
107
  if (this.configProps$.value != undefined) {
108
108
  this.value$ = this.configProps$.value;
109
109
  }
110
- // @ts-ignore - Property 'getFieldMetadata' is private and only accessible within class 'C11nEnv'.
111
- // @ts-ignore - Property 'getRawConfigProps' is private and only accessible within class 'C11nEnv'
112
110
  this.nMaxLength$ = this.pConn$.getFieldMetadata(this.pConn$.getRawConfigProps()?.value)?.maxLength || 100;
113
111
  this.testId = this.configProps$.testId;
114
112
  this.displayMode$ = this.configProps$.displayMode;
@@ -17,7 +17,8 @@
17
17
  headerText$: todo_headerText$,
18
18
  type$: 'TODO',
19
19
  context$: todo_context$,
20
- itemKey$: itemKey$
20
+ itemKey$: itemKey$,
21
+ isConfirm: true
21
22
  }"
22
23
  ></component-mapper>
23
24
  </div>
@@ -179,7 +179,6 @@ export class FlowContainerComponent implements OnInit, OnDestroy {
179
179
  }
180
180
 
181
181
  getTodoVisibilty() {
182
- // @ts-ignore - second parameter pageReference for getValue method should be optional
183
182
  const caseViewMode = this.pConn$.getValue('context_data.caseViewMode');
184
183
  if (caseViewMode && caseViewMode === 'review') {
185
184
  const kid = this.pConn$.getChildren()[0];
@@ -273,7 +272,6 @@ export class FlowContainerComponent implements OnInit, OnDestroy {
273
272
 
274
273
  hasAssignments() {
275
274
  let hasAssignments = false;
276
- // @ts-ignore - second parameter pageReference for getValue method should be optional
277
275
  const assignmentsList: any[] = this.pConn$.getValue(this.pCoreConstants.CASE_INFO.D_CASE_ASSIGNMENTS_RESULTS);
278
276
  // const thisOperator = PCore.getEnvironmentInfo().getOperatorIdentifier();
279
277
  // 8.7 includes assignments in Assignments List that may be assigned to
@@ -308,9 +306,7 @@ export class FlowContainerComponent implements OnInit, OnDestroy {
308
306
  }
309
307
 
310
308
  isCaseWideLocalAction() {
311
- // @ts-ignore - second parameter pageReference for getValue method should be optional
312
309
  const actionID = this.pConn$.getValue(this.pCoreConstants.CASE_INFO.ACTIVE_ACTION_ID);
313
- // @ts-ignore - second parameter pageReference for getValue method should be optional
314
310
  const caseActions = this.pConn$.getValue(this.pCoreConstants.CASE_INFO.AVAILABLEACTIONS) as any[];
315
311
  let bCaseWideAction = false;
316
312
  if (caseActions && actionID) {
@@ -323,7 +319,6 @@ export class FlowContainerComponent implements OnInit, OnDestroy {
323
319
  }
324
320
 
325
321
  hasChildCaseAssignments() {
326
- // @ts-ignore - second parameter pageReference for getValue method should be optional
327
322
  const childCases = this.pConn$.getValue(this.pCoreConstants.CASE_INFO.CHILD_ASSIGNMENTS);
328
323
 
329
324
  return childCases && childCases.length > 0;
@@ -334,9 +329,7 @@ export class FlowContainerComponent implements OnInit, OnDestroy {
334
329
 
335
330
  const { CASE_INFO: CASE_CONSTS } = PCore.getConstants();
336
331
 
337
- // @ts-ignore - second parameter pageReference for getValue method should be optional
338
332
  const caseActions = this.pConn$.getValue(CASE_CONSTS.CASE_INFO_ACTIONS) as any[];
339
- // @ts-ignore - second parameter pageReference for getValue method should be optional
340
333
  const activeActionID = this.pConn$.getValue(CASE_CONSTS.ACTIVE_ACTION_ID);
341
334
  const activeAction = caseActions?.find(action => action.ID === activeActionID);
342
335
  if (activeAction) {
@@ -376,7 +369,6 @@ export class FlowContainerComponent implements OnInit, OnDestroy {
376
369
  // const { getPConnect } = this.arChildren$[0].getPConnect();
377
370
  const localPConn = this.arChildren$[0].getPConnect();
378
371
 
379
- // @ts-ignore - second parameter pageReference for getValue method should be optional
380
372
  const caseViewMode = this.pConn$.getValue('context_data.caseViewMode');
381
373
  this.bShowBanner = showBanner(this.pConn$);
382
374
 
@@ -430,7 +422,6 @@ export class FlowContainerComponent implements OnInit, OnDestroy {
430
422
  const todoAssignments = getToDoAssignments(this.pConn$);
431
423
 
432
424
  if (todoAssignments && todoAssignments.length > 0) {
433
- // @ts-ignore - second parameter pageReference for getValue method should be optional
434
425
  this.todo_caseInfoID$ = this.pConn$.getValue(CASE_CONSTS.CASE_INFO_ID);
435
426
  this.todo_datasource$ = { source: todoAssignments };
436
427
  }
@@ -458,7 +449,6 @@ export class FlowContainerComponent implements OnInit, OnDestroy {
458
449
  }
459
450
 
460
451
  showCaseMessages() {
461
- // @ts-ignore - second parameter pageReference for getValue method should be optional
462
452
  this.caseMessages$ = this.localizedVal(this.pConn$.getValue('caseMessages'), this.localeCategory);
463
453
  if (this.caseMessages$ || !this.hasAssignments()) {
464
454
  this.bHasCaseMessages$ = true;
@@ -471,7 +461,6 @@ export class FlowContainerComponent implements OnInit, OnDestroy {
471
461
  }
472
462
 
473
463
  // publish this "assignmentFinished" for mashup, need to get approved as a standard
474
- // @ts-ignore - second parameter “payload” for publish method should be optional
475
464
  PCore.getPubSubUtils().publish('assignmentFinished');
476
465
 
477
466
  this.psService.sendMessage(false);
@@ -571,7 +560,6 @@ export class FlowContainerComponent implements OnInit, OnDestroy {
571
560
  this.psService.sendMessage(false);
572
561
 
573
562
  const oWorkItem = configObject.getPConnect();
574
- // @ts-ignore - parameter “contextName” for getDataObject method should be optional
575
563
  const oWorkData: any = oWorkItem.getDataObject();
576
564
 
577
565
  this.containerName$ = this.localizedVal(this.getActiveViewLabel() || oWorkData.caseInfo.assignments?.[0].name, undefined, this.localeReference);
@@ -203,7 +203,6 @@ export class ModalViewContainerComponent implements OnInit, OnDestroy {
203
203
  const configObject = this.getConfigObject(currentItem, this.pConn$);
204
204
  const newComp = configObject?.getPConnect();
205
205
  // const newCompName = newComp.getComponentName();
206
- // @ts-ignore - parameter “contextName” for getDataObject method should be optional
207
206
  const caseInfo = newComp && newComp.getDataObject() && newComp.getDataObject().caseInfo ? newComp.getDataObject().caseInfo : null;
208
207
  // The metadata for pyDetails changed such that the "template": "CaseView"
209
208
  // is no longer a child of the created View but is in the created View's
@@ -121,7 +121,6 @@ export class ViewContainerComponent implements OnInit, OnDestroy {
121
121
  }
122
122
 
123
123
  if (sessionStorage.getItem('hasViewContainer') == 'false') {
124
- // @ts-ignore - Property 'getMetadata' is private and only accessible within class
125
124
  if (this.pConn$.getMetadata().children) {
126
125
  containerMgr.addContainerItem(this.dispatchObject);
127
126
  }
@@ -357,8 +357,8 @@ export class AssignmentComponent implements OnInit, OnDestroy, OnChanges {
357
357
 
358
358
  savePromise
359
359
  .then(() => {
360
+ // @ts-ignore - Property 'c11nEnv' is private and only accessible within class 'CaseInfo'.
360
361
  const caseType = this.pConn$.getCaseInfo().c11nEnv.getValue(PCore.getConstants().CASE_INFO.CASE_TYPE_ID);
361
- // @ts-ignore - second parameter “payload” for publish method should be optional
362
362
  PCore.getPubSubUtils().publish('cancelPressed');
363
363
  this.onSaveActionSuccess({ caseType, caseID, assignmentID });
364
364
  })
@@ -373,12 +373,9 @@ export class AssignmentComponent implements OnInit, OnDestroy, OnChanges {
373
373
  case 'cancelAssignment':
374
374
  this.bReInit = true;
375
375
  this.erService.sendMessage('dismiss', '');
376
- // @ts-ignore - Property 'isAssignmentInCreateStage' is private and only accessible within class 'CaseInfo'
377
376
  const isAssignmentInCreateStage = this.pConn$.getCaseInfo().isAssignmentInCreateStage();
378
377
  const isLocalAction =
379
- // @ts-ignore - Property 'isLocalAction' is private and only accessible within class 'CaseInfo'.
380
378
  this.pConn$.getCaseInfo().isLocalAction() ||
381
- // @ts-ignore - second parameter pageReference for getValue method should be optional
382
379
  (PCore.getConstants().CASE_INFO.IS_LOCAL_ACTION && this.pConn$.getValue(PCore.getConstants().CASE_INFO.IS_LOCAL_ACTION));
383
380
  // check if create stage (modal)
384
381
  if (isAssignmentInCreateStage && this.isInModal$ && !isLocalAction) {
@@ -398,14 +395,12 @@ export class AssignmentComponent implements OnInit, OnDestroy, OnChanges {
398
395
 
399
396
  // publish before cancel pressed, because
400
397
  // cancel assignment happens "after" cancel assignment happens
401
- // @ts-ignore - second parameter “payload” for publish method should be optional
402
398
  PCore.getPubSubUtils().publish('cancelPressed');
403
399
 
404
400
  const cancelPromise = this.cancelAssignment(this.itemKey$);
405
401
  cancelPromise
406
402
  .then(() => {
407
403
  this.psService.sendMessage(false);
408
- // @ts-ignore - second parameter “payload” for publish method should be optional
409
404
  PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.EVENT_CANCEL);
410
405
  })
411
406
  .catch(() => {
@@ -47,7 +47,6 @@ export class DashboardFilterComponent implements OnInit {
47
47
 
48
48
  clearFilters() {
49
49
  this.filtersFormGroup$.reset();
50
- // @ts-ignore - second parameter “payload” for publish method should be optional
51
50
  PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.EVENT_DASHBOARD_FILTER_CLEAR_ALL);
52
51
  }
53
52
 
@@ -44,7 +44,8 @@ export class DeferLoadComponent implements OnInit, OnDestroy, OnChanges {
44
44
 
45
45
  ngOnInit(): void {
46
46
  this.angularPConnectData = this.angularPConnect.registerAndSubscribeComponent(this, this.onStateChange);
47
- this.loadActiveTab();
47
+ // The below call is causing an error while creating/opening a case, hence commenting it out
48
+ // this.loadActiveTab();
48
49
  }
49
50
 
50
51
  ngOnDestroy(): void {
@@ -56,7 +57,6 @@ export class DeferLoadComponent implements OnInit, OnDestroy, OnChanges {
56
57
  onStateChange() {
57
58
  // Should always check the bridge to see if the component should
58
59
  // update itself (re-render)
59
- // @ts-ignore - second parameter pageReference for getValue method should be optional
60
60
  const theRequestedAssignment = this.pConn$.getValue(PCore.getConstants().CASE_INFO.ASSIGNMENT_LABEL);
61
61
  if (theRequestedAssignment !== this.currentLoadedAssignment) {
62
62
  this.currentLoadedAssignment = theRequestedAssignment;
@@ -65,7 +65,6 @@ export class DeferLoadComponent implements OnInit, OnDestroy, OnChanges {
65
65
  }
66
66
 
67
67
  ngOnChanges() {
68
- // @ts-ignore - second parameter pageReference for getValue method should be optional
69
68
  this.loadViewCaseID = this.pConn$.getValue(this.constants.PZINSKEY) || this.pConn$.getValue(this.constants.CASE_INFO.CASE_INFO_ID);
70
69
  let containerItemData;
71
70
  const targetName = this.pConn$.getTarget();
@@ -91,7 +90,6 @@ export class DeferLoadComponent implements OnInit, OnDestroy, OnChanges {
91
90
 
92
91
  getViewOptions = () => ({
93
92
  viewContext: this.resourceType,
94
- // @ts-ignore - parameter “contextName” for getDataObject method should be optional
95
93
  pageClass: this.loadViewCaseID ? '' : this.pConn$.getDataObject().pyPortal.classID,
96
94
  container: this.isContainerPreview ? 'preview' : null,
97
95
  containerName: this.isContainerPreview ? 'preview' : null,
@@ -138,9 +136,8 @@ export class DeferLoadComponent implements OnInit, OnDestroy, OnChanges {
138
136
  this.pConn$
139
137
  .getActionsApi()
140
138
  .showData(this.name, dataContext, dataContextParameters, {
141
- // @ts-ignore - skipSemanticUrl should be boolean type
142
139
  skipSemanticUrl: true,
143
- // @ts-ignore
140
+ // @ts-ignore - Object literal may only specify known properties, and 'isDeferLoaded' does not exist in type '{ containerName: string; skipSemanticUrl: boolean; }'
144
141
  isDeferLoaded: true
145
142
  })
146
143
  .then(data => {
@@ -160,8 +157,8 @@ export class DeferLoadComponent implements OnInit, OnDestroy, OnChanges {
160
157
  } else {
161
158
  this.pConn$
162
159
  .getActionsApi()
163
- .refreshCaseView(encodeURI(this.loadViewCaseID), this.name, null)
164
- .then(data => {
160
+ .refreshCaseView(encodeURI(this.loadViewCaseID), this.name, '')
161
+ .then((data: any) => {
165
162
  this.onResponse(data.root);
166
163
  });
167
164
  }
@@ -120,7 +120,6 @@ export class NavbarComponent implements OnInit, OnDestroy {
120
120
  this.navPages$.forEach(page => {
121
121
  page.iconName = this.utils.getImageSrc(page.pxPageViewIcon, this.utils.getSDKStaticContentUrl());
122
122
  });
123
- // @ts-ignore - second parameter pageReference for getValue method should be optional
124
123
  this.localeReference = this.pConn$.getValue('.pyLocaleReference');
125
124
  this.actionsAPI = this.pConn$.getActionsApi();
126
125
  this.createWork = this.actionsAPI.createWork.bind(this.actionsAPI);
@@ -6,11 +6,11 @@
6
6
  <img class="psdk-case-svg-icon" src="{{ svgCase$ }}" />
7
7
  </div>
8
8
  <div class="psdk-case-view-heading">
9
- <div id="current-caseID" [hidden]="true">{{ currentCaseID }}</div>
10
- <div class="psdk-case-view-heading-id" id="caseId">{{ id$ }}</div>
11
9
  <div>
12
10
  <h1 id="case-name">{{ heading$ }}</h1>
13
11
  </div>
12
+ <div id="current-caseID" [hidden]="true">{{ currentCaseID }}</div>
13
+ <div class="psdk-case-view-heading-id" id="caseId">{{ id$ }}</div>
14
14
  </div>
15
15
  </mat-toolbar-row>
16
16
  </mat-toolbar>
@@ -48,6 +48,8 @@ h1 {
48
48
  width: 25rem;
49
49
  float: left;
50
50
  padding: 0rem 0.3125rem 0rem 0rem;
51
+ margin-left: 0.5rem;
52
+ margin-top: 0.5rem;
51
53
  height: 100%; /* Should be removed. Only for demonstration */
52
54
  background-color: var(--app-form-color);
53
55
  }
@@ -106,9 +106,7 @@ export class CaseViewComponent implements OnInit, OnDestroy {
106
106
  }
107
107
 
108
108
  hasCaseIDChanged(): boolean {
109
- // @ts-ignore - parameter “contextName” for getDataObject method should be optional
110
109
  if (this.currentCaseID !== this.pConn$.getDataObject().caseInfo.ID) {
111
- // @ts-ignore - parameter “contextName” for getDataObject method should be optional
112
110
  this.currentCaseID = this.pConn$.getDataObject().caseInfo.ID;
113
111
  return true;
114
112
  }
@@ -117,13 +115,11 @@ export class CaseViewComponent implements OnInit, OnDestroy {
117
115
 
118
116
  updateHeaderAndSummary() {
119
117
  this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as CaseViewProps;
120
- // @ts-ignore - parameter “contextName” for getDataObject method should be optional
121
118
  const hasNewAttachments = this.pConn$.getDataObject().caseInfo?.hasNewAttachments;
122
119
 
123
120
  if (hasNewAttachments !== this.bHasNewAttachments) {
124
121
  this.bHasNewAttachments = hasNewAttachments;
125
122
  if (this.bHasNewAttachments) {
126
- // @ts-ignore - Argument of type 'boolean' is not assignable to parameter of type 'object'
127
123
  PCore.getPubSubUtils().publish((PCore.getEvents().getCaseEvent() as any).CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW, true);
128
124
  }
129
125
  }
@@ -142,7 +138,6 @@ export class CaseViewComponent implements OnInit, OnDestroy {
142
138
 
143
139
  this.heading$ = PCore.getLocaleUtils().getLocaleValue(this.configProps$.header, '', this.localeKey);
144
140
  this.id$ = this.configProps$.subheader;
145
- // @ts-ignore - second parameter pageReference for getValue method should be optional
146
141
  this.status$ = this.pConn$.getValue('.pyStatusWork');
147
142
  });
148
143
  }
@@ -158,7 +153,6 @@ export class CaseViewComponent implements OnInit, OnDestroy {
158
153
 
159
154
  this.arChildren$ = this.pConn$.getChildren() as any[];
160
155
 
161
- // @ts-ignore - parameter “contextName” for getDataObject method should be optional
162
156
  const caseInfo = this.pConn$.getDataObject().caseInfo;
163
157
  this.currentCaseID = caseInfo.ID;
164
158
  this.arAvailableActions$ = caseInfo?.availableActions ? caseInfo.availableActions : [];
@@ -176,10 +176,8 @@ export class DataReferenceComponent implements OnInit, OnDestroy {
176
176
  handleSelection(event) {
177
177
  const caseKey = this.pConn$.getCaseInfo().getKey();
178
178
  const refreshOptions = { autoDetectRefresh: true };
179
- // @ts-ignore - second parameter pageReference for getValue method should be optional
180
179
  if (this.canBeChangedInReviewMode && this.pConn$.getValue('__currentPageTabViewName')) {
181
- // @ts-ignore - second parameter pageReference for getValue method should be optional
182
- this.pConn$.getActionsApi().refreshCaseView(caseKey, this.pConn$.getValue('__currentPageTabViewName'), null, refreshOptions);
180
+ this.pConn$.getActionsApi().refreshCaseView(caseKey, this.pConn$.getValue('__currentPageTabViewName'), '', refreshOptions);
183
181
  PCore.getDeferLoadManager().refreshActiveComponents(this.pConn$.getContextName());
184
182
  } else {
185
183
  const pgRef = this.pConn$.getPageReference().replace('caseInfo.content', '');
@@ -56,7 +56,6 @@ export class DynamicTabsComponent implements OnInit, OnDestroy {
56
56
  updateSelf() {
57
57
  const { referenceList } = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as DynamicTabsProps;
58
58
 
59
- // @ts-ignore - Property 'getComponentConfig' is private and only accessible within class 'C11nEnv'
60
59
  const { tablabel } = this.pConn$.getComponentConfig();
61
60
  const tablabelProp = PCore.getAnnotationUtils().getPropertyName(tablabel);
62
61
 
@@ -149,20 +149,12 @@ export class FieldGroupTemplateComponent implements OnInit, OnDestroy, OnChanges
149
149
  };
150
150
 
151
151
  addFieldGroupItem() {
152
- if (PCore.getPCoreVersion()?.includes('8.7')) {
153
- this.pConn$.getListActions().insert({ classID: this.contextClass }, this.referenceList.length, this.pageReference);
154
- } else {
155
- // @ts-ignore - second parameter "pageRef" is optional for insert method
156
- this.pConn$.getListActions().insert({ classID: this.contextClass }, this.referenceList.length);
157
- }
152
+ // @ts-ignore - second parameter "pageRef" is optional for insert method
153
+ this.pConn$.getListActions().insert({ classID: this.contextClass }, this.referenceList.length);
158
154
  }
159
155
 
160
156
  deleteFieldGroupItem(index) {
161
- if (PCore.getPCoreVersion()?.includes('8.7')) {
162
- this.pConn$.getListActions().deleteEntry(index, this.pageReference);
163
- } else {
164
- // @ts-ignore - second parameter "pageRef" is optional for deleteEntry method
165
- this.pConn$.getListActions().deleteEntry(index);
166
- }
157
+ // @ts-ignore - second parameter "pageRef" is optional for deleteEntry method
158
+ this.pConn$.getListActions().deleteEntry(index);
167
159
  }
168
160
  }
@@ -150,13 +150,13 @@
150
150
  <ng-container *ngIf="singleSelectionMode" matColumnDef="select">
151
151
  <th mat-header-cell *matHeaderCellDef></th>
152
152
  <td mat-cell *matCellDef="let row">
153
- <mat-radio-button [value]="row[rowID]" (change)="fieldOnChange(row)"></mat-radio-button>
153
+ <mat-radio-button [value]="row[rowID]" [checked]="row[rowID] === checkBoxValue" (change)="fieldOnChange(row)"></mat-radio-button>
154
154
  </td>
155
155
  </ng-container>
156
156
  <ng-container *ngIf="multiSelectionMode" matColumnDef="select">
157
157
  <th mat-header-cell *matHeaderCellDef></th>
158
158
  <td mat-cell *matCellDef="let row">
159
- <mat-checkbox [value]="row[rowID]" (change)="onCheckboxClick(row, $event)"></mat-checkbox>
159
+ <mat-checkbox [value]="row[rowID]" [checked]="isChecked(row)" (change)="onCheckboxClick(row, $event)"></mat-checkbox>
160
160
  </td>
161
161
  </ng-container>
162
162
  <ng-container *ngFor="let dCol of fields$" [matColumnDef]="dCol.config.name">