bpm-core 0.0.32 → 0.0.34
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 +2 -2
- package/esm2022/lib/components/app-component-sections/faq-sidenav/faq-sidenav.component.mjs +1 -5
- package/esm2022/lib/components/app-component-sections/faqs/faqs.component.mjs +4 -9
- package/esm2022/lib/components/app-component-sections/form-section/form-section.component.mjs +140 -72
- package/esm2022/lib/components/app-component-sections/index.mjs +1 -2
- package/esm2022/lib/components/app-component-sections/main-request-details/main-request-details.component.mjs +5 -7
- 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 +158 -68
- package/esm2022/lib/components/shared-components/form-field/control-value-accessor.directive.mjs +5 -6
- package/esm2022/lib/components/shared-components/form-field/custom-searchable-autocomplete/custom-searchable.component.mjs +3 -3
- package/esm2022/lib/components/shared-components/form-field/date-picker/date-picker.component.mjs +8 -46
- package/esm2022/lib/components/shared-components/form-field/date-range-picker/date-range-picker.component.mjs +161 -14
- package/esm2022/lib/components/shared-components/form-field/input/input.component.mjs +10 -12
- package/esm2022/lib/components/shared-components/form-field/input-currency/input-currency.component.mjs +11 -4
- package/esm2022/lib/components/shared-components/form-field/input-email/input-email.component.mjs +12 -4
- package/esm2022/lib/components/shared-components/form-field/input-mask/input-mask.component.mjs +3 -3
- package/esm2022/lib/components/shared-components/form-field/input-number/input-number.component.mjs +9 -5
- package/esm2022/lib/components/shared-components/form-field/validation-errors/validation-errors.component.mjs +5 -1
- package/esm2022/lib/{validators → directives}/ar.directive.mjs +4 -3
- package/esm2022/lib/{validators → directives}/currency.directive.mjs +4 -3
- package/esm2022/lib/{validators → directives}/en.directive.mjs +4 -3
- package/esm2022/lib/directives/number.directive.mjs +68 -0
- package/esm2022/lib/i18n/ar.mjs +4 -2
- package/esm2022/lib/i18n/en.mjs +3 -1
- package/esm2022/lib/pipes/status-style.pipe.mjs +57 -0
- package/esm2022/lib/regex/regex-patterns.mjs +4 -0
- package/esm2022/lib/services/core.service.ts.mjs +37 -9
- package/esm2022/lib/testComponent/general-approver-section/general-approver-section.component.mjs +2 -2
- package/esm2022/lib/testComponent/request-details-section/request-details-section.component.mjs +13 -6
- package/esm2022/lib/validators/index.mjs +4 -4
- package/fesm2022/bpm-core.mjs +1007 -592
- package/fesm2022/bpm-core.mjs.map +1 -1
- package/lib/components/app-component-sections/faq-sidenav/faq-sidenav.component.d.ts +2 -4
- package/lib/components/app-component-sections/faqs/faqs.component.d.ts +1 -3
- package/lib/components/app-component-sections/form-section/form-section.component.d.ts +92 -7
- package/lib/components/app-component-sections/index.d.ts +0 -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 +98 -7
- package/lib/components/shared-components/form-field/control-value-accessor.directive.d.ts +2 -1
- package/lib/components/shared-components/form-field/date-picker/date-picker.component.d.ts +0 -4
- package/lib/components/shared-components/form-field/date-range-picker/date-range-picker.component.d.ts +22 -6
- package/lib/components/shared-components/form-field/input/input.component.d.ts +1 -3
- package/lib/components/shared-components/form-field/input-email/input-email.component.d.ts +1 -0
- package/lib/{validators → directives}/ar.directive.d.ts +1 -1
- package/lib/{validators → directives}/currency.directive.d.ts +1 -1
- package/lib/{validators → directives}/en.directive.d.ts +1 -1
- package/lib/directives/number.directive.d.ts +14 -0
- package/lib/i18n/ar.d.ts +2 -0
- package/lib/i18n/en.d.ts +2 -0
- package/lib/pipes/status-style.pipe.d.ts +7 -0
- package/lib/regex/regex-patterns.d.ts +3 -0
- package/lib/services/core.service.ts.d.ts +2 -0
- package/lib/validators/index.d.ts +0 -3
- package/package.json +1 -1
- package/src/lib/assets/scss/_custom-popover.scss +3 -0
- package/src/lib/assets/scss/_settings.scss +5 -2
- package/esm2022/lib/components/app-component-sections/comment-section/comment-section.component.mjs +0 -66
- package/lib/components/app-component-sections/comment-section/comment-section.component.d.ts +0 -19
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
1
|
import { CoreI18nService, SidenavService } from '../../../services';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FaqSidenavComponent
|
|
5
|
-
private sidenavService;
|
|
3
|
+
export declare class FaqSidenavComponent {
|
|
4
|
+
private readonly sidenavService;
|
|
6
5
|
i18n: CoreI18nService;
|
|
7
6
|
data: any[];
|
|
8
7
|
constructor(sidenavService: SidenavService, i18n: CoreI18nService);
|
|
9
|
-
ngOnInit(): void;
|
|
10
8
|
closeSidenav(): void;
|
|
11
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<FaqSidenavComponent, never>;
|
|
12
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<FaqSidenavComponent, "app-faq-sidenav", never, {}, {}, never, never, true, never>;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
1
|
import { CoreI18nService } from '../../../services';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
interface FAQ {
|
|
5
4
|
title: string;
|
|
6
5
|
content: string;
|
|
7
6
|
}
|
|
8
|
-
export declare class FaqsComponent
|
|
7
|
+
export declare class FaqsComponent {
|
|
9
8
|
i18n: CoreI18nService;
|
|
10
9
|
adminView: boolean;
|
|
11
10
|
faqs: FAQ[];
|
|
12
11
|
constructor(i18n: CoreI18nService);
|
|
13
|
-
ngOnInit(): void;
|
|
14
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<FaqsComponent, never>;
|
|
15
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<FaqsComponent, "app-faqs", never, { "adminView": { "alias": "adminView"; "required": false; }; "faqs": { "alias": "faqs"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
14
|
}
|
|
@@ -18,8 +18,6 @@ export declare class FormSectionComponent implements OnInit {
|
|
|
18
18
|
segmentDynamicLoaderService: any;
|
|
19
19
|
sectionFormComponent: any;
|
|
20
20
|
sectionName: string;
|
|
21
|
-
sectionNumber: number;
|
|
22
|
-
sectionStatusValue: string;
|
|
23
21
|
sectionStatusKey: string;
|
|
24
22
|
recipient: {
|
|
25
23
|
isShowing: boolean;
|
|
@@ -31,16 +29,103 @@ export declare class FormSectionComponent implements OnInit {
|
|
|
31
29
|
};
|
|
32
30
|
input: any;
|
|
33
31
|
processingDate: string;
|
|
34
|
-
randomID: number;
|
|
35
32
|
constructor(i18n: CoreI18nService, coreService: CoreService, sidenavService: SidenavService);
|
|
33
|
+
/**
|
|
34
|
+
* Method to initialize various components when the component is initialized.
|
|
35
|
+
*
|
|
36
|
+
* @return {void}
|
|
37
|
+
*/
|
|
36
38
|
ngOnInit(): void;
|
|
39
|
+
/**
|
|
40
|
+
* Initializes the section form component by fetching it from the segment dynamic loader service.
|
|
41
|
+
*
|
|
42
|
+
* @return {void}
|
|
43
|
+
*/
|
|
44
|
+
private initSectionFormComponent;
|
|
45
|
+
/**
|
|
46
|
+
* Initializes the section name based on the provided section data.
|
|
47
|
+
* If the section's body contains a 'stageName' property, the section name is set to the value of that property.
|
|
48
|
+
* Otherwise, the section name is retrieved using the segmentDynamicLoaderService based on the section ID.
|
|
49
|
+
*
|
|
50
|
+
* @return {void}
|
|
51
|
+
*/
|
|
52
|
+
private initSectionName;
|
|
53
|
+
/**
|
|
54
|
+
* Initializes the input object with the provided values for read-only status, list of values, section, and form.
|
|
55
|
+
*
|
|
56
|
+
* @return {void}
|
|
57
|
+
*/
|
|
58
|
+
private initInput;
|
|
59
|
+
/**
|
|
60
|
+
* Initializes the processing date based on the section's header processing date.
|
|
61
|
+
* If the processing date is available in the section header, it formats the processing date
|
|
62
|
+
* and assigns it to the processingDate property of the instance.
|
|
63
|
+
*
|
|
64
|
+
* @return {void}
|
|
65
|
+
*/
|
|
66
|
+
private initProcessingDate;
|
|
67
|
+
/**
|
|
68
|
+
* Check if the section is expanded.
|
|
69
|
+
*
|
|
70
|
+
* @return {boolean} Returns true if the section is expanded, false otherwise.
|
|
71
|
+
*/
|
|
37
72
|
get isExpanded(): boolean;
|
|
38
|
-
|
|
73
|
+
/**
|
|
74
|
+
* Create a ProfileInfoDrop object from the response object.
|
|
75
|
+
*
|
|
76
|
+
* @param {any} response - The response object containing user profile information.
|
|
77
|
+
*
|
|
78
|
+
* @return {ProfileInfoDrop} A ProfileInfoDrop object created from the response data.
|
|
79
|
+
*/
|
|
39
80
|
private createUserProfileFromResponse;
|
|
81
|
+
/**
|
|
82
|
+
* Method to open or create a user profile.
|
|
83
|
+
*
|
|
84
|
+
* @param {ProfileInfoDrop} userData - The user profile data to open or create.
|
|
85
|
+
* @param {string} personType - The type of person this profile belongs to.
|
|
86
|
+
*
|
|
87
|
+
* @return {void}
|
|
88
|
+
*/
|
|
40
89
|
private openOrCreateUserProfile;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
90
|
+
/**
|
|
91
|
+
* Toggles the display of small profile information for a given person type
|
|
92
|
+
*
|
|
93
|
+
* @param {any} event - The event that triggered the toggle
|
|
94
|
+
* @param {string} personType - The type of person for which to display the profile information
|
|
95
|
+
*
|
|
96
|
+
* @return {void}
|
|
97
|
+
*/
|
|
98
|
+
toggleSmallProfileInfo(event: any, personType: string): void;
|
|
99
|
+
/**
|
|
100
|
+
* Retrieves the email of the user based on the personType parameter.
|
|
101
|
+
*
|
|
102
|
+
* @param {string} personType - Type of the person ('recipient' or others).
|
|
103
|
+
* @return {string} - The email address of the user.
|
|
104
|
+
*/
|
|
105
|
+
private getUserEmail;
|
|
106
|
+
/**
|
|
107
|
+
* Fetches the user profile using the provided user email and person type, then sets the profile.
|
|
108
|
+
*
|
|
109
|
+
* @param {string} userEmail - The email of the user whose profile is to be fetched and set.
|
|
110
|
+
* @param {string} personType - The type of person (e.g., employee, customer) for whom the profile is being fetched.
|
|
111
|
+
*
|
|
112
|
+
* @return {void}
|
|
113
|
+
*/
|
|
114
|
+
private fetchAndSetUserProfile;
|
|
115
|
+
/**
|
|
116
|
+
* Returns the CSS class associated with the input status.
|
|
117
|
+
*
|
|
118
|
+
* @param {string} status - The status for which the CSS class is needed.
|
|
119
|
+
* @return {string} - The CSS class corresponding to the given status.
|
|
120
|
+
*/
|
|
121
|
+
statusClass(status: string): string;
|
|
122
|
+
/**
|
|
123
|
+
* Returns the icon associated with the provided status.
|
|
124
|
+
*
|
|
125
|
+
* @param {string} status - The status for which to retrieve the icon.
|
|
126
|
+
* @return {string} The icon corresponding to the provided status.
|
|
127
|
+
*/
|
|
128
|
+
statusIcon(status: string): string;
|
|
44
129
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormSectionComponent, never>;
|
|
45
130
|
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>;
|
|
46
131
|
}
|
|
@@ -5,5 +5,4 @@ export * from './form-section/form-section.component';
|
|
|
5
5
|
export * from './main-request-details/main-request-details.component';
|
|
6
6
|
export * from './feedback-section/feedback-section.component';
|
|
7
7
|
export * from './profile-section/profile-section.component';
|
|
8
|
-
export * from './comment-section/comment-section.component';
|
|
9
8
|
export * from './layout/layout.component';
|
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
|
+
}
|
|
@@ -2,14 +2,23 @@ import { AfterViewInit, ChangeDetectorRef } from '@angular/core';
|
|
|
2
2
|
import { Form, Section } from '../../../interfaces';
|
|
3
3
|
import { MatDialog } from '@angular/material/dialog';
|
|
4
4
|
import { CoreI18nService, CoreService, FeedBackService, SidenavService } from '../../../services';
|
|
5
|
+
import { ToastrService } from "ngx-toastr";
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
7
|
+
interface ApprovalHistoryItem {
|
|
8
|
+
approver: {
|
|
9
|
+
personName: string;
|
|
10
|
+
personEmail: string;
|
|
11
|
+
};
|
|
12
|
+
positionType: string;
|
|
13
|
+
}
|
|
6
14
|
export declare class ServiceHeaderComponent implements AfterViewInit {
|
|
7
|
-
private cdRef;
|
|
15
|
+
private readonly cdRef;
|
|
8
16
|
coreService: CoreService;
|
|
9
17
|
i18n: CoreI18nService;
|
|
10
|
-
private feedBackService;
|
|
18
|
+
private readonly feedBackService;
|
|
11
19
|
private readonly dialog;
|
|
12
20
|
private readonly sidenavService;
|
|
21
|
+
private readonly toasterService;
|
|
13
22
|
form: Form;
|
|
14
23
|
showHistory: boolean;
|
|
15
24
|
isLoading: boolean;
|
|
@@ -18,19 +27,101 @@ export declare class ServiceHeaderComponent implements AfterViewInit {
|
|
|
18
27
|
creationDate: string;
|
|
19
28
|
formTitle: string;
|
|
20
29
|
section: Section;
|
|
21
|
-
|
|
30
|
+
serviceFaq: any[];
|
|
22
31
|
approvals: any[];
|
|
23
32
|
feedBackIcon: string;
|
|
24
33
|
flagPriority: string;
|
|
25
|
-
constructor(cdRef: ChangeDetectorRef, coreService: CoreService, i18n: CoreI18nService, feedBackService: FeedBackService, dialog: MatDialog, sidenavService: SidenavService);
|
|
34
|
+
constructor(cdRef: ChangeDetectorRef, coreService: CoreService, i18n: CoreI18nService, feedBackService: FeedBackService, dialog: MatDialog, sidenavService: SidenavService, toasterService: ToastrService);
|
|
35
|
+
/**
|
|
36
|
+
* Executes after the view has been fully initialized.
|
|
37
|
+
*
|
|
38
|
+
* @return {void}
|
|
39
|
+
*/
|
|
26
40
|
ngAfterViewInit(): void;
|
|
41
|
+
/**
|
|
42
|
+
* Handles the click event on the comments form.
|
|
43
|
+
* Retrieves comments from the form, transforms them, and updates activities in the core service.
|
|
44
|
+
* Finally, publishes an 'open' event to the sidenav service to open the ActivitiesComponent.
|
|
45
|
+
*
|
|
46
|
+
* @return {void}
|
|
47
|
+
*/
|
|
27
48
|
onCommentsFormClick(): void;
|
|
49
|
+
/**
|
|
50
|
+
* Transforms a comment item into a different format for display.
|
|
51
|
+
*
|
|
52
|
+
* @param {Object} item - The original comment item to transform.
|
|
53
|
+
* @return {Object} - The transformed comment item with specific properties including name, title, image, date, time, comment, and attachments.
|
|
54
|
+
*/
|
|
55
|
+
private transformCommentItem;
|
|
56
|
+
/**
|
|
57
|
+
* Opens a dialog for providing feedback.
|
|
58
|
+
*
|
|
59
|
+
* @return {void}
|
|
60
|
+
*/
|
|
28
61
|
feedback(): void;
|
|
62
|
+
/**
|
|
63
|
+
* Updates the sidenav with user profile information if not already loading.
|
|
64
|
+
*
|
|
65
|
+
* @return {void}
|
|
66
|
+
*/
|
|
29
67
|
showUserInfo(): void;
|
|
68
|
+
/**
|
|
69
|
+
* Set the priority flag for the inbox item with the provided ID.
|
|
70
|
+
*
|
|
71
|
+
* @param {string} id - The ID of the priority flag to be set for the inbox item.
|
|
72
|
+
* @return {void}
|
|
73
|
+
*/
|
|
30
74
|
setFlagPriority(id: string): void;
|
|
31
|
-
|
|
75
|
+
/**
|
|
76
|
+
* Subscribe to set flag priority for a specific identifier.
|
|
77
|
+
*
|
|
78
|
+
* @param {string} id - The identifier of the flag to set priority for.
|
|
79
|
+
* @return {void}
|
|
80
|
+
*/
|
|
81
|
+
subscribeToSetFlagPriority(id: string): void;
|
|
82
|
+
/**
|
|
83
|
+
* Returns the CSS class associated with the input status.
|
|
84
|
+
*
|
|
85
|
+
* @param {string} status - The status for which the CSS class is needed.
|
|
86
|
+
* @return {string} - The CSS class corresponding to the given status.
|
|
87
|
+
*/
|
|
88
|
+
statusClass(status: string): string;
|
|
89
|
+
/**
|
|
90
|
+
* Opens the FAQ side navigation.
|
|
91
|
+
* @return {void}
|
|
92
|
+
*/
|
|
32
93
|
openFaq(): void;
|
|
33
|
-
|
|
94
|
+
/**
|
|
95
|
+
* Retrieves approval history information for each approval item in the provided array.
|
|
96
|
+
*
|
|
97
|
+
* @param {ApprovalHistoryItem[]} approvalHistory - The array containing approval history items.
|
|
98
|
+
*
|
|
99
|
+
* @return {void} - This method does not return any value. It updates the internal 'approvals' array.
|
|
100
|
+
*/
|
|
101
|
+
getApprovalHistory(approvalHistory: ApprovalHistoryItem[]): void;
|
|
102
|
+
/**
|
|
103
|
+
* Retrieves the approval status for a specific section in the form.
|
|
104
|
+
*
|
|
105
|
+
* @param {number} index - The index of the section for which the approval status is required.
|
|
106
|
+
* @return {string} The approval status of the specified section. Returns an empty string if the section does not exist.
|
|
107
|
+
*/
|
|
108
|
+
private getApprovalStatus;
|
|
109
|
+
/**
|
|
110
|
+
* Retrieves the approval status label from the form section based on the given index.
|
|
111
|
+
*
|
|
112
|
+
* @param {number} index - The index of the form section for which the approval status label will be retrieved.
|
|
113
|
+
* @return {string} The approval status label retrieved from the specified form section.
|
|
114
|
+
*/
|
|
115
|
+
private getApprovalStatusLabel;
|
|
116
|
+
/**
|
|
117
|
+
* Retrieves the URL of the user's portrait image based on the provided email.
|
|
118
|
+
*
|
|
119
|
+
* @param {string} email - The email address of the user for whom the portrait URL is to be retrieved.
|
|
120
|
+
* @return {string} - The URL used to fetch the user's portrait image.
|
|
121
|
+
*/
|
|
122
|
+
private getImageUrl;
|
|
123
|
+
showPreviousRequests(): void;
|
|
34
124
|
static ɵfac: i0.ɵɵFactoryDeclaration<ServiceHeaderComponent, never>;
|
|
35
|
-
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; }; "
|
|
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>;
|
|
36
126
|
}
|
|
127
|
+
export {};
|
|
@@ -19,6 +19,7 @@ export declare class ControlValueAccessorDirective<Type> implements ControlValue
|
|
|
19
19
|
mask: any;
|
|
20
20
|
label: string;
|
|
21
21
|
matSuffix: boolean;
|
|
22
|
+
hasTooltip: boolean;
|
|
22
23
|
minDateValue: any;
|
|
23
24
|
maxDateValue: any;
|
|
24
25
|
maxDate: string;
|
|
@@ -41,5 +42,5 @@ export declare class ControlValueAccessorDirective<Type> implements ControlValue
|
|
|
41
42
|
registerOnTouched(fn: () => Type): void;
|
|
42
43
|
setDisabledState?(isDisabled: boolean): void;
|
|
43
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<ControlValueAccessorDirective<any>, never>;
|
|
44
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ControlValueAccessorDirective<any>, "[appControlValueAccessor]", never, { "isReadOnly": { "alias": "isReadOnly"; "required": false; }; "labelTextWriteMode": { "alias": "labelTextWriteMode"; "required": false; }; "labelTextReadMode": { "alias": "labelTextReadMode"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "type": { "alias": "type"; "required": false; }; "showErrorMessage": { "alias": "showErrorMessage"; "required": false; }; "showHint": { "alias": "showHint"; "required": false; }; "showIfEmpty": { "alias": "showIfEmpty"; "required": false; }; "insideTable": { "alias": "insideTable"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "label": { "alias": "label"; "required": false; }; "matSuffix": { "alias": "matSuffix"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "customMaxDate": { "alias": "customMaxDate"; "required": false; }; "customMinDate": { "alias": "customMinDate"; "required": false; }; }, {}, never, never, false, never>;
|
|
45
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ControlValueAccessorDirective<any>, "[appControlValueAccessor]", never, { "isReadOnly": { "alias": "isReadOnly"; "required": false; }; "labelTextWriteMode": { "alias": "labelTextWriteMode"; "required": false; }; "labelTextReadMode": { "alias": "labelTextReadMode"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "type": { "alias": "type"; "required": false; }; "showErrorMessage": { "alias": "showErrorMessage"; "required": false; }; "showHint": { "alias": "showHint"; "required": false; }; "showIfEmpty": { "alias": "showIfEmpty"; "required": false; }; "insideTable": { "alias": "insideTable"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "label": { "alias": "label"; "required": false; }; "matSuffix": { "alias": "matSuffix"; "required": false; }; "hasTooltip": { "alias": "hasTooltip"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "customMaxDate": { "alias": "customMaxDate"; "required": false; }; "customMinDate": { "alias": "customMinDate"; "required": false; }; }, {}, never, never, false, never>;
|
|
45
46
|
}
|
|
@@ -20,14 +20,10 @@ export declare class DatePickerComponent<Type> extends ControlValueAccessorDirec
|
|
|
20
20
|
datepicker: MatDatepicker<any>;
|
|
21
21
|
floatLabel: any;
|
|
22
22
|
ngAfterViewInit(): void;
|
|
23
|
-
get shouldSetDateFormateInAr(): boolean;
|
|
24
23
|
ngOnChanges(changes: SimpleChanges): void;
|
|
25
24
|
focusPicker(picker: any): void;
|
|
26
|
-
onFocus(): void;
|
|
27
25
|
dateChange(event: any): void;
|
|
28
26
|
clearDateValue(event: any): void;
|
|
29
|
-
removeDate(): void;
|
|
30
|
-
toggleIslamicCal(): void;
|
|
31
27
|
private activateYearOnlyMode;
|
|
32
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent<any>, never>;
|
|
33
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent<any>, "app-datepicker", never, { "tooltip": { "alias": "tooltip"; "required": false; }; "className": { "alias": "className"; "required": false; }; "calendarType": { "alias": "calendarType"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "yearOnly": { "alias": "yearOnly"; "required": false; }; "resetDate": { "alias": "resetDate"; "required": false; }; "error": { "alias": "error"; "required": false; }; "format": { "alias": "format"; "required": false; }; }, { "dateValue": "dateValue"; }, never, never, true, never>;
|
|
@@ -1,10 +1,26 @@
|
|
|
1
|
+
import { SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
|
|
3
|
+
import { FormControl } from '@angular/forms';
|
|
4
|
+
import { MatDatepicker } from '@angular/material/datepicker';
|
|
5
|
+
import { CustomDateFormat } from '../date-picker/date-format';
|
|
1
6
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class DateRangePickerComponent {
|
|
3
|
-
label: string;
|
|
7
|
+
export declare class DateRangePickerComponent<Type> extends ControlValueAccessorDirective<Type> {
|
|
4
8
|
tooltip: string;
|
|
5
9
|
className: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
yearOnly: boolean;
|
|
11
|
+
dateFormat: CustomDateFormat;
|
|
12
|
+
datepicker: MatDatepicker<any>;
|
|
13
|
+
startControl: FormControl<any>;
|
|
14
|
+
endControl: FormControl<any>;
|
|
15
|
+
startInputValue: string;
|
|
16
|
+
endInputValue: string;
|
|
17
|
+
dateRange: any;
|
|
18
|
+
ngAfterViewInit(): void;
|
|
19
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
20
|
+
focusPicker(picker: any): void;
|
|
21
|
+
dateChange(event: any): void;
|
|
22
|
+
clearDateValue(event: any): void;
|
|
23
|
+
private activateYearOnlyMode;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePickerComponent<any>, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePickerComponent<any>, "app-date-range-picker", never, { "tooltip": { "alias": "tooltip"; "required": false; }; "className": { "alias": "className"; "required": false; }; "yearOnly": { "alias": "yearOnly"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
26
|
}
|
|
@@ -2,14 +2,12 @@ import { EventEmitter } from '@angular/core';
|
|
|
2
2
|
import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class InputComponent<Type> extends ControlValueAccessorDirective<Type> {
|
|
5
|
-
hasTooltip: boolean;
|
|
6
5
|
tooltip: string;
|
|
7
6
|
floatLabel: any;
|
|
8
7
|
className: string;
|
|
9
|
-
showLabel: boolean;
|
|
10
8
|
iconPrefixName: string;
|
|
11
9
|
iconSuffixName: string;
|
|
12
10
|
emitedChangedValue1: EventEmitter<any>;
|
|
13
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent<any>, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent<any>, "app-input", never, { "
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent<any>, "app-input", never, { "tooltip": { "alias": "tooltip"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; "iconPrefixName": { "alias": "iconPrefixName"; "required": false; }; "iconSuffixName": { "alias": "iconSuffixName"; "required": false; }; "emitedChangedValue1": { "alias": "emitedChangedValue1"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
13
|
}
|
|
@@ -8,6 +8,7 @@ export declare class InputEmailComponent<Type> extends ControlValueAccessorDirec
|
|
|
8
8
|
iconPrefixName: string;
|
|
9
9
|
iconSuffixName: string;
|
|
10
10
|
numberSuffixName: string;
|
|
11
|
+
displayErrors(data: any): void;
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputEmailComponent<any>, never>;
|
|
12
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<InputEmailComponent<any>, "app-input-email", never, { "tooltip": { "alias": "tooltip"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; "matPrefix": { "alias": "matPrefix"; "required": false; }; "iconPrefixName": { "alias": "iconPrefixName"; "required": false; }; "iconSuffixName": { "alias": "iconSuffixName"; "required": false; }; "numberSuffixName": { "alias": "numberSuffixName"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
14
|
}
|
|
@@ -7,5 +7,5 @@ export declare class ArOnlyDirective {
|
|
|
7
7
|
onPaste(event: any): void;
|
|
8
8
|
onDrop(event: any): void;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArOnlyDirective, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ArOnlyDirective, "[arOnly]", never, {}, {}, never, never,
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ArOnlyDirective, "[arOnly]", never, {}, {}, never, never, true, never>;
|
|
11
11
|
}
|
|
@@ -12,5 +12,5 @@ export declare class MycurrencyDirective implements OnInit {
|
|
|
12
12
|
onBlur(value: any): void;
|
|
13
13
|
onKeyDown(event: any): void;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<MycurrencyDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MycurrencyDirective, "[appMycurrency]", never, { "decimals": { "alias": "decimals"; "required": false; }; }, {}, never, never,
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MycurrencyDirective, "[appMycurrency]", never, { "decimals": { "alias": "decimals"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
16
|
}
|
|
@@ -7,5 +7,5 @@ export declare class EnOnlyDirective {
|
|
|
7
7
|
onPaste(event: any): void;
|
|
8
8
|
onDrop(event: any): void;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<EnOnlyDirective, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<EnOnlyDirective, "[enOnly]", never, {}, {}, never, never,
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<EnOnlyDirective, "[enOnly]", never, {}, {}, never, never, true, never>;
|
|
11
11
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ElementRef } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NumberDirective {
|
|
4
|
+
private el;
|
|
5
|
+
decimals: number;
|
|
6
|
+
constructor(el: ElementRef);
|
|
7
|
+
private check;
|
|
8
|
+
onKeyPress(event: KeyboardEvent): void;
|
|
9
|
+
private run;
|
|
10
|
+
onKeyDown(): void;
|
|
11
|
+
onPaste(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumberDirective, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NumberDirective, "[numberOnly]", never, { "decimals": { "alias": "decimals"; "required": false; }; }, {}, never, never, true, never>;
|
|
14
|
+
}
|
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
|
+
}
|
|
@@ -48,9 +48,11 @@ export declare class CoreService {
|
|
|
48
48
|
private successWm;
|
|
49
49
|
loadFile(...args: any): Promise<import("@angular/common/http").HttpResponse<Object>>;
|
|
50
50
|
dataURItoBlob(dataURI: any): Blob;
|
|
51
|
+
setFlagPriority(id: string): import("rxjs").Observable<any>;
|
|
51
52
|
loadHistory(...args: any[]): import("rxjs").Observable<any>;
|
|
52
53
|
getInboxItem(...args: any[]): import("rxjs").Observable<any>;
|
|
53
54
|
prespectiveApprovers(details: any): import("rxjs").Observable<any>;
|
|
55
|
+
myRequests(details: any): import("rxjs").Observable<any>;
|
|
54
56
|
generalCallApi(body: any, type: string, options: any): import("rxjs").Observable<any>;
|
|
55
57
|
loggedInUserId(): any;
|
|
56
58
|
getShortName(name: string): string | string[];
|
package/package.json
CHANGED
|
@@ -52,6 +52,9 @@ mat-tab-group.vertical {
|
|
|
52
52
|
}
|
|
53
53
|
.mat-form-content {
|
|
54
54
|
width: 100%;
|
|
55
|
+
height: 100%;
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
app-title {
|
|
@@ -87,7 +90,7 @@ app-title {
|
|
|
87
90
|
}
|
|
88
91
|
}
|
|
89
92
|
mat-form-field.mat-mdc-form-field .mat-mdc-form-field-flex {
|
|
90
|
-
|
|
93
|
+
|
|
91
94
|
gap: 5px;
|
|
92
95
|
}
|
|
93
|
-
}
|
|
96
|
+
}
|