bpm-core 0.0.55 → 0.0.56
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/activities/activities.component.mjs +13 -10
- package/esm2022/lib/components/app-component-sections/approvals-workflow/approvals-workflow.component.mjs +5 -3
- package/esm2022/lib/components/app-component-sections/feedback-section/feedback-section.component.mjs +7 -5
- package/esm2022/lib/components/app-component-sections/form-section/form-section.component.mjs +5 -3
- package/esm2022/lib/components/app-component-sections/previous-requests/previous-requests.component.mjs +196 -36
- package/esm2022/lib/components/app-component-sections/service-header/service-header.component.mjs +5 -3
- package/esm2022/lib/components/app-component-sections/workflow-section/workflow-section.component.mjs +5 -3
- package/esm2022/lib/components/shared-components/action-buttons/action-buttons.component.mjs +6 -4
- package/esm2022/lib/components/shared-components/form-field/add-attachment-section/add-attachment-section.component.mjs +5 -3
- package/esm2022/lib/components/shared-components/form-field/attachment-section/attachment-section.component.mjs +5 -3
- package/esm2022/lib/components/shared-components/form-field/date-range-picker/date-range-picker.component.mjs +3 -3
- package/esm2022/lib/components/shared-components/form-field/doc-uploader/docs-uploader.component.mjs +6 -4
- package/esm2022/lib/components/shared-components/form-field/search-employee/search-employee.component.mjs +5 -3
- package/esm2022/lib/components/shared-components/table/table.component.mjs +240 -0
- package/esm2022/lib/directives/skip-location.directive.mjs +28 -0
- package/esm2022/lib/enums/actions.enum.mjs +21 -0
- package/esm2022/lib/enums/colors.enum.mjs +6 -0
- package/esm2022/lib/enums/events.enum.mjs +6 -0
- package/esm2022/lib/helpers/shared.helper.mjs +26 -0
- package/esm2022/lib/interfaces/action.interface.mjs +2 -0
- package/esm2022/lib/regex/index.mjs +2 -0
- package/esm2022/lib/services/core.service.ts.mjs +7 -5
- package/esm2022/lib/testComponent/general-approver-section/general-approver-section.component.mjs +5 -3
- package/esm2022/lib/testComponent/request-details-section/request-details-section.component.mjs +7 -4
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/bpm-core.mjs +241 -67
- package/fesm2022/bpm-core.mjs.map +1 -1
- package/lib/components/app-component-sections/approvals-workflow/approvals-workflow.component.d.ts +2 -0
- package/lib/components/app-component-sections/feedback-section/feedback-section.component.d.ts +2 -1
- package/lib/components/app-component-sections/form-section/form-section.component.d.ts +2 -1
- package/lib/components/app-component-sections/previous-requests/previous-requests.component.d.ts +123 -1
- package/lib/components/app-component-sections/service-header/service-header.component.d.ts +2 -1
- package/lib/components/app-component-sections/workflow-section/workflow-section.component.d.ts +2 -1
- package/lib/components/shared-components/action-buttons/action-buttons.component.d.ts +2 -1
- package/lib/components/shared-components/form-field/add-attachment-section/add-attachment-section.component.d.ts +2 -1
- package/lib/components/shared-components/form-field/attachment-section/attachment-section.component.d.ts +2 -1
- package/lib/components/shared-components/form-field/doc-uploader/docs-uploader.component.d.ts +2 -1
- package/lib/components/shared-components/form-field/search-employee/search-employee.component.d.ts +2 -1
- package/lib/components/shared-components/form-field/shared-imports.d.ts +2 -2
- package/lib/components/shared-components/table/table.component.d.ts +76 -0
- package/lib/directives/skip-location.directive.d.ts +10 -0
- package/lib/enums/actions.enum.d.ts +19 -0
- package/lib/enums/colors.enum.d.ts +4 -0
- package/lib/enums/events.enum.d.ts +4 -0
- package/lib/helpers/shared.helper.d.ts +1 -0
- package/lib/interfaces/action.interface.d.ts +7 -0
- package/lib/regex/index.d.ts +1 -0
- package/lib/services/core.service.ts.d.ts +2 -0
- package/lib/testComponent/general-approver-section/general-approver-section.component.d.ts +2 -1
- package/lib/testComponent/request-details-section/request-details-section.component.d.ts +2 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
package/lib/components/app-component-sections/approvals-workflow/approvals-workflow.component.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DestroyRef } from '@angular/core';
|
|
1
2
|
import { CoreI18nService, CoreService, SidenavService } from '../../../services';
|
|
2
3
|
import { Form, Section } from '../../../interfaces';
|
|
3
4
|
import { ToastrService } from "ngx-toastr";
|
|
@@ -11,6 +12,7 @@ export declare class ApprovalsWorkflowComponent {
|
|
|
11
12
|
form: Form;
|
|
12
13
|
approvals: unknown[];
|
|
13
14
|
loading: boolean;
|
|
15
|
+
destroyRef: DestroyRef;
|
|
14
16
|
constructor(i18n: CoreI18nService, sidenavService: SidenavService, coreService: CoreService, toasterService: ToastrService);
|
|
15
17
|
getApprovals(): void;
|
|
16
18
|
isLoading(): boolean;
|
package/lib/components/app-component-sections/feedback-section/feedback-section.component.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { DestroyRef, OnInit } from '@angular/core';
|
|
2
2
|
import { CoreI18nService } from '../../../services';
|
|
3
3
|
import { Form, InboxItem, ProfileInfoDrop } from '../../../interfaces';
|
|
4
4
|
import { FeedBackService } from "../../../services";
|
|
@@ -19,6 +19,7 @@ export declare class FeedbackSectionComponent implements OnInit {
|
|
|
19
19
|
isResponseValidated: boolean;
|
|
20
20
|
employeeInput: string;
|
|
21
21
|
feedbackId: string;
|
|
22
|
+
destroyRef: DestroyRef;
|
|
22
23
|
constructor(feedBackService: FeedBackService, i18n: CoreI18nService, data: any);
|
|
23
24
|
ngOnInit(): void;
|
|
24
25
|
getFeedBack(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { DestroyRef, OnInit } from '@angular/core';
|
|
2
2
|
import { CoreI18nService, CoreService, SidenavService } from '../../../services';
|
|
3
3
|
import { Form, Section } from '../../../interfaces';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -29,6 +29,7 @@ export declare class FormSectionComponent implements OnInit {
|
|
|
29
29
|
};
|
|
30
30
|
input: any;
|
|
31
31
|
processingDate: string;
|
|
32
|
+
destroyRef: DestroyRef;
|
|
32
33
|
constructor(i18n: CoreI18nService, coreService: CoreService, sidenavService: SidenavService);
|
|
33
34
|
/**
|
|
34
35
|
* Method to initialize various components when the component is initialized.
|
package/lib/components/app-component-sections/previous-requests/previous-requests.component.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, OnInit } from "@angular/core";
|
|
1
|
+
import { AfterViewInit, DestroyRef, OnInit } from "@angular/core";
|
|
2
2
|
import { MatDialog } from "@angular/material/dialog";
|
|
3
3
|
import { FormBuilder, FormGroup } from "@angular/forms";
|
|
4
4
|
import { CoreI18nService, CoreService, SidenavService } from "../../../services";
|
|
@@ -12,6 +12,7 @@ export declare class PreviousRequestsComponent implements OnInit, AfterViewInit
|
|
|
12
12
|
i18n: CoreI18nService;
|
|
13
13
|
private readonly fb;
|
|
14
14
|
previousRequests: any[];
|
|
15
|
+
destroyRef: DestroyRef;
|
|
15
16
|
loading: boolean;
|
|
16
17
|
filterFormGroup: FormGroup;
|
|
17
18
|
errorMessage: string;
|
|
@@ -30,14 +31,135 @@ export declare class PreviousRequestsComponent implements OnInit, AfterViewInit
|
|
|
30
31
|
month: any;
|
|
31
32
|
};
|
|
32
33
|
constructor(dialog: MatDialog, sidenavService: SidenavService, coreService: CoreService, toasterService: ToastrService, i18n: CoreI18nService, fb: FormBuilder);
|
|
34
|
+
/**
|
|
35
|
+
* Initializes the component on initialization.
|
|
36
|
+
* It creates a form and sets the available statuses based on the current language.
|
|
37
|
+
*
|
|
38
|
+
* @return {void}
|
|
39
|
+
*/
|
|
33
40
|
ngOnInit(): void;
|
|
41
|
+
private readonly ngUnsubscribe;
|
|
42
|
+
/**
|
|
43
|
+
* Generates form controls for the current month and year.
|
|
44
|
+
*
|
|
45
|
+
* @return {object} An object containing form controls for the current month and year.
|
|
46
|
+
* - month: FormControl for the current month with Validators required
|
|
47
|
+
* - year: FormControl for the current year with Validators required
|
|
48
|
+
*/
|
|
49
|
+
private currentDateControl;
|
|
50
|
+
/**
|
|
51
|
+
* Initializes a form group for filtering data.
|
|
52
|
+
* It creates form controls for the current date and status.
|
|
53
|
+
* Also sets up a subscription to listen for changes in the status control.
|
|
54
|
+
*
|
|
55
|
+
* @return {void}
|
|
56
|
+
*/
|
|
34
57
|
createForm(): void;
|
|
58
|
+
/**
|
|
59
|
+
* Perform initialization after Angular has fully initialized a component's view.
|
|
60
|
+
*
|
|
61
|
+
* @return {void}
|
|
62
|
+
*/
|
|
35
63
|
ngAfterViewInit(): void;
|
|
64
|
+
/**
|
|
65
|
+
* Clear all filters and reset the form group to its initial state.
|
|
66
|
+
* Sets the month and year filters to the current date's month and year respectively.
|
|
67
|
+
* Sets the status filter to an empty string.
|
|
68
|
+
* Toggles the isOpen property and triggers the filterStatus method.
|
|
69
|
+
*
|
|
70
|
+
* @return {void}
|
|
71
|
+
*/
|
|
36
72
|
clearFilters(): void;
|
|
73
|
+
/**
|
|
74
|
+
* Toggles the isOpen property and triggers the getRequests() method.
|
|
75
|
+
*
|
|
76
|
+
* @return {void}
|
|
77
|
+
*/
|
|
37
78
|
applyFilters(): void;
|
|
79
|
+
/**
|
|
80
|
+
* Retrieves request data based on form values.
|
|
81
|
+
*
|
|
82
|
+
* @return {void}
|
|
83
|
+
*/
|
|
38
84
|
getRequests(): void;
|
|
85
|
+
/**
|
|
86
|
+
* Retrieves the form values including the year and month.
|
|
87
|
+
*
|
|
88
|
+
* @return {Object} Returns an object containing the year and month values.
|
|
89
|
+
*/
|
|
90
|
+
getFormValues(): {
|
|
91
|
+
year: number;
|
|
92
|
+
month: number;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Retrieves the selected year value from the filter form group.
|
|
96
|
+
*
|
|
97
|
+
* @return The selected year value as a number.
|
|
98
|
+
*/
|
|
99
|
+
private getYearValue;
|
|
100
|
+
/**
|
|
101
|
+
* Retrieves the month value from the filter form group.
|
|
102
|
+
*
|
|
103
|
+
* @return {number} The month value retrieved from the form group.
|
|
104
|
+
*/
|
|
105
|
+
private getMonthValue;
|
|
106
|
+
/**
|
|
107
|
+
* Checks if the year and month values of two form objects are equal.
|
|
108
|
+
*
|
|
109
|
+
* @param {Object} first - The first form object to compare.
|
|
110
|
+
* @param {Object} second - The second form object to compare.
|
|
111
|
+
* @returns {boolean} - true if the year and month values are equal, otherwise false.
|
|
112
|
+
*/
|
|
113
|
+
areFormValuesEqual(first: any, second: any): boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Update the search data with the provided data.
|
|
116
|
+
*
|
|
117
|
+
* @param {Object} data - The new search data to update.
|
|
118
|
+
*
|
|
119
|
+
* @return {void}
|
|
120
|
+
*/
|
|
121
|
+
updateSearchData(data: any): void;
|
|
122
|
+
/**
|
|
123
|
+
* Sends a request to retrieve core data using the Core Service API.
|
|
124
|
+
* Initializes loading and requests before making the call.
|
|
125
|
+
*
|
|
126
|
+
* @return {void}
|
|
127
|
+
*/
|
|
128
|
+
requestCoreData(): void;
|
|
129
|
+
/**
|
|
130
|
+
* Initializes loading and requests.
|
|
131
|
+
*
|
|
132
|
+
* @return {void}
|
|
133
|
+
*/
|
|
134
|
+
initializeLoadingAndRequests(): void;
|
|
135
|
+
/**
|
|
136
|
+
* Handles successful response from a request.
|
|
137
|
+
*
|
|
138
|
+
* @param {Object} response - The response object containing history data.
|
|
139
|
+
* @return {void}
|
|
140
|
+
*/
|
|
141
|
+
handleRequestSuccess(response: any): void;
|
|
142
|
+
/**
|
|
143
|
+
* Handles the error received from a request
|
|
144
|
+
*
|
|
145
|
+
* @param {Object} err - The error object containing information about the error
|
|
146
|
+
* @return {void}
|
|
147
|
+
*/
|
|
148
|
+
handleRequestError(err: any): void;
|
|
149
|
+
/**
|
|
150
|
+
* Filters the previous requests based on the status selected in the filter form.
|
|
151
|
+
*
|
|
152
|
+
* @return {void}
|
|
153
|
+
*/
|
|
39
154
|
filterStatus(): void;
|
|
155
|
+
/**
|
|
156
|
+
* Opens a form in a new window based on the provided form ID.
|
|
157
|
+
*
|
|
158
|
+
* @param {string} formId - The ID of the form to be opened.
|
|
159
|
+
* @return {void}
|
|
160
|
+
*/
|
|
40
161
|
viewForm(formId: string): void;
|
|
162
|
+
ngOnDestroy(): void;
|
|
41
163
|
static ɵfac: i0.ɵɵFactoryDeclaration<PreviousRequestsComponent, never>;
|
|
42
164
|
static ɵcmp: i0.ɵɵComponentDeclaration<PreviousRequestsComponent, "app-history", never, {}, {}, never, never, true, never>;
|
|
43
165
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, DestroyRef } 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';
|
|
@@ -31,6 +31,7 @@ export declare class ServiceHeaderComponent implements AfterViewInit {
|
|
|
31
31
|
serviceFaq: any[];
|
|
32
32
|
approvals: any[];
|
|
33
33
|
flagPriority: string;
|
|
34
|
+
destroyRef: DestroyRef;
|
|
34
35
|
constructor(cdRef: ChangeDetectorRef, coreService: CoreService, i18n: CoreI18nService, feedBackService: FeedBackService, dialog: MatDialog, sidenavService: SidenavService, toasterService: ToastrService);
|
|
35
36
|
/**
|
|
36
37
|
* Executes after the view has been fully initialized.
|
package/lib/components/app-component-sections/workflow-section/workflow-section.component.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, DestroyRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { NgForm } from '@angular/forms';
|
|
3
3
|
import { Form, Section } from '../../../interfaces';
|
|
4
4
|
import { CoreI18nService } from '../../../services';
|
|
@@ -19,6 +19,7 @@ export declare class WorkflowSectionComponent {
|
|
|
19
19
|
segmentDynamicLoaderService: any;
|
|
20
20
|
sectionFormComponent: any;
|
|
21
21
|
sectionName: string;
|
|
22
|
+
destroyRef: DestroyRef;
|
|
22
23
|
constructor(i18n: CoreI18nService, cdRef: ChangeDetectorRef);
|
|
23
24
|
ngAfterViewChecked(): void;
|
|
24
25
|
get isExpandableFromBackend(): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, DestroyRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { ActionStateService, CoreI18nService, CoreService } from "../../../services";
|
|
3
3
|
import { Form, Section } from "../../../interfaces";
|
|
4
4
|
import { MatDialog } from "@angular/material/dialog";
|
|
@@ -29,6 +29,7 @@ export declare class ActionButtonsComponent implements AfterViewInit {
|
|
|
29
29
|
SUBMIT: boolean;
|
|
30
30
|
};
|
|
31
31
|
submittingForm: boolean;
|
|
32
|
+
destroyRef: DestroyRef;
|
|
32
33
|
constructor(i18n: CoreI18nService, actionStateService: ActionStateService, coreService: CoreService, dialog: MatDialog, toasterService: ToastrService, cdRef: ChangeDetectorRef);
|
|
33
34
|
ngAfterViewInit(): void;
|
|
34
35
|
resetForm(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
1
|
+
import { DestroyRef, Injector } from '@angular/core';
|
|
2
2
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
3
|
import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
|
|
4
4
|
import { Section } from '../../../../interfaces';
|
|
@@ -17,6 +17,7 @@ export declare class AttachmentSectionDataComponent<Type> extends ControlValueAc
|
|
|
17
17
|
hasColumnBreak: boolean;
|
|
18
18
|
section: Section;
|
|
19
19
|
formGroup: FormGroup;
|
|
20
|
+
destroyRef: DestroyRef;
|
|
20
21
|
constructor(injector: Injector, i18n: CoreI18nService, toasterService: ToastrService, coreService: CoreService, sanitizer: DomSanitizer, fb: FormBuilder, dialogRef: MatDialogRef<any>, dialogData: any);
|
|
21
22
|
ngOnInit(): void;
|
|
22
23
|
createForm(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, EventEmitter } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, DestroyRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
3
3
|
import { ControlValueAccessorDirective } from "../control-value-accessor.directive";
|
|
4
4
|
import { MatDialog } from "@angular/material/dialog";
|
|
@@ -23,6 +23,7 @@ export declare class AttachmentSectionComponent extends ControlValueAccessorDire
|
|
|
23
23
|
totalRecords: number;
|
|
24
24
|
pageSize: number;
|
|
25
25
|
pageNumber: number;
|
|
26
|
+
destroyRef: DestroyRef;
|
|
26
27
|
ngOnInit(): void;
|
|
27
28
|
ngAfterViewInit(): void;
|
|
28
29
|
onPaginateChange(event: any): void;
|
package/lib/components/shared-components/form-field/doc-uploader/docs-uploader.component.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { DestroyRef, ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { DocumentFile } from '../../../../interfaces';
|
|
3
3
|
import { FormGroup } from '@angular/forms';
|
|
4
4
|
import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
|
|
@@ -53,6 +53,7 @@ export declare class DocsUploaderComponent<Type> extends ControlValueAccessorDir
|
|
|
53
53
|
maxSize: string;
|
|
54
54
|
inputFile: ElementRef;
|
|
55
55
|
dialog: MatDialog;
|
|
56
|
+
destroyRef: DestroyRef;
|
|
56
57
|
private readonly validImageTypes;
|
|
57
58
|
validImgPdfTypes: {
|
|
58
59
|
pdf: string[];
|
package/lib/components/shared-components/form-field/search-employee/search-employee.component.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { DestroyRef, 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 SearchEmployeeComponent<Type> extends ControlValueAccessorDirective<Type> {
|
|
@@ -18,6 +18,7 @@ export declare class SearchEmployeeComponent<Type> extends ControlValueAccessorD
|
|
|
18
18
|
isUniqueUsers: boolean;
|
|
19
19
|
userAlreadyExist: boolean;
|
|
20
20
|
emitedDeletedValue: EventEmitter<any>;
|
|
21
|
+
destroyRef: DestroyRef;
|
|
21
22
|
deleteRow(ind: number, rowData: any): void;
|
|
22
23
|
onLoadOptions(event: any): void;
|
|
23
24
|
includeData(option: any, filterValue: string): any;
|
|
@@ -9,6 +9,6 @@ import { EnOnlyDirective } from "../../../directives/en.directive";
|
|
|
9
9
|
import { ArOnlyDirective } from "../../../directives/ar.directive";
|
|
10
10
|
import { NgClass } from "@angular/common";
|
|
11
11
|
export declare const MatDatePickerImports: (typeof MatDatepickerInput | typeof MatDatepickerToggle | typeof MatDatepickerModule)[];
|
|
12
|
-
export declare const MatFormImports: (typeof
|
|
13
|
-
export declare const Shareds: (typeof NgClass | typeof
|
|
12
|
+
export declare const MatFormImports: (typeof MatFormField | typeof MatInput | typeof MatFormFieldModule)[];
|
|
13
|
+
export declare const Shareds: (typeof NgClass | typeof FormLabelComponent | typeof ValidationErrorsComponent | typeof InfoItemComponent | typeof ReactiveFormsModule)[];
|
|
14
14
|
export declare const TextLanguageDirectives: (typeof EnOnlyDirective | typeof ArOnlyDirective)[];
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
4
|
+
import { MatPaginator, PageEvent } from '@angular/material/paginator';
|
|
5
|
+
import { MatSort, Sort } from '@angular/material/sort';
|
|
6
|
+
import { MatTableDataSource } from '@angular/material/table';
|
|
7
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
8
|
+
import { ActionModel } from '../../../interfaces/action.interface';
|
|
9
|
+
import { Actions } from '../../../enums/actions.enum';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class TableComponent implements OnInit {
|
|
12
|
+
dialog: MatDialog;
|
|
13
|
+
translateService: TranslateService;
|
|
14
|
+
private fb;
|
|
15
|
+
matTableRef: ElementRef;
|
|
16
|
+
control: FormControl<any>;
|
|
17
|
+
serviceDetailForm: FormGroup;
|
|
18
|
+
columns: any;
|
|
19
|
+
isError: any;
|
|
20
|
+
isLoading: any;
|
|
21
|
+
customMessage: string;
|
|
22
|
+
columnsConfig: any;
|
|
23
|
+
loadData: any;
|
|
24
|
+
actions: ActionModel[];
|
|
25
|
+
className: string;
|
|
26
|
+
totalElements: number;
|
|
27
|
+
showPagination: boolean;
|
|
28
|
+
pageIndex: number;
|
|
29
|
+
pageSize: number;
|
|
30
|
+
sortDisabled: boolean;
|
|
31
|
+
useScroll: boolean;
|
|
32
|
+
serviceRowSelect: EventEmitter<any>;
|
|
33
|
+
selectPage: EventEmitter<any>;
|
|
34
|
+
rowClicked: EventEmitter<any>;
|
|
35
|
+
autoCompleteValueSelected: EventEmitter<any>;
|
|
36
|
+
selectValueSelected: EventEmitter<any>;
|
|
37
|
+
sortChanged: EventEmitter<Sort>;
|
|
38
|
+
inputCellChanged: EventEmitter<any>;
|
|
39
|
+
pageScroll: EventEmitter<any>;
|
|
40
|
+
toggleChanged: EventEmitter<any>;
|
|
41
|
+
eventClicked: EventEmitter<any>;
|
|
42
|
+
dataSource: MatTableDataSource<any, MatPaginator>;
|
|
43
|
+
tableSort: MatSort;
|
|
44
|
+
localControl: FormControl<any>;
|
|
45
|
+
lang: string;
|
|
46
|
+
spans: any[];
|
|
47
|
+
ctrl: FormControl<any>;
|
|
48
|
+
protected readonly Actions: typeof Actions;
|
|
49
|
+
private unSubscribe;
|
|
50
|
+
hasPaginator: boolean;
|
|
51
|
+
currentPage: number;
|
|
52
|
+
pageChange: EventEmitter<any>;
|
|
53
|
+
form: FormGroup;
|
|
54
|
+
constructor(dialog: MatDialog, translateService: TranslateService, fb: FormBuilder);
|
|
55
|
+
set keyWord(value: string);
|
|
56
|
+
_rows: any;
|
|
57
|
+
get rows(): any;
|
|
58
|
+
set rows(value: any);
|
|
59
|
+
ngOnInit(): void;
|
|
60
|
+
pageChanged(event: PageEvent): void;
|
|
61
|
+
ngAfterViewInit(): void;
|
|
62
|
+
applyFilter(keyWord: string): void;
|
|
63
|
+
truncateName(text: string): string;
|
|
64
|
+
sortChange(sortState: Sort): void;
|
|
65
|
+
mapText(path: string, source: any): any;
|
|
66
|
+
getSlaColor(min: number, max: number): string;
|
|
67
|
+
clickRow(row: any): void;
|
|
68
|
+
emitElement(row: any): void;
|
|
69
|
+
toggleValueChange(e: any, element?: any): void;
|
|
70
|
+
ngOnDestroy(): void;
|
|
71
|
+
parseInt(value: string): number;
|
|
72
|
+
private handleScroll;
|
|
73
|
+
private onTableScroll;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "app-table", never, { "columns": { "alias": "columns"; "required": false; }; "isError": { "alias": "isError"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "customMessage": { "alias": "customMessage"; "required": false; }; "columnsConfig": { "alias": "columnsConfig"; "required": false; }; "loadData": { "alias": "loadData"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "className": { "alias": "className"; "required": false; }; "totalElements": { "alias": "totalElements"; "required": false; }; "showPagination": { "alias": "showPagination"; "required": false; }; "pageIndex": { "alias": "pageIndex"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "sortDisabled": { "alias": "sortDisabled"; "required": false; }; "useScroll": { "alias": "useScroll"; "required": false; }; "hasPaginator": { "alias": "hasPaginator"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "keyWord": { "alias": "keyWord"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; }, { "serviceRowSelect": "serviceRowSelect"; "selectPage": "selectPage"; "rowClicked": "rowClicked"; "autoCompleteValueSelected": "autoCompleteValueSelected"; "selectValueSelected": "selectValueSelected"; "sortChanged": "sortChanged"; "inputCellChanged": "inputCellChanged"; "pageScroll": "pageScroll"; "toggleChanged": "toggleChanged"; "eventClicked": "eventClicked"; "pageChange": "pageChange"; }, never, never, true, never>;
|
|
76
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SkipLocationDirective {
|
|
4
|
+
private router;
|
|
5
|
+
appSkipLocation: any;
|
|
6
|
+
constructor(router: Router);
|
|
7
|
+
onClick(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkipLocationDirective, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SkipLocationDirective, "[appSkipLocation]", never, { "appSkipLocation": { "alias": "appSkipLocation"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum Actions {
|
|
2
|
+
VIEW = "view",
|
|
3
|
+
COPY = "copy",
|
|
4
|
+
EDIT = "edit",
|
|
5
|
+
DELETE = "delete",
|
|
6
|
+
DELETEPENDING = "deletePendingContract",
|
|
7
|
+
CHART = "chart",
|
|
8
|
+
APPROVE = "approve",
|
|
9
|
+
REJECT = "reject",
|
|
10
|
+
DETAILS = "Details",
|
|
11
|
+
START = "Start",
|
|
12
|
+
PREPARE = "Prepare",
|
|
13
|
+
CUSTOMACTION = "customAction",
|
|
14
|
+
CUSTOMACTIONMANAGE = "customActionManage",
|
|
15
|
+
CUSTOMACTIONEXTEND = "customActionExtend",
|
|
16
|
+
CUSTOMACTIONDETAILS = "customActionDetails",
|
|
17
|
+
STATUS = "status",
|
|
18
|
+
ALLOCATE = "allocate"
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function mapTo(path: string, source: any, allowUndefined?: boolean, allowArrayWithSingleValue?: boolean): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './regex-patterns';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from "@angular/common/http";
|
|
2
|
+
import { DestroyRef } from "@angular/core";
|
|
2
3
|
import type { MyLibConfig } from "../interfaces/shared.interface";
|
|
3
4
|
import { Observable } from "rxjs";
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
@@ -22,6 +23,7 @@ export declare class CoreService {
|
|
|
22
23
|
historyDataLoaded: boolean;
|
|
23
24
|
historyData: any[];
|
|
24
25
|
private readonly isMobile;
|
|
26
|
+
destroyRef: DestroyRef;
|
|
25
27
|
constructor(http: HttpClient, config: MyLibConfig);
|
|
26
28
|
getLoggedInUserData(): void;
|
|
27
29
|
loadForm(): Observable<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { DestroyRef, OnInit } from '@angular/core';
|
|
2
2
|
import { Form, Section } from "../../interfaces";
|
|
3
3
|
import { ActionStateService, CoreI18nService } from "../../services";
|
|
4
4
|
import { FormBuilder, FormControl, FormGroup } from "@angular/forms";
|
|
@@ -14,6 +14,7 @@ export declare class GeneralApproverSectionComponent implements OnInit {
|
|
|
14
14
|
className: string;
|
|
15
15
|
fieldsForm: FormGroup;
|
|
16
16
|
numbers: number[];
|
|
17
|
+
destroyRef: DestroyRef;
|
|
17
18
|
formGroup: FormGroup<{
|
|
18
19
|
name: FormControl<string>;
|
|
19
20
|
countries: FormControl<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { DestroyRef, OnInit } from '@angular/core';
|
|
2
2
|
import { Form, Section } from "../../interfaces";
|
|
3
3
|
import { ActionStateService, CoreI18nService } from "../../services";
|
|
4
4
|
import { FormBuilder, FormGroup } from "@angular/forms";
|
|
@@ -21,6 +21,7 @@ export declare class RequestDetailsSectionComponent implements OnInit {
|
|
|
21
21
|
pageSize: number;
|
|
22
22
|
columnsConfig: any[];
|
|
23
23
|
columns: string[];
|
|
24
|
+
destroyRef: DestroyRef;
|
|
24
25
|
isError: boolean;
|
|
25
26
|
categoryData: {
|
|
26
27
|
assetDeviceType: any;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED