UNPKG

inet-ui

Version:

iNet Angular UI === [![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][downloads-url]

39 lines (38 loc) 1.38 kB
import { NavigationExtras, Router } from '@angular/router'; import { HttpClientService } from "inet-core"; import { FileFormatService } from "./file-format.service"; import * as i0 from "@angular/core"; export declare class ViewerService { private router; private formatService; private http; private static files; private routerPath; private downloadUrl; private emitLoadSource; loadEmitted: import("rxjs").Observable<any>; constructor(router: Router, formatService: FileFormatService, http: HttpClientService); setRouterPath(v: string): void; getRouterPath(): string; setDownloadUrl(v: string): void; getDownloadUrl(): string; open(ext: string, docId: string, extras?: NavigationExtras): void; hasNameInPlugin(name: string): boolean; hasViewerInBrowser(): boolean; hasEdit(ext: string): boolean; hasView(ext: string): boolean; downloadById(docId: string): void; setFiles(v: any): void; getFiles(): any[]; /** * Returns true if this url is viewer module, false otherwise * @param url - the give URL */ isViewerModuleByUrl(url: string): boolean; /** * Fire event when document loaded * */ sendEvent($event: any): void; static ɵfac: i0.ɵɵFactoryDeclaration<ViewerService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ViewerService>; }