import { Component, EventEmitter, Injector, Output } from '@angular/core';
import { DataFormBase } from '../../classes/base/data-form-base';
export class TnTemplateComponent extends DataFormBase {
    constructor(_injector) {
        super(_injector);
        this._injector = _injector;
        this.onChanged = new EventEmitter();
    }
    addTemplate(evt) {
        this.onChanged.emit('Title template');
    }
}
TnTemplateComponent.decorators = [
    { type: Component, args: [{
                selector: 'tn-template',
                template: "<button\n    (click)=\"addTemplate($event)\"\n    pButton\n    type=\"button\"\n    label=\"Th\u00EAm\"\n    icon=\"pi pi-plus\"\n    iconPos=\"left\"\n    class=\"p-button-rounded p-button-text p-button-info\"></button>\n    <div class=\"mceTmpl\">\n        <div class=\"span8\">\n            <h1>Title</h1>\n            <p class=\"introduction\">This is some introduction text</p>\n            <div class=\"row\">\n                <div class=\"span8 clearfix\">\n    \n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"block  articlepage teaserblock  span4\">\n                    <div class=\"border\">\n                        <a href=\"/en/about-us/news-events/press-releases/newworld-wildlife-fund-chooses-alloy/\" title=\"Alloy Saves Bears\">\n                            <h2>itemTitle</h2>\n                            <p>Subtitle.</p>\n                            <img src=\"/contentassets/02ffd2e49e2043fa9abecc3c2a8bd07d/polarbearonice.png\" alt=\"\">\n                        </a>\n                    </div>\n                </div>\n            </div>\n    \n        </div>\n    </div>",
                styles: [""]
            },] }
];
TnTemplateComponent.ctorParameters = () => [
    { type: Injector }
];
TnTemplateComponent.propDecorators = {
    onChanged: [{ type: Output }]
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG4tdGVtcGxhdGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdG54LXNoYXJlZC9zcmMvbGliL2NvbXBvbmVudHMvdG4tdGVtcGxhdGUvdG4tdGVtcGxhdGUuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUF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