/**
 * @fileoverview added by tsickle
 * Generated from: components/editor/parts/editor-link-box/editor-link-box.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, EventEmitter, Input, Output, } from '@angular/core';
export class TlEditorLinkBox {
    constructor() {
        this.descriptionLink = '';
        this.onSetLink = new EventEmitter();
        this.onToggleLink = new EventEmitter();
        this.linkItself = '';
    }
    /**
     * @return {?}
     */
    setLinkEditorLinkBox() {
        this.onSetLink.emit({ 'link': this.linkItself, 'description': this.descriptionLink });
    }
    /**
     * @return {?}
     */
    toggleLinkBoxEditorLinkBox() {
        this.onToggleLink.emit();
    }
    /**
     * @return {?}
     */
    ngOnChanges() { }
}
TlEditorLinkBox.decorators = [
    { type: Component, args: [{
                selector: 'tl-editor-link-box',
                template: "<div class=\"ui-link-box\">\n  <tl-form [mode]=\"'inline'\">\n    <div class=\"ui-form-control\">\n      <tl-input [name]=\"'descriptionLink'\" [(ngModel)]=\"descriptionLink\" [label]=\"'Description'\"></tl-input>\n    </div>\n    <div class=\"ui-form-control\">\n      <tl-input [name]=\"'linkItself'\" [(ngModel)]=\"linkItself\" [label]=\"'Link'\"></tl-input>\n    </div>\n    <div class=\"ui-form-control flex-control\">\n      <tl-button (click)=\"toggleLinkBoxEditorLinkBox()\" [height]=\"'25px'\" [width]=\"'35px'\" [text]=\"'Cancel'\" [color]=\"'basic'\"></tl-button>\n      <tl-button (click)=\"setLinkEditorLinkBox()\" [height]=\"'25px'\" [disabled]=\"!descriptionLink || !linkItself\"\n                 style=\"margin-left: 10px\" [width]=\"'35px'\" [text]=\"'Save'\" [color]=\"'primary'\"></tl-button>\n    </div>\n  </tl-form>\n</div>\n",
                styles: [".ui-link-box{background:#fff;border:1px solid #e4d8d8;box-shadow:0 0 5px #ddd;left:calc(50% - 200px);position:absolute;top:calc(50% - 52px);transition:all .1s ease-in-out;width:400px}.ui-link-box .ui-form-control{padding-bottom:2px;padding-top:2px}.ui-link-box .ui-form-control.flex-control{display:flex;float:right;margin-bottom:10px;margin-top:10px}"]
            }] }
];
TlEditorLinkBox.propDecorators = {
    descriptionLink: [{ type: Input }],
    onSetLink: [{ type: Output }],
    onToggleLink: [{ type: Output }]
};
if (false) {
    /** @type {?} */
    TlEditorLinkBox.prototype.descriptionLink;
    /** @type {?} */
    TlEditorLinkBox.prototype.onSetLink;
    /** @type {?} */
    TlEditorLinkBox.prototype.onToggleLink;
    /** @type {?} */
    TlEditorLinkBox.prototype.linkItself;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdG9yLWxpbmstYm94LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHJ1bHktdWkvc3JjL2NvbXBvbmVudHMvZWRpdG9yL3BhcnRzL2VkaXRvci1saW5rLWJveC9lZGl0b3ItbGluay1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