set labelHidden(value) {
    if (IdsStringUtils.stringToBool(value)) {
      if (this.getAttribute(attributes.LABEL_HIDDEN) !== '') {
        this.setAttribute(attributes.LABEL_HIDDEN, '');
      }

      const existingLabel = this.shadowRoot.querySelector('label');
      if (existingLabel) {
        existingLabel.remove();
      }

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

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

        const labelTemplate = document.createElement('template');
        labelTemplate.innerHTML = (
          `<label
              ${ buildClassAttrib('ids-label-text', this.disabled && 'disabled') }
              part="label"
              for="${this.id}-input-input"
            >`
        );

        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
   *
   * (still requires a label for the sake of accessibility and
   * will be applied on the input element)
   */
@param {boolean} value Flags a label's text as not displayed
explicitly in the label element

(still requires a label for the sake of accessibility and
will be applied on the input element)
@param { boolean } value Flags a label ' s text as not displayed explicitly in the label element ( still requires a label for the sake of accessibility and will be applied on the input element )
set labelHidden(value) {
    if (IdsStringUtils.stringToBool(value)) {
      if (this.getAttribute(attributes.LABEL_HIDDEN) !== '') {
        this.setAttribute(attributes.LABEL_HIDDEN, '');
      }
      const existingLabel = this.shadowRoot.querySelector('label');
      if (existingLabel) {
        existingLabel.remove();
      }
      this.input?.setAttribute?.('aria-label', this.label);
    } else {
      if (this.hasAttribute(attributes.LABEL_HIDDEN)) {
        this.removeAttribute(attributes.LABEL_HIDDEN);
      }
      if (this.input) {
        this.input?.removeAttribute('aria-label');
        const labelTemplate = document.createElement('template');
        labelTemplate.innerHTML = (
          `<label
              ${ buildClassAttrib('ids-label-text', this.disabled && 'disabled') }
              part="label"
              for="${this.id}-input-input"
            >`
        );
        this.container.insertBefore(
          labelTemplate.content.childNodes[0],
          this.container.querySelector('field-container')
        );
      }
    }
  }
set labelHidden ( value ) { if ( IdsStringUtils . stringToBool ( value ) ) { if ( this . getAttribute ( attributes . LABEL_HIDDEN ) !== '' ) { this . setAttribute ( attributes . LABEL_HIDDEN , '' ) ; } const existingLabel = this . shadowRoot . querySelector ( 'label' ) ; if ( existingLabel ) { existingLabel . remove ( ) ; } this . input ?. setAttribute ?. ( 'aria-label' , this . label ) ; } else { if ( this . hasAttribute ( attributes . LABEL_HIDDEN ) ) { this . removeAttribute ( attributes . LABEL_HIDDEN ) ; } if ( this . input ) { this . input ?. removeAttribute ( 'aria-label' ) ; const labelTemplate = document . createElement ( 'template' ) ; labelTemplate . innerHTML = ( ` ${ buildClassAttrib ( 'ids-label-text' , this . disabled && 'disabled' ) } ${ this . id } ` ) ; 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