UNPKG

@public-ui/components

Version:

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

5 lines 942 B
/*! * KoliBri - The accessible HTML-Standard */ import{b as s}from"./common-Cx_AGO_M.js";import{v as t}from"./spell-check-BtaQyLZc.js";import{v as e}from"./suggestions-DEcHprcz.js";import{I as o}from"./controller-CJmWOqQQ.js";const i=["text","search","url","tel"];const r=s=>typeof s==="string"&&i.includes(s);const a=(t,e)=>{s(t,"_type",r,new Set(i),e)};class c extends o{constructor(s,t,e){super(s,t,e);this.component=s}validateSuggestions(s){e(this.component,s)}componentWillLoad(){super.componentWillLoad();this.validateSuggestions(this.component._suggestions)}}class l extends c{constructor(s,t,e){super(s,t,e);this.hasError=false;this.component=s}validateSpellCheck(s){t(this.component,s)}validateType(s){a(this.component,s)}componentWillLoad(){super.componentWillLoad();this.validateSpellCheck(this.component._spellCheck);this.validateType(this.component._type)}}export{c as I,l as a}; //# sourceMappingURL=controller-xXHYiOzQ.js.map