UNPKG

@eternalheart/ngx-file-preview

Version:

A powerful Angular file preview component library supporting multiple file formats including images, videos, PDFs, Office documents, text files and more.

41 lines (40 loc) 1.75 kB
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core'; import { PreviewService, ThemeService } from '../../services'; import { Observable } from 'rxjs'; import { AutoThemeConfig, PreviewFile, ThemeMode } from '../../types'; import * as i0 from "@angular/core"; import * as i1 from "../../types/theme.types"; export declare class PreviewModalComponent implements OnInit, OnDestroy { private cdr; private themeService; private previewService; file: PreviewFile; themeMode: ThemeMode; autoThemeConfig?: AutoThemeConfig; isVisible: boolean; currentFile?: PreviewFile; private state$; isControlsVisible: boolean; private controlsTimeout?; private readonly HIDE_DELAY; theme$: Observable<ThemeMode>; private subscription?; loading$: Observable<boolean>; constructor(cdr: ChangeDetectorRef, themeService: ThemeService, previewService: PreviewService); ngOnInit(): void; ngOnDestroy(): void; handleKeyboardEvent(event: KeyboardEvent): void; close(): void; previous(): void; next(): void; canShowPrevious(): boolean; canShowNext(): boolean; getCurrentFileInfo(): string; get hasMultipleFiles(): boolean; handleMouseMove(): void; hideControls(): void; toggleTheme(): void; static ɵfac: i0.ɵɵFactoryDeclaration<PreviewModalComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<PreviewModalComponent, "ngx-file-preview-modal", never, { "file": { "alias": "file"; "required": false; }; "themeMode": { "alias": "themeMode"; "required": false; }; "autoThemeConfig": { "alias": "autoThemeConfig"; "required": false; }; }, {}, never, never, true, never>; static ngAcceptInputType_themeMode: i1.ThemeMode | null; }