@pega/angular-sdk-components 0.242.4 → 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 (65) hide show
  1. package/esm2022/lib/_bridge/component-mapper/component-mapper.component.mjs +3 -10
  2. package/esm2022/lib/_components/field/dropdown/dropdown.component.mjs +27 -13
  3. package/esm2022/lib/_components/field/user-reference/user-reference.component.mjs +30 -13
  4. package/esm2022/lib/_components/infra/Containers/flow-container/flow-container.component.mjs +10 -37
  5. package/esm2022/lib/_components/infra/Containers/flow-container/helpers.mjs +2 -2
  6. package/esm2022/lib/_components/infra/Containers/modal-view-container/modal-view-container.component.mjs +2 -8
  7. package/esm2022/lib/_components/infra/assignment/assignment.component.mjs +75 -47
  8. package/esm2022/lib/_components/infra/assignment-card/assignment-card.component.mjs +30 -10
  9. package/esm2022/lib/_components/infra/root-container/root-container.component.mjs +3 -13
  10. package/esm2022/lib/_components/infra/view/view.component.mjs +15 -2
  11. package/esm2022/lib/_components/template/base/details-template-base.mjs +56 -0
  12. package/esm2022/lib/_components/template/base/form-template-base.mjs +16 -0
  13. package/esm2022/lib/_components/template/case-view/case-view.component.mjs +9 -14
  14. package/esm2022/lib/_components/template/default-form/default-form.component.mjs +35 -10
  15. package/esm2022/lib/_components/template/details/details.component.mjs +9 -36
  16. package/esm2022/lib/_components/template/details-narrow-wide/details-narrow-wide.component.mjs +9 -36
  17. package/esm2022/lib/_components/template/details-one-column/details-one-column.component.mjs +9 -38
  18. package/esm2022/lib/_components/template/details-sub-tabs/details-sub-tabs.component.mjs +12 -39
  19. package/esm2022/lib/_components/template/details-three-column/details-three-column.component.mjs +9 -38
  20. package/esm2022/lib/_components/template/details-two-column/details-two-column.component.mjs +9 -38
  21. package/esm2022/lib/_components/template/details-wide-narrow/details-wide-narrow.component.mjs +9 -38
  22. package/esm2022/lib/_components/template/one-column/one-column.component.mjs +3 -3
  23. package/esm2022/lib/_components/template/simple-table-manual/helpers.mjs +7 -6
  24. package/esm2022/lib/_components/template/three-column/three-column.component.mjs +3 -3
  25. package/esm2022/lib/_components/template/two-column/two-column.component.mjs +3 -3
  26. package/esm2022/lib/_components/template/wide-narrow-form/wide-narrow-form.component.mjs +3 -3
  27. package/esm2022/lib/_components/widget/todo/todo.component.mjs +3 -3
  28. package/esm2022/lib/_services/banner.service.mjs +35 -0
  29. package/esm2022/lib/_services/endpoints.mjs +1 -2
  30. package/esm2022/lib/_services/idle-detection.service.mjs +26 -0
  31. package/esm2022/public-api.mjs +5 -2
  32. package/fesm2022/pega-angular-sdk-components.mjs +431 -458
  33. package/fesm2022/pega-angular-sdk-components.mjs.map +1 -1
  34. package/lib/_components/field/dropdown/dropdown.component.d.ts +1 -1
  35. package/lib/_components/field/user-reference/user-reference.component.d.ts +5 -0
  36. package/lib/_components/infra/Containers/flow-container/flow-container.component.d.ts +0 -1
  37. package/lib/_components/infra/Containers/flow-container/helpers.d.ts +1 -0
  38. package/lib/_components/infra/Containers/modal-view-container/modal-view-container.component.d.ts +1 -2
  39. package/lib/_components/infra/assignment/assignment.component.d.ts +6 -3
  40. package/lib/_components/infra/assignment-card/assignment-card.component.d.ts +10 -2
  41. package/lib/_components/infra/root-container/root-container.component.d.ts +0 -1
  42. package/lib/_components/template/base/details-template-base.d.ts +22 -0
  43. package/lib/_components/template/base/form-template-base.d.ts +10 -0
  44. package/lib/_components/template/case-view/case-view.component.d.ts +1 -2
  45. package/lib/_components/template/default-form/default-form.component.d.ts +9 -4
  46. package/lib/_components/template/details/details.component.d.ts +3 -11
  47. package/lib/_components/template/details-narrow-wide/details-narrow-wide.component.d.ts +3 -11
  48. package/lib/_components/template/details-one-column/details-one-column.component.d.ts +3 -13
  49. package/lib/_components/template/details-sub-tabs/details-sub-tabs.component.d.ts +3 -13
  50. package/lib/_components/template/details-three-column/details-three-column.component.d.ts +3 -13
  51. package/lib/_components/template/details-two-column/details-two-column.component.d.ts +3 -13
  52. package/lib/_components/template/details-wide-narrow/details-wide-narrow.component.d.ts +3 -13
  53. package/lib/_components/template/one-column/one-column.component.d.ts +2 -2
  54. package/lib/_components/template/simple-table-manual/helpers.d.ts +1 -0
  55. package/lib/_components/template/three-column/three-column.component.d.ts +2 -2
  56. package/lib/_components/template/two-column/two-column.component.d.ts +2 -2
  57. package/lib/_components/template/wide-narrow-form/wide-narrow-form.component.d.ts +2 -2
  58. package/lib/_services/banner.service.d.ts +8 -0
  59. package/lib/_services/endpoints.d.ts +0 -1
  60. package/lib/_services/idle-detection.service.d.ts +9 -0
  61. package/lib/doc/KeyReleaseUpdates.md +23 -6
  62. package/package.json +1 -1
  63. package/public-api.d.ts +4 -1
  64. package/esm2022/lib/_components/template/form-template-base/form-template-base.component.mjs +0 -13
  65. package/lib/_components/template/form-template-base/form-template-base.component.d.ts +0 -8
@@ -60,7 +60,7 @@ export declare class DropdownComponent implements OnInit, OnDestroy {
60
60
  checkAndUpdate(): void;
61
61
  updateSelf(): void;
62
62
  getDatapageData(): void;
63
- getData(datasource: any, parameters: any, columns: any, context: any): void;
63
+ getData(dataSource: any, parameters: any, columns: any, context: any, listType: any): void;
64
64
  isSelected(buttonValue: string): boolean;
65
65
  fieldOnChange(event: any): void;
66
66
  getLocalizedOptionValue(opt: IOption): string;
@@ -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;
@@ -0,0 +1,22 @@
1
+ /// <reference types="pcore-pconnect-typedefs" />
2
+ import { OnInit, OnDestroy, Injector } from '@angular/core';
3
+ import { AngularPConnectData } from '../../../_bridge/angular-pconnect';
4
+ import * as i0 from "@angular/core";
5
+ export declare class DetailsTemplateBase implements OnInit, OnDestroy {
6
+ pConn$: typeof PConnect;
7
+ protected angularPConnectData: AngularPConnectData;
8
+ protected angularPConnect: any;
9
+ childrenMetadataOld: any;
10
+ constructor(injector: Injector);
11
+ ngOnInit(): void;
12
+ ngOnDestroy(): void;
13
+ onStateChange(): void;
14
+ checkAndUpdate(): void;
15
+ updateSelf(): void;
16
+ hasRawMetadataChanged(): boolean;
17
+ fetchChildrenMetadata(): {
18
+ [key: string]: any;
19
+ }[];
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<DetailsTemplateBase, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DetailsTemplateBase, never, never, { "pConn$": { "alias": "pConn$"; "required": false; }; }, {}, never, never, false, never>;
22
+ }
@@ -0,0 +1,10 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { AngularPConnectData } from 'packages/angular-sdk-components/src/public-api';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FormTemplateBase implements OnDestroy {
5
+ pConn$: any;
6
+ angularPConnectData: AngularPConnectData;
7
+ ngOnDestroy(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormTemplateBase, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormTemplateBase, never, never, {}, {}, never, never, false, never>;
10
+ }
@@ -15,7 +15,6 @@ export declare class CaseViewComponent implements OnInit, OnDestroy {
15
15
  private utils;
16
16
  pConn$: typeof PConnect;
17
17
  formGroup$: FormGroup;
18
- displayOnlyFA$: boolean;
19
18
  angularPConnectData: AngularPConnectData;
20
19
  configProps$: CaseViewProps;
21
20
  arChildren$: any[];
@@ -51,6 +50,6 @@ export declare class CaseViewComponent implements OnInit, OnDestroy {
51
50
  _menuActionClick(data: any): void;
52
51
  _menuProcessClick(data: any): void;
53
52
  static ɵfac: i0.ɵɵFactoryDeclaration<CaseViewComponent, never>;
54
- static ɵcmp: i0.ɵɵComponentDeclaration<CaseViewComponent, "app-case-view", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; "displayOnlyFA$": { "alias": "displayOnlyFA$"; "required": false; }; }, {}, never, never, true, never>;
53
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaseViewComponent, "app-case-view", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; }, {}, never, never, true, never>;
55
54
  }
56
55
  export {};
@@ -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
- import { FormTemplateBaseComponent } from '../form-template-base/form-template-base.component';
6
+ import { FormTemplateBase } from '../base/form-template-base';
6
7
  import * as i0 from "@angular/core";
7
- export declare class DefaultFormComponent extends FormTemplateBaseComponent 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
  }
@@ -1,20 +1,12 @@
1
1
  /// <reference types="pcore-pconnect-typedefs" />
2
- import { OnInit, OnDestroy } from '@angular/core';
3
- import { AngularPConnectData, AngularPConnectService } from '../../../_bridge/angular-pconnect';
2
+ import { DetailsTemplateBase } from '../base/details-template-base';
4
3
  import * as i0 from "@angular/core";
5
- export declare class DetailsComponent implements OnInit, OnDestroy {
6
- private angularPConnect;
7
- constructor(angularPConnect: AngularPConnectService);
4
+ export declare class DetailsComponent extends DetailsTemplateBase {
8
5
  pConn$: typeof PConnect;
9
6
  highlightedDataArr: any[];
10
7
  showHighlightedData: boolean;
11
8
  arFields$: any[];
12
- angularPConnectData: AngularPConnectData;
13
- ngOnInit(): void;
14
- ngOnDestroy(): void;
15
- onStateChange(): void;
16
- checkAndUpdate(): void;
17
9
  updateSelf(): void;
18
10
  static ɵfac: i0.ɵɵFactoryDeclaration<DetailsComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<DetailsComponent, "app-details", never, { "pConn$": { "alias": "pConn$"; "required": false; }; }, {}, never, never, true, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<DetailsComponent, "app-details", never, {}, {}, never, never, true, never>;
20
12
  }
@@ -1,21 +1,13 @@
1
1
  /// <reference types="pcore-pconnect-typedefs" />
2
- import { OnInit, OnDestroy } from '@angular/core';
3
- import { AngularPConnectData, AngularPConnectService } from '../../../_bridge/angular-pconnect';
2
+ import { DetailsTemplateBase } from '../base/details-template-base';
4
3
  import * as i0 from "@angular/core";
5
- export declare class DetailsNarrowWideComponent implements OnInit, OnDestroy {
6
- private angularPConnect;
7
- constructor(angularPConnect: AngularPConnectService);
4
+ export declare class DetailsNarrowWideComponent extends DetailsTemplateBase {
8
5
  pConn$: typeof PConnect;
9
6
  arFields$: any[];
10
7
  arFields2$: any[];
11
8
  highlightedDataArr: any[];
12
9
  showHighlightedData: boolean;
13
- angularPConnectData: AngularPConnectData;
14
- ngOnInit(): void;
15
- ngOnDestroy(): void;
16
- onStateChange(): void;
17
- checkAndUpdate(): void;
18
10
  updateSelf(): void;
19
11
  static ɵfac: i0.ɵɵFactoryDeclaration<DetailsNarrowWideComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<DetailsNarrowWideComponent, "app-details-narrow-wide", never, { "pConn$": { "alias": "pConn$"; "required": false; }; }, {}, never, never, true, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<DetailsNarrowWideComponent, "app-details-narrow-wide", never, {}, {}, never, never, true, never>;
21
13
  }
@@ -1,22 +1,12 @@
1
1
  /// <reference types="pcore-pconnect-typedefs" />
2
- import { OnInit, OnDestroy } from '@angular/core';
3
- import { AngularPConnectData, AngularPConnectService } from '../../../_bridge/angular-pconnect';
4
- import { FormGroup } from '@angular/forms';
2
+ import { DetailsTemplateBase } from '../base/details-template-base';
5
3
  import * as i0 from "@angular/core";
6
- export declare class DetailsOneColumnComponent implements OnInit, OnDestroy {
7
- private angularPConnect;
8
- constructor(angularPConnect: AngularPConnectService);
4
+ export declare class DetailsOneColumnComponent extends DetailsTemplateBase {
9
5
  pConn$: typeof PConnect;
10
- formGroup$: FormGroup;
11
6
  showHighlightedData: boolean;
12
7
  highlightedDataArr: any;
13
8
  arFields$: any[];
14
- angularPConnectData: AngularPConnectData;
15
- ngOnInit(): void;
16
- ngOnDestroy(): void;
17
- onStateChange(): void;
18
- checkAndUpdate(): void;
19
9
  updateSelf(): void;
20
10
  static ɵfac: i0.ɵɵFactoryDeclaration<DetailsOneColumnComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<DetailsOneColumnComponent, "app-details-one-column", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; }, {}, never, never, true, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<DetailsOneColumnComponent, "app-details-one-column", never, {}, {}, never, never, true, never>;
22
12
  }
@@ -1,24 +1,14 @@
1
1
  /// <reference types="pcore-pconnect-typedefs" />
2
- import { OnInit, OnDestroy } from '@angular/core';
3
- import { FormGroup } from '@angular/forms';
4
- import { AngularPConnectData, AngularPConnectService } from '../../../_bridge/angular-pconnect';
2
+ import { DetailsTemplateBase } from '../base/details-template-base';
5
3
  import * as i0 from "@angular/core";
6
- export declare class DetailsSubTabsComponent implements OnInit, OnDestroy {
7
- private angularPConnect;
4
+ export declare class DetailsSubTabsComponent extends DetailsTemplateBase {
8
5
  pConn$: typeof PConnect;
9
- formGroup$: FormGroup;
10
- angularPConnectData: AngularPConnectData;
11
6
  currentTabId: string;
12
7
  tabItems: any[];
13
8
  availableTabs: any[];
14
- constructor(angularPConnect: AngularPConnectService);
15
- ngOnInit(): void;
16
- ngOnDestroy(): void;
17
- onStateChange(): void;
18
- checkAndUpdate(): void;
19
9
  updateSelf(): void;
20
10
  updateTabContent(): void;
21
11
  handleTabClick(event: any): void;
22
12
  static ɵfac: i0.ɵɵFactoryDeclaration<DetailsSubTabsComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<DetailsSubTabsComponent, "app-details-sub-tabs", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; }, {}, never, never, true, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<DetailsSubTabsComponent, "app-details-sub-tabs", never, {}, {}, never, never, true, never>;
24
14
  }
@@ -1,25 +1,15 @@
1
1
  /// <reference types="pcore-pconnect-typedefs" />
2
- import { OnInit, OnDestroy } from '@angular/core';
3
- import { FormGroup } from '@angular/forms';
4
- import { AngularPConnectData, AngularPConnectService } from '../../../_bridge/angular-pconnect';
2
+ import { DetailsTemplateBase } from '../base/details-template-base';
5
3
  import * as i0 from "@angular/core";
6
- export declare class DetailsThreeColumnComponent implements OnInit, OnDestroy {
7
- private angularPConnect;
8
- constructor(angularPConnect: AngularPConnectService);
4
+ export declare class DetailsThreeColumnComponent extends DetailsTemplateBase {
9
5
  pConn$: typeof PConnect;
10
- formGroup$: FormGroup;
11
6
  showHighlightedData: boolean;
12
7
  highlightedDataArr: any;
13
8
  arFields$: any[];
14
9
  arFields2$: any[];
15
10
  arFields3$: any[];
16
11
  propsToUse: any;
17
- angularPConnectData: AngularPConnectData;
18
- ngOnInit(): void;
19
- ngOnDestroy(): void;
20
- onStateChange(): void;
21
- checkAndUpdate(): void;
22
12
  updateSelf(): void;
23
13
  static ɵfac: i0.ɵɵFactoryDeclaration<DetailsThreeColumnComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<DetailsThreeColumnComponent, "app-details-three-column", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; }, {}, never, never, true, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<DetailsThreeColumnComponent, "app-details-three-column", never, {}, {}, never, never, true, never>;
25
15
  }
@@ -1,25 +1,15 @@
1
1
  /// <reference types="pcore-pconnect-typedefs" />
2
- import { OnInit, OnDestroy } from '@angular/core';
3
- import { FormGroup } from '@angular/forms';
4
- import { AngularPConnectData, AngularPConnectService } from '../../../_bridge/angular-pconnect';
2
+ import { DetailsTemplateBase } from '../base/details-template-base';
5
3
  import * as i0 from "@angular/core";
6
- export declare class DetailsTwoColumnComponent implements OnInit, OnDestroy {
7
- private angularPConnect;
8
- constructor(angularPConnect: AngularPConnectService);
4
+ export declare class DetailsTwoColumnComponent extends DetailsTemplateBase {
9
5
  pConn$: typeof PConnect;
10
- formGroup$: FormGroup;
11
6
  showHighlightedData: boolean;
12
7
  highlightedDataArr: any;
13
8
  arFields$: any[];
14
9
  arFields2$: any[];
15
10
  arFields3$: any[];
16
11
  propsToUse: any;
17
- angularPConnectData: AngularPConnectData;
18
- ngOnInit(): void;
19
- ngOnDestroy(): void;
20
- onStateChange(): void;
21
- checkAndUpdate(): void;
22
12
  updateSelf(): void;
23
13
  static ɵfac: i0.ɵɵFactoryDeclaration<DetailsTwoColumnComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<DetailsTwoColumnComponent, "app-details-two-column", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; }, {}, never, never, true, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<DetailsTwoColumnComponent, "app-details-two-column", never, {}, {}, never, never, true, never>;
25
15
  }
@@ -1,24 +1,14 @@
1
1
  /// <reference types="pcore-pconnect-typedefs" />
2
- import { OnInit, OnDestroy } from '@angular/core';
3
- import { FormGroup } from '@angular/forms';
4
- import { AngularPConnectData, AngularPConnectService } from '../../../_bridge/angular-pconnect';
2
+ import { DetailsTemplateBase } from '../base/details-template-base';
5
3
  import * as i0 from "@angular/core";
6
- export declare class DetailsWideNarrowComponent implements OnInit, OnDestroy {
7
- private angularPConnect;
8
- constructor(angularPConnect: AngularPConnectService);
4
+ export declare class DetailsWideNarrowComponent extends DetailsTemplateBase {
9
5
  pConn$: typeof PConnect;
10
- formGroup$: FormGroup;
11
6
  highlightedDataArr: any[];
12
7
  showHighlightedData: boolean;
13
8
  arFields$: any[];
14
9
  arFields2$: any[];
15
10
  propsToUse: any;
16
- angularPConnectData: AngularPConnectData;
17
- ngOnInit(): void;
18
- ngOnDestroy(): void;
19
- onStateChange(): void;
20
- checkAndUpdate(): void;
21
11
  updateSelf(): void;
22
12
  static ɵfac: i0.ɵɵFactoryDeclaration<DetailsWideNarrowComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<DetailsWideNarrowComponent, "app-details-wide-narrow", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; }, {}, never, never, true, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<DetailsWideNarrowComponent, "app-details-wide-narrow", never, {}, {}, never, never, true, never>;
24
14
  }
@@ -1,9 +1,9 @@
1
1
  /// <reference types="pcore-pconnect-typedefs" />
2
2
  import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
3
3
  import { FormGroup } from '@angular/forms';
4
- import { FormTemplateBaseComponent } from '../form-template-base/form-template-base.component';
4
+ import { FormTemplateBase } from '../base/form-template-base';
5
5
  import * as i0 from "@angular/core";
6
- export declare class OneColumnComponent extends FormTemplateBaseComponent implements OnInit, OnChanges {
6
+ export declare class OneColumnComponent extends FormTemplateBase implements OnInit, OnChanges {
7
7
  pConn$: typeof PConnect;
8
8
  formGroup$: FormGroup;
9
9
  arChildren$: any[];
@@ -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) => {
@@ -1,9 +1,9 @@
1
1
  /// <reference types="pcore-pconnect-typedefs" />
2
2
  import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
3
3
  import { FormGroup } from '@angular/forms';
4
- import { FormTemplateBaseComponent } from '../form-template-base/form-template-base.component';
4
+ import { FormTemplateBase } from '../base/form-template-base';
5
5
  import * as i0 from "@angular/core";
6
- export declare class ThreeColumnComponent extends FormTemplateBaseComponent implements OnInit, OnChanges {
6
+ export declare class ThreeColumnComponent extends FormTemplateBase implements OnInit, OnChanges {
7
7
  pConn$: typeof PConnect;
8
8
  formGroup$: FormGroup;
9
9
  arChildren$: any[];
@@ -1,9 +1,9 @@
1
1
  /// <reference types="pcore-pconnect-typedefs" />
2
2
  import { OnInit, SimpleChanges, OnChanges } from '@angular/core';
3
3
  import { FormGroup } from '@angular/forms';
4
- import { FormTemplateBaseComponent } from '../form-template-base/form-template-base.component';
4
+ import { FormTemplateBase } from '../base/form-template-base';
5
5
  import * as i0 from "@angular/core";
6
- export declare class TwoColumnComponent extends FormTemplateBaseComponent implements OnInit, OnChanges {
6
+ export declare class TwoColumnComponent extends FormTemplateBase implements OnInit, OnChanges {
7
7
  pConn$: typeof PConnect;
8
8
  formGroup$: FormGroup;
9
9
  arChildren$: any[];
@@ -1,9 +1,9 @@
1
1
  /// <reference types="pcore-pconnect-typedefs" />
2
2
  import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
3
3
  import { FormGroup } from '@angular/forms';
4
- import { FormTemplateBaseComponent } from '../form-template-base/form-template-base.component';
4
+ import { FormTemplateBase } from '../base/form-template-base';
5
5
  import * as i0 from "@angular/core";
6
- export declare class WideNarrowFormComponent extends FormTemplateBaseComponent implements OnInit, OnChanges {
6
+ export declare class WideNarrowFormComponent extends FormTemplateBase implements OnInit, OnChanges {
7
7
  pConn$: typeof PConnect;
8
8
  formGroup$: FormGroup;
9
9
  arChildren$: 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.4",
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
@@ -43,6 +43,8 @@ export * from './lib/_components/infra/root-container/root-container.component';
43
43
  export * from './lib/_components/infra/stages/stages.component';
44
44
  export * from './lib/_components/infra/view/view.component';
45
45
  export * from './lib/_components/infra/Containers/base-components/flow-container-base.component';
46
+ export * from './lib/_components/template/base/form-template-base';
47
+ export * from './lib/_components/template/base/details-template-base';
46
48
  export * from './lib/_components/template/app-shell/app-shell.component';
47
49
  export * from './lib/_components/template/case-summary/case-summary.component';
48
50
  export * from './lib/_components/template/case-view/case-view.component';
@@ -59,7 +61,6 @@ export * from './lib/_components/template/details-wide-narrow/details-wide-narro
59
61
  export * from './lib/_components/template/field-group-list/field-group-list.component';
60
62
  export * from './lib/_components/template/field-group-template/field-group-template.component';
61
63
  export * from './lib/_components/template/field-value-list/field-value-list.component';
62
- export * from './lib/_components/template/form-template-base/form-template-base.component';
63
64
  export * from './lib/_components/template/inline-dashboard/inline-dashboard.component';
64
65
  export * from './lib/_components/template/inline-dashboard-page/inline-dashboard-page.component';
65
66
  export * from './lib/_components/template/list-page/list-page.component';
@@ -111,6 +112,8 @@ export * from './lib/_directives/thousand-seperator.directive';
111
112
  export * from './lib/_services/server-config.service';
112
113
  export * from './lib/_services/case.service';
113
114
  export * from './lib/_services/datapage.service';
115
+ export * from './lib/_services/idle-detection.service';
116
+ export * from './lib/_services/banner.service';
114
117
  export * from './lib/_services/endpoints';
115
118
  export * from './lib/_helpers/case-utils';
116
119
  export * from './lib/_helpers/currency-utils';
@@ -1,13 +0,0 @@
1
- import { Directive } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class FormTemplateBaseComponent {
4
- ngOnDestroy() {
5
- PCore.getContextTreeManager().removeContextTreeNode(this.pConn$.getContextName());
6
- }
7
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormTemplateBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
8
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.12", type: FormTemplateBaseComponent, ngImport: i0 }); }
9
- }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormTemplateBaseComponent, decorators: [{
11
- type: Directive
12
- }] });
13
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS10ZW1wbGF0ZS1iYXNlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2FuZ3VsYXItc2RrLWNvbXBvbmVudHMvc3JjL2xpYi9fY29tcG9uZW50cy90ZW1wbGF0ZS9mb3JtLXRlbXBsYXRlLWJhc2UvZm9ybS10ZW1wbGF0ZS1iYXNlLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFhLE1BQU0sZUFBZSxDQUFDOztBQUdyRCxNQUFNLE9BQU8seUJBQXlCO0lBR3BDLFdBQVc7UUFDVCxLQUFLLENBQUMscUJBQXFCLEVBQUUsQ0FBQyxxQkFBcUIsQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLGNBQWMsRUFBRSxDQUFDLENBQUM7SUFDcEYsQ0FBQzsrR0FMVSx5QkFBeUI7bUdBQXpCLHlCQUF5Qjs7NEZBQXpCLHlCQUF5QjtrQkFEckMsU0FBUyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IERpcmVjdGl2ZSwgT25EZXN0cm95IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBEaXJlY3RpdmUoKVxuZXhwb3J0IGNsYXNzIEZvcm1UZW1wbGF0ZUJhc2VDb21wb25lbnQgaW1wbGVtZW50cyBPbkRlc3Ryb3kge1xuICBwQ29ubiQ6IGFueTtcblxuICBuZ09uRGVzdHJveSgpOiB2b2lkIHtcbiAgICBQQ29yZS5nZXRDb250ZXh0VHJlZU1hbmFnZXIoKS5yZW1vdmVDb250ZXh0VHJlZU5vZGUodGhpcy5wQ29ubiQuZ2V0Q29udGV4dE5hbWUoKSk7XG4gIH1cbn1cbiJdfQ==