import { __extends } from "tslib";
import { Component, Optional, Input } from '@angular/core';
import { AlWizardStepperComponent } from '../al-wizard-stepper.component';
import { WizardStep } from '../wizard.types';
import * as i0 from "@angular/core";
import * as i1 from "../al-wizard-stepper.component";
var _c0 = ["*"];
var StepComponent = /** @class */ (function (_super) {
    __extends(StepComponent, _super);
    function StepComponent(wizard) {
        var _this = _super.call(this) || this;
        _this.stepTitle = "";
        _this.complete = false;
        _this.active = false;
        wizard.addStep(_this);
        return _this;
    }
    /** @nocollapse */ StepComponent.ɵfac = function StepComponent_Factory(t) { return new (t || StepComponent)(i0.ɵɵdirectiveInject(i1.AlWizardStepperComponent, 8)); };
    /** @nocollapse */ StepComponent.ɵcmp = i0.ɵɵdefineComponent({ type: StepComponent, selectors: [["al-step"]], inputs: { stepTitle: "stepTitle" }, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls: 2, vars: 1, consts: [[3, "hidden"]], template: function StepComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵprojectionDef();
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵprojection(1);
            i0.ɵɵelementEnd();
        } if (rf & 2) {
            i0.ɵɵproperty("hidden", !ctx.active);
        } }, styles: [""] });
    return StepComponent;
}(WizardStep));
export { StepComponent };
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(StepComponent, [{
        type: Component,
        args: [{
                selector: 'al-step',
                templateUrl: './step.component.html',
                styleUrls: ['./step.component.scss']
            }]
    }], function () { return [{ type: i1.AlWizardStepperComponent, decorators: [{
                type: Optional
            }] }]; }, { stepTitle: [{
            type: Input
        }] }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RlcC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWwvbmctZ2VuZXJpYy1jb21wb25lbnRzLyIsInNvdXJjZXMiOlsiYWwtd2l6YXJkLXN0ZXBwZXIvc3RlcC9zdGVwLmNvbXBvbmVud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