"use strict";
var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
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);
};
var __param = (this && this.__param) || function (paramIndex, decorator) {
    return function (target, key) { decorator(target, key, paramIndex); }
};
var core_1 = require("@angular/core");
var typescript_angular_utilities_1 = require("typescript-angular-utilities");
var __object = typescript_angular_utilities_1.services.object;
var __array = typescript_angular_utilities_1.services.array;
var __guid = typescript_angular_utilities_1.services.guid;
var validationInput_1 = require("../validationInput");
var componentValidator_service_1 = require("../../../services/componentValidator/componentValidator.service");
var form_1 = require("../../form/form");
var input_1 = require("../input");
var TextareaComponent = (function (_super) {
    __extends(TextareaComponent, _super);
    function TextareaComponent(rlForm, componentValidator, object, array, guid) {
        var _this = _super.call(this, rlForm, componentValidator, object, array, guid) || this;
        _this.inputType = 'textarea';
        return _this;
    }
    TextareaComponent.prototype.ngOnInit = function () {
        _super.prototype.ngOnInit.call(this);
        this.value = this.value || '';
    };
    TextareaComponent.prototype.onChange = function (text) {
        this.setValue(text);
    };
    return TextareaComponent;
}(validationInput_1.ValidatedInputComponent));
__decorate([
    core_1.Input(),
    __metadata("design:type", Number)
], TextareaComponent.prototype, "maxlength", void 0);
__decorate([
    core_1.Input(),
    __metadata("design:type", Number)
], TextareaComponent.prototype, "rows", void 0);
TextareaComponent = __decorate([
    core_1.Component({
        selector: 'rlTextarea',
        template: require('./textarea.html'),
        inputs: validationInput_1.validationInputs,
        outputs: validationInput_1.baseOutputs,
        providers: [componentValidator_service_1.ComponentValidator],
        animations: input_1.baseAnimations,
    }),
    __param(0, core_1.Optional()),
    __metadata("design:paramtypes", [form_1.FormComponent,
        componentValidator_service_1.ComponentValidator, __object.ObjectUtility, __array.ArrayUtility, __guid.GuidService])
], TextareaComponent);
exports.TextareaComponent = TextareaComponent;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dGFyZWEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ0ZXh0YXJlYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxzQ0FBbUU7QUFFbkUsNkVBQXdEO0FBQ3hELElBQU8sUUFBUSxHQUFHLHVDQUFRLENBQUMsTUFBTSxDQUFDO0FBQ2xDLElBQU8sT0FBTyxHQUFHLHVDQUFRLENBQUMsS0FBSyxDQUFDO0FBQ2hDLElBQU8sTUFBTSxHQUFHLHVDQUFRLENBQUMsSUFBSSxDQUFDO0FBRTlCLHNEQUE0RjtBQUM1Riw4R0FBcUc7QUFDckcsd0NBQWdEO0FBRWhELGtDQUEwQztBQVUxQyxJQUFhLGlCQUFpQjtJQUFTLHFDQUErQjtJQUlyRSwyQkFBeUIsTUFBcUIsRUFDMUMsa0JBQXNDLEVBQ3RDLE1BQThCLEVBQzlCLEtBQTJCLEVBQzNCLElBQXdCO1FBSjVCLFlBS0Msa0JBQU0sTUFBTSxFQUFFLGtCQUFrQixFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUUsSUFBSSxDQUFDLFNBRXREO1FBREEsS0FBSSxDQUFDLFNBQVMsR0FBRyxVQUFVLENBQUM7O0lBQzdCLENBQUM7SUFFRCxvQ0FBUSxHQUFSO1FB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