@pega/angular-sdk-overrides 0.25.18 → 0.25.19

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.
@@ -110,7 +110,6 @@ export class NavbarComponent implements OnInit, OnDestroy {
110
110
 
111
111
  // making a copy, so can add info
112
112
  this.navPages$ = JSON.parse(JSON.stringify(this.pages$));
113
- // @ts-ignore
114
113
  const localeReference = PCore.getLocaleUtils().getPortalLocaleReference() || this.pConn$.getValue('.pyLocaleReference');
115
114
  this.navPages$.forEach(page => {
116
115
  const destinationObject: any = {};
@@ -88,8 +88,7 @@ export class ReferenceComponent implements OnInit, OnDestroy, OnChanges {
88
88
  }
89
89
  };
90
90
 
91
- // @ts-expect-error - createComponent expects string but null is passed for unused parameters (matches React SDK pattern)
92
- const viewComponent: any = pConnect.createComponent(viewObject, null, null, {
91
+ const viewComponent: any = pConnect.createComponent(viewObject, '', 0, {
93
92
  pageReference: context && context.startsWith('@CLASS') ? '' : context
94
93
  });
95
94
 
@@ -71,7 +71,6 @@ export class AdvancedSearchComponent implements OnInit, OnChanges {
71
71
  const [firstChildMeta] = rawViewMetadata.children;
72
72
 
73
73
  const localizedVal = PCore.getLocaleUtils().getLocaleValue;
74
- // @ts-ignore
75
74
  const cache = PCore.getNavigationUtils().getComponentCache(searchSelectCacheKey) ?? {};
76
75
 
77
76
  this.editableFieldComp = firstChildPConnect().createComponent({
@@ -210,8 +210,7 @@ export class SearchGroupsComponent implements OnInit, OnDestroy, OnChanges {
210
210
  isValidInput(formValues)
211
211
  ) {
212
212
  if (this.isValidatorField) {
213
- // @ts-ignore
214
- PCore.getMessageManager().clearContextMessages({ context: transientItemID });
213
+ PCore.getMessageManager().clearContextMessages({ context: this.transientItemID });
215
214
  }
216
215
 
217
216
  this.previousFormValues = formValues;
@@ -220,13 +219,13 @@ export class SearchGroupsComponent implements OnInit, OnDestroy, OnChanges {
220
219
  PCore.getPubSubUtils().publish(PCore.getEvents().getTransientEvent().UPDATE_PROMOTED_FILTERS, {
221
220
  payload: formValues,
222
221
  showRecords: true,
223
- viewName: this.getPConnect.getCurrentView()
222
+ viewName: this.getPConnect().getCurrentView()
224
223
  });
225
224
  }
226
225
 
227
226
  this.state.activeGroupId = this.activeGroupId;
228
227
  this.state.searchFields = changes;
229
- this.state.selectedCategory = this.getPConnect.getCurrentView();
228
+ this.state.selectedCategory = this.getPConnect().getCurrentView();
230
229
  const options = componentCachePersistUtils.getComponentStateOptions(this.getPConnect);
231
230
  componentCachePersistUtils.setComponentCache({
232
231
  cacheKey: this.searchSelectCacheKey,
@@ -89,7 +89,6 @@ export class AppShellComponent implements OnInit, OnDestroy {
89
89
  PCore.getEnvironmentInfo().setEnvironmentInfo({ ...PCore.getEnvironmentInfo().environmentInfoObject, pyPortalTemplate: 'wss' } as any);
90
90
  }
91
91
 
92
- // @ts-ignore - Property 'pyCaseTypesAvailableToCreateDP' does not exist on type pxApplication
93
92
  const caseTypesAvailableToCreateDP = PCore.getEnvironmentInfo().environmentInfoObject?.pxApplication?.pyCaseTypesAvailableToCreateDP;
94
93
  if (caseTypesAvailableToCreateDP) {
95
94
  const portalID = this.pConn$.getValue('.pyOwner');
@@ -398,7 +398,6 @@ export class DataReferenceComponent implements OnInit, OnDestroy {
398
398
  if (['Dropdown', 'Checkbox', 'RadioButtons'].includes(type) && !config.deferDatasource && config.datasource) {
399
399
  const isCardVariant = config.variant === 'card';
400
400
  const hasParameters = this.rawViewMetadata.config?.parameters;
401
- // @ts-ignore
402
401
  const isDeferDataPageCallEnabled = isCardVariant && hasParameters && !this.firstChildPConnect()?.getSharedDataPageForReferenceList();
403
402
 
404
403
  const useDropDownDataSource = (isCardVariant && (this.dropDownDataSource || isDeferDataPageCallEnabled)) || (!isCardVariant && hasParameters);
@@ -127,7 +127,6 @@ export function getData(deferLoadedTabs, tabCountSources, currentTabId, data) {
127
127
  });
128
128
  } else if (calculatedFieldsWithoutValue.length) {
129
129
  PCore.getViewRuleApi()
130
- // @ts-ignore
131
130
  .getCalculatedFields(
132
131
  pConn.getCaseInfo().getKey(),
133
132
  pConn.getCurrentView(),
@@ -346,7 +346,6 @@ export class ListViewComponent implements OnInit, OnDestroy {
346
346
  }
347
347
 
348
348
  getFieldsMetadata(refList) {
349
- // @ts-ignore - 3rd parameter "associationFilter" should be optional for getDataViewMetadata method
350
349
  return PCore.getAnalyticsUtils().getDataViewMetadata(refList, this.showDynamicFields);
351
350
  }
352
351
 
@@ -217,7 +217,7 @@ export const updateFieldLabels = (fields, configFields, primaryFieldsViewIndex,
217
217
  let label = configFields[i].config?.label;
218
218
  if (isFLProperty(label)) {
219
219
  label = getFieldLabel(configFields[i].config);
220
- } else if (label.startsWith('@')) {
220
+ } else if (label?.startsWith('@')) {
221
221
  label = label.substring(3);
222
222
  }
223
223
  if (pConnect) {
@@ -32,7 +32,6 @@ export const evaluateAllowRowAction = (allowRowDelete, rowData) => {
32
32
  if (allowRowDelete === undefined || allowRowDelete === true) return true;
33
33
  if (allowRowDelete.startsWith?.('@E ')) {
34
34
  const expression = allowRowDelete.replace('@E ', '');
35
- // @ts-ignore - Expected 3 arguments, but got 2
36
35
  return PCore.getExpressionEngine().evaluate(expression, rowData);
37
36
  }
38
37
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/angular-sdk-overrides",
3
- "version": "0.25.18",
3
+ "version": "0.25.19",
4
4
  "description": "Angular SDK - Code for overriding components",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"