/**
 * @fileoverview added by tsickle
 * Generated from: components/panelgroup/panelgroup.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
/*
 MIT License

 Copyright (c) 2019 Temainfo Software

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:
 The above copyright notice and this permission notice shall be included in all
 copies or substantial portions of the Software.
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
 */
import { Component, Output, Input, EventEmitter } from '@angular/core';
export class TlPanelGroup {
    constructor() {
        this.labelGroup = 'Panel Group';
        this.backgroundColor = '';
        this.width = '100%';
        this.height = '100%';
        this.fontColorCaption = '';
        this.fontSizeCaption = '12px';
        this.shortcutAction = '';
        this.showButtonAction = false;
        this.buttonAction = new EventEmitter();
    }
    /**
     * @return {?}
     */
    ngAfterViewInit() { }
    /**
     * @param {?} $event
     * @return {?}
     */
    onClickButtonAction($event) {
        this.buttonAction.emit($event);
    }
}
TlPanelGroup.decorators = [
    { type: Component, args: [{
                selector: 'tl-panelgroup',
                template: "<div class=\"panelgroup-container\" [style.width]=\"width\" [style.height]=\"height\"  [ngStyle]=\"{'background-color':backgroundColor}\">\n    <div class=\"header-group\">\n        <span class=\"spacer spacer-left\"></span>\n        <span class=\"group-caption\" [style.color]=\"fontColorCaption\" [style.font-size]=\"fontSizeCaption\">{{labelGroup}}</span>\n        <div *ngIf=\"showButtonAction\"\n             [shortcut]=\"shortcutAction\"\n             (click)=\"onClickButtonAction($event)\" class=\"ui-button-action\">\n          <tl-icon [lib]=\"'ion'\" [style]=\"'md'\">add</tl-icon>\n        </div>\n\n        <span class=\"spacer spacer-right\"></span>\n    </div>\n    <div class=\"panelgroup-body\">\n      <ng-content></ng-content>\n    </div>\n</div>\n",
                styles: [".panelgroup-container{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;border-top:0;box-sizing:border-box;position:relative;user-select:none;width:100%}.panelgroup-body{box-sizing:border-box;height:100%;padding:10px;width:100%}.header-group{display:table;line-height:1.5em;position:absolute;top:-10.6px;white-space:nowrap}.header-group>.ui-button-action{align-items:center;border-radius:5px;color:#fff;cursor:pointer;display:flex;height:18px;justify-content:center;margin-left:5px;width:18px}.header-group span{display:table-cell;overflow:hidden;vertical-align:middle}.header-group .group-caption{font-weight:600}.header-group span.spacer-left{width:5%}.header-group span.spacer-right{width:95%}.header-group span.spacer{padding:0 10px}.header-group span.spacer-left{padding:0 7px 0 0}.header-group span.spacer-right{padding:0 0 0 7px}.header-group span.spacer:after{content:\".\";display:inline-block;font-size:0;height:1px;position:relative;top:-1px;vertical-align:middle;width:100%}"]
            }] }
];
/** @nocollapse */
TlPanelGroup.ctorParameters = () => [];
TlPanelGroup.propDecorators = {
    labelGroup: [{ type: Input }],
    backgroundColor: [{ type: Input }],
    width: [{ type: Input }],
    height: [{ type: Input }],
    fontColorCaption: [{ type: Input }],
    fontSizeCaption: [{ type: Input }],
    shortcutAction: [{ type: Input }],
    showButtonAction: [{ type: Input }],
    buttonAction: [{ type: Output }]
};
if (false) {
    /** @type {?} */
    TlPanelGroup.prototype.labelGroup;
    /** @type {?} */
    TlPanelGroup.prototype.backgroundColor;
    /** @type {?} */
    TlPanelGroup.prototype.width;
    /** @type {?} */
    TlPanelGroup.prototype.height;
    /** @type {?} */
    TlPanelGroup.prototype.fontColorCaption;
    /** @type {?} */
    TlPanelGroup.prototype.fontSizeCaption;
    /** @type {?} */
    TlPanelGroup.prototype.shortcutAction;
    /** @type {?} */
    TlPanelGroup.prototype.showButtonAction;
    /** @type {?} */
    TlPanelGroup.prototype.buttonAction;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFuZWxncm91cC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3RydWx5LXVpL3NyYy9jb21wb25lbnRzL3BhbmVsZ3JvdXAvcGFuZWxncm91cC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQXNCQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBaUIsS0FBSyxFQUFFLFlBQVksRUFBRSxNQUFNLGVBQWUsQ0FBQztBQU90RixNQUFNLE9BQU8sWUFBWTtJQW9CckI7UUFsQlMsZUFBVSxHQUFHLGFBQWEsQ0FBQztRQUUzQixvQkFBZSxHQUFHLEVBQUUsQ0FBQztRQUVyQixVQUFLLEdBQUcsTUFBTSxDQUFDO1FBRWYsV0FBTSxHQUFHLE1BQU0sQ0FBQztRQUVoQixxQkFBZ0IsR0FBRyxFQUFFLENBQUM7UUFFdEIsb0JBQWUsR0FBRyxNQUFNLENBQUM7UUFFekIsbUJBQWMsR0FBRyxFQUFFLENBQUM7UUFFcEIscUJBQWdCLEdBQUcsS0FBSyxDQUFDO1FBRXhCLGlCQUFZLEdBQXNCLElBQUksWUFBWSxFQUFFLENBQUM7SUFFaEQsQ0FBQzs7OztJQUVoQixlQUFlLEtBQUksQ0FBQzs7Ozs7SUFFcEIsbUJBQW1CLENBQUMsTUFBTTtRQUN4QixJQUFJLENBQUMsWUFBWSxDQUFD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