modal-attachment.component.d.ts
2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import { EventEmitter, OnInit } from '@angular/core';
import { ModalOptions, ModalDirective } from 'ngx-bootstrap';
import { AppConfigService } from '../app-config/app-config.service';
import { Request } from '../_services/request.service';
import { Common } from '../_services/common.service';
import { FormBuilder, FormGroup, AbstractControl } from '@angular/forms';
import { UploadAttachmentComponent } from '../upload-attachment/upload-attachment.component';
import { DateService } from '../_services/date.service';
declare class Options {
/** title ที่ต้องการแสดง */
title?: String;
/** data */
data: any;
mode: any;
downloadToken: any;
/** name ที่ต้องการแสดง */
config: any;
}
export declare class ModalAttachmentComponent extends Options implements OnInit {
private appConfigService;
private request;
private formBuilder;
common: Common;
date: DateService;
isImage: boolean;
onModalCreateSubmit: EventEmitter<{}>;
onModalEditSubmit: EventEmitter<{}>;
modal: ModalDirective;
uploadAttachment: UploadAttachmentComponent;
registerForm: FormGroup;
control: AbstractControl;
submitted: boolean;
title: any;
selectList: any;
modalConfig: ModalOptions;
th: any;
isMore: boolean;
moreField: any;
config: any;
attachmentData: any;
tmpData: any;
filteredDepartments: any;
departmentList: any;
attachmentUrl: any;
disabledForm: boolean;
isOpen: boolean;
isEnable: boolean;
constructor(appConfigService: AppConfigService, request: Request, formBuilder: FormBuilder, common: Common, date: DateService);
ngOnInit(): void;
open(options?: Options): Promise<void>;
f(): {
[key: string]: AbstractControl;
};
closeModal(): void;
onYesClick(modal: any): void;
onNoClick(modal: any): void;
onHidden($event: ModalDirective): void;
checkExtraField(): void;
onCellPrepared(e: any): void;
addField(data: any, required: any): void;
getValidateMoreField(i: any, field: any, validateType?: any): any;
getRowIndex(data: any): any;
onSubmit(): Promise<void>;
onUploaded(data: any): void;
clickUrl(): Promise<void>;
getImageLink(data: any): string;
}
export {};