import { __decorate, __metadata } from "tslib";
import { Component, HostBinding } from '@angular/core';
export var StepStatus;
(function (StepStatus) {
    StepStatus[StepStatus["waiting"] = 0] = "waiting";
    StepStatus[StepStatus["complete"] = 1] = "complete";
    StepStatus[StepStatus["current"] = 2] = "current";
})(StepStatus || (StepStatus = {}));
var StepItemComponent = /** @class */ (function () {
    function StepItemComponent() {
        this.index = 0;
        this.status = StepStatus.waiting;
    }
    Object.defineProperty(StepItemComponent.prototype, "isComplete", {
        get: function () {
            return this.status === StepStatus.complete;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(StepItemComponent.prototype, "isWaiting", {
        get: function () {
            return this.status === StepStatus.waiting;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(StepItemComponent.prototype, "isCurrent", {
        get: function () {
            return this.status === StepStatus.current;
        },
        enumerable: true,
        configurable: true
    });
    __decorate([
        HostBinding('class.ui-complete'),
        __metadata("design:type", Object),
        __metadata("design:paramtypes", [])
    ], StepItemComponent.prototype, "isComplete", null);
    __decorate([
        HostBinding('class.ui-waiting'),
        __metadata("design:type", Object),
        __metadata("design:paramtypes", [])
    ], StepItemComponent.prototype, "isWaiting", null);
    __decorate([
        HostBinding('class.ui-current'),
        __metadata("design:type", Object),
        __metadata("design:paramtypes", [])
    ], StepItemComponent.prototype, "isCurrent", null);
    StepItemComponent = __decorate([
        Component({
            selector: 'ui-step-item',
            template: "<div class=\"ui-step-item-header\">\n  <div class=\"ui-step-item-line\">\n  </div>\n  <div class=\"ui-step-item-icon\">\n    {{ index + 1 }}\n  </div>\n</div>\n<div class=\"ui-step-item-content\">\n  <ng-content></ng-content>\n</div>\n"
        })
    ], StepItemComponent);
    return StepItemComponent;
}());
export { StepItemComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RlcC1pdGVtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0YW5iby91aS8iLCJzb3VyY2VzIjpbImxpY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