import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnInit, Renderer2, SimpleChanges } from "@angular/core"; import { StarkLoggingService } from "@nationalbankbelgium/stark-core"; import { AbstractStarkUiComponent } from "@nationalbankbelgium/stark-ui/src/internal-common"; import { API, Options } from "nouislider"; import * as i0 from "@angular/core"; /** * Component to display a slider with one or more handles */ export declare class StarkSliderComponent extends AbstractStarkUiComponent implements AfterViewInit, OnChanges, OnInit { logger: StarkLoggingService; /** * Whether the slider is disabled. * * Default: `false` */ isDisabled?: boolean; /** * Configuration object for the slider instance to be created. */ sliderConfig: Options; /** * HTML "id" attribute of the element. */ sliderId: string; /** * Array of numeric values to be set to the slider. * For simple sliders with just one handle, the array should contain only one value. * For range sliders, the array should contain two or more values. */ values: number[]; /** * Event to be emitted when the slider's value(s) change. */ readonly changed: EventEmitter; /** * Stores the latest value, to be able to see if values have been changed */ latestUnencodedValues?: number[]; /** * set to true if the slider is in horizontal mode */ isHorizontal: boolean; /** * a reference to the `noUiSlider` component */ slider: API; /** * Class constructor * @param logger - The `StarkLoggingService` instance of the application. * @param renderer - Angular `Renderer2` wrapper for DOM manipulations. * @param elementRef - Reference to the DOM element where this component is attached to. */ constructor(logger: StarkLoggingService, renderer: Renderer2, elementRef: ElementRef); /** * Component lifecycle hook that is called after data-bound properties of a directive are initialized. */ ngOnInit(): void; /** * Component lifecycle hook that is called after a component's view has been fully initialized. */ ngAfterViewInit(): void; /** * Component lifecycle hook that is called when any data-bound property of a directive changes. * @param onChangesObj - Contains the changed properties */ ngOnChanges(onChangesObj: SimpleChanges): void; /** * Create an instance of the slider component */ createSliderInstance(): void; /** * Attach the update handler to the slider component */ attachSliderInstanceUpdateHandler(): void; /** * Update the slider instance values */ updateSliderInstanceValues(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }