UNPKG

@ohayojp.com/components

Version:

Common business components of ohayojp.

26 lines (25 loc) 956 B
import { Platform } from '@angular/cdk/platform'; import { ElementRef, OnChanges, OnInit, SimpleChange, SimpleChanges } from '@angular/core'; import { _HttpClient } from '@ohayojp.com/theme'; import { OhayoConfigService, BooleanInput, NumberInput } from '@ohayojp.com/util'; export declare class ImageDirective implements OnChanges, OnInit { private http; private platform; static ngAcceptInputType_size: NumberInput; static ngAcceptInputType_useHttp: BooleanInput; src: string; size: number; error: string; useHttp: boolean; private inited; private imgEl; constructor(el: ElementRef<HTMLImageElement>, configSrv: OhayoConfigService, http: _HttpClient, platform: Platform); ngOnInit(): void; ngOnChanges(changes: { [P in keyof this]?: SimpleChange; } & SimpleChanges): void; private update; private getByHttp; private updateError; private setError; }