/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import * as tslib_1 from "tslib";
import { Component, Input } from '@angular/core';
import { FixedFooterFormControlsComponent } from './fixed-footer-form-controls.component';
import { StepperDirective } from '../../directives/stepper/stepper.directive';
var FixedFooterStepperControlsComponent = /** @class */ (function (_super) {
    tslib_1.__extends(FixedFooterStepperControlsComponent, _super);
    function FixedFooterStepperControlsComponent() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.showCancelBtn = false;
        _this.submitDisabled = true;
        return _this;
    }
    FixedFooterStepperControlsComponent.decorators = [
        { type: Component, args: [{
                    selector: 'fixed-footer-stepper-controls',
                    template: "<div class=\"wrapper\" [class.show]=\"stepper\">\n  <div class=\"control-group--start\">\n    <button class=\"btn btn-link text-gray\"\n            *ngIf=\"showCancelBtn\"\n            (click)=\"onClickCancel()\">{{ cancelBtnText || 'Cancel'}}</button>\n  </div>\n  <div class=\"control-group--end\">\n    <div class=\"btn-group mr-4\">\n      <!-- Back -->\n      <button class=\"btn btn-secondary\"\n              [disabled]=\"stepper?.state?.isFirst\"\n              (click)=\"stepper?.selectPrevious()\">Back\n      </button>\n      <!-- Next -->\n      <button class=\"btn btn-secondary\"\n              [disabled]=\"stepper?.state?.isLast || stepper?.state?.nextStep?.tab?.disabled\"\n              (click)=\"stepper?.selectNext()\">\n        Next\n      </button>\n    </div>\n\n    <!-- Save -->\n    <button class=\"btn btn-primary\"\n            [class.valid]=\"!submitDisabled\"\n            [disabled]=\"submitDisabled\"\n            (click)=\"onClickPrimary()\"\n    >{{ primaryBtnText || 'Done'}}</button>\n  </div>\n</div>\n",
                    styles: [":host-context(main.expanded) .wrapper{padding-left:18rem}.wrapper{position:fixed;bottom:0;left:0;z-index:1000;width:100%;display:none;background:#fff;padding:1.5rem;justify-content:space-between;box-shadow:0 1px 3px 1px rgba(0,0,0,.1);transition:padding .5s}.wrapper.show{display:flex}.btn-primary.valid{-webkit-animation:.4s pulse;animation:.4s pulse}"]
                }] }
    ];
    FixedFooterStepperControlsComponent.propDecorators = {
        stepper: [{ type: Input }],
        showCancelBtn: [{ type: Input }],
        submitDisabled: [{ type: Input }]
    };
    return FixedFooterStepperControlsComponent;
}(FixedFooterFormControlsComponent));
export { FixedFooterStepperControlsComponent };
if (false) {
    /** @type {?} */
    FixedFooterStepperControlsComponent.prototype.stepper;
    /** @type {?} */
    FixedFooterStepperControlsComponent.prototype.showCancelBtn;
    /** @type {?} */
    FixedFooterStepperControlsComponent.prototype.submitDisabled;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZml4ZWQtZm9vdGVyLXN0ZXBwZXItY29udHJvbHMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFybW9yL2JyYW5ka2l0LyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMvZml4ZWQtZm9vdGVyL2ZpeGVkLWZvb3Rlci1zdGVwcGVyLWNvbnRyb2xzLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2pELE9BQU8sRUFBRSxnQ0FBZ0MsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBQzFGLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLDRDQUE0QyxDQUFDO0FBRTlFO0lBS3lELCtEQUFnQztJQUx6RjtRQUFBLHFFQVNDO1FBRmlCLG1CQUFhLEdBQVksS0FBSyxDQUFDO1FBQy9CLG9CQUFjLEdBQVksSUFBSSxDQUFDOztJQUNqRCxDQUFDOztnQkFUQSxTQUFTLFNBQUM7b0JBQ1QsUUFBUSxFQUFFLCtCQUErQjtvQkFDekMsMmhDQUE2RDs7aUJBRTlEOzs7MEJBRUUsS0FBSztnQ0FDTCxLQ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