import { Component, h, Prop } from '@stencil/core';
import { errorFilled } from '@teliads/icons';
export class TeliaFieldError {
  constructor() {
    /** Test id set for web component host */
    this.dataTestid = null;
    /** Required change type in fields for screen reader  */
    this.relevant = 'additions text';
    /** Tracking id is used to identify and count Component usage */
    this.dataTrackingId = 'telia-field-error';
  }
  render() {
    return (h("div", { class: "telia-field-error", "aria-live": "assertive", "aria-relevant": this.relevant },
      h("telia-icon", { class: "telia-field-error__icon", size: "sm", svg: errorFilled.svg }),
      h("slot", null),
      h("telia-vst", { dataTrackingId: this.dataTrackingId })));
  }
  static get is() { return "telia-field-error"; }
  static get encapsulation() { return "shadow"; }
  static get originalStyleUrls() { return {
    "$": ["telia-field-error.scss"]
  }; }
  static get styleUrls() { return {
    "$": ["telia-field-error.css"]
  }; }
  static get properties() { return {
    "dataTestid": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": "Test id set for web component host"
      },
      "attribute": "data-testid",
      "reflect": false,
      "defaultValue": "null"
    },
    "relevant": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [],
        "text": "Required change type in fields for screen reader"
      },
      "attribute": "relevant",
      "reflect": false,
      "defaultValue": "'additions text'"
    }
  }; }
}
