"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 __guid = typescript_angular_utilities_1.services.guid;
var input_1 = require("../input");
var form_1 = require("../../form/form");
var RadioGroupComponent = (function (_super) {
    __extends(RadioGroupComponent, _super);
    function RadioGroupComponent(rlForm, object, guid) {
        var _this = _super.call(this, rlForm, object, guid) || this;
        _this.inputType = 'radio';
        _this.initControl();
        return _this;
    }
    RadioGroupComponent.prototype.select = function (value) {
        this.setValue(value);
    };
    return RadioGroupComponent;
}(input_1.InputComponent));
RadioGroupComponent = __decorate([
    core_1.Component({
        selector: 'rlRadioGroup',
        template: '<ng-content></ng-content>',
        inputs: input_1.baseInputs,
        outputs: input_1.baseOutputs,
    }),
    __param(0, core_1.Optional()),
    __metadata("design:paramtypes", [form_1.FormComponent, __object.ObjectUtility, __guid.GuidService])
], RadioGroupComponent);
exports.RadioGroupComponent = RadioGroupComponent;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozL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