@taiga-ui/kit
Version:
Taiga UI Angular main components kit
31 lines (30 loc) • 1.58 kB
TypeScript
import { ChangeDetectorRef } from '@angular/core';
import { NgControl } from '@angular/forms';
import { AbstractTuiNullableControl, TuiFocusableElementAccessor, TuiMonth, TuiMonthRange } from '@taiga-ui/cdk';
import { TuiTextfieldSizeDirective, TuiWithOptionalMinMax } from '@taiga-ui/core';
import { TuiMonthContext } from '@taiga-ui/kit/interfaces';
import { TuiBooleanHandlerWithContext } from '@taiga-ui/kit/types';
import { Observable } from 'rxjs';
export declare class TuiInputMonthRangeComponent extends AbstractTuiNullableControl<TuiMonthRange> implements TuiWithOptionalMinMax<TuiMonth>, TuiFocusableElementAccessor {
readonly months$: Observable<readonly string[]>;
private readonly textfieldSize;
min: TuiMonth;
max: TuiMonth;
disabledItemHandler: TuiBooleanHandlerWithContext<TuiMonth, TuiMonthContext>;
open: boolean;
private readonly textfield?;
constructor(control: NgControl | null, changeDetectorRef: ChangeDetectorRef, months$: Observable<readonly string[]>, textfieldSize: TuiTextfieldSizeDirective);
get nativeFocusableElement(): HTMLInputElement | null;
get focused(): boolean;
get calendarIcon(): string;
computeValue(value: TuiMonthRange | null, focused: boolean, months: readonly string[]): string;
get canOpen(): boolean;
onValueChange(value: string): void;
onMonthClick(month: TuiMonth): void;
onHovered(hovered: boolean): void;
onOpenChange(open: boolean): void;
onActiveZone(focused: boolean): void;
setDisabledState(): void;
private formatMonth;
private close;
}