/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, EventEmitter, Input, Output } from '@angular/core';
var FixedFooterFormControlsComponent = /** @class */ (function () {
    function FixedFooterFormControlsComponent() {
        this.clickCancel = new EventEmitter();
        this.clickPrimary = new EventEmitter();
        this.show = true;
    }
    /**
     * @return {?}
     */
    FixedFooterFormControlsComponent.prototype.onClickCancel = /**
     * @return {?}
     */
    function () {
        this.clickCancel.emit();
    };
    /**
     * @return {?}
     */
    FixedFooterFormControlsComponent.prototype.onClickPrimary = /**
     * @return {?}
     */
    function () {
        this.clickPrimary.emit();
    };
    FixedFooterFormControlsComponent.decorators = [
        { type: Component, args: [{
                    selector: 'fixed-footer-form-controls',
                    template: "\n    <div class=\"wrapper\" [class.show]=\"show\">\n        <div class=\"control-group--end\">\n          <button class=\"btn btn-link text-gray\" (click)=\"onClickCancel()\">{{ cancelBtnText || 'Cancel'}}</button>\n          <button class=\"btn btn-primary\"\n            [class.valid]=\"!disabled\"\n            [disabled]=\"disabled\"\n            (click)=\"onClickPrimary()\">\n              {{ primaryBtnText || 'Save'}}\n          </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}"]
                }] }
    ];
    FixedFooterFormControlsComponent.propDecorators = {
        clickCancel: [{ type: Output }],
        clickPrimary: [{ type: Output }],
        cancelBtnText: [{ type: Input }],
        disabled: [{ type: Input }],
        primaryBtnText: [{ type: Input }],
        show: [{ type: Input }]
    };
    return FixedFooterFormControlsComponent;
}());
export { FixedFooterFormControlsComponent };
if (false) {
    /** @type {?} */
    FixedFooterFormControlsComponent.prototype.clickCancel;
    /** @type {?} */
    FixedFooterFormControlsComponent.prototype.clickPrimary;
    /** @type {?} */
    FixedFooterFormControlsComponent.prototype.cancelBtnText;
    /** @type {?} */
    FixedFooterFormControlsComponent.prototype.disabled;
    /** @type {?} */
    FixedFooterFormControlsComponent.prototype.primaryBtnText;
    /** @type {?} */
    FixedFooterFormControlsComponent.prototype.show;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZml4ZWQtZm9vdGVyLWZvcm0tY29udHJvbHMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFybW9yL2JyYW5ka2l0LyIsInNvdXJjZXMiOlsibGliL2NvbXBvbmVudHMvZml4ZWQtZm9vdGVyL2ZpeGVkLWZvb3Rlci1mb3JtLWNvbnRyb2xzLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV2RTtJQUFBO1FBbUJTLGdCQUFXLEdBQXVCLElBQUksWUFBWSxFQUFRLENBQUM7UUFHM0QsaUJBQVksR0FBdUIsSUFBSSxZQUFZLEVBQVEsQ0FBQztRQVk1RCxTQUFJLEdBQVksSUFBSSxDQUFDO0lBUzlCLENBQUM7Ozs7SUFQUSx3REFBYTs7O0lBQXBCO1FBQ0UsSUFBSSxDQUFDLFdBQVcsQ0FBQyxJQUFJLEVBQUUsQ0FBQztJQUMxQixDQUFDOzs7O0lBRU0seURBQWM7OztJQUFyQjtRQUNFLElBQUksQ0FBQyxZQUFZLENBQUMsSUFBSSxFQUFFLENBQUM7SUFDM0IsQ0FBQzs7Z0JBMUNGLFNBQVMsU0FBQztvQkFDVCxRQUFRLEVBQUUsNEJBQTRCO29CQUN0QyxRQUFRLEVBQUUsaWVBWVQ7O2lCQUVGOzs7OEJBRU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