design-angular-kit
Version:
Un toolkit Angular conforme alle linee guida di design per i servizi web della PA
43 lines (42 loc) • 1.7 kB
TypeScript
import { ElementRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
import { ItAbstractFormComponent } from '../../../abstracts/abstract-form.component';
import * as i0 from "@angular/core";
export declare class ItRangeComponent extends ItAbstractFormComponent<number | null | undefined> implements OnInit, OnChanges, OnDestroy {
/**
* The max value
*/
max?: number;
/**
* The min value
*/
min?: number;
/**
* The step value
*/
step?: number | 'any';
/**
* The color on left of thumb [Require rightColor]
* @example '#0d6efd' or 'var(--bs-primary)'
* @default undefined ('var(--bs-gray-300)')
*/
leftColor?: string;
/**
* The color on right of thumb [Require leftColor]
* @example '#0d6efd' or 'var(--bs-primary)'
* @default undefined ('var(--bs-gray-300)')
*/
rightColor?: string;
slider: ElementRef<HTMLInputElement>;
private subscription?;
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
ngOnDestroy(): void;
writeValue(value: number | null | undefined): void;
/**
* Update the percentage of slider color
* @private
*/
private updateSliderColor;
static ɵfac: i0.ɵɵFactoryDeclaration<ItRangeComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ItRangeComponent, "it-range", never, { "max": { "alias": "max"; "required": false; }; "min": { "alias": "min"; "required": false; }; "step": { "alias": "step"; "required": false; }; "leftColor": { "alias": "leftColor"; "required": false; }; "rightColor": { "alias": "rightColor"; "required": false; }; }, {}, never, ["*"], true, never>;
}