com.phloxui
Version:
PhloxUI Ng2+ Framework
78 lines (77 loc) • 3.33 kB
TypeScript
import { OnInit, ElementRef, EventEmitter, ApplicationRef } from '@angular/core';
import { NeedFocusService } from '../../../../../service/NeedFocusService.service';
import { ValidationResult } from '../../../../../component/model/ValidationResult';
import { IDroppable } from '../../../../../component/IDroppable';
import { DragDataTransfer } from '../../../../../component/model/DragDataTransfer';
import { FileSelector } from '../../../../../component/dataview/input/FileSelector.component';
import { IHasData } from '../../../../../component/IHasData';
export declare class MaterialFileSelector extends FileSelector implements OnInit, IDroppable {
static readonly TYPE_NAME: string;
protected dataParent: IHasData;
protected ignoreParentData: boolean;
protected data: any;
protected ignoreParentDisabled: boolean;
protected delegateHistory: boolean;
protected onDisabled: Function;
protected onEnabled: Function;
protected loadingEnabled: boolean;
protected i18nKey: string;
protected bypass: boolean;
protected options: any;
protected disabled: boolean;
protected field: string;
protected name: string;
protected typeOfData: string;
protected readOnly: boolean;
protected help: any;
protected maxFilesize: number;
protected allowMultipleSelect: boolean;
protected fileTypes: string[];
protected label: string;
protected description: string;
protected width: string;
protected height: string;
protected loadEvent: EventEmitter<any>;
protected startValidateEvent: EventEmitter<any>;
protected endValidateEvent: EventEmitter<any>;
protected beforeFocusEvent: EventEmitter<any>;
protected focusEvent: EventEmitter<any>;
protected beforeLostFocusEvent: EventEmitter<any>;
protected lostFocusEvent: EventEmitter<any>;
protected beforeChangeEvent: EventEmitter<any>;
protected changeEvent: EventEmitter<any>;
protected beforeSelectEvent: EventEmitter<any>;
protected selectEvent: EventEmitter<any>;
protected originalValue: any;
_bgColor: string;
private _applicationRef;
private _timeout;
constructor(elementRef: ElementRef, needFocusService: NeedFocusService, applicationRef: ApplicationRef);
ngOnInit(): void;
protected onValidationEnd(inputValue: any, results: ValidationResult[]): void;
protected onDataChange(data: any, inputVal: any): void;
protected doFocus($event: Event): void;
protected doLostFocus($event: Event): void;
getAllowMultipleSelect(): boolean;
handleFiles(file: any): void;
openFileSelector(): void;
isSelfDataDirty(): boolean;
selfSaveData(data: any): void;
selfResetData(): void;
getWidth(): string;
setWidth(width: string): string;
getHeight(): string;
setHeight(height: string): string;
getLabel(): string;
setLabel(label: string): string;
getDescription(): string;
setDescription(description: string): string;
isAcceptDragData(event: any, format: string, data: any): boolean;
getDragOverDataTransfer(event: any): DragDataTransfer;
onDragEnter(event: any): void;
onDragOver(event: any): void;
onDragLeave(event: any): void;
onDrop(event: any): void;
onDropAccepted(event: any, data: any): void;
onDropRejected(event: any): void;
}