"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AgFullWidthRowTemplate = exports.AgPinnedRowTemplate = exports.AgHeaderGroupTemplate = exports.AgHeaderTemplate = exports.AgFilterTemplate = exports.AgEditorTemplate = exports.AgCellTemplate = void 0;
var aurelia_framework_1 = require("aurelia-framework");
function parseElement(compiler, resources, element, instruction) {
    var html = element.innerHTML;
    if (html !== '') {
        instruction.template = html;
    }
    element.innerHTML = '';
}
function getTemplate(targetInstruction) {
    return "<template>" + targetInstruction.elementInstruction.template + "</template>";
}
var AgCellTemplate = exports.AgCellTemplate = (function () {
    function AgCellTemplate(targetInstruction) {
        this.template = getTemplate(targetInstruction);
    }
    AgCellTemplate = __decorate([
        (0, aurelia_framework_1.customElement)('ag-cell-template'),
        (0, aurelia_framework_1.noView)(),
        (0, aurelia_framework_1.autoinject)(),
        (0, aurelia_framework_1.processContent)(parseElement),
        __metadata("design:paramtypes", [aurelia_framework_1.TargetInstruction])
    ], AgCellTemplate);
    return AgCellTemplate;
}());
var AgEditorTemplate = exports.AgEditorTemplate = (function () {
    function AgEditorTemplate(targetInstruction) {
        this.template = getTemplate(targetInstruction);
    }
    AgEditorTemplate = __decorate([
        (0, aurelia_framework_1.customElement)('ag-editor-template'),
        (0, aurelia_framework_1.noView)(),
        (0, aurelia_framework_1.autoinject)(),
        (0, aurelia_framework_1.processContent)(parseElement),
        __metadata("design:paramtypes", [aurelia_framework_1.TargetInstruction])
    ], AgEditorTemplate);
    return AgEditorTemplate;
}());
var AgFilterTemplate = exports.AgFilterTemplate = (function () {
    function AgFilterTemplate(targetInstruction) {
        this.template = getTemplate(targetInstruction);
    }
    AgFilterTemplate = __decorate([
        (0, aurelia_framework_1.customElement)('ag-filter-template'),
        (0, aurelia_framework_1.noView)(),
        (0, aurelia_framework_1.autoinject)(),
        (0, aurelia_framework_1.processContent)(parseElement),
        __metadata("design:paramtypes", [aurelia_framework_1.TargetInstruction])
    ], AgFilterTemplate);
    return AgFilterTemplate;
}());
var AgHeaderTemplate = exports.AgHeaderTemplate = (function () {
    function AgHeaderTemplate(targetInstruction) {
        this.template = getTemplate(targetInstruction);
    }
    AgHeaderTemplate = __decorate([
        (0, aurelia_framework_1.customElement)('ag-header-template'),
        (0, aurelia_framework_1.noView)(),
        (0, aurelia_framework_1.autoinject)(),
        (0, aurelia_framework_1.processContent)(parseElement),
        __metadata("design:paramtypes", [aurelia_framework_1.TargetInstruction])
    ], AgHeaderTemplate);
    return AgHeaderTemplate;
}());
var AgHeaderGroupTemplate = exports.AgHeaderGroupTemplate = (function () {
    function AgHeaderGroupTemplate(targetInstruction) {
        this.template = getTemplate(targetInstruction);
    }
    AgHeaderGroupTemplate = __decorate([
        (0, aurelia_framework_1.customElement)('ag-header-group-template'),
        (0, aurelia_framework_1.noView)(),
        (0, aurelia_framework_1.autoinject)(),
        (0, aurelia_framework_1.processContent)(parseElement),
        __metadata("design:paramtypes", [aurelia_framework_1.TargetInstruction])
    ], AgHeaderGroupTemplate);
    return AgHeaderGroupTemplate;
}());
var AgPinnedRowTemplate = exports.AgPinnedRowTemplate = (function () {
    function AgPinnedRowTemplate(targetInstruction) {
        this.template = getTemplate(targetInstruction);
    }
    AgPinnedRowTemplate = __decorate([
        (0, aurelia_framework_1.customElement)('ag-pinned-row-template'),
        (0, aurelia_framework_1.noView)(),
        (0, aurelia_framework_1.autoinject)(),
        (0, aurelia_framework_1.processContent)(parseElement),
        __metadata("design:paramtypes", [aurelia_framework_1.TargetInstruction])
    ], AgPinnedRowTemplate);
    return AgPinnedRowTemplate;
}());
var AgFullWidthRowTemplate = exports.AgFullWidthRowTemplate = (function () {
    function AgFullWidthRowTemplate(targetInstruction) {
        this.template = getTemplate(targetInstruction);
    }
    AgFullWidthRowTemplate = __decorate([
        (0, aurelia_framework_1.customElement)('ag-full-width-row-template'),
        (0, aurelia_framework_1.noView)(),
        (0, aurelia_framework_1.autoinject)(),
        (0, aurelia_framework_1.processContent)(parseElement),
        __metadata("design:paramtypes", [aurelia_framework_1.TargetInstruction])
    ], AgFullWidthRowTemplate);
    return AgFullWidthRowTemplate;
}());

//# sourceMappingURL=agTemplate.js.map
