/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, EventEmitter, Input, Output } from '@angular/core';
var FloatingButtonComponent = /** @class */ (function () {
    function FloatingButtonComponent() {
        this.posLeft = 0;
        this.posTop = 0;
        this.posRight = 0;
        this.posBottom = 0;
        this.buttonColor = 'secondary';
        this.isMiniButton = false;
        this.buttonClick = new EventEmitter();
    }
    /**
     * @return {?}
     */
    FloatingButtonComponent.prototype.ngOnInit = /**
     * @return {?}
     */
    function () {
    };
    /**
     * @return {?}
     */
    FloatingButtonComponent.prototype.onClick = /**
     * @return {?}
     */
    function () {
        this.buttonClick.emit();
    };
    FloatingButtonComponent.decorators = [
        { type: Component, args: [{
                    selector: 'so-floating-button',
                    template: "<ng-container *ngIf=\"!isMiniButton\">\r\n    <button mat-fab [color]=\"buttonColor\"\r\n            class=\"floating-button\"\r\n            [style.left.px]=\"posLeft\"\r\n            [style.top.px]=\"posTop\"\r\n            [style.bottom.px]=\"posBottom\"\r\n            [style.right.px]=\"posRight\"\r\n            [matTooltip]=\"caption\"\r\n            matTooltipPosition=\"right\"\r\n            (click)=\"onClick()\">\r\n        <img [src]=\"iconFileName | asset | async\" [alt]=\"caption\">\r\n    </button>\r\n</ng-container>\r\n\r\n<ng-container *ngIf=\"isMiniButton\">\r\n    <button mat-mini-fab [color]=\"buttonColor\"\r\n            class=\"floating-button\"\r\n            [style.left.px]=\"posLeft\"\r\n            [style.top.px]=\"posTop\"\r\n            [style.bottom.px]=\"posBottom\"\r\n            [style.right.px]=\"posRight\"\r\n            [matTooltip]=\"caption\"\r\n            (click)=\"onClick()\">\r\n        <img [src]=\"iconFileName | asset | async\" [alt]=\"caption\">\r\n    </button>\r\n</ng-container>\r\n\r\n",
                    styles: [".floating-button{position:absolute;cursor:default}"]
                }] }
    ];
    /** @nocollapse */
    FloatingButtonComponent.ctorParameters = function () { return []; };
    FloatingButtonComponent.propDecorators = {
        caption: [{ type: Input }],
        iconFileName: [{ type: Input }],
        posLeft: [{ type: Input }],
        posTop: [{ type: Input }],
        posRight: [{ type: Input }],
        posBottom: [{ type: Input }],
        buttonColor: [{ type: Input }],
        isMiniButton: [{ type: Input }],
        buttonClick: [{ type: Output }]
    };
    return FloatingButtonComponent;
}());
export { FloatingButtonComponent };
if (false) {
    /** @type {?} */
    FloatingButtonComponent.prototype.caption;
    /** @type {?} */
    FloatingButtonComponent.prototype.iconFileName;
    /** @type {?} */
    FloatingButtonComponent.prototype.posLeft;
    /** @type {?} */
    FloatingButtonComponent.prototype.posTop;
    /** @type {?} */
    FloatingButtonComponent.prototype.posRight;
    /** @type {?} */
    FloatingButtonComponent.prototype.posBottom;
    /** @type {?} */
    FloatingButtonComponent.prototype.buttonColor;
    /** @type {?} */
    FloatingButtonComponent.prototype.isMiniButton;
    /** @type {?} */
    FloatingButtonComponent.prototype.buttonClick;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmxvYXRpbmctYnV0dG9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2FuZ3VsYXItbWFwLWVkaXRvci8iLCJzb3VyY2VzIjpbImZsb2F0aW5nLXRvb2xiYXIvZmxvYXRpbmctYnV0dG9uL2Zsb2F0aW5nLWJ1dHRvbi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBVSxNQUFNLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFN0U7SUFtQ0k7UUFyQk8sWUFBTyxHQUFHLENBQUMsQ0FBQztRQUdaLFdBQU0sR0FBRyxDQUFDLENBQUM7UUFHWCxhQUFRLEdBQUcsQ0FBQyxDQUFDO1FBR2IsY0FBUyxHQUFHLENBQUMsQ0FBQztRQUdkLGdCQUFXLEdBQUcsV0FBVyxDQUFD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