Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ representative at an online or offline event.

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
john.arnold@pega.com.
opensource@pega.com and security@pega.com.
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,16 @@
"@angular/language-service": "^21.2.4",
"@commitlint/cli": "^21.2.3",
"@commitlint/config-conventional": "^21.2.3",
"@eslint/js": "^10.0.1",
"@pega/constellationjs": "~26.1.0",
"@pega/pcore-pconnect-typedefs": "4.1.0",
"@pega/pcore-pconnect-typedefs": "^5.1.1",
"@playwright/test": "^1.63.0",
"@types/jasmine": "~6.0.0",
"@types/jasminewd2": "~2.0.13",
"@types/node": "^24.0.0",
"brotli": "^1.3.3",
"compressing": "^2.1.3",
"copy-webpack-plugin": "^14.0.0",
"@eslint/js": "^10.0.1",
"eslint": "^10.11.0",
"eslint-plugin-jest": "^29.16.6",
"eslint-plugin-sonarjs": "^4.2.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class NavbarComponent implements OnInit, OnDestroy {
bShowCaseTypes$ = false;

portalApp$: string | undefined = '';
portalLogoImage$: string;
portalLogoImage$: string | Blob | null;
showAppName$?: boolean = false;

portalOperator$: string | undefined;
Expand Down Expand Up @@ -110,7 +110,6 @@ export class NavbarComponent implements OnInit, OnDestroy {

// making a copy, so can add info
this.navPages$ = JSON.parse(JSON.stringify(this.pages$));
// @ts-ignore
const localeReference = PCore.getLocaleUtils().getPortalLocaleReference() || this.pConn$.getValue('.pyLocaleReference');
this.navPages$.forEach(page => {
const destinationObject: any = {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ export class ReferenceComponent implements OnInit, OnDestroy, OnChanges {
}
};

// @ts-expect-error - createComponent expects string but null is passed for unused parameters (matches React SDK pattern)
const viewComponent: any = pConnect.createComponent(viewObject, null, null, {
const viewComponent: any = pConnect.createComponent(viewObject, '', 0, {
pageReference: context && context.startsWith('@CLASS') ? '' : context
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export class AdvancedSearchComponent implements OnInit, OnChanges {
const [firstChildMeta] = rawViewMetadata.children;

const localizedVal = PCore.getLocaleUtils().getLocaleValue;
// @ts-ignore
const cache = PCore.getNavigationUtils().getComponentCache(searchSelectCacheKey) ?? {};

this.editableFieldComp = firstChildPConnect().createComponent({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,7 @@ export class SearchGroupsComponent implements OnInit, OnDestroy, OnChanges {
isValidInput(formValues)
) {
if (this.isValidatorField) {
// @ts-ignore
PCore.getMessageManager().clearContextMessages({ context: transientItemID });
PCore.getMessageManager().clearContextMessages({ context: this.transientItemID });
}

this.previousFormValues = formValues;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class AppShellComponent implements OnInit, OnDestroy {
bOkDisplayError = false;
portalTemplate: string;
links: any = [];
imageURL: string | Blob;
imageURL: string | Blob | null;
localizedVal = PCore.getLocaleUtils().getLocaleValue;

constructor(
Expand Down Expand Up @@ -89,7 +89,6 @@ export class AppShellComponent implements OnInit, OnDestroy {
PCore.getEnvironmentInfo().setEnvironmentInfo({ ...PCore.getEnvironmentInfo().environmentInfoObject, pyPortalTemplate: 'wss' } as any);
}

// @ts-ignore - Property 'pyCaseTypesAvailableToCreateDP' does not exist on type pxApplication
const caseTypesAvailableToCreateDP = PCore.getEnvironmentInfo().environmentInfoObject?.pxApplication?.pyCaseTypesAvailableToCreateDP;
if (caseTypesAvailableToCreateDP) {
const portalID = this.pConn$.getValue('.pyOwner');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ export class DataReferenceComponent implements OnInit, OnDestroy {
this.isDisplayModeEnabled = ['DISPLAY_ONLY', 'STACKED_LARGE_VAL'].includes(displayMode);
this.refFieldMetadata = this.pConn$.getFieldMetadata(this.rawViewMetadata?.config?.authorContext);
this.pyID = getMappedKey('pyID');
// @ts-ignore
const { allowImplicitRefresh } = PCore.getFieldDefaultUtils().fieldDefaults?.DataReference || {};
const { allowImplicitRefresh } = PCore.getFieldDefaultUtils().fieldDefaults?.['DataReference'] || {};

this.allowImplicitRefresh = allowImplicitRefresh;
this.isDDSourceDeferred =
Expand Down Expand Up @@ -398,7 +397,6 @@ export class DataReferenceComponent implements OnInit, OnDestroy {
if (['Dropdown', 'Checkbox', 'RadioButtons'].includes(type) && !config.deferDatasource && config.datasource) {
const isCardVariant = config.variant === 'card';
const hasParameters = this.rawViewMetadata.config?.parameters;
// @ts-ignore
const isDeferDataPageCallEnabled = isCardVariant && hasParameters && !this.firstChildPConnect()?.getSharedDataPageForReferenceList();

const useDropDownDataSource = (isCardVariant && (this.dropDownDataSource || isDeferDataPageCallEnabled)) || (!isCardVariant && hasParameters);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ export function getData(deferLoadedTabs, tabCountSources, currentTabId, data) {
});
} else if (calculatedFieldsWithoutValue.length) {
PCore.getViewRuleApi()
// @ts-ignore
.getCalculatedFields(
pConn.getCaseInfo().getKey(),
pConn.getCurrentView(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ export class FieldGroupTemplateComponent implements OnInit, OnDestroy, OnChanges
}

if (this.referenceListLength() != referenceList?.length) {
// @ts-ignore - Expected 3 arguments, but got 1
this.pConn$.getListActions().initDefaultPageInstructions(resolvedList);
this.pConn$.getListActions().initDefaultPageInstructions(resolvedList, []);

this.children = referenceList?.map((item, index) => {
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,6 @@ export class SimpleTableManualComponent implements OnInit, OnDestroy {
if (typeof allowRowDelete === 'string' && allowRowDelete.startsWith('@E ')) {
try {
const expression = allowRowDelete.replace('@E ', '');
// @ts-expect-error - options param is optional per corejs docs
return PCore.getExpressionEngine().evaluate(expression, row);
} catch {
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class WssNavBarComponent implements OnInit, OnDestroy {
@Input() pages$: any[];
@Input() caseTypes$: any[];
@Input() homePage: any;
@Input() portalLogoImage$: string;
@Input() portalLogoImage$: string | Blob | null;

// For interaction with AngularPConnect
angularPConnectData: AngularPConnectData = {};
Expand Down
10 changes: 10 additions & 0 deletions packages/angular-sdk-components/src/lib/_types/pcore-globals.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type PCoreInstance from '@pega/pcore-pconnect-typedefs';
import type { C11nEnv } from '@pega/pcore-pconnect-typedefs/interpreter/c11n-env';

declare global {
var PCore: PCoreInstance;
var PConnect: C11nEnv;
function getPConnect(): C11nEnv;
}

export {};
2 changes: 2 additions & 0 deletions packages/angular-sdk-components/src/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* Public API Surface of angular-sdk-components
*/

import type {} from './lib/_types/pcore-globals';

export * from './sdk-local-component-map';

export * from './lib/_bridge/component-mapper/component-mapper.component';
Expand Down
Loading