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, State } from '@stencil/core';
import { sanitizeVegaComponent } from '../../../utils/component';
import { InjectVegaGlobalSlimmer, InjectVegaSlimmer } from 'vega-slimmer/core';
import { VegaComponentUsageRuntimeMetricsSlimmer } from '../../../helpers/slimmers/component-usage-runtime-metrics';
import { VegaProgressTrackerStepStateController } from './slimmers/controllers/vega-progress-tracker-step-state-controller';
import { ProgressStepStatus } from '../slimmers/controllers/dto/internal-progress-tracker-step';
/**
 * @vegaVersion 2.73.0
 */
export class VegaProgressTrackerStep {
  constructor() {
    this.globalSlimmers = {};
    this.stateController = new VegaProgressTrackerStepStateController();
    this.vegaComponentUsageRuntimeMetricsSlimmer = new VegaComponentUsageRuntimeMetricsSlimmer();
    this.progressStatus = ProgressStepStatus.DEFAULT;
    this.isCurrent = false;
    /**
     * The unique key for the step.
     *
     * @vegaVersion 2.73.0
     */
    this.stepKey = '';
    /**
     * If step is clickable.
     *
     * @vegaVersion 2.76.0
     */
    this.clickable = true;
  }
  render() {
    return sanitizeVegaComponent(h(Host, null,
      h("div", { class: {
          'title-container': true,
          [this.progressStatus]: true,
          'current': this.isCurrent,
        } },
        h("slot", null))), this.host);
  }
  static get is() { return "vega-progress-tracker-step"; }
  static get encapsulation() { return "shadow"; }
  static get originalStyleUrls() { return {
    "$": ["vega-progress-tracker-step.scss"]
  }; }
  static get styleUrls() { return {
    "$": ["vega-progress-tracker-step.css"]
  }; }
  static get properties() { return {
    "stepKey": {
      "type": "string",
      "mutable": false,
      "complexType": {
        "original": "string",
        "resolved": "string",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [{
            "name": "vegaVersion",
            "text": "2.73.0"
          }],
        "text": "The unique key for the step."
      },
      "attribute": "step-key",
      "reflect": true,
      "defaultValue": "''"
    },
    "clickable": {
      "type": "boolean",
      "mutable": false,
      "complexType": {
        "original": "boolean",
        "resolved": "boolean",
        "references": {}
      },
      "required": false,
      "optional": false,
      "docs": {
        "tags": [{
            "name": "vegaVersion",
            "text": "2.76.0"
          }],
        "text": "If step is clickable."
      },
      "attribute": "clickable",
      "reflect": true,
      "defaultValue": "true"
    }
  }; }
  static get states() { return {
    "progressStatus": {},
    "isCurrent": {}
  }; }
  static get elementRef() { return "host"; }
}
__decorate([
  InjectVegaGlobalSlimmer()
], VegaProgressTrackerStep.prototype, "globalSlimmers", void 0);
__decorate([
  InjectVegaSlimmer()
], VegaProgressTrackerStep.prototype, "stateController", void 0);
__decorate([
  InjectVegaSlimmer()
], VegaProgressTrackerStep.prototype, "vegaComponentUsageRuntimeMetricsSlimmer", void 0);
