UNPKG

@public-ui/components

Version:

Contains all web components that belong to KoliBri - The accessible HTML-Standard.

43 lines (42 loc) 1.46 kB
/*! * KoliBri - The accessible HTML-Standard */ import { validateSuggestions } from "../../schema"; import { validateAutoComplete } from "../../schema/props/auto-complete"; import { InputIconController } from "../@deprecated/input/controller-icon"; export class InputRangeController extends InputIconController { constructor(component, name, host) { super(component, name, host); this.component = component; } validateAutoComplete(value) { validateAutoComplete(this.component, value); } validateMax(value) { this.validateNumber('_max', value); } validateMin(value) { this.validateNumber('_min', value); } validateStep(value) { this.validateNumber('_step', value); } validateSuggestions(value) { validateSuggestions(this.component, value); } validateValue(value) { this.validateNumber('_value', value); this.component._value = value; this.setFormAssociatedValue(this.component.state._value); } componentWillLoad() { super.componentWillLoad(); this.validateAutoComplete(this.component._autoComplete); this.validateMax(this.component._max); this.validateMin(this.component._min); this.validateStep(this.component._step); this.validateSuggestions(this.component._suggestions); this.validateValue(this.component._value); } } //# sourceMappingURL=controller.js.map