@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
4 lines • 893 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import{I as s}from"./controller-823a2e8d.js";import{v as t}from"./spell-check-27a3f91d.js";import{w as e}from"./prop.validators-17aec743.js";import{v as o}from"./suggestions-04da2b2e.js";const i=["text","search","url","tel"];class a extends s{constructor(t,e,o){super(t,e,o),this.component=t}validateSuggestions(t){o(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class r extends a{constructor(t,e,o){super(t,e,o),this.hasError=!1,this.component=t}validateSpellCheck(e){t(this.component,e)}validateType(t){e(this.component,"_type",(t=>"string"==typeof t&&i.includes(t)),new Set([`String {${i.join(", ")}`]),t)}componentWillLoad(){super.componentWillLoad(),this.validateSpellCheck(this.component._spellCheck),this.validateType(this.component._type)}}export{a as I,r as a};