UNPKG

@deepkit/desktop-ui

Version:

Library for desktop UI widgets in Angular 10+

34 lines (33 loc) 1.6 kB
import { ChangeDetectorRef, OnDestroy, PipeTransform } from '@angular/core'; import { Observable, Subscription } from 'rxjs'; import { DomSanitizer, SafeUrl } from '@angular/platform-browser'; import * as i0 from "@angular/core"; /** * Almost the same as |async pipe, but renders directly (detectChanges() instead of marking it only(markForCheck()) * on ChangeDetectorRef. */ export declare class AsyncRenderPipe implements OnDestroy, PipeTransform { protected cd: ChangeDetectorRef; protected subscription?: Subscription; protected lastValue?: any; protected lastReturnedValue?: any; constructor(cd: ChangeDetectorRef); ngOnDestroy(): void; transform<T>(value?: Observable<T> | Promise<T>): T | undefined; static ɵfac: i0.ɵɵFactoryDeclaration<AsyncRenderPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<AsyncRenderPipe, "asyncRender", false>; } export declare class ObjectURLPipe implements PipeTransform, OnDestroy { private sanitizer; protected lastUrl?: string; constructor(sanitizer: DomSanitizer); ngOnDestroy(): void; transform(buffer?: ArrayBuffer | ArrayBufferView, mimeType?: string): SafeUrl | undefined; static ɵfac: i0.ɵɵFactoryDeclaration<ObjectURLPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<ObjectURLPipe, "objectURL", false>; } export declare class HumanFileSizePipe implements PipeTransform { transform(bytes: number, si?: boolean): string; static ɵfac: i0.ɵɵFactoryDeclaration<HumanFileSizePipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<HumanFileSizePipe, "fileSize", false>; }