/** * @Author: Alex Sorafumo * @Date: 18/11/2016 4:31 PM * @Email: alex@yuion.net * @Filename: slider.component.ts * @Last modified by: Alex Sorafumo * @Last modified time: 01/02/2017 11:52 AM */ import { OnChanges, SimpleChanges } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { Animate } from '../../../services/animate.service'; import { BaseFormWidgetComponent } from '../../../shared/base-form.component'; export declare class SliderComponent extends BaseFormWidgetComponent implements OnChanges, ControlValueAccessor { private a; align: string; min: number; max: number; step: number; available: boolean; current: number; position: number; percent: number; private space; private bar; private previous; private bb; private user_action; constructor(a: Animate); ngAfterViewInit(): void; ngOnChanges(changes: SimpleChanges): void; validate(): void; /** * Update model of the slider * @param update Do we need to update the display */ updateValue(update?: boolean): void; /** * Updates the model and position of the slider based of the event * @param event Tap event */ clickSlider(event: MouseEvent | TouchEvent): void; /** * Updates the position of the progress and knob of the slider * @param event Pan event */ moveSlider(event: MouseEvent | TouchEvent): void; /** * Updates the position of the progress and knob of the slider * @param event PanEnd event */ sliderStop(event: MouseEvent | TouchEvent): void; /** * Update slider positioning when the window is resized */ resize(resized?: boolean, tries?: number): any; checkStatus(e: MouseEvent | TouchEvent, i: number): void; /** * Emits the model throught the output binding */ private postValue; /** * Calculates the new model of the slider using the position of the event * @param event Tap/Pan event * @return Returns the new model of the slider */ private calcValue; private actionPerformed; /** * Gets the offset of the slider bar * @return */ private getBarOffset; private refresh; }