import { EventEmitter } from '../../stencil-public-runtime'; import { MdsInputRangeValuesEventDetail } from './meta/event-detail'; /** * @part header - The element containing the labels displayed over the input element * @part track - The element containing the track of the input range * @slot - The label of the range, as text. Add an `mds-input-range-value` per value to hold * several values, a thumb each, on one track * @category forms */ export declare class MdsInputRange { private progress; private label; private thumbs; private inputElement?; private loadValue?; private readonly childLoadValues; private readonly thumbKeys; private nextThumbKey; private emittedValues?; private childObserver?; private loaded; private singlePending; private readonly t; private element; internals: ElementInternals; private formDisabled; /** * A function to custom how value is represented */ readonly formatValue?: (value: number) => string; /** * Is needed to reference the form data after the form is submitted */ readonly name?: string; /** * The greatest value in the range of permitted values */ readonly max: number; /** * The lowest value in the range of permitted values */ readonly min: number; /** * The step attribute is a number that specifies the granularity that * the value must adhere to, or the special value any, which is described below. */ readonly step: number; /** * Sets if the component is disabled */ disabled?: boolean; /** * The value attribute contains a number which contains a representation of the selected number. * It holds the one value of a range without `mds-input-range-value` children: with children the * values are theirs, and this one is left out */ value: number; /** * Emits when the input range is changed: the value of a range without * `mds-input-range-value` children */ changeEvent: EventEmitter; /** * Emits when the values of a range with `mds-input-range-value` children change: from a thumb, * from code, as a child comes or goes, or on a form reset. `values` holds them in order, from * the lowest. The values of load are not a change */ valuesChangeEvent: EventEmitter; /** As on a native input, a step that is not a positive number falls back to the default, 1. */ private allowedStep; /** * A value inside `min` and `max`, on the nearest step from `min`, as a native range input * sanitizes it; a step past `max` falls back one step. The values are scaled to integers by * the decimals of the step and of `min`, so that a decimal step snaps without float errors. */ private normalize; /** The default of a native range input: the middle of the range, on the step. */ private middle; /** Where a value sits on the track, from 0 at `min` to 100 at `max`. */ private percent; private calculateProgress; private onInput; private countDecimals; /** The label of the range: its text, without the names of its values. */ private readLabel; /** * The mds-input-range-value children as thumbs, each value inside the range and on its step, in * order of value. Two thumbs on one value keep the order they had, so that a thumb that reaches * its neighbour does not take its place; a new one comes after them, in the order of the markup. */ private readThumbs; private sameThumbs; /** Writes a value on its child: through the prop, or the attribute until the child is defined. */ private writeChildValue; private writeChildValues; /** Takes a new list of thumbs: their values on the children, in the form and in the event. */ private updateThumbs; /** * Emits mdsInputRangeValuesChange once per list of values. The first list, the one of load, is * recorded without an event: nothing has moved yet. */ private emitValues; /** * Reports the values to the form: the one value without children; with children an entry per * value under `name`, in order, as a native `