bpm-core 0.0.33 → 0.0.35
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/components/app-component-sections/previous-requests/previous-requests.component.mjs +67 -0
- package/esm2022/lib/components/app-component-sections/service-header/service-header.component.mjs +8 -4
- package/esm2022/lib/i18n/ar.mjs +3 -2
- package/esm2022/lib/i18n/en.mjs +3 -2
- package/esm2022/lib/pipes/status-style.pipe.mjs +57 -0
- package/esm2022/lib/services/core.service.ts.mjs +20 -7
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/bpm-core.mjs +178 -49
- package/fesm2022/bpm-core.mjs.map +1 -1
- package/lib/components/app-component-sections/approvals-workflow/approvals-workflow.component.d.ts +1 -1
- package/lib/components/app-component-sections/previous-requests/previous-requests.component.d.ts +22 -0
- package/lib/components/app-component-sections/service-header/service-header.component.d.ts +1 -0
- package/lib/components/shared-components/dialogs/submit-dialog/submit-dialog.component.d.ts +1 -1
- package/lib/i18n/ar.d.ts +1 -0
- package/lib/i18n/en.d.ts +1 -0
- package/lib/pipes/status-style.pipe.d.ts +7 -0
- package/lib/services/core.service.ts.d.ts +1 -0
- package/package.json +2 -2
- package/public-api.d.ts +2 -0
package/lib/components/app-component-sections/approvals-workflow/approvals-workflow.component.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare class ApprovalsWorkflowComponent {
|
|
|
13
13
|
loading: boolean;
|
|
14
14
|
constructor(i18n: CoreI18nService, sidenavService: SidenavService, coreService: CoreService, toasterService: ToastrService);
|
|
15
15
|
getApproves(): void;
|
|
16
|
-
statusClass(status: string): "
|
|
16
|
+
statusClass(status: string): "success" | "danger" | "warning";
|
|
17
17
|
showProspectiveApprovals(): void;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApprovalsWorkflowComponent, never>;
|
|
19
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<ApprovalsWorkflowComponent, "lib-approvals-workflow", never, { "section": { "alias": "section"; "required": false; }; "form": { "alias": "form"; "required": false; }; }, {}, never, never, true, never>;
|
package/lib/components/app-component-sections/previous-requests/previous-requests.component.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OnInit } from "@angular/core";
|
|
2
|
+
import { MatDialog } from "@angular/material/dialog";
|
|
3
|
+
import { Router } from "@angular/router";
|
|
4
|
+
import { CoreI18nService, CoreService, SidenavService } from "../../../services";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class PreviousRequestsComponent implements OnInit {
|
|
7
|
+
dialog: MatDialog;
|
|
8
|
+
readonly sidenavService: SidenavService;
|
|
9
|
+
coreService: CoreService;
|
|
10
|
+
i18n: CoreI18nService;
|
|
11
|
+
previousRequests: any[];
|
|
12
|
+
loading: boolean;
|
|
13
|
+
router: Router;
|
|
14
|
+
totalLength: number;
|
|
15
|
+
constructor(dialog: MatDialog, sidenavService: SidenavService, coreService: CoreService, i18n: CoreI18nService);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
ngAfterViewInit(): void;
|
|
18
|
+
getRequests(): void;
|
|
19
|
+
viewForm(formId: string): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PreviousRequestsComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PreviousRequestsComponent, "app-history", never, {}, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -120,6 +120,7 @@ export declare class ServiceHeaderComponent implements AfterViewInit {
|
|
|
120
120
|
* @return {string} - The URL used to fetch the user's portrait image.
|
|
121
121
|
*/
|
|
122
122
|
private getImageUrl;
|
|
123
|
+
showPreviousRequests(): void;
|
|
123
124
|
static ɵfac: i0.ɵɵFactoryDeclaration<ServiceHeaderComponent, never>;
|
|
124
125
|
static ɵcmp: i0.ɵɵComponentDeclaration<ServiceHeaderComponent, "core-service-header", never, { "form": { "alias": "form"; "required": false; }; "showHistory": { "alias": "showHistory"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "showApprovalHistory": { "alias": "showApprovalHistory"; "required": false; }; "approvalHistory": { "alias": "approvalHistory"; "required": false; }; "creationDate": { "alias": "creationDate"; "required": false; }; "formTitle": { "alias": "formTitle"; "required": false; }; "section": { "alias": "section"; "required": false; }; "serviceFaq": { "alias": "serviceFaq"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
125
126
|
}
|
|
@@ -9,7 +9,7 @@ export declare class SubmitDialogComponent {
|
|
|
9
9
|
constructor(data: any, i18n: CoreI18nService, coreService: CoreService);
|
|
10
10
|
getImage(email: string): string;
|
|
11
11
|
viewForm(formId: string, formName?: string): void;
|
|
12
|
-
getStatus(statusKey: string): "
|
|
12
|
+
getStatus(statusKey: string): "success" | "danger" | "warning";
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<SubmitDialogComponent, never>;
|
|
14
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<SubmitDialogComponent, "app-submit-dialog", never, {}, {}, never, never, true, never>;
|
|
15
15
|
}
|
package/lib/i18n/ar.d.ts
CHANGED
package/lib/i18n/en.d.ts
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class StatusStylePipe implements PipeTransform {
|
|
4
|
+
transform(status: string): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StatusStylePipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<StatusStylePipe, "statusClass", true>;
|
|
7
|
+
}
|
|
@@ -52,6 +52,7 @@ export declare class CoreService {
|
|
|
52
52
|
loadHistory(...args: any[]): import("rxjs").Observable<any>;
|
|
53
53
|
getInboxItem(...args: any[]): import("rxjs").Observable<any>;
|
|
54
54
|
prespectiveApprovers(details: any): import("rxjs").Observable<any>;
|
|
55
|
+
myRequests(details: any): import("rxjs").Observable<any>;
|
|
55
56
|
generalCallApi(body: any, type: string, options: any): import("rxjs").Observable<any>;
|
|
56
57
|
loggedInUserId(): any;
|
|
57
58
|
getShortName(name: string): string | string[];
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { MyLibConfig } from "./lib/interfaces/shared.interface";
|
|
3
|
+
import * as moment from 'moment';
|
|
3
4
|
export * from './lib/app/app.component';
|
|
4
5
|
export * from './lib/components/shared-components';
|
|
5
6
|
export * from './lib/components/app-component-sections';
|
|
@@ -12,4 +13,5 @@ export * from './lib/hooks';
|
|
|
12
13
|
export * from './lib/functions';
|
|
13
14
|
export * from './lib/validators';
|
|
14
15
|
export * from './lib/services';
|
|
16
|
+
export { moment };
|
|
15
17
|
export declare const MY_LIB_CONFIG_TOKEN: InjectionToken<MyLibConfig>;
|