32 lines
1.8 KiB
TypeScript
32 lines
1.8 KiB
TypeScript
|
|
import { OnChanges, ElementRef, Renderer2, SimpleChanges } from '@angular/core';
|
||
|
|
import { T as TypographyClassOptions, d as TypographyRenderOptions, e as TypographyVariant, c as TypographyColor, f as TypographyWeight, E as EllipsisOptions } from '../types-CQyFuLqp.js';
|
||
|
|
|
||
|
|
type AngularTypographyClassInput = TypographyClassOptions;
|
||
|
|
interface AngularTypographyRenderOptions extends TypographyRenderOptions {
|
||
|
|
preserveStyle?: Record<string, string | number>;
|
||
|
|
}
|
||
|
|
declare const tachAngularTypographyClassName: (options?: AngularTypographyClassInput) => string;
|
||
|
|
declare const tachAngularTypographyClassList: (options?: AngularTypographyClassInput) => string[];
|
||
|
|
declare const tachAngularTypographyStyles: (ellipsis?: EllipsisOptions, preserveStyle?: Record<string, string | number>) => Record<string, string | number>;
|
||
|
|
declare class TachTypographyDirective implements OnChanges {
|
||
|
|
private readonly elementRef;
|
||
|
|
private readonly renderer;
|
||
|
|
tachTypography: TypographyVariant | "" | undefined;
|
||
|
|
tachTypographyVariant: TypographyVariant;
|
||
|
|
tachTypographyColor: TypographyColor;
|
||
|
|
tachTypographyWeight: TypographyWeight;
|
||
|
|
tachTypographyClickable: boolean;
|
||
|
|
tachTypographyClassName: string | undefined;
|
||
|
|
tachTypographyEllipsis: EllipsisOptions | undefined;
|
||
|
|
private readonly appliedClasses;
|
||
|
|
private readonly appliedStyleProperties;
|
||
|
|
constructor(elementRef: ElementRef<HTMLElement>, renderer: Renderer2);
|
||
|
|
ngOnChanges(_changes: SimpleChanges): void;
|
||
|
|
private syncClasses;
|
||
|
|
private syncEllipsisStyles;
|
||
|
|
}
|
||
|
|
declare class TachTypographyNzModule {
|
||
|
|
}
|
||
|
|
|
||
|
|
export { type AngularTypographyClassInput, type AngularTypographyRenderOptions, TachTypographyDirective, TachTypographyNzModule, tachAngularTypographyClassList, tachAngularTypographyClassName, tachAngularTypographyStyles };
|