/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { Direction, Directionality } from '@angular/cdk/bidi'; import { CdkConnectedOverlay, ConnectionPositionPair } from '@angular/cdk/overlay'; import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList, Renderer2, TemplateRef } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { VtsConfigKey, VtsConfigService } from '@ui-vts-kit/ng-vts/core/config'; import { VtsNoAnimationDirective } from '@ui-vts-kit/ng-vts/core/no-animation'; import { BooleanInput, NgClassType, NgStyleInterface, VtsSafeAny } from '@ui-vts-kit/ng-vts/core/types'; import { VtsCascaderI18nInterface, VtsI18nService } from '@ui-vts-kit/ng-vts/i18n'; import { VtsCascaderOptionComponent } from './cascader-li.component'; import { VtsCascaderService } from './cascader.service'; import { VtsCascaderComponentAsSource, VtsCascaderExpandTrigger, VtsCascaderOption, VtsCascaderSize, VtsCascaderTriggerType, VtsShowSearchOptions } from './typings'; import * as i0 from "@angular/core"; export declare class VtsCascaderComponent implements VtsCascaderComponentAsSource, OnInit, OnDestroy, ControlValueAccessor { cascaderService: VtsCascaderService; vtsConfigService: VtsConfigService; private cdr; private i18nService; private directionality; noAnimation?: VtsNoAnimationDirective; readonly _vtsModuleName: VtsConfigKey; static ngAcceptInputType_vtsShowInput: BooleanInput; static ngAcceptInputType_vtsShowArrow: BooleanInput; static ngAcceptInputType_vtsAllowClear: BooleanInput; static ngAcceptInputType_vtsAutoFocus: BooleanInput; static ngAcceptInputType_vtsChangeOnSelect: BooleanInput; static ngAcceptInputType_vtsDisabled: BooleanInput; input: ElementRef; menu: ElementRef; overlay: CdkConnectedOverlay; cascaderItems: QueryList; vtsOptionRender: TemplateRef<{ $implicit: VtsCascaderOption; index: number; }> | null; vtsShowInput: boolean; vtsShowArrow: boolean; vtsAllowClear: boolean; vtsAutoFocus: boolean; vtsChangeOnSelect: boolean; vtsDisabled: boolean; vtsColumnClassName?: string; vtsExpandTrigger: VtsCascaderExpandTrigger; vtsValueProperty: string; vtsLabelRender: TemplateRef | null; vtsLabelProperty: string; vtsNoResult?: string | TemplateRef; vtsSize: VtsCascaderSize; vtsBackdrop: boolean; vtsShowSearch: boolean | VtsShowSearchOptions; vtsPlaceHolder: string; vtsMenuClassName?: string; vtsMenuStyle: NgStyleInterface | null; vtsMouseEnterDelay: number; vtsMouseLeaveDelay: number; vtsTriggerAction: VtsCascaderTriggerType | VtsCascaderTriggerType[]; vtsChangeOn?: (option: VtsCascaderOption, level: number) => boolean; vtsLoadData?: (node: VtsCascaderOption, index: number) => PromiseLike; vtsSuffixIcon: string | TemplateRef; vtsExpandIcon: string | TemplateRef; get vtsOptions(): VtsCascaderOption[] | null; set vtsOptions(options: VtsCascaderOption[] | null); readonly vtsVisibleChange: EventEmitter; readonly vtsSelectionChange: EventEmitter; readonly vtsSelect: EventEmitter<{ option: VtsCascaderOption; index: number; }>; readonly vtsClear: EventEmitter; /** * If the dropdown should show the empty content. * `true` if there's no options. */ shouldShowEmpty: boolean; el: HTMLElement; menuVisible: boolean; isLoading: boolean; labelRenderText?: string; labelRenderContext: {}; onChange: Function; onTouched: Function; positions: ConnectionPositionPair[]; /** * Dropdown's with in pixel. */ dropdownWidthStyle?: string; dropdownHeightStyle: 'auto' | ''; isFocused: boolean; locale: VtsCascaderI18nInterface; dir: Direction; private destroy$; private inputString; private isOpening; private delayMenuTimer; private delaySelectTimer; get inSearchingMode(): boolean; set inputValue(inputValue: string); get inputValue(): string; get menuCls(): NgClassType; get menuColumnCls(): NgClassType; private get hasInput(); private get hasValue(); get showPlaceholder(): boolean; get clearIconVisible(): boolean; get isLabelRenderTemplate(): boolean; constructor(cascaderService: VtsCascaderService, vtsConfigService: VtsConfigService, cdr: ChangeDetectorRef, i18nService: VtsI18nService, elementRef: ElementRef, renderer: Renderer2, directionality: Directionality, noAnimation?: VtsNoAnimationDirective); ngOnInit(): void; ngOnDestroy(): void; registerOnChange(fn: () => {}): void; registerOnTouched(fn: () => {}): void; writeValue(value: VtsSafeAny): void; delaySetMenuVisible(visible: boolean, delay?: number, setOpening?: boolean): void; setMenuVisible(visible: boolean): void; private clearDelayMenuTimer; clearSelection(event?: Event): void; getSubmitValue(): VtsSafeAny[]; focus(): void; blur(): void; handleInputBlur(): void; handleInputFocus(): void; onKeyDown(event: KeyboardEvent): void; onTriggerClick(): void; onTriggerMouseEnter(): void; onTriggerMouseLeave(event: MouseEvent): void; onOptionMouseEnter(option: VtsCascaderOption, columnIndex: number, event: Event): void; onOptionMouseLeave(option: VtsCascaderOption, _columnIndex: number, event: Event): void; onOptionClick(option: VtsCascaderOption, columnIndex: number, event: Event): void; onClickOutside(event: MouseEvent): void; private isActionTrigger; private onEnter; private moveUpOrDown; private moveLeft; private moveRight; private clearDelaySelectTimer; private delaySetOptionActivated; private toggleSearchingMode; isOptionActivated(option: VtsCascaderOption, index: number): boolean; setDisabledState(isDisabled: boolean): void; closeMenu(): void; /** * Reposition the cascader panel. When a menu opens, the cascader expands * and may exceed the boundary of browser's window. */ private reposition; /** * When a cascader options is changed, a child needs to know that it should re-render. */ private checkChildren; private setDisplayLabel; private setDropdownStyles; private setLocale; private scrollToActivatedOptions; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }