@pega/angular-sdk-components 0.23.11 → 0.23.13

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.
@@ -2,6 +2,7 @@
2
2
  import { OnInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
3
3
  import { FormControl, FormGroup } from '@angular/forms';
4
4
  import { AngularPConnectData, AngularPConnectService } from '../../../_bridge/angular-pconnect';
5
+ import { DatapageService } from '../../../_services/datapage.service';
5
6
  import { Utils } from '../../../_helpers/utils';
6
7
  import { PConnFieldProps } from '../../../_types/PConnProps.interface';
7
8
  import * as i0 from "@angular/core";
@@ -13,11 +14,17 @@ interface DropdownProps extends PConnFieldProps {
13
14
  datasource?: any[];
14
15
  onRecordChange?: any;
15
16
  fieldMetadata?: any;
17
+ listType?: string;
18
+ columns?: any[];
19
+ deferDatasource?: boolean;
20
+ datasourceMetadata?: any;
21
+ parameters?: any;
16
22
  }
17
23
  export declare class DropdownComponent implements OnInit, OnDestroy {
18
24
  private angularPConnect;
19
25
  private cdRef;
20
26
  private utils;
27
+ private dataPageService;
21
28
  pConn$: typeof PConnect;
22
29
  formGroup$: FormGroup;
23
30
  angularPConnectData: AngularPConnectData;
@@ -36,6 +43,7 @@ export declare class DropdownComponent implements OnInit, OnDestroy {
36
43
  testId: string;
37
44
  helperText: string;
38
45
  hideLabel: any;
46
+ theDatasource: any[] | null;
39
47
  fieldControl: FormControl<string | null>;
40
48
  fieldMetadata: any[];
41
49
  localeContext: string;
@@ -43,12 +51,14 @@ export declare class DropdownComponent implements OnInit, OnDestroy {
43
51
  localeName: string;
44
52
  localePath: string;
45
53
  localizedValue: string;
46
- constructor(angularPConnect: AngularPConnectService, cdRef: ChangeDetectorRef, utils: Utils);
54
+ constructor(angularPConnect: AngularPConnectService, cdRef: ChangeDetectorRef, utils: Utils, dataPageService: DatapageService);
47
55
  ngOnInit(): void;
48
56
  ngOnDestroy(): void;
49
57
  onStateChange(): void;
50
58
  checkAndUpdate(): void;
51
59
  updateSelf(): void;
60
+ getDatapageData(): void;
61
+ getData(datasource: any, parameters: any, columns: any, context: any): void;
52
62
  isSelected(buttonValue: string): boolean;
53
63
  fieldOnChange(event: any): void;
54
64
  getLocalizedOptionValue(opt: IOption): string;
@@ -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
  }
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/angular-sdk-components",
3
- "version": "0.23.11",
3
+ "version": "0.23.13",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.2.12",
6
6
  "@angular/core": "^16.2.12"
package/public-api.d.ts CHANGED
@@ -110,6 +110,7 @@ export * from './lib/_directives/thousand-seperator.directive';
110
110
  export * from './lib/_services/server-config.service';
111
111
  export * from './lib/_services/case.service';
112
112
  export * from './lib/_services/datapage.service';
113
+ export * from './lib/_services/idle-detection.service';
113
114
  export * from './lib/_services/endpoints';
114
115
  export * from './lib/_helpers/case-utils';
115
116
  export * from './lib/_helpers/currency-utils';