1import { 2 CF2Component, 3 init_runtime, 4 registerComponent 5} from "./chunk-NQUHJ6NR.js"; 6import { 7 __esm, 8 init_define_process 9} from "./chunk-RFSPGZ3L.js"; 10 11// projects/lib/packages/yggdrasil-blueprints/__generated__/blueprints/text-area-v1.ts 12var TextAreaV1; 13var init_text_area_v1 = __esm({ 14 "projects/lib/packages/yggdrasil-blueprints/__generated__/blueprints/text-area-v1.ts"() { 15 init_define_process(); 16 init_runtime(); 17 TextAreaV1 = class extends CF2Component { 18 constructor(el, runtimeSel) { 19 super(el, runtimeSel); 20 } 21 mount() { 22 this.textarea = this.element.querySelector(".elTextarea"); 23 const label = this.element.querySelector(".elLabel"); 24 this.addTextareaListeners(this.textarea); 25 this.update(); 26 } 27 update() { 28 if (this.textarea.value) { 29 this.textarea.classList.add("hasValue"); 30 this.element.classList.add("hasValue"); 31 } else { 32 this.textarea.classList.remove("hasValue"); 33 this.element.classList.remove("hasValue"); 34 } 35 } 36 addTextareaListeners(textarea, re) { 37 textarea.addEventListener("focus", () => { 38 this.element.querySelector("[data-input-status-type]").innerHTML = ""; 39 this.element.classList.remove("elInputValid"); 40 this.element.classList.remove("elInputError"); 41 this.element.classList.remove("elInputWarning"); 42 this.element.classList.add("elInputFocused"); 43 }); 44 textarea.addEventListener("blur", () => { 45 this.element.classList.remove("elInputFocused"); 46 this.update(); 47 if (textarea.classList.contains("required1") && textarea.value === "") { 48 return; 49 } 50 }); 51 } 52 }; 53 registerComponent("TextArea/V1", TextAreaV1); 54 window["TextAreaV1"] = TextAreaV1; 55 } 56}); 57 58export { 59 init_text_area_v1 60}; 61//# sourceMappingURL=chunk-TWAA7YIK.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.