@pega/angular-sdk-components 0.23.6 → 0.24.1

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 (45) hide show
  1. package/esm2022/lib/_bridge/angular-pconnect.mjs +14 -2
  2. package/esm2022/lib/_bridge/helpers/sdk-pega-component-map.mjs +3 -1
  3. package/esm2022/lib/_components/designSystemExtension/material-case-summary/material-case-summary.component.mjs +6 -3
  4. package/esm2022/lib/_components/designSystemExtension/operator/operator.component.mjs +9 -5
  5. package/esm2022/lib/_components/field/auto-complete/auto-complete.component.mjs +2 -2
  6. package/esm2022/lib/_components/field/check-box/check-box.component.mjs +107 -42
  7. package/esm2022/lib/_components/field/group/group.component.mjs +6 -3
  8. package/esm2022/lib/_components/field/multiselect/multiselect.component.mjs +311 -0
  9. package/esm2022/lib/_components/field/multiselect/utils.mjs +187 -0
  10. package/esm2022/lib/_components/field/rich-text/rich-text.component.mjs +3 -3
  11. package/esm2022/lib/_components/field/time/time.component.mjs +5 -3
  12. package/esm2022/lib/_components/field/url/url.component.mjs +5 -3
  13. package/esm2022/lib/_components/infra/Containers/view-container/view-container.component.mjs +6 -6
  14. package/esm2022/lib/_components/infra/multi-step/multi-step.component.mjs +3 -3
  15. package/esm2022/lib/_components/infra/navbar/navbar.component.mjs +6 -3
  16. package/esm2022/lib/_components/template/case-summary/case-summary.component.mjs +33 -4
  17. package/esm2022/lib/_components/template/field-value-list/field-value-list.component.mjs +8 -3
  18. package/esm2022/lib/_components/template/list-view/list-view.component.mjs +23 -25
  19. package/esm2022/lib/_components/template/simple-table-manual/helpers.mjs +2 -2
  20. package/esm2022/lib/_components/template/simple-table-manual/simple-table-manual.component.mjs +41 -12
  21. package/esm2022/lib/_components/template/wss-nav-bar/wss-nav-bar.component.mjs +5 -3
  22. package/esm2022/lib/_components/widget/attachment/attachment.component.mjs +7 -3
  23. package/esm2022/lib/_helpers/instructions-utils.mjs +36 -0
  24. package/esm2022/lib/_helpers/utils.mjs +2 -2
  25. package/fesm2022/pega-angular-sdk-components.mjs +778 -112
  26. package/fesm2022/pega-angular-sdk-components.mjs.map +1 -1
  27. package/lib/_bridge/angular-pconnect.d.ts +2 -0
  28. package/lib/_bridge/helpers/sdk-pega-component-map.d.ts +2 -0
  29. package/lib/_components/designSystemExtension/material-case-summary/material-case-summary.component.d.ts +2 -0
  30. package/lib/_components/designSystemExtension/operator/operator.component.d.ts +2 -1
  31. package/lib/_components/field/check-box/check-box.component.d.ts +18 -0
  32. package/lib/_components/field/multiselect/multiselect.component.d.ts +64 -0
  33. package/lib/_components/field/multiselect/utils.d.ts +8 -0
  34. package/lib/_components/field/time/time.component.d.ts +1 -0
  35. package/lib/_components/field/url/url.component.d.ts +1 -0
  36. package/lib/_components/infra/navbar/navbar.component.d.ts +2 -0
  37. package/lib/_components/template/case-summary/case-summary.component.d.ts +2 -0
  38. package/lib/_components/template/field-value-list/field-value-list.component.d.ts +2 -1
  39. package/lib/_components/template/list-view/list-view.component.d.ts +0 -2
  40. package/lib/_components/template/simple-table-manual/simple-table-manual.component.d.ts +2 -0
  41. package/lib/_components/template/wss-nav-bar/wss-nav-bar.component.d.ts +2 -0
  42. package/lib/_components/widget/attachment/attachment.component.d.ts +4 -0
  43. package/lib/_helpers/instructions-utils.d.ts +4 -0
  44. package/lib/doc/KeyReleaseUpdates.md +1 -1
  45. package/package.json +1 -1
@@ -93,6 +93,8 @@ export declare class AngularPConnectService {
93
93
  * actions: any actions that are defined for this object
94
94
  */
95
95
  registerAndSubscribeComponent(inComp: any, inCallback?: Function | null): AngularPConnectData;
96
+ addFormField(inComp: any): void;
97
+ removeFormField(inComp: any): void;
96
98
  /**
97
99
  * Returns **true** if the component's entry in ___componentPropsArr___ is
98
100
  * the same as the properties that are current associated with the component (___inComp___) passed in.
@@ -63,6 +63,7 @@ import { InlineDashboardPageComponent } from '../../_components/template/inline-
63
63
  import { ListPageComponent } from '../../_components/template/list-page/list-page.component';
64
64
  import { ListViewComponent } from '../../_components/template/list-view/list-view.component';
65
65
  import { MultiReferenceReadonlyComponent } from '../../_components/template/multi-reference-readonly/multi-reference-readonly.component';
66
+ import { MultiselectComponent } from '../../_components/field/multiselect/multiselect.component';
66
67
  import { NarrowWideFormComponent } from '../../_components/template/narrow-wide-form/narrow-wide-form.component';
67
68
  import { OneColumnComponent } from '../../_components/template/one-column/one-column.component';
68
69
  import { OneColumnPageComponent } from '../../_components/template/one-column-page/one-column-page.component';
@@ -162,6 +163,7 @@ declare const pegaSdkComponentMap: {
162
163
  MaterialUtility: typeof MaterialUtilityComponent;
163
164
  ModalViewContainer: typeof ModalViewContainerComponent;
164
165
  MultiReferenceReadOnly: typeof MultiReferenceReadonlyComponent;
166
+ Multiselect: typeof MultiselectComponent;
165
167
  MultiStep: typeof MultiStepComponent;
166
168
  NarrowWideDetails: typeof DetailsNarrowWideComponent;
167
169
  NarrowWideForm: typeof NarrowWideFormComponent;
@@ -9,6 +9,8 @@ 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;
13
+ localeCategory: string;
12
14
  ngOnInit(): void;
13
15
  ngOnChanges(): void;
14
16
  updateLabelAndDate(arData: any[]): void;
@@ -8,6 +8,7 @@ export declare class OperatorComponent implements OnInit, OnChanges, OnDestroy {
8
8
  private cdRef;
9
9
  private utils;
10
10
  pConn$: typeof PConnect;
11
+ displayLabel: any;
11
12
  fields$: any[];
12
13
  bShowPopover$: boolean;
13
14
  date$: string;
@@ -21,5 +22,5 @@ export declare class OperatorComponent implements OnInit, OnChanges, OnDestroy {
21
22
  updateSelf(): void;
22
23
  showOperator(): void;
23
24
  static ɵfac: i0.ɵɵFactoryDeclaration<OperatorComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<OperatorComponent, "app-operator", never, { "pConn$": { "alias": "pConn$"; "required": false; }; }, {}, never, never, true, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<OperatorComponent, "app-operator", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "displayLabel": { "alias": "displayLabel"; "required": false; }; }, {}, never, never, true, never>;
25
26
  }
@@ -10,6 +10,13 @@ interface CheckboxProps extends Omit<PConnFieldProps, 'value'> {
10
10
  caption?: string;
11
11
  trueLabel?: string;
12
12
  falseLabel?: string;
13
+ selectionMode?: string;
14
+ datasource?: any;
15
+ selectionKey?: string;
16
+ selectionList?: any;
17
+ primaryField: string;
18
+ readonlyContextList: any;
19
+ referenceList: string;
13
20
  }
14
21
  export declare class CheckBoxComponent implements OnInit, OnDestroy {
15
22
  private angularPConnect;
@@ -36,6 +43,16 @@ export declare class CheckBoxComponent implements OnInit, OnDestroy {
36
43
  helperText: string;
37
44
  trueLabel$?: string;
38
45
  falseLabel$?: string;
46
+ selectionMode?: string;
47
+ datasource?: any;
48
+ selectionKey?: string;
49
+ selectionList?: any;
50
+ primaryField: string;
51
+ selectedvalues: any;
52
+ referenceList: string;
53
+ listOfCheckboxes: any[];
54
+ actionsApi: any;
55
+ propName: any;
39
56
  fieldControl: FormControl<string | null>;
40
57
  constructor(angularPConnect: AngularPConnectService, cdRef: ChangeDetectorRef, utils: Utils);
41
58
  ngOnInit(): void;
@@ -45,6 +62,7 @@ export declare class CheckBoxComponent implements OnInit, OnDestroy {
45
62
  updateSelf(): void;
46
63
  fieldOnChange(event: any): void;
47
64
  fieldOnBlur(event: any): void;
65
+ handleChangeMultiMode(event: any, element: any): void;
48
66
  getErrorMessage(): string;
49
67
  static ɵfac: i0.ɵɵFactoryDeclaration<CheckBoxComponent, never>;
50
68
  static ɵcmp: i0.ɵɵComponentDeclaration<CheckBoxComponent, "app-check-box", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; }, {}, never, never, true, never>;
@@ -0,0 +1,64 @@
1
+ /// <reference types="pcore-pconnect-typedefs" />
2
+ import { OnDestroy, OnInit } from '@angular/core';
3
+ import { FormControl, FormGroup } from '@angular/forms';
4
+ import { MatAutocompleteSelectedEvent, MatAutocompleteTrigger } from '@angular/material/autocomplete';
5
+ import { AngularPConnectData, AngularPConnectService } from '../../../_bridge/angular-pconnect';
6
+ import { Utils } from '../../../_helpers/utils';
7
+ import * as i0 from "@angular/core";
8
+ export declare class MultiselectComponent implements OnInit, OnDestroy {
9
+ private angularPConnect;
10
+ private utils;
11
+ pConn$: typeof PConnect;
12
+ formGroup$: FormGroup;
13
+ angularPConnectData: AngularPConnectData;
14
+ label$: string;
15
+ value$: string;
16
+ bRequired$: boolean;
17
+ bDisabled$: boolean;
18
+ bVisible$: boolean;
19
+ controlName$: string;
20
+ bHasForm$: boolean;
21
+ listType: string;
22
+ placeholder: string;
23
+ fieldControl: FormControl<string | null>;
24
+ parameters: {};
25
+ hideLabel: boolean;
26
+ configProps$: any;
27
+ referenceList: any;
28
+ selectionKey: string;
29
+ primaryField: string;
30
+ initialCaseClass: any;
31
+ showSecondaryInSearchOnly: boolean;
32
+ isGroupData: boolean;
33
+ referenceType: any;
34
+ secondaryFields: any;
35
+ groupDataSource: never[];
36
+ matchPosition: string;
37
+ maxResultsDisplay: any;
38
+ groupColumnsConfig: {}[];
39
+ selectionList: any;
40
+ listActions: any;
41
+ selectedItems: any[];
42
+ itemsTreeBaseData: never[];
43
+ displayFieldMeta: any;
44
+ dataApiObj: any;
45
+ itemsTree: any[];
46
+ trigger: any;
47
+ constructor(angularPConnect: AngularPConnectService, utils: Utils);
48
+ ngOnInit(): void;
49
+ ngOnDestroy(): void;
50
+ onStateChange(): void;
51
+ checkAndUpdate(): void;
52
+ updateSelf(): void;
53
+ setPropertyValuesFromProps(): void;
54
+ getCaseListBasedOnParams(searchText: any, group: any, selectedRows: any, currentItemsTree: any, isTriggeredFromSearch?: boolean): void;
55
+ fieldOnChange(event: Event): void;
56
+ optionChanged(event: MatAutocompleteSelectedEvent): void;
57
+ optionClicked: (event: Event, data: any, trigger?: MatAutocompleteTrigger) => void;
58
+ toggleSelection: (data: any, trigger?: MatAutocompleteTrigger) => void;
59
+ removeChip: (data: any) => void;
60
+ setSelectedItemsForReferenceList(data: any): void;
61
+ getErrorMessage(): string;
62
+ static ɵfac: i0.ɵɵFactoryDeclaration<MultiselectComponent, never>;
63
+ static ɵcmp: i0.ɵɵComponentDeclaration<MultiselectComponent, "app-multiselect", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; }, {}, never, never, true, never>;
64
+ }
@@ -0,0 +1,8 @@
1
+ export declare function setVisibilityForList(c11nEnv: any, visibility: any): void;
2
+ declare function preProcessColumns(columns: any): any;
3
+ declare function getDisplayFieldsMetaData(columns: any): any;
4
+ declare function doSearch(searchText: any, clickedGroup: any, initialCaseClass: any, displayFieldMeta: any, dataApiObj: any, // deep clone of the dataApiObj
5
+ itemsTree: any, isGroupData: any, showSecondaryInSearchOnly: any, selected: any): Promise<any>;
6
+ declare function setValuesToPropertyList(searchText: any, assocProp: any, items: any, columns: any, actions: any, updatePropertyInRedux?: boolean): any;
7
+ declare function getGroupDataForItemsTree(groupDataSource: any, groupsDisplayFieldMeta: any, showSecondaryInSearchOnly: any): any;
8
+ export { preProcessColumns, getDisplayFieldsMetaData, doSearch, setValuesToPropertyList, getGroupDataForItemsTree };
@@ -23,6 +23,7 @@ export declare class TimeComponent implements OnInit, OnDestroy {
23
23
  bVisible$: boolean;
24
24
  displayMode$?: string;
25
25
  controlName$: string;
26
+ testId: string;
26
27
  bHasForm$: boolean;
27
28
  componentReference: string;
28
29
  helperText: string;
@@ -23,6 +23,7 @@ export declare class UrlComponent implements OnInit, OnDestroy {
23
23
  bVisible$: boolean;
24
24
  displayMode$?: string;
25
25
  controlName$: string;
26
+ testId: string;
26
27
  bHasForm$: boolean;
27
28
  componentReference: string;
28
29
  helperText: string;
@@ -34,6 +34,8 @@ export declare class NavbarComponent implements OnInit, OnDestroy {
34
34
  navIcon$: string;
35
35
  localizedVal: any;
36
36
  localeCategory: string;
37
+ localeUtils: import("@pega/pcore-pconnect-typedefs/locale/locale-utils").LocaleUtils;
38
+ localeReference: any;
37
39
  constructor(angularPConnect: AngularPConnectService, chRef: ChangeDetectorRef, psService: ProgressSpinnerService, ngZone: NgZone, utils: Utils);
38
40
  ngOnInit(): void;
39
41
  ngOnDestroy(): void;
@@ -28,6 +28,8 @@ export declare class CaseSummaryComponent implements OnInit, OnDestroy, OnChange
28
28
  updateSelf(): void;
29
29
  ngOnChanges(): void;
30
30
  generatePrimaryAndSecondaryFields(): void;
31
+ prepareComponentInCaseSummary(pConnectMeta: any, getPConnect: any): any;
32
+ prepareCaseSummaryData(summaryFieldChildren: any): any;
31
33
  static ɵfac: i0.ɵɵFactoryDeclaration<CaseSummaryComponent, never>;
32
34
  static ɵcmp: i0.ɵɵComponentDeclaration<CaseSummaryComponent, "app-case-summary", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; }, {}, never, never, true, never>;
33
35
  }
@@ -3,6 +3,7 @@ export declare class FieldValueListComponent {
3
3
  label$: any;
4
4
  value$: any;
5
5
  displayMode$: any;
6
+ isHtml$: boolean;
6
7
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldValueListComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<FieldValueListComponent, "app-field-value-list", never, { "label$": { "alias": "label$"; "required": false; }; "value$": { "alias": "value$"; "required": false; }; "displayMode$": { "alias": "displayMode$"; "required": false; }; }, {}, never, never, true, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<FieldValueListComponent, "app-field-value-list", never, { "label$": { "alias": "label$"; "required": false; }; "value$": { "alias": "value$"; "required": false; }; "displayMode$": { "alias": "displayMode$"; "required": false; }; "isHtml$": { "alias": "isHtml$"; "required": false; }; }, {}, never, never, true, never>;
8
9
  }
@@ -108,9 +108,7 @@ export declare class ListViewComponent implements OnInit, OnDestroy {
108
108
  _getGroupName(fieldName: any): any;
109
109
  _showButton(name: any, row: any): boolean;
110
110
  _listViewClick(column: any, row: any): void;
111
- compare(a: number | string, b: number | string, isAsc: boolean): number;
112
111
  _headerSortClick(event: any, columnData: any): void;
113
- clearOutArrows(event: any, columnData: any): void;
114
112
  sortCompare(a: any, b: any): number;
115
113
  compareByColumnPxRefObjectInsName(aValue: any, bValue: any): number | undefined;
116
114
  updateFilterDisplay(type: any): void;
@@ -108,11 +108,13 @@ export declare class SimpleTableManualComponent implements OnInit, OnDestroy {
108
108
  bUseSeparateViewForEdit: any;
109
109
  editView: any;
110
110
  settingsSvgIcon$: string;
111
+ isInitialized: boolean;
111
112
  constructor(angularPConnect: AngularPConnectService, utils: Utils, dataPageService: DatapageService);
112
113
  ngOnInit(): void;
113
114
  ngOnDestroy(): void;
114
115
  checkAndUpdate(): void;
115
116
  updateSelf(): void;
117
+ initializeDefaultPageInstructions(): void;
116
118
  getResultsText(): string;
117
119
  sortCompare(a: any, b: any): number;
118
120
  compareByColumnPxRefObjectInsName(aValue: any, bValue: any): number | undefined;
@@ -33,6 +33,8 @@ 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;
37
+ localeCategory: string;
36
38
  constructor(angularPConnect: AngularPConnectService, cdRef: ChangeDetectorRef, psService: ProgressSpinnerService, ngZone: NgZone, utils: Utils);
37
39
  ngOnInit(): void;
38
40
  ngOnDestroy(): void;
@@ -36,6 +36,10 @@ export declare class AttachmentComponent implements OnInit, OnDestroy {
36
36
  validateMessage: string | undefined;
37
37
  valueRef: string;
38
38
  imagePath$: string;
39
+ localizedVal: (localeKey: string, localePath?: string | undefined, localeRuleKey?: string | undefined) => string;
40
+ localeCategory: string;
41
+ uploadMultipleFilesLabel: string;
42
+ uploadSingleFileLabel: string;
39
43
  constructor(angularPConnect: AngularPConnectService, utils: Utils, ngZone: NgZone);
40
44
  ngOnInit(): void;
41
45
  checkAndUpdate(): void;
@@ -0,0 +1,4 @@
1
+ declare function updateNewInstructions(c11nEnv: any, selectionList: any): void;
2
+ declare function insertInstruction(c11nEnv: any, selectionList: any, selectionKey: any, primaryField: any, item: any): void;
3
+ declare function deleteInstruction(c11nEnv: any, selectionList: any, selectionKey: any, item: any): void;
4
+ export { updateNewInstructions, insertInstruction, deleteInstruction };
@@ -1,4 +1,4 @@
1
- ### Angular SDK - Release Announcement - v23.1.10 (15 March 2024)
1
+ ### Angular SDK - Release Announcement - v23.1.10 (20 March 2024)
2
2
 
3
3
  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).
4
4
  <br>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/angular-sdk-components",
3
- "version": "0.23.6",
3
+ "version": "0.24.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.2.12",
6
6
  "@angular/core": "^16.2.12"