@pega/angular-sdk-components 0.23.7 → 0.23.9
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.
- package/esm2022/lib/_bridge/helpers/sdk-pega-component-map.mjs +3 -1
- package/esm2022/lib/_components/field/check-box/check-box.component.mjs +107 -42
- package/esm2022/lib/_components/field/multiselect/multiselect.component.mjs +311 -0
- package/esm2022/lib/_components/field/multiselect/utils.mjs +187 -0
- package/esm2022/lib/_components/field/user-reference/user-reference.component.mjs +5 -4
- package/esm2022/lib/_components/infra/Containers/base-components/flow-container-base.component.mjs +18 -0
- package/esm2022/lib/_components/infra/Containers/base-components/helper.mjs +71 -0
- package/esm2022/lib/_components/infra/Containers/flow-container/flow-container.component.mjs +22 -54
- package/esm2022/lib/_components/infra/Containers/flow-container/helpers.mjs +2 -2
- package/esm2022/lib/_components/infra/Containers/modal-view-container/modal-view-container.component.mjs +37 -8
- package/esm2022/lib/_components/infra/assignment/assignment.component.mjs +40 -21
- package/esm2022/lib/_components/infra/view/view.component.mjs +2 -2
- package/esm2022/lib/_components/template/simple-table-manual/simple-table-manual.component.mjs +2 -4
- package/esm2022/lib/_components/widget/todo/todo.component.mjs +7 -4
- package/esm2022/lib/_directives/thousand-seperator.directive.mjs +2 -5
- package/esm2022/lib/_helpers/instructions-utils.mjs +36 -0
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/pega-angular-sdk-components.mjs +832 -161
- package/fesm2022/pega-angular-sdk-components.mjs.map +1 -1
- package/lib/_bridge/helpers/sdk-pega-component-map.d.ts +2 -0
- package/lib/_components/field/check-box/check-box.component.d.ts +18 -0
- package/lib/_components/field/multiselect/multiselect.component.d.ts +64 -0
- package/lib/_components/field/multiselect/utils.d.ts +8 -0
- package/lib/_components/field/user-reference/user-reference.component.d.ts +1 -0
- package/lib/_components/infra/Containers/base-components/flow-container-base.component.d.ts +8 -0
- package/lib/_components/infra/Containers/base-components/helper.d.ts +1 -0
- package/lib/_components/infra/Containers/flow-container/flow-container.component.d.ts +5 -7
- package/lib/_components/infra/Containers/flow-container/helpers.d.ts +1 -0
- package/lib/_components/infra/Containers/modal-view-container/modal-view-container.component.d.ts +2 -1
- package/lib/_components/infra/assignment/assignment.component.d.ts +1 -1
- package/lib/_components/widget/todo/todo.component.d.ts +1 -0
- package/lib/_helpers/instructions-utils.d.ts +4 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -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;
|
|
@@ -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 UserReferenceComponent implements OnInit, OnDestroy {
|
|
|
23
23
|
testId: string;
|
|
24
24
|
helperText: string;
|
|
25
25
|
placeholder: string;
|
|
26
|
+
displayMode$?: string;
|
|
26
27
|
fieldControl: FormControl<string | null>;
|
|
27
28
|
constructor(angularPConnect: AngularPConnectService, utils: Utils);
|
|
28
29
|
ngOnInit(): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { AngularPConnectData } from '../../../../_bridge/angular-pconnect';
|
|
3
|
+
export declare class FlowContainerBaseComponent {
|
|
4
|
+
protected angularPConnectData: AngularPConnectData;
|
|
5
|
+
protected angularPConnect: any;
|
|
6
|
+
constructor(injector: Injector);
|
|
7
|
+
getPConnectOfActiveContainerItem(parentPConnect: any): import("@pega/pcore-pconnect-typedefs/interpreter/c11n-env").default | null;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getPConnectOfActiveContainerItem: (containerInfo: any, options: any) => import("@pega/pcore-pconnect-typedefs/interpreter/c11n-env").default | null;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="pcore-pconnect-typedefs" />
|
|
2
|
-
import { OnInit, ChangeDetectorRef, NgZone, OnDestroy } from '@angular/core';
|
|
2
|
+
import { OnInit, ChangeDetectorRef, NgZone, OnDestroy, Injector } from '@angular/core';
|
|
3
3
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
4
4
|
import { publicConstants } from '@pega/pcore-pconnect-typedefs/constants';
|
|
5
|
-
import { AngularPConnectData, AngularPConnectService } from '../../../../_bridge/angular-pconnect';
|
|
6
5
|
import { ProgressSpinnerService } from '../../../../_messages/progress-spinner.service';
|
|
7
6
|
import { Utils } from '../../../../_helpers/utils';
|
|
7
|
+
import { FlowContainerBaseComponent } from '../base-components/flow-container-base.component';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
10
|
* WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with
|
|
@@ -17,15 +17,13 @@ interface FlowContainerProps {
|
|
|
17
17
|
routingInfo?: any;
|
|
18
18
|
pageMessages: any[];
|
|
19
19
|
}
|
|
20
|
-
export declare class FlowContainerComponent implements OnInit, OnDestroy {
|
|
21
|
-
private angularPConnect;
|
|
20
|
+
export declare class FlowContainerComponent extends FlowContainerBaseComponent implements OnInit, OnDestroy {
|
|
22
21
|
private cdRef;
|
|
23
22
|
private psService;
|
|
24
23
|
private fb;
|
|
25
24
|
private ngZone;
|
|
26
25
|
private utils;
|
|
27
26
|
pConn$: typeof PConnect;
|
|
28
|
-
angularPConnectData: AngularPConnectData;
|
|
29
27
|
pCoreConstants: typeof publicConstants;
|
|
30
28
|
configProps$: FlowContainerProps;
|
|
31
29
|
formGroup$: FormGroup;
|
|
@@ -53,7 +51,8 @@ export declare class FlowContainerComponent implements OnInit, OnDestroy {
|
|
|
53
51
|
localeCategory: string;
|
|
54
52
|
localeReference: any;
|
|
55
53
|
banners: any[];
|
|
56
|
-
|
|
54
|
+
pConnectOfActiveContainerItem: any;
|
|
55
|
+
constructor(injector: Injector, cdRef: ChangeDetectorRef, psService: ProgressSpinnerService, fb: FormBuilder, ngZone: NgZone, utils: Utils);
|
|
57
56
|
ngOnInit(): void;
|
|
58
57
|
ngOnDestroy(): void;
|
|
59
58
|
handleCancel(): void;
|
|
@@ -64,7 +63,6 @@ export declare class FlowContainerComponent implements OnInit, OnDestroy {
|
|
|
64
63
|
getTodoVisibilty(): boolean;
|
|
65
64
|
initContainer(): void;
|
|
66
65
|
initComponent(bLoadChildren: boolean): void;
|
|
67
|
-
hasAssignments(): boolean;
|
|
68
66
|
isCaseWideLocalAction(): boolean;
|
|
69
67
|
hasChildCaseAssignments(): boolean | "";
|
|
70
68
|
getActiveViewLabel(): string;
|
package/lib/_components/infra/Containers/modal-view-container/modal-view-container.component.d.ts
CHANGED
|
@@ -48,9 +48,10 @@ export declare class ModalViewContainerComponent implements OnInit, OnDestroy {
|
|
|
48
48
|
updateSelf(): void;
|
|
49
49
|
createView(routingInfo: any, currentItem: any, latestItem: any, key: any): void;
|
|
50
50
|
hideModal(): void;
|
|
51
|
-
getConfigObject(item: any, pConnect: any): {
|
|
51
|
+
getConfigObject(item: any, pConnect: any, isReverseCoexistence?: boolean): {
|
|
52
52
|
getPConnect: () => import("@pega/pcore-pconnect-typedefs/interpreter/c11n-env").default;
|
|
53
53
|
} | null;
|
|
54
|
+
checkIfRefComponent(thePConn: any): boolean;
|
|
54
55
|
onAlertState(bData: boolean): void;
|
|
55
56
|
showAlert(payload: any): void;
|
|
56
57
|
hasContainerItems(routingInfo: any): any;
|
|
@@ -27,7 +27,6 @@ export declare class AssignmentComponent implements OnInit, OnDestroy, OnChanges
|
|
|
27
27
|
configProps$: AssignmentProps;
|
|
28
28
|
newPConn$: any;
|
|
29
29
|
containerName$: string;
|
|
30
|
-
bIsRefComponent: boolean;
|
|
31
30
|
bInitialized: boolean;
|
|
32
31
|
templateName$: string;
|
|
33
32
|
arMainButtons$: any[];
|
|
@@ -66,6 +65,7 @@ export declare class AssignmentComponent implements OnInit, OnDestroy, OnChanges
|
|
|
66
65
|
formValid(): boolean;
|
|
67
66
|
touchAll(): void;
|
|
68
67
|
topViewRefresh(): void;
|
|
68
|
+
registerForRefresh(): void;
|
|
69
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<AssignmentComponent, never>;
|
|
70
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>;
|
|
71
71
|
}
|
|
@@ -52,6 +52,7 @@ export declare class TodoComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
52
52
|
getAssignmentId(assignment: any): any;
|
|
53
53
|
getPriority(assignment: any): any;
|
|
54
54
|
getAssignmentName(assignment: any): any;
|
|
55
|
+
get canPerform(): boolean;
|
|
55
56
|
initAssignments(): any[];
|
|
56
57
|
getCaseInfoAssignment(assignmentsSource: any[], caseInfoID: string): any[];
|
|
57
58
|
_showMore(): 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 };
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export * from './lib/_components/infra/region/region.component';
|
|
|
42
42
|
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
|
+
export * from './lib/_components/infra/Containers/base-components/flow-container-base.component';
|
|
45
46
|
export * from './lib/_components/template/app-shell/app-shell.component';
|
|
46
47
|
export * from './lib/_components/template/case-summary/case-summary.component';
|
|
47
48
|
export * from './lib/_components/template/case-view/case-view.component';
|
|
@@ -124,6 +125,7 @@ export * from './lib/_helpers/template-utils';
|
|
|
124
125
|
export * from './lib/_helpers/utils';
|
|
125
126
|
export * from './lib/_helpers/versionHelpers';
|
|
126
127
|
export * from './lib/_helpers/filter-utils';
|
|
128
|
+
export * from './lib/_helpers/instructions-utils';
|
|
127
129
|
export * from './lib/_messages/error-messages.service';
|
|
128
130
|
export * from './lib/_messages/get-login-status.service';
|
|
129
131
|
export * from './lib/_messages/oauth-response.service';
|