UNPKG

aurelia-materialize-bridge

Version:
48 lines 2.05 kB
define(["require", "exports", "tslib", "../aurelia"], function (require, exports, tslib_1, au) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var MdRange = /** @class */ (function () { function MdRange(element) { this.element = element; this.readonly = false; this.min = 0; this.max = 100; this.step = 1; this.value = 0; } MdRange.prototype.attached = function () { this.instance = new M.Range(this.input); }; MdRange.prototype.detached = function () { this.instance.destroy(); }; tslib_1.__decorate([ au.ato.bindable.booleanMd, tslib_1.__metadata("design:type", Boolean) ], MdRange.prototype, "readonly", void 0); tslib_1.__decorate([ au.ato.bindable.numberMd({ defaultBindingMode: au.bindingMode.oneTime }), tslib_1.__metadata("design:type", Number) ], MdRange.prototype, "min", void 0); tslib_1.__decorate([ au.ato.bindable.numberMd({ defaultBindingMode: au.bindingMode.oneTime }), tslib_1.__metadata("design:type", Number) ], MdRange.prototype, "max", void 0); tslib_1.__decorate([ au.ato.bindable.numberMd({ defaultBindingMode: au.bindingMode.oneTime }), tslib_1.__metadata("design:type", Number) ], MdRange.prototype, "step", void 0); tslib_1.__decorate([ au.ato.bindable.numberMd({ defaultBindingMode: au.bindingMode.twoWay }), tslib_1.__metadata("design:type", Number) ], MdRange.prototype, "value", void 0); MdRange = tslib_1.__decorate([ au.customElement("md-range"), au.autoinject, tslib_1.__metadata("design:paramtypes", [Element]) ], MdRange); return MdRange; }()); exports.MdRange = MdRange; }); //# sourceMappingURL=range.js.map