/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, Input } from '@angular/core';
export class TooltipComponent {
    /**
     * @return {?}
     */
    ngOnInit() {
        this.initValues();
    }
    /**
     * @return {?}
     */
    initValues() {
        const { defaultProps } = TooltipComponent;
        this.text = this.textInput || defaultProps.text;
        this.position = this.positionInput || defaultProps.position;
        this.className = this.classNameInput || defaultProps.className;
        this.isFocused = defaultProps.isFocused;
        this.isHovered = defaultProps.isHovered;
    }
    /**
     * @param {?} event
     * @return {?}
     */
    onMouseEnter(event) {
        this.isHovered = true;
    }
    /**
     * @param {?} event
     * @return {?}
     */
    onMouseLeave(event) {
        this.isHovered = false;
    }
    /**
     * @param {?} event
     * @return {?}
     */
    onFocus(event) {
        this.isFocused = true;
    }
    /**
     * @param {?} event
     * @return {?}
     */
    onBlur(event) {
        this.isFocused = false;
    }
}
TooltipComponent.defaultProps = {
    className: '',
    isFocused: false,
    isHovered: false,
    position: 'top',
    text: ''
};
TooltipComponent.decorators = [
    { type: Component, args: [{
                selector: 'materialize-tooltip',
                template: "<div class=\"tooltip\"\n  [ngClass]=\"className\"\n  (focus)=\"onFocus($event)\"\n  (blur)=\"onBlur($event)\"\n  (mouseenter)=\"onMouseEnter($event)\"\n  (mouseleave)=\"onMouseLeave($event)\"\n  tabindex=\"0\">\n  <div class=\"tooltip-container tooltip-position-{{ position }}\"\n    [class.active]=\"isFocused || isHovered\">\n    {{ text }}\n  </div>\n  <ng-content></ng-content>\n</div>\n",
                styles: [".tooltip{cursor:pointer;display:inline-block;outline:0;position:relative;-webkit-tap-highlight-color:transparent}.tooltip-container{background-color:#232f34;border-radius:100px;color:#fff;font-size:12px;font-weight:200;opacity:0;padding:6px 12px;position:absolute;transition-duration:250ms;transition-property:opacity,visibility;transition-timing-function:ease;visibility:hidden;z-index:-1}.tooltip-container.active{opacity:1;visibility:visible;z-index:10}.tooltip-container.tooltip-position-bottom,.tooltip-container.tooltip-position-top{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.tooltip-container.tooltip-position-bottom::before,.tooltip-container.tooltip-position-top::before{content:'';height:8px;left:0;position:absolute;right:0}.tooltip-container.tooltip-position-left,.tooltip-container.tooltip-position-right{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.tooltip-container.tooltip-position-left::before,.tooltip-container.tooltip-position-right::before{bottom:0;content:'';position:absolute;top:0;width:8px}.tooltip-container.tooltip-position-left{margin-right:8px;right:100%}.tooltip-container.tooltip-position-left::before{left:100%}.tooltip-container.tooltip-position-right{left:100%;margin-left:8px}.tooltip-container.tooltip-position-right::before{right:100%}.tooltip-container.tooltip-position-bottom{margin-top:8px;top:100%}.tooltip-container.tooltip-position-bottom::before{bottom:100%}.tooltip-container.tooltip-position-top{bottom:100%;margin-bottom:8px}.tooltip-container.tooltip-position-top::before{top:100%}"]
            }] }
];
TooltipComponent.propDecorators = {
    classNameInput: [{ type: Input, args: ['className',] }],
    positionInput: [{ type: Input, args: ['position',] }],
    textInput: [{ type: Input, args: ['text',] }]
};
if (false) {
    /** @type {?} */
    TooltipComponent.defaultProps;
    /** @type {?} */
    TooltipComponent.prototype.classNameInput;
    /** @type {?} */
    TooltipComponent.prototype.positionInput;
    /** @type {?} */
    TooltipComponent.prototype.textInput;
    /** @type {?} */
    TooltipComponent.prototype.className;
    /** @type {?} */
    TooltipComponent.prototype.isFocused;
    /** @type {?} */
    TooltipComponent.prototype.isHovered;
    /** @type {?} */
    TooltipComponent.prototype.position;
    /** @type {?} */
    TooltipComponent.prototype.text;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9tYXRlcmlhbGl6ZS1hbmd1bGFyLyIsInNvdXJjZXMiOlsiYXBwL2NvbXBvbmVudHMvdG9vbHRpcC90b29sdGlwLmNvbXBvbmVudC50cyJ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