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"./index-ebe5a881.js";import{I as t}from"./controller-912bda08.js";import{v as e}from"./spell-check-5559a801.js";import{v as i}from"./suggestions-198125b7.js";const o=["text","search","url","tel"];class r extends t{constructor(t,e,o){super(t,e,o),this.component=t}validateSuggestions(t){i(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class a extends r{constructor(t,e,o){super(t,e,o),this.hasError=!1,this.component=t}validateSpellCheck(t){e(this.component,t)}validateType(t){s(this.component,"_type",(t=>"string"==typeof t&&o.includes(t)),new Set([`String {${o.join(", ")}`]),t)}componentWillLoad(){super.componentWillLoad(),this.validateSpellCheck(this.component._spellCheck),this.validateType(this.component._type)}}export{r as I,a};