UNPKG

@wizco/fenixds-ngx

Version:

Componentes fenix design system para Angular.

42 lines 2.29 kB
import { AfterViewChecked, ElementRef, EventEmitter, NgZone } from '@angular/core'; import { PreviewFileActionsTypes, PreviewFileStatusTypes } from './preview-file.types'; import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; import * as i0 from "@angular/core"; export declare class PreviewFileComponent implements AfterViewChecked { private sanitizer; private ngZone; previewFileElement: ElementRef<HTMLDivElement>; filename: string; format: string; preview: boolean; actions: PreviewFileActionsTypes[]; status: PreviewFileStatusTypes; url: string; customContent: boolean; type: 'mini' | 'box'; title: string; set setfile(file: File | null | undefined); clickEvent: EventEmitter<{ action: PreviewFileActionsTypes; data: any; }>; get name(): string | undefined; get _format(): string | undefined; idRandom: string; id: string; y: import("@angular/core").WritableSignal<string | null>; x: import("@angular/core").WritableSignal<string | null>; constructor(sanitizer: DomSanitizer, ngZone: NgZone); ngAfterViewChecked(): void; private transformFiles; transformPDFSecurity(url: string): SafeHtml; private positionThumbnail; actionEvent(action: PreviewFileActionsTypes): void; modalPreview(): void; closeDialog(): void; getIconMaterial(type: string): string; typeFileFormat(): 'pdf' | 'image' | 'video' | 'file'; static ɵfac: i0.ɵɵFactoryDeclaration<PreviewFileComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<PreviewFileComponent, "wco-preview-file", never, { "filename": { "alias": "filename"; "required": false; }; "format": { "alias": "format"; "required": false; }; "preview": { "alias": "preview"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "status": { "alias": "status"; "required": false; }; "url": { "alias": "url"; "required": false; }; "customContent": { "alias": "customContent"; "required": false; }; "type": { "alias": "type"; "required": false; }; "title": { "alias": "title"; "required": false; }; "setfile": { "alias": "setfile"; "required": false; }; }, { "clickEvent": "clickEvent"; }, never, ["*"], true, never>; } //# sourceMappingURL=preview-file.component.d.ts.map