var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
  return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { Component, Host, h, Element, Prop } from '@stencil/core';
import { sanitizeVegaComponent } from '../../utils/component';
import { InjectVegaGlobalSlimmer, InjectVegaSlimmer } from 'vega-slimmer/core';
import { VegaSectionTitleRenderer } from './slimmers/renderers/vega-section-title-renderer';
import { VegaComponentUsageRuntimeMetricsSlimmer } from '../../helpers/slimmers/component-usage-runtime-metrics';
/**
 * @vegaVersion 2.1.0
 */
export class VegaSectionTitle {
  constructor() {
    this.globalSlimmers = {};
    this.renderer = new VegaSectionTitleRenderer();
    this.vegaComponentUsageRuntimeMetricsSlimmer = new VegaComponentUsageRuntimeMetricsSlimmer();
    /**
     * Specifies the text content of the title displayed
     *    within the section title.
     *
     * @vegaVersion 2.1.0
     */
    this.titleText = '';
    /**
     * Specifies the alignment of the icon relative to
     *    the title within the section title.
     *
     * @vegaVersion 2.1.0
     */
    this.iconAlign = 'left';
    /**
     * Specifies the color of the icon displayed
     *    within the section title.
     * @vegaVersion 2.81.0
     */
    this.iconColor = 'text-primary';
    /**
     * Specifies the size of the section title.
     *
     * @vegaVersion 2.81.0
     */
    this.size = 'default';
  }
  render() {
    return sanitizeVegaComponent(h(Host, null, this.renderer.render()), this.host);
  }
  static get is() { return "vega-section-title"; }
  static get encapsulation() { return "shadow"; }
  static get originalStyleUrls() { return {
    "$": ["vega-section-title.scss"]
  }; }
  static get styleUrls() { return {
    "$": ["vega-section-title.css"]
  }; }
  static get properties() { return {
    "titleText": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [{
            "name": "vegaVersion",
            "text": "2.1.0"
          }],
        "text": "Specifies the text content of the title displayed\n   within the section title."
      },
      "attribute": "title",
      "reflect": false,
      "defaultValue": "''"
    },
    "description": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [{
            "name": "vegaVersion",
            "text": "2.1.0"
          }],
        "text": "Specifies the text content of the description displayed\n   within the section title."
      },
      "attribute": "description",
      "reflect": false
    },
    "icon": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [{
            "name": "vegaVersion",
            "text": "2.1.0"
          }],
        "text": "Specifies the icon displayed within the section title."
      },
      "attribute": "icon",
      "reflect": false
    },
    "iconAlign": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "IconAlignType",
        "resolved": "\"left\" | \"right\"",
        "references": {
          "IconAlignType": {
            "location": "import",
            "path": "../../types/ui.type"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [{
            "name": "vegaVersion",
            "text": "2.1.0"
          }],
        "text": "Specifies the alignment of the icon relative to\n   the title within the section title."
      },
      "attribute": "icon-align",
      "reflect": false,
      "defaultValue": "'left'"
    },
    "iconColor": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "TextColorsTokenType",
        "resolved": "\"text-primary\" | \"text-secondary\" | \"text-inverted-primary\" | \"text-inverted-secondary\" | \"text-black\" | \"text-white\" | \"text-brand\" | \"text-danger-link\" | \"text-danger-link-hover\" | \"text-danger-link-active\" | \"text-danger-link-focus\" | \"text-danger-link-visited\" | \"text-disabled\" | \"text-error\" | \"text-input-disabled\" | \"text-input-placeholder\" | \"text-link\" | \"text-link-hover\" | \"text-link-active\" | \"text-link-focus\" | \"text-link-visited\" | \"text-on-action\" | \"text-on-danger\" | \"text-on-disabled\" | \"text-sidebar-link\" | \"text-sidebar-link-hover\" | \"text-sidebar-link-selected\" | \"text-site-footer-link\" | \"text-site-footer-link-hover\" | \"text-site-footer-link-active\" | \"text-success\" | \"text-inverted-success\" | \"text-accent1-primary\" | \"text-accent2-primary\" | \"text-accent3-primary\" | \"text-accent4-primary\" | \"text-accent5-primary\" | \"text-accent6-primary\" | \"text-accent7-primary\" | \"text-accent8-primary\" | \"text-accent9-primary\" | \"text-accent10-primary\"",
        "references": {
          "TextColorsTokenType": {
            "location": "import",
            "path": "../../types/design-token.type"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [{
            "name": "vegaVersion",
            "text": "2.81.0"
          }],
        "text": "Specifies the color of the icon displayed\n   within the section title."
      },
      "attribute": "icon-color",
      "reflect": false,
      "defaultValue": "'text-primary'"
    },
    "size": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "VegaSectionTitleSizeType",
        "resolved": "\"default\" | \"small\"",
        "references": {
          "VegaSectionTitleSizeType": {
            "location": "import",
            "path": "./types"
          }
        }
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [{
            "name": "vegaVersion",
            "text": "2.81.0"
          }],
        "text": "Specifies the size of the section title."
      },
      "attribute": "size",
      "reflect": false,
      "defaultValue": "'default'"
    }
  }; }
  static get elementRef() { return "host"; }
}
__decorate([
  InjectVegaGlobalSlimmer()
], VegaSectionTitle.prototype, "globalSlimmers", void 0);
__decorate([
  InjectVegaSlimmer()
], VegaSectionTitle.prototype, "renderer", void 0);
__decorate([
  InjectVegaSlimmer()
], VegaSectionTitle.prototype, "vegaComponentUsageRuntimeMetricsSlimmer", void 0);
