/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, Input, TemplateRef, ElementRef } from '@angular/core';
var TooltipContainerComponent = /** @class */ (function () {
    function TooltipContainerComponent(elementRef) {
        this.elementRef = elementRef;
        /**
         * \@prop shows the arrow or not
         */
        this.showArrow = true;
        this.classList = {};
        this.isTooltip = true;
    }
    Object.defineProperty(TooltipContainerComponent.prototype, "direction", {
        /** @prop Sets direction of the tooltip | null */
        set: /**
         * \@prop Sets direction of the tooltip | null
         * @param {?} direction
         * @return {?}
         */
        function (direction) {
            this.classList['md-event-overlay--top'] = direction === 'top';
            this.classList['md-event-overlay--bottom'] = direction === 'bottom';
            this.classList['md-event-overlay--left'] = direction === 'left';
            this.classList['md-event-overlay--right'] = direction === 'right';
        },
        enumerable: true,
        configurable: true
    });
    /**
     * @return {?}
     */
    TooltipContainerComponent.prototype.ngOnInit = /**
     * @return {?}
     */
    function () {
        this.classList['md-tooltip'] = this.isTooltip;
        this.classList['md-event-overlay--arrow'] = this.showArrow;
    };
    TooltipContainerComponent.decorators = [
        { type: Component, args: [{
                    selector: 'md-tooltip-container',
                    template: "\n  <div [ngClass]=\"classList\" class=\"md-event-overlay\">\n    <div *ngIf=\"showArrow\" class=\"md-event-overlay__arrow\" ></div>\n    <div  class=\"md-event-overlay__children\">\n        <md-tooltip\n          #mdtooltip\n          id={{this.id}}\n          text={{this.text}}\n          maxWidth={{this.maxWidth}}\n          [tooltipTemplate]=\"tooltipTemplate\"\n        ></md-tooltip>\n    </div>\n  </div>\n  ",
                    styles: [".md-tooltip.md-event-overlay{position:static}.md-tooltip.md-event-overlay>.md-event-overlay__children{position:static;padding:12px}.md-tooltip.md-event-overlay>.md-event-overlay__arrow{z-index:1027}.md-tooltip.md-event-overlay.md-event-overlay--arrow.md-event-overlay--right{display:flex;flex-direction:row;align-items:center}.md-tooltip.md-event-overlay.md-event-overlay--arrow.md-event-overlay--right>.md-event-overlay__arrow{margin-top:0}.md-tooltip.md-event-overlay.md-event-overlay--arrow.md-event-overlay--left{display:flex;flex-direction:row-reverse;align-items:center}.md-tooltip.md-event-overlay.md-event-overlay--arrow.md-event-overlay--left>.md-event-overlay__arrow{margin-left:-2px;margin-top:0}.md-tooltip.md-event-overlay.md-event-overlay--arrow.md-event-overlay--left>.md-event-overlay__children{margin-right:14px}.md-tooltip.md-event-overlay.md-event-overlay--arrow.md-event-overlay--bottom{display:flex;flex-direction:column;align-items:center}.md-tooltip.md-event-overlay.md-event-overlay--arrow.md-event-overlay--bottom>.md-event-overlay__arrow{margin-left:0}.md-tooltip.md-event-overlay.md-event-overlay--arrow.md-event-overlay--top{display:flex;flex-direction:column-reverse;align-items:center}.md-tooltip.md-event-overlay.md-event-overlay--arrow.md-event-overlay--top>.md-event-overlay__arrow{margin-top:-2px;margin-left:0}.md-tooltip.md-event-overlay.md-event-overlay--arrow.md-event-overlay--top>.md-event-overlay__children{margin-bottom:14px}"]
                }] }
    ];
    /** @nocollapse */
    TooltipContainerComponent.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    TooltipContainerComponent.propDecorators = {
        text: [{ type: Input }],
        tooltipTemplate: [{ type: Input }],
        direction: [{ type: Input }],
        showArrow: [{ type: Input }],
        id: [{ type: Input }],
        maxWidth: [{ type: Input }]
    };
    return TooltipContainerComponent;
}());
export { TooltipContainerComponent };
if (false) {
    /**
     * \@prop Sets text in the tooltip
     * @type {?}
     */
    TooltipContainerComponent.prototype.text;
    /**
     * \@prop Sets a component in the tooltip
     * @type {?}
     */
    TooltipContainerComponent.prototype.tooltipTemplate;
    /**
     * \@prop shows the arrow or not
     * @type {?}
     */
    TooltipContainerComponent.prototype.showArrow;
    /**
     * \@prop Sets the id for screen reader
     * @type {?}
     */
    TooltipContainerComponent.prototype.id;
    /**
     * \@prop Sets the max-width
     * @type {?}
     */
    TooltipContainerComponent.prototype.maxWidth;
    /** @type {?} */
    TooltipContainerComponent.prototype.classList;
    /** @type {?} */
    TooltipContainerComponent.prototype.isTooltip;
    /**
     * @type {?}
     * @private
     */
    TooltipContainerComponent.prototype.elementRef;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC1jb250YWluZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG1vbWVudHVtLXVpL2FuZ3VsYXIvIiwic291cmNlcyI6WyJ0b29sdGlwL3Rvb2x0aXAtY29udGFpbmVyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUcsV0FBVyxFQUFFLFVBQVUsRUFBUyxNQUFNLGVBQWUsQ0FBQztBQUlsRjtJQW9ERSxtQ0FBb0IsVUFBc0I7UUFBdEIsZUFBVSxHQUFWLFVBQVUsQ0FBWTs7OztRQWhCakMsY0FBUyxHQUFhLElBQUksQ0FBQztRQVE3QixjQUFTLEdBQTZCLEVBQUUsQ0FBQztRQUN6QyxjQUFTLEdBQVksSUFBSSxDQUFDO0lBT1ksQ0FBQztJQXpCOUMsc0JBQ0ksZ0RBQVM7UUFGYixpREFBaUQ7Ozs7OztRQUNqRCxVQUNjLFNBQWlCO1lBQzdCLElBQUksQ0FBQyxTQUFTLENBQUMsdUJBQXVCLENBQUMsR0FBRyxTQUFTLEtBQUssS0FBSyxDQUFDO1lBQzlELElBQUksQ0FBQyxTQUFTLENBQUMsMEJBQTBCLENBQUMsR0FBRyxTQUFTLEtBQUssUUFBUSxDQUFDO1lBQ3BFLElBQUksQ0FBQyxTQUFTLENBQUMsd0JBQXdCLENBQUMsR0FBRyxTQUFTLEtBQUssTUFBTSxDQUFDO1lBQ2hFLElBQUksQ0FBQyxTQUFTLENBQUMseUJBQXlCLENBQUMsR0FBRyxTQUFTLEtBQUssT0FBTyxDQUFDO1FBQ3BFLENBQUM7OztPQUFBOzs7O0lB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