@pega/angular-sdk-overrides 0.24.2 → 0.24.3

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 (34) hide show
  1. package/lib/field/cancel-alert/cancel-alert.component.ts +0 -2
  2. package/lib/field/dropdown/dropdown.component.ts +0 -3
  3. package/lib/field/radio-buttons/radio-buttons.component.ts +0 -3
  4. package/lib/field/scalar-list/scalar-list.component.ts +2 -1
  5. package/lib/field/text-area/text-area.component.ts +0 -2
  6. package/lib/infra/Containers/flow-container/flow-container.component.ts +0 -12
  7. package/lib/infra/Containers/modal-view-container/modal-view-container.component.ts +0 -1
  8. package/lib/infra/Containers/view-container/view-container.component.ts +0 -1
  9. package/lib/infra/assignment/assignment.component.ts +1 -6
  10. package/lib/infra/dashboard-filter/dashboard-filter.component.ts +0 -1
  11. package/lib/infra/defer-load/defer-load.component.ts +5 -8
  12. package/lib/infra/navbar/navbar.component.ts +0 -1
  13. package/lib/template/case-view/case-view.component.html +2 -2
  14. package/lib/template/case-view/case-view.component.scss +2 -0
  15. package/lib/template/case-view/case-view.component.ts +0 -6
  16. package/lib/template/data-reference/data-reference.component.ts +1 -3
  17. package/lib/template/dynamic-tabs/dynamic-tabs.component.ts +0 -1
  18. package/lib/template/field-group-template/field-group-template.component.ts +4 -12
  19. package/lib/template/list-view/list-view.component.html +2 -2
  20. package/lib/template/list-view/list-view.component.ts +15 -4
  21. package/lib/template/list-view/listViewHelpers.ts +0 -1
  22. package/lib/template/repeating-structures/repeating-structures.component.ts +1 -2
  23. package/lib/template/simple-table/simple-table.component.ts +0 -2
  24. package/lib/template/simple-table-manual/simple-table-manual.component.ts +5 -10
  25. package/lib/template/simple-table-select/simple-table-select.component.ts +2 -4
  26. package/lib/widget/attachment/attachment.component.html +50 -34
  27. package/lib/widget/attachment/attachment.component.scss +118 -0
  28. package/lib/widget/attachment/attachment.component.ts +252 -500
  29. package/lib/widget/case-history/case-history.component.ts +0 -1
  30. package/lib/widget/feed-container/feed-container.component.ts +0 -4
  31. package/lib/widget/file-utility/file-utility.component.ts +0 -4
  32. package/lib/widget/quick-create/quick-create.component.ts +1 -1
  33. package/lib/widget/todo/todo.component.ts +3 -5
  34. 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(() => {
@@ -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
  }
@@ -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;
@@ -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">
@@ -40,6 +40,8 @@ interface ListViewProps {
40
40
  presets?: any;
41
41
  reorderFields: string | boolean;
42
42
  grouping: string | boolean;
43
+ value: any;
44
+ readonlyContextList: any;
43
45
  }
44
46
 
45
47
  export class Group {
@@ -156,6 +158,7 @@ export class ListViewComponent implements OnInit, OnDestroy {
156
158
  fieldDefs: any;
157
159
  xRayApis = PCore.getDebugger().getXRayRuntime();
158
160
  xRayUid = this.xRayApis.startXRay();
161
+ checkBoxValue: string;
159
162
 
160
163
  constructor(
161
164
  private psService: ProgressSpinnerService,
@@ -184,6 +187,8 @@ export class ListViewComponent implements OnInit, OnDestroy {
184
187
 
185
188
  this.selectionMode = this.configProps$.selectionMode;
186
189
 
190
+ this.checkBoxValue = this.configProps$.value;
191
+
187
192
  this.arFilterMainButtons$.push({ actionID: 'submit', jsAction: 'submit', name: 'Submit' });
188
193
  this.arFilterSecondaryButtons$.push({ actionID: 'cancel', jsAction: 'cancel', name: 'Cancel' });
189
194
 
@@ -353,7 +358,6 @@ export class ListViewComponent implements OnInit, OnDestroy {
353
358
  }
354
359
 
355
360
  getListData() {
356
- // @ts-ignore - Property 'getComponentConfig' is private and only accessible within class 'C11nEnv'
357
361
  const componentConfig = this.pConn$.getComponentConfig();
358
362
  if (this.configProps$) {
359
363
  this.preparePayload();
@@ -364,8 +368,7 @@ export class ListViewComponent implements OnInit, OnDestroy {
364
368
  const dataViewParameters = this.payload.parameters;
365
369
 
366
370
  const workListDataPromise = !this.bInForm$
367
- ? // @ts-ignore - 3rd parameter "context" should be optional in getData method
368
- PCore.getDataApiUtils().getData(refList, payload)
371
+ ? PCore.getDataApiUtils().getData(refList, payload)
369
372
  : PCore.getDataPageUtils().getDataAsync(
370
373
  refList,
371
374
  this.pConn$.getContextName(),
@@ -505,6 +508,13 @@ export class ListViewComponent implements OnInit, OnDestroy {
505
508
  }
506
509
  }
507
510
 
511
+ isChecked(rowIn): any {
512
+ const initialVal = false;
513
+ return this.configProps$?.readonlyContextList?.reduce((acc, currRow) => {
514
+ return acc || rowIn[this.rowID] === currRow[this.rowID];
515
+ }, initialVal);
516
+ }
517
+
508
518
  fieldOnChange(row) {
509
519
  const value = row[this.rowID];
510
520
  const reqObj = {};
@@ -517,6 +527,7 @@ export class ListViewComponent implements OnInit, OnDestroy {
517
527
  } else {
518
528
  reqObj[this.rowID] = value;
519
529
  }
530
+ this.checkBoxValue = value;
520
531
  this.pConn$?.getListActions?.()?.setSelectedRows([reqObj]);
521
532
  }
522
533
 
@@ -601,7 +612,7 @@ export class ListViewComponent implements OnInit, OnDestroy {
601
612
  this.pConn$.getActionsApi().openAssignment(pzInsKey, pxObjClass, {
602
613
  containerName: 'primary',
603
614
  channelName: ''
604
- });
615
+ } as any);
605
616
  } else {
606
617
  this.pConn$.getActionsApi().openWorkByHandle(pzInsKey, pxObjClass);
607
618
  }
@@ -25,7 +25,6 @@ export function useInit(props) {
25
25
  let selectionCountThreshold;
26
26
 
27
27
  // promise to fetch metadata
28
- // @ts-ignore - 3rd parameter "associationFilter" should be optional for getDataViewMetadata method
29
28
  const metaDataPromise = PCore.getAnalyticsUtils().getDataViewMetadata(referenceList, showDynamicFields);
30
29
 
31
30
  const promisesArray = [metaDataPromise];
@@ -41,8 +41,7 @@ export class RepeatingStructuresComponent implements OnInit, AfterViewInit {
41
41
  this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps());
42
42
  this.fields$ = this.initializeColumns(componentConfig.fields);
43
43
 
44
- const refList = this.configProps$.referenceList;
45
- // @ts-ignore - second parameter pageReference for getValue method should be optional
44
+ const refList: any = this.configProps$.referenceList;
46
45
  const tableDataResults = JSON.parse(JSON.stringify(this.pConn$.getValue(refList)));
47
46
 
48
47
  // update elements like date format
@@ -87,10 +87,8 @@ export class SimpleTableComponent implements OnInit, OnDestroy {
87
87
  const { multiRecordDisplayAs } = this.configProps$;
88
88
  let { contextClass } = this.configProps$;
89
89
  if (!contextClass) {
90
- // @ts-ignore - Property 'getComponentConfig' is private and only accessible within class 'C11nEnv'
91
90
  let listName = this.pConn$.getComponentConfig().referenceList;
92
91
  listName = PCore.getAnnotationUtils().getPropertyName(listName);
93
- // @ts-ignore - Property 'getFieldMetadata' is private and only accessible within class 'C11nEnv'
94
92
  contextClass = this.pConn$.getFieldMetadata(listName)?.pageClass;
95
93
  }
96
94
  if (multiRecordDisplayAs === 'fieldGroup') {
@@ -249,10 +249,8 @@ export class SimpleTableManualComponent implements OnInit, OnDestroy {
249
249
  let { contextClass } = this.configProps$;
250
250
  this.referenceList = referenceList;
251
251
  if (!contextClass) {
252
- // @ts-ignore - Property 'getComponentConfig' is private and only accessible within class 'C11nEnv'
253
252
  let listName = this.pConn$.getComponentConfig().referenceList;
254
253
  listName = PCore.getAnnotationUtils().getPropertyName(listName);
255
- // @ts-ignore - Property 'getFieldMetadata' is private and only accessible within class 'C11nEnv'
256
254
  contextClass = this.pConn$.getFieldMetadata(listName)?.pageClass;
257
255
  }
258
256
  this.contextClass = contextClass;
@@ -357,12 +355,13 @@ export class SimpleTableManualComponent implements OnInit, OnDestroy {
357
355
  if (this.isInitialized) {
358
356
  this.isInitialized = false;
359
357
  if (this.allowEditingInModal) {
358
+ // @ts-ignore - An argument for 'uniqueField' was not provided.
360
359
  this.pConn$.getListActions().initDefaultPageInstructions(
361
360
  this.pConn$.getReferenceList(),
362
361
  this.fieldDefs.filter(item => item.name).map(item => item.name)
363
362
  );
364
363
  } else {
365
- // @ts-ignore - An argument for 'fields' was not provided
364
+ // @ts-ignore - An argument for 'propertyNames' was not provided.
366
365
  this.pConn$.getListActions().initDefaultPageInstructions(this.pConn$.getReferenceList());
367
366
  }
368
367
  }
@@ -370,7 +369,7 @@ export class SimpleTableManualComponent implements OnInit, OnDestroy {
370
369
 
371
370
  getResultsText() {
372
371
  const recordsCount = this.readOnlyMode ? this.rowData?.data.length : this.referenceList?.length;
373
- return `${recordsCount} result${recordsCount > 1 ? 's' : ''}`;
372
+ return `${recordsCount || 0} result${recordsCount > 1 ? 's' : ''}`;
374
373
  }
375
374
 
376
375
  sortCompare(a, b): number {
@@ -949,12 +948,8 @@ export class SimpleTableManualComponent implements OnInit, OnDestroy {
949
948
  }
950
949
 
951
950
  deleteRecord(index) {
952
- if (PCore.getPCoreVersion()?.includes('8.7')) {
953
- this.pConn$.getListActions().deleteEntry(index, this.pageReference);
954
- } else {
955
- // @ts-ignore - second parameter "pageRef" is optional for deleteEntry method
956
- this.pConn$.getListActions().deleteEntry(index);
957
- }
951
+ // @ts-ignore - second parameter "pageRef" is optional for deleteEntry method
952
+ this.pConn$.getListActions().deleteEntry(index);
958
953
  }
959
954
 
960
955
  buildElementsForTable() {
@@ -85,10 +85,8 @@ export class SimpleTableSelectComponent implements OnInit, OnDestroy {
85
85
  contextPageReference = pageReference.concat('.').concat(referenceProp);
86
86
  }
87
87
  const metadata = isMultiSelectMode
88
- ? // @ts-ignore - Property 'getFieldMetadata' is private and only accessible within class 'C11nEnv'
89
- this.pConn$.getFieldMetadata(`@P .${referenceProp}`)
90
- : // @ts-ignore - Property 'getCurrentPageFieldMetadata' is private and only accessible within class 'C11nEnv'
91
- this.pConn$.getCurrentPageFieldMetadata(contextPageReference);
88
+ ? this.pConn$.getFieldMetadata(`@P .${referenceProp}`)
89
+ : this.pConn$.getCurrentPageFieldMetadata(contextPageReference);
92
90
 
93
91
  const { datasource: { parameters: fieldParameters = {} } = {}, pageClass } = metadata;
94
92