UNPKG

aurelia-materialize-bridge

Version:
84 lines 3.61 kB
System.register(["tslib", "../aurelia"], function (exports_1, context_1) { "use strict"; var tslib_1, au, MdRadio; var __moduleName = context_1 && context_1.id; return { setters: [ function (tslib_1_1) { tslib_1 = tslib_1_1; }, function (au_1) { au = au_1; } ], execute: function () { MdRadio = /** @class */ (function () { function MdRadio(element) { this.element = element; this.disabled = false; this.readonly = false; this.gap = false; this.name = ""; this.value = ""; this.controlId = "md-radio-" + MdRadio_1.id++; } MdRadio_1 = MdRadio; MdRadio.prototype.disabledChanged = function (newValue) { if (this.radio) { this.radio.disabled = newValue; } }; MdRadio.prototype.attached = function () { this.attributeManager = new au.AttributeManager(this.radio); if (this.gap) { this.attributeManager.addClasses("with-gap"); } if (this.disabled) { this.radio.disabled = true; } }; MdRadio.prototype.detached = function () { this.attributeManager.removeClasses(["with-gap", "disabled"]); }; var MdRadio_1; MdRadio.id = 0; tslib_1.__decorate([ au.bindable({ defaultBindingMode: au.bindingMode.twoWay }), tslib_1.__metadata("design:type", Object) ], MdRadio.prototype, "checked", void 0); tslib_1.__decorate([ au.ato.bindable.booleanMd, tslib_1.__metadata("design:type", Boolean) ], MdRadio.prototype, "disabled", void 0); tslib_1.__decorate([ au.ato.bindable.booleanMd, tslib_1.__metadata("design:type", Boolean) ], MdRadio.prototype, "readonly", void 0); tslib_1.__decorate([ au.ato.bindable.booleanMd, tslib_1.__metadata("design:type", Boolean) ], MdRadio.prototype, "gap", void 0); tslib_1.__decorate([ au.bindable, tslib_1.__metadata("design:type", Object) ], MdRadio.prototype, "model", void 0); tslib_1.__decorate([ au.ato.bindable.stringMd, tslib_1.__metadata("design:type", String) ], MdRadio.prototype, "name", void 0); tslib_1.__decorate([ au.ato.bindable.stringMd, tslib_1.__metadata("design:type", String) ], MdRadio.prototype, "value", void 0); MdRadio = MdRadio_1 = tslib_1.__decorate([ au.customElement("md-radio"), au.autoinject, tslib_1.__metadata("design:paramtypes", [Element]) ], MdRadio); return MdRadio; }()); exports_1("MdRadio", MdRadio); } }; }); //# sourceMappingURL=radio.js.map