set labelHidden(value) {
    if (stringUtils.stringToBool(value)) {
      this?.setAttribute(attributes.LABEL_HIDDEN, true);
      const existingLabel = this.shadowRoot.querySelector('label');
      if (existingLabel) {
        existingLabel.remove();
      }

      this.input?.setAttribute?.('aria-label', this.label);
    } else {
      this?.removeAttribute(attributes.LABEL_HIDDEN);

      if (this.input) {
        this.input?.removeAttribute('aria-label');

        const labelTemplate = document.createElement('template');
        labelTemplate.innerHTML = (
          `<label for="${this.id}-input" class="ids-label-text">
            <ids-text part="label" label="true" color-unset>${this.label}</ids-text>
          </label>`
        );
        this.container.insertBefore(
          labelTemplate.content.childNodes[0],
          this.container.querySelector('.field-container')
        );
      }
    }
  }
/**
   * @param {boolean} value Flags a label's text as not displayed explicitly in the label element
   * */
@param {boolean} value Flags a label's text as not displayed explicitly in the label element
@param { boolean } value Flags a label ' s text as not displayed explicitly in the label element
set labelHidden(value) {
    if (stringUtils.stringToBool(value)) {
      this?.setAttribute(attributes.LABEL_HIDDEN, true);
      const existingLabel = this.shadowRoot.querySelector('label');
      if (existingLabel) {
        existingLabel.remove();
      }
      this.input?.setAttribute?.('aria-label', this.label);
    } else {
      this?.removeAttribute(attributes.LABEL_HIDDEN);
      if (this.input) {
        this.input?.removeAttribute('aria-label');
        const labelTemplate = document.createElement('template');
        labelTemplate.innerHTML = (
          `<label for="${this.id}-input" class="ids-label-text">
            <ids-text part="label" label="true" color-unset>${this.label}</ids-text>
          </label>`
        );
        this.container.insertBefore(
          labelTemplate.content.childNodes[0],
          this.container.querySelector('.field-container')
        );
      }
    }
  }
set labelHidden ( value ) { if ( stringUtils . stringToBool ( value ) ) { this ?. setAttribute ( attributes . LABEL_HIDDEN , true ) ; const existingLabel = this . shadowRoot . querySelector ( 'label' ) ; if ( existingLabel ) { existingLabel . remove ( ) ; } this . input ?. setAttribute ?. ( 'aria-label' , this . label ) ; } else { this ?. removeAttribute ( attributes . LABEL_HIDDEN ) ; if ( this . input ) { this . input ?. removeAttribute ( 'aria-label' ) ; const labelTemplate = document . createElement ( 'template' ) ; labelTemplate . innerHTML = ( ` ${ this . id } ${ this . label } ` ) ; this . container . insertBefore ( labelTemplate . content . childNodes [ 0 ] , this . container . querySelector ( '.field-container' ) ) ; } } }
@param {boolean} value Flags a label's text as not displayed explicitly in the label element
@param { boolean } value Flags a label ' s text as not displayed explicitly in the label element