@pega/angular-sdk-components 0.242.5 → 0.242.6

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/esm2022/lib/_components/field/user-reference/user-reference.component.mjs +30 -13
  2. package/esm2022/lib/_components/infra/Containers/flow-container/flow-container.component.mjs +10 -37
  3. package/esm2022/lib/_components/infra/Containers/flow-container/helpers.mjs +2 -2
  4. package/esm2022/lib/_components/infra/Containers/modal-view-container/modal-view-container.component.mjs +2 -8
  5. package/esm2022/lib/_components/infra/assignment/assignment.component.mjs +75 -47
  6. package/esm2022/lib/_components/infra/assignment-card/assignment-card.component.mjs +30 -10
  7. package/esm2022/lib/_components/infra/root-container/root-container.component.mjs +3 -13
  8. package/esm2022/lib/_components/infra/view/view.component.mjs +15 -2
  9. package/esm2022/lib/_components/template/base/form-template-base.mjs +4 -1
  10. package/esm2022/lib/_components/template/default-form/default-form.component.mjs +33 -8
  11. package/esm2022/lib/_components/template/simple-table-manual/helpers.mjs +7 -6
  12. package/esm2022/lib/_components/widget/todo/todo.component.mjs +3 -3
  13. package/esm2022/lib/_services/banner.service.mjs +35 -0
  14. package/esm2022/lib/_services/endpoints.mjs +1 -2
  15. package/esm2022/lib/_services/idle-detection.service.mjs +26 -0
  16. package/esm2022/public-api.mjs +3 -1
  17. package/fesm2022/pega-angular-sdk-components.mjs +372 -257
  18. package/fesm2022/pega-angular-sdk-components.mjs.map +1 -1
  19. package/lib/_components/field/user-reference/user-reference.component.d.ts +5 -0
  20. package/lib/_components/infra/Containers/flow-container/flow-container.component.d.ts +0 -1
  21. package/lib/_components/infra/Containers/flow-container/helpers.d.ts +1 -0
  22. package/lib/_components/infra/Containers/modal-view-container/modal-view-container.component.d.ts +1 -2
  23. package/lib/_components/infra/assignment/assignment.component.d.ts +6 -3
  24. package/lib/_components/infra/assignment-card/assignment-card.component.d.ts +10 -2
  25. package/lib/_components/infra/root-container/root-container.component.d.ts +0 -1
  26. package/lib/_components/template/base/form-template-base.d.ts +2 -0
  27. package/lib/_components/template/default-form/default-form.component.d.ts +8 -3
  28. package/lib/_components/template/simple-table-manual/helpers.d.ts +1 -0
  29. package/lib/_services/banner.service.d.ts +8 -0
  30. package/lib/_services/endpoints.d.ts +0 -1
  31. package/lib/_services/idle-detection.service.d.ts +9 -0
  32. package/lib/doc/KeyReleaseUpdates.md +23 -6
  33. package/package.json +1 -1
  34. package/public-api.d.ts +2 -0
@@ -30,15 +30,20 @@ export declare class UserReferenceComponent implements OnInit, OnDestroy {
30
30
  fieldControl: FormControl<string | null>;
31
31
  actionsApi: Object;
32
32
  propName: string;
33
+ onRecordChange: any;
33
34
  constructor(angularPConnect: AngularPConnectService, utils: Utils);
34
35
  ngOnInit(): Promise<void>;
35
36
  ngOnDestroy(): void;
36
37
  get type(): string;
37
38
  onStateChange(): Promise<void>;
38
39
  private _filter;
40
+ isUserNameAvailable: (user: any) => any;
41
+ getUserName: (user: any) => any;
42
+ getValue: (user: any) => any;
39
43
  checkAndUpdate(): Promise<void>;
40
44
  updateSelf(): Promise<void>;
41
45
  fieldOnChange(event: any): void;
46
+ optionChanged(event: any): void;
42
47
  fieldOnBlur(event: any): void;
43
48
  getErrorMessage(): string;
44
49
  static ɵfac: i0.ɵɵFactoryDeclaration<UserReferenceComponent, never>;
@@ -63,7 +63,6 @@ export declare class FlowContainerComponent extends FlowContainerBaseComponent i
63
63
  getTodoVisibilty(): boolean;
64
64
  initContainer(): void;
65
65
  initComponent(bLoadChildren: boolean): void;
66
- hasAssignments(): boolean;
67
66
  isCaseWideLocalAction(): boolean;
68
67
  hasChildCaseAssignments(): any;
69
68
  getActiveViewLabel(): string;
@@ -1,2 +1,3 @@
1
+ export declare function hasAssignments(pConnect: any): any;
1
2
  export declare const showBanner: (getPConnect: any) => boolean;
2
3
  export declare function getToDoAssignments(pConnect: any): any;
@@ -15,7 +15,6 @@ export declare class ModalViewContainerComponent implements OnInit, OnDestroy {
15
15
  private psService;
16
16
  private fb;
17
17
  pConn$: typeof PConnect;
18
- displayOnlyFA$: boolean;
19
18
  modalVisibleChange: EventEmitter<boolean>;
20
19
  angularPConnectData: AngularPConnectData;
21
20
  arChildren$: any[];
@@ -68,5 +67,5 @@ export declare class ModalViewContainerComponent implements OnInit, OnDestroy {
68
67
  determineModalHeaderByAction(actionName: any, caseTypeName: any, ID: any, caseLocaleRef: any): any;
69
68
  closeActionsDialog: () => void;
70
69
  static ɵfac: i0.ɵɵFactoryDeclaration<ModalViewContainerComponent, never>;
71
- static ɵcmp: i0.ɵɵComponentDeclaration<ModalViewContainerComponent, "app-modal-view-container", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "displayOnlyFA$": { "alias": "displayOnlyFA$"; "required": false; }; }, { "modalVisibleChange": "modalVisibleChange"; }, never, never, true, never>;
70
+ static ɵcmp: i0.ɵɵComponentDeclaration<ModalViewContainerComponent, "app-modal-view-container", never, { "pConn$": { "alias": "pConn$"; "required": false; }; }, { "modalVisibleChange": "modalVisibleChange"; }, never, never, true, never>;
72
71
  }
@@ -5,6 +5,7 @@ import { FormGroup } from '@angular/forms';
5
5
  import { AngularPConnectData, AngularPConnectService } from '../../../_bridge/angular-pconnect';
6
6
  import { ErrorMessagesService } from '../../../_messages/error-messages.service';
7
7
  import { ProgressSpinnerService } from '../../../_messages/progress-spinner.service';
8
+ import { BannerService } from 'packages/angular-sdk-components/src/public-api';
8
9
  import * as i0 from "@angular/core";
9
10
  interface AssignmentProps {
10
11
  template: string;
@@ -15,6 +16,7 @@ export declare class AssignmentComponent implements OnInit, OnDestroy, OnChanges
15
16
  private erService;
16
17
  private ngZone;
17
18
  private snackBar;
19
+ bannerService: BannerService;
18
20
  pConn$: typeof PConnect;
19
21
  formGroup$: FormGroup;
20
22
  arChildren$: any[];
@@ -22,7 +24,6 @@ export declare class AssignmentComponent implements OnInit, OnDestroy, OnChanges
22
24
  isCreateStage$: boolean;
23
25
  updateToken$: number;
24
26
  isInModal$: boolean;
25
- banners: any;
26
27
  angularPConnectData: AngularPConnectData;
27
28
  configProps$: AssignmentProps;
28
29
  newPConn$: any;
@@ -49,7 +50,8 @@ export declare class AssignmentComponent implements OnInit, OnDestroy, OnChanges
49
50
  localizedVal: any;
50
51
  localeCategory: string;
51
52
  localeReference: any;
52
- constructor(angularPConnect: AngularPConnectService, psService: ProgressSpinnerService, erService: ErrorMessagesService, ngZone: NgZone, snackBar: MatSnackBar);
53
+ snackBarRef: any;
54
+ constructor(angularPConnect: AngularPConnectService, psService: ProgressSpinnerService, erService: ErrorMessagesService, ngZone: NgZone, snackBar: MatSnackBar, bannerService: BannerService);
53
55
  ngOnInit(): void;
54
56
  ngOnDestroy(): void;
55
57
  onStateChange(): void;
@@ -66,7 +68,8 @@ export declare class AssignmentComponent implements OnInit, OnDestroy, OnChanges
66
68
  formValid(): boolean;
67
69
  touchAll(): void;
68
70
  topViewRefresh(): void;
71
+ registerForRefresh(): void;
69
72
  static ɵfac: i0.ɵɵFactoryDeclaration<AssignmentComponent, never>;
70
- static ɵcmp: i0.ɵɵComponentDeclaration<AssignmentComponent, "app-assignment", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; "arChildren$": { "alias": "arChildren$"; "required": false; }; "itemKey$": { "alias": "itemKey$"; "required": false; }; "isCreateStage$": { "alias": "isCreateStage$"; "required": false; }; "updateToken$": { "alias": "updateToken$"; "required": false; }; "isInModal$": { "alias": "isInModal$"; "required": false; }; "banners": { "alias": "banners"; "required": false; }; }, {}, never, never, true, never>;
73
+ static ɵcmp: i0.ɵɵComponentDeclaration<AssignmentComponent, "app-assignment", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; "arChildren$": { "alias": "arChildren$"; "required": false; }; "itemKey$": { "alias": "itemKey$"; "required": false; }; "isCreateStage$": { "alias": "isCreateStage$"; "required": false; }; "updateToken$": { "alias": "updateToken$"; "required": false; }; "isInModal$": { "alias": "isInModal$"; "required": false; }; }, {}, never, never, true, never>;
71
74
  }
72
75
  export {};
@@ -1,8 +1,12 @@
1
1
  /// <reference types="pcore-pconnect-typedefs" />
2
- import { OnInit, EventEmitter, OnChanges } from '@angular/core';
2
+ import { OnInit, EventEmitter, OnChanges, OnDestroy } from '@angular/core';
3
3
  import { FormGroup } from '@angular/forms';
4
+ import { IdleDetectionService } from '../../../_services/idle-detection.service';
5
+ import { ServerConfigService } from '../../../_services/server-config.service';
4
6
  import * as i0 from "@angular/core";
5
- export declare class AssignmentCardComponent implements OnInit, OnChanges {
7
+ export declare class AssignmentCardComponent implements OnInit, OnChanges, OnDestroy {
8
+ private idleService;
9
+ private scservice;
6
10
  pConn$: typeof PConnect;
7
11
  formGroup$: FormGroup;
8
12
  arMainButtons$: any[];
@@ -10,9 +14,13 @@ export declare class AssignmentCardComponent implements OnInit, OnChanges {
10
14
  arChildren$: any[];
11
15
  updateToken$: number;
12
16
  actionButtonClick: EventEmitter<any>;
17
+ constructor(idleService: IdleDetectionService, scservice: ServerConfigService);
13
18
  ngOnInit(): void;
14
19
  ngOnChanges(): void;
20
+ ngOnDestroy(): void;
21
+ checkAndEnableAutoSave(): Promise<void>;
15
22
  onActionButtonClick(oData: any): void;
23
+ autoSave(): void;
16
24
  static ɵfac: i0.ɵɵFactoryDeclaration<AssignmentCardComponent, never>;
17
25
  static ɵcmp: i0.ɵɵComponentDeclaration<AssignmentCardComponent, "app-assignment-card", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; "arMainButtons$": { "alias": "arMainButtons$"; "required": false; }; "arSecondaryButtons$": { "alias": "arSecondaryButtons$"; "required": false; }; "arChildren$": { "alias": "arChildren$"; "required": false; }; "updateToken$": { "alias": "updateToken$"; "required": false; }; }, { "actionButtonClick": "actionButtonClick"; }, never, never, true, never>;
18
26
  }
@@ -26,7 +26,6 @@ export declare class RootContainerComponent implements OnInit, OnDestroy {
26
26
  ngOnInit(): void;
27
27
  ngOnDestroy(): void;
28
28
  onStateChange(): void;
29
- modalVisibleChanged(isVisible: any): void;
30
29
  updateSelf(): void;
31
30
  generateViewContainerForNoPortal(): void;
32
31
  showHideProgress(bShow: boolean): void;
@@ -1,7 +1,9 @@
1
1
  import { OnDestroy } from '@angular/core';
2
+ import { AngularPConnectData } from 'packages/angular-sdk-components/src/public-api';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class FormTemplateBase implements OnDestroy {
4
5
  pConn$: any;
6
+ angularPConnectData: AngularPConnectData;
5
7
  ngOnDestroy(): void;
6
8
  static ɵfac: i0.ɵɵFactoryDeclaration<FormTemplateBase, never>;
7
9
  static ɵdir: i0.ɵɵDirectiveDeclaration<FormTemplateBase, never, never, {}, {}, never, never, false, never>;
@@ -1,18 +1,23 @@
1
1
  /// <reference types="pcore-pconnect-typedefs" />
2
- import { OnInit } from '@angular/core';
2
+ import { OnInit, OnDestroy } from '@angular/core';
3
3
  import { FormGroup } from '@angular/forms';
4
+ import { AngularPConnectData, AngularPConnectService } from '../../../_bridge/angular-pconnect';
4
5
  import { TemplateUtils } from '../../../_helpers/template-utils';
5
6
  import { FormTemplateBase } from '../base/form-template-base';
6
7
  import * as i0 from "@angular/core";
7
- export declare class DefaultFormComponent extends FormTemplateBase implements OnInit {
8
+ export declare class DefaultFormComponent extends FormTemplateBase implements OnInit, OnDestroy {
9
+ private angularPConnect;
8
10
  private templateUtils;
9
11
  pConn$: typeof PConnect;
10
12
  formGroup$: FormGroup;
13
+ angularPConnectData: AngularPConnectData;
11
14
  arChildren$: any[];
12
15
  divClass$: string;
13
16
  instructions: string;
14
- constructor(templateUtils: TemplateUtils);
17
+ constructor(angularPConnect: AngularPConnectService, templateUtils: TemplateUtils);
15
18
  ngOnInit(): void;
19
+ onStateChange(): void;
20
+ updateSelf(): void;
16
21
  static ɵfac: i0.ɵɵFactoryDeclaration<DefaultFormComponent, never>;
17
22
  static ɵcmp: i0.ɵɵComponentDeclaration<DefaultFormComponent, "app-default-form", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; }, {}, never, never, true, never>;
18
23
  }
@@ -4,6 +4,7 @@ export declare const getContext: (thePConn: any) => {
4
4
  contextName: any;
5
5
  referenceListStr: any;
6
6
  pageReferenceForRows: any;
7
+ viewName: any;
7
8
  };
8
9
  export declare const populateRowKey: (rawData: any) => any;
9
10
  export declare const getApiContext: (processedData: any, pConnect: any, reorderCB: any) => {
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class BannerService {
3
+ banners: any[];
4
+ clearBanners(): void;
5
+ updateBanners(itemKey: any): void;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<BannerService, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<BannerService>;
8
+ }
@@ -5,7 +5,6 @@ export declare const loginBoxType: {
5
5
  };
6
6
  export declare const endpoints: {
7
7
  loginExperience: number;
8
- SP_VERSION: string;
9
8
  AUTH: string;
10
9
  CASES: string;
11
10
  CASES_V2: string;
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class IdleDetectionService {
3
+ private activityEvents$;
4
+ private idleSubscription;
5
+ startWatching(idleCallback: () => void, idleTimeout?: number): void;
6
+ stopWatching(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<IdleDetectionService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<IdleDetectionService>;
9
+ }
@@ -1,20 +1,37 @@
1
- ### Angular SDK - Release Announcement - v24.1.10 (08 August 2024)
1
+ ### Angular SDK - Release Announcement - v24.2.10 (26 December 2024)
2
2
 
3
- This release - **SDK-A v24.1.10** - is **only compatible with Pega Infinity 24.1**. This release is related to the [**release/24.1.10** branch of the React SDK repository](https://github.com/pegasystems/angular-sdk/tree/release/24.1.10).
3
+ This release - **SDK-A v24.2.10** - is **only compatible with Pega Infinity 24.2**. This release is related to the [**release/24.2.10** branch of the Angular SDK repository](https://github.com/pegasystems/angular-sdk/tree/release/24.2.10).
4
4
  <br>
5
5
 
6
- The SDK-R v24.1.10 release allow React SDK users to to take advantage of the latest [SDK enhancements and fixes noted in **What's New in the SDK?**](https://docs.pega.com/bundle/constellation-sdk/page/constellation-sdks/sdks/react-sdk-updates.html) including:
6
+ The SDK-A v24.2.10 release allow Angular SDK users to to take advantage of the latest [SDK enhancements and fixes noted in **What's New in the SDK?**](https://docs.pega.com/bundle/constellation-sdk/page/constellation-sdks/sdks/angular-sdk-updates.html) including:
7
+
8
+ * Upgraded the Angular version to 18 and the Angular Material version to 18.
9
+ * Field components have been updated to perform event handling using the handleEvent utility function.
10
+ * Updated the value of the displayMode property from LABELS_LEFT to DISPLAY_ONLY.
11
+ * Enhanced the support for the details component in a form view.
12
+ * Bug fixes
13
+ * Full set of merged PRs can be found in the [angular-sdk-components GitHub repo list of merged PRs](https://github.com/pegasystems/angular-sdk-components/pulls?q=is%3Apr+is%3Amerged+base%3Amaster+). This release includes all PRs since (and including) #214.
14
+ <br />
15
+ <hr />
16
+
17
+ ### Previous Releases
18
+
19
+
20
+ #### Angular SDK - v24.1.10 (08 August 2024)
21
+
22
+ This release - **SDK-A v24.1.10** - is **only compatible with Pega Infinity 24.1**. This release is related to the [**release/24.1.10** branch of the Angular SDK repository](https://github.com/pegasystems/angular-sdk/tree/release/24.1.10).
23
+ <br>
24
+
25
+ The SDK-A v24.1.10 release allow Angular SDK users to to take advantage of the latest [SDK enhancements and fixes noted in **What's New in the SDK?**](https://docs.pega.com/bundle/constellation-sdk/page/constellation-sdks/sdks/angular-sdk-updates.html) including:
7
26
 
8
27
  * Support has been added for the approve and reject case actions
9
28
  * Support for the Checkbox group and Combo-Box display options in the MultiSelect mode for the Data Reference and Case Reference fields.
10
29
  * Save For Later functionality now works as expected
11
30
  * Bug fixes
12
- * Full set of merged PRs can be found in the [react-sdk-components GitHub repo list of merged PRs](https://github.com/pegasystems/angular-sdk-components/pulls?q=is%3Apr+is%3Amerged+base%3Amaster+). This release includes all PRs since (and including) #153.
31
+ * Full set of merged PRs can be found in the [angular-sdk-components GitHub repo list of merged PRs](https://github.com/pegasystems/angular-sdk-components/pulls?q=is%3Apr+is%3Amerged+base%3Amaster+). This release includes all PRs since (and including) #153.
13
32
  <br />
14
33
  <hr />
15
34
 
16
- ### Previous Releases
17
-
18
35
  #### Angular SDK - v23.1.10 (20 March 2024)
19
36
 
20
37
  This release - **SDK-A v23.1.10** - is **only compatible with Pega Infinity 23**. This release is related to the [**release/23.1.10** branch of the Angular SDK repository](https://github.com/pegasystems/angular-sdk/tree/release/23.1.10).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/angular-sdk-components",
3
- "version": "0.242.5",
3
+ "version": "0.242.6",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.12",
6
6
  "@angular/core": "^18.2.12"
package/public-api.d.ts CHANGED
@@ -112,6 +112,8 @@ export * from './lib/_directives/thousand-seperator.directive';
112
112
  export * from './lib/_services/server-config.service';
113
113
  export * from './lib/_services/case.service';
114
114
  export * from './lib/_services/datapage.service';
115
+ export * from './lib/_services/idle-detection.service';
116
+ export * from './lib/_services/banner.service';
115
117
  export * from './lib/_services/endpoints';
116
118
  export * from './lib/_helpers/case-utils';
117
119
  export * from './lib/_helpers/currency-utils';