UNPKG

@ohayojp.com/components

Version:

Common business components of ohayojp.

42 lines (41 loc) 1.36 kB
import { AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, OnChanges } from '@angular/core'; import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; import { BooleanInput, NumberInput } from '@ohayojp.com/util'; export declare class EllipsisComponent implements AfterViewInit, OnChanges { private el; private ngZone; private dom; private doc; private cdr; static ngAcceptInputType_tooltip: BooleanInput; static ngAcceptInputType_length: NumberInput; static ngAcceptInputType_lines: NumberInput; static ngAcceptInputType_fullWidthRecognition: BooleanInput; private isSupportLineClamp; private orgEl; private shadowOrgEl; private shadowTextEl; private inited; orgHtml: SafeHtml; type: string; cls: {}; text: string; targetCount: number; tooltip: boolean; length: number; lines: number; fullWidthRecognition: boolean; tail: string; get linsWord(): string; constructor(el: ElementRef, ngZone: NgZone, dom: DomSanitizer, doc: Document, cdr: ChangeDetectorRef); private getStrFullLength; private cutStrByFullLength; private bisection; private genType; private gen; private getEl; private executeOnStable; refresh(): void; ngAfterViewInit(): void; ngOnChanges(): void; }