bpm-core 0.0.1
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/README.md +30 -0
- package/esm2022/bpm-core.mjs +5 -0
- package/esm2022/lib/classes/form-validation.mjs +80 -0
- package/esm2022/lib/classes/index.mjs +2 -0
- package/esm2022/lib/components/app-component-sections/activities/activities.component.mjs +51 -0
- package/esm2022/lib/components/app-component-sections/comment-section/comment-section.component.mjs +66 -0
- package/esm2022/lib/components/app-component-sections/faq-sidenav/faq-sidenav.component.mjs +29 -0
- package/esm2022/lib/components/app-component-sections/faqs/faqs.component.mjs +32 -0
- package/esm2022/lib/components/app-component-sections/faqs/index.mjs +2 -0
- package/esm2022/lib/components/app-component-sections/feedback-section/feedback-section.component.mjs +236 -0
- package/esm2022/lib/components/app-component-sections/form-section/form-section.component.mjs +270 -0
- package/esm2022/lib/components/app-component-sections/index.mjs +9 -0
- package/esm2022/lib/components/app-component-sections/main-request-details/main-request-details.component.mjs +34 -0
- package/esm2022/lib/components/app-component-sections/profile-section/profile-section.component.mjs +45 -0
- package/esm2022/lib/components/app-component-sections/service-header/service-header.component.mjs +162 -0
- package/esm2022/lib/components/app-component-sections/status/status.component.mjs +38 -0
- package/esm2022/lib/components/app-component-sections/workflow-section/workflow-section.component.mjs +162 -0
- package/esm2022/lib/components/shared-components/confirmation-popup/confirmation-popup.component.mjs +39 -0
- package/esm2022/lib/components/shared-components/delete-popup/delete-popup.component.mjs +19 -0
- package/esm2022/lib/components/shared-components/dialogs/confirm-dialog/confirm-dialog.component.mjs +30 -0
- package/esm2022/lib/components/shared-components/dialogs/delete-dialog/delete-dialog.component.mjs +28 -0
- package/esm2022/lib/components/shared-components/dialogs/submit-dialog/submit-dialog.component.mjs +72 -0
- package/esm2022/lib/components/shared-components/doc-uploader/docs-uploader.component.mjs +686 -0
- package/esm2022/lib/components/shared-components/form-field/add-attachment-section/add-attachment-section.component.mjs +77 -0
- package/esm2022/lib/components/shared-components/form-field/attachment-section/attachment-section.component.mjs +181 -0
- package/esm2022/lib/components/shared-components/form-field/base-component/base-component.component.mjs +198 -0
- package/esm2022/lib/components/shared-components/form-field/checkbox/checkbox.component.mjs +69 -0
- package/esm2022/lib/components/shared-components/form-field/custom-searchable-autocomplete/custom-searchable.component.mjs +201 -0
- package/esm2022/lib/components/shared-components/form-field/date-picker/date-format.mjs +31 -0
- package/esm2022/lib/components/shared-components/form-field/date-picker/date-picker.component.mjs +244 -0
- package/esm2022/lib/components/shared-components/form-field/date-range-picker/date-range-picker.component.mjs +26 -0
- package/esm2022/lib/components/shared-components/form-field/form-label/form-label.component.mjs +31 -0
- package/esm2022/lib/components/shared-components/form-field/index.mjs +25 -0
- package/esm2022/lib/components/shared-components/form-field/info-item/info-item.component.mjs +72 -0
- package/esm2022/lib/components/shared-components/form-field/input/input.component.mjs +155 -0
- package/esm2022/lib/components/shared-components/form-field/input-autocomplete/index.mjs +3 -0
- package/esm2022/lib/components/shared-components/form-field/input-autocomplete/input-autocomplete.model.mjs +2 -0
- package/esm2022/lib/components/shared-components/form-field/input-currency/input-currency.component.mjs +157 -0
- package/esm2022/lib/components/shared-components/form-field/input-email/input-email.component.mjs +114 -0
- package/esm2022/lib/components/shared-components/form-field/input-mask/input-mask.component.mjs +111 -0
- package/esm2022/lib/components/shared-components/form-field/input-number/input-number.component.mjs +153 -0
- package/esm2022/lib/components/shared-components/form-field/input-telephone/input-telephone.component.mjs +176 -0
- package/esm2022/lib/components/shared-components/form-field/radio/radio.component.mjs +38 -0
- package/esm2022/lib/components/shared-components/form-field/repeated-list/repeated-list.component.mjs +32 -0
- package/esm2022/lib/components/shared-components/form-field/search-employee/search-employee.component.mjs +228 -0
- package/esm2022/lib/components/shared-components/form-field/select/select.component.mjs +191 -0
- package/esm2022/lib/components/shared-components/form-field/table-list/table-list.component.mjs +116 -0
- package/esm2022/lib/components/shared-components/form-field/textarea/special-chars.directive.mjs +39 -0
- package/esm2022/lib/components/shared-components/form-field/textarea/textarea.component.mjs +88 -0
- package/esm2022/lib/components/shared-components/form-field/toggle-button/toggle-button.component.mjs +75 -0
- package/esm2022/lib/components/shared-components/index.mjs +10 -0
- package/esm2022/lib/components/shared-components/terms-conditions/terms-conditions.component.mjs +31 -0
- package/esm2022/lib/components/shared-components/title-section/title-section.component.mjs +31 -0
- package/esm2022/lib/constants/constants.mjs +144 -0
- package/esm2022/lib/constants/index.mjs +2 -0
- package/esm2022/lib/environments/environment.local.mjs +27 -0
- package/esm2022/lib/functions/data-to-blob.mjs +12 -0
- package/esm2022/lib/functions/encode-password.mjs +14 -0
- package/esm2022/lib/functions/handel-error-response.mjs +12 -0
- package/esm2022/lib/functions/index.mjs +5 -0
- package/esm2022/lib/functions/is-valid-data.mjs +42 -0
- package/esm2022/lib/hooks/index.mjs +3 -0
- package/esm2022/lib/hooks/load-form.mjs +13 -0
- package/esm2022/lib/hooks/save-form.mjs +18 -0
- package/esm2022/lib/i18n/ar.mjs +183 -0
- package/esm2022/lib/i18n/en.mjs +187 -0
- package/esm2022/lib/i18n/index.mjs +3 -0
- package/esm2022/lib/interfaces/api-response.interface.mjs +2 -0
- package/esm2022/lib/interfaces/document-file.interface.mjs +2 -0
- package/esm2022/lib/interfaces/form-items.interface.mjs +2 -0
- package/esm2022/lib/interfaces/form.interface.mjs +150 -0
- package/esm2022/lib/interfaces/igate-user.interface.mjs +2 -0
- package/esm2022/lib/interfaces/index.mjs +8 -0
- package/esm2022/lib/interfaces/lov-list.interface.mjs +2 -0
- package/esm2022/lib/interfaces/lov.interface.mjs +2 -0
- package/esm2022/lib/interfaces/shared.interface.mjs +2 -0
- package/esm2022/lib/pipes/currency.pipe.mjs +66 -0
- package/esm2022/lib/pipes/format-as-password.pipe.mjs +19 -0
- package/esm2022/lib/pipes/index.mjs +3 -0
- package/esm2022/lib/services/feedBack.service.mjs +80 -0
- package/esm2022/lib/services/i18n.service.mjs +36 -0
- package/esm2022/lib/services/index.mjs +3 -0
- package/esm2022/lib/services/sidenav.service.mjs +69 -0
- package/esm2022/lib/validators/ar.directive.mjs +53 -0
- package/esm2022/lib/validators/currency.directive.mjs +74 -0
- package/esm2022/lib/validators/en.directive.mjs +50 -0
- package/esm2022/lib/validators/id.validator.mjs +66 -0
- package/esm2022/lib/validators/index.mjs +8 -0
- package/esm2022/lib/validators/string-to-boolean.pipe.mjs +16 -0
- package/esm2022/lib/validators/text.directive.mjs +50 -0
- package/esm2022/lib/validators/timer.pipe.mjs +19 -0
- package/esm2022/public-api.mjs +16 -0
- package/fesm2022/bpm-core.mjs +6005 -0
- package/fesm2022/bpm-core.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/classes/form-validation.d.ts +19 -0
- package/lib/classes/index.d.ts +1 -0
- package/lib/components/app-component-sections/activities/activities.component.d.ts +22 -0
- package/lib/components/app-component-sections/comment-section/comment-section.component.d.ts +19 -0
- package/lib/components/app-component-sections/faq-sidenav/faq-sidenav.component.d.ts +13 -0
- package/lib/components/app-component-sections/faqs/faqs.component.d.ts +17 -0
- package/lib/components/app-component-sections/faqs/index.d.ts +1 -0
- package/lib/components/app-component-sections/feedback-section/feedback-section.component.d.ts +38 -0
- package/lib/components/app-component-sections/form-section/form-section.component.d.ts +58 -0
- package/lib/components/app-component-sections/index.d.ts +8 -0
- package/lib/components/app-component-sections/main-request-details/main-request-details.component.d.ts +13 -0
- package/lib/components/app-component-sections/profile-section/profile-section.component.d.ts +17 -0
- package/lib/components/app-component-sections/service-header/service-header.component.d.ts +35 -0
- package/lib/components/app-component-sections/status/status.component.d.ts +23 -0
- package/lib/components/app-component-sections/workflow-section/workflow-section.component.d.ts +29 -0
- package/lib/components/shared-components/confirmation-popup/confirmation-popup.component.d.ts +25 -0
- package/lib/components/shared-components/delete-popup/delete-popup.component.d.ts +6 -0
- package/lib/components/shared-components/dialogs/confirm-dialog/confirm-dialog.component.d.ts +11 -0
- package/lib/components/shared-components/dialogs/delete-dialog/delete-dialog.component.d.ts +11 -0
- package/lib/components/shared-components/dialogs/submit-dialog/submit-dialog.component.d.ts +15 -0
- package/lib/components/shared-components/doc-uploader/docs-uploader.component.d.ts +144 -0
- package/lib/components/shared-components/form-field/add-attachment-section/add-attachment-section.component.d.ts +16 -0
- package/lib/components/shared-components/form-field/attachment-section/attachment-section.component.d.ts +30 -0
- package/lib/components/shared-components/form-field/base-component/base-component.component.d.ts +63 -0
- package/lib/components/shared-components/form-field/checkbox/checkbox.component.d.ts +18 -0
- package/lib/components/shared-components/form-field/custom-searchable-autocomplete/custom-searchable.component.d.ts +29 -0
- package/lib/components/shared-components/form-field/date-picker/date-format.d.ts +17 -0
- package/lib/components/shared-components/form-field/date-picker/date-picker.component.d.ts +41 -0
- package/lib/components/shared-components/form-field/date-range-picker/date-range-picker.component.d.ts +10 -0
- package/lib/components/shared-components/form-field/form-label/form-label.component.d.ts +12 -0
- package/lib/components/shared-components/form-field/index.d.ts +24 -0
- package/lib/components/shared-components/form-field/info-item/info-item.component.d.ts +23 -0
- package/lib/components/shared-components/form-field/input/input.component.d.ts +32 -0
- package/lib/components/shared-components/form-field/input-autocomplete/index.d.ts +1 -0
- package/lib/components/shared-components/form-field/input-autocomplete/input-autocomplete.model.d.ts +6 -0
- package/lib/components/shared-components/form-field/input-currency/input-currency.component.d.ts +31 -0
- package/lib/components/shared-components/form-field/input-email/input-email.component.d.ts +27 -0
- package/lib/components/shared-components/form-field/input-mask/input-mask.component.d.ts +27 -0
- package/lib/components/shared-components/form-field/input-number/input-number.component.d.ts +30 -0
- package/lib/components/shared-components/form-field/input-telephone/input-telephone.component.d.ts +45 -0
- package/lib/components/shared-components/form-field/radio/radio.component.d.ts +10 -0
- package/lib/components/shared-components/form-field/repeated-list/repeated-list.component.d.ts +9 -0
- package/lib/components/shared-components/form-field/search-employee/search-employee.component.d.ts +44 -0
- package/lib/components/shared-components/form-field/select/select.component.d.ts +36 -0
- package/lib/components/shared-components/form-field/table-list/table-list.component.d.ts +26 -0
- package/lib/components/shared-components/form-field/textarea/special-chars.directive.d.ts +10 -0
- package/lib/components/shared-components/form-field/textarea/textarea.component.d.ts +20 -0
- package/lib/components/shared-components/form-field/toggle-button/toggle-button.component.d.ts +20 -0
- package/lib/components/shared-components/index.d.ts +9 -0
- package/lib/components/shared-components/terms-conditions/terms-conditions.component.d.ts +12 -0
- package/lib/components/shared-components/title-section/title-section.component.d.ts +13 -0
- package/lib/constants/constants.d.ts +122 -0
- package/lib/constants/index.d.ts +1 -0
- package/lib/environments/environment.local.d.ts +26 -0
- package/lib/functions/data-to-blob.d.ts +1 -0
- package/lib/functions/encode-password.d.ts +1 -0
- package/lib/functions/handel-error-response.d.ts +4 -0
- package/lib/functions/index.d.ts +4 -0
- package/lib/functions/is-valid-data.d.ts +1 -0
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/load-form.d.ts +10 -0
- package/lib/hooks/save-form.d.ts +15 -0
- package/lib/i18n/ar.d.ts +170 -0
- package/lib/i18n/en.d.ts +174 -0
- package/lib/i18n/index.d.ts +2 -0
- package/lib/interfaces/api-response.interface.d.ts +5 -0
- package/lib/interfaces/document-file.interface.d.ts +12 -0
- package/lib/interfaces/form-items.interface.d.ts +14 -0
- package/lib/interfaces/form.interface.d.ts +95 -0
- package/lib/interfaces/igate-user.interface.d.ts +16 -0
- package/lib/interfaces/index.d.ts +7 -0
- package/lib/interfaces/lov-list.interface.d.ts +10 -0
- package/lib/interfaces/lov.interface.d.ts +19 -0
- package/lib/interfaces/shared.interface.d.ts +21 -0
- package/lib/pipes/currency.pipe.d.ts +13 -0
- package/lib/pipes/format-as-password.pipe.d.ts +7 -0
- package/lib/pipes/index.d.ts +2 -0
- package/lib/services/feedBack.service.d.ts +21 -0
- package/lib/services/i18n.service.d.ts +10 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/sidenav.service.d.ts +28 -0
- package/lib/validators/ar.directive.d.ts +11 -0
- package/lib/validators/currency.directive.d.ts +16 -0
- package/lib/validators/en.directive.d.ts +11 -0
- package/lib/validators/id.validator.d.ts +3 -0
- package/lib/validators/index.d.ts +7 -0
- package/lib/validators/string-to-boolean.pipe.d.ts +7 -0
- package/lib/validators/text.directive.d.ts +12 -0
- package/lib/validators/timer.pipe.d.ts +7 -0
- package/package.json +26 -0
- package/public-api.d.ts +13 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ValidationErrors } from "@angular/forms";
|
|
2
|
+
import { Section } from "../interfaces";
|
|
3
|
+
export type FormAction = 'SUBMIT' | 'APPROVE' | 'REJECT' | 'SENDBACK' | 'SAVE_CHANGES' | 'CANCEL' | 'SENDTODO' | string & {};
|
|
4
|
+
export type CustomValidatorFn = (fieldName: string, section: Section, action: FormAction) => ValidationErrors | null;
|
|
5
|
+
export declare class FormValidation {
|
|
6
|
+
private validators;
|
|
7
|
+
constructor(validators: Record<string, CustomValidatorFn[]>);
|
|
8
|
+
isFormValidForAction(section: Section, action: FormAction): boolean;
|
|
9
|
+
logFormControlsValidationStatus(section: Section, action?: FormAction): void;
|
|
10
|
+
}
|
|
11
|
+
export declare class BuiltInCustomValidators {
|
|
12
|
+
static required(fieldName: string, section: Section, action: FormAction): ValidationErrors | null;
|
|
13
|
+
static requiredIfAction(action: FormAction[]): CustomValidatorFn;
|
|
14
|
+
static requiredOnlyWhen(conditionFn: () => boolean): CustomValidatorFn;
|
|
15
|
+
static maxLength(max: number): CustomValidatorFn;
|
|
16
|
+
static minLength(min: number): CustomValidatorFn;
|
|
17
|
+
static ifAction(actions: FormAction[], validators: CustomValidatorFn[]): CustomValidatorFn[];
|
|
18
|
+
static validateOnlyWhen(conditionFn: () => boolean, validators: CustomValidatorFn[]): CustomValidatorFn[];
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './form-validation';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CoreI18nService, SidenavService } from '../../../services';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ActivitiesComponent {
|
|
4
|
+
private sidenavService;
|
|
5
|
+
i18n: CoreI18nService;
|
|
6
|
+
constructor(sidenavService: SidenavService, i18n: CoreI18nService);
|
|
7
|
+
attch(data: any): void;
|
|
8
|
+
downloadFile(event: {
|
|
9
|
+
target: {
|
|
10
|
+
nextElementSibling: any;
|
|
11
|
+
};
|
|
12
|
+
detail: {
|
|
13
|
+
value: {
|
|
14
|
+
id: any;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}): void;
|
|
18
|
+
dataURItoBlob(dataURI: any): Blob;
|
|
19
|
+
closeSidenav(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActivitiesComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActivitiesComponent, "app-activities", never, {}, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { SidenavService } from '../../../services';
|
|
3
|
+
import { CommentsDrop, Form } from '../../../interfaces';
|
|
4
|
+
import { CoreI18nService } from '../../../services';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CommentSectionComponent {
|
|
7
|
+
i18n: CoreI18nService;
|
|
8
|
+
private sidenavService;
|
|
9
|
+
commentFormVisibility: boolean;
|
|
10
|
+
comments: CommentsDrop[];
|
|
11
|
+
form: Form;
|
|
12
|
+
close: EventEmitter<boolean>;
|
|
13
|
+
constructor(i18n: CoreI18nService, sidenavService: SidenavService);
|
|
14
|
+
CloseMenu(): void;
|
|
15
|
+
downloadAttachment(event: any, field: any): void;
|
|
16
|
+
dataURItoBlob(dataURI: any): Blob;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommentSectionComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommentSectionComponent, "app-comment-section", never, { "commentFormVisibility": { "alias": "commentFormVisibility"; "required": false; }; "comments": { "alias": "comments"; "required": false; }; "form": { "alias": "form"; "required": false; }; }, { "close": "close"; }, never, never, true, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { CoreI18nService, SidenavService } from '../../../services';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FaqSidenavComponent implements OnInit {
|
|
5
|
+
private sidenavService;
|
|
6
|
+
i18n: CoreI18nService;
|
|
7
|
+
data: any[];
|
|
8
|
+
constructor(sidenavService: SidenavService, i18n: CoreI18nService);
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
closeSidenav(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FaqSidenavComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FaqSidenavComponent, "app-faq-sidenav", never, {}, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { CoreI18nService } from '../../../services';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
interface FAQ {
|
|
5
|
+
title: string;
|
|
6
|
+
content: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class FaqsComponent implements OnInit {
|
|
9
|
+
i18n: CoreI18nService;
|
|
10
|
+
adminView: boolean;
|
|
11
|
+
faqs: FAQ[];
|
|
12
|
+
constructor(i18n: CoreI18nService);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FaqsComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FaqsComponent, "app-faqs", never, { "adminView": { "alias": "adminView"; "required": false; }; "faqs": { "alias": "faqs"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './faqs.component';
|
package/lib/components/app-component-sections/feedback-section/feedback-section.component.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { CoreI18nService } from '../../../services';
|
|
3
|
+
import { Form, InboxItem, ProfileInfoDrop } from '../../../interfaces';
|
|
4
|
+
import { FeedBackService } from "../../../services/feedBack.service";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FeedbackSectionComponent implements OnInit {
|
|
7
|
+
feedBackService: FeedBackService;
|
|
8
|
+
i18n: CoreI18nService;
|
|
9
|
+
data: any;
|
|
10
|
+
inboxItem: InboxItem;
|
|
11
|
+
profile: ProfileInfoDrop;
|
|
12
|
+
form: Form;
|
|
13
|
+
searchEmp: any;
|
|
14
|
+
submitted: boolean;
|
|
15
|
+
feedbackStatus: string;
|
|
16
|
+
feedBackQuestion: string;
|
|
17
|
+
feedBackResponse: string;
|
|
18
|
+
isFeedbackValidated: boolean;
|
|
19
|
+
isResponseValidated: boolean;
|
|
20
|
+
employeeInput: string;
|
|
21
|
+
feedbackId: string;
|
|
22
|
+
constructor(feedBackService: FeedBackService, i18n: CoreI18nService, data: any);
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
getFeedBack(): void;
|
|
25
|
+
addFeedback(): void;
|
|
26
|
+
addResponse(): void;
|
|
27
|
+
errorOccured: boolean;
|
|
28
|
+
isSubmiting: boolean;
|
|
29
|
+
errorMsg: string;
|
|
30
|
+
showError(Response: any): void;
|
|
31
|
+
handleFeedbackQuestion(event: any): void;
|
|
32
|
+
handleFeedbackResponse(event: any): void;
|
|
33
|
+
handleUserSelected(event: any): void;
|
|
34
|
+
handleResponseValidation(): void;
|
|
35
|
+
handleFeedbackValidation(): void;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FeedbackSectionComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FeedbackSectionComponent, "app-feedback-section", never, { "inboxItem": { "alias": "inboxItem"; "required": false; }; "profile": { "alias": "profile"; "required": false; }; }, {}, never, never, true, never>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { AfterViewChecked, AfterViewInit, OnInit } from '@angular/core';
|
|
2
|
+
import { CoreI18nService } from '../../../services';
|
|
3
|
+
import { Form, Section } from '../../../interfaces';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FormSectionComponent implements OnInit, AfterViewChecked, AfterViewInit {
|
|
6
|
+
i18n: CoreI18nService;
|
|
7
|
+
userType: string;
|
|
8
|
+
popover?: any;
|
|
9
|
+
popoverType: string;
|
|
10
|
+
popoverPosition: {
|
|
11
|
+
top: number;
|
|
12
|
+
left: number;
|
|
13
|
+
};
|
|
14
|
+
requestDetails: Section;
|
|
15
|
+
userPopoverInfo: any;
|
|
16
|
+
section: Section;
|
|
17
|
+
form: Form;
|
|
18
|
+
lov: any;
|
|
19
|
+
isReadOnly: boolean;
|
|
20
|
+
isOpen: boolean;
|
|
21
|
+
isFinalApproval: boolean;
|
|
22
|
+
controllers: any;
|
|
23
|
+
segmentDynamicLoaderService: any;
|
|
24
|
+
sectionFormComponent: any;
|
|
25
|
+
sectionName: string;
|
|
26
|
+
sectionNumber: number;
|
|
27
|
+
sectionStatusValue: string;
|
|
28
|
+
sectionStatusKey: string;
|
|
29
|
+
receipient: {
|
|
30
|
+
isShowing: boolean;
|
|
31
|
+
profile: any;
|
|
32
|
+
};
|
|
33
|
+
delegate: {
|
|
34
|
+
isShowing: boolean;
|
|
35
|
+
profile: any;
|
|
36
|
+
};
|
|
37
|
+
input: any;
|
|
38
|
+
highlightFlag: boolean;
|
|
39
|
+
processingDate: string;
|
|
40
|
+
randomID: number;
|
|
41
|
+
constructor(i18n: CoreI18nService);
|
|
42
|
+
ngOnInit(): void;
|
|
43
|
+
ngOnChanges(): void;
|
|
44
|
+
ngAfterViewInit(): void;
|
|
45
|
+
get isExpanded(): boolean;
|
|
46
|
+
ServicesSubScriptions(): void;
|
|
47
|
+
ngAfterViewChecked(): void;
|
|
48
|
+
sectionId(): string;
|
|
49
|
+
getSectionName(): string;
|
|
50
|
+
getFormStepStatus(key: string): string;
|
|
51
|
+
toggleSmallProfileInfo(event: any, personType: any): void;
|
|
52
|
+
statusIconClass(status: string, type: string): "danger" | "warning" | "success" | "close" | "clock" | "check";
|
|
53
|
+
locationHref(hrefLink: any): void;
|
|
54
|
+
statusClass(status: string): "danger" | "warning" | "success";
|
|
55
|
+
statusIcon(status: string): "close" | "clock" | "check";
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormSectionComponent, never>;
|
|
57
|
+
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; }; "isOpen": { "alias": "isOpen"; "required": false; }; "isFinalApproval": { "alias": "isFinalApproval"; "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>;
|
|
58
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './service-header/service-header.component';
|
|
2
|
+
export * from './status/status.component';
|
|
3
|
+
export * from './workflow-section/workflow-section.component';
|
|
4
|
+
export * from './form-section/form-section.component';
|
|
5
|
+
export * from './main-request-details/main-request-details.component';
|
|
6
|
+
export * from './feedback-section/feedback-section.component';
|
|
7
|
+
export * from './profile-section/profile-section.component';
|
|
8
|
+
export * from './comment-section/comment-section.component';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CoreI18nService } from '../../../services';
|
|
2
|
+
import { Form, Section } from '../../../interfaces';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MainRequestDetailsComponent {
|
|
5
|
+
i18n: CoreI18nService;
|
|
6
|
+
section: Section;
|
|
7
|
+
lov: any;
|
|
8
|
+
form: Form;
|
|
9
|
+
constructor(i18n: CoreI18nService);
|
|
10
|
+
get isExpanded(): boolean;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MainRequestDetailsComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MainRequestDetailsComponent, "app-main-request-details", never, { "section": { "alias": "section"; "required": false; }; "lov": { "alias": "lov"; "required": false; }; "form": { "alias": "form"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { CoreI18nService, SidenavService } from '../../../services';
|
|
3
|
+
import { ProfileInfoDrop } from '../../../interfaces';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ProfileSectionComponent {
|
|
6
|
+
i18n: CoreI18nService;
|
|
7
|
+
private readonly sidenavService;
|
|
8
|
+
data: any;
|
|
9
|
+
profileFormVisibility: any;
|
|
10
|
+
profile: ProfileInfoDrop;
|
|
11
|
+
message: any;
|
|
12
|
+
close: EventEmitter<boolean>;
|
|
13
|
+
constructor(i18n: CoreI18nService, sidenavService: SidenavService, data: any);
|
|
14
|
+
closeSidenav(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileSectionComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProfileSectionComponent, "app-profile-section", never, { "profileFormVisibility": { "alias": "profileFormVisibility"; "required": false; }; }, { "close": "close"; }, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
|
2
|
+
import { Form, Section } from '../../../interfaces';
|
|
3
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
4
|
+
import { CoreI18nService, SidenavService } from '../../../services';
|
|
5
|
+
import { FeedBackService } from "../../../services/feedBack.service";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ServiceHeaderComponent implements AfterViewInit {
|
|
8
|
+
i18n: CoreI18nService;
|
|
9
|
+
private feedBackService;
|
|
10
|
+
private readonly dialog;
|
|
11
|
+
private readonly sidenavService;
|
|
12
|
+
form: Form;
|
|
13
|
+
showHistory: boolean;
|
|
14
|
+
isLoading: boolean;
|
|
15
|
+
showApprovalHistory: boolean;
|
|
16
|
+
approvalHistory: any;
|
|
17
|
+
creationDate: string;
|
|
18
|
+
formTitle: string;
|
|
19
|
+
section: Section;
|
|
20
|
+
serviceBrief: any[];
|
|
21
|
+
approvals: any[];
|
|
22
|
+
feedBackIcon: string;
|
|
23
|
+
flagPriority: string;
|
|
24
|
+
constructor(i18n: CoreI18nService, feedBackService: FeedBackService, dialog: MatDialog, sidenavService: SidenavService);
|
|
25
|
+
ngAfterViewInit(): void;
|
|
26
|
+
onCommentsFormClick(): void;
|
|
27
|
+
feedback(): void;
|
|
28
|
+
showUserInfo(): void;
|
|
29
|
+
setFlagPriority(id: string): void;
|
|
30
|
+
statusClass(status: string): "loading" | "danger" | "warning" | "success";
|
|
31
|
+
openFaq(): void;
|
|
32
|
+
getApprovalHistory(): void;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ServiceHeaderComponent, never>;
|
|
34
|
+
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; }; "serviceBrief": { "alias": "serviceBrief"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Form } from '../../../interfaces';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class StatusComponent {
|
|
4
|
+
form: Form;
|
|
5
|
+
statusClass(status: string): {
|
|
6
|
+
status: boolean;
|
|
7
|
+
danger: boolean;
|
|
8
|
+
warning?: undefined;
|
|
9
|
+
success?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
status: boolean;
|
|
12
|
+
warning: boolean;
|
|
13
|
+
danger?: undefined;
|
|
14
|
+
success?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
status: boolean;
|
|
17
|
+
success: string | true;
|
|
18
|
+
danger?: undefined;
|
|
19
|
+
warning?: undefined;
|
|
20
|
+
};
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StatusComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StatusComponent, "app-status", never, { "form": { "alias": "form"; "required": false; }; }, {}, never, never, true, never>;
|
|
23
|
+
}
|
package/lib/components/app-component-sections/workflow-section/workflow-section.component.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { NgForm } from '@angular/forms';
|
|
3
|
+
import { Form, Section } from '../../../interfaces';
|
|
4
|
+
import { CoreI18nService } from '../../../services';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class WorkflowSectionComponent {
|
|
7
|
+
i18n: CoreI18nService;
|
|
8
|
+
private cdRef;
|
|
9
|
+
formStateObject: NgForm;
|
|
10
|
+
sectionSubmitted: EventEmitter<any>;
|
|
11
|
+
sections: Section[];
|
|
12
|
+
isReadOnly: boolean;
|
|
13
|
+
isLoading: boolean;
|
|
14
|
+
form: Form;
|
|
15
|
+
contentClass: string;
|
|
16
|
+
startedListener: boolean;
|
|
17
|
+
sectionsController: any;
|
|
18
|
+
showButtonMenu: boolean;
|
|
19
|
+
segmentDynamicLoaderService: any;
|
|
20
|
+
sectionFormComponent: any;
|
|
21
|
+
sectionName: string;
|
|
22
|
+
constructor(i18n: CoreI18nService, cdRef: ChangeDetectorRef);
|
|
23
|
+
ngAfterViewChecked(): void;
|
|
24
|
+
get isExpandableFromBackend(): boolean;
|
|
25
|
+
buttonTypes(type: any): "" | "red";
|
|
26
|
+
checkButtons(): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WorkflowSectionComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WorkflowSectionComponent, "app-workflow-section", never, { "sections": { "alias": "sections"; "required": false; }; "isReadOnly": { "alias": "isReadOnly"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "form": { "alias": "form"; "required": false; }; "contentClass": { "alias": "contentClass"; "required": false; }; "sectionsController": { "alias": "sectionsController"; "required": false; }; "segmentDynamicLoaderService": { "alias": "segmentDynamicLoaderService"; "required": false; }; "sectionFormComponent": { "alias": "sectionFormComponent"; "required": false; }; "sectionName": { "alias": "sectionName"; "required": false; }; }, { "sectionSubmitted": "sectionSubmitted"; }, never, never, true, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ConfirmationPopupComponent {
|
|
4
|
+
data: {
|
|
5
|
+
title: string;
|
|
6
|
+
id: string;
|
|
7
|
+
confirmText: string;
|
|
8
|
+
moreText: string;
|
|
9
|
+
type: string;
|
|
10
|
+
icon: string;
|
|
11
|
+
};
|
|
12
|
+
dialogRef: MatDialogRef<any>;
|
|
13
|
+
constructor(data: {
|
|
14
|
+
title: string;
|
|
15
|
+
id: string;
|
|
16
|
+
confirmText: string;
|
|
17
|
+
moreText: string;
|
|
18
|
+
type: string;
|
|
19
|
+
icon: string;
|
|
20
|
+
}, dialogRef: MatDialogRef<any>);
|
|
21
|
+
openForm(): void;
|
|
22
|
+
delete(): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationPopupComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationPopupComponent, "app-delete-popup", never, {}, {}, never, never, true, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class DeletePopupComponent {
|
|
3
|
+
constructor();
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DeletePopupComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DeletePopupComponent, "app-delete-popup", never, {}, {}, never, never, true, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import { CoreI18nService } from '../../../../services';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ConfirmDialogComponent {
|
|
5
|
+
dialogRef: MatDialogRef<any>;
|
|
6
|
+
i18n: CoreI18nService;
|
|
7
|
+
constructor(dialogRef: MatDialogRef<any>, i18n: CoreI18nService);
|
|
8
|
+
confirm(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmDialogComponent, "app-confirm-dialog", never, {}, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import { CoreI18nService } from '../../../../services';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DeleteDialogComponent {
|
|
5
|
+
dialogRef: MatDialogRef<any>;
|
|
6
|
+
i18n: CoreI18nService;
|
|
7
|
+
constructor(dialogRef: MatDialogRef<any>, i18n: CoreI18nService);
|
|
8
|
+
delete(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DeleteDialogComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DeleteDialogComponent, "app-delete-dialog", never, {}, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CoreI18nService } from '../../../../services';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SubmitDialogComponent {
|
|
4
|
+
data: any;
|
|
5
|
+
i18n: CoreI18nService;
|
|
6
|
+
successData: any;
|
|
7
|
+
inboxUri: any;
|
|
8
|
+
constructor(data: any, i18n: CoreI18nService);
|
|
9
|
+
backHome(): void;
|
|
10
|
+
getImage(email: string): string;
|
|
11
|
+
viewForm(formId: string, formName?: string): void;
|
|
12
|
+
getStatus(statusKey: string): "danger" | "warning" | "success" | "";
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SubmitDialogComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SubmitDialogComponent, "app-submit-dialog", never, {}, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { BaseComponent } from './../form-field/base-component/base-component.component';
|
|
2
|
+
import { ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { DocumentFile } from '../../../interfaces';
|
|
4
|
+
import { ImageCroppedEvent, ImageTransform, LoadedImage } from 'ngx-image-cropper';
|
|
5
|
+
import { FormGroup } from '@angular/forms';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class DocsUploaderComponent extends BaseComponent implements OnInit, OnChanges {
|
|
8
|
+
maxSizeFlag: boolean;
|
|
9
|
+
maxSizeValue: any;
|
|
10
|
+
wrongExtensionFlag: boolean;
|
|
11
|
+
useCrop: boolean;
|
|
12
|
+
formKey: string;
|
|
13
|
+
showLabel: boolean;
|
|
14
|
+
downloadLink: boolean;
|
|
15
|
+
showActions: boolean;
|
|
16
|
+
styleHeight: string;
|
|
17
|
+
fileInputHeight: string;
|
|
18
|
+
styleWidth: string;
|
|
19
|
+
hints: any;
|
|
20
|
+
label: string;
|
|
21
|
+
callApi: boolean;
|
|
22
|
+
tooltip: string;
|
|
23
|
+
attachments: any[];
|
|
24
|
+
optional: boolean;
|
|
25
|
+
display: string;
|
|
26
|
+
validExtension: boolean;
|
|
27
|
+
attachType: string;
|
|
28
|
+
error: string;
|
|
29
|
+
displayedFiles: DocumentFile[];
|
|
30
|
+
selectedTemplateAttachment: EventEmitter<any>;
|
|
31
|
+
fileNotDuplicated: boolean;
|
|
32
|
+
allowedFileSize: boolean;
|
|
33
|
+
getDataFromTemplate: boolean;
|
|
34
|
+
allowFileContentsWithMultiAttachments: boolean;
|
|
35
|
+
accept: string[];
|
|
36
|
+
wrongFile: {
|
|
37
|
+
mimeType: string;
|
|
38
|
+
fileContents: string;
|
|
39
|
+
fileName: string;
|
|
40
|
+
};
|
|
41
|
+
allAttachments: any[];
|
|
42
|
+
uploadForm: FormGroup;
|
|
43
|
+
signType: string;
|
|
44
|
+
showSignButton: boolean;
|
|
45
|
+
printType: string;
|
|
46
|
+
showPrintButton: boolean;
|
|
47
|
+
downloadType: string;
|
|
48
|
+
showDownloadButton: boolean;
|
|
49
|
+
preventFileContents: boolean;
|
|
50
|
+
addSignatureClicked: EventEmitter<any>;
|
|
51
|
+
printActionClicked: EventEmitter<any>;
|
|
52
|
+
downloadActionClicked: EventEmitter<any>;
|
|
53
|
+
maxSize: string;
|
|
54
|
+
inputFile: ElementRef;
|
|
55
|
+
inputFileName: ElementRef;
|
|
56
|
+
private validImageTypes;
|
|
57
|
+
validImgPdfTypes: {
|
|
58
|
+
pdf: string[];
|
|
59
|
+
jpg: string[];
|
|
60
|
+
JPG: string[];
|
|
61
|
+
jpeg: string[];
|
|
62
|
+
bmp: string[];
|
|
63
|
+
png: string[];
|
|
64
|
+
};
|
|
65
|
+
validFileTypes: {
|
|
66
|
+
pdf: string[];
|
|
67
|
+
doc: string[];
|
|
68
|
+
docx: string[];
|
|
69
|
+
ppt: string[];
|
|
70
|
+
pptx: string[];
|
|
71
|
+
pps: string[];
|
|
72
|
+
ppsx: string[];
|
|
73
|
+
odt: string[];
|
|
74
|
+
xls: string[];
|
|
75
|
+
xlsx: string[];
|
|
76
|
+
zip: string[];
|
|
77
|
+
msg: string[];
|
|
78
|
+
csv: string[];
|
|
79
|
+
txt: string[];
|
|
80
|
+
rtf: string[];
|
|
81
|
+
html: string[];
|
|
82
|
+
mov: string[];
|
|
83
|
+
wmv: string[];
|
|
84
|
+
mpg: string[];
|
|
85
|
+
rmvb: string[];
|
|
86
|
+
jpg: string[];
|
|
87
|
+
jpeg: string[];
|
|
88
|
+
png: string[];
|
|
89
|
+
gif: string[];
|
|
90
|
+
bmp: string[];
|
|
91
|
+
};
|
|
92
|
+
private validPdfTypes;
|
|
93
|
+
uploading: boolean;
|
|
94
|
+
lengthError: boolean;
|
|
95
|
+
scale: number;
|
|
96
|
+
showCropper: boolean;
|
|
97
|
+
containWithinAspectRatio: boolean;
|
|
98
|
+
transform: ImageTransform;
|
|
99
|
+
imageChangedEvent: any;
|
|
100
|
+
croppedImage: any;
|
|
101
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
102
|
+
ngOnInit(): void;
|
|
103
|
+
resetAttachmentData(): void;
|
|
104
|
+
getFileType(attachment: any): string;
|
|
105
|
+
private checkFileType;
|
|
106
|
+
attch(data: any, index: number, field: any): void;
|
|
107
|
+
confirmDelete(index: number): void;
|
|
108
|
+
removeMulti(index: number): void;
|
|
109
|
+
downloadFileNew(fileData: any): void;
|
|
110
|
+
onValueChange(event: any): void;
|
|
111
|
+
fileChangeEvent(event: any): void;
|
|
112
|
+
addAttachments(): void;
|
|
113
|
+
addMultiAttachments(field: any): void;
|
|
114
|
+
checkFileExistance(file: AttatchmentFile): boolean;
|
|
115
|
+
isValidMimeType(value: any): boolean;
|
|
116
|
+
isValidExtension(value: string, type: string): boolean;
|
|
117
|
+
removeAttachedFile(): void;
|
|
118
|
+
downloadFile(event: any, field: any): void;
|
|
119
|
+
printFile(field: any): void;
|
|
120
|
+
addSignature(event: Event): void;
|
|
121
|
+
printFileData(event: any): void;
|
|
122
|
+
downloadFileData(event: any): void;
|
|
123
|
+
dataURItoBlob(dataURI: any): Blob;
|
|
124
|
+
imageCropped(event: ImageCroppedEvent): void;
|
|
125
|
+
imageLoaded(image: LoadedImage): void;
|
|
126
|
+
cropperReady(): void;
|
|
127
|
+
loadImageFailed(): void;
|
|
128
|
+
zoomOut(): void;
|
|
129
|
+
zoomIn(): void;
|
|
130
|
+
getExtension(attachment: any): any;
|
|
131
|
+
private emit;
|
|
132
|
+
private deleteFileContents;
|
|
133
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocsUploaderComponent, never>;
|
|
134
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocsUploaderComponent, "app-file-uploader", never, { "useCrop": { "alias": "useCrop"; "required": false; }; "formKey": { "alias": "formKey"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "downloadLink": { "alias": "downloadLink"; "required": false; }; "showActions": { "alias": "showActions"; "required": false; }; "styleHeight": { "alias": "styleHeight"; "required": false; }; "fileInputHeight": { "alias": "fileInputHeight"; "required": false; }; "styleWidth": { "alias": "styleWidth"; "required": false; }; "hints": { "alias": "hints"; "required": false; }; "label": { "alias": "label"; "required": false; }; "callApi": { "alias": "callApi"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "attachments": { "alias": "attachments"; "required": false; }; "optional": { "alias": "optional"; "required": false; }; "display": { "alias": "display"; "required": false; }; "attachType": { "alias": "attachType"; "required": false; }; "error": { "alias": "error"; "required": false; }; "displayedFiles": { "alias": "displayedFiles"; "required": false; }; "getDataFromTemplate": { "alias": "getDataFromTemplate"; "required": false; }; "allowFileContentsWithMultiAttachments": { "alias": "allowFileContentsWithMultiAttachments"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "signType": { "alias": "signType"; "required": false; }; "showSignButton": { "alias": "showSignButton"; "required": false; }; "printType": { "alias": "printType"; "required": false; }; "showPrintButton": { "alias": "showPrintButton"; "required": false; }; "downloadType": { "alias": "downloadType"; "required": false; }; "showDownloadButton": { "alias": "showDownloadButton"; "required": false; }; "preventFileContents": { "alias": "preventFileContents"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; }, { "selectedTemplateAttachment": "selectedTemplateAttachment"; "addSignatureClicked": "addSignatureClicked"; "printActionClicked": "printActionClicked"; "downloadActionClicked": "downloadActionClicked"; }, never, never, true, never>;
|
|
135
|
+
}
|
|
136
|
+
declare class AttatchmentFile {
|
|
137
|
+
fileName: string;
|
|
138
|
+
name: string;
|
|
139
|
+
mimeType: string;
|
|
140
|
+
fileContents: string;
|
|
141
|
+
filesize: string;
|
|
142
|
+
constructor(fileName: string, name: string, mimeType: string, fileContents: string, filesize: string);
|
|
143
|
+
}
|
|
144
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseComponent } from '../base-component/base-component.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AttachmentSectionDataComponent extends BaseComponent {
|
|
4
|
+
popupData: any;
|
|
5
|
+
popupDataOrg: any;
|
|
6
|
+
uploading: boolean;
|
|
7
|
+
editMode: boolean;
|
|
8
|
+
hasColumnBreak: boolean;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
close(): void;
|
|
11
|
+
handleEmitValue(data: any, fieldName: string): void;
|
|
12
|
+
handleAttachmentEmitValue(data: any): void;
|
|
13
|
+
addAttachments(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AttachmentSectionDataComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentSectionDataComponent, "app-add-attachment-section", never, { "hasColumnBreak": { "alias": "hasColumnBreak"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { BaseComponent } from '../base-component/base-component.component';
|
|
3
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class AttachmentSectionComponent extends BaseComponent {
|
|
6
|
+
className: string;
|
|
7
|
+
attachments: any[];
|
|
8
|
+
label: string;
|
|
9
|
+
attachmentsMax: number;
|
|
10
|
+
isSortable: boolean;
|
|
11
|
+
downloadAll: boolean;
|
|
12
|
+
popupData: any;
|
|
13
|
+
isRequired: boolean;
|
|
14
|
+
placeholderElement: ElementRef;
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
drop(event: CdkDragDrop<string[]>): void;
|
|
17
|
+
resetAttachmentData(): void;
|
|
18
|
+
handleEmitValue(data: any, fieldName: string): void;
|
|
19
|
+
addAttahment(): void;
|
|
20
|
+
deleteAttachments(index: number, item: any): void;
|
|
21
|
+
deleteAttachment(index: number, item: any): void;
|
|
22
|
+
editRow(rowData: any, index: any): void;
|
|
23
|
+
downloadAllAttachments(event: any): void;
|
|
24
|
+
downloadFile(event: any, field: any): void;
|
|
25
|
+
dataURItoBlob(dataURI: any): Blob;
|
|
26
|
+
protected readonly onmouseleave: (this: Window, ev: MouseEvent) => any;
|
|
27
|
+
protected readonly isNaN: typeof isNaN;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AttachmentSectionComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AttachmentSectionComponent, "app-attachment-section", never, { "className": { "alias": "className"; "required": false; }; "attachments": { "alias": "attachments"; "required": false; }; "label": { "alias": "label"; "required": false; }; "attachmentsMax": { "alias": "attachmentsMax"; "required": false; }; "isSortable": { "alias": "isSortable"; "required": false; }; "downloadAll": { "alias": "downloadAll"; "required": false; }; "isRequired": { "alias": "isRequired"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
|
+
}
|