UNPKG

@public-ui/components

Version:

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

4 lines 878 B
/*! * KoliBri - The accessible HTML-Standard */ import{w as s}from"./common-BXXICkFX.js";import{v as t}from"./spell-check-BBqBRmnp.js";import{v as e}from"./suggestions-CsvpWHvb.js";import{I as o}from"./controller-JRmPz-8e.js";const i=["text","search","url","tel"],r=t=>"string"==typeof t&&i.includes(t),a=(t,e)=>{s(t,"_type",r,new Set(i),e)};class l extends o{constructor(t,e,o){super(t,e,o),this.component=t}validateSuggestions(t){e(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class n extends l{constructor(t,e,o){super(t,e,o),this.hasError=!1,this.component=t}validateSpellCheck(e){t(this.component,e)}validateType(t){a(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSpellCheck(this.component._spellCheck),this.validateType(this.component._type)}}export{l as I,n as a};