UNPKG

@public-ui/components

Version:

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

4 lines 888 B
/*! * KoliBri - The accessible HTML-Standard */ import{I as s}from"./controller-96d99a72.js";import{v as t}from"./spell-check-cb87a985.js";import{w as e}from"./prop.validators-64749272.js";import{v as o}from"./suggestions-b6fd51c8.js";const i=["text","search","url","tel"];class r extends s{constructor(t,o,e){super(t,o,e),this.component=t}validateSuggestions(t){o(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class a extends r{constructor(t,o,e){super(t,o,e),this.hasError=!1,this.component=t}validateSpellCheck(o){t(this.component,o)}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{r as I,a};