@pega/angular-sdk-components 0.23.8 → 0.23.10
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/angular-pconnect.mjs +14 -2
- package/esm2022/lib/_components/field/auto-complete/auto-complete.component.mjs +4 -2
- package/esm2022/lib/_components/field/check-box/check-box.component.mjs +5 -4
- package/esm2022/lib/_components/field/currency/currency.component.mjs +5 -2
- package/esm2022/lib/_components/field/date/date.component.mjs +5 -2
- package/esm2022/lib/_components/field/date-time/date-time.component.mjs +4 -5
- package/esm2022/lib/_components/field/dropdown/dropdown.component.mjs +1 -5
- package/esm2022/lib/_components/field/email/email.component.mjs +5 -3
- package/esm2022/lib/_components/field/integer/integer.component.mjs +5 -3
- package/esm2022/lib/_components/field/percentage/percentage.component.mjs +5 -3
- package/esm2022/lib/_components/field/phone/phone.component.mjs +4 -3
- package/esm2022/lib/_components/field/radio-buttons/radio-buttons.component.mjs +5 -6
- package/esm2022/lib/_components/field/text-area/text-area.component.mjs +5 -7
- package/esm2022/lib/_components/field/text-input/text-input.component.mjs +5 -3
- package/esm2022/lib/_components/field/time/time.component.mjs +5 -4
- package/esm2022/lib/_components/field/url/url.component.mjs +5 -3
- package/esm2022/lib/_components/field/user-reference/user-reference.component.mjs +5 -6
- 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 +20 -20
- package/esm2022/lib/_components/infra/Containers/modal-view-container/modal-view-container.component.mjs +38 -15
- package/esm2022/lib/_components/infra/assignment/assignment.component.mjs +40 -21
- package/esm2022/lib/_components/infra/reference/reference.component.mjs +14 -11
- package/esm2022/lib/_components/infra/root-container/root-container.component.mjs +3 -13
- package/esm2022/lib/_components/infra/view/view.component.mjs +2 -2
- package/esm2022/lib/_components/template/default-form/default-form.component.mjs +39 -8
- package/esm2022/lib/_components/template/field-group-template/field-group-template.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 +2 -2
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/pega-angular-sdk-components.mjs +322 -160
- package/fesm2022/pega-angular-sdk-components.mjs.map +1 -1
- package/lib/_bridge/angular-pconnect.d.ts +2 -0
- package/lib/_components/field/dropdown/dropdown.component.d.ts +0 -1
- package/lib/_components/field/radio-buttons/radio-buttons.component.d.ts +0 -1
- package/lib/_components/field/text-area/text-area.component.d.ts +0 -1
- 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 -6
- package/lib/_components/infra/Containers/modal-view-container/modal-view-container.component.d.ts +3 -3
- package/lib/_components/infra/assignment/assignment.component.d.ts +1 -1
- package/lib/_components/infra/root-container/root-container.component.d.ts +0 -1
- package/lib/_components/template/default-form/default-form.component.d.ts +9 -3
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -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.
|
|
@@ -51,7 +51,6 @@ export declare class DropdownComponent implements OnInit, OnDestroy {
|
|
|
51
51
|
updateSelf(): void;
|
|
52
52
|
isSelected(buttonValue: string): boolean;
|
|
53
53
|
fieldOnChange(event: any): void;
|
|
54
|
-
fieldOnBlur(event: any): void;
|
|
55
54
|
getLocalizedOptionValue(opt: IOption): string;
|
|
56
55
|
getErrorMessage(): string;
|
|
57
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponent, never>;
|
|
@@ -51,7 +51,6 @@ export declare class RadioButtonsComponent implements OnInit, OnDestroy {
|
|
|
51
51
|
updateSelf(): void;
|
|
52
52
|
isSelected(buttonValue: string): boolean;
|
|
53
53
|
fieldOnChange(event: any): void;
|
|
54
|
-
fieldOnBlur(event: any): void;
|
|
55
54
|
getLocalizedOptionValue(opt: IOption): string;
|
|
56
55
|
getErrorMessage(): string;
|
|
57
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonsComponent, never>;
|
|
@@ -37,7 +37,6 @@ export declare class TextAreaComponent implements OnInit, OnDestroy {
|
|
|
37
37
|
checkAndUpdate(): void;
|
|
38
38
|
updateSelf(): void;
|
|
39
39
|
fieldOnChange(event: any): void;
|
|
40
|
-
fieldOnBlur(event: any): void;
|
|
41
40
|
getErrorMessage(): string;
|
|
42
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextAreaComponent, never>;
|
|
43
42
|
static ɵcmp: i0.ɵɵComponentDeclaration<TextAreaComponent, "app-text-area", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -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;
|
package/lib/_components/infra/Containers/modal-view-container/modal-view-container.component.d.ts
CHANGED
|
@@ -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[];
|
|
@@ -48,9 +47,10 @@ export declare class ModalViewContainerComponent implements OnInit, OnDestroy {
|
|
|
48
47
|
updateSelf(): void;
|
|
49
48
|
createView(routingInfo: any, currentItem: any, latestItem: any, key: any): void;
|
|
50
49
|
hideModal(): void;
|
|
51
|
-
getConfigObject(item: any, pConnect: any): {
|
|
50
|
+
getConfigObject(item: any, pConnect: any, isReverseCoexistence?: boolean): {
|
|
52
51
|
getPConnect: () => import("@pega/pcore-pconnect-typedefs/interpreter/c11n-env").default;
|
|
53
52
|
} | null;
|
|
53
|
+
checkIfRefComponent(thePConn: any): boolean;
|
|
54
54
|
onAlertState(bData: boolean): void;
|
|
55
55
|
showAlert(payload: any): void;
|
|
56
56
|
hasContainerItems(routingInfo: any): any;
|
|
@@ -67,5 +67,5 @@ export declare class ModalViewContainerComponent implements OnInit, OnDestroy {
|
|
|
67
67
|
determineModalHeaderByAction(actionName: any, caseTypeName: any, ID: any, caseLocaleRef: any): any;
|
|
68
68
|
closeActionsDialog: () => void;
|
|
69
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModalViewContainerComponent, never>;
|
|
70
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ModalViewContainerComponent, "app-modal-view-container", never, { "pConn$": { "alias": "pConn$"; "required": false; };
|
|
70
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalViewContainerComponent, "app-modal-view-container", never, { "pConn$": { "alias": "pConn$"; "required": false; }; }, { "modalVisibleChange": "modalVisibleChange"; }, never, never, true, never>;
|
|
71
71
|
}
|
|
@@ -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
|
}
|
|
@@ -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;
|
|
@@ -1,12 +1,15 @@
|
|
|
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
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class DefaultFormComponent implements OnInit {
|
|
7
|
+
export declare class DefaultFormComponent implements OnInit, OnDestroy {
|
|
8
|
+
private angularPConnect;
|
|
7
9
|
private templateUtils;
|
|
8
10
|
pConn$: typeof PConnect;
|
|
9
11
|
formGroup$: FormGroup;
|
|
12
|
+
angularPConnectData: AngularPConnectData;
|
|
10
13
|
arChildren$: any[];
|
|
11
14
|
divClass$: string;
|
|
12
15
|
template: any;
|
|
@@ -14,8 +17,11 @@ export declare class DefaultFormComponent implements OnInit {
|
|
|
14
17
|
label: any;
|
|
15
18
|
instructions: string;
|
|
16
19
|
NO_HEADER_TEMPLATES: string[];
|
|
17
|
-
constructor(templateUtils: TemplateUtils);
|
|
20
|
+
constructor(angularPConnect: AngularPConnectService, templateUtils: TemplateUtils);
|
|
18
21
|
ngOnInit(): void;
|
|
22
|
+
ngOnDestroy(): void;
|
|
23
|
+
onStateChange(): void;
|
|
24
|
+
updateSelf(): void;
|
|
19
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultFormComponent, never>;
|
|
20
26
|
static ɵcmp: i0.ɵɵComponentDeclaration<DefaultFormComponent, "app-default-form", never, { "pConn$": { "alias": "pConn$"; "required": false; }; "formGroup$": { "alias": "formGroup$"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
27
|
}
|
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';
|