@pega/angular-sdk-components 0.24.2 → 0.24.3

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 (47) hide show
  1. package/esm2022/lib/_components/field/cancel-alert/cancel-alert.component.mjs +1 -3
  2. package/esm2022/lib/_components/field/dropdown/dropdown.component.mjs +3 -8
  3. package/esm2022/lib/_components/field/radio-buttons/radio-buttons.component.mjs +3 -8
  4. package/esm2022/lib/_components/field/scalar-list/scalar-list.component.mjs +3 -2
  5. package/esm2022/lib/_components/field/text-area/text-area.component.mjs +1 -3
  6. package/esm2022/lib/_components/infra/Containers/flow-container/flow-container.component.mjs +1 -13
  7. package/esm2022/lib/_components/infra/Containers/modal-view-container/modal-view-container.component.mjs +1 -2
  8. package/esm2022/lib/_components/infra/Containers/view-container/view-container.component.mjs +1 -2
  9. package/esm2022/lib/_components/infra/assignment/assignment.component.mjs +3 -9
  10. package/esm2022/lib/_components/infra/dashboard-filter/dashboard-filter.component.mjs +1 -2
  11. package/esm2022/lib/_components/infra/defer-load/defer-load.component.mjs +6 -9
  12. package/esm2022/lib/_components/infra/navbar/navbar.component.mjs +1 -2
  13. package/esm2022/lib/_components/template/case-view/case-view.component.mjs +3 -9
  14. package/esm2022/lib/_components/template/data-reference/data-reference.component.mjs +2 -4
  15. package/esm2022/lib/_components/template/dynamic-tabs/dynamic-tabs.component.mjs +1 -2
  16. package/esm2022/lib/_components/template/field-group-template/field-group-template.component.mjs +5 -15
  17. package/esm2022/lib/_components/template/list-view/list-view.component.mjs +12 -6
  18. package/esm2022/lib/_components/template/list-view/listViewHelpers.mjs +1 -2
  19. package/esm2022/lib/_components/template/repeating-structures/repeating-structures.component.mjs +1 -2
  20. package/esm2022/lib/_components/template/simple-table/simple-table.component.mjs +1 -3
  21. package/esm2022/lib/_components/template/simple-table-manual/simple-table-manual.component.mjs +6 -12
  22. package/esm2022/lib/_components/template/simple-table-select/simple-table-select.component.mjs +3 -5
  23. package/esm2022/lib/_components/widget/attachment/attachment.component.mjs +224 -421
  24. package/esm2022/lib/_components/widget/case-history/case-history.component.mjs +1 -2
  25. package/esm2022/lib/_components/widget/feed-container/feed-container.component.mjs +1 -5
  26. package/esm2022/lib/_components/widget/file-utility/file-utility.component.mjs +1 -5
  27. package/esm2022/lib/_components/widget/quick-create/quick-create.component.mjs +1 -1
  28. package/esm2022/lib/_components/widget/todo/todo.component.mjs +1 -1
  29. package/fesm2022/pega-angular-sdk-components.mjs +255 -528
  30. package/fesm2022/pega-angular-sdk-components.mjs.map +1 -1
  31. package/lib/_components/designSystemExtension/material-case-summary/material-case-summary.component.d.ts +1 -1
  32. package/lib/_components/field/list-view-action-buttons/list-view-action-buttons.component.d.ts +1 -1
  33. package/lib/_components/infra/Containers/flow-container/flow-container.component.d.ts +1 -1
  34. package/lib/_components/infra/Containers/modal-view-container/modal-view-container.component.d.ts +1 -1
  35. package/lib/_components/infra/action-buttons/action-buttons.component.d.ts +1 -1
  36. package/lib/_components/infra/error-boundary/error-boundary.component.d.ts +1 -1
  37. package/lib/_components/template/list-view/list-view.component.d.ts +8 -2
  38. package/lib/_components/template/simple-table-manual/helpers.d.ts +1 -1
  39. package/lib/_components/template/wss-nav-bar/wss-nav-bar.component.d.ts +1 -1
  40. package/lib/_components/widget/attachment/attachment.component.d.ts +29 -57
  41. package/lib/_components/widget/file-utility/file-utility.component.d.ts +2 -2
  42. package/lib/_components/widget/todo/todo.component.d.ts +3 -3
  43. package/lib/_helpers/common.d.ts +1 -1
  44. package/lib/_helpers/field-group-utils.d.ts +1 -1
  45. package/lib/_helpers/filter-utils.d.ts +1 -1
  46. package/lib/_helpers/formatters/common.d.ts +2 -2
  47. package/package.json +3 -3
@@ -9,7 +9,7 @@ export declare class MaterialCaseSummaryComponent implements OnInit, OnChanges {
9
9
  secondaryFields$: any[];
10
10
  primaryFieldsWithStatus$: any[];
11
11
  constructor(utils: Utils);
12
- localizedVal: (localeKey: string, localePath?: string | undefined, localeRuleKey?: string | undefined) => string;
12
+ localizedVal: (localeKey: any, localePath: any, localeRuleKey?: string | undefined) => any;
13
13
  localeCategory: string;
14
14
  ngOnInit(): void;
15
15
  ngOnChanges(): void;
@@ -5,7 +5,7 @@ export declare class ListViewActionButtonsComponent {
5
5
  pConn$: typeof PConnect;
6
6
  context$: string;
7
7
  closeActionsDialog: EventEmitter<any>;
8
- localizedVal: (localeKey: string, localePath?: string | undefined, localeRuleKey?: string | undefined) => string;
8
+ localizedVal: (localeKey: any, localePath: any, localeRuleKey?: string | undefined) => any;
9
9
  localeCategory: string;
10
10
  isDisabled: boolean;
11
11
  onCancel(): void;
@@ -66,7 +66,7 @@ export declare class FlowContainerComponent implements OnInit, OnDestroy {
66
66
  initComponent(bLoadChildren: boolean): void;
67
67
  hasAssignments(): boolean;
68
68
  isCaseWideLocalAction(): boolean;
69
- hasChildCaseAssignments(): boolean | "";
69
+ hasChildCaseAssignments(): any;
70
70
  getActiveViewLabel(): string;
71
71
  findCurrentIndicies(arStepperSteps: any[], arIndicies: number[], depth: number): number[];
72
72
  updateSelf(): void;
@@ -49,7 +49,7 @@ export declare class ModalViewContainerComponent implements OnInit, OnDestroy {
49
49
  createView(routingInfo: any, currentItem: any, latestItem: any, key: any): void;
50
50
  hideModal(): void;
51
51
  getConfigObject(item: any, pConnect: any): {
52
- getPConnect: () => import("@pega/pcore-pconnect-typedefs/interpreter/c11n-env").default;
52
+ getPConnect: () => import("@pega/pcore-pconnect-typedefs/interpreter/c11n-env").C11nEnv;
53
53
  } | null;
54
54
  onAlertState(bData: boolean): void;
55
55
  showAlert(payload: any): void;
@@ -4,7 +4,7 @@ export declare class ActionButtonsComponent {
4
4
  arMainButtons$: any[];
5
5
  arSecondaryButtons$: any[];
6
6
  actionButtonClick: EventEmitter<any>;
7
- localizedVal: (localeKey: string, localePath?: string | undefined, localeRuleKey?: string | undefined) => string;
7
+ localizedVal: (localeKey: any, localePath: any, localeRuleKey?: string | undefined) => any;
8
8
  localeCategory: string;
9
9
  buttonClick(sAction: any, sButtonType: any): void;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<ActionButtonsComponent, never>;
@@ -1,7 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class ErrorBoundaryComponent {
3
3
  message: string;
4
- localizedVal: (localeKey: string, localePath?: string | undefined, localeRuleKey?: string | undefined) => string;
4
+ localizedVal: any;
5
5
  localeCategory: string;
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<ErrorBoundaryComponent, never>;
7
7
  static ɵcmp: i0.ɵɵComponentDeclaration<ErrorBoundaryComponent, "app-error-boundary", never, { "message": { "alias": "message"; "required": false; }; }, {}, never, never, true, never>;
@@ -18,6 +18,8 @@ interface ListViewProps {
18
18
  presets?: any;
19
19
  reorderFields: string | boolean;
20
20
  grouping: string | boolean;
21
+ value: any;
22
+ readonlyContextList: any;
21
23
  }
22
24
  export declare class Group {
23
25
  level: number;
@@ -88,20 +90,24 @@ export declare class ListViewComponent implements OnInit, OnDestroy {
88
90
  paging: any;
89
91
  fieldDefs: any;
90
92
  xRayApis: import("@pega/pcore-pconnect-typedefs/debug/xray-runtime").default;
91
- xRayUid: string | null;
93
+ xRayUid: string;
94
+ checkBoxValue: string;
92
95
  constructor(psService: ProgressSpinnerService, utils: Utils);
93
96
  ngOnInit(): void;
94
97
  getFieldFromFilter(filter: any, dateRange?: boolean): any;
95
98
  processFilterChange(data: any): void;
96
99
  filterBasedOnDateRange(dashboardFilterPayload: any, filter: any, relationalOp: any, selectParam: any, index: any): any;
97
100
  processFilterClear(): void;
98
- getFieldsMetadata(refList: any): Promise<object>;
101
+ getFieldsMetadata(refList: any): Promise<{
102
+ data: any;
103
+ }>;
99
104
  getListData(): void;
100
105
  preparePayload(): void;
101
106
  ngOnDestroy(): void;
102
107
  drop(event: CdkDragDrop<string[]>): void;
103
108
  updateFields(arFields: any[], arColumns: any, fields: any): any[];
104
109
  applySearch(event: Event): void;
110
+ isChecked(rowIn: any): any;
105
111
  fieldOnChange(row: any): void;
106
112
  onCheckboxClick(row: any, event: any): void;
107
113
  _getIconStyle(level: any): string;
@@ -78,4 +78,4 @@ export declare const getAddRowCallback: (pConnect: any, index: any) => () => any
78
78
  * @param {string} referenceList - referenceList
79
79
  * @param {string} pageReference - pageReference
80
80
  */
81
- export declare const createPConnect: (contextName: any, referenceList: any, pageReference: any) => import("@pega/pcore-pconnect-typedefs/interpreter/c11n-env").default;
81
+ export declare const createPConnect: (contextName: any, referenceList: any, pageReference: any) => import("@pega/pcore-pconnect-typedefs/interpreter/c11n-env").C11nEnv;
@@ -33,7 +33,7 @@ export declare class WssNavBarComponent implements OnInit, OnDestroy {
33
33
  showPage: any;
34
34
  logout: any;
35
35
  navIcon$: string;
36
- localizedVal: (localeKey: string, localePath?: string | undefined, localeRuleKey?: string | undefined) => string;
36
+ localizedVal: (localeKey: any, localePath: any, localeRuleKey?: string | undefined) => any;
37
37
  localeCategory: string;
38
38
  constructor(angularPConnect: AngularPConnectService, cdRef: ChangeDetectorRef, psService: ProgressSpinnerService, ngZone: NgZone, utils: Utils);
39
39
  ngOnInit(): void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="pcore-pconnect-typedefs" />
2
- import { OnInit, NgZone, OnDestroy } from '@angular/core';
2
+ import { OnInit, NgZone, OnDestroy, ElementRef } from '@angular/core';
3
3
  import { FormGroup } from '@angular/forms';
4
4
  import { AngularPConnectData, AngularPConnectService } from '../../../_bridge/angular-pconnect';
5
5
  import { Utils } from '../../../_helpers/utils';
@@ -11,6 +11,7 @@ export declare class AttachmentComponent implements OnInit, OnDestroy {
11
11
  pConn$: typeof PConnect;
12
12
  formGroup$: FormGroup;
13
13
  angularPConnectData: AngularPConnectData;
14
+ fileInput: ElementRef;
14
15
  label$: string;
15
16
  value$: any;
16
17
  bRequired$: boolean;
@@ -18,16 +19,8 @@ export declare class AttachmentComponent implements OnInit, OnDestroy {
18
19
  bDisabled$: boolean;
19
20
  bVisible$: boolean;
20
21
  bLoading$: boolean;
21
- arFiles$: any[];
22
- arFileList$: any[];
23
- removeFileFromList$: any;
24
- arMenuList$: any[];
25
22
  bShowSelector$: boolean;
26
- bShowJustDelete$: boolean;
27
- att_valueRef: any;
28
23
  att_categoryName: string;
29
- att_id: string;
30
- myFiles: any;
31
24
  fileTemp: any;
32
25
  caseID: any;
33
26
  allowMultiple$: boolean;
@@ -36,60 +29,23 @@ export declare class AttachmentComponent implements OnInit, OnDestroy {
36
29
  validateMessage: string | undefined;
37
30
  valueRef: string;
38
31
  imagePath$: string;
39
- localizedVal: (localeKey: string, localePath?: string | undefined, localeRuleKey?: string | undefined) => string;
32
+ localizedVal: (localeKey: any, localePath: any, localeRuleKey?: string | undefined) => any;
40
33
  localeCategory: string;
41
- uploadMultipleFilesLabel: string;
42
- uploadSingleFileLabel: string;
34
+ uploadMultipleFilesLabel: any;
35
+ uploadSingleFileLabel: any;
36
+ filesWithError: any;
37
+ files: any;
38
+ categoryName: string;
39
+ displayMode: string | undefined;
40
+ srcImg: any;
41
+ deleteIcon: string;
42
+ tempFilesToBeUploaded: any[];
43
43
  constructor(angularPConnect: AngularPConnectService, utils: Utils, ngZone: NgZone);
44
44
  ngOnInit(): void;
45
+ getAttachments(): () => void;
45
46
  checkAndUpdate(): void;
46
- ngOnDestroy(): void;
47
47
  onStateChange(): void;
48
- updateAttachmentsInfo(): void;
49
- processFile(file: any, i: any): void;
50
48
  updateSelf(): void;
51
- updateAttachments(): void;
52
- updateAttachmentsFromServer(): void;
53
- resetAttachmentStoredState(): void;
54
- _downloadFileFromList(fileObj: any): void;
55
- fileDownload: (data: any, fileName: any, ext: any) => void;
56
- getAttachmentKey: (name?: string) => string;
57
- CheckForInvalidAttachment(): void;
58
- _removeFileFromList(item: any): void;
59
- getCurrentAttachmentsList(key: any, context: any): any;
60
- errorHandler(isFetchCanceled: any, file: any): (error: any) => never;
61
- uploadMyFiles(event: any): void;
62
- handleFileUploadSuccess(fileResponses: any): void;
63
- handleFileUploadFailure(): void;
64
- getNewListUtilityItemProps: ({ att, cancelFile, downloadFile, deleteFile, removeFile }: {
65
- att: any;
66
- cancelFile: any;
67
- downloadFile: any;
68
- deleteFile: any;
69
- removeFile: any;
70
- }) => {
71
- id: any;
72
- visual: {
73
- icon: any;
74
- progress: any;
75
- };
76
- primary: {
77
- type: any;
78
- name: any;
79
- icon: string;
80
- click: any;
81
- };
82
- secondary: {
83
- text: any;
84
- error: any;
85
- };
86
- actions: any;
87
- };
88
- onUploadProgress(): void;
89
- getFiles(arFiles: any[]): any[];
90
- setNewFiles(arFiles: any): any[];
91
- validateMaxSize(fileObj: any, maxSizeInMB: any): boolean;
92
- validateFileExtension: (fileObj: any, allowedExtensions: any) => any;
93
49
  buildFilePropsFromResponse(respObj: any): {
94
50
  props: {
95
51
  meta: string;
@@ -98,6 +54,22 @@ export declare class AttachmentComponent implements OnInit, OnDestroy {
98
54
  };
99
55
  responseProps: any;
100
56
  };
57
+ updateAttachments(): void;
58
+ resetAttachmentStoredState(): void;
59
+ downloadFile(fileObj: any): void;
60
+ fileDownload: (data: any, fileName: any, ext: any) => void;
61
+ getAttachmentKey: (name?: string) => string;
62
+ getCurrentAttachmentsList(key: any, context: any): any;
63
+ validateMaxSize(fileObj: any, maxSizeInMB: any): boolean;
64
+ validateFileExtension: (fileObj: any, allowedExtensions: any) => any;
65
+ updateAttachmentState(pConn: any, key: any, attachments: any): void;
66
+ deleteFile(file: any): void;
67
+ onFileAdded(event: any): void;
68
+ clearFieldErrorMessages(): void;
69
+ onUploadProgress(): void;
70
+ errorHandler(isFetchCanceled: any, attachedFile: any): (error: any) => never;
71
+ uploadFiles(): void;
72
+ ngOnDestroy(): void;
101
73
  static ɵfac: i0.ɵɵFactoryDeclaration<AttachmentComponent, never>;
102
74
  static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentComponent, "app-attachment", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; }, {}, never, never, true, never>;
103
75
  }
@@ -119,8 +119,8 @@ export declare class FileUtilityComponent implements OnInit, OnDestroy {
119
119
  _fieldOnChangeLink(event: any): void;
120
120
  _fieldOnChangeURL(event: any): void;
121
121
  updateSelf(): void;
122
- getCaseID(): string;
123
- fetchCaseAttachments(caseID: any): Promise<object>;
122
+ getCaseID(): any;
123
+ fetchCaseAttachments(caseID: any): any;
124
124
  handleAttachmentsResponse(resp: any): void;
125
125
  getUtilityItems(attachments: any): any;
126
126
  mapAttachmentToUtilityItem(att: any): {
@@ -36,10 +36,10 @@ export declare class TodoComponent implements OnInit, OnDestroy, OnChanges {
36
36
  assignmentsSource$: any;
37
37
  CONSTS: typeof publicConstants;
38
38
  bLogging: boolean;
39
- localizedVal: (localeKey: string, localePath?: string | undefined, localeRuleKey?: string | undefined) => string;
39
+ localizedVal: (localeKey: any, localePath: any, localeRuleKey?: string | undefined) => any;
40
40
  localeCategory: string;
41
- showlessLocalizedValue: string;
42
- showMoreLocalizedValue: string;
41
+ showlessLocalizedValue: any;
42
+ showMoreLocalizedValue: any;
43
43
  constructor(psService: ProgressSpinnerService, erService: ErrorMessagesService, ngZone: NgZone, utils: Utils);
44
44
  ngOnInit(): void;
45
45
  ngOnDestroy(): void;
@@ -1,3 +1,3 @@
1
1
  export declare function getLocale(locale?: string): string | undefined;
2
- export declare function getCurrentTimezone(timezone?: string): string;
2
+ export declare function getCurrentTimezone(timezone?: string): any;
3
3
  export declare function getSeconds(sTime: any): any;
@@ -12,5 +12,5 @@ export declare const getReferenceList: (pConn: any) => any;
12
12
  * @returns {*} - return the react element of the view
13
13
  */
14
14
  export declare const buildView: (pConn: any, index: any, viewConfigPath: any) => {
15
- getPConnect: () => import("@pega/pcore-pconnect-typedefs/interpreter/c11n-env").default;
15
+ getPConnect: () => import("@pega/pcore-pconnect-typedefs/interpreter/c11n-env").C11nEnv;
16
16
  };
@@ -26,7 +26,7 @@ export declare const createFilterComponent: (getPConnect: any, filterMeta: any,
26
26
  filterProp: string;
27
27
  metadata: any;
28
28
  c11nEnv: {
29
- getPConnect: () => import("@pega/pcore-pconnect-typedefs/interpreter/c11n-env").default;
29
+ getPConnect: () => import("@pega/pcore-pconnect-typedefs/interpreter/c11n-env").C11nEnv;
30
30
  };
31
31
  filterId: any;
32
32
  label?: undefined;
@@ -1,2 +1,2 @@
1
- export declare function getLocale(locale?: string): string | undefined;
2
- export declare function getCurrentTimezone(timezone?: string): string;
1
+ export declare function getLocale(locale?: string): string;
2
+ export declare function getCurrentTimezone(timezone?: string): any;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@pega/angular-sdk-components",
3
- "version": "0.24.2",
3
+ "version": "0.24.3",
4
4
  "peerDependencies": {
5
- "@angular/common": "^16.2.12",
6
- "@angular/core": "^16.2.12"
5
+ "@angular/common": "^17.3.12",
6
+ "@angular/core": "^17.3.12"
7
7
  },
8
8
  "dependencies": {
9
9
  "tslib": "^2.6.2"