/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, EventEmitter, Input, Output } from '@angular/core';
export class FloatingButtonComponent {
    constructor() {
        this.posLeft = 0;
        this.posTop = 0;
        this.posRight = 0;
        this.posBottom = 0;
        this.buttonColor = 'secondary';
        this.isMiniButton = false;
        this.buttonClick = new EventEmitter();
    }
    /**
     * @return {?}
     */
    ngOnInit() {
    }
    /**
     * @return {?}
     */
    onClick() {
        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 = () => [];
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 }]
};
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmxvYXRpbmctYnV0dG9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2FuZ3VsYXItbWFwLWVkaXRvci8iLCJzb3VyY2VzIjpbImZsb2F0aW5nLXRvb2xiYXIvZmxvYXRpbmctYnV0dG9uL2Zsb2F0aW5nLWJ1dHRvbi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBVSxNQUFNLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFPN0UsTUFBTSxPQUFPLHVCQUF1QjtJQThCaEM7UUFyQk8sWUFBTyxHQUFHLENBQUMsQ0FBQztRQUdaLFdBQU0sR0FBRyxDQUFDLENBQUM7UUFHWCxhQUFRLEdBQUcsQ0FBQyxDQUFDO1FBR2IsY0FBUyxHQUFHLENBQUMsQ0FBQztRQUdkLGdCQUFXLEdBQUcsV0FBVyxDQUFDO1FBRzFCLGlCQUFZLEdBQUcsS0FBSyxDQUFDO1FBR3JCLGdCQUFXLEdBQUcsSUFBSSxZQUFZLEVBQU8sQ0FBQztJQUk3QyxDQUFDO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