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.
@@ -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): "danger" | "warning" | "success";
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>;
@@ -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): "danger" | "warning" | "success";
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
@@ -167,5 +167,6 @@ declare const _default: {
167
167
  logout: string;
168
168
  otherLang: string;
169
169
  flagStatusUpdated: string;
170
+ AllRequests: string;
170
171
  };
171
172
  export default _default;
package/lib/i18n/en.d.ts CHANGED
@@ -171,5 +171,6 @@ declare const _default: {
171
171
  select: string;
172
172
  addMultiAttachments: string;
173
173
  flagStatusUpdated: string;
174
+ AllRequests: string;
174
175
  };
175
176
  export default _default;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpm-core",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.0",
6
6
  "@angular/core": "^18.2.0",
@@ -24,4 +24,4 @@
24
24
  "default": "./fesm2022/bpm-core.mjs"
25
25
  }
26
26
  }
27
- }
27
+ }
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>;