bpm-core 0.0.18 → 0.0.20
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/app/app.component.mjs +22 -12
- package/esm2022/lib/components/app-component-sections/form-section/form-section.component.mjs +10 -8
- package/esm2022/lib/components/app-component-sections/main-request-details/main-request-details.component.mjs +5 -3
- package/esm2022/lib/components/app-component-sections/service-header/service-header.component.mjs +8 -5
- package/esm2022/lib/components/app-component-sections/workflow-section/workflow-section.component.mjs +4 -4
- package/esm2022/lib/i18n/en.mjs +2 -1
- package/esm2022/lib/interfaces/form.interface.mjs +1 -1
- package/esm2022/lib/services/core.service.ts.mjs +299 -168
- package/esm2022/lib/testComponent/config/segment-dynamic-loader.config.mjs +8 -0
- package/esm2022/lib/testComponent/general-approver-section/general-approver-section.component.mjs +52 -0
- package/esm2022/lib/testComponent/services/i18n.service.mjs +39 -0
- package/esm2022/lib/testComponent/services/segment-dynamic-loader.service.mjs +54 -0
- package/esm2022/lib/testComponent/services/state-machine.service.mjs +148 -0
- package/fesm2022/bpm-core.mjs +4779 -4353
- package/fesm2022/bpm-core.mjs.map +1 -1
- package/lib/app/app.component.d.ts +4 -2
- package/lib/components/app-component-sections/form-section/form-section.component.d.ts +1 -1
- package/lib/components/app-component-sections/service-header/service-header.component.d.ts +4 -4
- package/lib/i18n/en.d.ts +1 -0
- package/lib/interfaces/form.interface.d.ts +2 -2
- package/lib/services/core.service.ts.d.ts +1 -0
- package/lib/testComponent/config/segment-dynamic-loader.config.d.ts +8 -0
- package/lib/testComponent/general-approver-section/general-approver-section.component.d.ts +21 -0
- package/lib/testComponent/services/i18n.service.d.ts +11 -0
- package/lib/testComponent/services/segment-dynamic-loader.service.d.ts +17 -0
- package/lib/testComponent/services/state-machine.service.d.ts +29 -0
- package/package.json +2 -2
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Router } from "@angular/router";
|
|
2
2
|
import { SidenavService } from "../services";
|
|
3
|
-
import { CoreService } from "../services
|
|
3
|
+
import { CoreService } from "../services";
|
|
4
4
|
import { Form } from "../interfaces";
|
|
5
|
+
import { SegmentDynamicLoaderService } from "../testComponent/services/segment-dynamic-loader.service";
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class CoreAppComponent {
|
|
8
|
+
segmentDynamicLoader: SegmentDynamicLoaderService;
|
|
7
9
|
private readonly document;
|
|
8
10
|
private readonly router;
|
|
9
11
|
private readonly sidenavService;
|
|
@@ -13,7 +15,7 @@ export declare class CoreAppComponent {
|
|
|
13
15
|
};
|
|
14
16
|
form: Form;
|
|
15
17
|
formTitle: string;
|
|
16
|
-
constructor(document: Document, router: Router, sidenavService: SidenavService, coreService: CoreService);
|
|
18
|
+
constructor(segmentDynamicLoader: SegmentDynamicLoaderService, document: Document, router: Router, sidenavService: SidenavService, coreService: CoreService);
|
|
17
19
|
errorResponse(form: any): void;
|
|
18
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<CoreAppComponent, never>;
|
|
19
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<CoreAppComponent, "lib-app", never, {}, {}, never, never, true, never>;
|
|
@@ -49,7 +49,7 @@ export declare class FormSectionComponent implements OnInit, AfterViewChecked, A
|
|
|
49
49
|
getSectionName(): string;
|
|
50
50
|
getFormStepStatus(key: string): string;
|
|
51
51
|
toggleSmallProfileInfo(event: any, personType: any): void;
|
|
52
|
-
statusIconClass(status: string, type: string): "
|
|
52
|
+
statusIconClass(status: string, type: string): "danger" | "close" | "warning" | "clock" | "success" | "check";
|
|
53
53
|
locationHref(hrefLink: any): void;
|
|
54
54
|
statusClass(status: string): "danger" | "warning" | "success";
|
|
55
55
|
statusIcon(status: string): "close" | "clock" | "check";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AfterViewInit } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { Form, Section } from '../../../interfaces';
|
|
3
3
|
import { MatDialog } from '@angular/material/dialog';
|
|
4
|
-
import { CoreI18nService, SidenavService } from '../../../services';
|
|
5
|
-
import { FeedBackService } from "../../../services";
|
|
4
|
+
import { CoreI18nService, FeedBackService, SidenavService } from '../../../services';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class ServiceHeaderComponent implements AfterViewInit {
|
|
7
|
+
private cdRef;
|
|
8
8
|
i18n: CoreI18nService;
|
|
9
9
|
private feedBackService;
|
|
10
10
|
private readonly dialog;
|
|
@@ -21,7 +21,7 @@ export declare class ServiceHeaderComponent implements AfterViewInit {
|
|
|
21
21
|
approvals: any[];
|
|
22
22
|
feedBackIcon: string;
|
|
23
23
|
flagPriority: string;
|
|
24
|
-
constructor(i18n: CoreI18nService, feedBackService: FeedBackService, dialog: MatDialog, sidenavService: SidenavService);
|
|
24
|
+
constructor(cdRef: ChangeDetectorRef, i18n: CoreI18nService, feedBackService: FeedBackService, dialog: MatDialog, sidenavService: SidenavService);
|
|
25
25
|
ngAfterViewInit(): void;
|
|
26
26
|
onCommentsFormClick(): void;
|
|
27
27
|
feedback(): void;
|
package/lib/i18n/en.d.ts
CHANGED
|
@@ -52,8 +52,8 @@ export declare class CommentsDrop {
|
|
|
52
52
|
export declare class Section<T = any> {
|
|
53
53
|
id?: string;
|
|
54
54
|
header?: SectionHeader;
|
|
55
|
-
body?:
|
|
56
|
-
constructor(id?: string, header?: SectionHeader, body?:
|
|
55
|
+
body?: any;
|
|
56
|
+
constructor(id?: string, header?: SectionHeader, body?: any);
|
|
57
57
|
}
|
|
58
58
|
export declare class SectionHeader {
|
|
59
59
|
processedBy?: string;
|
|
@@ -12,6 +12,7 @@ export declare class CoreService {
|
|
|
12
12
|
userData: string;
|
|
13
13
|
private readonly localUser;
|
|
14
14
|
loggedInUserData: {};
|
|
15
|
+
currentActor: string;
|
|
15
16
|
constructor(http: HttpClient, config: MyLibConfig);
|
|
16
17
|
getLoggedInUserData(): void;
|
|
17
18
|
loadForm(): Promise<Form | import("rxjs").Observable<never>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GeneralApproverSectionComponent } from "../general-approver-section/general-approver-section.component";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
roleToApprovalSectionMapping: {
|
|
4
|
+
wpo_d: typeof GeneralApproverSectionComponent;
|
|
5
|
+
wpo_gm: typeof GeneralApproverSectionComponent;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { I18nService } from '../services/i18n.service';
|
|
2
|
+
import { StateMachineService } from '../services/state-machine.service';
|
|
3
|
+
import { Form, Section } from "../../interfaces";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class GeneralApproverSectionComponent {
|
|
6
|
+
i18n: I18nService;
|
|
7
|
+
StateMachineService: StateMachineService;
|
|
8
|
+
isReadOnly: boolean;
|
|
9
|
+
section: Section;
|
|
10
|
+
lov: any;
|
|
11
|
+
className: string;
|
|
12
|
+
currentSectionId: string;
|
|
13
|
+
lastSectionId: string;
|
|
14
|
+
form: Form;
|
|
15
|
+
constructor(i18n: I18nService, StateMachineService: StateMachineService);
|
|
16
|
+
ngAfterViewInit(): void;
|
|
17
|
+
ServicesSubScriptions(): void;
|
|
18
|
+
handleEmitValue(data: any, fieldName: string): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GeneralApproverSectionComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GeneralApproverSectionComponent, "app-general-approver-section", never, { "isReadOnly": { "alias": "isReadOnly"; "required": false; }; "section": { "alias": "section"; "required": false; }; "lov": { "alias": "lov"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class I18nService {
|
|
3
|
+
private locales;
|
|
4
|
+
private coreLocales;
|
|
5
|
+
private language;
|
|
6
|
+
constructor();
|
|
7
|
+
translate(key: any): any;
|
|
8
|
+
getLanguage(): string;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<I18nService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<I18nService>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { I18nService } from './i18n.service';
|
|
2
|
+
import { RequestDetailsSectionComponent } from "../request-details-section/request-details-section.component";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SegmentDynamicLoaderService {
|
|
5
|
+
private i18n;
|
|
6
|
+
requestDetailsSection: typeof RequestDetailsSectionComponent;
|
|
7
|
+
roleToApprovalSectionMapping: {
|
|
8
|
+
wpo_d: typeof import("../general-approver-section/general-approver-section.component").GeneralApproverSectionComponent;
|
|
9
|
+
wpo_gm: typeof import("../general-approver-section/general-approver-section.component").GeneralApproverSectionComponent;
|
|
10
|
+
};
|
|
11
|
+
constructor(i18n: I18nService);
|
|
12
|
+
getComponent(componentId: string): any;
|
|
13
|
+
getSectionName(componentId: string): string;
|
|
14
|
+
getPrintPartialName(componentName: string): "sectionrequestDetails" | "sectionGeneralApprover" | "sectionGeneralApproval";
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SegmentDynamicLoaderService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SegmentDynamicLoaderService>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { CoreService } from "../../services";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class StateMachineService {
|
|
5
|
+
private http;
|
|
6
|
+
private coreStateMachineService;
|
|
7
|
+
private currentSubmitter;
|
|
8
|
+
feedbackForm: boolean;
|
|
9
|
+
private formName;
|
|
10
|
+
private serviceName;
|
|
11
|
+
private refreshToken;
|
|
12
|
+
pendingForm: boolean;
|
|
13
|
+
responderForm: boolean;
|
|
14
|
+
feedBackSent: boolean;
|
|
15
|
+
feedbackReponse: any;
|
|
16
|
+
private transitions;
|
|
17
|
+
private state;
|
|
18
|
+
private authToken;
|
|
19
|
+
private formId;
|
|
20
|
+
isReadOnly: string;
|
|
21
|
+
inboxUrl: string;
|
|
22
|
+
private isMobile;
|
|
23
|
+
private requesterEmail;
|
|
24
|
+
private authorizedEmail;
|
|
25
|
+
constructor(http: HttpClient, coreStateMachineService: CoreService);
|
|
26
|
+
dispatch(actionName: any, ...args: any[]): any;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StateMachineService, never>;
|
|
28
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StateMachineService>;
|
|
29
|
+
}
|
package/package.json
CHANGED