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