1import { Controller } from '@hotwired/stimulus'; 2 3/** 4 * @domain UI íì ìí 5 * @concern ì ë ¥ ì 무ì ë°ë¥¸ í´ëì¤ í ê¸ 6 * @description input/textareaì ê° ì¡´ì¬ ì¬ë¶ì ë°ë¼ elementì active í´ëì¤ë¥¼ í ê¸íë¤. data-input-presence-active-classë¡ í ê¸í í´ëì¤ëª ì ì§ì íë¤. 7 */ 8export default class extends Controller { 9 static targets = ['input']; 10 static classes = ['active']; 11 12 connect() { 13 this.update(); 14 } 15 16 update() { 17 if (!this.hasInputTarget || !this.hasActiveClass) return; 18 const filled = this.inputTarget.value.length > 0; 19 this.element.classList.toggle(this.activeClass, filled); 20 } 21}
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.