bpm-core 0.0.24 → 0.0.26
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 +4 -4
- package/esm2022/lib/components/app-component-sections/activities/activities.component.mjs +20 -34
- package/esm2022/lib/components/app-component-sections/approvals/approvals.component.mjs +26 -0
- package/esm2022/lib/components/app-component-sections/approvals-workflow/approvals-workflow.component.mjs +98 -0
- package/esm2022/lib/components/app-component-sections/service-header/service-header.component.mjs +15 -13
- package/esm2022/lib/components/shared-components/action-buttons/action-buttons.component.mjs +93 -11
- package/esm2022/lib/components/shared-components/dialogs/submit-dialog/submit-dialog.component.mjs +12 -17
- package/esm2022/lib/components/shared-components/form-field/control-value-accessor.directive.mjs +9 -11
- package/esm2022/lib/components/shared-components/form-field/date-picker/date-picker.component.mjs +3 -5
- package/esm2022/lib/components/shared-components/form-field/input/input.component.mjs +9 -42
- package/esm2022/lib/components/shared-components/form-field/validation-errors/validation-errors.component.mjs +42 -0
- package/esm2022/lib/constants/constants.mjs +3 -1
- package/esm2022/lib/environments/environment.local.mjs +2 -2
- package/esm2022/lib/services/core.service.ts.mjs +304 -295
- package/esm2022/lib/testComponent/general-approver-section/general-approver-section.component.mjs +72 -27
- package/esm2022/lib/testComponent/request-details-section/request-details-section.component.mjs +33 -11
- package/fesm2022/bpm-core.mjs +774 -668
- package/fesm2022/bpm-core.mjs.map +1 -1
- package/lib/components/app-component-sections/activities/activities.component.d.ts +5 -14
- package/lib/components/app-component-sections/approvals/approvals.component.d.ts +11 -0
- package/lib/components/app-component-sections/approvals-workflow/approvals-workflow.component.d.ts +20 -0
- 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 -3
- package/lib/components/shared-components/action-buttons/action-buttons.component.d.ts +27 -6
- package/lib/components/shared-components/dialogs/submit-dialog/submit-dialog.component.d.ts +4 -4
- package/lib/components/shared-components/form-field/control-value-accessor.directive.d.ts +3 -2
- package/lib/components/shared-components/form-field/input/input.component.d.ts +1 -4
- package/lib/components/shared-components/form-field/validation-errors/validation-errors.component.d.ts +16 -0
- package/lib/constants/constants.d.ts +2 -0
- package/lib/services/core.service.ts.d.ts +34 -1
- package/lib/testComponent/general-approver-section/general-approver-section.component.d.ts +21 -13
- package/lib/testComponent/request-details-section/request-details-section.component.d.ts +14 -6
- package/package.json +1 -1
- package/src/lib/assets/scss/_upgrade.scss +3 -3
|
@@ -1,21 +1,12 @@
|
|
|
1
|
-
import { CoreI18nService, SidenavService } from '../../../services';
|
|
1
|
+
import { CoreI18nService, CoreService, SidenavService } from '../../../services';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class ActivitiesComponent {
|
|
4
4
|
private sidenavService;
|
|
5
5
|
i18n: CoreI18nService;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
nextElementSibling: any;
|
|
11
|
-
};
|
|
12
|
-
detail: {
|
|
13
|
-
value: {
|
|
14
|
-
id: any;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
}): void;
|
|
18
|
-
dataURItoBlob(dataURI: any): Blob;
|
|
6
|
+
coreService: CoreService;
|
|
7
|
+
parsedData: any;
|
|
8
|
+
constructor(sidenavService: SidenavService, i18n: CoreI18nService, coreService: CoreService);
|
|
9
|
+
downloadFile(event: any): void;
|
|
19
10
|
closeSidenav(): void;
|
|
20
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActivitiesComponent, never>;
|
|
21
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<ActivitiesComponent, "app-activities", never, {}, {}, never, never, true, never>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CoreI18nService, CoreService, SidenavService } from '../../../services';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ApprovalsComponent {
|
|
4
|
+
private sidenavService;
|
|
5
|
+
i18n: CoreI18nService;
|
|
6
|
+
coreService: CoreService;
|
|
7
|
+
constructor(sidenavService: SidenavService, i18n: CoreI18nService, coreService: CoreService);
|
|
8
|
+
closeSidenav(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApprovalsComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ApprovalsComponent, "app-approvals", never, {}, {}, never, never, true, never>;
|
|
11
|
+
}
|
package/lib/components/app-component-sections/approvals-workflow/approvals-workflow.component.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CoreI18nService, CoreService, SidenavService } from '../../../services';
|
|
2
|
+
import { Form, Section } from '../../../interfaces';
|
|
3
|
+
import { ToastrService } from "ngx-toastr";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ApprovalsWorkflowComponent {
|
|
6
|
+
i18n: CoreI18nService;
|
|
7
|
+
private sidenavService;
|
|
8
|
+
private coreService;
|
|
9
|
+
private toasterService;
|
|
10
|
+
section: Section;
|
|
11
|
+
form: Form;
|
|
12
|
+
approvals: unknown[];
|
|
13
|
+
loading: boolean;
|
|
14
|
+
constructor(i18n: CoreI18nService, sidenavService: SidenavService, coreService: CoreService, toasterService: ToastrService);
|
|
15
|
+
getApproves(): void;
|
|
16
|
+
statusClass(status: string): "success" | "danger" | "warning";
|
|
17
|
+
showProspectiveApprovals(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApprovalsWorkflowComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ApprovalsWorkflowComponent, "lib-approvals-workflow", never, { "section": { "alias": "section"; "required": false; }; "form": { "alias": "form"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -40,7 +40,7 @@ export declare class FormSectionComponent implements OnInit, AfterViewChecked {
|
|
|
40
40
|
private createUserProfileFromResponse;
|
|
41
41
|
private openOrCreateUserProfile;
|
|
42
42
|
toggleSmallProfileInfo(event: any, personType: any): void;
|
|
43
|
-
statusClass(status: string): "
|
|
43
|
+
statusClass(status: string): "success" | "danger" | "warning";
|
|
44
44
|
statusIcon(status: string): "close" | "clock" | "check";
|
|
45
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormSectionComponent, never>;
|
|
46
46
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormSectionComponent, "app-form-section", never, { "requestDetails": { "alias": "requestDetails"; "required": false; }; "section": { "alias": "section"; "required": false; }; "form": { "alias": "form"; "required": false; }; "lov": { "alias": "lov"; "required": false; }; "isReadOnly": { "alias": "isReadOnly"; "required": false; }; "controllers": { "alias": "controllers"; "required": false; }; "segmentDynamicLoaderService": { "alias": "segmentDynamicLoaderService"; "required": false; }; "sectionFormComponent": { "alias": "sectionFormComponent"; "required": false; }; "sectionName": { "alias": "sectionName"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
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, FeedBackService, SidenavService } from '../../../services';
|
|
4
|
+
import { CoreI18nService, CoreService, FeedBackService, SidenavService } from '../../../services';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class ServiceHeaderComponent implements AfterViewInit {
|
|
7
7
|
private cdRef;
|
|
8
|
+
coreService: CoreService;
|
|
8
9
|
i18n: CoreI18nService;
|
|
9
10
|
private feedBackService;
|
|
10
11
|
private readonly dialog;
|
|
@@ -21,13 +22,13 @@ export declare class ServiceHeaderComponent implements AfterViewInit {
|
|
|
21
22
|
approvals: any[];
|
|
22
23
|
feedBackIcon: string;
|
|
23
24
|
flagPriority: string;
|
|
24
|
-
constructor(cdRef: ChangeDetectorRef, i18n: CoreI18nService, feedBackService: FeedBackService, dialog: MatDialog, sidenavService: SidenavService);
|
|
25
|
+
constructor(cdRef: ChangeDetectorRef, coreService: CoreService, i18n: CoreI18nService, feedBackService: FeedBackService, dialog: MatDialog, sidenavService: SidenavService);
|
|
25
26
|
ngAfterViewInit(): void;
|
|
26
27
|
onCommentsFormClick(): void;
|
|
27
28
|
feedback(): void;
|
|
28
29
|
showUserInfo(): void;
|
|
29
30
|
setFlagPriority(id: string): void;
|
|
30
|
-
statusClass(status: string): "
|
|
31
|
+
statusClass(status: string): "success" | "loading" | "danger" | "warning";
|
|
31
32
|
openFaq(): void;
|
|
32
33
|
getApprovalHistory(): void;
|
|
33
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<ServiceHeaderComponent, never>;
|
|
@@ -1,20 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ActionStateService } from "../../../services
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { ActionStateService, CoreI18nService, CoreService, SidenavService } from "../../../services";
|
|
3
|
+
import { Form, Section } from "../../../interfaces";
|
|
4
|
+
import { MatDialog } from "@angular/material/dialog";
|
|
5
|
+
import { FormGroup } from "@angular/forms";
|
|
6
|
+
import { ToastrService } from "ngx-toastr";
|
|
3
7
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ActionButtonsComponent {
|
|
8
|
+
export declare class ActionButtonsComponent implements AfterViewInit {
|
|
5
9
|
i18n: CoreI18nService;
|
|
6
10
|
private actionStateService;
|
|
11
|
+
private coreService;
|
|
12
|
+
dialog: MatDialog;
|
|
13
|
+
private toasterService;
|
|
14
|
+
private cdRef;
|
|
15
|
+
private sidenavService;
|
|
7
16
|
lovOptions: any[];
|
|
8
17
|
lovType: string;
|
|
18
|
+
fieldsForm: FormGroup;
|
|
19
|
+
form: Form;
|
|
20
|
+
section: Section;
|
|
21
|
+
sections: Section[];
|
|
22
|
+
showApprovalCycle: boolean;
|
|
23
|
+
customCall: boolean;
|
|
24
|
+
resetFormEmit: EventEmitter<any>;
|
|
25
|
+
customCallEmit: EventEmitter<any>;
|
|
9
26
|
actionStates: {
|
|
10
27
|
[action: string]: boolean;
|
|
11
28
|
};
|
|
12
|
-
|
|
29
|
+
isSubmitting: {};
|
|
30
|
+
submittingForm: boolean;
|
|
31
|
+
constructor(i18n: CoreI18nService, actionStateService: ActionStateService, coreService: CoreService, dialog: MatDialog, toasterService: ToastrService, cdRef: ChangeDetectorRef, sidenavService: SidenavService);
|
|
32
|
+
ngAfterViewInit(): void;
|
|
13
33
|
resetForm(): void;
|
|
14
34
|
onSubmit(action: string): void;
|
|
15
|
-
|
|
35
|
+
submitForm(action: string, section: Section): void;
|
|
36
|
+
success(response: any): void;
|
|
16
37
|
buttonShape(item: any): "" | "outline";
|
|
17
38
|
buttonColor(item: any): "" | "red";
|
|
18
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActionButtonsComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActionButtonsComponent, "lib-action-buttons", never, { "lovOptions": { "alias": "lovOptions"; "required": false; }; "lovType": { "alias": "lovType"; "required": false; }; }, {}, never, never, true, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionButtonsComponent, "lib-action-buttons", never, { "lovOptions": { "alias": "lovOptions"; "required": false; }; "lovType": { "alias": "lovType"; "required": false; }; "fieldsForm": { "alias": "fieldsForm"; "required": false; }; "form": { "alias": "form"; "required": false; }; "section": { "alias": "section"; "required": false; }; "sections": { "alias": "sections"; "required": false; }; "showApprovalCycle": { "alias": "showApprovalCycle"; "required": false; }; "customCall": { "alias": "customCall"; "required": false; }; }, { "resetFormEmit": "resetFormEmit"; "customCallEmit": "customCallEmit"; }, never, never, true, never>;
|
|
20
41
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { CoreI18nService } from '../../../../services';
|
|
1
|
+
import { CoreI18nService, CoreService } from '../../../../services';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class SubmitDialogComponent {
|
|
4
4
|
data: any;
|
|
5
5
|
i18n: CoreI18nService;
|
|
6
|
+
coreService: CoreService;
|
|
6
7
|
successData: any;
|
|
7
8
|
inboxUri: any;
|
|
8
|
-
constructor(data: any, i18n: CoreI18nService);
|
|
9
|
-
backHome(): void;
|
|
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"
|
|
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
|
}
|
|
@@ -18,17 +18,18 @@ export declare class ControlValueAccessorDirective<Type> implements ControlValue
|
|
|
18
18
|
showHint: string;
|
|
19
19
|
showIfEmpty: string;
|
|
20
20
|
insideTable: any;
|
|
21
|
-
maxLength: number;
|
|
22
21
|
control: FormControl | undefined;
|
|
23
22
|
required: boolean;
|
|
23
|
+
maxLength: any;
|
|
24
24
|
private _isDisabled;
|
|
25
25
|
constructor(injector: Injector, i18n: CoreI18nService);
|
|
26
26
|
ngOnInit(): void;
|
|
27
27
|
setFormControl(): void;
|
|
28
|
+
setFormValidators(): void;
|
|
28
29
|
writeValue(value: Type): void;
|
|
29
30
|
registerOnChange(fn: (val: Type | null) => Type): void;
|
|
30
31
|
registerOnTouched(fn: () => Type): void;
|
|
31
32
|
setDisabledState?(isDisabled: boolean): void;
|
|
32
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<ControlValueAccessorDirective<any>, never>;
|
|
33
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ControlValueAccessorDirective<any>, "[appControlValueAccessor]", never, { "hasLabel": { "alias": "hasLabel"; "required": false; }; "isReadOnly": { "alias": "isReadOnly"; "required": false; }; "hideOption": { "alias": "hideOption"; "required": false; }; "labelTextWriteMode": { "alias": "labelTextWriteMode"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; "showErrorMessage": { "alias": "showErrorMessage"; "required": false; }; "showHint": { "alias": "showHint"; "required": false; }; "showIfEmpty": { "alias": "showIfEmpty"; "required": false; }; "insideTable": { "alias": "insideTable"; "required": false; };
|
|
34
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ControlValueAccessorDirective<any>, "[appControlValueAccessor]", never, { "hasLabel": { "alias": "hasLabel"; "required": false; }; "isReadOnly": { "alias": "isReadOnly"; "required": false; }; "hideOption": { "alias": "hideOption"; "required": false; }; "labelTextWriteMode": { "alias": "labelTextWriteMode"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; "showErrorMessage": { "alias": "showErrorMessage"; "required": false; }; "showHint": { "alias": "showHint"; "required": false; }; "showIfEmpty": { "alias": "showIfEmpty"; "required": false; }; "insideTable": { "alias": "insideTable"; "required": false; }; }, {}, never, never, false, never>;
|
|
34
35
|
}
|
|
@@ -8,15 +8,12 @@ export declare class InputComponent<Type> extends ControlValueAccessorDirective<
|
|
|
8
8
|
floatLabel: any;
|
|
9
9
|
className: string;
|
|
10
10
|
showLabel: boolean;
|
|
11
|
-
matPrefix: boolean;
|
|
12
11
|
iconPrefixName: string;
|
|
13
12
|
matSuffix: boolean;
|
|
14
13
|
iconSuffixName: string;
|
|
15
14
|
emitedChangedValue1: EventEmitter<any>;
|
|
16
15
|
ngAfterViewChecked(): void;
|
|
17
16
|
ngOnChanges(changes: SimpleChanges): void;
|
|
18
|
-
onValueChange1(data: any): void;
|
|
19
|
-
onValueChange(data: any): void;
|
|
20
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent<any>, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent<any>, "app-input", never, { "label": { "alias": "label"; "required": false; }; "hasTooltip": { "alias": "hasTooltip"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent<any>, "app-input", never, { "label": { "alias": "label"; "required": false; }; "hasTooltip": { "alias": "hasTooltip"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "iconPrefixName": { "alias": "iconPrefixName"; "required": false; }; "matSuffix": { "alias": "matSuffix"; "required": false; }; "iconSuffixName": { "alias": "iconSuffixName"; "required": false; }; "emitedChangedValue1": { "alias": "emitedChangedValue1"; "required": false; }; }, {}, never, never, true, never>;
|
|
22
19
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ValidationErrorsComponent<Type> extends ControlValueAccessorDirective<Type> {
|
|
5
|
+
errors: {};
|
|
6
|
+
customErrorMessages: {};
|
|
7
|
+
label: string;
|
|
8
|
+
errorMessages: {
|
|
9
|
+
required: string;
|
|
10
|
+
maxlength: string;
|
|
11
|
+
minlength: string;
|
|
12
|
+
};
|
|
13
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationErrorsComponent<any>, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ValidationErrorsComponent<any>, "app-validation-errors", never, { "errors": { "alias": "errors"; "required": false; }; "customErrorMessages": { "alias": "customErrorMessages"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -123,3 +123,5 @@ export declare const SERVICE_NAME_MAF = "MAF";
|
|
|
123
123
|
export declare const SERVICE_NAME_CEP = "CEP";
|
|
124
124
|
export declare const STATE_MACHINE_ACTION_PDF = "pdfAttachments";
|
|
125
125
|
export declare const LOGOUT_URL = "/c/portal/logout";
|
|
126
|
+
export declare const WORKFLOW_ITEMS = "workflowItems";
|
|
127
|
+
export declare const APPROVERS = "approvers";
|
|
@@ -13,6 +13,12 @@ export declare class CoreService {
|
|
|
13
13
|
private readonly localUser;
|
|
14
14
|
loggedInUserData: {};
|
|
15
15
|
currentActor: string;
|
|
16
|
+
private authorizedEmail;
|
|
17
|
+
private requesterEmail;
|
|
18
|
+
private currentSubmitter;
|
|
19
|
+
language: string;
|
|
20
|
+
activities: any[];
|
|
21
|
+
approvals: any;
|
|
16
22
|
constructor(http: HttpClient, config: MyLibConfig);
|
|
17
23
|
getLoggedInUserData(): void;
|
|
18
24
|
loadForm(): Promise<Form | import("rxjs").Observable<never>>;
|
|
@@ -20,10 +26,37 @@ export declare class CoreService {
|
|
|
20
26
|
private buildBody;
|
|
21
27
|
employeeProfile(employeeEmail: any): import("rxjs").Observable<any>;
|
|
22
28
|
private getRequestOptions;
|
|
29
|
+
private getDraftId;
|
|
30
|
+
submitForm(...args: any[]): import("rxjs").Observable<{
|
|
31
|
+
id: any;
|
|
32
|
+
status: any;
|
|
33
|
+
nextApprover: {
|
|
34
|
+
name: any;
|
|
35
|
+
email: any;
|
|
36
|
+
role: any;
|
|
37
|
+
};
|
|
38
|
+
creationDate: any;
|
|
39
|
+
}>;
|
|
40
|
+
private getHttpMethod;
|
|
41
|
+
private beforeTranspileSectionWrapper;
|
|
42
|
+
private getServiceName;
|
|
43
|
+
private getFormName;
|
|
44
|
+
private populatedPayload;
|
|
45
|
+
private getBodyObject;
|
|
23
46
|
private callPost;
|
|
24
|
-
|
|
47
|
+
private submit;
|
|
48
|
+
private successWm;
|
|
49
|
+
loadFile(...args: any): Promise<import("@angular/common/http").HttpResponse<Object>>;
|
|
50
|
+
dataURItoBlob(dataURI: any): Blob;
|
|
51
|
+
loadHistory(...args: any[]): import("rxjs").Observable<any>;
|
|
52
|
+
getInboxItem(...args: any[]): import("rxjs").Observable<any>;
|
|
53
|
+
prespectiveApprovers(details: any): import("rxjs").Observable<any>;
|
|
54
|
+
generalCallApi(body: any, type: string, options: any): import("rxjs").Observable<any>;
|
|
25
55
|
loggedInUserId(): any;
|
|
26
56
|
getShortName(name: string): string | string[];
|
|
57
|
+
isMobileApp(): any;
|
|
58
|
+
getInboxType(result: any): any;
|
|
59
|
+
isOpenOnInbox(): any;
|
|
27
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<CoreService, never>;
|
|
28
61
|
static ɵprov: i0.ɵɵInjectableDeclaration<CoreService>;
|
|
29
62
|
}
|
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { StateMachineService } from '../services/state-machine.service';
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
3
2
|
import { Form, Section } from "../../interfaces";
|
|
3
|
+
import { ActionStateService, CoreI18nService } from "../../services";
|
|
4
|
+
import { FormBuilder, FormControl, FormGroup } from "@angular/forms";
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class GeneralApproverSectionComponent {
|
|
6
|
-
i18n:
|
|
7
|
-
|
|
6
|
+
export declare class GeneralApproverSectionComponent implements OnInit {
|
|
7
|
+
i18n: CoreI18nService;
|
|
8
|
+
private fb;
|
|
9
|
+
private actionStateService;
|
|
8
10
|
isReadOnly: boolean;
|
|
9
11
|
section: Section;
|
|
12
|
+
form: Form;
|
|
10
13
|
lov: any;
|
|
11
14
|
className: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
fieldsForm: FormGroup;
|
|
16
|
+
numbers: number[];
|
|
17
|
+
formGroup: FormGroup<{
|
|
18
|
+
name: FormControl<string>;
|
|
19
|
+
countries: FormControl<string>;
|
|
20
|
+
}>;
|
|
21
|
+
constructor(i18n: CoreI18nService, fb: FormBuilder, actionStateService: ActionStateService);
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
createForm(): void;
|
|
24
|
+
checkValidity(action: string): boolean;
|
|
25
|
+
customCallSubmit(action: string): void;
|
|
26
|
+
resetForm(): void;
|
|
19
27
|
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>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GeneralApproverSectionComponent, "app-general-approver-section", never, { "isReadOnly": { "alias": "isReadOnly"; "required": false; }; "section": { "alias": "section"; "required": false; }; "form": { "alias": "form"; "required": false; }; "lov": { "alias": "lov"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
29
|
}
|
|
@@ -1,21 +1,29 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
1
2
|
import { Form, Section } from "../../interfaces";
|
|
2
|
-
import { CoreI18nService } from "../../services";
|
|
3
|
-
import { FormBuilder, FormGroup } from "@angular/forms";
|
|
4
|
-
import { ActionStateService } from "../../services/action.service.ts";
|
|
3
|
+
import { ActionStateService, CoreI18nService } from "../../services";
|
|
4
|
+
import { FormBuilder, FormControl, FormGroup } from "@angular/forms";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class RequestDetailsSectionComponent {
|
|
6
|
+
export declare class RequestDetailsSectionComponent implements OnInit {
|
|
7
7
|
i18n: CoreI18nService;
|
|
8
8
|
private fb;
|
|
9
9
|
private actionStateService;
|
|
10
10
|
isReadOnly: boolean;
|
|
11
11
|
section: Section;
|
|
12
|
+
form: Form;
|
|
12
13
|
lov: any;
|
|
13
14
|
className: string;
|
|
14
|
-
form: Form;
|
|
15
15
|
fieldsForm: FormGroup;
|
|
16
|
+
numbers: number[];
|
|
17
|
+
formGroup: FormGroup<{
|
|
18
|
+
name: FormControl<string>;
|
|
19
|
+
countries: FormControl<string>;
|
|
20
|
+
}>;
|
|
16
21
|
constructor(i18n: CoreI18nService, fb: FormBuilder, actionStateService: ActionStateService);
|
|
22
|
+
ngOnInit(): void;
|
|
17
23
|
createForm(): void;
|
|
18
24
|
checkValidity(action: string): boolean;
|
|
25
|
+
customCallSubmit(action: string): void;
|
|
26
|
+
resetForm(): void;
|
|
19
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<RequestDetailsSectionComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RequestDetailsSectionComponent, "app-request-details-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>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RequestDetailsSectionComponent, "app-request-details-section", never, { "isReadOnly": { "alias": "isReadOnly"; "required": false; }; "section": { "alias": "section"; "required": false; }; "form": { "alias": "form"; "required": false; }; "lov": { "alias": "lov"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
29
|
}
|
package/package.json
CHANGED
|
@@ -133,7 +133,7 @@ mat-slide-toggle {
|
|
|
133
133
|
border-color: var(--light-gray) !important;
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
|
|
136
|
+
|
|
137
137
|
}
|
|
138
138
|
app-autocomplete,
|
|
139
139
|
app-time-picker {
|
|
@@ -226,7 +226,7 @@ ds-button[shape="text"]::part(base) {
|
|
|
226
226
|
.main-button-toggle.secondary-button-toggle {
|
|
227
227
|
--toggle-height: 35px;
|
|
228
228
|
--toggle-width: 44px;
|
|
229
|
-
--toggle-color: var(--dark-gray
|
|
229
|
+
--toggle-color: var(--dark-gray);
|
|
230
230
|
--toggle-color-active: var(--white);
|
|
231
231
|
--toggle-bg: var(--light-gray);
|
|
232
232
|
--toggle-bg-active: var(--purple);
|
|
@@ -276,4 +276,4 @@ mat-progress-bar {
|
|
|
276
276
|
|
|
277
277
|
mat-form-field.mat-mdc-form-field.input-disabled {
|
|
278
278
|
--input-bg: var(--light-gray);
|
|
279
|
-
}
|
|
279
|
+
}
|