template() {
    if (!this.id) {
      this.setAttribute?.(attributes.ID, `ids-input-${++instanceCounter}`);
    }

    // Input
    const placeholder = this.placeholder ? ` placeholder="${this.placeholder}"` : '';
    const type = ` type="${this.type || TYPES.default}"`;
    let inputClass = `ids-input-field ${this.textAlign}`;
    inputClass += stringUtils.stringToBool(this.triggerfield) ? ' has-triggerfield' : '';
    inputClass += stringUtils.stringToBool(this.bgTransparent) ? ' bg-transparent' : '';
    inputClass += stringUtils.stringToBool(this.textEllipsis) ? ' text-ellipsis' : '';
    inputClass = ` class="${inputClass}"`;
    let inputState = stringUtils.stringToBool(this.readonly) ? ' readonly' : '';
    inputState = stringUtils.stringToBool(this.disabled) ? ' disabled' : inputState;
    let containerClass = `ids-input${inputState} ${this.size} ${this.fieldHeight}`;
    containerClass += stringUtils.stringToBool(this.compact) ? ' compact' : '';

    const labelHtml = !this.label || this.getAttribute(attributes.LABEL_HIDDEN) ? '' : (
      `<label for="${this.id}-input" class="ids-label-text">
        <ids-text part="label" label="true" color-unset>${this.label}</ids-text>
      </label>`
    );

    return (
      `<div class="${containerClass}" part="container">
        ${labelHtml}
        <div class="field-container">
          <input
            part="input"
            id="${this.id}-input"
            ${type}${inputClass}${placeholder}${inputState}
            ${this.getAttribute(attributes.LABEL_HIDDEN) && this.label ? `aria-label="${this.label}"` : ''}
            ${this.hasAttribute(attributes.VALUE) ? ` value="${this.getAttribute(attributes.VALUE)}" ` : ''}
            ></input>
        </div>
      </div>`
    );
  }
/**
   * Create the Template for the contents
   * @returns {string} The template
   */
Create the Template for the contents
@returns {string} The template
Create the Template for the contents @returns { string } The template
template() {
    if (!this.id) {
      this.setAttribute?.(attributes.ID, `ids-input-${++instanceCounter}`);
    }
    const placeholder = this.placeholder ? ` placeholder="${this.placeholder}"` : '';
    const type = ` type="${this.type || TYPES.default}"`;
    let inputClass = `ids-input-field ${this.textAlign}`;
    inputClass += stringUtils.stringToBool(this.triggerfield) ? ' has-triggerfield' : '';
    inputClass += stringUtils.stringToBool(this.bgTransparent) ? ' bg-transparent' : '';
    inputClass += stringUtils.stringToBool(this.textEllipsis) ? ' text-ellipsis' : '';
    inputClass = ` class="${inputClass}"`;
    let inputState = stringUtils.stringToBool(this.readonly) ? ' readonly' : '';
    inputState = stringUtils.stringToBool(this.disabled) ? ' disabled' : inputState;
    let containerClass = `ids-input${inputState} ${this.size} ${this.fieldHeight}`;
    containerClass += stringUtils.stringToBool(this.compact) ? ' compact' : '';
    const labelHtml = !this.label || this.getAttribute(attributes.LABEL_HIDDEN) ? '' : (
      `<label for="${this.id}-input" class="ids-label-text">
        <ids-text part="label" label="true" color-unset>${this.label}</ids-text>
      </label>`
    );
    return (
      `<div class="${containerClass}" part="container">
        ${labelHtml}
        <div class="field-container">
          <input
            part="input"
            id="${this.id}-input"
            ${type}${inputClass}${placeholder}${inputState}
            ${this.getAttribute(attributes.LABEL_HIDDEN) && this.label ? `aria-label="${this.label}"` : ''}
            ${this.hasAttribute(attributes.VALUE) ? ` value="${this.getAttribute(attributes.VALUE)}" ` : ''}
            ></input>
        </div>
      </div>`
    );
  }
template ( ) { if ( ! this . id ) { this . setAttribute ?. ( attributes . ID , ` ${ ++ instanceCounter } ` ) ; } const placeholder = this . placeholder ? ` ${ this . placeholder } ` : '' ; const type = ` ${ this . type || TYPES . default } ` ; let inputClass = ` ${ this . textAlign } ` ; inputClass += stringUtils . stringToBool ( this . triggerfield ) ? ' has-triggerfield' : '' ; inputClass += stringUtils . stringToBool ( this . bgTransparent ) ? ' bg-transparent' : '' ; inputClass += stringUtils . stringToBool ( this . textEllipsis ) ? ' text-ellipsis' : '' ; inputClass = ` ${ inputClass } ` ; let inputState = stringUtils . stringToBool ( this . readonly ) ? ' readonly' : '' ; inputState = stringUtils . stringToBool ( this . disabled ) ? ' disabled' : inputState ; let containerClass = ` ${ inputState } ${ this . size } ${ this . fieldHeight } ` ; containerClass += stringUtils . stringToBool ( this . compact ) ? ' compact' : '' ; const labelHtml = ! this . label || this . getAttribute ( attributes . LABEL_HIDDEN ) ? '' : ( ` ${ this . id } ${ this . label } ` ) ; return ( ` ${ containerClass } ${ labelHtml } ${ this . id } ${ type } ${ inputClass } ${ placeholder } ${ inputState } ${ this . getAttribute ( attributes . LABEL_HIDDEN ) && this . label ? ` ${ this . label } ` : '' } ${ this . hasAttribute ( attributes . VALUE ) ? ` ${ this . getAttribute ( attributes . VALUE ) } ` : '' } ` ) ; }
Create the Template for the contents
 @returns {string} The template
Create the Template for the contents @returns { string } The template
// Input