1 | import { ElementRef, OnDestroy, EventEmitter, Renderer2, NgZone, ChangeDetectorRef } from '@angular/core';
|
---|
2 | import { ControlValueAccessor } from '@angular/forms';
|
---|
3 | import * as i0 from "@angular/core";
|
---|
4 | import * as i1 from "@angular/common";
|
---|
5 | export declare const SLIDER_VALUE_ACCESSOR: any;
|
---|
6 | export declare class Slider implements OnDestroy, ControlValueAccessor {
|
---|
7 | el: ElementRef;
|
---|
8 | renderer: Renderer2;
|
---|
9 | private ngZone;
|
---|
10 | cd: ChangeDetectorRef;
|
---|
11 | animate: boolean;
|
---|
12 | disabled: boolean;
|
---|
13 | min: number;
|
---|
14 | max: number;
|
---|
15 | orientation: string;
|
---|
16 | step: number;
|
---|
17 | range: boolean;
|
---|
18 | style: any;
|
---|
19 | styleClass: string;
|
---|
20 | ariaLabelledBy: string;
|
---|
21 | tabindex: number;
|
---|
22 | onChange: EventEmitter<any>;
|
---|
23 | onSlideEnd: EventEmitter<any>;
|
---|
24 | sliderHandle: ElementRef;
|
---|
25 | sliderHandleStart: ElementRef;
|
---|
26 | sliderHandleEnd: ElementRef;
|
---|
27 | value: number;
|
---|
28 | values: number[];
|
---|
29 | handleValue: number;
|
---|
30 | handleValues: number[];
|
---|
31 | onModelChange: Function;
|
---|
32 | onModelTouched: Function;
|
---|
33 | dragging: boolean;
|
---|
34 | dragListener: any;
|
---|
35 | mouseupListener: any;
|
---|
36 | initX: number;
|
---|
37 | initY: number;
|
---|
38 | barWidth: number;
|
---|
39 | barHeight: number;
|
---|
40 | sliderHandleClick: boolean;
|
---|
41 | handleIndex: number;
|
---|
42 | startHandleValue: any;
|
---|
43 | startx: number;
|
---|
44 | starty: number;
|
---|
45 | constructor(el: ElementRef, renderer: Renderer2, ngZone: NgZone, cd: ChangeDetectorRef);
|
---|
46 | onMouseDown(event: any, index?: number): void;
|
---|
47 | onTouchStart(event: any, index?: number): void;
|
---|
48 | onTouchMove(event: any, index?: number): void;
|
---|
49 | onTouchEnd(event: any, index?: number): void;
|
---|
50 | onBarClick(event: any): void;
|
---|
51 | onHandleKeydown(event: any, handleIndex?: number): void;
|
---|
52 | spin(event: any, dir: number, handleIndex?: number): void;
|
---|
53 | handleChange(event: Event): void;
|
---|
54 | bindDragListeners(): void;
|
---|
55 | unbindDragListeners(): void;
|
---|
56 | setValueFromHandle(event: Event, handleValue: any): void;
|
---|
57 | handleStepChange(newValue: number, oldValue: number): void;
|
---|
58 | writeValue(value: any): void;
|
---|
59 | registerOnChange(fn: Function): void;
|
---|
60 | registerOnTouched(fn: Function): void;
|
---|
61 | setDisabledState(val: boolean): void;
|
---|
62 | get rangeStartLeft(): string;
|
---|
63 | get rangeStartBottom(): string;
|
---|
64 | get rangeEndLeft(): string;
|
---|
65 | get rangeEndBottom(): string;
|
---|
66 | isVertical(): boolean;
|
---|
67 | updateDomData(): void;
|
---|
68 | calculateHandleValue(event: any): number;
|
---|
69 | updateHandleValue(): void;
|
---|
70 | updateValue(val: number, event?: Event): void;
|
---|
71 | getValueFromHandle(handleValue: number): number;
|
---|
72 | getDecimalsCount(value: number): number;
|
---|
73 | getNormalizedValue(val: number): number;
|
---|
74 | ngOnDestroy(): void;
|
---|
75 | static ɵfac: i0.ɵɵFactoryDeclaration<Slider, never>;
|
---|
76 | static ɵcmp: i0.ɵɵComponentDeclaration<Slider, "p-slider", never, { "animate": "animate"; "disabled": "disabled"; "min": "min"; "max": "max"; "orientation": "orientation"; "step": "step"; "range": "range"; "style": "style"; "styleClass": "styleClass"; "ariaLabelledBy": "ariaLabelledBy"; "tabindex": "tabindex"; }, { "onChange": "onChange"; "onSlideEnd": "onSlideEnd"; }, never, never>;
|
---|
77 | }
|
---|
78 | export declare class SliderModule {
|
---|
79 | static ɵfac: i0.ɵɵFactoryDeclaration<SliderModule, never>;
|
---|
80 | static ɵmod: i0.ɵɵNgModuleDeclaration<SliderModule, [typeof Slider], [typeof i1.CommonModule], [typeof Slider]>;
|
---|
81 | static ɵinj: i0.ɵɵInjectorDeclaration<SliderModule>;
|
---|
82 | }
|
---|