Skip to content

Commit 9bf82f5

Browse files
author
Sharma
committed
Upgraded the pcore-pconnect-typedefs to latest
1 parent b4f9937 commit 9bf82f5

File tree

8 files changed

+13
-11
lines changed

8 files changed

+13
-11
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"@angular/language-service": "^19.2.14",
9696
"@pega/configs": "^0.16.3",
9797
"@pega/constellationjs": "^0.25.1",
98-
"@pega/pcore-pconnect-typedefs": "~3.2.2",
98+
"@pega/pcore-pconnect-typedefs": "~4.1.0",
9999
"@playwright/test": "^1.54.2",
100100
"@types/jasmine": "~5.1.4",
101101
"@types/jasminewd2": "~2.0.13",

packages/angular-sdk-components/src/lib/_components/template/data-reference/data-reference.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ export class DataReferenceComponent implements OnInit, OnDestroy {
228228
const caseKey = this.pConn$.getCaseInfo().getKey();
229229
const refreshOptions: any = { autoDetectRefresh: true, propertyName: '' };
230230

231-
if (this.pConn$?.getRawMetadata()?.children?.length > 0 && this.pConn$?.getRawMetadata()?.children[0].config?.value) {
232-
refreshOptions.propertyName = this.pConn$?.getRawMetadata()?.children[0].config.value;
231+
if ((this.pConn$?.getRawMetadata()?.children as any)?.length > 0 && this.pConn$?.getRawMetadata()?.children?.[0].config?.value) {
232+
refreshOptions.propertyName = this.pConn$?.getRawMetadata()?.children?.[0].config.value;
233233
refreshOptions.classID = (this.pConn$.getRawMetadata() as any).classID;
234234
}
235235

packages/angular-sdk-components/src/lib/_components/template/data-reference/search-form/tabsData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export function getData(deferLoadedTabs, tabCountSources, currentTabId, data) {
137137
}))
138138
)
139139
.then(res => {
140-
const values = res?.data?.caseInfo?.content || {};
140+
const values = (res?.data as any)?.caseInfo?.content || {};
141141
const temp = calculatedFields.map(field => ({
142142
...field,
143143
count: values[field.propertyName?.substring(1)] || field.count

packages/angular-sdk-components/src/lib/_components/template/inline-dashboard-page/inline-dashboard-page.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class InlineDashboardPageComponent implements OnInit, OnChanges {
4545
updateSelf() {
4646
this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as InlineDashboardPageProps;
4747
const arChildren$ = this.pConn$.getChildren();
48-
const allFilters = this.pConn$.getRawMetadata()?.children[1];
48+
const allFilters = this.pConn$.getRawMetadata()?.children?.[1];
4949
const filterComponents = buildFilterComponents(this.pConn$, allFilters);
5050
this.inlineProps = this.configProps$;
5151
this.children[0] = arChildren$[0];

packages/angular-sdk-components/src/lib/_components/template/simple-table-manual/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ export const createPConnect = (contextName, referenceList, pageReference) => {
404404

405405
// create PConnect object
406406
const config = { meta: {}, options };
407-
const { getPConnect } = PCore.createPConnect(config);
407+
const { getPConnect } = PCore.createPConnect(config as any);
408408

409409
return getPConnect();
410410
};

packages/angular-sdk-components/src/lib/_components/template/simple-table-manual/simple-table-manual.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,7 @@ export class SimpleTableManualComponent implements OnInit, OnDestroy {
959959
if (this.allowEditingInModal && this.defaultView) {
960960
this.pConn$
961961
.getActionsApi()
962+
// @ts-expect-error
962963
.openEmbeddedDataModal(
963964
this.defaultView,
964965
this.pConn$ as any,
@@ -980,6 +981,7 @@ export class SimpleTableManualComponent implements OnInit, OnDestroy {
980981
if (data) {
981982
this.pConn$
982983
.getActionsApi()
984+
// @ts-expect-error
983985
.openEmbeddedDataModal(
984986
this.bUseSeparateViewForEdit ? this.editView : this.defaultView,
985987
this.pConn$ as any,

packages/angular-sdk-components/src/lib/_helpers/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ export class Utils {
450450

451451
for (const part of pathParts) {
452452
if (!currentObj[part]) return key;
453-
currentObj = currentObj[part];
453+
currentObj = currentObj[part] as any;
454454
}
455455

456456
return currentObj[key] || key;

0 commit comments

Comments
 (0)