/** * 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 { Platform } from '@angular/cdk/platform'; import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { BooleanInput, NumberInput } from '@ui-vts-kit/ng-vts/core/types'; import { VtsSliderHandleComponent } from './handle.component'; import { VtsSliderService } from './slider.service'; import { VtsExtendedMark, VtsMarks, VtsSliderHandler, VtsSliderShowTooltip, VtsSliderValue } from './typings'; import * as i0 from "@angular/core"; export declare class VtsSliderComponent implements ControlValueAccessor, OnInit, OnChanges, OnDestroy { private sliderService; private cdr; private platform; private directionality; static ngAcceptInputType_vtsDisabled: BooleanInput; static ngAcceptInputType_vtsDots: BooleanInput; static ngAcceptInputType_vtsIncluded: BooleanInput; static ngAcceptInputType_vtsRange: BooleanInput; static ngAcceptInputType_vtsVertical: BooleanInput; static ngAcceptInputType_vtsMax: NumberInput; static ngAcceptInputType_vtsMin: NumberInput; static ngAcceptInputType_vtsStep: NumberInput; static ngAcceptInputType_vtsReverse: BooleanInput; slider: ElementRef; handlerComponents: QueryList; vtsDisabled: boolean; vtsDots: boolean; vtsIncluded: boolean; vtsRange: boolean; vtsVertical: boolean; vtsReverse: boolean; vtsDefaultValue?: VtsSliderValue; vtsMarks: VtsMarks | null; vtsMax: number; vtsMin: number; vtsStep: number; vtsTooltipVisible: VtsSliderShowTooltip; vtsTooltipPlacement: string; vtsTipFormatter?: null | ((value: number) => string); readonly vtsOnAfterChange: EventEmitter; value: VtsSliderValue | null; cacheSliderStart: number | null; cacheSliderLength: number | null; activeValueIndex: number | undefined; track: { offset: null | number; length: null | number; }; handles: VtsSliderHandler[]; marksArray: VtsExtendedMark[] | null; bounds: { lower: VtsSliderValue | null; upper: VtsSliderValue | null; }; dir: Direction; private dragStart$?; private dragMove$?; private dragEnd$?; private dragStart_?; private dragMove_?; private dragEnd_?; private destroy$; constructor(sliderService: VtsSliderService, cdr: ChangeDetectorRef, platform: Platform, directionality: Directionality); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; writeValue(val: VtsSliderValue | null): void; onValueChange(_value: VtsSliderValue): void; onTouched(): void; registerOnChange(fn: (value: VtsSliderValue) => void): void; registerOnTouched(fn: () => void): void; setDisabledState(isDisabled: boolean): void; /** * Event handler is only triggered when a slider handler is focused. */ onKeyDown(e: KeyboardEvent): void; private setValue; private getValue; /** * Clone & sort current value and convert them to offsets, then return the new one. */ private getValueToOffset; /** * Find the closest value to be activated. */ private setActiveValueIndex; private setActiveValue; /** * Update track and handles' position and length. */ private updateTrackAndHandles; private onDragStart; private onDragMove; private getLogicalValue; private onDragEnd; /** * Create user interactions handles. */ private bindDraggingHandlers; private subscribeDrag; private unsubscribeDrag; private toggleDragMoving; private toggleDragDisabled; private findClosestValue; private valueToOffset; private getSliderStartPosition; private getSliderLength; /** * Cache DOM layout/reflow operations for performance (may not necessary?) */ private cacheSliderProperty; private formatValue; /** * Show one handle's tooltip and hide others'. */ private showHandleTooltip; private hideAllHandleTooltip; private generateMarkItems; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }