UNPKG

@neu-ui/web-components

Version:

A Neumorphic web component library built with @microsoft/fast-element and Vite using javascript

25 lines (24 loc) 777 B
import { FASTElement as i } from "@microsoft/fast-element"; import { TextAreaDefinition as r } from "./textarea.definition.es.js"; class d extends i { constructor() { super(), this.disabled = !1, this.required = !1, this.value = "", this.placeholder = "", this.id = ""; } attributeChangedCallback(e, s, t) { e === "disabled" && (this.disabled = t !== null), e === "required" && (this.required = t !== null), e === "placeholder" && (this.placeholder = t), e === "id" && (this.id = t), super.attributeChangedCallback(e, s, t); } handleInput(e) { this.value = e.target.value; } handleChange() { const e = new Event("change", { bubbles: !0, composed: !0 }); this.dispatchEvent(e); } } i.define(d, r); export { d as TextArea };